@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,713 @@
1
+ import { S as pe, b as me, s as ge, f as k, d as he, n as L, e as z, g as T, j as se, w as be, o as we, x as j, N as w, p as m, l as h, h as S, m as g, A as ye, q as M, E as A, F as Y, r as le, T as F, C as V, D as U, U as E, V as Z, I as ve, J as _e, K as ke, c as ze } from "./CasinoGameOverlay-V7LdfRMk.js";
2
+ import { f as q } from "./LotteryProgramWof-BKlE0kKR.js";
3
+ import { $ as N, b as Te, a as Ce, i as Ie, c as Se } from "./CasinoMysteryChestContainer-Bu5soH27.js";
4
+ const J = {
5
+ en: {
6
+ History: "History",
7
+ Play: "Play",
8
+ CoinRoyale: "CoinRoyale",
9
+ MysteryChest: "MysteryChest",
10
+ LuckyWheels: "LuckyWheels",
11
+ InfoTooltipCoin: "Flip a virtual coin and take a chance to win!",
12
+ InfoTooltipChest: "Open Mystery Chest and find your reward!",
13
+ InfoTooltipLuckywheel: "Spin a lucky wheel and take a chance to win!"
14
+ }
15
+ };
16
+ function Le({ withLocale: s, translations: e }) {
17
+ N.subscribe((t) => {
18
+ t == null && (Te.set(e), N.set(s));
19
+ });
20
+ }
21
+ function re(s, e) {
22
+ Ce(s, e);
23
+ }
24
+ function Me(s) {
25
+ N.set(s);
26
+ }
27
+ const Ee = () => {
28
+ Le({ withLocale: "en", translations: {} }), Object.keys(J).forEach((s) => {
29
+ re(s, J[s]);
30
+ });
31
+ };
32
+ if (typeof window < "u") {
33
+ let s = function(e) {
34
+ return function(...t) {
35
+ try {
36
+ return e.apply(this, t);
37
+ } catch (i) {
38
+ if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
39
+ return !1;
40
+ throw i;
41
+ }
42
+ };
43
+ };
44
+ customElements.define = s(customElements.define), import("./PrizeEngineHistory-CT4oW3nn.js").then(({ default: e }) => {
45
+ !customElements.get("prize-engine-history") && customElements.define("prize-engine-history", e.element);
46
+ });
47
+ }
48
+ if (typeof window < "u") {
49
+ let s = function(e) {
50
+ return function(...t) {
51
+ try {
52
+ return e.apply(this, t);
53
+ } catch (i) {
54
+ if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
55
+ return !1;
56
+ throw i;
57
+ }
58
+ };
59
+ };
60
+ customElements.define = s(customElements.define), import("./PrizeEngineDetails-Bok3RJt0.js").then(({ default: e }) => {
61
+ !customElements.get("prize-engine-details") && customElements.define("prize-engine-details", e.element);
62
+ });
63
+ }
64
+ if (typeof window < "u") {
65
+ let s = function(e) {
66
+ return function(...t) {
67
+ try {
68
+ return e.apply(this, t);
69
+ } catch (i) {
70
+ if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
71
+ return !1;
72
+ throw i;
73
+ }
74
+ };
75
+ };
76
+ customElements.define = s(customElements.define), import("./PrizeEngineList-C8K3okMV.js").then(({ default: e }) => {
77
+ !customElements.get("prize-engine-list") && customElements.define("prize-engine-list", e.element);
78
+ });
79
+ }
80
+ function De(s) {
81
+ he(s, "svelte-iscrfi", `.PrizeSuiteContainer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;position:relative;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.svelte-iscrfi{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.full-width.svelte-iscrfi{padding:0}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer .HeaderTitle.svelte-iscrfi{font-size:var(--emw--font-size-medium, 16px);font-weight:500}.PrizeSuiteContainer.Mobile.svelte-iscrfi .IconButton.svelte-iscrfi{width:24px;height:24px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop.svelte-iscrfi{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop .Tooltip.svelte-iscrfi{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TabItem.svelte-iscrfi{font-size:var(--emw--font-size-xs, 10px);font-weight:700}.Overlay.svelte-iscrfi.svelte-iscrfi{border:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5));padding:0;cursor:default}.MainDrawer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;position:relative;overflow:hidden}.MainDrawer.Drawer.svelte-iscrfi.svelte-iscrfi{position:fixed;left:50%;transform:translateX(-50%);bottom:0px;z-index:100;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%)}.MainDrawer.Drawer.full-width.svelte-iscrfi.svelte-iscrfi{padding:0}.Header.svelte-iscrfi.svelte-iscrfi{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 24px;flex-shrink:0}.Header.svelte-iscrfi .HeaderTitle.svelte-iscrfi{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:700;text-align:center;flex-grow:1}.IconButton.svelte-iscrfi.svelte-iscrfi{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background-size:100%;background-repeat:no-repeat;padding:0}.IconButton.Close.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.IconButton.Help.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.TooltipBackdrop.svelte-iscrfi.svelte-iscrfi{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.TooltipBackdrop.svelte-iscrfi .Tooltip.svelte-iscrfi{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:8px;line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.TooltipBackdrop.svelte-iscrfi .Tooltip .IconButton.Close.svelte-iscrfi{top:12px;right:12px;position:absolute}.TabBar.svelte-iscrfi.svelte-iscrfi{display:flex;border-bottom:2px solid var(--emw--color-secondary, #729787);margin:0 0 20px;flex-shrink:0}.TabBar.svelte-iscrfi .TabItem.svelte-iscrfi{flex:1;padding:12px;background:transparent;border:none;color:var(--emw--color-gray-300, #729787);font-weight:700;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);transition:all 0.2s}.TabBar.svelte-iscrfi .TabItem.active.svelte-iscrfi{color:var(--emw--color-white, #ffffff);border-bottom:2px solid var(--emw--button-border-color, #75ffe9);margin-bottom:-2px}.ViewContent.svelte-iscrfi.svelte-iscrfi{flex-grow:1;overflow:hidden;display:flex;flex-direction:column}.TransitionWrapper.svelte-iscrfi.svelte-iscrfi{height:100%;width:100%;display:flex;flex-direction:column;flex-grow:1}`);
82
+ }
83
+ function X(s) {
84
+ let e, t, i, l, n, r, c, d = (
85
+ /*isdrawer*/
86
+ s[0] === "true" && Q(s)
87
+ ), p = (
88
+ /*tooltip*/
89
+ s[8] && $(s)
90
+ ), a = (
91
+ /*isdrawer*/
92
+ s[0] === "true" && /*currentView*/
93
+ s[4] === "LIST" && ee(s)
94
+ ), o = (
95
+ /*currentView*/
96
+ s[4] === "LIST" && te(s)
97
+ );
98
+ function y(f, v) {
99
+ if (
100
+ /*activeTab*/
101
+ f[5] === "PLAY"
102
+ )
103
+ return xe;
104
+ if (
105
+ /*currentView*/
106
+ f[4] === "LIST"
107
+ )
108
+ return Pe;
109
+ }
110
+ let _ = y(s), b = _ && _(s);
111
+ return {
112
+ c() {
113
+ e = h("div"), d && d.c(), t = S(), i = h("div"), p && p.c(), l = S(), a && a.c(), n = S(), o && o.c(), r = S(), c = h("div"), b && b.c(), g(c, "class", "ViewContent svelte-iscrfi"), g(i, "class", "MainDrawer svelte-iscrfi"), w(
114
+ i,
115
+ "Drawer",
116
+ /*isdrawer*/
117
+ s[0] === "true"
118
+ ), w(
119
+ i,
120
+ "full-width",
121
+ /*currentView*/
122
+ s[4] === "DETAILS"
123
+ ), g(e, "class", "PrizeSuiteContainer svelte-iscrfi"), w(
124
+ e,
125
+ "is-drawer",
126
+ /*isdrawer*/
127
+ s[0] === "true"
128
+ ), w(
129
+ e,
130
+ "Mobile",
131
+ /*mobileView*/
132
+ s[12]
133
+ );
134
+ },
135
+ m(f, v) {
136
+ T(f, e, v), d && d.m(e, null), m(e, t), m(e, i), p && p.m(i, null), m(i, l), a && a.m(i, null), m(i, n), o && o.m(i, null), m(i, r), m(i, c), b && b.m(c, null), s[28](e);
137
+ },
138
+ p(f, v) {
139
+ /*isdrawer*/
140
+ f[0] === "true" ? d ? d.p(f, v) : (d = Q(f), d.c(), d.m(e, t)) : d && (d.d(1), d = null), /*tooltip*/
141
+ f[8] ? p ? p.p(f, v) : (p = $(f), p.c(), p.m(i, l)) : p && (p.d(1), p = null), /*isdrawer*/
142
+ f[0] === "true" && /*currentView*/
143
+ f[4] === "LIST" ? a ? a.p(f, v) : (a = ee(f), a.c(), a.m(i, n)) : a && (a.d(1), a = null), /*currentView*/
144
+ f[4] === "LIST" ? o ? o.p(f, v) : (o = te(f), o.c(), o.m(i, r)) : o && (o.d(1), o = null), _ === (_ = y(f)) && b ? b.p(f, v) : (b && b.d(1), b = _ && _(f), b && (b.c(), j(b, 1), b.m(c, null))), v & /*isdrawer*/
145
+ 1 && w(
146
+ i,
147
+ "Drawer",
148
+ /*isdrawer*/
149
+ f[0] === "true"
150
+ ), v & /*currentView*/
151
+ 16 && w(
152
+ i,
153
+ "full-width",
154
+ /*currentView*/
155
+ f[4] === "DETAILS"
156
+ ), v & /*isdrawer*/
157
+ 1 && w(
158
+ e,
159
+ "is-drawer",
160
+ /*isdrawer*/
161
+ f[0] === "true"
162
+ );
163
+ },
164
+ d(f) {
165
+ f && z(e), d && d.d(), p && p.d(), a && a.d(), o && o.d(), b && b.d(), s[28](null);
166
+ }
167
+ };
168
+ }
169
+ function Q(s) {
170
+ let e, t, i;
171
+ return {
172
+ c() {
173
+ e = h("button"), g(e, "type", "button"), g(e, "class", "Overlay svelte-iscrfi");
174
+ },
175
+ m(l, n) {
176
+ T(l, e, n), t || (i = M(
177
+ e,
178
+ "click",
179
+ /*onClose*/
180
+ s[13]
181
+ ), t = !0);
182
+ },
183
+ p: L,
184
+ d(l) {
185
+ l && z(e), t = !1, i();
186
+ }
187
+ };
188
+ }
189
+ function $(s) {
190
+ let e, t, i, l, n, r = (
191
+ /*$_*/
192
+ s[2](
193
+ /*dynamicTooltipKey*/
194
+ s[10]
195
+ ) + ""
196
+ ), c, d, p;
197
+ return {
198
+ c() {
199
+ e = h("div"), t = h("div"), i = h("button"), l = S(), n = h("span"), c = Y(r), g(i, "type", "button"), g(i, "class", "IconButton Close svelte-iscrfi"), g(t, "class", "Tooltip svelte-iscrfi"), g(e, "class", "TooltipBackdrop svelte-iscrfi");
200
+ },
201
+ m(a, o) {
202
+ T(a, e, o), m(e, t), m(t, i), m(t, l), m(t, n), m(n, c), d || (p = M(
203
+ i,
204
+ "click",
205
+ /*showHideTooltip*/
206
+ s[14]
207
+ ), d = !0);
208
+ },
209
+ p(a, o) {
210
+ o & /*$_, dynamicTooltipKey*/
211
+ 1028 && r !== (r = /*$_*/
212
+ a[2](
213
+ /*dynamicTooltipKey*/
214
+ a[10]
215
+ ) + "") && A(c, r);
216
+ },
217
+ d(a) {
218
+ a && z(e), d = !1, p();
219
+ }
220
+ };
221
+ }
222
+ function ee(s) {
223
+ let e, t, i, l, n, r, c, d, p;
224
+ return {
225
+ c() {
226
+ e = h("div"), t = h("button"), i = S(), l = h("div"), n = Y(
227
+ /*dynamicTitle*/
228
+ s[11]
229
+ ), r = S(), c = h("button"), g(t, "type", "button"), g(t, "class", "IconButton Help svelte-iscrfi"), g(l, "class", "HeaderTitle svelte-iscrfi"), g(c, "type", "button"), g(c, "class", "IconButton Close svelte-iscrfi"), g(e, "class", "Header svelte-iscrfi");
230
+ },
231
+ m(a, o) {
232
+ T(a, e, o), m(e, t), m(e, i), m(e, l), m(l, n), m(e, r), m(e, c), d || (p = [
233
+ M(
234
+ t,
235
+ "click",
236
+ /*showHideTooltip*/
237
+ s[14]
238
+ ),
239
+ M(
240
+ c,
241
+ "click",
242
+ /*onClose*/
243
+ s[13]
244
+ )
245
+ ], d = !0);
246
+ },
247
+ p(a, o) {
248
+ o & /*dynamicTitle*/
249
+ 2048 && A(
250
+ n,
251
+ /*dynamicTitle*/
252
+ a[11]
253
+ );
254
+ },
255
+ d(a) {
256
+ a && z(e), d = !1, le(p);
257
+ }
258
+ };
259
+ }
260
+ function te(s) {
261
+ let e, t, i = (
262
+ /*$_*/
263
+ s[2]("Play") + ""
264
+ ), l, n, r, c = (
265
+ /*$_*/
266
+ s[2]("History") + ""
267
+ ), d, p, a;
268
+ return {
269
+ c() {
270
+ e = h("div"), t = h("button"), l = Y(i), n = S(), r = h("button"), d = Y(c), g(t, "type", "button"), g(t, "class", "TabItem svelte-iscrfi"), w(
271
+ t,
272
+ "active",
273
+ /*activeTab*/
274
+ s[5] === "PLAY"
275
+ ), g(r, "type", "button"), g(r, "class", "TabItem svelte-iscrfi"), w(
276
+ r,
277
+ "active",
278
+ /*activeTab*/
279
+ s[5] === "HISTORY"
280
+ ), g(e, "class", "TabBar svelte-iscrfi");
281
+ },
282
+ m(o, y) {
283
+ T(o, e, y), m(e, t), m(t, l), m(e, n), m(e, r), m(r, d), p || (a = [
284
+ M(
285
+ t,
286
+ "click",
287
+ /*click_handler*/
288
+ s[26]
289
+ ),
290
+ M(
291
+ r,
292
+ "click",
293
+ /*click_handler_1*/
294
+ s[27]
295
+ )
296
+ ], p = !0);
297
+ },
298
+ p(o, y) {
299
+ y & /*$_*/
300
+ 4 && i !== (i = /*$_*/
301
+ o[2]("Play") + "") && A(l, i), y & /*activeTab*/
302
+ 32 && w(
303
+ t,
304
+ "active",
305
+ /*activeTab*/
306
+ o[5] === "PLAY"
307
+ ), y & /*$_*/
308
+ 4 && c !== (c = /*$_*/
309
+ o[2]("History") + "") && A(d, c), y & /*activeTab*/
310
+ 32 && w(
311
+ r,
312
+ "active",
313
+ /*activeTab*/
314
+ o[5] === "HISTORY"
315
+ );
316
+ },
317
+ d(o) {
318
+ o && z(e), p = !1, le(a);
319
+ }
320
+ };
321
+ }
322
+ function Pe(s) {
323
+ let e, t, i, l = [
324
+ /*commonProps*/
325
+ s[9]
326
+ ], n = {};
327
+ for (let r = 0; r < l.length; r += 1)
328
+ n = F(n, l[r]);
329
+ return {
330
+ c() {
331
+ e = h("div"), t = h("prize-engine-history"), E(t, n), w(t, "svelte-iscrfi", !0), g(e, "class", "TransitionWrapper svelte-iscrfi");
332
+ },
333
+ m(r, c) {
334
+ T(r, e, c), m(e, t);
335
+ },
336
+ p(r, c) {
337
+ E(t, n = Z(l, [c & /*commonProps*/
338
+ 512 && /*commonProps*/
339
+ r[9]])), w(t, "svelte-iscrfi", !0);
340
+ },
341
+ i(r) {
342
+ r && (i || V(() => {
343
+ i = U(e, q, { duration: 250 }), i.start();
344
+ }));
345
+ },
346
+ o: L,
347
+ d(r) {
348
+ r && z(e);
349
+ }
350
+ };
351
+ }
352
+ function xe(s) {
353
+ let e;
354
+ function t(n, r) {
355
+ if (
356
+ /*currentView*/
357
+ n[4] === "LIST"
358
+ )
359
+ return Oe;
360
+ if (
361
+ /*currentView*/
362
+ n[4] === "DETAILS"
363
+ )
364
+ return Be;
365
+ }
366
+ let i = t(s), l = i && i(s);
367
+ return {
368
+ c() {
369
+ l && l.c(), e = se();
370
+ },
371
+ m(n, r) {
372
+ l && l.m(n, r), T(n, e, r);
373
+ },
374
+ p(n, r) {
375
+ i === (i = t(n)) && l ? l.p(n, r) : (l && l.d(1), l = i && i(n), l && (l.c(), j(l, 1), l.m(e.parentNode, e)));
376
+ },
377
+ i(n) {
378
+ j(l);
379
+ },
380
+ o: L,
381
+ d(n) {
382
+ n && z(e), l && l.d(n);
383
+ }
384
+ };
385
+ }
386
+ function Be(s) {
387
+ let e, t, i = (
388
+ /*selectedGame*/
389
+ s[6] && ie(s)
390
+ );
391
+ return {
392
+ c() {
393
+ e = h("div"), i && i.c(), g(e, "class", "TransitionWrapper svelte-iscrfi");
394
+ },
395
+ m(l, n) {
396
+ T(l, e, n), i && i.m(e, null);
397
+ },
398
+ p(l, n) {
399
+ /*selectedGame*/
400
+ l[6] ? i ? i.p(l, n) : (i = ie(l), i.c(), i.m(e, null)) : i && (i.d(1), i = null);
401
+ },
402
+ i(l) {
403
+ l && (t || V(() => {
404
+ t = U(e, q, { duration: 250 }), t.start();
405
+ }));
406
+ },
407
+ o: L,
408
+ d(l) {
409
+ l && z(e), i && i.d();
410
+ }
411
+ };
412
+ }
413
+ function Oe(s) {
414
+ let e, t, i, l = [
415
+ /*commonProps*/
416
+ s[9]
417
+ ], n = {};
418
+ for (let r = 0; r < l.length; r += 1)
419
+ n = F(n, l[r]);
420
+ return {
421
+ c() {
422
+ e = h("div"), t = h("prize-engine-list"), E(t, n), w(t, "svelte-iscrfi", !0), g(e, "class", "TransitionWrapper svelte-iscrfi");
423
+ },
424
+ m(r, c) {
425
+ T(r, e, c), m(e, t);
426
+ },
427
+ p(r, c) {
428
+ E(t, n = Z(l, [c & /*commonProps*/
429
+ 512 && /*commonProps*/
430
+ r[9]])), w(t, "svelte-iscrfi", !0);
431
+ },
432
+ i(r) {
433
+ r && (i || V(() => {
434
+ i = U(e, q, { duration: 250 }), i.start();
435
+ }));
436
+ },
437
+ o: L,
438
+ d(r) {
439
+ r && z(e);
440
+ }
441
+ };
442
+ }
443
+ function ie(s) {
444
+ let e, t, i = [
445
+ /*commonProps*/
446
+ s[9],
447
+ { data: (
448
+ /*selectedGame*/
449
+ s[6]
450
+ ) },
451
+ { programs: (
452
+ /*allPrograms*/
453
+ s[7]
454
+ ) },
455
+ {
456
+ twostepdraw: t = /*selectedGame*/
457
+ s[6].program.type === "wheelOfFortune" ? "true" : "false"
458
+ }
459
+ ], l = {};
460
+ for (let n = 0; n < i.length; n += 1)
461
+ l = F(l, i[n]);
462
+ return {
463
+ c() {
464
+ e = h("prize-engine-details"), E(e, l), w(e, "svelte-iscrfi", !0);
465
+ },
466
+ m(n, r) {
467
+ T(n, e, r);
468
+ },
469
+ p(n, r) {
470
+ E(e, l = Z(i, [
471
+ r & /*commonProps*/
472
+ 512 && /*commonProps*/
473
+ n[9],
474
+ r & /*selectedGame*/
475
+ 64 && { data: (
476
+ /*selectedGame*/
477
+ n[6]
478
+ ) },
479
+ r & /*allPrograms*/
480
+ 128 && { programs: (
481
+ /*allPrograms*/
482
+ n[7]
483
+ ) },
484
+ r & /*selectedGame*/
485
+ 64 && t !== (t = /*selectedGame*/
486
+ n[6].program.type === "wheelOfFortune" ? "true" : "false") && {
487
+ twostepdraw: t
488
+ }
489
+ ])), w(e, "svelte-iscrfi", !0);
490
+ },
491
+ d(n) {
492
+ n && z(e);
493
+ }
494
+ };
495
+ }
496
+ function He(s) {
497
+ let e, t = (
498
+ /*isOpened*/
499
+ (s[3] || /*isdrawer*/
500
+ s[0] === "false") && X(s)
501
+ );
502
+ return {
503
+ c() {
504
+ t && t.c(), e = se();
505
+ },
506
+ m(i, l) {
507
+ t && t.m(i, l), T(i, e, l);
508
+ },
509
+ p(i, [l]) {
510
+ /*isOpened*/
511
+ i[3] || /*isdrawer*/
512
+ i[0] === "false" ? t ? t.p(i, l) : (t = X(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
513
+ },
514
+ i: L,
515
+ o: L,
516
+ d(i) {
517
+ i && z(e), t && t.d(i);
518
+ }
519
+ };
520
+ }
521
+ let Ae = null;
522
+ function Ye(s, e, t) {
523
+ let i, l, n, r;
524
+ be(s, Se, (u) => t(2, r = u));
525
+ let { endpoint: c = "" } = e, { session: d = "" } = e, { lang: p = "en" } = e, { clientstyling: a = "" } = e, { clientstylingurl: o = "" } = e, { translationurl: y = "" } = e, { mbsource: _ = "" } = e, { isdrawer: b = "true" } = e, { type: f = "wheelOfFortune" } = e, { luckywheelsize: v = 324 } = e, { luckywheelmobilesize: R = 240 } = e, { opened: P = "false" } = e, C;
526
+ const ne = Ie(window.navigator.userAgent);
527
+ let x = P === "true";
528
+ Ee();
529
+ const oe = () => {
530
+ fetch(y).then((I) => I.json()).then((I) => {
531
+ Object.keys(I).forEach((D) => {
532
+ re(D, I[D]);
533
+ });
534
+ });
535
+ };
536
+ let B = "LIST", O = "PLAY", H = null, G = [], W = !1;
537
+ const K = (u) => {
538
+ const { type: I, data: D } = u.data;
539
+ I === "OpenPrizeGame" ? (t(6, H = D), t(4, B = "DETAILS")) : I === "BackToList" ? (t(4, B = "LIST"), t(6, H = null)) : I === "ClosePrizeEngineDrawer" ? t(3, x = !1) : I === "PrizeProgramsLoaded" && t(7, G = D);
540
+ }, ae = () => {
541
+ t(3, x = !1), window.postMessage({ type: "ClosePrizeEngineDrawer" }, "*");
542
+ }, fe = () => {
543
+ t(8, W = !W);
544
+ };
545
+ we(() => (window.addEventListener("message", K), () => {
546
+ window.removeEventListener("message", K);
547
+ }));
548
+ const ce = () => t(5, O = "PLAY"), ue = () => t(5, O = "HISTORY");
549
+ function de(u) {
550
+ ye[u ? "unshift" : "push"](() => {
551
+ C = u, t(1, C);
552
+ });
553
+ }
554
+ return s.$$set = (u) => {
555
+ "endpoint" in u && t(15, c = u.endpoint), "session" in u && t(16, d = u.session), "lang" in u && t(17, p = u.lang), "clientstyling" in u && t(18, a = u.clientstyling), "clientstylingurl" in u && t(19, o = u.clientstylingurl), "translationurl" in u && t(20, y = u.translationurl), "mbsource" in u && t(21, _ = u.mbsource), "isdrawer" in u && t(0, b = u.isdrawer), "type" in u && t(22, f = u.type), "luckywheelsize" in u && t(23, v = u.luckywheelsize), "luckywheelmobilesize" in u && t(24, R = u.luckywheelmobilesize), "opened" in u && t(25, P = u.opened);
556
+ }, s.$$.update = () => {
557
+ s.$$.dirty & /*opened*/
558
+ 33554432 && t(3, x = P === "true"), s.$$.dirty & /*lang*/
559
+ 131072 && p && Me(p), s.$$.dirty & /*translationurl*/
560
+ 1048576 && y && oe(), s.$$.dirty & /*type*/
561
+ 4194304 && f && (t(4, B = "LIST"), t(6, H = null), t(5, O = "PLAY")), s.$$.dirty & /*type, $_*/
562
+ 4194308 && t(11, i = r(f === "flipCoin" ? "CoinRoyale" : f === "mysteryChest" ? "MysteryChest" : "LuckyWheels")), s.$$.dirty & /*type*/
563
+ 4194304 && t(10, l = f === "flipCoin" ? "InfoTooltipCoin" : f === "mysteryChest" ? "InfoTooltipChest" : "InfoTooltipLuckywheel"), s.$$.dirty & /*clientstyling, rootContainer*/
564
+ 262146 && a && C && ve(C, a), s.$$.dirty & /*clientstylingurl, rootContainer*/
565
+ 524290 && o && C && _e(C, o), s.$$.dirty & /*mbsource, rootContainer*/
566
+ 2097154 && _ && C && ke(C, `${_}.Style`, Ae), s.$$.dirty & /*endpoint, session, lang, clientstyling, clientstylingurl, translationurl, mbsource, type, luckywheelsize, luckywheelmobilesize*/
567
+ 33521664 && t(9, n = {
568
+ endpoint: c,
569
+ session: d,
570
+ lang: p,
571
+ clientstyling: a,
572
+ clientstylingurl: o,
573
+ translationurl: y,
574
+ mbsource: _,
575
+ isdrawer: "false",
576
+ type: f,
577
+ luckywheelsize: v,
578
+ luckywheelmobilesize: R
579
+ });
580
+ }, [
581
+ b,
582
+ C,
583
+ r,
584
+ x,
585
+ B,
586
+ O,
587
+ H,
588
+ G,
589
+ W,
590
+ n,
591
+ l,
592
+ i,
593
+ ne,
594
+ ae,
595
+ fe,
596
+ c,
597
+ d,
598
+ p,
599
+ a,
600
+ o,
601
+ y,
602
+ _,
603
+ f,
604
+ v,
605
+ R,
606
+ P,
607
+ ce,
608
+ ue,
609
+ de
610
+ ];
611
+ }
612
+ class Re extends pe {
613
+ constructor(e) {
614
+ super(), me(
615
+ this,
616
+ e,
617
+ Ye,
618
+ He,
619
+ ge,
620
+ {
621
+ endpoint: 15,
622
+ session: 16,
623
+ lang: 17,
624
+ clientstyling: 18,
625
+ clientstylingurl: 19,
626
+ translationurl: 20,
627
+ mbsource: 21,
628
+ isdrawer: 0,
629
+ type: 22,
630
+ luckywheelsize: 23,
631
+ luckywheelmobilesize: 24,
632
+ opened: 25
633
+ },
634
+ De
635
+ );
636
+ }
637
+ get endpoint() {
638
+ return this.$$.ctx[15];
639
+ }
640
+ set endpoint(e) {
641
+ this.$$set({ endpoint: e }), k();
642
+ }
643
+ get session() {
644
+ return this.$$.ctx[16];
645
+ }
646
+ set session(e) {
647
+ this.$$set({ session: e }), k();
648
+ }
649
+ get lang() {
650
+ return this.$$.ctx[17];
651
+ }
652
+ set lang(e) {
653
+ this.$$set({ lang: e }), k();
654
+ }
655
+ get clientstyling() {
656
+ return this.$$.ctx[18];
657
+ }
658
+ set clientstyling(e) {
659
+ this.$$set({ clientstyling: e }), k();
660
+ }
661
+ get clientstylingurl() {
662
+ return this.$$.ctx[19];
663
+ }
664
+ set clientstylingurl(e) {
665
+ this.$$set({ clientstylingurl: e }), k();
666
+ }
667
+ get translationurl() {
668
+ return this.$$.ctx[20];
669
+ }
670
+ set translationurl(e) {
671
+ this.$$set({ translationurl: e }), k();
672
+ }
673
+ get mbsource() {
674
+ return this.$$.ctx[21];
675
+ }
676
+ set mbsource(e) {
677
+ this.$$set({ mbsource: e }), k();
678
+ }
679
+ get isdrawer() {
680
+ return this.$$.ctx[0];
681
+ }
682
+ set isdrawer(e) {
683
+ this.$$set({ isdrawer: e }), k();
684
+ }
685
+ get type() {
686
+ return this.$$.ctx[22];
687
+ }
688
+ set type(e) {
689
+ this.$$set({ type: e }), k();
690
+ }
691
+ get luckywheelsize() {
692
+ return this.$$.ctx[23];
693
+ }
694
+ set luckywheelsize(e) {
695
+ this.$$set({ luckywheelsize: e }), k();
696
+ }
697
+ get luckywheelmobilesize() {
698
+ return this.$$.ctx[24];
699
+ }
700
+ set luckywheelmobilesize(e) {
701
+ this.$$set({ luckywheelmobilesize: e }), k();
702
+ }
703
+ get opened() {
704
+ return this.$$.ctx[25];
705
+ }
706
+ set opened(e) {
707
+ this.$$set({ opened: e }), k();
708
+ }
709
+ }
710
+ customElements.define("prize-engine-suite", ze(Re, { endpoint: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, isdrawer: {}, type: {}, luckywheelsize: {}, luckywheelmobilesize: {}, opened: {} }, [], [], !0));
711
+ export {
712
+ Re as default
713
+ };