@everymatrix/mini-games-hub 0.1.17 → 0.1.19

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 (51) hide show
  1. package/components/BackButton-BrfBWRIr.js +38 -0
  2. package/components/BackButton-DWyr6ELs.js +39 -0
  3. package/components/CoinFlip-CqHlL4t9.js +367 -0
  4. package/components/CoinFlip-zzM-FtUg.js +402 -0
  5. package/components/CoinRoyale-BJWVsEJj.cjs +759 -0
  6. package/components/CoinRoyale-DKWXkm3P.js +1040 -0
  7. package/components/CoinRoyale-Y2G7RWga.js +1020 -0
  8. package/components/CoinRoyale-hmGqx4pF.cjs +759 -0
  9. package/components/DrawResult-DXaJYat3.js +343 -0
  10. package/components/DrawResult-FwuHCP-y.js +373 -0
  11. package/components/GameCard-45tJnqY3.cjs +3 -0
  12. package/components/GameCard-C1IfKCWx.js +66 -0
  13. package/components/GameCard-CLXODhBl.js +63 -0
  14. package/components/GameCard-DZm1MFqf.cjs +3 -0
  15. package/components/GameHistory-9Xh7Sb6S.cjs +13 -0
  16. package/components/GameHistory-B6MiGA9Z.js +240 -0
  17. package/components/GameHistory-BmChILXB.js +241 -0
  18. package/components/GameHistory-DioZWMQ8.cjs +13 -0
  19. package/components/GamePlaceholder-2C54MJXM.js +87 -0
  20. package/components/GamePlaceholder-BPZQa2uj.cjs +18 -0
  21. package/components/GamePlaceholder-CXixYEW3.cjs +18 -0
  22. package/components/GamePlaceholder-zLYrDd0k.js +88 -0
  23. package/components/GameRules-DNete4N3.js +117 -0
  24. package/components/GameRules-DOPgbqxU.cjs +5 -0
  25. package/components/GameRules-DbfGxBGR.cjs +5 -0
  26. package/components/GameRules-lzdMrQZY.js +128 -0
  27. package/components/MiniGamesHub-9mWWh3N1.js +1111 -0
  28. package/components/MiniGamesHub-B9aQplHl.js +1135 -0
  29. package/components/MiniGamesHub-BRRQIXZj.cjs +79 -0
  30. package/components/MiniGamesHub-ChMf3rL7.js +1141 -0
  31. package/components/MiniGamesHub-Cv7rxLAO.cjs +79 -0
  32. package/components/MiniGamesHub-DuAv3Z6t.cjs +79 -0
  33. package/components/MiniGamesHub-gVFlxi4x.cjs +79 -0
  34. package/components/MiniGamesHub-w5poRbtq.js +1105 -0
  35. package/components/MysteryChest-C1jSQFBT.cjs +741 -0
  36. package/components/MysteryChest-Cg48wdP6.cjs +741 -0
  37. package/components/MysteryChest-D5OWiZfM.js +1250 -0
  38. package/components/MysteryChest-DE2NS9aL.js +1299 -0
  39. package/components/WheelOfFortune-CriOHAfp.cjs +627 -0
  40. package/components/WheelOfFortune-D2AVLv8r.js +934 -0
  41. package/components/WheelOfFortune-Dsr3jMxy.cjs +627 -0
  42. package/components/WheelOfFortune-uTfPiHqd.js +950 -0
  43. package/components/WheelOfFortuneWheel-C91V0Bho.js +1741 -0
  44. package/components/WheelOfFortuneWheel-CDjrztMA.js +1812 -0
  45. package/components/countdown-Bn5Dj09X.js +157 -0
  46. package/components/utils-DT23SX1f.js +6007 -0
  47. package/es2015/mini-games-hub.cjs +1 -1
  48. package/es2015/mini-games-hub.js +1 -1
  49. package/esnext/mini-games-hub.cjs +1 -1
  50. package/esnext/mini-games-hub.js +1 -1
  51. package/package.json +1 -1
@@ -0,0 +1,402 @@
1
+ var Ht = Object.defineProperty, Nt = Object.defineProperties;
2
+ var Xt = Object.getOwnPropertyDescriptors;
3
+ var _t = Object.getOwnPropertySymbols;
4
+ var Gt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable;
5
+ var Ye = Math.pow, vt = (p, r, o) => r in p ? Ht(p, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : p[r] = o, ze = (p, r) => {
6
+ for (var o in r || (r = {}))
7
+ Gt.call(r, o) && vt(p, o, r[o]);
8
+ if (_t)
9
+ for (var o of _t(r))
10
+ Wt.call(r, o) && vt(p, o, r[o]);
11
+ return p;
12
+ }, ft = (p, r) => Nt(p, Xt(r));
13
+ var Ue = (p, r, o) => new Promise((Te, ie) => {
14
+ var T = (c) => {
15
+ try {
16
+ k(o.next(c));
17
+ } catch (L) {
18
+ ie(L);
19
+ }
20
+ }, N = (c) => {
21
+ try {
22
+ k(o.throw(c));
23
+ } catch (L) {
24
+ ie(L);
25
+ }
26
+ }, k = (c) => c.done ? Te(c.value) : Promise.resolve(c.value).then(T, N);
27
+ k((o = o.apply(p, r)).next());
28
+ });
29
+ import { d as jt, c as Bt, p as D, o as Zt, b as ye, i as he, m as pt, k as $, s as S, n as oe, e as V, f as re, l as $t, u as qt } from "./WheelOfFortuneWheel-CDjrztMA.js";
30
+ import { G as Jt, aM as H, aC as Kt, W as be, au as b, a0 as t, aN as mt, aO as f, aT as u, ah as q, L as Qt, aP as ea, aQ as ta, aX as aa, aU as sa, aV as na, aG as I, aR as oa, aW as _, b1 as ra } from "./utils-BJHloM10.js";
31
+ import { E as Ve, R as ia, T as la, k as ca, j as da, l as ua, m as gt, n as wt, o as _a, p as va } from "./constants-Q_kcdbM6.js";
32
+ import { c as fa } from "./countdown-DmWNNDzv.js";
33
+ import { c as yt } from "./coin-heads-loqcEtH2.js";
34
+ import { c as pa } from "./coin-tails-BTbsTwkz.js";
35
+ var ma = $t('<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>'), ga = re('<div class="coin-royale__badge"><p class="coin-royale__badge-title"> </p> <p class="coin-royale__badge-countdown"> </p></div>'), wa = re('<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>'), ya = re('<span class="coin-royale__flips-loader"></span>'), ha = re('<div class="coin-royale__drag-hint"><span class="coin-royale__chev">︿</span> <span class="coin-royale__hint-text"> </span> <span class="coin-royale__chev coin-royale__chev--down">﹀</span></div> <p class="coin-royale__flips"> <span class="coin-royale__flips-count"><img class="coin-royale__flips-icon" alt="" aria-hidden="true"/> <!></span></p>', 1), ba = re('<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);
36
+ function Ta(p, r) {
37
+ Jt(r, !0);
38
+ const o = () => ea(ta, "$_", Te), [Te, ie] = oa();
39
+ let T = D(r, "program", 7, null), N = D(r, "endpoint", 7, null), k = D(r, "session", 7, null), c = D(r, "isAvailable", 7, !1), L = D(r, "spinResults", 15, null), g = D(r, "spinActive", 15, !1), le = D(r, "remainingTimesLoading", 7, !1), Me = D(r, "onFlip", 7, () => {
40
+ }), J = H(Kt({}));
41
+ be(() => {
42
+ if (!c() && T())
43
+ return fa({
44
+ getTarget: () => {
45
+ var e, a;
46
+ return (a = (e = T()) == null ? void 0 : e.next) == null ? void 0 : a.startTime;
47
+ },
48
+ onTick: (e) => b(J, e, !0),
49
+ // Hub refetches programs and re-targets activeGame to the live one.
50
+ onElapsed: () => window.postMessage({ type: "PrizeGameCountdownElapsed" }, window.location.href)
51
+ });
52
+ });
53
+ let ce = H(!1);
54
+ be(() => {
55
+ if (c()) {
56
+ const e = setTimeout(() => b(ce, !0), 2e3);
57
+ return () => clearTimeout(e);
58
+ }
59
+ });
60
+ let K = H(!1), R = H(void 0), i = H(void 0), X = H(void 0), A = H(void 0);
61
+ const xe = aa(() => c() && !g() && !t(K) && !le());
62
+ let O = 0, G = !1, Q = !1, Ee = 0, W = 0, Pe = 0, de = 0, Se = 0, ke = 0, n = null, j = null, He, ee = !1;
63
+ const Y = (e, a = 1, s = 0) => {
64
+ t(i) && (t(i).style.transform = `translateY(${s}px) rotateX(${e}deg) scale(${a})`);
65
+ };
66
+ be(() => {
67
+ if (!t(R) || !t(i) || !t(X)) return;
68
+ Ne(), Y(O);
69
+ const e = new ResizeObserver(() => Ne());
70
+ return e.observe(t(R)), () => e.disconnect();
71
+ }), be(() => {
72
+ !L() && !g() && t(i) && (O = 0, Y(0, 1));
73
+ });
74
+ const Ne = () => {
75
+ if (!t(R) || !t(i) || !t(X)) return;
76
+ const e = t(R).clientWidth;
77
+ if (!e) return;
78
+ const a = e / 2 * ia, s = Math.max(14, e * la), d = 2 * a * Math.tan(Math.PI / Ve) + 0.6;
79
+ t(i).style.setProperty("--half-t", `${(s / 2).toFixed(2)}px`), t(X).replaceChildren();
80
+ for (let l = 0; l < Ve; l++) {
81
+ const v = document.createElement("div");
82
+ v.className = `coin-royale__edge-seg coin-royale__edge-seg--${l % 2 === 0 ? "a" : "b"}`, v.style.width = `${d.toFixed(2)}px`, v.style.height = `${s.toFixed(2)}px`, v.style.transform = `translate(-50%,-50%) rotateZ(${l * 360 / Ve}deg) translateY(${(-a).toFixed(2)}px) rotateX(90deg)`, t(X).appendChild(v);
83
+ }
84
+ }, Xe = (e) => {
85
+ O = e, n == null || n.cancel(), n = null, Y(e, 1), t(i) && (t(i).style.animation = ""), t(A) && (t(A).style.opacity = "", t(A).style.width = "");
86
+ }, ht = (e, a) => new Promise((s) => {
87
+ if (!t(i)) return s();
88
+ n == null || n.cancel(), n = t(i).animate(e, ze({ fill: "forwards" }, a)), n.onfinish = () => s(), n.oncancel = () => s();
89
+ }), bt = (e, a) => Ue(this, null, function* () {
90
+ var l;
91
+ const s = new Headers({ "Content-Type": "application/json" });
92
+ k() && s.append("X-SessionId", k());
93
+ const d = yield fetch(new URL(`${N()}/v1/wof/draw/${(l = T()) == null ? void 0 : l.id}`), {
94
+ method: "PUT",
95
+ headers: s,
96
+ cache: "no-store",
97
+ body: JSON.stringify({ action: 1, guid: e }),
98
+ signal: a
99
+ });
100
+ if (!d.ok) throw new Error(`draw request failed: ${d.status}`);
101
+ return d.json();
102
+ }), ue = (e, a = 1, s = 0) => Ue(this, null, function* () {
103
+ var nt, ot;
104
+ if (!t(xe) || !t(i) || !t(R) || !N()) return;
105
+ Me()();
106
+ const d = typeof e == "number" ? e : O;
107
+ g(!0), b(ce, !0), b(K, !1), n == null || n.cancel();
108
+ const l = 1.5, v = 1.7, M = 3, x = _a / 1e3, z = x * l, te = x * v, F = Math.max(0, a * s), fe = Math.min(1, F / M), m = z + (te - z) * fe * fe, y = F === m ? 0 : ua, pe = 1e3, ae = 2, se = -(t(R).clientHeight * ca);
109
+ t(A) && (t(A).style.opacity = "0.3", t(A).style.width = "34%");
110
+ const U = () => new Promise((E, P) => requestAnimationFrame((Ce) => ee ? P(new Error("destroyed")) : E(Ce)));
111
+ let Ae = !1, tt = !1, Fe;
112
+ const at = sa(), me = new AbortController();
113
+ j = me;
114
+ const st = Promise.race([
115
+ bt(at, me.signal),
116
+ new Promise((E, P) => {
117
+ Fe = setTimeout(
118
+ () => {
119
+ tt = !0, me.abort(), P(new Error("draw timed out"));
120
+ },
121
+ da
122
+ );
123
+ })
124
+ ]);
125
+ st.then(() => Ae = !0, () => Ae = !0);
126
+ let C = d;
127
+ try {
128
+ let E = yield U();
129
+ const P = E;
130
+ for (; !Ae || E - P < pe; ) {
131
+ const h = yield U(), B = Math.min(h - E, 50);
132
+ E = h;
133
+ const ne = h - P, Z = y > 0 ? Math.min(ne / y, 1) : 1, we = Z * Z * (3 - 2 * Z), Oe = F + (m - F) * we;
134
+ C += a * Oe * B;
135
+ const ct = Math.min(ne / gt, 1), dt = 1 - Ye(1 - ct, 3), ut = ct >= 1 ? Math.sin((ne - gt) / 380) * 0.015 : 0;
136
+ Y(C, 1 + wt * (dt + ut), se * (dt + ut));
137
+ }
138
+ const Ce = yield st;
139
+ clearTimeout(Fe);
140
+ const ge = na(Ce, "draw");
141
+ if (ge.success !== !0) throw new Error("draw failed");
142
+ const Ot = ft(ze({}, ge), {
143
+ guid: at,
144
+ lotteryProgramID: (ot = ge.lotteryProgramID) != null ? ot : (nt = T()) == null ? void 0 : nt.id
145
+ }), rt = ge.type === "noprize" ? 180 : 0, it = (h) => (h % 360 + 360) % 360, Yt = it(rt - C), zt = it(C - rt), De = a === 1 ? Yt + ae * 360 : -(zt + ae * 360), Ut = C + De, lt = 2 * Math.abs(De) / m, Vt = C, Ie = yield U();
146
+ for (let h = Ie; h - Ie < lt; h = yield U()) {
147
+ const B = (h - Ie) / lt, ne = 1 - Ye(1 - B, 2), Z = Math.min(B / 0.78, 1), we = 1 - Z * Z, Oe = B > 0.78 ? Math.sin((B - 0.78) / 0.22 * Math.PI) * 5 : 0;
148
+ Y(Vt + De * ne, 1 + wt * we, se * we + Oe);
149
+ }
150
+ if (Xe(Ut), yield new Promise((h) => He = setTimeout(h, 550)), ee) return;
151
+ L(Ot), g(!1);
152
+ } catch (E) {
153
+ if (clearTimeout(Fe), ee) return;
154
+ console.log(E);
155
+ const P = C + ((d - C) % 360 + 360) % 360;
156
+ if (t(i) && (yield ht(
157
+ [
158
+ { transform: t(i).style.transform },
159
+ { transform: `translateY(0px) rotateX(${P}deg) scale(1)` }
160
+ ],
161
+ { duration: 420, easing: "cubic-bezier(.55,0,.75,.4)" }
162
+ )), ee) return;
163
+ Xe(P), tt && b(K, !0), g(!1);
164
+ } finally {
165
+ j === me && (j = null);
166
+ }
167
+ }), Tt = () => {
168
+ b(K, !1), g(!1);
169
+ }, Ge = (e) => {
170
+ t(i) && (n == null || n.cancel(), n = t(i).animate(
171
+ [
172
+ { transform: `translateY(0px) rotateX(${e}deg) scale(1)` },
173
+ {
174
+ transform: `translateY(0px) rotateX(${O}deg) scale(1)`
175
+ }
176
+ ],
177
+ {
178
+ duration: 320,
179
+ easing: "cubic-bezier(.22,.61,.32,1)",
180
+ fill: "forwards"
181
+ }
182
+ ), n.onfinish = () => {
183
+ n == null || n.cancel(), n = null, Y(O, 1), t(i) && (t(i).style.animation = "");
184
+ });
185
+ }, Mt = (e) => {
186
+ t(xe) && (G = !0, Q = !1, Ee = e.clientY, Pe = 0, W = O, de = 0, Se = e.timeStamp || performance.now(), ke = W, n == null || n.cancel(), t(i) && (t(i).style.animation = "none"), b(ce, !0));
187
+ }, We = (e) => {
188
+ if (!G || g()) return;
189
+ const a = Ee - e.clientY;
190
+ Pe = a, Math.abs(a) > 4 && (Q = !0);
191
+ const s = W + a * 1.1, d = e.timeStamp || performance.now(), l = d - Se;
192
+ if (l > 0) {
193
+ const v = (s - ke) / l;
194
+ de = de * 0.5 + v * 0.5;
195
+ }
196
+ Se = d, ke = s, Y(s, 1 + Math.min(Math.abs(a) / 400, 0.12));
197
+ }, je = (e) => {
198
+ if (!G) return;
199
+ G = !1;
200
+ const a = Ee - e.clientY;
201
+ if (Math.abs(a) > va) {
202
+ ue(W + a * 1.1, a >= 0 ? 1 : -1, de);
203
+ return;
204
+ }
205
+ Ge(W + a * 1.1);
206
+ }, Be = () => {
207
+ G && (G = !1, Q = !1, Ge(W + Pe * 1.1));
208
+ }, xt = () => {
209
+ if (Q) {
210
+ Q = !1;
211
+ return;
212
+ }
213
+ ue();
214
+ };
215
+ Zt(() => (window.addEventListener("pointermove", We), window.addEventListener("pointerup", je), window.addEventListener("pointercancel", Be), () => {
216
+ ee = !0, j == null || j.abort(), clearTimeout(He), window.removeEventListener("pointermove", We), window.removeEventListener("pointerup", je), window.removeEventListener("pointercancel", Be), n == null || n.cancel();
217
+ }));
218
+ var Et = {
219
+ get program() {
220
+ return T();
221
+ },
222
+ set program(e = null) {
223
+ T(e), I();
224
+ },
225
+ get endpoint() {
226
+ return N();
227
+ },
228
+ set endpoint(e = null) {
229
+ N(e), I();
230
+ },
231
+ get session() {
232
+ return k();
233
+ },
234
+ set session(e = null) {
235
+ k(e), I();
236
+ },
237
+ get isAvailable() {
238
+ return c();
239
+ },
240
+ set isAvailable(e = !1) {
241
+ c(e), I();
242
+ },
243
+ get spinResults() {
244
+ return L();
245
+ },
246
+ set spinResults(e = null) {
247
+ L(e), I();
248
+ },
249
+ get spinActive() {
250
+ return g();
251
+ },
252
+ set spinActive(e = !1) {
253
+ g(e), I();
254
+ },
255
+ get remainingTimesLoading() {
256
+ return le();
257
+ },
258
+ set remainingTimesLoading(e = !1) {
259
+ le(e), I();
260
+ },
261
+ get onFlip() {
262
+ return Me();
263
+ },
264
+ set onFlip(e = () => {
265
+ }) {
266
+ Me(e), I();
267
+ }
268
+ }, Ze = ba(), Le = mt(Ze), $e = u(Le), w = u($e);
269
+ let qe;
270
+ var Je = u(w);
271
+ ye(Je, (e) => b(A, e), () => t(A));
272
+ var _e = f(Je, 2), Ke = f(u(_e), 2);
273
+ ye(Ke, (e) => b(X, e), () => t(X));
274
+ var Re = f(Ke, 2), Pt = u(Re);
275
+ _(Re);
276
+ var Qe = f(Re, 2), St = u(Qe);
277
+ _(Qe), _(_e), ye(_e, (e) => b(i, e), () => t(i));
278
+ var kt = f(_e, 2);
279
+ {
280
+ var Lt = (e) => {
281
+ var a = ma();
282
+ let s;
283
+ q(() => s = pt(a, 0, "coin-royale__finger-cue", null, s, {
284
+ "coin-royale__finger-cue--hidden": t(ce) || g()
285
+ })), V(e, a);
286
+ };
287
+ he(kt, (e) => {
288
+ c() && e(Lt);
289
+ });
290
+ }
291
+ _(w), ye(w, (e) => b(R, e), () => t(R));
292
+ var Rt = f(w, 2);
293
+ {
294
+ var At = (e) => {
295
+ var a = ga(), s = u(a), d = u(s, !0);
296
+ _(s);
297
+ var l = f(s, 2), v = u(l, !0);
298
+ _(l), _(a), q(
299
+ (M, x) => {
300
+ S(d, M), S(v, x);
301
+ },
302
+ [
303
+ () => o()("nextAvailable"),
304
+ () => o()("countdown", {
305
+ values: {
306
+ days: t(J).days,
307
+ hours: t(J).hours,
308
+ minutes: t(J).minutes,
309
+ seconds: t(J).seconds
310
+ }
311
+ })
312
+ ]
313
+ ), V(e, a);
314
+ }, Ft = (e) => {
315
+ var a = wa(), s = u(a), d = u(s, !0);
316
+ _(s);
317
+ var l = f(s, 2), v = u(l, !0);
318
+ _(l);
319
+ var M = f(l, 2), x = u(M, !0);
320
+ _(M), _(a), q(
321
+ (z, te, F) => {
322
+ S(d, z), S(v, te), S(x, F);
323
+ },
324
+ [
325
+ () => o()("timeoutTitle"),
326
+ () => o()("timeoutDescription"),
327
+ () => o()("close")
328
+ ]
329
+ ), oe("click", M, Tt), V(e, a);
330
+ };
331
+ he(Rt, (e) => {
332
+ c() ? t(K) && e(Ft, 1) : e(At);
333
+ });
334
+ }
335
+ _($e), _(Le);
336
+ var et = f(Le, 2);
337
+ {
338
+ var Ct = (e) => {
339
+ var a = ha(), s = mt(a), d = f(u(s), 2), l = u(d, !0);
340
+ _(d), ra(2), _(s);
341
+ var v = f(s, 2), M = u(v), x = f(M), z = u(x), te = f(z, 2);
342
+ {
343
+ var F = (m) => {
344
+ var y = ya();
345
+ V(m, y);
346
+ }, fe = (m) => {
347
+ var y = qt();
348
+ q(() => {
349
+ var pe, ae, se, U;
350
+ return S(y, (U = (ae = (pe = T()) == null ? void 0 : pe.current) == null ? void 0 : ae.remainingTimes) != null ? U : (se = T()) == null ? void 0 : se.remainingTimes);
351
+ }), V(m, y);
352
+ };
353
+ he(te, (m) => {
354
+ le() ? m(F) : m(fe, -1);
355
+ });
356
+ }
357
+ _(x), _(v), q(
358
+ (m, y) => {
359
+ S(l, m), S(M, `${y != null ? y : ""} `), $(z, "src", yt);
360
+ },
361
+ [() => o()("dragToFlip"), () => o()("remainingFlips")]
362
+ ), V(e, a);
363
+ };
364
+ he(et, (e) => {
365
+ c() && e(Ct);
366
+ });
367
+ }
368
+ var ve = f(et, 2), Dt = u(ve, !0);
369
+ _(ve), q(
370
+ (e, a) => {
371
+ qe = pt(w, 1, "coin-royale__flip-zone", null, qe, {
372
+ "coin-royale__flip-zone--disabled": !c(),
373
+ "coin-royale__flip-zone--settling": g()
374
+ }), $(w, "tabindex", c() ? 0 : -1), $(w, "aria-label", e), $(w, "aria-disabled", !t(xe)), $(Pt, "src", yt), $(St, "src", pa), ve.disabled = !c(), S(Dt, a);
375
+ },
376
+ [() => o()("flipCoin"), () => o()("flipCoin")]
377
+ ), oe("pointerdown", w, Mt), oe("click", w, xt), oe("keydown", w, (e) => {
378
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ue());
379
+ }), oe("click", ve, () => ue()), V(p, Ze);
380
+ var It = Qt(Et);
381
+ return ie(), It;
382
+ }
383
+ jt(["pointerdown", "click", "keydown"]);
384
+ Bt(
385
+ Ta,
386
+ {
387
+ program: {},
388
+ endpoint: {},
389
+ session: {},
390
+ isAvailable: {},
391
+ spinResults: {},
392
+ spinActive: {},
393
+ remainingTimesLoading: {},
394
+ onFlip: {}
395
+ },
396
+ [],
397
+ [],
398
+ { mode: "open" }
399
+ );
400
+ export {
401
+ Ta as C
402
+ };