@everymatrix/cashier-modal 1.54.4 → 1.54.8

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.
@@ -0,0 +1,4 @@
1
+ "use strict";var xt=Object.defineProperty,Ct=Object.defineProperties;var Et=Object.getOwnPropertyDescriptors;var nt=Object.getOwnPropertySymbols;var vt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;var q=(e,t,n)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,it=(e,t)=>{for(var n in t||(t={}))vt.call(t,n)&&q(e,n,t[n]);if(nt)for(var n of nt(t))Mt.call(t,n)&&q(e,n,t[n]);return e},st=(e,t)=>Ct(e,Et(t));var m=(e,t,n)=>q(e,typeof t!="symbol"?t+"":t,n);var rt=(e,t,n)=>new Promise((i,r)=>{var s=u=>{try{o(n.next(u))}catch(c){r(c)}},l=u=>{try{o(n.throw(u))}catch(c){r(c)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,l);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function W(){}const $t=e=>e;function kt(e,t){for(const n in t)e[n]=t[n];return e}function _t(e){return e()}function ot(){return Object.create(null)}function L(e){e.forEach(_t)}function Y(e){return typeof e=="function"}function St(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function jt(e){return Object.keys(e).length===0}function Lt(e,t,n,i){if(e){const r=gt(e,t,n,i);return e[0](r)}}function gt(e,t,n,i){return e[1]&&i?kt(n.ctx.slice(),e[1](i(t))):n.ctx}function Ot(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],l=Math.max(t.dirty.length,r.length);for(let o=0;o<l;o+=1)s[o]=t.dirty[o]|r[o];return s}return t.dirty|r}return t.dirty}function At(e,t,n,i,r,s){if(r){const l=gt(t,n,i,s);e.p(l,r)}}function Nt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}const mt=typeof window!="undefined";let zt=mt?()=>window.performance.now():()=>Date.now(),Z=mt?e=>requestAnimationFrame(e):W;const k=new Set;function pt(e){k.forEach(t=>{t.c(e)||(k.delete(t),t.f())}),k.size!==0&&Z(pt)}function Pt(e){let t;return k.size===0&&Z(pt),{promise:new Promise(n=>{k.add(t={c:e,f:n})}),abort(){k.delete(t)}}}function F(e,t){e.appendChild(t)}function Bt(e,t,n){const i=tt(e);if(!i.getElementById(t)){const r=E("style");r.id=t,r.textContent=n,yt(i,r)}}function tt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Rt(e){const t=E("style");return t.textContent="/* empty */",yt(tt(e),t),t.sheet}function yt(e,t){return F(e.head||e,t),t.sheet}function et(e,t,n){e.insertBefore(t,n||null)}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function E(e){return document.createElement(e)}function Wt(e){return document.createTextNode(e)}function Ht(){return Wt("")}function lt(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function x(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tt(e){return Array.from(e.childNodes)}let T;function Dt(){if(T===void 0){T=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){T=!0}}return T}function It(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=E("iframe");i.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;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const r=Dt();let s;return r?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=lt(window,"message",l=>{l.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=lt(i.contentWindow,"resize",t),t()}),F(e,i),()=>{(r||s&&i.contentWindow)&&s(),O(i)}}function Ft(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Ut(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const U=new Map;let J=0;function Jt(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Vt(e,t){const n={stylesheet:Rt(t),rules:{}};return U.set(e,n),n}function ct(e,t,n,i,r,s,l,o=0){const u=16.666/i;let c=`{
2
+ `;for(let $=0;$<=1;$+=u){const w=t+(n-t)*s($);c+=$*100+`%{${l(w,1-w)}}
3
+ `}const h=c+`100% {${l(n,1-n)}}
4
+ }`,f=`__svelte_${Jt(h)}_${o}`,_=tt(e),{stylesheet:p,rules:d}=U.get(_)||Vt(_,e);d[f]||(d[f]=!0,p.insertRule(`@keyframes ${f} ${h}`,p.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${f} ${i}ms linear ${r}ms 1 both`,J+=1,f}function qt(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),r=n.length-i.length;r&&(e.style.animation=i.join(", "),J-=r,J||Gt())}function Gt(){Z(()=>{J||(U.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&O(t)}),U.clear())})}let H;function B(e){H=e}function Kt(){if(!H)throw new Error("Function called outside component initialization");return H}function Qt(e){Kt().$$.on_mount.push(e)}const M=[],V=[];let S=[];const ut=[],Xt=Promise.resolve();let Q=!1;function Yt(){Q||(Q=!0,Xt.then(C))}function j(e){S.push(e)}const G=new Set;let v=0;function C(){if(v!==0)return;const e=H;do{try{for(;v<M.length;){const t=M[v];v++,B(t),Zt(t.$$)}}catch(t){throw M.length=0,v=0,t}for(B(null),M.length=0,v=0;V.length;)V.pop()();for(let t=0;t<S.length;t+=1){const n=S[t];G.has(n)||(G.add(n),n())}S.length=0}while(M.length);for(;ut.length;)ut.pop()();Q=!1,G.clear(),B(e)}function Zt(e){if(e.fragment!==null){e.update(),L(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(j)}}function te(e){const t=[],n=[];S.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),S=t}let P;function ee(){return P||(P=Promise.resolve(),P.then(()=>{P=null})),P}function K(e,t,n){e.dispatchEvent(Ft(`${t?"intro":"outro"}${n}`))}const D=new Set;let y;function ne(){y={r:0,c:[],p:y}}function ie(){y.r||L(y.c),y=y.p}function R(e,t){e&&e.i&&(D.delete(e),e.i(t))}function X(e,t,n,i){if(e&&e.o){if(D.has(e))return;D.add(e),y.c.push(()=>{D.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const se={duration:0};function at(e,t,n,i){let s=t(e,n,{direction:"both"}),l=i?0:1,o=null,u=null,c=null,h;function f(){c&&qt(e,c)}function _(d,g){const $=d.b-l;return g*=Math.abs($),{a:l,b:d.b,d:$,duration:g,start:d.start,end:d.start+g,group:d.group}}function p(d){const{delay:g=0,duration:$=300,easing:w=$t,tick:A=W,css:N}=s||se,a={start:zt()+g,b:d};d||(a.group=y,y.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||u?u=a:(N&&(f(),c=ct(e,l,d,$,g,w,N)),d&&A(0,1),o=_(a,$),j(()=>K(e,d,"start")),Pt(b=>{if(u&&b>u.start&&(o=_(u,$),u=null,K(e,o.b,"start"),N&&(f(),c=ct(e,l,o.b,o.duration,0,w,s.css))),o){if(b>=o.end)A(l=o.b,1-l),K(e,o.b,"end"),u||(o.b?f():--o.group.r||L(o.group.c)),o=null;else if(b>=o.start){const z=b-o.start;l=o.a+o.d*w(z/o.duration),A(l,1-l)}}return!!(o||u)}))}return{run(d){Y(s)?ee().then(()=>{s=s({direction:d?"in":"out"}),p(d)}):p(d)},end(){f(),o=u=null}}}function re(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),j(()=>{const s=e.$$.on_mount.map(_t).filter(Y);e.$$.on_destroy?e.$$.on_destroy.push(...s):L(s),e.$$.on_mount=[]}),r.forEach(j)}function oe(e,t){const n=e.$$;n.fragment!==null&&(te(n.after_update),L(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function le(e,t){e.$$.dirty[0]===-1&&(M.push(e),Yt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ce(e,t,n,i,r,s,l=null,o=[-1]){const u=H;B(e);const c=e.$$={fragment:null,ctx:[],props:s,update:W,not_equal:r,bound:ot(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:ot(),dirty:o,skip_bound:!1,root:t.target||u.$$.root};l&&l(c.root);let h=!1;if(c.ctx=n?n(e,t.props||{},(f,_,...p)=>{const d=p.length?p[0]:_;return c.ctx&&r(c.ctx[f],c.ctx[f]=d)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](d),h&&le(e,f)),_}):[],c.update(),h=!0,L(c.before_update),c.fragment=i?i(c.ctx):!1,t.target){if(t.hydrate){const f=Tt(t.target);c.fragment&&c.fragment.l(f),f.forEach(O)}else c.fragment&&c.fragment.c();t.intro&&R(e.$$.fragment),re(e,t.target,t.anchor),C()}B(u)}let wt;typeof HTMLElement=="function"&&(wt=class extends HTMLElement{constructor(t,n,i){super();m(this,"$$ctor");m(this,"$$s");m(this,"$$c");m(this,"$$cn",!1);m(this,"$$d",{});m(this,"$$r",!1);m(this,"$$p_d",{});m(this,"$$l",{});m(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return rt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let l;return{c:function(){l=E("slot"),s!=="default"&&x(l,"name",s)},m:function(c,h){et(c,l,h)},d:function(c){c&&O(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Ut(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=I(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(it({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=I(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const o=this.$$c.$on(s,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=I(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function I(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ue(e,t,n,i,r,s){let l=class extends wt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=I(o,u,t),this.$$d[o]=u,(c=this.$$c)==null||c.$set({[o]:u})}})}),i.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=l,l}class ae{constructor(){m(this,"$$");m(this,"$$set")}$destroy(){oe(this,1),this.$destroy=W}$on(t,n){if(!Y(n))return W;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fe);function ft(e,{delay:t=0,duration:n=400,easing:i=$t}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:s=>`opacity: ${s*r}`}}function de(e){Bt(e,"svelte-pil2bm","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--mmw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}")}const he=e=>({}),dt=e=>({});function ht(e){let t,n,i,r,s,l;const o=e[9].content,u=Lt(o,e,e[8],dt);return{c(){t=E("div"),n=E("div"),i=E("div"),u&&u.c(),x(i,"class","ModalContainer"),x(i,"part","ModalContainer"),x(n,"class","ModalWindow"),x(n,"part","ModalWindow"),x(n,"id","Modal"),j(()=>e[11].call(n)),x(t,"part","CustomStylingContainer")},m(c,h){et(c,t,h),F(t,n),F(n,i),u&&u.m(i,null),e[10](n),r=It(n,e[11].bind(n)),e[12](t),l=!0},p(c,h){e=c,u&&u.p&&(!l||h&256)&&At(u,o,e,e[8],l?Ot(o,e[8],h,he):Nt(e[8]),dt)},i(c){l||(R(u,c),c&&j(()=>{l&&(s||(s=at(n,ft,e[2],!0)),s.run(1))}),l=!0)},o(c){X(u,c),c&&(s||(s=at(n,ft,e[2],!1)),s.run(0)),l=!1},d(c){c&&O(t),u&&u.d(c),e[10](null),r(),c&&s&&s.end(),e[12](null)}}}function $e(e){let t,n,i=e[5]&&ht(e);return{c(){i&&i.c(),t=Ht()},m(r,s){i&&i.m(r,s),et(r,t,s),n=!0},p(r,[s]){r[5]?i?(i.p(r,s),s&32&&R(i,1)):(i=ht(r),i.c(),R(i,1),i.m(t.parentNode,t)):i&&(ne(),X(i,1,1,()=>{i=null}),ie())},i(r){n||(R(i),n=!0)},o(r){X(i),n=!1},d(r){r&&O(t),i&&i.d(r)}}}function _e(e,t,n){let{$$slots:i={},$$scope:r}=t,{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,{duration:o=200}=t,{width:u}=t,{height:c}=t,h,f,_=!1;const p=()=>{n(5,_=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},d=a=>{a.data.type=="ShowCashierModal"&&(n(5,_=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierModal"&&p()},g=()=>{let a=document.createElement("style");a.innerHTML=s,f.appendChild(a)},$=()=>{let a=new URL(l),b=document.createElement("style");fetch(a.href).then(z=>z.text()).then(z=>{b.innerHTML=z,setTimeout(()=>{f.appendChild(b)},1)})};Qt(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function w(a){V[a?"unshift":"push"](()=>{h=a,n(4,h)})}function A(){u=this.clientWidth,c=this.clientHeight,n(0,u),n(1,c)}function N(a){V[a?"unshift":"push"](()=>{f=a,n(3,f)})}return e.$$set=a=>{"clientstyling"in a&&n(6,s=a.clientstyling),"clientstylingurl"in a&&n(7,l=a.clientstylingurl),"duration"in a&&n(2,o=a.duration),"width"in a&&n(0,u=a.width),"height"in a&&n(1,c=a.height),"$$scope"in a&&n(8,r=a.$$scope)},e.$$.update=()=>{e.$$.dirty&72&&s&&f&&g(),e.$$.dirty&136&&l&&f&&$()},[u,c,o,f,h,_,s,l,r,i,w,A,N]}class bt extends ae{constructor(t){super(),ce(this,t,_e,$e,St,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},de)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),C()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),C()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),C()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),C()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),C()}}ue(bt,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);exports.default=bt;
@@ -0,0 +1,920 @@
1
+ var bt = Object.defineProperty, xt = Object.defineProperties;
2
+ var Ct = Object.getOwnPropertyDescriptors;
3
+ var nt = Object.getOwnPropertySymbols;
4
+ var Et = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
5
+ var q = (e, t, n) => t in e ? bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, it = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ Et.call(t, n) && q(e, n, t[n]);
8
+ if (nt)
9
+ for (var n of nt(t))
10
+ vt.call(t, n) && q(e, n, t[n]);
11
+ return e;
12
+ }, st = (e, t) => xt(e, Ct(t));
13
+ var m = (e, t, n) => q(e, typeof t != "symbol" ? t + "" : t, n);
14
+ var rt = (e, t, n) => new Promise((i, r) => {
15
+ var s = (u) => {
16
+ try {
17
+ o(n.next(u));
18
+ } catch (c) {
19
+ r(c);
20
+ }
21
+ }, l = (u) => {
22
+ try {
23
+ o(n.throw(u));
24
+ } catch (c) {
25
+ r(c);
26
+ }
27
+ }, o = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(s, l);
28
+ o((n = n.apply(e, t)).next());
29
+ });
30
+ function W() {
31
+ }
32
+ const $t = (e) => e;
33
+ function Mt(e, t) {
34
+ for (const n in t) e[n] = t[n];
35
+ return (
36
+ /** @type {T & S} */
37
+ e
38
+ );
39
+ }
40
+ function _t(e) {
41
+ return e();
42
+ }
43
+ function ot() {
44
+ return /* @__PURE__ */ Object.create(null);
45
+ }
46
+ function L(e) {
47
+ e.forEach(_t);
48
+ }
49
+ function Y(e) {
50
+ return typeof e == "function";
51
+ }
52
+ function kt(e, t) {
53
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
54
+ }
55
+ function St(e) {
56
+ return Object.keys(e).length === 0;
57
+ }
58
+ function jt(e, t, n, i) {
59
+ if (e) {
60
+ const r = gt(e, t, n, i);
61
+ return e[0](r);
62
+ }
63
+ }
64
+ function gt(e, t, n, i) {
65
+ return e[1] && i ? Mt(n.ctx.slice(), e[1](i(t))) : n.ctx;
66
+ }
67
+ function Lt(e, t, n, i) {
68
+ if (e[2] && i) {
69
+ const r = e[2](i(n));
70
+ if (t.dirty === void 0)
71
+ return r;
72
+ if (typeof r == "object") {
73
+ const s = [], l = Math.max(t.dirty.length, r.length);
74
+ for (let o = 0; o < l; o += 1)
75
+ s[o] = t.dirty[o] | r[o];
76
+ return s;
77
+ }
78
+ return t.dirty | r;
79
+ }
80
+ return t.dirty;
81
+ }
82
+ function Ot(e, t, n, i, r, s) {
83
+ if (r) {
84
+ const l = gt(t, n, i, s);
85
+ e.p(l, r);
86
+ }
87
+ }
88
+ function At(e) {
89
+ if (e.ctx.length > 32) {
90
+ const t = [], n = e.ctx.length / 32;
91
+ for (let i = 0; i < n; i++)
92
+ t[i] = -1;
93
+ return t;
94
+ }
95
+ return -1;
96
+ }
97
+ const mt = typeof window != "undefined";
98
+ let Nt = mt ? () => window.performance.now() : () => Date.now(), Z = mt ? (e) => requestAnimationFrame(e) : W;
99
+ const k = /* @__PURE__ */ new Set();
100
+ function pt(e) {
101
+ k.forEach((t) => {
102
+ t.c(e) || (k.delete(t), t.f());
103
+ }), k.size !== 0 && Z(pt);
104
+ }
105
+ function zt(e) {
106
+ let t;
107
+ return k.size === 0 && Z(pt), {
108
+ promise: new Promise((n) => {
109
+ k.add(t = { c: e, f: n });
110
+ }),
111
+ abort() {
112
+ k.delete(t);
113
+ }
114
+ };
115
+ }
116
+ function F(e, t) {
117
+ e.appendChild(t);
118
+ }
119
+ function Pt(e, t, n) {
120
+ const i = tt(e);
121
+ if (!i.getElementById(t)) {
122
+ const r = E("style");
123
+ r.id = t, r.textContent = n, yt(i, r);
124
+ }
125
+ }
126
+ function tt(e) {
127
+ if (!e) return document;
128
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
129
+ return t && /** @type {ShadowRoot} */
130
+ t.host ? (
131
+ /** @type {ShadowRoot} */
132
+ t
133
+ ) : e.ownerDocument;
134
+ }
135
+ function Bt(e) {
136
+ const t = E("style");
137
+ return t.textContent = "/* empty */", yt(tt(e), t), t.sheet;
138
+ }
139
+ function yt(e, t) {
140
+ return F(
141
+ /** @type {Document} */
142
+ e.head || e,
143
+ t
144
+ ), t.sheet;
145
+ }
146
+ function et(e, t, n) {
147
+ e.insertBefore(t, n || null);
148
+ }
149
+ function O(e) {
150
+ e.parentNode && e.parentNode.removeChild(e);
151
+ }
152
+ function E(e) {
153
+ return document.createElement(e);
154
+ }
155
+ function Rt(e) {
156
+ return document.createTextNode(e);
157
+ }
158
+ function Wt() {
159
+ return Rt("");
160
+ }
161
+ function lt(e, t, n, i) {
162
+ return e.addEventListener(t, n, i), () => e.removeEventListener(t, n, i);
163
+ }
164
+ function x(e, t, n) {
165
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
166
+ }
167
+ function Ht(e) {
168
+ return Array.from(e.childNodes);
169
+ }
170
+ let T;
171
+ function Tt() {
172
+ if (T === void 0) {
173
+ T = !1;
174
+ try {
175
+ typeof window != "undefined" && window.parent && window.parent.document;
176
+ } catch (e) {
177
+ T = !0;
178
+ }
179
+ }
180
+ return T;
181
+ }
182
+ function Dt(e, t) {
183
+ getComputedStyle(e).position === "static" && (e.style.position = "relative");
184
+ const i = E("iframe");
185
+ i.setAttribute(
186
+ "style",
187
+ "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
188
+ ), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
189
+ const r = Tt();
190
+ let s;
191
+ return r ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = lt(
192
+ window,
193
+ "message",
194
+ /** @param {MessageEvent} event */
195
+ (l) => {
196
+ l.source === i.contentWindow && t();
197
+ }
198
+ )) : (i.src = "about:blank", i.onload = () => {
199
+ s = lt(i.contentWindow, "resize", t), t();
200
+ }), F(e, i), () => {
201
+ (r || s && i.contentWindow) && s(), O(i);
202
+ };
203
+ }
204
+ function It(e, t, { bubbles: n = !1, cancelable: i = !1 } = {}) {
205
+ return new CustomEvent(e, { detail: t, bubbles: n, cancelable: i });
206
+ }
207
+ function Ft(e) {
208
+ const t = {};
209
+ return e.childNodes.forEach(
210
+ /** @param {Element} node */
211
+ (n) => {
212
+ t[n.slot || "default"] = !0;
213
+ }
214
+ ), t;
215
+ }
216
+ const U = /* @__PURE__ */ new Map();
217
+ let J = 0;
218
+ function Ut(e) {
219
+ let t = 5381, n = e.length;
220
+ for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
221
+ return t >>> 0;
222
+ }
223
+ function Jt(e, t) {
224
+ const n = { stylesheet: Bt(t), rules: {} };
225
+ return U.set(e, n), n;
226
+ }
227
+ function ct(e, t, n, i, r, s, l, o = 0) {
228
+ const u = 16.666 / i;
229
+ let c = `{
230
+ `;
231
+ for (let $ = 0; $ <= 1; $ += u) {
232
+ const w = t + (n - t) * s($);
233
+ c += $ * 100 + `%{${l(w, 1 - w)}}
234
+ `;
235
+ }
236
+ const h = c + `100% {${l(n, 1 - n)}}
237
+ }`, f = `__svelte_${Ut(h)}_${o}`, _ = tt(e), { stylesheet: p, rules: d } = U.get(_) || Jt(_, e);
238
+ d[f] || (d[f] = !0, p.insertRule(`@keyframes ${f} ${h}`, p.cssRules.length));
239
+ const g = e.style.animation || "";
240
+ return e.style.animation = `${g ? `${g}, ` : ""}${f} ${i}ms linear ${r}ms 1 both`, J += 1, f;
241
+ }
242
+ function Vt(e, t) {
243
+ const n = (e.style.animation || "").split(", "), i = n.filter(
244
+ t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
245
+ // remove all Svelte animations
246
+ ), r = n.length - i.length;
247
+ r && (e.style.animation = i.join(", "), J -= r, J || qt());
248
+ }
249
+ function qt() {
250
+ Z(() => {
251
+ J || (U.forEach((e) => {
252
+ const { ownerNode: t } = e.stylesheet;
253
+ t && O(t);
254
+ }), U.clear());
255
+ });
256
+ }
257
+ let H;
258
+ function B(e) {
259
+ H = e;
260
+ }
261
+ function Gt() {
262
+ if (!H) throw new Error("Function called outside component initialization");
263
+ return H;
264
+ }
265
+ function Kt(e) {
266
+ Gt().$$.on_mount.push(e);
267
+ }
268
+ const M = [], V = [];
269
+ let S = [];
270
+ const ut = [], Qt = /* @__PURE__ */ Promise.resolve();
271
+ let Q = !1;
272
+ function Xt() {
273
+ Q || (Q = !0, Qt.then(C));
274
+ }
275
+ function j(e) {
276
+ S.push(e);
277
+ }
278
+ const G = /* @__PURE__ */ new Set();
279
+ let v = 0;
280
+ function C() {
281
+ if (v !== 0)
282
+ return;
283
+ const e = H;
284
+ do {
285
+ try {
286
+ for (; v < M.length; ) {
287
+ const t = M[v];
288
+ v++, B(t), Yt(t.$$);
289
+ }
290
+ } catch (t) {
291
+ throw M.length = 0, v = 0, t;
292
+ }
293
+ for (B(null), M.length = 0, v = 0; V.length; ) V.pop()();
294
+ for (let t = 0; t < S.length; t += 1) {
295
+ const n = S[t];
296
+ G.has(n) || (G.add(n), n());
297
+ }
298
+ S.length = 0;
299
+ } while (M.length);
300
+ for (; ut.length; )
301
+ ut.pop()();
302
+ Q = !1, G.clear(), B(e);
303
+ }
304
+ function Yt(e) {
305
+ if (e.fragment !== null) {
306
+ e.update(), L(e.before_update);
307
+ const t = e.dirty;
308
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(j);
309
+ }
310
+ }
311
+ function Zt(e) {
312
+ const t = [], n = [];
313
+ S.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), S = t;
314
+ }
315
+ let P;
316
+ function te() {
317
+ return P || (P = Promise.resolve(), P.then(() => {
318
+ P = null;
319
+ })), P;
320
+ }
321
+ function K(e, t, n) {
322
+ e.dispatchEvent(It(`${t ? "intro" : "outro"}${n}`));
323
+ }
324
+ const D = /* @__PURE__ */ new Set();
325
+ let y;
326
+ function ee() {
327
+ y = {
328
+ r: 0,
329
+ c: [],
330
+ p: y
331
+ // parent group
332
+ };
333
+ }
334
+ function ne() {
335
+ y.r || L(y.c), y = y.p;
336
+ }
337
+ function R(e, t) {
338
+ e && e.i && (D.delete(e), e.i(t));
339
+ }
340
+ function X(e, t, n, i) {
341
+ if (e && e.o) {
342
+ if (D.has(e)) return;
343
+ D.add(e), y.c.push(() => {
344
+ D.delete(e), i && (n && e.d(1), i());
345
+ }), e.o(t);
346
+ } else i && i();
347
+ }
348
+ const ie = { duration: 0 };
349
+ function at(e, t, n, i) {
350
+ let s = t(e, n, { direction: "both" }), l = i ? 0 : 1, o = null, u = null, c = null, h;
351
+ function f() {
352
+ c && Vt(e, c);
353
+ }
354
+ function _(d, g) {
355
+ const $ = (
356
+ /** @type {Program['d']} */
357
+ d.b - l
358
+ );
359
+ return g *= Math.abs($), {
360
+ a: l,
361
+ b: d.b,
362
+ d: $,
363
+ duration: g,
364
+ start: d.start,
365
+ end: d.start + g,
366
+ group: d.group
367
+ };
368
+ }
369
+ function p(d) {
370
+ const {
371
+ delay: g = 0,
372
+ duration: $ = 300,
373
+ easing: w = $t,
374
+ tick: A = W,
375
+ css: N
376
+ } = s || ie, a = {
377
+ start: Nt() + g,
378
+ b: d
379
+ };
380
+ d || (a.group = y, y.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
381
+ e.inert, e.inert = !0)), o || u ? u = a : (N && (f(), c = ct(e, l, d, $, g, w, N)), d && A(0, 1), o = _(a, $), j(() => K(e, d, "start")), zt((b) => {
382
+ if (u && b > u.start && (o = _(u, $), u = null, K(e, o.b, "start"), N && (f(), c = ct(
383
+ e,
384
+ l,
385
+ o.b,
386
+ o.duration,
387
+ 0,
388
+ w,
389
+ s.css
390
+ ))), o) {
391
+ if (b >= o.end)
392
+ A(l = o.b, 1 - l), K(e, o.b, "end"), u || (o.b ? f() : --o.group.r || L(o.group.c)), o = null;
393
+ else if (b >= o.start) {
394
+ const z = b - o.start;
395
+ l = o.a + o.d * w(z / o.duration), A(l, 1 - l);
396
+ }
397
+ }
398
+ return !!(o || u);
399
+ }));
400
+ }
401
+ return {
402
+ run(d) {
403
+ Y(s) ? te().then(() => {
404
+ s = s({ direction: d ? "in" : "out" }), p(d);
405
+ }) : p(d);
406
+ },
407
+ end() {
408
+ f(), o = u = null;
409
+ }
410
+ };
411
+ }
412
+ function se(e, t, n) {
413
+ const { fragment: i, after_update: r } = e.$$;
414
+ i && i.m(t, n), j(() => {
415
+ const s = e.$$.on_mount.map(_t).filter(Y);
416
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : L(s), e.$$.on_mount = [];
417
+ }), r.forEach(j);
418
+ }
419
+ function re(e, t) {
420
+ const n = e.$$;
421
+ n.fragment !== null && (Zt(n.after_update), L(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
422
+ }
423
+ function oe(e, t) {
424
+ e.$$.dirty[0] === -1 && (M.push(e), Xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
425
+ }
426
+ function le(e, t, n, i, r, s, l = null, o = [-1]) {
427
+ const u = H;
428
+ B(e);
429
+ const c = e.$$ = {
430
+ fragment: null,
431
+ ctx: [],
432
+ // state
433
+ props: s,
434
+ update: W,
435
+ not_equal: r,
436
+ bound: ot(),
437
+ // lifecycle
438
+ on_mount: [],
439
+ on_destroy: [],
440
+ on_disconnect: [],
441
+ before_update: [],
442
+ after_update: [],
443
+ context: new Map(t.context || (u ? u.$$.context : [])),
444
+ // everything else
445
+ callbacks: ot(),
446
+ dirty: o,
447
+ skip_bound: !1,
448
+ root: t.target || u.$$.root
449
+ };
450
+ l && l(c.root);
451
+ let h = !1;
452
+ if (c.ctx = n ? n(e, t.props || {}, (f, _, ...p) => {
453
+ const d = p.length ? p[0] : _;
454
+ return c.ctx && r(c.ctx[f], c.ctx[f] = d) && (!c.skip_bound && c.bound[f] && c.bound[f](d), h && oe(e, f)), _;
455
+ }) : [], c.update(), h = !0, L(c.before_update), c.fragment = i ? i(c.ctx) : !1, t.target) {
456
+ if (t.hydrate) {
457
+ const f = Ht(t.target);
458
+ c.fragment && c.fragment.l(f), f.forEach(O);
459
+ } else
460
+ c.fragment && c.fragment.c();
461
+ t.intro && R(e.$$.fragment), se(e, t.target, t.anchor), C();
462
+ }
463
+ B(u);
464
+ }
465
+ let wt;
466
+ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
467
+ constructor(t, n, i) {
468
+ super();
469
+ /** The Svelte component constructor */
470
+ m(this, "$$ctor");
471
+ /** Slots */
472
+ m(this, "$$s");
473
+ /** The Svelte component instance */
474
+ m(this, "$$c");
475
+ /** Whether or not the custom element is connected */
476
+ m(this, "$$cn", !1);
477
+ /** Component props data */
478
+ m(this, "$$d", {});
479
+ /** `true` if currently in the process of reflecting component props back to attributes */
480
+ m(this, "$$r", !1);
481
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
482
+ m(this, "$$p_d", {});
483
+ /** @type {Record<string, Function[]>} Event listeners */
484
+ m(this, "$$l", {});
485
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
486
+ m(this, "$$l_u", /* @__PURE__ */ new Map());
487
+ this.$$ctor = t, this.$$s = n, i && this.attachShadow({ mode: "open" });
488
+ }
489
+ addEventListener(t, n, i) {
490
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
491
+ const r = this.$$c.$on(t, n);
492
+ this.$$l_u.set(n, r);
493
+ }
494
+ super.addEventListener(t, n, i);
495
+ }
496
+ removeEventListener(t, n, i) {
497
+ if (super.removeEventListener(t, n, i), this.$$c) {
498
+ const r = this.$$l_u.get(n);
499
+ r && (r(), this.$$l_u.delete(n));
500
+ }
501
+ }
502
+ connectedCallback() {
503
+ return rt(this, null, function* () {
504
+ if (this.$$cn = !0, !this.$$c) {
505
+ let t = function(s) {
506
+ return () => {
507
+ let l;
508
+ return {
509
+ c: function() {
510
+ l = E("slot"), s !== "default" && x(l, "name", s);
511
+ },
512
+ /**
513
+ * @param {HTMLElement} target
514
+ * @param {HTMLElement} [anchor]
515
+ */
516
+ m: function(c, h) {
517
+ et(c, l, h);
518
+ },
519
+ d: function(c) {
520
+ c && O(l);
521
+ }
522
+ };
523
+ };
524
+ };
525
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
526
+ return;
527
+ const n = {}, i = Ft(this);
528
+ for (const s of this.$$s)
529
+ s in i && (n[s] = [t(s)]);
530
+ for (const s of this.attributes) {
531
+ const l = this.$$g_p(s.name);
532
+ l in this.$$d || (this.$$d[l] = I(l, s.value, this.$$p_d, "toProp"));
533
+ }
534
+ for (const s in this.$$p_d)
535
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
536
+ this.$$c = new this.$$ctor({
537
+ target: this.shadowRoot || this,
538
+ props: st(it({}, this.$$d), {
539
+ $$slots: n,
540
+ $$scope: {
541
+ ctx: []
542
+ }
543
+ })
544
+ });
545
+ const r = () => {
546
+ this.$$r = !0;
547
+ for (const s in this.$$p_d)
548
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
549
+ const l = I(
550
+ s,
551
+ this.$$d[s],
552
+ this.$$p_d,
553
+ "toAttribute"
554
+ );
555
+ l == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, l);
556
+ }
557
+ this.$$r = !1;
558
+ };
559
+ this.$$c.$$.after_update.push(r), r();
560
+ for (const s in this.$$l)
561
+ for (const l of this.$$l[s]) {
562
+ const o = this.$$c.$on(s, l);
563
+ this.$$l_u.set(l, o);
564
+ }
565
+ this.$$l = {};
566
+ }
567
+ });
568
+ }
569
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
570
+ // and setting attributes through setAttribute etc, this is helpful
571
+ attributeChangedCallback(t, n, i) {
572
+ var r;
573
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = I(t, i, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
574
+ }
575
+ disconnectedCallback() {
576
+ this.$$cn = !1, Promise.resolve().then(() => {
577
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
578
+ });
579
+ }
580
+ $$g_p(t) {
581
+ return Object.keys(this.$$p_d).find(
582
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
583
+ ) || t;
584
+ }
585
+ });
586
+ function I(e, t, n, i) {
587
+ var s;
588
+ const r = (s = n[e]) == null ? void 0 : s.type;
589
+ if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
590
+ return t;
591
+ if (i === "toAttribute")
592
+ switch (r) {
593
+ case "Object":
594
+ case "Array":
595
+ return t == null ? null : JSON.stringify(t);
596
+ case "Boolean":
597
+ return t ? "" : null;
598
+ case "Number":
599
+ return t == null ? null : t;
600
+ default:
601
+ return t;
602
+ }
603
+ else
604
+ switch (r) {
605
+ case "Object":
606
+ case "Array":
607
+ return t && JSON.parse(t);
608
+ case "Boolean":
609
+ return t;
610
+ case "Number":
611
+ return t != null ? +t : t;
612
+ default:
613
+ return t;
614
+ }
615
+ }
616
+ function ce(e, t, n, i, r, s) {
617
+ let l = class extends wt {
618
+ constructor() {
619
+ super(e, n, r), this.$$p_d = t;
620
+ }
621
+ static get observedAttributes() {
622
+ return Object.keys(t).map(
623
+ (o) => (t[o].attribute || o).toLowerCase()
624
+ );
625
+ }
626
+ };
627
+ return Object.keys(t).forEach((o) => {
628
+ Object.defineProperty(l.prototype, o, {
629
+ get() {
630
+ return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
631
+ },
632
+ set(u) {
633
+ var c;
634
+ u = I(o, u, t), this.$$d[o] = u, (c = this.$$c) == null || c.$set({ [o]: u });
635
+ }
636
+ });
637
+ }), i.forEach((o) => {
638
+ Object.defineProperty(l.prototype, o, {
639
+ get() {
640
+ var u;
641
+ return (u = this.$$c) == null ? void 0 : u[o];
642
+ }
643
+ });
644
+ }), e.element = /** @type {any} */
645
+ l, l;
646
+ }
647
+ class ue {
648
+ constructor() {
649
+ /**
650
+ * ### PRIVATE API
651
+ *
652
+ * Do not use, may change at any time
653
+ *
654
+ * @type {any}
655
+ */
656
+ m(this, "$$");
657
+ /**
658
+ * ### PRIVATE API
659
+ *
660
+ * Do not use, may change at any time
661
+ *
662
+ * @type {any}
663
+ */
664
+ m(this, "$$set");
665
+ }
666
+ /** @returns {void} */
667
+ $destroy() {
668
+ re(this, 1), this.$destroy = W;
669
+ }
670
+ /**
671
+ * @template {Extract<keyof Events, string>} K
672
+ * @param {K} type
673
+ * @param {((e: Events[K]) => void) | null | undefined} callback
674
+ * @returns {() => void}
675
+ */
676
+ $on(t, n) {
677
+ if (!Y(n))
678
+ return W;
679
+ const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
680
+ return i.push(n), () => {
681
+ const r = i.indexOf(n);
682
+ r !== -1 && i.splice(r, 1);
683
+ };
684
+ }
685
+ /**
686
+ * @param {Partial<Props>} props
687
+ * @returns {void}
688
+ */
689
+ $set(t) {
690
+ this.$$set && !St(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
691
+ }
692
+ }
693
+ const ae = "4";
694
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ae);
695
+ function ft(e, { delay: t = 0, duration: n = 400, easing: i = $t } = {}) {
696
+ const r = +getComputedStyle(e).opacity;
697
+ return {
698
+ delay: t,
699
+ duration: n,
700
+ easing: i,
701
+ css: (s) => `opacity: ${s * r}`
702
+ };
703
+ }
704
+ function fe(e) {
705
+ Pt(e, "svelte-pil2bm", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--mmw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}");
706
+ }
707
+ const de = (e) => ({}), dt = (e) => ({});
708
+ function ht(e) {
709
+ let t, n, i, r, s, l;
710
+ const o = (
711
+ /*#slots*/
712
+ e[9].content
713
+ ), u = jt(
714
+ o,
715
+ e,
716
+ /*$$scope*/
717
+ e[8],
718
+ dt
719
+ );
720
+ return {
721
+ c() {
722
+ t = E("div"), n = E("div"), i = E("div"), u && u.c(), x(i, "class", "ModalContainer"), x(i, "part", "ModalContainer"), x(n, "class", "ModalWindow"), x(n, "part", "ModalWindow"), x(n, "id", "Modal"), j(() => (
723
+ /*div1_elementresize_handler*/
724
+ e[11].call(n)
725
+ )), x(t, "part", "CustomStylingContainer");
726
+ },
727
+ m(c, h) {
728
+ et(c, t, h), F(t, n), F(n, i), u && u.m(i, null), e[10](n), r = Dt(
729
+ n,
730
+ /*div1_elementresize_handler*/
731
+ e[11].bind(n)
732
+ ), e[12](t), l = !0;
733
+ },
734
+ p(c, h) {
735
+ e = c, u && u.p && (!l || h & /*$$scope*/
736
+ 256) && Ot(
737
+ u,
738
+ o,
739
+ e,
740
+ /*$$scope*/
741
+ e[8],
742
+ l ? Lt(
743
+ o,
744
+ /*$$scope*/
745
+ e[8],
746
+ h,
747
+ de
748
+ ) : At(
749
+ /*$$scope*/
750
+ e[8]
751
+ ),
752
+ dt
753
+ );
754
+ },
755
+ i(c) {
756
+ l || (R(u, c), c && j(() => {
757
+ l && (s || (s = at(
758
+ n,
759
+ ft,
760
+ /*duration*/
761
+ e[2],
762
+ !0
763
+ )), s.run(1));
764
+ }), l = !0);
765
+ },
766
+ o(c) {
767
+ X(u, c), c && (s || (s = at(
768
+ n,
769
+ ft,
770
+ /*duration*/
771
+ e[2],
772
+ !1
773
+ )), s.run(0)), l = !1;
774
+ },
775
+ d(c) {
776
+ c && O(t), u && u.d(c), e[10](null), r(), c && s && s.end(), e[12](null);
777
+ }
778
+ };
779
+ }
780
+ function he(e) {
781
+ let t, n, i = (
782
+ /*show*/
783
+ e[5] && ht(e)
784
+ );
785
+ return {
786
+ c() {
787
+ i && i.c(), t = Wt();
788
+ },
789
+ m(r, s) {
790
+ i && i.m(r, s), et(r, t, s), n = !0;
791
+ },
792
+ p(r, [s]) {
793
+ /*show*/
794
+ r[5] ? i ? (i.p(r, s), s & /*show*/
795
+ 32 && R(i, 1)) : (i = ht(r), i.c(), R(i, 1), i.m(t.parentNode, t)) : i && (ee(), X(i, 1, 1, () => {
796
+ i = null;
797
+ }), ne());
798
+ },
799
+ i(r) {
800
+ n || (R(i), n = !0);
801
+ },
802
+ o(r) {
803
+ X(i), n = !1;
804
+ },
805
+ d(r) {
806
+ r && O(t), i && i.d(r);
807
+ }
808
+ };
809
+ }
810
+ function $e(e, t, n) {
811
+ let { $$slots: i = {}, $$scope: r } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { duration: o = 200 } = t, { width: u } = t, { height: c } = t, h, f, _ = !1;
812
+ const p = () => {
813
+ n(5, _ = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
814
+ }, d = (a) => {
815
+ a.data.type == "ShowCashierModal" && (n(5, _ = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierModal" && p();
816
+ }, g = () => {
817
+ let a = document.createElement("style");
818
+ a.innerHTML = s, f.appendChild(a);
819
+ }, $ = () => {
820
+ let a = new URL(l), b = document.createElement("style");
821
+ fetch(a.href).then((z) => z.text()).then((z) => {
822
+ b.innerHTML = z, setTimeout(
823
+ () => {
824
+ f.appendChild(b);
825
+ },
826
+ 1
827
+ );
828
+ });
829
+ };
830
+ Kt(() => (window.addEventListener("message", d, !1), () => {
831
+ window.removeEventListener("message", d);
832
+ }));
833
+ function w(a) {
834
+ V[a ? "unshift" : "push"](() => {
835
+ h = a, n(4, h);
836
+ });
837
+ }
838
+ function A() {
839
+ u = this.clientWidth, c = this.clientHeight, n(0, u), n(1, c);
840
+ }
841
+ function N(a) {
842
+ V[a ? "unshift" : "push"](() => {
843
+ f = a, n(3, f);
844
+ });
845
+ }
846
+ return e.$$set = (a) => {
847
+ "clientstyling" in a && n(6, s = a.clientstyling), "clientstylingurl" in a && n(7, l = a.clientstylingurl), "duration" in a && n(2, o = a.duration), "width" in a && n(0, u = a.width), "height" in a && n(1, c = a.height), "$$scope" in a && n(8, r = a.$$scope);
848
+ }, e.$$.update = () => {
849
+ e.$$.dirty & /*clientstyling, customStylingContainer*/
850
+ 72 && s && f && g(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
851
+ 136 && l && f && $();
852
+ }, [
853
+ u,
854
+ c,
855
+ o,
856
+ f,
857
+ h,
858
+ _,
859
+ s,
860
+ l,
861
+ r,
862
+ i,
863
+ w,
864
+ A,
865
+ N
866
+ ];
867
+ }
868
+ class _e extends ue {
869
+ constructor(t) {
870
+ super(), le(
871
+ this,
872
+ t,
873
+ $e,
874
+ he,
875
+ kt,
876
+ {
877
+ clientstyling: 6,
878
+ clientstylingurl: 7,
879
+ duration: 2,
880
+ width: 0,
881
+ height: 1
882
+ },
883
+ fe
884
+ );
885
+ }
886
+ get clientstyling() {
887
+ return this.$$.ctx[6];
888
+ }
889
+ set clientstyling(t) {
890
+ this.$$set({ clientstyling: t }), C();
891
+ }
892
+ get clientstylingurl() {
893
+ return this.$$.ctx[7];
894
+ }
895
+ set clientstylingurl(t) {
896
+ this.$$set({ clientstylingurl: t }), C();
897
+ }
898
+ get duration() {
899
+ return this.$$.ctx[2];
900
+ }
901
+ set duration(t) {
902
+ this.$$set({ duration: t }), C();
903
+ }
904
+ get width() {
905
+ return this.$$.ctx[0];
906
+ }
907
+ set width(t) {
908
+ this.$$set({ width: t }), C();
909
+ }
910
+ get height() {
911
+ return this.$$.ctx[1];
912
+ }
913
+ set height(t) {
914
+ this.$$set({ height: t }), C();
915
+ }
916
+ }
917
+ ce(_e, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
918
+ export {
919
+ _e as default
920
+ };
@@ -1,6 +1,6 @@
1
1
  function R() {
2
2
  }
3
- const lt = (t) => t;
3
+ const ct = (t) => t;
4
4
  function _t(t, e) {
5
5
  for (const n in e) t[n] = e[n];
6
6
  return (
@@ -41,8 +41,8 @@ function yt(t, e, n, i) {
41
41
  if (e.dirty === void 0)
42
42
  return s;
43
43
  if (typeof s == "object") {
44
- const r = [], l = Math.max(e.dirty.length, s.length);
45
- for (let o = 0; o < l; o += 1)
44
+ const r = [], c = Math.max(e.dirty.length, s.length);
45
+ for (let o = 0; o < c; o += 1)
46
46
  r[o] = e.dirty[o] | s[o];
47
47
  return r;
48
48
  }
@@ -52,8 +52,8 @@ function yt(t, e, n, i) {
52
52
  }
53
53
  function wt(t, e, n, i, s, r) {
54
54
  if (s) {
55
- const l = at(e, n, i, r);
56
- t.p(l, s);
55
+ const c = at(e, n, i, r);
56
+ t.p(c, s);
57
57
  }
58
58
  }
59
59
  function bt(t) {
@@ -163,8 +163,8 @@ function Lt(t, e) {
163
163
  window,
164
164
  "message",
165
165
  /** @param {MessageEvent} event */
166
- (l) => {
167
- l.source === i.contentWindow && e();
166
+ (c) => {
167
+ c.source === i.contentWindow && e();
168
168
  }
169
169
  )) : (i.src = "about:blank", i.onload = () => {
170
170
  r = et(i.contentWindow, "resize", e), e();
@@ -195,16 +195,16 @@ function zt(t, e) {
195
195
  const n = { stylesheet: vt(e), rules: {} };
196
196
  return F.set(t, n), n;
197
197
  }
198
- function nt(t, e, n, i, s, r, l, o = 0) {
198
+ function nt(t, e, n, i, s, r, c, o = 0) {
199
199
  const u = 16.666 / i;
200
- let c = `{
200
+ let l = `{
201
201
  `;
202
202
  for (let $ = 0; $ <= 1; $ += u) {
203
203
  const y = e + (n - e) * r($);
204
- c += $ * 100 + `%{${l(y, 1 - y)}}
204
+ l += $ * 100 + `%{${c(y, 1 - y)}}
205
205
  `;
206
206
  }
207
- const h = c + `100% {${l(n, 1 - n)}}
207
+ const h = l + `100% {${c(n, 1 - n)}}
208
208
  }`, f = `__svelte_${Nt(h)}_${o}`, _ = Y(t), { stylesheet: m, rules: d } = F.get(_) || zt(_, t);
209
209
  d[f] || (d[f] = !0, m.insertRule(`@keyframes ${f} ${h}`, m.cssRules.length));
210
210
  const g = t.style.animation || "";
@@ -318,17 +318,17 @@ function K(t, e, n, i) {
318
318
  }
319
319
  const Vt = { duration: 0 };
320
320
  function st(t, e, n, i) {
321
- let r = e(t, n, { direction: "both" }), l = i ? 0 : 1, o = null, u = null, c = null, h;
321
+ let r = e(t, n, { direction: "both" }), c = i ? 0 : 1, o = null, u = null, l = null, h;
322
322
  function f() {
323
- c && Pt(t, c);
323
+ l && Pt(t, l);
324
324
  }
325
325
  function _(d, g) {
326
326
  const $ = (
327
327
  /** @type {Program['d']} */
328
- d.b - l
328
+ d.b - c
329
329
  );
330
330
  return g *= Math.abs($), {
331
- a: l,
331
+ a: c,
332
332
  b: d.b,
333
333
  d: $,
334
334
  duration: g,
@@ -341,7 +341,7 @@ function st(t, e, n, i) {
341
341
  const {
342
342
  delay: g = 0,
343
343
  duration: $ = 300,
344
- easing: y = lt,
344
+ easing: y = ct,
345
345
  tick: O = R,
346
346
  css: A
347
347
  } = r || Vt, a = {
@@ -349,10 +349,10 @@ function st(t, e, n, i) {
349
349
  b: d
350
350
  };
351
351
  d || (a.group = p, p.r += 1), "inert" in t && (d ? h !== void 0 && (t.inert = h) : (h = /** @type {HTMLElement} */
352
- t.inert, t.inert = !0)), o || u ? u = a : (A && (f(), c = nt(t, l, d, $, g, y, A)), d && O(0, 1), o = _(a, $), S(() => q(t, d, "start")), Ct((w) => {
353
- if (u && w > u.start && (o = _(u, $), u = null, q(t, o.b, "start"), A && (f(), c = nt(
352
+ t.inert, t.inert = !0)), o || u ? u = a : (A && (f(), l = nt(t, c, d, $, g, y, A)), d && O(0, 1), o = _(a, $), S(() => q(t, d, "start")), Ct((w) => {
353
+ if (u && w > u.start && (o = _(u, $), u = null, q(t, o.b, "start"), A && (f(), l = nt(
354
354
  t,
355
- l,
355
+ c,
356
356
  o.b,
357
357
  o.duration,
358
358
  0,
@@ -360,10 +360,10 @@ function st(t, e, n, i) {
360
360
  r.css
361
361
  ))), o) {
362
362
  if (w >= o.end)
363
- O(l = o.b, 1 - l), q(t, o.b, "end"), u || (o.b ? f() : --o.group.r || j(o.group.c)), o = null;
363
+ O(c = o.b, 1 - c), q(t, o.b, "end"), u || (o.b ? f() : --o.group.r || j(o.group.c)), o = null;
364
364
  else if (w >= o.start) {
365
365
  const N = w - o.start;
366
- l = o.a + o.d * y(N / o.duration), O(l, 1 - l);
366
+ c = o.a + o.d * y(N / o.duration), O(c, 1 - c);
367
367
  }
368
368
  }
369
369
  return !!(o || u);
@@ -394,10 +394,10 @@ function Gt(t, e) {
394
394
  function Kt(t, e) {
395
395
  t.$$.dirty[0] === -1 && (v.push(t), Tt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
396
396
  }
397
- function Qt(t, e, n, i, s, r, l = null, o = [-1]) {
397
+ function Qt(t, e, n, i, s, r, c = null, o = [-1]) {
398
398
  const u = W;
399
399
  P(t);
400
- const c = t.$$ = {
400
+ const l = t.$$ = {
401
401
  fragment: null,
402
402
  ctx: [],
403
403
  // state
@@ -418,17 +418,17 @@ function Qt(t, e, n, i, s, r, l = null, o = [-1]) {
418
418
  skip_bound: !1,
419
419
  root: e.target || u.$$.root
420
420
  };
421
- l && l(c.root);
421
+ c && c(l.root);
422
422
  let h = !1;
423
- if (c.ctx = n(t, e.props || {}, (f, _, ...m) => {
423
+ if (l.ctx = n ? n(t, e.props || {}, (f, _, ...m) => {
424
424
  const d = m.length ? m[0] : _;
425
- return c.ctx && s(c.ctx[f], c.ctx[f] = d) && (!c.skip_bound && c.bound[f] && c.bound[f](d), h && Kt(t, f)), _;
426
- }), c.update(), h = !0, j(c.before_update), c.fragment = i(c.ctx), e.target) {
425
+ return l.ctx && s(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), h && Kt(t, f)), _;
426
+ }) : [], l.update(), h = !0, j(l.before_update), l.fragment = i ? i(l.ctx) : !1, e.target) {
427
427
  if (e.hydrate) {
428
428
  const f = St(e.target);
429
- c.fragment && c.fragment.l(f), f.forEach(L);
429
+ l.fragment && l.fragment.l(f), f.forEach(L);
430
430
  } else
431
- c.fragment && c.fragment.c();
431
+ l.fragment && l.fragment.c();
432
432
  e.intro && B(t.$$.fragment), qt(t, e.target, e.anchor), x();
433
433
  }
434
434
  P(u);
@@ -482,8 +482,8 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
482
482
  * @param {HTMLElement} target
483
483
  * @param {HTMLElement} [anchor]
484
484
  */
485
- m: function(u, c) {
486
- Z(u, r, c);
485
+ m: function(u, l) {
486
+ Z(u, r, l);
487
487
  },
488
488
  d: function(u) {
489
489
  u && L(r);
@@ -529,8 +529,8 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
529
529
  this.$$c.$$.after_update.push(i), i();
530
530
  for (const s in this.$$l)
531
531
  for (const r of this.$$l[s]) {
532
- const l = this.$$c.$on(s, r);
533
- this.$$l_u.set(r, l);
532
+ const c = this.$$c.$on(s, r);
533
+ this.$$l_u.set(r, c);
534
534
  }
535
535
  this.$$l = {};
536
536
  }
@@ -581,7 +581,7 @@ function D(t, e, n, i) {
581
581
  }
582
582
  }
583
583
  function Xt(t, e, n, i, s, r) {
584
- let l = class extends $t {
584
+ let c = class extends $t {
585
585
  constructor() {
586
586
  super(t, n, s), this.$$p_d = e;
587
587
  }
@@ -592,7 +592,7 @@ function Xt(t, e, n, i, s, r) {
592
592
  }
593
593
  };
594
594
  return Object.keys(e).forEach((o) => {
595
- Object.defineProperty(l.prototype, o, {
595
+ Object.defineProperty(c.prototype, o, {
596
596
  get() {
597
597
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
598
598
  },
@@ -601,13 +601,13 @@ function Xt(t, e, n, i, s, r) {
601
601
  }
602
602
  });
603
603
  }), i.forEach((o) => {
604
- Object.defineProperty(l.prototype, o, {
604
+ Object.defineProperty(c.prototype, o, {
605
605
  get() {
606
606
  return this.$$c?.[o];
607
607
  }
608
608
  });
609
609
  }), t.element = /** @type {any} */
610
- l, l;
610
+ c, c;
611
611
  }
612
612
  class Yt {
613
613
  /**
@@ -655,7 +655,7 @@ class Yt {
655
655
  }
656
656
  const Zt = "4";
657
657
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zt);
658
- function rt(t, { delay: e = 0, duration: n = 400, easing: i = lt } = {}) {
658
+ function rt(t, { delay: e = 0, duration: n = 400, easing: i = ct } = {}) {
659
659
  const s = +getComputedStyle(t).opacity;
660
660
  return {
661
661
  delay: e,
@@ -668,8 +668,8 @@ function te(t) {
668
668
  Et(t, "svelte-pil2bm", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--mmw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}");
669
669
  }
670
670
  const ee = (t) => ({}), ot = (t) => ({});
671
- function ct(t) {
672
- let e, n, i, s, r, l;
671
+ function lt(t) {
672
+ let e, n, i, s, r, c;
673
673
  const o = (
674
674
  /*#slots*/
675
675
  t[9].content
@@ -687,22 +687,22 @@ function ct(t) {
687
687
  t[11].call(n)
688
688
  )), b(e, "part", "CustomStylingContainer");
689
689
  },
690
- m(c, h) {
691
- Z(c, e, h), I(e, n), I(n, i), u && u.m(i, null), t[10](n), s = Lt(
690
+ m(l, h) {
691
+ Z(l, e, h), I(e, n), I(n, i), u && u.m(i, null), t[10](n), s = Lt(
692
692
  n,
693
693
  /*div1_elementresize_handler*/
694
694
  t[11].bind(n)
695
- ), t[12](e), l = !0;
695
+ ), t[12](e), c = !0;
696
696
  },
697
- p(c, h) {
698
- t = c, u && u.p && (!l || h & /*$$scope*/
697
+ p(l, h) {
698
+ t = l, u && u.p && (!c || h & /*$$scope*/
699
699
  256) && wt(
700
700
  u,
701
701
  o,
702
702
  t,
703
703
  /*$$scope*/
704
704
  t[8],
705
- l ? yt(
705
+ c ? yt(
706
706
  o,
707
707
  /*$$scope*/
708
708
  t[8],
@@ -715,35 +715,35 @@ function ct(t) {
715
715
  ot
716
716
  );
717
717
  },
718
- i(c) {
719
- l || (B(u, c), c && S(() => {
720
- l && (r || (r = st(
718
+ i(l) {
719
+ c || (B(u, l), l && S(() => {
720
+ c && (r || (r = st(
721
721
  n,
722
722
  rt,
723
723
  /*duration*/
724
724
  t[2],
725
725
  !0
726
726
  )), r.run(1));
727
- }), l = !0);
727
+ }), c = !0);
728
728
  },
729
- o(c) {
730
- K(u, c), c && (r || (r = st(
729
+ o(l) {
730
+ K(u, l), l && (r || (r = st(
731
731
  n,
732
732
  rt,
733
733
  /*duration*/
734
734
  t[2],
735
735
  !1
736
- )), r.run(0)), l = !1;
736
+ )), r.run(0)), c = !1;
737
737
  },
738
- d(c) {
739
- c && L(e), u && u.d(c), t[10](null), s(), c && r && r.end(), t[12](null);
738
+ d(l) {
739
+ l && L(e), u && u.d(l), t[10](null), s(), l && r && r.end(), t[12](null);
740
740
  }
741
741
  };
742
742
  }
743
743
  function ne(t) {
744
744
  let e, n, i = (
745
745
  /*show*/
746
- t[5] && ct(t)
746
+ t[5] && lt(t)
747
747
  );
748
748
  return {
749
749
  c() {
@@ -755,7 +755,7 @@ function ne(t) {
755
755
  p(s, [r]) {
756
756
  /*show*/
757
757
  s[5] ? i ? (i.p(s, r), r & /*show*/
758
- 32 && B(i, 1)) : (i = ct(s), i.c(), B(i, 1), i.m(e.parentNode, e)) : i && (Ut(), K(i, 1, 1, () => {
758
+ 32 && B(i, 1)) : (i = lt(s), i.c(), B(i, 1), i.m(e.parentNode, e)) : i && (Ut(), K(i, 1, 1, () => {
759
759
  i = null;
760
760
  }), Jt());
761
761
  },
@@ -771,7 +771,7 @@ function ne(t) {
771
771
  };
772
772
  }
773
773
  function ie(t, e, n) {
774
- let { $$slots: i = {}, $$scope: s } = e, { clientstyling: r = "" } = e, { clientstylingurl: l = "" } = e, { duration: o = 200 } = e, { width: u } = e, { height: c } = e, h, f, _ = !1;
774
+ let { $$slots: i = {}, $$scope: s } = e, { clientstyling: r = "" } = e, { clientstylingurl: c = "" } = e, { duration: o = 200 } = e, { width: u } = e, { height: l } = e, h, f, _ = !1;
775
775
  const m = () => {
776
776
  n(5, _ = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
777
777
  }, d = (a) => {
@@ -780,7 +780,7 @@ function ie(t, e, n) {
780
780
  let a = document.createElement("style");
781
781
  a.innerHTML = r, f.appendChild(a);
782
782
  }, $ = () => {
783
- let a = new URL(l), w = document.createElement("style");
783
+ let a = new URL(c), w = document.createElement("style");
784
784
  fetch(a.href).then((N) => N.text()).then((N) => {
785
785
  w.innerHTML = N, setTimeout(
786
786
  () => {
@@ -799,7 +799,7 @@ function ie(t, e, n) {
799
799
  });
800
800
  }
801
801
  function O() {
802
- u = this.clientWidth, c = this.clientHeight, n(0, u), n(1, c);
802
+ u = this.clientWidth, l = this.clientHeight, n(0, u), n(1, l);
803
803
  }
804
804
  function A(a) {
805
805
  J[a ? "unshift" : "push"](() => {
@@ -807,20 +807,20 @@ function ie(t, e, n) {
807
807
  });
808
808
  }
809
809
  return t.$$set = (a) => {
810
- "clientstyling" in a && n(6, r = a.clientstyling), "clientstylingurl" in a && n(7, l = a.clientstylingurl), "duration" in a && n(2, o = a.duration), "width" in a && n(0, u = a.width), "height" in a && n(1, c = a.height), "$$scope" in a && n(8, s = a.$$scope);
810
+ "clientstyling" in a && n(6, r = a.clientstyling), "clientstylingurl" in a && n(7, c = a.clientstylingurl), "duration" in a && n(2, o = a.duration), "width" in a && n(0, u = a.width), "height" in a && n(1, l = a.height), "$$scope" in a && n(8, s = a.$$scope);
811
811
  }, t.$$.update = () => {
812
812
  t.$$.dirty & /*clientstyling, customStylingContainer*/
813
813
  72 && r && f && g(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
814
- 136 && l && f && $();
814
+ 136 && c && f && $();
815
815
  }, [
816
816
  u,
817
- c,
817
+ l,
818
818
  o,
819
819
  f,
820
820
  h,
821
821
  _,
822
822
  r,
823
- l,
823
+ c,
824
824
  s,
825
825
  i,
826
826
  y,
@@ -0,0 +1 @@
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierModal-BJ3StTUS.cjs")).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}
@@ -0,0 +1,16 @@
1
+ if (typeof window != "undefined") {
2
+ let n = function(t) {
3
+ return function(...s) {
4
+ try {
5
+ return t.apply(this, s);
6
+ } catch (e) {
7
+ if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
8
+ return !1;
9
+ throw e;
10
+ }
11
+ };
12
+ };
13
+ customElements.define = n(customElements.define), import("../components/CashierModal-D8IQKUT4.js").then(({ default: t }) => {
14
+ !customElements.get("cashier-modal") && customElements.define("cashier-modal", t.element);
15
+ });
16
+ }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierModal-CJQfNUPE.js";
1
+ import { C as n } from "../components/CashierModal-DV-f7pXc.js";
2
2
  function a(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-modal",
3
- "version": "1.54.4",
3
+ "version": "1.54.8",
4
4
  "type": "module",
5
5
  "main": "esnext/cashier-modal.js",
6
6
  "module": "esnext/cashier-modal.js",