@everymatrix/cashier-modal 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierModal-D8IQKUT4.js → CashierModal-C5A6rF4K.js} +15 -8
- package/components/{CashierModal-BJ3StTUS.cjs → CashierModal-D4w4G_Z-.cjs} +1 -1
- package/components/{CashierModal-DV-f7pXc.js → CashierModal-h_mBPMEv.js} +14 -7
- package/es2015/cashier-modal.cjs +1 -1
- package/es2015/cashier-modal.js +1 -1
- package/esnext/cashier-modal.js +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ var q = (e, t, n) => t in e ? bt(e, t, { enumerable: !0, configurable: !0, writa
|
|
|
10
10
|
vt.call(t, n) && q(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, st = (e, t) => xt(e, Ct(t));
|
|
13
|
-
var m = (e, t, n) => q(e, typeof t != "symbol" ? t + "" : t, n);
|
|
13
|
+
var m = (e, t, n) => (q(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var rt = (e, t, n) => new Promise((i, r) => {
|
|
15
15
|
var s = (u) => {
|
|
16
16
|
try {
|
|
@@ -31,7 +31,8 @@ function W() {
|
|
|
31
31
|
}
|
|
32
32
|
const $t = (e) => e;
|
|
33
33
|
function Mt(e, t) {
|
|
34
|
-
for (const n in t)
|
|
34
|
+
for (const n in t)
|
|
35
|
+
e[n] = t[n];
|
|
35
36
|
return (
|
|
36
37
|
/** @type {T & S} */
|
|
37
38
|
e
|
|
@@ -124,7 +125,8 @@ function Pt(e, t, n) {
|
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
function tt(e) {
|
|
127
|
-
if (!e)
|
|
128
|
+
if (!e)
|
|
129
|
+
return document;
|
|
128
130
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
129
131
|
return t && /** @type {ShadowRoot} */
|
|
130
132
|
t.host ? (
|
|
@@ -217,7 +219,8 @@ const U = /* @__PURE__ */ new Map();
|
|
|
217
219
|
let J = 0;
|
|
218
220
|
function Ut(e) {
|
|
219
221
|
let t = 5381, n = e.length;
|
|
220
|
-
for (; n--; )
|
|
222
|
+
for (; n--; )
|
|
223
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
221
224
|
return t >>> 0;
|
|
222
225
|
}
|
|
223
226
|
function Jt(e, t) {
|
|
@@ -259,7 +262,8 @@ function B(e) {
|
|
|
259
262
|
H = e;
|
|
260
263
|
}
|
|
261
264
|
function Gt() {
|
|
262
|
-
if (!H)
|
|
265
|
+
if (!H)
|
|
266
|
+
throw new Error("Function called outside component initialization");
|
|
263
267
|
return H;
|
|
264
268
|
}
|
|
265
269
|
function Kt(e) {
|
|
@@ -290,7 +294,8 @@ function C() {
|
|
|
290
294
|
} catch (t) {
|
|
291
295
|
throw M.length = 0, v = 0, t;
|
|
292
296
|
}
|
|
293
|
-
for (B(null), M.length = 0, v = 0; V.length; )
|
|
297
|
+
for (B(null), M.length = 0, v = 0; V.length; )
|
|
298
|
+
V.pop()();
|
|
294
299
|
for (let t = 0; t < S.length; t += 1) {
|
|
295
300
|
const n = S[t];
|
|
296
301
|
G.has(n) || (G.add(n), n());
|
|
@@ -339,11 +344,13 @@ function R(e, t) {
|
|
|
339
344
|
}
|
|
340
345
|
function X(e, t, n, i) {
|
|
341
346
|
if (e && e.o) {
|
|
342
|
-
if (D.has(e))
|
|
347
|
+
if (D.has(e))
|
|
348
|
+
return;
|
|
343
349
|
D.add(e), y.c.push(() => {
|
|
344
350
|
D.delete(e), i && (n && e.d(1), i());
|
|
345
351
|
}), e.o(t);
|
|
346
|
-
} else
|
|
352
|
+
} else
|
|
353
|
+
i && i();
|
|
347
354
|
}
|
|
348
355
|
const ie = { duration: 0 };
|
|
349
356
|
function at(e, t, n, i) {
|
|
@@ -1,4 +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=`{
|
|
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),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
2
|
`;for(let $=0;$<=1;$+=u){const w=t+(n-t)*s($);c+=$*100+`%{${l(w,1-w)}}
|
|
3
3
|
`}const h=c+`100% {${l(n,1-n)}}
|
|
4
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;
|
|
@@ -2,7 +2,8 @@ function R() {
|
|
|
2
2
|
}
|
|
3
3
|
const ct = (t) => t;
|
|
4
4
|
function _t(t, e) {
|
|
5
|
-
for (const n in e)
|
|
5
|
+
for (const n in e)
|
|
6
|
+
t[n] = e[n];
|
|
6
7
|
return (
|
|
7
8
|
/** @type {T & S} */
|
|
8
9
|
t
|
|
@@ -95,7 +96,8 @@ function Et(t, e, n) {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
function Y(t) {
|
|
98
|
-
if (!t)
|
|
99
|
+
if (!t)
|
|
100
|
+
return document;
|
|
99
101
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
100
102
|
return e && /** @type {ShadowRoot} */
|
|
101
103
|
e.host ? (
|
|
@@ -188,7 +190,8 @@ const F = /* @__PURE__ */ new Map();
|
|
|
188
190
|
let U = 0;
|
|
189
191
|
function Nt(t) {
|
|
190
192
|
let e = 5381, n = t.length;
|
|
191
|
-
for (; n--; )
|
|
193
|
+
for (; n--; )
|
|
194
|
+
e = (e << 5) - e ^ t.charCodeAt(n);
|
|
192
195
|
return e >>> 0;
|
|
193
196
|
}
|
|
194
197
|
function zt(t, e) {
|
|
@@ -230,7 +233,8 @@ function P(t) {
|
|
|
230
233
|
W = t;
|
|
231
234
|
}
|
|
232
235
|
function Rt() {
|
|
233
|
-
if (!W)
|
|
236
|
+
if (!W)
|
|
237
|
+
throw new Error("Function called outside component initialization");
|
|
234
238
|
return W;
|
|
235
239
|
}
|
|
236
240
|
function Wt(t) {
|
|
@@ -261,7 +265,8 @@ function x() {
|
|
|
261
265
|
} catch (e) {
|
|
262
266
|
throw v.length = 0, E = 0, e;
|
|
263
267
|
}
|
|
264
|
-
for (P(null), v.length = 0, E = 0; J.length; )
|
|
268
|
+
for (P(null), v.length = 0, E = 0; J.length; )
|
|
269
|
+
J.pop()();
|
|
265
270
|
for (let e = 0; e < k.length; e += 1) {
|
|
266
271
|
const n = k[e];
|
|
267
272
|
V.has(n) || (V.add(n), n());
|
|
@@ -310,11 +315,13 @@ function B(t, e) {
|
|
|
310
315
|
}
|
|
311
316
|
function K(t, e, n, i) {
|
|
312
317
|
if (t && t.o) {
|
|
313
|
-
if (T.has(t))
|
|
318
|
+
if (T.has(t))
|
|
319
|
+
return;
|
|
314
320
|
T.add(t), p.c.push(() => {
|
|
315
321
|
T.delete(t), i && (n && t.d(1), i());
|
|
316
322
|
}), t.o(e);
|
|
317
|
-
} else
|
|
323
|
+
} else
|
|
324
|
+
i && i();
|
|
318
325
|
}
|
|
319
326
|
const Vt = { duration: 0 };
|
|
320
327
|
function st(t, e, n, i) {
|
package/es2015/cashier-modal.cjs
CHANGED
|
@@ -1 +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-
|
|
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-D4w4G_Z-.cjs")).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}
|
package/es2015/cashier-modal.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierModal-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierModal-C5A6rF4K.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-modal") && customElements.define("cashier-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/cashier-modal.js
CHANGED