This commit is contained in:
a-ill 2023-07-10 14:09:25 +03:00
parent be9517ba74
commit b1b9f6bc10
23 changed files with 41 additions and 7633 deletions

View File

@ -1,5 +1,11 @@
export let communities = [ export let communities = [
{
location: ["CanadaMontreal",[44.654781585774785, -63.61076905562609]],
status: "forming",
members: 2,
contact: ["https://discord.gg/xAPZmyr8B6","DiscordInviteLink"]
},
{ {
location: ["EstoniaKohtlaJarve",[59.409521829709504, 27.288415912535914]], location: ["EstoniaKohtlaJarve",[59.409521829709504, 27.288415912535914]],
status: "forming", status: "forming",

View File

@ -9,5 +9,7 @@
"contact": "Contact", "contact": "Contact",
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve", "EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
"forming": "forming", "forming": "forming",
"WhatsAppInviteLink": "WhatsApp invite link" "WhatsAppInviteLink": "WhatsApp invite link",
"DiscordInviteLink": "Discord invite link",
"CanadaMontreal": "Canada, Montreal"
} }

View File

@ -9,5 +9,7 @@
"contact": "Контакт", "contact": "Контакт",
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве", "EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
"forming": "формируется", "forming": "формируется",
"WhatsAppInviteLink": "WhatsApp ссылка" "WhatsAppInviteLink": "WhatsApp ссылка",
"DiscordInviteLink": "Discord ссылка",
"CanadaMontreal": "Канада, Монреаль"
} }

View File

@ -1,5 +1,11 @@
export let communities = [ export let communities = [
{
location: ["CanadaMontreal",[44.654781585774785, -63.61076905562609]],
status: "forming",
members: 2,
contact: ["https://discord.gg/xAPZmyr8B6","DiscordInviteLink"]
},
{ {
location: ["EstoniaKohtlaJarve",[59.409521829709504, 27.288415912535914]], location: ["EstoniaKohtlaJarve",[59.409521829709504, 27.288415912535914]],
status: "forming", status: "forming",

View File

@ -1,440 +1 @@
import{S as t,i as o,a as n,b as e,s as i,e as a,n as m,d as s,c as r,o as c,f as l,t as g,g as p,h as u,j as h,k as d,l as b,m as f,p as x}from"./index-4348483d.js";import{w as j}from"./index-71440b21.js";import{communities as v,addMarkersCommunities as w}from"../../../../../../../../../js/communities.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,o,n){const e=t.slice();return e[6]=o[n],e}function z(t){let o,n,i,a,m,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 o=0;o<B.length;o+=1)F[o]=D(y(t,B,o));return{c(){o=l("div"),n=l("div"),i=l("h1"),a=g(N),m=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();u(r,"id","communities-img"),h(r.src,c="/img/common/communities.svg")||u(r,"src","/img/common/communities.svg"),u(r,"alt","communities"),d(T,"id","map"),d(T,"callback",A=t[5]),u(n,"id","text-container"),u(o,"id","container")},m(t,s){e(t,o,s),b(o,n),b(n,i),b(i,a),b(n,m),b(n,r),b(n,j),b(n,w),b(w,k),b(n,z),b(n,E),b(E,O),b(n,R),b(n,T),b(n,C),b(n,H),b(H,L),b(n,M);for(let t=0;t<F.length;t+=1)F[t].m(n,null)},p(t,o){if(1&o&&N!==(N=t[0].heading+"")&&f(a,N),1&o&&S!==(S=t[0].p1+"")&&f(k,S),1&o&&_!==(_=t[0].subheading1+"")&&f(O,_),1&o&&A!==(A=t[5])&&d(T,"callback",A),1&o&&q!==(q=t[0].subheading2+"")&&f(L,q),1&o){let e;for(B=v,e=0;e<B.length;e+=1){const i=y(t,B,e);F[e]?F[e].p(i,o):(F[e]=D(i),F[e].c(),F[e].m(n,null))}for(;e<F.length;e+=1)F[e].d(1);F.length=B.length}},d(t){t&&s(o),x(F,t)}}}function D(t){let o,n,i,a,m,r,c,h,d,x,j,v,w,k,y,z,D,E,O,R,T,A,C,H,L,M,N=t[0].location+"",S=t[0][t[6].location[0]]+"",_=t[0].status+"",q=t[0][t[6].status]+"",B=t[0].members+"",F=t[6].members+"",G=t[0].contact+"",I=t[0][t[6].contact[1]]+"";return{c(){o=l("div"),n=l("p"),i=l("b"),a=g(N),m=g(": "),r=g(S),c=p(),h=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(),u(H,"href",t[6].contact[0]),u(H,"target",";_blank;"),u(H,"rel","noreferrer"),u(o,"class","location-info")},m(t,s){e(t,o,s),b(o,n),b(n,i),b(i,a),b(i,m),b(n,r),b(o,c),b(o,h),b(h,d),b(d,x),b(d,j),b(h,v),b(o,w),b(o,k),b(k,y),b(y,z),b(y,D),b(k,E),b(o,O),b(o,R),b(R,T),b(T,A),b(T,C),b(R,H),b(H,L),b(o,M)},p(t,o){1&o&&N!==(N=t[0].location+"")&&f(a,N),1&o&&S!==(S=t[0][t[6].location[0]]+"")&&f(r,S),1&o&&_!==(_=t[0].status+"")&&f(x,_),1&o&&q!==(q=t[0][t[6].status]+"")&&f(v,q),1&o&&B!==(B=t[0].members+"")&&f(z,B),1&o&&G!==(G=t[0].contact+"")&&f(A,G),1&o&&I!==(I=t[0][t[6].contact[1]]+"")&&f(L,I)},d(t){t&&s(o)}}}function E(t){let o,n=0!=Object.keys(t[0]).length,i=n&&z(t);return{c(){i&&i.c(),o=a(),this.c=m},m(t,n){i&&i.m(t,n),e(t,o,n)},p(t,[e]){1&e&&(n=0!=Object.keys(t[0]).length),n?i?i.p(t,e):(i=z(t),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},i:m,o:m,d(t){i&&i.d(t),t&&s(o)}}}function O(t,o,n){let e,i,a=j({});r(t,a,(t=>n(0,e=t)));let m=k(a,"communities-component",i);function s(t,o){let n=t([51.505,-.09],3);w(n,o)}c((()=>{}));return[e,i,a,m,s,t=>s(t,e)]}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>",o(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},O,E,i,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("communities-component",R);export{R as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, c as validate_store, e as component_subscribe, o as onMount, g as globals, f as validate_each_argument, h as empty, n as noop, j as detach_dev, k as element, t as text, l as space, m as add_location, p as attr_dev, q as src_url_equal, r as set_custom_element_data, u as append_dev, w as set_data_dev, x as destroy_each } from './index-42a25c61.js';
import { w as writable } from './index-a1c185ea.js';
import { communities, addMarkersCommunities } from '../../../../../../../../../js/communities.js';
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js';
import '../../../../../../../../../js/components/map-component.js';
/* src\communities-component.svelte generated by Svelte v3.52.0 */
const { Object: Object_1 } = globals;
const file = "src\\communities-component.svelte";
function get_each_context(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[6] = list[i];
return child_ctx;
}
// (30:4) {#if Object.keys($content).length!=0}
function create_if_block(ctx) {
let div1;
let div0;
let h1;
let t0_value = /*$content*/ ctx[0].heading + "";
let t0;
let t1;
let img;
let img_src_value;
let t2;
let p;
let t3_value = /*$content*/ ctx[0].p1 + "";
let t3;
let t4;
let h3;
let t5_value = /*$content*/ ctx[0].subheading1 + "";
let t5;
let t6;
let map_component;
let map_component_callback_value;
let t7;
let h4;
let t8_value = /*$content*/ ctx[0].subheading2 + "";
let t8;
let t9;
let each_value = communities;
validate_each_argument(each_value);
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
}
const block = {
c: function create() {
div1 = element("div");
div0 = element("div");
h1 = element("h1");
t0 = text(t0_value);
t1 = space();
img = element("img");
t2 = space();
p = element("p");
t3 = text(t3_value);
t4 = space();
h3 = element("h3");
t5 = text(t5_value);
t6 = space();
map_component = element("map-component");
t7 = space();
h4 = element("h4");
t8 = text(t8_value);
t9 = space();
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].c();
}
add_location(h1, file, 33, 16, 960);
attr_dev(img, "id", "communities-img");
if (!src_url_equal(img.src, img_src_value = "/img/common/communities.svg")) attr_dev(img, "src", img_src_value);
attr_dev(img, "alt", "communities");
add_location(img, file, 34, 16, 1005);
add_location(p, file, 35, 16, 1101);
add_location(h3, file, 36, 16, 1139);
set_custom_element_data(map_component, "id", "map");
set_custom_element_data(map_component, "callback", map_component_callback_value = /*func*/ ctx[5]);
add_location(map_component, file, 37, 16, 1188);
add_location(h4, file, 38, 16, 1322);
attr_dev(div0, "id", "text-container");
add_location(div0, file, 32, 12, 917);
attr_dev(div1, "id", "container");
add_location(div1, file, 30, 8, 814);
},
m: function mount(target, anchor) {
insert_dev(target, div1, anchor);
append_dev(div1, div0);
append_dev(div0, h1);
append_dev(h1, t0);
append_dev(div0, t1);
append_dev(div0, img);
append_dev(div0, t2);
append_dev(div0, p);
append_dev(p, t3);
append_dev(div0, t4);
append_dev(div0, h3);
append_dev(h3, t5);
append_dev(div0, t6);
append_dev(div0, map_component);
append_dev(div0, t7);
append_dev(div0, h4);
append_dev(h4, t8);
append_dev(div0, t9);
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].m(div0, null);
}
},
p: function update(ctx, dirty) {
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].heading + "")) set_data_dev(t0, t0_value);
if (dirty & /*$content*/ 1 && t3_value !== (t3_value = /*$content*/ ctx[0].p1 + "")) set_data_dev(t3, t3_value);
if (dirty & /*$content*/ 1 && t5_value !== (t5_value = /*$content*/ ctx[0].subheading1 + "")) set_data_dev(t5, t5_value);
if (dirty & /*$content*/ 1 && map_component_callback_value !== (map_component_callback_value = /*func*/ ctx[5])) {
set_custom_element_data(map_component, "callback", map_component_callback_value);
}
if (dirty & /*$content*/ 1 && t8_value !== (t8_value = /*$content*/ ctx[0].subheading2 + "")) set_data_dev(t8, t8_value);
if (dirty & /*communities, $content*/ 1) {
each_value = communities;
validate_each_argument(each_value);
let i;
for (i = 0; i < each_value.length; i += 1) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div0, null);
}
}
for (; i < each_blocks.length; i += 1) {
each_blocks[i].d(1);
}
each_blocks.length = each_value.length;
}
},
d: function destroy(detaching) {
if (detaching) detach_dev(div1);
destroy_each(each_blocks, detaching);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_if_block.name,
type: "if",
source: "(30:4) {#if Object.keys($content).length!=0}",
ctx
});
return block;
}
// (40:16) {#each communities as community}
function create_each_block(ctx) {
let div;
let p0;
let b0;
let t0_value = /*$content*/ ctx[0].location + "";
let t0;
let t1;
let t2_value = /*$content*/ ctx[0][/*community*/ ctx[6].location[0]] + "";
let t2;
let t3;
let p1;
let b1;
let t4_value = /*$content*/ ctx[0].status + "";
let t4;
let t5;
let t6_value = /*$content*/ ctx[0][/*community*/ ctx[6].status] + "";
let t6;
let t7;
let p2;
let b2;
let t8_value = /*$content*/ ctx[0].members + "";
let t8;
let t9;
let t10_value = /*community*/ ctx[6].members + "";
let t10;
let t11;
let p3;
let b3;
let t12_value = /*$content*/ ctx[0].contact + "";
let t12;
let t13;
let a;
let t14_value = /*$content*/ ctx[0][/*community*/ ctx[6].contact[1]] + "";
let t14;
let t15;
const block = {
c: function create() {
div = element("div");
p0 = element("p");
b0 = element("b");
t0 = text(t0_value);
t1 = text(": ");
t2 = text(t2_value);
t3 = space();
p1 = element("p");
b1 = element("b");
t4 = text(t4_value);
t5 = text(": ");
t6 = text(t6_value);
t7 = space();
p2 = element("p");
b2 = element("b");
t8 = text(t8_value);
t9 = text(": ");
t10 = text(t10_value);
t11 = space();
p3 = element("p");
b3 = element("b");
t12 = text(t12_value);
t13 = text(": ");
a = element("a");
t14 = text(t14_value);
t15 = space();
add_location(b0, file, 41, 27, 1481);
add_location(p0, file, 41, 24, 1478);
add_location(b1, file, 42, 27, 1575);
add_location(p1, file, 42, 24, 1572);
add_location(b2, file, 43, 27, 1662);
add_location(p2, file, 43, 24, 1659);
add_location(b3, file, 44, 27, 1741);
attr_dev(a, "href", /*community*/ ctx[6].contact[0]);
attr_dev(a, "target", ";_blank;");
attr_dev(a, "rel", "noreferrer");
add_location(a, file, 44, 54, 1768);
add_location(p3, file, 44, 24, 1738);
attr_dev(div, "class", "location-info");
add_location(div, file, 40, 20, 1425);
},
m: function mount(target, anchor) {
insert_dev(target, div, anchor);
append_dev(div, p0);
append_dev(p0, b0);
append_dev(b0, t0);
append_dev(b0, t1);
append_dev(p0, t2);
append_dev(div, t3);
append_dev(div, p1);
append_dev(p1, b1);
append_dev(b1, t4);
append_dev(b1, t5);
append_dev(p1, t6);
append_dev(div, t7);
append_dev(div, p2);
append_dev(p2, b2);
append_dev(b2, t8);
append_dev(b2, t9);
append_dev(p2, t10);
append_dev(div, t11);
append_dev(div, p3);
append_dev(p3, b3);
append_dev(b3, t12);
append_dev(b3, t13);
append_dev(p3, a);
append_dev(a, t14);
append_dev(div, t15);
},
p: function update(ctx, dirty) {
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].location + "")) set_data_dev(t0, t0_value);
if (dirty & /*$content*/ 1 && t2_value !== (t2_value = /*$content*/ ctx[0][/*community*/ ctx[6].location[0]] + "")) set_data_dev(t2, t2_value);
if (dirty & /*$content*/ 1 && t4_value !== (t4_value = /*$content*/ ctx[0].status + "")) set_data_dev(t4, t4_value);
if (dirty & /*$content*/ 1 && t6_value !== (t6_value = /*$content*/ ctx[0][/*community*/ ctx[6].status] + "")) set_data_dev(t6, t6_value);
if (dirty & /*$content*/ 1 && t8_value !== (t8_value = /*$content*/ ctx[0].members + "")) set_data_dev(t8, t8_value);
if (dirty & /*$content*/ 1 && t12_value !== (t12_value = /*$content*/ ctx[0].contact + "")) set_data_dev(t12, t12_value);
if (dirty & /*$content*/ 1 && t14_value !== (t14_value = /*$content*/ ctx[0][/*community*/ ctx[6].contact[1]] + "")) set_data_dev(t14, t14_value);
},
d: function destroy(detaching) {
if (detaching) detach_dev(div);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_each_block.name,
type: "each",
source: "(40:16) {#each communities as community}",
ctx
});
return block;
}
function create_fragment(ctx) {
let show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
let if_block_anchor;
let if_block = show_if && create_if_block(ctx);
const block = {
c: function create() {
if (if_block) if_block.c();
if_block_anchor = empty();
this.c = noop;
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
if (if_block) if_block.m(target, anchor);
insert_dev(target, if_block_anchor, anchor);
},
p: function update(ctx, [dirty]) {
if (dirty & /*$content*/ 1) show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
if (show_if) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
if_block = create_if_block(ctx);
if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
},
i: noop,
o: noop,
d: function destroy(detaching) {
if (if_block) if_block.d(detaching);
if (detaching) detach_dev(if_block_anchor);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let $content;
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('communities-component', slots, []);
let loaded;
let content = writable({});
validate_store(content, 'content');
component_subscribe($$self, content, value => $$invalidate(0, $content = value));
let locale = loadLocaleContent(content, "communities-component", loaded);
function mapCallbackCommunities(createMap, content) {
let map = createMap([51.505, -0.09], 3);
addMarkersCommunities(map, content);
}
onMount(() => {
});
const writable_props = [];
Object_1.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<communities-component> was created with unknown prop '${key}'`);
});
const func = createMap => mapCallbackCommunities(createMap, $content);
$$self.$capture_state = () => ({
onMount,
writable,
communities,
addMarkersCommunities,
loadLocaleContent,
loaded,
content,
locale,
mapCallbackCommunities,
$content
});
$$self.$inject_state = $$props => {
if ('loaded' in $$props) $$invalidate(1, loaded = $$props.loaded);
if ('content' in $$props) $$invalidate(2, content = $$props.content);
if ('locale' in $$props) $$invalidate(3, locale = $$props.locale);
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [$content, loaded, content, locale, mapCallbackCommunities, func];
}
class Communities_component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#communities-img{position:absolute;width:11.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{},
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
}
}
}
customElements.define("communities-component", Communities_component);
export { Communities_component as default };

File diff suppressed because one or more lines are too long

View File

@ -1,99 +1 @@
import{S as e,i as s,a as t,b as o,s as i,f as a,n as r,h as n,d as c,o as d}from"./index-4348483d.js";function p(e){let s;return{c(){s=a("div"),s.innerHTML="<div><p>We use cookies to improve your experience, personalise your content and analyse site usage. By clicking “OK”, you agree to the use of cookies.</p></div>",this.c=r,n(s,"id","wrapper")},m(e,t){o(e,s,t)},p:r,i:r,o:r,d(e){e&&c(s)}}}function u(e){return d((()=>{})),[]}class h extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#wrapper{display:none;position:relative;height:5rem;width:100%;background:white;box-shadow:0 0 0.314rem rgb(187, 187, 187);;}</style>",s(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},u,p,i,{},null),e&&e.target&&o(e.target,this,e.anchor)}}customElements.define("cookies-dialog",h);export{h as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, o as onMount, k as element, n as noop, m as add_location, p as attr_dev, u as append_dev, j as detach_dev } from './index-42a25c61.js';
/* src\components\cookies-dialog.svelte generated by Svelte v3.52.0 */
const file = "src\\components\\cookies-dialog.svelte";
function create_fragment(ctx) {
let div1;
let div0;
let p;
const block = {
c: function create() {
div1 = element("div");
div0 = element("div");
p = element("p");
p.textContent = "We use cookies to improve your experience, personalise your content and analyse site usage. By clicking “OK”, you agree to the use of cookies.";
this.c = noop;
add_location(p, file, 19, 8, 248);
add_location(div0, file, 18, 4, 233);
attr_dev(div1, "id", "wrapper");
add_location(div1, file, 17, 0, 209);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
insert_dev(target, div1, anchor);
append_dev(div1, div0);
append_dev(div0, p);
},
p: noop,
i: noop,
o: noop,
d: function destroy(detaching) {
if (detaching) detach_dev(div1);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('cookies-dialog', slots, []);
onMount(() => {
});
const writable_props = [];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<cookies-dialog> was created with unknown prop '${key}'`);
});
$$self.$capture_state = () => ({ onMount });
return [];
}
class Cookies_dialog extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#wrapper{display:none;position:relative;height:5rem;width:100%;background:white;box-shadow:0 0 0.314rem rgb(187, 187, 187);;}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{},
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
}
}
}
customElements.define("cookies-dialog", Cookies_dialog);
export { Cookies_dialog as default };

File diff suppressed because one or more lines are too long

View File

@ -1,307 +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,v as g,l as h,q as p,m as u}from"./index-4348483d.js";import{w as b}from"./index-71440b21.js";import{loadLocaleContent as w}from"../../../../../../../../../js/libraries/serverTools.js";function v(t){let e,o,a,i,n,m,b,w,v,y,k,x,j,L,_,z,B,C,T,U,A,H,M=t[0].contactUs+"",R=t[0].inviteLink+"",D=t[0].inviteLink+"";return{c(){e=c("footer"),o=c("div"),a=c("div"),i=c("div"),n=c("h2"),m=f(M),b=l(),w=c("p"),v=f("WhatsApp: "),y=c("a"),k=f(R),x=l(),j=c("p"),L=f("Discord: "),_=c("a"),z=f(D),B=l(),C=c("button"),C.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="42.545" height="72.601" viewBox="0 0 42.545 72.601"><g id="Group_268" data-name="Group 268" transform="translate(-6.177 -2.399)"><rect id="Rectangle_146" data-name="Rectangle 146" width="11" height="51" rx="5.5" transform="translate(22 24)" fill="#cb1816"></rect><path id="Path_1145" data-name="Path 1145" d="M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z" fill="#DD1C1A"></path></g></svg>',T=l(),U=c("p"),U.innerHTML='Licensed under a Creative Commons <a href="https://creativecommons.org/licenses/by/4.0/legalcode " target="_blank" rel="noreferrer">CC BY 4.0 license.</a>',d(y,"href","https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh"),d(y,"target","_blank"),d(y,"rel","noreferrer"),g(y,"margin-left","0.5rem"),d(_,"href","https://discord.gg/xAPZmyr8B6"),d(_,"target","_blank"),d(_,"rel","noreferrer"),g(_,"margin-left","1.8rem"),d(i,"id","contact-us-container"),d(a,"id","footer-grid-content-container"),d(a,"class","logged"),d(C,"id","footer-up"),d(C,"aria-label","go up"),d(U,"id","footer-copyright"),d(o,"id","footer-content-container")},m(s,c){r(s,e,c),h(e,o),h(o,a),h(a,i),h(i,n),h(n,m),h(i,b),h(i,w),h(w,v),h(w,y),h(y,k),h(i,x),h(i,j),h(j,L),h(j,_),h(_,z),h(o,B),h(o,C),h(o,T),h(o,U),A||(H=p(C,"click",t[3]),A=!0)},p(t,e){1&e&&M!==(M=t[0].contactUs+"")&&u(m,M),1&e&&R!==(R=t[0].inviteLink+"")&&u(k,R),1&e&&D!==(D=t[0].inviteLink+"")&&u(z,D)},d(t){t&&s(e),A=!1,H()}}}function y(t){let e,o=0!=Object.keys(t[0]).length,a=o&&v(t);return{c(){a&&a.c(),e=i(),this.c=n},m(t,o){a&&a.m(t,o),r(t,e,o)},p(t,[r]){1&r&&(o=0!=Object.keys(t[0]).length),o?a?a.p(t,r):(a=v(t),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i:n,o:n,d(t){a&&a.d(t),t&&s(e)}}}function k(t,e,o){let r,a,i=b({});m(t,i,(t=>o(0,r=t))),w(i,"footer-component",a);return[r,a,i,()=>{location.href="#"}]}class x extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';footer{position:relative;bottom:0;width:100%;height:auto;background:#5B6970;border-top:#cb1816 solid 0.5rem}footer p,footer a{font-family:var(--sans-serif)}#footer-content-container{position:relative;margin:auto;padding-top:2rem;max-width:116rem;width:97vw}#footer-grid-content-container{display:grid;margin-left:2rem;margin-right:2rem;margin-bottom:1rem}.logged{grid-template-columns:auto auto 2rem}footer h2{color:#ffffff;font-size:1.3rem;margin-bottom:0.5rem}#footer-copyright{position:relative;margin:auto;width:100%;bottom:0rem;height:3rem;top:0rem;margin-bottom:0;font-size:1rem;text-align:center}#footer-copyright *{font-size:1rem}footer a{font-size:1.1rem;color:#ffffff}footer p{display:block;font-size:1.1rem;color:#d8d8d8;font-family:var(--sans-serif,sans-serif);margin-bottom:0.5rem}#contact-us-container{width:16rem}#footer-up{position:absolute;width:4.8rem;height:4.8rem;border-radius:3.4rem;top:4rem;right:2rem;background:#ffffff}#footer-up svg{width:40%;height:auto}@media only screen and (max-width: 1170px){.logged{grid-template-rows:auto auto auto;grid-template-columns:auto;row-gap:2rem}#footer-copyright{height:1rem;top:-2rem}}</style>",e(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},k,y,a,{},null),t&&t.target&&r(t.target,this,t.anchor)}}customElements.define("footer-component",x);export{x as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, c as validate_store, e as component_subscribe, g as globals, h as empty, n as noop, j as detach_dev, k as element, t as text, l as space, G as svg_element, m as add_location, p as attr_dev, D as set_style, u as append_dev, y as listen_dev, w as set_data_dev } from './index-42a25c61.js';
import { w as writable } from './index-a1c185ea.js';
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js';
/* src\footer\footer-component.svelte generated by Svelte v3.52.0 */
const { Object: Object_1 } = globals;
const file = "src\\footer\\footer-component.svelte";
// (20:4) {#if Object.keys($content).length!=0}
function create_if_block(ctx) {
let footer;
let div2;
let div1;
let div0;
let h2;
let t0_value = /*$content*/ ctx[0].contactUs + "";
let t0;
let t1;
let p0;
let t2;
let a0;
let t3_value = /*$content*/ ctx[0].inviteLink + "";
let t3;
let t4;
let p1;
let t5;
let a1;
let t6_value = /*$content*/ ctx[0].inviteLink + "";
let t6;
let t7;
let button;
let svg;
let g;
let rect;
let path;
let t8;
let p2;
let t9;
let a2;
let mounted;
let dispose;
const block = {
c: function create() {
footer = element("footer");
div2 = element("div");
div1 = element("div");
div0 = element("div");
h2 = element("h2");
t0 = text(t0_value);
t1 = space();
p0 = element("p");
t2 = text("WhatsApp: ");
a0 = element("a");
t3 = text(t3_value);
t4 = space();
p1 = element("p");
t5 = text("Discord: ");
a1 = element("a");
t6 = text(t6_value);
t7 = space();
button = element("button");
svg = svg_element("svg");
g = svg_element("g");
rect = svg_element("rect");
path = svg_element("path");
t8 = space();
p2 = element("p");
t9 = text("Licensed under a Creative Commons ");
a2 = element("a");
a2.textContent = "CC BY 4.0 license.";
add_location(h2, file, 24, 24, 660);
attr_dev(a0, "href", "https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh");
attr_dev(a0, "target", "_blank");
attr_dev(a0, "rel", "noreferrer");
set_style(a0, "margin-left", "0.5rem");
add_location(a0, file, 26, 37, 827);
add_location(p0, file, 26, 24, 814);
attr_dev(a1, "href", "https://discord.gg/xAPZmyr8B6");
attr_dev(a1, "target", "_blank");
attr_dev(a1, "rel", "noreferrer");
set_style(a1, "margin-left", "1.8rem");
add_location(a1, file, 27, 36, 1013);
add_location(p1, file, 27, 24, 1001);
attr_dev(div0, "id", "contact-us-container");
add_location(div0, file, 23, 20, 603);
attr_dev(div1, "id", "footer-grid-content-container");
attr_dev(div1, "class", "logged");
add_location(div1, file, 22, 16, 526);
attr_dev(rect, "id", "Rectangle_146");
attr_dev(rect, "data-name", "Rectangle 146");
attr_dev(rect, "width", "11");
attr_dev(rect, "height", "51");
attr_dev(rect, "rx", "5.5");
attr_dev(rect, "transform", "translate(22 24)");
attr_dev(rect, "fill", "#cb1816");
add_location(rect, file, 33, 24, 1541);
attr_dev(path, "id", "Path_1145");
attr_dev(path, "data-name", "Path 1145");
attr_dev(path, "d", "M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z");
attr_dev(path, "fill", "#DD1C1A");
add_location(path, file, 34, 24, 1695);
attr_dev(g, "id", "Group_268");
attr_dev(g, "data-name", "Group 268");
attr_dev(g, "transform", "translate(-6.177 -2.399)");
add_location(g, file, 32, 24, 1438);
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
attr_dev(svg, "width", "42.545");
attr_dev(svg, "height", "72.601");
attr_dev(svg, "viewBox", "0 0 42.545 72.601");
add_location(svg, file, 31, 20, 1313);
attr_dev(button, "id", "footer-up");
attr_dev(button, "aria-label", "go up");
add_location(button, file, 30, 16, 1212);
attr_dev(a2, "href", "https://creativecommons.org/licenses/by/4.0/legalcode ");
attr_dev(a2, "target", "_blank");
attr_dev(a2, "rel", "noreferrer");
add_location(a2, file, 38, 75, 2105);
attr_dev(p2, "id", "footer-copyright");
add_location(p2, file, 38, 16, 2046);
attr_dev(div2, "id", "footer-content-container");
add_location(div2, file, 21, 12, 473);
add_location(footer, file, 20, 8, 451);
},
m: function mount(target, anchor) {
insert_dev(target, footer, anchor);
append_dev(footer, div2);
append_dev(div2, div1);
append_dev(div1, div0);
append_dev(div0, h2);
append_dev(h2, t0);
append_dev(div0, t1);
append_dev(div0, p0);
append_dev(p0, t2);
append_dev(p0, a0);
append_dev(a0, t3);
append_dev(div0, t4);
append_dev(div0, p1);
append_dev(p1, t5);
append_dev(p1, a1);
append_dev(a1, t6);
append_dev(div2, t7);
append_dev(div2, button);
append_dev(button, svg);
append_dev(svg, g);
append_dev(g, rect);
append_dev(g, path);
append_dev(div2, t8);
append_dev(div2, p2);
append_dev(p2, t9);
append_dev(p2, a2);
if (!mounted) {
dispose = listen_dev(button, "click", /*click_handler*/ ctx[3], false, false, false);
mounted = true;
}
},
p: function update(ctx, dirty) {
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].contactUs + "")) set_data_dev(t0, t0_value);
if (dirty & /*$content*/ 1 && t3_value !== (t3_value = /*$content*/ ctx[0].inviteLink + "")) set_data_dev(t3, t3_value);
if (dirty & /*$content*/ 1 && t6_value !== (t6_value = /*$content*/ ctx[0].inviteLink + "")) set_data_dev(t6, t6_value);
},
d: function destroy(detaching) {
if (detaching) detach_dev(footer);
mounted = false;
dispose();
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_if_block.name,
type: "if",
source: "(20:4) {#if Object.keys($content).length!=0}",
ctx
});
return block;
}
function create_fragment(ctx) {
let show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
let if_block_anchor;
let if_block = show_if && create_if_block(ctx);
const block = {
c: function create() {
if (if_block) if_block.c();
if_block_anchor = empty();
this.c = noop;
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
if (if_block) if_block.m(target, anchor);
insert_dev(target, if_block_anchor, anchor);
},
p: function update(ctx, [dirty]) {
if (dirty & /*$content*/ 1) show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
if (show_if) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
if_block = create_if_block(ctx);
if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
},
i: noop,
o: noop,
d: function destroy(detaching) {
if (if_block) if_block.d(detaching);
if (detaching) detach_dev(if_block_anchor);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let $content;
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('footer-component', slots, []);
let loaded;
let content = writable({});
validate_store(content, 'content');
component_subscribe($$self, content, value => $$invalidate(0, $content = value));
let locale = loadLocaleContent(content, "footer-component", loaded);
const writable_props = [];
Object_1.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<footer-component> was created with unknown prop '${key}'`);
});
const click_handler = () => {
location.href = '#';
};
$$self.$capture_state = () => ({
writable,
loadLocaleContent,
loaded,
content,
locale,
$content
});
$$self.$inject_state = $$props => {
if ('loaded' in $$props) $$invalidate(1, loaded = $$props.loaded);
if ('content' in $$props) $$invalidate(2, content = $$props.content);
if ('locale' in $$props) locale = $$props.locale;
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [$content, loaded, content, click_handler];
}
class Footer_component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';footer{position:relative;bottom:0;width:100%;height:auto;background:#5B6970;border-top:#cb1816 solid 0.5rem}footer p,footer a{font-family:var(--sans-serif)}#footer-content-container{position:relative;margin:auto;padding-top:2rem;max-width:116rem;width:97vw}#footer-grid-content-container{display:grid;margin-left:2rem;margin-right:2rem;margin-bottom:1rem}.logged{grid-template-columns:auto auto 2rem}footer h2{color:#ffffff;font-size:1.3rem;margin-bottom:0.5rem}#footer-copyright{position:relative;margin:auto;width:100%;bottom:0rem;height:3rem;top:0rem;margin-bottom:0;font-size:1rem;text-align:center}#footer-copyright *{font-size:1rem}footer a{font-size:1.1rem;color:#ffffff}footer p{display:block;font-size:1.1rem;color:#d8d8d8;font-family:var(--sans-serif,sans-serif);margin-bottom:0.5rem}#contact-us-container{width:16rem}#footer-up{position:absolute;width:4.8rem;height:4.8rem;border-radius:3.4rem;top:4rem;right:2rem;background:#ffffff}#footer-up svg{width:40%;height:auto}@media only screen and (max-width: 1170px){.logged{grid-template-rows:auto auto auto;grid-template-columns:auto;row-gap:2rem}#footer-copyright{height:1rem;top:-2rem}}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{},
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
}
}
}
customElements.define("footer-component", Footer_component);
export { Footer_component as default };

View File

@ -1,428 +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 b,m as f,p as x}from"./index-4348483d.js";import{w as j}from"./index-71440b21.js";import{groups as v,addMarkersGroups as w}from"../../../../../../../../../js/groups.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,o,n){const e=t.slice();return e[6]=o[n],e}function z(t){let o,n,r,a,i,m,c,j,w,k,z,E,O,R,T,A,C,H,L,M,N,S,_,q=t[0].heading+"",B=t[0].p1+"",F=t[0].p2+"",G=t[0].subheading1+"",I=t[0].subheading2+"",J=v,K=[];for(let o=0;o<J.length;o+=1)K[o]=D(y(t,J,o));return{c(){o=l("div"),n=l("div"),r=l("h1"),a=p(q),i=g(),m=l("img"),j=g(),w=l("p"),k=p(B),z=g(),E=l("p"),O=p(F),R=g(),T=l("h3"),A=p(G),C=g(),H=l("map-component"),M=g(),N=l("h4"),S=p(I),_=g();for(let t=0;t<K.length;t+=1)K[t].c();h(m,"id","groups-img"),u(m.src,c="/img/common/groups.svg")||h(m,"src","/img/common/groups.svg"),h(m,"alt","groups"),d(H,"id","map"),d(H,"callback",L=t[5]),h(n,"id","text-container"),h(o,"id","container")},m(t,s){e(t,o,s),b(o,n),b(n,r),b(r,a),b(n,i),b(n,m),b(n,j),b(n,w),b(w,k),b(n,z),b(n,E),b(E,O),b(n,R),b(n,T),b(T,A),b(n,C),b(n,H),b(n,M),b(n,N),b(N,S),b(n,_);for(let t=0;t<K.length;t+=1)K[t].m(n,null)},p(t,o){if(1&o&&q!==(q=t[0].heading+"")&&f(a,q),1&o&&B!==(B=t[0].p1+"")&&f(k,B),1&o&&F!==(F=t[0].p2+"")&&f(O,F),1&o&&G!==(G=t[0].subheading1+"")&&f(A,G),1&o&&L!==(L=t[5])&&d(H,"callback",L),1&o&&I!==(I=t[0].subheading2+"")&&f(S,I),1&o){let e;for(J=v,e=0;e<J.length;e+=1){const r=y(t,J,e);K[e]?K[e].p(r,o):(K[e]=D(r),K[e].c(),K[e].m(n,null))}for(;e<K.length;e+=1)K[e].d(1);K.length=J.length}},d(t){t&&s(o),x(K,t)}}}function D(t){let o,n,r,a,i,m,c,u,d,x,j,v,w,k,y,z,D,E,O,R,T=t[0].location+"",A=t[0][t[6].location[0]]+"",C=t[0].members+"",H=t[6].members+"",L=t[0].contact+"",M=t[0][t[6].contact[1]]+"";return{c(){o=l("div"),n=l("p"),r=l("b"),a=p(T),i=p(": "),m=p(A),c=g(),u=l("p"),d=l("b"),x=p(C),j=p(": "),v=p(H),w=g(),k=l("p"),y=l("b"),z=p(L),D=p(": "),E=l("a"),O=p(M),R=g(),h(E,"href",t[6].contact[0]),h(E,"target",";_blank;"),h(E,"rel","noreferrer"),h(o,"class","location-info")},m(t,s){e(t,o,s),b(o,n),b(n,r),b(r,a),b(r,i),b(n,m),b(o,c),b(o,u),b(u,d),b(d,x),b(d,j),b(u,v),b(o,w),b(o,k),b(k,y),b(y,z),b(y,D),b(k,E),b(E,O),b(o,R)},p(t,o){1&o&&T!==(T=t[0].location+"")&&f(a,T),1&o&&A!==(A=t[0][t[6].location[0]]+"")&&f(m,A),1&o&&C!==(C=t[0].members+"")&&f(x,C),1&o&&L!==(L=t[0].contact+"")&&f(z,L),1&o&&M!==(M=t[0][t[6].contact[1]]+"")&&f(O,M)},d(t){t&&s(o)}}}function E(t){let o,n=0!=Object.keys(t[0]).length,r=n&&z(t);return{c(){r&&r.c(),o=a(),this.c=i},m(t,n){r&&r.m(t,n),e(t,o,n)},p(t,[e]){1&e&&(n=0!=Object.keys(t[0]).length),n?r?r.p(t,e):(r=z(t),r.c(),r.m(o.parentNode,o)):r&&(r.d(1),r=null)},i:i,o:i,d(t){r&&r.d(t),t&&s(o)}}}function O(t,o,n){let e,r,a=j({});m(t,a,(t=>n(0,e=t)));let i=k(a,"groups-component",r);function s(t,o){let n=t([51.505,-.09],3);w(n,o)}c((()=>{}));return[e,r,a,i,s,t=>s(t,e)]}class R extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#groups-img{position:absolute;width:14rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{position:relative;max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>",o(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},O,E,r,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("groups-component",R);export{R as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, c as validate_store, e as component_subscribe, o as onMount, g as globals, f as validate_each_argument, h as empty, n as noop, j as detach_dev, k as element, t as text, l as space, m as add_location, p as attr_dev, q as src_url_equal, r as set_custom_element_data, u as append_dev, w as set_data_dev, x as destroy_each } from './index-42a25c61.js';
import { w as writable } from './index-a1c185ea.js';
import { groups, addMarkersGroups } from '../../../../../../../../../js/groups.js';
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js';
import '../../../../../../../../../js/components/map-component.js';
/* src\groups-component.svelte generated by Svelte v3.52.0 */
const { Object: Object_1 } = globals;
const file = "src\\groups-component.svelte";
function get_each_context(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[6] = list[i];
return child_ctx;
}
// (30:4) {#if Object.keys($content).length!=0}
function create_if_block(ctx) {
let div1;
let div0;
let h1;
let t0_value = /*$content*/ ctx[0].heading + "";
let t0;
let t1;
let img;
let img_src_value;
let t2;
let p0;
let t3_value = /*$content*/ ctx[0].p1 + "";
let t3;
let t4;
let p1;
let t5_value = /*$content*/ ctx[0].p2 + "";
let t5;
let t6;
let h3;
let t7_value = /*$content*/ ctx[0].subheading1 + "";
let t7;
let t8;
let map_component;
let map_component_callback_value;
let t9;
let h4;
let t10_value = /*$content*/ ctx[0].subheading2 + "";
let t10;
let t11;
let each_value = groups;
validate_each_argument(each_value);
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
}
const block = {
c: function create() {
div1 = element("div");
div0 = element("div");
h1 = element("h1");
t0 = text(t0_value);
t1 = space();
img = element("img");
t2 = space();
p0 = element("p");
t3 = text(t3_value);
t4 = space();
p1 = element("p");
t5 = text(t5_value);
t6 = space();
h3 = element("h3");
t7 = text(t7_value);
t8 = space();
map_component = element("map-component");
t9 = space();
h4 = element("h4");
t10 = text(t10_value);
t11 = space();
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].c();
}
add_location(h1, file, 33, 16, 932);
attr_dev(img, "id", "groups-img");
if (!src_url_equal(img.src, img_src_value = "/img/common/groups.svg")) attr_dev(img, "src", img_src_value);
attr_dev(img, "alt", "groups");
add_location(img, file, 34, 16, 977);
add_location(p0, file, 35, 16, 1058);
add_location(p1, file, 36, 16, 1096);
add_location(h3, file, 37, 16, 1134);
set_custom_element_data(map_component, "id", "map");
set_custom_element_data(map_component, "callback", map_component_callback_value = /*func*/ ctx[5]);
add_location(map_component, file, 38, 16, 1183);
add_location(h4, file, 39, 16, 1312);
attr_dev(div0, "id", "text-container");
add_location(div0, file, 32, 12, 889);
attr_dev(div1, "id", "container");
add_location(div1, file, 30, 8, 786);
},
m: function mount(target, anchor) {
insert_dev(target, div1, anchor);
append_dev(div1, div0);
append_dev(div0, h1);
append_dev(h1, t0);
append_dev(div0, t1);
append_dev(div0, img);
append_dev(div0, t2);
append_dev(div0, p0);
append_dev(p0, t3);
append_dev(div0, t4);
append_dev(div0, p1);
append_dev(p1, t5);
append_dev(div0, t6);
append_dev(div0, h3);
append_dev(h3, t7);
append_dev(div0, t8);
append_dev(div0, map_component);
append_dev(div0, t9);
append_dev(div0, h4);
append_dev(h4, t10);
append_dev(div0, t11);
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].m(div0, null);
}
},
p: function update(ctx, dirty) {
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].heading + "")) set_data_dev(t0, t0_value);
if (dirty & /*$content*/ 1 && t3_value !== (t3_value = /*$content*/ ctx[0].p1 + "")) set_data_dev(t3, t3_value);
if (dirty & /*$content*/ 1 && t5_value !== (t5_value = /*$content*/ ctx[0].p2 + "")) set_data_dev(t5, t5_value);
if (dirty & /*$content*/ 1 && t7_value !== (t7_value = /*$content*/ ctx[0].subheading1 + "")) set_data_dev(t7, t7_value);
if (dirty & /*$content*/ 1 && map_component_callback_value !== (map_component_callback_value = /*func*/ ctx[5])) {
set_custom_element_data(map_component, "callback", map_component_callback_value);
}
if (dirty & /*$content*/ 1 && t10_value !== (t10_value = /*$content*/ ctx[0].subheading2 + "")) set_data_dev(t10, t10_value);
if (dirty & /*groups, $content*/ 1) {
each_value = groups;
validate_each_argument(each_value);
let i;
for (i = 0; i < each_value.length; i += 1) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div0, null);
}
}
for (; i < each_blocks.length; i += 1) {
each_blocks[i].d(1);
}
each_blocks.length = each_value.length;
}
},
d: function destroy(detaching) {
if (detaching) detach_dev(div1);
destroy_each(each_blocks, detaching);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_if_block.name,
type: "if",
source: "(30:4) {#if Object.keys($content).length!=0}",
ctx
});
return block;
}
// (41:16) {#each groups as group}
function create_each_block(ctx) {
let div;
let p0;
let b0;
let t0_value = /*$content*/ ctx[0].location + "";
let t0;
let t1;
let t2_value = /*$content*/ ctx[0][/*group*/ ctx[6].location[0]] + "";
let t2;
let t3;
let p1;
let b1;
let t4_value = /*$content*/ ctx[0].members + "";
let t4;
let t5;
let t6_value = /*group*/ ctx[6].members + "";
let t6;
let t7;
let p2;
let b2;
let t8_value = /*$content*/ ctx[0].contact + "";
let t8;
let t9;
let a;
let t10_value = /*$content*/ ctx[0][/*group*/ ctx[6].contact[1]] + "";
let t10;
let t11;
const block = {
c: function create() {
div = element("div");
p0 = element("p");
b0 = element("b");
t0 = text(t0_value);
t1 = text(": ");
t2 = text(t2_value);
t3 = space();
p1 = element("p");
b1 = element("b");
t4 = text(t4_value);
t5 = text(": ");
t6 = text(t6_value);
t7 = space();
p2 = element("p");
b2 = element("b");
t8 = text(t8_value);
t9 = text(": ");
a = element("a");
t10 = text(t10_value);
t11 = space();
add_location(b0, file, 42, 27, 1462);
add_location(p0, file, 42, 24, 1459);
add_location(b1, file, 43, 27, 1552);
add_location(p1, file, 43, 24, 1549);
add_location(b2, file, 44, 27, 1627);
attr_dev(a, "href", /*group*/ ctx[6].contact[0]);
attr_dev(a, "target", ";_blank;");
attr_dev(a, "rel", "noreferrer");
add_location(a, file, 44, 54, 1654);
add_location(p2, file, 44, 24, 1624);
attr_dev(div, "class", "location-info");
add_location(div, file, 41, 20, 1406);
},
m: function mount(target, anchor) {
insert_dev(target, div, anchor);
append_dev(div, p0);
append_dev(p0, b0);
append_dev(b0, t0);
append_dev(b0, t1);
append_dev(p0, t2);
append_dev(div, t3);
append_dev(div, p1);
append_dev(p1, b1);
append_dev(b1, t4);
append_dev(b1, t5);
append_dev(p1, t6);
append_dev(div, t7);
append_dev(div, p2);
append_dev(p2, b2);
append_dev(b2, t8);
append_dev(b2, t9);
append_dev(p2, a);
append_dev(a, t10);
append_dev(div, t11);
},
p: function update(ctx, dirty) {
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].location + "")) set_data_dev(t0, t0_value);
if (dirty & /*$content*/ 1 && t2_value !== (t2_value = /*$content*/ ctx[0][/*group*/ ctx[6].location[0]] + "")) set_data_dev(t2, t2_value);
if (dirty & /*$content*/ 1 && t4_value !== (t4_value = /*$content*/ ctx[0].members + "")) set_data_dev(t4, t4_value);
if (dirty & /*$content*/ 1 && t8_value !== (t8_value = /*$content*/ ctx[0].contact + "")) set_data_dev(t8, t8_value);
if (dirty & /*$content*/ 1 && t10_value !== (t10_value = /*$content*/ ctx[0][/*group*/ ctx[6].contact[1]] + "")) set_data_dev(t10, t10_value);
},
d: function destroy(detaching) {
if (detaching) detach_dev(div);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_each_block.name,
type: "each",
source: "(41:16) {#each groups as group}",
ctx
});
return block;
}
function create_fragment(ctx) {
let show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
let if_block_anchor;
let if_block = show_if && create_if_block(ctx);
const block = {
c: function create() {
if (if_block) if_block.c();
if_block_anchor = empty();
this.c = noop;
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
if (if_block) if_block.m(target, anchor);
insert_dev(target, if_block_anchor, anchor);
},
p: function update(ctx, [dirty]) {
if (dirty & /*$content*/ 1) show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
if (show_if) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
if_block = create_if_block(ctx);
if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
},
i: noop,
o: noop,
d: function destroy(detaching) {
if (if_block) if_block.d(detaching);
if (detaching) detach_dev(if_block_anchor);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let $content;
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('groups-component', slots, []);
let loaded;
let content = writable({});
validate_store(content, 'content');
component_subscribe($$self, content, value => $$invalidate(0, $content = value));
let locale = loadLocaleContent(content, "groups-component", loaded);
function mapCallbackGroups(createMap, content) {
let map = createMap([51.505, -0.09], 3);
addMarkersGroups(map, content);
}
onMount(() => {
});
const writable_props = [];
Object_1.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<groups-component> was created with unknown prop '${key}'`);
});
const func = createMap => mapCallbackGroups(createMap, $content);
$$self.$capture_state = () => ({
onMount,
writable,
groups,
addMarkersGroups,
loadLocaleContent,
loaded,
content,
locale,
mapCallbackGroups,
$content
});
$$self.$inject_state = $$props => {
if ('loaded' in $$props) $$invalidate(1, loaded = $$props.loaded);
if ('content' in $$props) $$invalidate(2, content = $$props.content);
if ('locale' in $$props) $$invalidate(3, locale = $$props.locale);
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [$content, loaded, content, locale, mapCallbackGroups, func];
}
class Groups_component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#groups-img{position:absolute;width:14rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{position:relative;max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{},
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
}
}
}
customElements.define("groups-component", Groups_component);
export { Groups_component as default };

File diff suppressed because one or more lines are too long

View File

@ -1,364 +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,v as h,l as v,m as f,w as x}from"./index-4348483d.js";import{loadLocaleContent as w}from"../../../../../../../../../js/libraries/serverTools.js";import{w as T}from"./index-71440b21.js";function b(i){let t,o,r,s,n,a,c,x,w,T,b,y,j,k,z,E,H,L,M,O,R,N,S,q,A,B,C,D,F,G,I,J,K,P,Q,U,V,W=i[2].top+"",X=i[2].groupsTitle+"",Y=i[2].groupsText+"",Z=i[2].communitiesTitle+"",$=i[2].communitiesText+"",_=i[2].cooperativesTitle+"",ii=i[2].cooperativesText+"";return{c(){t=g("div"),o=g("picture"),o.innerHTML='<source srcset="/img/crowd.webp"/> \n <source srcset="/img/crowd.png"/> \n <img id="crowd" alt="crowd"/>',r=d(),s=g("div"),n=g("p"),a=p(W),c=d(),x=g("div"),w=g("div"),T=g("h2"),b=p(X),y=d(),j=g("img"),z=d(),E=g("p"),H=p(Y),L=d(),M=g("div"),O=g("h2"),R=p(Z),N=d(),S=g("img"),A=d(),B=g("p"),C=p($),D=d(),F=g("div"),G=g("h2"),I=p(_),J=d(),K=g("img"),Q=d(),U=g("p"),V=p(ii),l(j,"id","groups-img"),u(j.src,k="/img/common/groups.svg")||l(j,"src","/img/common/groups.svg"),l(j,"alt","groups"),l(S,"id","communities-img"),u(S.src,q="/img/common/communities.svg")||l(S,"src","/img/common/communities.svg"),l(S,"alt","communities"),l(K,"id","coops-img"),u(K.src,P="/img/common/coops.svg")||l(K,"src","/img/common/coops.svg"),l(K,"alt","coops"),l(x,"id","container-grid"),h(x,"--grid-width",i[1]),l(s,"id","text-container"),l(t,"id","container")},m(m,g){e(m,t,g),v(t,o),v(t,r),v(t,s),v(s,n),v(n,a),v(s,c),v(s,x),v(x,w),v(w,T),v(T,b),v(w,y),v(w,j),v(w,z),v(w,E),v(E,H),v(x,L),v(x,M),v(M,O),v(O,R),v(M,N),v(M,S),v(M,A),v(M,B),v(B,C),v(x,D),v(x,F),v(F,G),v(G,I),v(F,J),v(F,K),v(F,Q),v(F,U),v(U,V),i[5](x)},p(i,t){4&t&&W!==(W=i[2].top+"")&&f(a,W),4&t&&X!==(X=i[2].groupsTitle+"")&&f(b,X),4&t&&Y!==(Y=i[2].groupsText+"")&&f(H,Y),4&t&&Z!==(Z=i[2].communitiesTitle+"")&&f(R,Z),4&t&&$!==($=i[2].communitiesText+"")&&f(C,$),4&t&&_!==(_=i[2].cooperativesTitle+"")&&f(I,_),4&t&&ii!==(ii=i[2].cooperativesText+"")&&f(V,ii),2&t&&h(x,"--grid-width",i[1])},d(o){o&&m(t),i[5](null)}}}function y(i){let t,o=0!=Object.keys(i[2]).length,r=o&&b(i);return{c(){r&&r.c(),t=s(),this.c=n},m(i,o){r&&r.m(i,o),e(i,t,o)},p(i,[e]){4&e&&(o=0!=Object.keys(i[2]).length),o?r?r.p(i,e):(r=b(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:n,o:n,d(i){r&&r.d(i),i&&m(t)}}}function j(i,t,o){let e,r,s,n,m=T({});function g(i){o(1,s="ru"==i?"1.2fr 1.05fr 1fr":"1.2fr 1.1fr 1fr")}return a(i,m,(i=>o(2,e=i))),g(w(m,"landing-component",n,g)),c((()=>{})),[r,s,e,n,m,function(i){x[i?"unshift":"push"]((()=>{r=i,o(0,r)}))}]}class k extends i{constructor(i){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#container-grid>div>h2{text-align:center}#groups-img,#communities-img,#coops-img{position:absolute;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;height:8rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}#crowd{width:100%;margin-bottom:2rem}#container{margin:auto;max-width:1000px;margin-top:2rem;margin-bottom:5rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}#container-grid{display:grid;grid-template-columns:var(--grid-width);grid-gap:4rem;margin-top:2rem}#container-grid>div{position:relative}#container-grid>div>p{position:relative;margin-top:5rem;z-index:2}@media only screen and (max-width: 1060px){#container-grid{display:grid;grid-template-columns:1fr;grid-gap:2rem}}</style>",t(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},j,y,r,{},null),i&&i.target&&e(i.target,this,i.anchor)}}customElements.define("landing-component",k);export{k as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, c as validate_store, e as component_subscribe, o as onMount, g as globals, h as empty, n as noop, j as detach_dev, C as binding_callbacks, k as element, l as space, t as text, p as attr_dev, m as add_location, q as src_url_equal, D as set_style, u as append_dev, w as set_data_dev } from './index-42a25c61.js';
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js';
import { w as writable } from './index-a1c185ea.js';
/* src\landing-component.svelte generated by Svelte v3.52.0 */
const { Object: Object_1 } = globals;
const file = "src\\landing-component.svelte";
// (36:4) {#if Object.keys($content).length!=0}
function create_if_block(ctx) {
let div5;
let picture;
let source0;
let t0;
let source1;
let t1;
let img0;
let t2;
let div4;
let p0;
let t3_value = /*$content*/ ctx[2].top + "";
let t3;
let t4;
let div3;
let div0;
let h20;
let t5_value = /*$content*/ ctx[2].groupsTitle + "";
let t5;
let t6;
let img1;
let img1_src_value;
let t7;
let p1;
let t8_value = /*$content*/ ctx[2].groupsText + "";
let t8;
let t9;
let div1;
let h21;
let t10_value = /*$content*/ ctx[2].communitiesTitle + "";
let t10;
let t11;
let img2;
let img2_src_value;
let t12;
let p2;
let t13_value = /*$content*/ ctx[2].communitiesText + "";
let t13;
let t14;
let div2;
let h22;
let t15_value = /*$content*/ ctx[2].cooperativesTitle + "";
let t15;
let t16;
let img3;
let img3_src_value;
let t17;
let p3;
let t18_value = /*$content*/ ctx[2].cooperativesText + "";
let t18;
const block = {
c: function create() {
div5 = element("div");
picture = element("picture");
source0 = element("source");
t0 = space();
source1 = element("source");
t1 = space();
img0 = element("img");
t2 = space();
div4 = element("div");
p0 = element("p");
t3 = text(t3_value);
t4 = space();
div3 = element("div");
div0 = element("div");
h20 = element("h2");
t5 = text(t5_value);
t6 = space();
img1 = element("img");
t7 = space();
p1 = element("p");
t8 = text(t8_value);
t9 = space();
div1 = element("div");
h21 = element("h2");
t10 = text(t10_value);
t11 = space();
img2 = element("img");
t12 = space();
p2 = element("p");
t13 = text(t13_value);
t14 = space();
div2 = element("div");
h22 = element("h2");
t15 = text(t15_value);
t16 = space();
img3 = element("img");
t17 = space();
p3 = element("p");
t18 = text(t18_value);
attr_dev(source0, "srcset", "/img/crowd.webp");
add_location(source0, file, 38, 16, 855);
attr_dev(source1, "srcset", "/img/crowd.png");
add_location(source1, file, 39, 16, 906);
attr_dev(img0, "id", "crowd");
attr_dev(img0, "alt", "crowd");
add_location(img0, file, 40, 16, 956);
add_location(picture, file, 37, 12, 828);
add_location(p0, file, 44, 16, 1079);
add_location(h20, file, 47, 24, 1247);
attr_dev(img1, "id", "groups-img");
if (!src_url_equal(img1.src, img1_src_value = "/img/common/groups.svg")) attr_dev(img1, "src", img1_src_value);
attr_dev(img1, "alt", "groups");
add_location(img1, file, 48, 24, 1304);
add_location(p1, file, 49, 24, 1393);
add_location(div0, file, 46, 20, 1216);
add_location(h21, file, 52, 24, 1502);
attr_dev(img2, "id", "communities-img");
if (!src_url_equal(img2.src, img2_src_value = "/img/common/communities.svg")) attr_dev(img2, "src", img2_src_value);
attr_dev(img2, "alt", "communities");
add_location(img2, file, 53, 24, 1564);
add_location(p2, file, 54, 24, 1668);
add_location(div1, file, 51, 20, 1471);
add_location(h22, file, 57, 24, 1782);
attr_dev(img3, "id", "coops-img");
if (!src_url_equal(img3.src, img3_src_value = "/img/common/coops.svg")) attr_dev(img3, "src", img3_src_value);
attr_dev(img3, "alt", "coops");
add_location(img3, file, 58, 24, 1845);
add_location(p3, file, 59, 24, 1931);
add_location(div2, file, 56, 20, 1751);
attr_dev(div3, "id", "container-grid");
set_style(div3, "--grid-width", /*gridWidth*/ ctx[1]);
add_location(div3, file, 45, 16, 1118);
attr_dev(div4, "id", "text-container");
add_location(div4, file, 43, 12, 1036);
attr_dev(div5, "id", "container");
add_location(div5, file, 36, 8, 794);
},
m: function mount(target, anchor) {
insert_dev(target, div5, anchor);
append_dev(div5, picture);
append_dev(picture, source0);
append_dev(picture, t0);
append_dev(picture, source1);
append_dev(picture, t1);
append_dev(picture, img0);
append_dev(div5, t2);
append_dev(div5, div4);
append_dev(div4, p0);
append_dev(p0, t3);
append_dev(div4, t4);
append_dev(div4, div3);
append_dev(div3, div0);
append_dev(div0, h20);
append_dev(h20, t5);
append_dev(div0, t6);
append_dev(div0, img1);
append_dev(div0, t7);
append_dev(div0, p1);
append_dev(p1, t8);
append_dev(div3, t9);
append_dev(div3, div1);
append_dev(div1, h21);
append_dev(h21, t10);
append_dev(div1, t11);
append_dev(div1, img2);
append_dev(div1, t12);
append_dev(div1, p2);
append_dev(p2, t13);
append_dev(div3, t14);
append_dev(div3, div2);
append_dev(div2, h22);
append_dev(h22, t15);
append_dev(div2, t16);
append_dev(div2, img3);
append_dev(div2, t17);
append_dev(div2, p3);
append_dev(p3, t18);
/*div3_binding*/ ctx[5](div3);
},
p: function update(ctx, dirty) {
if (dirty & /*$content*/ 4 && t3_value !== (t3_value = /*$content*/ ctx[2].top + "")) set_data_dev(t3, t3_value);
if (dirty & /*$content*/ 4 && t5_value !== (t5_value = /*$content*/ ctx[2].groupsTitle + "")) set_data_dev(t5, t5_value);
if (dirty & /*$content*/ 4 && t8_value !== (t8_value = /*$content*/ ctx[2].groupsText + "")) set_data_dev(t8, t8_value);
if (dirty & /*$content*/ 4 && t10_value !== (t10_value = /*$content*/ ctx[2].communitiesTitle + "")) set_data_dev(t10, t10_value);
if (dirty & /*$content*/ 4 && t13_value !== (t13_value = /*$content*/ ctx[2].communitiesText + "")) set_data_dev(t13, t13_value);
if (dirty & /*$content*/ 4 && t15_value !== (t15_value = /*$content*/ ctx[2].cooperativesTitle + "")) set_data_dev(t15, t15_value);
if (dirty & /*$content*/ 4 && t18_value !== (t18_value = /*$content*/ ctx[2].cooperativesText + "")) set_data_dev(t18, t18_value);
if (dirty & /*gridWidth*/ 2) {
set_style(div3, "--grid-width", /*gridWidth*/ ctx[1]);
}
},
d: function destroy(detaching) {
if (detaching) detach_dev(div5);
/*div3_binding*/ ctx[5](null);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_if_block.name,
type: "if",
source: "(36:4) {#if Object.keys($content).length!=0}",
ctx
});
return block;
}
function create_fragment(ctx) {
let show_if = Object.keys(/*$content*/ ctx[2]).length != 0;
let if_block_anchor;
let if_block = show_if && create_if_block(ctx);
const block = {
c: function create() {
if (if_block) if_block.c();
if_block_anchor = empty();
this.c = noop;
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
if (if_block) if_block.m(target, anchor);
insert_dev(target, if_block_anchor, anchor);
},
p: function update(ctx, [dirty]) {
if (dirty & /*$content*/ 4) show_if = Object.keys(/*$content*/ ctx[2]).length != 0;
if (show_if) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
if_block = create_if_block(ctx);
if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
},
i: noop,
o: noop,
d: function destroy(detaching) {
if (if_block) if_block.d(detaching);
if (detaching) detach_dev(if_block_anchor);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let $content;
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('landing-component', slots, []);
let grid;
let gridWidth;
let loaded;
let content = writable({});
validate_store(content, 'content');
component_subscribe($$self, content, value => $$invalidate(2, $content = value));
function changeWidth(locale) {
if (locale == "ru") {
$$invalidate(1, gridWidth = "1.2fr 1.05fr 1fr");
} else {
$$invalidate(1, gridWidth = "1.2fr 1.1fr 1fr");
}
}
let locale = loadLocaleContent(content, "landing-component", loaded, changeWidth);
changeWidth(locale);
onMount(() => {
});
const writable_props = [];
Object_1.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<landing-component> was created with unknown prop '${key}'`);
});
function div3_binding($$value) {
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
grid = $$value;
$$invalidate(0, grid);
});
}
$$self.$capture_state = () => ({
onMount,
loadLocaleContent,
writable,
grid,
gridWidth,
loaded,
content,
changeWidth,
locale,
$content
});
$$self.$inject_state = $$props => {
if ('grid' in $$props) $$invalidate(0, grid = $$props.grid);
if ('gridWidth' in $$props) $$invalidate(1, gridWidth = $$props.gridWidth);
if ('loaded' in $$props) $$invalidate(3, loaded = $$props.loaded);
if ('content' in $$props) $$invalidate(4, content = $$props.content);
if ('locale' in $$props) locale = $$props.locale;
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [grid, gridWidth, $content, loaded, content, div3_binding];
}
class Landing_component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#container-grid>div>h2{text-align:center}#groups-img,#communities-img,#coops-img{position:absolute;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;height:8rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}#crowd{width:100%;margin-bottom:2rem}#container{margin:auto;max-width:1000px;margin-top:2rem;margin-bottom:5rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}#container-grid{display:grid;grid-template-columns:var(--grid-width);grid-gap:4rem;margin-top:2rem}#container-grid>div{position:relative}#container-grid>div>p{position:relative;margin-top:5rem;z-index:2}@media only screen and (max-width: 1060px){#container-grid{display:grid;grid-template-columns:1fr;grid-gap:2rem}}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{},
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
}
}
}
customElements.define("landing-component", Landing_component);
export { Landing_component as default };

View File

@ -1,362 +1 @@
import{S as t,i as e,a as s,b as o,u as n,s as r,f as i,n as a,h as l,d as c,p,o as u,g as h,t as d,v as m,l as f,q as g,m as y,w as $}from"./index-4348483d.js";import{pullLegendData as b}from"../../../../../../../../../js/predict/charts.js";function w(t,e,s){const o=t.slice();return o[10]=e[s],o[11]=e,o[12]=s,o}function x(t){let e,s,n,r,a,p,u,$,b=t[10].name+"",w=t[12];const x=()=>t[6](e,w),k=()=>t[6](null,w);function v(){return t[7](t[12])}return{c(){e=i("button"),s=i("div"),n=h(),r=i("span"),a=d(b),p=h(),l(s,"class","marker"),m(s,"background-color",t[10].color)},m(t,i){o(t,e,i),f(e,s),f(e,n),f(e,r),f(r,a),f(e,p),x(),u||($=g(e,"click",v),u=!0)},p(e,o){t=e,1&o&&m(s,"background-color",t[10].color),1&o&&b!==(b=t[10].name+"")&&y(a,b),w!==t[12]&&(k(),w=t[12],x())},d(t){t&&c(e),k(),u=!1,$()}}}function k(t){let e,s=t[0],n=[];for(let e=0;e<s.length;e+=1)n[e]=x(w(t,s,e));return{c(){e=i("div");for(let t=0;t<n.length;t+=1)n[t].c();this.c=a,l(e,"class","legend")},m(t,s){o(t,e,s);for(let t=0;t<n.length;t+=1)n[t].m(e,null)},p(t,[o]){if(7&o){let r;for(s=t[0],r=0;r<s.length;r+=1){const i=w(t,s,r);n[r]?n[r].p(i,o):(n[r]=x(i),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=s.length}},i:a,o:a,d(t){t&&c(e),p(n,t)}}}function v(t,e,s){let o,{option:n=null}=e,{chart:r=null}=e,{data:i={}}=e,a=[],l=[];function c(){if(null==n||null==n||null==r||null==r)setTimeout(c,100);else{s(0,a=b(a,n));for(let t of a)s(3,i[t.name]=!0,i);o=Object.keys(i)}}function p(t){s(3,i[o[t]]=!i[o[t]],i);let e=[],a=n.series.map((t=>t._id)),c=a[t];for(let t=0;t<a.length;t++)a[t]==c&&e.push(t);for(let t of e){let o=n.series[t];o.tooltip.show?(o.lineStyle.opacity=0,o.itemStyle.opacity=0,o.tooltip.show=!1,s(1,l[e[0]].style.opacity=.5,l)):(o.lineStyle.opacity=1,o.itemStyle.opacity=1,o.tooltip.show=!0,s(1,l[e[0]].style.opacity=1,l))}r.setOption(n)}u((()=>{c()}));return t.$$set=t=>{"option"in t&&s(4,n=t.option),"chart"in t&&s(5,r=t.chart),"data"in t&&s(3,i=t.data)},[a,l,p,i,n,r,function(t,e){$[t?"unshift":"push"]((()=>{l[e]=t,s(1,l)}))},t=>p(t)]}class j extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';@import '/css/test-basic.css';button{cursor:pointer}.legend{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:1rem}.legend *{font-family:var(--sans-serif)}.marker{position:relative;display:inline-block;margin-right:0.5rem;top:0.1rem;width:1rem;height:1rem;border-radius:1rem}</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},v,k,r,{option:4,chart:5,data:3},null),t&&(t.target&&o(t.target,this,t.anchor),t.props&&(this.$set(t.props),n()))}static get observedAttributes(){return["option","chart","data"]}get option(){return this.$$.ctx[4]}set option(t){this.$$set({option:t}),n()}get chart(){return this.$$.ctx[5]}set chart(t){this.$$set({chart:t}),n()}get data(){return this.$$.ctx[3]}set data(t){this.$$set({data:t}),n()}}customElements.define("legend-component",j);export{j as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, B as flush, s as safe_not_equal, f as validate_each_argument, d as dispatch_dev, v as validate_slots, o as onMount, g as globals, k as element, n as noop, p as attr_dev, m as add_location, j as detach_dev, x as destroy_each, C as binding_callbacks, l as space, t as text, D as set_style, u as append_dev, y as listen_dev, w as set_data_dev } from './index-42a25c61.js';
import { pullLegendData } from '../../../../../../../../../js/predict/charts.js';
/* src\components\legend-component.svelte generated by Svelte v3.52.0 */
const { Object: Object_1 } = globals;
const file = "src\\components\\legend-component.svelte";
function get_each_context(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[10] = list[i];
child_ctx[11] = list;
child_ctx[12] = i;
return child_ctx;
}
// (69:4) {#each legendData as item, i}
function create_each_block(ctx) {
let button;
let div;
let t0;
let span;
let t1_value = /*item*/ ctx[10].name + "";
let t1;
let t2;
let i = /*i*/ ctx[12];
let mounted;
let dispose;
const assign_button = () => /*button_binding*/ ctx[6](button, i);
const unassign_button = () => /*button_binding*/ ctx[6](null, i);
function click_handler() {
return /*click_handler*/ ctx[7](/*i*/ ctx[12]);
}
const block = {
c: function create() {
button = element("button");
div = element("div");
t0 = space();
span = element("span");
t1 = text(t1_value);
t2 = space();
attr_dev(div, "class", "marker");
set_style(div, "background-color", /*item*/ ctx[10].color);
add_location(div, file, 70, 12, 1892);
add_location(span, file, 71, 12, 1971);
add_location(button, file, 69, 8, 1814);
},
m: function mount(target, anchor) {
insert_dev(target, button, anchor);
append_dev(button, div);
append_dev(button, t0);
append_dev(button, span);
append_dev(span, t1);
append_dev(button, t2);
assign_button();
if (!mounted) {
dispose = listen_dev(button, "click", click_handler, false, false, false);
mounted = true;
}
},
p: function update(new_ctx, dirty) {
ctx = new_ctx;
if (dirty & /*legendData*/ 1) {
set_style(div, "background-color", /*item*/ ctx[10].color);
}
if (dirty & /*legendData*/ 1 && t1_value !== (t1_value = /*item*/ ctx[10].name + "")) set_data_dev(t1, t1_value);
if (i !== /*i*/ ctx[12]) {
unassign_button();
i = /*i*/ ctx[12];
assign_button();
}
},
d: function destroy(detaching) {
if (detaching) detach_dev(button);
unassign_button();
mounted = false;
dispose();
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_each_block.name,
type: "each",
source: "(69:4) {#each legendData as item, i}",
ctx
});
return block;
}
function create_fragment(ctx) {
let div;
let each_value = /*legendData*/ ctx[0];
validate_each_argument(each_value);
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
}
const block = {
c: function create() {
div = element("div");
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].c();
}
this.c = noop;
attr_dev(div, "class", "legend");
add_location(div, file, 67, 0, 1749);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
insert_dev(target, div, anchor);
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].m(div, null);
}
},
p: function update(ctx, [dirty]) {
if (dirty & /*buttons, toggleSeries, legendData*/ 7) {
each_value = /*legendData*/ ctx[0];
validate_each_argument(each_value);
let i;
for (i = 0; i < each_value.length; i += 1) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div, null);
}
}
for (; i < each_blocks.length; i += 1) {
each_blocks[i].d(1);
}
each_blocks.length = each_value.length;
}
},
i: noop,
o: noop,
d: function destroy(detaching) {
if (detaching) detach_dev(div);
destroy_each(each_blocks, detaching);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('legend-component', slots, []);
let { option = null } = $$props;
let { chart = null } = $$props;
let { data = {} } = $$props;
// Main code
let legendData = [];
let buttons = [];
let dataKeys;
function init() {
if (option == null || option == undefined || chart == null || chart == undefined) {
setTimeout(init, 100);
} else {
$$invalidate(0, legendData = pullLegendData(legendData, option));
for (let obj of legendData) {
$$invalidate(3, data[obj.name] = true, data);
}
dataKeys = Object.keys(data);
}
}
function toggleSeries(i) {
$$invalidate(3, data[dataKeys[i]] = !data[dataKeys[i]], data);
let inds = [];
let ids = option.series.map(x => x._id);
let id = ids[i];
for (let j = 0; j < ids.length; j++) {
if (ids[j] == id) {
inds.push(j);
}
}
for (let i of inds) {
let series = option.series[i];
if (!series.tooltip.show) {
series.lineStyle.opacity = 1;
series.itemStyle.opacity = 1;
series.tooltip.show = true;
$$invalidate(1, buttons[inds[0]].style.opacity = 1, buttons);
} else {
series.lineStyle.opacity = 0;
series.itemStyle.opacity = 0;
series.tooltip.show = false;
$$invalidate(1, buttons[inds[0]].style.opacity = 0.5, buttons);
}
}
chart.setOption(option);
}
onMount(() => {
init();
});
const writable_props = ['option', 'chart', 'data'];
Object_1.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<legend-component> was created with unknown prop '${key}'`);
});
function button_binding($$value, i) {
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
buttons[i] = $$value;
$$invalidate(1, buttons);
});
}
const click_handler = i => toggleSeries(i);
$$self.$$set = $$props => {
if ('option' in $$props) $$invalidate(4, option = $$props.option);
if ('chart' in $$props) $$invalidate(5, chart = $$props.chart);
if ('data' in $$props) $$invalidate(3, data = $$props.data);
};
$$self.$capture_state = () => ({
onMount,
pullLegendData,
option,
chart,
data,
legendData,
buttons,
dataKeys,
init,
toggleSeries
});
$$self.$inject_state = $$props => {
if ('option' in $$props) $$invalidate(4, option = $$props.option);
if ('chart' in $$props) $$invalidate(5, chart = $$props.chart);
if ('data' in $$props) $$invalidate(3, data = $$props.data);
if ('legendData' in $$props) $$invalidate(0, legendData = $$props.legendData);
if ('buttons' in $$props) $$invalidate(1, buttons = $$props.buttons);
if ('dataKeys' in $$props) dataKeys = $$props.dataKeys;
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [
legendData,
buttons,
toggleSeries,
data,
option,
chart,
button_binding,
click_handler
];
}
class Legend_component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';@import '/css/test-basic.css';button{cursor:pointer}.legend{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:1rem}.legend *{font-family:var(--sans-serif)}.marker{position:relative;display:inline-block;margin-right:0.5rem;top:0.1rem;width:1rem;height:1rem;border-radius:1rem}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{ option: 4, chart: 5, data: 3 },
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
if (options.props) {
this.$set(options.props);
flush();
}
}
}
static get observedAttributes() {
return ["option", "chart", "data"];
}
get option() {
return this.$$.ctx[4];
}
set option(option) {
this.$$set({ option });
flush();
}
get chart() {
return this.$$.ctx[5];
}
set chart(chart) {
this.$$set({ chart });
flush();
}
get data() {
return this.$$.ctx[3];
}
set data(data) {
this.$$set({ data });
flush();
}
}
customElements.define("legend-component", Legend_component);
export { Legend_component as default };

View File

@ -1,115 +1 @@
import{S as t,i as s,a as e,b as n,s as o,f as a,n as i,h as d,v as r,d as u,o as c,w as l}from"./index-4348483d.js";function h(t){let s;return{c(){s=a("div"),this.c=i,d(s,"id","loadscreen"),r(s,"width","100%"),r(s,"height","100%"),r(s,"background","white"),r(s,"position","absolute"),r(s,"z-index","100000")},m(e,o){n(e,s,o),t[1](s)},p:i,i:i,o:i,d(e){e&&u(s),t[1](null)}}}function p(t,s,e){let n;return c((()=>{window.addEventListener("load",(function(){e(0,n.parentNode.host.style.display="none",n)}))})),[n,function(t){l[t?"unshift":"push"]((()=>{n=t,e(0,n)}))}]}class f extends t{constructor(t){super(),s(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},p,h,o,{},null),t&&t.target&&n(t.target,this,t.anchor)}}customElements.define("loadscreen-component",f);export{f as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, o as onMount, k as element, n as noop, p as attr_dev, D as set_style, m as add_location, j as detach_dev, C as binding_callbacks } from './index-42a25c61.js';
/* src\components\loadscreen-component.svelte generated by Svelte v3.52.0 */
const file = "src\\components\\loadscreen-component.svelte";
function create_fragment(ctx) {
let div;
const block = {
c: function create() {
div = element("div");
this.c = noop;
attr_dev(div, "id", "loadscreen");
set_style(div, "width", "100%");
set_style(div, "height", "100%");
set_style(div, "background", "white");
set_style(div, "position", "absolute");
set_style(div, "z-index", "100000");
add_location(div, file, 20, 0, 366);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
insert_dev(target, div, anchor);
/*div_binding*/ ctx[1](div);
},
p: noop,
i: noop,
o: noop,
d: function destroy(detaching) {
if (detaching) detach_dev(div);
/*div_binding*/ ctx[1](null);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('loadscreen-component', slots, []);
let loadscreen;
onMount(() => {
window.addEventListener('load', function () {
$$invalidate(0, loadscreen.parentNode.host.style.display = "none", loadscreen);
});
});
const writable_props = [];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<loadscreen-component> was created with unknown prop '${key}'`);
});
function div_binding($$value) {
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
loadscreen = $$value;
$$invalidate(0, loadscreen);
});
}
$$self.$capture_state = () => ({ onMount, loadscreen });
$$self.$inject_state = $$props => {
if ('loadscreen' in $$props) $$invalidate(0, loadscreen = $$props.loadscreen);
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [loadscreen, div_binding];
}
class Loadscreen_component extends SvelteElement {
constructor(options) {
super();
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{},
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
}
}
}
customElements.define("loadscreen-component", Loadscreen_component);
export { Loadscreen_component as default };

File diff suppressed because one or more lines are too long

View File

@ -1,156 +1 @@
import{S as t,i as a,a as e,b as s,u as o,s as r,f as i,n,h as c,d as l,o as p,w as m}from"./index-4348483d.js";function h(t){let a;return{c(){a=i("div"),this.c=n,c(a,"id","map")},m(e,o){s(e,a,o),t[2](a)},p:n,i:n,o:n,d(e){e&&l(a),t[2](null)}}}function u(t,a,e){let s,{callback:o=null}=a;function r(t,a){let e=L.map(s,{center:t,zoom:a});return L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',minNativeZoom:2,minZoom:2,maxNativeZoom:16,maxZoom:16}).addTo(e),e}return p((()=>{o(r)})),t.$$set=t=>{"callback"in t&&e(1,o=t.callback)},[s,o,function(t){m[t?"unshift":"push"]((()=>{s=t,e(0,s)}))}]}class d extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.css';#map{height:var(--height);width:var(--width,100%);margin-bottom:var(--margin-bottom,0)\n }</style>",a(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},u,h,r,{callback:1},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),o()))}static get observedAttributes(){return["callback"]}get callback(){return this.$$.ctx[1]}set callback(t){this.$$set({callback:t}),o()}}customElements.define("map-component",d);export{d as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, B as flush, s as safe_not_equal, d as dispatch_dev, v as validate_slots, o as onMount, k as element, n as noop, p as attr_dev, m as add_location, j as detach_dev, C as binding_callbacks } from './index-42a25c61.js';
/* src\components\map-component.svelte generated by Svelte v3.52.0 */
const file = "src\\components\\map-component.svelte";
function create_fragment(ctx) {
let div;
const block = {
c: function create() {
div = element("div");
this.c = noop;
attr_dev(div, "id", "map");
add_location(div, file, 34, 0, 836);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
insert_dev(target, div, anchor);
/*div_binding*/ ctx[2](div);
},
p: noop,
i: noop,
o: noop,
d: function destroy(detaching) {
if (detaching) detach_dev(div);
/*div_binding*/ ctx[2](null);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('map-component', slots, []);
let { callback = null } = $$props;
// Main code
let mapContainer;
function createMap(center, zoom) {
let map = L.map(mapContainer, { center, zoom });
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
minNativeZoom: 2,
minZoom: 2,
maxNativeZoom: 16,
maxZoom: 16
}).addTo(map);
return map;
}
onMount(() => {
callback(createMap);
});
const writable_props = ['callback'];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<map-component> was created with unknown prop '${key}'`);
});
function div_binding($$value) {
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
mapContainer = $$value;
$$invalidate(0, mapContainer);
});
}
$$self.$$set = $$props => {
if ('callback' in $$props) $$invalidate(1, callback = $$props.callback);
};
$$self.$capture_state = () => ({
onMount,
callback,
mapContainer,
createMap
});
$$self.$inject_state = $$props => {
if ('callback' in $$props) $$invalidate(1, callback = $$props.callback);
if ('mapContainer' in $$props) $$invalidate(0, mapContainer = $$props.mapContainer);
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [mapContainer, callback, div_binding];
}
class Map_component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.css';#map{height:var(--height);width:var(--width,100%);margin-bottom:var(--margin-bottom,0)
}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{ callback: 1 },
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
if (options.props) {
this.$set(options.props);
flush();
}
}
}
static get observedAttributes() {
return ["callback"];
}
get callback() {
return this.$$.ctx[1];
}
set callback(callback) {
this.$$set({ callback });
flush();
}
}
customElements.define("map-component", Map_component);
export { Map_component as default };

File diff suppressed because one or more lines are too long

View File

@ -1,304 +1 @@
import{S as i,i as e,a,b as t,s as n,f as r,g as s,n as d,h as o,l,d as m,x as p,o as h,w as g}from"./index-4348483d.js";import{debounce as c}from"../../../../../../../../../js/libraries/miscTools.js";function f(i){let e,a,n,p,h,g,c,f,u,b;return{c(){e=r("div"),a=r("div"),n=r("div"),p=r("div"),p.innerHTML='<slot name="sidebar-left"></slot>',h=s(),g=r("div"),g.innerHTML='<slot name="sidebar-left2"></slot>',c=s(),f=r("div"),f.innerHTML='<slot name="sidebar-right"></slot>',u=s(),b=r("div"),b.innerHTML='<slot name="main" id="main-slot"></slot>',this.c=d,o(p,"id","sidebar-left"),o(p,"class","pane"),o(g,"id","sidebar-left2"),o(g,"class","pane"),o(n,"id","sidebars-left"),o(n,"class","sidebar"),o(f,"id","sidebar-right"),o(f,"class","pane sidebar"),o(b,"id","main-pane"),o(b,"class","pane"),o(a,"class","pane-container"),o(e,"id","root"),o(e,"class","pane-centering")},m(r,s){t(r,e,s),l(e,a),l(a,n),l(n,p),i[5](p),l(n,h),l(n,g),i[6](g),l(a,c),l(a,f),i[7](f),l(a,u),l(a,b),i[8](b),i[9](e)},p:d,i:d,o:d,d(a){a&&m(e),i[5](null),i[6](null),i[7](null),i[8](null),i[9](null)}}}function u(i,e,a){let t,n,r,s,d,o=null!=p("alignerParent")?p("alignerParent").switchView:void 0,l=!1,m=!1,f=!1;function u(){if(null!=t.parentNode){let i=t.parentNode.host.childNodes;if(0==i.length)setTimeout(u,50);else{let e=!1,n=t.parentNode.innerHTML;for(let a of i)"sidebar-left"!=a.slot||l?"sidebar-left2"!=a.slot||m?"sidebar-right"!=a.slot||f||(n=n.replace("#sidebar-right{display:none;","#sidebar-right{"),f=!0,e=!0):(n=n.replace("#sidebar-left2{display:none}",""),m=!0,e=!0):(n=n.replace("#sidebar-left{display:none}",""),l=!0,e=!0);null!=o&&(n=n.replace("1880px",o),e=!0),e&&a(0,t.parentNode.innerHTML=n,t)}}}return window.addEventListener("resize",c(u,100)),h((()=>{u()})),[t,n,r,s,d,function(i){g[i?"unshift":"push"]((()=>{r=i,a(2,r)}))},function(i){g[i?"unshift":"push"]((()=>{s=i,a(3,s)}))},function(i){g[i?"unshift":"push"]((()=>{d=i,a(4,d)}))},function(i){g[i?"unshift":"push"]((()=>{n=i,a(1,n)}))},function(i){g[i?"unshift":"push"]((()=>{t=i,a(0,t)}))}]}class b extends i{constructor(i){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';.pane-container{display:block;margin-left:var(--total-margin-left,0rem)}#root{min-height:var(--min-height,auto)}#main-pane{position:relative;padding-left:var(--padding-left,0rem);padding-right:var(--padding-right,0rem);padding-top:var(--padding-top,0rem);padding-bottom:var(--padding-bottom,0rem);text-align:justify;background:var(--background,white);box-shadow:var(--box-shadow,0 0 0.314rem rgb(187, 187, 187));margin:auto;height:min-content;max-width:var(--width-main,66rem);width:var(--width-main,66rem);z-index:1;overflow-x:var(--overflow-x,hidden)}.sidebar{position:absolute}#sidebars-left{display:flex;flex-direction:column;gap:1rem;margin-left:calc(-1*var(--width-left,22.5rem) - 1rem - 4rem);width:calc(var(--width-left,22.5rem) + 4rem)}#sidebar-left,#sidebar-left2{position:relative;background-color:white;padding:2rem 2rem}#sidebar-left{display:none}#sidebar-left2{display:none}#sidebar-right{display:none;margin-left:calc(var(--width-main,66rem) + 1rem);width:var(--width-right,auto);background-color:white;padding:2rem 2rem}@media only screen and (max-width: 1880px){#main-pane{max-width:initial;width:100%;max-width:var(--width-main,66rem);padding-left:var(--padding-left-mobile,1.8rem);padding-right:var(--padding-right-mobile,1.8rem);padding-top:var(--padding-top-mobile,1.8rem);padding-bottom:var(--padding-bottom-mobile,1.8rem)}#sidebars-left,#sidebar-right{position:relative;margin:auto;margin-top:1rem;margin-bottom:1rem;max-width:var(--width-main,66rem);width:100%}.pane-container{width:95%;justify-items:center;grid-auto-flow:row;margin-left:0}}</style>",e(this,{target:this.shadowRoot,props:a(this.attributes),customElement:!0},u,f,n,{},null),i&&i.target&&t(i.target,this,i.anchor)}}customElements.define("pane-aligner",b);export{b as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, E as getContext, o as onMount, F as setContext, k as element, l as space, n as noop, p as attr_dev, m as add_location, u as append_dev, j as detach_dev, C as binding_callbacks } from './index-42a25c61.js';
import { debounce } from '../../../../../../../../../js/libraries/miscTools.js';
/* src\components\pane-aligner.svelte generated by Svelte v3.52.0 */
const file = "src\\components\\pane-aligner.svelte";
function create_fragment(ctx) {
let div6;
let div5;
let div2;
let div0;
let slot0;
let t0;
let div1;
let slot1;
let t1;
let div3;
let slot2;
let t2;
let div4;
let slot3;
const block = {
c: function create() {
div6 = element("div");
div5 = element("div");
div2 = element("div");
div0 = element("div");
slot0 = element("slot");
t0 = space();
div1 = element("div");
slot1 = element("slot");
t1 = space();
div3 = element("div");
slot2 = element("slot");
t2 = space();
div4 = element("div");
slot3 = element("slot");
this.c = noop;
attr_dev(slot0, "name", "sidebar-left");
add_location(slot0, file, 74, 16, 2567);
attr_dev(div0, "id", "sidebar-left");
attr_dev(div0, "class", "pane");
add_location(div0, file, 73, 12, 2489);
attr_dev(slot1, "name", "sidebar-left2");
add_location(slot1, file, 77, 16, 2714);
attr_dev(div1, "id", "sidebar-left2");
attr_dev(div1, "class", "pane");
add_location(div1, file, 76, 12, 2634);
attr_dev(div2, "id", "sidebars-left");
attr_dev(div2, "class", "sidebar");
add_location(div2, file, 72, 8, 2435);
attr_dev(slot2, "name", "sidebar-right");
add_location(slot2, file, 81, 12, 2879);
attr_dev(div3, "id", "sidebar-right");
attr_dev(div3, "class", "pane sidebar");
add_location(div3, file, 80, 8, 2794);
attr_dev(slot3, "name", "main");
attr_dev(slot3, "id", "main-slot");
add_location(slot3, file, 84, 12, 3007);
attr_dev(div4, "id", "main-pane");
attr_dev(div4, "class", "pane");
add_location(div4, file, 83, 8, 2939);
attr_dev(div5, "class", "pane-container");
add_location(div5, file, 71, 4, 2397);
attr_dev(div6, "id", "root");
attr_dev(div6, "class", "pane-centering");
add_location(div6, file, 70, 0, 2336);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
insert_dev(target, div6, anchor);
append_dev(div6, div5);
append_dev(div5, div2);
append_dev(div2, div0);
append_dev(div0, slot0);
/*div0_binding*/ ctx[5](div0);
append_dev(div2, t0);
append_dev(div2, div1);
append_dev(div1, slot1);
/*div1_binding*/ ctx[6](div1);
append_dev(div5, t1);
append_dev(div5, div3);
append_dev(div3, slot2);
/*div3_binding*/ ctx[7](div3);
append_dev(div5, t2);
append_dev(div5, div4);
append_dev(div4, slot3);
/*div4_binding*/ ctx[8](div4);
/*div6_binding*/ ctx[9](div6);
},
p: noop,
i: noop,
o: noop,
d: function destroy(detaching) {
if (detaching) detach_dev(div6);
/*div0_binding*/ ctx[5](null);
/*div1_binding*/ ctx[6](null);
/*div3_binding*/ ctx[7](null);
/*div4_binding*/ ctx[8](null);
/*div6_binding*/ ctx[9](null);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('pane-aligner', slots, []);
let root;
let mainPane;
let sidebarLeft;
let sidebarLeft2;
let sidebarRight;
let parentProps = getContext("alignerParent");
let switchView = parentProps != undefined
? getContext("alignerParent").switchView
: undefined;
let leftReplaced = false;
let left2Replaced = false;
let rightReplaced = false;
let switchViewReplaced = false;
function adjustSlotted() {
if (root.parentNode != null) {
let slotted = root.parentNode.host.childNodes;
if (slotted.length == 0) {
setTimeout(adjustSlotted, 50);
} else {
let changed = false;
let html = root.parentNode.innerHTML;
for (let item of slotted) {
if (item.slot == "sidebar-left" && !leftReplaced) {
html = html.replace("#sidebar-left{display:none}", "");
leftReplaced = true;
changed = true;
} else if (item.slot == "sidebar-left2" && !left2Replaced) {
html = html.replace("#sidebar-left2{display:none}", "");
left2Replaced = true;
changed = true;
} else if (item.slot == "sidebar-right" && !rightReplaced) {
html = html.replace("#sidebar-right{display:none;", "#sidebar-right{");
rightReplaced = true;
changed = true;
}
}
if (switchView != undefined && !switchViewReplaced) {
html = html.replace("1880px", switchView);
changed = true;
}
if (changed) {
$$invalidate(0, root.parentNode.innerHTML = html, root);
}
}
}
}
window.addEventListener("resize", debounce(adjustSlotted, 100));
onMount(() => {
adjustSlotted();
});
const writable_props = [];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<pane-aligner> was created with unknown prop '${key}'`);
});
function div0_binding($$value) {
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
sidebarLeft = $$value;
$$invalidate(2, sidebarLeft);
});
}
function div1_binding($$value) {
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
sidebarLeft2 = $$value;
$$invalidate(3, sidebarLeft2);
});
}
function div3_binding($$value) {
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
sidebarRight = $$value;
$$invalidate(4, sidebarRight);
});
}
function div4_binding($$value) {
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
mainPane = $$value;
$$invalidate(1, mainPane);
});
}
function div6_binding($$value) {
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
root = $$value;
$$invalidate(0, root);
});
}
$$self.$capture_state = () => ({
getContext,
setContext,
onMount,
debounce,
root,
mainPane,
sidebarLeft,
sidebarLeft2,
sidebarRight,
parentProps,
switchView,
leftReplaced,
left2Replaced,
rightReplaced,
switchViewReplaced,
adjustSlotted
});
$$self.$inject_state = $$props => {
if ('root' in $$props) $$invalidate(0, root = $$props.root);
if ('mainPane' in $$props) $$invalidate(1, mainPane = $$props.mainPane);
if ('sidebarLeft' in $$props) $$invalidate(2, sidebarLeft = $$props.sidebarLeft);
if ('sidebarLeft2' in $$props) $$invalidate(3, sidebarLeft2 = $$props.sidebarLeft2);
if ('sidebarRight' in $$props) $$invalidate(4, sidebarRight = $$props.sidebarRight);
if ('parentProps' in $$props) parentProps = $$props.parentProps;
if ('switchView' in $$props) switchView = $$props.switchView;
if ('leftReplaced' in $$props) leftReplaced = $$props.leftReplaced;
if ('left2Replaced' in $$props) left2Replaced = $$props.left2Replaced;
if ('rightReplaced' in $$props) rightReplaced = $$props.rightReplaced;
if ('switchViewReplaced' in $$props) switchViewReplaced = $$props.switchViewReplaced;
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [
root,
mainPane,
sidebarLeft,
sidebarLeft2,
sidebarRight,
div0_binding,
div1_binding,
div3_binding,
div4_binding,
div6_binding
];
}
class Pane_aligner extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';.pane-container{display:block;margin-left:var(--total-margin-left,0rem)}#root{min-height:var(--min-height,auto)}#main-pane{position:relative;padding-left:var(--padding-left,0rem);padding-right:var(--padding-right,0rem);padding-top:var(--padding-top,0rem);padding-bottom:var(--padding-bottom,0rem);text-align:justify;background:var(--background,white);box-shadow:var(--box-shadow,0 0 0.314rem rgb(187, 187, 187));margin:auto;height:min-content;max-width:var(--width-main,66rem);width:var(--width-main,66rem);z-index:1;overflow-x:var(--overflow-x,hidden)}.sidebar{position:absolute}#sidebars-left{display:flex;flex-direction:column;gap:1rem;margin-left:calc(-1*var(--width-left,22.5rem) - 1rem - 4rem);width:calc(var(--width-left,22.5rem) + 4rem)}#sidebar-left,#sidebar-left2{position:relative;background-color:white;padding:2rem 2rem}#sidebar-left{display:none}#sidebar-left2{display:none}#sidebar-right{display:none;margin-left:calc(var(--width-main,66rem) + 1rem);width:var(--width-right,auto);background-color:white;padding:2rem 2rem}@media only screen and (max-width: 1880px){#main-pane{max-width:initial;width:100%;max-width:var(--width-main,66rem);padding-left:var(--padding-left-mobile,1.8rem);padding-right:var(--padding-right-mobile,1.8rem);padding-top:var(--padding-top-mobile,1.8rem);padding-bottom:var(--padding-bottom-mobile,1.8rem)}#sidebars-left,#sidebar-right{position:relative;margin:auto;margin-top:1rem;margin-bottom:1rem;max-width:var(--width-main,66rem);width:100%}.pane-container{width:95%;justify-items:center;grid-auto-flow:row;margin-left:0}}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{},
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
}
}
}
customElements.define("pane-aligner", Pane_aligner);
export { Pane_aligner as default };

View File

@ -1,453 +1 @@
import{S as t,i as e,a as n,b as i,s as o,e as r,n as a,d as s,c as m,o as l,f as c,t as g,g as p,h as d,j as h,l as f,m as u,p as b}from"./index-4348483d.js";import{w as x}from"./index-71440b21.js";import{loadLocaleContent as w}from"../../../../../../../../../js/libraries/serverTools.js";import{partners as j}from"../../../../../../../../../js/partners.js";import"../../../../../../../../../js/components/map-component.js";function y(t,e,n){const i=t.slice();return i[4]=e[n],i}function v(t){let e,n,o,r,a,m,l,x,w,v,z,D,E,O,R,T,A,C=t[0].heading+"",H=t[0].p1+"",L=t[0].subheading1+"",M=t[0].subheading2+"",N=j,S=[];for(let e=0;e<N.length;e+=1)S[e]=k(y(t,N,e));return{c(){e=c("div"),n=c("div"),o=c("h1"),r=g(C),a=p(),m=c("img"),x=p(),w=c("p"),v=g(H),z=p(),D=c("h3"),E=g(L),O=p(),R=c("h4"),T=g(M),A=p();for(let t=0;t<S.length;t+=1)S[t].c();d(m,"id","hands-img"),h(m.src,l="/img/common/handshake.svg")||d(m,"src","/img/common/handshake.svg"),d(m,"alt","hands"),d(n,"id","text-container"),d(e,"id","container")},m(t,s){i(t,e,s),f(e,n),f(n,o),f(o,r),f(n,a),f(n,m),f(n,x),f(n,w),f(w,v),f(n,z),f(n,D),f(D,E),f(n,O),f(n,R),f(R,T),f(n,A);for(let t=0;t<S.length;t+=1)S[t].m(n,null)},p(t,e){if(1&e&&C!==(C=t[0].heading+"")&&u(r,C),1&e&&H!==(H=t[0].p1+"")&&u(v,H),1&e&&L!==(L=t[0].subheading1+"")&&u(E,L),1&e&&M!==(M=t[0].subheading2+"")&&u(T,M),1&e){let i;for(N=j,i=0;i<N.length;i+=1){const o=y(t,N,i);S[i]?S[i].p(o,e):(S[i]=k(o),S[i].c(),S[i].m(n,null))}for(;i<S.length;i+=1)S[i].d(1);S.length=N.length}},d(t){t&&s(e),b(S,t)}}}function k(t){let e,n,o,r,a,m,l,h,b,x,w,j,y,v,k,z,D,E,O,R,T,A,C,H,L,M,N,S,_,q,B,F,G,I,J,K=t[0].name+"",P=t[4].name+"",Q=t[0].type+"",U=t[0][t[4].type]+"",V=t[0].link+"",W=t[4].link+"",X=t[0].description+"",Y=t[0][t[4].description]+"";return{c(){e=c("div"),n=c("div"),o=c("picture"),r=c("source"),a=p(),m=c("source"),l=p(),h=c("img"),b=p(),x=c("div"),w=c("p"),j=c("b"),y=g(K),v=g(": "),k=g(P),z=p(),D=c("p"),E=c("b"),O=g(Q),R=g(": "),T=g(U),A=p(),C=c("p"),H=c("b"),L=g(V),M=g(": "),N=c("a"),S=g(W),_=p(),q=c("p"),B=c("b"),F=g(X),G=g(": "),I=g(Y),J=p(),d(r,"srcset","/img/partners/"+t[4].logo+".webp"),d(m,"srcset","/img/partners/"+t[4].logo+".jpg"),d(h,"class","partner-logo"),d(h,"alt","logo"),d(N,"href",t[4].link),d(N,"target",";_blank;"),d(N,"rel","noreferrer"),d(n,"class","img-general-info"),d(e,"class","location-info")},m(t,s){i(t,e,s),f(e,n),f(n,o),f(o,r),f(o,a),f(o,m),f(o,l),f(o,h),f(n,b),f(n,x),f(x,w),f(w,j),f(j,y),f(j,v),f(w,k),f(x,z),f(x,D),f(D,E),f(E,O),f(E,R),f(D,T),f(x,A),f(x,C),f(C,H),f(H,L),f(H,M),f(C,N),f(N,S),f(e,_),f(e,q),f(q,B),f(B,F),f(B,G),f(q,I),f(e,J)},p(t,e){1&e&&K!==(K=t[0].name+"")&&u(y,K),1&e&&Q!==(Q=t[0].type+"")&&u(O,Q),1&e&&U!==(U=t[0][t[4].type]+"")&&u(T,U),1&e&&V!==(V=t[0].link+"")&&u(L,V),1&e&&X!==(X=t[0].description+"")&&u(F,X),1&e&&Y!==(Y=t[0][t[4].description]+"")&&u(I,Y)},d(t){t&&s(e)}}}function z(t){let e,n=0!=Object.keys(t[0]).length,o=n&&v(t);return{c(){o&&o.c(),e=r(),this.c=a},m(t,n){o&&o.m(t,n),i(t,e,n)},p(t,[i]){1&i&&(n=0!=Object.keys(t[0]).length),n?o?o.p(t,i):(o=v(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:a,o:a,d(t){o&&o.d(t),t&&s(e)}}}function D(t,e,n){let i,o,r=x({});return m(t,r,(t=>n(0,i=t))),w(r,"partners-component",o),l((()=>{})),[i,o,r]}class E extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#hands-img{position:absolute;width:10.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;margin-top:-2rem}#text-container>:nth-child(3){margin-top:6rem}.img-general-info{display:flex;align-content:center;width:100%;gap:1.5rem;align-items:center;margin-bottom:1rem}.img-general-info>:nth-child(2){flex:none}.partner-logo{position:relative;right:0;max-height:6rem;max-width:100%;border-radius:1rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:2rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}@media only screen and (max-width: 500px){.img-general-info{display:flex;flex-direction:column;align-content:left;width:100%;gap:1rem;align-items:left;margin-bottom:0rem}.img-general-info>:nth-child(1){width:max-content}.img-general-info>:nth-child(2){width:100%}}</style>",e(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},D,z,o,{},null),t&&t.target&&i(t.target,this,t.anchor)}}customElements.define("partners-component",E);export{E as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, c as validate_store, e as component_subscribe, o as onMount, g as globals, f as validate_each_argument, h as empty, n as noop, j as detach_dev, k as element, t as text, l as space, m as add_location, p as attr_dev, q as src_url_equal, u as append_dev, w as set_data_dev, x as destroy_each } from './index-42a25c61.js';
import { w as writable } from './index-a1c185ea.js';
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js';
import { partners } from '../../../../../../../../../js/partners.js';
import '../../../../../../../../../js/components/map-component.js';
/* src\partners-component.svelte generated by Svelte v3.52.0 */
const { Object: Object_1 } = globals;
const file = "src\\partners-component.svelte";
function get_each_context(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[4] = list[i];
return child_ctx;
}
// (25:4) {#if Object.keys($content).length!=0}
function create_if_block(ctx) {
let div1;
let div0;
let h1;
let t0_value = /*$content*/ ctx[0].heading + "";
let t0;
let t1;
let img;
let img_src_value;
let t2;
let p;
let t3_value = /*$content*/ ctx[0].p1 + "";
let t3;
let t4;
let h3;
let t5_value = /*$content*/ ctx[0].subheading1 + "";
let t5;
let t6;
let h4;
let t7_value = /*$content*/ ctx[0].subheading2 + "";
let t7;
let t8;
let each_value = partners;
validate_each_argument(each_value);
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
}
const block = {
c: function create() {
div1 = element("div");
div0 = element("div");
h1 = element("h1");
t0 = text(t0_value);
t1 = space();
img = element("img");
t2 = space();
p = element("p");
t3 = text(t3_value);
t4 = space();
h3 = element("h3");
t5 = text(t5_value);
t6 = space();
h4 = element("h4");
t7 = text(t7_value);
t8 = space();
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].c();
}
add_location(h1, file, 28, 16, 766);
attr_dev(img, "id", "hands-img");
if (!src_url_equal(img.src, img_src_value = "/img/common/handshake.svg")) attr_dev(img, "src", img_src_value);
attr_dev(img, "alt", "hands");
add_location(img, file, 29, 16, 811);
add_location(p, file, 30, 16, 893);
add_location(h3, file, 31, 16, 931);
add_location(h4, file, 32, 16, 980);
attr_dev(div0, "id", "text-container");
add_location(div0, file, 27, 12, 723);
attr_dev(div1, "id", "container");
add_location(div1, file, 25, 8, 620);
},
m: function mount(target, anchor) {
insert_dev(target, div1, anchor);
append_dev(div1, div0);
append_dev(div0, h1);
append_dev(h1, t0);
append_dev(div0, t1);
append_dev(div0, img);
append_dev(div0, t2);
append_dev(div0, p);
append_dev(p, t3);
append_dev(div0, t4);
append_dev(div0, h3);
append_dev(h3, t5);
append_dev(div0, t6);
append_dev(div0, h4);
append_dev(h4, t7);
append_dev(div0, t8);
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].m(div0, null);
}
},
p: function update(ctx, dirty) {
if (dirty & /*$content*/ 1 && t0_value !== (t0_value = /*$content*/ ctx[0].heading + "")) set_data_dev(t0, t0_value);
if (dirty & /*$content*/ 1 && t3_value !== (t3_value = /*$content*/ ctx[0].p1 + "")) set_data_dev(t3, t3_value);
if (dirty & /*$content*/ 1 && t5_value !== (t5_value = /*$content*/ ctx[0].subheading1 + "")) set_data_dev(t5, t5_value);
if (dirty & /*$content*/ 1 && t7_value !== (t7_value = /*$content*/ ctx[0].subheading2 + "")) set_data_dev(t7, t7_value);
if (dirty & /*$content, partners*/ 1) {
each_value = partners;
validate_each_argument(each_value);
let i;
for (i = 0; i < each_value.length; i += 1) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div0, null);
}
}
for (; i < each_blocks.length; i += 1) {
each_blocks[i].d(1);
}
each_blocks.length = each_value.length;
}
},
d: function destroy(detaching) {
if (detaching) detach_dev(div1);
destroy_each(each_blocks, detaching);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_if_block.name,
type: "if",
source: "(25:4) {#if Object.keys($content).length!=0}",
ctx
});
return block;
}
// (34:16) {#each partners as partner}
function create_each_block(ctx) {
let div2;
let div1;
let picture;
let source0;
let t0;
let source1;
let t1;
let img;
let t2;
let div0;
let p0;
let b0;
let t3_value = /*$content*/ ctx[0].name + "";
let t3;
let t4;
let t5_value = /*partner*/ ctx[4].name + "";
let t5;
let t6;
let p1;
let b1;
let t7_value = /*$content*/ ctx[0].type + "";
let t7;
let t8;
let t9_value = /*$content*/ ctx[0][/*partner*/ ctx[4].type] + "";
let t9;
let t10;
let p2;
let b2;
let t11_value = /*$content*/ ctx[0].link + "";
let t11;
let t12;
let a;
let t13_value = /*partner*/ ctx[4].link + "";
let t13;
let t14;
let p3;
let b3;
let t15_value = /*$content*/ ctx[0].description + "";
let t15;
let t16;
let t17_value = /*$content*/ ctx[0][/*partner*/ ctx[4].description] + "";
let t17;
let t18;
const block = {
c: function create() {
div2 = element("div");
div1 = element("div");
picture = element("picture");
source0 = element("source");
t0 = space();
source1 = element("source");
t1 = space();
img = element("img");
t2 = space();
div0 = element("div");
p0 = element("p");
b0 = element("b");
t3 = text(t3_value);
t4 = text(": ");
t5 = text(t5_value);
t6 = space();
p1 = element("p");
b1 = element("b");
t7 = text(t7_value);
t8 = text(": ");
t9 = text(t9_value);
t10 = space();
p2 = element("p");
b2 = element("b");
t11 = text(t11_value);
t12 = text(": ");
a = element("a");
t13 = text(t13_value);
t14 = space();
p3 = element("p");
b3 = element("b");
t15 = text(t15_value);
t16 = text(": ");
t17 = text(t17_value);
t18 = space();
attr_dev(source0, "srcset", "/img/partners/" + /*partner*/ ctx[4].logo + ".webp");
add_location(source0, file, 37, 32, 1234);
attr_dev(source1, "srcset", "/img/partners/" + /*partner*/ ctx[4].logo + ".jpg");
add_location(source1, file, 38, 32, 1323);
attr_dev(img, "class", "partner-logo");
attr_dev(img, "alt", "logo");
add_location(img, file, 39, 32, 1411);
add_location(picture, file, 36, 28, 1191);
add_location(b0, file, 42, 35, 1560);
add_location(p0, file, 42, 32, 1557);
add_location(b1, file, 43, 35, 1639);
add_location(p1, file, 43, 32, 1636);
add_location(b2, file, 44, 35, 1728);
attr_dev(a, "href", /*partner*/ ctx[4].link);
attr_dev(a, "target", ";_blank;");
attr_dev(a, "rel", "noreferrer");
add_location(a, file, 44, 59, 1752);
add_location(p2, file, 44, 32, 1725);
add_location(div0, file, 41, 28, 1518);
attr_dev(div1, "class", "img-general-info");
add_location(div1, file, 35, 24, 1131);
add_location(b3, file, 47, 27, 1925);
add_location(p3, file, 47, 24, 1922);
attr_dev(div2, "class", "location-info");
add_location(div2, file, 34, 20, 1078);
},
m: function mount(target, anchor) {
insert_dev(target, div2, anchor);
append_dev(div2, div1);
append_dev(div1, picture);
append_dev(picture, source0);
append_dev(picture, t0);
append_dev(picture, source1);
append_dev(picture, t1);
append_dev(picture, img);
append_dev(div1, t2);
append_dev(div1, div0);
append_dev(div0, p0);
append_dev(p0, b0);
append_dev(b0, t3);
append_dev(b0, t4);
append_dev(p0, t5);
append_dev(div0, t6);
append_dev(div0, p1);
append_dev(p1, b1);
append_dev(b1, t7);
append_dev(b1, t8);
append_dev(p1, t9);
append_dev(div0, t10);
append_dev(div0, p2);
append_dev(p2, b2);
append_dev(b2, t11);
append_dev(b2, t12);
append_dev(p2, a);
append_dev(a, t13);
append_dev(div2, t14);
append_dev(div2, p3);
append_dev(p3, b3);
append_dev(b3, t15);
append_dev(b3, t16);
append_dev(p3, t17);
append_dev(div2, t18);
},
p: function update(ctx, dirty) {
if (dirty & /*$content*/ 1 && t3_value !== (t3_value = /*$content*/ ctx[0].name + "")) set_data_dev(t3, t3_value);
if (dirty & /*$content*/ 1 && t7_value !== (t7_value = /*$content*/ ctx[0].type + "")) set_data_dev(t7, t7_value);
if (dirty & /*$content*/ 1 && t9_value !== (t9_value = /*$content*/ ctx[0][/*partner*/ ctx[4].type] + "")) set_data_dev(t9, t9_value);
if (dirty & /*$content*/ 1 && t11_value !== (t11_value = /*$content*/ ctx[0].link + "")) set_data_dev(t11, t11_value);
if (dirty & /*$content*/ 1 && t15_value !== (t15_value = /*$content*/ ctx[0].description + "")) set_data_dev(t15, t15_value);
if (dirty & /*$content*/ 1 && t17_value !== (t17_value = /*$content*/ ctx[0][/*partner*/ ctx[4].description] + "")) set_data_dev(t17, t17_value);
},
d: function destroy(detaching) {
if (detaching) detach_dev(div2);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_each_block.name,
type: "each",
source: "(34:16) {#each partners as partner}",
ctx
});
return block;
}
function create_fragment(ctx) {
let show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
let if_block_anchor;
let if_block = show_if && create_if_block(ctx);
const block = {
c: function create() {
if (if_block) if_block.c();
if_block_anchor = empty();
this.c = noop;
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
if (if_block) if_block.m(target, anchor);
insert_dev(target, if_block_anchor, anchor);
},
p: function update(ctx, [dirty]) {
if (dirty & /*$content*/ 1) show_if = Object.keys(/*$content*/ ctx[0]).length != 0;
if (show_if) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
if_block = create_if_block(ctx);
if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
},
i: noop,
o: noop,
d: function destroy(detaching) {
if (if_block) if_block.d(detaching);
if (detaching) detach_dev(if_block_anchor);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let $content;
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('partners-component', slots, []);
let loaded;
let content = writable({});
validate_store(content, 'content');
component_subscribe($$self, content, value => $$invalidate(0, $content = value));
let locale = loadLocaleContent(content, "partners-component", loaded);
onMount(() => {
});
const writable_props = [];
Object_1.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<partners-component> was created with unknown prop '${key}'`);
});
$$self.$capture_state = () => ({
onMount,
writable,
loadLocaleContent,
partners,
loaded,
content,
locale,
$content
});
$$self.$inject_state = $$props => {
if ('loaded' in $$props) $$invalidate(1, loaded = $$props.loaded);
if ('content' in $$props) $$invalidate(2, content = $$props.content);
if ('locale' in $$props) locale = $$props.locale;
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [$content, loaded, content];
}
class Partners_component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#hands-img{position:absolute;width:10.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;margin-top:-2rem}#text-container>:nth-child(3){margin-top:6rem}.img-general-info{display:flex;align-content:center;width:100%;gap:1.5rem;align-items:center;margin-bottom:1rem}.img-general-info>:nth-child(2){flex:none}.partner-logo{position:relative;right:0;max-height:6rem;max-width:100%;border-radius:1rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:2rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}@media only screen and (max-width: 500px){.img-general-info{display:flex;flex-direction:column;align-content:left;width:100%;gap:1rem;align-items:left;margin-bottom:0rem}.img-general-info>:nth-child(1){width:max-content}.img-general-info>:nth-child(2){width:100%}}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{},
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
}
}
}
customElements.define("partners-component", Partners_component);
export { Partners_component as default };

File diff suppressed because one or more lines are too long

View File

@ -1,209 +1 @@
import{S as t,i as e,a as s,b as c,u as i,s as a,f as r,g as o,n as h,h as n,l,q as d,d as u,r as p,o as b}from"./index-4348483d.js";import"../../../../../../../../../js/libraries/miscTools.js";function k(t){let e,s,i,a,b,k;return{c(){e=r("label"),s=r("input"),i=o(),a=r("span"),this.c=h,n(s,"type","checkbox"),n(a,"class","switch-span"),n(e,"class","switch")},m(r,o){c(r,e,o),l(e,s),s.checked=t[0],l(e,i),l(e,a),b||(k=[d(s,"change",t[4]),d(s,"click",t[1])],b=!0)},p(t,[e]){1&e&&(s.checked=t[0])},i:h,o:h,d(t){t&&u(e),b=!1,p(k)}}}function g(t,e,s){let{callback:c=null}=e,{checked:i=!1}=e;const a=()=>{setTimeout((()=>{null!=c?(s(0,i=!i),c()):a()}),100)};return b((()=>{})),t.$$set=t=>{"callback"in t&&s(2,c=t.callback),"checked"in t&&s(0,i=t.checked)},[i,function(){null!=c&&(s(0,i=!i),c())},c,a,function(){i=this.checked,s(0,i)}]}class m extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';.switch span{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;border-radius:calc(2* 1.2rem)}.switch span:before{position:absolute;content:\"\";height:calc(var(--height) - 0.5rem);width:calc(var(--height) - 0.5rem);left:calc(0.3rem);bottom:0.25rem;background-color:white;-webkit-transition:.4s;transition:.4s;border-radius:50%}.switch input:checked+.switch-span{background-color:var(--pink)}.switch input:hover+.switch-span{box-shadow:0 0 0 var(--pink)}.switch input:checked+.switch-span:before{-webkit-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));-ms-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem))}.switch{position:relative;display:inline-block;width:var(--width);height:var(--height)}.switch input{position:absolute;width:var(--width);height:var(--height);opacity:0}</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},g,k,a,{callback:2,checked:0,toggle:3},null),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),i()))}static get observedAttributes(){return["callback","checked","toggle"]}get callback(){return this.$$.ctx[2]}set callback(t){this.$$set({callback:t}),i()}get checked(){return this.$$.ctx[0]}set checked(t){this.$$set({checked:t}),i()}get toggle(){return this.$$.ctx[3]}}customElements.define("switch-component",m);export{m as default};
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, B as flush, s as safe_not_equal, d as dispatch_dev, v as validate_slots, o as onMount, k as element, l as space, n as noop, p as attr_dev, m as add_location, u as append_dev, y as listen_dev, j as detach_dev, z as run_all } from './index-42a25c61.js';
import { px2rem, getTextWidth, getCanvasFont } from '../../../../../../../../../js/libraries/miscTools.js';
/* src\components\switch-component.svelte generated by Svelte v3.52.0 */
const file = "src\\components\\switch-component.svelte";
function create_fragment(ctx) {
let label;
let input;
let t;
let span;
let mounted;
let dispose;
const block = {
c: function create() {
label = element("label");
input = element("input");
t = space();
span = element("span");
this.c = noop;
attr_dev(input, "type", "checkbox");
add_location(input, file, 39, 4, 804);
attr_dev(span, "class", "switch-span");
add_location(span, file, 40, 4, 880);
attr_dev(label, "class", "switch");
add_location(label, file, 38, 0, 776);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: function mount(target, anchor) {
insert_dev(target, label, anchor);
append_dev(label, input);
input.checked = /*checked*/ ctx[0];
append_dev(label, t);
append_dev(label, span);
if (!mounted) {
dispose = [
listen_dev(input, "change", /*input_change_handler*/ ctx[4]),
listen_dev(input, "click", /*toggleClick*/ ctx[1], false, false, false)
];
mounted = true;
}
},
p: function update(ctx, [dirty]) {
if (dirty & /*checked*/ 1) {
input.checked = /*checked*/ ctx[0];
}
},
i: noop,
o: noop,
d: function destroy(detaching) {
if (detaching) detach_dev(label);
mounted = false;
run_all(dispose);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('switch-component', slots, []);
let { callback = null } = $$props;
let { checked = false } = $$props;
const toggle = () => {
let f = () => {
if (callback != null) {
$$invalidate(0, checked = !checked);
callback();
} else {
toggle();
}
};
setTimeout(f, 100);
};
function toggleClick() {
if (callback != null) {
$$invalidate(0, checked = !checked);
callback();
}
}
// Main code
onMount(() => {
});
const writable_props = ['callback', 'checked'];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<switch-component> was created with unknown prop '${key}'`);
});
function input_change_handler() {
checked = this.checked;
$$invalidate(0, checked);
}
$$self.$$set = $$props => {
if ('callback' in $$props) $$invalidate(2, callback = $$props.callback);
if ('checked' in $$props) $$invalidate(0, checked = $$props.checked);
};
$$self.$capture_state = () => ({
onMount,
px2rem,
getTextWidth,
getCanvasFont,
callback,
checked,
toggle,
toggleClick
});
$$self.$inject_state = $$props => {
if ('callback' in $$props) $$invalidate(2, callback = $$props.callback);
if ('checked' in $$props) $$invalidate(0, checked = $$props.checked);
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [checked, toggleClick, callback, toggle, input_change_handler];
}
class Switch_component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';.switch span{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;border-radius:calc(2* 1.2rem)}.switch span:before{position:absolute;content:"";height:calc(var(--height) - 0.5rem);width:calc(var(--height) - 0.5rem);left:calc(0.3rem);bottom:0.25rem;background-color:white;-webkit-transition:.4s;transition:.4s;border-radius:50%}.switch input:checked+.switch-span{background-color:var(--pink)}.switch input:hover+.switch-span{box-shadow:0 0 0 var(--pink)}.switch input:checked+.switch-span:before{-webkit-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));-ms-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem))}.switch{position:relative;display:inline-block;width:var(--width);height:var(--height)}.switch input{position:absolute;width:var(--width);height:var(--height);opacity:0}</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{ callback: 2, checked: 0, toggle: 3 },
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
if (options.props) {
this.$set(options.props);
flush();
}
}
}
static get observedAttributes() {
return ["callback", "checked", "toggle"];
}
get callback() {
return this.$$.ctx[2];
}
set callback(callback) {
this.$$set({ callback });
flush();
}
get checked() {
return this.$$.ctx[0];
}
set checked(checked) {
this.$$set({ checked });
flush();
}
get toggle() {
return this.$$.ctx[3];
}
set toggle(value) {
throw new Error("<switch-component>: Cannot set read-only property 'toggle'");
}
}
customElements.define("switch-component", Switch_component);
export { Switch_component as default };

View File

@ -9,5 +9,7 @@
"contact": "Contact", "contact": "Contact",
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve", "EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
"forming": "forming", "forming": "forming",
"WhatsAppInviteLink": "WhatsApp invite link" "WhatsAppInviteLink": "WhatsApp invite link",
"DiscordInviteLink": "Discord invite link",
"CanadaMontreal": "Canada, Montreal"
} }

View File

@ -9,5 +9,7 @@
"contact": "Контакт", "contact": "Контакт",
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве", "EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
"forming": "формируется", "forming": "формируется",
"WhatsAppInviteLink": "WhatsApp ссылка" "WhatsAppInviteLink": "WhatsApp ссылка",
"DiscordInviteLink": "Discord ссылка",
"CanadaMontreal": "Канада, Монреаль"
} }