@everymatrix/mini-games-hub 0.1.21 → 0.1.22
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.
- package/package.json +1 -1
- package/components/BackButton-BMWvZ9Lb.js +0 -39
- package/components/BackButton-BNp3jVLa.js +0 -39
- package/components/BackButton-Bi1zFTns.js +0 -38
- package/components/BackButton-BvRNh4nJ.js +0 -39
- package/components/BackButton-C_v3b0Ky.cjs +0 -1
- package/components/BackButton-D5gfQ3NI.cjs +0 -1
- package/components/BackButton-DznJk3U4.js +0 -38
- package/components/BackButton-gIVGAf6v.js +0 -38
- package/components/BackButton-s0YqvufR.cjs +0 -1
- package/components/CoinFlip-5qt33VpA.js +0 -399
- package/components/CoinFlip-9-7FNYAn.js +0 -364
- package/components/CoinFlip-BWNJK7aS.js +0 -402
- package/components/CoinFlip-BaNNMAYb.cjs +0 -1
- package/components/CoinFlip-BgRZmhbg.js +0 -367
- package/components/CoinFlip-COwy7cq1.cjs +0 -1
- package/components/CoinFlip-CSel9VZR.js +0 -398
- package/components/CoinFlip-ClRh6gz2.js +0 -363
- package/components/CoinFlip-D7Bwnl8W.cjs +0 -1
- package/components/CoinFlip-D8OLaQiA.js +0 -367
- package/components/CoinFlip-Dg2ZA_B2.cjs +0 -1
- package/components/CoinFlip-DoASIhfX.cjs +0 -1
- package/components/CoinFlip-pvtcTO4f.cjs +0 -1
- package/components/CoinFlip-vrZpkrnS.js +0 -402
- package/components/CoinRoyale-4Oe-x5-J.cjs +0 -734
- package/components/CoinRoyale-9nHMXODj.js +0 -1017
- package/components/CoinRoyale-B3bu5S4n.cjs +0 -734
- package/components/CoinRoyale-B4dKiGgG.cjs +0 -736
- package/components/CoinRoyale-BCSu92s7.cjs +0 -759
- package/components/CoinRoyale-BJWVsEJj.cjs +0 -759
- package/components/CoinRoyale-BNxFDqe1.js +0 -999
- package/components/CoinRoyale-BfaHdSQN.cjs +0 -757
- package/components/CoinRoyale-Bgl4Ea3N.js +0 -1018
- package/components/CoinRoyale-BwNvG3QI.js +0 -1009
- package/components/CoinRoyale-Bza84vCL.cjs +0 -738
- package/components/CoinRoyale-C-x6uDgh.js +0 -989
- package/components/CoinRoyale-CAI2JCvG.js +0 -1020
- package/components/CoinRoyale-CGHKZ-kc.js +0 -997
- package/components/CoinRoyale-CbqmmMPg.cjs +0 -736
- package/components/CoinRoyale-ChWsctqo.cjs +0 -759
- package/components/CoinRoyale-Ck3dlmOV.js +0 -1040
- package/components/CoinRoyale-CuEAflkt.cjs +0 -757
- package/components/CoinRoyale-Cw8ImDP5.js +0 -1040
- package/components/CoinRoyale-CxIBSKFK.js +0 -1017
- package/components/CoinRoyale-D-rF6BV4.js +0 -1019
- package/components/CoinRoyale-DH-tQHtT.cjs +0 -736
- package/components/CoinRoyale-DKWXkm3P.js +0 -1040
- package/components/CoinRoyale-DmcgvBwG.js +0 -997
- package/components/CoinRoyale-Y2G7RWga.js +0 -1020
- package/components/CoinRoyale-d2utu3E3.cjs +0 -759
- package/components/CoinRoyale-hmGqx4pF.cjs +0 -759
- package/components/CoinRoyale-ifgbuEK3.cjs +0 -759
- package/components/CoinRoyale-t3opSEHv.js +0 -1038
- package/components/CoinRoyale-xAkf1dm_.cjs +0 -738
- package/components/CoinRoyale-xHokf0cY.js +0 -1020
- package/components/DrawResult-BHZeM1oX.cjs +0 -1
- package/components/DrawResult-BVtwLs-z.js +0 -373
- package/components/DrawResult-CG5KTjF7.cjs +0 -1
- package/components/DrawResult-CbLPtjvZ.js +0 -343
- package/components/DrawResult-DMRODSxk.cjs +0 -1
- package/components/DrawResult-DTJJfQkP.js +0 -373
- package/components/DrawResult-DdL4fFZM.js +0 -343
- package/components/DrawResult-DxG4CaKK.cjs +0 -1
- package/components/DrawResult-SyzKXHgd.js +0 -343
- package/components/DrawResult-ZEAa0flC.js +0 -373
- package/components/GameCard-8k9KvRun.cjs +0 -3
- package/components/GameCard-A3k7RxF5.js +0 -63
- package/components/GameCard-B2td6J8K.js +0 -62
- package/components/GameCard-Bku9nP58.cjs +0 -3
- package/components/GameCard-CBGi9i6m.cjs +0 -3
- package/components/GameCard-CHZmVd6n.cjs +0 -3
- package/components/GameCard-Cj4zAE8_.js +0 -59
- package/components/GameCard-CrKoQU1B.js +0 -59
- package/components/GameCard-DFVjSdtd.cjs +0 -3
- package/components/GameCard-DHetS96-.js +0 -66
- package/components/GameCard-DcWpuwMl.cjs +0 -3
- package/components/GameCard-jIcB63Tt.js +0 -62
- package/components/GameHistory-9Mf_u0La.js +0 -231
- package/components/GameHistory-BktmYuDa.js +0 -231
- package/components/GameHistory-CGAhNQKk.js +0 -231
- package/components/GameHistory-ChYjWDsa.cjs +0 -12
- package/components/GameHistory-CmiIChL-.cjs +0 -12
- package/components/GameHistory-CrrlOaAg.js +0 -231
- package/components/GameHistory-DVsHn3lx.cjs +0 -12
- package/components/GameHistory-_jU0BiqI.js +0 -231
- package/components/GameHistory-aQf3vf9u.cjs +0 -12
- package/components/GameHistory-lyXo0tYb.cjs +0 -12
- package/components/GameHistory-uzrT81kU.js +0 -231
- package/components/GameHistory-v6cI-TIF.cjs +0 -12
- package/components/GamePlaceholder-4oI8uJ-1.cjs +0 -1
- package/components/GamePlaceholder-Bp4nTJeL.js +0 -84
- package/components/GamePlaceholder-COiYGwNi.cjs +0 -15
- package/components/GamePlaceholder-CfJ4hx9w.js +0 -70
- package/components/GamePlaceholder-D9JEXsAk.js +0 -84
- package/components/GamePlaceholder-DGnB06iW.js +0 -71
- package/components/GamePlaceholder-DS5evGU6.js +0 -85
- package/components/GamePlaceholder-DmiU1G7G.cjs +0 -15
- package/components/GamePlaceholder-Dwo_YAUQ.cjs +0 -1
- package/components/GamePlaceholder-Uni3xW09.cjs +0 -15
- package/components/GamePlaceholder-fVPk29f9.cjs +0 -15
- package/components/GamePlaceholder-vUYYV2Ps.js +0 -85
- package/components/GameRules-41OkRwZu.js +0 -115
- package/components/GameRules-BwLJBo6z.cjs +0 -3
- package/components/GameRules-CRiycUU8.js +0 -115
- package/components/GameRules-CTKyBDZO.cjs +0 -3
- package/components/GameRules-CV9sxZYz.js +0 -126
- package/components/GameRules-CuuoMoqN.cjs +0 -3
- package/components/GameRules-Cy7jwBok.js +0 -126
- package/components/GameRules-DUD8OKC0.js +0 -115
- package/components/GameRules-Dkl0qVzr.js +0 -126
- package/components/GameRules-DpGqZdSj.cjs +0 -3
- package/components/GameRules-DrBYjWA6.cjs +0 -3
- package/components/GameRules-DrZ6w0LM.cjs +0 -3
- package/components/MiniGamesHub-9mWWh3N1.js +0 -1111
- package/components/MiniGamesHub-B6YnaRxS.cjs +0 -79
- package/components/MiniGamesHub-B9aQplHl.js +0 -1135
- package/components/MiniGamesHub-BRRQIXZj.cjs +0 -79
- package/components/MiniGamesHub-BWPRLpyq.cjs +0 -16
- package/components/MiniGamesHub-BXcQ_faH.js +0 -1022
- package/components/MiniGamesHub-BaMQ2sWj.js +0 -1105
- package/components/MiniGamesHub-BbkgB1GV.js +0 -1105
- package/components/MiniGamesHub-BjME_rom.cjs +0 -16
- package/components/MiniGamesHub-Bn-xvO1e.js +0 -1055
- package/components/MiniGamesHub-BpjzFxHO.cjs +0 -16
- package/components/MiniGamesHub-BtC6TmtK.cjs +0 -16
- package/components/MiniGamesHub-BvS3Q0HA.js +0 -1135
- package/components/MiniGamesHub-C-9Nf-x7.js +0 -1029
- package/components/MiniGamesHub-C0ESIt9P.cjs +0 -16
- package/components/MiniGamesHub-CQ1jWyWR.js +0 -1111
- package/components/MiniGamesHub-CWV1acJR.cjs +0 -79
- package/components/MiniGamesHub-CfIFEVOU.js +0 -1022
- package/components/MiniGamesHub-CfeP3fA-.cjs +0 -79
- package/components/MiniGamesHub-ChMf3rL7.js +0 -1141
- package/components/MiniGamesHub-Cj_6ebsL.cjs +0 -16
- package/components/MiniGamesHub-CkVJjuZl.cjs +0 -79
- package/components/MiniGamesHub-CktxKKTj.cjs +0 -16
- package/components/MiniGamesHub-ClPq7L0V.cjs +0 -79
- package/components/MiniGamesHub-CrPltGGl.js +0 -1042
- package/components/MiniGamesHub-Cv7rxLAO.cjs +0 -79
- package/components/MiniGamesHub-D2Eet3pe.js +0 -1048
- package/components/MiniGamesHub-D4fNnQ70.js +0 -1141
- package/components/MiniGamesHub-D9A4HvPC.js +0 -1135
- package/components/MiniGamesHub-DCCeYwnc.js +0 -1055
- package/components/MiniGamesHub-DuAv3Z6t.cjs +0 -79
- package/components/MiniGamesHub-DuyWceLB.cjs +0 -16
- package/components/MiniGamesHub-Dz8Ltp98.js +0 -1048
- package/components/MiniGamesHub-_uRBhzYg.js +0 -1029
- package/components/MiniGamesHub-gVFlxi4x.cjs +0 -79
- package/components/MiniGamesHub-kIXoGqbZ.cjs +0 -16
- package/components/MiniGamesHub-o7rVTqn5.cjs +0 -79
- package/components/MiniGamesHub-v8PPHifq.js +0 -1072
- package/components/MiniGamesHub-w5poRbtq.js +0 -1105
- package/components/MysteryChest-4_QXLnuB.js +0 -1298
- package/components/MysteryChest-B10zFJU3.cjs +0 -741
- package/components/MysteryChest-B4h9tqVR.js +0 -1301
- package/components/MysteryChest-BJCFkn02.cjs +0 -737
- package/components/MysteryChest-BXPAdruk.js +0 -1290
- package/components/MysteryChest-Bq1NBRQI.cjs +0 -739
- package/components/MysteryChest-BsUxRwj9.js +0 -1248
- package/components/MysteryChest-BuB9PD57.js +0 -1240
- package/components/MysteryChest-C1jSQFBT.cjs +0 -741
- package/components/MysteryChest-C40hwiCW.cjs +0 -745
- package/components/MysteryChest-CKPELFiF.cjs +0 -737
- package/components/MysteryChest-CRJtPhlo.cjs +0 -743
- package/components/MysteryChest-CScyc3Jw.cjs +0 -745
- package/components/MysteryChest-Cg48wdP6.cjs +0 -741
- package/components/MysteryChest-CheF_Rh5.cjs +0 -739
- package/components/MysteryChest-CkSMlhn1.cjs +0 -741
- package/components/MysteryChest-Cq77jWfV.cjs +0 -739
- package/components/MysteryChest-CrL8IXga.js +0 -1309
- package/components/MysteryChest-CrXzepqD.js +0 -1296
- package/components/MysteryChest-D5OWiZfM.js +0 -1250
- package/components/MysteryChest-D6eks4QE.js +0 -1254
- package/components/MysteryChest-DE2NS9aL.js +0 -1299
- package/components/MysteryChest-DJuhkpSa.cjs +0 -743
- package/components/MysteryChest-DOTlHt7A.js +0 -1248
- package/components/MysteryChest-DfggF659.js +0 -1262
- package/components/MysteryChest-Di-dVQnd.cjs +0 -745
- package/components/MysteryChest-DnstXEZJ.js +0 -1298
- package/components/MysteryChest-IcRh-Dcp.js +0 -1247
- package/components/MysteryChest-dyhqTxMg.cjs +0 -739
- package/components/MysteryChest-egeYjlMm.js +0 -1249
- package/components/MysteryChest-pWptmU6O.js +0 -1297
- package/components/WheelOfFortune--1feiOUD.js +0 -950
- package/components/WheelOfFortune-B0g1znMo.cjs +0 -627
- package/components/WheelOfFortune-BC0wwnC-.cjs +0 -617
- package/components/WheelOfFortune-BYxOqBjA.js +0 -928
- package/components/WheelOfFortune-BgUB1tnc.js +0 -942
- package/components/WheelOfFortune-Bh2XAbs4.cjs +0 -619
- package/components/WheelOfFortune-Bq6wSR__.cjs +0 -627
- package/components/WheelOfFortune-BwmCnHru.js +0 -926
- package/components/WheelOfFortune-CEH-5uIV.js +0 -950
- package/components/WheelOfFortune-CHgHhi9q.cjs +0 -619
- package/components/WheelOfFortune-CRgnumXh.cjs +0 -627
- package/components/WheelOfFortune-CZ2cERqz.cjs +0 -619
- package/components/WheelOfFortune-CpYsfi8D.js +0 -934
- package/components/WheelOfFortune-CriOHAfp.cjs +0 -627
- package/components/WheelOfFortune-Cy64rFDw.js +0 -942
- package/components/WheelOfFortune-D2AVLv8r.js +0 -934
- package/components/WheelOfFortune-D2dcgbxg.js +0 -934
- package/components/WheelOfFortune-DZ7fGpS9.cjs +0 -619
- package/components/WheelOfFortune-DZg0i79U.js +0 -949
- package/components/WheelOfFortune-DawF7WTd.js +0 -944
- package/components/WheelOfFortune-DjdKhLGF.cjs +0 -617
- package/components/WheelOfFortune-Dsr3jMxy.cjs +0 -627
- package/components/WheelOfFortune-KpRQWn3C.cjs +0 -627
- package/components/WheelOfFortune-M5VMIsnw.cjs +0 -619
- package/components/WheelOfFortune-kXjxp6t7.js +0 -926
- package/components/WheelOfFortune-pBG33-QJ.js +0 -933
- package/components/WheelOfFortune-uTfPiHqd.js +0 -950
- package/components/WheelOfFortuneWheel-B4fe-idJ.cjs +0 -3
- package/components/WheelOfFortuneWheel-BABzaEBd.js +0 -1812
- package/components/WheelOfFortuneWheel-BQFaJ7ZB.cjs +0 -3
- package/components/WheelOfFortuneWheel-BYEHNHdI.js +0 -1807
- package/components/WheelOfFortuneWheel-BuBjvGRI.cjs +0 -3
- package/components/WheelOfFortuneWheel-CQCLWOFi.js +0 -1908
- package/components/WheelOfFortuneWheel-CsOjhUcv.cjs +0 -3
- package/components/WheelOfFortuneWheel-DUE4gyGP.js +0 -1741
- package/components/WheelOfFortuneWheel-DXhwrWpD.js +0 -1978
- package/components/WheelOfFortuneWheel-DgVQP4GA.js +0 -1735
- package/components/constants-BDMySuIA.cjs +0 -1
- package/components/constants-DNSPUges.cjs +0 -1
- package/components/constants-DdcZGwlM.js +0 -38
- package/components/constants-DgCBmV7S.js +0 -29
- package/components/countdown-2m_26DZf.js +0 -157
- package/components/countdown-Bp3yWidJ.cjs +0 -1
- package/components/countdown-CH5h-cVr.js +0 -146
- package/components/countdown-CnUPVFlE.cjs +0 -1
- package/components/countdown-YmZm4DrD.js +0 -146
- package/components/sparkles-B2kHtb3R.js +0 -14
- package/components/sparkles-BBLT1jhq.js +0 -14
- package/components/sparkles-BIl7-lvq.cjs +0 -1
- package/components/sparkles-BRrL2C0i.cjs +0 -1
- package/components/sparkles-BXFe6GK6.js +0 -18
- package/components/sparkles-Cot5wZXx.cjs +0 -1
- package/components/sparkles-DKbGLSaY.cjs +0 -1
- package/components/sparkles-WqrZ-iXs.js +0 -18
- package/components/spin-controller-BF6ymCY4.cjs +0 -1
- package/components/spin-controller-Bc8nQATS.cjs +0 -1
- package/components/spin-controller-CC3QZvWl.js +0 -175
- package/components/spin-controller-CEIahkSh.cjs +0 -1
- package/components/spin-controller-CUb1rpPl.js +0 -177
- package/components/spin-controller-CVXfvzb7.cjs +0 -1
- package/components/spin-controller-DkSQ07IL.js +0 -177
- package/components/spin-controller-Dxxx3-ya.js +0 -175
- package/components/utils-AGVOgUGK.cjs +0 -3
- package/components/utils-B3aNdyMX.js +0 -6055
- package/components/utils-DEov6Qk_.js +0 -6007
- package/components/utils-DQ220WK3.js +0 -6016
- package/components/utils-DwrHy7a0.js +0 -6007
- package/components/utils-Dwz-wUFC.cjs +0 -3
- package/components/utils-Rda5erjI.cjs +0 -3
- package/components/utils-fG_nzyoc.cjs +0 -3
- package/components/utils-qUyu-MNU.js +0 -6064
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
var Ht = Object.defineProperty, Nt = Object.defineProperties;
|
|
2
|
-
var Xt = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var _t = Object.getOwnPropertySymbols;
|
|
4
|
-
var Gt = Object.prototype.hasOwnProperty, jt = 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
|
-
jt.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 Wt, c as Bt, p as D, o as Zt, n as ye, i as he, l as pt, j as $, s as S, m as oe, b as V, f as re, k as $t, u as qt } from "./WheelOfFortuneWheel-BABzaEBd.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, j = 0, Pe = 0, de = 0, Se = 0, ke = 0, n = null, W = 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
|
-
W = 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
|
-
W === me && (W = 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, j = O, de = 0, Se = e.timeStamp || performance.now(), ke = j, n == null || n.cancel(), t(i) && (t(i).style.animation = "none"), b(ce, !0));
|
|
187
|
-
}, je = (e) => {
|
|
188
|
-
if (!G || g()) return;
|
|
189
|
-
const a = Ee - e.clientY;
|
|
190
|
-
Pe = a, Math.abs(a) > 4 && (Q = !0);
|
|
191
|
-
const s = j + 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
|
-
}, We = (e) => {
|
|
198
|
-
if (!G) return;
|
|
199
|
-
G = !1;
|
|
200
|
-
const a = Ee - e.clientY;
|
|
201
|
-
if (Math.abs(a) > va) {
|
|
202
|
-
ue(j + a * 1.1, a >= 0 ? 1 : -1, de);
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
Ge(j + a * 1.1);
|
|
206
|
-
}, Be = () => {
|
|
207
|
-
G && (G = !1, Q = !1, Ge(j + Pe * 1.1));
|
|
208
|
-
}, xt = () => {
|
|
209
|
-
if (Q) {
|
|
210
|
-
Q = !1;
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
ue();
|
|
214
|
-
};
|
|
215
|
-
Zt(() => (window.addEventListener("pointermove", je), window.addEventListener("pointerup", We), window.addEventListener("pointercancel", Be), () => {
|
|
216
|
-
ee = !0, W == null || W.abort(), clearTimeout(He), window.removeEventListener("pointermove", je), window.removeEventListener("pointerup", We), 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
|
-
Wt(["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
|
-
};
|