Update
This commit is contained in:
parent
77c59ace37
commit
aa65796fac
|
@ -91,14 +91,15 @@ export function loadLocaleContent(content,componentName,loaded,callback) {
|
|||
locale = "en"
|
||||
}
|
||||
}
|
||||
if (callback!=undefined) {
|
||||
callback(locale)
|
||||
}
|
||||
getData("/locales/" + locale + "/" + componentName + ".json" ,function(response) {
|
||||
let parsed = JSON.parse(response)
|
||||
content.set(parsed)
|
||||
if (callback!=undefined) {
|
||||
callback(locale)
|
||||
}
|
||||
loaded = 1
|
||||
})
|
||||
return locale
|
||||
}
|
||||
|
||||
export function getLocale(locale,lang) {
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"tableOfContents": "TABLE OF CONTENTS"
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"heading": "Кооперативы",
|
||||
"p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием и контролируют его. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.",
|
||||
"p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.",
|
||||
"p2": "Сосредоточив внимание на потребностях сотрудников, наши кооперативы создают благоприятную и устойчивую рабочую среду, которая способствует социальной сплоченности и гарантиям занятости. Мы также уделяем первостепенное внимание интересам местных сообществ, ориентируясь на долгосрочную перспективу. Когда решения принимают работники, мы избегаем вредных краткосрочных стратегий, ориентированных на получение прибыли, и вместо этого реинвестируем нашу прибыль, способствуя развитию и устойчивости сообщества.",
|
||||
"subheading1": "Наши кооперативы",
|
||||
"subheading2": "Европа",
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"tableOfContents": "ОГЛАВЛЕНИЕ"
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
"manifesto": "Манифест",
|
||||
"joinUs": "Присоединяйся",
|
||||
"groups": "Группы",
|
||||
"communities": "Сообщества",
|
||||
"communities": "Коммуны",
|
||||
"cooperatives": "Кооперативы",
|
||||
"partners": "Партнеры"
|
||||
}
|
|
@ -5,17 +5,16 @@
|
|||
import { onMount } from 'svelte'
|
||||
import { writable } from 'svelte/store';
|
||||
import { communities, addMarkersCommunities } from '/js/communities.js'
|
||||
import { loadLocaleContent, getLocale } from "/js/libraries/serverTools.js"
|
||||
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||
|
||||
// Import components
|
||||
import "/js/components/map-component.js"
|
||||
|
||||
// Main code
|
||||
let loaded
|
||||
let locale = []
|
||||
let content = writable({})
|
||||
|
||||
loadLocaleContent(content,"communities-component",loaded,(lang) => getLocale(locale,lang))
|
||||
let locale = loadLocaleContent(content,"communities-component",loaded)
|
||||
|
||||
function mapCallbackCommunities(createMap,content,locale) {
|
||||
let map = createMap([51.505, -0.09],3)
|
||||
|
@ -40,10 +39,10 @@
|
|||
<h4>{$content.subheading2}</h4>
|
||||
{#each communities as community}
|
||||
<div class="location-info">
|
||||
<p><b>{$content.location}: </b>{community.location[0][locale[0]]}</p>
|
||||
<p><b>{$content.status}: </b>{community.status[locale[0]]}</p>
|
||||
<p><b>{$content.location}: </b>{community.location[0][locale]}</p>
|
||||
<p><b>{$content.status}: </b>{community.status[locale]}</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[0]]}</a></p>
|
||||
<p><b>{$content.contact}: </b><a href={community.contact[0]} target=;_blank; rel=noreferrer>{community.contact[1][locale]}</a></p>
|
||||
</div>
|
||||
{/each}
|
||||
|
||||
|
|
|
@ -5,17 +5,16 @@
|
|||
import { onMount } from 'svelte'
|
||||
import { writable } from 'svelte/store';
|
||||
import { coops, addMarkersCoops } from '/js/coops.js'
|
||||
import { loadLocaleContent,getLocale } from "/js/libraries/serverTools.js"
|
||||
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||
|
||||
// Import components
|
||||
import "/js/components/map-component.js"
|
||||
|
||||
// Main code
|
||||
let loaded
|
||||
let locale = []
|
||||
let content = writable({})
|
||||
|
||||
loadLocaleContent(content,"cooperatives-component",loaded,(lang) => getLocale(locale,lang))
|
||||
let locale = loadLocaleContent(content,"cooperatives-component",loaded)
|
||||
|
||||
function mapCallbackCoops(createMap,content,locale) {
|
||||
let map = createMap([51.505, -0.09],3)
|
||||
|
@ -43,12 +42,12 @@
|
|||
<div class="img-general-info">
|
||||
<div>
|
||||
<p><b>{$content.name}: </b>{coop.name}</p>
|
||||
<p><b>{$content.location}: </b>{coop.location[0][locale[0]]}</p>
|
||||
<p><b>{$content.market}: </b>{coop.market[locale[0]]}</p>
|
||||
<p><b>{$content.location}: </b>{coop.location[0][locale]}</p>
|
||||
<p><b>{$content.market}: </b>{coop.market[locale]}</p>
|
||||
<p><b>{$content.workers}: </b>{coop.workers}</p>
|
||||
<p><b>{$content.status}: </b>{coop.status[locale[0]]}</p>
|
||||
<p><b>{$content.status}: </b>{coop.status[locale]}</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[0]]}</a></p>
|
||||
<p><b>{$content.contact}: </b><a href={coop.contact[0]} target=;_blank; rel=noreferrer>{coop.contact[1][locale]}</a></p>
|
||||
</div>
|
||||
<picture>
|
||||
<source srcset={"/img/coops/"+coop.logo+".webp"}>
|
||||
|
@ -56,7 +55,7 @@
|
|||
<img class="coop-logo" alt="logo">
|
||||
</picture>
|
||||
</div>
|
||||
<p><b>{$content.description}: </b>{coop.description[locale[0]]}</p>
|
||||
<p><b>{$content.description}: </b>{coop.description[locale]}</p>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
|
|
@ -4,16 +4,15 @@
|
|||
|
||||
// Import statements
|
||||
import { writable } from 'svelte/store';
|
||||
import { loadLocaleContent,getLocale } from "/js/libraries/serverTools.js"
|
||||
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||
|
||||
// Import components
|
||||
|
||||
// Main code
|
||||
let loaded
|
||||
let locale = []
|
||||
let content = writable({})
|
||||
|
||||
loadLocaleContent(content,"footer-component",loaded,(lang) => getLocale(locale,lang))
|
||||
let locale = loadLocaleContent(content,"footer-component",loaded)
|
||||
|
||||
</script>
|
||||
|
||||
|
@ -74,7 +73,7 @@ footer p, footer a {
|
|||
display: grid;
|
||||
margin-left: 2rem;
|
||||
margin-right: 2rem;
|
||||
margin-bottom: 1.4rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.not-logged {
|
||||
|
|
|
@ -5,17 +5,16 @@
|
|||
import { onMount } from 'svelte'
|
||||
import { writable } from 'svelte/store';
|
||||
import { groups, addMarkersGroups } from '/js/groups.js'
|
||||
import { loadLocaleContent,getLocale } from "/js/libraries/serverTools.js"
|
||||
import { loadLocaleContent} from "/js/libraries/serverTools.js"
|
||||
|
||||
// Import components
|
||||
import "/js/components/map-component.js"
|
||||
|
||||
// Main code
|
||||
let loaded
|
||||
let locale = []
|
||||
let content = writable({})
|
||||
|
||||
loadLocaleContent(content,"groups-component",loaded,(lang) => getLocale(locale,lang))
|
||||
let locale = loadLocaleContent(content,"groups-component",loaded)
|
||||
|
||||
function mapCallbackGroups(createMap,content,locale) {
|
||||
let map = createMap([51.505, -0.09],3)
|
||||
|
@ -41,9 +40,9 @@
|
|||
<h4>{$content.subheading2}</h4>
|
||||
{#each groups as group}
|
||||
<div class="location-info">
|
||||
<p><b>{$content.location}: </b>{group.location[0][locale[0]]}</p>
|
||||
<p><b>{$content.location}: </b>{group.location[0][locale]}</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[0]]}</a></p>
|
||||
<p><b>{$content.contact}: </b><a href={group.contact[0]} target=;_blank; rel=noreferrer>{group.contact[1][locale]}</a></p>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
|
|
@ -7,17 +7,16 @@
|
|||
import { addMarkersGroups } from '/js/groups.js'
|
||||
import { addMarkersCoops } from '/js/coops.js'
|
||||
import { addMarkersCommunities } from '/js/communities.js'
|
||||
import { loadLocaleContent, getLocale } from "/js/libraries/serverTools.js"
|
||||
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||
|
||||
// Import components
|
||||
import "/js/components/map-component.js"
|
||||
|
||||
// Main code
|
||||
let loaded
|
||||
let locale = []
|
||||
let content = writable({})
|
||||
|
||||
loadLocaleContent(content,"join-us-component",loaded,(lang) => getLocale(locale,lang))
|
||||
let locale = loadLocaleContent(content,"join-us-component",loaded)
|
||||
|
||||
function mapCallback(createMap,content,locale) {
|
||||
let map = createMap([51.505, -0.09],3)
|
||||
|
@ -55,9 +54,9 @@
|
|||
<div id="call-to-action-list">
|
||||
<p>{$content.findOur}</p>
|
||||
<ol>
|
||||
<li><a href={"/" + locale[0] + "/groups"}>{$content.group}</a>,</li>
|
||||
<li><a href={"/" + locale[0] + "/communities"}>{$content.community}</a> {$content.or}</li>
|
||||
<li><a href={"/" + locale[0] + "/cooperatives"}>{$content.cooperative}</a></li>
|
||||
<li><a href={"/" + locale + "/groups"}>{$content.group}</a>,</li>
|
||||
<li><a href={"/" + locale + "/communities"}>{$content.community}</a> {$content.or}</li>
|
||||
<li><a href={"/" + locale + "/cooperatives"}>{$content.cooperative}</a></li>
|
||||
</ol>
|
||||
<p>{$content.nearYou}</p>
|
||||
</div>
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
loadLocaleContent(content,"landing-component",loaded,changeWidth)
|
||||
let locale = loadLocaleContent(content,"landing-component",loaded,changeWidth)
|
||||
changeWidth(locale)
|
||||
|
||||
onMount(() => {
|
||||
|
||||
|
|
|
@ -3,9 +3,10 @@
|
|||
<script>
|
||||
// Import statements
|
||||
import { onMount } from 'svelte'
|
||||
import { writable } from 'svelte/store';
|
||||
import { getData } from "/js/libraries/serverTools.js"
|
||||
import { px2rem } from "/js/libraries/miscTools.js"
|
||||
import { locales } from "/js/libraries/serverTools.js"
|
||||
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||
|
||||
// Import components
|
||||
|
||||
|
@ -24,15 +25,12 @@
|
|||
let margin = 0
|
||||
let root
|
||||
let main
|
||||
|
||||
let loaded
|
||||
let content = writable({})
|
||||
|
||||
let locale = loadLocaleContent(content,"manifesto-component",loaded)
|
||||
|
||||
let locale
|
||||
let localeUrl = location.href.split("/").filter(x => Object.keys(locales).includes(x))
|
||||
if (localeUrl.length==0) {
|
||||
locale = "en"
|
||||
}
|
||||
else {
|
||||
locale = localeUrl[0]
|
||||
}
|
||||
|
||||
const htmlDelims = ["ul","ol"]
|
||||
getData("/locales/"+ locale + "/manifesto.txt",function(response) {
|
||||
|
@ -166,74 +164,78 @@
|
|||
})
|
||||
</script>
|
||||
|
||||
<div id="container" bind:this={root}>
|
||||
<div id="text-container">
|
||||
{#key key}
|
||||
<div bind:this={contentTable} id="table-content">
|
||||
<button id="toggle-content" bind:this={contentButton} on:click={() => hideBlock(contentArrow,contentBlock)}>
|
||||
TABLE OF CONTENTS
|
||||
<img bind:this={contentArrow} src="../assets/arrow_down.svg" alt="arrow down" style="transform: scaleY(-1)">
|
||||
</button>
|
||||
<div bind:this={contentBlock} class="module" style="display: initial;">
|
||||
{#each contentHeadings as obj}
|
||||
{#if Array.isArray(obj)}
|
||||
{#each obj as obj2}
|
||||
<div class="heading-button-wrapper">
|
||||
<button bind:this={buttons[obj2.index]} on:click={() => goToChapter(obj2.id)} class="level1 heading-button">
|
||||
{obj2.name}
|
||||
</button>
|
||||
</div>
|
||||
{#key loaded}
|
||||
{#if Object.keys($content).length!=0}
|
||||
<div id="container" bind:this={root}>
|
||||
<div id="text-container">
|
||||
{#key key}
|
||||
<div bind:this={contentTable} id="table-content">
|
||||
<button id="toggle-content" bind:this={contentButton} on:click={() => hideBlock(contentArrow,contentBlock)}>
|
||||
{$content.tableOfContents}
|
||||
<img bind:this={contentArrow} src="../assets/arrow_down.svg" alt="arrow down" style="transform: scaleY(-1)">
|
||||
</button>
|
||||
<div bind:this={contentBlock} class="module" style="display: initial;">
|
||||
{#each contentHeadings as obj}
|
||||
{#if Array.isArray(obj)}
|
||||
{#each obj as obj2}
|
||||
<div class="heading-button-wrapper">
|
||||
<button bind:this={buttons[obj2.index]} on:click={() => goToChapter(obj2.id)} class="level1 heading-button">
|
||||
{obj2.name}
|
||||
</button>
|
||||
</div>
|
||||
{/each}
|
||||
{:else}
|
||||
<div class="heading-button-wrapper">
|
||||
<button bind:this={buttons[obj.index]} on:click={() => goToChapter(obj.id)} class="level0 heading-button">
|
||||
{obj.name}
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
{/each}
|
||||
{:else}
|
||||
<div class="heading-button-wrapper">
|
||||
<button bind:this={buttons[obj.index]} on:click={() => goToChapter(obj.id)} class="level0 heading-button">
|
||||
{obj.name}
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="main" bind:this={main}>
|
||||
{#each manifesto as line}
|
||||
{#if line!==""}
|
||||
{#if typeof (line === 'object') && (Object.keys(line)[0]=="ul")}
|
||||
<ul>
|
||||
{#each line.ul as line2}
|
||||
<li>{line2}</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{:else if typeof (line === 'object') && (Object.keys(line)[0]=="ol")}
|
||||
<ol>
|
||||
{#each line.ol as line2}
|
||||
<li>
|
||||
{@html line2}
|
||||
</li>
|
||||
{/each}
|
||||
</ol>
|
||||
{:else if typeof (line === 'object') && (line.type=="h3")}
|
||||
<button on:click ={contentTable.scrollIntoView({block: 'start'}, true)} style="display: block; width: 100%;">
|
||||
<h3 bind:this={headingsObjects[line.id]} id={line.id}>{@html line.line}</h3>
|
||||
</button>
|
||||
{:else if typeof (line === 'object') && (line.type=="h2")}
|
||||
<button on:click ={contentTable.scrollIntoView({block: 'start'}, true)} style="display: block; width: 100%;">
|
||||
<h2 bind:this={headingsObjects[line.id]} id={line.id}>{@html line.line}</h2>
|
||||
</button>
|
||||
{:else if line[0]=="#"}
|
||||
<h1>{@html line.slice(2,line.length)}</h1>
|
||||
{:else}
|
||||
<p class="margin-end">
|
||||
{@html line}
|
||||
</p>
|
||||
{/if}
|
||||
{:else if false}
|
||||
<b></b>
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
{/key}
|
||||
</div>
|
||||
<div id="main" bind:this={main}>
|
||||
{#each manifesto as line}
|
||||
{#if line!==""}
|
||||
{#if typeof (line === 'object') && (Object.keys(line)[0]=="ul")}
|
||||
<ul>
|
||||
{#each line.ul as line2}
|
||||
<li>{line2}</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{:else if typeof (line === 'object') && (Object.keys(line)[0]=="ol")}
|
||||
<ol>
|
||||
{#each line.ol as line2}
|
||||
<li>
|
||||
{@html line2}
|
||||
</li>
|
||||
{/each}
|
||||
</ol>
|
||||
{:else if typeof (line === 'object') && (line.type=="h3")}
|
||||
<button on:click ={contentTable.scrollIntoView({block: 'start'}, true)} style="display: block; width: 100%;">
|
||||
<h3 bind:this={headingsObjects[line.id]} id={line.id}>{@html line.line}</h3>
|
||||
</button>
|
||||
{:else if typeof (line === 'object') && (line.type=="h2")}
|
||||
<button on:click ={contentTable.scrollIntoView({block: 'start'}, true)} style="display: block; width: 100%;">
|
||||
<h2 bind:this={headingsObjects[line.id]} id={line.id}>{@html line.line}</h2>
|
||||
</button>
|
||||
{:else if line[0]=="#"}
|
||||
<h1>{@html line.slice(2,line.length)}</h1>
|
||||
{:else}
|
||||
<p class="margin-end">
|
||||
{@html line}
|
||||
</p>
|
||||
{/if}
|
||||
{:else if false}
|
||||
<b></b>
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
{/key}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/key}
|
||||
|
||||
|
||||
<style>
|
||||
|
|
|
@ -5,17 +5,16 @@
|
|||
// Import statements
|
||||
import { onMount, getContext } from 'svelte'
|
||||
import { writable } from 'svelte/store'
|
||||
import { loadLocaleContent, getLocale, locales } from "/js/libraries/serverTools.js"
|
||||
import { loadLocaleContent, locales } from "/js/libraries/serverTools.js"
|
||||
|
||||
// Main code
|
||||
let hambInput
|
||||
let navbar
|
||||
let localesDropdown
|
||||
let loaded
|
||||
let locale = []
|
||||
let content = writable({})
|
||||
|
||||
loadLocaleContent(content,"navbar-component",loaded,(lang) => getLocale(locale,lang))
|
||||
let locale = loadLocaleContent(content,"navbar-component",loaded)
|
||||
|
||||
function changeNavbar() {
|
||||
if (hambInput.checked) {
|
||||
|
@ -65,7 +64,7 @@
|
|||
<input bind:this={hambInput} type="checkbox" id="side-menu" on:click={changeNavbar}>
|
||||
<label id="hamb" for="side-menu"><span id="hamb-line"></span></label>
|
||||
<!-- Logo -->
|
||||
<a id=logo-container href={"/" + locale[0] + "/"}>
|
||||
<a id=logo-container href={"/" + locale + "/"}>
|
||||
<img src="/img/common/flag.png" id="navbar-logo" alt="logo">
|
||||
<span id="navbar-logo-text">{$content.orgName}</span>
|
||||
</a>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Import statements
|
||||
import { onMount } from 'svelte'
|
||||
import { writable } from 'svelte/store';
|
||||
import { loadLocaleContent,getLocale } from "/js/libraries/serverTools.js"
|
||||
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||
//import { communities, addMarkersCommunities } from '/js/communities.js'
|
||||
|
||||
// Import components
|
||||
|
@ -12,10 +12,9 @@
|
|||
|
||||
// Main code
|
||||
let loaded
|
||||
let locale = []
|
||||
let content = writable({})
|
||||
|
||||
loadLocaleContent(content,"partners-component",loaded,(lang) => getLocale(locale,lang))
|
||||
let locale = loadLocaleContent(content,"partners-component",loaded)
|
||||
|
||||
let partners = [
|
||||
{
|
||||
|
@ -58,11 +57,11 @@
|
|||
</picture>
|
||||
<div>
|
||||
<p><b>{$content.name}: </b>{partner.name}</p>
|
||||
<p><b>{$content.type}: </b>{partner.type[locale[0]]}</p>
|
||||
<p><b>{$content.type}: </b>{partner.type[locale]}</p>
|
||||
<p><b>{$content.link}: </b><a href={partner.link} target=;_blank; rel=noreferrer>{partner.link}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<p><b>{$content.description}: </b>{partner.description[locale[0]]}</p>
|
||||
<p><b>{$content.description}: </b>{partner.description[locale]}</p>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
|
|
@ -1 +1 @@
|
|||
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 f,m as b,p as x}from"./index-ce8c147b.js";import{w as j}from"./index-f2dbf8ff.js";import{communities as v,addMarkersCommunities as w}from"../../../../../../../../../js/communities.js";import{loadLocaleContent as k,getLocale as y}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function z(t,n,o){const e=t.slice();return e[6]=n[o],e}function D(t){let n,o,i,m,a,r,c,j,w,k,y,D,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]=E(z(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),y=p(),D=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),f(n,o),f(o,i),f(i,m),f(o,a),f(o,r),f(o,j),f(o,w),f(w,k),f(o,y),f(o,D),f(D,O),f(o,R),f(o,T),f(o,C),f(o,H),f(H,L),f(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+"")&&b(m,N),1&n&&S!==(S=t[0].p1+"")&&b(k,S),1&n&&_!==(_=t[0].subheading1+"")&&b(O,_),1&n&&A!==(A=t[5])&&d(T,"callback",A),1&n&&q!==(q=t[0].subheading2+"")&&b(L,q),5&n){let e;for(B=v,e=0;e<B.length;e+=1){const i=z(t,B,e);F[e]?F[e].p(i,n):(F[e]=E(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 E(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[2][0]]+"",_=t[0].status+"",q=t[6].status[t[2][0]]+"",B=t[0].members+"",F=t[6].members+"",G=t[0].contact+"",I=t[6].contact[1][t[2][0]]+"";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),f(n,o),f(o,i),f(i,m),f(i,a),f(o,r),f(n,c),f(n,u),f(u,d),f(d,x),f(d,j),f(u,v),f(n,w),f(n,k),f(k,y),f(y,z),f(y,D),f(k,E),f(n,O),f(n,R),f(R,T),f(T,A),f(T,C),f(R,H),f(H,L),f(n,M)},p(t,n){1&n&&N!==(N=t[0].location+"")&&b(m,N),1&n&&_!==(_=t[0].status+"")&&b(x,_),1&n&&B!==(B=t[0].members+"")&&b(z,B),1&n&&G!==(G=t[0].contact+"")&&b(A,G)},d(t){t&&s(n)}}}function O(t){let n,o=0!=Object.keys(t[0]).length,i=o&&D(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=D(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 R(t,n,o){let e,i,m=[],a=j({});function s(t,n,o){let e=t([51.505,-.09],3);w(e,n,o)}r(t,a,(t=>o(0,e=t))),k(a,"communities-component",i,(t=>y(m,t))),c((()=>{}));return[e,i,m,a,s,t=>s(t,e,m)]}class T 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},R,O,i,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("communities-component",T);export{T as default};
|
||||
import{S as t,i as e,a as n,b as o,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 f,m as b,p as x}from"./index-ce8c147b.js";import{w as j}from"./index-f2dbf8ff.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,e,n){const o=t.slice();return o[6]=e[n],o}function z(t){let e,n,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 e=0;e<B.length;e+=1)F[e]=D(y(t,B,e));return{c(){e=l("div"),n=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(n,"id","text-container"),h(e,"id","container")},m(t,s){o(t,e,s),f(e,n),f(n,i),f(i,m),f(n,a),f(n,r),f(n,j),f(n,w),f(w,k),f(n,z),f(n,E),f(E,O),f(n,R),f(n,T),f(n,C),f(n,H),f(H,L),f(n,M);for(let t=0;t<F.length;t+=1)F[t].m(n,null)},p(t,e){if(1&e&&N!==(N=t[0].heading+"")&&b(m,N),1&e&&S!==(S=t[0].p1+"")&&b(k,S),1&e&&_!==(_=t[0].subheading1+"")&&b(O,_),1&e&&A!==(A=t[5])&&d(T,"callback",A),1&e&&q!==(q=t[0].subheading2+"")&&b(L,q),9&e){let o;for(B=v,o=0;o<B.length;o+=1){const i=y(t,B,o);F[o]?F[o].p(i,e):(F[o]=D(i),F[o].c(),F[o].m(n,null))}for(;o<F.length;o+=1)F[o].d(1);F.length=B.length}},d(t){t&&s(e),x(F,t)}}}function D(t){let e,n,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(){e=l("div"),n=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(e,"class","location-info")},m(t,s){o(t,e,s),f(e,n),f(n,i),f(i,m),f(i,a),f(n,r),f(e,c),f(e,u),f(u,d),f(d,x),f(d,j),f(u,v),f(e,w),f(e,k),f(k,y),f(y,z),f(y,D),f(k,E),f(e,O),f(e,R),f(R,T),f(T,A),f(T,C),f(R,H),f(H,L),f(e,M)},p(t,e){1&e&&N!==(N=t[0].location+"")&&b(m,N),1&e&&_!==(_=t[0].status+"")&&b(x,_),1&e&&B!==(B=t[0].members+"")&&b(z,B),1&e&&G!==(G=t[0].contact+"")&&b(A,G)},d(t){t&&s(e)}}}function E(t){let e,n=0!=Object.keys(t[0]).length,i=n&&z(t);return{c(){i&&i.c(),e=m(),this.c=a},m(t,n){i&&i.m(t,n),o(t,e,n)},p(t,[o]){1&o&&(n=0!=Object.keys(t[0]).length),n?i?i.p(t,o):(i=z(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:a,o:a,d(t){i&&i.d(t),t&&s(e)}}}function O(t,e,n){let o,i,m=j({});r(t,m,(t=>n(0,o=t)));let a=k(m,"communities-component",i);function s(t,e,n){let o=t([51.505,-.09],3);w(o,e,n)}c((()=>{}));return[o,i,m,a,s,t=>s(t,o,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>",e(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},O,E,i,{},null),t&&t.target&&o(t.target,this,t.anchor)}}customElements.define("communities-component",R);export{R as default};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
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,r as g,l as h,u as p,m as u}from"./index-ce8c147b.js";import{w as b}from"./index-f2dbf8ff.js";import{loadLocaleContent as w,getLocale as v}from"../../../../../../../../../js/libraries/serverTools.js";function y(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","2rem"),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 k(t){let e,o=0!=Object.keys(t[0]).length,a=o&&y(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=y(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 x(t,e,o){let r,a,i=[],n=b({});m(t,n,(t=>o(0,r=t))),w(n,"footer-component",a,(t=>v(i,t)));return[r,a,n,()=>{location.href="#"}]}class j 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:1.4rem}.logged{grid-template-columns:auto auto 2rem}footer h2{color:#ffffff;font-size:1.4rem;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.2rem;color:#ffffff}footer p{display:block;font-size:1.2rem;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},x,k,a,{},null),t&&t.target&&r(t.target,this,t.anchor)}}customElements.define("footer-component",j);export{j as default};
|
||||
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,r as g,l as h,u as p,m as u}from"./index-ce8c147b.js";import{w as b}from"./index-f2dbf8ff.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","2rem"),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.4rem;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.2rem;color:#ffffff}footer p{display:block;font-size:1.2rem;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};
|
||||
|
|
|
@ -1 +1 @@
|
|||
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 f,m as b,p as x}from"./index-ce8c147b.js";import{w as j}from"./index-f2dbf8ff.js";import{groups as v,addMarkersGroups as w}from"../../../../../../../../../js/groups.js";import{loadLocaleContent as k,getLocale as y}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function z(t,o,n){const e=t.slice();return e[6]=o[n],e}function D(t){let o,n,r,a,i,m,c,j,w,k,y,D,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]=E(z(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),y=g(),D=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),f(o,n),f(n,r),f(r,a),f(n,i),f(n,m),f(n,j),f(n,w),f(w,k),f(n,y),f(n,D),f(D,O),f(n,R),f(n,T),f(T,A),f(n,C),f(n,H),f(n,M),f(n,N),f(N,S),f(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+"")&&b(a,q),1&o&&B!==(B=t[0].p1+"")&&b(k,B),1&o&&F!==(F=t[0].p2+"")&&b(O,F),1&o&&G!==(G=t[0].subheading1+"")&&b(A,G),1&o&&L!==(L=t[5])&&d(H,"callback",L),1&o&&I!==(I=t[0].subheading2+"")&&b(S,I),5&o){let e;for(J=v,e=0;e<J.length;e+=1){const r=z(t,J,e);K[e]?K[e].p(r,o):(K[e]=E(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 E(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[2][0]]+"",C=t[0].members+"",H=t[6].members+"",L=t[0].contact+"",M=t[6].contact[1][t[2][0]]+"";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),f(o,n),f(n,r),f(r,a),f(r,i),f(n,m),f(o,c),f(o,u),f(u,d),f(d,x),f(d,j),f(u,v),f(o,w),f(o,k),f(k,y),f(y,z),f(y,D),f(k,E),f(E,O),f(o,R)},p(t,o){1&o&&T!==(T=t[0].location+"")&&b(a,T),1&o&&C!==(C=t[0].members+"")&&b(x,C),1&o&&L!==(L=t[0].contact+"")&&b(z,L)},d(t){t&&s(o)}}}function O(t){let o,n=0!=Object.keys(t[0]).length,r=n&&D(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=D(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 R(t,o,n){let e,r,a=[],i=j({});function s(t,o,n){let e=t([51.505,-.09],3);w(e,o,n)}m(t,i,(t=>n(0,e=t))),k(i,"groups-component",r,(t=>y(a,t))),c((()=>{}));return[e,r,a,i,s,t=>s(t,e,a)]}class T 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},R,O,r,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("groups-component",T);export{T as default};
|
||||
import{S as t,i as o,a as e,b as n,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 f,m as b,p as x}from"./index-ce8c147b.js";import{w as j}from"./index-f2dbf8ff.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,e){const n=t.slice();return n[6]=o[e],n}function z(t){let o,e,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"),e=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(e,"id","text-container"),h(o,"id","container")},m(t,s){n(t,o,s),f(o,e),f(e,r),f(r,a),f(e,i),f(e,m),f(e,j),f(e,w),f(w,k),f(e,z),f(e,E),f(E,O),f(e,R),f(e,T),f(T,A),f(e,C),f(e,H),f(e,M),f(e,N),f(N,S),f(e,_);for(let t=0;t<K.length;t+=1)K[t].m(e,null)},p(t,o){if(1&o&&q!==(q=t[0].heading+"")&&b(a,q),1&o&&B!==(B=t[0].p1+"")&&b(k,B),1&o&&F!==(F=t[0].p2+"")&&b(O,F),1&o&&G!==(G=t[0].subheading1+"")&&b(A,G),1&o&&L!==(L=t[5])&&d(H,"callback",L),1&o&&I!==(I=t[0].subheading2+"")&&b(S,I),9&o){let n;for(J=v,n=0;n<J.length;n+=1){const r=y(t,J,n);K[n]?K[n].p(r,o):(K[n]=D(r),K[n].c(),K[n].m(e,null))}for(;n<K.length;n+=1)K[n].d(1);K.length=J.length}},d(t){t&&s(o),x(K,t)}}}function D(t){let o,e,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"),e=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){n(t,o,s),f(o,e),f(e,r),f(r,a),f(r,i),f(e,m),f(o,c),f(o,u),f(u,d),f(d,x),f(d,j),f(u,v),f(o,w),f(o,k),f(k,y),f(y,z),f(y,D),f(k,E),f(E,O),f(o,R)},p(t,o){1&o&&T!==(T=t[0].location+"")&&b(a,T),1&o&&C!==(C=t[0].members+"")&&b(x,C),1&o&&L!==(L=t[0].contact+"")&&b(z,L)},d(t){t&&s(o)}}}function E(t){let o,e=0!=Object.keys(t[0]).length,r=e&&z(t);return{c(){r&&r.c(),o=a(),this.c=i},m(t,e){r&&r.m(t,e),n(t,o,e)},p(t,[n]){1&n&&(e=0!=Object.keys(t[0]).length),e?r?r.p(t,n):(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,e){let n,r,a=j({});m(t,a,(t=>e(0,n=t)));let i=k(a,"groups-component",r);function s(t,o,e){let n=t([51.505,-.09],3);w(n,o,e)}c((()=>{}));return[n,r,a,i,s,t=>s(t,n,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:e(this.attributes),customElement:!0},O,E,r,{},null),t&&t.target&&n(t.target,this,t.anchor)}}customElements.define("groups-component",R);export{R as default};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
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,r as h,l as f,m as v,v as x}from"./index-ce8c147b.js";import{loadLocaleContent as w}from"../../../../../../../../../js/libraries/serverTools.js";import{w as T}from"./index-f2dbf8ff.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),f(t,o),f(t,r),f(t,s),f(s,n),f(n,a),f(s,c),f(s,x),f(x,w),f(w,T),f(T,b),f(w,y),f(w,j),f(w,z),f(w,E),f(E,H),f(x,L),f(x,M),f(M,O),f(O,R),f(M,N),f(M,S),f(M,A),f(M,B),f(B,C),f(x,D),f(x,F),f(F,G),f(G,I),f(F,J),f(F,K),f(F,Q),f(F,U),f(U,V),i[5](x)},p(i,t){4&t&&W!==(W=i[2].top+"")&&v(a,W),4&t&&X!==(X=i[2].groupsTitle+"")&&v(b,X),4&t&&Y!==(Y=i[2].groupsText+"")&&v(H,Y),4&t&&Z!==(Z=i[2].communitiesTitle+"")&&v(R,Z),4&t&&$!==($=i[2].communitiesText+"")&&v(C,$),4&t&&_!==(_=i[2].cooperativesTitle+"")&&v(I,_),4&t&&ii!==(ii=i[2].cooperativesText+"")&&v(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({});return a(i,m,(i=>o(2,e=i))),w(m,"landing-component",n,(function(i){o(1,s="ru"==i?"1.2fr 1.05fr 1fr":"1.2fr 1.1fr 1fr")})),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};
|
||||
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,r as h,l as f,m as v,v as x}from"./index-ce8c147b.js";import{loadLocaleContent as w}from"../../../../../../../../../js/libraries/serverTools.js";import{w as T}from"./index-f2dbf8ff.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),f(t,o),f(t,r),f(t,s),f(s,n),f(n,a),f(s,c),f(s,x),f(x,w),f(w,T),f(T,b),f(w,y),f(w,j),f(w,z),f(w,E),f(E,H),f(x,L),f(x,M),f(M,O),f(O,R),f(M,N),f(M,S),f(M,A),f(M,B),f(B,C),f(x,D),f(x,F),f(F,G),f(G,I),f(F,J),f(F,K),f(F,Q),f(F,U),f(U,V),i[5](x)},p(i,t){4&t&&W!==(W=i[2].top+"")&&v(a,W),4&t&&X!==(X=i[2].groupsTitle+"")&&v(b,X),4&t&&Y!==(Y=i[2].groupsText+"")&&v(H,Y),4&t&&Z!==(Z=i[2].communitiesTitle+"")&&v(R,Z),4&t&&$!==($=i[2].communitiesText+"")&&v(C,$),4&t&&_!==(_=i[2].cooperativesTitle+"")&&v(I,_),4&t&&ii!==(ii=i[2].cooperativesText+"")&&v(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};
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -91,14 +91,15 @@ export function loadLocaleContent(content,componentName,loaded,callback) {
|
|||
locale = "en"
|
||||
}
|
||||
}
|
||||
if (callback!=undefined) {
|
||||
callback(locale)
|
||||
}
|
||||
getData("/locales/" + locale + "/" + componentName + ".json" ,function(response) {
|
||||
let parsed = JSON.parse(response)
|
||||
content.set(parsed)
|
||||
if (callback!=undefined) {
|
||||
callback(locale)
|
||||
}
|
||||
loaded = 1
|
||||
})
|
||||
return locale
|
||||
}
|
||||
|
||||
export function getLocale(locale,lang) {
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"tableOfContents": "TABLE OF CONTENTS"
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"heading": "Кооперативы",
|
||||
"p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием и контролируют его. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.",
|
||||
"p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.",
|
||||
"p2": "Сосредоточив внимание на потребностях сотрудников, наши кооперативы создают благоприятную и устойчивую рабочую среду, которая способствует социальной сплоченности и гарантиям занятости. Мы также уделяем первостепенное внимание интересам местных сообществ, ориентируясь на долгосрочную перспективу. Когда решения принимают работники, мы избегаем вредных краткосрочных стратегий, ориентированных на получение прибыли, и вместо этого реинвестируем нашу прибыль, способствуя развитию и устойчивости сообщества.",
|
||||
"subheading1": "Наши кооперативы",
|
||||
"subheading2": "Европа",
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"tableOfContents": "ОГЛАВЛЕНИЕ"
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
"manifesto": "Манифест",
|
||||
"joinUs": "Присоединяйся",
|
||||
"groups": "Группы",
|
||||
"communities": "Сообщества",
|
||||
"communities": "Коммуны",
|
||||
"cooperatives": "Кооперативы",
|
||||
"partners": "Партнеры"
|
||||
}
|
Loading…
Reference in New Issue