diff --git a/Server/app/svelte/public/js/libraries/serverTools.js b/Server/app/svelte/public/js/libraries/serverTools.js index a15f954..127c4c9 100644 --- a/Server/app/svelte/public/js/libraries/serverTools.js +++ b/Server/app/svelte/public/js/libraries/serverTools.js @@ -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) { diff --git a/Server/app/svelte/public/locales/en/manifesto-component.json b/Server/app/svelte/public/locales/en/manifesto-component.json new file mode 100644 index 0000000..231b15d --- /dev/null +++ b/Server/app/svelte/public/locales/en/manifesto-component.json @@ -0,0 +1,3 @@ +{ + "tableOfContents": "TABLE OF CONTENTS" +} \ No newline at end of file diff --git a/Server/app/svelte/public/locales/ru/cooperatives-component.json b/Server/app/svelte/public/locales/ru/cooperatives-component.json index 5363c0c..dd73899 100644 --- a/Server/app/svelte/public/locales/ru/cooperatives-component.json +++ b/Server/app/svelte/public/locales/ru/cooperatives-component.json @@ -1,6 +1,6 @@ { "heading": "Кооперативы", - "p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием и контролируют его. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.", + "p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.", "p2": "Сосредоточив внимание на потребностях сотрудников, наши кооперативы создают благоприятную и устойчивую рабочую среду, которая способствует социальной сплоченности и гарантиям занятости. Мы также уделяем первостепенное внимание интересам местных сообществ, ориентируясь на долгосрочную перспективу. Когда решения принимают работники, мы избегаем вредных краткосрочных стратегий, ориентированных на получение прибыли, и вместо этого реинвестируем нашу прибыль, способствуя развитию и устойчивости сообщества.", "subheading1": "Наши кооперативы", "subheading2": "Европа", diff --git a/Server/app/svelte/public/locales/ru/manifesto-component.json b/Server/app/svelte/public/locales/ru/manifesto-component.json new file mode 100644 index 0000000..e9e078e --- /dev/null +++ b/Server/app/svelte/public/locales/ru/manifesto-component.json @@ -0,0 +1,3 @@ +{ + "tableOfContents": "ОГЛАВЛЕНИЕ" +} \ No newline at end of file diff --git a/Server/app/svelte/public/locales/ru/navbar-component.json b/Server/app/svelte/public/locales/ru/navbar-component.json index b8a1c54..6599ced 100644 --- a/Server/app/svelte/public/locales/ru/navbar-component.json +++ b/Server/app/svelte/public/locales/ru/navbar-component.json @@ -3,7 +3,7 @@ "manifesto": "Манифест", "joinUs": "Присоединяйся", "groups": "Группы", - "communities": "Сообщества", + "communities": "Коммуны", "cooperatives": "Кооперативы", "partners": "Партнеры" } \ No newline at end of file diff --git a/Server/app/svelte/src/communities-component.svelte b/Server/app/svelte/src/communities-component.svelte index 46a2f40..9dd22ed 100644 --- a/Server/app/svelte/src/communities-component.svelte +++ b/Server/app/svelte/src/communities-component.svelte @@ -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 @@

{$content.subheading2}

{#each communities as community}
-

{$content.location}: {community.location[0][locale[0]]}

-

{$content.status}: {community.status[locale[0]]}

+

{$content.location}: {community.location[0][locale]}

+

{$content.status}: {community.status[locale]}

{$content.members}: {community.members}

-

{$content.contact}: {community.contact[1][locale[0]]}

+

{$content.contact}: {community.contact[1][locale]}

{/each} diff --git a/Server/app/svelte/src/cooperatives-component.svelte b/Server/app/svelte/src/cooperatives-component.svelte index 623a750..9fae871 100644 --- a/Server/app/svelte/src/cooperatives-component.svelte +++ b/Server/app/svelte/src/cooperatives-component.svelte @@ -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 @@

{$content.name}: {coop.name}

-

{$content.location}: {coop.location[0][locale[0]]}

-

{$content.market}: {coop.market[locale[0]]}

+

{$content.location}: {coop.location[0][locale]}

+

{$content.market}: {coop.market[locale]}

{$content.workers}: {coop.workers}

-

{$content.status}: {coop.status[locale[0]]}

+

{$content.status}: {coop.status[locale]}

{$content.website}: {coop.website}

-

{$content.contact}: {coop.contact[1][locale[0]]}

+

{$content.contact}: {coop.contact[1][locale]}

@@ -56,7 +55,7 @@
-

{$content.description}: {coop.description[locale[0]]}

+

{$content.description}: {coop.description[locale]}

{/each} diff --git a/Server/app/svelte/src/footer/footer-component.svelte b/Server/app/svelte/src/footer/footer-component.svelte index 9858986..3d4895f 100644 --- a/Server/app/svelte/src/footer/footer-component.svelte +++ b/Server/app/svelte/src/footer/footer-component.svelte @@ -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) @@ -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 { diff --git a/Server/app/svelte/src/groups-component.svelte b/Server/app/svelte/src/groups-component.svelte index c64a549..3227dff 100644 --- a/Server/app/svelte/src/groups-component.svelte +++ b/Server/app/svelte/src/groups-component.svelte @@ -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 @@

{$content.subheading2}

{#each groups as group}
-

{$content.location}: {group.location[0][locale[0]]}

+

{$content.location}: {group.location[0][locale]}

{$content.members}: {group.members}

-

{$content.contact}: {group.contact[1][locale[0]]}

+

{$content.contact}: {group.contact[1][locale]}

{/each} diff --git a/Server/app/svelte/src/join-us-component.svelte b/Server/app/svelte/src/join-us-component.svelte index 9885b48..995ddf3 100644 --- a/Server/app/svelte/src/join-us-component.svelte +++ b/Server/app/svelte/src/join-us-component.svelte @@ -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 @@

{$content.findOur}

    -
  1. {$content.group},
  2. -
  3. {$content.community} {$content.or}
  4. -
  5. {$content.cooperative}
  6. +
  7. {$content.group},
  8. +
  9. {$content.community} {$content.or}
  10. +
  11. {$content.cooperative}

{$content.nearYou}

diff --git a/Server/app/svelte/src/landing-component.svelte b/Server/app/svelte/src/landing-component.svelte index 038957f..18ed940 100644 --- a/Server/app/svelte/src/landing-component.svelte +++ b/Server/app/svelte/src/landing-component.svelte @@ -24,7 +24,8 @@ } } - loadLocaleContent(content,"landing-component",loaded,changeWidth) + let locale = loadLocaleContent(content,"landing-component",loaded,changeWidth) + changeWidth(locale) onMount(() => { diff --git a/Server/app/svelte/src/manifesto-component.svelte b/Server/app/svelte/src/manifesto-component.svelte index d6080be..c142ba2 100644 --- a/Server/app/svelte/src/manifesto-component.svelte +++ b/Server/app/svelte/src/manifesto-component.svelte @@ -3,9 +3,10 @@ -
-
- {#key key} -
- -
- {#each contentHeadings as obj} - {#if Array.isArray(obj)} - {#each obj as obj2} -
- -
+{#key loaded} + {#if Object.keys($content).length!=0} +
+
+ {#key key} +
+ +
+ {#each contentHeadings as obj} + {#if Array.isArray(obj)} + {#each obj as obj2} +
+ +
+ {/each} + {:else} +
+ +
+ {/if} {/each} - {:else} -
- -
- {/if} - {/each} -
+
+
+
+ {#each manifesto as line} + {#if line!==""} + {#if typeof (line === 'object') && (Object.keys(line)[0]=="ul")} +
    + {#each line.ul as line2} +
  • {line2}
  • + {/each} +
+ {:else if typeof (line === 'object') && (Object.keys(line)[0]=="ol")} +
    + {#each line.ol as line2} +
  1. + {@html line2} +
  2. + {/each} +
+ {:else if typeof (line === 'object') && (line.type=="h3")} + + {:else if typeof (line === 'object') && (line.type=="h2")} + + {:else if line[0]=="#"} +

{@html line.slice(2,line.length)}

+ {:else} +

+ {@html line} +

+ {/if} + {:else if false} + + {/if} + {/each} +
+ {/key}
-
- {#each manifesto as line} - {#if line!==""} - {#if typeof (line === 'object') && (Object.keys(line)[0]=="ul")} -
    - {#each line.ul as line2} -
  • {line2}
  • - {/each} -
- {:else if typeof (line === 'object') && (Object.keys(line)[0]=="ol")} -
    - {#each line.ol as line2} -
  1. - {@html line2} -
  2. - {/each} -
- {:else if typeof (line === 'object') && (line.type=="h3")} - - {:else if typeof (line === 'object') && (line.type=="h2")} - - {:else if line[0]=="#"} -

{@html line.slice(2,line.length)}

- {:else} -

- {@html line} -

- {/if} - {:else if false} - - {/if} - {/each} -
- {/key} -
-
+
+ {/if} +{/key} ",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;en(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="",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}; diff --git a/Server/public/js/components/cooperatives-component.js b/Server/public/js/components/cooperatives-component.js index f2bdeb7..c67a44b 100644 --- a/Server/public/js/components/cooperatives-component.js +++ b/Server/public/js/components/cooperatives-component.js @@ -1 +1 @@ -import{S as t,i as e,a as o,b as n,s as i,e as a,n as r,d as s,c,o as m,f as l,t as p,g,h,j as d,k as f,l as b,m as u,p as w}from"./index-ce8c147b.js";import{w as x}from"./index-f2dbf8ff.js";import{coops as v,addMarkersCoops as j}from"../../../../../../../../../js/coops.js";import{loadLocaleContent as k,getLocale as y}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function z(t,e,o){const n=t.slice();return n[6]=e[o],n}function D(t){let e,o,i,a,r,c,m,x,j,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 e=0;eo(0,n=t))),k(r,"cooperatives-component",i,(t=>y(a,t))),m((()=>{}));return[n,i,a,r,s,t=>s(t,n,a)]}class T extends t{constructor(t){super(),this.shadowRoot.innerHTML="",e(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},R,O,i,{},null),t&&t.target&&n(t.target,this,t.anchor)}}customElements.define("cooperatives-component",T);export{T as default}; +import{S as t,i as e,a as o,b as n,s as i,e as a,n as r,d as s,c,o as m,f as l,t as p,g,h,j as d,k as f,l as b,m as u,p as w}from"./index-ce8c147b.js";import{w as x}from"./index-f2dbf8ff.js";import{coops as v,addMarkersCoops as j}from"../../../../../../../../../js/coops.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,e,o){const n=t.slice();return n[6]=e[o],n}function z(t){let e,o,i,a,r,c,m,x,j,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 e=0;eo(0,n=t)));let r=k(a,"cooperatives-component",i);function s(t,e,o){let n=t([51.505,-.09],3);j(n,e,o)}m((()=>{}));return[n,i,a,r,s,t=>s(t,n,r)]}class R extends t{constructor(t){super(),this.shadowRoot.innerHTML="",e(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},O,E,i,{},null),t&&t.target&&n(t.target,this,t.anchor)}}customElements.define("cooperatives-component",R);export{R as default}; diff --git a/Server/public/js/components/footer-component.js b/Server/public/js/components/footer-component.js index a73bfd7..48c6a91 100644 --- a/Server/public/js/components/footer-component.js +++ b/Server/public/js/components/footer-component.js @@ -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='',T=l(),U=c("p"),U.innerHTML='Licensed under a Creative Commons CC BY 4.0 license.',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="",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='',T=l(),U=c("p"),U.innerHTML='Licensed under a Creative Commons CC BY 4.0 license.',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="",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}; diff --git a/Server/public/js/components/groups-component.js b/Server/public/js/components/groups-component.js index 4345e13..e5f0571 100644 --- a/Server/public/js/components/groups-component.js +++ b/Server/public/js/components/groups-component.js @@ -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;on(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="",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;oe(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="",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}; diff --git a/Server/public/js/components/join-us-component.js b/Server/public/js/components/join-us-component.js index 0eef9ea..66f7a57 100644 --- a/Server/public/js/components/join-us-component.js +++ b/Server/public/js/components/join-us-component.js @@ -1 +1 @@ -import{S as o,i as t,a as i,b as r,s as n,e,n as a,d as s,c as m,o as l,f as c,t as p,g as u,j as d,h as g,k as h,l as f,m as v}from"./index-ce8c147b.js";import{w as b}from"./index-f2dbf8ff.js";import{addMarkersGroups as j}from"../../../../../../../../../js/groups.js";import{addMarkersCoops as x}from"../../../../../../../../../js/coops.js";import{addMarkersCommunities as y}from"../../../../../../../../../js/communities.js";import{loadLocaleContent as P,getLocale as w}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function k(o){let t,i,n,e,a,m,l,b,j,x,y,P,w,k,O,A,S,T,D,H,N,L,M,U,z,B,E,G,R,W,Y,_,C,J,K,Z,q,F,I,Q,V,X,$,oo,to,io,ro,no,eo,ao,so,mo,lo,co,po,uo,go,ho,fo,vo,bo,jo,xo,yo,Po,wo,ko,Oo,Ao,So,To,Do,Ho,No,Lo,Mo,Uo,zo,Bo,Eo=o[0].heading+"",Go=o[0].condition1+"",Ro=o[0].condition2+"",Wo=o[0].condition3+"",Yo=o[0].conditionsOutcome+"",_o=o[0].subheading1+"",Co=o[0].valueProposition1+"",Jo=o[0].valueProposition2+"",Ko=o[0].valueProposition3+"",Zo=o[0].valueProposition4+"",qo=o[0].valueProposition5+"",Fo=o[0].subheading2+"",Io=o[0].findOur+"",Qo=o[0].group+"",Vo=o[0].community+"",Xo=o[0].or+"",$o=o[0].cooperative+"",ot=o[0].nearYou+"",tt=o[0].noneNear+"",it=o[0].WhatsAppGroup+"",rt=o[0].or+"",nt=o[0].DiscordServer+"",et=o[0].helpStart+"";return{c(){t=c("div"),i=c("div"),n=c("h1"),e=p(Eo),a=u(),m=c("img"),b=u(),j=c("ol"),x=c("li"),y=p(Go),P=u(),w=c("li"),k=p(Ro),O=u(),A=c("li"),S=p(Wo),T=u(),D=c("p"),H=u(),N=c("h2"),L=p(_o),M=u(),U=c("ol"),z=c("li"),B=p(Co),E=u(),G=c("li"),R=p(Jo),W=u(),Y=c("li"),_=p(Ko),C=u(),J=c("li"),K=p(Zo),Z=u(),q=c("p"),F=p(qo),I=u(),Q=c("h2"),V=p(Fo),X=u(),$=c("div"),oo=c("p"),to=p(Io),io=u(),ro=c("ol"),no=c("li"),eo=c("a"),ao=p(Qo),so=p(","),mo=u(),lo=c("li"),co=c("a"),po=p(Vo),uo=u(),go=p(Xo),ho=u(),fo=c("li"),vo=c("a"),bo=p($o),jo=u(),xo=c("p"),yo=p(ot),Po=u(),wo=c("p"),ko=p(tt),Oo=u(),Ao=c("a"),So=p(it),To=u(),Do=p(rt),Ho=u(),No=c("a"),Lo=p(nt),Mo=p(et),Uo=u(),zo=c("map-component"),d(m.src,l="/img/common/join-group.svg")||g(m,"src","/img/common/join-group.svg"),g(m,"id","join-group"),g(m,"alt","join group"),g(j,"id","condition-list"),g(U,"id","value-proposition-list"),g(eo,"href","/"+o[2][0]+"/groups"),g(co,"href","/"+o[2][0]+"/communities"),g(vo,"href","/"+o[2][0]+"/cooperatives"),g($,"id","call-to-action-list"),g(Ao,"href","https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh"),g(Ao,"target","_blank"),g(Ao,"rel","noreferrer"),g(No,"href","https://discord.gg/xAPZmyr8B6"),g(No,"target","_blank"),g(No,"rel","noreferrer"),h(zo,"id","map"),h(zo,"callback",Bo=o[5]),g(i,"id","text-container"),g(t,"id","container")},m(o,s){r(o,t,s),f(t,i),f(i,n),f(n,e),f(i,a),f(i,m),f(i,b),f(i,j),f(j,x),f(x,y),f(j,P),f(j,w),f(w,k),f(j,O),f(j,A),f(A,S),f(j,T),f(j,D),D.innerHTML=Yo,f(i,H),f(i,N),f(N,L),f(i,M),f(i,U),f(U,z),f(z,B),f(U,E),f(U,G),f(G,R),f(U,W),f(U,Y),f(Y,_),f(U,C),f(U,J),f(J,K),f(U,Z),f(U,q),f(q,F),f(i,I),f(i,Q),f(Q,V),f(i,X),f(i,$),f($,oo),f(oo,to),f($,io),f($,ro),f(ro,no),f(no,eo),f(eo,ao),f(no,so),f(ro,mo),f(ro,lo),f(lo,co),f(co,po),f(lo,uo),f(lo,go),f(ro,ho),f(ro,fo),f(fo,vo),f(vo,bo),f($,jo),f($,xo),f(xo,yo),f(i,Po),f(i,wo),f(wo,ko),f(wo,Oo),f(wo,Ao),f(Ao,So),f(wo,To),f(wo,Do),f(wo,Ho),f(wo,No),f(No,Lo),f(wo,Mo),f(i,Uo),f(i,zo)},p(o,t){1&t&&Eo!==(Eo=o[0].heading+"")&&v(e,Eo),1&t&&Go!==(Go=o[0].condition1+"")&&v(y,Go),1&t&&Ro!==(Ro=o[0].condition2+"")&&v(k,Ro),1&t&&Wo!==(Wo=o[0].condition3+"")&&v(S,Wo),1&t&&Yo!==(Yo=o[0].conditionsOutcome+"")&&(D.innerHTML=Yo),1&t&&_o!==(_o=o[0].subheading1+"")&&v(L,_o),1&t&&Co!==(Co=o[0].valueProposition1+"")&&v(B,Co),1&t&&Jo!==(Jo=o[0].valueProposition2+"")&&v(R,Jo),1&t&&Ko!==(Ko=o[0].valueProposition3+"")&&v(_,Ko),1&t&&Zo!==(Zo=o[0].valueProposition4+"")&&v(K,Zo),1&t&&qo!==(qo=o[0].valueProposition5+"")&&v(F,qo),1&t&&Fo!==(Fo=o[0].subheading2+"")&&v(V,Fo),1&t&&Io!==(Io=o[0].findOur+"")&&v(to,Io),1&t&&Qo!==(Qo=o[0].group+"")&&v(ao,Qo),1&t&&Vo!==(Vo=o[0].community+"")&&v(po,Vo),1&t&&Xo!==(Xo=o[0].or+"")&&v(go,Xo),1&t&&$o!==($o=o[0].cooperative+"")&&v(bo,$o),1&t&&ot!==(ot=o[0].nearYou+"")&&v(yo,ot),1&t&&tt!==(tt=o[0].noneNear+"")&&v(ko,tt),1&t&&it!==(it=o[0].WhatsAppGroup+"")&&v(So,it),1&t&&rt!==(rt=o[0].or+"")&&v(Do,rt),1&t&&nt!==(nt=o[0].DiscordServer+"")&&v(Lo,nt),1&t&&et!==(et=o[0].helpStart+"")&&v(Mo,et),1&t&&Bo!==(Bo=o[5])&&h(zo,"callback",Bo)},d(o){o&&s(t)}}}function O(o){let t,i=0!=Object.keys(o[0]).length,n=i&&k(o);return{c(){n&&n.c(),t=e(),this.c=a},m(o,i){n&&n.m(o,i),r(o,t,i)},p(o,[r]){1&r&&(i=0!=Object.keys(o[0]).length),i?n?n.p(o,r):(n=k(o),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:a,o:a,d(o){n&&n.d(o),o&&s(t)}}}function A(o,t,i){let r,n,e=[],a=b({});function s(o,t,i){let r=o([51.505,-.09],3);j(r,t,i),x(r,t,i),y(r,t,i)}m(o,a,(o=>i(0,r=o))),P(a,"join-us-component",n,(o=>w(e,o))),l((()=>{}));return[r,n,e,a,s,o=>s(o,r,e)]}class S extends o{constructor(o){super(),this.shadowRoot.innerHTML="",t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},A,O,n,{},null),o&&o.target&&r(o.target,this,o.anchor)}}customElements.define("join-us-component",S);export{S as default}; +import{S as o,i as t,a as i,b as r,s as n,e,n as a,d as s,c as m,o as l,f as c,t as p,g as u,j as d,h as g,k as h,l as f,m as v}from"./index-ce8c147b.js";import{w as b}from"./index-f2dbf8ff.js";import{addMarkersGroups as j}from"../../../../../../../../../js/groups.js";import{addMarkersCoops as x}from"../../../../../../../../../js/coops.js";import{addMarkersCommunities as y}from"../../../../../../../../../js/communities.js";import{loadLocaleContent as P}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function w(o){let t,i,n,e,a,m,l,b,j,x,y,P,w,k,O,A,S,T,D,H,N,L,M,U,z,B,E,G,R,W,Y,_,C,J,K,Z,q,F,I,Q,V,X,$,oo,to,io,ro,no,eo,ao,so,mo,lo,co,po,uo,go,ho,fo,vo,bo,jo,xo,yo,Po,wo,ko,Oo,Ao,So,To,Do,Ho,No,Lo,Mo,Uo,zo,Bo,Eo=o[0].heading+"",Go=o[0].condition1+"",Ro=o[0].condition2+"",Wo=o[0].condition3+"",Yo=o[0].conditionsOutcome+"",_o=o[0].subheading1+"",Co=o[0].valueProposition1+"",Jo=o[0].valueProposition2+"",Ko=o[0].valueProposition3+"",Zo=o[0].valueProposition4+"",qo=o[0].valueProposition5+"",Fo=o[0].subheading2+"",Io=o[0].findOur+"",Qo=o[0].group+"",Vo=o[0].community+"",Xo=o[0].or+"",$o=o[0].cooperative+"",ot=o[0].nearYou+"",tt=o[0].noneNear+"",it=o[0].WhatsAppGroup+"",rt=o[0].or+"",nt=o[0].DiscordServer+"",et=o[0].helpStart+"";return{c(){t=c("div"),i=c("div"),n=c("h1"),e=p(Eo),a=u(),m=c("img"),b=u(),j=c("ol"),x=c("li"),y=p(Go),P=u(),w=c("li"),k=p(Ro),O=u(),A=c("li"),S=p(Wo),T=u(),D=c("p"),H=u(),N=c("h2"),L=p(_o),M=u(),U=c("ol"),z=c("li"),B=p(Co),E=u(),G=c("li"),R=p(Jo),W=u(),Y=c("li"),_=p(Ko),C=u(),J=c("li"),K=p(Zo),Z=u(),q=c("p"),F=p(qo),I=u(),Q=c("h2"),V=p(Fo),X=u(),$=c("div"),oo=c("p"),to=p(Io),io=u(),ro=c("ol"),no=c("li"),eo=c("a"),ao=p(Qo),so=p(","),mo=u(),lo=c("li"),co=c("a"),po=p(Vo),uo=u(),go=p(Xo),ho=u(),fo=c("li"),vo=c("a"),bo=p($o),jo=u(),xo=c("p"),yo=p(ot),Po=u(),wo=c("p"),ko=p(tt),Oo=u(),Ao=c("a"),So=p(it),To=u(),Do=p(rt),Ho=u(),No=c("a"),Lo=p(nt),Mo=p(et),Uo=u(),zo=c("map-component"),d(m.src,l="/img/common/join-group.svg")||g(m,"src","/img/common/join-group.svg"),g(m,"id","join-group"),g(m,"alt","join group"),g(j,"id","condition-list"),g(U,"id","value-proposition-list"),g(eo,"href","/"+o[3]+"/groups"),g(co,"href","/"+o[3]+"/communities"),g(vo,"href","/"+o[3]+"/cooperatives"),g($,"id","call-to-action-list"),g(Ao,"href","https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh"),g(Ao,"target","_blank"),g(Ao,"rel","noreferrer"),g(No,"href","https://discord.gg/xAPZmyr8B6"),g(No,"target","_blank"),g(No,"rel","noreferrer"),h(zo,"id","map"),h(zo,"callback",Bo=o[5]),g(i,"id","text-container"),g(t,"id","container")},m(o,s){r(o,t,s),f(t,i),f(i,n),f(n,e),f(i,a),f(i,m),f(i,b),f(i,j),f(j,x),f(x,y),f(j,P),f(j,w),f(w,k),f(j,O),f(j,A),f(A,S),f(j,T),f(j,D),D.innerHTML=Yo,f(i,H),f(i,N),f(N,L),f(i,M),f(i,U),f(U,z),f(z,B),f(U,E),f(U,G),f(G,R),f(U,W),f(U,Y),f(Y,_),f(U,C),f(U,J),f(J,K),f(U,Z),f(U,q),f(q,F),f(i,I),f(i,Q),f(Q,V),f(i,X),f(i,$),f($,oo),f(oo,to),f($,io),f($,ro),f(ro,no),f(no,eo),f(eo,ao),f(no,so),f(ro,mo),f(ro,lo),f(lo,co),f(co,po),f(lo,uo),f(lo,go),f(ro,ho),f(ro,fo),f(fo,vo),f(vo,bo),f($,jo),f($,xo),f(xo,yo),f(i,Po),f(i,wo),f(wo,ko),f(wo,Oo),f(wo,Ao),f(Ao,So),f(wo,To),f(wo,Do),f(wo,Ho),f(wo,No),f(No,Lo),f(wo,Mo),f(i,Uo),f(i,zo)},p(o,t){1&t&&Eo!==(Eo=o[0].heading+"")&&v(e,Eo),1&t&&Go!==(Go=o[0].condition1+"")&&v(y,Go),1&t&&Ro!==(Ro=o[0].condition2+"")&&v(k,Ro),1&t&&Wo!==(Wo=o[0].condition3+"")&&v(S,Wo),1&t&&Yo!==(Yo=o[0].conditionsOutcome+"")&&(D.innerHTML=Yo),1&t&&_o!==(_o=o[0].subheading1+"")&&v(L,_o),1&t&&Co!==(Co=o[0].valueProposition1+"")&&v(B,Co),1&t&&Jo!==(Jo=o[0].valueProposition2+"")&&v(R,Jo),1&t&&Ko!==(Ko=o[0].valueProposition3+"")&&v(_,Ko),1&t&&Zo!==(Zo=o[0].valueProposition4+"")&&v(K,Zo),1&t&&qo!==(qo=o[0].valueProposition5+"")&&v(F,qo),1&t&&Fo!==(Fo=o[0].subheading2+"")&&v(V,Fo),1&t&&Io!==(Io=o[0].findOur+"")&&v(to,Io),1&t&&Qo!==(Qo=o[0].group+"")&&v(ao,Qo),1&t&&Vo!==(Vo=o[0].community+"")&&v(po,Vo),1&t&&Xo!==(Xo=o[0].or+"")&&v(go,Xo),1&t&&$o!==($o=o[0].cooperative+"")&&v(bo,$o),1&t&&ot!==(ot=o[0].nearYou+"")&&v(yo,ot),1&t&&tt!==(tt=o[0].noneNear+"")&&v(ko,tt),1&t&&it!==(it=o[0].WhatsAppGroup+"")&&v(So,it),1&t&&rt!==(rt=o[0].or+"")&&v(Do,rt),1&t&&nt!==(nt=o[0].DiscordServer+"")&&v(Lo,nt),1&t&&et!==(et=o[0].helpStart+"")&&v(Mo,et),1&t&&Bo!==(Bo=o[5])&&h(zo,"callback",Bo)},d(o){o&&s(t)}}}function k(o){let t,i=0!=Object.keys(o[0]).length,n=i&&w(o);return{c(){n&&n.c(),t=e(),this.c=a},m(o,i){n&&n.m(o,i),r(o,t,i)},p(o,[r]){1&r&&(i=0!=Object.keys(o[0]).length),i?n?n.p(o,r):(n=w(o),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:a,o:a,d(o){n&&n.d(o),o&&s(t)}}}function O(o,t,i){let r,n,e=b({});m(o,e,(o=>i(0,r=o)));let a=P(e,"join-us-component",n);function s(o,t,i){let r=o([51.505,-.09],3);j(r,t,i),x(r,t,i),y(r,t,i)}l((()=>{}));return[r,n,e,a,s,o=>s(o,r,a)]}class A extends o{constructor(o){super(),this.shadowRoot.innerHTML="",t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},O,k,n,{},null),o&&o.target&&r(o.target,this,o.anchor)}}customElements.define("join-us-component",A);export{A as default}; diff --git a/Server/public/js/components/landing-component.js b/Server/public/js/components/landing-component.js index 12c321b..c5f6d84 100644 --- a/Server/public/js/components/landing-component.js +++ b/Server/public/js/components/landing-component.js @@ -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=' \n \n 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="",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=' \n \n 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="",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}; diff --git a/Server/public/js/components/manifesto-component.js b/Server/public/js/components/manifesto-component.js index 0ecdf55..22d7a9f 100644 --- a/Server/public/js/components/manifesto-component.js +++ b/Server/public/js/components/manifesto-component.js @@ -1 +1 @@ -import{S as t,i as e,a as n,b as i,s as l,f as o,n as r,h as s,l as c,d as a,o as d,t as m,g as u,j as f,r as h,u as g,p,v as w,e as b,y as x,H as y}from"./index-ce8c147b.js";import{locales as v,getData as k}from"../../../../../../../../../js/libraries/serverTools.js";import{px2rem as H}from"../../../../../../../../../js/libraries/miscTools.js";function T(t,e,n){const i=t.slice();return i[30]=e[n],i[31]=e,i[32]=n,i}function j(t,e,n){const i=t.slice();return i[33]=e[n],i}function L(t,e,n){const i=t.slice();return i[33]=e[n],i}function I(t,e,n){const i=t.slice();return i[38]=e[n],i[39]=e,i[40]=n,i}function Y(t,e,n){const i=t.slice();return i[41]=e[n],i[42]=e,i[43]=n,i}function M(t){let e,n,l,r,d,f,h=t[38].name+"",p=t[38];const w=()=>t[17](n,p),b=()=>t[17](null,p);function x(){return t[18](t[38])}return{c(){e=o("div"),n=o("button"),l=m(h),r=u(),s(n,"class","level0 heading-button"),s(e,"class","heading-button-wrapper")},m(t,o){i(t,e,o),c(e,n),c(n,l),w(),c(e,r),d||(f=g(n,"click",x),d=!0)},p(e,n){p!==(t=e)[38]&&(b(),p=t[38],w())},d(t){t&&a(e),b(),d=!1,f()}}}function A(t){let e,n=t[38],l=[];for(let e=0;et[15](n,p),b=()=>t[15](null,p);function x(){return t[16](t[41])}return{c(){e=o("div"),n=o("button"),l=m(h),r=u(),s(n,"class","level1 heading-button"),s(e,"class","heading-button-wrapper")},m(t,o){i(t,e,o),c(e,n),c(n,l),w(),c(e,r),d||(f=g(n,"click",x),d=!0)},p(e,n){p!==(t=e)[41]&&(b(),p=t[41],w())},d(t){t&&a(e),b(),d=!1,f()}}}function z(t){let e;let n=function(t,e){return Array.isArray(t[38])?A:M}(t),l=n(t);return{c(){l.c(),e=b()},m(t,n){l.m(t,n),i(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&a(e)}}}function E(t){let e;let n=function(t,e){return t[30],"ul"==Object.keys(t[30])[0]?N:(t[30],"ol"==Object.keys(t[30])[0]?B:(t[30],"h3"==t[30].type?R:(t[30],"h2"==t[30].type?V:"#"==t[30][0]?S:O)))}(t),l=n(t);return{c(){l.c(),e=b()},m(t,n){l.m(t,n),i(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&a(e)}}}function O(t){let e,n,l,d=t[30]+"";return{c(){e=o("p"),n=new y(!1),l=u(),n.a=l,s(e,"class","margin-end")},m(t,o){i(t,e,o),n.m(d,e),c(e,l)},p:r,d(t){t&&a(e)}}}function S(t){let e,n=t[30].slice(2,t[30].length)+"";return{c(){e=o("h1")},m(t,l){i(t,e,l),e.innerHTML=n},p:r,d(t){t&&a(e)}}}function V(t){let e,n,l,r,d,m=t[30].line+"",f=t[30];const p=()=>t[22](n,f),w=()=>t[22](null,f);return{c(){e=o("button"),n=o("h2"),l=u(),s(n,"id",t[30].id),h(e,"display","block"),h(e,"width","100%")},m(o,s){i(o,e,s),c(e,n),n.innerHTML=m,p(),c(e,l),r||(d=g(e,"click",(function(){x(t[6].scrollIntoView({block:"start"},!0))&&t[6].scrollIntoView({block:"start"},!0).apply(this,arguments)})),r=!0)},p(e,n){f!==(t=e)[30]&&(w(),f=t[30],p())},d(t){t&&a(e),w(),r=!1,d()}}}function R(t){let e,n,l,r,d,m=t[30].line+"",f=t[30];const p=()=>t[21](n,f),w=()=>t[21](null,f);return{c(){e=o("button"),n=o("h3"),l=u(),s(n,"id",t[30].id),h(e,"display","block"),h(e,"width","100%")},m(o,s){i(o,e,s),c(e,n),n.innerHTML=m,p(),c(e,l),r||(d=g(e,"click",(function(){x(t[6].scrollIntoView({block:"start"},!0))&&t[6].scrollIntoView({block:"start"},!0).apply(this,arguments)})),r=!0)},p(e,n){f!==(t=e)[30]&&(w(),f=t[30],p())},d(t){t&&a(e),w(),r=!1,d()}}}function B(t){let e,n,l=t[30].ol,r=[];for(let e=0;eObject.keys(v).includes(t)));m=0==x.length?"en":x[0];const y=["ul","ol"];function T(t){h[t].scrollIntoView({block:"start"},!0)}k("/locales/"+m+"/manifesto.txt",(function(t){let e,l=t.split(/\r?\n/),o=0;for(let t=0;tn.includes("<"+t+">"))).findIndex((t=>t));if(-1!=i){let e=y[i],o={};o[e]=[];let r="";for(;;){if(t+=1,n=l[t],n.includes(r)){u.push(o);break}o[e].push(n)}}else if("###"==n.slice(0,3)){let t=n.slice(4,n.length),i=t.toLowerCase().trim().replaceAll(" ","-");e.push({id:i,name:t,index:o}),o+=1,u.push({type:"h3",id:i,line:t,index:o})}else if("##"==n.slice(0,2)){let t=n.slice(3,n.length),i=t.toLowerCase().trim().replaceAll(" ","-");g.push({id:t.toLowerCase().trim().replaceAll(" ","-"),name:t,index:o}),o+=1,e=[],g.push(e),u.push({type:"h2",id:i,line:t,index:o})}else u.push(n)}n(0,i+=1)})),addEventListener("scroll",(t=>{if(window.innerWidth>1080){let t=H(window.scrollY),e=H(c.getBoundingClientRect().bottom+window.scrollY),i=H(s.getBoundingClientRect().bottom+window.scrollY);if(t>p&&t<5||t=e-1.5)b-=i-(e-1.5);else if(b>-5&&(b=-5),t<5&&0!=t){let t=H(s.offsetHeight-window.innerHeight);b=-Math.min(H(window.scrollY),5+t+2.5)}else if(twindow.innerHeight){let e=H(s.offsetHeight)-H(window.innerHeight);b>-(e+8)?b+=p-t:b=-(e+8)}n(6,s.style.marginTop=b+"rem",s),p=H(window.scrollY)}else n(6,s.style.marginTop="0rem",s)})),d((()=>{let t=localStorage.getItem("manifesto-hide-content");null!=t&&null!=t&&"true"==t&&G(o,r)}));return[i,l,o,r,f,h,s,c,a,u,g,T,function(t){w[t?"unshift":"push"]((()=>{o=t,n(2,o)}))},function(t){w[t?"unshift":"push"]((()=>{l=t,n(1,l)}))},()=>G(o,r),function(t,e){w[t?"unshift":"push"]((()=>{f[e.index]=t,n(4,f)}))},t=>T(t.id),function(t,e){w[t?"unshift":"push"]((()=>{f[e.index]=t,n(4,f)}))},t=>T(t.id),function(t){w[t?"unshift":"push"]((()=>{r=t,n(3,r)}))},function(t){w[t?"unshift":"push"]((()=>{s=t,n(6,s)}))},function(t,e){w[t?"unshift":"push"]((()=>{h[e.id]=t,n(5,h)}))},function(t,e){w[t?"unshift":"push"]((()=>{h[e.id]=t,n(5,h)}))},function(t){w[t?"unshift":"push"]((()=>{a=t,n(8,a)}))},function(t){w[t?"unshift":"push"]((()=>{c=t,n(7,c)}))}]}class K extends t{constructor(t){super(),this.shadowRoot.innerHTML="",e(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},J,D,l,{},null,[-1,-1]),t&&t.target&&i(t.target,this,t.anchor)}}customElements.define("manifesto-component",K);export{K as default}; +import{S as t,i as e,a as n,b as i,s as l,e as o,n as r,d as s,c,o as a,f as d,h as m,l as u,t as f,g as h,j as g,r as p,u as b,m as w,p as x,v as y,y as v,H as k}from"./index-ce8c147b.js";import{w as j}from"./index-f2dbf8ff.js";import{loadLocaleContent as H,getData as I}from"../../../../../../../../../js/libraries/serverTools.js";import{px2rem as L}from"../../../../../../../../../js/libraries/miscTools.js";function T(t,e,n){const i=t.slice();return i[32]=e[n],i[33]=e,i[34]=n,i}function Y(t,e,n){const i=t.slice();return i[35]=e[n],i}function C(t,e,n){const i=t.slice();return i[35]=e[n],i}function M(t,e,n){const i=t.slice();return i[40]=e[n],i[41]=e,i[42]=n,i}function O(t,e,n){const i=t.slice();return i[43]=e[n],i[44]=e,i[45]=n,i}function z(t){let e,n,o=t[0],r=K(t);return{c(){e=d("div"),n=d("div"),r.c(),m(n,"id","text-container"),m(e,"id","container")},m(l,o){i(l,e,o),u(e,n),r.m(n,null),t[27](e)},p(t,e){1&e[0]&&l(o,o=t[0])?(r.d(1),r=K(t),r.c(),r.m(n,null)):r.p(t,e)},d(n){n&&s(e),r.d(n),t[27](null)}}}function A(t){let e,n,l,o,r,c,a=t[40].name+"",g=t[40];const p=()=>t[20](n,g),w=()=>t[20](null,g);function x(){return t[21](t[40])}return{c(){e=d("div"),n=d("button"),l=f(a),o=h(),m(n,"class","level0 heading-button"),m(e,"class","heading-button-wrapper")},m(t,s){i(t,e,s),u(e,n),u(n,l),p(),u(e,o),r||(c=b(n,"click",x),r=!0)},p(e,n){g!==(t=e)[40]&&(w(),g=t[40],p())},d(t){t&&s(e),w(),r=!1,c()}}}function V(t){let e,n=t[40],l=[];for(let e=0;et[18](n,g),w=()=>t[18](null,g);function x(){return t[19](t[43])}return{c(){e=d("div"),n=d("button"),l=f(a),o=h(),m(n,"class","level1 heading-button"),m(e,"class","heading-button-wrapper")},m(t,s){i(t,e,s),u(e,n),u(n,l),p(),u(e,o),r||(c=b(n,"click",x),r=!0)},p(e,n){g!==(t=e)[43]&&(w(),g=t[43],p())},d(t){t&&s(e),w(),r=!1,c()}}}function S(t){let e;let n=function(t,e){return Array.isArray(t[40])?V:A}(t),l=n(t);return{c(){l.c(),e=o()},m(t,n){l.m(t,n),i(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&s(e)}}}function E(t){let e;let n=function(t,e){return t[32],"ul"==Object.keys(t[32])[0]?D:(t[32],"ol"==Object.keys(t[32])[0]?q:(t[32],"h3"==t[32].type?W:(t[32],"h2"==t[32].type?_:"#"==t[32][0]?N:B)))}(t),l=n(t);return{c(){l.c(),e=o()},m(t,n){l.m(t,n),i(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&s(e)}}}function B(t){let e,n,l,o=t[32]+"";return{c(){e=d("p"),n=new k(!1),l=h(),n.a=l,m(e,"class","margin-end")},m(t,r){i(t,e,r),n.m(o,e),u(e,l)},p:r,d(t){t&&s(e)}}}function N(t){let e,n=t[32].slice(2,t[32].length)+"";return{c(){e=d("h1")},m(t,l){i(t,e,l),e.innerHTML=n},p:r,d(t){t&&s(e)}}}function _(t){let e,n,l,o,r,c=t[32].line+"",a=t[32];const f=()=>t[25](n,a),g=()=>t[25](null,a);return{c(){e=d("button"),n=d("h2"),l=h(),m(n,"id",t[32].id),p(e,"display","block"),p(e,"width","100%")},m(s,a){i(s,e,a),u(e,n),n.innerHTML=c,f(),u(e,l),o||(r=b(e,"click",(function(){v(t[6].scrollIntoView({block:"start"},!0))&&t[6].scrollIntoView({block:"start"},!0).apply(this,arguments)})),o=!0)},p(e,n){a!==(t=e)[32]&&(g(),a=t[32],f())},d(t){t&&s(e),g(),o=!1,r()}}}function W(t){let e,n,l,o,r,c=t[32].line+"",a=t[32];const f=()=>t[24](n,a),g=()=>t[24](null,a);return{c(){e=d("button"),n=d("h3"),l=h(),m(n,"id",t[32].id),p(e,"display","block"),p(e,"width","100%")},m(s,a){i(s,e,a),u(e,n),n.innerHTML=c,f(),u(e,l),o||(r=b(e,"click",(function(){v(t[6].scrollIntoView({block:"start"},!0))&&t[6].scrollIntoView({block:"start"},!0).apply(this,arguments)})),o=!0)},p(e,n){a!==(t=e)[32]&&(g(),a=t[32],f())},d(t){t&&s(e),g(),o=!1,r()}}}function q(t){let e,n,l=t[32].ol,o=[];for(let e=0;en(9,i=t)));let k=H(v,"manifesto-component",f);const T=["ul","ol"];function Y(t){p[t].scrollIntoView({block:"start"},!0)}I("/locales/"+k+"/manifesto.txt",(function(t){let e,i=t.split(/\r?\n/),o=0;for(let t=0;tn.includes("<"+t+">"))).findIndex((t=>t));if(-1!=l){let e=T[l],o={};o[e]=[];let r="";for(;;){if(t+=1,n=i[t],n.includes(r)){h.push(o);break}o[e].push(n)}}else if("###"==n.slice(0,3)){let t=n.slice(4,n.length),i=t.toLowerCase().trim().replaceAll(" ","-");e.push({id:i,name:t,index:o}),o+=1,h.push({type:"h3",id:i,line:t,index:o})}else if("##"==n.slice(0,2)){let t=n.slice(3,n.length),i=t.toLowerCase().trim().replaceAll(" ","-");b.push({id:t.toLowerCase().trim().replaceAll(" ","-"),name:t,index:o}),o+=1,e=[],b.push(e),h.push({type:"h2",id:i,line:t,index:o})}else h.push(n)}n(0,l+=1)})),addEventListener("scroll",(t=>{if(window.innerWidth>1080){let t=L(window.scrollY),e=L(m.getBoundingClientRect().bottom+window.scrollY),i=L(d.getBoundingClientRect().bottom+window.scrollY);if(t>w&&t<5||t=e-1.5)x-=i-(e-1.5);else if(x>-5&&(x=-5),t<5&&0!=t){let t=L(d.offsetHeight-window.innerHeight);x=-Math.min(L(window.scrollY),5+t+2.5)}else if(twindow.innerHeight){let e=L(d.offsetHeight)-L(window.innerHeight);x>-(e+8)?x+=w-t:x=-(e+8)}n(6,d.style.marginTop=x+"rem",d),w=L(window.scrollY)}else n(6,d.style.marginTop="0rem",d)})),a((()=>{let t=localStorage.getItem("manifesto-hide-content");null!=t&&null!=t&&"true"==t&&Q(r,s)}));return[l,o,r,s,g,p,d,m,u,i,h,b,f,v,Y,function(t){y[t?"unshift":"push"]((()=>{r=t,n(2,r)}))},function(t){y[t?"unshift":"push"]((()=>{o=t,n(1,o)}))},()=>Q(r,s),function(t,e){y[t?"unshift":"push"]((()=>{g[e.index]=t,n(4,g)}))},t=>Y(t.id),function(t,e){y[t?"unshift":"push"]((()=>{g[e.index]=t,n(4,g)}))},t=>Y(t.id),function(t){y[t?"unshift":"push"]((()=>{s=t,n(3,s)}))},function(t){y[t?"unshift":"push"]((()=>{d=t,n(6,d)}))},function(t,e){y[t?"unshift":"push"]((()=>{p[e.id]=t,n(5,p)}))},function(t,e){y[t?"unshift":"push"]((()=>{p[e.id]=t,n(5,p)}))},function(t){y[t?"unshift":"push"]((()=>{u=t,n(8,u)}))},function(t){y[t?"unshift":"push"]((()=>{m=t,n(7,m)}))}]}class X extends t{constructor(t){super(),this.shadowRoot.innerHTML="",e(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},U,P,l,{},null,[-1,-1]),t&&t.target&&i(t.target,this,t.anchor)}}customElements.define("manifesto-component",X);export{X as default}; diff --git a/Server/public/js/components/navbar-component.js b/Server/public/js/components/navbar-component.js index 3024d0e..a4988f7 100644 --- a/Server/public/js/components/navbar-component.js +++ b/Server/public/js/components/navbar-component.js @@ -1 +1 @@ -import{S as e,i as o,a as t,b as n,s as i,e as a,n as r,d as s,c as l,o as c,f as d,g as m,t as h,h as p,j as g,l as u,u as f,m as b,p as v,x as k,v as w}from"./index-ce8c147b.js";import{w as y}from"./index-f2dbf8ff.js";import{loadLocaleContent as x,getLocale as j,locales as z}from"../../../../../../../../../js/libraries/serverTools.js";function O(e,o,t){const n=e.slice();return n[14]=o[t][0],n[15]=o[t][1],n}function T(e){let o,t,i,a,r,l,c,w,y,x,j,T,L,M,N,S,E,R,U,I,X,q,A,B,C,D,F,G,J,K,P,Q,V,W,Y,Z,$,_,ee,oe,te,ne,ie,ae,re=e[3].orgName+"",se=e[3].manifesto+"",le=e[3].joinUs+"",ce=e[3].groups+"",de=e[3].communities+"",me=e[3].cooperatives+"",he=e[3].partners+"",pe=Object.entries(z),ge=[];for(let o=0;o',r=m(),l=d("a"),c=d("img"),y=m(),x=d("span"),j=h(re),T=m(),L=d("nav"),M=d("ul"),N=d("li"),S=d("a"),E=h(se),R=m(),U=d("li"),I=d("a"),X=h(le),q=m(),A=d("li"),B=d("a"),C=h(ce),D=m(),F=d("li"),G=d("a"),J=h(de),K=m(),P=d("li"),Q=d("a"),V=h(me),W=m(),Y=d("li"),Z=d("a"),$=h(he),_=m(),ee=d("li"),oe=d("button"),oe.innerHTML=' \n \n globe',te=m(),ne=d("div");for(let e=0;e!t.includes(e)));let n=o.slice(0,o.length-1).join("/")+"/"+e+"/"+o[o.length-1];location.href=n}l(e,m,(e=>t(3,n=e))),x(m,"navbar-component",s,(e=>j(d,e))),c((()=>{}));return[i,a,r,n,s,d,m,function(){i.checked?t(1,a.style.background="white",a):setTimeout((()=>{t(1,a.style.position="relative",a),t(1,a.style.background="",a),t(1,a.style.boxShadow="",a)}),510)},function(){"block"==r.style.display?t(2,r.style.display="none",r):t(2,r.style.display="block",r)},h,function(e){w[e?"unshift":"push"]((()=>{i=e,t(0,i)}))},e=>h(e),function(e){w[e?"unshift":"push"]((()=>{r=e,t(2,r)}))},function(e){w[e?"unshift":"push"]((()=>{a=e,t(1,a)}))}]}class N extends e{constructor(e){super(),this.shadowRoot.innerHTML="",o(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},M,L,i,{},null),e&&e.target&&n(e.target,this,e.anchor)}}customElements.define("navbar-component",N);export{N as default}; +import{S as e,i as o,a as t,b as n,s as i,e as a,n as r,d as l,c as s,o as c,f as d,g as m,t as h,h as p,j as g,l as u,u as f,m as b,p as v,x as k,v as w}from"./index-ce8c147b.js";import{w as y}from"./index-f2dbf8ff.js";import{loadLocaleContent as x,locales as j}from"../../../../../../../../../js/libraries/serverTools.js";function z(e,o,t){const n=e.slice();return n[14]=o[t][0],n[15]=o[t][1],n}function O(e){let o,t,i,a,r,s,c,w,y,x,O,H,L,M,N,S,E,R,U,I,X,q,A,B,C,D,F,G,J,K,P,Q,V,W,Y,Z,$,_,ee,oe,te,ne,ie,ae,re=e[3].orgName+"",le=e[3].manifesto+"",se=e[3].joinUs+"",ce=e[3].groups+"",de=e[3].communities+"",me=e[3].cooperatives+"",he=e[3].partners+"",pe=Object.entries(j),ge=[];for(let o=0;o',r=m(),s=d("a"),c=d("img"),y=m(),x=d("span"),O=h(re),H=m(),L=d("nav"),M=d("ul"),N=d("li"),S=d("a"),E=h(le),R=m(),U=d("li"),I=d("a"),X=h(se),q=m(),A=d("li"),B=d("a"),C=h(ce),D=m(),F=d("li"),G=d("a"),J=h(de),K=m(),P=d("li"),Q=d("a"),V=h(me),W=m(),Y=d("li"),Z=d("a"),$=h(he),_=m(),ee=d("li"),oe=d("button"),oe.innerHTML=' \n \n globe',te=m(),ne=d("div");for(let e=0;et(3,n=e)));let m=x(d,"navbar-component",l);function h(e){localStorage.setItem("locale",e);let o=location.href.split("/"),t=Object.keys(j);o=o.filter((e=>!t.includes(e)));let n=o.slice(0,o.length-1).join("/")+"/"+e+"/"+o[o.length-1];location.href=n}c((()=>{}));return[i,a,r,n,l,d,m,function(){i.checked?t(1,a.style.background="white",a):setTimeout((()=>{t(1,a.style.position="relative",a),t(1,a.style.background="",a),t(1,a.style.boxShadow="",a)}),510)},function(){"block"==r.style.display?t(2,r.style.display="none",r):t(2,r.style.display="block",r)},h,function(e){w[e?"unshift":"push"]((()=>{i=e,t(0,i)}))},e=>h(e),function(e){w[e?"unshift":"push"]((()=>{r=e,t(2,r)}))},function(e){w[e?"unshift":"push"]((()=>{a=e,t(1,a)}))}]}class M extends e{constructor(e){super(),this.shadowRoot.innerHTML="",o(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},L,H,i,{},null),e&&e.target&&n(e.target,this,e.anchor)}}customElements.define("navbar-component",M);export{M as default}; diff --git a/Server/public/js/components/partners-component.js b/Server/public/js/components/partners-component.js index 4f826c9..b2ab01c 100644 --- a/Server/public/js/components/partners-component.js +++ b/Server/public/js/components/partners-component.js @@ -1 +1 @@ -import{S as e,i as t,a as n,b as i,s as o,e as a,n as r,d as s,c as m,o as l,f as c,t as g,g as d,h as p,j as h,l as f,m as u,p as b}from"./index-ce8c147b.js";import{w as x}from"./index-f2dbf8ff.js";import{loadLocaleContent as w,getLocale as v}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(e,t,n){const i=e.slice();return i[5]=t[n],i}function k(e){let t,n,o,a,r,m,l,x,w,v,k,z,D,F,G,E,O,R=e[0].heading+"",S=e[0].p1+"",T=e[0].subheading1+"",_=e[0].subheading2+"",A=e[4],C=[];for(let t=0;tn(0,i=e))),w(r,"partners-component",o,(e=>v(a,e)));return l((()=>{})),[i,o,a,r,[{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"}]]}class F extends e{constructor(e){super(),this.shadowRoot.innerHTML="",t(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},D,z,o,{},null),e&&e.target&&i(e.target,this,e.anchor)}}customElements.define("partners-component",F);export{F as default}; +import{S as e,i as t,a as n,b as i,s as o,e as a,n as r,d as s,c as l,o as m,f as c,t as g,g as d,h as p,j as h,l as f,m as u,p as b}from"./index-ce8c147b.js";import{w as x}from"./index-f2dbf8ff.js";import{loadLocaleContent as w}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function v(e,t,n){const i=e.slice();return i[5]=t[n],i}function y(e){let t,n,o,a,r,l,m,x,w,y,j,z,D,F,G,E,O,R=e[0].heading+"",S=e[0].p1+"",T=e[0].subheading1+"",_=e[0].subheading2+"",A=e[4],C=[];for(let t=0;tn(0,i=e)));let r=w(a,"partners-component",o);return m((()=>{})),[i,o,a,r,[{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"}]]}class D extends e{constructor(e){super(),this.shadowRoot.innerHTML="",t(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},z,j,o,{},null),e&&e.target&&i(e.target,this,e.anchor)}}customElements.define("partners-component",D);export{D as default}; diff --git a/Server/public/js/libraries/serverTools.js b/Server/public/js/libraries/serverTools.js index a15f954..127c4c9 100644 --- a/Server/public/js/libraries/serverTools.js +++ b/Server/public/js/libraries/serverTools.js @@ -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) { diff --git a/Server/public/locales/en/manifesto-component.json b/Server/public/locales/en/manifesto-component.json new file mode 100644 index 0000000..231b15d --- /dev/null +++ b/Server/public/locales/en/manifesto-component.json @@ -0,0 +1,3 @@ +{ + "tableOfContents": "TABLE OF CONTENTS" +} \ No newline at end of file diff --git a/Server/public/locales/ru/cooperatives-component.json b/Server/public/locales/ru/cooperatives-component.json index 5363c0c..dd73899 100644 --- a/Server/public/locales/ru/cooperatives-component.json +++ b/Server/public/locales/ru/cooperatives-component.json @@ -1,6 +1,6 @@ { "heading": "Кооперативы", - "p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием и контролируют его. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.", + "p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.", "p2": "Сосредоточив внимание на потребностях сотрудников, наши кооперативы создают благоприятную и устойчивую рабочую среду, которая способствует социальной сплоченности и гарантиям занятости. Мы также уделяем первостепенное внимание интересам местных сообществ, ориентируясь на долгосрочную перспективу. Когда решения принимают работники, мы избегаем вредных краткосрочных стратегий, ориентированных на получение прибыли, и вместо этого реинвестируем нашу прибыль, способствуя развитию и устойчивости сообщества.", "subheading1": "Наши кооперативы", "subheading2": "Европа", diff --git a/Server/public/locales/ru/manifesto-component.json b/Server/public/locales/ru/manifesto-component.json new file mode 100644 index 0000000..e9e078e --- /dev/null +++ b/Server/public/locales/ru/manifesto-component.json @@ -0,0 +1,3 @@ +{ + "tableOfContents": "ОГЛАВЛЕНИЕ" +} \ No newline at end of file diff --git a/Server/public/locales/ru/navbar-component.json b/Server/public/locales/ru/navbar-component.json index b8a1c54..6599ced 100644 --- a/Server/public/locales/ru/navbar-component.json +++ b/Server/public/locales/ru/navbar-component.json @@ -3,7 +3,7 @@ "manifesto": "Манифест", "joinUs": "Присоединяйся", "groups": "Группы", - "communities": "Сообщества", + "communities": "Коммуны", "cooperatives": "Кооперативы", "partners": "Партнеры" } \ No newline at end of file