@luigi-project/container
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,2 +0,2 @@ | ||
function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let c,s;function u(t,e){return c||(c=document.createElement("a")),c.href=e,t===c.href}function a(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function d(t){return document.createElement(t)}function f(){return t="",document.createTextNode(t);var t}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function h(t){const e={};for(const n of t)e[n.name]=n.value;return e}function m(t){s=t}function _(){if(!s)throw new Error("Function called outside component initialization");return s}const g=[],b=[],y=[],v=[],w=Promise.resolve();let $=!1;function C(t){y.push(t)}const x=new Set;let F=0;function E(){const t=s;do{for(;F<g.length;){const t=g[F];F++,m(t),k(t.$$)}for(m(null),g.length=0,F=0;b.length;)b.pop()();for(let t=0;t<y.length;t+=1){const e=y[t];x.has(e)||(x.add(e),e())}y.length=0}while(g.length);for(;v.length;)v.pop()();$=!1,x.clear(),m(t)}function k(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(C)}}const S=new Set;function O(t,e){-1===t.$$.dirty[0]&&(g.push(t),$||($=!0,w.then(E)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function M(i,c,u,a,d,f,p,h=[-1]){const _=s;m(i);const g=i.$$={fragment:null,ctx:null,props:f,update:t,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c.context||(_?_.$$.context:[])),callbacks:n(),dirty:h,skip_bound:!1,root:c.target||_.$$.root};p&&p(g.root);let b=!1;if(g.ctx=u?u(i,c.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return g.ctx&&d(g.ctx[t],g.ctx[t]=o)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](o),b&&O(i,t)),e})):[],g.update(),b=!0,o(g.before_update),g.fragment=!!a&&a(g.ctx),c.target){if(c.hydrate){const t=function(t){return Array.from(t.childNodes)}(c.target);g.fragment&&g.fragment.l(t),t.forEach(l)}else g.fragment&&g.fragment.c();c.intro&&((y=i.$$.fragment)&&y.i&&(S.delete(y),y.i(v))),function(t,n,i,c){const{fragment:s,on_mount:u,on_destroy:a,after_update:l}=t.$$;s&&s.m(n,i),c||C((()=>{const n=u.map(e).filter(r);a?a.push(...n):o(n),t.$$.on_mount=[]})),l.forEach(C)}(i,c.target,c.anchor,c.customElement),E()}var y,v;m(_)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I(t){var e={exports:{}};return t(e,e.exports),e.exports}var P=I((function(t,e){function n(){}Object.defineProperty(e,"__esModule",{value:!0});const o=t=>t;function r(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t&&"object"==typeof t&&"function"==typeof t.then}function c(t){return t()}function s(){return Object.create(null)}function u(t){t.forEach(c)}function a(t){return"function"==typeof t}let l;function d(t){return 0===Object.keys(t).length}function f(t,...e){if(null==t)return n;const o=t.subscribe(...e);return o.unsubscribe?()=>o.unsubscribe():o}function p(t,e,n,o){return t[1]&&o?r(n.ctx.slice(),t[1](o(e))):n.ctx}function h(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|r[o];return t}return e.dirty|r}return e.dirty}function m(t,e,n,o,r,i){if(r){const c=p(e,n,o,i);t.p(c,r)}}const _=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const g="undefined"!=typeof window;e.now=g?()=>window.performance.now():()=>Date.now(),e.raf=g?t=>requestAnimationFrame(t):n;const b=new Set;function y(t){b.forEach((e=>{e.c(t)||(b.delete(e),e.f())})),0!==b.size&&e.raf(y)}function v(t){let n;return 0===b.size&&e.raf(y),{promise:new Promise((e=>{b.add(n={c:t,f:e})})),abort(){b.delete(n)}}}let w,$=!1;function C(){$=!0}function x(){$=!1}function F(t,e,n,o){for(;t<e;){const r=t+(e-t>>1);n(r)<=o?t=r+1:e=r}return t}function E(t,e){t.appendChild(e)}function k(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function S(t){const e=T("style");return O(k(t),e),e.sheet}function O(t,e){E(t.head||t,e)}function M(t,e){if($){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const o=e[n];void 0!==o.claim_order&&t.push(o)}e=t}const n=new Int32Array(e.length+1),o=new Int32Array(e.length);n[0]=-1;let r=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,c=(r>0&&e[n[r]].claim_order<=i?r+1:F(1,r,(t=>e[n[t]].claim_order),i))-1;o[t]=n[c]+1;const s=c+1;n[s]=t,r=Math.max(s,r)}const i=[],c=[];let s=e.length-1;for(let t=n[r]+1;0!=t;t=o[t-1]){for(i.push(e[t-1]);s>=t;s--)c.push(e[s]);s--}for(;s>=0;s--)c.push(e[s]);i.reverse(),c.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<c.length;e++){for(;n<i.length&&c[e].claim_order>=i[n].claim_order;)n++;const o=n<i.length?i[n]:null;t.insertBefore(c[e],o)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function j(t,e,n){t.insertBefore(e,n||null)}function I(t,e,n){$&&!n?M(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function P(t){t.parentNode.removeChild(t)}function T(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function W(t){return document.createTextNode(t)}function D(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function L(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function U(t){return Array.from(t.childNodes)}function N(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function H(t,e,n,o,r=!1){N(t);const i=(()=>{for(let o=t.claim_info.last_index;o<t.length;o++){const i=t[o];if(e(i)){const e=n(i);return void 0===e?t.splice(o,1):t[o]=e,r||(t.claim_info.last_index=o),i}}for(let o=t.claim_info.last_index-1;o>=0;o--){const i=t[o];if(e(i)){const e=n(i);return void 0===e?t.splice(o,1):t[o]=e,r?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=o,i}}return o()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function q(t,e,n,o){return H(t,(t=>t.nodeName===e),(t=>{const e=[];for(let o=0;o<t.attributes.length;o++){const r=t.attributes[o];n[r.name]||e.push(r.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>o(e)))}function B(t,e){return H(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>W(e)),!0)}function z(t,e,n){for(let o=n;o<t.length;o+=1){const n=t[o];if(8===n.nodeType&&n.textContent.trim()===e)return o}return t.length}function V(){if(void 0===w){w=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){w=!0}}return w}function G(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}class J{constructor(){this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){this.e||(this.e=T(e.nodeName),this.t=e,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)j(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(P)}}class Y extends J{constructor(t){super(),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)I(this.t,this.n[e],t)}}const K=new Map;let Q=0;function X(t,e,n,o,r,i,c,s=0){const u=16.666/o;let a="{\n";for(let t=0;t<=1;t+=u){const o=e+(n-e)*i(t);a+=100*t+`%{${c(o,1-o)}}\n`}const l=a+`100% {${c(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(l)}_${s}`,f=k(t),{stylesheet:p,rules:h}=K.get(f)||function(t,e){const n={stylesheet:S(e),rules:{}};return K.set(t,n),n}(f,t);h[d]||(h[d]=!0,p.insertRule(`@keyframes ${d} ${l}`,p.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${d} ${o}ms linear ${r}ms 1 both`,Q+=1,d}function Z(t,n){const o=(t.style.animation||"").split(", "),r=o.filter(n?t=>t.indexOf(n)<0:t=>-1===t.indexOf("__svelte")),i=o.length-r.length;i&&(t.style.animation=r.join(", "),Q-=i,Q||e.raf((()=>{Q||(K.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),K.clear())})))}function tt(t,e){const n=t.getBoundingClientRect();if(e.left!==n.left||e.top!==n.top){const o=getComputedStyle(t),r="none"===o.transform?"":o.transform;t.style.transform=`${r} translate(${e.left-n.left}px, ${e.top-n.top}px)`}}function et(t){e.current_component=t}function nt(){if(!e.current_component)throw new Error("Function called outside component initialization");return e.current_component}const ot=[],rt=[],it=[],ct=[],st=Promise.resolve();let ut=!1;function at(){ut||(ut=!0,st.then(ht))}function lt(t){it.push(t)}const dt=new Set;let ft,pt=0;function ht(){const t=e.current_component;do{for(;pt<ot.length;){const t=ot[pt];pt++,et(t),mt(t.$$)}for(et(null),ot.length=0,pt=0;rt.length;)rt.pop()();for(let t=0;t<it.length;t+=1){const e=it[t];dt.has(e)||(dt.add(e),e())}it.length=0}while(ot.length);for(;ct.length;)ct.pop()();ut=!1,dt.clear(),et(t)}function mt(t){if(null!==t.fragment){t.update(),u(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(lt)}}function _t(){return ft||(ft=Promise.resolve(),ft.then((()=>{ft=null}))),ft}function gt(t,e,n){t.dispatchEvent(G(`${e?"intro":"outro"}${n}`))}const bt=new Set;let yt;function vt(){yt={r:0,c:[],p:yt}}function wt(){yt.r||u(yt.c),yt=yt.p}function $t(t,e){t&&t.i&&(bt.delete(t),t.i(e))}function Ct(t,e,n,o){if(t&&t.o){if(bt.has(t))return;bt.add(t),yt.c.push((()=>{bt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}const xt={duration:0};const Ft="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:A;function Et(t,e){t.d(1),e.delete(t.key)}function kt(t,e){Ct(t,1,1,(()=>{e.delete(t.key)}))}const St=new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),Ot=/[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;function Mt(t,e){const n={};for(const e of t.split(";")){const t=e.indexOf(":"),o=e.slice(0,t).trim(),r=e.slice(t+1).trim();o&&(n[o]=r)}for(const t in e){const o=e[t];o?n[t]=o:delete n[t]}return n}const jt={'"':""","'":"'","&":"&","<":"<",">":">"};function At(t){return String(t).replace(/["'&<>]/g,(t=>jt[t]))}function It(t){return"string"==typeof t?At(t):t}let Pt;function Tt(t){return Object.keys(t).filter((e=>t[e])).map((e=>`${e}: ${t[e]};`)).join(" ")}function Rt(t,e,n,o){const{fragment:r,on_mount:i,on_destroy:s,after_update:l}=t.$$;r&&r.m(e,n),o||lt((()=>{const e=i.map(c).filter(a);s?s.push(...e):u(e),t.$$.on_mount=[]})),l.forEach(lt)}function Wt(t,e){const n=t.$$;null!==n.fragment&&(u(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}"function"==typeof HTMLElement&&(e.SvelteElement=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(c).filter(a);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){u(this.$$.on_disconnect)}$destroy(){Wt(this,1),this.$destroy=n}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!d(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Dt{$destroy(){Wt(this,1),this.$destroy=n}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!d(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Lt(t,e){document.dispatchEvent(G(t,Object.assign({version:"3.46.4"},e),!0))}function Ut(t){Lt("SvelteDOMRemove",{node:t}),P(t)}class Nt extends Dt{constructor(t){if(!t||!t.target&&!t.$$inline)throw new Error("'target' is a required option");super()}$destroy(){super.$destroy(),this.$destroy=()=>{console.warn("Component was already destroyed")}}$capture_state(){}$inject_state(){}}e.HtmlTag=J,e.HtmlTagHydration=Y,e.SvelteComponent=Dt,e.SvelteComponentDev=Nt,e.SvelteComponentTyped=class extends Nt{constructor(t){super(t)}},e.action_destroyer=function(t){return t&&a(t.destroy)?t.destroy:n},e.add_attribute=function(t,e,n){return null==e||n&&!e?"":` ${t}${!0===e&&St.has(t)?"":`=${"string"==typeof e?JSON.stringify(At(e)):`"${e}"`}`}`},e.add_classes=function(t){return t?` class="${t}"`:""},e.add_flush_callback=function(t){ct.push(t)},e.add_location=function(t,e,n,o,r){t.__svelte_meta={loc:{file:e,line:n,column:o,char:r}}},e.add_render_callback=lt,e.add_resize_listener=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=V();let r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=D(window,"message",(t=>{t.source===n.contentWindow&&e()}))):(n.src="about:blank",n.onload=()=>{r=D(n.contentWindow,"resize",e)}),E(t,n),()=>{(o||r&&n.contentWindow)&&r(),P(n)}},e.add_styles=function(t){const e=Tt(t);return e?` style="${e}"`:""},e.add_transform=tt,e.afterUpdate=function(t){nt().$$.after_update.push(t)},e.append=E,e.append_dev=function(t,e){Lt("SvelteDOMInsert",{target:t,node:e}),E(t,e)},e.append_empty_stylesheet=S,e.append_hydration=M,e.append_hydration_dev=function(t,e){Lt("SvelteDOMInsert",{target:t,node:e}),M(t,e)},e.append_styles=function(t,e,n){const o=k(t);if(!o.getElementById(e)){const t=T("style");t.id=e,t.textContent=n,O(o,t)}},e.assign=r,e.attr=L,e.attr_dev=function(t,e,n){L(t,e,n),null==n?Lt("SvelteDOMRemoveAttribute",{node:t,attribute:e}):Lt("SvelteDOMSetAttribute",{node:t,attribute:e,value:n})},e.attribute_to_object=function(t){const e={};for(const n of t)e[n.name]=n.value;return e},e.beforeUpdate=function(t){nt().$$.before_update.push(t)},e.bind=function(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))},e.binding_callbacks=rt,e.blank_object=s,e.bubble=function(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))},e.check_outros=wt,e.children=U,e.claim_component=function(t,e){t&&t.l(e)},e.claim_element=function(t,e,n){return q(t,e,n,T)},e.claim_html_tag=function(t){const e=z(t,"HTML_TAG_START",0),n=z(t,"HTML_TAG_END",e);if(e===n)return new Y;N(t);const o=t.splice(e,n-e+1);P(o[0]),P(o[o.length-1]);const r=o.slice(1,o.length-1);for(const e of r)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new Y(r)},e.claim_space=function(t){return B(t," ")},e.claim_svg_element=function(t,e,n){return q(t,e,n,R)},e.claim_text=B,e.clear_loops=function(){b.clear()},e.component_subscribe=function(t,e,n){t.$$.on_destroy.push(f(e,n))},e.compute_rest_props=function(t,e){const n={};e=new Set(e);for(const o in t)e.has(o)||"$"===o[0]||(n[o]=t[o]);return n},e.compute_slots=function(t){const e={};for(const n in t)e[n]=!0;return e},e.createEventDispatcher=function(){const t=nt();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const r=G(e,n);o.slice().forEach((e=>{e.call(t,r)}))}}},e.create_animation=function(t,r,i,c){if(!r)return n;const s=t.getBoundingClientRect();if(r.left===s.left&&r.right===s.right&&r.top===s.top&&r.bottom===s.bottom)return n;const{delay:u=0,duration:a=300,easing:l=o,start:d=e.now()+u,end:f=d+a,tick:p=n,css:h}=i(t,{from:r,to:s},c);let m,_=!0,g=!1;function b(){h&&Z(t,m),_=!1}return v((t=>{if(!g&&t>=d&&(g=!0),g&&t>=f&&(p(1,0),b()),!_)return!1;if(g){const e=0+1*l((t-d)/a);p(e,1-e)}return!0})),h&&(m=X(t,0,1,a,u,l,h)),u||(g=!0),p(0,1),b},e.create_bidirectional_transition=function(t,r,i,c){let s=r(t,i),l=c?0:1,d=null,f=null,p=null;function h(){p&&Z(t,p)}function m(t,e){const n=t.b-l;return e*=Math.abs(n),{a:l,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function _(r){const{delay:i=0,duration:c=300,easing:a=o,tick:_=n,css:g}=s||xt,b={start:e.now()+i,b:r};r||(b.group=yt,yt.r+=1),d||f?f=b:(g&&(h(),p=X(t,l,r,c,i,a,g)),r&&_(0,1),d=m(b,c),lt((()=>gt(t,r,"start"))),v((e=>{if(f&&e>f.start&&(d=m(f,c),f=null,gt(t,d.b,"start"),g&&(h(),p=X(t,l,d.b,d.duration,0,a,s.css))),d)if(e>=d.end)_(l=d.b,1-l),gt(t,d.b,"end"),f||(d.b?h():--d.group.r||u(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;l=d.a+d.d*a(t/d.duration),_(l,1-l)}return!(!d&&!f)})))}return{run(t){a(s)?_t().then((()=>{s=s(),_(t)})):_(t)},end(){h(),d=f=null}}},e.create_component=function(t){t&&t.c()},e.create_in_transition=function(t,r,i){let c,s,u=r(t,i),l=!1,d=0;function f(){c&&Z(t,c)}function p(){const{delay:r=0,duration:i=300,easing:a=o,tick:p=n,css:h}=u||xt;h&&(c=X(t,0,1,i,r,a,h,d++)),p(0,1);const m=e.now()+r,_=m+i;s&&s.abort(),l=!0,lt((()=>gt(t,!0,"start"))),s=v((e=>{if(l){if(e>=_)return p(1,0),gt(t,!0,"end"),f(),l=!1;if(e>=m){const t=a((e-m)/i);p(t,1-t)}}return l}))}let h=!1;return{start(){h||(h=!0,Z(t),a(u)?(u=u(),_t().then(p)):p())},invalidate(){h=!1},end(){l&&(f(),l=!1)}}},e.create_out_transition=function(t,r,i){let c,s=r(t,i),l=!0;const d=yt;function f(){const{delay:r=0,duration:i=300,easing:a=o,tick:f=n,css:p}=s||xt;p&&(c=X(t,1,0,i,r,a,p));const h=e.now()+r,m=h+i;lt((()=>gt(t,!1,"start"))),v((e=>{if(l){if(e>=m)return f(0,1),gt(t,!1,"end"),--d.r||u(d.c),!1;if(e>=h){const t=a((e-h)/i);f(1-t,t)}}return l}))}return d.r+=1,a(s)?_t().then((()=>{s=s(),f()})):f(),{end(e){e&&s.tick&&s.tick(1,0),l&&(c&&Z(t,c),l=!1)}}},e.create_slot=function(t,e,n,o){if(t){const r=p(t,e,n,o);return t[0](r)}},e.create_ssr_component=function(t){function n(n,o,r,i,c){const u=e.current_component;et({$$:{on_destroy:Pt,context:new Map(c||(u?u.$$.context:[])),on_mount:[],before_update:[],after_update:[],callbacks:s()}});const a=t(n,o,r,i);return et(u),a}return{render:(t={},{$$slots:e={},context:o=new Map}={})=>{Pt=[];const r={title:"",head:"",css:new Set},i=n(r,t,{},e,o);return u(Pt),{html:i,css:{code:Array.from(r.css).map((t=>t.code)).join("\n"),map:null},head:r.title+r.head}},$$render:n}},e.custom_event=G,e.dataset_dev=function(t,e,n){t.dataset[e]=n,Lt("SvelteDOMSetDataset",{node:t,property:e,value:n})},e.debug=function(t,e,n,o){return console.log(`{@debug} ${t?t+" ":""}(${e}:${n})`),console.log(o),""},e.destroy_block=Et,e.destroy_component=Wt,e.destroy_each=function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)},e.detach=P,e.detach_after_dev=function(t){for(;t.nextSibling;)Ut(t.nextSibling)},e.detach_before_dev=function(t){for(;t.previousSibling;)Ut(t.previousSibling)},e.detach_between_dev=function(t,e){for(;t.nextSibling&&t.nextSibling!==e;)Ut(t.nextSibling)},e.detach_dev=Ut,e.dirty_components=ot,e.dispatch_dev=Lt,e.each=function(t,e){let n="";for(let o=0;o<t.length;o+=1)n+=e(t[o],o);return n},e.element=T,e.element_is=function(t,e){return document.createElement(t,{is:e})},e.empty=function(){return W("")},e.end_hydrating=x,e.escape=At,e.escape_attribute_value=It,e.escape_object=function(t){const e={};for(const n in t)e[n]=It(t[n]);return e},e.escaped=jt,e.exclude_internal_props=function(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e},e.fix_and_destroy_block=function(t,e){t.f(),Et(t,e)},e.fix_and_outro_and_destroy_block=function(t,e){t.f(),kt(t,e)},e.fix_position=function(t){const e=getComputedStyle(t);if("absolute"!==e.position&&"fixed"!==e.position){const{width:n,height:o}=e,r=t.getBoundingClientRect();t.style.position="absolute",t.style.width=n,t.style.height=o,tt(t,r)}},e.flush=ht,e.getAllContexts=function(){return nt().$$.context},e.getContext=function(t){return nt().$$.context.get(t)},e.get_all_dirty_from_scope=function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1},e.get_binding_group_value=function(t,e,n){const o=new Set;for(let e=0;e<t.length;e+=1)t[e].checked&&o.add(t[e].__value);return n||o.delete(e),Array.from(o)},e.get_current_component=nt,e.get_custom_elements_slots=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e},e.get_root_for_style=k,e.get_slot_changes=h,e.get_spread_object=function(t){return"object"==typeof t&&null!==t?t:{}},e.get_spread_update=function(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const c=t[i],s=e[i];if(s){for(const t in c)t in s||(o[t]=1);for(const t in s)r[t]||(n[t]=s[t],r[t]=1);t[i]=s}else for(const t in c)r[t]=1}for(const t in o)t in n||(n[t]=void 0);return n},e.get_store_value=function(t){let e;return f(t,(t=>e=t))(),e},e.globals=Ft,e.group_outros=vt,e.handle_promise=function(t,e){const n=e.token={};function o(t,o,r,i){if(e.token!==n)return;e.resolved=i;let c=e.ctx;void 0!==r&&(c=c.slice(),c[r]=i);const s=t&&(e.current=t)(c);let u=!1;e.block&&(e.blocks?e.blocks.forEach(((t,n)=>{n!==o&&t&&(vt(),Ct(t,1,1,(()=>{e.blocks[n]===t&&(e.blocks[n]=null)})),wt())})):e.block.d(1),s.c(),$t(s,1),s.m(e.mount(),e.anchor),u=!0),e.block=s,e.blocks&&(e.blocks[o]=s),u&&ht()}if(i(t)){const n=nt();if(t.then((t=>{et(n),o(e.then,1,e.value,t),et(null)}),(t=>{if(et(n),o(e.catch,2,e.error,t),et(null),!e.hasCatch)throw t})),e.current!==e.pending)return o(e.pending,0),!0}else{if(e.current!==e.then)return o(e.then,1,e.value,t),!0;e.resolved=t}},e.hasContext=function(t){return nt().$$.context.has(t)},e.has_prop=_,e.identity=o,e.init=function(t,o,r,i,c,a,l,d=[-1]){const f=e.current_component;et(t);const p=t.$$={fragment:null,ctx:null,props:a,update:n,not_equal:c,bound:s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(o.context||(f?f.$$.context:[])),callbacks:s(),dirty:d,skip_bound:!1,root:o.target||f.$$.root};l&&l(p.root);let h=!1;if(p.ctx=r?r(t,o.props||{},((e,n,...o)=>{const r=o.length?o[0]:n;return p.ctx&&c(p.ctx[e],p.ctx[e]=r)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](r),h&&function(t,e){-1===t.$$.dirty[0]&&(ot.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],p.update(),h=!0,u(p.before_update),p.fragment=!!i&&i(p.ctx),o.target){if(o.hydrate){C();const t=U(o.target);p.fragment&&p.fragment.l(t),t.forEach(P)}else p.fragment&&p.fragment.c();o.intro&&$t(t.$$.fragment),Rt(t,o.target,o.anchor,o.customElement),x(),ht()}et(f)},e.insert=j,e.insert_dev=function(t,e,n){Lt("SvelteDOMInsert",{target:t,node:e,anchor:n}),j(t,e,n)},e.insert_hydration=I,e.insert_hydration_dev=function(t,e,n){Lt("SvelteDOMInsert",{target:t,node:e,anchor:n}),I(t,e,n)},e.intros={enabled:!1},e.invalid_attribute_name_character=Ot,e.is_client=g,e.is_crossorigin=V,e.is_empty=d,e.is_function=a,e.is_promise=i,e.listen=D,e.listen_dev=function(t,e,n,o,r,i){const c=!0===o?["capture"]:o?Array.from(Object.keys(o)):[];r&&c.push("preventDefault"),i&&c.push("stopPropagation"),Lt("SvelteDOMAddEventListener",{node:t,event:e,handler:n,modifiers:c});const s=D(t,e,n,o);return()=>{Lt("SvelteDOMRemoveEventListener",{node:t,event:e,handler:n,modifiers:c}),s()}},e.loop=v,e.loop_guard=function(t){const e=Date.now();return()=>{if(Date.now()-e>t)throw new Error("Infinite loop detected")}},e.merge_ssr_styles=Mt,e.missing_component={$$render:()=>""},e.mount_component=Rt,e.noop=n,e.not_equal=function(t,e){return t!=t?e==e:t!==e},e.null_to_empty=function(t){return null==t?"":t},e.object_without_properties=function(t,e){const n={};for(const o in t)_(t,o)&&-1===e.indexOf(o)&&(n[o]=t[o]);return n},e.onDestroy=function(t){nt().$$.on_destroy.push(t)},e.onMount=function(t){nt().$$.on_mount.push(t)},e.once=function(t){let e=!1;return function(...n){e||(e=!0,t.call(this,...n))}},e.outro_and_destroy_block=kt,e.prevent_default=function(t){return function(e){return e.preventDefault(),t.call(this,e)}},e.prop_dev=function(t,e,n){t[e]=n,Lt("SvelteDOMSetProperty",{node:t,property:e,value:n})},e.query_selector_all=function(t,e=document.body){return Array.from(e.querySelectorAll(t))},e.run=c,e.run_all=u,e.safe_not_equal=function(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t},e.schedule_update=at,e.select_multiple_value=function(t){return[].map.call(t.querySelectorAll(":checked"),(t=>t.__value))},e.select_option=function(t,e){for(let n=0;n<t.options.length;n+=1){const o=t.options[n];if(o.__value===e)return void(o.selected=!0)}t.selectedIndex=-1},e.select_options=function(t,e){for(let n=0;n<t.options.length;n+=1){const o=t.options[n];o.selected=~e.indexOf(o.__value)}},e.select_value=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value},e.self=function(t){return function(e){e.target===this&&t.call(this,e)}},e.setContext=function(t,e){nt().$$.context.set(t,e)},e.set_attributes=function(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)null==e[o]?t.removeAttribute(o):"style"===o?t.style.cssText=e[o]:"__value"===o?t.value=t[o]=e[o]:n[o]&&n[o].set?t[o]=e[o]:L(t,o,e[o])},e.set_current_component=et,e.set_custom_element_data=function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:L(t,e,n)},e.set_data=function(t,e){e=""+e,t.wholeText!==e&&(t.data=e)},e.set_data_dev=function(t,e){e=""+e,t.wholeText!==e&&(Lt("SvelteDOMSetData",{node:t,data:e}),t.data=e)},e.set_input_type=function(t,e){try{t.type=e}catch(t){}},e.set_input_value=function(t,e){t.value=null==e?"":e},e.set_now=function(t){e.now=t},e.set_raf=function(t){e.raf=t},e.set_store_value=function(t,e,n){return t.set(n),e},e.set_style=function(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")},e.set_svg_attributes=function(t,e){for(const n in e)L(t,n,e[n])},e.space=function(){return W(" ")},e.spread=function(t,e){const n=Object.assign({},...t);if(e){const t=e.classes,o=e.styles;t&&(null==n.class?n.class=t:n.class+=" "+t),o&&(null==n.style?n.style=Tt(o):n.style=Tt(Mt(n.style,o)))}let o="";return Object.keys(n).forEach((t=>{if(Ot.test(t))return;const e=n[t];!0===e?o+=" "+t:St.has(t.toLowerCase())?e&&(o+=" "+t):null!=e&&(o+=` ${t}="${e}"`)})),o},e.src_url_equal=function(t,e){return l||(l=document.createElement("a")),l.href=e,t===l.href},e.start_hydrating=C,e.stop_propagation=function(t){return function(e){return e.stopPropagation(),t.call(this,e)}},e.subscribe=f,e.svg_element=R,e.text=W,e.tick=function(){return at(),st},e.time_ranges_to_array=function(t){const e=[];for(let n=0;n<t.length;n+=1)e.push({start:t.start(n),end:t.end(n)});return e},e.to_number=function(t){return""===t?null:+t},e.toggle_class=function(t,e,n){t.classList[n?"add":"remove"](e)},e.transition_in=$t,e.transition_out=Ct,e.trusted=function(t){return function(e){e.isTrusted&&t.call(this,e)}},e.update_await_block_branch=function(t,e,n){const o=e.slice(),{resolved:r}=t;t.current===t.then&&(o[t.value]=r),t.current===t.catch&&(o[t.error]=r),t.block.p(o,n)},e.update_keyed_each=function(t,e,n,o,r,i,c,s,u,a,l,d){let f=t.length,p=i.length,h=f;const m={};for(;h--;)m[t[h].key]=h;const _=[],g=new Map,b=new Map;for(h=p;h--;){const t=d(r,i,h),s=n(t);let u=c.get(s);u?o&&u.p(t,e):(u=a(s,t),u.c()),g.set(s,_[h]=u),s in m&&b.set(s,Math.abs(h-m[s]))}const y=new Set,v=new Set;function w(t){$t(t,1),t.m(s,l),c.set(t.key,t),l=t.first,p--}for(;f&&p;){const e=_[p-1],n=t[f-1],o=e.key,r=n.key;e===n?(l=e.first,f--,p--):g.has(r)?!c.has(o)||y.has(o)?w(e):v.has(r)?f--:b.get(o)>b.get(r)?(v.add(o),w(e)):(y.add(r),f--):(u(n,c),f--)}for(;f--;){const e=t[f];g.has(e.key)||u(e,c)}for(;p;)w(_[p-1]);return _},e.update_slot=function(t,e,n,o,r,i,c){m(t,e,n,o,h(e,o,r,i),c)},e.update_slot_base=m,e.validate_component=function(t,e){if(!t||!t.$$render)throw"svelte:component"===e&&(e+=" this={...}"),new Error(`<${e}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);return t},e.validate_each_argument=function(t){if(!("string"==typeof t||t&&"object"==typeof t&&"length"in t)){let e="{#each} only iterates over array-like objects.";throw"function"==typeof Symbol&&t&&Symbol.iterator in t&&(e+=" You can use a spread to convert this iterable into an array."),new Error(e)}},e.validate_each_keys=function(t,e,n,o){const r=new Set;for(let i=0;i<e.length;i++){const c=o(n(t,e,i));if(r.has(c))throw new Error("Cannot have duplicate keys in a keyed each");r.add(c)}},e.validate_slots=function(t,e,n){for(const o of Object.keys(e))~n.indexOf(o)||console.warn(`<${t}> received an unexpected slot "${o}".`)},e.validate_store=function(t,e){if(null!=t&&"function"!=typeof t.subscribe)throw new Error(`'${e}' is not a store with a 'subscribe' method`)},e.xlink_attr=function(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}})),T=I((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SvelteComponent",{enumerable:!0,get:function(){return P.SvelteComponentDev}}),Object.defineProperty(e,"SvelteComponentTyped",{enumerable:!0,get:function(){return P.SvelteComponentTyped}}),Object.defineProperty(e,"afterUpdate",{enumerable:!0,get:function(){return P.afterUpdate}}),Object.defineProperty(e,"beforeUpdate",{enumerable:!0,get:function(){return P.beforeUpdate}}),Object.defineProperty(e,"createEventDispatcher",{enumerable:!0,get:function(){return P.createEventDispatcher}}),Object.defineProperty(e,"getAllContexts",{enumerable:!0,get:function(){return P.getAllContexts}}),Object.defineProperty(e,"getContext",{enumerable:!0,get:function(){return P.getContext}}),Object.defineProperty(e,"hasContext",{enumerable:!0,get:function(){return P.hasContext}}),Object.defineProperty(e,"onDestroy",{enumerable:!0,get:function(){return P.onDestroy}}),Object.defineProperty(e,"onMount",{enumerable:!0,get:function(){return P.onMount}}),Object.defineProperty(e,"setContext",{enumerable:!0,get:function(){return P.setContext}}),Object.defineProperty(e,"tick",{enumerable:!0,get:function(){return P.tick}})})),R=function(){function t(){}return t.prototype.isVisible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},t.prototype.dispatch=function(t,e,n,o){var r=new CustomEvent(t,{detail:n});r.luigiCallback=function(t){o&&o(t)},e.dispatchEvent(r),console.log("Dispatch WC event:",t,e,n)},t.prototype.getTargetContainer=function(t){var e;return globalThis.__luigi_container_manager.container.forEach((function(n){var o;(null===(o=n.iframeHandle)||void 0===o?void 0:o.iframe)&&n.iframeHandle.iframe.contentWindow===t.source&&(e=n)})),e},t.prototype.getContainerManager=function(){var t=this;return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:function(e){var n,o,r,i,c=t.getTargetContainer(e),s=null===(o=null===(n=null==c?void 0:c.iframeHandle)||void 0===n?void 0:n.iframe)||void 0===o?void 0:o.contentWindow;if(console.log("Container event",e,c),s===e.source&&0===(null===(i=null===(r=e.data)||void 0===r?void 0:r.msg)||void 0===i?void 0:i.indexOf("luigi."))){var u=e.data.msg;switch(u){case"luigi.get-context":s.postMessage({msg:"luigi.init",context:c.context,internal:{}},"*");break;case"luigi.navigation.open":t.dispatch("navigation-request",c,e.data.params);break;case"luigi.ux.alert.show":t.dispatch("alert-request",c,e.data.params);break;default:console.warn("Functionality not yet implemented: ",u)}}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager},t.prototype.registerContainer=function(t){this.getContainerManager().container.push(t)},t}(),W=function(t,e){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},W(t,e)};function D(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}W(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var L=function(){return L=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},L.apply(this,arguments)};function U(t,e,n,o){return new(n||(n=Promise))((function(r,i){function c(t){try{u(o.next(t))}catch(t){i(t)}}function s(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,s)}u((o=o.apply(t,e||[])).next())}))}function N(t,e){var n,o,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,o=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=c.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var H=function(){function t(t){t?(this.rendererObject=t,this.config=t.config||{}):this.config={}}return t.prototype.createCompoundContainer=function(){return document.createElement("div")},t.prototype.createCompoundItemContainer=function(t){return document.createElement("div")},t.prototype.attachCompoundItem=function(t,e){t.appendChild(e)},t}(),q=function(t){function e(e){var n=t.call(this,e||{use:{}})||this;return e&&e.use&&e.use.extends&&(n.superRenderer=z({use:e.use.extends,config:e.config})),n}return D(e,t),e.prototype.createCompoundContainer=function(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():t.prototype.createCompoundContainer.call(this)},e.prototype.createCompoundItemContainer=function(e){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(e,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(e):t.prototype.createCompoundItemContainer.call(this,e)},e.prototype.attachCompoundItem=function(e,n){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(e,n,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(e,n):t.prototype.attachCompoundItem.call(this,e,n)},e}(H),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.createCompoundContainer=function(){var t="__lui_compound_"+(new Date).getTime(),e=document.createElement("div");e.classList.add(t);var n="";return this.config.layouts&&this.config.layouts.forEach((function(e){if(e.minWidth||e.maxWidth){var o="@media only screen ";null!=e.minWidth&&(o+="and (min-width: ".concat(e.minWidth,"px) ")),null!=e.maxWidth&&(o+="and (max-width: ".concat(e.maxWidth,"px) ")),o+="{\n .".concat(t," {\n grid-template-columns: ").concat(e.columns||"auto",";\n grid-template-rows: ").concat(e.rows||"auto",";\n grid-gap: ").concat(e.gap||"0",";\n }\n }\n "),n+=o}})),e.innerHTML="\n <style scoped>\n .".concat(t," {\n display: grid;\n grid-template-columns: ").concat(this.config.columns||"auto",";\n grid-template-rows: ").concat(this.config.rows||"auto",";\n grid-gap: ").concat(this.config.gap||"0",";\n min-height: ").concat(this.config.minHeight||"auto",";\n }\n ").concat(n,"\n </style>\n "),e},e.prototype.createCompoundItemContainer=function(t){var e=t||{},n=document.createElement("div");return n.setAttribute("style","grid-row: ".concat(e.row||"auto","; grid-column: ").concat(e.column||"auto")),n},e}(H),z=function(t){var e=t.use;return e?"grid"===e?new B(t):e.createCompoundContainer||e.createCompoundItemContainer||e.attachCompoundItem?new q(t):new H(t):new H(t)},V=function(t,e,n,o){(null==e?void 0:e.eventListeners)&&e.eventListeners.forEach((function(e){var r=e.source+"."+e.name,i=t[r],c={wcElementId:n,wcElement:o,action:e.action,converter:e.dataConverter};i?i.push(c):t[r]=[c]}))},G=function(){function t(){this.containerService=new R}return t.prototype.dynamicImport=function(t){return import(t)},t.prototype.processViewUrl=function(t,e){return t},t.prototype.attachWC=function(t,e,n,o,r,i){if(n&&n.contains(e)){var c=document.createElement(t);i&&c.setAttribute("nodeId",i),this.initWC(c,t,n,r,o,i),n.replaceChild(c,e)}},t.prototype.createClientAPI=function(t,e,n){var o=this;return{linkManager:function(){},uxManager:function(){return{showAlert:function(t){},showConfirmationModal:function(t){return U(o,void 0,void 0,(function(){return N(this,(function(t){return[2,new Promise((function(t,e){t(!0)}))]}))}))}}},getCurrentLocale:function(){},publishEvent:function(t){}}},t.prototype.initWC=function(t,e,n,o,r,i){var c=this.createClientAPI(n,i,e);if(t.__postProcess){var s=new URL(document.baseURI).origin===new URL(o,document.baseURI).origin?new URL("./",new URL(o,document.baseURI)):new URL("./",o);t.__postProcess(r,c,s.origin+s.pathname)}else t.context=r,t.LuigiClient=c},t.prototype.generateWCId=function(t){for(var e="",n=0;n<t.length;n++)e+=t.charCodeAt(n).toString(16);return"luigi-wc-"+e},t.prototype.registerWCFromUrl=function(t,e){var n=this,o=this.processViewUrl(t);return new Promise((function(t,r){n.checkWCUrl(o)?n.dynamicImport(o).then((function(n){try{if(!window.customElements.get(e)){var o=n.default;if(!HTMLElement.isPrototypeOf(o))for(var i=Object.keys(n),c=0;c<i.length&&(o=n[i[c]],!HTMLElement.isPrototypeOf(o));c++);window.customElements.define(e,o)}t(1)}catch(t){r(t)}})).catch((function(t){return r(t)})):(console.warn("View URL '".concat(o,"' not allowed to be included")),r("View URL '".concat(o,"' not allowed")))}))},t.prototype.includeSelfRegisteredWCFromUrl=function(t,e,n){var o=this;if(this.checkWCUrl(e)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=function(t,e){window.customElements.define(o.generateWCId(t),e)});var r=document.createElement("script");r.setAttribute("src",e),"module"===t.webcomponent.type&&r.setAttribute("type","module"),r.setAttribute("defer","true"),r.addEventListener("load",(function(){n()})),document.body.appendChild(r)}else console.warn("View URL '".concat(e,"' not allowed to be included"))},t.prototype.checkWCUrl=function(t){return!0},t.prototype.renderWebComponent=function(t,e,n,o,r){var i=this,c=this.processViewUrl(t,{context:n}),s=o.webcomponent&&o.webcomponent.tagName?o.webcomponent.tagName:this.generateWCId(c),u=document.createElement("div");e.appendChild(u),e._luigi_node=o,window.customElements.get(s)?this.attachWC(s,u,e,n,c,r):window.luigiWCFn?window.luigiWCFn(c,s,u,(function(){i.attachWC(s,u,e,n,c,r)})):o.webcomponent&&o.webcomponent.selfRegistered?this.includeSelfRegisteredWCFromUrl(o,c,(function(){i.attachWC(s,u,e,n,c,r)})):this.registerWCFromUrl(c,s).then((function(){i.attachWC(s,u,e,n,c,r)}))},t.prototype.createCompoundContainerAsync=function(t,e){var n=this;return new Promise((function(o,r){if(t.viewUrl)try{var i=n.generateWCId(t.viewUrl);n.registerWCFromUrl(t.viewUrl,i).then((function(){var r=document.createElement(i);n.initWC(r,i,r,t.viewUrl,e,"_root"),o(r)}))}catch(t){r(t)}else o(t.createCompoundContainer())}))},t.prototype.renderWebComponentCompound=function(t,e,n){var o,r,i=this;return t.webcomponent&&t.viewUrl?((r=new H).viewUrl=this.processViewUrl(t.viewUrl,{context:n}),r.createCompoundItemContainer=function(t){var e=document.createElement("div");return t&&t.slot&&e.setAttribute("slot",t.slot),e}):(null===(o=t.compound)||void 0===o?void 0:o.renderer)&&(r=z(t.compound.renderer)),r=r||new H,new Promise((function(o){i.createCompoundContainerAsync(r,n).then((function(c){var s,u={};c.eventBus={listeners:u,onPublishEvent:function(t,e,n){var o=u[e+"."+t.type]||[];o.push.apply(o,u["*."+t.type]||[]),o.forEach((function(e){var n=e.wcElement||c.querySelector("[nodeId="+e.wcElementId+"]");n?n.dispatchEvent(new CustomEvent(e.action,{detail:e.converter?e.converter(t.detail):t.detail})):console.debug("Could not find event target",e)}))}},null===(s=t.compound)||void 0===s||s.children.forEach((function(t,e){var o=L(L({},n),t.context),s=r.createCompoundItemContainer(t.layoutConfig);s.eventBus=c.eventBus,r.attachCompoundItem(c,s);var a=t.id||"gen_"+e;i.renderWebComponent(t.viewUrl,s,o,t,a),V(u,t,a)})),e.appendChild(c),V(u,t.compound,"_root",c),o(c)}))}))},t}();function J(t){let e,n=!t[5](),o=n&&function(t){let e,n;return{c(){e=d("iframe"),u(e.src,n=t[0])||p(e,"src",n),p(e,"title",t[1])},m(n,o){a(n,e,o),t[8](e)},p(t,o){1&o&&!u(e.src,n=t[0])&&p(e,"src",n),2&o&&p(e,"title",t[1])},d(n){n&&l(e),t[8](null)}}}(t);return{c(){o&&o.c(),e=f()},m(t,n){o&&o.m(t,n),a(t,e,n)},p(t,e){n&&o.p(t,e)},d(t){o&&o.d(t),t&&l(e)}}}function Y(e){let n,o=!e[4]&&J(e);return{c(){n=d("main"),o&&o.c(),this.c=t,p(n,"class",e[5]()?void 0:"lui-isolated")},m(t,r){a(t,n,r),o&&o.m(n,null),e[9](n)},p(t,[e]){t[4]?o&&(o.d(1),o=null):o?o.p(t,e):(o=J(t),o.c(),o.m(n,null))},i:t,o:t,d(t){t&&l(n),o&&o.d(),e[9](null)}}}function K(t,e,n){let o,{viewurl:r}=e,{context:i}=e,{label:c}=e,{webcomponent:s}=e,u={};const a=new R,l=new G;l.createClientAPI=(t,e,n)=>({linkManager:()=>({navigate:t=>{p("navigation-request",{link:t})}}),uxManager:()=>({showAlert:t=>{p("alert-request",t)},showConfirmationModal:async t=>new Promise(((e,n)=>{p("confirmation-request",t,(t=>{t?e(t):n()}))}))}),getCurrentLocale:()=>{},publishEvent:t=>{}});const d=_();d.iframeHandle=u;let f=!!d.attributes["defer-init"];function p(t,e,n){a.dispatch(t,d,e,n)}function h(){return!!s}return d.init=()=>{n(4,f=!1)},a.registerContainer(d),T.onMount((async()=>{const t=i?JSON.parse(i):void 0;console.log(t),h()&&(n(3,o.innerHTML="",o),l.renderWebComponent(r,o,t,{}))})),T.onDestroy((async()=>{})),t.$$set=t=>{"viewurl"in t&&n(0,r=t.viewurl),"context"in t&&n(6,i=t.context),"label"in t&&n(1,c=t.label),"webcomponent"in t&&n(7,s=t.webcomponent)},[r,c,u,o,f,h,i,s,function(t){b[t?"unshift":"push"]((()=>{u.iframe=t,n(2,u)}))},function(t){b[t?"unshift":"push"]((()=>{o=t,n(3,o)}))}]}class Q extends j{constructor(t){super(),this.shadowRoot.innerHTML="<style>main,iframe{width:100%;height:100%;border:none}main.lui-isolated{line-height:0}</style>",M(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},K,Y,i,{viewurl:0,context:6,label:1,webcomponent:7},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),E()))}static get observedAttributes(){return["viewurl","context","label","webcomponent"]}get viewurl(){return this.$$.ctx[0]}set viewurl(t){this.$$set({viewurl:t}),E()}get context(){return this.$$.ctx[6]}set context(t){this.$$set({context:t}),E()}get label(){return this.$$.ctx[1]}set label(t){this.$$set({label:t}),E()}get webcomponent(){return this.$$.ctx[7]}set webcomponent(t){this.$$set({webcomponent:t}),E()}}function X(e){let n;return{c(){n=d("main"),this.c=t},m(t,o){a(t,n,o),e[2](n)},p:t,i:t,o:t,d(t){t&&l(n),e[2](null)}}}function Z(t,e,n){let o,{context:r}=e,i=!1;const c=new R,s=new G;s.createClientAPI=(t,e,n)=>({linkManager:()=>{},uxManager:()=>({showAlert:t=>{a("alert-request",t)},showConfirmationModal:async t=>new Promise(((e,n)=>{a("confirmation-request",t,(t=>{t?e(t):n()}))}))}),getCurrentLocale:()=>{},publishEvent:o=>{console.log("pub",o),t&&t.eventBus&&t.eventBus.onPublishEvent(o,e,n)}});const u=_();function a(t,e,n){c.dispatch(t,u,e,n)}return u.attributes["defer-init"],u.init=()=>{if(!u.compoundConfig||i)return;console.log("init compound");const t={compound:u.compoundConfig};s.renderWebComponentCompound(t,o,r).then((t=>{})),i=!0},c.registerContainer(u),T.onMount((async()=>{const t=r?JSON.parse(r):void 0;console.log(t)})),t.$$set=t=>{"context"in t&&n(1,r=t.context)},[o,r,function(t){b[t?"unshift":"push"]((()=>{o=t,n(0,o)}))}]}class tt extends j{constructor(t){super(),this.shadowRoot.innerHTML="<style>main{width:100%;height:100%;border:none}</style>",M(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},Z,X,i,{context:1},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),E()))}static get observedAttributes(){return["context"]}get context(){return this.$$.ctx[1]}set context(t){this.$$set({context:t}),E()}}export{tt as LuigiCompoundContainer,Q as LuigiContainer}; | ||
function e(){}function t(e){return e()}function n(){return Object.create(null)}function o(e){e.forEach(t)}function r(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,c;function a(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(e,t,n){e.insertBefore(t,n||null)}function u(e){e.parentNode.removeChild(e)}function d(e){return document.createElement(e)}function m(){return e="",document.createTextNode(e);var e}function h(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function p(e){const t={};for(const n of e)t[n.name]=n.value;return t}function g(e){c=e}function f(){if(!c)throw new Error("Function called outside component initialization");return c}function C(e){f().$$.on_mount.push(e)}const w=[],b=[],$=[],v=[],x=Promise.resolve();let _=!1;function y(e){$.push(e)}const E=new Set;let W=0;function I(){const e=c;do{for(;W<w.length;){const e=w[W];W++,g(e),U(e.$$)}for(g(null),w.length=0,W=0;b.length;)b.pop()();for(let e=0;e<$.length;e+=1){const t=$[e];E.has(t)||(E.add(t),t())}$.length=0}while(w.length);for(;v.length;)v.pop()();_=!1,E.clear(),g(e)}function U(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(y)}}const R=new Set;function L(e,t){-1===e.$$.dirty[0]&&(w.push(e),_||(_=!0,x.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function k(i,s,a,l,d,m,h,p=[-1]){const f=c;g(i);const C=i.$$={fragment:null,ctx:null,props:m,update:e,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(f?f.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:s.target||f.$$.root};h&&h(C.root);let w=!1;if(C.ctx=a?a(i,s.props||{},((e,t,...n)=>{const o=n.length?n[0]:t;return C.ctx&&d(C.ctx[e],C.ctx[e]=o)&&(!C.skip_bound&&C.bound[e]&&C.bound[e](o),w&&L(i,e)),t})):[],C.update(),w=!0,o(C.before_update),C.fragment=!!l&&l(C.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);C.fragment&&C.fragment.l(e),e.forEach(u)}else C.fragment&&C.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(R.delete(b),b.i($))),function(e,n,i,s){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=e.$$;c&&c.m(n,i),s||y((()=>{const n=a.map(t).filter(r);l?l.push(...n):o(n),e.$$.on_mount=[]})),u.forEach(y)}(i,s.target,s.anchor,s.customElement),I()}var b,$;g(f)}let M;"function"==typeof HTMLElement&&(M=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class A{constructor(){}isVisible(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}dispatch(e,t,n,o){let r=new CustomEvent(e,{detail:n});r.luigiCallback=e=>{o&&o(e)},t.dispatchEvent(r),console.log("Dispatch WC event:",e,t,n)}getTargetContainer(e){let t;return globalThis.__luigi_container_manager.container.forEach((n=>{var o;(null===(o=n.iframeHandle)||void 0===o?void 0:o.iframe)&&n.iframeHandle.iframe.contentWindow===e.source&&(t=n)})),t}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:e=>{var t,n,o,r;const i=this.getTargetContainer(e),s=null===(n=null===(t=null==i?void 0:i.iframeHandle)||void 0===t?void 0:t.iframe)||void 0===n?void 0:n.contentWindow;if(console.log("Container event",e,i),s===e.source&&0===(null===(r=null===(o=e.data)||void 0===o?void 0:o.msg)||void 0===r?void 0:r.indexOf("luigi."))){const t=e.data.msg;switch(t){case"luigi.get-context":s.postMessage({msg:"luigi.init",context:i.context,internal:{}},"*");break;case"luigi.navigation.open":this.dispatch("navigation-request",i,e.data.params);break;case"luigi.ux.alert.show":this.dispatch("alert-request",i,e.data.params);break;default:console.warn("Functionality not yet implemented: ",t)}}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(e){this.getContainerManager().container.push(e)}}class O{constructor(e){e?(this.rendererObject=e,this.config=e.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(e){return document.createElement("div")}attachCompoundItem(e,t){e.appendChild(t)}}class P extends O{constructor(e){super(e||{use:{}}),e&&e.use&&e.use.extends&&(this.superRenderer=H({use:e.use.extends,config:e.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(e){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(e,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(e):super.createCompoundItemContainer(e)}attachCompoundItem(e,t){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(e,t,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(e,t):super.attachCompoundItem(e,t)}}class T extends O{createCompoundContainer(){const e="__lui_compound_"+(new Date).getTime(),t=document.createElement("div");t.classList.add(e);let n="";return this.config.layouts&&this.config.layouts.forEach((t=>{if(t.minWidth||t.maxWidth){let o="@media only screen ";null!=t.minWidth&&(o+=`and (min-width: ${t.minWidth}px) `),null!=t.maxWidth&&(o+=`and (max-width: ${t.maxWidth}px) `),o+=`{\n .${e} {\n grid-template-columns: ${t.columns||"auto"};\n grid-template-rows: ${t.rows||"auto"};\n grid-gap: ${t.gap||"0"};\n }\n }\n `,n+=o}})),t.innerHTML=`\n <style scoped>\n .${e} {\n display: grid;\n grid-template-columns: ${this.config.columns||"auto"};\n grid-template-rows: ${this.config.rows||"auto"};\n grid-gap: ${this.config.gap||"0"};\n min-height: ${this.config.minHeight||"auto"};\n }\n ${n}\n </style>\n `,t}createCompoundItemContainer(e){const t=e||{},n=document.createElement("div");return n.setAttribute("style",`grid-row: ${t.row||"auto"}; grid-column: ${t.column||"auto"}`),n}}const H=e=>{const t=e.use;return t?"grid"===t?new T(e):t.createCompoundContainer||t.createCompoundItemContainer||t.attachCompoundItem?new P(e):new O(e):new O(e)},j=(e,t,n,o)=>{(null==t?void 0:t.eventListeners)&&t.eventListeners.forEach((t=>{const r=t.source+"."+t.name,i=e[r],s={wcElementId:n,wcElement:o,action:t.action,converter:t.dataConverter};i?i.push(s):e[r]=[s]}))};class S{constructor(){this.containerService=new A}dynamicImport(e){return import(e)}processViewUrl(e,t){return e}attachWC(e,t,n,o,r,i){if(n&&n.contains(t)){const s=document.createElement(e);i&&s.setAttribute("nodeId",i),this.initWC(s,e,n,r,o,i),n.replaceChild(s,t)}}createClientAPI(e,t,n){return{linkManager:()=>{},uxManager:()=>({showAlert:e=>{},showConfirmationModal:async e=>new Promise(((e,t)=>{e(!0)}))}),getCurrentLocale:()=>{},publishEvent:e=>{}}}initWC(e,t,n,o,r,i){const s=this.createClientAPI(n,i,t);if(e.__postProcess){const t=new URL(document.baseURI).origin===new URL(o,document.baseURI).origin?new URL("./",new URL(o,document.baseURI)):new URL("./",o);e.__postProcess(r,s,t.origin+t.pathname)}else e.context=r,e.LuigiClient=s}generateWCId(e){let t="";for(let n=0;n<e.length;n++)t+=e.charCodeAt(n).toString(16);return"luigi-wc-"+t}registerWCFromUrl(e,t){const n=this.processViewUrl(e);return new Promise(((e,o)=>{this.checkWCUrl(n)?this.dynamicImport(n).then((n=>{try{if(!window.customElements.get(t)){let e=n.default;if(!HTMLElement.isPrototypeOf(e)){let t=Object.keys(n);for(let o=0;o<t.length&&(e=n[t[o]],!HTMLElement.isPrototypeOf(e));o++);}window.customElements.define(t,e)}e(1)}catch(e){o(e)}})).catch((e=>o(e))):(console.warn(`View URL '${n}' not allowed to be included`),o(`View URL '${n}' not allowed`))}))}includeSelfRegisteredWCFromUrl(e,t,n){if(this.checkWCUrl(t)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(e,t)=>{window.customElements.define(this.generateWCId(e),t)});let o=document.createElement("script");o.setAttribute("src",t),"module"===e.webcomponent.type&&o.setAttribute("type","module"),o.setAttribute("defer","true"),o.addEventListener("load",(()=>{n()})),document.body.appendChild(o)}else console.warn(`View URL '${t}' not allowed to be included`)}checkWCUrl(e){return!0}renderWebComponent(e,t,n,o,r){const i=this.processViewUrl(e,{context:n}),s=o.webcomponent&&o.webcomponent.tagName?o.webcomponent.tagName:this.generateWCId(i),c=document.createElement("div");t.appendChild(c),t._luigi_node=o,window.customElements.get(s)?this.attachWC(s,c,t,n,i,r):window.luigiWCFn?window.luigiWCFn(i,s,c,(()=>{this.attachWC(s,c,t,n,i,r)})):o.webcomponent&&o.webcomponent.selfRegistered?this.includeSelfRegisteredWCFromUrl(o,i,(()=>{this.attachWC(s,c,t,n,i,r)})):this.registerWCFromUrl(i,s).then((()=>{this.attachWC(s,c,t,n,i,r)}))}createCompoundContainerAsync(e,t){return new Promise(((n,o)=>{if(e.viewUrl)try{const o=this.generateWCId(e.viewUrl);this.registerWCFromUrl(e.viewUrl,o).then((()=>{const r=document.createElement(o);this.initWC(r,o,r,e.viewUrl,t,"_root"),n(r)}))}catch(e){o(e)}else n(e.createCompoundContainer())}))}renderWebComponentCompound(e,t,n){var o;let r;return e.webcomponent&&e.viewUrl?(r=new O,r.viewUrl=this.processViewUrl(e.viewUrl,{context:n}),r.createCompoundItemContainer=e=>{var t=document.createElement("div");return e&&e.slot&&t.setAttribute("slot",e.slot),t}):(null===(o=e.compound)||void 0===o?void 0:o.renderer)&&(r=H(e.compound.renderer)),r=r||new O,new Promise((o=>{this.createCompoundContainerAsync(r,n).then((i=>{var s;const c={};i.eventBus={listeners:c,onPublishEvent:(e,t,n)=>{const o=c[t+"."+e.type]||[];o.push(...c["*."+e.type]||[]),o.forEach((t=>{const n=t.wcElement||i.querySelector("[nodeId="+t.wcElementId+"]");n?n.dispatchEvent(new CustomEvent(t.action,{detail:t.converter?t.converter(e.detail):e.detail})):console.debug("Could not find event target",t)}))}},null===(s=e.compound)||void 0===s||s.children.forEach(((e,t)=>{const o=Object.assign(Object.assign({},n),e.context),s=r.createCompoundItemContainer(e.layoutConfig);s.eventBus=i.eventBus,r.attachCompoundItem(i,s);const a=e.id||"gen_"+t;this.renderWebComponent(e.viewUrl,s,o,e,a),j(c,e,a)})),t.appendChild(i),j(c,e.compound,"_root",i),o(i)}))}))}}function q(e){let t,n=!e[5](),o=n&&function(e){let t,n;return{c(){t=d("iframe"),a(t.src,n=e[0])||h(t,"src",n),h(t,"title",e[1])},m(n,o){l(n,t,o),e[8](t)},p(e,o){1&o&&!a(t.src,n=e[0])&&h(t,"src",n),2&o&&h(t,"title",e[1])},d(n){n&&u(t),e[8](null)}}}(e);return{c(){o&&o.c(),t=m()},m(e,n){o&&o.m(e,n),l(e,t,n)},p(e,t){n&&o.p(e,t)},d(e){o&&o.d(e),e&&u(t)}}}function F(t){let n,o=!t[4]&&q(t);return{c(){n=d("main"),o&&o.c(),this.c=e,h(n,"class",t[5]()?void 0:"lui-isolated")},m(e,r){l(e,n,r),o&&o.m(n,null),t[9](n)},p(e,[t]){e[4]?o&&(o.d(1),o=null):o?o.p(e,t):(o=q(e),o.c(),o.m(n,null))},i:e,o:e,d(e){e&&u(n),o&&o.d(),t[9](null)}}}function V(e,t,n){let o,{viewurl:r}=t,{context:i}=t,{label:s}=t,{webcomponent:c}=t,a={};const l=new A,u=new S;u.createClientAPI=(e,t,n)=>({linkManager:()=>({navigate:e=>{h("navigation-request",{link:e},{})}}),uxManager:()=>({showAlert:e=>{h("alert-request",e,{})},showConfirmationModal:async e=>new Promise(((t,n)=>{h("confirmation-request",e,(e=>{e?t(e):n()}))}))}),getCurrentLocale:()=>{},publishEvent:e=>{}});const d=f();console.log(d.iframeHandle),d.iframeHandle=a,console.log(d.iframeHandle);let m=!!d.attributes["defer-init"];function h(e,t,n){l.dispatch(e,d,t,n)}function p(){return!!c}var g;return d.init=()=>{n(4,m=!1)},l.registerContainer(d),C((async()=>{const e=i?JSON.parse(i):void 0;console.log(e),p()&&(n(3,o.innerHTML="",o),u.renderWebComponent(r,o,e,{},{}))})),g=async()=>{},f().$$.on_destroy.push(g),e.$$set=e=>{"viewurl"in e&&n(0,r=e.viewurl),"context"in e&&n(6,i=e.context),"label"in e&&n(1,s=e.label),"webcomponent"in e&&n(7,c=e.webcomponent)},[r,s,a,o,m,p,i,c,function(e){b[e?"unshift":"push"]((()=>{a.iframe=e,n(2,a)}))},function(e){b[e?"unshift":"push"]((()=>{o=e,n(3,o)}))}]}class N extends M{constructor(e){super(),this.shadowRoot.innerHTML="<style>main,iframe{width:100%;height:100%;border:none}main.lui-isolated{line-height:0}</style>",k(this,{target:this.shadowRoot,props:p(this.attributes),customElement:!0},V,F,i,{viewurl:0,context:6,label:1,webcomponent:7},null),e&&(e.target&&l(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["viewurl","context","label","webcomponent"]}get viewurl(){return this.$$.ctx[0]}set viewurl(e){this.$$set({viewurl:e}),I()}get context(){return this.$$.ctx[6]}set context(e){this.$$set({context:e}),I()}get label(){return this.$$.ctx[1]}set label(e){this.$$set({label:e}),I()}get webcomponent(){return this.$$.ctx[7]}set webcomponent(e){this.$$set({webcomponent:e}),I()}}function B(t){let n;return{c(){n=d("main"),this.c=e},m(e,o){l(e,n,o),t[2](n)},p:e,i:e,o:e,d(e){e&&u(n),t[2](null)}}}function D(e,t,n){let o,{context:r}=t,i=!1;const s=new A,c=new S;c.createClientAPI=(e,t,n)=>({linkManager:()=>{},uxManager:()=>({showAlert:e=>{l("alert-request",e,{})},showConfirmationModal:async e=>new Promise(((t,n)=>{l("confirmation-request",e,(e=>{e?t(e):n()}))}))}),getCurrentLocale:()=>{},publishEvent:o=>{console.log("pub",o),e&&e.eventBus&&e.eventBus.onPublishEvent(o,t,n)}});const a=f();function l(e,t,n){s.dispatch(e,a,t,n)}return a.attributes["defer-init"],a.init=()=>{if(!a.compoundConfig||i)return;console.log("init compound");const e={compound:a.compoundConfig};c.renderWebComponentCompound(e,o,r).then((e=>{})),i=!0},s.registerContainer(a),C((async()=>{const e=r?JSON.parse(r):void 0;console.log(e)})),e.$$set=e=>{"context"in e&&n(1,r=e.context)},[o,r,function(e){b[e?"unshift":"push"]((()=>{o=e,n(0,o)}))}]}class J extends M{constructor(e){super(),this.shadowRoot.innerHTML="<style>main{width:100%;height:100%;border:none}</style>",k(this,{target:this.shadowRoot,props:p(this.attributes),customElement:!0},D,B,i,{context:1},null),e&&(e.target&&l(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["context"]}get context(){return this.$$.ctx[1]}set context(e){this.$$set({context:e}),I()}}export{J as LuigiCompoundContainer,N as LuigiContainer}; | ||
//# sourceMappingURL=bundle.js.map |
@@ -6,3 +6,3 @@ { | ||
"main": "bundle.js", | ||
"types": "public/bundle.d.ts", | ||
"types": "bundle.d.ts", | ||
"repository": { | ||
@@ -23,3 +23,3 @@ "type": "git", | ||
], | ||
"version": "0.0.3" | ||
"version": "0.0.4" | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11
118881
207