@everymatrix/cashier-page 1.74.7 → 1.74.10
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/{CashierConfirmModal-rwhmlwC5.js → CashierConfirmModal-BYlFu0me.js} +171 -171
- package/components/{CashierConfirmModal-irSMDzV_.cjs → CashierConfirmModal-ByJUy9ry.cjs} +1 -1
- package/components/{CashierConfirmModal-Dx60VYf6.js → CashierConfirmModal-S3xQoD4Y.js} +37 -37
- package/components/CashierError-DRraQILq.cjs +18 -0
- package/components/{CashierError-BWuNinWy.js → CashierError-DZCfGiar.js} +844 -842
- package/components/{CashierError-BIqFaX3H.js → CashierError-sTxUIcEn.js} +845 -843
- package/components/{CashierHeader-CXaZ-6Ua.js → CashierHeader-Be38HoWF.js} +85 -85
- package/components/{CashierHeader-Ca2cghIW.js → CashierHeader-C1kEuuWB.js} +85 -85
- package/components/CashierHeader-DQPl9zQv.cjs +1 -0
- package/components/{CashierIframeRedirect-7GBPLJHr.js → CashierIframeRedirect-CYLFQJXg.js} +19 -19
- package/components/{CashierIframeRedirect-BjLvrvKL.cjs → CashierIframeRedirect-IwINWeSY.cjs} +1 -1
- package/components/{CashierIframeRedirect-ChyzshIQ.js → CashierIframeRedirect-MolEdZEL.js} +19 -19
- package/components/{CashierMethodDetails-DxYPk7Br.cjs → CashierMethodDetails-BCQ8AJM6.cjs} +5 -5
- package/components/{CashierMethodDetails-CEFupmfP.js → CashierMethodDetails-DFS9YP8N.js} +506 -522
- package/components/{CashierMethodDetails-BuRbRo-R.js → CashierMethodDetails-_cqOdGAf.js} +499 -515
- package/components/{CashierMethodsList-CB_m5hK-.js → CashierMethodsList-CiubPxJr.js} +7 -7
- package/components/{CashierMethodsList-BI_GHUxf.cjs → CashierMethodsList-DT1GJvFl.cjs} +1 -1
- package/components/{CashierMethodsList-BqmFmDOC.js → CashierMethodsList-Dok-PyaF.js} +7 -7
- package/components/{CashierModal-CTayVmDw.js → CashierModal-CosVS6ZG.js} +14 -14
- package/components/{CashierModal-Bh6E-PDS.js → CashierModal-DaLEgzCg.js} +14 -14
- package/components/{CashierModal-BwVWBmwZ.cjs → CashierModal-DfAT-fOm.cjs} +1 -1
- package/components/{CashierNotifications-77FpsD4N.js → CashierNotifications-BwRxYhUc.js} +7 -7
- package/components/{CashierNotifications-CM4Cti_x.js → CashierNotifications-D_oROtv8.js} +7 -7
- package/components/{CashierNotifications-YOOhP2yz.cjs → CashierNotifications-Ozbtt3mJ.cjs} +1 -1
- package/components/{CashierPage-Bi90dl_Y.cjs → CashierPage-BwCzKH0T.cjs} +1 -1
- package/components/{CashierPage-Dq-XwH-T.js → CashierPage-cgi3jjun.js} +42 -42
- package/components/{CashierPage-B90j2bUX.js → CashierPage-e-dA2kkK.js} +42 -42
- package/components/{CashierReceiptPage-BsBy8_a9.js → CashierReceiptPage-CWB3Qb6X.js} +7 -7
- package/components/{CashierReceiptPage-C-5P1j5e.cjs → CashierReceiptPage-GuGtbsZ9.cjs} +1 -1
- package/components/{CashierReceiptPage-TGTe-vYp.js → CashierReceiptPage-poXQkZls.js} +7 -7
- package/components/{CashierSessionExpirationModal-D7u1LLSa.js → CashierSessionExpirationModal-COgNoxpO.js} +192 -192
- package/components/{CashierSessionExpirationModal-Bwks132l.js → CashierSessionExpirationModal-CZYZsKSE.js} +192 -192
- package/components/{CashierSessionExpirationModal-lqr-I0nF.cjs → CashierSessionExpirationModal-DH2pQRwj.cjs} +2 -2
- package/components/{CashierSpinner-BhE9RAhI.cjs → CashierSpinner-DF2vfHQq.cjs} +1 -1
- package/components/{CashierSpinner-C6RPqoHx.js → CashierSpinner-itmEpf5t.js} +8 -8
- package/components/{CashierSpinner-sEBjrLfs.js → CashierSpinner-xWC9BbBR.js} +8 -8
- package/components/{CashierTransactionHistory-CkMKi6Fz.js → CashierTransactionHistory-CGvz3iLW.js} +11 -11
- package/components/{CashierTransactionHistory-BSO5XGtr.cjs → CashierTransactionHistory-DVIT9utw.cjs} +1 -1
- package/components/{CashierTransactionHistory-DiONlMGi.js → CashierTransactionHistory-lJRQE6lc.js} +11 -11
- package/components/{CashierVerifications-B63zidU5.js → CashierVerifications-DlieKYAR.js} +8 -8
- package/components/{CashierVerifications-J6r2bd7v.cjs → CashierVerifications-DoORbl64.cjs} +1 -1
- package/components/{CashierVerifications-DkUcWYyo.js → CashierVerifications-Wi4nIbHi.js} +8 -8
- package/components/{TxnStatusIcon-Bqtf3sG3.js → TxnStatusIcon-B1CpcXOx.js} +4 -4
- package/components/{TxnStatusIcon-fiVxFVX_.js → TxnStatusIcon-BQqw71yX.js} +4 -4
- package/components/{TxnStatusIcon-C9hNDByt.cjs → TxnStatusIcon-DjmVZ3PB.cjs} +1 -1
- package/components/{TxnTypeIcons-D6ZYjaVc.cjs → TxnTypeIcons-BVZYEXE4.cjs} +1 -1
- package/components/{TxnTypeIcons-CA9VDuG4.js → TxnTypeIcons-D0np3tlV.js} +1 -1
- package/components/{TxnTypeIcons-DMjccElF.js → TxnTypeIcons-Dq7VBNAU.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652-DJqGt8q2.js → index-97d17652-C7V2DWFg.js} +147 -147
- package/stencil/{index-97d17652-BD-QREJe.js → index-97d17652-DIpvPU9H.js} +151 -151
- package/stencil/index-b2193545-B1ZEoKQs.cjs +1 -0
- package/stencil/{index-b2193545-Dfy4Cgny.js → index-b2193545-B5WVVmva.js} +176 -176
- package/stencil/{index-b2193545-DWKmtYUG.js → index-b2193545-CfiRkmy3.js} +169 -169
- package/stencil/{ui-image-CER01gdl.cjs → ui-image-CNNeJmP0.cjs} +1 -1
- package/stencil/{ui-image-6u7OR3Eo.js → ui-image-DCPAt25-.js} +1 -1
- package/stencil/{ui-image-4dZyD9yF.js → ui-image-am9MgSQ8.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/stencil/{ui-skeleton-P4PO_42z.js → ui-skeleton-D1L4lwNZ.js} +2 -2
- package/stencil/{ui-skeleton-gIFE_2eg.cjs → ui-skeleton-DuT40Wl3.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BIdXBK8D.js → ui-skeleton-ae35c6f2-Biyf8F-y.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-D-MGUxCy.cjs → ui-skeleton-ae35c6f2-CFTNuZYA.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-C7WHUwAT.js → ui-skeleton-ae35c6f2-CzSGP5Of.js} +1 -1
- package/stencil/{ui-skeleton-BTr272EW.js → ui-skeleton-vQGsM2TX.js} +2 -2
- package/components/CashierError-CORG04aE.cjs +0 -18
- package/components/CashierHeader-Dl6r6hK0.cjs +0 -1
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
- package/stencil/index-b2193545-BhpttWPO.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";var Zt=Object.defineProperty,Gt=Object.defineProperties;var Kt=Object.getOwnPropertyDescriptors;var pt=Object.getOwnPropertySymbols;var Qt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable;var lt=(t,e,n)=>e in t?Zt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yt=(t,e)=>{for(var n in e||(e={}))Qt.call(e,n)&<(t,n,e[n]);if(pt)for(var n of pt(e))Xt.call(e,n)&<(t,n,e[n]);return t},bt=(t,e)=>Gt(t,Kt(e));var v=(t,e,n)=>(lt(t,typeof e!="symbol"?e+"":e,n),n);var wt=(t,e,n)=>new Promise((i,o)=>{var s=c=>{try{r(n.next(c))}catch(u){o(u)}},l=c=>{try{r(n.throw(c))}catch(u){o(u)}},r=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,l);r((n=n.apply(t,e)).next())});function L(){}const ot=t=>t;function Yt(t,e){for(const n in e)t[n]=e[n];return t}function Lt(t){return t()}function xt(){return Object.create(null)}function S(t){t.forEach(Lt)}function D(t){return typeof t=="function"}function St(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let G;function te(t,e){return t===e?!0:(G||(G=document.createElement("a")),G.href=e,t===G.href)}function ee(t){return Object.keys(t).length===0}function jt(t,...e){if(t==null){for(const i of e)i(void 0);return L}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function ne(t,e,n){t.$$.on_destroy.push(jt(e,n))}function H(t,e,n,i){if(t){const o=Ot(t,e,n,i);return t[0](o)}}function Ot(t,e,n,i){return t[1]&&i?Yt(n.ctx.slice(),t[1](i(e))):n.ctx}function U(t,e,n,i){if(t[2]&&i){const o=t[2](i(n));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function W(t,e,n,i,o,s){if(o){const l=Ot(e,n,i,s);t.p(l,o)}}function I(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function ie(t){return t==null?"":t}const At=typeof window!="undefined";let ft=At?()=>window.performance.now():()=>Date.now(),dt=At?t=>requestAnimationFrame(t):L;const P=new Set;function zt(t){P.forEach(e=>{e.c(t)||(P.delete(e),e.f())}),P.size!==0&&dt(zt)}function ht(t){let e;return P.size===0&&dt(zt),{promise:new Promise(n=>{P.add(e={c:t,f:n})}),abort(){P.delete(e)}}}const se=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function M(t,e){t.appendChild(e)}function Nt(t,e,n){const i=_t(t);if(!i.getElementById(e)){const o=E("style");o.id=e,o.textContent=n,Bt(i,o)}}function _t(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function oe(t){const e=E("style");return e.textContent="/* empty */",Bt(_t(t),e),e.sheet}function Bt(t,e){return M(t.head||t,e),e.sheet}function rt(t,e,n){t.insertBefore(e,n||null)}function A(t){t.parentNode&&t.parentNode.removeChild(t)}function re(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function E(t){return document.createElement(t)}function ut(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function mt(t){return document.createTextNode(t)}function Q(){return mt(" ")}function le(){return mt("")}function V(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function ce(t){return function(e){return e.preventDefault(),t.call(this,e)}}function y(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function ue(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:y(t,e,n)}function ae(t){return t===""?null:+t}function fe(t){return Array.from(t.childNodes)}function de(t,e){e=""+e,t.data!==e&&(t.data=e)}function he(t,e){t.value=e==null?"":e}function _e(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}let K;function me(){if(K===void 0){K=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){K=!0}}return K}function $e(t,e){getComputedStyle(t).position==="static"&&(t.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 o=me();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=V(window,"message",l=>{l.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{s=V(i.contentWindow,"resize",e),e()}),M(t,i),()=>{(o||s&&i.contentWindow)&&s(),A(i)}}function ge(t,e,n){t.classList.toggle(e,!!n)}function pe(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function ye(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}const tt=new Map;let et=0;function be(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function we(t,e){const n={stylesheet:oe(e),rules:{}};return tt.set(t,n),n}function nt(t,e,n,i,o,s,l,r=0){const c=16.666/i;let u=`{
|
|
2
2
|
`;for(let p=0;p<=1;p+=c){const g=e+(n-e)*s(p);u+=p*100+`%{${l(g,1-g)}}
|
|
3
3
|
`}const $=u+`100% {${l(n,1-n)}}
|
|
4
|
-
}`,f=`__svelte_${be($)}_${r}`,h=_t(t),{stylesheet:m,rules:d}=tt.get(h)||we(h,t);d[f]||(d[f]=!0,m.insertRule(`@keyframes ${f} ${$}`,m.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${i}ms linear ${o}ms 1 both`,et+=1,f}function it(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),o=n.length-i.length;o&&(t.style.animation=i.join(", "),et-=o,et||xe())}function xe(){dt(()=>{et||(tt.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&A(e)}),tt.clear())})}let Z;function J(t){Z=t}function Pt(){if(!Z)throw new Error("Function called outside component initialization");return Z}function Tt(t){Pt().$$.on_mount.push(t)}function Ce(t){Pt().$$.on_destroy.push(t)}const N=[],st=[];let T=[];const Ct=[],ve=Promise.resolve();let at=!1;function Me(){at||(at=!0,ve.then(R))}function O(t){T.push(t)}const ct=new Set;let z=0;function R(){if(z!==0)return;const t=Z;do{try{for(;z<N.length;){const e=N[z];z++,J(e),Ee(e.$$)}}catch(e){throw N.length=0,z=0,e}for(J(null),N.length=0,z=0;st.length;)st.pop()();for(let e=0;e<T.length;e+=1){const n=T[e];ct.has(n)||(ct.add(n),n())}T.length=0}while(N.length);for(;Ct.length;)Ct.pop()();at=!1,ct.clear(),J(t)}function Ee(t){if(t.fragment!==null){t.update(),S(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}function ke(t){const e=[],n=[];T.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),T=e}let q;function $t(){return q||(q=Promise.resolve(),q.then(()=>{q=null})),q}function j(t,e,n){t.dispatchEvent(pe(`${e?"intro":"outro"}${n}`))}const X=new Set;let k;function Le(){k={r:0,c:[],p:k}}function Se(){k.r||S(k.c),k=k.p}function B(t,e){t&&t.i&&(X.delete(t),t.i(e))}function F(t,e,n,i){if(t&&t.o){if(X.has(t))return;X.add(t),k.c.push(()=>{X.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const gt={duration:0};function je(t,e,n){const i={direction:"in"};let o=e(t,n,i),s=!1,l,r,c=0;function u(){l&&it(t,l)}function $(){const{delay:h=0,duration:m=300,easing:d=ot,tick:_=L,css:p}=o||gt;p&&(l=nt(t,0,1,m,h,d,p,c++)),_(0,1);const g=ft()+h,w=g+m;r&&r.abort(),s=!0,O(()=>j(t,!0,"start")),r=ht(x=>{if(s){if(x>=w)return _(1,0),j(t,!0,"end"),u(),s=!1;if(x>=g){const b=d((x-g)/m);_(b,1-b)}}return s})}let f=!1;return{start(){f||(f=!0,it(t),D(o)?(o=o(i),$t().then($)):$())},invalidate(){f=!1},end(){s&&(u(),s=!1)}}}function Oe(t,e,n){const i={direction:"out"};let o=e(t,n,i),s=!0,l;const r=k;r.r+=1;let c;function u(){const{delay:$=0,duration:f=300,easing:h=ot,tick:m=L,css:d}=o||gt;d&&(l=nt(t,1,0,f,$,h,d));const _=ft()+$,p=_+f;O(()=>j(t,!1,"start")),"inert"in t&&(c=t.inert,t.inert=!0),ht(g=>{if(s){if(g>=p)return m(0,1),j(t,!1,"end"),--r.r||S(r.c),!1;if(g>=_){const w=h((g-_)/f);m(1-w,w)}}return s})}return D(o)?$t().then(()=>{o=o(i),u()}):u(),{end($){$&&"inert"in t&&(t.inert=c),$&&o.tick&&o.tick(1,0),s&&(l&&it(t,l),s=!1)}}}function Ae(t,e,n,i){let s=e(t,n,{direction:"both"}),l=i?0:1,r=null,c=null,u=null,$;function f(){u&&it(t,u)}function h(d,_){const p=d.b-l;return _*=Math.abs(p),{a:l,b:d.b,d:p,duration:_,start:d.start,end:d.start+_,group:d.group}}function m(d){const{delay:_=0,duration:p=300,easing:g=ot,tick:w=L,css:x}=s||gt,b={start:ft()+_,b:d};d||(b.group=k,k.r+=1),"inert"in t&&(d?$!==void 0&&(t.inert=$):($=t.inert,t.inert=!0)),r||c?c=b:(x&&(f(),u=nt(t,l,d,p,_,g,x)),d&&w(0,1),r=h(b,p),O(()=>j(t,d,"start")),ht(a=>{if(c&&a>c.start&&(r=h(c,p),c=null,j(t,r.b,"start"),x&&(f(),u=nt(t,l,r.b,r.duration,0,g,s.css))),r){if(a>=r.end)w(l=r.b,1-l),j(t,r.b,"end"),c||(r.b?f():--r.group.r||S(r.group.c)),r=null;else if(a>=r.start){const C=a-r.start;l=r.a+r.d*g(C/r.duration),w(l,1-l)}}return!!(r||c)}))}return{run(d){D(s)?$t().then(()=>{s=s({direction:d?"in":"out"}),m(d)}):m(d)},end(){f(),r=c=null}}}function ze(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Ne(t){t&&t.c()}function Rt(t,e,n){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),O(()=>{const s=t.$$.on_mount.map(Lt).filter(D);t.$$.on_destroy?t.$$.on_destroy.push(...s):S(s),t.$$.on_mount=[]}),o.forEach(O)}function Dt(t,e){const n=t.$$;n.fragment!==null&&(ke(n.after_update),S(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Be(t,e){t.$$.dirty[0]===-1&&(N.push(t),Me(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function qt(t,e,n,i,o,s,l=null,r=[-1]){const c=Z;J(t);const u=t.$$={fragment:null,ctx:[],props:s,update:L,not_equal:o,bound:xt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:xt(),dirty:r,skip_bound:!1,root:e.target||c.$$.root};l&&l(u.root);let $=!1;if(u.ctx=n?n(t,e.props||{},(f,h,...m)=>{const d=m.length?m[0]:h;return u.ctx&&o(u.ctx[f],u.ctx[f]=d)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](d),$&&Be(t,f)),h}):[],u.update(),$=!0,S(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const f=fe(e.target);u.fragment&&u.fragment.l(f),f.forEach(A)}else u.fragment&&u.fragment.c();e.intro&&B(t.$$.fragment),Rt(t,e.target,e.anchor),R()}J(c)}let Ht;typeof HTMLElement=="function"&&(Ht=class extends HTMLElement{constructor(e,n,i){super();v(this,"$$ctor");v(this,"$$s");v(this,"$$c");v(this,"$$cn",!1);v(this,"$$d",{});v(this,"$$r",!1);v(this,"$$p_d",{});v(this,"$$l",{});v(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(e,n,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const o=this.$$c.$on(e,n);this.$$l_u.set(n,o)}super.addEventListener(e,n,i)}removeEventListener(e,n,i){if(super.removeEventListener(e,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let l;return{c:function(){l=E("slot"),s!=="default"&&y(l,"name",s)},m:function(u,$){rt(u,l,$)},d:function(u){u&&A(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ye(this);for(const s of this.$$s)s in i&&(n[s]=[e(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Y(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:bt(yt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{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=Y(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(o),o();for(const s in this.$$l)for(const l of this.$$l[s]){const r=this.$$c.$on(s,l);this.$$l_u.set(l,r)}this.$$l={}}})}attributeChangedCallback(e,n,i){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Y(e,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function Y(t,e,n,i){var s;const o=(s=n[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ut(t,e,n,i,o,s){let l=class extends Ht{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(r=>(e[r].attribute||r).toLowerCase())}};return Object.keys(e).forEach(r=>{Object.defineProperty(l.prototype,r,{get(){return this.$$c&&r in this.$$c?this.$$c[r]:this.$$d[r]},set(c){var u;c=Y(r,c,e),this.$$d[r]=c,(u=this.$$c)==null||u.$set({[r]:c})}})}),i.forEach(r=>{Object.defineProperty(l.prototype,r,{get(){var c;return(c=this.$$c)==null?void 0:c[r]}})}),t.element=l,l}class Wt{constructor(){v(this,"$$");v(this,"$$set")}$destroy(){Dt(this,1),this.$destroy=L}$on(e,n){if(!D(n))return L;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!ee(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Pe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Pe);function It(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function Ft(t,e){const n=new URL(e);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,t&&t.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Jt(t,e,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,o=>{i.innerHTML=o,t&&t.appendChild(i)})}}function Te(t){Nt(t,"svelte-kug7b4","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.1))}.CashierModalContainer{width:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}")}const Re=t=>({}),vt=t=>({}),De=t=>({}),Mt=t=>({}),qe=t=>({}),Et=t=>({class:"CashierModalText"}),He=t=>({}),kt=t=>({class:"CashierModalTitle"});function Ue(t){let e,n;return{c(){e=ut("svg"),n=ut("path"),y(n,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),y(n,"fill","#111111"),y(e,"xmlns","http://www.w3.org/2000/svg"),y(e,"width","13"),y(e,"height","20"),y(e,"viewBox","0 0 13 13"),y(e,"fill","none")},m(i,o){rt(i,e,o),M(e,n)},p:L,d(i){i&&A(e)}}}function We(t){let e,n,i,o,s,l,r,c,u,$,f;const h=t[7].title,m=H(h,t,t[6],kt),d=t[7].text,_=H(d,t,t[6],Et),p=t[7].confirm,g=H(p,t,t[6],Mt),w=t[7].close,x=H(w,t,t[6],vt),b=x||Ue();return{c(){e=E("div"),n=E("div"),i=E("div"),m&&m.c(),o=Q(),_&&_.c(),s=Q(),l=E("span"),g&&g.c(),r=Q(),c=E("span"),b&&b.c(),y(l,"class","ModalOkBtn"),y(l,"role","button"),y(c,"class","ModalCloseBtn"),y(c,"role","button"),y(i,"class","CashierModalContainer"),y(n,"class","CashierModalWindow"),y(n,"id","Modal")},m(a,C){rt(a,e,C),M(e,n),M(n,i),m&&m.m(i,null),M(i,o),_&&_.m(i,null),M(i,s),M(i,l),g&&g.m(l,null),M(i,r),M(i,c),b&&b.m(c,null),t[8](e),u=!0,$||(f=[V(l,"click",t[2]),V(c,"click",t[1])],$=!0)},p(a,[C]){m&&m.p&&(!u||C&64)&&W(m,h,a,a[6],u?U(h,a[6],C,He):I(a[6]),kt),_&&_.p&&(!u||C&64)&&W(_,d,a,a[6],u?U(d,a[6],C,qe):I(a[6]),Et),g&&g.p&&(!u||C&64)&&W(g,p,a,a[6],u?U(p,a[6],C,De):I(a[6]),Mt),x&&x.p&&(!u||C&64)&&W(x,w,a,a[6],u?U(w,a[6],C,Re):I(a[6]),vt)},i(a){u||(B(m,a),B(_,a),B(g,a),B(b,a),u=!0)},o(a){F(m,a),F(_,a),F(g,a),F(b,a),u=!1},d(a){a&&A(e),m&&m.d(a),_&&_.d(a),g&&g.d(a),b&&b.d(a),t[8](null),$=!1,S(f)}}}function Ie(t,e,n){let{$$slots:i={},$$scope:o}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{mbsource:r=""}=e,c;const u=()=>{window.postMessage({type:"CloseModal"},window.location.href)},$=()=>{window.postMessage({type:"ConfirmModal"},window.location.href),u()};Tt(()=>()=>{});function f(h){st[h?"unshift":"push"](()=>{c=h,n(0,c)})}return t.$$set=h=>{"clientstyling"in h&&n(3,s=h.clientstyling),"clientstylingurl"in h&&n(4,l=h.clientstylingurl),"mbsource"in h&&n(5,r=h.mbsource),"$$scope"in h&&n(6,o=h.$$scope)},t.$$.update=()=>{t.$$.dirty&9&&s&&c&&It(c,s),t.$$.dirty&17&&l&&c&&Ft(c,l),t.$$.dirty&33&&r&&c&&Jt(c,`${r}.Style`)},[c,u,$,s,l,r,o,i,f]}class Vt extends Wt{constructor(e){super(),qt(this,e,Ie,We,St,{clientstyling:3,clientstylingurl:4,mbsource:5},Te)}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),R()}}Ut(Vt,{clientstyling:{},clientstylingurl:{},mbsource:{}},["title","text","confirm","close"],[],!0);const Fe=Object.freeze(Object.defineProperty({__proto__:null,default:Vt},Symbol.toStringTag,{value:"Module"}));exports.CashierConfirmModal_ce=Fe;exports.SvelteComponent=Wt;exports.add_iframe_resize_listener=$e;exports.add_render_callback=O;exports.append=M;exports.append_styles=Nt;exports.attr=y;exports.binding_callbacks=st;exports.check_outros=Se;exports.component_subscribe=ne;exports.create_bidirectional_transition=Ae;exports.create_component=Ne;exports.create_custom_element=Ut;exports.create_in_transition=je;exports.create_out_transition=Oe;exports.create_slot=H;exports.destroy_component=Dt;exports.destroy_each=re;exports.detach=A;exports.element=E;exports.empty=le;exports.ensure_array_like=ze;exports.flush=R;exports.get_all_dirty_from_scope=I;exports.get_slot_changes=U;exports.globals=se;exports.group_outros=Le;exports.identity=ot;exports.init=qt;exports.insert=rt;exports.is_function=D;exports.listen=V;exports.mount_component=Rt;exports.noop=L;exports.null_to_empty=ie;exports.onDestroy=Ce;exports.onMount=Tt;exports.prevent_default=ce;exports.run_all=S;exports.safe_not_equal=St;exports.setClientStyling=It;exports.setClientStylingURL=Ft;exports.setStreamStyling=Jt;exports.set_custom_element_data=ue;exports.set_data=de;exports.set_input_value=he;exports.set_style=_e;exports.space=Q;exports.src_url_equal=te;exports.subscribe=jt;exports.svg_element=ut;exports.text=mt;exports.to_number=ae;exports.toggle_class=ge;exports.transition_in=B;exports.transition_out=F;exports.update_slot_base=W;
|
|
4
|
+
}`,f=`__svelte_${be($)}_${r}`,h=_t(t),{stylesheet:m,rules:d}=tt.get(h)||we(h,t);d[f]||(d[f]=!0,m.insertRule(`@keyframes ${f} ${$}`,m.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${i}ms linear ${o}ms 1 both`,et+=1,f}function it(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),o=n.length-i.length;o&&(t.style.animation=i.join(", "),et-=o,et||xe())}function xe(){dt(()=>{et||(tt.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&A(e)}),tt.clear())})}let Z;function J(t){Z=t}function Pt(){if(!Z)throw new Error("Function called outside component initialization");return Z}function Tt(t){Pt().$$.on_mount.push(t)}function Ce(t){Pt().$$.on_destroy.push(t)}const N=[],st=[];let T=[];const Ct=[],ve=Promise.resolve();let at=!1;function Me(){at||(at=!0,ve.then(R))}function O(t){T.push(t)}const ct=new Set;let z=0;function R(){if(z!==0)return;const t=Z;do{try{for(;z<N.length;){const e=N[z];z++,J(e),Ee(e.$$)}}catch(e){throw N.length=0,z=0,e}for(J(null),N.length=0,z=0;st.length;)st.pop()();for(let e=0;e<T.length;e+=1){const n=T[e];ct.has(n)||(ct.add(n),n())}T.length=0}while(N.length);for(;Ct.length;)Ct.pop()();at=!1,ct.clear(),J(t)}function Ee(t){if(t.fragment!==null){t.update(),S(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}function ke(t){const e=[],n=[];T.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),T=e}let q;function $t(){return q||(q=Promise.resolve(),q.then(()=>{q=null})),q}function j(t,e,n){t.dispatchEvent(pe(`${e?"intro":"outro"}${n}`))}const X=new Set;let k;function Le(){k={r:0,c:[],p:k}}function Se(){k.r||S(k.c),k=k.p}function B(t,e){t&&t.i&&(X.delete(t),t.i(e))}function F(t,e,n,i){if(t&&t.o){if(X.has(t))return;X.add(t),k.c.push(()=>{X.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const gt={duration:0};function je(t,e,n){const i={direction:"in"};let o=e(t,n,i),s=!1,l,r,c=0;function u(){l&&it(t,l)}function $(){const{delay:h=0,duration:m=300,easing:d=ot,tick:_=L,css:p}=o||gt;p&&(l=nt(t,0,1,m,h,d,p,c++)),_(0,1);const g=ft()+h,b=g+m;r&&r.abort(),s=!0,O(()=>j(t,!0,"start")),r=ht(w=>{if(s){if(w>=b)return _(1,0),j(t,!0,"end"),u(),s=!1;if(w>=g){const x=d((w-g)/m);_(x,1-x)}}return s})}let f=!1;return{start(){f||(f=!0,it(t),D(o)?(o=o(i),$t().then($)):$())},invalidate(){f=!1},end(){s&&(u(),s=!1)}}}function Oe(t,e,n){const i={direction:"out"};let o=e(t,n,i),s=!0,l;const r=k;r.r+=1;let c;function u(){const{delay:$=0,duration:f=300,easing:h=ot,tick:m=L,css:d}=o||gt;d&&(l=nt(t,1,0,f,$,h,d));const _=ft()+$,p=_+f;O(()=>j(t,!1,"start")),"inert"in t&&(c=t.inert,t.inert=!0),ht(g=>{if(s){if(g>=p)return m(0,1),j(t,!1,"end"),--r.r||S(r.c),!1;if(g>=_){const b=h((g-_)/f);m(1-b,b)}}return s})}return D(o)?$t().then(()=>{o=o(i),u()}):u(),{end($){$&&"inert"in t&&(t.inert=c),$&&o.tick&&o.tick(1,0),s&&(l&&it(t,l),s=!1)}}}function Ae(t,e,n,i){let s=e(t,n,{direction:"both"}),l=i?0:1,r=null,c=null,u=null,$;function f(){u&&it(t,u)}function h(d,_){const p=d.b-l;return _*=Math.abs(p),{a:l,b:d.b,d:p,duration:_,start:d.start,end:d.start+_,group:d.group}}function m(d){const{delay:_=0,duration:p=300,easing:g=ot,tick:b=L,css:w}=s||gt,x={start:ft()+_,b:d};d||(x.group=k,k.r+=1),"inert"in t&&(d?$!==void 0&&(t.inert=$):($=t.inert,t.inert=!0)),r||c?c=x:(w&&(f(),u=nt(t,l,d,p,_,g,w)),d&&b(0,1),r=h(x,p),O(()=>j(t,d,"start")),ht(a=>{if(c&&a>c.start&&(r=h(c,p),c=null,j(t,r.b,"start"),w&&(f(),u=nt(t,l,r.b,r.duration,0,g,s.css))),r){if(a>=r.end)b(l=r.b,1-l),j(t,r.b,"end"),c||(r.b?f():--r.group.r||S(r.group.c)),r=null;else if(a>=r.start){const C=a-r.start;l=r.a+r.d*g(C/r.duration),b(l,1-l)}}return!!(r||c)}))}return{run(d){D(s)?$t().then(()=>{s=s({direction:d?"in":"out"}),m(d)}):m(d)},end(){f(),r=c=null}}}function ze(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Ne(t){t&&t.c()}function Rt(t,e,n){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),O(()=>{const s=t.$$.on_mount.map(Lt).filter(D);t.$$.on_destroy?t.$$.on_destroy.push(...s):S(s),t.$$.on_mount=[]}),o.forEach(O)}function Dt(t,e){const n=t.$$;n.fragment!==null&&(ke(n.after_update),S(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Be(t,e){t.$$.dirty[0]===-1&&(N.push(t),Me(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function qt(t,e,n,i,o,s,l=null,r=[-1]){const c=Z;J(t);const u=t.$$={fragment:null,ctx:[],props:s,update:L,not_equal:o,bound:xt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:xt(),dirty:r,skip_bound:!1,root:e.target||c.$$.root};l&&l(u.root);let $=!1;if(u.ctx=n?n(t,e.props||{},(f,h,...m)=>{const d=m.length?m[0]:h;return u.ctx&&o(u.ctx[f],u.ctx[f]=d)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](d),$&&Be(t,f)),h}):[],u.update(),$=!0,S(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const f=fe(e.target);u.fragment&&u.fragment.l(f),f.forEach(A)}else u.fragment&&u.fragment.c();e.intro&&B(t.$$.fragment),Rt(t,e.target,e.anchor),R()}J(c)}let Ht;typeof HTMLElement=="function"&&(Ht=class extends HTMLElement{constructor(e,n,i){super();v(this,"$$ctor");v(this,"$$s");v(this,"$$c");v(this,"$$cn",!1);v(this,"$$d",{});v(this,"$$r",!1);v(this,"$$p_d",{});v(this,"$$l",{});v(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(e,n,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const o=this.$$c.$on(e,n);this.$$l_u.set(n,o)}super.addEventListener(e,n,i)}removeEventListener(e,n,i){if(super.removeEventListener(e,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let l;return{c:function(){l=E("slot"),s!=="default"&&y(l,"name",s)},m:function(u,$){rt(u,l,$)},d:function(u){u&&A(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ye(this);for(const s of this.$$s)s in i&&(n[s]=[e(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Y(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:bt(yt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{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=Y(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(o),o();for(const s in this.$$l)for(const l of this.$$l[s]){const r=this.$$c.$on(s,l);this.$$l_u.set(l,r)}this.$$l={}}})}attributeChangedCallback(e,n,i){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Y(e,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function Y(t,e,n,i){var s;const o=(s=n[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ut(t,e,n,i,o,s){let l=class extends Ht{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(r=>(e[r].attribute||r).toLowerCase())}};return Object.keys(e).forEach(r=>{Object.defineProperty(l.prototype,r,{get(){return this.$$c&&r in this.$$c?this.$$c[r]:this.$$d[r]},set(c){var u;c=Y(r,c,e),this.$$d[r]=c,(u=this.$$c)==null||u.$set({[r]:c})}})}),i.forEach(r=>{Object.defineProperty(l.prototype,r,{get(){var c;return(c=this.$$c)==null?void 0:c[r]}})}),t.element=l,l}class Wt{constructor(){v(this,"$$");v(this,"$$set")}$destroy(){Dt(this,1),this.$destroy=L}$on(e,n){if(!D(n))return L;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!ee(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Pe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Pe);function It(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function Ft(t,e){const n=new URL(e);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,t&&t.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Jt(t,e,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,o=>{i.innerHTML=o,t&&t.appendChild(i)})}}function Te(t){Nt(t,"svelte-kug7b4","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.1))}.CashierModalContainer{width:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}")}const Re=t=>({}),vt=t=>({}),De=t=>({}),Mt=t=>({}),qe=t=>({}),Et=t=>({class:"CashierModalText"}),He=t=>({}),kt=t=>({class:"CashierModalTitle"});function Ue(t){let e,n;return{c(){e=ut("svg"),n=ut("path"),y(n,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),y(n,"fill","#111111"),y(e,"xmlns","http://www.w3.org/2000/svg"),y(e,"width","13"),y(e,"height","20"),y(e,"viewBox","0 0 13 13"),y(e,"fill","none")},m(i,o){rt(i,e,o),M(e,n)},p:L,d(i){i&&A(e)}}}function We(t){let e,n,i,o,s,l,r,c,u,$,f;const h=t[7].title,m=H(h,t,t[6],kt),d=t[7].text,_=H(d,t,t[6],Et),p=t[7].confirm,g=H(p,t,t[6],Mt),b=t[7].close,w=H(b,t,t[6],vt),x=w||Ue();return{c(){e=E("div"),n=E("div"),i=E("div"),m&&m.c(),o=Q(),_&&_.c(),s=Q(),l=E("span"),g&&g.c(),r=Q(),c=E("span"),x.c(),y(l,"class","ModalOkBtn"),y(l,"role","button"),y(c,"class","ModalCloseBtn"),y(c,"role","button"),y(i,"class","CashierModalContainer"),y(n,"class","CashierModalWindow"),y(n,"id","Modal")},m(a,C){rt(a,e,C),M(e,n),M(n,i),m&&m.m(i,null),M(i,o),_&&_.m(i,null),M(i,s),M(i,l),g&&g.m(l,null),M(i,r),M(i,c),x.m(c,null),t[8](e),u=!0,$||(f=[V(l,"click",t[2]),V(c,"click",t[1])],$=!0)},p(a,[C]){m&&m.p&&(!u||C&64)&&W(m,h,a,a[6],u?U(h,a[6],C,He):I(a[6]),kt),_&&_.p&&(!u||C&64)&&W(_,d,a,a[6],u?U(d,a[6],C,qe):I(a[6]),Et),g&&g.p&&(!u||C&64)&&W(g,p,a,a[6],u?U(p,a[6],C,De):I(a[6]),Mt),w&&w.p&&(!u||C&64)&&W(w,b,a,a[6],u?U(b,a[6],C,Re):I(a[6]),vt)},i(a){u||(B(m,a),B(_,a),B(g,a),B(x,a),u=!0)},o(a){F(m,a),F(_,a),F(g,a),F(x,a),u=!1},d(a){a&&A(e),m&&m.d(a),_&&_.d(a),g&&g.d(a),x.d(a),t[8](null),$=!1,S(f)}}}function Ie(t,e,n){let{$$slots:i={},$$scope:o}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{mbsource:r=""}=e,c;const u=()=>{window.postMessage({type:"CloseModal"},window.location.href)},$=()=>{window.postMessage({type:"ConfirmModal"},window.location.href),u()};Tt(()=>()=>{});function f(h){st[h?"unshift":"push"](()=>{c=h,n(0,c)})}return t.$$set=h=>{"clientstyling"in h&&n(3,s=h.clientstyling),"clientstylingurl"in h&&n(4,l=h.clientstylingurl),"mbsource"in h&&n(5,r=h.mbsource),"$$scope"in h&&n(6,o=h.$$scope)},t.$$.update=()=>{t.$$.dirty&9&&s&&c&&It(c,s),t.$$.dirty&17&&l&&c&&Ft(c,l),t.$$.dirty&33&&r&&c&&Jt(c,`${r}.Style`)},[c,u,$,s,l,r,o,i,f]}class Vt extends Wt{constructor(e){super(),qt(this,e,Ie,We,St,{clientstyling:3,clientstylingurl:4,mbsource:5},Te)}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),R()}}Ut(Vt,{clientstyling:{},clientstylingurl:{},mbsource:{}},["title","text","confirm","close"],[],!0);const Fe=Object.freeze(Object.defineProperty({__proto__:null,default:Vt},Symbol.toStringTag,{value:"Module"}));exports.CashierConfirmModal_ce=Fe;exports.SvelteComponent=Wt;exports.add_iframe_resize_listener=$e;exports.add_render_callback=O;exports.append=M;exports.append_styles=Nt;exports.attr=y;exports.binding_callbacks=st;exports.check_outros=Se;exports.component_subscribe=ne;exports.create_bidirectional_transition=Ae;exports.create_component=Ne;exports.create_custom_element=Ut;exports.create_in_transition=je;exports.create_out_transition=Oe;exports.create_slot=H;exports.destroy_component=Dt;exports.destroy_each=re;exports.detach=A;exports.element=E;exports.empty=le;exports.ensure_array_like=ze;exports.flush=R;exports.get_all_dirty_from_scope=I;exports.get_slot_changes=U;exports.globals=se;exports.group_outros=Le;exports.identity=ot;exports.init=qt;exports.insert=rt;exports.is_function=D;exports.listen=V;exports.mount_component=Rt;exports.noop=L;exports.null_to_empty=ie;exports.onDestroy=Ce;exports.onMount=Tt;exports.prevent_default=ce;exports.run_all=S;exports.safe_not_equal=St;exports.setClientStyling=It;exports.setClientStylingURL=Ft;exports.setStreamStyling=Jt;exports.set_custom_element_data=ue;exports.set_data=de;exports.set_input_value=he;exports.set_style=_e;exports.space=Q;exports.src_url_equal=te;exports.subscribe=jt;exports.svg_element=ut;exports.text=mt;exports.to_number=ae;exports.toggle_class=ge;exports.transition_in=B;exports.transition_out=F;exports.update_slot_base=W;
|
|
@@ -429,14 +429,14 @@ function We(t, e, n) {
|
|
|
429
429
|
css: p
|
|
430
430
|
} = o || $t;
|
|
431
431
|
p && (c = et(t, 0, 1, $, h, d, p, l++)), _(0, 1);
|
|
432
|
-
const g = ut() + h,
|
|
433
|
-
r && r.abort(), i = !0, B(() => O(t, !0, "start")), r = ft((
|
|
432
|
+
const g = ut() + h, b = g + $;
|
|
433
|
+
r && r.abort(), i = !0, B(() => O(t, !0, "start")), r = ft((w) => {
|
|
434
434
|
if (i) {
|
|
435
|
-
if (
|
|
435
|
+
if (w >= b)
|
|
436
436
|
return _(1, 0), O(t, !0, "end"), u(), i = !1;
|
|
437
|
-
if (
|
|
438
|
-
const
|
|
439
|
-
_(
|
|
437
|
+
if (w >= g) {
|
|
438
|
+
const x = d((w - g) / $);
|
|
439
|
+
_(x, 1 - x);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
return i;
|
|
@@ -477,8 +477,8 @@ function Ie(t, e, n) {
|
|
|
477
477
|
if (g >= p)
|
|
478
478
|
return $(0, 1), O(t, !1, "end"), --r.r || j(r.c), !1;
|
|
479
479
|
if (g >= _) {
|
|
480
|
-
const
|
|
481
|
-
$(1 -
|
|
480
|
+
const b = h((g - _) / f);
|
|
481
|
+
$(1 - b, b);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
return i;
|
|
@@ -517,15 +517,15 @@ function Ue(t, e, n, s) {
|
|
|
517
517
|
delay: _ = 0,
|
|
518
518
|
duration: p = 300,
|
|
519
519
|
easing: g = lt,
|
|
520
|
-
tick:
|
|
521
|
-
css:
|
|
522
|
-
} = i || $t,
|
|
520
|
+
tick: b = k,
|
|
521
|
+
css: w
|
|
522
|
+
} = i || $t, x = {
|
|
523
523
|
start: ut() + _,
|
|
524
524
|
b: d
|
|
525
525
|
};
|
|
526
|
-
d || (
|
|
527
|
-
t.inert, t.inert = !0)), r || l ? l =
|
|
528
|
-
if (l && a > l.start && (r = h(l, p), l = null, O(t, r.b, "start"),
|
|
526
|
+
d || (x.group = E, E.r += 1), "inert" in t && (d ? m !== void 0 && (t.inert = m) : (m = /** @type {HTMLElement} */
|
|
527
|
+
t.inert, t.inert = !0)), r || l ? l = x : (w && (f(), u = et(t, c, d, p, _, g, w)), d && b(0, 1), r = h(x, p), B(() => O(t, d, "start")), ft((a) => {
|
|
528
|
+
if (l && a > l.start && (r = h(l, p), l = null, O(t, r.b, "start"), w && (f(), u = et(
|
|
529
529
|
t,
|
|
530
530
|
c,
|
|
531
531
|
r.b,
|
|
@@ -535,10 +535,10 @@ function Ue(t, e, n, s) {
|
|
|
535
535
|
i.css
|
|
536
536
|
))), r) {
|
|
537
537
|
if (a >= r.end)
|
|
538
|
-
|
|
538
|
+
b(c = r.b, 1 - c), O(t, r.b, "end"), l || (r.b ? f() : --r.group.r || j(r.group.c)), r = null;
|
|
539
539
|
else if (a >= r.start) {
|
|
540
540
|
const C = a - r.start;
|
|
541
|
-
c = r.a + r.d * g(C / r.duration),
|
|
541
|
+
c = r.a + r.d * g(C / r.duration), b(c, 1 - c);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
return !!(r || l);
|
|
@@ -915,22 +915,22 @@ function we(t) {
|
|
|
915
915
|
/*$$scope*/
|
|
916
916
|
t[6],
|
|
917
917
|
vt
|
|
918
|
-
),
|
|
918
|
+
), b = (
|
|
919
919
|
/*#slots*/
|
|
920
920
|
t[7].close
|
|
921
|
-
),
|
|
922
|
-
|
|
921
|
+
), w = q(
|
|
922
|
+
b,
|
|
923
923
|
t,
|
|
924
924
|
/*$$scope*/
|
|
925
925
|
t[6],
|
|
926
926
|
Ct
|
|
927
|
-
),
|
|
927
|
+
), x = w || be();
|
|
928
928
|
return {
|
|
929
929
|
c() {
|
|
930
|
-
e = L("div"), n = L("div"), s = L("div"), $ && $.c(), o = it(), _ && _.c(), i = it(), c = L("span"), g && g.c(), r = it(), l = L("span"),
|
|
930
|
+
e = L("div"), n = L("div"), s = L("div"), $ && $.c(), o = it(), _ && _.c(), i = it(), c = L("span"), g && g.c(), r = it(), l = L("span"), x.c(), y(c, "class", "ModalOkBtn"), y(c, "role", "button"), y(l, "class", "ModalCloseBtn"), y(l, "role", "button"), y(s, "class", "CashierModalContainer"), y(n, "class", "CashierModalWindow"), y(n, "id", "Modal");
|
|
931
931
|
},
|
|
932
932
|
m(a, C) {
|
|
933
|
-
ht(a, e, C), M(e, n), M(n, s), $ && $.m(s, null), M(s, o), _ && _.m(s, null), M(s, i), M(s, c), g && g.m(c, null), M(s, r), M(s, l),
|
|
933
|
+
ht(a, e, C), M(e, n), M(n, s), $ && $.m(s, null), M(s, o), _ && _.m(s, null), M(s, i), M(s, c), g && g.m(c, null), M(s, r), M(s, l), x.m(l, null), t[8](e), u = !0, m || (f = [
|
|
934
934
|
X(
|
|
935
935
|
c,
|
|
936
936
|
"click",
|
|
@@ -1000,15 +1000,15 @@ function we(t) {
|
|
|
1000
1000
|
a[6]
|
|
1001
1001
|
),
|
|
1002
1002
|
vt
|
|
1003
|
-
),
|
|
1003
|
+
), w && w.p && (!u || C & /*$$scope*/
|
|
1004
1004
|
64) && J(
|
|
1005
|
-
x,
|
|
1006
1005
|
w,
|
|
1006
|
+
b,
|
|
1007
1007
|
a,
|
|
1008
1008
|
/*$$scope*/
|
|
1009
1009
|
a[6],
|
|
1010
1010
|
u ? F(
|
|
1011
|
-
|
|
1011
|
+
b,
|
|
1012
1012
|
/*$$scope*/
|
|
1013
1013
|
a[6],
|
|
1014
1014
|
C,
|
|
@@ -1021,13 +1021,13 @@ function we(t) {
|
|
|
1021
1021
|
);
|
|
1022
1022
|
},
|
|
1023
1023
|
i(a) {
|
|
1024
|
-
u || (R($, a), R(_, a), R(g, a), R(
|
|
1024
|
+
u || (R($, a), R(_, a), R(g, a), R(x, a), u = !0);
|
|
1025
1025
|
},
|
|
1026
1026
|
o(a) {
|
|
1027
|
-
G($, a), G(_, a), G(g, a), G(
|
|
1027
|
+
G($, a), G(_, a), G(g, a), G(x, a), u = !1;
|
|
1028
1028
|
},
|
|
1029
1029
|
d(a) {
|
|
1030
|
-
a && P(e), $ && $.d(a), _ && _.d(a), g && g.d(a),
|
|
1030
|
+
a && P(e), $ && $.d(a), _ && _.d(a), g && g.d(a), x.d(a), t[8](null), m = !1, j(f);
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
@@ -1106,13 +1106,13 @@ const Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1106
1106
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1107
1107
|
export {
|
|
1108
1108
|
Fe as $,
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1109
|
+
Ne as A,
|
|
1110
|
+
X as B,
|
|
1111
|
+
De as C,
|
|
1112
|
+
rt as D,
|
|
1113
|
+
de as E,
|
|
1114
|
+
he as F,
|
|
1115
|
+
_e as G,
|
|
1116
1116
|
ve as H,
|
|
1117
1117
|
Se as I,
|
|
1118
1118
|
B as J,
|
|
@@ -1160,6 +1160,6 @@ export {
|
|
|
1160
1160
|
P as v,
|
|
1161
1161
|
Me as w,
|
|
1162
1162
|
te as x,
|
|
1163
|
-
|
|
1164
|
-
|
|
1163
|
+
je as y,
|
|
1164
|
+
At as z
|
|
1165
1165
|
};
|