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