@everymatrix/casino-game-overlay 1.74.4 → 1.74.5

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 (35) hide show
  1. package/components/CasinoCoinroyaleContainer-DEl9DZHu.cjs +18 -0
  2. package/components/{CasinoCoinroyaleContainer-BIjc0RMW.js → CasinoCoinroyaleContainer-DgBlx5lG.js} +722 -717
  3. package/components/{CasinoCoinroyaleContainer-Dgmc-mSq.js → CasinoCoinroyaleContainer-DvCA68hm.js} +779 -774
  4. package/components/CasinoCoinroyaleDetails-BQkPqSqu.js +483 -0
  5. package/components/CasinoCoinroyaleDetails-DeSsuEYj.js +524 -0
  6. package/components/CasinoCoinroyaleDetails-wR8hmTRl.cjs +2 -0
  7. package/components/{CasinoCoinroyaleList-DFk-AQWC.js → CasinoCoinroyaleList-BLpZSfaq.js} +2 -2
  8. package/components/{CasinoCoinroyaleList-CIpDlz0J.js → CasinoCoinroyaleList-CFjlc-sc.js} +2 -2
  9. package/components/{CasinoCoinroyaleList-Rw1x5iBk.cjs → CasinoCoinroyaleList-DcQRGzAM.cjs} +1 -1
  10. package/components/{CasinoGameOverlay-NQ4jzzMr.js → CasinoGameOverlay-BM8mFNNi.js} +5 -5
  11. package/components/{CasinoGameOverlay-Bj1bsACh.cjs → CasinoGameOverlay-Dpdw9184.cjs} +1 -1
  12. package/components/{CasinoGameOverlay-CBieuiG3.js → CasinoGameOverlay-pXegcrgH.js} +5 -5
  13. package/components/{CasinoMysteryChestContainer-B4d5K7g5.js → CasinoMysteryChestContainer-BH0aReAO.js} +3 -3
  14. package/components/{CasinoMysteryChestContainer-C12zLwF3.cjs → CasinoMysteryChestContainer-C2X7KCfl.cjs} +1 -1
  15. package/components/{CasinoMysteryChestContainer-CxMW5Yvl.js → CasinoMysteryChestContainer-Co2aAmpy.js} +3 -3
  16. package/components/{CasinoMysteryChestDetails-BuhjImON.js → CasinoMysteryChestDetails--cw4FvAb.js} +19 -19
  17. package/components/{CasinoMysteryChestDetails-Bc4nTgGR.cjs → CasinoMysteryChestDetails-BszXebg_.cjs} +1 -1
  18. package/components/{CasinoMysteryChestDetails-DTIW4JVW.js → CasinoMysteryChestDetails-CzDmW86j.js} +25 -25
  19. package/components/{CasinoMysteryChestModal-G94XIV3g.cjs → CasinoMysteryChestModal-BgmXmbUO.cjs} +1 -1
  20. package/components/{CasinoMysteryChestModal-VmigS2__.js → CasinoMysteryChestModal-Cg-CuByX.js} +6 -6
  21. package/components/{CasinoMysteryChestModal-znl5RBhD.js → CasinoMysteryChestModal-D-YlAcZT.js} +4 -4
  22. package/components/{CasinoMysteryChestsList-CXunGtJk.js → CasinoMysteryChestsList-ByBac6AA.js} +75 -75
  23. package/components/{CasinoMysteryChestsList-CWbSRTMj.cjs → CasinoMysteryChestsList-C3KZ3Axd.cjs} +1 -1
  24. package/components/{CasinoMysteryChestsList-DyICPiXo.js → CasinoMysteryChestsList-VqmU1qZ0.js} +93 -93
  25. package/components/{LotteryProgramWof-D4dNZ_Du.js → LotteryProgramWof-CGMqEGux.js} +1 -1
  26. package/components/{LotteryProgramWof-C08eMBNT.js → LotteryProgramWof-RHh0KBt4.js} +1 -1
  27. package/components/{LotteryProgramWof-DR8VUMx6.cjs → LotteryProgramWof-_Z_GV4ya.cjs} +1 -1
  28. package/es2015/casino-game-overlay.cjs +1 -1
  29. package/es2015/casino-game-overlay.js +1 -1
  30. package/esnext/casino-game-overlay.js +1 -1
  31. package/package.json +1 -1
  32. package/components/CasinoCoinroyaleContainer-DE3kvOUm.cjs +0 -18
  33. package/components/CasinoCoinroyaleDetails-BDKQuFub.cjs +0 -2
  34. package/components/CasinoCoinroyaleDetails-BwuK-BPC.js +0 -470
  35. package/components/CasinoCoinroyaleDetails-z7osL7hE.js +0 -512
@@ -1,11 +1,11 @@
1
- import { a as qA, $ as aA, o as tA, D as nA, E as AA, F as ZA, G as DA, H as FA, S as hA, i as cA, f as S, c as lA, s as GA, b as MA, e as h, d as U, t as W, g as m, v as j, h as H, j as w, l as N, k as X, n as BA, m as J, r as YA, p as y, q as sA, w as gA, u as RA, x as dA } from "./CasinoCoinroyaleContainer-BIjc0RMW.js";
1
+ import { a as qA, $ as aA, o as tA, E as nA, F as AA, G as ZA, H as DA, I as FA, S as hA, i as cA, f as S, c as lA, s as GA, b as MA, e as h, d as U, t as W, g as m, w as j, h as H, j as w, l as N, k as X, n as BA, m as J, r as YA, p as y, q as sA, x as gA, v as RA, y as dA } from "./CasinoCoinroyaleContainer-DgBlx5lG.js";
2
2
  function EA(A, B) {
3
3
  qA(A, B);
4
4
  }
5
- function uA(A) {
5
+ function KA(A) {
6
6
  aA.set(A);
7
7
  }
8
- const b = (A) => window.postMessage(A, window.location.href), KA = (A) => (g) => {
8
+ const b = (A) => window.postMessage(A, window.location.href), uA = (A) => (g) => {
9
9
  Object.keys(A).map((I) => {
10
10
  if (g.data && g.data.type == I) {
11
11
  const { type: C, ...Q } = g.data;
@@ -13,7 +13,7 @@ const b = (A) => window.postMessage(A, window.location.href), KA = (A) => (g) =>
13
13
  }
14
14
  });
15
15
  }, pA = (A) => {
16
- const B = KA(A);
16
+ const B = uA(A);
17
17
  tA(() => (window.addEventListener("message", B), () => {
18
18
  window.removeEventListener("message", B);
19
19
  }));
@@ -202,7 +202,7 @@ function XA(A) {
202
202
  ), e, q, c, a, R, G, M, t = (
203
203
  /*activeChest*/
204
204
  A[0].current.remainingTimes + ""
205
- ), D, l, K;
205
+ ), D, l, u;
206
206
  return {
207
207
  c() {
208
208
  B = h("button"), I = W(g), Q = U(), i = h("p"), e = W(o), q = W(`:
@@ -210,7 +210,7 @@ function XA(A) {
210
210
  A[3] !== V, j(a.src, R = JA) || m(a, "src", R), m(a, "alt", "Key"), m(c, "class", "chest-footer__keys"), m(i, "class", "chest-footer__text");
211
211
  },
212
212
  m(F, n) {
213
- H(F, B, n), w(B, I), H(F, Q, n), H(F, i, n), w(i, e), w(i, q), w(i, c), w(c, a), w(c, G), w(c, M), w(M, D), l || (K = N(
213
+ H(F, B, n), w(B, I), H(F, Q, n), H(F, i, n), w(i, e), w(i, q), w(i, c), w(c, a), w(c, G), w(c, M), w(M, D), l || (u = N(
214
214
  B,
215
215
  "click",
216
216
  /*openChest*/
@@ -229,7 +229,7 @@ function XA(A) {
229
229
  F[0].current.remainingTimes + "") && X(D, t);
230
230
  },
231
231
  d(F) {
232
- F && (J(B), J(Q), J(i)), l = !1, K();
232
+ F && (J(B), J(Q), J(i)), l = !1, u();
233
233
  }
234
234
  };
235
235
  }
@@ -241,11 +241,11 @@ function fA(A) {
241
241
  A[1]
242
242
  ] || /*activeChest*/
243
243
  A[0].program.name[x.default]) + ""
244
- ), c, a, R, G, M, t, D, l, K, F, n, p, O, f, Y = (
244
+ ), c, a, R, G, M, t, D, l, u, F, n, p, O, f, Y = (
245
245
  /*showTicket*/
246
246
  A[4] && IA(A)
247
247
  );
248
- function L(Z, u) {
248
+ function L(Z, K) {
249
249
  return (
250
250
  /*activeChest*/
251
251
  Z[0].current.remainingTimes ? XA : NA
@@ -254,14 +254,14 @@ function fA(A) {
254
254
  let k = L(A), d = k(A);
255
255
  return {
256
256
  c() {
257
- B = h("div"), g = h("button"), I = U(), C = h("div"), Q = h("div"), i = h("button"), o = U(), e = h("div"), c = W(q), a = U(), R = h("button"), G = U(), M = h("div"), t = h("img"), K = U(), Y && Y.c(), F = U(), n = h("div"), d.c(), m(g, "class", "overlay"), m(i, "class", "icon-button back"), m(e, "class", "chest-header__title"), m(R, "class", "icon-button close"), m(Q, "class", "chest-header"), m(t, "class", D = "chest-icon " + /*activeChest*/
257
+ B = h("div"), g = h("button"), I = U(), C = h("div"), Q = h("div"), i = h("button"), o = U(), e = h("div"), c = W(q), a = U(), R = h("button"), G = U(), M = h("div"), t = h("img"), u = U(), Y && Y.c(), F = U(), n = h("div"), d.c(), m(g, "class", "overlay"), m(i, "class", "icon-button back"), m(e, "class", "chest-header__title"), m(R, "class", "icon-button close"), m(Q, "class", "chest-header"), m(t, "class", D = "chest-icon " + /*activeChest*/
258
258
  (A[0].current.remainingTimes ? "" : "empty")), j(t.src, l = /*chestImg*/
259
259
  A[3]) || m(t, "src", l), m(t, "alt", "Mystery chest"), m(M, "class", "chest-icon__container"), m(n, "class", p = "chest-footer " + /*chestImg*/
260
260
  (A[3] !== V ? "disabled" : "")), m(C, "class", "drawer " + /*mobileView*/
261
261
  (A[9] ? "mobile" : "")), m(B, "part", "CustomStylingContainer");
262
262
  },
263
- m(Z, u) {
264
- H(Z, B, u), w(B, g), w(B, I), w(B, C), w(C, Q), w(Q, i), w(Q, o), w(Q, e), w(e, c), w(Q, a), w(Q, R), w(C, G), w(C, M), w(M, t), w(M, K), Y && Y.m(M, null), w(C, F), w(C, n), d.m(n, null), A[21](B), O || (f = [
263
+ m(Z, K) {
264
+ H(Z, B, K), w(B, g), w(B, I), w(B, C), w(C, Q), w(Q, i), w(Q, o), w(Q, e), w(e, c), w(Q, a), w(Q, R), w(C, G), w(C, M), w(M, t), w(M, u), Y && Y.m(M, null), w(C, F), w(C, n), d.m(n, null), A[21](B), O || (f = [
265
265
  N(
266
266
  g,
267
267
  "click",
@@ -282,19 +282,19 @@ function fA(A) {
282
282
  )
283
283
  ], O = !0);
284
284
  },
285
- p(Z, [u]) {
286
- u & /*activeChest, lang*/
285
+ p(Z, [K]) {
286
+ K & /*activeChest, lang*/
287
287
  3 && q !== (q = /*activeChest*/
288
288
  (Z[0].program.name[
289
289
  /*lang*/
290
290
  Z[1]
291
291
  ] || /*activeChest*/
292
- Z[0].program.name[x.default]) + "") && X(c, q), u & /*activeChest*/
292
+ Z[0].program.name[x.default]) + "") && X(c, q), K & /*activeChest*/
293
293
  1 && D !== (D = "chest-icon " + /*activeChest*/
294
- (Z[0].current.remainingTimes ? "" : "empty")) && m(t, "class", D), u & /*chestImg*/
294
+ (Z[0].current.remainingTimes ? "" : "empty")) && m(t, "class", D), K & /*chestImg*/
295
295
  8 && !j(t.src, l = /*chestImg*/
296
296
  Z[3]) && m(t, "src", l), /*showTicket*/
297
- Z[4] ? Y ? Y.p(Z, u) : (Y = IA(Z), Y.c(), Y.m(M, null)) : Y && (Y.d(1), Y = null), k === (k = L(Z)) && d ? d.p(Z, u) : (d.d(1), d = k(Z), d && (d.c(), d.m(n, null))), u & /*chestImg*/
297
+ Z[4] ? Y ? Y.p(Z, K) : (Y = IA(Z), Y.c(), Y.m(M, null)) : Y && (Y.d(1), Y = null), k === (k = L(Z)) && d ? d.p(Z, K) : (d.d(1), d = k(Z), d && (d.c(), d.m(n, null))), K & /*chestImg*/
298
298
  8 && p !== (p = "chest-footer " + /*chestImg*/
299
299
  (Z[3] !== V ? "disabled" : "")) && m(n, "class", p);
300
300
  },
@@ -308,7 +308,7 @@ function fA(A) {
308
308
  function LA(A, B, g) {
309
309
  let I, C, Q, i;
310
310
  y(A, dA, (E) => g(8, i = E));
311
- let { lang: o = x.en } = B, { endpoint: e = "" } = B, { session: q = "" } = B, { clientstyling: c = "" } = B, { clientstylingurl: a = "" } = B, { translationurl: R = "" } = B, { activeChest: G } = B, M = window.navigator.userAgent, t = sA(M), D, l = V, K = !1;
311
+ let { lang: o = x.en } = B, { endpoint: e = "" } = B, { session: q = "" } = B, { clientstyling: c = "" } = B, { clientstylingurl: a = "" } = B, { translationurl: R = "" } = B, { activeChest: G } = B, M = window.navigator.userAgent, t = sA(M), D, l = V, u = !1;
312
312
  const F = T(0, { duration: 300, easing: P });
313
313
  y(A, F, (E) => g(5, I = E));
314
314
  const n = T(0, { duration: 300, easing: P });
@@ -339,16 +339,16 @@ function LA(A, B, g) {
339
339
  EA(E, CA[E]);
340
340
  });
341
341
  const L = () => {
342
- uA(o);
342
+ KA(o);
343
343
  }, k = () => {
344
344
  b({ type: "CloseMysteryChestDrawer" });
345
345
  }, d = () => {
346
346
  b({ type: "BackToMysteryChestList" });
347
347
  }, Z = () => {
348
- g(4, K = !0);
348
+ g(4, u = !0);
349
349
  const E = window.innerHeight, s = E / 2, mA = E - E + (E - (t ? 505 : 575)) / 2 + 200 / 2 - s;
350
350
  F.set(0), n.set(mA), p.set(0.9);
351
- }, u = (E, s) => {
351
+ }, K = (E, s) => {
352
352
  setTimeout(() => b(E), s);
353
353
  }, oA = async () => {
354
354
  if (G) {
@@ -358,10 +358,10 @@ function LA(A, B, g) {
358
358
  g(3, l = rA);
359
359
  const s = G.program.wheelOfFortune.partitions[E.item.result.wheelOfFortunePartitionIndex];
360
360
  if (E.item.result.outcomes.some((z) => z.action?.type === eA.noPrize))
361
- u({ type: "ShowEmptyOpeningMessage" }, 200);
361
+ K({ type: "ShowEmptyOpeningMessage" }, 200);
362
362
  else {
363
363
  const z = s?.prizeText[o] || s?.prizeText["*"], $ = s?.name[o] || s?.name["*"];
364
- Z(), u(
364
+ Z(), K(
365
365
  {
366
366
  type: "ShowSuccessOpeningMessage",
367
367
  data: z || $
@@ -376,7 +376,7 @@ function LA(A, B, g) {
376
376
  };
377
377
  pA({
378
378
  HideDialog: () => {
379
- g(3, l = V), g(4, K = !1), F.set(0), n.set(0), p.set(0.1);
379
+ g(3, l = V), g(4, u = !1), F.set(0), n.set(0), p.set(0.1);
380
380
  }
381
381
  });
382
382
  function wA(E) {
@@ -397,7 +397,7 @@ function LA(A, B, g) {
397
397
  o,
398
398
  D,
399
399
  l,
400
- K,
400
+ u,
401
401
  I,
402
402
  C,
403
403
  Q,