Update
This commit is contained in:
parent
f786fd75e0
commit
6733ee6b94
|
@ -1,39 +1,28 @@
|
||||||
|
|
||||||
export let communities = [
|
export let communities = [
|
||||||
{
|
{
|
||||||
location: [{
|
location: ["EstoniaKohtlaJarve",[59.409521829709504, 27.288415912535914]],
|
||||||
en: "Estonia, Kohtla-Järve",
|
status: "forming",
|
||||||
ru: "Эстония, Кохтла-Ярве"
|
|
||||||
},
|
|
||||||
[59.409521829709504, 27.288415912535914]],
|
|
||||||
status: {
|
|
||||||
en: "forming",
|
|
||||||
ru: "формируется"
|
|
||||||
},
|
|
||||||
members: 2,
|
members: 2,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersCommunities(map,content,locale) {
|
export function addMarkersCommunities(map,content) {
|
||||||
for (let g of communities) {
|
for (let g of communities) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = content[field] + ": "
|
let fieldText = content[field] + ": "
|
||||||
if (field=="contact") {
|
if (field=="contact") {
|
||||||
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
|
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + content[g.contact[1]]+ "</a>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0][locale[0]] + "<br>"
|
text += fieldText + content[g[field][0]]+ "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
else if (field=="status") {
|
else if (field=="status") {
|
||||||
text += fieldText + g[field][locale[0]] + "<br>"
|
text += fieldText + content[g[field]] + "<br>"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
|
|
|
@ -2,64 +2,28 @@ export let coops = [
|
||||||
{
|
{
|
||||||
logo: "chiron_logo",
|
logo: "chiron_logo",
|
||||||
name: "Chiron Health",
|
name: "Chiron Health",
|
||||||
location: [
|
location: ["EstoniaKohtlaJarve",[59.40338782864918, 27.286240058760324]],
|
||||||
{
|
market: "wellnessAndHealth",
|
||||||
en: "Estonia, Kohtla-Järve",
|
|
||||||
ru: "Эстония, Кохтла-Ярве"
|
|
||||||
},
|
|
||||||
[59.40338782864918, 27.286240058760324]],
|
|
||||||
market: {
|
|
||||||
en: "wellness and health",
|
|
||||||
ru: "благополучие и здоровье"
|
|
||||||
},
|
|
||||||
workers: 2,
|
workers: 2,
|
||||||
status: {
|
status: "inDevelopment",
|
||||||
en: "launch in 2 months",
|
|
||||||
ru: "запуск через 2 месяца"
|
|
||||||
},
|
|
||||||
website: "chrn.health",
|
website: "chrn.health",
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"],
|
||||||
{
|
description: "descriptionChironHealth"
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}],
|
|
||||||
description: {
|
|
||||||
en: "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
|
|
||||||
ru: "Chiron Health — это платформа о здоровье, предлагающая курсы и услуги по вопросам питания, физических упражнений, сна и психического благополучия"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
logo: "kuusk_logo",
|
logo: "kuusk_logo",
|
||||||
name: "Kuusk",
|
name: "Kuusk",
|
||||||
location: [
|
location: ["EstoniaKohtlaJarve",[59.405466538976185, 27.289104862336302]],
|
||||||
{
|
market: "herbalTeas",
|
||||||
en: "Estonia, Kohtla-Järve",
|
|
||||||
ru: "Эстония, Кохтла-Ярве"
|
|
||||||
},
|
|
||||||
[59.405466538976185, 27.289104862336302]],
|
|
||||||
market: {
|
|
||||||
en: "herbal teas",
|
|
||||||
ru: "травяные чаи"
|
|
||||||
},
|
|
||||||
workers: 1,
|
workers: 1,
|
||||||
status: {
|
status: "inDevelopment",
|
||||||
en: "launch in TBD months",
|
|
||||||
ru: "запуск через X месяцев"
|
|
||||||
},
|
|
||||||
website: "-",
|
website: "-",
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"],
|
||||||
{
|
description: "kuuskDescription"
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}],
|
|
||||||
description: {
|
|
||||||
en: "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course.",
|
|
||||||
ru: "Kuusk — интернет-магазин, в котором продаются травяные чаи исключительно из местных дикорастущих растений, а также онлайн-курс по собирательству."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersCoops(map,content,locale) {
|
export function addMarkersCoops(map,content) {
|
||||||
for (let g of coops) {
|
for (let g of coops) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
|
@ -72,17 +36,17 @@ export function addMarkersCoops(map,content,locale) {
|
||||||
text += "<picture><source srcset=" + "/img/coops/" + g.logo + ".webp><source srcset='/img/coops/" + g.logo + ".png'><img alt='logo' style='position: relative; max-height: 5rem; max-width: 100%; margin: auto;'></picture>" + "<br>"
|
text += "<picture><source srcset=" + "/img/coops/" + g.logo + ".webp><source srcset='/img/coops/" + g.logo + ".png'><img alt='logo' style='position: relative; max-height: 5rem; max-width: 100%; margin: auto;'></picture>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="contact") {
|
else if (field=="contact") {
|
||||||
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>" + "<br>"
|
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + content[g.contact[1]] + "</a>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="website") {
|
else if (field=="website") {
|
||||||
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0][locale[0]] + "<br>"
|
text += fieldText + content[g[field][0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
else if (field=="market" || field=="status" || field=="description") {
|
else if (field=="market" || field=="status" || field=="description") {
|
||||||
text += fieldText + g[field][locale[0]] + "<br>"
|
text += fieldText + content[g[field]] + "<br>"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
|
|
|
@ -1,87 +1,42 @@
|
||||||
export let groups = [
|
export let groups = [
|
||||||
{
|
{
|
||||||
location: [
|
location: ["DenmarkCopenhagen",[55.6840661150132, 12.557133959514688]],
|
||||||
{
|
|
||||||
en: "Denmark, Copenhagen",
|
|
||||||
ru: "Дания, Копенгаген"
|
|
||||||
},
|
|
||||||
[55.6840661150132, 12.557133959514688]],
|
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://discord.gg/xAPZmyr8B6",
|
contact: ["https://discord.gg/xAPZmyr8B6","DiscordInviteLink"]
|
||||||
{
|
|
||||||
en: "Discord invite link",
|
|
||||||
ru: "Discord ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: [
|
location: ["DenmarkKolding", [55.49261908652738, 9.470268969851743]],
|
||||||
{
|
|
||||||
en: "Denmark, Kolding",
|
|
||||||
ru: "Дания, Колдинг"
|
|
||||||
},
|
|
||||||
[55.49261908652738, 9.470268969851743]],
|
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: [
|
location: ["EstoniaKohtlaJarve", [59.40629447076191, 27.280605339416322]],
|
||||||
{
|
|
||||||
en: "Estonia, Kohtla-Järve",
|
|
||||||
ru: "Эстония, Кохтла-Ярве"
|
|
||||||
},
|
|
||||||
[59.40629447076191, 27.280605339416322]],
|
|
||||||
members: 3,
|
members: 3,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: [
|
location: ["GreeceAthens", [37.94877252621736, 23.677622972996158]],
|
||||||
{
|
|
||||||
en: "Greece, Athens",
|
|
||||||
ru: "Греция, Афины"
|
|
||||||
},
|
|
||||||
[37.94877252621736, 23.677622972996158]],
|
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: [
|
location: ["LatviaRiga", [56.94748425529816, 24.003027136431925]],
|
||||||
{
|
|
||||||
en: "Latvia, Riga",
|
|
||||||
ru: "Латвия, Рига"
|
|
||||||
},
|
|
||||||
[56.94748425529816, 24.003027136431925]],
|
|
||||||
members: 2,
|
members: 2,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersGroups(map,content,locale) {
|
export function addMarkersGroups(map,content) {
|
||||||
for (let g of groups) {
|
for (let g of groups) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = content[field] + ": "
|
let fieldText = content[field] + ": "
|
||||||
if (field=="contact") {
|
if (field=="contact") {
|
||||||
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
|
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + content[g.contact[1]] + "</a>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0][locale[0]] + "<br>"
|
text += fieldText + content[g[field][0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
export let partners = [
|
||||||
|
{
|
||||||
|
name: "Gaia's Fall",
|
||||||
|
type: "typeGaiasFall",
|
||||||
|
link: "https://discord.libsoc.org/invite/",
|
||||||
|
description: "descriptionGaiasFall",
|
||||||
|
logo: "gaias_fall"
|
||||||
|
}
|
||||||
|
]
|
|
@ -6,5 +6,8 @@
|
||||||
"location": "Location",
|
"location": "Location",
|
||||||
"status": "Status",
|
"status": "Status",
|
||||||
"members": "Members",
|
"members": "Members",
|
||||||
"contact": "Contact"
|
"contact": "Contact",
|
||||||
|
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
|
||||||
|
"forming": "forming",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp invite link"
|
||||||
}
|
}
|
|
@ -11,5 +11,13 @@
|
||||||
"workers": "Workers",
|
"workers": "Workers",
|
||||||
"contact": "Contact",
|
"contact": "Contact",
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
"website": "Website"
|
"website": "Website",
|
||||||
|
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
|
||||||
|
"wellnessAndHealth": "wellness and health",
|
||||||
|
"inDevelopment": "in development",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp invite link",
|
||||||
|
"descriptionChironHealth": "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
|
||||||
|
"herbalTeas": "herbal teas",
|
||||||
|
"kuuskDescription": "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course."
|
||||||
|
|
||||||
}
|
}
|
|
@ -6,5 +6,12 @@
|
||||||
"subheading2": "Europe",
|
"subheading2": "Europe",
|
||||||
"location": "Location",
|
"location": "Location",
|
||||||
"members": "Members",
|
"members": "Members",
|
||||||
"contact": "Contact"
|
"contact": "Contact",
|
||||||
|
"DenmarkCopenhagen": "Denmark, Copenhagen",
|
||||||
|
"DenmarkKolding": "Denmark, Kolding",
|
||||||
|
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
|
||||||
|
"GreeceAthens": "Greece, Athens",
|
||||||
|
"LatviaRiga": "Latvia, Riga",
|
||||||
|
"DiscordInviteLink": "Discord invite link",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp invite link"
|
||||||
}
|
}
|
|
@ -7,5 +7,8 @@
|
||||||
"location": "Location",
|
"location": "Location",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
"link": "Link",
|
"link": "Link",
|
||||||
"description": "Description"
|
"description": "Description",
|
||||||
|
"typeGaiasFall": "a place to discuss and organize",
|
||||||
|
"descriptionGaiasFall": "Gaia's Fall is a server that promotes Solarpunk ideals, environmentalism, anarchism, and anti-capitalism. We encourage civil debates, discussions of theories and possibilities, and the creation of communities focused on shaping a better world. It is our official Discord server where we organize and work together."
|
||||||
|
|
||||||
}
|
}
|
|
@ -6,5 +6,8 @@
|
||||||
"location": "Локация",
|
"location": "Локация",
|
||||||
"status": "Статус",
|
"status": "Статус",
|
||||||
"members": "Участники",
|
"members": "Участники",
|
||||||
"contact": "Контакт"
|
"contact": "Контакт",
|
||||||
|
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
|
||||||
|
"forming": "формируется",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp ссылка"
|
||||||
}
|
}
|
|
@ -11,5 +11,12 @@
|
||||||
"workers": "Работники",
|
"workers": "Работники",
|
||||||
"contact": "Контакт",
|
"contact": "Контакт",
|
||||||
"description": "Описание",
|
"description": "Описание",
|
||||||
"website": "Вебсайт"
|
"website": "Вебсайт",
|
||||||
|
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
|
||||||
|
"wellnessAndHealth": "благополучие и здоровье",
|
||||||
|
"inDevelopment": "в разработке",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp ссылка",
|
||||||
|
"descriptionChironHealth": "Chiron Health — это платформа о здоровье, предлагающая курсы и услуги по вопросам питания, физических упражнений, сна и психического благополучия",
|
||||||
|
"herbalTeas": "травяные чаи",
|
||||||
|
"kuuskDescription": "Kuusk — интернет-магазин, в котором продаются травяные чаи исключительно из местных дикорастущих растений, а также онлайн-курс по собирательству."
|
||||||
}
|
}
|
|
@ -6,5 +6,12 @@
|
||||||
"subheading2": "Европа",
|
"subheading2": "Европа",
|
||||||
"location": "Локация",
|
"location": "Локация",
|
||||||
"members": "Участники",
|
"members": "Участники",
|
||||||
"contact": "Контакт"
|
"contact": "Контакт",
|
||||||
|
"DenmarkCopenhagen": "Дания, Копенгаген",
|
||||||
|
"DenmarkKolding": "Дания, Колдинг",
|
||||||
|
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
|
||||||
|
"GreeceAthens": "Греция, Афины",
|
||||||
|
"LatviaRiga": "Латвия, Рига",
|
||||||
|
"DiscordInviteLink": "Discord ссылка",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp ссылка"
|
||||||
}
|
}
|
|
@ -7,5 +7,7 @@
|
||||||
"location": "Локация",
|
"location": "Локация",
|
||||||
"type": "Тип",
|
"type": "Тип",
|
||||||
"link": "Ссылка",
|
"link": "Ссылка",
|
||||||
"description": "Описание"
|
"description": "Описание",
|
||||||
|
"typeGaiasFall": "место для общения и организации",
|
||||||
|
"descriptionGaiasFall": "Gaia's Fall — это сервер, который продвигает идеалы соларпанка, защиту окружающей среды, анархизм и антикапитализм. Мы поощряем гражданские дебаты, обсуждение теорий и возможностей, а также создание сообществ, сосредоточенных на формировании лучшего мира. Это наш официальный сервер Discord, на котором мы организуемся и работаем вместе."
|
||||||
}
|
}
|
|
@ -16,9 +16,9 @@
|
||||||
|
|
||||||
let locale = loadLocaleContent(content,"communities-component",loaded)
|
let locale = loadLocaleContent(content,"communities-component",loaded)
|
||||||
|
|
||||||
function mapCallbackCommunities(createMap,content,locale) {
|
function mapCallbackCommunities(createMap,content) {
|
||||||
let map = createMap([51.505, -0.09],3)
|
let map = createMap([51.505, -0.09],3)
|
||||||
addMarkersCommunities(map,content,locale)
|
addMarkersCommunities(map,content)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
@ -39,10 +39,10 @@
|
||||||
<h4>{$content.subheading2}</h4>
|
<h4>{$content.subheading2}</h4>
|
||||||
{#each communities as community}
|
{#each communities as community}
|
||||||
<div class="location-info">
|
<div class="location-info">
|
||||||
<p><b>{$content.location}: </b>{community.location[0][locale]}</p>
|
<p><b>{$content.location}: </b>{$content[community.location[0]]}</p>
|
||||||
<p><b>{$content.status}: </b>{community.status[locale]}</p>
|
<p><b>{$content.status}: </b>{$content[community.status]}</p>
|
||||||
<p><b>{$content.members}: </b>{community.members}</p>
|
<p><b>{$content.members}: </b>{community.members}</p>
|
||||||
<p><b>{$content.contact}: </b><a href={community.contact[0]} target=;_blank; rel=noreferrer>{community.contact[1][locale]}</a></p>
|
<p><b>{$content.contact}: </b><a href={community.contact[0]} target=;_blank; rel=noreferrer>{$content[community.contact[1]]}</a></p>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
|
|
||||||
let locale = loadLocaleContent(content,"cooperatives-component",loaded)
|
let locale = loadLocaleContent(content,"cooperatives-component",loaded)
|
||||||
|
|
||||||
function mapCallbackCoops(createMap,content,locale) {
|
function mapCallbackCoops(createMap,content) {
|
||||||
let map = createMap([51.505, -0.09],3)
|
let map = createMap([51.505, -0.09],3)
|
||||||
addMarkersCoops(map,content,locale)
|
addMarkersCoops(map,content)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
@ -42,12 +42,12 @@
|
||||||
<div class="img-general-info">
|
<div class="img-general-info">
|
||||||
<div>
|
<div>
|
||||||
<p><b>{$content.name}: </b>{coop.name}</p>
|
<p><b>{$content.name}: </b>{coop.name}</p>
|
||||||
<p><b>{$content.location}: </b>{coop.location[0][locale]}</p>
|
<p><b>{$content.location}: </b>{$content[coop.location[0]]}</p>
|
||||||
<p><b>{$content.market}: </b>{coop.market[locale]}</p>
|
<p><b>{$content.market}: </b>{$content[coop.market]}</p>
|
||||||
<p><b>{$content.workers}: </b>{coop.workers}</p>
|
<p><b>{$content.workers}: </b>{coop.workers}</p>
|
||||||
<p><b>{$content.status}: </b>{coop.status[locale]}</p>
|
<p><b>{$content.status}: </b>{$content[coop.status]}</p>
|
||||||
<p><b>{$content.website}: </b><a href={"https://www."+coop.website} target="_blank" rel=noreferrer>{coop.website}</a></p>
|
<p><b>{$content.website}: </b><a href={"https://www."+coop.website} target="_blank" rel=noreferrer>{coop.website}</a></p>
|
||||||
<p><b>{$content.contact}: </b><a href={coop.contact[0]} target=;_blank; rel=noreferrer>{coop.contact[1][locale]}</a></p>
|
<p><b>{$content.contact}: </b><a href={coop.contact[0]} target=;_blank; rel=noreferrer>{$content[coop.contact[1]]}</a></p>
|
||||||
</div>
|
</div>
|
||||||
<picture>
|
<picture>
|
||||||
<source srcset={"/img/coops/"+coop.logo+".webp"}>
|
<source srcset={"/img/coops/"+coop.logo+".webp"}>
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
<img class="coop-logo" alt="logo">
|
<img class="coop-logo" alt="logo">
|
||||||
</picture>
|
</picture>
|
||||||
</div>
|
</div>
|
||||||
<p><b>{$content.description}: </b>{coop.description[locale]}</p>
|
<p><b>{$content.description}: </b>{$content[coop.description]}</p>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
|
|
||||||
let locale = loadLocaleContent(content,"groups-component",loaded)
|
let locale = loadLocaleContent(content,"groups-component",loaded)
|
||||||
|
|
||||||
function mapCallbackGroups(createMap,content,locale) {
|
function mapCallbackGroups(createMap,content) {
|
||||||
let map = createMap([51.505, -0.09],3)
|
let map = createMap([51.505, -0.09],3)
|
||||||
addMarkersGroups(map,content,locale)
|
addMarkersGroups(map,content)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
@ -40,9 +40,9 @@
|
||||||
<h4>{$content.subheading2}</h4>
|
<h4>{$content.subheading2}</h4>
|
||||||
{#each groups as group}
|
{#each groups as group}
|
||||||
<div class="location-info">
|
<div class="location-info">
|
||||||
<p><b>{$content.location}: </b>{group.location[0][locale]}</p>
|
<p><b>{$content.location}: </b>{$content[group.location[0]]}</p>
|
||||||
<p><b>{$content.members}: </b>{group.members}</p>
|
<p><b>{$content.members}: </b>{group.members}</p>
|
||||||
<p><b>{$content.contact}: </b><a href={group.contact[0]} target=;_blank; rel=noreferrer>{group.contact[1][locale]}</a></p>
|
<p><b>{$content.contact}: </b><a href={group.contact[0]} target=;_blank; rel=noreferrer>{$content[group.contact[1]]}</a></p>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import { writable } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||||
//import { communities, addMarkersCommunities } from '/js/communities.js'
|
import { partners } from '/js/partners.js'
|
||||||
|
|
||||||
// Import components
|
// Import components
|
||||||
import "/js/components/map-component.js"
|
import "/js/components/map-component.js"
|
||||||
|
@ -16,22 +16,6 @@
|
||||||
|
|
||||||
let locale = loadLocaleContent(content,"partners-component",loaded)
|
let locale = loadLocaleContent(content,"partners-component",loaded)
|
||||||
|
|
||||||
let partners = [
|
|
||||||
{
|
|
||||||
name: "Gaia's Fall",
|
|
||||||
type: {
|
|
||||||
en: "a place to discuss and organize",
|
|
||||||
ru: "место для общения и организации"
|
|
||||||
},
|
|
||||||
link: "https://discord.libsoc.org/invite/",
|
|
||||||
description: {
|
|
||||||
en: "Gaia's Fall is a server that promotes Solarpunk ideals, environmentalism, anarchism, and anti-capitalism. We encourage civil debates, discussions of theories and possibilities, and the creation of communities focused on shaping a better world. It is our official Discord server where we organize and work together.",
|
|
||||||
ru: "Gaia's Fall — это сервер, который продвигает идеалы соларпанка, защиту окружающей среды, анархизм и антикапитализм. Мы поощряем гражданские дебаты, обсуждение теорий и возможностей, а также создание сообществ, сосредоточенных на формировании лучшего мира. Это наш официальный сервер Discord, на котором мы организуемся и работаем вместе"
|
|
||||||
},
|
|
||||||
logo: "gaias_fall"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -57,11 +41,11 @@
|
||||||
</picture>
|
</picture>
|
||||||
<div>
|
<div>
|
||||||
<p><b>{$content.name}: </b>{partner.name}</p>
|
<p><b>{$content.name}: </b>{partner.name}</p>
|
||||||
<p><b>{$content.type}: </b>{partner.type[locale]}</p>
|
<p><b>{$content.type}: </b>{$content[partner.type]}</p>
|
||||||
<p><b>{$content.link}: </b><a href={partner.link} target=;_blank; rel=noreferrer>{partner.link}</a></p>
|
<p><b>{$content.link}: </b><a href={partner.link} target=;_blank; rel=noreferrer>{partner.link}</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p><b>{$content.description}: </b>{partner.description[locale]}</p>
|
<p><b>{$content.description}: </b>{$content[partner.description]}</p>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,39 +1,28 @@
|
||||||
|
|
||||||
export let communities = [
|
export let communities = [
|
||||||
{
|
{
|
||||||
location: [{
|
location: ["EstoniaKohtlaJarve",[59.409521829709504, 27.288415912535914]],
|
||||||
en: "Estonia, Kohtla-Järve",
|
status: "forming",
|
||||||
ru: "Эстония, Кохтла-Ярве"
|
|
||||||
},
|
|
||||||
[59.409521829709504, 27.288415912535914]],
|
|
||||||
status: {
|
|
||||||
en: "forming",
|
|
||||||
ru: "формируется"
|
|
||||||
},
|
|
||||||
members: 2,
|
members: 2,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersCommunities(map,content,locale) {
|
export function addMarkersCommunities(map,content) {
|
||||||
for (let g of communities) {
|
for (let g of communities) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = content[field] + ": "
|
let fieldText = content[field] + ": "
|
||||||
if (field=="contact") {
|
if (field=="contact") {
|
||||||
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
|
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + content[g.contact[1]]+ "</a>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0][locale[0]] + "<br>"
|
text += fieldText + content[g[field][0]]+ "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
else if (field=="status") {
|
else if (field=="status") {
|
||||||
text += fieldText + g[field][locale[0]] + "<br>"
|
text += fieldText + content[g[field]] + "<br>"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
|
|
|
@ -1 +1,440 @@
|
||||||
import{S as t,i as n,a as o,b as e,s as i,e as m,n as a,d as s,c as r,o as c,f as l,t as g,g as p,h,j as u,k as d,l as b,m as f,p as x}from"./index-4348483d.js";import{w as j}from"./index-71440b21.js";import{communities as v,addMarkersCommunities as w}from"../../../../../../../../../js/communities.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,n,o){const e=t.slice();return e[6]=n[o],e}function z(t){let n,o,i,m,a,r,c,j,w,k,z,E,O,R,T,A,C,H,L,M,N=t[0].heading+"",S=t[0].p1+"",_=t[0].subheading1+"",q=t[0].subheading2+"",B=v,F=[];for(let n=0;n<B.length;n+=1)F[n]=D(y(t,B,n));return{c(){n=l("div"),o=l("div"),i=l("h1"),m=g(N),a=p(),r=l("img"),j=p(),w=l("p"),k=g(S),z=p(),E=l("h3"),O=g(_),R=p(),T=l("map-component"),C=p(),H=l("h4"),L=g(q),M=p();for(let t=0;t<F.length;t+=1)F[t].c();h(r,"id","communities-img"),u(r.src,c="/img/common/communities.svg")||h(r,"src","/img/common/communities.svg"),h(r,"alt","communities"),d(T,"id","map"),d(T,"callback",A=t[5]),h(o,"id","text-container"),h(n,"id","container")},m(t,s){e(t,n,s),b(n,o),b(o,i),b(i,m),b(o,a),b(o,r),b(o,j),b(o,w),b(w,k),b(o,z),b(o,E),b(E,O),b(o,R),b(o,T),b(o,C),b(o,H),b(H,L),b(o,M);for(let t=0;t<F.length;t+=1)F[t].m(o,null)},p(t,n){if(1&n&&N!==(N=t[0].heading+"")&&f(m,N),1&n&&S!==(S=t[0].p1+"")&&f(k,S),1&n&&_!==(_=t[0].subheading1+"")&&f(O,_),1&n&&A!==(A=t[5])&&d(T,"callback",A),1&n&&q!==(q=t[0].subheading2+"")&&f(L,q),9&n){let e;for(B=v,e=0;e<B.length;e+=1){const i=y(t,B,e);F[e]?F[e].p(i,n):(F[e]=D(i),F[e].c(),F[e].m(o,null))}for(;e<F.length;e+=1)F[e].d(1);F.length=B.length}},d(t){t&&s(n),x(F,t)}}}function D(t){let n,o,i,m,a,r,c,u,d,x,j,v,w,k,y,z,D,E,O,R,T,A,C,H,L,M,N=t[0].location+"",S=t[6].location[0][t[3]]+"",_=t[0].status+"",q=t[6].status[t[3]]+"",B=t[0].members+"",F=t[6].members+"",G=t[0].contact+"",I=t[6].contact[1][t[3]]+"";return{c(){n=l("div"),o=l("p"),i=l("b"),m=g(N),a=g(": "),r=g(S),c=p(),u=l("p"),d=l("b"),x=g(_),j=g(": "),v=g(q),w=p(),k=l("p"),y=l("b"),z=g(B),D=g(": "),E=g(F),O=p(),R=l("p"),T=l("b"),A=g(G),C=g(": "),H=l("a"),L=g(I),M=p(),h(H,"href",t[6].contact[0]),h(H,"target",";_blank;"),h(H,"rel","noreferrer"),h(n,"class","location-info")},m(t,s){e(t,n,s),b(n,o),b(o,i),b(i,m),b(i,a),b(o,r),b(n,c),b(n,u),b(u,d),b(d,x),b(d,j),b(u,v),b(n,w),b(n,k),b(k,y),b(y,z),b(y,D),b(k,E),b(n,O),b(n,R),b(R,T),b(T,A),b(T,C),b(R,H),b(H,L),b(n,M)},p(t,n){1&n&&N!==(N=t[0].location+"")&&f(m,N),1&n&&_!==(_=t[0].status+"")&&f(x,_),1&n&&B!==(B=t[0].members+"")&&f(z,B),1&n&&G!==(G=t[0].contact+"")&&f(A,G)},d(t){t&&s(n)}}}function E(t){let n,o=0!=Object.keys(t[0]).length,i=o&&z(t);return{c(){i&&i.c(),n=m(),this.c=a},m(t,o){i&&i.m(t,o),e(t,n,o)},p(t,[e]){1&e&&(o=0!=Object.keys(t[0]).length),o?i?i.p(t,e):(i=z(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:a,o:a,d(t){i&&i.d(t),t&&s(n)}}}function O(t,n,o){let e,i,m=j({});r(t,m,(t=>o(0,e=t)));let a=k(m,"communities-component",i);function s(t,n,o){let e=t([51.505,-.09],3);w(e,n,o)}c((()=>{}));return[e,i,m,a,s,t=>s(t,e,a)]}class R extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#communities-img{position:absolute;width:11.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>",n(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},O,E,i,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("communities-component",R);export{R as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, c as validate_store, e as component_subscribe, o as onMount, g as globals, f as validate_each_argument, h as empty, n as noop, j as detach_dev, k as element, t as text, l as space, m as add_location, p as attr_dev, q as src_url_equal, r as set_custom_element_data, u as append_dev, w as set_data_dev, x as destroy_each } from './index-42a25c61.js';
|
||||||
|
import { w as writable } from './index-a1c185ea.js';
|
||||||
|
import { communities, addMarkersCommunities } from '../../../../../../../../../js/communities.js';
|
||||||
|
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js';
|
||||||
|
import '../../../../../../../../../js/components/map-component.js';
|
||||||
|
|
||||||
|
/* src\communities-component.svelte generated by Svelte v3.52.0 */
|
||||||
|
|
||||||
|
const { Object: Object_1 } = globals;
|
||||||
|
|
||||||
|
const file = "src\\communities-component.svelte";
|
||||||
|
|
||||||
|
function get_each_context(ctx, list, i) {
|
||||||
|
const child_ctx = ctx.slice();
|
||||||
|
child_ctx[6] = list[i];
|
||||||
|
return child_ctx;
|
||||||
|
}
|
||||||
|
|
||||||
|
// (30:4) {#if Object.keys($content).length!=0}
|
||||||
|
function create_if_block(ctx) {
|
||||||
|
let div1;
|
||||||
|
let div0;
|
||||||
|
let h1;
|
||||||
|
let t0_value = /*$content*/ ctx[0].heading + "";
|
||||||
|
let t0;
|
||||||
|
let t1;
|
||||||
|
let img;
|
||||||
|
let img_src_value;
|
||||||
|
let t2;
|
||||||
|
let p;
|
||||||
|
let t3_value = /*$content*/ ctx[0].p1 + "";
|
||||||
|
let t3;
|
||||||
|
let t4;
|
||||||
|
let h3;
|
||||||
|
let t5_value = /*$content*/ ctx[0].subheading1 + "";
|
||||||
|
let t5;
|
||||||
|
let t6;
|
||||||
|
let map_component;
|
||||||
|
let map_component_callback_value;
|
||||||
|
let t7;
|
||||||
|
let h4;
|
||||||
|
let t8_value = /*$content*/ ctx[0].subheading2 + "";
|
||||||
|
let t8;
|
||||||
|
let t9;
|
||||||
|
let each_value = communities;
|
||||||
|
validate_each_argument(each_value);
|
||||||
|
let each_blocks = [];
|
||||||
|
|
||||||
|
for (let i = 0; i < each_value.length; i += 1) {
|
||||||
|
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
||||||
|
}
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div1 = element("div");
|
||||||
|
div0 = element("div");
|
||||||
|
h1 = element("h1");
|
||||||
|
t0 = text(t0_value);
|
||||||
|
t1 = space();
|
||||||
|
img = element("img");
|
||||||
|
t2 = space();
|
||||||
|
p = element("p");
|
||||||
|
t3 = text(t3_value);
|
||||||
|
t4 = space();
|
||||||
|
h3 = element("h3");
|
||||||
|
t5 = text(t5_value);
|
||||||
|
t6 = space();
|
||||||
|
map_component = element("map-component");
|
||||||
|
t7 = space();
|
||||||
|
h4 = element("h4");
|
||||||
|
t8 = text(t8_value);
|
||||||
|
t9 = space();
|
||||||
|
|
||||||
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].c();
|
||||||
|
}
|
||||||
|
|
||||||
|
add_location(h1, file, 33, 16, 960);
|
||||||
|
attr_dev(img, "id", "communities-img");
|
||||||
|
if (!src_url_equal(img.src, img_src_value = "/img/common/communities.svg")) attr_dev(img, "src", img_src_value);
|
||||||
|
attr_dev(img, "alt", "communities");
|
||||||
|
add_location(img, file, 34, 16, 1005);
|
||||||
|
add_location(p, file, 35, 16, 1101);
|
||||||
|
add_location(h3, file, 36, 16, 1139);
|
||||||
|
set_custom_element_data(map_component, "id", "map");
|
||||||
|
set_custom_element_data(map_component, "callback", map_component_callback_value = /*func*/ ctx[5]);
|
||||||
|
add_location(map_component, file, 37, 16, 1188);
|
||||||
|
add_location(h4, file, 38, 16, 1322);
|
||||||
|
attr_dev(div0, "id", "text-container");
|
||||||
|
add_location(div0, file, 32, 12, 917);
|
||||||
|
attr_dev(div1, "id", "container");
|
||||||
|
add_location(div1, file, 30, 8, 814);
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div1, anchor);
|
||||||
|
append_dev(div1, div0);
|
||||||
|
append_dev(div0, h1);
|
||||||
|
append_dev(h1, t0);
|
||||||
|
append_dev(div0, t1);
|
||||||
|
append_dev(div0, img);
|
||||||
|
append_dev(div0, t2);
|
||||||
|
append_dev(div0, p);
|
||||||
|
append_dev(p, t3);
|
||||||
|
append_dev(div0, t4);
|
||||||
|
append_dev(div0, h3);
|
||||||
|
append_dev(h3, t5);
|
||||||
|
append_dev(div0, t6);
|
||||||
|
append_dev(div0, map_component);
|
||||||
|
append_dev(div0, t7);
|
||||||
|
append_dev(div0, h4);
|
||||||
|
append_dev(h4, t8);
|
||||||
|
append_dev(div0, t9);
|
||||||
|
|
||||||
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].m(div0, null);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
p: function update(ctx, dirty) {
|
||||||
|
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].heading + "")) set_data_dev(t0, t0_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t3_value !== (t3_value = /*$content*/ ctx[0].p1 + "")) set_data_dev(t3, t3_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t5_value !== (t5_value = /*$content*/ ctx[0].subheading1 + "")) set_data_dev(t5, t5_value);
|
||||||
|
|
||||||
|
if (dirty & /*$content*/ 1 && map_component_callback_value !== (map_component_callback_value = /*func*/ ctx[5])) {
|
||||||
|
set_custom_element_data(map_component, "callback", map_component_callback_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (dirty & /*$content*/ 1 && t8_value !== (t8_value = /*$content*/ ctx[0].subheading2 + "")) set_data_dev(t8, t8_value);
|
||||||
|
|
||||||
|
if (dirty & /*communities, $content*/ 1) {
|
||||||
|
each_value = communities;
|
||||||
|
validate_each_argument(each_value);
|
||||||
|
let i;
|
||||||
|
|
||||||
|
for (i = 0; i < each_value.length; i += 1) {
|
||||||
|
const child_ctx = get_each_context(ctx, each_value, i);
|
||||||
|
|
||||||
|
if (each_blocks[i]) {
|
||||||
|
each_blocks[i].p(child_ctx, dirty);
|
||||||
|
} else {
|
||||||
|
each_blocks[i] = create_each_block(child_ctx);
|
||||||
|
each_blocks[i].c();
|
||||||
|
each_blocks[i].m(div0, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].d(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
each_blocks.length = each_value.length;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div1);
|
||||||
|
destroy_each(each_blocks, detaching);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_if_block.name,
|
||||||
|
type: "if",
|
||||||
|
source: "(30:4) {#if Object.keys($content).length!=0}",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// (40:16) {#each communities as community}
|
||||||
|
function create_each_block(ctx) {
|
||||||
|
let div;
|
||||||
|
let p0;
|
||||||
|
let b0;
|
||||||
|
let t0_value = /*$content*/ ctx[0].location + "";
|
||||||
|
let t0;
|
||||||
|
let t1;
|
||||||
|
let t2_value = /*$content*/ ctx[0][/*community*/ ctx[6].location[0]] + "";
|
||||||
|
let t2;
|
||||||
|
let t3;
|
||||||
|
let p1;
|
||||||
|
let b1;
|
||||||
|
let t4_value = /*$content*/ ctx[0].status + "";
|
||||||
|
let t4;
|
||||||
|
let t5;
|
||||||
|
let t6_value = /*$content*/ ctx[0][/*community*/ ctx[6].status] + "";
|
||||||
|
let t6;
|
||||||
|
let t7;
|
||||||
|
let p2;
|
||||||
|
let b2;
|
||||||
|
let t8_value = /*$content*/ ctx[0].members + "";
|
||||||
|
let t8;
|
||||||
|
let t9;
|
||||||
|
let t10_value = /*community*/ ctx[6].members + "";
|
||||||
|
let t10;
|
||||||
|
let t11;
|
||||||
|
let p3;
|
||||||
|
let b3;
|
||||||
|
let t12_value = /*$content*/ ctx[0].contact + "";
|
||||||
|
let t12;
|
||||||
|
let t13;
|
||||||
|
let a;
|
||||||
|
let t14_value = /*$content*/ ctx[0][/*community*/ ctx[6].contact[1]] + "";
|
||||||
|
let t14;
|
||||||
|
let t15;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div = element("div");
|
||||||
|
p0 = element("p");
|
||||||
|
b0 = element("b");
|
||||||
|
t0 = text(t0_value);
|
||||||
|
t1 = text(": ");
|
||||||
|
t2 = text(t2_value);
|
||||||
|
t3 = space();
|
||||||
|
p1 = element("p");
|
||||||
|
b1 = element("b");
|
||||||
|
t4 = text(t4_value);
|
||||||
|
t5 = text(": ");
|
||||||
|
t6 = text(t6_value);
|
||||||
|
t7 = space();
|
||||||
|
p2 = element("p");
|
||||||
|
b2 = element("b");
|
||||||
|
t8 = text(t8_value);
|
||||||
|
t9 = text(": ");
|
||||||
|
t10 = text(t10_value);
|
||||||
|
t11 = space();
|
||||||
|
p3 = element("p");
|
||||||
|
b3 = element("b");
|
||||||
|
t12 = text(t12_value);
|
||||||
|
t13 = text(": ");
|
||||||
|
a = element("a");
|
||||||
|
t14 = text(t14_value);
|
||||||
|
t15 = space();
|
||||||
|
add_location(b0, file, 41, 27, 1481);
|
||||||
|
add_location(p0, file, 41, 24, 1478);
|
||||||
|
add_location(b1, file, 42, 27, 1575);
|
||||||
|
add_location(p1, file, 42, 24, 1572);
|
||||||
|
add_location(b2, file, 43, 27, 1662);
|
||||||
|
add_location(p2, file, 43, 24, 1659);
|
||||||
|
add_location(b3, file, 44, 27, 1741);
|
||||||
|
attr_dev(a, "href", /*community*/ ctx[6].contact[0]);
|
||||||
|
attr_dev(a, "target", ";_blank;");
|
||||||
|
attr_dev(a, "rel", "noreferrer");
|
||||||
|
add_location(a, file, 44, 54, 1768);
|
||||||
|
add_location(p3, file, 44, 24, 1738);
|
||||||
|
attr_dev(div, "class", "location-info");
|
||||||
|
add_location(div, file, 40, 20, 1425);
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div, anchor);
|
||||||
|
append_dev(div, p0);
|
||||||
|
append_dev(p0, b0);
|
||||||
|
append_dev(b0, t0);
|
||||||
|
append_dev(b0, t1);
|
||||||
|
append_dev(p0, t2);
|
||||||
|
append_dev(div, t3);
|
||||||
|
append_dev(div, p1);
|
||||||
|
append_dev(p1, b1);
|
||||||
|
append_dev(b1, t4);
|
||||||
|
append_dev(b1, t5);
|
||||||
|
append_dev(p1, t6);
|
||||||
|
append_dev(div, t7);
|
||||||
|
append_dev(div, p2);
|
||||||
|
append_dev(p2, b2);
|
||||||
|
append_dev(b2, t8);
|
||||||
|
append_dev(b2, t9);
|
||||||
|
append_dev(p2, t10);
|
||||||
|
append_dev(div, t11);
|
||||||
|
append_dev(div, p3);
|
||||||
|
append_dev(p3, b3);
|
||||||
|
append_dev(b3, t12);
|
||||||
|
append_dev(b3, t13);
|
||||||
|
append_dev(p3, a);
|
||||||
|
append_dev(a, t14);
|
||||||
|
append_dev(div, t15);
|
||||||
|
},
|
||||||
|
p: function update(ctx, dirty) {
|
||||||
|
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].location + "")) set_data_dev(t0, t0_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t2_value !== (t2_value = /*$content*/ ctx[0][/*community*/ ctx[6].location[0]] + "")) set_data_dev(t2, t2_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t4_value !== (t4_value = /*$content*/ ctx[0].status + "")) set_data_dev(t4, t4_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t6_value !== (t6_value = /*$content*/ ctx[0][/*community*/ ctx[6].status] + "")) set_data_dev(t6, t6_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t8_value !== (t8_value = /*$content*/ ctx[0].members + "")) set_data_dev(t8, t8_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t12_value !== (t12_value = /*$content*/ ctx[0].contact + "")) set_data_dev(t12, t12_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t14_value !== (t14_value = /*$content*/ ctx[0][/*community*/ ctx[6].contact[1]] + "")) set_data_dev(t14, t14_value);
|
||||||
|
},
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_each_block.name,
|
||||||
|
type: "each",
|
||||||
|
source: "(40:16) {#each communities as community}",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
|
||||||
|
let if_block_anchor;
|
||||||
|
let if_block = show_if && create_if_block(ctx);
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
if (if_block) if_block.c();
|
||||||
|
if_block_anchor = empty();
|
||||||
|
this.c = noop;
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
if (if_block) if_block.m(target, anchor);
|
||||||
|
insert_dev(target, if_block_anchor, anchor);
|
||||||
|
},
|
||||||
|
p: function update(ctx, [dirty]) {
|
||||||
|
if (dirty & /*$content*/ 1) show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
|
||||||
|
|
||||||
|
if (show_if) {
|
||||||
|
if (if_block) {
|
||||||
|
if_block.p(ctx, dirty);
|
||||||
|
} else {
|
||||||
|
if_block = create_if_block(ctx);
|
||||||
|
if_block.c();
|
||||||
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
||||||
|
}
|
||||||
|
} else if (if_block) {
|
||||||
|
if_block.d(1);
|
||||||
|
if_block = null;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (if_block) if_block.d(detaching);
|
||||||
|
if (detaching) detach_dev(if_block_anchor);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let $content;
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('communities-component', slots, []);
|
||||||
|
let loaded;
|
||||||
|
let content = writable({});
|
||||||
|
validate_store(content, 'content');
|
||||||
|
component_subscribe($$self, content, value => $$invalidate(0, $content = value));
|
||||||
|
let locale = loadLocaleContent(content, "communities-component", loaded);
|
||||||
|
|
||||||
|
function mapCallbackCommunities(createMap, content) {
|
||||||
|
let map = createMap([51.505, -0.09], 3);
|
||||||
|
addMarkersCommunities(map, content);
|
||||||
|
}
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = [];
|
||||||
|
|
||||||
|
Object_1.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<communities-component> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
const func = createMap => mapCallbackCommunities(createMap, $content);
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({
|
||||||
|
onMount,
|
||||||
|
writable,
|
||||||
|
communities,
|
||||||
|
addMarkersCommunities,
|
||||||
|
loadLocaleContent,
|
||||||
|
loaded,
|
||||||
|
content,
|
||||||
|
locale,
|
||||||
|
mapCallbackCommunities,
|
||||||
|
$content
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('loaded' in $$props) $$invalidate(1, loaded = $$props.loaded);
|
||||||
|
if ('content' in $$props) $$invalidate(2, content = $$props.content);
|
||||||
|
if ('locale' in $$props) $$invalidate(3, locale = $$props.locale);
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [$content, loaded, content, locale, mapCallbackCommunities, func];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Communities_component extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#communities-img{position:absolute;width:11.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{},
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("communities-component", Communities_component);
|
||||||
|
|
||||||
|
export { Communities_component as default };
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1,99 @@
|
||||||
import{S as e,i as s,a as t,b as o,s as i,f as a,n as r,h as n,d as c,o as d}from"./index-4348483d.js";function p(e){let s;return{c(){s=a("div"),s.innerHTML="<div><p>We use cookies to improve your experience, personalise your content and analyse site usage. By clicking “OK”, you agree to the use of cookies.</p></div>",this.c=r,n(s,"id","wrapper")},m(e,t){o(e,s,t)},p:r,i:r,o:r,d(e){e&&c(s)}}}function u(e){return d((()=>{})),[]}class h extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#wrapper{display:none;position:relative;height:5rem;width:100%;background:white;box-shadow:0 0 0.314rem rgb(187, 187, 187);;}</style>",s(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},u,p,i,{},null),e&&e.target&&o(e.target,this,e.anchor)}}customElements.define("cookies-dialog",h);export{h as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, o as onMount, k as element, n as noop, m as add_location, p as attr_dev, u as append_dev, j as detach_dev } from './index-42a25c61.js';
|
||||||
|
|
||||||
|
/* src\components\cookies-dialog.svelte generated by Svelte v3.52.0 */
|
||||||
|
const file = "src\\components\\cookies-dialog.svelte";
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let div1;
|
||||||
|
let div0;
|
||||||
|
let p;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div1 = element("div");
|
||||||
|
div0 = element("div");
|
||||||
|
p = element("p");
|
||||||
|
p.textContent = "We use cookies to improve your experience, personalise your content and analyse site usage. By clicking “OK”, you agree to the use of cookies.";
|
||||||
|
this.c = noop;
|
||||||
|
add_location(p, file, 19, 8, 248);
|
||||||
|
add_location(div0, file, 18, 4, 233);
|
||||||
|
attr_dev(div1, "id", "wrapper");
|
||||||
|
add_location(div1, file, 17, 0, 209);
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div1, anchor);
|
||||||
|
append_dev(div1, div0);
|
||||||
|
append_dev(div0, p);
|
||||||
|
},
|
||||||
|
p: noop,
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div1);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('cookies-dialog', slots, []);
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = [];
|
||||||
|
|
||||||
|
Object.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<cookies-dialog> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({ onMount });
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Cookies_dialog extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#wrapper{display:none;position:relative;height:5rem;width:100%;background:white;box-shadow:0 0 0.314rem rgb(187, 187, 187);;}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{},
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("cookies-dialog", Cookies_dialog);
|
||||||
|
|
||||||
|
export { Cookies_dialog as default };
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1,307 @@
|
||||||
import{S as t,i as e,a as o,b as r,s as a,e as i,n,d as s,c as m,f as c,t as f,g as l,h as d,v as g,l as h,q as p,m as u}from"./index-4348483d.js";import{w as b}from"./index-71440b21.js";import{loadLocaleContent as w}from"../../../../../../../../../js/libraries/serverTools.js";function v(t){let e,o,a,i,n,m,b,w,v,y,k,x,j,L,_,z,B,C,T,U,A,H,M=t[0].contactUs+"",R=t[0].inviteLink+"",D=t[0].inviteLink+"";return{c(){e=c("footer"),o=c("div"),a=c("div"),i=c("div"),n=c("h2"),m=f(M),b=l(),w=c("p"),v=f("WhatsApp: "),y=c("a"),k=f(R),x=l(),j=c("p"),L=f("Discord: "),_=c("a"),z=f(D),B=l(),C=c("button"),C.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="42.545" height="72.601" viewBox="0 0 42.545 72.601"><g id="Group_268" data-name="Group 268" transform="translate(-6.177 -2.399)"><rect id="Rectangle_146" data-name="Rectangle 146" width="11" height="51" rx="5.5" transform="translate(22 24)" fill="#cb1816"></rect><path id="Path_1145" data-name="Path 1145" d="M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z" fill="#DD1C1A"></path></g></svg>',T=l(),U=c("p"),U.innerHTML='Licensed under a Creative Commons <a href="https://creativecommons.org/licenses/by/4.0/legalcode " target="_blank" rel="noreferrer">CC BY 4.0 license.</a>',d(y,"href","https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh"),d(y,"target","_blank"),d(y,"rel","noreferrer"),g(y,"margin-left","0.5rem"),d(_,"href","https://discord.gg/xAPZmyr8B6"),d(_,"target","_blank"),d(_,"rel","noreferrer"),g(_,"margin-left","1.8rem"),d(i,"id","contact-us-container"),d(a,"id","footer-grid-content-container"),d(a,"class","logged"),d(C,"id","footer-up"),d(C,"aria-label","go up"),d(U,"id","footer-copyright"),d(o,"id","footer-content-container")},m(s,c){r(s,e,c),h(e,o),h(o,a),h(a,i),h(i,n),h(n,m),h(i,b),h(i,w),h(w,v),h(w,y),h(y,k),h(i,x),h(i,j),h(j,L),h(j,_),h(_,z),h(o,B),h(o,C),h(o,T),h(o,U),A||(H=p(C,"click",t[3]),A=!0)},p(t,e){1&e&&M!==(M=t[0].contactUs+"")&&u(m,M),1&e&&R!==(R=t[0].inviteLink+"")&&u(k,R),1&e&&D!==(D=t[0].inviteLink+"")&&u(z,D)},d(t){t&&s(e),A=!1,H()}}}function y(t){let e,o=0!=Object.keys(t[0]).length,a=o&&v(t);return{c(){a&&a.c(),e=i(),this.c=n},m(t,o){a&&a.m(t,o),r(t,e,o)},p(t,[r]){1&r&&(o=0!=Object.keys(t[0]).length),o?a?a.p(t,r):(a=v(t),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i:n,o:n,d(t){a&&a.d(t),t&&s(e)}}}function k(t,e,o){let r,a,i=b({});m(t,i,(t=>o(0,r=t))),w(i,"footer-component",a);return[r,a,i,()=>{location.href="#"}]}class x extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';footer{position:relative;bottom:0;width:100%;height:auto;background:#5B6970;border-top:#cb1816 solid 0.5rem}footer p,footer a{font-family:var(--sans-serif)}#footer-content-container{position:relative;margin:auto;padding-top:2rem;max-width:116rem;width:97vw}#footer-grid-content-container{display:grid;margin-left:2rem;margin-right:2rem;margin-bottom:1rem}.logged{grid-template-columns:auto auto 2rem}footer h2{color:#ffffff;font-size:1.3rem;margin-bottom:0.5rem}#footer-copyright{position:relative;margin:auto;width:100%;bottom:0rem;height:3rem;top:0rem;margin-bottom:0;font-size:1rem;text-align:center}#footer-copyright *{font-size:1rem}footer a{font-size:1.1rem;color:#ffffff}footer p{display:block;font-size:1.1rem;color:#d8d8d8;font-family:var(--sans-serif,sans-serif);margin-bottom:0.5rem}#contact-us-container{width:16rem}#footer-up{position:absolute;width:4.8rem;height:4.8rem;border-radius:3.4rem;top:4rem;right:2rem;background:#ffffff}#footer-up svg{width:40%;height:auto}@media only screen and (max-width: 1170px){.logged{grid-template-rows:auto auto auto;grid-template-columns:auto;row-gap:2rem}#footer-copyright{height:1rem;top:-2rem}}</style>",e(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},k,y,a,{},null),t&&t.target&&r(t.target,this,t.anchor)}}customElements.define("footer-component",x);export{x as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, c as validate_store, e as component_subscribe, g as globals, h as empty, n as noop, j as detach_dev, k as element, t as text, l as space, G as svg_element, m as add_location, p as attr_dev, D as set_style, u as append_dev, y as listen_dev, w as set_data_dev } from './index-42a25c61.js';
|
||||||
|
import { w as writable } from './index-a1c185ea.js';
|
||||||
|
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js';
|
||||||
|
|
||||||
|
/* src\footer\footer-component.svelte generated by Svelte v3.52.0 */
|
||||||
|
|
||||||
|
const { Object: Object_1 } = globals;
|
||||||
|
const file = "src\\footer\\footer-component.svelte";
|
||||||
|
|
||||||
|
// (20:4) {#if Object.keys($content).length!=0}
|
||||||
|
function create_if_block(ctx) {
|
||||||
|
let footer;
|
||||||
|
let div2;
|
||||||
|
let div1;
|
||||||
|
let div0;
|
||||||
|
let h2;
|
||||||
|
let t0_value = /*$content*/ ctx[0].contactUs + "";
|
||||||
|
let t0;
|
||||||
|
let t1;
|
||||||
|
let p0;
|
||||||
|
let t2;
|
||||||
|
let a0;
|
||||||
|
let t3_value = /*$content*/ ctx[0].inviteLink + "";
|
||||||
|
let t3;
|
||||||
|
let t4;
|
||||||
|
let p1;
|
||||||
|
let t5;
|
||||||
|
let a1;
|
||||||
|
let t6_value = /*$content*/ ctx[0].inviteLink + "";
|
||||||
|
let t6;
|
||||||
|
let t7;
|
||||||
|
let button;
|
||||||
|
let svg;
|
||||||
|
let g;
|
||||||
|
let rect;
|
||||||
|
let path;
|
||||||
|
let t8;
|
||||||
|
let p2;
|
||||||
|
let t9;
|
||||||
|
let a2;
|
||||||
|
let mounted;
|
||||||
|
let dispose;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
footer = element("footer");
|
||||||
|
div2 = element("div");
|
||||||
|
div1 = element("div");
|
||||||
|
div0 = element("div");
|
||||||
|
h2 = element("h2");
|
||||||
|
t0 = text(t0_value);
|
||||||
|
t1 = space();
|
||||||
|
p0 = element("p");
|
||||||
|
t2 = text("WhatsApp: ");
|
||||||
|
a0 = element("a");
|
||||||
|
t3 = text(t3_value);
|
||||||
|
t4 = space();
|
||||||
|
p1 = element("p");
|
||||||
|
t5 = text("Discord: ");
|
||||||
|
a1 = element("a");
|
||||||
|
t6 = text(t6_value);
|
||||||
|
t7 = space();
|
||||||
|
button = element("button");
|
||||||
|
svg = svg_element("svg");
|
||||||
|
g = svg_element("g");
|
||||||
|
rect = svg_element("rect");
|
||||||
|
path = svg_element("path");
|
||||||
|
t8 = space();
|
||||||
|
p2 = element("p");
|
||||||
|
t9 = text("Licensed under a Creative Commons ");
|
||||||
|
a2 = element("a");
|
||||||
|
a2.textContent = "CC BY 4.0 license.";
|
||||||
|
add_location(h2, file, 24, 24, 660);
|
||||||
|
attr_dev(a0, "href", "https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh");
|
||||||
|
attr_dev(a0, "target", "_blank");
|
||||||
|
attr_dev(a0, "rel", "noreferrer");
|
||||||
|
set_style(a0, "margin-left", "0.5rem");
|
||||||
|
add_location(a0, file, 26, 37, 827);
|
||||||
|
add_location(p0, file, 26, 24, 814);
|
||||||
|
attr_dev(a1, "href", "https://discord.gg/xAPZmyr8B6");
|
||||||
|
attr_dev(a1, "target", "_blank");
|
||||||
|
attr_dev(a1, "rel", "noreferrer");
|
||||||
|
set_style(a1, "margin-left", "1.8rem");
|
||||||
|
add_location(a1, file, 27, 36, 1013);
|
||||||
|
add_location(p1, file, 27, 24, 1001);
|
||||||
|
attr_dev(div0, "id", "contact-us-container");
|
||||||
|
add_location(div0, file, 23, 20, 603);
|
||||||
|
attr_dev(div1, "id", "footer-grid-content-container");
|
||||||
|
attr_dev(div1, "class", "logged");
|
||||||
|
add_location(div1, file, 22, 16, 526);
|
||||||
|
attr_dev(rect, "id", "Rectangle_146");
|
||||||
|
attr_dev(rect, "data-name", "Rectangle 146");
|
||||||
|
attr_dev(rect, "width", "11");
|
||||||
|
attr_dev(rect, "height", "51");
|
||||||
|
attr_dev(rect, "rx", "5.5");
|
||||||
|
attr_dev(rect, "transform", "translate(22 24)");
|
||||||
|
attr_dev(rect, "fill", "#cb1816");
|
||||||
|
add_location(rect, file, 33, 24, 1541);
|
||||||
|
attr_dev(path, "id", "Path_1145");
|
||||||
|
attr_dev(path, "data-name", "Path 1145");
|
||||||
|
attr_dev(path, "d", "M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z");
|
||||||
|
attr_dev(path, "fill", "#DD1C1A");
|
||||||
|
add_location(path, file, 34, 24, 1695);
|
||||||
|
attr_dev(g, "id", "Group_268");
|
||||||
|
attr_dev(g, "data-name", "Group 268");
|
||||||
|
attr_dev(g, "transform", "translate(-6.177 -2.399)");
|
||||||
|
add_location(g, file, 32, 24, 1438);
|
||||||
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
||||||
|
attr_dev(svg, "width", "42.545");
|
||||||
|
attr_dev(svg, "height", "72.601");
|
||||||
|
attr_dev(svg, "viewBox", "0 0 42.545 72.601");
|
||||||
|
add_location(svg, file, 31, 20, 1313);
|
||||||
|
attr_dev(button, "id", "footer-up");
|
||||||
|
attr_dev(button, "aria-label", "go up");
|
||||||
|
add_location(button, file, 30, 16, 1212);
|
||||||
|
attr_dev(a2, "href", "https://creativecommons.org/licenses/by/4.0/legalcode ");
|
||||||
|
attr_dev(a2, "target", "_blank");
|
||||||
|
attr_dev(a2, "rel", "noreferrer");
|
||||||
|
add_location(a2, file, 38, 75, 2105);
|
||||||
|
attr_dev(p2, "id", "footer-copyright");
|
||||||
|
add_location(p2, file, 38, 16, 2046);
|
||||||
|
attr_dev(div2, "id", "footer-content-container");
|
||||||
|
add_location(div2, file, 21, 12, 473);
|
||||||
|
add_location(footer, file, 20, 8, 451);
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, footer, anchor);
|
||||||
|
append_dev(footer, div2);
|
||||||
|
append_dev(div2, div1);
|
||||||
|
append_dev(div1, div0);
|
||||||
|
append_dev(div0, h2);
|
||||||
|
append_dev(h2, t0);
|
||||||
|
append_dev(div0, t1);
|
||||||
|
append_dev(div0, p0);
|
||||||
|
append_dev(p0, t2);
|
||||||
|
append_dev(p0, a0);
|
||||||
|
append_dev(a0, t3);
|
||||||
|
append_dev(div0, t4);
|
||||||
|
append_dev(div0, p1);
|
||||||
|
append_dev(p1, t5);
|
||||||
|
append_dev(p1, a1);
|
||||||
|
append_dev(a1, t6);
|
||||||
|
append_dev(div2, t7);
|
||||||
|
append_dev(div2, button);
|
||||||
|
append_dev(button, svg);
|
||||||
|
append_dev(svg, g);
|
||||||
|
append_dev(g, rect);
|
||||||
|
append_dev(g, path);
|
||||||
|
append_dev(div2, t8);
|
||||||
|
append_dev(div2, p2);
|
||||||
|
append_dev(p2, t9);
|
||||||
|
append_dev(p2, a2);
|
||||||
|
|
||||||
|
if (!mounted) {
|
||||||
|
dispose = listen_dev(button, "click", /*click_handler*/ ctx[3], false, false, false);
|
||||||
|
mounted = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
p: function update(ctx, dirty) {
|
||||||
|
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].contactUs + "")) set_data_dev(t0, t0_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t3_value !== (t3_value = /*$content*/ ctx[0].inviteLink + "")) set_data_dev(t3, t3_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t6_value !== (t6_value = /*$content*/ ctx[0].inviteLink + "")) set_data_dev(t6, t6_value);
|
||||||
|
},
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(footer);
|
||||||
|
mounted = false;
|
||||||
|
dispose();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_if_block.name,
|
||||||
|
type: "if",
|
||||||
|
source: "(20:4) {#if Object.keys($content).length!=0}",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
|
||||||
|
let if_block_anchor;
|
||||||
|
let if_block = show_if && create_if_block(ctx);
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
if (if_block) if_block.c();
|
||||||
|
if_block_anchor = empty();
|
||||||
|
this.c = noop;
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
if (if_block) if_block.m(target, anchor);
|
||||||
|
insert_dev(target, if_block_anchor, anchor);
|
||||||
|
},
|
||||||
|
p: function update(ctx, [dirty]) {
|
||||||
|
if (dirty & /*$content*/ 1) show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
|
||||||
|
|
||||||
|
if (show_if) {
|
||||||
|
if (if_block) {
|
||||||
|
if_block.p(ctx, dirty);
|
||||||
|
} else {
|
||||||
|
if_block = create_if_block(ctx);
|
||||||
|
if_block.c();
|
||||||
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
||||||
|
}
|
||||||
|
} else if (if_block) {
|
||||||
|
if_block.d(1);
|
||||||
|
if_block = null;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (if_block) if_block.d(detaching);
|
||||||
|
if (detaching) detach_dev(if_block_anchor);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let $content;
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('footer-component', slots, []);
|
||||||
|
let loaded;
|
||||||
|
let content = writable({});
|
||||||
|
validate_store(content, 'content');
|
||||||
|
component_subscribe($$self, content, value => $$invalidate(0, $content = value));
|
||||||
|
let locale = loadLocaleContent(content, "footer-component", loaded);
|
||||||
|
const writable_props = [];
|
||||||
|
|
||||||
|
Object_1.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<footer-component> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
const click_handler = () => {
|
||||||
|
location.href = '#';
|
||||||
|
};
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({
|
||||||
|
writable,
|
||||||
|
loadLocaleContent,
|
||||||
|
loaded,
|
||||||
|
content,
|
||||||
|
locale,
|
||||||
|
$content
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('loaded' in $$props) $$invalidate(1, loaded = $$props.loaded);
|
||||||
|
if ('content' in $$props) $$invalidate(2, content = $$props.content);
|
||||||
|
if ('locale' in $$props) locale = $$props.locale;
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [$content, loaded, content, click_handler];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Footer_component extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';footer{position:relative;bottom:0;width:100%;height:auto;background:#5B6970;border-top:#cb1816 solid 0.5rem}footer p,footer a{font-family:var(--sans-serif)}#footer-content-container{position:relative;margin:auto;padding-top:2rem;max-width:116rem;width:97vw}#footer-grid-content-container{display:grid;margin-left:2rem;margin-right:2rem;margin-bottom:1rem}.logged{grid-template-columns:auto auto 2rem}footer h2{color:#ffffff;font-size:1.3rem;margin-bottom:0.5rem}#footer-copyright{position:relative;margin:auto;width:100%;bottom:0rem;height:3rem;top:0rem;margin-bottom:0;font-size:1rem;text-align:center}#footer-copyright *{font-size:1rem}footer a{font-size:1.1rem;color:#ffffff}footer p{display:block;font-size:1.1rem;color:#d8d8d8;font-family:var(--sans-serif,sans-serif);margin-bottom:0.5rem}#contact-us-container{width:16rem}#footer-up{position:absolute;width:4.8rem;height:4.8rem;border-radius:3.4rem;top:4rem;right:2rem;background:#ffffff}#footer-up svg{width:40%;height:auto}@media only screen and (max-width: 1170px){.logged{grid-template-rows:auto auto auto;grid-template-columns:auto;row-gap:2rem}#footer-copyright{height:1rem;top:-2rem}}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{},
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("footer-component", Footer_component);
|
||||||
|
|
||||||
|
export { Footer_component as default };
|
||||||
|
|
|
@ -1 +1,428 @@
|
||||||
import{S as t,i as o,a as n,b as e,s as r,e as a,n as i,d as s,c as m,o as c,f as l,t as p,g,h,j as u,k as d,l as b,m as f,p as x}from"./index-4348483d.js";import{w as j}from"./index-71440b21.js";import{groups as v,addMarkersGroups as w}from"../../../../../../../../../js/groups.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,o,n){const e=t.slice();return e[6]=o[n],e}function z(t){let o,n,r,a,i,m,c,j,w,k,z,E,O,R,T,A,C,H,L,M,N,S,_,q=t[0].heading+"",B=t[0].p1+"",F=t[0].p2+"",G=t[0].subheading1+"",I=t[0].subheading2+"",J=v,K=[];for(let o=0;o<J.length;o+=1)K[o]=D(y(t,J,o));return{c(){o=l("div"),n=l("div"),r=l("h1"),a=p(q),i=g(),m=l("img"),j=g(),w=l("p"),k=p(B),z=g(),E=l("p"),O=p(F),R=g(),T=l("h3"),A=p(G),C=g(),H=l("map-component"),M=g(),N=l("h4"),S=p(I),_=g();for(let t=0;t<K.length;t+=1)K[t].c();h(m,"id","groups-img"),u(m.src,c="/img/common/groups.svg")||h(m,"src","/img/common/groups.svg"),h(m,"alt","groups"),d(H,"id","map"),d(H,"callback",L=t[5]),h(n,"id","text-container"),h(o,"id","container")},m(t,s){e(t,o,s),b(o,n),b(n,r),b(r,a),b(n,i),b(n,m),b(n,j),b(n,w),b(w,k),b(n,z),b(n,E),b(E,O),b(n,R),b(n,T),b(T,A),b(n,C),b(n,H),b(n,M),b(n,N),b(N,S),b(n,_);for(let t=0;t<K.length;t+=1)K[t].m(n,null)},p(t,o){if(1&o&&q!==(q=t[0].heading+"")&&f(a,q),1&o&&B!==(B=t[0].p1+"")&&f(k,B),1&o&&F!==(F=t[0].p2+"")&&f(O,F),1&o&&G!==(G=t[0].subheading1+"")&&f(A,G),1&o&&L!==(L=t[5])&&d(H,"callback",L),1&o&&I!==(I=t[0].subheading2+"")&&f(S,I),9&o){let e;for(J=v,e=0;e<J.length;e+=1){const r=y(t,J,e);K[e]?K[e].p(r,o):(K[e]=D(r),K[e].c(),K[e].m(n,null))}for(;e<K.length;e+=1)K[e].d(1);K.length=J.length}},d(t){t&&s(o),x(K,t)}}}function D(t){let o,n,r,a,i,m,c,u,d,x,j,v,w,k,y,z,D,E,O,R,T=t[0].location+"",A=t[6].location[0][t[3]]+"",C=t[0].members+"",H=t[6].members+"",L=t[0].contact+"",M=t[6].contact[1][t[3]]+"";return{c(){o=l("div"),n=l("p"),r=l("b"),a=p(T),i=p(": "),m=p(A),c=g(),u=l("p"),d=l("b"),x=p(C),j=p(": "),v=p(H),w=g(),k=l("p"),y=l("b"),z=p(L),D=p(": "),E=l("a"),O=p(M),R=g(),h(E,"href",t[6].contact[0]),h(E,"target",";_blank;"),h(E,"rel","noreferrer"),h(o,"class","location-info")},m(t,s){e(t,o,s),b(o,n),b(n,r),b(r,a),b(r,i),b(n,m),b(o,c),b(o,u),b(u,d),b(d,x),b(d,j),b(u,v),b(o,w),b(o,k),b(k,y),b(y,z),b(y,D),b(k,E),b(E,O),b(o,R)},p(t,o){1&o&&T!==(T=t[0].location+"")&&f(a,T),1&o&&C!==(C=t[0].members+"")&&f(x,C),1&o&&L!==(L=t[0].contact+"")&&f(z,L)},d(t){t&&s(o)}}}function E(t){let o,n=0!=Object.keys(t[0]).length,r=n&&z(t);return{c(){r&&r.c(),o=a(),this.c=i},m(t,n){r&&r.m(t,n),e(t,o,n)},p(t,[e]){1&e&&(n=0!=Object.keys(t[0]).length),n?r?r.p(t,e):(r=z(t),r.c(),r.m(o.parentNode,o)):r&&(r.d(1),r=null)},i:i,o:i,d(t){r&&r.d(t),t&&s(o)}}}function O(t,o,n){let e,r,a=j({});m(t,a,(t=>n(0,e=t)));let i=k(a,"groups-component",r);function s(t,o,n){let e=t([51.505,-.09],3);w(e,o,n)}c((()=>{}));return[e,r,a,i,s,t=>s(t,e,i)]}class R extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#groups-img{position:absolute;width:14rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{position:relative;max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>",o(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},O,E,r,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("groups-component",R);export{R as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, c as validate_store, e as component_subscribe, o as onMount, g as globals, f as validate_each_argument, h as empty, n as noop, j as detach_dev, k as element, t as text, l as space, m as add_location, p as attr_dev, q as src_url_equal, r as set_custom_element_data, u as append_dev, w as set_data_dev, x as destroy_each } from './index-42a25c61.js';
|
||||||
|
import { w as writable } from './index-a1c185ea.js';
|
||||||
|
import { groups, addMarkersGroups } from '../../../../../../../../../js/groups.js';
|
||||||
|
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js';
|
||||||
|
import '../../../../../../../../../js/components/map-component.js';
|
||||||
|
|
||||||
|
/* src\groups-component.svelte generated by Svelte v3.52.0 */
|
||||||
|
|
||||||
|
const { Object: Object_1 } = globals;
|
||||||
|
|
||||||
|
const file = "src\\groups-component.svelte";
|
||||||
|
|
||||||
|
function get_each_context(ctx, list, i) {
|
||||||
|
const child_ctx = ctx.slice();
|
||||||
|
child_ctx[6] = list[i];
|
||||||
|
return child_ctx;
|
||||||
|
}
|
||||||
|
|
||||||
|
// (30:4) {#if Object.keys($content).length!=0}
|
||||||
|
function create_if_block(ctx) {
|
||||||
|
let div1;
|
||||||
|
let div0;
|
||||||
|
let h1;
|
||||||
|
let t0_value = /*$content*/ ctx[0].heading + "";
|
||||||
|
let t0;
|
||||||
|
let t1;
|
||||||
|
let img;
|
||||||
|
let img_src_value;
|
||||||
|
let t2;
|
||||||
|
let p0;
|
||||||
|
let t3_value = /*$content*/ ctx[0].p1 + "";
|
||||||
|
let t3;
|
||||||
|
let t4;
|
||||||
|
let p1;
|
||||||
|
let t5_value = /*$content*/ ctx[0].p2 + "";
|
||||||
|
let t5;
|
||||||
|
let t6;
|
||||||
|
let h3;
|
||||||
|
let t7_value = /*$content*/ ctx[0].subheading1 + "";
|
||||||
|
let t7;
|
||||||
|
let t8;
|
||||||
|
let map_component;
|
||||||
|
let map_component_callback_value;
|
||||||
|
let t9;
|
||||||
|
let h4;
|
||||||
|
let t10_value = /*$content*/ ctx[0].subheading2 + "";
|
||||||
|
let t10;
|
||||||
|
let t11;
|
||||||
|
let each_value = groups;
|
||||||
|
validate_each_argument(each_value);
|
||||||
|
let each_blocks = [];
|
||||||
|
|
||||||
|
for (let i = 0; i < each_value.length; i += 1) {
|
||||||
|
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
||||||
|
}
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div1 = element("div");
|
||||||
|
div0 = element("div");
|
||||||
|
h1 = element("h1");
|
||||||
|
t0 = text(t0_value);
|
||||||
|
t1 = space();
|
||||||
|
img = element("img");
|
||||||
|
t2 = space();
|
||||||
|
p0 = element("p");
|
||||||
|
t3 = text(t3_value);
|
||||||
|
t4 = space();
|
||||||
|
p1 = element("p");
|
||||||
|
t5 = text(t5_value);
|
||||||
|
t6 = space();
|
||||||
|
h3 = element("h3");
|
||||||
|
t7 = text(t7_value);
|
||||||
|
t8 = space();
|
||||||
|
map_component = element("map-component");
|
||||||
|
t9 = space();
|
||||||
|
h4 = element("h4");
|
||||||
|
t10 = text(t10_value);
|
||||||
|
t11 = space();
|
||||||
|
|
||||||
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].c();
|
||||||
|
}
|
||||||
|
|
||||||
|
add_location(h1, file, 33, 16, 932);
|
||||||
|
attr_dev(img, "id", "groups-img");
|
||||||
|
if (!src_url_equal(img.src, img_src_value = "/img/common/groups.svg")) attr_dev(img, "src", img_src_value);
|
||||||
|
attr_dev(img, "alt", "groups");
|
||||||
|
add_location(img, file, 34, 16, 977);
|
||||||
|
add_location(p0, file, 35, 16, 1058);
|
||||||
|
add_location(p1, file, 36, 16, 1096);
|
||||||
|
add_location(h3, file, 37, 16, 1134);
|
||||||
|
set_custom_element_data(map_component, "id", "map");
|
||||||
|
set_custom_element_data(map_component, "callback", map_component_callback_value = /*func*/ ctx[5]);
|
||||||
|
add_location(map_component, file, 38, 16, 1183);
|
||||||
|
add_location(h4, file, 39, 16, 1312);
|
||||||
|
attr_dev(div0, "id", "text-container");
|
||||||
|
add_location(div0, file, 32, 12, 889);
|
||||||
|
attr_dev(div1, "id", "container");
|
||||||
|
add_location(div1, file, 30, 8, 786);
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div1, anchor);
|
||||||
|
append_dev(div1, div0);
|
||||||
|
append_dev(div0, h1);
|
||||||
|
append_dev(h1, t0);
|
||||||
|
append_dev(div0, t1);
|
||||||
|
append_dev(div0, img);
|
||||||
|
append_dev(div0, t2);
|
||||||
|
append_dev(div0, p0);
|
||||||
|
append_dev(p0, t3);
|
||||||
|
append_dev(div0, t4);
|
||||||
|
append_dev(div0, p1);
|
||||||
|
append_dev(p1, t5);
|
||||||
|
append_dev(div0, t6);
|
||||||
|
append_dev(div0, h3);
|
||||||
|
append_dev(h3, t7);
|
||||||
|
append_dev(div0, t8);
|
||||||
|
append_dev(div0, map_component);
|
||||||
|
append_dev(div0, t9);
|
||||||
|
append_dev(div0, h4);
|
||||||
|
append_dev(h4, t10);
|
||||||
|
append_dev(div0, t11);
|
||||||
|
|
||||||
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].m(div0, null);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
p: function update(ctx, dirty) {
|
||||||
|
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].heading + "")) set_data_dev(t0, t0_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t3_value !== (t3_value = /*$content*/ ctx[0].p1 + "")) set_data_dev(t3, t3_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t5_value !== (t5_value = /*$content*/ ctx[0].p2 + "")) set_data_dev(t5, t5_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t7_value !== (t7_value = /*$content*/ ctx[0].subheading1 + "")) set_data_dev(t7, t7_value);
|
||||||
|
|
||||||
|
if (dirty & /*$content*/ 1 && map_component_callback_value !== (map_component_callback_value = /*func*/ ctx[5])) {
|
||||||
|
set_custom_element_data(map_component, "callback", map_component_callback_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (dirty & /*$content*/ 1 && t10_value !== (t10_value = /*$content*/ ctx[0].subheading2 + "")) set_data_dev(t10, t10_value);
|
||||||
|
|
||||||
|
if (dirty & /*groups, $content*/ 1) {
|
||||||
|
each_value = groups;
|
||||||
|
validate_each_argument(each_value);
|
||||||
|
let i;
|
||||||
|
|
||||||
|
for (i = 0; i < each_value.length; i += 1) {
|
||||||
|
const child_ctx = get_each_context(ctx, each_value, i);
|
||||||
|
|
||||||
|
if (each_blocks[i]) {
|
||||||
|
each_blocks[i].p(child_ctx, dirty);
|
||||||
|
} else {
|
||||||
|
each_blocks[i] = create_each_block(child_ctx);
|
||||||
|
each_blocks[i].c();
|
||||||
|
each_blocks[i].m(div0, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].d(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
each_blocks.length = each_value.length;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div1);
|
||||||
|
destroy_each(each_blocks, detaching);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_if_block.name,
|
||||||
|
type: "if",
|
||||||
|
source: "(30:4) {#if Object.keys($content).length!=0}",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// (41:16) {#each groups as group}
|
||||||
|
function create_each_block(ctx) {
|
||||||
|
let div;
|
||||||
|
let p0;
|
||||||
|
let b0;
|
||||||
|
let t0_value = /*$content*/ ctx[0].location + "";
|
||||||
|
let t0;
|
||||||
|
let t1;
|
||||||
|
let t2_value = /*$content*/ ctx[0][/*group*/ ctx[6].location[0]] + "";
|
||||||
|
let t2;
|
||||||
|
let t3;
|
||||||
|
let p1;
|
||||||
|
let b1;
|
||||||
|
let t4_value = /*$content*/ ctx[0].members + "";
|
||||||
|
let t4;
|
||||||
|
let t5;
|
||||||
|
let t6_value = /*group*/ ctx[6].members + "";
|
||||||
|
let t6;
|
||||||
|
let t7;
|
||||||
|
let p2;
|
||||||
|
let b2;
|
||||||
|
let t8_value = /*$content*/ ctx[0].contact + "";
|
||||||
|
let t8;
|
||||||
|
let t9;
|
||||||
|
let a;
|
||||||
|
let t10_value = /*$content*/ ctx[0][/*group*/ ctx[6].contact[1]] + "";
|
||||||
|
let t10;
|
||||||
|
let t11;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div = element("div");
|
||||||
|
p0 = element("p");
|
||||||
|
b0 = element("b");
|
||||||
|
t0 = text(t0_value);
|
||||||
|
t1 = text(": ");
|
||||||
|
t2 = text(t2_value);
|
||||||
|
t3 = space();
|
||||||
|
p1 = element("p");
|
||||||
|
b1 = element("b");
|
||||||
|
t4 = text(t4_value);
|
||||||
|
t5 = text(": ");
|
||||||
|
t6 = text(t6_value);
|
||||||
|
t7 = space();
|
||||||
|
p2 = element("p");
|
||||||
|
b2 = element("b");
|
||||||
|
t8 = text(t8_value);
|
||||||
|
t9 = text(": ");
|
||||||
|
a = element("a");
|
||||||
|
t10 = text(t10_value);
|
||||||
|
t11 = space();
|
||||||
|
add_location(b0, file, 42, 27, 1462);
|
||||||
|
add_location(p0, file, 42, 24, 1459);
|
||||||
|
add_location(b1, file, 43, 27, 1552);
|
||||||
|
add_location(p1, file, 43, 24, 1549);
|
||||||
|
add_location(b2, file, 44, 27, 1627);
|
||||||
|
attr_dev(a, "href", /*group*/ ctx[6].contact[0]);
|
||||||
|
attr_dev(a, "target", ";_blank;");
|
||||||
|
attr_dev(a, "rel", "noreferrer");
|
||||||
|
add_location(a, file, 44, 54, 1654);
|
||||||
|
add_location(p2, file, 44, 24, 1624);
|
||||||
|
attr_dev(div, "class", "location-info");
|
||||||
|
add_location(div, file, 41, 20, 1406);
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div, anchor);
|
||||||
|
append_dev(div, p0);
|
||||||
|
append_dev(p0, b0);
|
||||||
|
append_dev(b0, t0);
|
||||||
|
append_dev(b0, t1);
|
||||||
|
append_dev(p0, t2);
|
||||||
|
append_dev(div, t3);
|
||||||
|
append_dev(div, p1);
|
||||||
|
append_dev(p1, b1);
|
||||||
|
append_dev(b1, t4);
|
||||||
|
append_dev(b1, t5);
|
||||||
|
append_dev(p1, t6);
|
||||||
|
append_dev(div, t7);
|
||||||
|
append_dev(div, p2);
|
||||||
|
append_dev(p2, b2);
|
||||||
|
append_dev(b2, t8);
|
||||||
|
append_dev(b2, t9);
|
||||||
|
append_dev(p2, a);
|
||||||
|
append_dev(a, t10);
|
||||||
|
append_dev(div, t11);
|
||||||
|
},
|
||||||
|
p: function update(ctx, dirty) {
|
||||||
|
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].location + "")) set_data_dev(t0, t0_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t2_value !== (t2_value = /*$content*/ ctx[0][/*group*/ ctx[6].location[0]] + "")) set_data_dev(t2, t2_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t4_value !== (t4_value = /*$content*/ ctx[0].members + "")) set_data_dev(t4, t4_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t8_value !== (t8_value = /*$content*/ ctx[0].contact + "")) set_data_dev(t8, t8_value);
|
||||||
|
if (dirty & /*$content*/ 1 && t10_value !== (t10_value = /*$content*/ ctx[0][/*group*/ ctx[6].contact[1]] + "")) set_data_dev(t10, t10_value);
|
||||||
|
},
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_each_block.name,
|
||||||
|
type: "each",
|
||||||
|
source: "(41:16) {#each groups as group}",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
|
||||||
|
let if_block_anchor;
|
||||||
|
let if_block = show_if && create_if_block(ctx);
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
if (if_block) if_block.c();
|
||||||
|
if_block_anchor = empty();
|
||||||
|
this.c = noop;
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
if (if_block) if_block.m(target, anchor);
|
||||||
|
insert_dev(target, if_block_anchor, anchor);
|
||||||
|
},
|
||||||
|
p: function update(ctx, [dirty]) {
|
||||||
|
if (dirty & /*$content*/ 1) show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
|
||||||
|
|
||||||
|
if (show_if) {
|
||||||
|
if (if_block) {
|
||||||
|
if_block.p(ctx, dirty);
|
||||||
|
} else {
|
||||||
|
if_block = create_if_block(ctx);
|
||||||
|
if_block.c();
|
||||||
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
||||||
|
}
|
||||||
|
} else if (if_block) {
|
||||||
|
if_block.d(1);
|
||||||
|
if_block = null;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (if_block) if_block.d(detaching);
|
||||||
|
if (detaching) detach_dev(if_block_anchor);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let $content;
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('groups-component', slots, []);
|
||||||
|
let loaded;
|
||||||
|
let content = writable({});
|
||||||
|
validate_store(content, 'content');
|
||||||
|
component_subscribe($$self, content, value => $$invalidate(0, $content = value));
|
||||||
|
let locale = loadLocaleContent(content, "groups-component", loaded);
|
||||||
|
|
||||||
|
function mapCallbackGroups(createMap, content) {
|
||||||
|
let map = createMap([51.505, -0.09], 3);
|
||||||
|
addMarkersGroups(map, content);
|
||||||
|
}
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = [];
|
||||||
|
|
||||||
|
Object_1.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<groups-component> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
const func = createMap => mapCallbackGroups(createMap, $content);
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({
|
||||||
|
onMount,
|
||||||
|
writable,
|
||||||
|
groups,
|
||||||
|
addMarkersGroups,
|
||||||
|
loadLocaleContent,
|
||||||
|
loaded,
|
||||||
|
content,
|
||||||
|
locale,
|
||||||
|
mapCallbackGroups,
|
||||||
|
$content
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('loaded' in $$props) $$invalidate(1, loaded = $$props.loaded);
|
||||||
|
if ('content' in $$props) $$invalidate(2, content = $$props.content);
|
||||||
|
if ('locale' in $$props) $$invalidate(3, locale = $$props.locale);
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [$content, loaded, content, locale, mapCallbackGroups, func];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Groups_component extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#groups-img{position:absolute;width:14rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{position:relative;max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{},
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("groups-component", Groups_component);
|
||||||
|
|
||||||
|
export { Groups_component as default };
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1,364 @@
|
||||||
import{S as i,i as t,a as o,b as e,s as r,e as s,n,d as m,c as a,o as c,f as g,g as d,t as p,h as l,j as u,v as h,l as v,m as f,w as x}from"./index-4348483d.js";import{loadLocaleContent as w}from"../../../../../../../../../js/libraries/serverTools.js";import{w as T}from"./index-71440b21.js";function b(i){let t,o,r,s,n,a,c,x,w,T,b,y,j,k,z,E,H,L,M,O,R,N,S,q,A,B,C,D,F,G,I,J,K,P,Q,U,V,W=i[2].top+"",X=i[2].groupsTitle+"",Y=i[2].groupsText+"",Z=i[2].communitiesTitle+"",$=i[2].communitiesText+"",_=i[2].cooperativesTitle+"",ii=i[2].cooperativesText+"";return{c(){t=g("div"),o=g("picture"),o.innerHTML='<source srcset="/img/crowd.webp"/> \n <source srcset="/img/crowd.png"/> \n <img id="crowd" alt="crowd"/>',r=d(),s=g("div"),n=g("p"),a=p(W),c=d(),x=g("div"),w=g("div"),T=g("h2"),b=p(X),y=d(),j=g("img"),z=d(),E=g("p"),H=p(Y),L=d(),M=g("div"),O=g("h2"),R=p(Z),N=d(),S=g("img"),A=d(),B=g("p"),C=p($),D=d(),F=g("div"),G=g("h2"),I=p(_),J=d(),K=g("img"),Q=d(),U=g("p"),V=p(ii),l(j,"id","groups-img"),u(j.src,k="/img/common/groups.svg")||l(j,"src","/img/common/groups.svg"),l(j,"alt","groups"),l(S,"id","communities-img"),u(S.src,q="/img/common/communities.svg")||l(S,"src","/img/common/communities.svg"),l(S,"alt","communities"),l(K,"id","coops-img"),u(K.src,P="/img/common/coops.svg")||l(K,"src","/img/common/coops.svg"),l(K,"alt","coops"),l(x,"id","container-grid"),h(x,"--grid-width",i[1]),l(s,"id","text-container"),l(t,"id","container")},m(m,g){e(m,t,g),v(t,o),v(t,r),v(t,s),v(s,n),v(n,a),v(s,c),v(s,x),v(x,w),v(w,T),v(T,b),v(w,y),v(w,j),v(w,z),v(w,E),v(E,H),v(x,L),v(x,M),v(M,O),v(O,R),v(M,N),v(M,S),v(M,A),v(M,B),v(B,C),v(x,D),v(x,F),v(F,G),v(G,I),v(F,J),v(F,K),v(F,Q),v(F,U),v(U,V),i[5](x)},p(i,t){4&t&&W!==(W=i[2].top+"")&&f(a,W),4&t&&X!==(X=i[2].groupsTitle+"")&&f(b,X),4&t&&Y!==(Y=i[2].groupsText+"")&&f(H,Y),4&t&&Z!==(Z=i[2].communitiesTitle+"")&&f(R,Z),4&t&&$!==($=i[2].communitiesText+"")&&f(C,$),4&t&&_!==(_=i[2].cooperativesTitle+"")&&f(I,_),4&t&&ii!==(ii=i[2].cooperativesText+"")&&f(V,ii),2&t&&h(x,"--grid-width",i[1])},d(o){o&&m(t),i[5](null)}}}function y(i){let t,o=0!=Object.keys(i[2]).length,r=o&&b(i);return{c(){r&&r.c(),t=s(),this.c=n},m(i,o){r&&r.m(i,o),e(i,t,o)},p(i,[e]){4&e&&(o=0!=Object.keys(i[2]).length),o?r?r.p(i,e):(r=b(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:n,o:n,d(i){r&&r.d(i),i&&m(t)}}}function j(i,t,o){let e,r,s,n,m=T({});function g(i){o(1,s="ru"==i?"1.2fr 1.05fr 1fr":"1.2fr 1.1fr 1fr")}return a(i,m,(i=>o(2,e=i))),g(w(m,"landing-component",n,g)),c((()=>{})),[r,s,e,n,m,function(i){x[i?"unshift":"push"]((()=>{r=i,o(0,r)}))}]}class k extends i{constructor(i){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#container-grid>div>h2{text-align:center}#groups-img,#communities-img,#coops-img{position:absolute;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;height:8rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}#crowd{width:100%;margin-bottom:2rem}#container{margin:auto;max-width:1000px;margin-top:2rem;margin-bottom:5rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}#container-grid{display:grid;grid-template-columns:var(--grid-width);grid-gap:4rem;margin-top:2rem}#container-grid>div{position:relative}#container-grid>div>p{position:relative;margin-top:5rem;z-index:2}@media only screen and (max-width: 1060px){#container-grid{display:grid;grid-template-columns:1fr;grid-gap:2rem}}</style>",t(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},j,y,r,{},null),i&&i.target&&e(i.target,this,i.anchor)}}customElements.define("landing-component",k);export{k as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, c as validate_store, e as component_subscribe, o as onMount, g as globals, h as empty, n as noop, j as detach_dev, C as binding_callbacks, k as element, l as space, t as text, p as attr_dev, m as add_location, q as src_url_equal, D as set_style, u as append_dev, w as set_data_dev } from './index-42a25c61.js';
|
||||||
|
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js';
|
||||||
|
import { w as writable } from './index-a1c185ea.js';
|
||||||
|
|
||||||
|
/* src\landing-component.svelte generated by Svelte v3.52.0 */
|
||||||
|
|
||||||
|
const { Object: Object_1 } = globals;
|
||||||
|
const file = "src\\landing-component.svelte";
|
||||||
|
|
||||||
|
// (36:4) {#if Object.keys($content).length!=0}
|
||||||
|
function create_if_block(ctx) {
|
||||||
|
let div5;
|
||||||
|
let picture;
|
||||||
|
let source0;
|
||||||
|
let t0;
|
||||||
|
let source1;
|
||||||
|
let t1;
|
||||||
|
let img0;
|
||||||
|
let t2;
|
||||||
|
let div4;
|
||||||
|
let p0;
|
||||||
|
let t3_value = /*$content*/ ctx[2].top + "";
|
||||||
|
let t3;
|
||||||
|
let t4;
|
||||||
|
let div3;
|
||||||
|
let div0;
|
||||||
|
let h20;
|
||||||
|
let t5_value = /*$content*/ ctx[2].groupsTitle + "";
|
||||||
|
let t5;
|
||||||
|
let t6;
|
||||||
|
let img1;
|
||||||
|
let img1_src_value;
|
||||||
|
let t7;
|
||||||
|
let p1;
|
||||||
|
let t8_value = /*$content*/ ctx[2].groupsText + "";
|
||||||
|
let t8;
|
||||||
|
let t9;
|
||||||
|
let div1;
|
||||||
|
let h21;
|
||||||
|
let t10_value = /*$content*/ ctx[2].communitiesTitle + "";
|
||||||
|
let t10;
|
||||||
|
let t11;
|
||||||
|
let img2;
|
||||||
|
let img2_src_value;
|
||||||
|
let t12;
|
||||||
|
let p2;
|
||||||
|
let t13_value = /*$content*/ ctx[2].communitiesText + "";
|
||||||
|
let t13;
|
||||||
|
let t14;
|
||||||
|
let div2;
|
||||||
|
let h22;
|
||||||
|
let t15_value = /*$content*/ ctx[2].cooperativesTitle + "";
|
||||||
|
let t15;
|
||||||
|
let t16;
|
||||||
|
let img3;
|
||||||
|
let img3_src_value;
|
||||||
|
let t17;
|
||||||
|
let p3;
|
||||||
|
let t18_value = /*$content*/ ctx[2].cooperativesText + "";
|
||||||
|
let t18;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div5 = element("div");
|
||||||
|
picture = element("picture");
|
||||||
|
source0 = element("source");
|
||||||
|
t0 = space();
|
||||||
|
source1 = element("source");
|
||||||
|
t1 = space();
|
||||||
|
img0 = element("img");
|
||||||
|
t2 = space();
|
||||||
|
div4 = element("div");
|
||||||
|
p0 = element("p");
|
||||||
|
t3 = text(t3_value);
|
||||||
|
t4 = space();
|
||||||
|
div3 = element("div");
|
||||||
|
div0 = element("div");
|
||||||
|
h20 = element("h2");
|
||||||
|
t5 = text(t5_value);
|
||||||
|
t6 = space();
|
||||||
|
img1 = element("img");
|
||||||
|
t7 = space();
|
||||||
|
p1 = element("p");
|
||||||
|
t8 = text(t8_value);
|
||||||
|
t9 = space();
|
||||||
|
div1 = element("div");
|
||||||
|
h21 = element("h2");
|
||||||
|
t10 = text(t10_value);
|
||||||
|
t11 = space();
|
||||||
|
img2 = element("img");
|
||||||
|
t12 = space();
|
||||||
|
p2 = element("p");
|
||||||
|
t13 = text(t13_value);
|
||||||
|
t14 = space();
|
||||||
|
div2 = element("div");
|
||||||
|
h22 = element("h2");
|
||||||
|
t15 = text(t15_value);
|
||||||
|
t16 = space();
|
||||||
|
img3 = element("img");
|
||||||
|
t17 = space();
|
||||||
|
p3 = element("p");
|
||||||
|
t18 = text(t18_value);
|
||||||
|
attr_dev(source0, "srcset", "/img/crowd.webp");
|
||||||
|
add_location(source0, file, 38, 16, 855);
|
||||||
|
attr_dev(source1, "srcset", "/img/crowd.png");
|
||||||
|
add_location(source1, file, 39, 16, 906);
|
||||||
|
attr_dev(img0, "id", "crowd");
|
||||||
|
attr_dev(img0, "alt", "crowd");
|
||||||
|
add_location(img0, file, 40, 16, 956);
|
||||||
|
add_location(picture, file, 37, 12, 828);
|
||||||
|
add_location(p0, file, 44, 16, 1079);
|
||||||
|
add_location(h20, file, 47, 24, 1247);
|
||||||
|
attr_dev(img1, "id", "groups-img");
|
||||||
|
if (!src_url_equal(img1.src, img1_src_value = "/img/common/groups.svg")) attr_dev(img1, "src", img1_src_value);
|
||||||
|
attr_dev(img1, "alt", "groups");
|
||||||
|
add_location(img1, file, 48, 24, 1304);
|
||||||
|
add_location(p1, file, 49, 24, 1393);
|
||||||
|
add_location(div0, file, 46, 20, 1216);
|
||||||
|
add_location(h21, file, 52, 24, 1502);
|
||||||
|
attr_dev(img2, "id", "communities-img");
|
||||||
|
if (!src_url_equal(img2.src, img2_src_value = "/img/common/communities.svg")) attr_dev(img2, "src", img2_src_value);
|
||||||
|
attr_dev(img2, "alt", "communities");
|
||||||
|
add_location(img2, file, 53, 24, 1564);
|
||||||
|
add_location(p2, file, 54, 24, 1668);
|
||||||
|
add_location(div1, file, 51, 20, 1471);
|
||||||
|
add_location(h22, file, 57, 24, 1782);
|
||||||
|
attr_dev(img3, "id", "coops-img");
|
||||||
|
if (!src_url_equal(img3.src, img3_src_value = "/img/common/coops.svg")) attr_dev(img3, "src", img3_src_value);
|
||||||
|
attr_dev(img3, "alt", "coops");
|
||||||
|
add_location(img3, file, 58, 24, 1845);
|
||||||
|
add_location(p3, file, 59, 24, 1931);
|
||||||
|
add_location(div2, file, 56, 20, 1751);
|
||||||
|
attr_dev(div3, "id", "container-grid");
|
||||||
|
set_style(div3, "--grid-width", /*gridWidth*/ ctx[1]);
|
||||||
|
add_location(div3, file, 45, 16, 1118);
|
||||||
|
attr_dev(div4, "id", "text-container");
|
||||||
|
add_location(div4, file, 43, 12, 1036);
|
||||||
|
attr_dev(div5, "id", "container");
|
||||||
|
add_location(div5, file, 36, 8, 794);
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div5, anchor);
|
||||||
|
append_dev(div5, picture);
|
||||||
|
append_dev(picture, source0);
|
||||||
|
append_dev(picture, t0);
|
||||||
|
append_dev(picture, source1);
|
||||||
|
append_dev(picture, t1);
|
||||||
|
append_dev(picture, img0);
|
||||||
|
append_dev(div5, t2);
|
||||||
|
append_dev(div5, div4);
|
||||||
|
append_dev(div4, p0);
|
||||||
|
append_dev(p0, t3);
|
||||||
|
append_dev(div4, t4);
|
||||||
|
append_dev(div4, div3);
|
||||||
|
append_dev(div3, div0);
|
||||||
|
append_dev(div0, h20);
|
||||||
|
append_dev(h20, t5);
|
||||||
|
append_dev(div0, t6);
|
||||||
|
append_dev(div0, img1);
|
||||||
|
append_dev(div0, t7);
|
||||||
|
append_dev(div0, p1);
|
||||||
|
append_dev(p1, t8);
|
||||||
|
append_dev(div3, t9);
|
||||||
|
append_dev(div3, div1);
|
||||||
|
append_dev(div1, h21);
|
||||||
|
append_dev(h21, t10);
|
||||||
|
append_dev(div1, t11);
|
||||||
|
append_dev(div1, img2);
|
||||||
|
append_dev(div1, t12);
|
||||||
|
append_dev(div1, p2);
|
||||||
|
append_dev(p2, t13);
|
||||||
|
append_dev(div3, t14);
|
||||||
|
append_dev(div3, div2);
|
||||||
|
append_dev(div2, h22);
|
||||||
|
append_dev(h22, t15);
|
||||||
|
append_dev(div2, t16);
|
||||||
|
append_dev(div2, img3);
|
||||||
|
append_dev(div2, t17);
|
||||||
|
append_dev(div2, p3);
|
||||||
|
append_dev(p3, t18);
|
||||||
|
/*div3_binding*/ ctx[5](div3);
|
||||||
|
},
|
||||||
|
p: function update(ctx, dirty) {
|
||||||
|
if (dirty & /*$content*/ 4 && t3_value !== (t3_value = /*$content*/ ctx[2].top + "")) set_data_dev(t3, t3_value);
|
||||||
|
if (dirty & /*$content*/ 4 && t5_value !== (t5_value = /*$content*/ ctx[2].groupsTitle + "")) set_data_dev(t5, t5_value);
|
||||||
|
if (dirty & /*$content*/ 4 && t8_value !== (t8_value = /*$content*/ ctx[2].groupsText + "")) set_data_dev(t8, t8_value);
|
||||||
|
if (dirty & /*$content*/ 4 && t10_value !== (t10_value = /*$content*/ ctx[2].communitiesTitle + "")) set_data_dev(t10, t10_value);
|
||||||
|
if (dirty & /*$content*/ 4 && t13_value !== (t13_value = /*$content*/ ctx[2].communitiesText + "")) set_data_dev(t13, t13_value);
|
||||||
|
if (dirty & /*$content*/ 4 && t15_value !== (t15_value = /*$content*/ ctx[2].cooperativesTitle + "")) set_data_dev(t15, t15_value);
|
||||||
|
if (dirty & /*$content*/ 4 && t18_value !== (t18_value = /*$content*/ ctx[2].cooperativesText + "")) set_data_dev(t18, t18_value);
|
||||||
|
|
||||||
|
if (dirty & /*gridWidth*/ 2) {
|
||||||
|
set_style(div3, "--grid-width", /*gridWidth*/ ctx[1]);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div5);
|
||||||
|
/*div3_binding*/ ctx[5](null);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_if_block.name,
|
||||||
|
type: "if",
|
||||||
|
source: "(36:4) {#if Object.keys($content).length!=0}",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let show_if = Object.keys(/*$content*/ ctx[2]).length != 0;
|
||||||
|
let if_block_anchor;
|
||||||
|
let if_block = show_if && create_if_block(ctx);
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
if (if_block) if_block.c();
|
||||||
|
if_block_anchor = empty();
|
||||||
|
this.c = noop;
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
if (if_block) if_block.m(target, anchor);
|
||||||
|
insert_dev(target, if_block_anchor, anchor);
|
||||||
|
},
|
||||||
|
p: function update(ctx, [dirty]) {
|
||||||
|
if (dirty & /*$content*/ 4) show_if = Object.keys(/*$content*/ ctx[2]).length != 0;
|
||||||
|
|
||||||
|
if (show_if) {
|
||||||
|
if (if_block) {
|
||||||
|
if_block.p(ctx, dirty);
|
||||||
|
} else {
|
||||||
|
if_block = create_if_block(ctx);
|
||||||
|
if_block.c();
|
||||||
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
||||||
|
}
|
||||||
|
} else if (if_block) {
|
||||||
|
if_block.d(1);
|
||||||
|
if_block = null;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (if_block) if_block.d(detaching);
|
||||||
|
if (detaching) detach_dev(if_block_anchor);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let $content;
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('landing-component', slots, []);
|
||||||
|
let grid;
|
||||||
|
let gridWidth;
|
||||||
|
let loaded;
|
||||||
|
let content = writable({});
|
||||||
|
validate_store(content, 'content');
|
||||||
|
component_subscribe($$self, content, value => $$invalidate(2, $content = value));
|
||||||
|
|
||||||
|
function changeWidth(locale) {
|
||||||
|
if (locale == "ru") {
|
||||||
|
$$invalidate(1, gridWidth = "1.2fr 1.05fr 1fr");
|
||||||
|
} else {
|
||||||
|
$$invalidate(1, gridWidth = "1.2fr 1.1fr 1fr");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let locale = loadLocaleContent(content, "landing-component", loaded, changeWidth);
|
||||||
|
changeWidth(locale);
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = [];
|
||||||
|
|
||||||
|
Object_1.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<landing-component> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
function div3_binding($$value) {
|
||||||
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||||||
|
grid = $$value;
|
||||||
|
$$invalidate(0, grid);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({
|
||||||
|
onMount,
|
||||||
|
loadLocaleContent,
|
||||||
|
writable,
|
||||||
|
grid,
|
||||||
|
gridWidth,
|
||||||
|
loaded,
|
||||||
|
content,
|
||||||
|
changeWidth,
|
||||||
|
locale,
|
||||||
|
$content
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('grid' in $$props) $$invalidate(0, grid = $$props.grid);
|
||||||
|
if ('gridWidth' in $$props) $$invalidate(1, gridWidth = $$props.gridWidth);
|
||||||
|
if ('loaded' in $$props) $$invalidate(3, loaded = $$props.loaded);
|
||||||
|
if ('content' in $$props) $$invalidate(4, content = $$props.content);
|
||||||
|
if ('locale' in $$props) locale = $$props.locale;
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [grid, gridWidth, $content, loaded, content, div3_binding];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Landing_component extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#container-grid>div>h2{text-align:center}#groups-img,#communities-img,#coops-img{position:absolute;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;height:8rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}#crowd{width:100%;margin-bottom:2rem}#container{margin:auto;max-width:1000px;margin-top:2rem;margin-bottom:5rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}#container-grid{display:grid;grid-template-columns:var(--grid-width);grid-gap:4rem;margin-top:2rem}#container-grid>div{position:relative}#container-grid>div>p{position:relative;margin-top:5rem;z-index:2}@media only screen and (max-width: 1060px){#container-grid{display:grid;grid-template-columns:1fr;grid-gap:2rem}}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{},
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("landing-component", Landing_component);
|
||||||
|
|
||||||
|
export { Landing_component as default };
|
||||||
|
|
|
@ -1 +1,362 @@
|
||||||
import{S as t,i as e,a as s,b as o,u as n,s as r,f as i,n as a,h as l,d as c,p,o as u,g as h,t as d,v as m,l as f,q as g,m as y,w as $}from"./index-4348483d.js";import{pullLegendData as b}from"../../../../../../../../../js/predict/charts.js";function w(t,e,s){const o=t.slice();return o[10]=e[s],o[11]=e,o[12]=s,o}function x(t){let e,s,n,r,a,p,u,$,b=t[10].name+"",w=t[12];const x=()=>t[6](e,w),k=()=>t[6](null,w);function v(){return t[7](t[12])}return{c(){e=i("button"),s=i("div"),n=h(),r=i("span"),a=d(b),p=h(),l(s,"class","marker"),m(s,"background-color",t[10].color)},m(t,i){o(t,e,i),f(e,s),f(e,n),f(e,r),f(r,a),f(e,p),x(),u||($=g(e,"click",v),u=!0)},p(e,o){t=e,1&o&&m(s,"background-color",t[10].color),1&o&&b!==(b=t[10].name+"")&&y(a,b),w!==t[12]&&(k(),w=t[12],x())},d(t){t&&c(e),k(),u=!1,$()}}}function k(t){let e,s=t[0],n=[];for(let e=0;e<s.length;e+=1)n[e]=x(w(t,s,e));return{c(){e=i("div");for(let t=0;t<n.length;t+=1)n[t].c();this.c=a,l(e,"class","legend")},m(t,s){o(t,e,s);for(let t=0;t<n.length;t+=1)n[t].m(e,null)},p(t,[o]){if(7&o){let r;for(s=t[0],r=0;r<s.length;r+=1){const i=w(t,s,r);n[r]?n[r].p(i,o):(n[r]=x(i),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=s.length}},i:a,o:a,d(t){t&&c(e),p(n,t)}}}function v(t,e,s){let o,{option:n=null}=e,{chart:r=null}=e,{data:i={}}=e,a=[],l=[];function c(){if(null==n||null==n||null==r||null==r)setTimeout(c,100);else{s(0,a=b(a,n));for(let t of a)s(3,i[t.name]=!0,i);o=Object.keys(i)}}function p(t){s(3,i[o[t]]=!i[o[t]],i);let e=[],a=n.series.map((t=>t._id)),c=a[t];for(let t=0;t<a.length;t++)a[t]==c&&e.push(t);for(let t of e){let o=n.series[t];o.tooltip.show?(o.lineStyle.opacity=0,o.itemStyle.opacity=0,o.tooltip.show=!1,s(1,l[e[0]].style.opacity=.5,l)):(o.lineStyle.opacity=1,o.itemStyle.opacity=1,o.tooltip.show=!0,s(1,l[e[0]].style.opacity=1,l))}r.setOption(n)}u((()=>{c()}));return t.$$set=t=>{"option"in t&&s(4,n=t.option),"chart"in t&&s(5,r=t.chart),"data"in t&&s(3,i=t.data)},[a,l,p,i,n,r,function(t,e){$[t?"unshift":"push"]((()=>{l[e]=t,s(1,l)}))},t=>p(t)]}class j extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';@import '/css/test-basic.css';button{cursor:pointer}.legend{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:1rem}.legend *{font-family:var(--sans-serif)}.marker{position:relative;display:inline-block;margin-right:0.5rem;top:0.1rem;width:1rem;height:1rem;border-radius:1rem}</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},v,k,r,{option:4,chart:5,data:3},null),t&&(t.target&&o(t.target,this,t.anchor),t.props&&(this.$set(t.props),n()))}static get observedAttributes(){return["option","chart","data"]}get option(){return this.$$.ctx[4]}set option(t){this.$$set({option:t}),n()}get chart(){return this.$$.ctx[5]}set chart(t){this.$$set({chart:t}),n()}get data(){return this.$$.ctx[3]}set data(t){this.$$set({data:t}),n()}}customElements.define("legend-component",j);export{j as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, B as flush, s as safe_not_equal, f as validate_each_argument, d as dispatch_dev, v as validate_slots, o as onMount, g as globals, k as element, n as noop, p as attr_dev, m as add_location, j as detach_dev, x as destroy_each, C as binding_callbacks, l as space, t as text, D as set_style, u as append_dev, y as listen_dev, w as set_data_dev } from './index-42a25c61.js';
|
||||||
|
import { pullLegendData } from '../../../../../../../../../js/predict/charts.js';
|
||||||
|
|
||||||
|
/* src\components\legend-component.svelte generated by Svelte v3.52.0 */
|
||||||
|
|
||||||
|
const { Object: Object_1 } = globals;
|
||||||
|
const file = "src\\components\\legend-component.svelte";
|
||||||
|
|
||||||
|
function get_each_context(ctx, list, i) {
|
||||||
|
const child_ctx = ctx.slice();
|
||||||
|
child_ctx[10] = list[i];
|
||||||
|
child_ctx[11] = list;
|
||||||
|
child_ctx[12] = i;
|
||||||
|
return child_ctx;
|
||||||
|
}
|
||||||
|
|
||||||
|
// (69:4) {#each legendData as item, i}
|
||||||
|
function create_each_block(ctx) {
|
||||||
|
let button;
|
||||||
|
let div;
|
||||||
|
let t0;
|
||||||
|
let span;
|
||||||
|
let t1_value = /*item*/ ctx[10].name + "";
|
||||||
|
let t1;
|
||||||
|
let t2;
|
||||||
|
let i = /*i*/ ctx[12];
|
||||||
|
let mounted;
|
||||||
|
let dispose;
|
||||||
|
const assign_button = () => /*button_binding*/ ctx[6](button, i);
|
||||||
|
const unassign_button = () => /*button_binding*/ ctx[6](null, i);
|
||||||
|
|
||||||
|
function click_handler() {
|
||||||
|
return /*click_handler*/ ctx[7](/*i*/ ctx[12]);
|
||||||
|
}
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
button = element("button");
|
||||||
|
div = element("div");
|
||||||
|
t0 = space();
|
||||||
|
span = element("span");
|
||||||
|
t1 = text(t1_value);
|
||||||
|
t2 = space();
|
||||||
|
attr_dev(div, "class", "marker");
|
||||||
|
set_style(div, "background-color", /*item*/ ctx[10].color);
|
||||||
|
add_location(div, file, 70, 12, 1892);
|
||||||
|
add_location(span, file, 71, 12, 1971);
|
||||||
|
add_location(button, file, 69, 8, 1814);
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, button, anchor);
|
||||||
|
append_dev(button, div);
|
||||||
|
append_dev(button, t0);
|
||||||
|
append_dev(button, span);
|
||||||
|
append_dev(span, t1);
|
||||||
|
append_dev(button, t2);
|
||||||
|
assign_button();
|
||||||
|
|
||||||
|
if (!mounted) {
|
||||||
|
dispose = listen_dev(button, "click", click_handler, false, false, false);
|
||||||
|
mounted = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
p: function update(new_ctx, dirty) {
|
||||||
|
ctx = new_ctx;
|
||||||
|
|
||||||
|
if (dirty & /*legendData*/ 1) {
|
||||||
|
set_style(div, "background-color", /*item*/ ctx[10].color);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (dirty & /*legendData*/ 1 && t1_value !== (t1_value = /*item*/ ctx[10].name + "")) set_data_dev(t1, t1_value);
|
||||||
|
|
||||||
|
if (i !== /*i*/ ctx[12]) {
|
||||||
|
unassign_button();
|
||||||
|
i = /*i*/ ctx[12];
|
||||||
|
assign_button();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(button);
|
||||||
|
unassign_button();
|
||||||
|
mounted = false;
|
||||||
|
dispose();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_each_block.name,
|
||||||
|
type: "each",
|
||||||
|
source: "(69:4) {#each legendData as item, i}",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let div;
|
||||||
|
let each_value = /*legendData*/ ctx[0];
|
||||||
|
validate_each_argument(each_value);
|
||||||
|
let each_blocks = [];
|
||||||
|
|
||||||
|
for (let i = 0; i < each_value.length; i += 1) {
|
||||||
|
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
||||||
|
}
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div = element("div");
|
||||||
|
|
||||||
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].c();
|
||||||
|
}
|
||||||
|
|
||||||
|
this.c = noop;
|
||||||
|
attr_dev(div, "class", "legend");
|
||||||
|
add_location(div, file, 67, 0, 1749);
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div, anchor);
|
||||||
|
|
||||||
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].m(div, null);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
p: function update(ctx, [dirty]) {
|
||||||
|
if (dirty & /*buttons, toggleSeries, legendData*/ 7) {
|
||||||
|
each_value = /*legendData*/ ctx[0];
|
||||||
|
validate_each_argument(each_value);
|
||||||
|
let i;
|
||||||
|
|
||||||
|
for (i = 0; i < each_value.length; i += 1) {
|
||||||
|
const child_ctx = get_each_context(ctx, each_value, i);
|
||||||
|
|
||||||
|
if (each_blocks[i]) {
|
||||||
|
each_blocks[i].p(child_ctx, dirty);
|
||||||
|
} else {
|
||||||
|
each_blocks[i] = create_each_block(child_ctx);
|
||||||
|
each_blocks[i].c();
|
||||||
|
each_blocks[i].m(div, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].d(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
each_blocks.length = each_value.length;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div);
|
||||||
|
destroy_each(each_blocks, detaching);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('legend-component', slots, []);
|
||||||
|
let { option = null } = $$props;
|
||||||
|
let { chart = null } = $$props;
|
||||||
|
let { data = {} } = $$props;
|
||||||
|
|
||||||
|
// Main code
|
||||||
|
let legendData = [];
|
||||||
|
|
||||||
|
let buttons = [];
|
||||||
|
let dataKeys;
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
if (option == null || option == undefined || chart == null || chart == undefined) {
|
||||||
|
setTimeout(init, 100);
|
||||||
|
} else {
|
||||||
|
$$invalidate(0, legendData = pullLegendData(legendData, option));
|
||||||
|
|
||||||
|
for (let obj of legendData) {
|
||||||
|
$$invalidate(3, data[obj.name] = true, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
dataKeys = Object.keys(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleSeries(i) {
|
||||||
|
$$invalidate(3, data[dataKeys[i]] = !data[dataKeys[i]], data);
|
||||||
|
let inds = [];
|
||||||
|
let ids = option.series.map(x => x._id);
|
||||||
|
let id = ids[i];
|
||||||
|
|
||||||
|
for (let j = 0; j < ids.length; j++) {
|
||||||
|
if (ids[j] == id) {
|
||||||
|
inds.push(j);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i of inds) {
|
||||||
|
let series = option.series[i];
|
||||||
|
|
||||||
|
if (!series.tooltip.show) {
|
||||||
|
series.lineStyle.opacity = 1;
|
||||||
|
series.itemStyle.opacity = 1;
|
||||||
|
series.tooltip.show = true;
|
||||||
|
$$invalidate(1, buttons[inds[0]].style.opacity = 1, buttons);
|
||||||
|
} else {
|
||||||
|
series.lineStyle.opacity = 0;
|
||||||
|
series.itemStyle.opacity = 0;
|
||||||
|
series.tooltip.show = false;
|
||||||
|
$$invalidate(1, buttons[inds[0]].style.opacity = 0.5, buttons);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
chart.setOption(option);
|
||||||
|
}
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
init();
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = ['option', 'chart', 'data'];
|
||||||
|
|
||||||
|
Object_1.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<legend-component> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
function button_binding($$value, i) {
|
||||||
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||||||
|
buttons[i] = $$value;
|
||||||
|
$$invalidate(1, buttons);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const click_handler = i => toggleSeries(i);
|
||||||
|
|
||||||
|
$$self.$$set = $$props => {
|
||||||
|
if ('option' in $$props) $$invalidate(4, option = $$props.option);
|
||||||
|
if ('chart' in $$props) $$invalidate(5, chart = $$props.chart);
|
||||||
|
if ('data' in $$props) $$invalidate(3, data = $$props.data);
|
||||||
|
};
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({
|
||||||
|
onMount,
|
||||||
|
pullLegendData,
|
||||||
|
option,
|
||||||
|
chart,
|
||||||
|
data,
|
||||||
|
legendData,
|
||||||
|
buttons,
|
||||||
|
dataKeys,
|
||||||
|
init,
|
||||||
|
toggleSeries
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('option' in $$props) $$invalidate(4, option = $$props.option);
|
||||||
|
if ('chart' in $$props) $$invalidate(5, chart = $$props.chart);
|
||||||
|
if ('data' in $$props) $$invalidate(3, data = $$props.data);
|
||||||
|
if ('legendData' in $$props) $$invalidate(0, legendData = $$props.legendData);
|
||||||
|
if ('buttons' in $$props) $$invalidate(1, buttons = $$props.buttons);
|
||||||
|
if ('dataKeys' in $$props) dataKeys = $$props.dataKeys;
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [
|
||||||
|
legendData,
|
||||||
|
buttons,
|
||||||
|
toggleSeries,
|
||||||
|
data,
|
||||||
|
option,
|
||||||
|
chart,
|
||||||
|
button_binding,
|
||||||
|
click_handler
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Legend_component extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';@import '/css/test-basic.css';button{cursor:pointer}.legend{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:1rem}.legend *{font-family:var(--sans-serif)}.marker{position:relative;display:inline-block;margin-right:0.5rem;top:0.1rem;width:1rem;height:1rem;border-radius:1rem}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{ option: 4, chart: 5, data: 3 },
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (options.props) {
|
||||||
|
this.$set(options.props);
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static get observedAttributes() {
|
||||||
|
return ["option", "chart", "data"];
|
||||||
|
}
|
||||||
|
|
||||||
|
get option() {
|
||||||
|
return this.$$.ctx[4];
|
||||||
|
}
|
||||||
|
|
||||||
|
set option(option) {
|
||||||
|
this.$$set({ option });
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
|
||||||
|
get chart() {
|
||||||
|
return this.$$.ctx[5];
|
||||||
|
}
|
||||||
|
|
||||||
|
set chart(chart) {
|
||||||
|
this.$$set({ chart });
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
|
||||||
|
get data() {
|
||||||
|
return this.$$.ctx[3];
|
||||||
|
}
|
||||||
|
|
||||||
|
set data(data) {
|
||||||
|
this.$$set({ data });
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("legend-component", Legend_component);
|
||||||
|
|
||||||
|
export { Legend_component as default };
|
||||||
|
|
|
@ -1 +1,115 @@
|
||||||
import{S as t,i as s,a as e,b as n,s as o,f as a,n as i,h as d,v as r,d as u,o as c,w as l}from"./index-4348483d.js";function h(t){let s;return{c(){s=a("div"),this.c=i,d(s,"id","loadscreen"),r(s,"width","100%"),r(s,"height","100%"),r(s,"background","white"),r(s,"position","absolute"),r(s,"z-index","100000")},m(e,o){n(e,s,o),t[1](s)},p:i,i:i,o:i,d(e){e&&u(s),t[1](null)}}}function p(t,s,e){let n;return c((()=>{window.addEventListener("load",(function(){e(0,n.parentNode.host.style.display="none",n)}))})),[n,function(t){l[t?"unshift":"push"]((()=>{n=t,e(0,n)}))}]}class f extends t{constructor(t){super(),s(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},p,h,o,{},null),t&&t.target&&n(t.target,this,t.anchor)}}customElements.define("loadscreen-component",f);export{f as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, o as onMount, k as element, n as noop, p as attr_dev, D as set_style, m as add_location, j as detach_dev, C as binding_callbacks } from './index-42a25c61.js';
|
||||||
|
|
||||||
|
/* src\components\loadscreen-component.svelte generated by Svelte v3.52.0 */
|
||||||
|
const file = "src\\components\\loadscreen-component.svelte";
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let div;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div = element("div");
|
||||||
|
this.c = noop;
|
||||||
|
attr_dev(div, "id", "loadscreen");
|
||||||
|
set_style(div, "width", "100%");
|
||||||
|
set_style(div, "height", "100%");
|
||||||
|
set_style(div, "background", "white");
|
||||||
|
set_style(div, "position", "absolute");
|
||||||
|
set_style(div, "z-index", "100000");
|
||||||
|
add_location(div, file, 20, 0, 366);
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div, anchor);
|
||||||
|
/*div_binding*/ ctx[1](div);
|
||||||
|
},
|
||||||
|
p: noop,
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div);
|
||||||
|
/*div_binding*/ ctx[1](null);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('loadscreen-component', slots, []);
|
||||||
|
let loadscreen;
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
window.addEventListener('load', function () {
|
||||||
|
$$invalidate(0, loadscreen.parentNode.host.style.display = "none", loadscreen);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = [];
|
||||||
|
|
||||||
|
Object.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<loadscreen-component> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
function div_binding($$value) {
|
||||||
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||||||
|
loadscreen = $$value;
|
||||||
|
$$invalidate(0, loadscreen);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({ onMount, loadscreen });
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('loadscreen' in $$props) $$invalidate(0, loadscreen = $$props.loadscreen);
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [loadscreen, div_binding];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Loadscreen_component extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{},
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("loadscreen-component", Loadscreen_component);
|
||||||
|
|
||||||
|
export { Loadscreen_component as default };
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1,156 @@
|
||||||
import{S as t,i as a,a as e,b as s,u as o,s as r,f as i,n,h as c,d as l,o as p,w as m}from"./index-4348483d.js";function h(t){let a;return{c(){a=i("div"),this.c=n,c(a,"id","map")},m(e,o){s(e,a,o),t[2](a)},p:n,i:n,o:n,d(e){e&&l(a),t[2](null)}}}function u(t,a,e){let s,{callback:o=null}=a;function r(t,a){let e=L.map(s,{center:t,zoom:a});return L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',minNativeZoom:2,minZoom:2,maxNativeZoom:16,maxZoom:16}).addTo(e),e}return p((()=>{o(r)})),t.$$set=t=>{"callback"in t&&e(1,o=t.callback)},[s,o,function(t){m[t?"unshift":"push"]((()=>{s=t,e(0,s)}))}]}class d extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.css';#map{height:var(--height);width:var(--width,100%);margin-bottom:var(--margin-bottom,0)\n }</style>",a(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},u,h,r,{callback:1},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),o()))}static get observedAttributes(){return["callback"]}get callback(){return this.$$.ctx[1]}set callback(t){this.$$set({callback:t}),o()}}customElements.define("map-component",d);export{d as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, B as flush, s as safe_not_equal, d as dispatch_dev, v as validate_slots, o as onMount, k as element, n as noop, p as attr_dev, m as add_location, j as detach_dev, C as binding_callbacks } from './index-42a25c61.js';
|
||||||
|
|
||||||
|
/* src\components\map-component.svelte generated by Svelte v3.52.0 */
|
||||||
|
const file = "src\\components\\map-component.svelte";
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let div;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div = element("div");
|
||||||
|
this.c = noop;
|
||||||
|
attr_dev(div, "id", "map");
|
||||||
|
add_location(div, file, 34, 0, 836);
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div, anchor);
|
||||||
|
/*div_binding*/ ctx[2](div);
|
||||||
|
},
|
||||||
|
p: noop,
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div);
|
||||||
|
/*div_binding*/ ctx[2](null);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('map-component', slots, []);
|
||||||
|
let { callback = null } = $$props;
|
||||||
|
|
||||||
|
// Main code
|
||||||
|
let mapContainer;
|
||||||
|
|
||||||
|
function createMap(center, zoom) {
|
||||||
|
let map = L.map(mapContainer, { center, zoom });
|
||||||
|
|
||||||
|
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||||
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
||||||
|
minNativeZoom: 2,
|
||||||
|
minZoom: 2,
|
||||||
|
maxNativeZoom: 16,
|
||||||
|
maxZoom: 16
|
||||||
|
}).addTo(map);
|
||||||
|
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
callback(createMap);
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = ['callback'];
|
||||||
|
|
||||||
|
Object.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<map-component> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
function div_binding($$value) {
|
||||||
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||||||
|
mapContainer = $$value;
|
||||||
|
$$invalidate(0, mapContainer);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$$self.$$set = $$props => {
|
||||||
|
if ('callback' in $$props) $$invalidate(1, callback = $$props.callback);
|
||||||
|
};
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({
|
||||||
|
onMount,
|
||||||
|
callback,
|
||||||
|
mapContainer,
|
||||||
|
createMap
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('callback' in $$props) $$invalidate(1, callback = $$props.callback);
|
||||||
|
if ('mapContainer' in $$props) $$invalidate(0, mapContainer = $$props.mapContainer);
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [mapContainer, callback, div_binding];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Map_component extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.css';#map{height:var(--height);width:var(--width,100%);margin-bottom:var(--margin-bottom,0)
|
||||||
|
}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{ callback: 1 },
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (options.props) {
|
||||||
|
this.$set(options.props);
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static get observedAttributes() {
|
||||||
|
return ["callback"];
|
||||||
|
}
|
||||||
|
|
||||||
|
get callback() {
|
||||||
|
return this.$$.ctx[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
set callback(callback) {
|
||||||
|
this.$$set({ callback });
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("map-component", Map_component);
|
||||||
|
|
||||||
|
export { Map_component as default };
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1,304 @@
|
||||||
import{S as i,i as e,a,b as t,s as n,f as r,g as s,n as d,h as o,l,d as m,x as p,o as h,w as g}from"./index-4348483d.js";import{debounce as c}from"../../../../../../../../../js/libraries/miscTools.js";function f(i){let e,a,n,p,h,g,c,f,u,b;return{c(){e=r("div"),a=r("div"),n=r("div"),p=r("div"),p.innerHTML='<slot name="sidebar-left"></slot>',h=s(),g=r("div"),g.innerHTML='<slot name="sidebar-left2"></slot>',c=s(),f=r("div"),f.innerHTML='<slot name="sidebar-right"></slot>',u=s(),b=r("div"),b.innerHTML='<slot name="main" id="main-slot"></slot>',this.c=d,o(p,"id","sidebar-left"),o(p,"class","pane"),o(g,"id","sidebar-left2"),o(g,"class","pane"),o(n,"id","sidebars-left"),o(n,"class","sidebar"),o(f,"id","sidebar-right"),o(f,"class","pane sidebar"),o(b,"id","main-pane"),o(b,"class","pane"),o(a,"class","pane-container"),o(e,"id","root"),o(e,"class","pane-centering")},m(r,s){t(r,e,s),l(e,a),l(a,n),l(n,p),i[5](p),l(n,h),l(n,g),i[6](g),l(a,c),l(a,f),i[7](f),l(a,u),l(a,b),i[8](b),i[9](e)},p:d,i:d,o:d,d(a){a&&m(e),i[5](null),i[6](null),i[7](null),i[8](null),i[9](null)}}}function u(i,e,a){let t,n,r,s,d,o=null!=p("alignerParent")?p("alignerParent").switchView:void 0,l=!1,m=!1,f=!1;function u(){if(null!=t.parentNode){let i=t.parentNode.host.childNodes;if(0==i.length)setTimeout(u,50);else{let e=!1,n=t.parentNode.innerHTML;for(let a of i)"sidebar-left"!=a.slot||l?"sidebar-left2"!=a.slot||m?"sidebar-right"!=a.slot||f||(n=n.replace("#sidebar-right{display:none;","#sidebar-right{"),f=!0,e=!0):(n=n.replace("#sidebar-left2{display:none}",""),m=!0,e=!0):(n=n.replace("#sidebar-left{display:none}",""),l=!0,e=!0);null!=o&&(n=n.replace("1880px",o),e=!0),e&&a(0,t.parentNode.innerHTML=n,t)}}}return window.addEventListener("resize",c(u,100)),h((()=>{u()})),[t,n,r,s,d,function(i){g[i?"unshift":"push"]((()=>{r=i,a(2,r)}))},function(i){g[i?"unshift":"push"]((()=>{s=i,a(3,s)}))},function(i){g[i?"unshift":"push"]((()=>{d=i,a(4,d)}))},function(i){g[i?"unshift":"push"]((()=>{n=i,a(1,n)}))},function(i){g[i?"unshift":"push"]((()=>{t=i,a(0,t)}))}]}class b extends i{constructor(i){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';.pane-container{display:block;margin-left:var(--total-margin-left,0rem)}#root{min-height:var(--min-height,auto)}#main-pane{position:relative;padding-left:var(--padding-left,0rem);padding-right:var(--padding-right,0rem);padding-top:var(--padding-top,0rem);padding-bottom:var(--padding-bottom,0rem);text-align:justify;background:var(--background,white);box-shadow:var(--box-shadow,0 0 0.314rem rgb(187, 187, 187));margin:auto;height:min-content;max-width:var(--width-main,66rem);width:var(--width-main,66rem);z-index:1;overflow-x:var(--overflow-x,hidden)}.sidebar{position:absolute}#sidebars-left{display:flex;flex-direction:column;gap:1rem;margin-left:calc(-1*var(--width-left,22.5rem) - 1rem - 4rem);width:calc(var(--width-left,22.5rem) + 4rem)}#sidebar-left,#sidebar-left2{position:relative;background-color:white;padding:2rem 2rem}#sidebar-left{display:none}#sidebar-left2{display:none}#sidebar-right{display:none;margin-left:calc(var(--width-main,66rem) + 1rem);width:var(--width-right,auto);background-color:white;padding:2rem 2rem}@media only screen and (max-width: 1880px){#main-pane{max-width:initial;width:100%;max-width:var(--width-main,66rem);padding-left:var(--padding-left-mobile,1.8rem);padding-right:var(--padding-right-mobile,1.8rem);padding-top:var(--padding-top-mobile,1.8rem);padding-bottom:var(--padding-bottom-mobile,1.8rem)}#sidebars-left,#sidebar-right{position:relative;margin:auto;margin-top:1rem;margin-bottom:1rem;max-width:var(--width-main,66rem);width:100%}.pane-container{width:95%;justify-items:center;grid-auto-flow:row;margin-left:0}}</style>",e(this,{target:this.shadowRoot,props:a(this.attributes),customElement:!0},u,f,n,{},null),i&&i.target&&t(i.target,this,i.anchor)}}customElements.define("pane-aligner",b);export{b as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, E as getContext, o as onMount, F as setContext, k as element, l as space, n as noop, p as attr_dev, m as add_location, u as append_dev, j as detach_dev, C as binding_callbacks } from './index-42a25c61.js';
|
||||||
|
import { debounce } from '../../../../../../../../../js/libraries/miscTools.js';
|
||||||
|
|
||||||
|
/* src\components\pane-aligner.svelte generated by Svelte v3.52.0 */
|
||||||
|
const file = "src\\components\\pane-aligner.svelte";
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let div6;
|
||||||
|
let div5;
|
||||||
|
let div2;
|
||||||
|
let div0;
|
||||||
|
let slot0;
|
||||||
|
let t0;
|
||||||
|
let div1;
|
||||||
|
let slot1;
|
||||||
|
let t1;
|
||||||
|
let div3;
|
||||||
|
let slot2;
|
||||||
|
let t2;
|
||||||
|
let div4;
|
||||||
|
let slot3;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div6 = element("div");
|
||||||
|
div5 = element("div");
|
||||||
|
div2 = element("div");
|
||||||
|
div0 = element("div");
|
||||||
|
slot0 = element("slot");
|
||||||
|
t0 = space();
|
||||||
|
div1 = element("div");
|
||||||
|
slot1 = element("slot");
|
||||||
|
t1 = space();
|
||||||
|
div3 = element("div");
|
||||||
|
slot2 = element("slot");
|
||||||
|
t2 = space();
|
||||||
|
div4 = element("div");
|
||||||
|
slot3 = element("slot");
|
||||||
|
this.c = noop;
|
||||||
|
attr_dev(slot0, "name", "sidebar-left");
|
||||||
|
add_location(slot0, file, 74, 16, 2567);
|
||||||
|
attr_dev(div0, "id", "sidebar-left");
|
||||||
|
attr_dev(div0, "class", "pane");
|
||||||
|
add_location(div0, file, 73, 12, 2489);
|
||||||
|
attr_dev(slot1, "name", "sidebar-left2");
|
||||||
|
add_location(slot1, file, 77, 16, 2714);
|
||||||
|
attr_dev(div1, "id", "sidebar-left2");
|
||||||
|
attr_dev(div1, "class", "pane");
|
||||||
|
add_location(div1, file, 76, 12, 2634);
|
||||||
|
attr_dev(div2, "id", "sidebars-left");
|
||||||
|
attr_dev(div2, "class", "sidebar");
|
||||||
|
add_location(div2, file, 72, 8, 2435);
|
||||||
|
attr_dev(slot2, "name", "sidebar-right");
|
||||||
|
add_location(slot2, file, 81, 12, 2879);
|
||||||
|
attr_dev(div3, "id", "sidebar-right");
|
||||||
|
attr_dev(div3, "class", "pane sidebar");
|
||||||
|
add_location(div3, file, 80, 8, 2794);
|
||||||
|
attr_dev(slot3, "name", "main");
|
||||||
|
attr_dev(slot3, "id", "main-slot");
|
||||||
|
add_location(slot3, file, 84, 12, 3007);
|
||||||
|
attr_dev(div4, "id", "main-pane");
|
||||||
|
attr_dev(div4, "class", "pane");
|
||||||
|
add_location(div4, file, 83, 8, 2939);
|
||||||
|
attr_dev(div5, "class", "pane-container");
|
||||||
|
add_location(div5, file, 71, 4, 2397);
|
||||||
|
attr_dev(div6, "id", "root");
|
||||||
|
attr_dev(div6, "class", "pane-centering");
|
||||||
|
add_location(div6, file, 70, 0, 2336);
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div6, anchor);
|
||||||
|
append_dev(div6, div5);
|
||||||
|
append_dev(div5, div2);
|
||||||
|
append_dev(div2, div0);
|
||||||
|
append_dev(div0, slot0);
|
||||||
|
/*div0_binding*/ ctx[5](div0);
|
||||||
|
append_dev(div2, t0);
|
||||||
|
append_dev(div2, div1);
|
||||||
|
append_dev(div1, slot1);
|
||||||
|
/*div1_binding*/ ctx[6](div1);
|
||||||
|
append_dev(div5, t1);
|
||||||
|
append_dev(div5, div3);
|
||||||
|
append_dev(div3, slot2);
|
||||||
|
/*div3_binding*/ ctx[7](div3);
|
||||||
|
append_dev(div5, t2);
|
||||||
|
append_dev(div5, div4);
|
||||||
|
append_dev(div4, slot3);
|
||||||
|
/*div4_binding*/ ctx[8](div4);
|
||||||
|
/*div6_binding*/ ctx[9](div6);
|
||||||
|
},
|
||||||
|
p: noop,
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div6);
|
||||||
|
/*div0_binding*/ ctx[5](null);
|
||||||
|
/*div1_binding*/ ctx[6](null);
|
||||||
|
/*div3_binding*/ ctx[7](null);
|
||||||
|
/*div4_binding*/ ctx[8](null);
|
||||||
|
/*div6_binding*/ ctx[9](null);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('pane-aligner', slots, []);
|
||||||
|
let root;
|
||||||
|
let mainPane;
|
||||||
|
let sidebarLeft;
|
||||||
|
let sidebarLeft2;
|
||||||
|
let sidebarRight;
|
||||||
|
let parentProps = getContext("alignerParent");
|
||||||
|
|
||||||
|
let switchView = parentProps != undefined
|
||||||
|
? getContext("alignerParent").switchView
|
||||||
|
: undefined;
|
||||||
|
|
||||||
|
let leftReplaced = false;
|
||||||
|
let left2Replaced = false;
|
||||||
|
let rightReplaced = false;
|
||||||
|
let switchViewReplaced = false;
|
||||||
|
|
||||||
|
function adjustSlotted() {
|
||||||
|
if (root.parentNode != null) {
|
||||||
|
let slotted = root.parentNode.host.childNodes;
|
||||||
|
|
||||||
|
if (slotted.length == 0) {
|
||||||
|
setTimeout(adjustSlotted, 50);
|
||||||
|
} else {
|
||||||
|
let changed = false;
|
||||||
|
let html = root.parentNode.innerHTML;
|
||||||
|
|
||||||
|
for (let item of slotted) {
|
||||||
|
if (item.slot == "sidebar-left" && !leftReplaced) {
|
||||||
|
html = html.replace("#sidebar-left{display:none}", "");
|
||||||
|
leftReplaced = true;
|
||||||
|
changed = true;
|
||||||
|
} else if (item.slot == "sidebar-left2" && !left2Replaced) {
|
||||||
|
html = html.replace("#sidebar-left2{display:none}", "");
|
||||||
|
left2Replaced = true;
|
||||||
|
changed = true;
|
||||||
|
} else if (item.slot == "sidebar-right" && !rightReplaced) {
|
||||||
|
html = html.replace("#sidebar-right{display:none;", "#sidebar-right{");
|
||||||
|
rightReplaced = true;
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (switchView != undefined && !switchViewReplaced) {
|
||||||
|
html = html.replace("1880px", switchView);
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (changed) {
|
||||||
|
$$invalidate(0, root.parentNode.innerHTML = html, root);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
window.addEventListener("resize", debounce(adjustSlotted, 100));
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
adjustSlotted();
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = [];
|
||||||
|
|
||||||
|
Object.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<pane-aligner> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
function div0_binding($$value) {
|
||||||
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||||||
|
sidebarLeft = $$value;
|
||||||
|
$$invalidate(2, sidebarLeft);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function div1_binding($$value) {
|
||||||
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||||||
|
sidebarLeft2 = $$value;
|
||||||
|
$$invalidate(3, sidebarLeft2);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function div3_binding($$value) {
|
||||||
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||||||
|
sidebarRight = $$value;
|
||||||
|
$$invalidate(4, sidebarRight);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function div4_binding($$value) {
|
||||||
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||||||
|
mainPane = $$value;
|
||||||
|
$$invalidate(1, mainPane);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function div6_binding($$value) {
|
||||||
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||||||
|
root = $$value;
|
||||||
|
$$invalidate(0, root);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({
|
||||||
|
getContext,
|
||||||
|
setContext,
|
||||||
|
onMount,
|
||||||
|
debounce,
|
||||||
|
root,
|
||||||
|
mainPane,
|
||||||
|
sidebarLeft,
|
||||||
|
sidebarLeft2,
|
||||||
|
sidebarRight,
|
||||||
|
parentProps,
|
||||||
|
switchView,
|
||||||
|
leftReplaced,
|
||||||
|
left2Replaced,
|
||||||
|
rightReplaced,
|
||||||
|
switchViewReplaced,
|
||||||
|
adjustSlotted
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('root' in $$props) $$invalidate(0, root = $$props.root);
|
||||||
|
if ('mainPane' in $$props) $$invalidate(1, mainPane = $$props.mainPane);
|
||||||
|
if ('sidebarLeft' in $$props) $$invalidate(2, sidebarLeft = $$props.sidebarLeft);
|
||||||
|
if ('sidebarLeft2' in $$props) $$invalidate(3, sidebarLeft2 = $$props.sidebarLeft2);
|
||||||
|
if ('sidebarRight' in $$props) $$invalidate(4, sidebarRight = $$props.sidebarRight);
|
||||||
|
if ('parentProps' in $$props) parentProps = $$props.parentProps;
|
||||||
|
if ('switchView' in $$props) switchView = $$props.switchView;
|
||||||
|
if ('leftReplaced' in $$props) leftReplaced = $$props.leftReplaced;
|
||||||
|
if ('left2Replaced' in $$props) left2Replaced = $$props.left2Replaced;
|
||||||
|
if ('rightReplaced' in $$props) rightReplaced = $$props.rightReplaced;
|
||||||
|
if ('switchViewReplaced' in $$props) switchViewReplaced = $$props.switchViewReplaced;
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [
|
||||||
|
root,
|
||||||
|
mainPane,
|
||||||
|
sidebarLeft,
|
||||||
|
sidebarLeft2,
|
||||||
|
sidebarRight,
|
||||||
|
div0_binding,
|
||||||
|
div1_binding,
|
||||||
|
div3_binding,
|
||||||
|
div4_binding,
|
||||||
|
div6_binding
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Pane_aligner extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';.pane-container{display:block;margin-left:var(--total-margin-left,0rem)}#root{min-height:var(--min-height,auto)}#main-pane{position:relative;padding-left:var(--padding-left,0rem);padding-right:var(--padding-right,0rem);padding-top:var(--padding-top,0rem);padding-bottom:var(--padding-bottom,0rem);text-align:justify;background:var(--background,white);box-shadow:var(--box-shadow,0 0 0.314rem rgb(187, 187, 187));margin:auto;height:min-content;max-width:var(--width-main,66rem);width:var(--width-main,66rem);z-index:1;overflow-x:var(--overflow-x,hidden)}.sidebar{position:absolute}#sidebars-left{display:flex;flex-direction:column;gap:1rem;margin-left:calc(-1*var(--width-left,22.5rem) - 1rem - 4rem);width:calc(var(--width-left,22.5rem) + 4rem)}#sidebar-left,#sidebar-left2{position:relative;background-color:white;padding:2rem 2rem}#sidebar-left{display:none}#sidebar-left2{display:none}#sidebar-right{display:none;margin-left:calc(var(--width-main,66rem) + 1rem);width:var(--width-right,auto);background-color:white;padding:2rem 2rem}@media only screen and (max-width: 1880px){#main-pane{max-width:initial;width:100%;max-width:var(--width-main,66rem);padding-left:var(--padding-left-mobile,1.8rem);padding-right:var(--padding-right-mobile,1.8rem);padding-top:var(--padding-top-mobile,1.8rem);padding-bottom:var(--padding-bottom-mobile,1.8rem)}#sidebars-left,#sidebar-right{position:relative;margin:auto;margin-top:1rem;margin-bottom:1rem;max-width:var(--width-main,66rem);width:100%}.pane-container{width:95%;justify-items:center;grid-auto-flow:row;margin-left:0}}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{},
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("pane-aligner", Pane_aligner);
|
||||||
|
|
||||||
|
export { Pane_aligner as default };
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1,209 @@
|
||||||
import{S as t,i as e,a as s,b as c,u as i,s as a,f as r,g as o,n as h,h as n,l,q as d,d as u,r as p,o as b}from"./index-4348483d.js";import"../../../../../../../../../js/libraries/miscTools.js";function k(t){let e,s,i,a,b,k;return{c(){e=r("label"),s=r("input"),i=o(),a=r("span"),this.c=h,n(s,"type","checkbox"),n(a,"class","switch-span"),n(e,"class","switch")},m(r,o){c(r,e,o),l(e,s),s.checked=t[0],l(e,i),l(e,a),b||(k=[d(s,"change",t[4]),d(s,"click",t[1])],b=!0)},p(t,[e]){1&e&&(s.checked=t[0])},i:h,o:h,d(t){t&&u(e),b=!1,p(k)}}}function g(t,e,s){let{callback:c=null}=e,{checked:i=!1}=e;const a=()=>{setTimeout((()=>{null!=c?(s(0,i=!i),c()):a()}),100)};return b((()=>{})),t.$$set=t=>{"callback"in t&&s(2,c=t.callback),"checked"in t&&s(0,i=t.checked)},[i,function(){null!=c&&(s(0,i=!i),c())},c,a,function(){i=this.checked,s(0,i)}]}class m extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';.switch span{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;border-radius:calc(2* 1.2rem)}.switch span:before{position:absolute;content:\"\";height:calc(var(--height) - 0.5rem);width:calc(var(--height) - 0.5rem);left:calc(0.3rem);bottom:0.25rem;background-color:white;-webkit-transition:.4s;transition:.4s;border-radius:50%}.switch input:checked+.switch-span{background-color:var(--pink)}.switch input:hover+.switch-span{box-shadow:0 0 0 var(--pink)}.switch input:checked+.switch-span:before{-webkit-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));-ms-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem))}.switch{position:relative;display:inline-block;width:var(--width);height:var(--height)}.switch input{position:absolute;width:var(--width);height:var(--height);opacity:0}</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},g,k,a,{callback:2,checked:0,toggle:3},null),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),i()))}static get observedAttributes(){return["callback","checked","toggle"]}get callback(){return this.$$.ctx[2]}set callback(t){this.$$set({callback:t}),i()}get checked(){return this.$$.ctx[0]}set checked(t){this.$$set({checked:t}),i()}get toggle(){return this.$$.ctx[3]}}customElements.define("switch-component",m);export{m as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, B as flush, s as safe_not_equal, d as dispatch_dev, v as validate_slots, o as onMount, k as element, l as space, n as noop, p as attr_dev, m as add_location, u as append_dev, y as listen_dev, j as detach_dev, z as run_all } from './index-42a25c61.js';
|
||||||
|
import { px2rem, getTextWidth, getCanvasFont } from '../../../../../../../../../js/libraries/miscTools.js';
|
||||||
|
|
||||||
|
/* src\components\switch-component.svelte generated by Svelte v3.52.0 */
|
||||||
|
const file = "src\\components\\switch-component.svelte";
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let label;
|
||||||
|
let input;
|
||||||
|
let t;
|
||||||
|
let span;
|
||||||
|
let mounted;
|
||||||
|
let dispose;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
label = element("label");
|
||||||
|
input = element("input");
|
||||||
|
t = space();
|
||||||
|
span = element("span");
|
||||||
|
this.c = noop;
|
||||||
|
attr_dev(input, "type", "checkbox");
|
||||||
|
add_location(input, file, 39, 4, 804);
|
||||||
|
attr_dev(span, "class", "switch-span");
|
||||||
|
add_location(span, file, 40, 4, 880);
|
||||||
|
attr_dev(label, "class", "switch");
|
||||||
|
add_location(label, file, 38, 0, 776);
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, label, anchor);
|
||||||
|
append_dev(label, input);
|
||||||
|
input.checked = /*checked*/ ctx[0];
|
||||||
|
append_dev(label, t);
|
||||||
|
append_dev(label, span);
|
||||||
|
|
||||||
|
if (!mounted) {
|
||||||
|
dispose = [
|
||||||
|
listen_dev(input, "change", /*input_change_handler*/ ctx[4]),
|
||||||
|
listen_dev(input, "click", /*toggleClick*/ ctx[1], false, false, false)
|
||||||
|
];
|
||||||
|
|
||||||
|
mounted = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
p: function update(ctx, [dirty]) {
|
||||||
|
if (dirty & /*checked*/ 1) {
|
||||||
|
input.checked = /*checked*/ ctx[0];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(label);
|
||||||
|
mounted = false;
|
||||||
|
run_all(dispose);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('switch-component', slots, []);
|
||||||
|
let { callback = null } = $$props;
|
||||||
|
let { checked = false } = $$props;
|
||||||
|
|
||||||
|
const toggle = () => {
|
||||||
|
let f = () => {
|
||||||
|
if (callback != null) {
|
||||||
|
$$invalidate(0, checked = !checked);
|
||||||
|
callback();
|
||||||
|
} else {
|
||||||
|
toggle();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
setTimeout(f, 100);
|
||||||
|
};
|
||||||
|
|
||||||
|
function toggleClick() {
|
||||||
|
if (callback != null) {
|
||||||
|
$$invalidate(0, checked = !checked);
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Main code
|
||||||
|
onMount(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = ['callback', 'checked'];
|
||||||
|
|
||||||
|
Object.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<switch-component> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
function input_change_handler() {
|
||||||
|
checked = this.checked;
|
||||||
|
$$invalidate(0, checked);
|
||||||
|
}
|
||||||
|
|
||||||
|
$$self.$$set = $$props => {
|
||||||
|
if ('callback' in $$props) $$invalidate(2, callback = $$props.callback);
|
||||||
|
if ('checked' in $$props) $$invalidate(0, checked = $$props.checked);
|
||||||
|
};
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({
|
||||||
|
onMount,
|
||||||
|
px2rem,
|
||||||
|
getTextWidth,
|
||||||
|
getCanvasFont,
|
||||||
|
callback,
|
||||||
|
checked,
|
||||||
|
toggle,
|
||||||
|
toggleClick
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('callback' in $$props) $$invalidate(2, callback = $$props.callback);
|
||||||
|
if ('checked' in $$props) $$invalidate(0, checked = $$props.checked);
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [checked, toggleClick, callback, toggle, input_change_handler];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Switch_component extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';.switch span{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;border-radius:calc(2* 1.2rem)}.switch span:before{position:absolute;content:"";height:calc(var(--height) - 0.5rem);width:calc(var(--height) - 0.5rem);left:calc(0.3rem);bottom:0.25rem;background-color:white;-webkit-transition:.4s;transition:.4s;border-radius:50%}.switch input:checked+.switch-span{background-color:var(--pink)}.switch input:hover+.switch-span{box-shadow:0 0 0 var(--pink)}.switch input:checked+.switch-span:before{-webkit-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));-ms-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem))}.switch{position:relative;display:inline-block;width:var(--width);height:var(--height)}.switch input{position:absolute;width:var(--width);height:var(--height);opacity:0}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{ callback: 2, checked: 0, toggle: 3 },
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (options.props) {
|
||||||
|
this.$set(options.props);
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static get observedAttributes() {
|
||||||
|
return ["callback", "checked", "toggle"];
|
||||||
|
}
|
||||||
|
|
||||||
|
get callback() {
|
||||||
|
return this.$$.ctx[2];
|
||||||
|
}
|
||||||
|
|
||||||
|
set callback(callback) {
|
||||||
|
this.$$set({ callback });
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
|
||||||
|
get checked() {
|
||||||
|
return this.$$.ctx[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
set checked(checked) {
|
||||||
|
this.$$set({ checked });
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
|
||||||
|
get toggle() {
|
||||||
|
return this.$$.ctx[3];
|
||||||
|
}
|
||||||
|
|
||||||
|
set toggle(value) {
|
||||||
|
throw new Error("<switch-component>: Cannot set read-only property 'toggle'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("switch-component", Switch_component);
|
||||||
|
|
||||||
|
export { Switch_component as default };
|
||||||
|
|
|
@ -2,64 +2,28 @@ export let coops = [
|
||||||
{
|
{
|
||||||
logo: "chiron_logo",
|
logo: "chiron_logo",
|
||||||
name: "Chiron Health",
|
name: "Chiron Health",
|
||||||
location: [
|
location: ["EstoniaKohtlaJarve",[59.40338782864918, 27.286240058760324]],
|
||||||
{
|
market: "wellnessAndHealth",
|
||||||
en: "Estonia, Kohtla-Järve",
|
|
||||||
ru: "Эстония, Кохтла-Ярве"
|
|
||||||
},
|
|
||||||
[59.40338782864918, 27.286240058760324]],
|
|
||||||
market: {
|
|
||||||
en: "wellness and health",
|
|
||||||
ru: "благополучие и здоровье"
|
|
||||||
},
|
|
||||||
workers: 2,
|
workers: 2,
|
||||||
status: {
|
status: "inDevelopment",
|
||||||
en: "launch in 2 months",
|
|
||||||
ru: "запуск через 2 месяца"
|
|
||||||
},
|
|
||||||
website: "chrn.health",
|
website: "chrn.health",
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"],
|
||||||
{
|
description: "descriptionChironHealth"
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}],
|
|
||||||
description: {
|
|
||||||
en: "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
|
|
||||||
ru: "Chiron Health — это платформа о здоровье, предлагающая курсы и услуги по вопросам питания, физических упражнений, сна и психического благополучия"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
logo: "kuusk_logo",
|
logo: "kuusk_logo",
|
||||||
name: "Kuusk",
|
name: "Kuusk",
|
||||||
location: [
|
location: ["EstoniaKohtlaJarve",[59.405466538976185, 27.289104862336302]],
|
||||||
{
|
market: "herbalTeas",
|
||||||
en: "Estonia, Kohtla-Järve",
|
|
||||||
ru: "Эстония, Кохтла-Ярве"
|
|
||||||
},
|
|
||||||
[59.405466538976185, 27.289104862336302]],
|
|
||||||
market: {
|
|
||||||
en: "herbal teas",
|
|
||||||
ru: "травяные чаи"
|
|
||||||
},
|
|
||||||
workers: 1,
|
workers: 1,
|
||||||
status: {
|
status: "inDevelopment",
|
||||||
en: "launch in TBD months",
|
|
||||||
ru: "запуск через X месяцев"
|
|
||||||
},
|
|
||||||
website: "-",
|
website: "-",
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"],
|
||||||
{
|
description: "kuuskDescription"
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}],
|
|
||||||
description: {
|
|
||||||
en: "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course.",
|
|
||||||
ru: "Kuusk — интернет-магазин, в котором продаются травяные чаи исключительно из местных дикорастущих растений, а также онлайн-курс по собирательству."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersCoops(map,content,locale) {
|
export function addMarkersCoops(map,content) {
|
||||||
for (let g of coops) {
|
for (let g of coops) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
|
@ -72,17 +36,17 @@ export function addMarkersCoops(map,content,locale) {
|
||||||
text += "<picture><source srcset=" + "/img/coops/" + g.logo + ".webp><source srcset='/img/coops/" + g.logo + ".png'><img alt='logo' style='position: relative; max-height: 5rem; max-width: 100%; margin: auto;'></picture>" + "<br>"
|
text += "<picture><source srcset=" + "/img/coops/" + g.logo + ".webp><source srcset='/img/coops/" + g.logo + ".png'><img alt='logo' style='position: relative; max-height: 5rem; max-width: 100%; margin: auto;'></picture>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="contact") {
|
else if (field=="contact") {
|
||||||
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>" + "<br>"
|
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + content[g.contact[1]] + "</a>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="website") {
|
else if (field=="website") {
|
||||||
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0][locale[0]] + "<br>"
|
text += fieldText + content[g[field][0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
else if (field=="market" || field=="status" || field=="description") {
|
else if (field=="market" || field=="status" || field=="description") {
|
||||||
text += fieldText + g[field][locale[0]] + "<br>"
|
text += fieldText + content[g[field]] + "<br>"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
|
|
|
@ -1,87 +1,42 @@
|
||||||
export let groups = [
|
export let groups = [
|
||||||
{
|
{
|
||||||
location: [
|
location: ["DenmarkCopenhagen",[55.6840661150132, 12.557133959514688]],
|
||||||
{
|
|
||||||
en: "Denmark, Copenhagen",
|
|
||||||
ru: "Дания, Копенгаген"
|
|
||||||
},
|
|
||||||
[55.6840661150132, 12.557133959514688]],
|
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://discord.gg/xAPZmyr8B6",
|
contact: ["https://discord.gg/xAPZmyr8B6","DiscordInviteLink"]
|
||||||
{
|
|
||||||
en: "Discord invite link",
|
|
||||||
ru: "Discord ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: [
|
location: ["DenmarkKolding", [55.49261908652738, 9.470268969851743]],
|
||||||
{
|
|
||||||
en: "Denmark, Kolding",
|
|
||||||
ru: "Дания, Колдинг"
|
|
||||||
},
|
|
||||||
[55.49261908652738, 9.470268969851743]],
|
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: [
|
location: ["EstoniaKohtlaJarve", [59.40629447076191, 27.280605339416322]],
|
||||||
{
|
|
||||||
en: "Estonia, Kohtla-Järve",
|
|
||||||
ru: "Эстония, Кохтла-Ярве"
|
|
||||||
},
|
|
||||||
[59.40629447076191, 27.280605339416322]],
|
|
||||||
members: 3,
|
members: 3,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: [
|
location: ["GreeceAthens", [37.94877252621736, 23.677622972996158]],
|
||||||
{
|
|
||||||
en: "Greece, Athens",
|
|
||||||
ru: "Греция, Афины"
|
|
||||||
},
|
|
||||||
[37.94877252621736, 23.677622972996158]],
|
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: [
|
location: ["LatviaRiga", [56.94748425529816, 24.003027136431925]],
|
||||||
{
|
|
||||||
en: "Latvia, Riga",
|
|
||||||
ru: "Латвия, Рига"
|
|
||||||
},
|
|
||||||
[56.94748425529816, 24.003027136431925]],
|
|
||||||
members: 2,
|
members: 2,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
|
||||||
{
|
|
||||||
en: "WhatsApp invite link",
|
|
||||||
ru: "WhatsApp ссылка"
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersGroups(map,content,locale) {
|
export function addMarkersGroups(map,content) {
|
||||||
for (let g of groups) {
|
for (let g of groups) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = content[field] + ": "
|
let fieldText = content[field] + ": "
|
||||||
if (field=="contact") {
|
if (field=="contact") {
|
||||||
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
|
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + content[g.contact[1]] + "</a>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0][locale[0]] + "<br>"
|
text += fieldText + content[g[field][0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
export let partners = [
|
||||||
|
{
|
||||||
|
name: "Gaia's Fall",
|
||||||
|
type: "typeGaiasFall",
|
||||||
|
link: "https://discord.libsoc.org/invite/",
|
||||||
|
description: "descriptionGaiasFall",
|
||||||
|
logo: "gaias_fall"
|
||||||
|
}
|
||||||
|
]
|
|
@ -1 +0,0 @@
|
||||||
["en","ru"]
|
|
|
@ -6,5 +6,8 @@
|
||||||
"location": "Location",
|
"location": "Location",
|
||||||
"status": "Status",
|
"status": "Status",
|
||||||
"members": "Members",
|
"members": "Members",
|
||||||
"contact": "Contact"
|
"contact": "Contact",
|
||||||
|
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
|
||||||
|
"forming": "forming",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp invite link"
|
||||||
}
|
}
|
|
@ -11,5 +11,13 @@
|
||||||
"workers": "Workers",
|
"workers": "Workers",
|
||||||
"contact": "Contact",
|
"contact": "Contact",
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
"website": "Website"
|
"website": "Website",
|
||||||
|
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
|
||||||
|
"wellnessAndHealth": "wellness and health",
|
||||||
|
"inDevelopment": "in development",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp invite link",
|
||||||
|
"descriptionChironHealth": "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
|
||||||
|
"herbalTeas": "herbal teas",
|
||||||
|
"kuuskDescription": "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course."
|
||||||
|
|
||||||
}
|
}
|
|
@ -6,5 +6,12 @@
|
||||||
"subheading2": "Europe",
|
"subheading2": "Europe",
|
||||||
"location": "Location",
|
"location": "Location",
|
||||||
"members": "Members",
|
"members": "Members",
|
||||||
"contact": "Contact"
|
"contact": "Contact",
|
||||||
|
"DenmarkCopenhagen": "Denmark, Copenhagen",
|
||||||
|
"DenmarkKolding": "Denmark, Kolding",
|
||||||
|
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
|
||||||
|
"GreeceAthens": "Greece, Athens",
|
||||||
|
"LatviaRiga": "Latvia, Riga",
|
||||||
|
"DiscordInviteLink": "Discord invite link",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp invite link"
|
||||||
}
|
}
|
|
@ -7,5 +7,8 @@
|
||||||
"location": "Location",
|
"location": "Location",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
"link": "Link",
|
"link": "Link",
|
||||||
"description": "Description"
|
"description": "Description",
|
||||||
|
"typeGaiasFall": "a place to discuss and organize",
|
||||||
|
"descriptionGaiasFall": "Gaia's Fall is a server that promotes Solarpunk ideals, environmentalism, anarchism, and anti-capitalism. We encourage civil debates, discussions of theories and possibilities, and the creation of communities focused on shaping a better world. It is our official Discord server where we organize and work together."
|
||||||
|
|
||||||
}
|
}
|
|
@ -6,5 +6,8 @@
|
||||||
"location": "Локация",
|
"location": "Локация",
|
||||||
"status": "Статус",
|
"status": "Статус",
|
||||||
"members": "Участники",
|
"members": "Участники",
|
||||||
"contact": "Контакт"
|
"contact": "Контакт",
|
||||||
|
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
|
||||||
|
"forming": "формируется",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp ссылка"
|
||||||
}
|
}
|
|
@ -11,5 +11,12 @@
|
||||||
"workers": "Работники",
|
"workers": "Работники",
|
||||||
"contact": "Контакт",
|
"contact": "Контакт",
|
||||||
"description": "Описание",
|
"description": "Описание",
|
||||||
"website": "Вебсайт"
|
"website": "Вебсайт",
|
||||||
|
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
|
||||||
|
"wellnessAndHealth": "благополучие и здоровье",
|
||||||
|
"inDevelopment": "в разработке",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp ссылка",
|
||||||
|
"descriptionChironHealth": "Chiron Health — это платформа о здоровье, предлагающая курсы и услуги по вопросам питания, физических упражнений, сна и психического благополучия",
|
||||||
|
"herbalTeas": "травяные чаи",
|
||||||
|
"kuuskDescription": "Kuusk — интернет-магазин, в котором продаются травяные чаи исключительно из местных дикорастущих растений, а также онлайн-курс по собирательству."
|
||||||
}
|
}
|
|
@ -6,5 +6,12 @@
|
||||||
"subheading2": "Европа",
|
"subheading2": "Европа",
|
||||||
"location": "Локация",
|
"location": "Локация",
|
||||||
"members": "Участники",
|
"members": "Участники",
|
||||||
"contact": "Контакт"
|
"contact": "Контакт",
|
||||||
|
"DenmarkCopenhagen": "Дания, Копенгаген",
|
||||||
|
"DenmarkKolding": "Дания, Колдинг",
|
||||||
|
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
|
||||||
|
"GreeceAthens": "Греция, Афины",
|
||||||
|
"LatviaRiga": "Латвия, Рига",
|
||||||
|
"DiscordInviteLink": "Discord ссылка",
|
||||||
|
"WhatsAppInviteLink": "WhatsApp ссылка"
|
||||||
}
|
}
|
|
@ -7,5 +7,7 @@
|
||||||
"location": "Локация",
|
"location": "Локация",
|
||||||
"type": "Тип",
|
"type": "Тип",
|
||||||
"link": "Ссылка",
|
"link": "Ссылка",
|
||||||
"description": "Описание"
|
"description": "Описание",
|
||||||
|
"typeGaiasFall": "место для общения и организации",
|
||||||
|
"descriptionGaiasFall": "Gaia's Fall — это сервер, который продвигает идеалы соларпанка, защиту окружающей среды, анархизм и антикапитализм. Мы поощряем гражданские дебаты, обсуждение теорий и возможностей, а также создание сообществ, сосредоточенных на формировании лучшего мира. Это наш официальный сервер Discord, на котором мы организуемся и работаем вместе."
|
||||||
}
|
}
|
Loading…
Reference in New Issue