"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCoinroyaleContainer-D6JqAXyu.cjs"),B=i=>window.postMessage(i,window.location.href);function H(i){e.append_styles(i,"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 O(i){let t,n,l,d,c,o,g,k,_,m=i[0].title+"",x,V,r,f=i[0].message+"",w,q,M,I,v,b=i[0].bold+"",z,S,p,h=i[0].btn+"",y,u,C,D;return{c(){t=e.element("div"),n=e.element("div"),l=e.element("div"),d=e.element("div"),c=e.space(),o=e.element("img"),k=e.space(),_=e.element("h2"),x=e.text(m),V=e.space(),r=e.element("p"),w=e.text(f),q=e.space(),M=e.element("br"),I=e.space(),v=e.element("b"),z=e.text(b),S=e.space(),p=e.element("button"),y=e.text(h),e.attr(d,"class","dialog__content__coin-glare"),e.attr(o,"class","dialog__content__icon"),e.src_url_equal(o.src,g=i[0].img)||e.attr(o,"src",g),e.attr(o,"alt",""),e.attr(l,"class","dialog__content__icon-container"),e.attr(_,"class","dialog__content__title"),e.attr(r,"class","dialog__content__message"),e.attr(p,"class","dialog__content__btn"),e.attr(n,"class","dialog__content"),e.attr(t,"class",u="dialog "+(i[1]?"mobile":""))},m(a,s){e.insert(a,t,s),e.append(t,n),e.append(n,l),e.append(l,d),e.append(l,c),e.append(l,o),e.append(n,k),e.append(n,_),e.append(_,x),e.append(n,V),e.append(n,r),e.append(r,w),e.append(r,q),e.append(r,M),e.append(r,I),e.append(r,v),e.append(v,z),e.append(n,S),e.append(n,p),e.append(p,y),C||(D=e.listen(p,"click",i[2]),C=!0)},p(a,[s]){s&1&&!e.src_url_equal(o.src,g=a[0].img)&&e.attr(o,"src",g),s&1&&m!==(m=a[0].title+"")&&e.set_data(x,m),s&1&&f!==(f=a[0].message+"")&&e.set_data(w,f),s&1&&b!==(b=a[0].bold+"")&&e.set_data(z,b),s&1&&h!==(h=a[0].btn+"")&&e.set_data(y,h),s&2&&u!==(u="dialog "+(a[1]?"mobile":""))&&e.attr(t,"class",u)},i:e.noop,o:e.noop,d(a){a&&e.detach(t),C=!1,D()}}}function P(i,t,n){let{dialogContent:l}=t,{mobileView:d=!1}=t;const c=()=>{B({type:"HideDialog"})};return i.$$set=o=>{"dialogContent"in o&&n(0,l=o.dialogContent),"mobileView"in o&&n(1,d=o.mobileView)},[l,d,c]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,P,O,e.safe_not_equal,{dialogContent:0,mobileView:1},H)}get dialogContent(){return this.$$.ctx[0]}set dialogContent(t){this.$$set({dialogContent:t}),e.flush()}get mobileView(){return this.$$.ctx[1]}set mobileView(t){this.$$set({mobileView:t}),e.flush()}}e.create_custom_element(j,{dialogContent:{},mobileView:{type:"Boolean"}},[],[],!0);exports.default=j;
