@everymatrix/casino-mystery-chest-modal 0.7.2 → 0.8.3

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.
@@ -211,10 +211,10 @@ function St(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 || {}, (u, k, ..._) => {
214
+ if (l.ctx = n(e, t.props || {}, (u, k, ..._) => {
215
215
  const b = _.length ? _[0] : k;
216
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) {
217
+ }), l.update(), m = !0, P(l.before_update), l.fragment = i(l.ctx), t.target) {
218
218
  if (t.hydrate) {
219
219
  const u = yt(t.target);
220
220
  l.fragment && l.fragment.l(u), u.forEach(X);
@@ -0,0 +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 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(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(l.ctx),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;
@@ -182,10 +182,10 @@ function yt(t, e, n, o, i, s, r = null, l = [-1]) {
182
182
  };
183
183
  r && r(c.root);
184
184
  let m = !1;
185
- if (c.ctx = n ? n(t, e.props || {}, (u, v, ...h) => {
185
+ if (c.ctx = n(t, e.props || {}, (u, v, ...h) => {
186
186
  const p = h.length ? h[0] : v;
187
187
  return c.ctx && i(c.ctx[u], c.ctx[u] = p) && (!c.skip_bound && c.bound[u] && c.bound[u](p), m && xt(t, u)), v;
188
- }) : [], c.update(), m = !0, M(c.before_update), c.fragment = o ? o(c.ctx) : !1, e.target) {
188
+ }), c.update(), m = !0, M(c.before_update), c.fragment = o(c.ctx), e.target) {
189
189
  if (e.hydrate) {
190
190
  const u = ft(e.target);
191
191
  c.fragment && c.fragment.l(u), u.forEach(J);
@@ -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-8h6XyzGx.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-CJ4nrZE3.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-xko2DkCO.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoMysteryChestModal-B4VKw-TO.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-mystery-chest-modal") && customElements.define("casino-mystery-chest-modal", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CasinoMysteryChestModal-C4YvfBFg.js";
1
+ import { C as n } from "../components/CasinoMysteryChestModal-Dzf20D40.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/casino-mystery-chest-modal",
3
- "version": "0.7.2",
3
+ "version": "0.8.3",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-mystery-chest-modal.cjs",
6
6
  "module": "es2015/casino-mystery-chest-modal.js",
@@ -1 +0,0 @@
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;