@everymatrix/mini-games-hub 0.2.6 → 0.2.8

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 (74) hide show
  1. package/components/CoinFlip-BOrc1Sgy.cjs +1 -0
  2. package/components/CoinFlip-DgM6tDy5.js +390 -0
  3. package/components/CoinFlip-DiCOvx3Q.cjs +1 -0
  4. package/components/CoinFlip-uc2aguuz.js +355 -0
  5. package/components/CoinRoyale-BH73ZSrU.cjs +734 -0
  6. package/components/CoinRoyale-Bkr3Rd-u.cjs +734 -0
  7. package/components/CoinRoyale-DLL1bCAy.js +1032 -0
  8. package/components/CoinRoyale-fp-xfwl2.js +994 -0
  9. package/components/{GameCard-C-zSlvo1.cjs → GameCard-BiO9Cay-.cjs} +2 -2
  10. package/components/{GameCard-BQ6hFy67.js → GameCard-D78hDMaL.js} +24 -21
  11. package/components/{GameCard-vgoswSWl.cjs → GameCard-Qh_fk15-.cjs} +2 -2
  12. package/components/{GameCard-B3YKo9k6.js → GameCard-jCZ6S2Wu.js} +23 -23
  13. package/components/MiniGamesHub-5tuj6CDm.cjs +16 -0
  14. package/components/{MiniGamesHub-C0q9vZFD.js → MiniGamesHub-Bf2Cd1bB.js} +269 -202
  15. package/components/{MiniGamesHub-D5Y5OYt-.js → MiniGamesHub-KqAdBJEX.js} +231 -167
  16. package/components/MiniGamesHub-SxucWl3S.cjs +16 -0
  17. package/components/{WheelOfFortune-DC57_QGF.js → WheelOfFortune-8HCl7aHv.js} +186 -175
  18. package/components/{WheelOfFortune-u6v6YLc5.js → WheelOfFortune-CBYo6vCg.js} +146 -138
  19. package/components/{WheelOfFortune-2WKhJAdZ.cjs → WheelOfFortune-CDTzbAjp.cjs} +2 -2
  20. package/components/{WheelOfFortune-BJ9iMr53.cjs → WheelOfFortune-XfmUFV3-.cjs} +2 -2
  21. package/components/{WheelOfFortuneDrawResults-BKkTmsVC.cjs → WheelOfFortuneDrawResults-CASEqNiM.cjs} +1 -1
  22. package/components/{WheelOfFortuneDrawResults-D3rgrYi_.js → WheelOfFortuneDrawResults-DqgsImHB.js} +3 -3
  23. package/components/{WheelOfFortuneDrawResults-gx2xkUtF.js → WheelOfFortuneDrawResults-DsfJ3803.js} +3 -3
  24. package/components/{WheelOfFortuneDrawResults-DTufAeXD.cjs → WheelOfFortuneDrawResults-l8iWZa_e.cjs} +1 -1
  25. package/components/WheelOfFortuneHistory-CF8B0i5m.js +213 -0
  26. package/components/WheelOfFortuneHistory-Cnk8otCw.js +213 -0
  27. package/components/WheelOfFortuneHistory-DARohsMs.cjs +12 -0
  28. package/components/WheelOfFortuneHistory-ld2sGzjI.cjs +12 -0
  29. package/components/{WheelOfFortuneRules-DkQOlpqR.js → WheelOfFortuneRules-BZqR4cT9.js} +27 -27
  30. package/components/WheelOfFortuneRules-Bv-d_VAp.cjs +3 -0
  31. package/components/{WheelOfFortuneRules-BM75DT61.js → WheelOfFortuneRules-CRGG3J0S.js} +23 -23
  32. package/components/WheelOfFortuneRules-DLj96pqu.cjs +3 -0
  33. package/components/{WheelOfFortuneWheel-DmTRvIN6.js → WheelOfFortuneWheel-CiyQZNAd.js} +673 -664
  34. package/components/WheelOfFortuneWheel-CrRAYCB1.cjs +3 -0
  35. package/components/WheelOfFortuneWheel-DGD-zfeE.cjs +3 -0
  36. package/components/{WheelOfFortuneWheel-D_tfW-rK.js → WheelOfFortuneWheel-F62aU_CL.js} +186 -178
  37. package/components/bg-scene-Bz42V1FW.cjs +1 -0
  38. package/components/bg-scene-DpHgKCHj.js +4 -0
  39. package/components/coin-heads-BuJOLpyg.cjs +1 -0
  40. package/components/coin-heads-loqcEtH2.js +4 -0
  41. package/components/coin-tails-20vJmhwv.cjs +1 -0
  42. package/components/coin-tails-BTbsTwkz.js +4 -0
  43. package/components/{constants-BYsDpbRv.js → constants-BDSd8ptj.js} +25 -15
  44. package/components/constants-CoPH35Re.cjs +1 -0
  45. package/components/{sparkles-BnriHiyw.cjs → sparkles-9YGw1xiU.cjs} +1 -1
  46. package/components/{sparkles-DplvhrIm.cjs → sparkles-B3XdFovy.cjs} +1 -1
  47. package/components/{sparkles-CSfeD2Zu.js → sparkles-BWGIWWDc.js} +1 -1
  48. package/components/{sparkles-CTrQ372y.js → sparkles-uxV1OTbN.js} +1 -1
  49. package/components/{spin-controller-CIshWmlA.cjs → spin-controller-BXcblJt7.cjs} +1 -1
  50. package/components/{spin-controller-HS3m99tB.cjs → spin-controller-BzO5YNSN.cjs} +1 -1
  51. package/components/{spin-controller-BuBkKrNR.js → spin-controller-CZWa2gmm.js} +2 -2
  52. package/components/{spin-controller-REPdRwaB.js → spin-controller-D3hdDnQ0.js} +2 -2
  53. package/components/{utils-B86dsoC-.js → utils-3LNftCeZ.js} +976 -958
  54. package/components/utils-BxNmJ6YA.cjs +3 -0
  55. package/components/{utils-BtFS7k_l.js → utils-DGrEJJ_K.js} +1063 -1045
  56. package/components/utils-DyVEmMSf.cjs +3 -0
  57. package/es2015/mini-games-hub.cjs +1 -1
  58. package/es2015/mini-games-hub.js +1 -1
  59. package/esnext/mini-games-hub.cjs +1 -1
  60. package/esnext/mini-games-hub.js +1 -1
  61. package/package.json +1 -1
  62. package/components/MiniGamesHub-CfiDjCz7.cjs +0 -16
  63. package/components/MiniGamesHub-DYwmUNTy.cjs +0 -16
  64. package/components/WheelOfFortuneHistory-B-Yadw5p.js +0 -213
  65. package/components/WheelOfFortuneHistory-DdXxYW6M.cjs +0 -12
  66. package/components/WheelOfFortuneHistory-DhFZUmGd.cjs +0 -12
  67. package/components/WheelOfFortuneHistory-IM5H-der.js +0 -213
  68. package/components/WheelOfFortuneRules-D-xnWFIU.cjs +0 -3
  69. package/components/WheelOfFortuneRules-_a2c-LEy.cjs +0 -3
  70. package/components/WheelOfFortuneWheel-CUs0nOjA.cjs +0 -3
  71. package/components/WheelOfFortuneWheel-D9nXwM0H.cjs +0 -3
  72. package/components/constants-DM6Vdc6Z.cjs +0 -1
  73. package/components/utils-By_D2O28.cjs +0 -3
  74. package/components/utils-CSIl6eA7.cjs +0 -3
@@ -0,0 +1,355 @@
1
+ import { d as mt, c as gt, p as I, o as yt, r as oe, i as le, n as we, g as V, k as E, q as K, b as k, f as q, s as ht, e as wt, x as bt } from "./WheelOfFortuneWheel-F62aU_CL.js";
2
+ import { a5 as Tt, b1 as L, aQ as xt, ad as Ue, aJ as u, bl as Et, L as t, b2 as Ne, b5 as c, b6 as M, ar as X, a9 as Mt, b3 as St, bc as Rt, b7 as S, b8 as At, b9 as Ct, aU as P, ba as R, O as Ft } from "./utils-3LNftCeZ.js";
3
+ import { E as be, R as It, T as Pt, l as kt, k as Lt, m as Te, n as Dt, o as $e, q as Ve, r as Yt } from "./constants-BDSd8ptj.js";
4
+ import { c as Xe } from "./coin-heads-loqcEtH2.js";
5
+ import { c as Ot } from "./coin-tails-BTbsTwkz.js";
6
+ var zt = q('<div><span class="coin-royale__chev">︿</span> <span class="coin-royale__hint-text"> </span> <span class="coin-royale__chev coin-royale__chev--down">﹀</span></div> <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M9 11V5.5a1.5 1.5 0 0 1 3 0V11h.5V7.5a1.5 1.5 0 0 1 3 0V11h.5V9a1.5 1.5 0 0 1 3 0v6.5c0 3-2 5.5-5.5 5.5H12c-2 0-3.2-.8-4.2-2.3l-2.4-3.6a1.5 1.5 0 0 1 2.3-1.9L9 15.5V11Z"></path></svg>', 1), Ht = q('<div class="coin-royale__badge"><p class="coin-royale__badge-title"> </p> <p class="coin-royale__badge-countdown"> </p></div>'), Ut = q('<div class="coin-royale__badge"><p class="coin-royale__badge-title"> </p> <p class="coin-royale__badge-body"> </p> <button class="coin-royale__badge-close" type="button"> </button></div>'), Nt = q('<span class="coin-royale__flips-loader"></span>'), $t = q('<p class="coin-royale__flips"> <span class="coin-royale__flips-count"><img class="coin-royale__flips-icon" alt="" aria-hidden="true"/> <!></span></p>'), Vt = q('<div class="coin-royale__play"><div class="coin-royale__stage"><div role="button"><div class="coin-royale__coin-shadow"></div> <div class="coin-royale__coin"><div class="coin-royale__coin-drop-shadow" aria-hidden="true"></div> <div class="coin-royale__coin-edge" aria-hidden="true"></div> <div class="coin-royale__face coin-royale__face--front"><img alt="" draggable="false"/></div> <div class="coin-royale__face coin-royale__face--back"><img alt="" draggable="false"/></div></div> <!></div> <!></div></div> <!> <button class="coin-royale__cta" type="button"> </button>', 1);
7
+ function Xt(qe, g) {
8
+ Tt(g, !0);
9
+ const y = () => ht(St, "$_", Ge), [Ge, Ze] = wt();
10
+ let A = I(g, "program", 7, null), Q = I(g, "endpoint", 7, null), ee = I(g, "session", 7, null), m = I(g, "isAvailable", 7, !1), ce = I(g, "spinResults", 15, null), v = I(g, "spinActive", 15, !1), te = I(g, "remainingTimesLoading", 7, !1), de = I(g, "onFlip", 7, () => {
11
+ }), G = L(xt({}));
12
+ Ue(() => {
13
+ if (!m() && A()) {
14
+ const e = () => u(G, Et(A()?.next?.startTime), !0);
15
+ e();
16
+ const a = setInterval(e, 1e3);
17
+ return () => clearInterval(a);
18
+ }
19
+ });
20
+ let D = L(!1), _e;
21
+ const je = () => {
22
+ clearTimeout(_e), _e = setTimeout(() => u(D, !1), 400);
23
+ };
24
+ let Z = L(!1), C = L(void 0), s = L(void 0), Y = L(void 0), F = L(void 0);
25
+ const ue = Rt(() => m() && !v() && !t(Z) && !te());
26
+ let O = 0, z = !1, j = !1, ve = 0, B = 0, fe = 0, d = null, ae = null, xe, H = !1;
27
+ const U = (e, a = 1, n = 0) => {
28
+ t(s) && (t(s).style.transform = `translateY(${n}px) rotateX(${e}deg) scale(${a})`);
29
+ };
30
+ Ue(() => {
31
+ if (!t(C) || !t(s) || !t(Y)) return;
32
+ Ee(), U(O);
33
+ const e = new ResizeObserver(() => Ee());
34
+ return e.observe(t(C)), () => e.disconnect();
35
+ });
36
+ const Ee = () => {
37
+ if (!t(C) || !t(s) || !t(Y)) return;
38
+ const e = t(C).clientWidth;
39
+ if (!e) return;
40
+ const a = e / 2 * It, n = Math.max(14, e * Pt), i = 2 * a * Math.tan(Math.PI / be) + 0.6;
41
+ t(s).style.setProperty("--half-t", `${(n / 2).toFixed(2)}px`), t(Y).replaceChildren();
42
+ for (let r = 0; r < be; r++) {
43
+ const l = document.createElement("div");
44
+ l.className = `coin-royale__edge-seg coin-royale__edge-seg--${r % 2 === 0 ? "a" : "b"}`, l.style.width = `${i.toFixed(2)}px`, l.style.height = `${n.toFixed(2)}px`, l.style.transform = `translate(-50%,-50%) rotateZ(${r * 360 / be}deg) translateY(${(-a).toFixed(2)}px) rotateX(90deg)`, t(Y).appendChild(l);
45
+ }
46
+ }, Me = (e) => {
47
+ O = e, d?.cancel(), d = null, U(e, 1), t(s) && (t(s).style.animation = ""), t(F) && (t(F).style.opacity = "", t(F).style.width = "");
48
+ }, Be = (e, a) => new Promise((n) => {
49
+ if (!t(s)) return n();
50
+ d?.cancel(), d = t(s).animate(e, { fill: "forwards", ...a }), d.onfinish = () => n(), d.oncancel = () => n();
51
+ }), Je = async (e, a) => {
52
+ const n = new Headers({ "Content-Type": "application/json" });
53
+ ee() && n.append("X-SessionId", ee());
54
+ const i = await fetch(new URL(`${Q()}/v1/wof/draw/${A()?.id}`), {
55
+ method: "PUT",
56
+ headers: n,
57
+ cache: "no-store",
58
+ body: JSON.stringify({ action: 1, guid: e }),
59
+ signal: a
60
+ });
61
+ if (!i.ok) throw new Error(`draw request failed: ${i.status}`);
62
+ return i.json();
63
+ }, ne = async (e) => {
64
+ if (!t(ue) || !t(s) || !t(C) || !Q()) return;
65
+ de()();
66
+ const a = typeof e == "number" ? e : O;
67
+ v(!0), u(D, !0), u(Z, !1), d?.cancel();
68
+ const n = -(t(C).clientHeight * kt);
69
+ t(F) && (t(F).style.opacity = "0.3", t(F).style.width = "34%");
70
+ const i = () => new Promise((b, T) => requestAnimationFrame((ge) => H ? T(new Error("destroyed")) : b(ge)));
71
+ let r = !1, l = !1, _;
72
+ const p = At(), o = new AbortController();
73
+ ae = o;
74
+ const h = Promise.race([
75
+ Je(p, o.signal),
76
+ new Promise((b, T) => {
77
+ _ = setTimeout(
78
+ () => {
79
+ l = !0, o.abort(), T(new Error("draw timed out"));
80
+ },
81
+ Lt
82
+ );
83
+ })
84
+ ]);
85
+ h.then(() => r = !0, () => r = !0);
86
+ let w = a;
87
+ try {
88
+ let b = await i();
89
+ const T = b;
90
+ for (; !r || b - T < Te; ) {
91
+ const x = await i(), N = Math.min(x - b, 50) / 1e3;
92
+ b = x;
93
+ const J = x - T, $ = Math.min(J / Dt, 1);
94
+ w += $e * $ * $ * (3 - 2 * $) * N;
95
+ const W = Math.min(J / Te, 1), re = 1 - (1 - W) ** 3, He = W >= 1 ? Math.sin((J - Te) / 380) * 0.015 : 0;
96
+ U(w, 1 + Ve * (re + He), n * (re + He));
97
+ }
98
+ const ge = await h;
99
+ clearTimeout(_);
100
+ const ie = Ct(ge, "draw");
101
+ if (ie.success !== !0) throw new Error("draw failed");
102
+ const ut = {
103
+ ...ie,
104
+ guid: p,
105
+ lotteryProgramID: ie.lotteryProgramID ?? A()?.id
106
+ }, vt = ie.type === "noprize" ? 180 : 0, Oe = 360, ye = Oe + (vt - ((w + Oe) % 360 + 360) % 360 + 360) % 360, ft = w + ye, ze = 2 * ye / $e * 1e3, pt = w, he = await i();
107
+ for (let x = he; x - he < ze; x = await i()) {
108
+ const N = (x - he) / ze, J = 1 - (1 - N) ** 2, $ = Math.min(N / 0.78, 1), W = 1 - $ * $, re = N > 0.78 ? Math.sin((N - 0.78) / 0.22 * Math.PI) * 5 : 0;
109
+ U(pt + ye * J, 1 + Ve * W, n * W + re);
110
+ }
111
+ if (Me(ft), await new Promise((x) => xe = setTimeout(x, 550)), H) return;
112
+ ce(ut), v(!1);
113
+ } catch (b) {
114
+ if (clearTimeout(_), H) return;
115
+ console.log(b);
116
+ const T = w + ((a - w) % 360 + 360) % 360;
117
+ if (t(s) && await Be(
118
+ [
119
+ { transform: t(s).style.transform },
120
+ { transform: `translateY(0px) rotateX(${T}deg) scale(1)` }
121
+ ],
122
+ { duration: 420, easing: "cubic-bezier(.55,0,.75,.4)" }
123
+ ), H) return;
124
+ Me(T), l && u(Z, !0), v(!1);
125
+ } finally {
126
+ ae === o && (ae = null), H || je();
127
+ }
128
+ }, We = () => {
129
+ u(Z, !1), v(!1);
130
+ }, Se = (e) => {
131
+ t(s) && (d?.cancel(), d = t(s).animate(
132
+ [
133
+ { transform: `translateY(0px) rotateX(${e}deg) scale(1)` },
134
+ {
135
+ transform: `translateY(0px) rotateX(${O}deg) scale(1)`
136
+ }
137
+ ],
138
+ {
139
+ duration: 320,
140
+ easing: "cubic-bezier(.22,.61,.32,1)",
141
+ fill: "forwards"
142
+ }
143
+ ), d.onfinish = () => {
144
+ d?.cancel(), d = null, U(O, 1), t(s) && (t(s).style.animation = ""), u(D, !1);
145
+ });
146
+ }, Ke = (e) => {
147
+ t(ue) && (z = !0, j = !1, ve = e.clientY, fe = 0, B = O, d?.cancel(), t(s) && (t(s).style.animation = "none"), u(D, !0));
148
+ }, Re = (e) => {
149
+ if (!z || v()) return;
150
+ const a = ve - e.clientY;
151
+ fe = a, Math.abs(a) > 4 && (j = !0), U(B + a * 1.1, 1 + Math.min(Math.abs(a) / 400, 0.12));
152
+ }, Ae = (e) => {
153
+ if (!z) return;
154
+ z = !1;
155
+ const a = ve - e.clientY;
156
+ if (Math.abs(a) > Yt) {
157
+ ne(B + a * 1.1);
158
+ return;
159
+ }
160
+ Se(B + a * 1.1);
161
+ }, Ce = () => {
162
+ z && (z = !1, j = !1, Se(B + fe * 1.1));
163
+ }, Qe = () => {
164
+ if (j) {
165
+ j = !1;
166
+ return;
167
+ }
168
+ ne();
169
+ };
170
+ yt(() => (window.addEventListener("pointermove", Re), window.addEventListener("pointerup", Ae), window.addEventListener("pointercancel", Ce), () => {
171
+ H = !0, ae?.abort(), clearTimeout(xe), clearTimeout(_e), window.removeEventListener("pointermove", Re), window.removeEventListener("pointerup", Ae), window.removeEventListener("pointercancel", Ce), d?.cancel();
172
+ }));
173
+ var et = {
174
+ get program() {
175
+ return A();
176
+ },
177
+ set program(e = null) {
178
+ A(e), P();
179
+ },
180
+ get endpoint() {
181
+ return Q();
182
+ },
183
+ set endpoint(e = null) {
184
+ Q(e), P();
185
+ },
186
+ get session() {
187
+ return ee();
188
+ },
189
+ set session(e = null) {
190
+ ee(e), P();
191
+ },
192
+ get isAvailable() {
193
+ return m();
194
+ },
195
+ set isAvailable(e = !1) {
196
+ m(e), P();
197
+ },
198
+ get spinResults() {
199
+ return ce();
200
+ },
201
+ set spinResults(e = null) {
202
+ ce(e), P();
203
+ },
204
+ get spinActive() {
205
+ return v();
206
+ },
207
+ set spinActive(e = !1) {
208
+ v(e), P();
209
+ },
210
+ get remainingTimesLoading() {
211
+ return te();
212
+ },
213
+ set remainingTimesLoading(e = !1) {
214
+ te(e), P();
215
+ },
216
+ get onFlip() {
217
+ return de();
218
+ },
219
+ set onFlip(e = () => {
220
+ }) {
221
+ de(e), P();
222
+ }
223
+ }, Fe = Vt(), pe = Ne(Fe), Ie = M(pe), f = M(Ie);
224
+ let Pe;
225
+ var ke = M(f);
226
+ oe(ke, (e) => u(F, e), () => t(F));
227
+ var se = c(ke, 2), Le = c(M(se), 2);
228
+ oe(Le, (e) => u(Y, e), () => t(Y));
229
+ var De = c(Le, 2), tt = S(De), at = c(De, 2), nt = S(at);
230
+ R(se), oe(se, (e) => u(s, e), () => t(s));
231
+ var st = c(se, 2);
232
+ {
233
+ var it = (e) => {
234
+ var a = zt(), n = Ne(a);
235
+ let i;
236
+ var r = c(M(n), 2), l = S(r, !0);
237
+ Ft(2), R(n);
238
+ var _ = c(n, 2);
239
+ let p;
240
+ X(
241
+ (o) => {
242
+ i = we(n, 1, "coin-royale__drag-hint", null, i, {
243
+ "coin-royale__drag-hint--hidden": t(D) || v()
244
+ }), E(l, o), p = we(_, 0, "coin-royale__finger-cue", null, p, {
245
+ "coin-royale__finger-cue--hidden": t(D) || v()
246
+ });
247
+ },
248
+ [() => y()("dragToFlip")]
249
+ ), k(e, a);
250
+ };
251
+ le(st, (e) => {
252
+ m() && e(it);
253
+ });
254
+ }
255
+ R(f), oe(f, (e) => u(C, e), () => t(C));
256
+ var rt = c(f, 2);
257
+ {
258
+ var ot = (e) => {
259
+ var a = Ht(), n = M(a), i = S(n, !0), r = c(n, 2), l = S(r, !0);
260
+ R(a), X(
261
+ (_, p) => {
262
+ E(i, _), E(l, p);
263
+ },
264
+ [
265
+ () => y()("nextAvailable"),
266
+ () => y()("countdown", {
267
+ values: {
268
+ days: t(G).days,
269
+ hours: t(G).hours,
270
+ minutes: t(G).minutes,
271
+ seconds: t(G).seconds
272
+ }
273
+ })
274
+ ]
275
+ ), k(e, a);
276
+ }, lt = (e) => {
277
+ var a = Ut(), n = M(a), i = S(n, !0), r = c(n, 2), l = S(r, !0), _ = c(r, 2), p = S(_, !0);
278
+ R(a), X(
279
+ (o, h, w) => {
280
+ E(i, o), E(l, h), E(p, w);
281
+ },
282
+ [
283
+ () => y()("timeoutTitle"),
284
+ () => y()("timeoutDescription"),
285
+ () => y()("close")
286
+ ]
287
+ ), K("click", _, We), k(e, a);
288
+ };
289
+ le(rt, (e) => {
290
+ m() ? t(Z) && e(lt, 1) : e(ot);
291
+ });
292
+ }
293
+ R(Ie), R(pe);
294
+ var Ye = c(pe, 2);
295
+ {
296
+ var ct = (e) => {
297
+ var a = $t(), n = M(a), i = c(n), r = M(i), l = c(r, 2);
298
+ {
299
+ var _ = (o) => {
300
+ var h = Nt();
301
+ k(o, h);
302
+ }, p = (o) => {
303
+ var h = bt();
304
+ X(() => E(h, A()?.current?.remainingTimes ?? A()?.remainingTimes)), k(o, h);
305
+ };
306
+ le(l, (o) => {
307
+ te() ? o(_) : o(p, -1);
308
+ });
309
+ }
310
+ R(i), R(a), X(
311
+ (o) => {
312
+ E(n, `${o ?? ""} `), V(r, "src", Xe);
313
+ },
314
+ [() => y()("remainingFlips")]
315
+ ), k(e, a);
316
+ };
317
+ le(Ye, (e) => {
318
+ m() && e(ct);
319
+ });
320
+ }
321
+ var me = c(Ye, 2), dt = S(me, !0);
322
+ X(
323
+ (e, a) => {
324
+ Pe = we(f, 1, "coin-royale__flip-zone", null, Pe, {
325
+ "coin-royale__flip-zone--disabled": !m(),
326
+ "coin-royale__flip-zone--settling": v()
327
+ }), V(f, "tabindex", m() ? 0 : -1), V(f, "aria-label", e), V(f, "aria-disabled", !t(ue)), V(tt, "src", Xe), V(nt, "src", Ot), me.disabled = !m(), E(dt, a);
328
+ },
329
+ [() => y()("flipCoin"), () => y()("flipCoin")]
330
+ ), K("pointerdown", f, Ke), K("click", f, Qe), K("keydown", f, (e) => {
331
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ne());
332
+ }), K("click", me, () => ne()), k(qe, Fe);
333
+ var _t = Mt(et);
334
+ return Ze(), _t;
335
+ }
336
+ mt(["pointerdown", "click", "keydown"]);
337
+ gt(
338
+ Xt,
339
+ {
340
+ program: {},
341
+ endpoint: {},
342
+ session: {},
343
+ isAvailable: {},
344
+ spinResults: {},
345
+ spinActive: {},
346
+ remainingTimesLoading: {},
347
+ onFlip: {}
348
+ },
349
+ [],
350
+ [],
351
+ { mode: "open" }
352
+ );
353
+ export {
354
+ Xt as C
355
+ };