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