@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,364 +0,0 @@
|
|
|
1
|
-
import { d as pt, c as mt, p as P, o as gt, n as oe, i as le, l as we, s as V, h as S, m as J, b as I, f as G, u as yt } from "./WheelOfFortuneWheel-DgVQP4GA.js";
|
|
2
|
-
import { G as ht, aM as k, aC as wt, W as Ne, au as f, a0 as t, aN as Ue, aS as u, aT as o, ah as $, L as bt, aO as Tt, aP as xt, aY as Et, aU as Mt, aV as St, aG as F, aQ as Rt, aW as l, b0 as At } from "./utils-DwrHy7a0.js";
|
|
3
|
-
import { E as be, R as Ct, T as Pt, k as Ft, j as It, l as Te, m as kt, n as Ve, o as $e, p as Lt } from "./constants-DgCBmV7S.js";
|
|
4
|
-
import { f as Dt } from "./countdown-CH5h-cVr.js";
|
|
5
|
-
import { c as Ge } from "./coin-heads-loqcEtH2.js";
|
|
6
|
-
import { c as Yt } from "./coin-tails-BTbsTwkz.js";
|
|
7
|
-
var Ot = G('<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), zt = G('<div class="coin-royale__badge"><p class="coin-royale__badge-title"> </p> <p class="coin-royale__badge-countdown"> </p></div>'), Ht = G('<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 = G('<span class="coin-royale__flips-loader"></span>'), Ut = G('<p class="coin-royale__flips"> <span class="coin-royale__flips-count"><img class="coin-royale__flips-icon" alt="" aria-hidden="true"/> <!></span></p>'), Vt = G('<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);
|
|
8
|
-
function $t(Xe, h) {
|
|
9
|
-
ht(h, !0);
|
|
10
|
-
const w = () => Tt(xt, "$_", We), [We, je] = Rt();
|
|
11
|
-
let R = P(h, "program", 7, null), K = P(h, "endpoint", 7, null), Q = P(h, "session", 7, null), y = P(h, "isAvailable", 7, !1), ce = P(h, "spinResults", 15, null), p = P(h, "spinActive", 15, !1), ee = P(h, "remainingTimesLoading", 7, !1), de = P(h, "onFlip", 7, () => {
|
|
12
|
-
}), X = k(wt({}));
|
|
13
|
-
Ne(() => {
|
|
14
|
-
if (!y() && R()) {
|
|
15
|
-
const e = () => f(X, Dt(R()?.next?.startTime), !0);
|
|
16
|
-
e();
|
|
17
|
-
const a = setInterval(e, 1e3);
|
|
18
|
-
return () => clearInterval(a);
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
let L = k(!1), ue;
|
|
22
|
-
const Ze = () => {
|
|
23
|
-
clearTimeout(ue), ue = setTimeout(() => f(L, !1), 400);
|
|
24
|
-
};
|
|
25
|
-
let W = k(!1), A = k(void 0), i = k(void 0), D = k(void 0), C = k(void 0);
|
|
26
|
-
const _e = Et(() => y() && !p() && !t(W) && !ee());
|
|
27
|
-
let Y = 0, O = !1, j = !1, ve = 0, Z = 0, fe = 0, _ = null, te = null, xe, z = !1;
|
|
28
|
-
const H = (e, a = 1, n = 0) => {
|
|
29
|
-
t(i) && (t(i).style.transform = `translateY(${n}px) rotateX(${e}deg) scale(${a})`);
|
|
30
|
-
};
|
|
31
|
-
Ne(() => {
|
|
32
|
-
if (!t(A) || !t(i) || !t(D)) return;
|
|
33
|
-
Ee(), H(Y);
|
|
34
|
-
const e = new ResizeObserver(() => Ee());
|
|
35
|
-
return e.observe(t(A)), () => e.disconnect();
|
|
36
|
-
});
|
|
37
|
-
const Ee = () => {
|
|
38
|
-
if (!t(A) || !t(i) || !t(D)) return;
|
|
39
|
-
const e = t(A).clientWidth;
|
|
40
|
-
if (!e) return;
|
|
41
|
-
const a = e / 2 * Ct, n = Math.max(14, e * Pt), r = 2 * a * Math.tan(Math.PI / be) + 0.6;
|
|
42
|
-
t(i).style.setProperty("--half-t", `${(n / 2).toFixed(2)}px`), t(D).replaceChildren();
|
|
43
|
-
for (let s = 0; s < be; s++) {
|
|
44
|
-
const d = document.createElement("div");
|
|
45
|
-
d.className = `coin-royale__edge-seg coin-royale__edge-seg--${s % 2 === 0 ? "a" : "b"}`, d.style.width = `${r.toFixed(2)}px`, d.style.height = `${n.toFixed(2)}px`, d.style.transform = `translate(-50%,-50%) rotateZ(${s * 360 / be}deg) translateY(${(-a).toFixed(2)}px) rotateX(90deg)`, t(D).appendChild(d);
|
|
46
|
-
}
|
|
47
|
-
}, Me = (e) => {
|
|
48
|
-
Y = e, _?.cancel(), _ = null, H(e, 1), t(i) && (t(i).style.animation = ""), t(C) && (t(C).style.opacity = "", t(C).style.width = "");
|
|
49
|
-
}, qe = (e, a) => new Promise((n) => {
|
|
50
|
-
if (!t(i)) return n();
|
|
51
|
-
_?.cancel(), _ = t(i).animate(e, { fill: "forwards", ...a }), _.onfinish = () => n(), _.oncancel = () => n();
|
|
52
|
-
}), Be = async (e, a) => {
|
|
53
|
-
const n = new Headers({ "Content-Type": "application/json" });
|
|
54
|
-
Q() && n.append("X-SessionId", Q());
|
|
55
|
-
const r = await fetch(new URL(`${K()}/v1/wof/draw/${R()?.id}`), {
|
|
56
|
-
method: "PUT",
|
|
57
|
-
headers: n,
|
|
58
|
-
cache: "no-store",
|
|
59
|
-
body: JSON.stringify({ action: 1, guid: e }),
|
|
60
|
-
signal: a
|
|
61
|
-
});
|
|
62
|
-
if (!r.ok) throw new Error(`draw request failed: ${r.status}`);
|
|
63
|
-
return r.json();
|
|
64
|
-
}, ae = async (e) => {
|
|
65
|
-
if (!t(_e) || !t(i) || !t(A) || !K()) return;
|
|
66
|
-
de()();
|
|
67
|
-
const a = typeof e == "number" ? e : Y;
|
|
68
|
-
p(!0), f(L, !0), f(W, !1), _?.cancel();
|
|
69
|
-
const n = -(t(A).clientHeight * Ft);
|
|
70
|
-
t(C) && (t(C).style.opacity = "0.3", t(C).style.width = "34%");
|
|
71
|
-
const r = () => new Promise((x, E) => requestAnimationFrame((ge) => z ? E(new Error("destroyed")) : x(ge)));
|
|
72
|
-
let s = !1, d = !1, v;
|
|
73
|
-
const g = Mt(), c = new AbortController();
|
|
74
|
-
te = c;
|
|
75
|
-
const b = Promise.race([
|
|
76
|
-
Be(g, c.signal),
|
|
77
|
-
new Promise((x, E) => {
|
|
78
|
-
v = setTimeout(
|
|
79
|
-
() => {
|
|
80
|
-
d = !0, c.abort(), E(new Error("draw timed out"));
|
|
81
|
-
},
|
|
82
|
-
It
|
|
83
|
-
);
|
|
84
|
-
})
|
|
85
|
-
]);
|
|
86
|
-
b.then(() => s = !0, () => s = !0);
|
|
87
|
-
let T = a;
|
|
88
|
-
try {
|
|
89
|
-
let x = await r();
|
|
90
|
-
const E = x;
|
|
91
|
-
for (; !s || x - E < Te; ) {
|
|
92
|
-
const M = await r(), N = Math.min(M - x, 50) / 1e3;
|
|
93
|
-
x = M;
|
|
94
|
-
const q = M - E, U = Math.min(q / kt, 1);
|
|
95
|
-
T += Ve * U * U * (3 - 2 * U) * N;
|
|
96
|
-
const B = Math.min(q / Te, 1), re = 1 - (1 - B) ** 3, He = B >= 1 ? Math.sin((q - Te) / 380) * 0.015 : 0;
|
|
97
|
-
H(T, 1 + $e * (re + He), n * (re + He));
|
|
98
|
-
}
|
|
99
|
-
const ge = await b;
|
|
100
|
-
clearTimeout(v);
|
|
101
|
-
const ie = St(ge, "draw");
|
|
102
|
-
if (ie.success !== !0) throw new Error("draw failed");
|
|
103
|
-
const ut = {
|
|
104
|
-
...ie,
|
|
105
|
-
guid: g,
|
|
106
|
-
lotteryProgramID: ie.lotteryProgramID ?? R()?.id
|
|
107
|
-
}, _t = ie.type === "noprize" ? 180 : 0, Oe = 360, ye = Oe + (_t - ((T + Oe) % 360 + 360) % 360 + 360) % 360, vt = T + ye, ze = 2 * ye / Ve * 1e3, ft = T, he = await r();
|
|
108
|
-
for (let M = he; M - he < ze; M = await r()) {
|
|
109
|
-
const N = (M - he) / ze, q = 1 - (1 - N) ** 2, U = Math.min(N / 0.78, 1), B = 1 - U * U, re = N > 0.78 ? Math.sin((N - 0.78) / 0.22 * Math.PI) * 5 : 0;
|
|
110
|
-
H(ft + ye * q, 1 + $e * B, n * B + re);
|
|
111
|
-
}
|
|
112
|
-
if (Me(vt), await new Promise((M) => xe = setTimeout(M, 550)), z) return;
|
|
113
|
-
ce(ut), p(!1);
|
|
114
|
-
} catch (x) {
|
|
115
|
-
if (clearTimeout(v), z) return;
|
|
116
|
-
console.log(x);
|
|
117
|
-
const E = T + ((a - T) % 360 + 360) % 360;
|
|
118
|
-
if (t(i) && await qe(
|
|
119
|
-
[
|
|
120
|
-
{ transform: t(i).style.transform },
|
|
121
|
-
{ transform: `translateY(0px) rotateX(${E}deg) scale(1)` }
|
|
122
|
-
],
|
|
123
|
-
{ duration: 420, easing: "cubic-bezier(.55,0,.75,.4)" }
|
|
124
|
-
), z) return;
|
|
125
|
-
Me(E), d && f(W, !0), p(!1);
|
|
126
|
-
} finally {
|
|
127
|
-
te === c && (te = null), z || Ze();
|
|
128
|
-
}
|
|
129
|
-
}, Je = () => {
|
|
130
|
-
f(W, !1), p(!1);
|
|
131
|
-
}, Se = (e) => {
|
|
132
|
-
t(i) && (_?.cancel(), _ = t(i).animate(
|
|
133
|
-
[
|
|
134
|
-
{ transform: `translateY(0px) rotateX(${e}deg) scale(1)` },
|
|
135
|
-
{
|
|
136
|
-
transform: `translateY(0px) rotateX(${Y}deg) scale(1)`
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
{
|
|
140
|
-
duration: 320,
|
|
141
|
-
easing: "cubic-bezier(.22,.61,.32,1)",
|
|
142
|
-
fill: "forwards"
|
|
143
|
-
}
|
|
144
|
-
), _.onfinish = () => {
|
|
145
|
-
_?.cancel(), _ = null, H(Y, 1), t(i) && (t(i).style.animation = ""), f(L, !1);
|
|
146
|
-
});
|
|
147
|
-
}, Ke = (e) => {
|
|
148
|
-
t(_e) && (O = !0, j = !1, ve = e.clientY, fe = 0, Z = Y, _?.cancel(), t(i) && (t(i).style.animation = "none"), f(L, !0));
|
|
149
|
-
}, Re = (e) => {
|
|
150
|
-
if (!O || p()) return;
|
|
151
|
-
const a = ve - e.clientY;
|
|
152
|
-
fe = a, Math.abs(a) > 4 && (j = !0), H(Z + a * 1.1, 1 + Math.min(Math.abs(a) / 400, 0.12));
|
|
153
|
-
}, Ae = (e) => {
|
|
154
|
-
if (!O) return;
|
|
155
|
-
O = !1;
|
|
156
|
-
const a = ve - e.clientY;
|
|
157
|
-
if (Math.abs(a) > Lt) {
|
|
158
|
-
ae(Z + a * 1.1);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
Se(Z + a * 1.1);
|
|
162
|
-
}, Ce = () => {
|
|
163
|
-
O && (O = !1, j = !1, Se(Z + fe * 1.1));
|
|
164
|
-
}, Qe = () => {
|
|
165
|
-
if (j) {
|
|
166
|
-
j = !1;
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
ae();
|
|
170
|
-
};
|
|
171
|
-
gt(() => (window.addEventListener("pointermove", Re), window.addEventListener("pointerup", Ae), window.addEventListener("pointercancel", Ce), () => {
|
|
172
|
-
z = !0, te?.abort(), clearTimeout(xe), clearTimeout(ue), window.removeEventListener("pointermove", Re), window.removeEventListener("pointerup", Ae), window.removeEventListener("pointercancel", Ce), _?.cancel();
|
|
173
|
-
}));
|
|
174
|
-
var et = {
|
|
175
|
-
get program() {
|
|
176
|
-
return R();
|
|
177
|
-
},
|
|
178
|
-
set program(e = null) {
|
|
179
|
-
R(e), F();
|
|
180
|
-
},
|
|
181
|
-
get endpoint() {
|
|
182
|
-
return K();
|
|
183
|
-
},
|
|
184
|
-
set endpoint(e = null) {
|
|
185
|
-
K(e), F();
|
|
186
|
-
},
|
|
187
|
-
get session() {
|
|
188
|
-
return Q();
|
|
189
|
-
},
|
|
190
|
-
set session(e = null) {
|
|
191
|
-
Q(e), F();
|
|
192
|
-
},
|
|
193
|
-
get isAvailable() {
|
|
194
|
-
return y();
|
|
195
|
-
},
|
|
196
|
-
set isAvailable(e = !1) {
|
|
197
|
-
y(e), F();
|
|
198
|
-
},
|
|
199
|
-
get spinResults() {
|
|
200
|
-
return ce();
|
|
201
|
-
},
|
|
202
|
-
set spinResults(e = null) {
|
|
203
|
-
ce(e), F();
|
|
204
|
-
},
|
|
205
|
-
get spinActive() {
|
|
206
|
-
return p();
|
|
207
|
-
},
|
|
208
|
-
set spinActive(e = !1) {
|
|
209
|
-
p(e), F();
|
|
210
|
-
},
|
|
211
|
-
get remainingTimesLoading() {
|
|
212
|
-
return ee();
|
|
213
|
-
},
|
|
214
|
-
set remainingTimesLoading(e = !1) {
|
|
215
|
-
ee(e), F();
|
|
216
|
-
},
|
|
217
|
-
get onFlip() {
|
|
218
|
-
return de();
|
|
219
|
-
},
|
|
220
|
-
set onFlip(e = () => {
|
|
221
|
-
}) {
|
|
222
|
-
de(e), F();
|
|
223
|
-
}
|
|
224
|
-
}, Pe = Vt(), pe = Ue(Pe), Fe = o(pe), m = o(Fe);
|
|
225
|
-
let Ie;
|
|
226
|
-
var ke = o(m);
|
|
227
|
-
oe(ke, (e) => f(C, e), () => t(C));
|
|
228
|
-
var ne = u(ke, 2), Le = u(o(ne), 2);
|
|
229
|
-
oe(Le, (e) => f(D, e), () => t(D));
|
|
230
|
-
var me = u(Le, 2), tt = o(me);
|
|
231
|
-
l(me);
|
|
232
|
-
var De = u(me, 2), at = o(De);
|
|
233
|
-
l(De), l(ne), oe(ne, (e) => f(i, e), () => t(i));
|
|
234
|
-
var nt = u(ne, 2);
|
|
235
|
-
{
|
|
236
|
-
var st = (e) => {
|
|
237
|
-
var a = Ot(), n = Ue(a);
|
|
238
|
-
let r;
|
|
239
|
-
var s = u(o(n), 2), d = o(s, !0);
|
|
240
|
-
l(s), At(2), l(n);
|
|
241
|
-
var v = u(n, 2);
|
|
242
|
-
let g;
|
|
243
|
-
$(
|
|
244
|
-
(c) => {
|
|
245
|
-
r = we(n, 1, "coin-royale__drag-hint", null, r, {
|
|
246
|
-
"coin-royale__drag-hint--hidden": t(L) || p()
|
|
247
|
-
}), S(d, c), g = we(v, 0, "coin-royale__finger-cue", null, g, {
|
|
248
|
-
"coin-royale__finger-cue--hidden": t(L) || p()
|
|
249
|
-
});
|
|
250
|
-
},
|
|
251
|
-
[() => w()("dragToFlip")]
|
|
252
|
-
), I(e, a);
|
|
253
|
-
};
|
|
254
|
-
le(nt, (e) => {
|
|
255
|
-
y() && e(st);
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
l(m), oe(m, (e) => f(A, e), () => t(A));
|
|
259
|
-
var it = u(m, 2);
|
|
260
|
-
{
|
|
261
|
-
var rt = (e) => {
|
|
262
|
-
var a = zt(), n = o(a), r = o(n, !0);
|
|
263
|
-
l(n);
|
|
264
|
-
var s = u(n, 2), d = o(s, !0);
|
|
265
|
-
l(s), l(a), $(
|
|
266
|
-
(v, g) => {
|
|
267
|
-
S(r, v), S(d, g);
|
|
268
|
-
},
|
|
269
|
-
[
|
|
270
|
-
() => w()("nextAvailable"),
|
|
271
|
-
() => w()("countdown", {
|
|
272
|
-
values: {
|
|
273
|
-
days: t(X).days,
|
|
274
|
-
hours: t(X).hours,
|
|
275
|
-
minutes: t(X).minutes,
|
|
276
|
-
seconds: t(X).seconds
|
|
277
|
-
}
|
|
278
|
-
})
|
|
279
|
-
]
|
|
280
|
-
), I(e, a);
|
|
281
|
-
}, ot = (e) => {
|
|
282
|
-
var a = Ht(), n = o(a), r = o(n, !0);
|
|
283
|
-
l(n);
|
|
284
|
-
var s = u(n, 2), d = o(s, !0);
|
|
285
|
-
l(s);
|
|
286
|
-
var v = u(s, 2), g = o(v, !0);
|
|
287
|
-
l(v), l(a), $(
|
|
288
|
-
(c, b, T) => {
|
|
289
|
-
S(r, c), S(d, b), S(g, T);
|
|
290
|
-
},
|
|
291
|
-
[
|
|
292
|
-
() => w()("timeoutTitle"),
|
|
293
|
-
() => w()("timeoutDescription"),
|
|
294
|
-
() => w()("close")
|
|
295
|
-
]
|
|
296
|
-
), J("click", v, Je), I(e, a);
|
|
297
|
-
};
|
|
298
|
-
le(it, (e) => {
|
|
299
|
-
y() ? t(W) && e(ot, 1) : e(rt);
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
l(Fe), l(pe);
|
|
303
|
-
var Ye = u(pe, 2);
|
|
304
|
-
{
|
|
305
|
-
var lt = (e) => {
|
|
306
|
-
var a = Ut(), n = o(a), r = u(n), s = o(r), d = u(s, 2);
|
|
307
|
-
{
|
|
308
|
-
var v = (c) => {
|
|
309
|
-
var b = Nt();
|
|
310
|
-
I(c, b);
|
|
311
|
-
}, g = (c) => {
|
|
312
|
-
var b = yt();
|
|
313
|
-
$(() => S(b, R()?.current?.remainingTimes ?? R()?.remainingTimes)), I(c, b);
|
|
314
|
-
};
|
|
315
|
-
le(d, (c) => {
|
|
316
|
-
ee() ? c(v) : c(g, -1);
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
l(r), l(a), $(
|
|
320
|
-
(c) => {
|
|
321
|
-
S(n, `${c ?? ""} `), V(s, "src", Ge);
|
|
322
|
-
},
|
|
323
|
-
[() => w()("remainingFlips")]
|
|
324
|
-
), I(e, a);
|
|
325
|
-
};
|
|
326
|
-
le(Ye, (e) => {
|
|
327
|
-
y() && e(lt);
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
var se = u(Ye, 2), ct = o(se, !0);
|
|
331
|
-
l(se), $(
|
|
332
|
-
(e, a) => {
|
|
333
|
-
Ie = we(m, 1, "coin-royale__flip-zone", null, Ie, {
|
|
334
|
-
"coin-royale__flip-zone--disabled": !y(),
|
|
335
|
-
"coin-royale__flip-zone--settling": p()
|
|
336
|
-
}), V(m, "tabindex", y() ? 0 : -1), V(m, "aria-label", e), V(m, "aria-disabled", !t(_e)), V(tt, "src", Ge), V(at, "src", Yt), se.disabled = !y(), S(ct, a);
|
|
337
|
-
},
|
|
338
|
-
[() => w()("flipCoin"), () => w()("flipCoin")]
|
|
339
|
-
), J("pointerdown", m, Ke), J("click", m, Qe), J("keydown", m, (e) => {
|
|
340
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), ae());
|
|
341
|
-
}), J("click", se, () => ae()), I(Xe, Pe);
|
|
342
|
-
var dt = bt(et);
|
|
343
|
-
return je(), dt;
|
|
344
|
-
}
|
|
345
|
-
pt(["pointerdown", "click", "keydown"]);
|
|
346
|
-
mt(
|
|
347
|
-
$t,
|
|
348
|
-
{
|
|
349
|
-
program: {},
|
|
350
|
-
endpoint: {},
|
|
351
|
-
session: {},
|
|
352
|
-
isAvailable: {},
|
|
353
|
-
spinResults: {},
|
|
354
|
-
spinActive: {},
|
|
355
|
-
remainingTimesLoading: {},
|
|
356
|
-
onFlip: {}
|
|
357
|
-
},
|
|
358
|
-
[],
|
|
359
|
-
[],
|
|
360
|
-
{ mode: "open" }
|
|
361
|
-
);
|
|
362
|
-
export {
|
|
363
|
-
$t as C
|
|
364
|
-
};
|