@everymatrix/cashier-verifications 1.86.26 → 1.86.28

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.
@@ -1,4 +1,4 @@
1
- import { C as i } from "../components/CashierVerifications-CpFwmo_X.js";
1
+ import { C as i } from "../components/CashierVerifications-DjMSPWRN.js";
2
2
  function n(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-verifications",
3
- "version": "1.86.26",
3
+ "version": "1.86.28",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-verifications.cjs",
6
6
  "module": "esnext/cashier-verifications.js",
@@ -1 +0,0 @@
1
- "use strict";var Pt=Object.defineProperty,Rt=Object.defineProperties;var Ft=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var Q=(e,t,n)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rt=(e,t)=>{for(var n in t||(t={}))Dt.call(t,n)&&Q(e,n,t[n]);if(st)for(var n of st(t))Ut.call(t,n)&&Q(e,n,t[n]);return e},lt=(e,t)=>Rt(e,Ft(t));var M=(e,t,n)=>(Q(e,typeof t!="symbol"?t+"":t,n),n);var X=(e,t,n)=>new Promise((i,o)=>{var s=d=>{try{c(n.next(d))}catch(l){o(l)}},r=d=>{try{c(n.throw(d))}catch(l){o(l)}},c=d=>d.done?i(d.value):Promise.resolve(d.value).then(s,r);c((n=n.apply(e,t)).next())});function U(){}function Yt(e,t){for(const n in t)e[n]=t[n];return e}function bt(e){return e()}function ct(){return Object.create(null)}function B(e){e.forEach(bt)}function ot(e){return typeof e=="function"}function yt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Jt(e){return Object.keys(e).length===0}function wt(e,...t){if(e==null){for(const i of t)i(void 0);return U}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Vt(e,t,n){e.$$.on_destroy.push(wt(t,n))}function at(e,t,n,i){if(e){const o=xt(e,t,n,i);return e[0](o)}}function xt(e,t,n,i){return e[1]&&i?Yt(n.ctx.slice(),e[1](i(t))):n.ctx}function dt(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(t.dirty===void 0)return o;if(typeof o=="object"){const s=[],r=Math.max(t.dirty.length,o.length);for(let c=0;c<r;c+=1)s[c]=t.dirty[c]|o[c];return s}return t.dirty|o}return t.dirty}function ut(e,t,n,i,o,s){if(o){const r=xt(t,n,i,s);e.p(r,o)}}function ft(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function y(e,t){e.appendChild(t)}function Ct(e,t,n){const i=qt(e);if(!i.getElementById(t)){const o=w("style");o.id=t,o.textContent=n,Zt(i,o)}}function qt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Zt(e,t){return y(e.head||e,t),t.sheet}function P(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function Gt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function w(e){return document.createElement(e)}function nt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function vt(e){return document.createTextNode(e)}function F(){return vt(" ")}function Z(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function _(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Kt(e,t,n){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:_(e,t,n)}function Qt(e){return Array.from(e.childNodes)}function Xt(e,t){t=""+t,e.data!==t&&(e.data=t)}let J;function te(){if(J===void 0){J=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){J=!0}}return J}function ee(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=w("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=te();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=Z(window,"message",r=>{r.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=Z(i.contentWindow,"resize",t),t()}),y(e,i),()=>{(o||s&&i.contentWindow)&&s(),S(i)}}function O(e,t,n){e.classList.toggle(t,!!n)}function ne(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let Y;function D(e){Y=e}function ie(){if(!Y)throw new Error("Function called outside component initialization");return Y}function Mt(e){ie().$$.on_mount.push(e)}const I=[],j=[];let N=[];const ht=[],kt=Promise.resolve();let it=!1;function Lt(){it||(it=!0,kt.then(E))}function tt(){return Lt(),kt}function G(e){N.push(e)}const et=new Set;let A=0;function E(){if(A!==0)return;const e=Y;do{try{for(;A<I.length;){const t=I[A];A++,D(t),oe(t.$$)}}catch(t){throw I.length=0,A=0,t}for(D(null),I.length=0,A=0;j.length;)j.pop()();for(let t=0;t<N.length;t+=1){const n=N[t];et.has(n)||(et.add(n),n())}N.length=0}while(I.length);for(;ht.length;)ht.pop()();it=!1,et.clear(),D(e)}function oe(e){if(e.fragment!==null){e.update(),B(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(G)}}function se(e){const t=[],n=[];N.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),N=t}const V=new Set;let z;function re(){z={r:0,c:[],p:z}}function le(){z.r||B(z.c),z=z.p}function W(e,t){e&&e.i&&(V.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(V.has(e))return;V.add(e),z.c.push(()=>{V.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function ce(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ae(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),G(()=>{const s=e.$$.on_mount.map(bt).filter(ot);e.$$.on_destroy?e.$$.on_destroy.push(...s):B(s),e.$$.on_mount=[]}),o.forEach(G)}function de(e,t){const n=e.$$;n.fragment!==null&&(se(n.after_update),B(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){e.$$.dirty[0]===-1&&(I.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Et(e,t,n,i,o,s,r=null,c=[-1]){const d=Y;D(e);const l=e.$$={fragment:null,ctx:[],props:s,update:U,not_equal:o,bound:ct(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:ct(),dirty:c,skip_bound:!1,root:t.target||d.$$.root};r&&r(l.root);let v=!1;if(l.ctx=n?n(e,t.props||{},(p,k,...$)=>{const b=$.length?$[0]:k;return l.ctx&&o(l.ctx[p],l.ctx[p]=b)&&(!l.skip_bound&&l.bound[p]&&l.bound[p](b),v&&ue(e,p)),k}):[],l.update(),v=!0,B(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=Qt(t.target);l.fragment&&l.fragment.l(p),p.forEach(S)}else l.fragment&&l.fragment.c();t.intro&&W(e.$$.fragment),ae(e,t.target,t.anchor),E()}D(d)}let St;typeof HTMLElement=="function"&&(St=class extends HTMLElement{constructor(t,n,i){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return X(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=w("slot"),s!=="default"&&_(r,"name",s)},m:function(l,v){P(l,r,v)},d:function(l){l&&S(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ne(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=q(r,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:lt(rt({},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 r=q(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const r of this.$$l[s]){const c=this.$$c.$on(s,r);this.$$l_u.set(r,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=q(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function q(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Tt(e,t,n,i,o,s){let r=class extends St{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(r.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(d){var l;d=q(c,d,t),this.$$d[c]=d,(l=this.$$c)==null||l.$set({[c]:d})}})}),i.forEach(c=>{Object.defineProperty(r.prototype,c,{get(){var d;return(d=this.$$c)==null?void 0:d[c]}})}),e.element=r,r}class Ot{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){de(this,1),this.$destroy=U}$on(t,n){if(!ot(n))return U;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!Jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fe);function jt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function zt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Ht(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function he(e){Ct(e,"svelte-vlp16o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const me=e=>({}),mt=e=>({}),ge=e=>({}),gt=e=>({});function _t(e){let t,n,i,o,s,r,c,d,l,v,p,k,$,b,m,f,H,h=(e[3]=="error"||e[3]=="bonusDescription")&&pt();const T=e[14].title,x=at(T,e,e[13],gt);let g=e[4]==="true"&&$t();const R=e[14].content,C=at(R,e,e[13],mt);return{c(){t=w("div"),n=w("div"),i=w("div"),o=w("div"),h&&h.c(),s=F(),r=w("div"),x&&x.c(),c=F(),d=w("div"),l=nt("svg"),v=nt("path"),p=F(),g&&g.c(),k=F(),$=w("div"),C&&C.c(),_(r,"class","TitleText"),_(o,"class","ModalTitle"),_(v,"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"),_(l,"xmlns","http://www.w3.org/2000/svg"),_(l,"viewBox","0 0 13 13"),_(l,"fill","none"),_(l,"class","CloseButton"),_(d,"class","ModalCloseIcon"),_(i,"class","ModalHeader"),_($,"class","ModalContentWrapper"),O($,"hidden",e[4]==="true"),_(n,"class","ModalContainer"),O(n,"video-mode",e[3]==="video"),O(n,"twofa-mode",e[3]==="2fa"),_(t,"id","Modal"),G(()=>e[18].call(t))},m(u,L){P(u,t,L),y(t,n),y(n,i),y(i,o),h&&h.m(o,null),y(o,s),y(o,r),x&&x.m(r,null),y(i,c),y(i,d),y(d,l),y(l,v),y(n,p),g&&g.m(n,null),y(n,k),y(n,$),C&&C.m($,null),e[15]($),e[16](n),e[17](t),b=ee(t,e[18].bind(t)),m=!0,f||(H=Z(l,"click",e[9]),f=!0)},p(u,L){u[3]=="error"||u[3]=="bonusDescription"?h||(h=pt(),h.c(),h.m(o,s)):h&&(h.d(1),h=null),x&&x.p&&(!m||L&8192)&&ut(x,T,u,u[13],m?dt(T,u[13],L,ge):ft(u[13]),gt),u[4]==="true"?g||(g=$t(),g.c(),g.m(n,k)):g&&(g.d(1),g=null),C&&C.p&&(!m||L&8192)&&ut(C,R,u,u[13],m?dt(R,u[13],L,me):ft(u[13]),mt),(!m||L&16)&&O($,"hidden",u[4]==="true"),(!m||L&8)&&O(n,"video-mode",u[3]==="video"),(!m||L&8)&&O(n,"twofa-mode",u[3]==="2fa")},i(u){m||(W(x,u),W(C,u),m=!0)},o(u){K(x,u),K(C,u),m=!1},d(u){u&&S(t),h&&h.d(),x&&x.d(u),g&&g.d(),C&&C.d(u),e[15](null),e[16](null),e[17](null),b(),f=!1,H()}}}function pt(e){let t;return{c(){t=w("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',_(t,"class","WarningIcon")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function $t(e){let t;return{c(){t=w("div"),t.innerHTML='<div class="ModalLoader"></div>',_(t,"class","ModalLoadingOverlay")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function _e(e){let t,n,i=e[2]==="true"&&_t(e);return{c(){t=w("div"),i&&i.c()},m(o,s){P(o,t,s),i&&i.m(t,null),e[19](t),n=!0},p(o,[s]){o[2]==="true"?i?(i.p(o,s),s&4&&W(i,1)):(i=_t(o),i.c(),W(i,1),i.m(t,null)):i&&(re(),K(i,1,1,()=>{i=null}),le())},i(o){n||(W(i),n=!0)},o(o){K(i),n=!1},d(o){o&&S(t),i&&i.d(),e[19](null)}}}function pe(e,t,n){let{$$slots:i={},$$scope:o}=t,{mbsource:s}=t,{clientstyling:r}=t,{clientstylingurl:c}=t,{show:d}=t,{modaltype:l=""}=t,{isloading:v="false"}=t,{width:p}=t,{height:k}=t,$,b,m,f,H=!1,h,T;const x=()=>{h&&clearTimeout(h),$&&($.classList.add("closing"),window.dispatchEvent(new CustomEvent("manualClosePopup")),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},g=()=>X(this,null,function*(){if(!f||!m||H)return;T&&clearTimeout(h),H=!0;const a=f.offsetWidth,Nt=f.offsetHeight;n(8,f.style.width=`${a}px`,f),n(8,f.style.height=`${Nt}px`,f),f.offsetHeight,yield tt();const Wt=m.scrollHeight,Bt=m.scrollWidth;n(8,f.style.width=`${Bt}px`,f),n(8,f.style.height=`${Wt}px`,f),T=setTimeout(()=>{f&&(n(8,f.style.width="auto",f),n(8,f.style.height="auto",f)),H=!1},300)});Mt(()=>{if(tt().then(()=>{g()}),m){const a=new ResizeObserver(()=>{g()});return a.observe(m),()=>{a.disconnect()}}return()=>{h&&clearTimeout(h),T&&clearTimeout(h)}});function R(a){j[a?"unshift":"push"](()=>{m=a,n(7,m)})}function C(a){j[a?"unshift":"push"](()=>{f=a,n(8,f)})}function u(a){j[a?"unshift":"push"](()=>{$=a,n(6,$)})}function L(){p=this.clientWidth,k=this.clientHeight,n(0,p),n(1,k)}function It(a){j[a?"unshift":"push"](()=>{b=a,n(5,b)})}return e.$$set=a=>{"mbsource"in a&&n(10,s=a.mbsource),"clientstyling"in a&&n(11,r=a.clientstyling),"clientstylingurl"in a&&n(12,c=a.clientstylingurl),"show"in a&&n(2,d=a.show),"modaltype"in a&&n(3,l=a.modaltype),"isloading"in a&&n(4,v=a.isloading),"width"in a&&n(0,p=a.width),"height"in a&&n(1,k=a.height),"$$scope"in a&&n(13,o=a.$$scope)},e.$$.update=()=>{e.$$.dirty&16&&v&&tt().then(()=>{g()}),e.$$.dirty&2080&&r&&b&&jt(b,r),e.$$.dirty&4128&&c&&b&&zt(b,c),e.$$.dirty&1056&&s&&b&&Ht(b,`${s}.Style`)},[p,k,d,l,v,b,$,m,f,x,s,r,c,o,i,R,C,u,L,It]}class At extends Ot{constructor(t){super(),Et(this,t,pe,_e,yt,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},he)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),E()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),E()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),E()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading:t}),E()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),E()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),E()}}Tt(At,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);const $e=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=$e;exports.SvelteComponent=Ot;exports.append=y;exports.append_styles=Ct;exports.attr=_;exports.binding_callbacks=j;exports.component_subscribe=Vt;exports.create_custom_element=Tt;exports.destroy_each=Gt;exports.detach=S;exports.element=w;exports.ensure_array_like=ce;exports.flush=E;exports.init=Et;exports.insert=P;exports.is_function=ot;exports.listen=Z;exports.noop=U;exports.onMount=Mt;exports.run_all=B;exports.safe_not_equal=yt;exports.setClientStyling=jt;exports.setClientStylingURL=zt;exports.setStreamStyling=Ht;exports.set_custom_element_data=Kt;exports.set_data=Xt;exports.space=F;exports.subscribe=wt;exports.svg_element=nt;exports.text=vt;exports.toggle_class=O;