@everymatrix/mini-games-hub 0.1.5 → 0.1.7

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 (135) hide show
  1. package/components/{GameCard-8XBwX5mB.js → GameCard-DTz2IEhm.js} +27 -29
  2. package/components/GameCard-Dfgtrwdb.cjs +3 -0
  3. package/components/{GameCard-SP2WkMe4.js → GameCard-sNqb2_mR.js} +27 -29
  4. package/components/{MiniGamesHub-DKkDXC81.cjs → MiniGamesHub-3XlqpfV_.cjs} +5 -5
  5. package/components/{MiniGamesHub-BEAlx3WE.js → MiniGamesHub-DTPiOtNT.js} +318 -286
  6. package/components/{MiniGamesHub-CrRIFbj_.js → MiniGamesHub-iX9t9vSW.js} +261 -249
  7. package/components/{WheelOfFortune-B7NMoATV.js → WheelOfFortune-BKUcclpm.js} +197 -164
  8. package/components/{WheelOfFortune-0yZoHYHH.js → WheelOfFortune-CbvJZO8-.js} +184 -151
  9. package/components/{WheelOfFortune-BxbFigrE.cjs → WheelOfFortune-DgAgnR_Q.cjs} +27 -6
  10. package/components/WheelOfFortuneDrawResults-AskDnOA6.cjs +1 -0
  11. package/components/WheelOfFortuneDrawResults-C9BcE4Kr.js +262 -0
  12. package/components/WheelOfFortuneDrawResults-DnQPGIPX.js +237 -0
  13. package/components/WheelOfFortuneHistory-BA977Hfx.js +230 -0
  14. package/components/WheelOfFortuneHistory-CT-5jtfe.js +230 -0
  15. package/components/WheelOfFortuneHistory-uP606zLS.cjs +13 -0
  16. package/components/{WheelOfFortuneRules-BI3iP5jZ.js → WheelOfFortuneRules-C16Md0m_.js} +64 -64
  17. package/components/WheelOfFortuneRules-DQcA-d8i.js +128 -0
  18. package/components/WheelOfFortuneRules-zVRcNYIv.cjs +5 -0
  19. package/components/WheelOfFortuneWheel-6j7QTrsf.cjs +3 -0
  20. package/components/WheelOfFortuneWheel-BvI-fAML.js +1980 -0
  21. package/components/WheelOfFortuneWheel-CCmzx2yj.js +1910 -0
  22. package/components/{constants-syi43uVY.js → constants-CWz8CXw2.js} +1 -1
  23. package/components/{constants-B5BwgkMh.cjs → constants-DM6Vdc6Z.cjs} +1 -1
  24. package/components/{sparkles-DMNeGYKa.cjs → sparkles-BnriHiyw.cjs} +1 -1
  25. package/components/{sparkles-Br3hNIM6.js → sparkles-BzZDomk7.js} +1 -1
  26. package/components/{sparkles-CsUJD5iK.js → sparkles-C9wObsYC.js} +1 -1
  27. package/components/{spin-controller-BfbakdA_.js → spin-controller-BjXSz9Me.js} +53 -52
  28. package/components/{spin-controller-Y0nB76qX.js → spin-controller-CETKYiGM.js} +51 -50
  29. package/components/spin-controller-q2CuZMYj.cjs +1 -0
  30. package/components/utils-B53aGsNG.js +6095 -0
  31. package/components/utils-C0oX5v1l.js +6141 -0
  32. package/components/utils-Du65tqU5.cjs +3 -0
  33. package/es2015/mini-games-hub.cjs +1 -1
  34. package/es2015/mini-games-hub.js +1 -1
  35. package/esnext/mini-games-hub.js +1 -1
  36. package/package.json +3 -1
  37. package/components/GameCard-B2Vf_Okb.cjs +0 -3
  38. package/components/GameCard-B2dUYs8D.cjs +0 -3
  39. package/components/GameCard-Bx4TWFNT.js +0 -58
  40. package/components/GameCard-CKlgiS66.cjs +0 -3
  41. package/components/GameCard-DX4XDT2r.js +0 -58
  42. package/components/GameCard-DXX0iD0Z.js +0 -58
  43. package/components/GameCard-Dfi3jlxs.js +0 -58
  44. package/components/GameCard-FmSc9xvG.js +0 -58
  45. package/components/GameCard-lPup4pYJ.js +0 -58
  46. package/components/GameCard-txJxZVfs.cjs +0 -3
  47. package/components/MiniGamesHub-BBCzOhms.js +0 -1269
  48. package/components/MiniGamesHub-BaAiz62L.cjs +0 -94
  49. package/components/MiniGamesHub-BbJIrcsb.cjs +0 -28
  50. package/components/MiniGamesHub-C6Nsfrqn.js +0 -1369
  51. package/components/MiniGamesHub-CLinNS2-.js +0 -1288
  52. package/components/MiniGamesHub-DXmod0OW.cjs +0 -94
  53. package/components/MiniGamesHub-DZHG1XwH.js +0 -1357
  54. package/components/MiniGamesHub-Db8-msnK.js +0 -1338
  55. package/components/MiniGamesHub-DxW3lK75.js +0 -1369
  56. package/components/WheelOfFortune-B-sa8npV.cjs +0 -572
  57. package/components/WheelOfFortune-CdsgfPZg.js +0 -829
  58. package/components/WheelOfFortune-Cfe5KhF-.cjs +0 -588
  59. package/components/WheelOfFortune-Cm-9CaHf.cjs +0 -570
  60. package/components/WheelOfFortune-DDfYKRzu.js +0 -862
  61. package/components/WheelOfFortune-DpMvjI6_.js +0 -811
  62. package/components/WheelOfFortune-Dtoep2n2.js +0 -852
  63. package/components/WheelOfFortune-cD7JyRL5.js +0 -820
  64. package/components/WheelOfFortune-u__JAdi_.js +0 -820
  65. package/components/WheelOfFortuneDrawResults-3S77J9M5.js +0 -292
  66. package/components/WheelOfFortuneDrawResults-B2L6I4Po.cjs +0 -1
  67. package/components/WheelOfFortuneDrawResults-B6RkAQ_i.cjs +0 -1
  68. package/components/WheelOfFortuneDrawResults-BRgQ0mTi.js +0 -261
  69. package/components/WheelOfFortuneDrawResults-BZAetM0L.js +0 -238
  70. package/components/WheelOfFortuneDrawResults-C0J_0fRE.cjs +0 -1
  71. package/components/WheelOfFortuneDrawResults-CKkYMVLn.js +0 -317
  72. package/components/WheelOfFortuneDrawResults-CvyqGbQG.js +0 -292
  73. package/components/WheelOfFortuneDrawResults-DIO74xIg.js +0 -317
  74. package/components/WheelOfFortuneDrawResults-D_QT2RDK.cjs +0 -1
  75. package/components/WheelOfFortuneDrawResults-WD4ZaXdI.js +0 -261
  76. package/components/WheelOfFortuneDrawResults-XiJyW5cc.js +0 -238
  77. package/components/WheelOfFortuneHistory-3lEfr9Yn.cjs +0 -13
  78. package/components/WheelOfFortuneHistory-BE1mGyJn.js +0 -233
  79. package/components/WheelOfFortuneHistory-BagUH_Pn.js +0 -233
  80. package/components/WheelOfFortuneHistory-BpfmGEE1.js +0 -233
  81. package/components/WheelOfFortuneHistory-C_EX6Ecx.js +0 -233
  82. package/components/WheelOfFortuneHistory-CgWvWb5r.js +0 -233
  83. package/components/WheelOfFortuneHistory-CldOJOup.js +0 -233
  84. package/components/WheelOfFortuneHistory-D9EVcaH2.js +0 -233
  85. package/components/WheelOfFortuneHistory-DQ7yysUE.cjs +0 -13
  86. package/components/WheelOfFortuneHistory-DoYx_EbF.js +0 -233
  87. package/components/WheelOfFortuneHistory-mbWa96d6.cjs +0 -13
  88. package/components/WheelOfFortuneHistory-tcBNosXj.cjs +0 -13
  89. package/components/WheelOfFortuneRules-3Pnc2tv_.cjs +0 -5
  90. package/components/WheelOfFortuneRules-ByuqEg7o.js +0 -128
  91. package/components/WheelOfFortuneRules-CD5FcLZh.js +0 -117
  92. package/components/WheelOfFortuneRules-CS1AnNsi.cjs +0 -5
  93. package/components/WheelOfFortuneRules-DEln64Ys.js +0 -117
  94. package/components/WheelOfFortuneRules-DTZ61azL.js +0 -128
  95. package/components/WheelOfFortuneRules-DUjXad1Z.cjs +0 -5
  96. package/components/WheelOfFortuneRules-Dp6015wP.cjs +0 -5
  97. package/components/WheelOfFortuneRules-ICYWgDZn.js +0 -128
  98. package/components/WheelOfFortuneRules-Sa4GsYQ7.js +0 -117
  99. package/components/WheelOfFortuneRules-ssp6aAUp.js +0 -128
  100. package/components/WheelOfFortuneWheel-76dShj7s.cjs +0 -1
  101. package/components/WheelOfFortuneWheel-B-3ALU8u.js +0 -632
  102. package/components/WheelOfFortuneWheel-B0P_kjVI.js +0 -599
  103. package/components/WheelOfFortuneWheel-C2yIQKzY.js +0 -598
  104. package/components/WheelOfFortuneWheel-C6o9ZPV4.js +0 -598
  105. package/components/WheelOfFortuneWheel-JKN_P3ES.cjs +0 -1
  106. package/components/WheelOfFortuneWheel-LXdY_AV0.js +0 -633
  107. package/components/WheelOfFortuneWheel-R5JZFn6S.js +0 -643
  108. package/components/WheelOfFortuneWheel-j83OpEdj.cjs +0 -1
  109. package/components/WheelOfFortuneWheel-jv0TkAX_.js +0 -632
  110. package/components/WheelOfFortuneWheel-le2uV09t.js +0 -609
  111. package/components/WheelOfFortuneWheel-rP-wIp2j.cjs +0 -1
  112. package/components/bonus-BcSq5fV_.cjs +0 -1
  113. package/components/bonus-BroDvSJR.js +0 -4
  114. package/components/coin-DetgSMGn.js +0 -4
  115. package/components/coin-dEAbLQma.cjs +0 -1
  116. package/components/loyalty-Bf3uaVFP.js +0 -4
  117. package/components/loyalty-XDJlZgzx.cjs +0 -1
  118. package/components/noprize-BJ-U8c5U.cjs +0 -1
  119. package/components/noprize-DQHyTDC0.js +0 -4
  120. package/components/role-Bxkn_4_S.cjs +0 -1
  121. package/components/role-CNEtykLr.js +0 -4
  122. package/components/spin-controller-Do0l1eeX.cjs +0 -1
  123. package/components/ticket-DP0fQfPa.cjs +0 -1
  124. package/components/ticket-DcOVRE_N.js +0 -4
  125. package/components/tournament-8UbfkV5I.cjs +0 -1
  126. package/components/tournament-BtKf5Btm.js +0 -4
  127. package/components/utils-BCvapeyS.cjs +0 -5
  128. package/components/utils-CG5ADU6a.cjs +0 -5
  129. package/components/utils-COXr0j7Z.js +0 -6803
  130. package/components/utils-CbMHM9Bv.js +0 -6831
  131. package/components/utils-ClIENp93.js +0 -6906
  132. package/components/utils-Cun_uLlb.js +0 -6890
  133. package/components/utils-D6FQ3_dW.cjs +0 -5
  134. package/components/utils-De4h5fhB.js +0 -6918
  135. package/components/utils-DrFJq1GB.js +0 -6819
@@ -1,261 +0,0 @@
1
- var tt = (X, E, e) => new Promise((q, U) => {
2
- var g = (C) => {
3
- try {
4
- D(e.next(C));
5
- } catch (L) {
6
- U(L);
7
- }
8
- }, I = (C) => {
9
- try {
10
- D(e.throw(C));
11
- } catch (L) {
12
- U(L);
13
- }
14
- }, D = (C) => C.done ? q(C.value) : Promise.resolve(C.value).then(g, I);
15
- D((e = e.apply(X, E)).next());
16
- });
17
- import "./WheelOfFortuneWheel-R5JZFn6S.js";
18
- import { d as Dt, e as Tt, p as zt, h as et, u as At, j as i, o as Mt, m as H, x as h, y as Pt, z as jt, A as Ft, s as at, I as B, n as o, E as a, D as rt, B as Bt, k as f, M as r, Y as ut, t as G, w as n, l as M, v as J, H as st, K as Et, r as Lt, N as ot } from "./utils-ClIENp93.js";
19
- import { E as dt } from "./error-DJgbe-Bh.js";
20
- import { b as Wt } from "./bonus-BroDvSJR.js";
21
- import { n as Gt } from "./noprize-DQHyTDC0.js";
22
- import { t as It } from "./tournament-BtKf5Btm.js";
23
- import { r as Nt } from "./role-CNEtykLr.js";
24
- import { l as Ot } from "./loyalty-Bf3uaVFP.js";
25
- import { t as Ht } from "./ticket-DcOVRE_N.js";
26
- import { c as Jt } from "./coin-DetgSMGn.js";
27
- import { a as Ut } from "./sparkles-CsUJD5iK.js";
28
- var Yt = B('<div class="ConfirmModalContent"><p class="ConfirmModalTitle"> </p> <p class="ConfirmModalBody"><!></p> <div class="ConfirmModalActions"><button class="PrimaryCta"> </button> <button class="SecondaryCta"> </button></div></div>'), Kt = B('<img alt="DrawResult"/> <p class="DrawResultCopy"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>', 1), Xt = B('<img alt="Lose"/> <p class="DrawResultCopy"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>', 1), qt = B('<img alt="DrawResult"/> <h2 class="DrawResultTitle"> </h2> <p class="DrawResultCopy"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>', 1), Qt = B('<img alt="DrawResult"/> <h2 class="DrawResultTitle"> </h2> <p class="DrawResultCopy"><!></p> <div class="DrawResultActions"><button class="PrimaryCta"> </button> <button class="SecondaryCta"> </button></div>', 1), Vt = B('<img alt="Error"/> <p class="DrawResultCopy"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>', 1), Zt = B('<div class="DrawResultPanel"><div class="DrawResultConfettiLayer"></div> <!> <div class="DrawResultStack"><!></div></div>');
29
- function $t(X, E) {
30
- zt(E, !0);
31
- const e = () => jt(Ft, "$_", q), [q, U] = Bt(), g = et(E, "result", 7), I = et(E, "endpoint", 7), D = et(E, "session", 7), C = ot(() => {
32
- var t;
33
- return ((t = g()) == null ? void 0 : t.success) !== !0;
34
- }), L = ot(() => {
35
- var t;
36
- return (t = g()) == null ? void 0 : t.type;
37
- }), _t = ot(() => i(L) === "noprize"), pt = {
38
- bonus: e()("prizeBonus"),
39
- role: e()("prizeRole"),
40
- tournament: e()("prizeTournament"),
41
- ticket: e()("prizeTicket"),
42
- loyalty: e()("prizeLoyalty"),
43
- challenge: e()("prizeChallenge")
44
- }, Q = { loyalty: Ot, role: Nt, ticket: Ht, bonus: Wt, noprize: Gt, tournament: It };
45
- let Y = at(void 0), w = at("initial"), R = at(!1);
46
- At(() => {
47
- i(Y) && i(w) === "claimSuccess" && Ut(i(Y));
48
- });
49
- const it = (t) => {
50
- const s = new URL(`${I()}/v1/wof/draw/${g().lotteryProgramID}`), l = new Headers();
51
- D() && l.append("X-SessionId", D()), l.append("Content-Type", "application/json");
52
- const _ = { action: t, guid: g().guid };
53
- return fetch(s, { method: "PUT", headers: l, body: JSON.stringify(_) }).then((k) => k.json());
54
- }, nt = () => tt(this, null, function* () {
55
- f(R, !0);
56
- try {
57
- const t = yield it(0), s = Et(t, "draw"), l = (s == null ? void 0 : s.state) === "fulfilled" && (s == null ? void 0 : s.completed), _ = (s == null ? void 0 : s.state) === "drawn" && !(s != null && s.completed);
58
- l ? f(w, "claimSuccess") : _ ? f(w, "claimFailed") : f(w, "claimFailed");
59
- } catch (t) {
60
- console.log(t), f(w, "claimFailed");
61
- } finally {
62
- f(R, !1);
63
- }
64
- }), mt = () => tt(this, null, function* () {
65
- f(R, !0), f(w, "initial");
66
- try {
67
- yield it(2), window.postMessage({ type: "BackToWheel" }, window.location.href);
68
- } catch (t) {
69
- console.log(t);
70
- } finally {
71
- f(R, !1);
72
- }
73
- }), ft = () => {
74
- window.postMessage({ type: "BackToWheel" }, window.location.href);
75
- }, V = () => {
76
- window.postMessage({ type: "SpinAgain" }, window.location.href);
77
- };
78
- var gt = {
79
- get result() {
80
- return g();
81
- },
82
- set result(t) {
83
- g(t), rt();
84
- },
85
- get endpoint() {
86
- return I();
87
- },
88
- set endpoint(t) {
89
- I(t), rt();
90
- },
91
- get session() {
92
- return D();
93
- },
94
- set session(t) {
95
- D(t), rt();
96
- }
97
- }, Z = Zt(), lt = a(Z);
98
- Mt(lt, (t) => f(Y, t), () => i(Y));
99
- var ct = o(lt, 2);
100
- {
101
- var wt = (t) => {
102
- var s = Yt(), l = a(s), _ = a(l, !0);
103
- r(l);
104
- var k = o(l, 2), p = a(k);
105
- ut(p, () => e()("rejectWarningText")), r(k);
106
- var u = o(k, 2), v = a(u);
107
- v.__click = nt;
108
- var x = a(v, !0);
109
- r(v);
110
- var b = o(v, 2);
111
- b.__click = mt;
112
- var c = a(b, !0);
113
- r(b), r(u), r(s), G(
114
- (m, T, S) => {
115
- n(_, m), v.disabled = i(R), n(x, T), b.disabled = i(R), n(c, S);
116
- },
117
- [
118
- () => e()("areYouSure"),
119
- () => e()("keepPrize"),
120
- () => e()("rejectPrize")
121
- ]
122
- ), h(t, s);
123
- };
124
- H(ct, (t) => {
125
- i(w) === "rejectModal" && t(wt);
126
- });
127
- }
128
- var vt = o(ct, 2), bt = a(vt);
129
- {
130
- var yt = (t) => {
131
- var s = Kt(), l = M(s), _ = o(l, 2), k = a(_, !0);
132
- r(_);
133
- var p = o(_, 2), u = a(p);
134
- u.__click = ft;
135
- var v = a(u, !0);
136
- r(u), r(p), G(
137
- (x, b) => {
138
- var c;
139
- J(l, "src", (c = Q[g().type]) != null ? c : Jt), n(k, x), n(v, b);
140
- },
141
- [() => e()("prizeAssigned"), () => e()("backToGame")]
142
- ), h(t, s);
143
- }, ht = (t) => {
144
- var s = st(), l = M(s);
145
- {
146
- var _ = (p) => {
147
- var u = Xt(), v = M(u);
148
- Lt(v, 1, "", null, {}, { Lose: !0 });
149
- var x = o(v, 2), b = a(x, !0);
150
- r(x);
151
- var c = o(x, 2), m = a(c);
152
- m.__click = V;
153
- var T = a(m, !0);
154
- r(m), r(c), G(
155
- (S, N) => {
156
- J(v, "src", dt), n(b, S), n(T, N);
157
- },
158
- [() => e()("drawFailed"), () => e()("backToGame")]
159
- ), h(p, u);
160
- }, k = (p) => {
161
- var u = st(), v = M(u);
162
- {
163
- var x = (c) => {
164
- var m = qt(), T = M(m), S = o(T, 2), N = a(S, !0);
165
- r(S);
166
- var y = o(S, 2), P = a(y, !0);
167
- r(y);
168
- var z = o(y, 2), d = a(z);
169
- d.__click = V;
170
- var O = a(d, !0);
171
- r(d), r(z), G(
172
- (A, j, W) => {
173
- J(T, "src", Q.noprize), n(N, A), n(P, j), d.disabled = i(R), n(O, W);
174
- },
175
- [
176
- () => e()("noPrizeTitle"),
177
- () => e()("noPrize"),
178
- () => e()("spinAgain")
179
- ]
180
- ), h(c, m);
181
- }, b = (c) => {
182
- var m = st(), T = M(m);
183
- {
184
- var S = (y) => {
185
- var P = Qt(), z = M(P), d = o(z, 2), O = a(d, !0);
186
- r(d);
187
- var A = o(d, 2), j = a(A);
188
- ut(j, () => e()("success", { values: { prize: pt[i(L)] } })), r(A);
189
- var W = o(A, 2), F = a(W);
190
- F.__click = nt;
191
- var $ = a(F, !0);
192
- r(F);
193
- var K = o(F, 2);
194
- K.__click = () => f(w, "rejectModal");
195
- var Rt = a(K, !0);
196
- r(K), r(W), G(
197
- (kt, xt, St) => {
198
- J(z, "src", Q[g().type]), n(O, kt), F.disabled = i(R), n($, xt), K.disabled = i(R), n(Rt, St);
199
- },
200
- [
201
- () => e()("congratulations"),
202
- () => e()("claimReward"),
203
- () => e()("reject")
204
- ]
205
- ), h(y, P);
206
- }, N = (y) => {
207
- var P = Vt(), z = M(P), d = o(z, 2), O = a(d, !0);
208
- r(d);
209
- var A = o(d, 2), j = a(A);
210
- j.__click = V;
211
- var W = a(j, !0);
212
- r(j), r(A), G(
213
- (F, $) => {
214
- J(z, "src", dt), n(O, F), n(W, $);
215
- },
216
- [() => e()("errorJSON"), () => e()("backToGame")]
217
- ), h(y, P);
218
- };
219
- H(
220
- T,
221
- (y) => {
222
- i(C) ? y(N, !1) : y(S);
223
- },
224
- !0
225
- );
226
- }
227
- h(c, m);
228
- };
229
- H(
230
- v,
231
- (c) => {
232
- i(_t) ? c(x) : c(b, !1);
233
- },
234
- !0
235
- );
236
- }
237
- h(p, u);
238
- };
239
- H(
240
- l,
241
- (p) => {
242
- i(w) === "claimFailed" ? p(_) : p(k, !1);
243
- },
244
- !0
245
- );
246
- }
247
- h(t, s);
248
- };
249
- H(bt, (t) => {
250
- i(w) === "claimSuccess" ? t(yt) : t(ht, !1);
251
- });
252
- }
253
- r(vt), r(Z), h(X, Z);
254
- var Ct = Pt(gt);
255
- return U(), Ct;
256
- }
257
- Dt(["click"]);
258
- Tt($t, { result: {}, endpoint: {}, session: {} }, [], [], !0);
259
- export {
260
- $t as W
261
- };
@@ -1,238 +0,0 @@
1
- import "./WheelOfFortuneWheel-le2uV09t.js";
2
- import { d as zt, e as xt, p as St, h as X, u as Tt, j as i, n as At, m as B, w as y, x as Mt, y as Pt, z as jt, s as Q, G as j, C as V, A as Ft, E as a, D as s, K as e, k as f, Y as it, t as L, v as n, l as T, r as G, U as Z, I as Lt, q as Et, L as $ } from "./utils-DrFJq1GB.js";
3
- import { E as nt } from "./error-DJgbe-Bh.js";
4
- import { b as Wt } from "./bonus-BroDvSJR.js";
5
- import { n as Bt } from "./noprize-DQHyTDC0.js";
6
- import { t as Gt } from "./tournament-BtKf5Btm.js";
7
- import { r as It } from "./role-CNEtykLr.js";
8
- import { l as Nt } from "./loyalty-Bf3uaVFP.js";
9
- import { t as Ot } from "./ticket-DcOVRE_N.js";
10
- import { c as Ut } from "./coin-DetgSMGn.js";
11
- import { a as Jt } from "./sparkles-Br3hNIM6.js";
12
- var Yt = j('<div class="ConfirmModalContent"><p class="ConfirmModalTitle"> </p> <p class="ConfirmModalBody"><!></p> <div class="ConfirmModalActions"><button class="PrimaryCta"> </button> <button class="SecondaryCta"> </button></div></div>'), qt = j('<img alt="DrawResult"/> <p class="DrawResultCopy"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>', 1), Ht = j('<img alt="Lose"/> <p class="DrawResultCopy"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>', 1), Kt = j('<img alt="DrawResult"/> <h2 class="DrawResultTitle"> </h2> <p class="DrawResultCopy"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>', 1), Xt = j('<img alt="DrawResult"/> <h2 class="DrawResultTitle"> </h2> <p class="DrawResultCopy"><!></p> <div class="DrawResultActions"><button class="PrimaryCta"> </button> <button class="SecondaryCta"> </button></div>', 1), Qt = j('<img alt="Error"/> <p class="DrawResultCopy"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>', 1), Vt = j('<div class="DrawResultPanel"><div class="DrawResultConfettiLayer"></div> <!> <div class="DrawResultStack"><!></div></div>');
13
- function Zt(lt, I) {
14
- St(I, !0);
15
- const r = () => Pt(jt, "$_", ct), [ct, vt] = Ft(), k = X(I, "result", 7), J = X(I, "endpoint", 7), N = X(I, "session", 7), ut = $(() => k()?.success !== !0), tt = $(() => k()?.type), dt = $(() => i(tt) === "noprize"), _t = {
16
- bonus: r()("prizeBonus"),
17
- role: r()("prizeRole"),
18
- tournament: r()("prizeTournament"),
19
- ticket: r()("prizeTicket"),
20
- loyalty: r()("prizeLoyalty"),
21
- challenge: r()("prizeChallenge")
22
- }, Y = { loyalty: Nt, role: It, ticket: Ot, bonus: Wt, noprize: Bt, tournament: Gt };
23
- let O = Q(void 0), g = Q("initial"), h = Q(!1);
24
- Tt(() => {
25
- i(O) && i(g) === "claimSuccess" && Jt(i(O));
26
- });
27
- const at = (t) => {
28
- const o = new URL(`${J()}/v1/wof/draw/${k().lotteryProgramID}`), l = new Headers();
29
- N() && l.append("X-SessionId", N()), l.append("Content-Type", "application/json");
30
- const d = { action: t, guid: k().guid };
31
- return fetch(o, { method: "PUT", headers: l, body: JSON.stringify(d) }).then((C) => C.json());
32
- }, et = async () => {
33
- f(h, !0);
34
- try {
35
- const t = await at(0), o = Lt(t, "draw"), l = o?.state === "fulfilled" && o?.completed, d = o?.state === "drawn" && !o?.completed;
36
- l ? f(g, "claimSuccess") : d ? f(g, "claimFailed") : f(g, "claimFailed");
37
- } catch (t) {
38
- console.log(t), f(g, "claimFailed");
39
- } finally {
40
- f(h, !1);
41
- }
42
- }, pt = async () => {
43
- f(h, !0), f(g, "initial");
44
- try {
45
- await at(2), window.postMessage({ type: "BackToWheel" }, window.location.href);
46
- } catch (t) {
47
- console.log(t);
48
- } finally {
49
- f(h, !1);
50
- }
51
- }, mt = () => {
52
- window.postMessage({ type: "BackToWheel" }, window.location.href);
53
- }, q = () => {
54
- window.postMessage({ type: "SpinAgain" }, window.location.href);
55
- };
56
- var ft = {
57
- get result() {
58
- return k();
59
- },
60
- set result(t) {
61
- k(t), V();
62
- },
63
- get endpoint() {
64
- return J();
65
- },
66
- set endpoint(t) {
67
- J(t), V();
68
- },
69
- get session() {
70
- return N();
71
- },
72
- set session(t) {
73
- N(t), V();
74
- }
75
- }, H = Vt(), rt = a(H);
76
- At(rt, (t) => f(O, t), () => i(O));
77
- var st = s(rt, 2);
78
- {
79
- var gt = (t) => {
80
- var o = Yt(), l = a(o), d = a(l, !0);
81
- e(l);
82
- var C = s(l, 2), _ = a(C);
83
- it(_, () => r()("rejectWarningText")), e(C);
84
- var v = s(C, 2), c = a(v);
85
- c.__click = et;
86
- var R = a(c, !0);
87
- e(c);
88
- var w = s(c, 2);
89
- w.__click = pt;
90
- var p = a(w, !0);
91
- e(w), e(v), e(o), L(
92
- (m, z, D) => {
93
- n(d, m), c.disabled = i(h), n(R, z), w.disabled = i(h), n(p, D);
94
- },
95
- [
96
- () => r()("areYouSure"),
97
- () => r()("keepPrize"),
98
- () => r()("rejectPrize")
99
- ]
100
- ), y(t, o);
101
- };
102
- B(st, (t) => {
103
- i(g) === "rejectModal" && t(gt);
104
- });
105
- }
106
- var ot = s(st, 2), wt = a(ot);
107
- {
108
- var bt = (t) => {
109
- var o = qt(), l = T(o), d = s(l, 2), C = a(d, !0);
110
- e(d);
111
- var _ = s(d, 2), v = a(_);
112
- v.__click = mt;
113
- var c = a(v, !0);
114
- e(v), e(_), L(
115
- (R, w) => {
116
- G(l, "src", Y[k().type] ?? Ut), n(C, R), n(c, w);
117
- },
118
- [() => r()("prizeAssigned"), () => r()("backToGame")]
119
- ), y(t, o);
120
- }, yt = (t) => {
121
- var o = Z(), l = T(o);
122
- {
123
- var d = (_) => {
124
- var v = Ht(), c = T(v);
125
- Et(c, 1, "", null, {}, { Lose: !0 });
126
- var R = s(c, 2), w = a(R, !0);
127
- e(R);
128
- var p = s(R, 2), m = a(p);
129
- m.__click = q;
130
- var z = a(m, !0);
131
- e(m), e(p), L(
132
- (D, E) => {
133
- G(c, "src", nt), n(w, D), n(z, E);
134
- },
135
- [() => r()("drawFailed"), () => r()("backToGame")]
136
- ), y(_, v);
137
- }, C = (_) => {
138
- var v = Z(), c = T(v);
139
- {
140
- var R = (p) => {
141
- var m = Kt(), z = T(m), D = s(z, 2), E = a(D, !0);
142
- e(D);
143
- var b = s(D, 2), A = a(b, !0);
144
- e(b);
145
- var x = s(b, 2), u = a(x);
146
- u.__click = q;
147
- var W = a(u, !0);
148
- e(u), e(x), L(
149
- (S, M, F) => {
150
- G(z, "src", Y.noprize), n(E, S), n(A, M), u.disabled = i(h), n(W, F);
151
- },
152
- [
153
- () => r()("noPrizeTitle"),
154
- () => r()("noPrize"),
155
- () => r()("spinAgain")
156
- ]
157
- ), y(p, m);
158
- }, w = (p) => {
159
- var m = Z(), z = T(m);
160
- {
161
- var D = (b) => {
162
- var A = Xt(), x = T(A), u = s(x, 2), W = a(u, !0);
163
- e(u);
164
- var S = s(u, 2), M = a(S);
165
- it(M, () => r()("success", { values: { prize: _t[i(tt)] } })), e(S);
166
- var F = s(S, 2), P = a(F);
167
- P.__click = et;
168
- var K = a(P, !0);
169
- e(P);
170
- var U = s(P, 2);
171
- U.__click = () => f(g, "rejectModal");
172
- var Ct = a(U, !0);
173
- e(U), e(F), L(
174
- (Rt, Dt, kt) => {
175
- G(x, "src", Y[k().type]), n(W, Rt), P.disabled = i(h), n(K, Dt), U.disabled = i(h), n(Ct, kt);
176
- },
177
- [
178
- () => r()("congratulations"),
179
- () => r()("claimReward"),
180
- () => r()("reject")
181
- ]
182
- ), y(b, A);
183
- }, E = (b) => {
184
- var A = Qt(), x = T(A), u = s(x, 2), W = a(u, !0);
185
- e(u);
186
- var S = s(u, 2), M = a(S);
187
- M.__click = q;
188
- var F = a(M, !0);
189
- e(M), e(S), L(
190
- (P, K) => {
191
- G(x, "src", nt), n(W, P), n(F, K);
192
- },
193
- [() => r()("errorJSON"), () => r()("backToGame")]
194
- ), y(b, A);
195
- };
196
- B(
197
- z,
198
- (b) => {
199
- i(ut) ? b(E, !1) : b(D);
200
- },
201
- !0
202
- );
203
- }
204
- y(p, m);
205
- };
206
- B(
207
- c,
208
- (p) => {
209
- i(dt) ? p(R) : p(w, !1);
210
- },
211
- !0
212
- );
213
- }
214
- y(_, v);
215
- };
216
- B(
217
- l,
218
- (_) => {
219
- i(g) === "claimFailed" ? _(d) : _(C, !1);
220
- },
221
- !0
222
- );
223
- }
224
- y(t, o);
225
- };
226
- B(wt, (t) => {
227
- i(g) === "claimSuccess" ? t(bt) : t(yt, !1);
228
- });
229
- }
230
- e(ot), e(H), y(lt, H);
231
- var ht = Mt(ft);
232
- return vt(), ht;
233
- }
234
- zt(["click"]);
235
- xt(Zt, { result: {}, endpoint: {}, session: {} }, [], [], !0);
236
- export {
237
- Zt as W
238
- };
@@ -1,13 +0,0 @@
1
- "use strict";require("./WheelOfFortuneWheel-JKN_P3ES.cjs");const e=require("./utils-D6FQ3_dW.cjs");var he=e.from_html('<div class="LuckyWheelHistoryItem SkeletonRow svelte-k1ejn7"></div>'),_e=e.from_html('<div class="LuckyWheelHistoryHeader HistoryGrid svelte-k1ejn7"><p class="svelte-k1ejn7">#</p> <p class="svelte-k1ejn7"> </p> <p class="svelte-k1ejn7"> </p> <p class="svelte-k1ejn7"> </p> <p class="svelte-k1ejn7"> </p></div> <!>',1),ue=e.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-k1ejn7"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-k1ejn7"></path></svg>'),xe=e.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-k1ejn7"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-k1ejn7"></path></svg>'),me=e.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-k1ejn7"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-k1ejn7"></path></svg>'),ke=e.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-k1ejn7"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-k1ejn7"></path></svg>'),be=e.from_html('<div class="LuckyWheelHistoryItem HistoryGrid svelte-k1ejn7"><p class="svelte-k1ejn7"> </p> <p class="svelte-k1ejn7"> </p> <div class="DateTimeCell svelte-k1ejn7"><span class="svelte-k1ejn7"> </span> <span class="svelte-k1ejn7"> </span></div> <div class="HistoryIcon svelte-k1ejn7"><!></div> <div class="HistoryIcon svelte-k1ejn7"><!></div></div>'),ye=e.from_html('<span class="PaginationEllipsis svelte-k1ejn7">&hellip;</span>'),je=e.from_html("<button> </button>"),Ce=e.from_html('<div class="LuckyWheelPagination svelte-k1ejn7"><button class="PaginationButton PaginationNav svelte-k1ejn7">&#8249;</button> <div class="PaginationPages svelte-k1ejn7"></div> <button class="PaginationButton PaginationNav svelte-k1ejn7">&#8250;</button></div>'),we=e.from_html('<div class="LuckyWheelHistoryHeader HistoryGrid svelte-k1ejn7"><p class="svelte-k1ejn7">#</p> <p class="svelte-k1ejn7"> </p> <p class="svelte-k1ejn7"> </p> <p class="svelte-k1ejn7"> </p> <p class="svelte-k1ejn7"> </p></div> <!> <!>',1),Le=e.from_html('<h2 class="NoHistory svelte-k1ejn7"> </h2>'),Pe=e.from_html('<div class="HistoryList svelte-k1ejn7"><!></div>');const He={hash:"svelte-k1ejn7",code:`.svelte-k1ejn7,
2
- .svelte-k1ejn7::before,
3
- .svelte-k1ejn7::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.HistoryList.svelte-k1ejn7 {display:flex;flex-direction:column;gap:6px;width:90%;margin:auto;}.HistoryGrid.svelte-k1ejn7 {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;}.DateTimeCell.svelte-k1ejn7 {display:flex;flex-direction:column;gap:2px;}.DateTimeCell.svelte-k1ejn7 span:where(.svelte-k1ejn7):last-child {opacity:0.6;font-size:10px;}.LuckyWheelHistoryItem.svelte-k1ejn7 {width:100%;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);font-size:12px;}.LuckyWheelHistoryHeader.svelte-k1ejn7 {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;}.HistoryIcon.svelte-k1ejn7 {display:flex;align-items:center;justify-content:center;}.NoHistory.svelte-k1ejn7 {width:100%;font-size:14px;font-weight:400;margin-top:12px;}.LuckyWheelPagination.svelte-k1ejn7 {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;}.PaginationPages.svelte-k1ejn7 {display:flex;align-items:center;gap:4px;}.PaginationEllipsis.svelte-k1ejn7 {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;}.PaginationButton.svelte-k1ejn7 {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;}.PaginationButton.svelte-k1ejn7:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));}.PaginationButton.svelte-k1ejn7:disabled {opacity:0.4;cursor:not-allowed;}.PaginationPage.svelte-k1ejn7 {min-width:32px;text-align:center;padding:6px 8px;}.PaginationNav.svelte-k1ejn7 {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;}.PaginationPage.Active.svelte-k1ejn7 {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
4
-
5
- @keyframes svelte-k1ejn7-skeleton-pulse {
6
- 0%, 100% {
7
- opacity: 0.3;
8
- }
9
- 50% {
10
- opacity: 0.6;
11
- }
12
- }.SkeletonRow.svelte-k1ejn7 {pointer-events:none;
13
- animation: svelte-k1ejn7-skeleton-pulse 1.4s ease-in-out infinite;height:40px;}`};function K(X,I){e.push(I,!0),e.append_styles(X,He);const s=()=>e.store_get(e.$format,"$_",Q),[Q,V]=e.setup_stores(),F=e.prop(I,"programId",7),G=e.prop(I,"endpoint",7),W=e.prop(I,"session",7);let A=e.state(!0),d=e.state(e.proxy([])),Y=e.state(!1);const w=10;let o=e.state(1);const E=e.user_derived(()=>e.get(d)&&e.get(d).length>0?Math.ceil(e.get(d).length/w):1),$=e.user_derived(()=>e.get(d)&&e.get(d).length>0?e.get(d).slice((e.get(o)-1)*w,e.get(o)*w):[]),ee={bonus:s()("prizeBonus"),role:s()("prizeRole"),tournament:s()("prizeTournament"),ticket:s()("prizeTicket"),loyalty:s()("prizeLoyalty"),challenge:s()("prizeChallenge")},te=e.user_derived(()=>{const t=e.get(E);if(t<=5)return Array.from({length:t},(r,p)=>p+1);const n=[],v=e.get(o);n.push(1),v>3&&n.push("...");const a=Math.max(2,v-1),m=Math.min(t-1,v+1);for(let r=a;r<=m;r++)n.push(r);return v<t-2&&n.push("..."),t>1&&n.push(t),n}),N=t=>{t<1||t>e.get(E)||e.set(o,t,!0)},se=()=>{e.set(A,!0);const t=new URL(`${G()}/v1/wof/outcome/${F()}`),n=new Headers;W()&&n.append("X-SessionId",W()),fetch(t,{method:"GET",headers:n,cache:"no-store"}).then(a=>a.json()).then(a=>{e.set(d,a==null?void 0:a.items.map(m=>e.normalizeDrawResult(m,"history")),!0),e.set(o,1)}).catch(a=>{console.log(a),e.set(Y,!0)}).finally(()=>e.set(A,!1))};e.onMount(()=>{se()});var ne={get programId(){return F()},set programId(t){F(t),e.flushSync()},get endpoint(){return G()},set endpoint(t){G(t),e.flushSync()},get session(){return W()},set session(t){W(t),e.flushSync()}},Z=Pe(),ae=e.child(Z);{var re=t=>{var n=_e(),v=e.first_child(n),a=e.sibling(e.child(v),2),m=e.child(a,!0);e.reset(a);var r=e.sibling(a,2),p=e.child(r,!0);e.reset(r);var g=e.sibling(r,2),k=e.child(g,!0);e.reset(g);var M=e.sibling(g,2),L=e.child(M,!0);e.reset(M),e.reset(v);var q=e.sibling(v,2);e.each(q,17,()=>Array(w),e.index,(b,T,P,S)=>{var R=he();e.append(b,R)}),e.template_effect((b,T,P,S)=>{e.set_text(m,b),e.set_text(p,T),e.set_text(k,P),e.set_text(L,S)},[()=>s()("name"),()=>s()("date"),()=>s()("spin"),()=>s()("assigned")]),e.append(t,n)},ie=t=>{var n=e.comment(),v=e.first_child(n);{var a=r=>{var p=we(),g=e.first_child(p),k=e.sibling(e.child(g),2),M=e.child(k,!0);e.reset(k);var L=e.sibling(k,2),q=e.child(L,!0);e.reset(L);var b=e.sibling(L,2),T=e.child(b,!0);e.reset(b);var P=e.sibling(b,2),S=e.child(P,!0);e.reset(P),e.reset(g);var R=e.sibling(g,2);e.each(R,17,()=>e.get($),e.index,(y,l,x)=>{var f=be(),j=e.child(f),H=e.child(j);e.reset(j);var c=e.sibling(j,2),D=e.child(c,!0);e.reset(c);var z=e.sibling(c,2),B=e.child(z),O=e.child(B,!0);e.reset(B);var h=e.sibling(B,2),_=e.child(h,!0);e.reset(h),e.reset(z);var C=e.sibling(z,2),U=e.child(C);{var pe=i=>{var u=ue();e.append(i,u)},ce=i=>{var u=xe();e.append(i,u)};e.if_block(U,i=>{e.get(l).state==="drawn"||e.get(l).state==="fulfilled"?i(pe):i(ce,!1)})}e.reset(C);var J=e.sibling(C,2),de=e.child(J);{var ge=i=>{var u=me();e.append(i,u)},fe=i=>{var u=ke();e.append(i,u)};e.if_block(de,i=>{e.get(l).completed&&e.get(l).state==="fulfilled"?i(ge):i(fe,!1)})}e.reset(J),e.reset(f),e.template_effect((i,u)=>{e.set_text(H,`${(e.get(o)-1)*w+x+1}.`),e.set_text(D,ee[e.get(l).type]||"-"),e.set_text(O,i),e.set_text(_,u)},[()=>e.formatDateTimeForHistory(e.get(l).time).date,()=>e.formatDateTimeForHistory(e.get(l).time).time]),e.append(y,f)});var oe=e.sibling(R,2);{var ve=y=>{var l=Ce(),x=e.child(l);x.__click=()=>N(e.get(o)-1);var f=e.sibling(x,2);e.each(f,21,()=>e.get(te),e.index,(H,c)=>{var D=e.comment(),z=e.first_child(D);{var B=h=>{var _=ye();e.append(h,_)},O=h=>{var _=je();let C;_.__click=()=>N(e.get(c));var U=e.child(_,!0);e.reset(_),e.template_effect(()=>{C=e.set_class(_,1,"PaginationButton PaginationPage svelte-k1ejn7",null,C,{Active:e.get(o)===e.get(c)}),e.set_text(U,e.get(c))}),e.append(h,_)};e.if_block(z,h=>{e.get(c)==="..."?h(B):h(O,!1)})}e.append(H,D)}),e.reset(f);var j=e.sibling(f,2);j.__click=()=>N(e.get(o)+1),e.reset(l),e.template_effect((H,c)=>{x.disabled=e.get(o)===1,e.set_attribute(x,"aria-label",H),j.disabled=e.get(o)===e.get(E),e.set_attribute(j,"aria-label",c)},[()=>s()("previous"),()=>s()("next")]),e.append(y,l)};e.if_block(oe,y=>{e.get(E)>1&&y(ve)})}e.template_effect((y,l,x,f)=>{e.set_text(M,y),e.set_text(q,l),e.set_text(T,x),e.set_text(S,f)},[()=>s()("name"),()=>s()("date"),()=>s()("spin"),()=>s()("assigned")]),e.append(r,p)},m=r=>{var p=Le(),g=e.child(p,!0);e.reset(p),e.template_effect(k=>e.set_text(g,k),[()=>s()("noHistory")]),e.append(r,p)};e.if_block(v,r=>{e.get(d)&&e.get(d).length>0?r(a):r(m,!1)})}e.append(t,n)};e.if_block(ae,t=>{e.get(A)?t(re):t(ie,!1)})}e.reset(Z),e.append(X,Z);var le=e.pop(ne);return V(),le}e.delegate(["click"]);e.create_custom_element(K,{programId:{},endpoint:{},session:{}},[],[],!0);exports.WheelOfFortuneHistory=K;