@everymatrix/casino-game-overlay 0.0.1 → 0.1.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.
Files changed (23) hide show
  1. package/components/{CasinoGameOverlay-D4wPtWJ9.js → CasinoGameOverlay-BAErIOzd.js} +19 -19
  2. package/components/{CasinoGameOverlay-PI8Tqtop.cjs → CasinoGameOverlay-BOdWsFOn.cjs} +1 -1
  3. package/components/{CasinoGameOverlay-CJ3Byef3.js → CasinoGameOverlay-BpdmAKza.js} +17 -17
  4. package/components/{CasinoMysteryChestContainer-BaUpvz_h.js → CasinoMysteryChestContainer-3q123vaa.js} +486 -453
  5. package/components/{CasinoMysteryChestContainer-CZ1rksNt.cjs → CasinoMysteryChestContainer-5oFT5DRE.cjs} +4 -4
  6. package/components/{CasinoMysteryChestContainer-DPC0amcw.js → CasinoMysteryChestContainer-BDHlGZ64.js} +418 -407
  7. package/components/{CasinoMysteryChestDetails-BRXK4Kpk.js → CasinoMysteryChestDetails-BVPA8j9h.js} +22 -22
  8. package/components/{CasinoMysteryChestDetails-C7LTluRX.js → CasinoMysteryChestDetails-D8t8XiWi.js} +22 -22
  9. package/components/{CasinoMysteryChestDetails-B53MI1SP.cjs → CasinoMysteryChestDetails-TUNgJ9dn.cjs} +1 -1
  10. package/components/{CasinoMysteryChestModal-BKRNjNp3.js → CasinoMysteryChestModal-BOx55DO1.js} +16 -16
  11. package/components/{CasinoMysteryChestModal-BAISecTO.cjs → CasinoMysteryChestModal-CK-JaJrH.cjs} +1 -1
  12. package/components/{CasinoMysteryChestModal-BoFgC2dS.js → CasinoMysteryChestModal-_CqdTxrw.js} +19 -19
  13. package/components/CasinoMysteryChestsList-C1v5ZHef.cjs +3 -0
  14. package/components/{CasinoMysteryChestsList-BsxSniYi.js → CasinoMysteryChestsList-DQcdxCyH.js} +48 -46
  15. package/components/{CasinoMysteryChestsList-DlFBYPaj.js → CasinoMysteryChestsList-LdeKeFiw.js} +48 -46
  16. package/components/{GeneralAnimationLoading-4dmsbyG0.js → GeneralAnimationLoading-BlugCuwI.js} +14 -14
  17. package/components/{GeneralAnimationLoading-nztnwiu1.cjs → GeneralAnimationLoading-CQYHpI1r.cjs} +1 -1
  18. package/components/{GeneralAnimationLoading-DwUmPFHR.js → GeneralAnimationLoading-DrDRu9wb.js} +16 -16
  19. package/es2015/casino-game-overlay.cjs +1 -1
  20. package/es2015/casino-game-overlay.js +1 -1
  21. package/esnext/casino-game-overlay.js +1 -1
  22. package/package.json +1 -1
  23. package/components/CasinoMysteryChestsList-BUTy6nNu.cjs +0 -3
@@ -35,13 +35,13 @@ var y = (t, e, i) => new Promise((n, o) => {
35
35
  }, a = (A) => A.done ? n(A.value) : Promise.resolve(A.value).then(c, l);
36
36
  a((i = i.apply(t, e)).next());
37
37
  });
38
- import { o as oe, S as se, b as ce, s as le, f as F, c as ge, n as H, d as f, r as re, u as ee, l as r, q as b, e as w, m as I, p as O, k as h, g as d, v as T, w as Ae, t as Ie } from "./CasinoGameOverlay-D4wPtWJ9.js";
39
- import { $ as ae, a as he } from "./CasinoMysteryChestContainer-DPC0amcw.js";
38
+ import { o as oe, S as se, b as ce, f as F, c as le, a as ge, d as re, k as h, e as d, u as H, m as r, p as b, h as f, q as I, t as O, v as ee, n as T, j as w, r as Ae, w as Ie } from "./CasinoGameOverlay-BAErIOzd.js";
39
+ import { a as ae, $ as he } from "./CasinoMysteryChestContainer-3q123vaa.js";
40
40
  function Se(t, e) {
41
- he(t, e);
41
+ ae(t, e);
42
42
  }
43
43
  function Je(t) {
44
- ae.set(t);
44
+ he.set(t);
45
45
  }
46
46
  const G = (t) => window.postMessage(t, window.location.href), Ee = (t) => (i) => {
47
47
  Object.keys(t).map((n) => {
@@ -98,7 +98,7 @@ const _ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMkAAADLCAYAAADEDrcOAAA
98
98
  })
99
99
  };
100
100
  function de(t) {
101
- ge(t, "svelte-mbyvg4", `.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .icon-button{width:24px;height:24px}.mobile .chests-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .chest-icon{width:initial;height:initial}.mobile .chest-icon__container{flex-grow:1;padding:0}.mobile .chests-footer{gap:10px}.mobile .chests-footer__btn{width:170px;height:48px;font-size:var(--emw--font-size-medium, 16px)}.mobile .chests-footer__text{font-size:var(--emw--font-size-x-small, 12px);line-height:14px}.mobile .chests-footer__keys{font-size:var(--emw--font-size-small, 14px);line-height:16px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:10;transition:bottom 0.5s ease-in-out;bottom:0px;opacity:1;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;display:flex;flex-direction:column}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;opacity:0;bottom:0px;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.back{background:center/100% url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M10.3579 5.26604C10.0032 4.91132 9.42806 4.91132 9.07334 5.26604L5.26604 9.07334C4.91132 9.42806 4.91132 10.0032 5.26604 10.3579L9.07334 14.1652C9.42806 14.5199 10.0032 14.5199 10.3579 14.1652C10.7126 13.8105 10.7126 13.2354 10.3579 12.8806L8.10118 10.6239H10.7817C12.0761 10.6239 12.9922 10.6246 13.7085 10.6832C14.4142 10.7408 14.8455 10.85 15.1847 11.0229C15.8735 11.3738 16.4335 11.9338 16.7844 12.6226C16.9573 12.9618 17.0665 13.3931 17.1241 14.0989C17.1827 14.8151 17.1834 15.7312 17.1834 17.0256V18.0917C17.1834 18.5933 17.59 19 18.0917 19C18.5933 19 19 18.5933 19 18.0917V16.9854C19 15.74 19 14.7498 18.9347 13.9509C18.8679 13.1329 18.7281 12.4359 18.403 11.7978C17.8779 10.7673 17.04 9.92938 16.0095 9.40427C15.3714 9.07918 14.6744 8.9394 13.8564 8.87257C13.0575 8.80729 12.0673 8.8073 10.8219 8.8073H8.10118L10.3579 6.55059C10.7126 6.19587 10.7126 5.62076 10.3579 5.26604Z" fill="%23729787"/></svg>') no-repeat}.icon-button.close{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.chests-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.chests-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.additional-chest-glare{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-40deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(50px);mix-blend-mode:hard-light;width:325px;height:325px;border-radius:40px}.chest-icon{position:relative;z-index:1;width:265px}.chest-icon__container{position:relative;padding:100px 0;align-self:center;align-content:center}.chest-icon__container::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-15deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(30px);mix-blend-mode:hard-light;width:225px;height:225px;border-radius:40px;pointer-events:none}.chest-icon.empty{filter:grayscale(100%)}.chests-footer{display:flex;flex-direction:column;gap:20px;align-items:center;padding:32px 0}.chests-footer__btn{cursor:pointer;width:280px;height:60px;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)}.chests-footer__text{margin:0;font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center;color:var(--emw--color-primary, #d3ffed);display:flex;align-items:center;gap:8px}.chests-footer__keys{display:flex;align-items:center;gap:3px;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center}`);
101
+ re(t, "svelte-mbyvg4", `.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .icon-button{width:24px;height:24px}.mobile .chests-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .chest-icon{width:initial;height:initial}.mobile .chest-icon__container{flex-grow:1;padding:0}.mobile .chests-footer{gap:10px}.mobile .chests-footer__btn{width:170px;height:48px;font-size:var(--emw--font-size-medium, 16px)}.mobile .chests-footer__text{font-size:var(--emw--font-size-x-small, 12px);line-height:14px}.mobile .chests-footer__keys{font-size:var(--emw--font-size-small, 14px);line-height:16px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:10;transition:bottom 0.5s ease-in-out;bottom:0px;opacity:1;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;display:flex;flex-direction:column}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;opacity:0;bottom:0px;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.back{background:center/100% url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M10.3579 5.26604C10.0032 4.91132 9.42806 4.91132 9.07334 5.26604L5.26604 9.07334C4.91132 9.42806 4.91132 10.0032 5.26604 10.3579L9.07334 14.1652C9.42806 14.5199 10.0032 14.5199 10.3579 14.1652C10.7126 13.8105 10.7126 13.2354 10.3579 12.8806L8.10118 10.6239H10.7817C12.0761 10.6239 12.9922 10.6246 13.7085 10.6832C14.4142 10.7408 14.8455 10.85 15.1847 11.0229C15.8735 11.3738 16.4335 11.9338 16.7844 12.6226C16.9573 12.9618 17.0665 13.3931 17.1241 14.0989C17.1827 14.8151 17.1834 15.7312 17.1834 17.0256V18.0917C17.1834 18.5933 17.59 19 18.0917 19C18.5933 19 19 18.5933 19 18.0917V16.9854C19 15.74 19 14.7498 18.9347 13.9509C18.8679 13.1329 18.7281 12.4359 18.403 11.7978C17.8779 10.7673 17.04 9.92938 16.0095 9.40427C15.3714 9.07918 14.6744 8.9394 13.8564 8.87257C13.0575 8.80729 12.0673 8.8073 10.8219 8.8073H8.10118L10.3579 6.55059C10.7126 6.19587 10.7126 5.62076 10.3579 5.26604Z" fill="%23729787"/></svg>') no-repeat}.icon-button.close{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.chests-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.chests-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.additional-chest-glare{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-40deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(50px);mix-blend-mode:hard-light;width:325px;height:325px;border-radius:40px}.chest-icon{position:relative;z-index:1;width:265px}.chest-icon__container{position:relative;padding:100px 0;align-self:center;align-content:center}.chest-icon__container::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-15deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(30px);mix-blend-mode:hard-light;width:225px;height:225px;border-radius:40px;pointer-events:none}.chest-icon.empty{filter:grayscale(100%)}.chests-footer{display:flex;flex-direction:column;gap:20px;align-items:center;padding:32px 0}.chests-footer__btn{cursor:pointer;width:280px;height:60px;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)}.chests-footer__text{margin:0;font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center;color:var(--emw--color-primary, #d3ffed);display:flex;align-items:center;gap:8px}.chests-footer__keys{display:flex;align-items:center;gap:3px;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center}`);
102
102
  }
103
103
  function $(t) {
104
104
  let e;
@@ -107,10 +107,10 @@ function $(t) {
107
107
  e = h("div"), r(e, "class", "additional-chest-glare");
108
108
  },
109
109
  m(i, n) {
110
- w(i, e, n);
110
+ f(i, e, n);
111
111
  },
112
112
  d(i) {
113
- i && f(e);
113
+ i && w(e);
114
114
  }
115
115
  };
116
116
  }
@@ -121,16 +121,16 @@ function qe(t) {
121
121
  e = h("p"), e.textContent = "You used all the Remaining Keys here", i = d(), n = h("button"), n.textContent = "OK", r(e, "class", "chests-footer__text"), r(n, "class", "chests-footer__btn");
122
122
  },
123
123
  m(l, a) {
124
- w(l, e, a), w(l, i, a), w(l, n, a), o || (c = O(
124
+ f(l, e, a), f(l, i, a), f(l, n, a), o || (c = O(
125
125
  n,
126
126
  "click",
127
127
  /*onBack*/
128
128
  t[7]
129
129
  ), o = !0);
130
130
  },
131
- p: H,
131
+ p: T,
132
132
  d(l) {
133
- l && (f(e), f(i), f(n)), o = !1, c();
133
+ l && (w(e), w(i), w(n)), o = !1, c();
134
134
  }
135
135
  };
136
136
  }
@@ -141,11 +141,11 @@ function Fe(t) {
141
141
  ), C, U, k;
142
142
  return {
143
143
  c() {
144
- e = h("button"), e.textContent = "Open Chest", i = d(), n = h("p"), o = T(`Remaining Keys:
145
- `), c = h("span"), l = h("img"), A = d(), S = h("span"), C = T(J), r(e, "class", "chests-footer__btn"), b(l.src, a = me) || r(l, "src", a), r(l, "alt", "Key"), r(c, "class", "chests-footer__keys"), r(n, "class", "chests-footer__text");
144
+ e = h("button"), e.textContent = "Open Chest", i = d(), n = h("p"), o = H(`Remaining Keys:
145
+ `), c = h("span"), l = h("img"), A = d(), S = h("span"), C = H(J), r(e, "class", "chests-footer__btn"), b(l.src, a = me) || r(l, "src", a), r(l, "alt", "Key"), r(c, "class", "chests-footer__keys"), r(n, "class", "chests-footer__text");
146
146
  },
147
147
  m(E, Q) {
148
- w(E, e, Q), w(E, i, Q), w(E, n, Q), I(n, o), I(n, c), I(c, l), I(c, A), I(c, S), I(S, C), U || (k = O(
148
+ f(E, e, Q), f(E, i, Q), f(E, n, Q), I(n, o), I(n, c), I(c, l), I(c, A), I(c, S), I(S, C), U || (k = O(
149
149
  e,
150
150
  "click",
151
151
  /*openChest*/
@@ -158,7 +158,7 @@ function Fe(t) {
158
158
  E[0].current.remainingTimes + "") && ee(C, J);
159
159
  },
160
160
  d(E) {
161
- E && (f(e), f(i), f(n)), U = !1, k();
161
+ E && (w(e), w(i), w(n)), U = !1, k();
162
162
  }
163
163
  };
164
164
  }
@@ -183,13 +183,13 @@ function fe(t) {
183
183
  let Y = Z(t), R = Y(t);
184
184
  return {
185
185
  c() {
186
- e = h("div"), i = h("button"), n = d(), o = h("div"), c = h("div"), l = h("button"), a = d(), A = h("div"), J = T(S), C = d(), U = h("button"), k = d(), E = h("div"), g && g.c(), Q = d(), K = h("img"), M = d(), u = h("div"), R.c(), r(i, "class", "overlay"), r(l, "class", "icon-button back"), r(A, "class", "chests-header__title"), r(U, "class", "icon-button close"), r(c, "class", "chests-header"), r(K, "class", B = "chest-icon " + /*activeChest*/
186
+ e = h("div"), i = h("button"), n = d(), o = h("div"), c = h("div"), l = h("button"), a = d(), A = h("div"), J = H(S), C = d(), U = h("button"), k = d(), E = h("div"), g && g.c(), Q = d(), K = h("img"), M = d(), u = h("div"), R.c(), r(i, "class", "overlay"), r(l, "class", "icon-button back"), r(A, "class", "chests-header__title"), r(U, "class", "icon-button close"), r(c, "class", "chests-header"), r(K, "class", B = "chest-icon " + /*activeChest*/
187
187
  (t[0].current.remainingTimes ? "" : "empty")), b(K.src, V = /*chestImg*/
188
188
  t[4]) || r(K, "src", V), r(K, "alt", "Mystery chest"), r(E, "class", "chest-icon__container"), r(u, "class", "chests-footer"), r(o, "class", j = "drawer " + /*mobileView*/
189
189
  (t[1] ? "mobile" : "")), r(e, "part", "CustomStylingContainer");
190
190
  },
191
191
  m(p, q) {
192
- w(p, e, q), I(e, i), I(e, n), I(e, o), I(o, c), I(c, l), I(c, a), I(c, A), I(A, J), I(c, C), I(c, U), I(o, k), I(o, E), g && g.m(E, null), I(E, Q), I(E, K), I(o, M), I(o, u), R.m(u, null), t[14](e), s || (m = [
192
+ f(p, e, q), I(e, i), I(e, n), I(e, o), I(o, c), I(c, l), I(c, a), I(c, A), I(A, J), I(c, C), I(c, U), I(o, k), I(o, E), g && g.m(E, null), I(E, Q), I(E, K), I(o, M), I(o, u), R.m(u, null), t[14](e), s || (m = [
193
193
  O(
194
194
  i,
195
195
  "click",
@@ -226,10 +226,10 @@ function fe(t) {
226
226
  2 && j !== (j = "drawer " + /*mobileView*/
227
227
  (p[1] ? "mobile" : "")) && r(o, "class", j);
228
228
  },
229
- i: H,
230
- o: H,
229
+ i: T,
230
+ o: T,
231
231
  d(p) {
232
- p && f(e), g && g.d(), R.d(), t[14](null), s = !1, re(m);
232
+ p && w(e), g && g.d(), R.d(), t[14](null), s = !1, Ae(m);
233
233
  }
234
234
  };
235
235
  }
@@ -280,7 +280,7 @@ function we(t, e, i) {
280
280
  }
281
281
  });
282
282
  function j(s) {
283
- Ae[s ? "unshift" : "push"](() => {
283
+ Ie[s ? "unshift" : "push"](() => {
284
284
  C = s, i(3, C);
285
285
  });
286
286
  }
@@ -317,7 +317,7 @@ class ue extends se {
317
317
  e,
318
318
  we,
319
319
  fe,
320
- le,
320
+ ge,
321
321
  {
322
322
  mobileView: 1,
323
323
  lang: 2,
@@ -380,7 +380,7 @@ class ue extends se {
380
380
  this.$$set({ activeChest: e }), F();
381
381
  }
382
382
  }
383
- Ie(ue, { mobileView: { type: "Boolean" }, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activeChest: {} }, [], [], !0);
383
+ le(ue, { mobileView: { type: "Boolean" }, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activeChest: {} }, [], [], !0);
384
384
  export {
385
385
  ue as default
386
386
  };
@@ -1,10 +1,10 @@
1
- import { o as P, S as z, b as X, s as N, f as F, d as W, n as Y, e as f, r as _, u as Z, m as g, t as L, g as w, p as r, q as G, l as I, h as d, v as D, w as $, c as ee } from "./CasinoGameOverlay-CJ3Byef3.js";
2
- import { $ as te, a as ie } from "./CasinoMysteryChestContainer-BaUpvz_h.js";
1
+ import { o as P, S as z, b as X, f as F, c as N, a as W, d as _, k as I, e as d, u as Y, m as g, p as L, h as f, q as r, t as G, v as Z, n as D, j as w, r as $, w as ee } from "./CasinoGameOverlay-BpdmAKza.js";
2
+ import { a as te, $ as ie } from "./CasinoMysteryChestContainer-BDHlGZ64.js";
3
3
  function ne(t, e) {
4
- ie(t, e);
4
+ te(t, e);
5
5
  }
6
6
  function oe(t) {
7
- te.set(t);
7
+ ie.set(t);
8
8
  }
9
9
  const y = (t) => window.postMessage(t, window.location.href), se = (t) => (i) => {
10
10
  Object.keys(t).map((o) => {
@@ -61,7 +61,7 @@ const T = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMkAAADLCAYAAADEDrcOAAA
61
61
  draw: async (t, e, i) => await ae(H.draw, t, { id: i, session: e, guid: `userid-${i}-${(/* @__PURE__ */ new Date()).getTime()}` })
62
62
  };
63
63
  function Se(t) {
64
- W(t, "svelte-mbyvg4", `.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .icon-button{width:24px;height:24px}.mobile .chests-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .chest-icon{width:initial;height:initial}.mobile .chest-icon__container{flex-grow:1;padding:0}.mobile .chests-footer{gap:10px}.mobile .chests-footer__btn{width:170px;height:48px;font-size:var(--emw--font-size-medium, 16px)}.mobile .chests-footer__text{font-size:var(--emw--font-size-x-small, 12px);line-height:14px}.mobile .chests-footer__keys{font-size:var(--emw--font-size-small, 14px);line-height:16px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:10;transition:bottom 0.5s ease-in-out;bottom:0px;opacity:1;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;display:flex;flex-direction:column}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;opacity:0;bottom:0px;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.back{background:center/100% url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M10.3579 5.26604C10.0032 4.91132 9.42806 4.91132 9.07334 5.26604L5.26604 9.07334C4.91132 9.42806 4.91132 10.0032 5.26604 10.3579L9.07334 14.1652C9.42806 14.5199 10.0032 14.5199 10.3579 14.1652C10.7126 13.8105 10.7126 13.2354 10.3579 12.8806L8.10118 10.6239H10.7817C12.0761 10.6239 12.9922 10.6246 13.7085 10.6832C14.4142 10.7408 14.8455 10.85 15.1847 11.0229C15.8735 11.3738 16.4335 11.9338 16.7844 12.6226C16.9573 12.9618 17.0665 13.3931 17.1241 14.0989C17.1827 14.8151 17.1834 15.7312 17.1834 17.0256V18.0917C17.1834 18.5933 17.59 19 18.0917 19C18.5933 19 19 18.5933 19 18.0917V16.9854C19 15.74 19 14.7498 18.9347 13.9509C18.8679 13.1329 18.7281 12.4359 18.403 11.7978C17.8779 10.7673 17.04 9.92938 16.0095 9.40427C15.3714 9.07918 14.6744 8.9394 13.8564 8.87257C13.0575 8.80729 12.0673 8.8073 10.8219 8.8073H8.10118L10.3579 6.55059C10.7126 6.19587 10.7126 5.62076 10.3579 5.26604Z" fill="%23729787"/></svg>') no-repeat}.icon-button.close{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.chests-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.chests-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.additional-chest-glare{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-40deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(50px);mix-blend-mode:hard-light;width:325px;height:325px;border-radius:40px}.chest-icon{position:relative;z-index:1;width:265px}.chest-icon__container{position:relative;padding:100px 0;align-self:center;align-content:center}.chest-icon__container::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-15deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(30px);mix-blend-mode:hard-light;width:225px;height:225px;border-radius:40px;pointer-events:none}.chest-icon.empty{filter:grayscale(100%)}.chests-footer{display:flex;flex-direction:column;gap:20px;align-items:center;padding:32px 0}.chests-footer__btn{cursor:pointer;width:280px;height:60px;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)}.chests-footer__text{margin:0;font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center;color:var(--emw--color-primary, #d3ffed);display:flex;align-items:center;gap:8px}.chests-footer__keys{display:flex;align-items:center;gap:3px;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center}`);
64
+ _(t, "svelte-mbyvg4", `.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .icon-button{width:24px;height:24px}.mobile .chests-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .chest-icon{width:initial;height:initial}.mobile .chest-icon__container{flex-grow:1;padding:0}.mobile .chests-footer{gap:10px}.mobile .chests-footer__btn{width:170px;height:48px;font-size:var(--emw--font-size-medium, 16px)}.mobile .chests-footer__text{font-size:var(--emw--font-size-x-small, 12px);line-height:14px}.mobile .chests-footer__keys{font-size:var(--emw--font-size-small, 14px);line-height:16px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:10;transition:bottom 0.5s ease-in-out;bottom:0px;opacity:1;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;display:flex;flex-direction:column}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;opacity:0;bottom:0px;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.back{background:center/100% url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M10.3579 5.26604C10.0032 4.91132 9.42806 4.91132 9.07334 5.26604L5.26604 9.07334C4.91132 9.42806 4.91132 10.0032 5.26604 10.3579L9.07334 14.1652C9.42806 14.5199 10.0032 14.5199 10.3579 14.1652C10.7126 13.8105 10.7126 13.2354 10.3579 12.8806L8.10118 10.6239H10.7817C12.0761 10.6239 12.9922 10.6246 13.7085 10.6832C14.4142 10.7408 14.8455 10.85 15.1847 11.0229C15.8735 11.3738 16.4335 11.9338 16.7844 12.6226C16.9573 12.9618 17.0665 13.3931 17.1241 14.0989C17.1827 14.8151 17.1834 15.7312 17.1834 17.0256V18.0917C17.1834 18.5933 17.59 19 18.0917 19C18.5933 19 19 18.5933 19 18.0917V16.9854C19 15.74 19 14.7498 18.9347 13.9509C18.8679 13.1329 18.7281 12.4359 18.403 11.7978C17.8779 10.7673 17.04 9.92938 16.0095 9.40427C15.3714 9.07918 14.6744 8.9394 13.8564 8.87257C13.0575 8.80729 12.0673 8.8073 10.8219 8.8073H8.10118L10.3579 6.55059C10.7126 6.19587 10.7126 5.62076 10.3579 5.26604Z" fill="%23729787"/></svg>') no-repeat}.icon-button.close{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.chests-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.chests-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.additional-chest-glare{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-40deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(50px);mix-blend-mode:hard-light;width:325px;height:325px;border-radius:40px}.chest-icon{position:relative;z-index:1;width:265px}.chest-icon__container{position:relative;padding:100px 0;align-self:center;align-content:center}.chest-icon__container::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-15deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(30px);mix-blend-mode:hard-light;width:225px;height:225px;border-radius:40px;pointer-events:none}.chest-icon.empty{filter:grayscale(100%)}.chests-footer{display:flex;flex-direction:column;gap:20px;align-items:center;padding:32px 0}.chests-footer__btn{cursor:pointer;width:280px;height:60px;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)}.chests-footer__text{margin:0;font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center;color:var(--emw--color-primary, #d3ffed);display:flex;align-items:center;gap:8px}.chests-footer__keys{display:flex;align-items:center;gap:3px;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center}`);
65
65
  }
66
66
  function x(t) {
67
67
  let e;
@@ -70,10 +70,10 @@ function x(t) {
70
70
  e = I("div"), g(e, "class", "additional-chest-glare");
71
71
  },
72
72
  m(i, o) {
73
- w(i, e, o);
73
+ f(i, e, o);
74
74
  },
75
75
  d(i) {
76
- i && f(e);
76
+ i && w(e);
77
77
  }
78
78
  };
79
79
  }
@@ -84,16 +84,16 @@ function Je(t) {
84
84
  e = I("p"), e.textContent = "You used all the Remaining Keys here", i = d(), o = I("button"), o.textContent = "OK", g(e, "class", "chests-footer__text"), g(o, "class", "chests-footer__btn");
85
85
  },
86
86
  m(l, S) {
87
- w(l, e, S), w(l, i, S), w(l, o, S), s || (c = G(
87
+ f(l, e, S), f(l, i, S), f(l, o, S), s || (c = G(
88
88
  o,
89
89
  "click",
90
90
  /*onBack*/
91
91
  t[7]
92
92
  ), s = !0);
93
93
  },
94
- p: Y,
94
+ p: D,
95
95
  d(l) {
96
- l && (f(e), f(i), f(o)), s = !1, c();
96
+ l && (w(e), w(i), w(o)), s = !1, c();
97
97
  }
98
98
  };
99
99
  }
@@ -104,11 +104,11 @@ function Ee(t) {
104
104
  ), p, m, k;
105
105
  return {
106
106
  c() {
107
- e = I("button"), e.textContent = "Open Chest", i = d(), o = I("p"), s = D(`Remaining Keys:
108
- `), c = I("span"), l = I("img"), E = d(), U = I("span"), p = D(a), g(e, "class", "chests-footer__btn"), L(l.src, S = re) || g(l, "src", S), g(l, "alt", "Key"), g(c, "class", "chests-footer__keys"), g(o, "class", "chests-footer__text");
107
+ e = I("button"), e.textContent = "Open Chest", i = d(), o = I("p"), s = Y(`Remaining Keys:
108
+ `), c = I("span"), l = I("img"), E = d(), U = I("span"), p = Y(a), g(e, "class", "chests-footer__btn"), L(l.src, S = re) || g(l, "src", S), g(l, "alt", "Key"), g(c, "class", "chests-footer__keys"), g(o, "class", "chests-footer__text");
109
109
  },
110
110
  m(h, Q) {
111
- w(h, e, Q), w(h, i, Q), w(h, o, Q), r(o, s), r(o, c), r(c, l), r(c, E), r(c, U), r(U, p), m || (k = G(
111
+ f(h, e, Q), f(h, i, Q), f(h, o, Q), r(o, s), r(o, c), r(c, l), r(c, E), r(c, U), r(U, p), m || (k = G(
112
112
  e,
113
113
  "click",
114
114
  /*openChest*/
@@ -121,7 +121,7 @@ function Ee(t) {
121
121
  h[0].current.remainingTimes + "") && Z(p, a);
122
122
  },
123
123
  d(h) {
124
- h && (f(e), f(i), f(o)), m = !1, k();
124
+ h && (w(e), w(i), w(o)), m = !1, k();
125
125
  }
126
126
  };
127
127
  }
@@ -146,13 +146,13 @@ function pe(t) {
146
146
  let M = b(t), R = M(t);
147
147
  return {
148
148
  c() {
149
- e = I("div"), i = I("button"), o = d(), s = I("div"), c = I("div"), l = I("button"), S = d(), E = I("div"), a = D(U), p = d(), m = I("button"), k = d(), h = I("div"), A && A.c(), Q = d(), K = I("img"), v = d(), u = I("div"), R.c(), g(i, "class", "overlay"), g(l, "class", "icon-button back"), g(E, "class", "chests-header__title"), g(m, "class", "icon-button close"), g(c, "class", "chests-header"), g(K, "class", B = "chest-icon " + /*activeChest*/
149
+ e = I("div"), i = I("button"), o = d(), s = I("div"), c = I("div"), l = I("button"), S = d(), E = I("div"), a = Y(U), p = d(), m = I("button"), k = d(), h = I("div"), A && A.c(), Q = d(), K = I("img"), v = d(), u = I("div"), R.c(), g(i, "class", "overlay"), g(l, "class", "icon-button back"), g(E, "class", "chests-header__title"), g(m, "class", "icon-button close"), g(c, "class", "chests-header"), g(K, "class", B = "chest-icon " + /*activeChest*/
150
150
  (t[0].current.remainingTimes ? "" : "empty")), L(K.src, V = /*chestImg*/
151
151
  t[4]) || g(K, "src", V), g(K, "alt", "Mystery chest"), g(h, "class", "chest-icon__container"), g(u, "class", "chests-footer"), g(s, "class", j = "drawer " + /*mobileView*/
152
152
  (t[1] ? "mobile" : "")), g(e, "part", "CustomStylingContainer");
153
153
  },
154
154
  m(J, q) {
155
- w(J, e, q), r(e, i), r(e, o), r(e, s), r(s, c), r(c, l), r(c, S), r(c, E), r(E, a), r(c, p), r(c, m), r(s, k), r(s, h), A && A.m(h, null), r(h, Q), r(h, K), r(s, v), r(s, u), R.m(u, null), t[14](e), n || (C = [
155
+ f(J, e, q), r(e, i), r(e, o), r(e, s), r(s, c), r(c, l), r(c, S), r(c, E), r(E, a), r(c, p), r(c, m), r(s, k), r(s, h), A && A.m(h, null), r(h, Q), r(h, K), r(s, v), r(s, u), R.m(u, null), t[14](e), n || (C = [
156
156
  G(
157
157
  i,
158
158
  "click",
@@ -189,10 +189,10 @@ function pe(t) {
189
189
  2 && j !== (j = "drawer " + /*mobileView*/
190
190
  (J[1] ? "mobile" : "")) && g(s, "class", j);
191
191
  },
192
- i: Y,
193
- o: Y,
192
+ i: D,
193
+ o: D,
194
194
  d(J) {
195
- J && f(e), A && A.d(), R.d(), t[14](null), n = !1, _(C);
195
+ J && w(e), A && A.d(), R.d(), t[14](null), n = !1, $(C);
196
196
  }
197
197
  };
198
198
  }
@@ -242,7 +242,7 @@ function Ce(t, e, i) {
242
242
  }
243
243
  });
244
244
  function j(n) {
245
- $[n ? "unshift" : "push"](() => {
245
+ ee[n ? "unshift" : "push"](() => {
246
246
  p = n, i(3, p);
247
247
  });
248
248
  }
@@ -279,7 +279,7 @@ class Ue extends z {
279
279
  e,
280
280
  Ce,
281
281
  pe,
282
- N,
282
+ W,
283
283
  {
284
284
  mobileView: 1,
285
285
  lang: 2,
@@ -342,7 +342,7 @@ class Ue extends z {
342
342
  this.$$set({ activeChest: e }), F();
343
343
  }
344
344
  }
345
- ee(Ue, { mobileView: { type: "Boolean" }, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activeChest: {} }, [], [], !0);
345
+ N(Ue, { mobileView: { type: "Boolean" }, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activeChest: {} }, [], [], !0);
346
346
  export {
347
347
  Ue as default
348
348
  };