@everymatrix/mini-games-hub 0.2.7 → 0.2.9

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 (84) hide show
  1. package/components/ArrowLeftIcon-BBQbSgPj.js +20 -0
  2. package/components/ArrowLeftIcon-CK2Rm6IW.cjs +1 -0
  3. package/components/ArrowLeftIcon-CbMwJALt.js +20 -0
  4. package/components/ArrowLeftIcon-Ls7P40Uk.cjs +1 -0
  5. package/components/CoinFlip-CWv6r8u1.cjs +1 -0
  6. package/components/CoinFlip-CaRkaWEA.cjs +1 -0
  7. package/components/CoinFlip-D3kH_y8b.js +390 -0
  8. package/components/CoinFlip-hKLoCmvJ.js +355 -0
  9. package/components/CoinRoyale-Cr3FMU-f.js +998 -0
  10. package/components/CoinRoyale-DcXB88TG.cjs +734 -0
  11. package/components/CoinRoyale-HFE5DCkQ.js +1036 -0
  12. package/components/CoinRoyale-mXlKdlwT.cjs +734 -0
  13. package/components/{GameCard-vgoswSWl.cjs → GameCard-BPoaBZ8h.cjs} +3 -3
  14. package/components/{GameCard-C-zSlvo1.cjs → GameCard-DfVe9CgG.cjs} +3 -3
  15. package/components/{GameCard-B3YKo9k6.js → GameCard-cglVYPLz.js} +36 -36
  16. package/components/{GameCard-BQ6hFy67.js → GameCard-grRDxpTz.js} +39 -36
  17. package/components/{MiniGamesHub-C0q9vZFD.js → MiniGamesHub-CxhilLzF.js} +342 -206
  18. package/components/{MiniGamesHub-D5Y5OYt-.js → MiniGamesHub-DUICCoYd.js} +301 -168
  19. package/components/MiniGamesHub-DW82s9I9.cjs +79 -0
  20. package/components/MiniGamesHub-uuQkACzs.cjs +79 -0
  21. package/components/{WheelOfFortune-u6v6YLc5.js → WheelOfFortune-CsDXFzBd.js} +146 -138
  22. package/components/{WheelOfFortune-BJ9iMr53.cjs → WheelOfFortune-DGY-q1LW.cjs} +2 -2
  23. package/components/{WheelOfFortune-2WKhJAdZ.cjs → WheelOfFortune-DfN31a-S.cjs} +2 -2
  24. package/components/{WheelOfFortune-DC57_QGF.js → WheelOfFortune-MIjCRllT.js} +186 -175
  25. package/components/WheelOfFortuneDrawResults-CKN979BS.js +261 -0
  26. package/components/WheelOfFortuneDrawResults-CmfWdZz0.cjs +1 -0
  27. package/components/WheelOfFortuneDrawResults-Di5DQfhF.cjs +1 -0
  28. package/components/WheelOfFortuneDrawResults-Dr-xmM_N.js +286 -0
  29. package/components/WheelOfFortuneHistory-BL4DV0im.cjs +13 -0
  30. package/components/WheelOfFortuneHistory-CqRO9Oee.cjs +13 -0
  31. package/components/WheelOfFortuneHistory-DFn33FhJ.js +222 -0
  32. package/components/WheelOfFortuneHistory-DvqIUld0.js +223 -0
  33. package/components/WheelOfFortuneRules-BxMUpX5_.js +120 -0
  34. package/components/WheelOfFortuneRules-CnS5xZ_B.js +109 -0
  35. package/components/WheelOfFortuneRules-Cu5CBrl6.cjs +5 -0
  36. package/components/WheelOfFortuneRules-UZj0hVWC.cjs +5 -0
  37. package/components/{WheelOfFortuneWheel-D_tfW-rK.js → WheelOfFortuneWheel-C694AcSr.js} +405 -380
  38. package/components/WheelOfFortuneWheel-CvGaRYgu.cjs +3 -0
  39. package/components/WheelOfFortuneWheel-Dxh6wKCh.cjs +3 -0
  40. package/components/{WheelOfFortuneWheel-DmTRvIN6.js → WheelOfFortuneWheel-cBswACGf.js} +545 -519
  41. package/components/bg-scene-Bz42V1FW.cjs +1 -0
  42. package/components/bg-scene-DpHgKCHj.js +4 -0
  43. package/components/coin-heads-BuJOLpyg.cjs +1 -0
  44. package/components/coin-heads-loqcEtH2.js +4 -0
  45. package/components/coin-tails-20vJmhwv.cjs +1 -0
  46. package/components/coin-tails-BTbsTwkz.js +4 -0
  47. package/components/{constants-BYsDpbRv.js → constants-BDSd8ptj.js} +25 -15
  48. package/components/constants-CoPH35Re.cjs +1 -0
  49. package/components/{sparkles-BnriHiyw.cjs → sparkles-9YGw1xiU.cjs} +1 -1
  50. package/components/{sparkles-DplvhrIm.cjs → sparkles-B3XdFovy.cjs} +1 -1
  51. package/components/{sparkles-CSfeD2Zu.js → sparkles-BWGIWWDc.js} +1 -1
  52. package/components/{sparkles-CTrQ372y.js → sparkles-uxV1OTbN.js} +1 -1
  53. package/components/{spin-controller-CIshWmlA.cjs → spin-controller-BXcblJt7.cjs} +1 -1
  54. package/components/{spin-controller-HS3m99tB.cjs → spin-controller-BzO5YNSN.cjs} +1 -1
  55. package/components/{spin-controller-BuBkKrNR.js → spin-controller-CZWa2gmm.js} +2 -2
  56. package/components/{spin-controller-REPdRwaB.js → spin-controller-D3hdDnQ0.js} +2 -2
  57. package/components/{utils-B86dsoC-.js → utils-3LNftCeZ.js} +976 -958
  58. package/components/utils-BxNmJ6YA.cjs +3 -0
  59. package/components/{utils-BtFS7k_l.js → utils-DGrEJJ_K.js} +1063 -1045
  60. package/components/utils-DyVEmMSf.cjs +3 -0
  61. package/es2015/mini-games-hub.cjs +1 -1
  62. package/es2015/mini-games-hub.js +1 -1
  63. package/esnext/mini-games-hub.cjs +1 -1
  64. package/esnext/mini-games-hub.js +1 -1
  65. package/package.json +1 -1
  66. package/components/MiniGamesHub-CfiDjCz7.cjs +0 -16
  67. package/components/MiniGamesHub-DYwmUNTy.cjs +0 -16
  68. package/components/WheelOfFortuneDrawResults-BKkTmsVC.cjs +0 -1
  69. package/components/WheelOfFortuneDrawResults-D3rgrYi_.js +0 -254
  70. package/components/WheelOfFortuneDrawResults-DTufAeXD.cjs +0 -1
  71. package/components/WheelOfFortuneDrawResults-gx2xkUtF.js +0 -279
  72. package/components/WheelOfFortuneHistory-B-Yadw5p.js +0 -213
  73. package/components/WheelOfFortuneHistory-DdXxYW6M.cjs +0 -12
  74. package/components/WheelOfFortuneHistory-DhFZUmGd.cjs +0 -12
  75. package/components/WheelOfFortuneHistory-IM5H-der.js +0 -213
  76. package/components/WheelOfFortuneRules-BM75DT61.js +0 -107
  77. package/components/WheelOfFortuneRules-D-xnWFIU.cjs +0 -3
  78. package/components/WheelOfFortuneRules-DkQOlpqR.js +0 -118
  79. package/components/WheelOfFortuneRules-_a2c-LEy.cjs +0 -3
  80. package/components/WheelOfFortuneWheel-CUs0nOjA.cjs +0 -3
  81. package/components/WheelOfFortuneWheel-D9nXwM0H.cjs +0 -3
  82. package/components/constants-DM6Vdc6Z.cjs +0 -1
  83. package/components/utils-By_D2O28.cjs +0 -3
  84. package/components/utils-CSIl6eA7.cjs +0 -3
@@ -1,39 +1,39 @@
1
- var Ge = Object.defineProperty, Le = Object.defineProperties;
2
- var Re = Object.getOwnPropertyDescriptors;
3
- var pe = Object.getOwnPropertySymbols;
4
- var Me = Object.prototype.hasOwnProperty, Ye = Object.prototype.propertyIsEnumerable;
5
- var ce = (l, r, o) => r in l ? Ge(l, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : l[r] = o, K = (l, r) => {
6
- for (var o in r || (r = {}))
7
- Me.call(r, o) && ce(l, o, r[o]);
8
- if (pe)
9
- for (var o of pe(r))
10
- Ye.call(r, o) && ce(l, o, r[o]);
1
+ var Le = Object.defineProperty, Re = Object.defineProperties;
2
+ var Me = Object.getOwnPropertyDescriptors;
3
+ var ce = Object.getOwnPropertySymbols;
4
+ var Ye = Object.prototype.hasOwnProperty, Ie = Object.prototype.propertyIsEnumerable;
5
+ var de = (l, r, a) => r in l ? Le(l, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : l[r] = a, q = (l, r) => {
6
+ for (var a in r || (r = {}))
7
+ Ye.call(r, a) && de(l, a, r[a]);
8
+ if (ce)
9
+ for (var a of ce(r))
10
+ Ie.call(r, a) && de(l, a, r[a]);
11
11
  return l;
12
- }, q = (l, r) => Le(l, Re(r));
13
- var de = (l, r, o) => new Promise((I, S) => {
14
- var E = (s) => {
12
+ }, J = (l, r) => Re(l, Me(r));
13
+ var ge = (l, r, a) => new Promise((E, C) => {
14
+ var D = (s) => {
15
15
  try {
16
- c(o.next(s));
17
- } catch (h) {
18
- S(h);
16
+ c(a.next(s));
17
+ } catch (w) {
18
+ C(w);
19
19
  }
20
- }, a = (s) => {
20
+ }, o = (s) => {
21
21
  try {
22
- c(o.throw(s));
23
- } catch (h) {
24
- S(h);
22
+ c(a.throw(s));
23
+ } catch (w) {
24
+ C(w);
25
25
  }
26
- }, c = (s) => s.done ? I(s.value) : Promise.resolve(s.value).then(E, a);
27
- c((o = o.apply(l, r)).next());
26
+ }, c = (s) => s.done ? E(s.value) : Promise.resolve(s.value).then(D, o);
27
+ c((a = a.apply(l, r)).next());
28
28
  });
29
- import { d as Ie, c as Ee, a as De, v as Xe, p as f, o as He, i as ge, g as Oe, W as Ze, m as _, j as R, u as Ue, n as fe, b as J, f as Q, s as Ve, e as Ke, q as qe, w as Je } from "./WheelOfFortuneWheel-DmTRvIN6.js";
30
- import { a5 as Ne, b0 as Qe, b1 as v, aQ as $e, ad as en, L as n, aJ as p, b3 as k, b6 as M, ar as N, a9 as nn, bb as Y, b4 as tn, aU as m, bk as rn, b9 as A, ba as C } from "./utils-BtFS7k_l.js";
31
- import { W as an } from "./WheelOfFortuneHistory-IM5H-der.js";
32
- import { W as on } from "./WheelOfFortuneDrawResults-gx2xkUtF.js";
33
- import { W as sn } from "./WheelOfFortuneRules-DkQOlpqR.js";
34
- import { p as ln } from "./constants-BYsDpbRv.js";
35
- var pn = Q('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), cn = Q("<button> </button>"), dn = Q('<div><!> <button><svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-17ly5gn"><path d="M6.41602 0.508789C6.52096 0.508793 6.59652 0.539241 6.66797 0.602539C6.7386 0.67644 6.76557 0.747068 6.76562 0.837891C6.76562 0.932337 6.7377 1.00571 6.66113 1.08203H6.66016L2.52344 5.21777L1.6543 6.08691H12.3633C12.475 6.08691 12.5456 6.11894 12.6084 6.18164C12.6712 6.24445 12.7034 6.31429 12.7031 6.4248C12.7029 6.53664 12.67 6.60779 12.6064 6.67188C12.5449 6.73387 12.4767 6.76611 12.3662 6.76562H1.6543L2.52344 7.63477L6.68066 11.791C6.75777 11.8681 6.77865 11.933 6.77637 12.0098C6.77383 12.0944 6.7457 12.1683 6.66797 12.249C6.58857 12.3195 6.50864 12.3512 6.40918 12.3545C6.33349 12.357 6.26929 12.3368 6.19238 12.2598L0.592773 6.66016C0.553631 6.62101 0.537222 6.59146 0.530273 6.57227C0.516661 6.53445 0.508264 6.48865 0.508789 6.43164C0.509411 6.36947 0.519283 6.31813 0.53418 6.27539C0.539753 6.25947 0.553255 6.23167 0.591797 6.19336L6.19238 0.592773C6.24602 0.539241 6.30834 0.508789 6.41602 0.508789Z" stroke="white" stroke-width="1.018" class="svelte-17ly5gn"></path></svg> <p class="svelte-17ly5gn"> </p></button> <div><h3 class="svelte-17ly5gn"> </h3> <p class="svelte-17ly5gn"> </p></div> <div></div> <div class="svelte-17ly5gn"><!></div> <!></div>');
36
- const gn = {
29
+ import { d as Ee, c as De, a as Xe, v as He, p as f, o as Oe, i as fe, h as Ze, W as Ue, q as z, k as Y, u as Ve, r as me, e as N, f as $, s as Ke, g as qe, m as Je, w as Ne } from "./WheelOfFortuneWheel-cBswACGf.js";
30
+ import { a5 as Qe, b0 as $e, b1 as y, aQ as en, ad as nn, L as n, aJ as p, b3 as v, b6 as I, ar as Q, a9 as tn, bb as B, b4 as rn, b7 as A, aU as m, bk as an, ba as S } from "./utils-DGrEJJ_K.js";
31
+ import { W as on } from "./WheelOfFortuneHistory-DvqIUld0.js";
32
+ import { W as sn } from "./WheelOfFortuneDrawResults-Dr-xmM_N.js";
33
+ import { W as ln } from "./WheelOfFortuneRules-BxMUpX5_.js";
34
+ import { p as pn } from "./constants-BDSd8ptj.js";
35
+ var cn = $('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), dn = $("<button> </button>"), gn = $('<div><!> <button><svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-17ly5gn"><path d="M6.41602 0.508789C6.52096 0.508793 6.59652 0.539241 6.66797 0.602539C6.7386 0.67644 6.76557 0.747068 6.76562 0.837891C6.76562 0.932337 6.7377 1.00571 6.66113 1.08203H6.66016L2.52344 5.21777L1.6543 6.08691H12.3633C12.475 6.08691 12.5456 6.11894 12.6084 6.18164C12.6712 6.24445 12.7034 6.31429 12.7031 6.4248C12.7029 6.53664 12.67 6.60779 12.6064 6.67188C12.5449 6.73387 12.4767 6.76611 12.3662 6.76562H1.6543L2.52344 7.63477L6.68066 11.791C6.75777 11.8681 6.77865 11.933 6.77637 12.0098C6.77383 12.0944 6.7457 12.1683 6.66797 12.249C6.58857 12.3195 6.50864 12.3512 6.40918 12.3545C6.33349 12.357 6.26929 12.3368 6.19238 12.2598L0.592773 6.66016C0.553631 6.62101 0.537222 6.59146 0.530273 6.57227C0.516661 6.53445 0.508264 6.48865 0.508789 6.43164C0.509411 6.36947 0.519283 6.31813 0.53418 6.27539C0.539753 6.25947 0.553255 6.23167 0.591797 6.19336L6.19238 0.592773C6.24602 0.539241 6.30834 0.508789 6.41602 0.508789Z" stroke="white" stroke-width="1.018" class="svelte-17ly5gn"></path></svg> <p class="svelte-17ly5gn"> </p></button> <div><h3 class="svelte-17ly5gn"> </h3> <p class="svelte-17ly5gn"> </p></div> <div></div> <div class="svelte-17ly5gn"><!></div> <!></div>');
36
+ const fn = {
37
37
  hash: "svelte-17ly5gn",
38
38
  code: `@keyframes svelte-17ly5gn-wheelBob {
39
39
  0%, 100% {
@@ -653,46 +653,57 @@ const gn = {
653
653
  animation: none;}
654
654
  }`
655
655
  };
656
- function fn(l, r) {
657
- Ne(r, !0), De(l, gn);
658
- const o = () => Ve(tn, "$_", I), [I, S] = Ke();
659
- Qe.extend(Xe);
660
- const E = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", a = f(r, "program", 7, null), c = f(r, "endpoint", 7, null), s = f(r, "session", 7, null), h = f(r, "outerWheelAsset", 7, null), D = f(r, "wheelButtonAsset", 7, null), X = f(r, "backgroundVideoAsset", 7, null), H = f(r, "language", 7, "en"), O = f(r, "showBackButton", 7, !0), w = f(r, "liteMode", 7, !1), x = Y(() => !c() || !a()), me = Y(() => {
656
+ function mn(l, r) {
657
+ Qe(r, !0), Xe(l, fn);
658
+ const a = () => Ke(rn, "$_", E), [E, C] = qe();
659
+ $e.extend(He);
660
+ const D = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", o = f(r, "program", 7, null), c = f(r, "endpoint", 7, null), s = f(r, "session", 7, null), w = f(r, "outerWheelAsset", 7, null), X = f(r, "wheelButtonAsset", 7, null), H = f(r, "backgroundVideoAsset", 7, null), O = f(r, "language", 7, "en"), Z = f(r, "showBackButton", 7, !0), x = f(r, "liteMode", 7, !1), b = B(() => !c() || !o()), P = B(() => {
661
661
  var e, t;
662
- return !n(x) && ((t = (e = a()) == null ? void 0 : e.remainingTimes) != null ? t : 0) > 0;
663
- }), be = Y(() => {
662
+ return n(b) ? null : (t = (e = o()) == null ? void 0 : e.remainingTimes) != null ? t : null;
663
+ }), be = B(() => {
664
664
  var e, t;
665
- return n(x) ? ln : (t = (e = a()) == null ? void 0 : e.partitions) != null ? t : [];
665
+ return !n(b) && ((t = (e = o()) == null ? void 0 : e.remainingTimes) != null ? t : 0) > 0;
666
+ }), ue = B(() => {
667
+ var e, t;
668
+ return n(b) ? pn : (t = (e = o()) == null ? void 0 : e.partitions) != null ? t : [];
666
669
  }), g = ["history", "play", "rules"];
667
- let b = v($e(g[1]));
668
- const ue = (e) => {
669
- var t, i, d, y;
670
- e !== n(b) && (e === g[0] ? window.postMessage(
670
+ let u = y(en(g[1]));
671
+ const he = (e) => {
672
+ var t, i, d;
673
+ e !== n(u) && (e === g[0] ? window.postMessage(
671
674
  {
672
675
  type: "event_wof_history_click",
673
- name: ((t = a()) == null ? void 0 : t.name) || null
676
+ name: ((t = o()) == null ? void 0 : t.name) || null,
677
+ availableSpins: n(P)
678
+ },
679
+ window.location.href
680
+ ) : e === g[2] ? window.postMessage(
681
+ {
682
+ type: "event_wof_rules_click",
683
+ name: ((i = o()) == null ? void 0 : i.name) || null,
684
+ availableSpins: n(P)
674
685
  },
675
686
  window.location.href
676
- ) : e === g[2] ? window.postMessage({ type: "event_wof_rules_click", name: ((i = a()) == null ? void 0 : i.name) || null }, window.location.href) : window.postMessage(
687
+ ) : window.postMessage(
677
688
  {
678
689
  type: "event_wof_accessed",
679
- isUserLoggedIn: !n(x),
680
- name: ((d = a()) == null ? void 0 : d.name) || null,
681
- availableSpins: ((y = a()) == null ? void 0 : y.remainingTimes) || null
690
+ isUserLoggedIn: !n(b),
691
+ name: ((d = o()) == null ? void 0 : d.name) || null,
692
+ availableSpins: n(P)
682
693
  },
683
694
  window.location.href
684
- ), p(Z, !1), p(b, e, !0));
695
+ ), p(U, !1), p(u, e, !0));
685
696
  };
686
- let u = v(null), P = v(!1), Z = v(!1), U = v(!1), T = v(!1), W = v(!1);
687
- en(() => {
688
- if (!w()) {
689
- if (n(P))
690
- p(T, !0), p(W, !1);
691
- else if (n(T)) {
692
- p(W, !0);
697
+ let h = y(null), W = y(!1), U = y(!1), V = y(!1), F = y(!1), G = y(!1);
698
+ nn(() => {
699
+ if (!x()) {
700
+ if (n(W))
701
+ p(F, !0), p(G, !1);
702
+ else if (n(F)) {
703
+ p(G, !0);
693
704
  const e = setTimeout(
694
705
  () => {
695
- p(T, !1), p(W, !1);
706
+ p(F, !1), p(G, !1);
696
707
  },
697
708
  350
698
709
  );
@@ -700,57 +711,57 @@ function fn(l, r) {
700
711
  }
701
712
  }
702
713
  });
703
- const he = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), we = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), $ = () => de(this, null, function* () {
714
+ const we = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), xe = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), ee = () => ge(this, null, function* () {
704
715
  var i, d;
705
- if (!((i = a()) != null && i.id) || !c()) return;
716
+ if (!((i = o()) != null && i.id) || !c()) return;
706
717
  const e = new URL(`${c()}/v1/wof/remainingTimes`), t = new Headers();
707
- s() && t.append("X-SessionId", s()), e.searchParams.append("filter", `ProgramId[]=${a().id}`);
718
+ s() && t.append("X-SessionId", s()), e.searchParams.append("filter", `ProgramId[]=${o().id}`);
708
719
  try {
709
- const z = yield (yield fetch(e, { method: "GET", headers: t })).json();
710
- let V = 0;
711
- if (((d = z == null ? void 0 : z.items) == null ? void 0 : d.length) > 0) {
712
- const le = z.items.find((Fe) => Fe.programId === a().id);
713
- le && (V = +le.remainingTimes || 0);
720
+ const k = yield (yield fetch(e, { method: "GET", headers: t })).json();
721
+ let K = 0;
722
+ if (((d = k == null ? void 0 : k.items) == null ? void 0 : d.length) > 0) {
723
+ const pe = k.items.find((je) => je.programId === o().id);
724
+ pe && (K = +pe.remainingTimes || 0);
714
725
  }
715
- const je = rn(q(K({}, a()), {
716
- remainingTimes: V,
717
- current: q(K({}, a().current), { remainingTimes: V })
726
+ const Te = an(J(q({}, o()), {
727
+ remainingTimes: K,
728
+ current: J(q({}, o().current), { remainingTimes: K })
718
729
  }));
719
- window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: je }, "*");
720
- } catch (y) {
721
- console.log(y);
730
+ window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: Te }, "*");
731
+ } catch (M) {
732
+ console.log(M);
722
733
  } finally {
723
- p(U, !1);
734
+ p(V, !1);
724
735
  }
725
- }), ee = (e) => {
736
+ }), ne = (e) => {
726
737
  if (e.data)
727
738
  switch (e.data.type) {
728
739
  case "SpinAgain":
729
740
  case "BackToWheel":
730
- p(u, null), e.data.skipFetch ? p(U, !0) : $();
741
+ p(h, null), e.data.skipFetch ? p(V, !0) : ee();
731
742
  break;
732
743
  }
733
744
  };
734
- He(() => {
735
- var e, t;
745
+ Oe(() => {
746
+ var e;
736
747
  return window.postMessage(
737
748
  {
738
749
  type: "event_wof_accessed",
739
- isUserLoggedIn: !n(x),
740
- name: ((e = a()) == null ? void 0 : e.name) || null,
741
- availableSpins: ((t = a()) == null ? void 0 : t.remainingTimes) || null
750
+ isUserLoggedIn: !n(b),
751
+ name: ((e = o()) == null ? void 0 : e.name) || null,
752
+ availableSpins: n(P)
742
753
  },
743
754
  window.location.href
744
- ), window.addEventListener("message", ee), () => {
745
- window.removeEventListener("message", ee);
755
+ ), window.addEventListener("message", ne), () => {
756
+ window.removeEventListener("message", ne);
746
757
  };
747
758
  });
748
- var xe = {
759
+ var ye = {
749
760
  get program() {
750
- return a();
761
+ return o();
751
762
  },
752
763
  set program(e = null) {
753
- a(e), m();
764
+ o(e), m();
754
765
  },
755
766
  get endpoint() {
756
767
  return c();
@@ -765,85 +776,85 @@ function fn(l, r) {
765
776
  s(e), m();
766
777
  },
767
778
  get outerWheelAsset() {
768
- return h();
779
+ return w();
769
780
  },
770
781
  set outerWheelAsset(e = null) {
771
- h(e), m();
782
+ w(e), m();
772
783
  },
773
784
  get wheelButtonAsset() {
774
- return D();
785
+ return X();
775
786
  },
776
787
  set wheelButtonAsset(e = null) {
777
- D(e), m();
788
+ X(e), m();
778
789
  },
779
790
  get backgroundVideoAsset() {
780
- return X();
791
+ return H();
781
792
  },
782
793
  set backgroundVideoAsset(e = null) {
783
- X(e), m();
794
+ H(e), m();
784
795
  },
785
796
  get language() {
786
- return H();
797
+ return O();
787
798
  },
788
799
  set language(e = "en") {
789
- H(e), m();
800
+ O(e), m();
790
801
  },
791
802
  get showBackButton() {
792
- return O();
803
+ return Z();
793
804
  },
794
805
  set showBackButton(e = !0) {
795
- O(e), m();
806
+ Z(e), m();
796
807
  },
797
808
  get liteMode() {
798
- return w();
809
+ return x();
799
810
  },
800
811
  set liteMode(e = !1) {
801
- w(e), m();
812
+ x(e), m();
802
813
  }
803
- }, j = dn();
804
- let ne;
805
- var te = M(j);
814
+ }, T = gn();
815
+ let te;
816
+ var re = I(T);
806
817
  {
807
- var ye = (e) => {
808
- var t = pn();
818
+ var ve = (e) => {
819
+ var t = cn();
809
820
  let i;
810
821
  t.muted = !0;
811
822
  var d = A(t);
812
- N(() => {
813
- i = _(t, 1, "wheel-video-background svelte-17ly5gn", null, i, { "is-ready": n(Z) }), qe(d, "src", X() || E);
814
- }), Je("canplay", t, () => p(Z, !0)), J(e, t);
823
+ Q(() => {
824
+ i = z(t, 1, "wheel-video-background svelte-17ly5gn", null, i, { "is-ready": n(U) }), Je(d, "src", H() || D);
825
+ }), Ne("canplay", t, () => p(U, !0)), N(e, t);
815
826
  };
816
- ge(te, (e) => {
817
- !w() && n(b) === g[1] && e(ye);
827
+ fe(re, (e) => {
828
+ !x() && n(u) === g[1] && e(ve);
818
829
  });
819
830
  }
820
- var B = k(te, 2);
821
- let re;
822
- var ve = k(M(B), 2), ke = A(ve, !0);
823
- C(B);
824
- var F = k(B, 2);
831
+ var _ = v(re, 2);
825
832
  let ae;
826
- var oe = M(F), ze = A(oe, !0), _e = k(oe, 2), Be = A(_e, !0);
827
- C(F);
828
- var G = k(F, 2);
829
- let ie;
830
- Oe(G, 20, () => g, (e) => e, (e, t) => {
831
- var i = cn();
833
+ var ke = v(I(_), 2), ze = A(ke, !0);
834
+ S(_);
835
+ var j = v(_, 2);
836
+ let oe;
837
+ var ie = I(j), _e = A(ie, !0), Be = v(ie, 2), Ae = A(Be, !0);
838
+ S(j);
839
+ var L = v(j, 2);
840
+ let se;
841
+ Ze(L, 20, () => g, (e) => e, (e, t) => {
842
+ var i = dn();
832
843
  let d;
833
- var y = A(i, !0);
834
- N(
835
- (z) => {
836
- d = _(i, 1, "tab svelte-17ly5gn", null, d, { active: n(b) === t }), R(y, z);
844
+ var M = A(i, !0);
845
+ Q(
846
+ (k) => {
847
+ d = z(i, 1, "tab svelte-17ly5gn", null, d, { active: n(u) === t }), Y(M, k);
837
848
  },
838
- [() => o()(t)]
839
- ), fe("click", i, () => ue(t)), J(e, i);
840
- }), C(G);
841
- var L = k(G, 2);
842
- let se;
843
- var Ae = M(L);
844
- Ze(Ae, {
849
+ [() => a()(t)]
850
+ ), me("click", i, () => he(t)), N(e, i);
851
+ }), S(L);
852
+ var R = v(L, 2);
853
+ let le;
854
+ var Se = I(R);
855
+ Ue(Se, {
845
856
  get program() {
846
- return a();
857
+ return o();
847
858
  },
848
859
  get endpoint() {
849
860
  return c();
@@ -852,46 +863,46 @@ function fn(l, r) {
852
863
  return s();
853
864
  },
854
865
  get outerWheelAsset() {
855
- return h();
866
+ return w();
856
867
  },
857
868
  get wheelButtonAsset() {
858
- return D();
869
+ return X();
859
870
  },
860
871
  get wheelSlices() {
861
- return n(be);
872
+ return n(ue);
862
873
  },
863
874
  get isPlaceholder() {
864
- return n(x);
875
+ return n(b);
865
876
  },
866
877
  get isWheelAvailable() {
867
- return n(me);
878
+ return n(be);
868
879
  },
869
880
  get liteMode() {
870
- return w();
881
+ return x();
871
882
  },
872
883
  get remainingTimesLoading() {
873
- return n(U);
884
+ return n(V);
874
885
  },
875
- onLogin: he,
886
+ onLogin: we,
876
887
  get spinResults() {
877
- return n(u);
888
+ return n(h);
878
889
  },
879
890
  set spinResults(e) {
880
- p(u, e, !0);
891
+ p(h, e, !0);
881
892
  },
882
893
  get spinActive() {
883
- return n(P);
894
+ return n(W);
884
895
  },
885
896
  set spinActive(e) {
886
- p(P, e, !0);
897
+ p(W, e, !0);
887
898
  }
888
- }), C(L);
889
- var Ce = k(L, 2);
899
+ }), S(R);
900
+ var Ce = v(R, 2);
890
901
  {
891
- var Se = (e) => {
892
- on(e, {
902
+ var Pe = (e) => {
903
+ sn(e, {
893
904
  get result() {
894
- return n(u);
905
+ return n(h);
895
906
  },
896
907
  get endpoint() {
897
908
  return c();
@@ -900,17 +911,17 @@ function fn(l, r) {
900
911
  return s();
901
912
  },
902
913
  get liteMode() {
903
- return w();
914
+ return x();
904
915
  },
905
- onFetchRemainingTimes: $
916
+ onFetchRemainingTimes: ee
906
917
  });
907
- }, Pe = (e) => {
918
+ }, We = (e) => {
908
919
  {
909
- let t = Y(() => {
920
+ let t = B(() => {
910
921
  var i;
911
- return (i = a()) == null ? void 0 : i.id;
922
+ return (i = o()) == null ? void 0 : i.id;
912
923
  });
913
- an(e, {
924
+ on(e, {
914
925
  get programId() {
915
926
  return n(t);
916
927
  },
@@ -922,43 +933,43 @@ function fn(l, r) {
922
933
  }
923
934
  });
924
935
  }
925
- }, Te = (e) => {
926
- sn(e, {
936
+ }, Fe = (e) => {
937
+ ln(e, {
927
938
  get program() {
928
- return a();
939
+ return o();
929
940
  },
930
941
  get language() {
931
- return H();
942
+ return O();
932
943
  }
933
944
  });
934
945
  };
935
- ge(Ce, (e) => {
936
- n(u) ? e(Se) : n(b) === g[0] ? e(Pe, 1) : n(b) === g[2] && e(Te, 2);
946
+ fe(Ce, (e) => {
947
+ n(h) ? e(Pe) : n(u) === g[0] ? e(We, 1) : n(u) === g[2] && e(Fe, 2);
937
948
  });
938
949
  }
939
- C(j), N(
950
+ S(T), Q(
940
951
  (e, t, i) => {
941
- ne = _(j, 1, "wheel-content svelte-17ly5gn", null, ne, {
942
- "is-spin-blocking": n(P),
943
- "is-spin-fullscreen": n(T),
944
- "is-spin-exiting": n(W),
945
- "wheel-background-halo": w() && n(b) === g[1]
946
- }), re = _(B, 1, "back-button-container svelte-17ly5gn", null, re, { hidden: n(x) || !O() }), R(ke, e), ae = _(F, 1, "wof-title svelte-17ly5gn", null, ae, { hidden: n(u) }), R(ze, t), R(Be, i), ie = _(G, 1, "wof-tabs svelte-17ly5gn", null, ie, { hidden: n(x) || n(u) }), se = Ue(L, "", se, {
947
- display: n(b) !== g[1] || n(u) ? "none" : "contents"
952
+ te = z(T, 1, "wheel-content svelte-17ly5gn", null, te, {
953
+ "is-spin-blocking": n(W),
954
+ "is-spin-fullscreen": n(F),
955
+ "is-spin-exiting": n(G),
956
+ "wheel-background-halo": x() && n(u) === g[1]
957
+ }), ae = z(_, 1, "back-button-container svelte-17ly5gn", null, ae, { hidden: n(b) || !Z() }), Y(ze, e), oe = z(j, 1, "wof-title svelte-17ly5gn", null, oe, { hidden: n(h) }), Y(_e, t), Y(Ae, i), se = z(L, 1, "wof-tabs svelte-17ly5gn", null, se, { hidden: n(b) || n(h) }), le = Ve(R, "", le, {
958
+ display: n(u) !== g[1] || n(h) ? "none" : "contents"
948
959
  });
949
960
  },
950
961
  [
951
- () => o()("backToHub"),
952
- () => o()("wofTitle"),
953
- () => o()("wofSubtitle")
962
+ () => a()("backToHub"),
963
+ () => a()("wofTitle"),
964
+ () => a()("wofSubtitle")
954
965
  ]
955
- ), fe("click", B, we), J(l, j);
956
- var We = nn(xe);
957
- return S(), We;
966
+ ), me("click", _, xe), N(l, T);
967
+ var Ge = tn(ye);
968
+ return C(), Ge;
958
969
  }
959
- Ie(["click"]);
960
- customElements.define("wheel-of-fortune", Ee(
961
- fn,
970
+ Ee(["click"]);
971
+ customElements.define("wheel-of-fortune", De(
972
+ mn,
962
973
  {
963
974
  program: {},
964
975
  endpoint: {},
@@ -974,5 +985,5 @@ customElements.define("wheel-of-fortune", Ee(
974
985
  []
975
986
  ));
976
987
  export {
977
- fn as W
988
+ mn as W
978
989
  };