@everymatrix/casino-mystery-chest-modal 0.1.2 → 0.2.0

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 ft=Object.defineProperty,$t=Object.defineProperties;var ht=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var _t=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var T=(e,t,n)=>t in e?ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&T(e,n,t[n]);if(Z)for(var n of Z(t))gt.call(t,n)&&T(e,n,t[n]);return e},et=(e,t)=>$t(e,ht(t));var $=(e,t,n)=>(T(e,typeof t!="symbol"?t+"":t,n),n);var nt=(e,t,n)=>new Promise((i,s)=>{var o=a=>{try{c(n.next(a))}catch(l){s(l)}},r=a=>{try{c(n.throw(a))}catch(l){s(l)}},c=a=>a.done?i(a.value):Promise.resolve(a.value).then(o,r);c((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function O(){}function lt(e){return e()}function it(){return Object.create(null)}function M(e){e.forEach(lt)}function ct(e){return typeof e=="function"}function mt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let F;function ot(e,t){return e===t?!0:(F||(F=document.createElement("a")),F.href=t,e===F.href)}function pt(e){return Object.keys(e).length===0}function d(e,t){e.appendChild(t)}function bt(e,t,n){const i=wt(e);if(!i.getElementById(t)){const s=h("style");s.id=t,s.textContent=n,xt(i,s)}}function wt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function xt(e,t){return d(e.head||e,t),t.sheet}function at(e,t,n){e.insertBefore(t,n||null)}function U(e){e.parentNode&&e.parentNode.removeChild(e)}function h(e){return document.createElement(e)}function E(e){return document.createTextNode(e)}function w(){return E(" ")}function yt(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function u(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function vt(e){return Array.from(e.childNodes)}function L(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ct(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let X;function z(e){X=e}const y=[],st=[];let v=[];const rt=[],kt=Promise.resolve();let H=!1;function Et(){H||(H=!0,kt.then(B))}function J(e){v.push(e)}const q=new Set;let x=0;function B(){if(x!==0)return;const e=X;do{try{for(;x<y.length;){const t=y[x];x++,z(t),zt(t.$$)}}catch(t){throw y.length=0,x=0,t}for(z(null),y.length=0,x=0;st.length;)st.pop()();for(let t=0;t<v.length;t+=1){const n=v[t];q.has(n)||(q.add(n),n())}v.length=0}while(y.length);for(;rt.length;)rt.pop()();H=!1,q.clear(),z(e)}function zt(e){if(e.fragment!==null){e.update(),M(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(J)}}function Ot(e){const t=[],n=[];v.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),v=t}const jt=new Set;function At(e,t){e&&e.i&&(jt.delete(e),e.i(t))}function Nt(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),J(()=>{const o=e.$$.on_mount.map(lt).filter(ct);e.$$.on_destroy?e.$$.on_destroy.push(...o):M(o),e.$$.on_mount=[]}),s.forEach(J)}function Ft(e,t){const n=e.$$;n.fragment!==null&&(Ot(n.after_update),M(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Lt(e,t){e.$$.dirty[0]===-1&&(y.push(e),Et(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function St(e,t,n,i,s,o,r=null,c=[-1]){const a=X;z(e);const l=e.$$={fragment:null,ctx:[],props:o,update:O,not_equal:s,bound:it(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:it(),dirty:c,skip_bound:!1,root:t.target||a.$$.root};r&&r(l.root);let m=!1;if(l.ctx=n?n(e,t.props||{},(f,C,..._)=>{const b=_.length?_[0]:C;return l.ctx&&s(l.ctx[f],l.ctx[f]=b)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](b),m&&Lt(e,f)),C}):[],l.update(),m=!0,M(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=vt(t.target);l.fragment&&l.fragment.l(f),f.forEach(U)}else l.fragment&&l.fragment.c();t.intro&&At(e.$$.fragment),Nt(e,t.target,t.anchor),B()}z(a)}let dt;typeof HTMLElement=="function"&&(dt=class extends HTMLElement{constructor(t,n,i){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(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 s=this.$$c.$on(t,n);this.$$l_u.set(n,s)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}connectedCallback(){return nt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let r;return{c:function(){r=h("slot"),o!=="default"&&u(r,"name",o)},m:function(l,m){at(l,r,m)},d:function(l){l&&U(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Ct(this);for(const o of this.$$s)o in i&&(n[o]=[t(o)]);for(const o of this.attributes){const r=this.$$g_p(o.name);r in this.$$d||(this.$$d[r]=S(r,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:et(tt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const r=S(o,this.$$d[o],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,r)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const r of this.$$l[o]){const c=this.$$c.$on(o,r);this.$$l_u.set(r,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=S(t,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$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 S(e,t,n,i){var o;const s=(o=n[e])==null?void 0:o.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Bt(e,t,n,i,s,o){let r=class extends dt{constructor(){super(e,n,s),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(a){var l;a=S(c,a,t),this.$$d[c]=a,(l=this.$$c)==null||l.$set({[c]:a})}})}),i.forEach(c=>{Object.defineProperty(r.prototype,c,{get(){var a;return(a=this.$$c)==null?void 0:a[c]}})}),e.element=r,r}class Mt{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){Ft(this,1),this.$destroy=O}$on(t,n){if(!ct(n))return O;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!pt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Pt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Pt);const Vt=e=>window.postMessage(e,window.location.href);function Dt(e){bt(e,"svelte-wie2mq",".dialog{position:fixed;left:50%;transform:translateX(-50%);z-index:300;background:var(--emw--color-gray-transparency-30, rgba(13, 27, 29, 0.9215686275));bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;box-sizing:border-box;padding:40px 80px;align-content:center}.dialog__content{display:flex;flex-direction:column;align-items:center;gap:40px;text-align:center}.dialog__content__icon-container{position:relative}.dialog__content__icon{position:relative;width:127px;height:127px}.dialog__content__coin-glare{width:105px;height:105px;border-radius:40px;background:linear-gradient(317.36deg, #91CAFF 3.8%, #F3FFC2 100%);filter:blur(30px);position:absolute;z-index:0;top:50%;left:50%;right:0;transform:translate(-50%, -50%)}.dialog__content__title{margin:0;color:var(--emw--color-primary, #D3FFED);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--size-medium-2x-minus, 40px);line-height:46px}.dialog__content__message{margin:0;color:var(--emw--color-primary-variant, #A9CCBE);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-large, 20px);line-height:28px;max-width:295px}.dialog__content__btn{margin-top:60px;transition:300ms;cursor:pointer;width:280px;height:60px;top:32px;left:103px;padding:10px;border-radius:54px;border:none;background:linear-gradient(90deg, var(--emw--button-border-color, #75FFE9) 0%, var(--emw--button-border-color-secondary, #B2FF6D) 100%);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium-plus, 18px);line-height:18px;letter-spacing:0px;color:var(--emw--color-background-secondary, #0C1A1C);opacity:0;-webkit-animation:fadeIn 500ms ease 1s forwards;animation:fadeIn 500ms ease 1s forwards}.mobile{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .dialog__content{gap:22px}.mobile .dialog__content__icon{width:initial;height:initial}.mobile .dialog__content__coin-glare{height:65px;width:65px}.mobile .dialog__content__title{font-size:var(--emw--font-size-2x-large, 32px);line-height:36px}.mobile .dialog__content__message{font-size:var(--emw--font-size-medium, 16px);line-height:24px;max-width:240px}.mobile .dialog__content__btn{margin-top:78px;width:220px;font-size:var(--emw--font-size-medium, 16px);height:48px}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}")}function It(e){let t,n,i,s,o,r,c,a,l,m=e[0].title+"",f,C,_,b=e[0].message+"",P,G,K,Q,V,j=e[0].bold+"",D,W,k,A=e[0].btn+"",I,N,R,Y;return{c(){t=h("div"),n=h("div"),i=h("div"),s=h("div"),o=w(),r=h("img"),a=w(),l=h("h2"),f=E(m),C=w(),_=h("p"),P=E(b),G=w(),K=h("br"),Q=w(),V=h("b"),D=E(j),W=w(),k=h("button"),I=E(A),u(s,"class","dialog__content__coin-glare"),u(r,"class","dialog__content__icon"),ot(r.src,c=e[0].img)||u(r,"src",c),u(r,"alt",""),u(i,"class","dialog__content__icon-container"),u(l,"class","dialog__content__title"),u(_,"class","dialog__content__message"),u(k,"class","dialog__content__btn"),u(n,"class","dialog__content"),u(t,"class",N="dialog "+(e[1]?"mobile":""))},m(g,p){at(g,t,p),d(t,n),d(n,i),d(i,s),d(i,o),d(i,r),d(n,a),d(n,l),d(l,f),d(n,C),d(n,_),d(_,P),d(_,G),d(_,K),d(_,Q),d(_,V),d(V,D),d(n,W),d(n,k),d(k,I),R||(Y=yt(k,"click",e[2]),R=!0)},p(g,[p]){p&1&&!ot(r.src,c=g[0].img)&&u(r,"src",c),p&1&&m!==(m=g[0].title+"")&&L(f,m),p&1&&b!==(b=g[0].message+"")&&L(P,b),p&1&&j!==(j=g[0].bold+"")&&L(D,j),p&1&&A!==(A=g[0].btn+"")&&L(I,A),p&2&&N!==(N="dialog "+(g[1]?"mobile":""))&&u(t,"class",N)},i:O,o:O,d(g){g&&U(t),R=!1,Y()}}}function Rt(e,t,n){let{dialogContent:i}=t,{mobileView:s=!1}=t;const o=()=>{Vt({type:"HideDialog"})};return e.$$set=r=>{"dialogContent"in r&&n(0,i=r.dialogContent),"mobileView"in r&&n(1,s=r.mobileView)},[i,s,o]}class ut extends Mt{constructor(t){super(),St(this,t,Rt,It,mt,{dialogContent:0,mobileView:1},Dt)}get dialogContent(){return this.$$.ctx[0]}set dialogContent(t){this.$$set({dialogContent:t}),B()}get mobileView(){return this.$$.ctx[1]}set mobileView(t){this.$$set({mobileView:t}),B()}}Bt(ut,{dialogContent:{},mobileView:{type:"Boolean"}},[],[],!0);exports.default=ut;
1
+ "use strict";var ft=Object.defineProperty,$t=Object.defineProperties;var ht=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var _t=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var q=(e,t,n)=>t in e?ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&q(e,n,t[n]);if(Z)for(var n of Z(t))gt.call(t,n)&&q(e,n,t[n]);return e},et=(e,t)=>$t(e,ht(t));var $=(e,t,n)=>(q(e,typeof t!="symbol"?t+"":t,n),n);var nt=(e,t,n)=>new Promise((i,s)=>{var o=a=>{try{c(n.next(a))}catch(l){s(l)}},r=a=>{try{c(n.throw(a))}catch(l){s(l)}},c=a=>a.done?i(a.value):Promise.resolve(a.value).then(o,r);c((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function O(){}function lt(e){return e()}function it(){return Object.create(null)}function V(e){e.forEach(lt)}function ct(e){return typeof e=="function"}function mt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let L;function ot(e,t){return e===t?!0:(L||(L=document.createElement("a")),L.href=t,e===L.href)}function pt(e){return Object.keys(e).length===0}function d(e,t){e.appendChild(t)}function bt(e,t,n){const i=wt(e);if(!i.getElementById(t)){const s=h("style");s.id=t,s.textContent=n,xt(i,s)}}function wt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function xt(e,t){return d(e.head||e,t),t.sheet}function at(e,t,n){e.insertBefore(t,n||null)}function X(e){e.parentNode&&e.parentNode.removeChild(e)}function h(e){return document.createElement(e)}function C(e){return document.createTextNode(e)}function w(){return C(" ")}function yt(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function u(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function vt(e){return Array.from(e.childNodes)}function S(e,t){t=""+t,e.data!==t&&(e.data=t)}function kt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let F;function z(e){F=e}const y=[],st=[];let v=[];const rt=[],Et=Promise.resolve();let J=!1;function Ct(){J||(J=!0,Et.then(P))}function U(e){v.push(e)}const H=new Set;let x=0;function P(){if(x!==0)return;const e=F;do{try{for(;x<y.length;){const t=y[x];x++,z(t),zt(t.$$)}}catch(t){throw y.length=0,x=0,t}for(z(null),y.length=0,x=0;st.length;)st.pop()();for(let t=0;t<v.length;t+=1){const n=v[t];H.has(n)||(H.add(n),n())}v.length=0}while(y.length);for(;rt.length;)rt.pop()();J=!1,H.clear(),z(e)}function zt(e){if(e.fragment!==null){e.update(),V(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(U)}}function Ot(e){const t=[],n=[];v.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),v=t}const jt=new Set;function Nt(e,t){e&&e.i&&(jt.delete(e),e.i(t))}function At(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),U(()=>{const o=e.$$.on_mount.map(lt).filter(ct);e.$$.on_destroy?e.$$.on_destroy.push(...o):V(o),e.$$.on_mount=[]}),s.forEach(U)}function Lt(e,t){const n=e.$$;n.fragment!==null&&(Ot(n.after_update),V(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function St(e,t){e.$$.dirty[0]===-1&&(y.push(e),Ct(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Mt(e,t,n,i,s,o,r=null,c=[-1]){const a=F;z(e);const l=e.$$={fragment:null,ctx:[],props:o,update:O,not_equal:s,bound:it(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:it(),dirty:c,skip_bound:!1,root:t.target||a.$$.root};r&&r(l.root);let m=!1;if(l.ctx=n?n(e,t.props||{},(f,k,..._)=>{const b=_.length?_[0]:k;return l.ctx&&s(l.ctx[f],l.ctx[f]=b)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](b),m&&St(e,f)),k}):[],l.update(),m=!0,V(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=vt(t.target);l.fragment&&l.fragment.l(f),f.forEach(X)}else l.fragment&&l.fragment.c();t.intro&&Nt(e.$$.fragment),At(e,t.target,t.anchor),P()}z(a)}let dt;typeof HTMLElement=="function"&&(dt=class extends HTMLElement{constructor(t,n,i){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(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 s=this.$$c.$on(t,n);this.$$l_u.set(n,s)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}connectedCallback(){return nt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let r;return{c:function(){r=h("slot"),o!=="default"&&u(r,"name",o)},m:function(l,m){at(l,r,m)},d:function(l){l&&X(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=kt(this);for(const o of this.$$s)o in i&&(n[o]=[t(o)]);for(const o of this.attributes){const r=this.$$g_p(o.name);r in this.$$d||(this.$$d[r]=M(r,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:et(tt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const r=M(o,this.$$d[o],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,r)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const r of this.$$l[o]){const c=this.$$c.$on(o,r);this.$$l_u.set(r,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=M(t,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$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 M(e,t,n,i){var o;const s=(o=n[e])==null?void 0:o.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Pt(e,t,n,i,s,o){let r=class extends dt{constructor(){super(e,n,s),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(a){var l;a=M(c,a,t),this.$$d[c]=a,(l=this.$$c)==null||l.$set({[c]:a})}})}),i.forEach(c=>{Object.defineProperty(r.prototype,c,{get(){var a;return(a=this.$$c)==null?void 0:a[c]}})}),e.element=r,r}class Vt{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){Lt(this,1),this.$destroy=O}$on(t,n){if(!ct(n))return O;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!pt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Bt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Bt);const It=e=>window.postMessage(e,window.location.href);function Dt(e){bt(e,"svelte-286imq",".dialog{position:fixed;left:50%;transform:translateX(-50%);z-index:300;background:var(--emw--color-gray-transparency-30, rgba(13, 27, 29, 0.9215686275));bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;box-sizing:border-box;padding:40px 80px;align-content:center}.dialog__content{display:flex;flex-direction:column;align-items:center;gap:40px;text-align:center}.dialog__content__icon-container{position:relative}.dialog__content__icon{position:relative;width:127px;height:127px}.dialog__content__coin-glare{width:105px;height:105px;border-radius:40px;background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(30px);position:absolute;z-index:0;top:50%;left:50%;right:0;transform:translate(-50%, -50%)}.dialog__content__title{margin:0;color:var(--emw--color-primary, #d3ffed);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--size-medium-2x-minus, 40px);line-height:46px}.dialog__content__message{margin:0;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-large, 20px);line-height:28px;max-width:295px}.dialog__content__btn{margin-top:60px;transition:300ms;cursor:pointer;width:280px;height:60px;top:32px;left:103px;padding:10px;border-radius:54px;border:none;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium-plus, 18px);line-height:18px;letter-spacing:0px;color:var(--emw--color-background-secondary, #0c1a1c);opacity:0;-webkit-animation:fadeIn 500ms ease 1s forwards;animation:fadeIn 500ms ease 1s forwards}.mobile{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .dialog__content{gap:22px}.mobile .dialog__content__icon{width:initial;height:initial}.mobile .dialog__content__coin-glare{height:65px;width:65px}.mobile .dialog__content__title{font-size:var(--emw--font-size-2x-large, 32px);line-height:36px}.mobile .dialog__content__message{font-size:var(--emw--font-size-medium, 16px);line-height:24px;max-width:240px}.mobile .dialog__content__btn{margin-top:78px;width:220px;font-size:var(--emw--font-size-medium, 16px);height:48px}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}")}function Rt(e){let t,n,i,s,o,r,c,a,l,m=e[0].title+"",f,k,_,b=e[0].message+"",B,G,K,Q,I,j=e[0].bold+"",D,W,E,N=e[0].btn+"",R,A,T,Y;return{c(){t=h("div"),n=h("div"),i=h("div"),s=h("div"),o=w(),r=h("img"),a=w(),l=h("h2"),f=C(m),k=w(),_=h("p"),B=C(b),G=w(),K=h("br"),Q=w(),I=h("b"),D=C(j),W=w(),E=h("button"),R=C(N),u(s,"class","dialog__content__coin-glare"),u(r,"class","dialog__content__icon"),ot(r.src,c=e[0].img)||u(r,"src",c),u(r,"alt",""),u(i,"class","dialog__content__icon-container"),u(l,"class","dialog__content__title"),u(_,"class","dialog__content__message"),u(E,"class","dialog__content__btn"),u(n,"class","dialog__content"),u(t,"class",A="dialog "+(e[1]?"mobile":""))},m(g,p){at(g,t,p),d(t,n),d(n,i),d(i,s),d(i,o),d(i,r),d(n,a),d(n,l),d(l,f),d(n,k),d(n,_),d(_,B),d(_,G),d(_,K),d(_,Q),d(_,I),d(I,D),d(n,W),d(n,E),d(E,R),T||(Y=yt(E,"click",e[2]),T=!0)},p(g,[p]){p&1&&!ot(r.src,c=g[0].img)&&u(r,"src",c),p&1&&m!==(m=g[0].title+"")&&S(f,m),p&1&&b!==(b=g[0].message+"")&&S(B,b),p&1&&j!==(j=g[0].bold+"")&&S(D,j),p&1&&N!==(N=g[0].btn+"")&&S(R,N),p&2&&A!==(A="dialog "+(g[1]?"mobile":""))&&u(t,"class",A)},i:O,o:O,d(g){g&&X(t),T=!1,Y()}}}function Tt(e,t,n){let{dialogContent:i}=t,{mobileView:s=!1}=t;const o=()=>{It({type:"HideDialog"})};return e.$$set=r=>{"dialogContent"in r&&n(0,i=r.dialogContent),"mobileView"in r&&n(1,s=r.mobileView)},[i,s,o]}class ut extends Vt{constructor(t){super(),Mt(this,t,Tt,Rt,mt,{dialogContent:0,mobileView:1},Dt)}get dialogContent(){return this.$$.ctx[0]}set dialogContent(t){this.$$set({dialogContent:t}),P()}get mobileView(){return this.$$.ctx[1]}set mobileView(t){this.$$set({mobileView:t}),P()}}Pt(ut,{dialogContent:{},mobileView:{type:"Boolean"}},[],[],!0);exports.default=ut;
@@ -1,16 +1,16 @@
1
- var ut = Object.defineProperty, ft = Object.defineProperties;
1
+ var ft = Object.defineProperty, ut = Object.defineProperties;
2
2
  var $t = Object.getOwnPropertyDescriptors;
3
3
  var Z = Object.getOwnPropertySymbols;
4
4
  var ht = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable;
5
- var q = (e, t, n) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, tt = (e, t) => {
5
+ var H = (e, t, n) => t in e ? ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, tt = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- ht.call(t, n) && q(e, n, t[n]);
7
+ ht.call(t, n) && H(e, n, t[n]);
8
8
  if (Z)
9
9
  for (var n of Z(t))
10
- _t.call(t, n) && q(e, n, t[n]);
10
+ _t.call(t, n) && H(e, n, t[n]);
11
11
  return e;
12
- }, et = (e, t) => ft(e, $t(t));
13
- var $ = (e, t, n) => (q(e, typeof t != "symbol" ? t + "" : t, n), n);
12
+ }, et = (e, t) => ut(e, $t(t));
13
+ var $ = (e, t, n) => (H(e, typeof t != "symbol" ? t + "" : t, n), n);
14
14
  var nt = (e, t, n) => new Promise((i, s) => {
15
15
  var o = (a) => {
16
16
  try {
@@ -27,7 +27,7 @@ var nt = (e, t, n) => new Promise((i, s) => {
27
27
  }, c = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(o, r);
28
28
  c((n = n.apply(e, t)).next());
29
29
  });
30
- function A() {
30
+ function O() {
31
31
  }
32
32
  function lt(e) {
33
33
  return e();
@@ -35,7 +35,7 @@ function lt(e) {
35
35
  function it() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function V(e) {
38
+ function P(e) {
39
39
  e.forEach(lt);
40
40
  }
41
41
  function ct(e) {
@@ -44,9 +44,9 @@ function ct(e) {
44
44
  function gt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- let F;
47
+ let L;
48
48
  function ot(e, t) {
49
- return e === t ? !0 : (F || (F = document.createElement("a")), F.href = t, e === F.href);
49
+ return e === t ? !0 : (L || (L = document.createElement("a")), L.href = t, e === L.href);
50
50
  }
51
51
  function mt(e) {
52
52
  return Object.keys(e).length === 0;
@@ -81,28 +81,28 @@ function wt(e, t) {
81
81
  function at(e, t, n) {
82
82
  e.insertBefore(t, n || null);
83
83
  }
84
- function U(e) {
84
+ function X(e) {
85
85
  e.parentNode && e.parentNode.removeChild(e);
86
86
  }
87
87
  function h(e) {
88
88
  return document.createElement(e);
89
89
  }
90
- function E(e) {
90
+ function C(e) {
91
91
  return document.createTextNode(e);
92
92
  }
93
93
  function w() {
94
- return E(" ");
94
+ return C(" ");
95
95
  }
96
96
  function xt(e, t, n, i) {
97
97
  return e.addEventListener(t, n, i), () => e.removeEventListener(t, n, i);
98
98
  }
99
- function u(e, t, n) {
99
+ function f(e, t, n) {
100
100
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
101
101
  }
102
102
  function yt(e) {
103
103
  return Array.from(e.childNodes);
104
104
  }
105
- function L(e, t) {
105
+ function S(e, t) {
106
106
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
107
107
  t);
108
108
  }
@@ -115,31 +115,31 @@ function vt(e) {
115
115
  }
116
116
  ), t;
117
117
  }
118
- let X;
118
+ let F;
119
119
  function z(e) {
120
- X = e;
120
+ F = e;
121
121
  }
122
122
  const y = [], st = [];
123
123
  let v = [];
124
- const rt = [], Ct = /* @__PURE__ */ Promise.resolve();
125
- let T = !1;
126
- function kt() {
127
- T || (T = !0, Ct.then(S));
124
+ const rt = [], kt = /* @__PURE__ */ Promise.resolve();
125
+ let J = !1;
126
+ function Et() {
127
+ J || (J = !0, kt.then(M));
128
128
  }
129
- function J(e) {
129
+ function U(e) {
130
130
  v.push(e);
131
131
  }
132
- const H = /* @__PURE__ */ new Set();
132
+ const T = /* @__PURE__ */ new Set();
133
133
  let x = 0;
134
- function S() {
134
+ function M() {
135
135
  if (x !== 0)
136
136
  return;
137
- const e = X;
137
+ const e = F;
138
138
  do {
139
139
  try {
140
140
  for (; x < y.length; ) {
141
141
  const t = y[x];
142
- x++, z(t), Et(t.$$);
142
+ x++, z(t), Ct(t.$$);
143
143
  }
144
144
  } catch (t) {
145
145
  throw y.length = 0, x = 0, t;
@@ -148,52 +148,52 @@ function S() {
148
148
  st.pop()();
149
149
  for (let t = 0; t < v.length; t += 1) {
150
150
  const n = v[t];
151
- H.has(n) || (H.add(n), n());
151
+ T.has(n) || (T.add(n), n());
152
152
  }
153
153
  v.length = 0;
154
154
  } while (y.length);
155
155
  for (; rt.length; )
156
156
  rt.pop()();
157
- T = !1, H.clear(), z(e);
157
+ J = !1, T.clear(), z(e);
158
158
  }
159
- function Et(e) {
159
+ function Ct(e) {
160
160
  if (e.fragment !== null) {
161
- e.update(), V(e.before_update);
161
+ e.update(), P(e.before_update);
162
162
  const t = e.dirty;
163
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(J);
163
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(U);
164
164
  }
165
165
  }
166
166
  function zt(e) {
167
167
  const t = [], n = [];
168
168
  v.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), v = t;
169
169
  }
170
- const At = /* @__PURE__ */ new Set();
171
- function Ot(e, t) {
172
- e && e.i && (At.delete(e), e.i(t));
170
+ const Ot = /* @__PURE__ */ new Set();
171
+ function jt(e, t) {
172
+ e && e.i && (Ot.delete(e), e.i(t));
173
173
  }
174
- function jt(e, t, n) {
174
+ function Nt(e, t, n) {
175
175
  const { fragment: i, after_update: s } = e.$$;
176
- i && i.m(t, n), J(() => {
176
+ i && i.m(t, n), U(() => {
177
177
  const o = e.$$.on_mount.map(lt).filter(ct);
178
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : V(o), e.$$.on_mount = [];
179
- }), s.forEach(J);
178
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : P(o), e.$$.on_mount = [];
179
+ }), s.forEach(U);
180
180
  }
181
- function Nt(e, t) {
181
+ function At(e, t) {
182
182
  const n = e.$$;
183
- n.fragment !== null && (zt(n.after_update), V(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
183
+ n.fragment !== null && (zt(n.after_update), P(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
184
184
  }
185
- function Ft(e, t) {
186
- e.$$.dirty[0] === -1 && (y.push(e), kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
+ function Lt(e, t) {
186
+ e.$$.dirty[0] === -1 && (y.push(e), Et(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
187
187
  }
188
- function Lt(e, t, n, i, s, o, r = null, c = [-1]) {
189
- const a = X;
188
+ function St(e, t, n, i, s, o, r = null, c = [-1]) {
189
+ const a = F;
190
190
  z(e);
191
191
  const l = e.$$ = {
192
192
  fragment: null,
193
193
  ctx: [],
194
194
  // state
195
195
  props: o,
196
- update: A,
196
+ update: O,
197
197
  not_equal: s,
198
198
  bound: it(),
199
199
  // lifecycle
@@ -211,16 +211,16 @@ function Lt(e, t, n, i, s, o, r = null, c = [-1]) {
211
211
  };
212
212
  r && r(l.root);
213
213
  let m = !1;
214
- if (l.ctx = n ? n(e, t.props || {}, (f, C, ..._) => {
215
- const b = _.length ? _[0] : C;
216
- return l.ctx && s(l.ctx[f], l.ctx[f] = b) && (!l.skip_bound && l.bound[f] && l.bound[f](b), m && Ft(e, f)), C;
217
- }) : [], l.update(), m = !0, V(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
214
+ if (l.ctx = n ? n(e, t.props || {}, (u, k, ..._) => {
215
+ const b = _.length ? _[0] : k;
216
+ return l.ctx && s(l.ctx[u], l.ctx[u] = b) && (!l.skip_bound && l.bound[u] && l.bound[u](b), m && Lt(e, u)), k;
217
+ }) : [], l.update(), m = !0, P(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
218
218
  if (t.hydrate) {
219
- const f = yt(t.target);
220
- l.fragment && l.fragment.l(f), f.forEach(U);
219
+ const u = yt(t.target);
220
+ l.fragment && l.fragment.l(u), u.forEach(X);
221
221
  } else
222
222
  l.fragment && l.fragment.c();
223
- t.intro && Ot(e.$$.fragment), jt(e, t.target, t.anchor), S();
223
+ t.intro && jt(e.$$.fragment), Nt(e, t.target, t.anchor), M();
224
224
  }
225
225
  z(a);
226
226
  }
@@ -269,7 +269,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
269
269
  let r;
270
270
  return {
271
271
  c: function() {
272
- r = h("slot"), o !== "default" && u(r, "name", o);
272
+ r = h("slot"), o !== "default" && f(r, "name", o);
273
273
  },
274
274
  /**
275
275
  * @param {HTMLElement} target
@@ -279,7 +279,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
279
279
  at(l, r, m);
280
280
  },
281
281
  d: function(l) {
282
- l && U(r);
282
+ l && X(r);
283
283
  }
284
284
  };
285
285
  };
@@ -291,7 +291,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
291
291
  o in i && (n[o] = [t(o)]);
292
292
  for (const o of this.attributes) {
293
293
  const r = this.$$g_p(o.name);
294
- r in this.$$d || (this.$$d[r] = B(r, o.value, this.$$p_d, "toProp"));
294
+ r in this.$$d || (this.$$d[r] = V(r, o.value, this.$$p_d, "toProp"));
295
295
  }
296
296
  for (const o in this.$$p_d)
297
297
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
308
308
  this.$$r = !0;
309
309
  for (const o in this.$$p_d)
310
310
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
311
- const r = B(
311
+ const r = V(
312
312
  o,
313
313
  this.$$d[o],
314
314
  this.$$p_d,
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
332
332
  // and setting attributes through setAttribute etc, this is helpful
333
333
  attributeChangedCallback(t, n, i) {
334
334
  var s;
335
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = B(t, i, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [t]: this.$$d[t] }));
335
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = V(t, i, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [t]: this.$$d[t] }));
336
336
  }
337
337
  disconnectedCallback() {
338
338
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
345
345
  ) || t;
346
346
  }
347
347
  });
348
- function B(e, t, n, i) {
348
+ function V(e, t, n, i) {
349
349
  var o;
350
350
  const s = (o = n[e]) == null ? void 0 : o.type;
351
351
  if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
@@ -375,7 +375,7 @@ function B(e, t, n, i) {
375
375
  return t;
376
376
  }
377
377
  }
378
- function Bt(e, t, n, i, s, o) {
378
+ function Vt(e, t, n, i, s, o) {
379
379
  let r = class extends dt {
380
380
  constructor() {
381
381
  super(e, n, s), this.$$p_d = t;
@@ -393,7 +393,7 @@ function Bt(e, t, n, i, s, o) {
393
393
  },
394
394
  set(a) {
395
395
  var l;
396
- a = B(c, a, t), this.$$d[c] = a, (l = this.$$c) == null || l.$set({ [c]: a });
396
+ a = V(c, a, t), this.$$d[c] = a, (l = this.$$c) == null || l.$set({ [c]: a });
397
397
  }
398
398
  });
399
399
  }), i.forEach((c) => {
@@ -406,7 +406,7 @@ function Bt(e, t, n, i, s, o) {
406
406
  }), e.element = /** @type {any} */
407
407
  r, r;
408
408
  }
409
- class St {
409
+ class Mt {
410
410
  constructor() {
411
411
  /**
412
412
  * ### PRIVATE API
@@ -427,7 +427,7 @@ class St {
427
427
  }
428
428
  /** @returns {void} */
429
429
  $destroy() {
430
- Nt(this, 1), this.$destroy = A;
430
+ At(this, 1), this.$destroy = O;
431
431
  }
432
432
  /**
433
433
  * @template {Extract<keyof Events, string>} K
@@ -437,7 +437,7 @@ class St {
437
437
  */
438
438
  $on(t, n) {
439
439
  if (!ct(n))
440
- return A;
440
+ return O;
441
441
  const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
442
442
  return i.push(n), () => {
443
443
  const s = i.indexOf(n);
@@ -452,89 +452,89 @@ class St {
452
452
  this.$$set && !mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
453
453
  }
454
454
  }
455
- const Vt = "4";
456
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vt);
457
- const Mt = (e) => window.postMessage(e, window.location.href);
458
- function Pt(e) {
459
- pt(e, "svelte-wie2mq", ".dialog{position:fixed;left:50%;transform:translateX(-50%);z-index:300;background:var(--emw--color-gray-transparency-30, rgba(13, 27, 29, 0.9215686275));bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;box-sizing:border-box;padding:40px 80px;align-content:center}.dialog__content{display:flex;flex-direction:column;align-items:center;gap:40px;text-align:center}.dialog__content__icon-container{position:relative}.dialog__content__icon{position:relative;width:127px;height:127px}.dialog__content__coin-glare{width:105px;height:105px;border-radius:40px;background:linear-gradient(317.36deg, #91CAFF 3.8%, #F3FFC2 100%);filter:blur(30px);position:absolute;z-index:0;top:50%;left:50%;right:0;transform:translate(-50%, -50%)}.dialog__content__title{margin:0;color:var(--emw--color-primary, #D3FFED);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--size-medium-2x-minus, 40px);line-height:46px}.dialog__content__message{margin:0;color:var(--emw--color-primary-variant, #A9CCBE);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-large, 20px);line-height:28px;max-width:295px}.dialog__content__btn{margin-top:60px;transition:300ms;cursor:pointer;width:280px;height:60px;top:32px;left:103px;padding:10px;border-radius:54px;border:none;background:linear-gradient(90deg, var(--emw--button-border-color, #75FFE9) 0%, var(--emw--button-border-color-secondary, #B2FF6D) 100%);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium-plus, 18px);line-height:18px;letter-spacing:0px;color:var(--emw--color-background-secondary, #0C1A1C);opacity:0;-webkit-animation:fadeIn 500ms ease 1s forwards;animation:fadeIn 500ms ease 1s forwards}.mobile{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .dialog__content{gap:22px}.mobile .dialog__content__icon{width:initial;height:initial}.mobile .dialog__content__coin-glare{height:65px;width:65px}.mobile .dialog__content__title{font-size:var(--emw--font-size-2x-large, 32px);line-height:36px}.mobile .dialog__content__message{font-size:var(--emw--font-size-medium, 16px);line-height:24px;max-width:240px}.mobile .dialog__content__btn{margin-top:78px;width:220px;font-size:var(--emw--font-size-medium, 16px);height:48px}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}");
455
+ const Pt = "4";
456
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pt);
457
+ const Bt = (e) => window.postMessage(e, window.location.href);
458
+ function It(e) {
459
+ pt(e, "svelte-286imq", ".dialog{position:fixed;left:50%;transform:translateX(-50%);z-index:300;background:var(--emw--color-gray-transparency-30, rgba(13, 27, 29, 0.9215686275));bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;box-sizing:border-box;padding:40px 80px;align-content:center}.dialog__content{display:flex;flex-direction:column;align-items:center;gap:40px;text-align:center}.dialog__content__icon-container{position:relative}.dialog__content__icon{position:relative;width:127px;height:127px}.dialog__content__coin-glare{width:105px;height:105px;border-radius:40px;background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(30px);position:absolute;z-index:0;top:50%;left:50%;right:0;transform:translate(-50%, -50%)}.dialog__content__title{margin:0;color:var(--emw--color-primary, #d3ffed);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--size-medium-2x-minus, 40px);line-height:46px}.dialog__content__message{margin:0;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-large, 20px);line-height:28px;max-width:295px}.dialog__content__btn{margin-top:60px;transition:300ms;cursor:pointer;width:280px;height:60px;top:32px;left:103px;padding:10px;border-radius:54px;border:none;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium-plus, 18px);line-height:18px;letter-spacing:0px;color:var(--emw--color-background-secondary, #0c1a1c);opacity:0;-webkit-animation:fadeIn 500ms ease 1s forwards;animation:fadeIn 500ms ease 1s forwards}.mobile{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .dialog__content{gap:22px}.mobile .dialog__content__icon{width:initial;height:initial}.mobile .dialog__content__coin-glare{height:65px;width:65px}.mobile .dialog__content__title{font-size:var(--emw--font-size-2x-large, 32px);line-height:36px}.mobile .dialog__content__message{font-size:var(--emw--font-size-medium, 16px);line-height:24px;max-width:240px}.mobile .dialog__content__btn{margin-top:78px;width:220px;font-size:var(--emw--font-size-medium, 16px);height:48px}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}");
460
460
  }
461
461
  function Dt(e) {
462
462
  let t, n, i, s, o, r, c, a, l, m = (
463
463
  /*dialogContent*/
464
464
  e[0].title + ""
465
- ), f, C, _, b = (
465
+ ), u, k, _, b = (
466
466
  /*dialogContent*/
467
467
  e[0].message + ""
468
- ), M, G, K, Q, P, O = (
468
+ ), B, G, K, Q, I, j = (
469
469
  /*dialogContent*/
470
470
  e[0].bold + ""
471
- ), D, W, k, j = (
471
+ ), D, W, E, N = (
472
472
  /*dialogContent*/
473
473
  e[0].btn + ""
474
- ), I, N, R, Y;
474
+ ), R, A, q, Y;
475
475
  return {
476
476
  c() {
477
- t = h("div"), n = h("div"), i = h("div"), s = h("div"), o = w(), r = h("img"), a = w(), l = h("h2"), f = E(m), C = w(), _ = h("p"), M = E(b), G = w(), K = h("br"), Q = w(), P = h("b"), D = E(O), W = w(), k = h("button"), I = E(j), u(s, "class", "dialog__content__coin-glare"), u(r, "class", "dialog__content__icon"), ot(r.src, c = /*dialogContent*/
478
- e[0].img) || u(r, "src", c), u(r, "alt", ""), u(i, "class", "dialog__content__icon-container"), u(l, "class", "dialog__content__title"), u(_, "class", "dialog__content__message"), u(k, "class", "dialog__content__btn"), u(n, "class", "dialog__content"), u(t, "class", N = "dialog " + /*mobileView*/
477
+ t = h("div"), n = h("div"), i = h("div"), s = h("div"), o = w(), r = h("img"), a = w(), l = h("h2"), u = C(m), k = w(), _ = h("p"), B = C(b), G = w(), K = h("br"), Q = w(), I = h("b"), D = C(j), W = w(), E = h("button"), R = C(N), f(s, "class", "dialog__content__coin-glare"), f(r, "class", "dialog__content__icon"), ot(r.src, c = /*dialogContent*/
478
+ e[0].img) || f(r, "src", c), f(r, "alt", ""), f(i, "class", "dialog__content__icon-container"), f(l, "class", "dialog__content__title"), f(_, "class", "dialog__content__message"), f(E, "class", "dialog__content__btn"), f(n, "class", "dialog__content"), f(t, "class", A = "dialog " + /*mobileView*/
479
479
  (e[1] ? "mobile" : ""));
480
480
  },
481
481
  m(g, p) {
482
- at(g, t, p), d(t, n), d(n, i), d(i, s), d(i, o), d(i, r), d(n, a), d(n, l), d(l, f), d(n, C), d(n, _), d(_, M), d(_, G), d(_, K), d(_, Q), d(_, P), d(P, D), d(n, W), d(n, k), d(k, I), R || (Y = xt(
483
- k,
482
+ at(g, t, p), d(t, n), d(n, i), d(i, s), d(i, o), d(i, r), d(n, a), d(n, l), d(l, u), d(n, k), d(n, _), d(_, B), d(_, G), d(_, K), d(_, Q), d(_, I), d(I, D), d(n, W), d(n, E), d(E, R), q || (Y = xt(
483
+ E,
484
484
  "click",
485
485
  /*hideDialog*/
486
486
  e[2]
487
- ), R = !0);
487
+ ), q = !0);
488
488
  },
489
489
  p(g, [p]) {
490
490
  p & /*dialogContent*/
491
491
  1 && !ot(r.src, c = /*dialogContent*/
492
- g[0].img) && u(r, "src", c), p & /*dialogContent*/
492
+ g[0].img) && f(r, "src", c), p & /*dialogContent*/
493
493
  1 && m !== (m = /*dialogContent*/
494
- g[0].title + "") && L(f, m), p & /*dialogContent*/
494
+ g[0].title + "") && S(u, m), p & /*dialogContent*/
495
495
  1 && b !== (b = /*dialogContent*/
496
- g[0].message + "") && L(M, b), p & /*dialogContent*/
497
- 1 && O !== (O = /*dialogContent*/
498
- g[0].bold + "") && L(D, O), p & /*dialogContent*/
496
+ g[0].message + "") && S(B, b), p & /*dialogContent*/
499
497
  1 && j !== (j = /*dialogContent*/
500
- g[0].btn + "") && L(I, j), p & /*mobileView*/
501
- 2 && N !== (N = "dialog " + /*mobileView*/
502
- (g[1] ? "mobile" : "")) && u(t, "class", N);
498
+ g[0].bold + "") && S(D, j), p & /*dialogContent*/
499
+ 1 && N !== (N = /*dialogContent*/
500
+ g[0].btn + "") && S(R, N), p & /*mobileView*/
501
+ 2 && A !== (A = "dialog " + /*mobileView*/
502
+ (g[1] ? "mobile" : "")) && f(t, "class", A);
503
503
  },
504
- i: A,
505
- o: A,
504
+ i: O,
505
+ o: O,
506
506
  d(g) {
507
- g && U(t), R = !1, Y();
507
+ g && X(t), q = !1, Y();
508
508
  }
509
509
  };
510
510
  }
511
- function It(e, t, n) {
511
+ function Rt(e, t, n) {
512
512
  let { dialogContent: i } = t, { mobileView: s = !1 } = t;
513
513
  const o = () => {
514
- Mt({ type: "HideDialog" });
514
+ Bt({ type: "HideDialog" });
515
515
  };
516
516
  return e.$$set = (r) => {
517
517
  "dialogContent" in r && n(0, i = r.dialogContent), "mobileView" in r && n(1, s = r.mobileView);
518
518
  }, [i, s, o];
519
519
  }
520
- class Rt extends St {
520
+ class qt extends Mt {
521
521
  constructor(t) {
522
- super(), Lt(this, t, It, Dt, gt, { dialogContent: 0, mobileView: 1 }, Pt);
522
+ super(), St(this, t, Rt, Dt, gt, { dialogContent: 0, mobileView: 1 }, It);
523
523
  }
524
524
  get dialogContent() {
525
525
  return this.$$.ctx[0];
526
526
  }
527
527
  set dialogContent(t) {
528
- this.$$set({ dialogContent: t }), S();
528
+ this.$$set({ dialogContent: t }), M();
529
529
  }
530
530
  get mobileView() {
531
531
  return this.$$.ctx[1];
532
532
  }
533
533
  set mobileView(t) {
534
- this.$$set({ mobileView: t }), S();
534
+ this.$$set({ mobileView: t }), M();
535
535
  }
536
536
  }
537
- Bt(Rt, { dialogContent: {}, mobileView: { type: "Boolean" } }, [], [], !0);
537
+ Vt(qt, { dialogContent: {}, mobileView: { type: "Boolean" } }, [], [], !0);
538
538
  export {
539
- Rt as default
539
+ qt as default
540
540
  };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}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=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMysteryChestModal-nxm9RCXt.cjs")).then(({default:t})=>{!customElements.get("casino-mystery-chest-modal")&&customElements.define("casino-mystery-chest-modal",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}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=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMysteryChestModal-8h6XyzGx.cjs")).then(({default:t})=>{!customElements.get("casino-mystery-chest-modal")&&customElements.define("casino-mystery-chest-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/CasinoMysteryChestModal-DNjHXiKx.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoMysteryChestModal-xko2DkCO.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-mystery-chest-modal") && customElements.define("casino-mystery-chest-modal", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-mystery-chest-modal",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-mystery-chest-modal.cjs",
6
6
  "module": "es2015/casino-mystery-chest-modal.js",