@everymatrix/casino-game-overlay 1.91.0 → 1.91.2

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 (58) hide show
  1. package/components/{CasinoCoinroyaleContainer-DWB4R3Yr.js → CasinoCoinroyaleContainer-CLLpK1Ed.js} +4 -4
  2. package/components/{CasinoCoinroyaleContainer-Dd3WuhZB.cjs → CasinoCoinroyaleContainer-DHTzWkTJ.cjs} +1 -1
  3. package/components/{CasinoCoinroyaleContainer-CYo6yViq.js → CasinoCoinroyaleContainer-DqnKbBE7.js} +4 -4
  4. package/components/{CasinoCoinroyaleDetails-DSCo5sxs.js → CasinoCoinroyaleDetails-BdVDEPTm.js} +35 -35
  5. package/components/{CasinoCoinroyaleDetails-M-nsYaMC.cjs → CasinoCoinroyaleDetails-Em4xQoca.cjs} +1 -1
  6. package/components/{CasinoCoinroyaleDetails-BUuIGEfN.js → CasinoCoinroyaleDetails-X9TUrtj4.js} +33 -33
  7. package/components/{CasinoCoinroyaleList-nxJ_snBZ.cjs → CasinoCoinroyaleList-C6hKfOYw.cjs} +1 -1
  8. package/components/{CasinoCoinroyaleList-OFDWkS10.js → CasinoCoinroyaleList-DVSWGc29.js} +82 -82
  9. package/components/{CasinoCoinroyaleList-Ptn_lFhJ.js → CasinoCoinroyaleList-IplknfV1.js} +78 -78
  10. package/components/{CasinoGameOverlay-BW5pLP3w.js → CasinoGameOverlay-BtzBFnKd.js} +956 -611
  11. package/components/CasinoGameOverlay-DcfvouvT.cjs +4 -0
  12. package/components/{CasinoGameOverlay-BpgkV_Qf.js → CasinoGameOverlay-V7LdfRMk.js} +884 -540
  13. package/components/{CasinoMysteryChestContainer-BKyPp7ed.js → CasinoMysteryChestContainer-2q39nbfp.js} +4 -4
  14. package/components/{CasinoMysteryChestContainer-CoWCxXc4.cjs → CasinoMysteryChestContainer-BckJ8kSf.cjs} +1 -1
  15. package/components/{CasinoMysteryChestContainer-24nFpYMD.js → CasinoMysteryChestContainer-Bu5soH27.js} +4 -4
  16. package/components/{CasinoMysteryChestDetails-2vpt5ay2.js → CasinoMysteryChestDetails-B29xnOYi.js} +103 -101
  17. package/components/CasinoMysteryChestDetails-DJ6gz5xx.cjs +2 -0
  18. package/components/{CasinoMysteryChestDetails-YKYKG04E.js → CasinoMysteryChestDetails-Dd_ZCPFZ.js} +88 -86
  19. package/components/{CasinoMysteryChestModal-Bdgv0LOT.cjs → CasinoMysteryChestModal-CPrsQruR.cjs} +1 -1
  20. package/components/{CasinoMysteryChestModal-COfIacO_.js → CasinoMysteryChestModal-D8hCr0GS.js} +1 -1
  21. package/components/{CasinoMysteryChestModal-BzmBgt4C.js → CasinoMysteryChestModal-liWPvZLw.js} +1 -1
  22. package/components/{CasinoMysteryChestsList-DpPvplqH.js → CasinoMysteryChestsList-Bn1f7GtL.js} +35 -35
  23. package/components/{CasinoMysteryChestsList-DGb9yJ0g.js → CasinoMysteryChestsList-CV29Ly-U.js} +39 -39
  24. package/components/{CasinoMysteryChestsList-CdV3_k_m.cjs → CasinoMysteryChestsList-ZlpUP-_c.cjs} +1 -1
  25. package/components/{LotteryProgramWof-HYEpHNkB.js → LotteryProgramWof-BKlE0kKR.js} +2923 -2229
  26. package/components/LotteryProgramWof-BXO9ySHI.cjs +36 -0
  27. package/components/{LotteryProgramWof-D3ipu58U.js → LotteryProgramWof-CONWAs8w.js} +3386 -2518
  28. package/components/PrizeEngineChest-BpgJBZ-Y.cjs +1 -0
  29. package/components/PrizeEngineChest-D-GSJmRs.js +243 -0
  30. package/components/PrizeEngineChest-DQ2V6oL0.js +265 -0
  31. package/components/PrizeEngineCoin-C7AvFwNL.js +294 -0
  32. package/components/PrizeEngineCoin-DMf_jPUy.cjs +1 -0
  33. package/components/PrizeEngineCoin-jRTdpoLr.js +272 -0
  34. package/components/PrizeEngineDetails-B32Oyuua.cjs +1 -0
  35. package/components/PrizeEngineDetails-Bok3RJt0.js +1956 -0
  36. package/components/PrizeEngineDetails-BwwbWZIV.js +1996 -0
  37. package/components/PrizeEngineHistory--7ch2ibC.js +561 -0
  38. package/components/PrizeEngineHistory-BS2YDAR_.cjs +1 -0
  39. package/components/PrizeEngineHistory-CT4oW3nn.js +531 -0
  40. package/components/PrizeEngineList-BtST-Ok-.js +473 -0
  41. package/components/PrizeEngineList-C8K3okMV.js +439 -0
  42. package/components/PrizeEngineList-CzJMqs2M.cjs +1 -0
  43. package/components/PrizeEngineLuckywheel-B_dOeIeL.cjs +1 -0
  44. package/components/PrizeEngineLuckywheel-CDAcodqf.js +273 -0
  45. package/components/PrizeEngineLuckywheel-sIZh84m_.js +273 -0
  46. package/components/PrizeEngineSuite-CZAGeW2x.cjs +1 -0
  47. package/components/PrizeEngineSuite-MfBz9bMX.js +713 -0
  48. package/components/PrizeEngineSuite-SzG6RFWp.js +713 -0
  49. package/components/WheelSVG-BKSG01DQ.js +1476 -0
  50. package/components/WheelSVG-BVu6Gymg.cjs +34 -0
  51. package/components/WheelSVG-ClHiUv-P.js +1442 -0
  52. package/es2015/casino-game-overlay.cjs +1 -1
  53. package/es2015/casino-game-overlay.js +1 -1
  54. package/esnext/casino-game-overlay.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CasinoGameOverlay-DhfutTdf.cjs +0 -1
  57. package/components/CasinoMysteryChestDetails-DUuxpGjN.cjs +0 -2
  58. package/components/LotteryProgramWof-BwjH4rzJ.cjs +0 -35
@@ -0,0 +1,531 @@
1
+ import { S as Z, b as K, s as V, f as I, d as Q, n as C, e as L, C as X, D as Y, g as k, p as y, l as p, m as f, N as J, w as $, o as ee, A as te, L as z, M as N, j as se, E as M, F as P, h as H, k as E, t as S, I as re, J as le, K as ie, c as ne } from "./CasinoGameOverlay-V7LdfRMk.js";
2
+ import { f as oe } from "./LotteryProgramWof-BKlE0kKR.js";
3
+ import { $ as T, b as ae, a as ce, i as he, c as ue } from "./CasinoMysteryChestContainer-Bu5soH27.js";
4
+ import { f as me } from "./CasinoMysteryChestsList-Bn1f7GtL.js";
5
+ import "../stencil/ui-skeleton-W50o8tfg.js";
6
+ const D = {
7
+ en: {
8
+ History: "History",
9
+ NoHistories: "No histories"
10
+ }
11
+ };
12
+ function fe({ withLocale: l, translations: e }) {
13
+ T.subscribe((t) => {
14
+ t == null && (ae.set(e), T.set(l));
15
+ });
16
+ }
17
+ function W(l, e) {
18
+ ce(l, e);
19
+ }
20
+ function ye(l) {
21
+ T.set(l);
22
+ }
23
+ const de = () => {
24
+ fe({ withLocale: "en", translations: {} }), Object.keys(D).forEach((l) => {
25
+ W(l, D[l]);
26
+ });
27
+ }, F = async (l, e, t, s = {}) => {
28
+ const r = new URL(l + "/v1" + e);
29
+ s.params && Object.keys(s.params).forEach((m) => r.searchParams.append(m, s.params[m]));
30
+ const o = {
31
+ method: s.method || "GET",
32
+ headers: {
33
+ "Content-Type": "application/json",
34
+ Accept: "text/plain",
35
+ ...t ? { "x-SessionId": t } : {},
36
+ ...s.headers
37
+ },
38
+ body: s.body
39
+ }, n = await (await fetch(r.toString(), o)).text();
40
+ return JSON.parse(n);
41
+ }, ve = {
42
+ fetchLotteries: async (l, e, t) => await F(l, "/wof/lotteries", e, {
43
+ params: t?.length ? { filter: t.map((s) => `Types[]=${s}`).join(",") } : { filter: "Types[]=wheelOfFortune" }
44
+ }),
45
+ fetchFullHistory: async (l, e, t, s) => {
46
+ const r = (a) => {
47
+ const _ = new URL(l + "/v1" + a);
48
+ return s?.length && s.forEach((w) => _.searchParams.append("filter", `Types[]=${w}`)), _.toString();
49
+ }, o = async (a) => (await fetch(r(a), {
50
+ headers: {
51
+ "Content-Type": "application/json",
52
+ Accept: "text/plain",
53
+ ...e ? { "x-SessionId": e } : {}
54
+ }
55
+ })).json(), [i, n] = await Promise.all([
56
+ o("/wof/lotteryHistory"),
57
+ o("/wof/lotteries")
58
+ ]), m = n?.items || [], g = i?.items || [], u = new Set(m.map((a) => a.program.id)), h = g.map((a) => a.programID).filter((a) => u.has(a));
59
+ return h.length === 0 ? [] : (await Promise.all(
60
+ h.map(async (a) => {
61
+ const _ = await F(l, `/wof/outcome/${a}`, e), w = m.find((v) => v.program.id === a);
62
+ if (!_?.items?.length)
63
+ return null;
64
+ const x = _.items.map((v) => {
65
+ const b = v.draw.result.wheelOfFortunePartitionIndex, c = w?.program?.wheelOfFortune?.partitions[b];
66
+ return {
67
+ prizeName: c?.name?.[t] || c?.name?.["*"],
68
+ prizeImage: c?.prizeImage?.[t] || c?.prizeImage?.["*"] || c?.image1?.[t] || c?.image1?.["*"],
69
+ state: v.draw.state === "fulfilled",
70
+ date: me(new Date(v.draw.time), "LLL d, yyyy HH:mm:ss")
71
+ };
72
+ });
73
+ return {
74
+ id: a,
75
+ name: w?.program?.name[t] || w?.program?.name["*"] || "Unknown Game",
76
+ outcomes: x
77
+ };
78
+ })
79
+ )).filter((a) => a !== null);
80
+ }
81
+ }, A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e", G = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e";
82
+ function ge(l) {
83
+ Q(l, "svelte-1r6yeh4", ':host{display:block;height:100%;flex-grow:1}.PrizeHistoryContent.svelte-1r6yeh4.svelte-1r6yeh4{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif);margin:30px auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{overflow-y:auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar{width:4px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track{background:transparent}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover{background:var(--emw--color-gray-290, #284044)}.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{flex-grow:1;display:flex;flex-direction:column;gap:24px;padding-right:10px;padding-bottom:50px}.HistoryItem.svelte-1r6yeh4.svelte-1r6yeh4{margin-bottom:40px;flex-shrink:0}.GroupName.svelte-1r6yeh4.svelte-1r6yeh4{color:var(--emw--color-white, #ffffff);font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:18px;margin-bottom:16px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4{max-height:215px;display:flex;flex-direction:column}.OutcomeItem.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--emw--color-gray-transparency-20, rgba(114, 151, 135, 0.2));color:var(--emw--color-primary-variant, #a9ccbe);min-height:40px}.OutcomeItem.svelte-1r6yeh4 .OutcomeLeft.svelte-1r6yeh4{display:flex;align-items:center;gap:16px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo.svelte-1r6yeh4{display:flex;align-items:center;gap:8px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .PrizeImg.svelte-1r6yeh4{height:20px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .StatusIcon.svelte-1r6yeh4{height:16px}.OutcomeItem.svelte-1r6yeh4 .Date.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.HistoryLoader.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999);--emw-skeleton-text-width:255px}.HistoryLoader.svelte-1r6yeh4 .GroupLoader.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .LoaderBody.svelte-1r6yeh4{display:flex;justify-content:space-between}.HistoryLoader.svelte-1r6yeh4 .LoaderLeft.svelte-1r6yeh4{display:flex}.HistoryLoader.svelte-1r6yeh4 .Dot.svelte-1r6yeh4 .Skeleton{border-radius:50%;margin-right:10px}.HistoryLoader.svelte-1r6yeh4 .Text.svelte-1r6yeh4 .Skeleton{margin-right:20px}.HistoryLoader.Mobile.svelte-1r6yeh4 .Skeleton{--emw-skeleton-text-width:235px}.EmptyState.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:center;align-items:center;height:200px;color:var(--emw--color-secondary-variant, #a9ccbe)}.Mobile.svelte-1r6yeh4 .GroupName.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.Mobile.svelte-1r6yeh4 .OutcomeItem.svelte-1r6yeh4{font-size:var(--emw--font-size-x-small, 12px);padding:0}.Mobile.svelte-1r6yeh4 .OutcomeItem .Date.svelte-1r6yeh4{font-size:11px}');
84
+ }
85
+ function R(l, e, t) {
86
+ const s = l.slice();
87
+ return s[21] = e[t], s;
88
+ }
89
+ function U(l, e, t) {
90
+ const s = l.slice();
91
+ return s[24] = e[t], s[26] = t, s;
92
+ }
93
+ function pe(l, e, t) {
94
+ const s = l.slice();
95
+ return s[16] = e[t], s;
96
+ }
97
+ function _e(l, e, t) {
98
+ const s = l.slice();
99
+ return s[16] = e[t], s;
100
+ }
101
+ function be(l) {
102
+ let e, t, s = (
103
+ /*$_*/
104
+ l[3]("NoHistories") + ""
105
+ ), r;
106
+ return {
107
+ c() {
108
+ e = p("div"), t = p("p"), r = P(s), f(e, "class", "EmptyState svelte-1r6yeh4");
109
+ },
110
+ m(o, i) {
111
+ k(o, e, i), y(e, t), y(t, r);
112
+ },
113
+ p(o, i) {
114
+ i & /*$_*/
115
+ 8 && s !== (s = /*$_*/
116
+ o[3]("NoHistories") + "") && M(r, s);
117
+ },
118
+ d(o) {
119
+ o && L(e);
120
+ }
121
+ };
122
+ }
123
+ function we(l) {
124
+ let e, t = z(
125
+ /*historyData*/
126
+ l[2]
127
+ ), s = [];
128
+ for (let r = 0; r < t.length; r += 1)
129
+ s[r] = q(R(l, t, r));
130
+ return {
131
+ c() {
132
+ for (let r = 0; r < s.length; r += 1)
133
+ s[r].c();
134
+ e = se();
135
+ },
136
+ m(r, o) {
137
+ for (let i = 0; i < s.length; i += 1)
138
+ s[i] && s[i].m(r, o);
139
+ k(r, e, o);
140
+ },
141
+ p(r, o) {
142
+ if (o & /*historyData*/
143
+ 4) {
144
+ t = z(
145
+ /*historyData*/
146
+ r[2]
147
+ );
148
+ let i;
149
+ for (i = 0; i < t.length; i += 1) {
150
+ const n = R(r, t, i);
151
+ s[i] ? s[i].p(n, o) : (s[i] = q(n), s[i].c(), s[i].m(e.parentNode, e));
152
+ }
153
+ for (; i < s.length; i += 1)
154
+ s[i].d(1);
155
+ s.length = t.length;
156
+ }
157
+ },
158
+ d(r) {
159
+ r && L(e), N(s, r);
160
+ }
161
+ };
162
+ }
163
+ function xe(l) {
164
+ let e, t = z([1, 2, 3]), s = [];
165
+ for (let r = 0; r < 3; r += 1)
166
+ s[r] = He(pe(l, t, r));
167
+ return {
168
+ c() {
169
+ e = p("div");
170
+ for (let r = 0; r < 3; r += 1)
171
+ s[r].c();
172
+ f(e, "class", "HistoryLoader svelte-1r6yeh4"), J(
173
+ e,
174
+ "Mobile",
175
+ /*mobileView*/
176
+ l[4]
177
+ );
178
+ },
179
+ m(r, o) {
180
+ k(r, e, o);
181
+ for (let i = 0; i < 3; i += 1)
182
+ s[i] && s[i].m(e, null);
183
+ },
184
+ p: C,
185
+ d(r) {
186
+ r && L(e), N(s, r);
187
+ }
188
+ };
189
+ }
190
+ function Le(l) {
191
+ let e, t;
192
+ return {
193
+ c() {
194
+ e = p("img"), S(e.src, t = /*outcome*/
195
+ l[24].prizeImage) || f(e, "src", t), f(e, "alt", "prize"), f(e, "class", "PrizeImg svelte-1r6yeh4");
196
+ },
197
+ m(s, r) {
198
+ k(s, e, r);
199
+ },
200
+ p(s, r) {
201
+ r & /*historyData*/
202
+ 4 && !S(e.src, t = /*outcome*/
203
+ s[24].prizeImage) && f(e, "src", t);
204
+ },
205
+ d(s) {
206
+ s && L(e);
207
+ }
208
+ };
209
+ }
210
+ function ke(l) {
211
+ let e, t = (
212
+ /*outcome*/
213
+ l[24].prizeName + ""
214
+ ), s;
215
+ return {
216
+ c() {
217
+ e = p("span"), s = P(t);
218
+ },
219
+ m(r, o) {
220
+ k(r, e, o), y(e, s);
221
+ },
222
+ p(r, o) {
223
+ o & /*historyData*/
224
+ 4 && t !== (t = /*outcome*/
225
+ r[24].prizeName + "") && M(s, t);
226
+ },
227
+ d(r) {
228
+ r && L(e);
229
+ }
230
+ };
231
+ }
232
+ function B(l) {
233
+ let e, t, s, r, o, i, n, m, g, u, h, d = (
234
+ /*outcome*/
235
+ l[24].date + ""
236
+ ), a, _;
237
+ function w(b, c) {
238
+ if (
239
+ /*outcome*/
240
+ b[24].prizeName
241
+ )
242
+ return ke;
243
+ if (
244
+ /*outcome*/
245
+ b[24].prizeImage
246
+ )
247
+ return Le;
248
+ }
249
+ let x = w(l), v = x && x(l);
250
+ return {
251
+ c() {
252
+ e = p("div"), t = p("div"), s = p("span"), s.textContent = `${/*index*/
253
+ l[26] + 1}`, r = H(), o = p("div"), v && v.c(), i = H(), n = p("img"), g = H(), u = p("div"), h = p("span"), a = P(d), _ = H(), f(s, "class", "Index"), S(n.src, m = /*outcome*/
254
+ l[24].state ? A : G) || f(n, "src", m), f(n, "alt", "status"), f(n, "class", "StatusIcon svelte-1r6yeh4"), f(o, "class", "PrizeInfo svelte-1r6yeh4"), f(t, "class", "OutcomeLeft svelte-1r6yeh4"), f(h, "class", "Date svelte-1r6yeh4"), f(u, "class", "OutcomeRight"), f(e, "class", "OutcomeItem svelte-1r6yeh4");
255
+ },
256
+ m(b, c) {
257
+ k(b, e, c), y(e, t), y(t, s), y(t, r), y(t, o), v && v.m(o, null), y(o, i), y(o, n), y(e, g), y(e, u), y(u, h), y(h, a), y(e, _);
258
+ },
259
+ p(b, c) {
260
+ x === (x = w(b)) && v ? v.p(b, c) : (v && v.d(1), v = x && x(b), v && (v.c(), v.m(o, i))), c & /*historyData*/
261
+ 4 && !S(n.src, m = /*outcome*/
262
+ b[24].state ? A : G) && f(n, "src", m), c & /*historyData*/
263
+ 4 && d !== (d = /*outcome*/
264
+ b[24].date + "") && M(a, d);
265
+ },
266
+ d(b) {
267
+ b && L(e), v && v.d();
268
+ }
269
+ };
270
+ }
271
+ function q(l) {
272
+ let e, t, s = (
273
+ /*group*/
274
+ l[21].name + ""
275
+ ), r, o, i, n, m, g = z(
276
+ /*group*/
277
+ l[21].outcomes
278
+ ), u = [];
279
+ for (let h = 0; h < g.length; h += 1)
280
+ u[h] = B(U(l, g, h));
281
+ return {
282
+ c() {
283
+ e = p("div"), t = p("div"), r = P(s), o = H(), i = p("div");
284
+ for (let h = 0; h < u.length; h += 1)
285
+ u[h].c();
286
+ m = H(), f(t, "class", "GroupName svelte-1r6yeh4"), f(i, "class", "OutcomesList svelte-1r6yeh4"), f(i, "style", n = /*group*/
287
+ l[21].outcomes.length <= 5 ? "overflow: hidden;" : ""), f(e, "class", "HistoryItem svelte-1r6yeh4");
288
+ },
289
+ m(h, d) {
290
+ k(h, e, d), y(e, t), y(t, r), y(e, o), y(e, i);
291
+ for (let a = 0; a < u.length; a += 1)
292
+ u[a] && u[a].m(i, null);
293
+ y(e, m);
294
+ },
295
+ p(h, d) {
296
+ if (d & /*historyData*/
297
+ 4 && s !== (s = /*group*/
298
+ h[21].name + "") && M(r, s), d & /*historyData*/
299
+ 4) {
300
+ g = z(
301
+ /*group*/
302
+ h[21].outcomes
303
+ );
304
+ let a;
305
+ for (a = 0; a < g.length; a += 1) {
306
+ const _ = U(h, g, a);
307
+ u[a] ? u[a].p(_, d) : (u[a] = B(_), u[a].c(), u[a].m(i, null));
308
+ }
309
+ for (; a < u.length; a += 1)
310
+ u[a].d(1);
311
+ u.length = g.length;
312
+ }
313
+ d & /*historyData*/
314
+ 4 && n !== (n = /*group*/
315
+ h[21].outcomes.length <= 5 ? "overflow: hidden;" : "") && f(i, "style", n);
316
+ },
317
+ d(h) {
318
+ h && L(e), N(u, h);
319
+ }
320
+ };
321
+ }
322
+ function Ie(l) {
323
+ let e;
324
+ return {
325
+ c() {
326
+ e = p("div"), e.innerHTML = '<div class="LoaderLeft svelte-1r6yeh4"><ui-skeleton class="Dot svelte-1r6yeh4" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" height="16px"></ui-skeleton></div> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" width="50px" height="16px"></ui-skeleton>', f(e, "class", "LoaderBody svelte-1r6yeh4");
327
+ },
328
+ m(t, s) {
329
+ k(t, e, s);
330
+ },
331
+ p: C,
332
+ d(t) {
333
+ t && L(e);
334
+ }
335
+ };
336
+ }
337
+ function He(l) {
338
+ let e, t, s, r, o = z([1, 2, 3]), i = [];
339
+ for (let n = 0; n < 3; n += 1)
340
+ i[n] = Ie(_e(l, o, n));
341
+ return {
342
+ c() {
343
+ e = p("div"), t = p("ui-skeleton"), s = H();
344
+ for (let n = 0; n < 3; n += 1)
345
+ i[n].c();
346
+ r = H(), E(t, "structure", "text"), E(t, "height", "16px"), f(e, "class", "GroupLoader svelte-1r6yeh4");
347
+ },
348
+ m(n, m) {
349
+ k(n, e, m), y(e, t), y(e, s);
350
+ for (let g = 0; g < 3; g += 1)
351
+ i[g] && i[g].m(e, null);
352
+ y(e, r);
353
+ },
354
+ p: C,
355
+ d(n) {
356
+ n && L(e), N(i, n);
357
+ }
358
+ };
359
+ }
360
+ function ze(l) {
361
+ let e, t, s;
362
+ function r(n, m) {
363
+ return (
364
+ /*loading*/
365
+ n[1] ? xe : (
366
+ /*historyData*/
367
+ n[2].length > 0 ? we : be
368
+ )
369
+ );
370
+ }
371
+ let o = r(l), i = o(l);
372
+ return {
373
+ c() {
374
+ e = p("div"), t = p("div"), i.c(), f(t, "class", "HistoryList svelte-1r6yeh4"), f(e, "class", "PrizeHistoryContent svelte-1r6yeh4"), J(
375
+ e,
376
+ "Mobile",
377
+ /*mobileView*/
378
+ l[4]
379
+ );
380
+ },
381
+ m(n, m) {
382
+ k(n, e, m), y(e, t), i.m(t, null), l[13](e);
383
+ },
384
+ p(n, [m]) {
385
+ o === (o = r(n)) && i ? i.p(n, m) : (i.d(1), i = o(n), i && (i.c(), i.m(t, null)));
386
+ },
387
+ i(n) {
388
+ n && (s || X(() => {
389
+ s = Y(e, oe, { duration: 300 }), s.start();
390
+ }));
391
+ },
392
+ o: C,
393
+ d(n) {
394
+ n && L(e), i.d(), l[13](null);
395
+ }
396
+ };
397
+ }
398
+ let Oe = null;
399
+ function Se(l, e, t) {
400
+ let s;
401
+ $(l, ue, (c) => t(3, s = c));
402
+ let { endpoint: r = "" } = e, { session: o = "" } = e, { lang: i = "en" } = e, { clientstyling: n = "" } = e, { clientstylingurl: m = "" } = e, { translationurl: g = "" } = e, { mbsource: u = "" } = e, { type: h = "wheelOfFortune" } = e, d;
403
+ const a = he(window.navigator.userAgent);
404
+ let _ = !0, w = [];
405
+ de();
406
+ const x = () => {
407
+ fetch(g).then((O) => O.json()).then((O) => {
408
+ Object.keys(O).forEach((j) => {
409
+ W(j, O[j]);
410
+ });
411
+ });
412
+ }, v = async () => {
413
+ if (!(!r || !o)) {
414
+ t(1, _ = !0);
415
+ try {
416
+ t(2, w = await ve.fetchFullHistory(r, o, i, [h]));
417
+ } catch (c) {
418
+ console.error("[PrizeEngineHistory] Fetch failed", c);
419
+ } finally {
420
+ t(1, _ = !1);
421
+ }
422
+ }
423
+ };
424
+ ee(() => () => {
425
+ });
426
+ function b(c) {
427
+ te[c ? "unshift" : "push"](() => {
428
+ d = c, t(0, d);
429
+ });
430
+ }
431
+ return l.$$set = (c) => {
432
+ "endpoint" in c && t(5, r = c.endpoint), "session" in c && t(6, o = c.session), "lang" in c && t(7, i = c.lang), "clientstyling" in c && t(8, n = c.clientstyling), "clientstylingurl" in c && t(9, m = c.clientstylingurl), "translationurl" in c && t(10, g = c.translationurl), "mbsource" in c && t(11, u = c.mbsource), "type" in c && t(12, h = c.type);
433
+ }, l.$$.update = () => {
434
+ l.$$.dirty & /*lang*/
435
+ 128 && i && ye(i), l.$$.dirty & /*translationurl*/
436
+ 1024 && g && x(), l.$$.dirty & /*endpoint, session, type*/
437
+ 4192 && r && o && h && v(), l.$$.dirty & /*clientstyling, rootContainer*/
438
+ 257 && n && d && re(d, n), l.$$.dirty & /*clientstylingurl, rootContainer*/
439
+ 513 && m && d && le(d, m), l.$$.dirty & /*mbsource, rootContainer*/
440
+ 2049 && u && d && ie(d, `${u}.Style`, Oe);
441
+ }, [
442
+ d,
443
+ _,
444
+ w,
445
+ s,
446
+ a,
447
+ r,
448
+ o,
449
+ i,
450
+ n,
451
+ m,
452
+ g,
453
+ u,
454
+ h,
455
+ b
456
+ ];
457
+ }
458
+ class Ce extends Z {
459
+ constructor(e) {
460
+ super(), K(
461
+ this,
462
+ e,
463
+ Se,
464
+ ze,
465
+ V,
466
+ {
467
+ endpoint: 5,
468
+ session: 6,
469
+ lang: 7,
470
+ clientstyling: 8,
471
+ clientstylingurl: 9,
472
+ translationurl: 10,
473
+ mbsource: 11,
474
+ type: 12
475
+ },
476
+ ge
477
+ );
478
+ }
479
+ get endpoint() {
480
+ return this.$$.ctx[5];
481
+ }
482
+ set endpoint(e) {
483
+ this.$$set({ endpoint: e }), I();
484
+ }
485
+ get session() {
486
+ return this.$$.ctx[6];
487
+ }
488
+ set session(e) {
489
+ this.$$set({ session: e }), I();
490
+ }
491
+ get lang() {
492
+ return this.$$.ctx[7];
493
+ }
494
+ set lang(e) {
495
+ this.$$set({ lang: e }), I();
496
+ }
497
+ get clientstyling() {
498
+ return this.$$.ctx[8];
499
+ }
500
+ set clientstyling(e) {
501
+ this.$$set({ clientstyling: e }), I();
502
+ }
503
+ get clientstylingurl() {
504
+ return this.$$.ctx[9];
505
+ }
506
+ set clientstylingurl(e) {
507
+ this.$$set({ clientstylingurl: e }), I();
508
+ }
509
+ get translationurl() {
510
+ return this.$$.ctx[10];
511
+ }
512
+ set translationurl(e) {
513
+ this.$$set({ translationurl: e }), I();
514
+ }
515
+ get mbsource() {
516
+ return this.$$.ctx[11];
517
+ }
518
+ set mbsource(e) {
519
+ this.$$set({ mbsource: e }), I();
520
+ }
521
+ get type() {
522
+ return this.$$.ctx[12];
523
+ }
524
+ set type(e) {
525
+ this.$$set({ type: e }), I();
526
+ }
527
+ }
528
+ customElements.define("prize-engine-history", ne(Ce, { endpoint: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, type: {} }, [], [], !0));
529
+ export {
530
+ Ce as default
531
+ };