@everymatrix/cashier-modal 1.86.5 → 1.86.7

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 +1 @@
1
- "use strict";var Tt=Object.defineProperty,St=Object.defineProperties;var Ot=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var G=(e,t,n)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ot=(e,t)=>{for(var n in t||(t={}))jt.call(t,n)&&G(e,n,t[n]);if(it)for(var n of it(t))zt.call(t,n)&&G(e,n,t[n]);return e},st=(e,t)=>St(e,Ot(t));var M=(e,t,n)=>(G(e,typeof t!="symbol"?t+"":t,n),n);var K=(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())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function tt(){}function Ht(e,t){for(const n in t)e[n]=t[n];return e}function $t(e){return e()}function rt(){return Object.create(null)}function F(e){e.forEach($t)}function yt(e){return typeof e=="function"}function It(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function At(e){return Object.keys(e).length===0}function lt(e,t,n,i){if(e){const o=wt(e,t,n,i);return e[0](o)}}function wt(e,t,n,i){return e[1]&&i?Ht(n.ctx.slice(),e[1](i(t))):n.ctx}function ct(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 at(e,t,n,i,o,s){if(o){const r=wt(t,n,i,s);e.p(r,o)}}function dt(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 w(e,t){e.appendChild(t)}function Nt(e,t,n){const i=Wt(e);if(!i.getElementById(t)){const o=v("style");o.id=t,o.textContent=n,Bt(i,o)}}function Wt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bt(e,t){return w(e.head||e,t),t.sheet}function D(e,t,n){e.insertBefore(t,n||null)}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function ut(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Pt(e){return document.createTextNode(e)}function Y(){return Pt(" ")}function et(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function y(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Rt(e){return Array.from(e.childNodes)}let U;function Ft(){if(U===void 0){U=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){U=!0}}return U}function Dt(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=v("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=Ft();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=et(window,"message",r=>{r.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=et(i.contentWindow,"resize",t),t()}),w(e,i),()=>{(o||s&&i.contentWindow)&&s(),O(i)}}function z(e,t,n){e.classList.toggle(t,!!n)}function Yt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let R;function P(e){R=e}function Ut(){if(!R)throw new Error("Function called outside component initialization");return R}function Jt(e){Ut().$$.on_mount.push(e)}const I=[],A=[];let N=[];const ft=[],bt=Promise.resolve();let nt=!1;function xt(){nt||(nt=!0,bt.then(E))}function Q(){return xt(),bt}function Z(e){N.push(e)}const X=new Set;let H=0;function E(){if(H!==0)return;const e=R;do{try{for(;H<I.length;){const t=I[H];H++,P(t),Vt(t.$$)}}catch(t){throw I.length=0,H=0,t}for(P(null),I.length=0,H=0;A.length;)A.pop()();for(let t=0;t<N.length;t+=1){const n=N[t];X.has(n)||(X.add(n),n())}N.length=0}while(I.length);for(;ft.length;)ft.pop()();nt=!1,X.clear(),P(e)}function Vt(e){if(e.fragment!==null){e.update(),F(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Z)}}function Zt(e){const t=[],n=[];N.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),N=t}const J=new Set;let S;function qt(){S={r:0,c:[],p:S}}function Gt(){S.r||F(S.c),S=S.p}function W(e,t){e&&e.i&&(J.delete(e),e.i(t))}function q(e,t,n,i){if(e&&e.o){if(J.has(e))return;J.add(e),S.c.push(()=>{J.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Kt(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),Z(()=>{const s=e.$$.on_mount.map($t).filter(yt);e.$$.on_destroy?e.$$.on_destroy.push(...s):F(s),e.$$.on_mount=[]}),o.forEach(Z)}function Qt(e,t){const n=e.$$;n.fragment!==null&&(Zt(n.after_update),F(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Xt(e,t){e.$$.dirty[0]===-1&&(I.push(e),xt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function te(e,t,n,i,o,s,r=null,c=[-1]){const d=R;P(e);const l=e.$$={fragment:null,ctx:[],props:s,update:tt,not_equal:o,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:rt(),dirty:c,skip_bound:!1,root:t.target||d.$$.root};r&&r(l.root);let C=!1;if(l.ctx=n?n(e,t.props||{},(p,k,..._)=>{const $=_.length?_[0]:k;return l.ctx&&o(l.ctx[p],l.ctx[p]=$)&&(!l.skip_bound&&l.bound[p]&&l.bound[p]($),C&&Xt(e,p)),k}):[],l.update(),C=!0,F(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=Rt(t.target);l.fragment&&l.fragment.l(p),p.forEach(O)}else l.fragment&&l.fragment.c();t.intro&&W(e.$$.fragment),Kt(e,t.target,t.anchor),E()}P(d)}let vt;typeof HTMLElement=="function"&&(vt=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 K(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=v("slot"),s!=="default"&&y(r,"name",s)},m:function(l,C){D(l,r,C)},d:function(l){l&&O(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Yt(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]=V(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:st(ot({},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=V(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]=V(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 V(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 ee(e,t,n,i,o,s){let r=class extends vt{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=V(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 ne{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){Qt(this,1),this.$destroy=tt}$on(t,n){if(!yt(n))return tt;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&&!At(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ie="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ie);function oe(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function se(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 re(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function le(e){Nt(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 ce=e=>({}),ht=e=>({}),ae=e=>({}),mt=e=>({});function gt(e){let t,n,i,o,s,r,c,d,l,C,p,k,_,$,m,f,j,h=(e[3]=="error"||e[3]=="bonusDescription")&&pt();const T=e[14].title,b=lt(T,e,e[13],mt);let g=e[4]==="true"&&_t();const B=e[14].content,x=lt(B,e,e[13],ht);return{c(){t=v("div"),n=v("div"),i=v("div"),o=v("div"),h&&h.c(),s=Y(),r=v("div"),b&&b.c(),c=Y(),d=v("div"),l=ut("svg"),C=ut("path"),p=Y(),g&&g.c(),k=Y(),_=v("div"),x&&x.c(),y(r,"class","TitleText"),y(o,"class","ModalTitle"),y(C,"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(l,"xmlns","http://www.w3.org/2000/svg"),y(l,"viewBox","0 0 13 13"),y(l,"fill","none"),y(l,"class","CloseButton"),y(d,"class","ModalCloseIcon"),y(i,"class","ModalHeader"),y(_,"class","ModalContentWrapper"),z(_,"hidden",e[4]==="true"),y(n,"class","ModalContainer"),z(n,"video-mode",e[3]==="video"),z(n,"twofa-mode",e[3]==="2fa"),y(t,"id","Modal"),Z(()=>e[18].call(t))},m(u,L){D(u,t,L),w(t,n),w(n,i),w(i,o),h&&h.m(o,null),w(o,s),w(o,r),b&&b.m(r,null),w(i,c),w(i,d),w(d,l),w(l,C),w(n,p),g&&g.m(n,null),w(n,k),w(n,_),x&&x.m(_,null),e[15](_),e[16](n),e[17](t),$=Dt(t,e[18].bind(t)),m=!0,f||(j=et(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),b&&b.p&&(!m||L&8192)&&at(b,T,u,u[13],m?ct(T,u[13],L,ae):dt(u[13]),mt),u[4]==="true"?g||(g=_t(),g.c(),g.m(n,k)):g&&(g.d(1),g=null),x&&x.p&&(!m||L&8192)&&at(x,B,u,u[13],m?ct(B,u[13],L,ce):dt(u[13]),ht),(!m||L&16)&&z(_,"hidden",u[4]==="true"),(!m||L&8)&&z(n,"video-mode",u[3]==="video"),(!m||L&8)&&z(n,"twofa-mode",u[3]==="2fa")},i(u){m||(W(b,u),W(x,u),m=!0)},o(u){q(b,u),q(x,u),m=!1},d(u){u&&O(t),h&&h.d(),b&&b.d(u),g&&g.d(),x&&x.d(u),e[15](null),e[16](null),e[17](null),$(),f=!1,j()}}}function pt(e){let t;return{c(){t=v("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>',y(t,"class","WarningIcon")},m(n,i){D(n,t,i)},d(n){n&&O(t)}}}function _t(e){let t;return{c(){t=v("div"),t.innerHTML='<div class="ModalLoader"></div>',y(t,"class","ModalLoadingOverlay")},m(n,i){D(n,t,i)},d(n){n&&O(t)}}}function de(e){let t,n,i=e[2]==="true"&&gt(e);return{c(){t=v("div"),i&&i.c()},m(o,s){D(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=gt(o),i.c(),W(i,1),i.m(t,null)):i&&(qt(),q(i,1,1,()=>{i=null}),Gt())},i(o){n||(W(i),n=!0)},o(o){q(i),n=!1},d(o){o&&O(t),i&&i.d(),e[19](null)}}}function ue(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:C="false"}=t,{width:p}=t,{height:k}=t,_,$,m,f,j=!1,h,T;const b=()=>{h&&clearTimeout(h),_&&(_.classList.add("closing"),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},g=()=>K(this,null,function*(){if(!f||!m||j)return;T&&clearTimeout(h),j=!0;const a=f.offsetWidth,kt=f.offsetHeight;n(8,f.style.width=`${a}px`,f),n(8,f.style.height=`${kt}px`,f),f.offsetHeight,yield Q();const Lt=m.scrollHeight,Et=m.scrollWidth;n(8,f.style.width=`${Et}px`,f),n(8,f.style.height=`${Lt}px`,f),T=setTimeout(()=>{f&&(n(8,f.style.width="auto",f),n(8,f.style.height="auto",f)),j=!1},300)});Jt(()=>{if(Q().then(()=>{g()}),m){const a=new ResizeObserver(()=>{g()});return a.observe(m),()=>{a.disconnect()}}return()=>{h&&clearTimeout(h),T&&clearTimeout(h)}});function B(a){A[a?"unshift":"push"](()=>{m=a,n(7,m)})}function x(a){A[a?"unshift":"push"](()=>{f=a,n(8,f)})}function u(a){A[a?"unshift":"push"](()=>{_=a,n(6,_)})}function L(){p=this.clientWidth,k=this.clientHeight,n(0,p),n(1,k)}function Mt(a){A[a?"unshift":"push"](()=>{$=a,n(5,$)})}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,C=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&&C&&Q().then(()=>{g()}),e.$$.dirty&2080&&r&&$&&oe($,r),e.$$.dirty&4128&&c&&$&&se($,c),e.$$.dirty&1056&&s&&$&&re($,`${s}.Style`)},[p,k,d,l,C,$,_,m,f,b,s,r,c,o,i,B,x,u,L,Mt]}class Ct extends ne{constructor(t){super(),te(this,t,ue,de,It,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},le)}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()}}ee(Ct,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);exports.default=Ct;
1
+ "use strict";var Tt=Object.defineProperty,St=Object.defineProperties;var Ot=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var G=(e,t,n)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ot=(e,t)=>{for(var n in t||(t={}))jt.call(t,n)&&G(e,n,t[n]);if(it)for(var n of it(t))zt.call(t,n)&&G(e,n,t[n]);return e},st=(e,t)=>St(e,Ot(t));var M=(e,t,n)=>(G(e,typeof t!="symbol"?t+"":t,n),n);var K=(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())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function tt(){}function Ht(e,t){for(const n in t)e[n]=t[n];return e}function $t(e){return e()}function rt(){return Object.create(null)}function F(e){e.forEach($t)}function wt(e){return typeof e=="function"}function It(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function At(e){return Object.keys(e).length===0}function lt(e,t,n,i){if(e){const o=yt(e,t,n,i);return e[0](o)}}function yt(e,t,n,i){return e[1]&&i?Ht(n.ctx.slice(),e[1](i(t))):n.ctx}function ct(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 at(e,t,n,i,o,s){if(o){const r=yt(t,n,i,s);e.p(r,o)}}function dt(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 Nt(e,t,n){const i=Wt(e);if(!i.getElementById(t)){const o=v("style");o.id=t,o.textContent=n,Bt(i,o)}}function Wt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bt(e,t){return y(e.head||e,t),t.sheet}function D(e,t,n){e.insertBefore(t,n||null)}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function ut(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Pt(e){return document.createTextNode(e)}function Y(){return Pt(" ")}function et(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function w(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Rt(e){return Array.from(e.childNodes)}let U;function Ft(){if(U===void 0){U=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){U=!0}}return U}function Dt(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=v("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=Ft();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=et(window,"message",r=>{r.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=et(i.contentWindow,"resize",t),t()}),y(e,i),()=>{(o||s&&i.contentWindow)&&s(),O(i)}}function z(e,t,n){e.classList.toggle(t,!!n)}function Yt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let R;function P(e){R=e}function Ut(){if(!R)throw new Error("Function called outside component initialization");return R}function Jt(e){Ut().$$.on_mount.push(e)}const I=[],A=[];let N=[];const ft=[],bt=Promise.resolve();let nt=!1;function xt(){nt||(nt=!0,bt.then(E))}function Q(){return xt(),bt}function Z(e){N.push(e)}const X=new Set;let H=0;function E(){if(H!==0)return;const e=R;do{try{for(;H<I.length;){const t=I[H];H++,P(t),Vt(t.$$)}}catch(t){throw I.length=0,H=0,t}for(P(null),I.length=0,H=0;A.length;)A.pop()();for(let t=0;t<N.length;t+=1){const n=N[t];X.has(n)||(X.add(n),n())}N.length=0}while(I.length);for(;ft.length;)ft.pop()();nt=!1,X.clear(),P(e)}function Vt(e){if(e.fragment!==null){e.update(),F(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Z)}}function Zt(e){const t=[],n=[];N.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),N=t}const J=new Set;let S;function qt(){S={r:0,c:[],p:S}}function Gt(){S.r||F(S.c),S=S.p}function W(e,t){e&&e.i&&(J.delete(e),e.i(t))}function q(e,t,n,i){if(e&&e.o){if(J.has(e))return;J.add(e),S.c.push(()=>{J.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Kt(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),Z(()=>{const s=e.$$.on_mount.map($t).filter(wt);e.$$.on_destroy?e.$$.on_destroy.push(...s):F(s),e.$$.on_mount=[]}),o.forEach(Z)}function Qt(e,t){const n=e.$$;n.fragment!==null&&(Zt(n.after_update),F(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Xt(e,t){e.$$.dirty[0]===-1&&(I.push(e),xt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function te(e,t,n,i,o,s,r=null,c=[-1]){const d=R;P(e);const l=e.$$={fragment:null,ctx:[],props:s,update:tt,not_equal:o,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:rt(),dirty:c,skip_bound:!1,root:t.target||d.$$.root};r&&r(l.root);let C=!1;if(l.ctx=n?n(e,t.props||{},(p,k,..._)=>{const $=_.length?_[0]:k;return l.ctx&&o(l.ctx[p],l.ctx[p]=$)&&(!l.skip_bound&&l.bound[p]&&l.bound[p]($),C&&Xt(e,p)),k}):[],l.update(),C=!0,F(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=Rt(t.target);l.fragment&&l.fragment.l(p),p.forEach(O)}else l.fragment&&l.fragment.c();t.intro&&W(e.$$.fragment),Kt(e,t.target,t.anchor),E()}P(d)}let vt;typeof HTMLElement=="function"&&(vt=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 K(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=v("slot"),s!=="default"&&w(r,"name",s)},m:function(l,C){D(l,r,C)},d:function(l){l&&O(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Yt(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]=V(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:st(ot({},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=V(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]=V(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 V(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 ee(e,t,n,i,o,s){let r=class extends vt{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=V(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 ne{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){Qt(this,1),this.$destroy=tt}$on(t,n){if(!wt(n))return tt;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&&!At(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ie="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ie);function oe(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function se(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 re(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function le(e){Nt(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 ce=e=>({}),ht=e=>({}),ae=e=>({}),mt=e=>({});function gt(e){let t,n,i,o,s,r,c,d,l,C,p,k,_,$,m,f,j,h=(e[3]=="error"||e[3]=="bonusDescription")&&pt();const T=e[14].title,b=lt(T,e,e[13],mt);let g=e[4]==="true"&&_t();const B=e[14].content,x=lt(B,e,e[13],ht);return{c(){t=v("div"),n=v("div"),i=v("div"),o=v("div"),h&&h.c(),s=Y(),r=v("div"),b&&b.c(),c=Y(),d=v("div"),l=ut("svg"),C=ut("path"),p=Y(),g&&g.c(),k=Y(),_=v("div"),x&&x.c(),w(r,"class","TitleText"),w(o,"class","ModalTitle"),w(C,"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"),w(l,"xmlns","http://www.w3.org/2000/svg"),w(l,"viewBox","0 0 13 13"),w(l,"fill","none"),w(l,"class","CloseButton"),w(d,"class","ModalCloseIcon"),w(i,"class","ModalHeader"),w(_,"class","ModalContentWrapper"),z(_,"hidden",e[4]==="true"),w(n,"class","ModalContainer"),z(n,"video-mode",e[3]==="video"),z(n,"twofa-mode",e[3]==="2fa"),w(t,"id","Modal"),Z(()=>e[18].call(t))},m(u,L){D(u,t,L),y(t,n),y(n,i),y(i,o),h&&h.m(o,null),y(o,s),y(o,r),b&&b.m(r,null),y(i,c),y(i,d),y(d,l),y(l,C),y(n,p),g&&g.m(n,null),y(n,k),y(n,_),x&&x.m(_,null),e[15](_),e[16](n),e[17](t),$=Dt(t,e[18].bind(t)),m=!0,f||(j=et(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),b&&b.p&&(!m||L&8192)&&at(b,T,u,u[13],m?ct(T,u[13],L,ae):dt(u[13]),mt),u[4]==="true"?g||(g=_t(),g.c(),g.m(n,k)):g&&(g.d(1),g=null),x&&x.p&&(!m||L&8192)&&at(x,B,u,u[13],m?ct(B,u[13],L,ce):dt(u[13]),ht),(!m||L&16)&&z(_,"hidden",u[4]==="true"),(!m||L&8)&&z(n,"video-mode",u[3]==="video"),(!m||L&8)&&z(n,"twofa-mode",u[3]==="2fa")},i(u){m||(W(b,u),W(x,u),m=!0)},o(u){q(b,u),q(x,u),m=!1},d(u){u&&O(t),h&&h.d(),b&&b.d(u),g&&g.d(),x&&x.d(u),e[15](null),e[16](null),e[17](null),$(),f=!1,j()}}}function pt(e){let t;return{c(){t=v("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>',w(t,"class","WarningIcon")},m(n,i){D(n,t,i)},d(n){n&&O(t)}}}function _t(e){let t;return{c(){t=v("div"),t.innerHTML='<div class="ModalLoader"></div>',w(t,"class","ModalLoadingOverlay")},m(n,i){D(n,t,i)},d(n){n&&O(t)}}}function de(e){let t,n,i=e[2]==="true"&&gt(e);return{c(){t=v("div"),i&&i.c()},m(o,s){D(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=gt(o),i.c(),W(i,1),i.m(t,null)):i&&(qt(),q(i,1,1,()=>{i=null}),Gt())},i(o){n||(W(i),n=!0)},o(o){q(i),n=!1},d(o){o&&O(t),i&&i.d(),e[19](null)}}}function ue(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:C="false"}=t,{width:p}=t,{height:k}=t,_,$,m,f,j=!1,h,T;const b=()=>{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=()=>K(this,null,function*(){if(!f||!m||j)return;T&&clearTimeout(h),j=!0;const a=f.offsetWidth,kt=f.offsetHeight;n(8,f.style.width=`${a}px`,f),n(8,f.style.height=`${kt}px`,f),f.offsetHeight,yield Q();const Lt=m.scrollHeight,Et=m.scrollWidth;n(8,f.style.width=`${Et}px`,f),n(8,f.style.height=`${Lt}px`,f),T=setTimeout(()=>{f&&(n(8,f.style.width="auto",f),n(8,f.style.height="auto",f)),j=!1},300)});Jt(()=>{if(Q().then(()=>{g()}),m){const a=new ResizeObserver(()=>{g()});return a.observe(m),()=>{a.disconnect()}}return()=>{h&&clearTimeout(h),T&&clearTimeout(h)}});function B(a){A[a?"unshift":"push"](()=>{m=a,n(7,m)})}function x(a){A[a?"unshift":"push"](()=>{f=a,n(8,f)})}function u(a){A[a?"unshift":"push"](()=>{_=a,n(6,_)})}function L(){p=this.clientWidth,k=this.clientHeight,n(0,p),n(1,k)}function Mt(a){A[a?"unshift":"push"](()=>{$=a,n(5,$)})}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,C=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&&C&&Q().then(()=>{g()}),e.$$.dirty&2080&&r&&$&&oe($,r),e.$$.dirty&4128&&c&&$&&se($,c),e.$$.dirty&1056&&s&&$&&re($,`${s}.Style`)},[p,k,d,l,C,$,_,m,f,b,s,r,c,o,i,B,x,u,L,Mt]}class Ct extends ne{constructor(t){super(),te(this,t,ue,de,It,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},le)}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()}}ee(Ct,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);exports.default=Ct;
@@ -791,7 +791,7 @@ function ae(e) {
791
791
  function de(e, t, n) {
792
792
  let { $$slots: i = {}, $$scope: o } = t, { mbsource: s } = t, { clientstyling: r } = t, { clientstylingurl: c } = t, { show: d } = t, { modaltype: l = "" } = t, { isloading: C = "false" } = t, { width: p } = t, { height: k } = t, _, $, m, f, z = !1, h, T;
793
793
  const b = () => {
794
- h && clearTimeout(h), _ && (_.classList.add("closing"), h = setTimeout(
794
+ h && clearTimeout(h), _ && (_.classList.add("closing"), window.dispatchEvent(new CustomEvent("manualClosePopup")), h = setTimeout(
795
795
  () => {
796
796
  window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
797
797
  },
@@ -754,7 +754,7 @@ function Qt(t) {
754
754
  function Xt(t, e, n) {
755
755
  let { $$slots: i = {}, $$scope: o } = e, { mbsource: s } = e, { clientstyling: d } = e, { clientstylingurl: l } = e, { show: f } = e, { modaltype: c = "" } = e, { isloading: k = "false" } = e, { width: p } = e, { height: C } = e, _, $, m, u, S = !1, h, E;
756
756
  const b = () => {
757
- h && clearTimeout(h), _ && (_.classList.add("closing"), h = setTimeout(
757
+ h && clearTimeout(h), _ && (_.classList.add("closing"), window.dispatchEvent(new CustomEvent("manualClosePopup")), h = setTimeout(
758
758
  () => {
759
759
  window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
760
760
  },
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierModal-Q9SrOH7O.cjs")).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierModal-B9_tlX7H.cjs")).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierModal-Cz5h8boK.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierModal-CMdGZXRB.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-modal") && customElements.define("cashier-modal", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierModal-CTqkRk79.js";
1
+ import { C as n } from "../components/CashierModal-Dy2X3FaM.js";
2
2
  function a(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-modal",
3
- "version": "1.86.5",
3
+ "version": "1.86.7",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-modal.cjs",
6
6
  "module": "esnext/cashier-modal.js",