@htmlbricks/hb-footer 0.66.7 → 0.66.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/main.iife.js +2 -2
- package/main.iife.js.map +1 -1
- package/manifest.json +5 -2
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
## `hb-footer` — footer
|
|
2
|
+
|
|
3
|
+
**Category:** layout
|
|
4
|
+
**Tags:** layout, navigation
|
|
5
|
+
|
|
6
|
+
### What it does
|
|
7
|
+
|
|
8
|
+
Site footer in `small`, `regular`, or `large` layouts: company block, optional brand/contacts column, link columns, social icons, `hb-contact-item` rows, and policy links—all driven by JSON props. On small layouts the body can expand/collapse unless `disable_expanding_small` is set; slots `footerheader`, `footercontent`, and `footerbottom` wrap major regions.
|
|
9
|
+
|
|
10
|
+
### Custom element
|
|
11
|
+
|
|
12
|
+
`hb-footer`
|
|
13
|
+
|
|
14
|
+
### Attributes (snake_case; use string values in HTML)
|
|
15
|
+
|
|
16
|
+
- `id` — optional string
|
|
17
|
+
- `style` — optional string
|
|
18
|
+
- `company` — required string (JSON: logo, names, description, VAT, etc.)
|
|
19
|
+
- `brandandcontacts` — optional string (JSON)
|
|
20
|
+
- `columns` — optional string (JSON array of titled link columns / cells)
|
|
21
|
+
- `policies` — optional string (JSON array of `{ label, key, link? }`)
|
|
22
|
+
- `contacts` — optional string (JSON: phones, addresses, emails, sites)
|
|
23
|
+
- `socials` — optional string (JSON: facebook, youtube, …)
|
|
24
|
+
- `type` — optional `"small"` | `"regular"` | `"large"`
|
|
25
|
+
- `disable_expanding_small` — optional boolean (string in HTML)
|
|
26
|
+
|
|
27
|
+
### Events
|
|
28
|
+
|
|
29
|
+
- `footerClick` — `{ elClick: string }`
|
|
30
|
+
|
|
31
|
+
### Usage notes
|
|
32
|
+
|
|
33
|
+
Slots: `footerpolicy`, `footerheader`, `footercontent`, `footerbottom`, `footer_small`. CSS part: `column-cell-button-content`. Layout size metadata in docs: `fullscreen`.
|
|
34
|
+
|
|
35
|
+
### Minimal HTML example
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<hb-footer
|
|
39
|
+
type="regular"
|
|
40
|
+
company="{"logoUri":"https://example.com/logo.svg","siteName":"Site","companyName":"ACME","description":"Tagline"}"
|
|
41
|
+
columns="[]"
|
|
42
|
+
policies="[]"
|
|
43
|
+
></hb-footer>
|
|
44
|
+
```
|
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,te=32768,ne=1<<25,re=65536,ie=1<<18,ae=1<<19,oe=1<<20,se=1<<25,ce=65536,le=1<<21,ue=1<<22,de=1<<23,fe=Symbol(`$state`),pe=Symbol(`legacy props`),me=Symbol(``),he=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function _e(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ve(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ye(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function be(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function xe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Se(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ce(){throw Error(`https://svelte.dev/e/hydration_failed`)}function we(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Te(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function De(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Oe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function ke(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ae(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var C=!1;function w(e){C=e}var T;function E(e){if(e===null)throw ke(),t;return T=e}function je(){return E(N(T))}function D(e){if(C){if(N(T)!==null)throw ke(),t;T=e}}function Me(e=1){if(C){for(var t=e,n=T;t--;)n=N(n);T=n}}function Ne(e=!0){for(var t=0,n=T;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=N(n);e&&n.remove(),n=i}}function Pe(e){if(!e||e.nodeType!==8)throw ke(),t;return e.data}function Fe(e){return e===this.v}function Ie(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Le(e){return!Ie(e,this.v)}var Re=!1,ze=!1,O=null;function Be(e){O=e}function Ve(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:H,l:ze&&!t?{s:null,u:null,$:[]}:null}}function He(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)mn(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function Ue(){return!ze||O!==null&&O.l===null}var We=[];function Ge(){var e=We;We=[],_(e)}function Ke(e){if(We.length===0&&!at){var t=We;queueMicrotask(()=>{t===We&&Ge()})}We.push(e)}function qe(){for(;We.length>0;)Ge()}function Je(e){var t=H;if(t===null)return B.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ye(e,t)}function Ye(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Xe=~(b|x|y);function k(e,t){e.f=e.f&Xe|t}function Ze(e){e.f&512||e.deps===null?k(e,y):k(e,x)}function Qe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,Qe(t.deps))}function $e(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Qe(e.deps),k(e,y)}var et=!1,tt=!1;function nt(e){var t=tt;try{return tt=!1,[e(),tt]}finally{tt=t}}var rt=new Set,A=null,j=null,it=null,at=!1,ot=!1,st=null,ct=null,lt=0,ut=1,dt=class e{id=ut++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)k(n,b),this.schedule(n);for(n of t.m)k(n,x),this.schedule(n)}}#p(){if(lt++>1e3&&(rt.delete(this),pt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),k(e,b),this.schedule(e);for(let e of this.#s)k(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=st=[],r=[],i=ct=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw bt(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(st=null,ct=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)yt(e,t)}else{this.#n.size===0&&rt.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ht(r),ht(n),this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(rt.add(o),o.#p()),rt.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Re&&i&16777224?n.push(r):Un(r)&&(i&16&&this.#s.add(r),Jn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)$e(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{ot=!0,A=this,this.#p()}finally{lt=0,it=null,st=null,ct=null,ot=!1,A=null,j=null,zt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),rt.delete(this)}#g(){for(let c of rt){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)gt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of rt)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ke(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(A===null){let t=A=new e;ot||(rt.add(A),at||Ke(()=>{A===t&&t.flush()}))}return A}apply(){if(!Re||!this.is_fork&&rt.size===1){j=null;return}j=new Map;for(let[e,[t]]of this.current)j.set(e,t);for(let n of rt)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)j.has(e)||j.set(e,t)}}schedule(e){if(it=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(st!==null&&t===H&&(Re||(B===null||!(B.f&2))&&!et))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function ft(e){var t=at;at=!0;try{var n;for(e&&(A!==null&&!A.is_fork&&A.flush(),n=e());;){if(qe(),A===null)return n;A.flush()}}finally{at=t}}function pt(){try{Se()}catch(e){Ye(e,it)}}var mt=null;function ht(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Un(r)&&(mt=new Set,Jn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Tn(r),mt?.size>0)){zt.clear();for(let e of mt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)mt.has(n)&&(mt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Jn(n)}}mt.clear()}}mt=null}}function gt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?gt(i,t,n,r):e&4194320&&!(e&2048)&&_t(i,t,r)&&(k(i,b),vt(i))}}function _t(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&_t(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function vt(e){A.schedule(e)}function yt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,y);for(var n=e.first;n!==null;)yt(n,t),n=n.next}}function bt(e){k(e,y);for(var t=e.first;t!==null;)bt(t),t=t.next}function xt(e){let t=0,n=Vt(0),r;return()=>{dn()&&(J(n),yn(()=>(t===0&&(r=Zn(()=>e(()=>qt(n)))),t+=1,()=>{Ke(()=>{--t,t===0&&(r?.(),r=void 0,qt(n))})})))}}var St=re|ae;function Ct(e,t,n,r){new wt(e,t,n,r)}var wt=class{parent;is_pending=!1;transform_error;#e;#t=C?T:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=xt(()=>(this.#m=Vt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=H;t.b=this,t.f|=128,n(e)},this.parent=H.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=bn(()=>{if(C){let e=this.#t;je();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},St),C&&(this.#e=T)}#g(){try{this.#a=R(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=R(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=R(()=>e(this.#e)),Ke(()=>{var e=this.#c=document.createDocumentFragment(),t=M();e.append(t),this.#a=this.#x(()=>R(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,En(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=R(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();An(this.#a,e);let t=this.#n.pending;this.#o=R(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){$e(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=H,n=B,r=O;U(this.#i),V(this.#i),Be(this.#i.ctx);try{return dt.ensure(),e()}catch(e){return Je(e),null}finally{U(t),V(n),Be(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&En(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ke(()=>{this.#d=!1,this.#m&&Gt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),J(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(z(this.#a),null),this.#o&&=(z(this.#o),null),this.#s&&=(z(this.#s),null),C&&(E(this.#t),Me(),E(Ne()));var r=!1,i=!1;let a=()=>{if(r){Ae();return}r=!0,i&&Oe(),this.#s!==null&&En(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ye(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return R(()=>{var t=H;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ye(e,this.#i.parent),null}}))};Ke(()=>{var t;try{t=this.transform_error(e)}catch(e){Ye(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ye(e,this.#i&&this.#i.parent)):o(t)})}};function Tt(e,t,n,r){let i=Ue()?kt:jt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=H,s=Et(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Ye(e,o)}Dt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ot();function d(){Promise.all(n.map(e=>At(e))).then(e=>l([...t.map(i),...e])).catch(e=>Ye(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Dt()}):d()}function Et(){var e=H,t=B,n=O,r=A;return function(i=!0){U(e),V(t),Be(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Dt(e=!0){U(null),V(null),Be(null),e&&A?.deactivate()}function Ot(){var e=H,t=e.b,n=A,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function kt(e){var t=2|b,r=B!==null&&B.f&2?B:null;return H!==null&&(H.f|=ae),{ctx:O,deps:null,effects:null,equals:Fe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??H,ac:null}}function At(e,t,r){let i=H;i===null&&_e();var a=void 0,o=Vt(n),s=!B,c=new Map;return vn(()=>{var t=H,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Dt)}catch(e){n.reject(e),Dt()}var r=A;if(s){if(t.f&32768)var l=Ot();if(i.b.is_rendered())c.get(r)?.reject(he),c.delete(r);else{for(let e of c.values())e.reject(he);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===he),!(n===he||t.f&16384)){if(r.activate(),n)o.f|=de,Gt(o,n);else{o.f&8388608&&(o.f^=de),Gt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(he)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),fn(()=>{for(let e of c.values())e.reject(he)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function jt(e){let t=kt(e);return t.equals=Le,t}function Mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function Nt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Pt(e){var t,n=H;U(Nt(e));try{e.f&=~ce,Mt(e),t=Gn(e)}finally{U(n)}return t}function Ft(e){var t=e.v,n=Pt(e);if(!e.equals(n)&&(e.wv=Hn(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t,!0),e.deps===null))){k(e,y);return}Nn||(j===null?Ze(e):(dn()||A?.is_fork)&&j.set(e,n))}function It(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=g,t.ac=null,qn(t,0),Sn(t))}function Lt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Jn(t)}var Rt=new Set,zt=new Map,Bt=!1;function Vt(e,t){return{f:0,v:e,reactions:null,equals:Fe,rv:0,wv:0}}function Ht(e,t){let n=Vt(e,t);return In(n),n}function Ut(e,t=!1,n=!0){let r=Vt(e);return t||(r.equals=Le),ze&&n&&O!==null&&O.l!==null&&(O.l.s??=[]).push(r),r}function Wt(e,t,n=!1){return B!==null&&(!Fn||B.f&131072)&&Ue()&&B.f&4325394&&(W===null||!o.call(W,e))&&De(),Gt(e,n?Yt(t):t,ct)}function Gt(e,t,n=null){if(!e.equals(t)){var r=e.v;Nn?zt.set(e,t):zt.set(e,r),e.v=t;var i=dt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Pt(t),j===null&&Ze(t)}e.wv=Hn(),Jt(e,b,n),Ue()&&H!==null&&H.f&1024&&!(H.f&96)&&(q===null?Ln([e]):q.push(e)),!i.is_fork&&Rt.size>0&&!Bt&&Kt()}return t}function Kt(){Bt=!1;for(let e of Rt)e.f&1024&&k(e,x),Un(e)&&Jn(e);Rt.clear()}function qt(e){Wt(e,e.v+1)}function Jt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ue(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===H)){var l=(c&b)===0;if(l&&k(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=ce),Jt(u,x,n))}else if(l){var d=s;c&16&&mt!==null&&mt.add(d),n===null?vt(d):n.push(d)}}}}function Yt(e){if(typeof e!=`object`||!e||fe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=Ht(0),s=null,c=Bn,l=e=>{if(Bn===c)return e();var t=B,n=Bn;V(null),Vn(c);var r=e();return V(t),Vn(n),r};return a&&r.set(`length`,Ht(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Te();var i=r.get(t);return i===void 0?l(()=>{var e=Ht(n.value,s);return r.set(t,e),e}):Wt(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>Ht(n,s));r.set(t,e),qt(o)}}else Wt(i,n),qt(o);return!0},get(t,i,a){if(i===fe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>Ht(Yt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=J(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=J(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===fe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||H!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>Ht(a?Yt(e[t]):n,s)),r.set(t,i)),J(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>Ht(n,s)),r.set(p+``,m)):Wt(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>Ht(void 0,s)),Wt(d,Yt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Yt(i));Wt(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&Wt(_,v+1)}qt(o)}return!0},ownKeys(e){J(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Ee()}})}var Xt,Zt,Qt,$t;function en(){if(Xt===void 0){Xt=window,Zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Qt=u(t,`firstChild`).get,$t=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function M(e=``){return document.createTextNode(e)}function tn(e){return Qt.call(e)}function N(e){return $t.call(e)}function P(e,t){if(!C)return tn(e);var n=tn(T);if(n===null)n=T.appendChild(M());else if(t&&n.nodeType!==3){var r=M();return n?.before(r),E(r),r}return t&&on(n),E(n),n}function F(e,t=!1){if(!C){var n=tn(e);return n instanceof Comment&&n.data===``?N(n):n}if(t){if(T?.nodeType!==3){var r=M();return T?.before(r),E(r),r}on(T)}return T}function I(e,t=1,n=!1){let r=C?T:e;for(var i;t--;)i=r,r=N(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=M();return r===null?i?.after(a):r.before(a),E(a),a}on(r)}return E(r),r}function nn(e){e.textContent=``}function rn(){return!Re||mt!==null?!1:(H.f&te)!==0}function an(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function on(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function sn(e){var t=B,n=H;V(null),U(null);try{return e()}finally{V(t),U(n)}}function cn(e){H===null&&(B===null&&xe(e),be()),Nn&&ye(e)}function ln(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function un(e,t){var n=H;n!==null&&n.f&8192&&(e|=S);var r={ctx:O,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)st===null?dt.ensure().schedule(r):st.push(r);else if(t!==null){try{Jn(r)}catch(e){throw z(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=re))}if(i!==null&&(i.parent=n,n!==null&&ln(i,n),B!==null&&B.f&2&&!(e&64))){var a=B;(a.effects??=[]).push(i)}return r}function dn(){return B!==null&&!Fn}function fn(e){let t=un(8,null);return k(t,y),t.teardown=e,t}function pn(e){cn(`$effect`);var t=H.f;if(!B&&t&32&&!(t&32768)){var n=O;(n.e??=[]).push(e)}else return mn(e)}function mn(e){return un(4|oe,e)}function hn(e){dt.ensure();let t=un(64|ae,e);return()=>{z(t)}}function gn(e){dt.ensure();let t=un(64|ae,e);return(e={})=>new Promise(n=>{e.outro?En(t,()=>{z(t),n(void 0)}):(z(t),n(void 0))})}function _n(e){return un(4,e)}function vn(e){return un(ue|ae,e)}function yn(e,t=0){return un(8|t,e)}function L(e,t=[],n=[],r=[]){Tt(r,t,n,t=>{un(8,()=>e(...t.map(J)))})}function bn(e,t=0){return un(16|t,e)}function R(e){return un(32|ae,e)}function xn(e){var t=e.teardown;if(t!==null){let e=Nn,n=B;Pn(!0),V(null);try{t.call(null)}finally{Pn(e),V(n)}}}function Sn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&sn(()=>{e.abort(he)});var r=n.next;n.f&64?n.parent=null:z(n,t),n=r}}function Cn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||z(t),t=n}}function z(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(wn(e.nodes.start,e.nodes.end),n=!0),k(e,ne),Sn(e,t&&!n),qn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();xn(e),e.f^=ne,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function wn(e,t){for(;e!==null;){var n=e===t?null:N(e);e.remove(),e=n}}function Tn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function En(e,t,n=!0){var r=[];Dn(e,r,!0);var i=()=>{n&&z(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Dn(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Dn(i,t,o?n:!1),i=a}}}function On(e){kn(e,!0)}function kn(e,t){if(e.f&8192){e.f^=S,e.f&1024||(k(e,b),dt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;kn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function An(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:N(n);t.append(n),n=i}}var jn=null,Mn=!1,Nn=!1;function Pn(e){Nn=e}var B=null,Fn=!1;function V(e){B=e}var H=null;function U(e){H=e}var W=null;function In(e){B!==null&&(!Re||B.f&2)&&(W===null?W=[e]:W.push(e))}var G=null,K=0,q=null;function Ln(e){q=e}var Rn=1,zn=0,Bn=zn;function Vn(e){Bn=e}function Hn(){return++Rn}function Un(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Un(a)&&Ft(a),a.wv>e.wv)return!0}t&512&&j===null&&k(e,y)}return!1}function Wn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Re&&W!==null&&o.call(W,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Wn(a,t,!1):t===a&&(n?k(a,b):a.f&1024&&k(a,x),vt(a))}}function Gn(e){var t=G,n=K,r=q,i=B,a=W,o=O,s=Fn,c=Bn,l=e.f;G=null,K=0,q=null,B=l&96?null:e,W=null,Be(e.ctx),Fn=!1,Bn=++zn,e.ac!==null&&(sn(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=te;var f=e.deps,p=A?.is_fork;if(G!==null){var m;if(p||qn(e,K),f!==null&&K>0)for(f.length=K+G.length,m=0;m<G.length;m++)f[K+m]=G[m];else e.deps=f=G;if(dn()&&e.f&512)for(m=K;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&K<f.length&&(qn(e,K),f.length=K);if(Ue()&&q!==null&&!Fn&&f!==null&&!(e.f&6146))for(m=0;m<q.length;m++)Wn(q[m],e);if(i!==null&&i!==e){if(zn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=zn;if(t!==null)for(let e of t)e.rv=zn;q!==null&&(r===null?r=q:r.push(...q))}return e.f&8388608&&(e.f^=de),d}catch(e){return Je(e)}finally{e.f^=le,G=t,K=n,q=r,B=i,W=a,Be(o),Fn=s,Bn=c}}function Kn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(G===null||!o.call(G,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ce),Ze(s),It(s),qn(s,0)}}function qn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Kn(e,n[r])}function Jn(e){var t=e.f;if(!(t&16384)){k(e,y);var n=H,r=Mn;H=e,Mn=!0;try{t&16777232?Cn(e):Sn(e),xn(e);var i=Gn(e);e.teardown=typeof i==`function`?i:null,e.wv=Rn}finally{Mn=r,H=n}}}function J(e){var t=(e.f&2)!=0;if(jn?.add(e),B!==null&&!Fn&&!(H!==null&&H.f&16384)&&(W===null||!o.call(W,e))){var n=B.deps;if(B.f&2097152)e.rv<zn&&(e.rv=zn,G===null&&n!==null&&n[K]===e?K++:G===null?G=[e]:G.push(e));else{(B.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[B]:o.call(r,B)||r.push(B)}}if(Nn&&zt.has(e))return zt.get(e);if(t){var i=e;if(Nn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Xn(i))&&(a=Pt(i)),zt.set(i,a),a}var s=(i.f&512)==0&&!Fn&&B!==null&&(Mn||(B.f&512)!=0),c=(i.f&te)===0;Un(i)&&(s&&(i.f|=512),Ft(i)),s&&!c&&(Lt(i),Yn(i))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function Yn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Lt(t),Yn(t))}function Xn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(zt.has(t)||t.f&2&&Xn(t))return!0;return!1}function Zn(e){var t=Fn;try{return Fn=!0,e()}finally{Fn=t}}var Qn=Symbol(`events`),$n=new Set,er=new Set;function tr(e,t,n){(t[Qn]??={})[e]=n}function nr(e){for(var t=0;t<e.length;t++)$n.add(e[t]);for(var n of er)n(e)}var rr=null;function ir(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;rr=e;var o=0,s=rr===e&&e[Qn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Qn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=B,f=H;V(null),U(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Qn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Qn]=t,delete e.currentTarget,V(d),U(f)}}}var ar=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function or(e){return ar?.createHTML(e)??e}function sr(e){var t=an(`template`);return t.innerHTML=or(e.replaceAll(`<!>`,`<!---->`)),t.content}function cr(e,t){var n=H;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Y(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return cr(T,null),T;i===void 0&&(i=sr(a?e:`<!>`+e),n||(i=tn(i)));var t=r||Zt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=tn(t),s=t.lastChild;cr(o,s)}else cr(t,t);return t}}function lr(e=``){if(!C){var t=M(e+``);return cr(t,t),t}var n=T;return n.nodeType===3?on(n):(n.before(n=M()),E(n)),cr(n,n),n}function ur(){if(C)return cr(T,null),T;var e=document.createDocumentFragment(),t=document.createComment(``),n=M();return e.append(t,n),cr(t,n),e}function X(e,t){if(C){var n=H;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=T),je();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var dr=[`touchstart`,`touchmove`];function fr(e){return dr.includes(e)}function pr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function mr(e,t){return _r(e,t)}function hr(e,n){en(),n.intro=n.intro??!1;let r=n.target,i=C,a=T;try{for(var o=tn(r);o&&(o.nodeType!==8||o.data!==`[`);)o=N(o);if(!o)throw t;w(!0),E(o);let i=_r(e,{...n,anchor:o});return w(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
2
|
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&Ce(),en(),nn(r),w(!1),mr(e,n)}finally{w(i),E(a)}}var gr=new Map;function _r(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){en();var u=void 0,d=gn(()=>{var c=r??n.appendChild(M());Ct(c,{pending:()=>{}},n=>{Ve({});var r=O;if(o&&(r.c=o),a&&(i.$$events=a),C&&cr(n,null),u=e(n,i)||{},C&&(H.nodes.end=T,T===null||T.nodeType!==8||T.data!==`]`))throw ke(),t;He()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=fr(r);for(let e of[n,document]){var a=gr.get(e);a===void 0&&(a=new Map,gr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ir,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s($n)),er.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=gr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,ir),t.delete(e),t.size===0&&gr.delete(r)):t.set(e,i)}er.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return vr.set(u,d),u}var vr=new WeakMap;function yr(e,t){let n=vr.get(e);return n?(vr.delete(e),n(t)):Promise.resolve()}var br=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)On(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(z(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();An(r,t),t.append(M()),this.#n.set(e,{effect:r,fragment:t})}else z(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),En(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(z(n.effect),this.#n.delete(e))};ensure(e,t){var n=A,r=rn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=M();i.append(a),this.#n.set(e,{effect:R(()=>t(a)),fragment:i})}else this.#t.set(e,R(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=T),this.#a(n)}};function Z(e,t,n=!1){var r;C&&(r=T,je());var i=new br(e),a=n?re:0;function o(e,t){if(C){var n=Pe(r);if(e!==parseInt(n.substring(1))){var a=Ne();E(a),i.anchor=a,w(!1),i.ensure(e,t),w(!0);return}}i.ensure(e,t)}bn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function xr(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];En(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Sr(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;nn(d),d.append(u),e.items.clear()}Sr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Sr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=se,An(a,document.createDocumentFragment())):z(t[i],n)}}var Cr;function wr(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=C?E(tn(u)):u.appendChild(M())}C&&je();var d=null,f=jt(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Er(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=se,Or(d,null,c)):On(d):En(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:bn(()=>{p=J(f);var e=p.length;let i=!1;C&&Pe(c)===`[!`!=(e===0)&&(c=Ne(),E(c),w(!1),i=!0);for(var s=new Set,u=A,v=rn(),y=0;y<e;y+=1){C&&T.nodeType===8&&T.data===`]`&&(c=T,i=!0,w(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Gt(S.v,b),S.i&&Gt(S.i,y),v&&u.unskip_effect(S.e)):(S=Dr(l,h?c:Cr??=M(),b,x,y,a,t,n),h||(S.e.f|=se),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=R(()=>o(c)):(d=R(()=>o(Cr??=M())),d.f|=se)),e>s.size&&ve(``,``,``),C&&e>0&&E(Ne()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&w(!0),J(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,C&&(c=T)}function Tr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Er(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=Tr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(On(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=se,_===l)Or(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),kr(e,d,_),kr(e,_,y),Or(_,y,n),d=_,p=[],m=[],l=Tr(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Or(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);kr(e,S.prev,ee.next),kr(e,d,S),kr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Or(_,l,n),kr(e,_.prev,_.next),kr(e,_,d===null?e.effect.first:d.next),kr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Tr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Tr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Sr(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=Tr(l.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}xr(e,te,re)}}a&&Ke(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Dr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Vt(n):Ut(n,!1,!1):null,l=o&2?Vt(i):null;return{v:c,i:l,e:R(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Or(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=N(r);if(a.before(r),r===i)return;r=o}}function kr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ar(e,t,n,r,i){C&&je();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function jr(e,t){let n=null,r=C;var i;if(C){n=T;for(var a=tn(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=N(a);if(a===null)w(!1);else{var o=N(a);a.remove(),E(o)}}C||(i=document.head.appendChild(M()));try{bn(()=>t(i),ie|ae)}finally{r&&(w(!0),E(n))}}function Mr(e,t){_n(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=an(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Nr=[...`
|
|
3
|
-
\r\f\xA0\v`];function Pr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Nr.includes(r[o-1]))&&(s===r.length||Nr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Q(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=Pr(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Fr=Symbol(`is custom element`),Ir=Symbol(`is html`),Lr=ge?`link`:`LINK`;function Rr(e,t,n,r){var i=zr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Lr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Vr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $(e,t,n){var r=B,i=H;let a=C;C&&w(!1),V(null),U(null);try{t!==`style`&&(Br.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Vr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Rr(e,t,n==null?n:String(n))}finally{V(r),U(i),a&&w(!0)}}function zr(e){return e.__attributes??={[Fr]:e.nodeName.includes(`-`),[Ir]:e.namespaceURI===r}}var Br=new Map;function Vr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Br.get(t);if(n)return n;Br.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Hr(e,t,n,r){var i=!ze||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Zn(r):r),s);let d;if(a){var f=fe in e||pe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=nt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&we(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?kt:jt)(()=>(_=!1,h()));a&&J(v);var y=H;return(function(e,t){if(arguments.length>0){let n=t?J(v):i&&a?Yt(e):e;return Wt(v,n),_=!0,s!==void 0&&(s=n),e}return Nn&&_||y.f&16384?v.v:J(v)})}function Ur(e){return new Wr(e)}var Wr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Ut(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return J(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===pe?!0:(J(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return Wt(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?hr:mr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Re&&(!e?.props?.$$host||e.sync===!1)&&ft(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{yr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Gr;typeof HTMLElement==`function`&&(Gr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=an(`slot`);e!==`default`&&(n.name=e),X(t,n)}}let t={},n=qr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Kr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Ur({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=hn(()=>{yn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Kr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Kr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Kr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function qr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Jr(e,t,n,r,i,a){let o=class extends Gr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Kr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Yr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Xr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Zr=Y(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1tntk73"/>`),Qr=Y(`<div class="expand_from_small_footer svelte-1tntk73"><i class="bi bi-arrow-up-square-fill svelte-1tntk73"></i></div>`),$r=Y(`<span class="svelte-1tntk73"><img style="height: 100%;" alt="" class="svelte-1tntk73"/></span>`),ei=Y(`<div style="max-height:40px;height:40px;margin:10px auto 5px auto" class="svelte-1tntk73"><!> </div>`),ti=Y(`<div class="container-fluid svelte-1tntk73"><div class="container svelte-1tntk73" style="position:relative"><!> <div id="footer_small_content" class="svelte-1tntk73"><!></div></div></div>`),ni=Y(`<div class="container-fluid svelte-1tntk73"><div class="container svelte-1tntk73" style="position:relative"><div style="margin-top:10px;" class="expand_from_small_footer svelte-1tntk73"><i class="bi bi-arrow-down-square-fill svelte-1tntk73"></i></div></div></div>`),ri=Y(`<span class="svelte-1tntk73"><img style="height: 40px" alt="" class="svelte-1tntk73"/></span>`),ii=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),ai=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),oi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),si=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),ci=Y(`<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73">Contatti</h5> <ul class="list-unstyled svelte-1tntk73"><!> <!> <!> <!></ul></div>`),li=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),ui=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),di=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),fi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),pi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),mi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),hi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),gi=Y(`<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73">Social</h5> <ul class="list-unstyled svelte-1tntk73"><!> <!> <!> <!> <!> <!> <!></ul></div>`),_i=Y(`<li class="svelte-1tntk73"><button part="column-cell-button-content" style="padding:0px" class="btn text-small svelte-1tntk73"> </button></li>`),vi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),yi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),bi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),xi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),Si=Y(`<li class="svelte-1tntk73"><button part="column-cell-button-content" style="padding:0px" class="btn text-small svelte-1tntk73"> </button></li>`),Ci=Y(`<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73"> </h5> <ul class="list-unstyled svelte-1tntk73"></ul></div>`),wi=Y(`<div class="row svelte-1tntk73"><div style="padding:20px 20px"><div class="row svelte-1tntk73"><div class="col svelte-1tntk73"><!> </div></div> <div id="description" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div> <div id="company" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div> <div id="fiscal" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div></div> <!> <!> <!></div>`),Ti=Y(`<a target="_blank" class="btn btn-link svelte-1tntk73"> </a>`),Ei=Y(`<button class="btn btn-link svelte-1tntk73"> </button>`),Di=Y(`<div class="col svelte-1tntk73" style="margin:20px auto 20px auto;max-height:20px;text-align:center;font-size:0.9rem;"><!></div>`),Oi=Y(`<div class="col svelte-1tntk73" style="max-height:20px;text-align:center;font-size:0.8rem;margin:10px auto 5px auto"> </div>`),ki=Y(`<!> <div class="container svelte-1tntk73"><!> <!> <div class="row svelte-1tntk73"><!></div> <div class="row svelte-1tntk73"><!></div></div>`,1),Ai=Y(`<footer class="svelte-1tntk73"><!></footer>`),ji={hash:`svelte-1tntk73`,code:`@charset "UTF-8";
|
|
3
|
+
\r\f\xA0\v`];function Pr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Nr.includes(r[o-1]))&&(s===r.length||Nr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Q(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=Pr(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Fr=Symbol(`is custom element`),Ir=Symbol(`is html`),Lr=ge?`link`:`LINK`;function Rr(e,t,n,r){var i=zr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Lr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Vr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $(e,t,n){var r=B,i=H;let a=C;C&&w(!1),V(null),U(null);try{t!==`style`&&(Br.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Vr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Rr(e,t,n==null?n:String(n))}finally{V(r),U(i),a&&w(!0)}}function zr(e){return e.__attributes??={[Fr]:e.nodeName.includes(`-`),[Ir]:e.namespaceURI===r}}var Br=new Map;function Vr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Br.get(t);if(n)return n;Br.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Hr(e,t,n,r){var i=!ze||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Zn(r):r),s);let d;if(a){var f=fe in e||pe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=nt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&we(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?kt:jt)(()=>(_=!1,h()));a&&J(v);var y=H;return(function(e,t){if(arguments.length>0){let n=t?J(v):i&&a?Yt(e):e;return Wt(v,n),_=!0,s!==void 0&&(s=n),e}return Nn&&_||y.f&16384?v.v:J(v)})}function Ur(e){return new Wr(e)}var Wr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Ut(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return J(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===pe?!0:(J(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return Wt(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?hr:mr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Re&&(!e?.props?.$$host||e.sync===!1)&&ft(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{yr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Gr;typeof HTMLElement==`function`&&(Gr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=an(`slot`);e!==`default`&&(n.name=e),X(t,n)}}let t={},n=qr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Kr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Ur({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=hn(()=>{yn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Kr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Kr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Kr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function qr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Jr(e,t,n,r,i,a){let o=class extends Gr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Kr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Yr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.9`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Xr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Zr=Y(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1tntk73"/>`),Qr=Y(`<div class="expand_from_small_footer svelte-1tntk73"><i class="bi bi-arrow-up-square-fill svelte-1tntk73"></i></div>`),$r=Y(`<span class="svelte-1tntk73"><img style="height: 100%;" alt="" class="svelte-1tntk73"/></span>`),ei=Y(`<div style="max-height:40px;height:40px;margin:10px auto 5px auto" class="svelte-1tntk73"><!> </div>`),ti=Y(`<div class="container-fluid svelte-1tntk73"><div class="container svelte-1tntk73" style="position:relative"><!> <div id="footer_small_content" class="svelte-1tntk73"><!></div></div></div>`),ni=Y(`<div class="container-fluid svelte-1tntk73"><div class="container svelte-1tntk73" style="position:relative"><div style="margin-top:10px;" class="expand_from_small_footer svelte-1tntk73"><i class="bi bi-arrow-down-square-fill svelte-1tntk73"></i></div></div></div>`),ri=Y(`<span class="svelte-1tntk73"><img style="height: 40px" alt="" class="svelte-1tntk73"/></span>`),ii=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),ai=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),oi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),si=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),ci=Y(`<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73">Contatti</h5> <ul class="list-unstyled svelte-1tntk73"><!> <!> <!> <!></ul></div>`),li=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),ui=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),di=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),fi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),pi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),mi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),hi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),gi=Y(`<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73">Social</h5> <ul class="list-unstyled svelte-1tntk73"><!> <!> <!> <!> <!> <!> <!></ul></div>`),_i=Y(`<li class="svelte-1tntk73"><button part="column-cell-button-content" style="padding:0px" class="btn text-small svelte-1tntk73"> </button></li>`),vi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),yi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),bi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),xi=Y(`<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>`,2),Si=Y(`<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73"> </h5> <ul class="list-unstyled svelte-1tntk73"></ul></div>`),Ci=Y(`<div class="row svelte-1tntk73"><div style="padding:20px 20px"><div class="row svelte-1tntk73"><div class="col svelte-1tntk73"><!> </div></div> <div id="description" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div> <div id="company" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div> <div id="fiscal" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div></div> <!> <!> <!></div>`),wi=Y(`<a target="_blank" class="btn btn-link svelte-1tntk73"> </a>`),Ti=Y(`<button class="btn btn-link svelte-1tntk73"> </button>`),Ei=Y(`<div class="col svelte-1tntk73" style="margin:20px auto 20px auto;max-height:20px;text-align:center;font-size:0.9rem;"><!></div>`),Di=Y(`<div class="col svelte-1tntk73" style="max-height:20px;text-align:center;font-size:0.8rem;margin:10px auto 5px auto"> </div>`),Oi=Y(`<!> <div class="container svelte-1tntk73"><!> <!> <div class="row svelte-1tntk73"><!></div> <div class="row svelte-1tntk73"><!></div></div>`,1),ki=Y(`<footer class="svelte-1tntk73"><!></footer>`),Ai={hash:`svelte-1tntk73`,code:`@charset "UTF-8";
|
|
4
4
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
5
5
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
6
6
|
/*!
|
|
@@ -182,5 +182,5 @@ button.svelte-1tntk73 {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
182
182
|
@media (min-width: 1200px) {.fs-1.svelte-1tntk73 {font-size:2.5rem !important;}.fs-2.svelte-1tntk73 {font-size:2rem !important;}.fs-3.svelte-1tntk73 {font-size:1.75rem !important;}.fs-4.svelte-1tntk73 {font-size:1.5rem !important;}
|
|
183
183
|
}
|
|
184
184
|
@media print {.d-print-inline.svelte-1tntk73 {display:inline !important;}.d-print-inline-block.svelte-1tntk73 {display:inline-block !important;}.d-print-block.svelte-1tntk73 {display:block !important;}.d-print-grid.svelte-1tntk73 {display:grid !important;}.d-print-inline-grid.svelte-1tntk73 {display:inline-grid !important;}.d-print-table.svelte-1tntk73 {display:table !important;}.d-print-table-row.svelte-1tntk73 {display:table-row !important;}.d-print-table-cell.svelte-1tntk73 {display:table-cell !important;}.d-print-flex.svelte-1tntk73 {display:flex !important;}.d-print-inline-flex.svelte-1tntk73 {display:inline-flex !important;}.d-print-none.svelte-1tntk73 {display:none !important;}
|
|
185
|
-
}:host {font-family:"Roboto", sans-serif;padding-top:80px;background-color:inherit;}.expand_from_small_footer.svelte-1tntk73 {position:absolute;top:0px;right:0px;cursor:pointer;width:25px;text-align:center;}#footer_small_content.svelte-1tntk73 {height:50px;}hb-contact-item.svelte-1tntk73 {display:block;margin-bottom:20px;}`};function
|
|
185
|
+
}:host {font-family:"Roboto", sans-serif;padding-top:80px;background-color:inherit;}.expand_from_small_footer.svelte-1tntk73 {position:absolute;top:0px;right:0px;cursor:pointer;width:25px;text-align:center;}#footer_small_content.svelte-1tntk73 {height:50px;}hb-contact-item.svelte-1tntk73 {display:block;margin-bottom:20px;}`};function ji(e,t){Ve(t,!0),Mr(e,Ai);let n=Hr(t,`id`,7,``),r=Hr(t,`type`,7,`regular`),i=Hr(t,`company`,7),a=Hr(t,`brandandcontacts`,7,void 0),o=Hr(t,`columns`,23,()=>[]),s=Hr(t,`disable_expanding_small`,7,!1),c=Hr(t,`socials`,7,void 0),l=Hr(t,`contacts`,7,void 0),u=Hr(t,`policies`,7,void 0),d=Ht(!1);pn(()=>{if(r()!==`small`&&r()!==`regular`&&r()!==`large`&&r(`regular`),typeof s()==`string`&&(s()===`yes`||s()===`true`?s(!0):s(!1)),!i())console.warn(`no company provided!`);else if(typeof i()==`string`)try{i(JSON.parse(i()))}catch{console.warn(`company is not a valid JSON`)}if(typeof o()==`string`)try{o(JSON.parse(o()))}catch{console.warn(`columns is not a valid JSON`)}if(Array.isArray(o())){let e=0;for(let t of o()){if(t._id||=`ccc_`+e.toString(),e++,!Array.isArray(t.cells))continue;let n=new Set;t.cells.forEach((e,r)=>{let i=typeof e._id==`string`&&e._id.trim()!==``?e._id.trim():`cell_${t._id}_${r}`;for(;n.has(i);)i=`${i}_${n.size}`;n.add(i),e._id=i})}}if(typeof a()==`string`)try{a(JSON.parse(a()))}catch{}if(typeof c()==`string`)try{c(JSON.parse(c()))}catch{console.warn(`socials is not a valid JSON`)}if(typeof l()==`string`)try{l(JSON.parse(l()))}catch{console.warn(`contacts is not a valid JSON`)}if(l()&&typeof l()==`object`){let e=(e,t)=>{if(!e?.length)return;let n=new Set;e.forEach((e,r)=>{let i=typeof e._id==`string`&&e._id.trim()!==``?e._id.trim():`${t}_${r}`;for(;n.has(i);)i=`${i}_${n.size}`;n.add(i),e._id=i})};e(l().phones,`phone`),e(l().emails,`email`),e(l().addresses,`address`),e(l().sites,`site`)}if(typeof u()==`string`)try{u(JSON.parse(u()))}catch{}if(Array.isArray(u())){let e=new Set;u().forEach((t,n)=>{let r=typeof t.key==`string`&&t.key.trim()!==``?t.key.trim():`policy_${n}`,i=r,a=0;for(;e.has(r);)a++,r=`${i}_${a}`;e.add(r),t.key=r})}});function f(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}function p(e){f(`footerClick`,{elClick:e})}Xr({repoName:`@htmlbricks/hb-contact-item`,version:Yr.version});var m={get id(){return n()},set id(e=``){n(e),ft()},get type(){return r()},set type(e=`regular`){r(e),ft()},get company(){return i()},set company(e){i(e),ft()},get brandandcontacts(){return a()},set brandandcontacts(e=void 0){a(e),ft()},get columns(){return o()},set columns(e=[]){o(e),ft()},get disable_expanding_small(){return s()},set disable_expanding_small(e=!1){s(e),ft()},get socials(){return c()},set socials(e=void 0){c(e),ft()},get contacts(){return l()},set contacts(e=void 0){l(e),ft()},get policies(){return u()},set policies(e=void 0){u(e),ft()}},h=ki();jr(`1tntk73`,e=>{X(e,Zr())});var g=P(h),_=e=>{var n=ti(),r=P(n),a=P(r),o=e=>{var t=Qr();tr(`click`,t,()=>{Wt(d,!0)}),X(e,t)};Z(a,e=>{s()||e(o)});var c=I(a,2);Ar(P(c),t,`footer_small`,{},e=>{var t=ur(),n=F(t),r=e=>{var t=ei(),n=P(t),r=e=>{var t=$r(),n=P(t);D(t),L(()=>Rr(n,`src`,i().logoUri)),X(e,t)};Z(n,e=>{i().logoUri&&e(r)});var a=I(n);D(t),L(e=>pr(a,` ${e??``}`),[()=>new Date().getFullYear().toString()+` `+(i()?.companyName?` - `+(i()?.companyName||``):``)]),X(e,t)};Z(n,e=>{i()?.siteName&&e(r)}),X(e,t)}),D(c),D(r),D(n),X(e,n)},v=e=>{var n=Oi(),r=F(n),a=e=>{var t=ni(),n=P(t),r=P(n);D(n),D(t),tr(`click`,r,()=>{Wt(d,!1)}),X(e,t)};Z(r,e=>{J(d)&&e(a)});var s=I(r,2),f=P(s);Ar(f,t,`footerheader`,{class:`row`},e=>{});var m=I(f,2);Ar(m,t,`footercontent`,{},e=>{var t=Ci(),n=P(t),r=P(n),a=P(r),s=P(a),u=e=>{var t=ri(),n=P(t);D(t),L(()=>Rr(n,`src`,i().logoUri)),X(e,t)};Z(s,e=>{i()?.logoUri&&e(u)});var d=I(s);D(a),D(r);var f=I(r,2),m=P(f,!0);D(f);var h=I(f,2),g=P(h,!0);D(h);var _=I(h,2),v=P(_,!0);D(_),D(n);var y=I(n,2),b=e=>{var t=ci(),n=I(P(t),2),r=P(n),i=e=>{var t=ur();wr(F(t),19,()=>l().phones,(e,t)=>`hb-footer-phone-${t}`,(e,t)=>{var n=ii(),r=P(n);L(()=>$(r,`phone`,JSON.stringify(J(t)))),Q(r,1,`svelte-1tntk73`),D(n),X(e,n)}),X(e,t)};Z(r,e=>{l().phones?.length&&e(i)});var a=I(r,2),s=e=>{var t=ur();wr(F(t),19,()=>l().addresses,(e,t)=>`hb-footer-address-${t}`,(e,t)=>{var n=ai(),r=P(n);L(()=>$(r,`address`,JSON.stringify(J(t)))),Q(r,1,`svelte-1tntk73`),D(n),X(e,n)}),X(e,t)};Z(a,e=>{l().addresses?.length&&e(s)});var u=I(a,2),d=e=>{var t=ur();wr(F(t),19,()=>l().emails,(e,t)=>`hb-footer-email-${t}`,(e,t)=>{var n=oi(),r=P(n);L(()=>$(r,`email`,JSON.stringify(J(t)))),Q(r,1,`svelte-1tntk73`),D(n),X(e,n)}),X(e,t)};Z(u,e=>{l().emails?.length&&e(d)});var f=I(u,2),p=e=>{var t=ur();wr(F(t),19,()=>l().sites,(e,t)=>`hb-footer-site-${t}`,(e,t)=>{var n=si(),r=P(n);L(()=>$(r,`site`,JSON.stringify(J(t)))),Q(r,1,`svelte-1tntk73`),D(n),X(e,n)}),X(e,t)};Z(f,e=>{l().sites?.length&&e(p)}),D(n),D(t),L(()=>Q(t,1,`col-md-${12/(1+(l()?1:0)+(c()?1:0)+(o()?.length?o().length:0))}`,`svelte-1tntk73`)),X(e,t)};Z(y,e=>{l()&&e(b)});var x=I(y,2),S=e=>{var t=gi(),n=I(P(t),2),r=P(n),i=e=>{var t=li(),n=P(t);$(n,`social`,JSON.stringify({name:`facebook`,label:`pagina facebook`,pageUri:`https://facebook.com`})),Q(n,1,`svelte-1tntk73`),D(t),X(e,t)};Z(r,e=>{c().facebook&&e(i)});var a=I(r,2),s=e=>{var t=ui(),n=P(t);$(n,`social`,JSON.stringify({name:`gmail`,label:`pagina gmail`,pageUri:`https://gmail.com`})),Q(n,1,`svelte-1tntk73`),D(t),X(e,t)};Z(a,e=>{c()?.gmail&&e(s)});var u=I(a,2),d=e=>{var t=di(),n=P(t);$(n,`social`,JSON.stringify({name:`twitter`,label:`pagina twitter`,pageUri:`https://twitter.com`})),Q(n,1,`svelte-1tntk73`),D(t),X(e,t)};Z(u,e=>{c()?.twitter&&e(d)});var f=I(u,2),p=e=>{var t=fi(),n=P(t);L(()=>$(n,`social`,JSON.stringify({name:`github`,label:`pagina github`,pageUri:c().github}))),Q(n,1,`svelte-1tntk73`),D(t),X(e,t)};Z(f,e=>{c()?.github&&e(p)});var m=I(f,2),h=e=>{var t=pi(),n=P(t);$(n,`social`,JSON.stringify({name:`twitch`,label:`pagina twitch`,pageUri:`https://twitch.com`})),Q(n,1,`svelte-1tntk73`),D(t),X(e,t)};Z(m,e=>{c()?.twitch&&e(h)});var g=I(m,2),_=e=>{var t=mi(),n=P(t);$(n,`social`,JSON.stringify({name:`youtube`,label:`pagina youtube`,pageUri:`https://youtube.com`})),Q(n,1,`svelte-1tntk73`),D(t),X(e,t)};Z(g,e=>{c()?.youtube&&e(_)});var v=I(g,2),y=e=>{var t=hi(),n=P(t);$(n,`social`,JSON.stringify({name:`discord`,label:`pagina discord`,pageUri:`https://discord.com`})),Q(n,1,`svelte-1tntk73`),D(t),X(e,t)};Z(v,e=>{c()?.discord&&e(y)}),D(n),D(t),L(()=>Q(t,1,`col-md-${12/(1+(l()?1:0)+(c()?1:0)+(o()?.length?o().length:0))}`,`svelte-1tntk73`)),X(e,t)};Z(x,e=>{c()&&e(S)});var ee=I(x,2),te=e=>{var t=ur();wr(F(t),19,o,(e,t)=>`hb-footer-column-${t}`,(e,t,n)=>{var r=Si(),i=P(r),a=P(i,!0);D(i);var s=I(i,2);wr(s,23,()=>J(t).cells,(e,t)=>`hb-footer-cell-${J(n)}-${t}`,(e,t)=>{var n=ur(),r=F(n),i=e=>{var n=_i(),r=P(n),i=P(r,!0);D(r),D(n),L(()=>pr(i,J(t).label)),tr(`click`,r,()=>p(J(t)._id)),X(e,n)},a=e=>{var n=vi(),r=P(n);L(()=>$(r,`phone`,JSON.stringify(J(t).phone))),Q(r,1,`svelte-1tntk73`),D(n),X(e,n)},o=e=>{var n=yi(),r=P(n);L(()=>$(r,`address`,JSON.stringify(J(t).address))),Q(r,1,`svelte-1tntk73`),D(n),X(e,n)},s=e=>{var n=bi(),r=P(n);L(()=>$(r,`email`,JSON.stringify(J(t).email))),Q(r,1,`svelte-1tntk73`),D(n),X(e,n)},c=e=>{var n=xi(),r=P(n);L(()=>$(r,`site`,JSON.stringify(J(t).site))),Q(r,1,`svelte-1tntk73`),D(n),X(e,n)};Z(r,e=>{J(t).label?e(i):J(t).phone?e(a,1):J(t).address?e(o,2):J(t).email?e(s,3):J(t).site&&e(c,4)}),X(e,n)}),D(s),D(r),L(()=>{Q(r,1,`col-md-${12/(1+(l()?1:0)+(c()?1:0)+(o()?.length?o().length:0))}`,`svelte-1tntk73`),pr(a,J(t).title?J(t).title:``)}),X(e,r)}),X(e,t)};Z(ee,e=>{o()?.length&&e(te)}),D(t),L(()=>{Q(n,1,`col-md-${12/(1+(l()?1:0)+(c()?1:0)+(o()?.length?o().length:0))}`,`svelte-1tntk73`),pr(d,` ${(i()?.siteName||``)??``}`),pr(m,i()?.description||``),pr(g,i()?.companyName||``),pr(v,i()?.vatNumber||i()?.fiscalCode||``)}),X(e,t)});var h=I(m,2);Ar(P(h),t,`footerpolicy`,{},e=>{var t=ur(),n=F(t),r=e=>{var t=ur();wr(F(t),19,u,(e,t)=>`hb-footer-policy-${t}`,(e,t)=>{var n=Ei(),r=P(n),i=e=>{var n=wi(),r=P(n,!0);D(n),L(()=>{Rr(n,`href`,J(t).link),pr(r,J(t).label)}),X(e,n)},a=e=>{var n=Ti(),r=P(n,!0);D(n),L(()=>pr(r,J(t).label)),tr(`click`,n,()=>p(J(t).key)),X(e,n)};Z(r,e=>{J(t).link?e(i):e(a,-1)}),D(n),X(e,n)}),X(e,t)};Z(n,e=>{u()?.length&&e(r)}),X(e,t)}),D(h);var g=I(h,2);Ar(P(g),t,`footerbottom`,{},e=>{var t=ur(),n=F(t),r=e=>{var t=Di(),n=P(t,!0);D(t),L(e=>pr(n,e),[()=>i()?.registration?.text||(i().since?`${i().since?.toString()} - `:``)+new Date().getFullYear().toString()+` `+(i()?.companyName?` - `+(i()?.companyName||``):``)]),X(e,t)};Z(n,e=>{i()?.siteName&&e(r)}),X(e,t)}),D(g),D(s),X(e,n)},y=e=>{X(e,lr(`large`))};return Z(g,e=>{r()===`small`&&!J(d)?e(_):r()===`regular`||r()===`small`&&J(d)?e(v,1):r()===`large`&&e(y,2)}),D(h),X(e,h),He(m)}nr([`click`]),customElements.define(`hb-footer`,Jr(ji,{id:{},type:{},company:{},brandandcontacts:{},columns:{},disable_expanding_small:{},socials:{},contacts:{},policies:{}},[`footer_small`,`footerheader`,`footercontent`,`footerpolicy`,`footerbottom`],[],{mode:`open`})),e.Component=ji})(this.footer=this.footer||{});
|
|
186
186
|
//# sourceMappingURL=main.iife.js.map
|