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,453 +1 @@
(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 };
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};