@everymatrix/cashier-page 1.74.2 → 1.74.4

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.
Files changed (60) hide show
  1. package/components/CashierConfirmModal-C5Z0fFCo.cjs +4 -0
  2. package/components/{CashierConfirmModal-IR_fdiwt.js → CashierConfirmModal-D6-yvknK.js} +123 -113
  3. package/components/{CashierConfirmModal-B8OOtTE_.js → CashierConfirmModal-DluW6utN.js} +271 -261
  4. package/components/{CashierError-Lwv9a6Jn.js → CashierError-B_HILIqI.js} +1 -1
  5. package/components/{CashierError-DwFDMuO4.js → CashierError-CQ8ceQ8e.js} +1 -1
  6. package/components/{CashierError-lygql-vp.cjs → CashierError-DZ5vqVXV.cjs} +1 -1
  7. package/components/{CashierHeader-Co4LH4OR.js → CashierHeader-CNyLXgin.js} +2 -2
  8. package/components/{CashierHeader-BBFpE9tm.cjs → CashierHeader-Cjxrbu0V.cjs} +1 -1
  9. package/components/{CashierHeader-DBbG_kCZ.js → CashierHeader-DW3Xs1f3.js} +2 -2
  10. package/components/{CashierIframeRedirect-DLWyFLbS.js → CashierIframeRedirect-D81gVeBk.js} +4 -4
  11. package/components/{CashierIframeRedirect-O2R4PeFx.cjs → CashierIframeRedirect-DU1GgNLD.cjs} +1 -1
  12. package/components/{CashierIframeRedirect-BifoYFS6.js → CashierIframeRedirect-IwNw_njq.js} +4 -4
  13. package/components/{CashierMethodDetails-DzH-30k0.js → CashierMethodDetails-BGsVDE-f.js} +1383 -1375
  14. package/components/CashierMethodDetails-DqkQ4_KO.cjs +86 -0
  15. package/components/{CashierMethodDetails-Bv4pmeQb.js → CashierMethodDetails-F4689jao.js} +1379 -1371
  16. package/components/{CashierMethodsList-SztGlaVA.js → CashierMethodsList-C6gO6002.js} +3 -3
  17. package/components/{CashierMethodsList-CqDdABdG.cjs → CashierMethodsList-CGC7CYN5.cjs} +1 -1
  18. package/components/{CashierMethodsList-B81lBh-i.js → CashierMethodsList-DjomymWI.js} +3 -3
  19. package/components/{CashierModal-DPdsjy2Y.js → CashierModal-B4of2Oxh.js} +1 -1
  20. package/components/{CashierModal-BGLiz1Q0.js → CashierModal-CvWSs-3j.js} +1 -1
  21. package/components/{CashierModal-BUzTqeZq.cjs → CashierModal-DSuBZJDR.cjs} +1 -1
  22. package/components/{CashierNotifications-BVMqQF5E.js → CashierNotifications-CkXKlPIz.js} +1 -1
  23. package/components/{CashierNotifications-BrGm-gyx.cjs → CashierNotifications-JBaW5ppf.cjs} +1 -1
  24. package/components/{CashierNotifications-zWfvVWp3.js → CashierNotifications-a3GpFzzw.js} +1 -1
  25. package/components/{CashierPage-C1gTiNOQ.js → CashierPage-BOTLH9IT.js} +655 -580
  26. package/components/{CashierPage-DOm_w_Mb.js → CashierPage-CsquU0m3.js} +655 -580
  27. package/components/{CashierPage-M5GWcvzG.cjs → CashierPage-DnkQ_B-E.cjs} +1 -1
  28. package/components/{CashierReceiptPage-8oBK9c-w.js → CashierReceiptPage-C453rQDk.js} +4 -4
  29. package/components/{CashierReceiptPage-BKr9Y4z2.cjs → CashierReceiptPage-JWrvaB9t.cjs} +1 -1
  30. package/components/{CashierReceiptPage-BG1Sg3_U.js → CashierReceiptPage-Z1iljI5f.js} +4 -4
  31. package/components/{CashierSessionExpirationModal-25t9wFGB.cjs → CashierSessionExpirationModal-BK27R9OF.cjs} +1 -1
  32. package/components/{CashierSessionExpirationModal-DctA8xGg.js → CashierSessionExpirationModal-CG6neYbz.js} +4 -4
  33. package/components/{CashierSessionExpirationModal-DccW5Qt4.js → CashierSessionExpirationModal-_Kgq_fo0.js} +4 -4
  34. package/components/{CashierSpinner-Dek1XIlD.cjs → CashierSpinner-C0dfKfvc.cjs} +1 -1
  35. package/components/{CashierSpinner-BJ0-pcso.js → CashierSpinner-Pf85g3j2.js} +1 -1
  36. package/components/{CashierSpinner-DX6FQb5G.js → CashierSpinner-nZ-w8uRg.js} +1 -1
  37. package/components/CashierTransactionHistory-Dk2w-r6Z.js +1303 -0
  38. package/components/CashierTransactionHistory-DmmtyBaS.cjs +1 -0
  39. package/components/CashierTransactionHistory-Dv3ixTST.js +1303 -0
  40. package/components/{CashierVerifications-DLLCf8wO.js → CashierVerifications-BSnUCwe2.js} +4 -4
  41. package/components/{CashierVerifications-CHUaPoXN.js → CashierVerifications-BWkBnubY.js} +4 -4
  42. package/components/{CashierVerifications-BLDRWv6W.cjs → CashierVerifications-BXh8OOq3.cjs} +1 -1
  43. package/components/{CashierVideoModal-DOrEnX7J.js → CashierVideoModal-Bt_4tboX.js} +2 -2
  44. package/components/{CashierVideoModal-CBlMdTrM.cjs → CashierVideoModal-CrKgGT0K.cjs} +1 -1
  45. package/components/{CashierVideoModal-4ZsB8TZ-.js → CashierVideoModal-Olu5n2I9.js} +2 -2
  46. package/components/TxnStatusIcon-Bk0oBxLN.cjs +1 -0
  47. package/components/TxnStatusIcon-DIdoWxaS.js +142 -0
  48. package/components/TxnStatusIcon-DN0llRTe.js +142 -0
  49. package/components/TxnTypeIcons-BPVFmF5k.js +101 -0
  50. package/components/TxnTypeIcons-BuQgMseI.js +101 -0
  51. package/components/TxnTypeIcons-CVoF9ajj.cjs +1 -0
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +1 -1
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierConfirmModal-Dbth1Vwp.cjs +0 -4
  57. package/components/CashierMethodDetails-BiDcofyV.cjs +0 -86
  58. package/components/CashierTransactionHistory-DEhh9fZY.js +0 -613
  59. package/components/CashierTransactionHistory-DuaiwgJ8.cjs +0 -1
  60. package/components/CashierTransactionHistory-X005hbwU.js +0 -613
@@ -0,0 +1,4 @@
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)&&lt(t,n,e[n]);if(pt)for(var n of pt(e))Xt.call(e,n)&&lt(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 k(){}const ot=t=>t;function Yt(t,e){for(const n in e)t[n]=e[n];return t}function kt(t){return t()}function Ct(){return Object.create(null)}function S(t){t.forEach(kt)}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 k}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):k;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
+ `;for(let p=0;p<=1;p+=c){const g=e+(n-e)*s(p);u+=p*100+`%{${l(g,1-g)}}
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||Ce())}function Ce(){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 xe(t){Pt().$$.on_destroy.push(t)}const N=[],st=[];let T=[];const xt=[],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(;xt.length;)xt.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 Le(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 L;function ke(){L={r:0,c:[],p:L}}function Se(){L.r||S(L.c),L=L.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),L.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:_=k,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(C=>{if(s){if(C>=w)return _(1,0),j(t,!0,"end"),u(),s=!1;if(C>=g){const b=d((C-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=L;r.r+=1;let c;function u(){const{delay:$=0,duration:f=300,easing:h=ot,tick:m=k,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=k,css:C}=s||gt,b={start:ft()+_,b:d};d||(b.group=L,L.r+=1),"inert"in t&&(d?$!==void 0&&(t.inert=$):($=t.inert,t.inert=!0)),r||c?c=b:(C&&(f(),u=nt(t,l,d,p,_,g,C)),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"),C&&(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 x=a-r.start;l=r.a+r.d*g(x/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(kt).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&&(Le(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:k,not_equal:o,bound:Ct(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Ct(),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=k}$on(e,n){if(!D(n))return k;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-1m890h5","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:absolute;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=>({}),Lt=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:k,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],Lt),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,C=H(w,t,t[6],vt),b=C||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,x){rt(a,e,x),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,[x]){m&&m.p&&(!u||x&64)&&W(m,h,a,a[6],u?U(h,a[6],x,He):I(a[6]),Lt),_&&_.p&&(!u||x&64)&&W(_,d,a,a[6],u?U(d,a[6],x,qe):I(a[6]),Et),g&&g.p&&(!u||x&64)&&W(g,p,a,a[6],u?U(p,a[6],x,De):I(a[6]),Mt),C&&C.p&&(!u||x&64)&&W(C,w,a,a[6],u?U(w,a[6],x,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=ke;exports.identity=ot;exports.init=qt;exports.insert=rt;exports.is_function=D;exports.listen=V;exports.mount_component=Rt;exports.noop=k;exports.null_to_empty=ie;exports.onDestroy=xe;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;
@@ -1,12 +1,12 @@
1
1
  var Pt = Object.defineProperty, Tt = Object.defineProperties;
2
2
  var Rt = Object.getOwnPropertyDescriptors;
3
- var _t = Object.getOwnPropertySymbols;
3
+ var $t = Object.getOwnPropertySymbols;
4
4
  var Dt = Object.prototype.hasOwnProperty, Ht = Object.prototype.propertyIsEnumerable;
5
5
  var st = (t, e, n) => e in t ? Pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, gt = (t, e) => {
6
6
  for (var n in e || (e = {}))
7
7
  Dt.call(e, n) && st(t, n, e[n]);
8
- if (_t)
9
- for (var n of _t(e))
8
+ if ($t)
9
+ for (var n of $t(e))
10
10
  Ht.call(e, n) && st(t, n, e[n]);
11
11
  return t;
12
12
  }, pt = (t, e) => Tt(t, Rt(e));
@@ -111,6 +111,9 @@ function V(t) {
111
111
  }
112
112
  return -1;
113
113
  }
114
+ function Ee(t) {
115
+ return t == null ? "" : t;
116
+ }
114
117
  const jt = typeof window != "undefined";
115
118
  let ut = jt ? () => window.performance.now() : () => Date.now(), at = jt ? (t) => requestAnimationFrame(t) : k;
116
119
  const N = /* @__PURE__ */ new Set();
@@ -130,7 +133,7 @@ function ft(t) {
130
133
  }
131
134
  };
132
135
  }
133
- const Ee = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
136
+ const Le = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
134
137
  // @ts-ignore Node typings have this
135
138
  global
136
139
  );
@@ -171,7 +174,7 @@ function ht(t, e, n) {
171
174
  function P(t) {
172
175
  t.parentNode && t.parentNode.removeChild(t);
173
176
  }
174
- function Le(t, e) {
177
+ function ke(t, e) {
175
178
  for (let n = 0; n < t.length; n += 1)
176
179
  t[n] && t[n].d(e);
177
180
  }
@@ -187,13 +190,13 @@ function At(t) {
187
190
  function it() {
188
191
  return At(" ");
189
192
  }
190
- function ke() {
193
+ function je() {
191
194
  return At("");
192
195
  }
193
196
  function X(t, e, n, s) {
194
197
  return t.addEventListener(e, n, s), () => t.removeEventListener(e, n, s);
195
198
  }
196
- function je(t) {
199
+ function Oe(t) {
197
200
  return function(e) {
198
201
  return e.preventDefault(), t.call(this, e);
199
202
  };
@@ -201,24 +204,24 @@ function je(t) {
201
204
  function y(t, e, n) {
202
205
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
203
206
  }
204
- function Oe(t, e, n) {
207
+ function Se(t, e, n) {
205
208
  const s = e.toLowerCase();
206
209
  s in t ? t[s] = typeof t[s] == "boolean" && n === "" ? !0 : n : e in t ? t[e] = typeof t[e] == "boolean" && n === "" ? !0 : n : y(t, e, n);
207
210
  }
208
- function Se(t) {
211
+ function Ae(t) {
209
212
  return t === "" ? null : +t;
210
213
  }
211
214
  function Vt(t) {
212
215
  return Array.from(t.childNodes);
213
216
  }
214
- function Ae(t, e) {
217
+ function Ne(t, e) {
215
218
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
216
219
  e);
217
220
  }
218
- function Ne(t, e) {
221
+ function ze(t, e) {
219
222
  t.value = e == null ? "" : e;
220
223
  }
221
- function ze(t, e, n, s) {
224
+ function Be(t, e, n, s) {
222
225
  n == null ? t.style.removeProperty(e) : t.style.setProperty(e, n, "");
223
226
  }
224
227
  let Z;
@@ -233,7 +236,7 @@ function Zt() {
233
236
  }
234
237
  return Z;
235
238
  }
236
- function Be(t, e) {
239
+ function Pe(t, e) {
237
240
  getComputedStyle(t).position === "static" && (t.style.position = "relative");
238
241
  const s = L("iframe");
239
242
  s.setAttribute(
@@ -255,7 +258,7 @@ function Be(t, e) {
255
258
  (o || i && s.contentWindow) && i(), P(s);
256
259
  };
257
260
  }
258
- function Pe(t, e, n) {
261
+ function Te(t, e, n) {
259
262
  t.classList.toggle(e, !!n);
260
263
  }
261
264
  function Gt(t, e, { bubbles: n = !1, cancelable: s = !1 } = {}) {
@@ -291,11 +294,11 @@ function et(t, e, n, s, o, i, c, r = 0) {
291
294
  u += p * 100 + `%{${c(g, 1 - g)}}
292
295
  `;
293
296
  }
294
- const _ = u + `100% {${c(n, 1 - n)}}
295
- }`, f = `__svelte_${Qt(_)}_${r}`, h = dt(t), { stylesheet: m, rules: d } = Y.get(h) || Xt(h, t);
296
- d[f] || (d[f] = !0, m.insertRule(`@keyframes ${f} ${_}`, m.cssRules.length));
297
- const $ = t.style.animation || "";
298
- return t.style.animation = `${$ ? `${$}, ` : ""}${f} ${s}ms linear ${o}ms 1 both`, tt += 1, f;
297
+ const $ = u + `100% {${c(n, 1 - n)}}
298
+ }`, f = `__svelte_${Qt($)}_${r}`, h = dt(t), { stylesheet: _, rules: d } = Y.get(h) || Xt(h, t);
299
+ d[f] || (d[f] = !0, _.insertRule(`@keyframes ${f} ${$}`, _.cssRules.length));
300
+ const m = t.style.animation || "";
301
+ return t.style.animation = `${m ? `${m}, ` : ""}${f} ${s}ms linear ${o}ms 1 both`, tt += 1, f;
299
302
  }
300
303
  function nt(t, e) {
301
304
  const n = (t.style.animation || "").split(", "), s = n.filter(
@@ -324,7 +327,7 @@ function Nt() {
324
327
  function te(t) {
325
328
  Nt().$$.on_mount.push(t);
326
329
  }
327
- function Te(t) {
330
+ function Re(t) {
328
331
  Nt().$$.on_destroy.push(t);
329
332
  }
330
333
  const A = [], rt = [];
@@ -376,7 +379,7 @@ function ie(t) {
376
379
  z.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), z = e;
377
380
  }
378
381
  let T;
379
- function $t() {
382
+ function mt() {
380
383
  return T || (T = Promise.resolve(), T.then(() => {
381
384
  T = null;
382
385
  })), T;
@@ -386,7 +389,7 @@ function O(t, e, n) {
386
389
  }
387
390
  const K = /* @__PURE__ */ new Set();
388
391
  let E;
389
- function Re() {
392
+ function De() {
390
393
  E = {
391
394
  r: 0,
392
395
  c: [],
@@ -394,7 +397,7 @@ function Re() {
394
397
  // parent group
395
398
  };
396
399
  }
397
- function De() {
400
+ function He() {
398
401
  E.r || j(E.c), E = E.p;
399
402
  }
400
403
  function R(t, e) {
@@ -410,30 +413,30 @@ function G(t, e, n, s) {
410
413
  } else
411
414
  s && s();
412
415
  }
413
- const mt = { duration: 0 };
414
- function He(t, e, n) {
416
+ const _t = { duration: 0 };
417
+ function We(t, e, n) {
415
418
  const s = { direction: "in" };
416
419
  let o = e(t, n, s), i = !1, c, r, l = 0;
417
420
  function u() {
418
421
  c && nt(t, c);
419
422
  }
420
- function _() {
423
+ function $() {
421
424
  const {
422
425
  delay: h = 0,
423
- duration: m = 300,
426
+ duration: _ = 300,
424
427
  easing: d = lt,
425
- tick: $ = k,
428
+ tick: m = k,
426
429
  css: p
427
- } = o || mt;
428
- p && (c = et(t, 0, 1, m, h, d, p, l++)), $(0, 1);
429
- const g = ut() + h, w = g + m;
430
+ } = o || _t;
431
+ p && (c = et(t, 0, 1, _, h, d, p, l++)), m(0, 1);
432
+ const g = ut() + h, w = g + _;
430
433
  r && r.abort(), i = !0, B(() => O(t, !0, "start")), r = ft((x) => {
431
434
  if (i) {
432
435
  if (x >= w)
433
- return $(1, 0), O(t, !0, "end"), u(), i = !1;
436
+ return m(1, 0), O(t, !0, "end"), u(), i = !1;
434
437
  if (x >= g) {
435
- const b = d((x - g) / m);
436
- $(b, 1 - b);
438
+ const b = d((x - g) / _);
439
+ m(b, 1 - b);
437
440
  }
438
441
  }
439
442
  return i;
@@ -442,7 +445,7 @@ function He(t, e, n) {
442
445
  let f = !1;
443
446
  return {
444
447
  start() {
445
- f || (f = !0, nt(t), I(o) ? (o = o(s), $t().then(_)) : _());
448
+ f || (f = !0, nt(t), I(o) ? (o = o(s), mt().then($)) : $());
446
449
  },
447
450
  invalidate() {
448
451
  f = !1;
@@ -452,7 +455,7 @@ function He(t, e, n) {
452
455
  }
453
456
  };
454
457
  }
455
- function We(t, e, n) {
458
+ function Ie(t, e, n) {
456
459
  const s = { direction: "out" };
457
460
  let o = e(t, n, s), i = !0, c;
458
461
  const r = E;
@@ -460,68 +463,68 @@ function We(t, e, n) {
460
463
  let l;
461
464
  function u() {
462
465
  const {
463
- delay: _ = 0,
466
+ delay: $ = 0,
464
467
  duration: f = 300,
465
468
  easing: h = lt,
466
- tick: m = k,
469
+ tick: _ = k,
467
470
  css: d
468
- } = o || mt;
469
- d && (c = et(t, 1, 0, f, _, h, d));
470
- const $ = ut() + _, p = $ + f;
471
+ } = o || _t;
472
+ d && (c = et(t, 1, 0, f, $, h, d));
473
+ const m = ut() + $, p = m + f;
471
474
  B(() => O(t, !1, "start")), "inert" in t && (l = /** @type {HTMLElement} */
472
475
  t.inert, t.inert = !0), ft((g) => {
473
476
  if (i) {
474
477
  if (g >= p)
475
- return m(0, 1), O(t, !1, "end"), --r.r || j(r.c), !1;
476
- if (g >= $) {
477
- const w = h((g - $) / f);
478
- m(1 - w, w);
478
+ return _(0, 1), O(t, !1, "end"), --r.r || j(r.c), !1;
479
+ if (g >= m) {
480
+ const w = h((g - m) / f);
481
+ _(1 - w, w);
479
482
  }
480
483
  }
481
484
  return i;
482
485
  });
483
486
  }
484
- return I(o) ? $t().then(() => {
487
+ return I(o) ? mt().then(() => {
485
488
  o = o(s), u();
486
489
  }) : u(), {
487
- end(_) {
488
- _ && "inert" in t && (t.inert = l), _ && o.tick && o.tick(1, 0), i && (c && nt(t, c), i = !1);
490
+ end($) {
491
+ $ && "inert" in t && (t.inert = l), $ && o.tick && o.tick(1, 0), i && (c && nt(t, c), i = !1);
489
492
  }
490
493
  };
491
494
  }
492
- function Ie(t, e, n, s) {
493
- let i = e(t, n, { direction: "both" }), c = s ? 0 : 1, r = null, l = null, u = null, _;
495
+ function Ue(t, e, n, s) {
496
+ let i = e(t, n, { direction: "both" }), c = s ? 0 : 1, r = null, l = null, u = null, $;
494
497
  function f() {
495
498
  u && nt(t, u);
496
499
  }
497
- function h(d, $) {
500
+ function h(d, m) {
498
501
  const p = (
499
502
  /** @type {Program['d']} */
500
503
  d.b - c
501
504
  );
502
- return $ *= Math.abs(p), {
505
+ return m *= Math.abs(p), {
503
506
  a: c,
504
507
  b: d.b,
505
508
  d: p,
506
- duration: $,
509
+ duration: m,
507
510
  start: d.start,
508
- end: d.start + $,
511
+ end: d.start + m,
509
512
  group: d.group
510
513
  };
511
514
  }
512
- function m(d) {
515
+ function _(d) {
513
516
  const {
514
- delay: $ = 0,
517
+ delay: m = 0,
515
518
  duration: p = 300,
516
519
  easing: g = lt,
517
520
  tick: w = k,
518
521
  css: x
519
- } = i || mt, b = {
520
- start: ut() + $,
522
+ } = i || _t, b = {
523
+ start: ut() + m,
521
524
  b: d
522
525
  };
523
- d || (b.group = E, E.r += 1), "inert" in t && (d ? _ !== void 0 && (t.inert = _) : (_ = /** @type {HTMLElement} */
524
- t.inert, t.inert = !0)), r || l ? l = b : (x && (f(), u = et(t, c, d, p, $, g, x)), d && w(0, 1), r = h(b, p), B(() => O(t, d, "start")), ft((a) => {
526
+ d || (b.group = E, E.r += 1), "inert" in t && (d ? $ !== void 0 && (t.inert = $) : ($ = /** @type {HTMLElement} */
527
+ t.inert, t.inert = !0)), r || l ? l = b : (x && (f(), u = et(t, c, d, p, m, g, x)), d && w(0, 1), r = h(b, p), B(() => O(t, d, "start")), ft((a) => {
525
528
  if (l && a > l.start && (r = h(l, p), l = null, O(t, r.b, "start"), x && (f(), u = et(
526
529
  t,
527
530
  c,
@@ -543,18 +546,21 @@ function Ie(t, e, n, s) {
543
546
  }
544
547
  return {
545
548
  run(d) {
546
- I(i) ? $t().then(() => {
547
- i = i({ direction: d ? "in" : "out" }), m(d);
548
- }) : m(d);
549
+ I(i) ? mt().then(() => {
550
+ i = i({ direction: d ? "in" : "out" }), _(d);
551
+ }) : _(d);
549
552
  },
550
553
  end() {
551
554
  f(), r = l = null;
552
555
  }
553
556
  };
554
557
  }
555
- function Ue(t) {
558
+ function qe(t) {
556
559
  return (t == null ? void 0 : t.length) !== void 0 ? t : Array.from(t);
557
560
  }
561
+ function Fe(t) {
562
+ t && t.c();
563
+ }
558
564
  function oe(t, e, n) {
559
565
  const { fragment: s, after_update: o } = t.$$;
560
566
  s && s.m(e, n), B(() => {
@@ -594,11 +600,11 @@ function le(t, e, n, s, o, i, c = null, r = [-1]) {
594
600
  root: e.target || l.$$.root
595
601
  };
596
602
  c && c(u.root);
597
- let _ = !1;
598
- if (u.ctx = n ? n(t, e.props || {}, (f, h, ...m) => {
599
- const d = m.length ? m[0] : h;
600
- return u.ctx && o(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), _ && ce(t, f)), h;
601
- }) : [], u.update(), _ = !0, j(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
603
+ let $ = !1;
604
+ if (u.ctx = n ? n(t, e.props || {}, (f, h, ..._) => {
605
+ const d = _.length ? _[0] : h;
606
+ return u.ctx && o(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), $ && ce(t, f)), h;
607
+ }) : [], u.update(), $ = !0, j(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
602
608
  if (e.hydrate) {
603
609
  const f = Vt(e.target);
604
610
  u.fragment && u.fragment.l(f), f.forEach(P);
@@ -659,8 +665,8 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
659
665
  * @param {HTMLElement} target
660
666
  * @param {HTMLElement} [anchor]
661
667
  */
662
- m: function(u, _) {
663
- ht(u, c, _);
668
+ m: function(u, $) {
669
+ ht(u, c, $);
664
670
  },
665
671
  d: function(u) {
666
672
  u && P(c);
@@ -853,7 +859,7 @@ function he(t, e) {
853
859
  console.error("There was an error while trying to load client styling from URL", s);
854
860
  });
855
861
  }
856
- function $e(t, e, n) {
862
+ function me(t, e, n) {
857
863
  if (window.emMessageBus) {
858
864
  const s = document.createElement("style");
859
865
  window.emMessageBus.subscribe(e, (o) => {
@@ -861,10 +867,10 @@ function $e(t, e, n) {
861
867
  });
862
868
  }
863
869
  }
864
- function me(t) {
870
+ function _e(t) {
865
871
  Ft(t, "svelte-1m890h5", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:absolute;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)}}");
866
872
  }
867
- const _e = (t) => ({}), Ct = (t) => ({}), ge = (t) => ({}), vt = (t) => ({}), pe = (t) => ({}), Mt = (t) => ({ class: "CashierModalText" }), ye = (t) => ({}), Et = (t) => ({ class: "CashierModalTitle" });
873
+ const $e = (t) => ({}), Ct = (t) => ({}), ge = (t) => ({}), vt = (t) => ({}), pe = (t) => ({}), Mt = (t) => ({ class: "CashierModalText" }), ye = (t) => ({}), Et = (t) => ({ class: "CashierModalTitle" });
868
874
  function be(t) {
869
875
  let e, n;
870
876
  return {
@@ -881,11 +887,11 @@ function be(t) {
881
887
  };
882
888
  }
883
889
  function we(t) {
884
- let e, n, s, o, i, c, r, l, u, _, f;
890
+ let e, n, s, o, i, c, r, l, u, $, f;
885
891
  const h = (
886
892
  /*#slots*/
887
893
  t[7].title
888
- ), m = q(
894
+ ), _ = q(
889
895
  h,
890
896
  t,
891
897
  /*$$scope*/
@@ -894,7 +900,7 @@ function we(t) {
894
900
  ), d = (
895
901
  /*#slots*/
896
902
  t[7].text
897
- ), $ = q(
903
+ ), m = q(
898
904
  d,
899
905
  t,
900
906
  /*$$scope*/
@@ -921,10 +927,10 @@ function we(t) {
921
927
  ), b = x || be();
922
928
  return {
923
929
  c() {
924
- e = L("div"), n = L("div"), s = L("div"), m && m.c(), o = it(), $ && $.c(), i = it(), c = L("span"), g && g.c(), r = it(), l = L("span"), b && b.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");
930
+ e = L("div"), n = L("div"), s = L("div"), _ && _.c(), o = it(), m && m.c(), i = it(), c = L("span"), g && g.c(), r = it(), l = L("span"), b && b.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");
925
931
  },
926
932
  m(a, C) {
927
- ht(a, e, C), M(e, n), M(n, s), m && m.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), b && b.m(l, null), t[8](e), u = !0, _ || (f = [
933
+ ht(a, e, C), M(e, n), M(n, s), _ && _.m(s, null), M(s, o), m && m.m(s, null), M(s, i), M(s, c), g && g.m(c, null), M(s, r), M(s, l), b && b.m(l, null), t[8](e), u = !0, $ || (f = [
928
934
  X(
929
935
  c,
930
936
  "click",
@@ -937,12 +943,12 @@ function we(t) {
937
943
  /*close*/
938
944
  t[1]
939
945
  )
940
- ], _ = !0);
946
+ ], $ = !0);
941
947
  },
942
948
  p(a, [C]) {
943
- m && m.p && (!u || C & /*$$scope*/
949
+ _ && _.p && (!u || C & /*$$scope*/
944
950
  64) && J(
945
- m,
951
+ _,
946
952
  h,
947
953
  a,
948
954
  /*$$scope*/
@@ -958,9 +964,9 @@ function we(t) {
958
964
  a[6]
959
965
  ),
960
966
  Et
961
- ), $ && $.p && (!u || C & /*$$scope*/
967
+ ), m && m.p && (!u || C & /*$$scope*/
962
968
  64) && J(
963
- $,
969
+ m,
964
970
  d,
965
971
  a,
966
972
  /*$$scope*/
@@ -1006,7 +1012,7 @@ function we(t) {
1006
1012
  /*$$scope*/
1007
1013
  a[6],
1008
1014
  C,
1009
- _e
1015
+ $e
1010
1016
  ) : V(
1011
1017
  /*$$scope*/
1012
1018
  a[6]
@@ -1015,13 +1021,13 @@ function we(t) {
1015
1021
  );
1016
1022
  },
1017
1023
  i(a) {
1018
- u || (R(m, a), R($, a), R(g, a), R(b, a), u = !0);
1024
+ u || (R(_, a), R(m, a), R(g, a), R(b, a), u = !0);
1019
1025
  },
1020
1026
  o(a) {
1021
- G(m, a), G($, a), G(g, a), G(b, a), u = !1;
1027
+ G(_, a), G(m, a), G(g, a), G(b, a), u = !1;
1022
1028
  },
1023
1029
  d(a) {
1024
- a && P(e), m && m.d(a), $ && $.d(a), g && g.d(a), b && b.d(a), t[8](null), _ = !1, j(f);
1030
+ a && P(e), _ && _.d(a), m && m.d(a), g && g.d(a), b && b.d(a), t[8](null), $ = !1, j(f);
1025
1031
  }
1026
1032
  };
1027
1033
  }
@@ -1029,7 +1035,7 @@ function xe(t, e, n) {
1029
1035
  let { $$slots: s = {}, $$scope: o } = e, { clientstyling: i = "" } = e, { clientstylingurl: c = "" } = e, { mbsource: r = "" } = e, l;
1030
1036
  const u = () => {
1031
1037
  window.postMessage({ type: "CloseModal" }, window.location.href);
1032
- }, _ = () => {
1038
+ }, $ = () => {
1033
1039
  window.postMessage({ type: "ConfirmModal" }, window.location.href), u();
1034
1040
  };
1035
1041
  te(() => () => {
@@ -1045,11 +1051,11 @@ function xe(t, e, n) {
1045
1051
  t.$$.dirty & /*clientstyling, customStylingContainer*/
1046
1052
  9 && i && l && de(l, i), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
1047
1053
  17 && c && l && he(l, c), t.$$.dirty & /*mbsource, customStylingContainer*/
1048
- 33 && r && l && $e(l, `${r}.Style`);
1054
+ 33 && r && l && me(l, `${r}.Style`);
1049
1055
  }, [
1050
1056
  l,
1051
1057
  u,
1052
- _,
1058
+ $,
1053
1059
  i,
1054
1060
  c,
1055
1061
  r,
@@ -1071,7 +1077,7 @@ class Bt extends ae {
1071
1077
  clientstylingurl: 4,
1072
1078
  mbsource: 5
1073
1079
  },
1074
- me
1080
+ _e
1075
1081
  );
1076
1082
  }
1077
1083
  get clientstyling() {
@@ -1094,39 +1100,43 @@ class Bt extends ae {
1094
1100
  }
1095
1101
  }
1096
1102
  ue(Bt, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, ["title", "text", "confirm", "close"], [], !0);
1097
- const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1103
+ const Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1098
1104
  __proto__: null,
1099
1105
  default: Bt
1100
1106
  }, Symbol.toStringTag, { value: "Module" }));
1101
1107
  export {
1102
- ke as A,
1108
+ Fe as $,
1109
+ je as A,
1103
1110
  At as B,
1104
- Ae as C,
1111
+ Ne as C,
1105
1112
  X as D,
1106
- Re as E,
1113
+ De as E,
1107
1114
  rt as F,
1108
1115
  de as G,
1109
1116
  ve as H,
1110
- Oe as I,
1117
+ Se as I,
1111
1118
  B as J,
1112
- Ee as K,
1113
- Pe as L,
1114
- Se as M,
1115
- Ue as N,
1116
- je as O,
1117
- Le as P,
1118
- Ne as Q,
1119
+ Le as K,
1120
+ Te as L,
1121
+ Ae as M,
1122
+ qe as N,
1123
+ Oe as O,
1124
+ ke as P,
1125
+ ze as Q,
1119
1126
  wt as R,
1120
1127
  ae as S,
1121
- ze as T,
1128
+ Be as T,
1122
1129
  lt as U,
1123
- Be as V,
1124
- Ie as W,
1125
- Te as X,
1126
- He as Y,
1127
- We as Z,
1128
- qe as _,
1130
+ Pe as V,
1131
+ Ue as W,
1132
+ Re as X,
1133
+ We as Y,
1134
+ Ie as Z,
1135
+ Ee as _,
1129
1136
  It as a,
1137
+ oe as a0,
1138
+ re as a1,
1139
+ Je as a2,
1130
1140
  le as b,
1131
1141
  ue as c,
1132
1142
  Ft as d,
@@ -1142,7 +1152,7 @@ export {
1142
1152
  k as n,
1143
1153
  F as o,
1144
1154
  G as p,
1145
- De as q,
1155
+ He as q,
1146
1156
  j as r,
1147
1157
  qt as s,
1148
1158
  R as t,
@@ -1151,5 +1161,5 @@ export {
1151
1161
  Me as w,
1152
1162
  te as x,
1153
1163
  he as y,
1154
- $e as z
1164
+ me as z
1155
1165
  };