import { S as J, i as K, f as E, c as L, s as N, b as O, e as s, d as c, t as z, g as a, v as F, h as P, j as e, l as Q, k as y, n as G, m as R } from "./CasinoCoinroyaleContainer-Cfhery4H.js";
const T = (i) => window.postMessage(i, window.location.href);
function U(i) {
  O(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 W(i) {
  let t, o, r, _, p, n, f, D, h, b = (
    /*dialogContent*/
    i[0].title + ""
  ), C, S, d, u = (
    /*dialogContent*/
    i[0].message + ""
  ), k, j, B, H, V, x = (
    /*dialogContent*/
    i[0].bold + ""
  ), M, X, m, w = (
    /*dialogContent*/
    i[0].btn + ""
  ), q, v, I, A;
  return {
    c() {
      t = s("div"), o = s("div"), r = s("div"), _ = s("div"), p = c(), n = s("img"), D = c(), h = s("h2"), C = z(b), S = c(), d = s("p"), k = z(u), j = c(), B = s("br"), H = c(), V = s("b"), M = z(x), X = c(), m = s("button"), q = z(w), a(_, "class", "dialog__content__coin-glare"), a(n, "class", "dialog__content__icon"), F(n.src, f = /*dialogContent*/
      i[0].img) || a(n, "src", f), a(n, "alt", ""), a(r, "class", "dialog__content__icon-container"), a(h, "class", "dialog__content__title"), a(d, "class", "dialog__content__message"), a(m, "class", "dialog__content__btn"), a(o, "class", "dialog__content"), a(t, "class", v = "dialog " + /*mobileView*/
      (i[1] ? "mobile" : ""));
    },
    m(l, g) {
      P(l, t, g), e(t, o), e(o, r), e(r, _), e(r, p), e(r, n), e(o, D), e(o, h), e(h, C), e(o, S), e(o, d), e(d, k), e(d, j), e(d, B), e(d, H), e(d, V), e(V, M), e(o, X), e(o, m), e(m, q), I || (A = Q(
        m,
        "click",
        /*hideDialog*/
        i[2]
      ), I = !0);
    },
    p(l, [g]) {
      g & /*dialogContent*/
      1 && !F(n.src, f = /*dialogContent*/
      l[0].img) && a(n, "src", f), g & /*dialogContent*/
      1 && b !== (b = /*dialogContent*/
      l[0].title + "") && y(C, b), g & /*dialogContent*/
      1 && u !== (u = /*dialogContent*/
      l[0].message + "") && y(k, u), g & /*dialogContent*/
      1 && x !== (x = /*dialogContent*/
      l[0].bold + "") && y(M, x), g & /*dialogContent*/
      1 && w !== (w = /*dialogContent*/
      l[0].btn + "") && y(q, w), g & /*mobileView*/
      2 && v !== (v = "dialog " + /*mobileView*/
      (l[1] ? "mobile" : "")) && a(t, "class", v);
    },
    i: G,
    o: G,
    d(l) {
      l && R(t), I = !1, A();
    }
  };
}
function Y(i, t, o) {
  let { dialogContent: r } = t, { mobileView: _ = !1 } = t;
  const p = () => {
    T({ type: "HideDialog" });
  };
  return i.$$set = (n) => {
    "dialogContent" in n && o(0, r = n.dialogContent), "mobileView" in n && o(1, _ = n.mobileView);
  }, [r, _, p];
}
class Z extends J {
  constructor(t) {
    super(), K(this, t, Y, W, N, { dialogContent: 0, mobileView: 1 }, U);
  }
  get dialogContent() {
    return this.$$.ctx[0];
  }
  set dialogContent(t) {
    this.$$set({ dialogContent: t }), E();
  }
  get mobileView() {
    return this.$$.ctx[1];
  }
  set mobileView(t) {
    this.$$set({ mobileView: t }), E();
  }
}
L(Z, { dialogContent: {}, mobileView: { type: "Boolean" } }, [], [], !0);
export {
  Z as default
};
