@everymatrix/mini-games-hub 0.1.11 → 0.1.12

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 (38) hide show
  1. package/components/{MiniGamesHub-DhyHje6i.js → MiniGamesHub-4Wuwyw8q.js} +38 -33
  2. package/components/MiniGamesHub-C2510DM7.cjs +94 -0
  3. package/components/{MiniGamesHub-CyrBtxoA.js → MiniGamesHub-C3xyZRdn.js} +2 -2
  4. package/components/MiniGamesHub-CQIi4Jso.js +1399 -0
  5. package/components/{MiniGamesHub-A_QU55Ox.js → MiniGamesHub-CSZ3An74.js} +50 -45
  6. package/components/MiniGamesHub-CuvJDQTm.js +1379 -0
  7. package/components/{MiniGamesHub-Bbot9Iek.js → MiniGamesHub-DFNKphI6.js} +2 -2
  8. package/components/{MiniGamesHub-IU3nBLWZ.cjs → MiniGamesHub-DeVy4J4_.cjs} +2 -2
  9. package/components/MiniGamesHub-Du6B-YVK.cjs +94 -0
  10. package/components/{WheelOfFortune-C3QPcM9_.js → WheelOfFortune-BV0VEpvD.js} +143 -124
  11. package/components/{WheelOfFortune-Dq5uFse9.cjs → WheelOfFortune-BWKtsKH4.cjs} +6 -5
  12. package/components/{WheelOfFortune-DIKqqSN0.js → WheelOfFortune-B_ZNJW34.js} +190 -168
  13. package/components/{WheelOfFortune-DszXhJZX.cjs → WheelOfFortune-DgJ0luD8.cjs} +2 -2
  14. package/components/{WheelOfFortune-DkHRFbuq.js → WheelOfFortune-Dr-yB2xY.js} +89 -78
  15. package/components/{WheelOfFortune-BY3MYTwt.js → WheelOfFortune-p9qTycTU.js} +47 -39
  16. package/es2015/mini-games-hub.cjs +1 -1
  17. package/es2015/mini-games-hub.js +1 -1
  18. package/esnext/mini-games-hub.js +1 -1
  19. package/package.json +1 -1
  20. package/components/GameCard-B5IhlV0M.js +0 -56
  21. package/components/GameCard-Ct6vyiQG.cjs +0 -3
  22. package/components/GameCard-uj5ulL7F.js +0 -56
  23. package/components/MiniGamesHub-D7WWtj1H.cjs +0 -94
  24. package/components/WheelOfFortuneDrawResults-BLYsEy7G.cjs +0 -1
  25. package/components/WheelOfFortuneDrawResults-BOTcT7OI.js +0 -259
  26. package/components/WheelOfFortuneDrawResults-CL3AjYJb.js +0 -284
  27. package/components/WheelOfFortuneHistory-BbRdBjji.js +0 -232
  28. package/components/WheelOfFortuneHistory-CupBnftz.js +0 -232
  29. package/components/WheelOfFortuneHistory-D0a33HzR.cjs +0 -13
  30. package/components/WheelOfFortuneRules-CIeBfSfY.js +0 -128
  31. package/components/WheelOfFortuneRules-CkNKWZhj.js +0 -117
  32. package/components/WheelOfFortuneRules-DHwDQaVu.cjs +0 -5
  33. package/components/WheelOfFortuneWheel-B6_1ieZG.js +0 -1875
  34. package/components/WheelOfFortuneWheel-BHsFZqlw.cjs +0 -3
  35. package/components/WheelOfFortuneWheel-EAdiCZNZ.js +0 -1945
  36. package/components/utils-B7DHb9g0.cjs +0 -3
  37. package/components/utils-B7FniaI2.js +0 -6043
  38. package/components/utils-CSOcFUAz.js +0 -5995
@@ -1,33 +1,33 @@
1
1
  var Ge = Object.defineProperty, je = Object.defineProperties;
2
- var Re = Object.getOwnPropertyDescriptors;
2
+ var Le = Object.getOwnPropertyDescriptors;
3
3
  var ce = Object.getOwnPropertySymbols;
4
- var Le = Object.prototype.hasOwnProperty, Ie = Object.prototype.propertyIsEnumerable;
5
- var de = (l, r, a) => r in l ? Ge(l, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : l[r] = a, K = (l, r) => {
6
- for (var a in r || (r = {}))
7
- Le.call(r, a) && de(l, a, r[a]);
4
+ var Re = Object.prototype.hasOwnProperty, Ie = Object.prototype.propertyIsEnumerable;
5
+ var de = (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
+ Re.call(r, o) && de(l, o, r[o]);
8
8
  if (ce)
9
- for (var a of ce(r))
10
- Ie.call(r, a) && de(l, a, r[a]);
9
+ for (var o of ce(r))
10
+ Ie.call(r, o) && de(l, o, r[o]);
11
11
  return l;
12
- }, N = (l, r) => je(l, Re(r));
13
- var ge = (l, r, a) => new Promise((I, S) => {
12
+ }, N = (l, r) => je(l, Le(r));
13
+ var ge = (l, r, o) => new Promise((I, C) => {
14
14
  var M = (s) => {
15
15
  try {
16
- c(a.next(s));
16
+ c(o.next(s));
17
17
  } catch (x) {
18
- S(x);
18
+ C(x);
19
19
  }
20
- }, o = (s) => {
20
+ }, a = (s) => {
21
21
  try {
22
- c(a.throw(s));
22
+ c(o.throw(s));
23
23
  } catch (x) {
24
- S(x);
24
+ C(x);
25
25
  }
26
- }, c = (s) => s.done ? I(s.value) : Promise.resolve(s.value).then(M, o);
27
- c((a = a.apply(l, r)).next());
26
+ }, c = (s) => s.done ? I(s.value) : Promise.resolve(s.value).then(M, a);
27
+ c((o = o.apply(l, r)).next());
28
28
  });
29
- import { d as Me, c as Ye, a as Oe, t as Ee, p as m, o as De, i as fe, e as Xe, W as Ze, k as A, s as R, r as He, l as me, b as Q, f as J, m as Ve, u as Ue } from "./WheelOfFortuneWheel-D2fKZ64n.js";
30
- import { D as Ke, aL as Ne, aM as k, az as Qe, S as qe, Z as n, ar as p, aO as z, aT as b, ae as q, I as Je, aX as L, aP as $e, aQ as en, aD as u, aR as nn, b5 as tn, aW as g } from "./utils-C7uxZXaZ.js";
29
+ import { d as Me, c as Ye, a as Oe, t as Ee, p as m, o as De, i as fe, e as Xe, W as Ze, k as A, s as L, r as He, l as me, b as Q, f as J, m as Ve, u as Ue } from "./WheelOfFortuneWheel-D2fKZ64n.js";
30
+ import { D as Ke, aL as Ne, aM as z, az as Qe, S as qe, Z as n, ar as p, aO as _, aT as b, ae as q, I as Je, aX as R, aP as $e, aQ as en, aD as u, aR as nn, b5 as tn, aW as g } from "./utils-C7uxZXaZ.js";
31
31
  import { W as rn } from "./WheelOfFortuneHistory-T7NjHsHw.js";
32
32
  import { W as an } from "./WheelOfFortuneDrawResults-B7udZBEV.js";
33
33
  import { W as on } from "./WheelOfFortuneRules-DodXc6sB.js";
@@ -668,44 +668,44 @@ const dn = {
668
668
  };
669
669
  function gn(l, r) {
670
670
  Ke(r, !0), Oe(l, dn);
671
- const a = () => $e(en, "$_", I), [I, S] = nn();
671
+ const o = () => $e(en, "$_", I), [I, C] = nn();
672
672
  Ne.extend(Ee);
673
- const M = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", o = m(r, "program", 7, null), c = m(r, "endpoint", 7, null), s = m(r, "session", 7, null), x = m(r, "outerWheelAsset", 7, null), Y = m(r, "wheelButtonAsset", 7, null), O = m(r, "backgroundVideoAsset", 7, null), E = m(r, "language", 7, "en"), D = m(r, "showBackButton", 7, !0), y = m(r, "liteMode", 7, !1), _ = L(() => !c() || !o()), be = L(() => {
673
+ const M = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", a = m(r, "program", 7, null), c = m(r, "endpoint", 7, null), s = m(r, "session", 7, null), x = m(r, "outerWheelAsset", 7, null), Y = m(r, "wheelButtonAsset", 7, null), O = m(r, "backgroundVideoAsset", 7, null), E = m(r, "language", 7, "en"), D = m(r, "showBackButton", 7, !0), y = m(r, "liteMode", 7, !1), v = R(() => !c() || !a()), be = R(() => {
674
674
  var e, t;
675
- return !n(_) && ((t = (e = o()) == null ? void 0 : e.remainingTimes) != null ? t : 0) > 0;
676
- }), ue = L(() => {
675
+ return !n(v) && ((t = (e = a()) == null ? void 0 : e.remainingTimes) != null ? t : 0) > 0;
676
+ }), ue = R(() => {
677
677
  var e, t;
678
- return n(_) ? sn : (t = (e = o()) == null ? void 0 : e.partitions) != null ? t : [];
678
+ return n(v) ? sn : (t = (e = a()) == null ? void 0 : e.partitions) != null ? t : [];
679
679
  }), f = ["history", "play", "rules"];
680
- let h = k(Qe(f[1]));
680
+ let h = z(Qe(f[1]));
681
681
  const he = (e) => {
682
- var t, i, d, v;
682
+ var t, i, d, k;
683
683
  e !== n(h) && (e === f[0] ? window.postMessage(
684
684
  {
685
685
  type: "event_wof_history_click",
686
- name: ((t = o()) == null ? void 0 : t.name) || null
686
+ name: ((t = a()) == null ? void 0 : t.name) || null
687
687
  },
688
688
  window.location.href
689
- ) : e === f[2] ? window.postMessage({ type: "event_wof_rules_click", name: ((i = o()) == null ? void 0 : i.name) || null }, window.location.href) : window.postMessage(
689
+ ) : e === f[2] ? window.postMessage({ type: "event_wof_rules_click", name: ((i = a()) == null ? void 0 : i.name) || null }, window.location.href) : window.postMessage(
690
690
  {
691
691
  type: "event_wof_accessed",
692
- isUserLoggedIn: !n(_),
693
- name: ((d = o()) == null ? void 0 : d.name) || null,
694
- availableSpins: ((v = o()) == null ? void 0 : v.remainingTimes) || null
692
+ isUserLoggedIn: !n(v),
693
+ name: ((d = a()) == null ? void 0 : d.name) || null,
694
+ availableSpins: ((k = a()) == null ? void 0 : k.remainingTimes) || null
695
695
  },
696
696
  window.location.href
697
697
  ), p(Z, !1), p(h, e, !0));
698
698
  };
699
- let w = k(null), X = k(!1), Z = k(!1), H = k(!1), P = k(!1), W = k(!1);
699
+ let w = z(null), X = z(!1), Z = z(!1), H = z(!1), P = z(!1), T = z(!1);
700
700
  qe(() => {
701
701
  if (!y()) {
702
702
  if (n(X))
703
- p(P, !0), p(W, !1);
703
+ p(P, !0), p(T, !1);
704
704
  else if (n(P)) {
705
- p(W, !0);
705
+ p(T, !0);
706
706
  const e = setTimeout(
707
707
  () => {
708
- p(P, !1), p(W, !1);
708
+ p(P, !1), p(T, !1);
709
709
  },
710
710
  350
711
711
  );
@@ -715,23 +715,23 @@ function gn(l, r) {
715
715
  });
716
716
  const we = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), xe = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), $ = () => ge(this, null, function* () {
717
717
  var i, d;
718
- if (!((i = o()) != null && i.id) || !c()) return;
718
+ if (!((i = a()) != null && i.id) || !c()) return;
719
719
  const e = new URL(`${c()}/v1/wof/remainingTimes`), t = new Headers();
720
- s() && t.append("X-SessionId", s()), e.searchParams.append("filter", `ProgramId[]=${o().id}`);
720
+ s() && t.append("X-SessionId", s()), e.searchParams.append("filter", `ProgramId[]=${a().id}`);
721
721
  try {
722
722
  const B = yield (yield fetch(e, { method: "GET", headers: t })).json();
723
723
  let U = 0;
724
724
  if (((d = B == null ? void 0 : B.items) == null ? void 0 : d.length) > 0) {
725
- const pe = B.items.find((Fe) => Fe.programId === o().id);
725
+ const pe = B.items.find((Fe) => Fe.programId === a().id);
726
726
  pe && (U = +pe.remainingTimes || 0);
727
727
  }
728
- const Te = tn(N(K({}, o()), {
728
+ const We = tn(N(K({}, a()), {
729
729
  remainingTimes: U,
730
- current: N(K({}, o().current), { remainingTimes: U })
730
+ current: N(K({}, a().current), { remainingTimes: U })
731
731
  }));
732
- window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: Te }, "*");
733
- } catch (v) {
734
- console.log(v);
732
+ window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: We }, "*");
733
+ } catch (k) {
734
+ console.log(k);
735
735
  } finally {
736
736
  p(H, !1);
737
737
  }
@@ -744,15 +744,26 @@ function gn(l, r) {
744
744
  break;
745
745
  }
746
746
  };
747
- De(() => (window.addEventListener("message", ee), () => {
748
- window.removeEventListener("message", ee);
749
- }));
747
+ De(() => {
748
+ var e, t;
749
+ return window.postMessage(
750
+ {
751
+ type: "event_wof_accessed",
752
+ isUserLoggedIn: !n(v),
753
+ name: ((e = a()) == null ? void 0 : e.name) || null,
754
+ availableSpins: ((t = a()) == null ? void 0 : t.remainingTimes) || null
755
+ },
756
+ window.location.href
757
+ ), window.addEventListener("message", ee), () => {
758
+ window.removeEventListener("message", ee);
759
+ };
760
+ });
750
761
  var ye = {
751
762
  get program() {
752
- return o();
763
+ return a();
753
764
  },
754
765
  set program(e = null) {
755
- o(e), u();
766
+ a(e), u();
756
767
  },
757
768
  get endpoint() {
758
769
  return c();
@@ -802,9 +813,9 @@ function gn(l, r) {
802
813
  set liteMode(e = !1) {
803
814
  y(e), u();
804
815
  }
805
- }, T = cn();
816
+ }, W = cn();
806
817
  let ne;
807
- var te = b(T);
818
+ var te = b(W);
808
819
  {
809
820
  var ve = (e) => {
810
821
  var t = ln();
@@ -819,35 +830,35 @@ function gn(l, r) {
819
830
  !y() && n(h) === f[1] && e(ve);
820
831
  });
821
832
  }
822
- var C = z(te, 2);
833
+ var S = _(te, 2);
823
834
  let re;
824
- var ae = z(b(C), 2), ke = b(ae, !0);
825
- g(ae), g(C);
826
- var F = z(C, 2);
835
+ var ae = _(b(S), 2), ke = b(ae, !0);
836
+ g(ae), g(S);
837
+ var F = _(S, 2);
827
838
  let oe;
828
839
  var V = b(F), ze = b(V, !0);
829
840
  g(V);
830
- var ie = z(V, 2), _e = b(ie, !0);
841
+ var ie = _(V, 2), _e = b(ie, !0);
831
842
  g(ie), g(F);
832
- var G = z(F, 2);
843
+ var G = _(F, 2);
833
844
  let se;
834
845
  Xe(G, 20, () => f, (e) => e, (e, t) => {
835
846
  var i = pn();
836
847
  let d;
837
- var v = b(i, !0);
848
+ var k = b(i, !0);
838
849
  g(i), q(
839
850
  (B) => {
840
- d = A(i, 1, "tab svelte-17ly5gn", null, d, { active: n(h) === t }), R(v, B);
851
+ d = A(i, 1, "tab svelte-17ly5gn", null, d, { active: n(h) === t }), L(k, B);
841
852
  },
842
- [() => a()(t)]
853
+ [() => o()(t)]
843
854
  ), me("click", i, () => he(t)), Q(e, i);
844
855
  }), g(G);
845
- var j = z(G, 2);
856
+ var j = _(G, 2);
846
857
  let le;
847
858
  var Be = b(j);
848
859
  Ze(Be, {
849
860
  get program() {
850
- return o();
861
+ return a();
851
862
  },
852
863
  get endpoint() {
853
864
  return c();
@@ -865,7 +876,7 @@ function gn(l, r) {
865
876
  return n(ue);
866
877
  },
867
878
  get isPlaceholder() {
868
- return n(_);
879
+ return n(v);
869
880
  },
870
881
  get isWheelAvailable() {
871
882
  return n(be);
@@ -890,9 +901,9 @@ function gn(l, r) {
890
901
  p(X, e, !0);
891
902
  }
892
903
  }), g(j);
893
- var Ae = z(j, 2);
904
+ var Ae = _(j, 2);
894
905
  {
895
- var Ce = (e) => {
906
+ var Se = (e) => {
896
907
  an(e, {
897
908
  get result() {
898
909
  return n(w);
@@ -908,11 +919,11 @@ function gn(l, r) {
908
919
  },
909
920
  onFetchRemainingTimes: $
910
921
  });
911
- }, Se = (e) => {
922
+ }, Ce = (e) => {
912
923
  {
913
- let t = L(() => {
924
+ let t = R(() => {
914
925
  var i;
915
- return (i = o()) == null ? void 0 : i.id;
926
+ return (i = a()) == null ? void 0 : i.id;
916
927
  });
917
928
  rn(e, {
918
929
  get programId() {
@@ -929,7 +940,7 @@ function gn(l, r) {
929
940
  }, Pe = (e) => {
930
941
  on(e, {
931
942
  get program() {
932
- return o();
943
+ return a();
933
944
  },
934
945
  get language() {
935
946
  return E();
@@ -937,27 +948,27 @@ function gn(l, r) {
937
948
  });
938
949
  };
939
950
  fe(Ae, (e) => {
940
- n(w) ? e(Ce) : n(h) === f[0] ? e(Se, 1) : n(h) === f[2] && e(Pe, 2);
951
+ n(w) ? e(Se) : n(h) === f[0] ? e(Ce, 1) : n(h) === f[2] && e(Pe, 2);
941
952
  });
942
953
  }
943
- g(T), q(
954
+ g(W), q(
944
955
  (e, t, i) => {
945
- ne = A(T, 1, "wheel-content svelte-17ly5gn", null, ne, {
956
+ ne = A(W, 1, "wheel-content svelte-17ly5gn", null, ne, {
946
957
  "is-spin-fullscreen": n(P),
947
- "is-spin-exiting": n(W),
958
+ "is-spin-exiting": n(T),
948
959
  "wheel-background-halo": y() && n(h) === f[1]
949
- }), re = A(C, 1, "back-button-container svelte-17ly5gn", null, re, { hidden: n(_) || !D() }), R(ke, e), oe = A(F, 1, "wof-title svelte-17ly5gn", null, oe, { hidden: n(w) }), R(ze, t), R(_e, i), se = A(G, 1, "wof-tabs svelte-17ly5gn", null, se, { hidden: n(_) || n(w) }), le = He(j, "", le, {
960
+ }), re = A(S, 1, "back-button-container svelte-17ly5gn", null, re, { hidden: n(v) || !D() }), L(ke, e), oe = A(F, 1, "wof-title svelte-17ly5gn", null, oe, { hidden: n(w) }), L(ze, t), L(_e, i), se = A(G, 1, "wof-tabs svelte-17ly5gn", null, se, { hidden: n(v) || n(w) }), le = He(j, "", le, {
950
961
  display: n(h) !== f[1] || n(w) ? "none" : "contents"
951
962
  });
952
963
  },
953
964
  [
954
- () => a()("backToHub"),
955
- () => a()("wofTitle"),
956
- () => a()("wofSubtitle")
965
+ () => o()("backToHub"),
966
+ () => o()("wofTitle"),
967
+ () => o()("wofSubtitle")
957
968
  ]
958
- ), me("click", C, xe), Q(l, T);
959
- var We = Je(ye);
960
- return S(), We;
969
+ ), me("click", S, xe), Q(l, W);
970
+ var Te = Je(ye);
971
+ return C(), Te;
961
972
  }
962
973
  Me(["click"]);
963
974
  customElements.define("wheel-of-fortune", Ye(
@@ -1,5 +1,5 @@
1
- import { d as Ae, c as Se, a as Ce, t as Pe, p, o as We, i as ae, e as Te, W as Fe, k as v, s as T, r as Ge, l as oe, b as X, f as H, m as je, u as Le } from "./WheelOfFortuneWheel-B7DOhfW5.js";
2
- import { D as Re, aL as Ye, aM as w, az as Ie, S as Me, Z as n, ar as o, ae as Z, I as Oe, aY as F, aT as c, aO as Ee, aP as De, aS as x, aD as d, aQ as Xe, aW as s, b5 as Ze } from "./utils-d-JrZBJu.js";
1
+ import { d as Ae, c as Se, a as Ce, t as Pe, p, o as Te, i as ae, e as We, W as Fe, k as v, s as W, r as Ge, l as oe, b as X, f as H, m as je, u as Le } from "./WheelOfFortuneWheel-B7DOhfW5.js";
2
+ import { D as Ie, aL as Me, aM as x, az as Re, S as Ye, Z as n, ar as o, ae as Z, I as Oe, aY as F, aT as c, aO as Ee, aP as De, aS as y, aD as d, aQ as Xe, aW as s, b5 as Ze } from "./utils-d-JrZBJu.js";
3
3
  import { W as He } from "./WheelOfFortuneHistory-COB7C1nL.js";
4
4
  import { W as Ve } from "./WheelOfFortuneDrawResults-CYRN0Phi.js";
5
5
  import { W as Ue } from "./WheelOfFortuneRules-Dyq7AefM.js";
@@ -639,11 +639,11 @@ const Je = {
639
639
  }`
640
640
  };
641
641
  function $e(V, i) {
642
- Re(i, !0), Ce(V, Je);
642
+ Ie(i, !0), Ce(V, Je);
643
643
  const _ = () => Ee(De, "$_", ie), [ie, se] = Xe();
644
- Ye.extend(Pe);
645
- const le = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", t = p(i, "program", 7, null), g = p(i, "endpoint", 7, null), b = p(i, "session", 7, null), G = p(i, "outerWheelAsset", 7, null), j = p(i, "wheelButtonAsset", 7, null), L = p(i, "backgroundVideoAsset", 7, null), R = p(i, "language", 7, "en"), Y = p(i, "showBackButton", 7, !0), u = p(i, "liteMode", 7, !1), y = F(() => !g() || !t()), pe = F(() => !n(y) && (t()?.remainingTimes ?? 0) > 0), ce = F(() => n(y) ? Ke : t()?.partitions ?? []), l = ["history", "play", "rules"];
646
- let f = w(Ie(l[1]));
644
+ Me.extend(Pe);
645
+ const le = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", t = p(i, "program", 7, null), g = p(i, "endpoint", 7, null), b = p(i, "session", 7, null), G = p(i, "outerWheelAsset", 7, null), j = p(i, "wheelButtonAsset", 7, null), L = p(i, "backgroundVideoAsset", 7, null), I = p(i, "language", 7, "en"), M = p(i, "showBackButton", 7, !0), u = p(i, "liteMode", 7, !1), h = F(() => !g() || !t()), pe = F(() => !n(h) && (t()?.remainingTimes ?? 0) > 0), ce = F(() => n(h) ? Ke : t()?.partitions ?? []), l = ["history", "play", "rules"];
646
+ let f = x(Re(l[1]));
647
647
  const de = (e) => {
648
648
  e !== n(f) && (e === l[0] ? window.postMessage(
649
649
  {
@@ -654,17 +654,17 @@ function $e(V, i) {
654
654
  ) : e === l[2] ? window.postMessage({ type: "event_wof_rules_click", name: t()?.name || null }, window.location.href) : window.postMessage(
655
655
  {
656
656
  type: "event_wof_accessed",
657
- isUserLoggedIn: !n(y),
657
+ isUserLoggedIn: !n(h),
658
658
  name: t()?.name || null,
659
659
  availableSpins: t()?.remainingTimes || null
660
660
  },
661
661
  window.location.href
662
- ), o(M, !1), o(f, e, !0));
662
+ ), o(Y, !1), o(f, e, !0));
663
663
  };
664
- let m = w(null), I = w(!1), M = w(!1), O = w(!1), B = w(!1), A = w(!1);
665
- Me(() => {
664
+ let m = x(null), R = x(!1), Y = x(!1), O = x(!1), B = x(!1), A = x(!1);
665
+ Ye(() => {
666
666
  if (!u()) {
667
- if (n(I))
667
+ if (n(R))
668
668
  o(B, !0), o(A, !1);
669
669
  else if (n(B)) {
670
670
  o(A, !0);
@@ -683,10 +683,10 @@ function $e(V, i) {
683
683
  const e = new URL(`${g()}/v1/wof/remainingTimes`), r = new Headers();
684
684
  b() && r.append("X-SessionId", b()), e.searchParams.append("filter", `ProgramId[]=${t().id}`);
685
685
  try {
686
- const h = await (await fetch(e, { method: "GET", headers: r })).json();
686
+ const w = await (await fetch(e, { method: "GET", headers: r })).json();
687
687
  let z = 0;
688
- if (h?.items?.length > 0) {
689
- const re = h.items.find((Be) => Be.programId === t().id);
688
+ if (w?.items?.length > 0) {
689
+ const re = w.items.find((Be) => Be.programId === t().id);
690
690
  re && (z = +re.remainingTimes || 0);
691
691
  }
692
692
  const D = Ze({
@@ -709,7 +709,15 @@ function $e(V, i) {
709
709
  break;
710
710
  }
711
711
  };
712
- We(() => (window.addEventListener("message", K), () => {
712
+ Te(() => (window.postMessage(
713
+ {
714
+ type: "event_wof_accessed",
715
+ isUserLoggedIn: !n(h),
716
+ name: t()?.name || null,
717
+ availableSpins: t()?.remainingTimes || null
718
+ },
719
+ window.location.href
720
+ ), window.addEventListener("message", K), () => {
713
721
  window.removeEventListener("message", K);
714
722
  }));
715
723
  var me = {
@@ -750,16 +758,16 @@ function $e(V, i) {
750
758
  L(e), d();
751
759
  },
752
760
  get language() {
753
- return R();
761
+ return I();
754
762
  },
755
763
  set language(e = "en") {
756
- R(e), d();
764
+ I(e), d();
757
765
  },
758
766
  get showBackButton() {
759
- return Y();
767
+ return M();
760
768
  },
761
769
  set showBackButton(e = !0) {
762
- Y(e), d();
770
+ M(e), d();
763
771
  },
764
772
  get liteMode() {
765
773
  return u();
@@ -775,41 +783,41 @@ function $e(V, i) {
775
783
  var r = Ne();
776
784
  let a;
777
785
  r.muted = !0;
778
- var h = c(r);
786
+ var w = c(r);
779
787
  s(r), Z(() => {
780
- a = v(r, 1, "wheel-video-background svelte-17ly5gn", null, a, { "is-ready": n(M) }), je(h, "src", L() || le);
781
- }), Le("canplay", r, () => o(M, !0)), X(e, r);
788
+ a = v(r, 1, "wheel-video-background svelte-17ly5gn", null, a, { "is-ready": n(Y) }), je(w, "src", L() || le);
789
+ }), Le("canplay", r, () => o(Y, !0)), X(e, r);
782
790
  };
783
791
  ae(Q, (e) => {
784
792
  !u() && n(f) === l[1] && e(be);
785
793
  });
786
794
  }
787
- var k = x(Q, 2);
795
+ var k = y(Q, 2);
788
796
  let q;
789
- var J = x(c(k), 2), ue = c(J, !0);
797
+ var J = y(c(k), 2), ue = c(J, !0);
790
798
  s(J), s(k);
791
- var C = x(k, 2);
799
+ var C = y(k, 2);
792
800
  let $;
793
801
  var E = c(C), he = c(E, !0);
794
802
  s(E);
795
- var ee = x(E, 2), we = c(ee, !0);
803
+ var ee = y(E, 2), we = c(ee, !0);
796
804
  s(ee), s(C);
797
- var P = x(C, 2);
805
+ var P = y(C, 2);
798
806
  let ne;
799
- Te(P, 20, () => l, (e) => e, (e, r) => {
807
+ We(P, 20, () => l, (e) => e, (e, r) => {
800
808
  var a = Qe();
801
- let h;
809
+ let w;
802
810
  var z = c(a, !0);
803
811
  s(a), Z(
804
812
  (D) => {
805
- h = v(a, 1, "tab svelte-17ly5gn", null, h, { active: n(f) === r }), T(z, D);
813
+ w = v(a, 1, "tab svelte-17ly5gn", null, w, { active: n(f) === r }), W(z, D);
806
814
  },
807
815
  [() => _()(r)]
808
816
  ), oe("click", a, () => de(r)), X(e, a);
809
817
  }), s(P);
810
- var W = x(P, 2);
818
+ var T = y(P, 2);
811
819
  let te;
812
- var xe = c(W);
820
+ var xe = c(T);
813
821
  Fe(xe, {
814
822
  get program() {
815
823
  return t();
@@ -830,7 +838,7 @@ function $e(V, i) {
830
838
  return n(ce);
831
839
  },
832
840
  get isPlaceholder() {
833
- return n(y);
841
+ return n(h);
834
842
  },
835
843
  get isWheelAvailable() {
836
844
  return n(pe);
@@ -849,13 +857,13 @@ function $e(V, i) {
849
857
  o(m, e, !0);
850
858
  },
851
859
  get spinActive() {
852
- return n(I);
860
+ return n(R);
853
861
  },
854
862
  set spinActive(e) {
855
- o(I, e, !0);
863
+ o(R, e, !0);
856
864
  }
857
- }), s(W);
858
- var ye = x(W, 2);
865
+ }), s(T);
866
+ var ye = y(T, 2);
859
867
  {
860
868
  var ve = (e) => {
861
869
  Ve(e, {
@@ -894,7 +902,7 @@ function $e(V, i) {
894
902
  return t();
895
903
  },
896
904
  get language() {
897
- return R();
905
+ return I();
898
906
  }
899
907
  });
900
908
  };
@@ -908,7 +916,7 @@ function $e(V, i) {
908
916
  "is-spin-fullscreen": n(B),
909
917
  "is-spin-exiting": n(A),
910
918
  "wheel-background-halo": u() && n(f) === l[1]
911
- }), q = v(k, 1, "back-button-container svelte-17ly5gn", null, q, { hidden: n(y) || !Y() }), T(ue, e), $ = v(C, 1, "wof-title svelte-17ly5gn", null, $, { hidden: n(m) }), T(he, r), T(we, a), ne = v(P, 1, "wof-tabs svelte-17ly5gn", null, ne, { hidden: n(y) || n(m) }), te = Ge(W, "", te, {
919
+ }), q = v(k, 1, "back-button-container svelte-17ly5gn", null, q, { hidden: n(h) || !M() }), W(ue, e), $ = v(C, 1, "wof-title svelte-17ly5gn", null, $, { hidden: n(m) }), W(he, r), W(we, a), ne = v(P, 1, "wof-tabs svelte-17ly5gn", null, ne, { hidden: n(h) || n(m) }), te = Ge(T, "", te, {
912
920
  display: n(f) !== l[1] || n(m) ? "none" : "contents"
913
921
  });
914
922
  },
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/MiniGamesHub-IU3nBLWZ.cjs")).then(({default:t})=>{!customElements.get("mini-games-hub")&&customElements.define("mini-games-hub",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/MiniGamesHub-DeVy4J4_.cjs")).then(({default:t})=>{!customElements.get("mini-games-hub")&&customElements.define("mini-games-hub",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/MiniGamesHub-Bbot9Iek.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/MiniGamesHub-CSZ3An74.js").then(({ default: t }) => {
14
14
  !customElements.get("mini-games-hub") && customElements.define("mini-games-hub", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { M as s } from "../components/MiniGamesHub-CyrBtxoA.js";
1
+ import { M as s } from "../components/MiniGamesHub-4Wuwyw8q.js";
2
2
  function i(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/mini-games-hub",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "type": "module",
5
5
  "main": "es2015/mini-games-hub.cjs",
6
6
  "module": "esnext/mini-games-hub.js",
@@ -1,56 +0,0 @@
1
- import { d as q, c as T, a as J, p as G, i as K, q as N, s as n, m as E, l as X, b as B, f as y } from "./WheelOfFortuneWheel-EAdiCZNZ.js";
2
- import { A as Y, aM as i, X as o, ac as z, F as M, aR as a, aV as V, aN as Z, aO as S, aB as O, aP as _, aU as e } from "./utils-B7FniaI2.js";
3
- const $ = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='40'%20height='40'%20fill='url(%23pattern0_2493_12874)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_2493_12874'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_2493_12874'%20transform='scale(0.0125)'/%3e%3c/pattern%3e%3cimage%20id='image0_2493_12874'%20width='80'%20height='80'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAADAFBMVEVHcEyJ2J5Sik2i/Mqu/96e+Mie98Cv/qic87ZblVKr/9JWj06e/99MhU5QiE6c9LSt/9Om/+BUi01RiU1VjU6FxG2H6aKA8bpcl1Wu/q1YkVCt/Jqi/tVyvG9alFJ+67CZ9cma87yGxnBuqlpqpVWo8oeZ7Y+j6H2D04R74aKDwmp0sV1jm06p+Jiy/27/4hMmPEGR/7H3vQ74wgz/5BD/0Bn/6hr+1hr/2RojOUD3wA2t/3j/0xqV/6j/3xjzoRDVjRXHYQv/3Rr2sxD1txD+4Ry2/+D6xQ/ekhn/5xP/zBab/5v7yBL2ug7xmxD/5h2h/5DinBr5zBPuwi3yphNXkU/0qhHipxnafA/VcxDpwED/4xssQ0W9ZxCm/4PwviDwjw/ylRDb+rLruBu6WwvouDHDcxX1zyjP86jOaA2u+W6vUgv2rg/RhBQzXEjJWgmm8XWB66sLeFJgnFSpSgg3cFKw/ZXirzFtpko6UUbsrxqq/+LwgA2dLwT53CKvWQ/yiQ4ZIh/5zxLux0KcPAbd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IPgXLsgqGYdhuVsFOYNzoMeC1GPrC17x53KdFJhHy/MjIyPzQ0EJ3N4IhsQqfz7fwYkqFcMgeLF9YRPSbB4gxkVF+k5mOwfNdXV3zCLowMTHxEr4vnkypzp0rPge45OSSlmbhutCYt06vN0DYgMzBI9PHZ29hPb6iUgGK6MI0mm/+bBWGha//X0PdyK1BZE5Oo8PxGOkK5o2OEhrgqoQhb7cXWMnPt87NORobEXAaPjn+ofj0NBk7V/Z7qoTrPl3zLpPsyNg5YDqOkkn2spJLKvutBqEw5J1waCmjP/li6+Agml07Ko8SVVa29A94DGAuPDT6/f5c+OKzjRs9ICvI42k2GKqqtodEhK5Z9d7atCF085dbtm1rBphh+5bNEaHr3+LtH+S1dETfQiSAAAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e";
4
- var ee = y('<p class="mini-games-card-subtitle svelte-kbirfa"> </p>'), ae = y('<div class="mini-games-card-list svelte-kbirfa"><div class="mini-games-card svelte-kbirfa"><div class="mini-games-card-header svelte-kbirfa"><h3 class="mini-games-card-title svelte-kbirfa"> </h3> <!></div> <div class="mini-games-card-prize-row svelte-kbirfa"><div class="mini-games-card-left svelte-kbirfa"><div class="mini-games-card-coin svelte-kbirfa"><img alt="Lottery Tooltip" class="svelte-kbirfa"/></div> <div class="mini-games-win-chances svelte-kbirfa"><span class="mini-games-card-count svelte-kbirfa"> </span> <span class="mini-games-card-prize-name svelte-kbirfa"></span></div></div> <button class="mini-games-card-cta svelte-kbirfa"> </button></div></div></div>');
5
- const re = {
6
- hash: "svelte-kbirfa",
7
- code: `.svelte-kbirfa,
8
- .svelte-kbirfa::before,
9
- .svelte-kbirfa::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.mini-games-card.svelte-kbirfa {border-radius:14px;overflow:hidden;width:100%;}.mini-games-card-header.svelte-kbirfa {padding:18px 16px 16px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.0509803922));background-image:radial-gradient(circle, var(--color-overlay-neutral-1, rgba(255, 255, 255, 0.0549019608)) 1px, transparent 1px);background-size:18px 18px;}.mini-games-card-header.svelte-kbirfa .mini-games-card-title:where(.svelte-kbirfa) {color:var(--color-text-default, #ffffff);font-size:20px;font-weight:700;margin-bottom:6px;}.mini-games-card-header.svelte-kbirfa .mini-games-card-subtitle:where(.svelte-kbirfa) {color:rgba(255, 255, 255, 0.65);font-size:15px;}.mini-games-card-prize-row.svelte-kbirfa {display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:var(--color-bg-surface-level-3, #60361f);background-image:radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);background-size:18px 18px;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));}.mini-games-card-prize-row.svelte-kbirfa .mini-games-card-left:where(.svelte-kbirfa) {display:flex;align-items:center;gap:10px;}.mini-games-card-prize-row.svelte-kbirfa .mini-games-card-coin:where(.svelte-kbirfa) {width:30px;height:30px;flex-shrink:0;}.mini-games-card-prize-row.svelte-kbirfa .mini-games-card-coin:where(.svelte-kbirfa) img:where(.svelte-kbirfa) {width:100%;height:100%;}.mini-games-card-prize-row.svelte-kbirfa .mini-games-win-chances:where(.svelte-kbirfa) {display:flex;align-items:center;gap:8px;}.mini-games-card-prize-row.svelte-kbirfa .mini-games-win-chances:where(.svelte-kbirfa) .mini-games-card-count:where(.svelte-kbirfa) {font-size:26px;font-weight:800;color:var(--color-text-default, #ffffff);align-self:center;}.mini-games-card-prize-row.svelte-kbirfa .mini-games-win-chances:where(.svelte-kbirfa) .mini-games-card-prize-name:where(.svelte-kbirfa) {font-size:12px;color:var(--color-text-default, #ffffff);}.mini-games-card-prize-row.svelte-kbirfa .mini-games-card-cta:where(.svelte-kbirfa) {background-color:var(--color-button-primary, #ffcc00);color:var(--color-text-button-primary, #261d00);border:none;border-radius:4px;padding:4px 12px;font-size:14px;font-weight:800;font-style:italic;cursor:pointer;white-space:nowrap;flex-shrink:0;}.mini-games-card-prize-row.svelte-kbirfa .mini-games-card-cta:where(.svelte-kbirfa):active {background-color:var(--color-button-primary-hover, #e0b72b);}`
10
- };
11
- function ie(x, h) {
12
- Y(h, !0), J(x, re);
13
- const b = () => Z(S, "$_", Q), [Q, U] = _(), s = G(h, "program", 7), t = V(s), F = () => {
14
- window.postMessage({ type: "PlayMiniGame", programId: s().id }, window.location.href);
15
- };
16
- var R = {
17
- get program() {
18
- return s();
19
- },
20
- set program(r) {
21
- s(r), O();
22
- }
23
- }, l = ae(), k = a(l), c = a(k), m = a(c), j = a(m, !0);
24
- e(m);
25
- var L = i(m, 2);
26
- {
27
- var P = (r) => {
28
- var f = ee(), W = a(f, !0);
29
- e(f), z(() => n(W, o(t).descriptions)), B(r, f);
30
- };
31
- K(L, (r) => {
32
- o(t).descriptions && r(P);
33
- });
34
- }
35
- e(c);
36
- var w = i(c, 2), d = a(w), g = a(d), D = a(g);
37
- e(g);
38
- var u = i(g, 2), v = a(u), I = a(v, !0);
39
- e(v);
40
- var A = i(v, 2);
41
- N(A, () => b()("gameCardWheelSpins"), !0), e(A), e(u), e(d);
42
- var p = i(d, 2), C = a(p, !0);
43
- e(p), e(w), e(k), e(l), z(
44
- (r) => {
45
- n(j, o(t).name), E(D, "src", $), n(I, o(t).remainingTimes), n(C, r);
46
- },
47
- [() => b()("playNow")]
48
- ), X("click", p, F), B(x, l);
49
- var H = M(R);
50
- return U(), H;
51
- }
52
- q(["click"]);
53
- T(ie, { program: {} }, [], [], { mode: "open" });
54
- export {
55
- ie as G
56
- };