@everymatrix/mini-games-hub 0.1.14 → 0.1.16
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/components/BackButton-BMWvZ9Lb.js +39 -0
- package/components/BackButton-BNp3jVLa.js +39 -0
- package/components/BackButton-Bi1zFTns.js +38 -0
- package/components/BackButton-BvRNh4nJ.js +39 -0
- package/components/BackButton-C2-HXI2m.cjs +1 -0
- package/components/BackButton-C_v3b0Ky.cjs +1 -0
- package/components/BackButton-D5gfQ3NI.cjs +1 -0
- package/components/BackButton-DOW_OP-H.cjs +1 -0
- package/components/BackButton-DznJk3U4.js +38 -0
- package/components/BackButton-gIVGAf6v.js +38 -0
- package/components/BackButton-s0YqvufR.cjs +1 -0
- package/components/CoinFlip-5qt33VpA.js +399 -0
- package/components/CoinFlip-9-7FNYAn.js +364 -0
- package/components/CoinFlip-B0Q-xZDI.cjs +1 -0
- package/components/CoinFlip-BWNJK7aS.js +402 -0
- package/components/CoinFlip-BaNNMAYb.cjs +1 -0
- package/components/CoinFlip-BgRZmhbg.js +367 -0
- package/components/CoinFlip-COwy7cq1.cjs +1 -0
- package/components/CoinFlip-CSel9VZR.js +398 -0
- package/components/CoinFlip-CfHvSwpV.cjs +1 -0
- package/components/CoinFlip-ClRh6gz2.js +363 -0
- package/components/CoinFlip-D7Bwnl8W.cjs +1 -0
- package/components/CoinFlip-D8OLaQiA.js +367 -0
- package/components/CoinFlip-Dg2ZA_B2.cjs +1 -0
- package/components/CoinFlip-DoASIhfX.cjs +1 -0
- package/components/CoinFlip-pvtcTO4f.cjs +1 -0
- package/components/CoinFlip-vrZpkrnS.js +402 -0
- package/components/CoinRoyale-4Oe-x5-J.cjs +734 -0
- package/components/CoinRoyale-9nHMXODj.js +1017 -0
- package/components/CoinRoyale-B3bu5S4n.cjs +734 -0
- package/components/CoinRoyale-B4dKiGgG.cjs +736 -0
- package/components/CoinRoyale-BNxFDqe1.js +999 -0
- package/components/CoinRoyale-BwNvG3QI.js +1009 -0
- package/components/CoinRoyale-Bza84vCL.cjs +738 -0
- package/components/CoinRoyale-C-x6uDgh.js +989 -0
- package/components/CoinRoyale-CAI2JCvG.js +1020 -0
- package/components/CoinRoyale-CGHKZ-kc.js +997 -0
- package/components/CoinRoyale-CbqmmMPg.cjs +736 -0
- package/components/CoinRoyale-ChWsctqo.cjs +759 -0
- package/components/CoinRoyale-Cw8ImDP5.js +1040 -0
- package/components/CoinRoyale-CxIBSKFK.js +1017 -0
- package/components/CoinRoyale-D-rF6BV4.js +1019 -0
- package/components/CoinRoyale-DH-tQHtT.cjs +736 -0
- package/components/CoinRoyale-DmcgvBwG.js +997 -0
- package/components/CoinRoyale-d2utu3E3.cjs +759 -0
- package/components/CoinRoyale-xAkf1dm_.cjs +738 -0
- package/components/DrawResult-BHZeM1oX.cjs +1 -0
- package/components/DrawResult-BVtwLs-z.js +373 -0
- package/components/DrawResult-CG5KTjF7.cjs +1 -0
- package/components/DrawResult-COyPm6Cv.cjs +1 -0
- package/components/DrawResult-CbLPtjvZ.js +343 -0
- package/components/DrawResult-Cul15bW0.cjs +1 -0
- package/components/DrawResult-DMRODSxk.cjs +1 -0
- package/components/DrawResult-DTJJfQkP.js +373 -0
- package/components/DrawResult-DdL4fFZM.js +343 -0
- package/components/DrawResult-DxG4CaKK.cjs +1 -0
- package/components/DrawResult-SyzKXHgd.js +343 -0
- package/components/DrawResult-ZEAa0flC.js +373 -0
- package/components/GameCard-8k9KvRun.cjs +3 -0
- package/components/GameCard-A3k7RxF5.js +63 -0
- package/components/GameCard-B2td6J8K.js +62 -0
- package/components/{GameCard-BIn8BJ4U.cjs → GameCard-Bku9nP58.cjs} +3 -3
- package/components/GameCard-CBGi9i6m.cjs +3 -0
- package/components/GameCard-CHZmVd6n.cjs +3 -0
- package/components/GameCard-Cj4zAE8_.js +59 -0
- package/components/GameCard-CrKoQU1B.js +59 -0
- package/components/GameCard-DFVjSdtd.cjs +3 -0
- package/components/GameCard-DHetS96-.js +66 -0
- package/components/GameCard-DcWpuwMl.cjs +3 -0
- package/components/GameCard-jIcB63Tt.js +62 -0
- package/components/GameHistory-9Mf_u0La.js +231 -0
- package/components/GameHistory-BktmYuDa.js +231 -0
- package/components/GameHistory-CGAhNQKk.js +231 -0
- package/components/GameHistory-ChYjWDsa.cjs +12 -0
- package/components/GameHistory-CmiIChL-.cjs +12 -0
- package/components/GameHistory-CrrlOaAg.js +231 -0
- package/components/GameHistory-DVsHn3lx.cjs +12 -0
- package/components/GameHistory-_jU0BiqI.js +231 -0
- package/components/GameHistory-aQf3vf9u.cjs +12 -0
- package/components/GameHistory-lyXo0tYb.cjs +12 -0
- package/components/GameHistory-uzrT81kU.js +231 -0
- package/components/GameHistory-v6cI-TIF.cjs +12 -0
- package/components/GamePlaceholder-4oI8uJ-1.cjs +1 -0
- package/components/GamePlaceholder-Bp4nTJeL.js +84 -0
- package/components/GamePlaceholder-COiYGwNi.cjs +15 -0
- package/components/GamePlaceholder-CfJ4hx9w.js +70 -0
- package/components/GamePlaceholder-D9JEXsAk.js +84 -0
- package/components/GamePlaceholder-DGnB06iW.js +71 -0
- package/components/GamePlaceholder-DS5evGU6.js +85 -0
- package/components/GamePlaceholder-DmiU1G7G.cjs +15 -0
- package/components/GamePlaceholder-Dwo_YAUQ.cjs +1 -0
- package/components/GamePlaceholder-Uni3xW09.cjs +15 -0
- package/components/GamePlaceholder-fVPk29f9.cjs +15 -0
- package/components/GamePlaceholder-vUYYV2Ps.js +85 -0
- package/components/GameRules-41OkRwZu.js +115 -0
- package/components/GameRules-BwLJBo6z.cjs +3 -0
- package/components/GameRules-CRiycUU8.js +115 -0
- package/components/GameRules-CTKyBDZO.cjs +3 -0
- package/components/GameRules-CV9sxZYz.js +126 -0
- package/components/GameRules-CuuoMoqN.cjs +3 -0
- package/components/GameRules-Cy7jwBok.js +126 -0
- package/components/GameRules-DUD8OKC0.js +115 -0
- package/components/GameRules-Dkl0qVzr.js +126 -0
- package/components/GameRules-DpGqZdSj.cjs +3 -0
- package/components/GameRules-DrBYjWA6.cjs +3 -0
- package/components/GameRules-DrZ6w0LM.cjs +3 -0
- package/components/MiniGamesHub-BWPRLpyq.cjs +16 -0
- package/components/MiniGamesHub-BXcQ_faH.js +1022 -0
- package/components/MiniGamesHub-BbkgB1GV.js +1105 -0
- package/components/MiniGamesHub-BjME_rom.cjs +16 -0
- package/components/{MiniGamesHub-BYJ7lK90.js → MiniGamesHub-Bn-xvO1e.js} +416 -760
- package/components/MiniGamesHub-BpjzFxHO.cjs +16 -0
- package/components/MiniGamesHub-BtC6TmtK.cjs +16 -0
- package/components/{MiniGamesHub-D3n-AyD7.js → MiniGamesHub-BvS3Q0HA.js} +452 -696
- package/components/MiniGamesHub-C-9Nf-x7.js +1029 -0
- package/components/MiniGamesHub-C0ESIt9P.cjs +16 -0
- package/components/MiniGamesHub-CfIFEVOU.js +1022 -0
- package/components/MiniGamesHub-Cj_6ebsL.cjs +16 -0
- package/components/MiniGamesHub-CkVJjuZl.cjs +79 -0
- package/components/MiniGamesHub-CktxKKTj.cjs +16 -0
- package/components/MiniGamesHub-ClPq7L0V.cjs +79 -0
- package/components/MiniGamesHub-CrPltGGl.js +1042 -0
- package/components/MiniGamesHub-D2Eet3pe.js +1048 -0
- package/components/MiniGamesHub-DCCeYwnc.js +1055 -0
- package/components/MiniGamesHub-DuyWceLB.cjs +16 -0
- package/components/MiniGamesHub-Dz8Ltp98.js +1048 -0
- package/components/MiniGamesHub-_uRBhzYg.js +1029 -0
- package/components/MiniGamesHub-kIXoGqbZ.cjs +16 -0
- package/components/MiniGamesHub-v8PPHifq.js +1072 -0
- package/components/MysteryChest-B4h9tqVR.js +1301 -0
- package/components/MysteryChest-BJCFkn02.cjs +737 -0
- package/components/MysteryChest-BXPAdruk.js +1290 -0
- package/components/MysteryChest-BuB9PD57.js +1240 -0
- package/components/MysteryChest-C40hwiCW.cjs +745 -0
- package/components/MysteryChest-CKPELFiF.cjs +737 -0
- package/components/MysteryChest-CRJtPhlo.cjs +743 -0
- package/components/MysteryChest-CScyc3Jw.cjs +745 -0
- package/components/MysteryChest-CheF_Rh5.cjs +739 -0
- package/components/MysteryChest-CrL8IXga.js +1309 -0
- package/components/MysteryChest-CrXzepqD.js +1296 -0
- package/components/MysteryChest-D6eks4QE.js +1254 -0
- package/components/MysteryChest-DJuhkpSa.cjs +743 -0
- package/components/MysteryChest-DOTlHt7A.js +1248 -0
- package/components/MysteryChest-DfggF659.js +1262 -0
- package/components/MysteryChest-Di-dVQnd.cjs +745 -0
- package/components/MysteryChest-DnstXEZJ.js +1298 -0
- package/components/MysteryChest-IcRh-Dcp.js +1247 -0
- package/components/MysteryChest-dyhqTxMg.cjs +739 -0
- package/components/WheelOfFortune--1feiOUD.js +950 -0
- package/components/WheelOfFortune-B0g1znMo.cjs +627 -0
- package/components/{WheelOfFortune--4nTtnMR.cjs → WheelOfFortune-BC0wwnC-.cjs} +6 -6
- package/components/{WheelOfFortune-BjNsD2ND.js → WheelOfFortune-BYxOqBjA.js} +148 -159
- package/components/WheelOfFortune-BgUB1tnc.js +942 -0
- package/components/WheelOfFortune-Bh2XAbs4.cjs +619 -0
- package/components/WheelOfFortune-BwmCnHru.js +926 -0
- package/components/WheelOfFortune-CHgHhi9q.cjs +619 -0
- package/components/WheelOfFortune-CRgnumXh.cjs +627 -0
- package/components/WheelOfFortune-CZ2cERqz.cjs +619 -0
- package/components/WheelOfFortune-CpYsfi8D.js +934 -0
- package/components/WheelOfFortune-Cy64rFDw.js +942 -0
- package/components/WheelOfFortune-DZ7fGpS9.cjs +619 -0
- package/components/WheelOfFortune-DZg0i79U.js +949 -0
- package/components/{WheelOfFortune-DkVQIxzg.js → WheelOfFortune-DawF7WTd.js} +178 -214
- package/components/WheelOfFortune-DjdKhLGF.cjs +617 -0
- package/components/WheelOfFortune-M5VMIsnw.cjs +619 -0
- package/components/WheelOfFortune-kXjxp6t7.js +926 -0
- package/components/WheelOfFortune-pBG33-QJ.js +933 -0
- package/components/WheelOfFortuneWheel-7PqVvd_8.cjs +3 -0
- package/components/WheelOfFortuneWheel-B4fe-idJ.cjs +3 -0
- package/components/WheelOfFortuneWheel-BABzaEBd.js +1812 -0
- package/components/WheelOfFortuneWheel-BQFaJ7ZB.cjs +3 -0
- package/components/WheelOfFortuneWheel-BYEHNHdI.js +1807 -0
- package/components/WheelOfFortuneWheel-BoZ9evN7.cjs +3 -0
- package/components/WheelOfFortuneWheel-BuBjvGRI.cjs +3 -0
- package/components/{WheelOfFortuneWheel-BAR98ByP.js → WheelOfFortuneWheel-CQCLWOFi.js} +310 -302
- package/components/WheelOfFortuneWheel-CsOjhUcv.cjs +3 -0
- package/components/WheelOfFortuneWheel-DUE4gyGP.js +1741 -0
- package/components/{WheelOfFortuneWheel-DxFn6jjg.js → WheelOfFortuneWheel-DXhwrWpD.js} +548 -539
- package/components/WheelOfFortuneWheel-DgVQP4GA.js +1735 -0
- package/components/bg-scene-Bz42V1FW.cjs +1 -0
- package/components/bg-scene-DpHgKCHj.js +4 -0
- package/components/coin-heads-BuJOLpyg.cjs +1 -0
- package/components/coin-heads-loqcEtH2.js +4 -0
- package/components/coin-tails-20vJmhwv.cjs +1 -0
- package/components/coin-tails-BTbsTwkz.js +4 -0
- package/components/confetti-CIk02Iw8.cjs +1 -0
- package/components/confetti-QNsE8ssC.js +14 -0
- package/components/constants-BDMySuIA.cjs +1 -0
- package/components/constants-DNSPUges.cjs +1 -0
- package/components/{constants-BYsDpbRv.js → constants-DdcZGwlM.js} +28 -19
- package/components/constants-DgCBmV7S.js +29 -0
- package/components/constants-Ds7J0meH.cjs +1 -0
- package/components/constants-Q_kcdbM6.js +29 -0
- package/components/countdown-2m_26DZf.js +157 -0
- package/components/countdown-BhZfvy-p.cjs +1 -0
- package/components/countdown-Bp3yWidJ.cjs +1 -0
- package/components/countdown-CH5h-cVr.js +146 -0
- package/components/countdown-CnUPVFlE.cjs +1 -0
- package/components/countdown-DmWNNDzv.js +168 -0
- package/components/countdown-YmZm4DrD.js +146 -0
- package/components/countdown-o9wqo7P7.cjs +1 -0
- package/components/key-CFhvp9Ju.cjs +1 -0
- package/components/key-D1g9LqMU.js +4 -0
- package/components/mystery-chest-bg-CGT-JTBW.js +4 -0
- package/components/mystery-chest-bg-vrQMNafs.cjs +1 -0
- package/components/mystery-chest-empty-CSY7-Vbl.cjs +1 -0
- package/components/mystery-chest-empty-D7bbrCHH.js +4 -0
- package/components/mystery-chest-locked-CIxpYU3v.js +4 -0
- package/components/mystery-chest-locked-DiyrvNm3.cjs +1 -0
- package/components/mystery-chest-win-D1NYItcd.js +4 -0
- package/components/mystery-chest-win-OxXZtQQd.cjs +1 -0
- package/components/remaining-times-Dexper1E.js +52 -0
- package/components/remaining-times-DiYnfuZB.js +23 -0
- package/components/remaining-times-Eqo69UfM.cjs +1 -0
- package/components/remaining-times-Gt6ytHaa.cjs +1 -0
- package/components/sparkles-B2kHtb3R.js +14 -0
- package/components/sparkles-BBLT1jhq.js +14 -0
- package/components/sparkles-BIl7-lvq.cjs +1 -0
- package/components/sparkles-BRrL2C0i.cjs +1 -0
- package/components/sparkles-BXFe6GK6.js +18 -0
- package/components/sparkles-C2rT-gN_.cjs +1 -0
- package/components/sparkles-Cfa1xTlQ.js +14 -0
- package/components/sparkles-Cot5wZXx.cjs +1 -0
- package/components/sparkles-D1RTsqBU.js +18 -0
- package/components/sparkles-DKbGLSaY.cjs +1 -0
- package/components/sparkles-DmL-n8od.cjs +1 -0
- package/components/sparkles-WqrZ-iXs.js +18 -0
- package/components/spin-controller-3wmy9F5-.cjs +1 -0
- package/components/{spin-controller-CIshWmlA.cjs → spin-controller-BF6ymCY4.cjs} +1 -1
- package/components/spin-controller-Bc8nQATS.cjs +1 -0
- package/components/{spin-controller-BuBkKrNR.js → spin-controller-BcBfHUn9.js} +7 -7
- package/components/{spin-controller-REPdRwaB.js → spin-controller-CC3QZvWl.js} +8 -8
- package/components/spin-controller-CEIahkSh.cjs +1 -0
- package/components/spin-controller-CUb1rpPl.js +177 -0
- package/components/spin-controller-CVXfvzb7.cjs +1 -0
- package/components/spin-controller-DBglqs7W.js +175 -0
- package/components/spin-controller-Db-fwR9V.cjs +1 -0
- package/components/spin-controller-DkSQ07IL.js +177 -0
- package/components/spin-controller-Dxxx3-ya.js +175 -0
- package/components/utils-8EFTHKcu.cjs +3 -0
- package/components/utils-AGVOgUGK.cjs +3 -0
- package/components/{utils-C7uxZXaZ.js → utils-B3aNdyMX.js} +968 -958
- package/components/utils-BJHloM10.js +6055 -0
- package/components/utils-C1uNHR_J.cjs +3 -0
- package/components/{utils-d-JrZBJu.js → utils-DEov6Qk_.js} +902 -892
- package/components/utils-DQ220WK3.js +6016 -0
- package/components/utils-DwrHy7a0.js +6007 -0
- package/components/utils-Dwz-wUFC.cjs +3 -0
- package/components/utils-Rda5erjI.cjs +3 -0
- package/components/utils-fG_nzyoc.cjs +3 -0
- package/components/utils-qUyu-MNU.js +6064 -0
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.cjs +1 -0
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +12 -13
- package/components/GameCard-D3knomma.js +0 -56
- package/components/GameCard-Ds0FcnPp.js +0 -56
- package/components/MiniGamesHub-zNncMSFn.cjs +0 -94
- package/components/WheelOfFortuneDrawResults-1lzyxrks.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-DQweghnp.js +0 -301
- package/components/WheelOfFortuneDrawResults-dOeQDVub.js +0 -276
- package/components/WheelOfFortuneHistory-CQZ9QtVt.js +0 -232
- package/components/WheelOfFortuneHistory-DZNPM57t.cjs +0 -13
- package/components/WheelOfFortuneHistory-DygZEtcR.js +0 -232
- package/components/WheelOfFortuneRules-D3N1c8PX.js +0 -117
- package/components/WheelOfFortuneRules-DuiCet95.js +0 -128
- package/components/WheelOfFortuneRules-VAMAiK0m.cjs +0 -5
- package/components/WheelOfFortuneWheel-hSjxThyU.cjs +0 -3
- package/components/constants-DM6Vdc6Z.cjs +0 -1
- package/components/sparkles-BnriHiyw.cjs +0 -1
- package/components/sparkles-CSfeD2Zu.js +0 -25
- package/components/sparkles-CTrQ372y.js +0 -29
- package/components/utils-DQIHJIDu.cjs +0 -3
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
var D = (H, M, a) => new Promise((K, U) => {
|
|
2
|
-
var j = (w) => {
|
|
3
|
-
try {
|
|
4
|
-
P(a.next(w));
|
|
5
|
-
} catch (S) {
|
|
6
|
-
U(S);
|
|
7
|
-
}
|
|
8
|
-
}, B = (w) => {
|
|
9
|
-
try {
|
|
10
|
-
P(a.throw(w));
|
|
11
|
-
} catch (S) {
|
|
12
|
-
U(S);
|
|
13
|
-
}
|
|
14
|
-
}, P = (w) => w.done ? K(w.value) : Promise.resolve(w.value).then(j, B);
|
|
15
|
-
P((a = a.apply(H, M)).next());
|
|
16
|
-
});
|
|
17
|
-
import { d as Se, c as Fe, p as G, n as Re, i as I, b as g, f as k, q as ce, s as v, r as q, l as E, e as ze, g as Me, m as je } from "./WheelOfFortuneWheel-DxFn6jjg.js";
|
|
18
|
-
import { D as Pe, S as de, Z as r, U as Ae, I as Ee, aP as We, aQ as Ce, aM as $, aX as ee, aO as d, aT as i, aD as N, aR as Le, ar as y, aW as s, ae as W, aN as O, aV as Be } from "./utils-C7uxZXaZ.js";
|
|
19
|
-
import { E as Ge } from "./error-DJgbe-Bh.js";
|
|
20
|
-
import { a as Ie } from "./sparkles-CTrQ372y.js";
|
|
21
|
-
var Ne = k('<span class="button-spinner"></span>'), Oe = k('<span class="button-spinner"></span>'), Ue = k('<div class="confirm-modal-content"><p class="confirm-modal-title"> </p> <p class="confirm-modal-body"></p> <div class="confirm-modal-actions"><button class="primary-cta"><span> </span> <!></button> <button class="secondary-cta"><span> </span> <!></button></div></div>'), Je = k('<h2 class="draw-result-title"> </h2> <p class="draw-result-description"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>', 1), Xe = k('<h2 class="draw-result-title"> </h2> <p class="draw-result-description"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>', 1), Ze = k('<h2 class="draw-result-title"> </h2> <p class="draw-result-description"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>', 1), qe = k('<span class="draw-result-sparkle" aria-hidden="true">✦</span>'), He = k('<span class="button-spinner"></span>'), Ke = k('<h2 class="draw-result-title"> <!></h2> <p class="draw-result-description"></p> <div class="draw-result-actions"><button class="primary-cta"><span> </span> <!></button> <button class="secondary-cta"> </button></div>', 1), Qe = k('<img alt="Error" class="draw-result-error-image"/> <p class="draw-result-description draw-result-description--error"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>', 1), Ve = k('<div class="draw-result-panel"><div class="draw-result-confetti-layer"></div> <!> <div class="draw-result-stack"><!></div></div>');
|
|
22
|
-
function Ye(H, M) {
|
|
23
|
-
Pe(M, !0);
|
|
24
|
-
const a = () => We(Ce, "$_", K), [K, U] = Le(), j = G(M, "result", 7), B = G(M, "endpoint", 7), P = G(M, "session", 7), w = G(M, "liteMode", 7, !1), S = G(M, "onFetchRemainingTimes", 7, () => {
|
|
25
|
-
}), te = ee(() => {
|
|
26
|
-
var e;
|
|
27
|
-
return ((e = j()) == null ? void 0 : e.success) !== !0;
|
|
28
|
-
}), Q = ee(() => {
|
|
29
|
-
var e;
|
|
30
|
-
return (e = j()) == null ? void 0 : e.type;
|
|
31
|
-
}), ae = ee(() => r(Q) === "noprize"), ue = /* @__PURE__ */ new Set(["loyalty"]), ve = {
|
|
32
|
-
bonus: a()("prizeBonus"),
|
|
33
|
-
role: a()("prizeRole"),
|
|
34
|
-
tournament: a()("prizeTournament"),
|
|
35
|
-
ticket: a()("prizeTicket"),
|
|
36
|
-
loyalty: a()("prizeLoyalty"),
|
|
37
|
-
challenge: a()("prizeChallenge"),
|
|
38
|
-
custom: a()("prizeCustom")
|
|
39
|
-
}, pe = [
|
|
40
|
-
{ t: "-0.7em", l: "5%", s: "0.45em", d: "680ms" },
|
|
41
|
-
{ t: "-0.5em", l: "22%", s: "0.28em", d: "760ms" },
|
|
42
|
-
{ t: "-0.9em", l: "40%", s: "0.38em", d: "820ms" },
|
|
43
|
-
{ t: "-0.6em", l: "58%", s: "0.3em", d: "740ms" },
|
|
44
|
-
{ t: "-0.8em", l: "76%", s: "0.42em", d: "900ms" },
|
|
45
|
-
{ t: "-0.4em", l: "92%", s: "0.25em", d: "860ms" },
|
|
46
|
-
{ t: "0.1em", l: "14%", s: "0.22em", d: "800ms" },
|
|
47
|
-
{ t: "0em", l: "72%", s: "0.2em", d: "950ms" }
|
|
48
|
-
];
|
|
49
|
-
let J = $(void 0), x = $("initial"), p = $(null);
|
|
50
|
-
de(() => {
|
|
51
|
-
r(J) && r(x) === "claimSuccess" && !w() && Ie(r(J));
|
|
52
|
-
}), de(() => {
|
|
53
|
-
(r(ae) || r(te)) && Ae(() => S()());
|
|
54
|
-
});
|
|
55
|
-
const se = (e) => {
|
|
56
|
-
const t = new URL(`${B()}/v1/wof/draw/${j().lotteryProgramID}`), n = new Headers();
|
|
57
|
-
P() && n.append("X-SessionId", P()), n.append("Content-Type", "application/json");
|
|
58
|
-
const u = { action: e, guid: j().guid };
|
|
59
|
-
return fetch(t, { method: "PUT", headers: n, body: JSON.stringify(u) }).then((l) => l.json());
|
|
60
|
-
}, re = () => D(this, null, function* () {
|
|
61
|
-
y(p, "claim");
|
|
62
|
-
try {
|
|
63
|
-
const e = yield se(0), t = Be(e, "draw"), n = (t == null ? void 0 : t.state) === "fulfilled" && (t == null ? void 0 : t.completed), u = (t == null ? void 0 : t.state) === "drawn" && !(t != null && t.completed);
|
|
64
|
-
n ? y(x, "claimSuccess") : u ? y(x, "claimFailed") : y(x, "claimFailed");
|
|
65
|
-
} catch (e) {
|
|
66
|
-
console.log(e), y(x, "claimFailed");
|
|
67
|
-
} finally {
|
|
68
|
-
y(p, null), S()();
|
|
69
|
-
}
|
|
70
|
-
}), me = () => D(this, null, function* () {
|
|
71
|
-
y(p, "reject"), y(x, "initial");
|
|
72
|
-
const e = S();
|
|
73
|
-
try {
|
|
74
|
-
window.postMessage({ type: "BackToWheel", skipFetch: !0 }, window.location.href), yield se(2), e == null || e();
|
|
75
|
-
} catch (t) {
|
|
76
|
-
console.log(t);
|
|
77
|
-
} finally {
|
|
78
|
-
y(p, null);
|
|
79
|
-
}
|
|
80
|
-
}), _e = () => {
|
|
81
|
-
window.postMessage({ type: "BackToWheel" }, window.location.href);
|
|
82
|
-
}, V = () => {
|
|
83
|
-
window.postMessage({ type: "SpinAgain" }, window.location.href);
|
|
84
|
-
};
|
|
85
|
-
var fe = {
|
|
86
|
-
get result() {
|
|
87
|
-
return j();
|
|
88
|
-
},
|
|
89
|
-
set result(e) {
|
|
90
|
-
j(e), N();
|
|
91
|
-
},
|
|
92
|
-
get endpoint() {
|
|
93
|
-
return B();
|
|
94
|
-
},
|
|
95
|
-
set endpoint(e) {
|
|
96
|
-
B(e), N();
|
|
97
|
-
},
|
|
98
|
-
get session() {
|
|
99
|
-
return P();
|
|
100
|
-
},
|
|
101
|
-
set session(e) {
|
|
102
|
-
P(e), N();
|
|
103
|
-
},
|
|
104
|
-
get liteMode() {
|
|
105
|
-
return w();
|
|
106
|
-
},
|
|
107
|
-
set liteMode(e = !1) {
|
|
108
|
-
w(e), N();
|
|
109
|
-
},
|
|
110
|
-
get onFetchRemainingTimes() {
|
|
111
|
-
return S();
|
|
112
|
-
},
|
|
113
|
-
set onFetchRemainingTimes(e = () => {
|
|
114
|
-
}) {
|
|
115
|
-
S(e), N();
|
|
116
|
-
}
|
|
117
|
-
}, Y = Ve(), ie = i(Y);
|
|
118
|
-
Re(ie, (e) => y(J, e), () => r(J));
|
|
119
|
-
var ne = d(ie, 2);
|
|
120
|
-
{
|
|
121
|
-
var he = (e) => {
|
|
122
|
-
var t = Ue(), n = i(t), u = i(n, !0);
|
|
123
|
-
s(n);
|
|
124
|
-
var l = d(n, 2);
|
|
125
|
-
ce(l, () => a()("rejectWarningText"), !0), s(l);
|
|
126
|
-
var m = d(l, 2), c = i(m), o = i(c);
|
|
127
|
-
let _;
|
|
128
|
-
var f = i(o, !0);
|
|
129
|
-
s(o);
|
|
130
|
-
var F = d(o, 2);
|
|
131
|
-
{
|
|
132
|
-
var R = (h) => {
|
|
133
|
-
var A = Ne();
|
|
134
|
-
g(h, A);
|
|
135
|
-
};
|
|
136
|
-
I(F, (h) => {
|
|
137
|
-
r(p) === "claim" && h(R);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
s(c);
|
|
141
|
-
var C = d(c, 2), z = i(C);
|
|
142
|
-
let X;
|
|
143
|
-
var b = i(z, !0);
|
|
144
|
-
s(z);
|
|
145
|
-
var T = d(z, 2);
|
|
146
|
-
{
|
|
147
|
-
var L = (h) => {
|
|
148
|
-
var A = Oe();
|
|
149
|
-
g(h, A);
|
|
150
|
-
};
|
|
151
|
-
I(T, (h) => {
|
|
152
|
-
r(p) === "reject" && h(L);
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
s(C), s(m), s(t), W(
|
|
156
|
-
(h, A, Z) => {
|
|
157
|
-
v(u, h), c.disabled = !!r(p), _ = q(o, "", _, { opacity: r(p) === "claim" ? 0 : 1 }), v(f, A), C.disabled = !!r(p), X = q(z, "", X, { opacity: r(p) === "reject" ? 0 : 1 }), v(b, Z);
|
|
158
|
-
},
|
|
159
|
-
[
|
|
160
|
-
() => a()("areYouSure"),
|
|
161
|
-
() => a()("keepPrize"),
|
|
162
|
-
() => a()("rejectPrize")
|
|
163
|
-
]
|
|
164
|
-
), E("click", c, re), E("click", C, me), g(e, t);
|
|
165
|
-
};
|
|
166
|
-
I(ne, (e) => {
|
|
167
|
-
r(x) === "rejectModal" && e(he);
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
var oe = d(ne, 2), we = i(oe);
|
|
171
|
-
{
|
|
172
|
-
var be = (e) => {
|
|
173
|
-
var t = Je(), n = O(t), u = i(n, !0);
|
|
174
|
-
s(n);
|
|
175
|
-
var l = d(n, 2), m = i(l, !0);
|
|
176
|
-
s(l);
|
|
177
|
-
var c = d(l, 2), o = i(c), _ = i(o, !0);
|
|
178
|
-
s(o), s(c), W(
|
|
179
|
-
(f, F, R) => {
|
|
180
|
-
v(u, f), v(m, F), v(_, R);
|
|
181
|
-
},
|
|
182
|
-
[
|
|
183
|
-
() => a()("prizeAssignedTitle"),
|
|
184
|
-
() => a()("prizeAssigned"),
|
|
185
|
-
() => a()("backToGame")
|
|
186
|
-
]
|
|
187
|
-
), E("click", o, _e), g(e, t);
|
|
188
|
-
}, ge = (e) => {
|
|
189
|
-
var t = Xe(), n = O(t), u = i(n, !0);
|
|
190
|
-
s(n);
|
|
191
|
-
var l = d(n, 2), m = i(l, !0);
|
|
192
|
-
s(l);
|
|
193
|
-
var c = d(l, 2), o = i(c), _ = i(o, !0);
|
|
194
|
-
s(o), s(c), W(
|
|
195
|
-
(f, F, R) => {
|
|
196
|
-
v(u, f), v(m, F), v(_, R);
|
|
197
|
-
},
|
|
198
|
-
[
|
|
199
|
-
() => a()("drawFailedTitle"),
|
|
200
|
-
() => a()("drawFailed"),
|
|
201
|
-
() => a()("backToGame")
|
|
202
|
-
]
|
|
203
|
-
), E("click", o, V), g(e, t);
|
|
204
|
-
}, ye = (e) => {
|
|
205
|
-
var t = Ze(), n = O(t), u = i(n, !0);
|
|
206
|
-
s(n);
|
|
207
|
-
var l = d(n, 2), m = i(l, !0);
|
|
208
|
-
s(l);
|
|
209
|
-
var c = d(l, 2), o = i(c), _ = i(o, !0);
|
|
210
|
-
s(o), s(c), W(
|
|
211
|
-
(f, F, R) => {
|
|
212
|
-
v(u, f), v(m, F), o.disabled = !!r(p), v(_, R);
|
|
213
|
-
},
|
|
214
|
-
[
|
|
215
|
-
() => a()("noPrizeTitle"),
|
|
216
|
-
() => a()("noPrize"),
|
|
217
|
-
() => a()("spinAgain")
|
|
218
|
-
]
|
|
219
|
-
), E("click", o, V), g(e, t);
|
|
220
|
-
}, ke = (e) => {
|
|
221
|
-
var t = Ke(), n = O(t), u = i(n), l = d(u);
|
|
222
|
-
ze(l, 17, () => pe, Me, (b, T) => {
|
|
223
|
-
var L = qe();
|
|
224
|
-
W(() => {
|
|
225
|
-
var h, A, Z, le;
|
|
226
|
-
return q(L, `top:${(h = r(T).t) != null ? h : ""};left:${(A = r(T).l) != null ? A : ""};font-size:${(Z = r(T).s) != null ? Z : ""};animation-delay:${(le = r(T).d) != null ? le : ""}`);
|
|
227
|
-
}), g(b, L);
|
|
228
|
-
}), s(n);
|
|
229
|
-
var m = d(n, 2);
|
|
230
|
-
ce(
|
|
231
|
-
m,
|
|
232
|
-
() => a()("success", {
|
|
233
|
-
values: {
|
|
234
|
-
prize: ve[r(Q)],
|
|
235
|
-
form: ue.has(r(Q)) ? "plural" : "singular"
|
|
236
|
-
}
|
|
237
|
-
}),
|
|
238
|
-
!0
|
|
239
|
-
), s(m);
|
|
240
|
-
var c = d(m, 2), o = i(c), _ = i(o);
|
|
241
|
-
let f;
|
|
242
|
-
var F = i(_, !0);
|
|
243
|
-
s(_);
|
|
244
|
-
var R = d(_, 2);
|
|
245
|
-
{
|
|
246
|
-
var C = (b) => {
|
|
247
|
-
var T = He();
|
|
248
|
-
g(b, T);
|
|
249
|
-
};
|
|
250
|
-
I(R, (b) => {
|
|
251
|
-
r(p) === "claim" && b(C);
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
s(o);
|
|
255
|
-
var z = d(o, 2), X = i(z, !0);
|
|
256
|
-
s(z), s(c), W(
|
|
257
|
-
(b, T, L) => {
|
|
258
|
-
v(u, `${b != null ? b : ""} `), o.disabled = !!r(p), f = q(_, "", f, { opacity: r(p) === "claim" ? 0 : 1 }), v(F, T), z.disabled = !!r(p), v(X, L);
|
|
259
|
-
},
|
|
260
|
-
[
|
|
261
|
-
() => a()("congratulations"),
|
|
262
|
-
() => a()("claimReward"),
|
|
263
|
-
() => a()("reject")
|
|
264
|
-
]
|
|
265
|
-
), E("click", o, re), E("click", z, () => y(x, "rejectModal")), g(e, t);
|
|
266
|
-
}, xe = (e) => {
|
|
267
|
-
var t = Qe(), n = O(t), u = d(n, 2), l = i(u, !0);
|
|
268
|
-
s(u);
|
|
269
|
-
var m = d(u, 2), c = i(m), o = i(c, !0);
|
|
270
|
-
s(c), s(m), W(
|
|
271
|
-
(_, f) => {
|
|
272
|
-
je(n, "src", Ge), v(l, _), v(o, f);
|
|
273
|
-
},
|
|
274
|
-
[() => a()("errorJSON"), () => a()("backToGame")]
|
|
275
|
-
), E("click", c, V), g(e, t);
|
|
276
|
-
};
|
|
277
|
-
I(we, (e) => {
|
|
278
|
-
r(x) === "claimSuccess" ? e(be) : r(x) === "claimFailed" ? e(ge, 1) : r(ae) ? e(ye, 2) : r(te) ? e(xe, -1) : e(ke, 3);
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
s(oe), s(Y), g(H, Y);
|
|
282
|
-
var Te = Ee(fe);
|
|
283
|
-
return U(), Te;
|
|
284
|
-
}
|
|
285
|
-
Se(["click"]);
|
|
286
|
-
Fe(
|
|
287
|
-
Ye,
|
|
288
|
-
{
|
|
289
|
-
result: {},
|
|
290
|
-
endpoint: {},
|
|
291
|
-
session: {},
|
|
292
|
-
liteMode: {},
|
|
293
|
-
onFetchRemainingTimes: {}
|
|
294
|
-
},
|
|
295
|
-
[],
|
|
296
|
-
[],
|
|
297
|
-
{ mode: "open" }
|
|
298
|
-
);
|
|
299
|
-
export {
|
|
300
|
-
Ye as W
|
|
301
|
-
};
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
import { d as xe, c as ze, p as C, n as Te, i as D, b as h, f as g, q as se, s as v, r as O, l as R, e as Se, g as Re, m as Fe } from "./WheelOfFortuneWheel-BAR98ByP.js";
|
|
2
|
-
import { D as Me, S as re, Z as t, U as je, I as Pe, aO as Ae, aP as Ee, aM as H, aY as K, aD as L, aQ as We, aT as s, aS as d, aW as a, ar as w, ae as F, aN as B, aV as Ce } from "./utils-d-JrZBJu.js";
|
|
3
|
-
import { E as De } from "./error-DJgbe-Bh.js";
|
|
4
|
-
import { a as Le } from "./sparkles-CSfeD2Zu.js";
|
|
5
|
-
var Be = g('<span class="button-spinner"></span>'), Ge = g('<span class="button-spinner"></span>'), Ie = g('<div class="confirm-modal-content"><p class="confirm-modal-title"> </p> <p class="confirm-modal-body"></p> <div class="confirm-modal-actions"><button class="primary-cta"><span> </span> <!></button> <button class="secondary-cta"><span> </span> <!></button></div></div>'), Ne = g('<h2 class="draw-result-title"> </h2> <p class="draw-result-description"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>', 1), Oe = g('<h2 class="draw-result-title"> </h2> <p class="draw-result-description"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>', 1), Ue = g('<h2 class="draw-result-title"> </h2> <p class="draw-result-description"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>', 1), Je = g('<span class="draw-result-sparkle" aria-hidden="true">✦</span>'), Ye = g('<span class="button-spinner"></span>'), Ze = g('<h2 class="draw-result-title"> <!></h2> <p class="draw-result-description"></p> <div class="draw-result-actions"><button class="primary-cta"><span> </span> <!></button> <button class="secondary-cta"> </button></div>', 1), qe = g('<img alt="Error" class="draw-result-error-image"/> <p class="draw-result-description draw-result-description--error"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>', 1), He = g('<div class="draw-result-panel"><div class="draw-result-confetti-layer"></div> <!> <div class="draw-result-stack"><!></div></div>');
|
|
6
|
-
function Ke(ie, M) {
|
|
7
|
-
Me(M, !0);
|
|
8
|
-
const n = () => Ae(Ee, "$_", ne), [ne, oe] = We(), j = C(M, "result", 7), U = C(M, "endpoint", 7), G = C(M, "session", 7), J = C(M, "liteMode", 7, !1), E = C(M, "onFetchRemainingTimes", 7, () => {
|
|
9
|
-
}), Q = K(() => j()?.success !== !0), Y = K(() => j()?.type), V = K(() => t(Y) === "noprize"), le = /* @__PURE__ */ new Set(["loyalty"]), ce = {
|
|
10
|
-
bonus: n()("prizeBonus"),
|
|
11
|
-
role: n()("prizeRole"),
|
|
12
|
-
tournament: n()("prizeTournament"),
|
|
13
|
-
ticket: n()("prizeTicket"),
|
|
14
|
-
loyalty: n()("prizeLoyalty"),
|
|
15
|
-
challenge: n()("prizeChallenge"),
|
|
16
|
-
custom: n()("prizeCustom")
|
|
17
|
-
}, de = [
|
|
18
|
-
{ t: "-0.7em", l: "5%", s: "0.45em", d: "680ms" },
|
|
19
|
-
{ t: "-0.5em", l: "22%", s: "0.28em", d: "760ms" },
|
|
20
|
-
{ t: "-0.9em", l: "40%", s: "0.38em", d: "820ms" },
|
|
21
|
-
{ t: "-0.6em", l: "58%", s: "0.3em", d: "740ms" },
|
|
22
|
-
{ t: "-0.8em", l: "76%", s: "0.42em", d: "900ms" },
|
|
23
|
-
{ t: "-0.4em", l: "92%", s: "0.25em", d: "860ms" },
|
|
24
|
-
{ t: "0.1em", l: "14%", s: "0.22em", d: "800ms" },
|
|
25
|
-
{ t: "0em", l: "72%", s: "0.2em", d: "950ms" }
|
|
26
|
-
];
|
|
27
|
-
let I = H(void 0), b = H("initial"), p = H(null);
|
|
28
|
-
re(() => {
|
|
29
|
-
t(I) && t(b) === "claimSuccess" && !J() && Le(t(I));
|
|
30
|
-
}), re(() => {
|
|
31
|
-
(t(V) || t(Q)) && je(() => E()());
|
|
32
|
-
});
|
|
33
|
-
const X = (e) => {
|
|
34
|
-
const i = new URL(`${U()}/v1/wof/draw/${j().lotteryProgramID}`), r = new Headers();
|
|
35
|
-
G() && r.append("X-SessionId", G()), r.append("Content-Type", "application/json");
|
|
36
|
-
const u = { action: e, guid: j().guid };
|
|
37
|
-
return fetch(i, { method: "PUT", headers: r, body: JSON.stringify(u) }).then((l) => l.json());
|
|
38
|
-
}, $ = async () => {
|
|
39
|
-
w(p, "claim");
|
|
40
|
-
try {
|
|
41
|
-
const e = await X(0), i = Ce(e, "draw"), r = i?.state === "fulfilled" && i?.completed, u = i?.state === "drawn" && !i?.completed;
|
|
42
|
-
r ? w(b, "claimSuccess") : u ? w(b, "claimFailed") : w(b, "claimFailed");
|
|
43
|
-
} catch (e) {
|
|
44
|
-
console.log(e), w(b, "claimFailed");
|
|
45
|
-
} finally {
|
|
46
|
-
w(p, null), E()();
|
|
47
|
-
}
|
|
48
|
-
}, ue = async () => {
|
|
49
|
-
w(p, "reject"), w(b, "initial");
|
|
50
|
-
const e = E();
|
|
51
|
-
try {
|
|
52
|
-
window.postMessage({ type: "BackToWheel", skipFetch: !0 }, window.location.href), await X(2), e?.();
|
|
53
|
-
} catch (i) {
|
|
54
|
-
console.log(i);
|
|
55
|
-
} finally {
|
|
56
|
-
w(p, null);
|
|
57
|
-
}
|
|
58
|
-
}, ve = () => {
|
|
59
|
-
window.postMessage({ type: "BackToWheel" }, window.location.href);
|
|
60
|
-
}, Z = () => {
|
|
61
|
-
window.postMessage({ type: "SpinAgain" }, window.location.href);
|
|
62
|
-
};
|
|
63
|
-
var pe = {
|
|
64
|
-
get result() {
|
|
65
|
-
return j();
|
|
66
|
-
},
|
|
67
|
-
set result(e) {
|
|
68
|
-
j(e), L();
|
|
69
|
-
},
|
|
70
|
-
get endpoint() {
|
|
71
|
-
return U();
|
|
72
|
-
},
|
|
73
|
-
set endpoint(e) {
|
|
74
|
-
U(e), L();
|
|
75
|
-
},
|
|
76
|
-
get session() {
|
|
77
|
-
return G();
|
|
78
|
-
},
|
|
79
|
-
set session(e) {
|
|
80
|
-
G(e), L();
|
|
81
|
-
},
|
|
82
|
-
get liteMode() {
|
|
83
|
-
return J();
|
|
84
|
-
},
|
|
85
|
-
set liteMode(e = !1) {
|
|
86
|
-
J(e), L();
|
|
87
|
-
},
|
|
88
|
-
get onFetchRemainingTimes() {
|
|
89
|
-
return E();
|
|
90
|
-
},
|
|
91
|
-
set onFetchRemainingTimes(e = () => {
|
|
92
|
-
}) {
|
|
93
|
-
E(e), L();
|
|
94
|
-
}
|
|
95
|
-
}, q = He(), ee = s(q);
|
|
96
|
-
Te(ee, (e) => w(I, e), () => t(I));
|
|
97
|
-
var ae = d(ee, 2);
|
|
98
|
-
{
|
|
99
|
-
var me = (e) => {
|
|
100
|
-
var i = Ie(), r = s(i), u = s(r, !0);
|
|
101
|
-
a(r);
|
|
102
|
-
var l = d(r, 2);
|
|
103
|
-
se(l, () => n()("rejectWarningText"), !0), a(l);
|
|
104
|
-
var m = d(l, 2), c = s(m), o = s(c);
|
|
105
|
-
let _;
|
|
106
|
-
var f = s(o, !0);
|
|
107
|
-
a(o);
|
|
108
|
-
var k = d(o, 2);
|
|
109
|
-
{
|
|
110
|
-
var x = (S) => {
|
|
111
|
-
var W = Be();
|
|
112
|
-
h(S, W);
|
|
113
|
-
};
|
|
114
|
-
D(k, (S) => {
|
|
115
|
-
t(p) === "claim" && S(x);
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
a(c);
|
|
119
|
-
var P = d(c, 2), z = s(P);
|
|
120
|
-
let N;
|
|
121
|
-
var T = s(z, !0);
|
|
122
|
-
a(z);
|
|
123
|
-
var y = d(z, 2);
|
|
124
|
-
{
|
|
125
|
-
var A = (S) => {
|
|
126
|
-
var W = Ge();
|
|
127
|
-
h(S, W);
|
|
128
|
-
};
|
|
129
|
-
D(y, (S) => {
|
|
130
|
-
t(p) === "reject" && S(A);
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
a(P), a(m), a(i), F(
|
|
134
|
-
(S, W, ke) => {
|
|
135
|
-
v(u, S), c.disabled = !!t(p), _ = O(o, "", _, { opacity: t(p) === "claim" ? 0 : 1 }), v(f, W), P.disabled = !!t(p), N = O(z, "", N, { opacity: t(p) === "reject" ? 0 : 1 }), v(T, ke);
|
|
136
|
-
},
|
|
137
|
-
[
|
|
138
|
-
() => n()("areYouSure"),
|
|
139
|
-
() => n()("keepPrize"),
|
|
140
|
-
() => n()("rejectPrize")
|
|
141
|
-
]
|
|
142
|
-
), R("click", c, $), R("click", P, ue), h(e, i);
|
|
143
|
-
};
|
|
144
|
-
D(ae, (e) => {
|
|
145
|
-
t(b) === "rejectModal" && e(me);
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
var te = d(ae, 2), _e = s(te);
|
|
149
|
-
{
|
|
150
|
-
var fe = (e) => {
|
|
151
|
-
var i = Ne(), r = B(i), u = s(r, !0);
|
|
152
|
-
a(r);
|
|
153
|
-
var l = d(r, 2), m = s(l, !0);
|
|
154
|
-
a(l);
|
|
155
|
-
var c = d(l, 2), o = s(c), _ = s(o, !0);
|
|
156
|
-
a(o), a(c), F(
|
|
157
|
-
(f, k, x) => {
|
|
158
|
-
v(u, f), v(m, k), v(_, x);
|
|
159
|
-
},
|
|
160
|
-
[
|
|
161
|
-
() => n()("prizeAssignedTitle"),
|
|
162
|
-
() => n()("prizeAssigned"),
|
|
163
|
-
() => n()("backToGame")
|
|
164
|
-
]
|
|
165
|
-
), R("click", o, ve), h(e, i);
|
|
166
|
-
}, he = (e) => {
|
|
167
|
-
var i = Oe(), r = B(i), u = s(r, !0);
|
|
168
|
-
a(r);
|
|
169
|
-
var l = d(r, 2), m = s(l, !0);
|
|
170
|
-
a(l);
|
|
171
|
-
var c = d(l, 2), o = s(c), _ = s(o, !0);
|
|
172
|
-
a(o), a(c), F(
|
|
173
|
-
(f, k, x) => {
|
|
174
|
-
v(u, f), v(m, k), v(_, x);
|
|
175
|
-
},
|
|
176
|
-
[
|
|
177
|
-
() => n()("drawFailedTitle"),
|
|
178
|
-
() => n()("drawFailed"),
|
|
179
|
-
() => n()("backToGame")
|
|
180
|
-
]
|
|
181
|
-
), R("click", o, Z), h(e, i);
|
|
182
|
-
}, we = (e) => {
|
|
183
|
-
var i = Ue(), r = B(i), u = s(r, !0);
|
|
184
|
-
a(r);
|
|
185
|
-
var l = d(r, 2), m = s(l, !0);
|
|
186
|
-
a(l);
|
|
187
|
-
var c = d(l, 2), o = s(c), _ = s(o, !0);
|
|
188
|
-
a(o), a(c), F(
|
|
189
|
-
(f, k, x) => {
|
|
190
|
-
v(u, f), v(m, k), o.disabled = !!t(p), v(_, x);
|
|
191
|
-
},
|
|
192
|
-
[
|
|
193
|
-
() => n()("noPrizeTitle"),
|
|
194
|
-
() => n()("noPrize"),
|
|
195
|
-
() => n()("spinAgain")
|
|
196
|
-
]
|
|
197
|
-
), R("click", o, Z), h(e, i);
|
|
198
|
-
}, ge = (e) => {
|
|
199
|
-
var i = Ze(), r = B(i), u = s(r), l = d(u);
|
|
200
|
-
Se(l, 17, () => de, Re, (T, y) => {
|
|
201
|
-
var A = Je();
|
|
202
|
-
F(() => O(A, `top:${t(y).t ?? ""};left:${t(y).l ?? ""};font-size:${t(y).s ?? ""};animation-delay:${t(y).d ?? ""}`)), h(T, A);
|
|
203
|
-
}), a(r);
|
|
204
|
-
var m = d(r, 2);
|
|
205
|
-
se(
|
|
206
|
-
m,
|
|
207
|
-
() => n()("success", {
|
|
208
|
-
values: {
|
|
209
|
-
prize: ce[t(Y)],
|
|
210
|
-
form: le.has(t(Y)) ? "plural" : "singular"
|
|
211
|
-
}
|
|
212
|
-
}),
|
|
213
|
-
!0
|
|
214
|
-
), a(m);
|
|
215
|
-
var c = d(m, 2), o = s(c), _ = s(o);
|
|
216
|
-
let f;
|
|
217
|
-
var k = s(_, !0);
|
|
218
|
-
a(_);
|
|
219
|
-
var x = d(_, 2);
|
|
220
|
-
{
|
|
221
|
-
var P = (T) => {
|
|
222
|
-
var y = Ye();
|
|
223
|
-
h(T, y);
|
|
224
|
-
};
|
|
225
|
-
D(x, (T) => {
|
|
226
|
-
t(p) === "claim" && T(P);
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
a(o);
|
|
230
|
-
var z = d(o, 2), N = s(z, !0);
|
|
231
|
-
a(z), a(c), F(
|
|
232
|
-
(T, y, A) => {
|
|
233
|
-
v(u, `${T ?? ""} `), o.disabled = !!t(p), f = O(_, "", f, { opacity: t(p) === "claim" ? 0 : 1 }), v(k, y), z.disabled = !!t(p), v(N, A);
|
|
234
|
-
},
|
|
235
|
-
[
|
|
236
|
-
() => n()("congratulations"),
|
|
237
|
-
() => n()("claimReward"),
|
|
238
|
-
() => n()("reject")
|
|
239
|
-
]
|
|
240
|
-
), R("click", o, $), R("click", z, () => w(b, "rejectModal")), h(e, i);
|
|
241
|
-
}, be = (e) => {
|
|
242
|
-
var i = qe(), r = B(i), u = d(r, 2), l = s(u, !0);
|
|
243
|
-
a(u);
|
|
244
|
-
var m = d(u, 2), c = s(m), o = s(c, !0);
|
|
245
|
-
a(c), a(m), F(
|
|
246
|
-
(_, f) => {
|
|
247
|
-
Fe(r, "src", De), v(l, _), v(o, f);
|
|
248
|
-
},
|
|
249
|
-
[() => n()("errorJSON"), () => n()("backToGame")]
|
|
250
|
-
), R("click", c, Z), h(e, i);
|
|
251
|
-
};
|
|
252
|
-
D(_e, (e) => {
|
|
253
|
-
t(b) === "claimSuccess" ? e(fe) : t(b) === "claimFailed" ? e(he, 1) : t(V) ? e(we, 2) : t(Q) ? e(be, -1) : e(ge, 3);
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
a(te), a(q), h(ie, q);
|
|
257
|
-
var ye = Pe(pe);
|
|
258
|
-
return oe(), ye;
|
|
259
|
-
}
|
|
260
|
-
xe(["click"]);
|
|
261
|
-
ze(
|
|
262
|
-
Ke,
|
|
263
|
-
{
|
|
264
|
-
result: {},
|
|
265
|
-
endpoint: {},
|
|
266
|
-
session: {},
|
|
267
|
-
liteMode: {},
|
|
268
|
-
onFetchRemainingTimes: {}
|
|
269
|
-
},
|
|
270
|
-
[],
|
|
271
|
-
[],
|
|
272
|
-
{ mode: "open" }
|
|
273
|
-
);
|
|
274
|
-
export {
|
|
275
|
-
Ke as W
|
|
276
|
-
};
|