@everymatrix/mini-games-hub 0.1.13 → 0.1.15
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-BjME_rom.cjs +16 -0
- package/components/{MiniGamesHub-D3BazHMT.js → MiniGamesHub-Bn-xvO1e.js} +419 -743
- package/components/MiniGamesHub-BpjzFxHO.cjs +16 -0
- package/components/MiniGamesHub-BtC6TmtK.cjs +16 -0
- 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-CktxKKTj.cjs +16 -0
- package/components/MiniGamesHub-CrPltGGl.js +1042 -0
- package/components/MiniGamesHub-D2Eet3pe.js +1048 -0
- package/components/{MiniGamesHub-Cu8_8yFl.js → MiniGamesHub-DCCeYwnc.js} +416 -760
- 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-BlHeZ0q7.cjs → WheelOfFortune-BC0wwnC-.cjs} +8 -23
- package/components/{WheelOfFortune-CnaDpfpq.js → WheelOfFortune-BYxOqBjA.js} +151 -177
- 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-Lfc_l9kc.js → WheelOfFortune-DawF7WTd.js} +180 -231
- 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-SjsgF4e2.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
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { d as Se, c as Ze, a as je, p as ne, o as He, i as R, b as v, f as C, s as le, e as ve, g as de, h as d, j as ue, k as K, l as Ae, m as pe } from "./WheelOfFortuneWheel-DUE4gyGP.js";
|
|
2
|
+
import { aM as q, aC as Fe, ah as I, L as We, aO as De, aQ as Oe, aG as ce, G as Ne, aP as Qe, aT as s, a0 as e, aW as a, au as S, aV as Ue, aN as J, aS as o, b0 as Ve, b2 as we, aY as fe } from "./utils-DEov6Qk_.js";
|
|
3
|
+
var Xe = C('<div class="game-history-item history-grid history-skeleton-row svelte-1rfwd7v" aria-hidden="true"><p class="svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v"></span></p> <p class="svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--name svelte-1rfwd7v"> </span></p> <div class="date-time-cell svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-1rfwd7v">00:00:00</span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div></div>'), Ye = C('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!>', 1), $e = K('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'), qe = K('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'), Je = K('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'), Ke = K('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'), et = C('<div class="game-history-item history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <div class="date-time-cell svelte-1rfwd7v"><span class="svelte-1rfwd7v"> </span> <span class="svelte-1rfwd7v"> </span></div> <div class="history-icon svelte-1rfwd7v"><!></div> <div class="history-icon svelte-1rfwd7v"><!></div></div>'), tt = C('<span class="pagination-ellipsis svelte-1rfwd7v">…</span>'), at = C("<button> </button>"), st = C('<div class="game-history-pagination svelte-1rfwd7v"><button class="pagination-button pagination-nav svelte-1rfwd7v">‹</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">›</button></div>'), rt = C('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!> <!>', 1), ot = C('<h2 class="no-history svelte-1rfwd7v"> </h2>'), it = C('<div class="history-list svelte-1rfwd7v"><!></div>');
|
|
4
|
+
const nt = {
|
|
5
|
+
hash: "svelte-1rfwd7v",
|
|
6
|
+
code: ` *,
|
|
7
|
+
*::before,
|
|
8
|
+
*::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .history-list {display:flex;flex-direction:column;gap:6px;width:100%;max-width:700px;margin:0 auto;} .history-grid {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;} .date-time-cell {display:flex;flex-direction:column;gap:2px;} .date-time-cell span:last-child {opacity:0.6;font-size:10px;} .game-history-item {width:100%;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);font-size:12px;} .game-history-header {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;} .history-icon {display:flex;align-items:center;justify-content:center;} .no-history {width:100%;font-size:14px;font-weight:400;margin-top:12px;} .game-history-pagination {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;} .pagination-pages {display:flex;align-items:center;gap:4px;} .pagination-ellipsis {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;} .pagination-button {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;} .pagination-button:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));} .pagination-button:disabled {opacity:0.4;cursor:not-allowed;} .pagination-page {min-width:32px;text-align:center;padding:6px 8px;} .pagination-nav {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;} .pagination-page.active {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
|
|
9
|
+
@keyframes svelte-1rfwd7v-skeleton-pulse {
|
|
10
|
+
0%, 100% {
|
|
11
|
+
opacity: 0.3;
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
opacity: 0.6;
|
|
15
|
+
}
|
|
16
|
+
} .history-skeleton-row {pointer-events:none;
|
|
17
|
+
animation: svelte-1rfwd7v-skeleton-pulse 1.4s ease-in-out infinite;} .history-skeleton-bar {display:inline-block;max-width:100%;border-radius:4px;background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));color:transparent;user-select:none;} .history-skeleton-bar--name {width:70%;} .history-skeleton-bar--icon {width:12px;height:12px;}`
|
|
18
|
+
};
|
|
19
|
+
function lt(ge, W) {
|
|
20
|
+
Ne(W, !0), je(ge, nt);
|
|
21
|
+
const r = () => De(Qe, "$_", xe), [xe, me] = Oe(), ee = ne(W, "programId", 7), te = ne(W, "endpoint", 7), D = ne(W, "session", 7);
|
|
22
|
+
let O = q(!0), w = q(Fe([])), _e = q(!1);
|
|
23
|
+
const Z = 10;
|
|
24
|
+
let f = q(1);
|
|
25
|
+
const N = fe(() => e(w) && e(w).length > 0 ? Math.ceil(e(w).length / Z) : 1), ye = fe(() => e(w) && e(w).length > 0 ? e(w).slice((e(f) - 1) * Z, e(f) * Z) : []), be = {
|
|
26
|
+
bonus: r()("prizeBonus"),
|
|
27
|
+
role: r()("prizeRole"),
|
|
28
|
+
tournament: r()("prizeTournament"),
|
|
29
|
+
ticket: r()("prizeTicket"),
|
|
30
|
+
loyalty: r()("prizeLoyalty"),
|
|
31
|
+
challenge: r()("prizeChallenge"),
|
|
32
|
+
noprize: r()("noWin"),
|
|
33
|
+
custom: r()("prizeCustom")
|
|
34
|
+
}, Ce = fe(() => {
|
|
35
|
+
const t = e(N);
|
|
36
|
+
if (t <= 5)
|
|
37
|
+
return Array.from({ length: t }, (n, h) => h + 1);
|
|
38
|
+
const i = [], g = e(f);
|
|
39
|
+
i.push(1), g > 3 && i.push("...");
|
|
40
|
+
const p = Math.max(2, g - 1), L = Math.min(t - 1, g + 1);
|
|
41
|
+
for (let n = p; n <= L; n++)
|
|
42
|
+
i.push(n);
|
|
43
|
+
return g < t - 2 && i.push("..."), t > 1 && i.push(t), i;
|
|
44
|
+
}), ae = (t) => {
|
|
45
|
+
t < 1 || t > e(N) || (S(f, t, !0), window.scrollTo({ top: 0, behavior: "smooth" }));
|
|
46
|
+
}, ke = () => {
|
|
47
|
+
S(O, !0);
|
|
48
|
+
const t = new URL(`${te()}/v1/wof/outcome/${ee()}`), i = new Headers();
|
|
49
|
+
D() && i.append("X-SessionId", D()), fetch(t, { method: "GET", headers: i, cache: "no-store" }).then((p) => p.json()).then((p) => {
|
|
50
|
+
S(w, p?.items.map((L) => Ue(L, "history")), !0), S(f, 1);
|
|
51
|
+
}).catch((p) => {
|
|
52
|
+
console.log(p), S(_e, !0);
|
|
53
|
+
}).finally(() => S(O, !1));
|
|
54
|
+
};
|
|
55
|
+
He(() => {
|
|
56
|
+
ke();
|
|
57
|
+
});
|
|
58
|
+
var Le = {
|
|
59
|
+
get programId() {
|
|
60
|
+
return ee();
|
|
61
|
+
},
|
|
62
|
+
set programId(t) {
|
|
63
|
+
ee(t), ce();
|
|
64
|
+
},
|
|
65
|
+
get endpoint() {
|
|
66
|
+
return te();
|
|
67
|
+
},
|
|
68
|
+
set endpoint(t) {
|
|
69
|
+
te(t), ce();
|
|
70
|
+
},
|
|
71
|
+
get session() {
|
|
72
|
+
return D();
|
|
73
|
+
},
|
|
74
|
+
set session(t) {
|
|
75
|
+
D(t), ce();
|
|
76
|
+
}
|
|
77
|
+
}, Q = it(), ze = s(Q);
|
|
78
|
+
{
|
|
79
|
+
var Me = (t) => {
|
|
80
|
+
var i = Ye(), g = J(i), p = o(s(g), 2), L = s(p, !0);
|
|
81
|
+
a(p);
|
|
82
|
+
var n = o(p, 2), h = s(n, !0);
|
|
83
|
+
a(n);
|
|
84
|
+
var x = o(n, 2), z = s(x, !0);
|
|
85
|
+
a(x);
|
|
86
|
+
var U = o(x, 2), j = s(U, !0);
|
|
87
|
+
a(U), a(g);
|
|
88
|
+
var se = o(g, 2);
|
|
89
|
+
ve(se, 17, () => Array(Z), de, (M, V, T, X) => {
|
|
90
|
+
var G = Xe(), Y = s(G), re = s(Y);
|
|
91
|
+
re.textContent = `${T + 1}.`, a(Y), Ve(8), a(G), v(M, G);
|
|
92
|
+
}), I(
|
|
93
|
+
(M, V, T, X) => {
|
|
94
|
+
d(L, M), d(h, V), d(z, T), d(j, X);
|
|
95
|
+
},
|
|
96
|
+
[
|
|
97
|
+
() => r()("name"),
|
|
98
|
+
() => r()("date"),
|
|
99
|
+
() => r()("spin"),
|
|
100
|
+
() => r()("assigned")
|
|
101
|
+
]
|
|
102
|
+
), v(t, i);
|
|
103
|
+
}, Be = (t) => {
|
|
104
|
+
var i = ue(), g = J(i);
|
|
105
|
+
{
|
|
106
|
+
var p = (n) => {
|
|
107
|
+
var h = rt(), x = J(h), z = o(s(x), 2), U = s(z, !0);
|
|
108
|
+
a(z);
|
|
109
|
+
var j = o(z, 2), se = s(j, !0);
|
|
110
|
+
a(j);
|
|
111
|
+
var M = o(j, 2), V = s(M, !0);
|
|
112
|
+
a(M);
|
|
113
|
+
var T = o(M, 2), X = s(T, !0);
|
|
114
|
+
a(T), a(x);
|
|
115
|
+
var G = o(x, 2);
|
|
116
|
+
ve(G, 17, () => e(ye), de, (B, c, k) => {
|
|
117
|
+
var m = et(), E = s(m), H = s(E);
|
|
118
|
+
a(E);
|
|
119
|
+
var u = o(E, 2), $ = s(u, !0);
|
|
120
|
+
a(u);
|
|
121
|
+
var A = o(u, 2), F = s(A), oe = s(F, !0);
|
|
122
|
+
a(F);
|
|
123
|
+
var _ = o(F, 2), y = s(_, !0);
|
|
124
|
+
a(_), a(A);
|
|
125
|
+
var P = o(A, 2), ie = s(P);
|
|
126
|
+
{
|
|
127
|
+
var Ie = (l) => {
|
|
128
|
+
var b = $e();
|
|
129
|
+
v(l, b);
|
|
130
|
+
}, Te = (l) => {
|
|
131
|
+
var b = qe();
|
|
132
|
+
v(l, b);
|
|
133
|
+
};
|
|
134
|
+
R(ie, (l) => {
|
|
135
|
+
e(c).state === "drawn" || e(c).state === "fulfilled" ? l(Ie) : l(Te, -1);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
a(P);
|
|
139
|
+
var he = o(P, 2), Ge = s(he);
|
|
140
|
+
{
|
|
141
|
+
var Pe = (l) => {
|
|
142
|
+
var b = Je();
|
|
143
|
+
v(l, b);
|
|
144
|
+
}, Re = (l) => {
|
|
145
|
+
var b = Ke();
|
|
146
|
+
v(l, b);
|
|
147
|
+
};
|
|
148
|
+
R(Ge, (l) => {
|
|
149
|
+
e(c).completed && e(c).state === "fulfilled" ? l(Pe) : l(Re, -1);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
a(he), a(m), I(
|
|
153
|
+
(l, b) => {
|
|
154
|
+
d(H, `${(e(f) - 1) * Z + k + 1}.`), d($, be[e(c).type] || "-"), d(oe, l), d(y, b);
|
|
155
|
+
},
|
|
156
|
+
[
|
|
157
|
+
() => we(e(c).time).date,
|
|
158
|
+
() => we(e(c).time).time
|
|
159
|
+
]
|
|
160
|
+
), v(B, m);
|
|
161
|
+
});
|
|
162
|
+
var Y = o(G, 2);
|
|
163
|
+
{
|
|
164
|
+
var re = (B) => {
|
|
165
|
+
var c = st(), k = s(c), m = o(k, 2);
|
|
166
|
+
ve(m, 21, () => e(Ce), de, (H, u) => {
|
|
167
|
+
var $ = ue(), A = J($);
|
|
168
|
+
{
|
|
169
|
+
var F = (_) => {
|
|
170
|
+
var y = tt();
|
|
171
|
+
v(_, y);
|
|
172
|
+
}, oe = (_) => {
|
|
173
|
+
var y = at();
|
|
174
|
+
let P;
|
|
175
|
+
var ie = s(y, !0);
|
|
176
|
+
a(y), I(() => {
|
|
177
|
+
P = Ae(y, 1, "pagination-button pagination-page svelte-1rfwd7v", null, P, { active: e(f) === e(u) }), d(ie, e(u));
|
|
178
|
+
}), pe("click", y, () => ae(e(u))), v(_, y);
|
|
179
|
+
};
|
|
180
|
+
R(A, (_) => {
|
|
181
|
+
e(u) === "..." ? _(F) : _(oe, -1);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
v(H, $);
|
|
185
|
+
}), a(m);
|
|
186
|
+
var E = o(m, 2);
|
|
187
|
+
a(c), I(
|
|
188
|
+
(H, u) => {
|
|
189
|
+
k.disabled = e(f) === 1, le(k, "aria-label", H), E.disabled = e(f) === e(N), le(E, "aria-label", u);
|
|
190
|
+
},
|
|
191
|
+
[() => r()("previous"), () => r()("next")]
|
|
192
|
+
), pe("click", k, () => ae(e(f) - 1)), pe("click", E, () => ae(e(f) + 1)), v(B, c);
|
|
193
|
+
};
|
|
194
|
+
R(Y, (B) => {
|
|
195
|
+
e(N) > 1 && B(re);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
I(
|
|
199
|
+
(B, c, k, m) => {
|
|
200
|
+
d(U, B), d(se, c), d(V, k), d(X, m);
|
|
201
|
+
},
|
|
202
|
+
[
|
|
203
|
+
() => r()("name"),
|
|
204
|
+
() => r()("date"),
|
|
205
|
+
() => r()("spin"),
|
|
206
|
+
() => r()("assigned")
|
|
207
|
+
]
|
|
208
|
+
), v(n, h);
|
|
209
|
+
}, L = (n) => {
|
|
210
|
+
var h = ot(), x = s(h, !0);
|
|
211
|
+
a(h), I((z) => d(x, z), [() => r()("noHistory")]), v(n, h);
|
|
212
|
+
};
|
|
213
|
+
R(g, (n) => {
|
|
214
|
+
e(w) && e(w).length > 0 ? n(p) : n(L, -1);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
v(t, i);
|
|
218
|
+
};
|
|
219
|
+
R(ze, (t) => {
|
|
220
|
+
e(O) ? t(Me) : t(Be, -1);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
a(Q), I(() => le(Q, "aria-busy", e(O))), v(ge, Q);
|
|
224
|
+
var Ee = We(Le);
|
|
225
|
+
return me(), Ee;
|
|
226
|
+
}
|
|
227
|
+
Se(["click"]);
|
|
228
|
+
Ze(lt, { programId: {}, endpoint: {}, session: {} }, [], [], { mode: "open" });
|
|
229
|
+
export {
|
|
230
|
+
lt as G
|
|
231
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-BQFaJ7ZB.cjs"),e=require("./utils-fG_nzyoc.cjs");var _e=t.from_html('<div class="game-history-item history-grid history-skeleton-row svelte-1rfwd7v" aria-hidden="true"><p class="svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v"></span></p> <p class="svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--name svelte-1rfwd7v"> </span></p> <div class="date-time-cell svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-1rfwd7v">00:00:00</span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div></div>'),ue=t.from_html('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!>',1),me=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'),xe=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'),we=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'),be=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'),ye=t.from_html('<div class="game-history-item history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <div class="date-time-cell svelte-1rfwd7v"><span class="svelte-1rfwd7v"> </span> <span class="svelte-1rfwd7v"> </span></div> <div class="history-icon svelte-1rfwd7v"><!></div> <div class="history-icon svelte-1rfwd7v"><!></div></div>'),Ce=t.from_html('<span class="pagination-ellipsis svelte-1rfwd7v">…</span>'),ke=t.from_html("<button> </button>"),Le=t.from_html('<div class="game-history-pagination svelte-1rfwd7v"><button class="pagination-button pagination-nav svelte-1rfwd7v">‹</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">›</button></div>'),ze=t.from_html('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!> <!>',1),Me=t.from_html('<h2 class="no-history svelte-1rfwd7v"> </h2>'),Be=t.from_html('<div class="history-list svelte-1rfwd7v"><!></div>');const Ee={hash:"svelte-1rfwd7v",code:` *,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .history-list {display:flex;flex-direction:column;gap:6px;width:100%;max-width:700px;margin:0 auto;} .history-grid {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;} .date-time-cell {display:flex;flex-direction:column;gap:2px;} .date-time-cell span:last-child {opacity:0.6;font-size:10px;} .game-history-item {width:100%;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);font-size:12px;} .game-history-header {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;} .history-icon {display:flex;align-items:center;justify-content:center;} .no-history {width:100%;font-size:14px;font-weight:400;margin-top:12px;} .game-history-pagination {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;} .pagination-pages {display:flex;align-items:center;gap:4px;} .pagination-ellipsis {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;} .pagination-button {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;} .pagination-button:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));} .pagination-button:disabled {opacity:0.4;cursor:not-allowed;} .pagination-page {min-width:32px;text-align:center;padding:6px 8px;} .pagination-nav {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;} .pagination-page.active {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
|
|
4
|
+
@keyframes svelte-1rfwd7v-skeleton-pulse {
|
|
5
|
+
0%, 100% {
|
|
6
|
+
opacity: 0.3;
|
|
7
|
+
}
|
|
8
|
+
50% {
|
|
9
|
+
opacity: 0.6;
|
|
10
|
+
}
|
|
11
|
+
} .history-skeleton-row {pointer-events:none;
|
|
12
|
+
animation: svelte-1rfwd7v-skeleton-pulse 1.4s ease-in-out infinite;} .history-skeleton-bar {display:inline-block;max-width:100%;border-radius:4px;background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));color:transparent;user-select:none;} .history-skeleton-bar--name {width:70%;} .history-skeleton-bar--icon {width:12px;height:12px;}`};function V(N,S){e.push(S,!0),t.append_styles(N,Ee);const r=()=>e.store_get(e.$format,"$_",Y),[Y,ee]=e.setup_stores(),q=t.prop(S,"programId",7),O=t.prop(S,"endpoint",7),F=t.prop(S,"session",7);let P=e.state(!0),f=e.state(e.proxy([])),te=e.state(!1);const B=10;let d=e.state(1);const R=e.user_derived(()=>e.get(f)&&e.get(f).length>0?Math.ceil(e.get(f).length/B):1),se=e.user_derived(()=>e.get(f)&&e.get(f).length>0?e.get(f).slice((e.get(d)-1)*B,e.get(d)*B):[]),re={bonus:r()("prizeBonus"),role:r()("prizeRole"),tournament:r()("prizeTournament"),ticket:r()("prizeTicket"),loyalty:r()("prizeLoyalty"),challenge:r()("prizeChallenge"),noprize:r()("noWin"),custom:r()("prizeCustom")},ae=e.user_derived(()=>{const s=e.get(R);if(s<=5)return Array.from({length:s},(i,p)=>p+1);const a=[],v=e.get(d);a.push(1),v>3&&a.push("...");const l=Math.max(2,v-1),w=Math.min(s-1,v+1);for(let i=l;i<=w;i++)a.push(i);return v<s-2&&a.push("..."),s>1&&a.push(s),a}),U=s=>{s<1||s>e.get(R)||(e.set(d,s,!0),window.scrollTo({top:0,behavior:"smooth"}))},ie=()=>{e.set(P,!0);const s=new URL(`${O()}/v1/wof/outcome/${q()}`),a=new Headers;F()&&a.append("X-SessionId",F()),fetch(s,{method:"GET",headers:a,cache:"no-store"}).then(l=>l.json()).then(l=>{e.set(f,l?.items.map(w=>e.normalizeDrawResult(w,"history")),!0),e.set(d,1)}).catch(l=>{console.log(l),e.set(te,!0)}).finally(()=>e.set(P,!1))};t.onMount(()=>{ie()});var oe={get programId(){return q()},set programId(s){q(s),e.flushSync()},get endpoint(){return O()},set endpoint(s){O(s),e.flushSync()},get session(){return F()},set session(s){F(s),e.flushSync()}},Z=Be(),le=e.child(Z);{var ne=s=>{var a=ue(),v=e.first_child(a),l=e.sibling(e.child(v),2),w=e.child(l,!0);e.reset(l);var i=e.sibling(l,2),p=e.child(i,!0);e.reset(i);var g=e.sibling(i,2),b=e.child(g,!0);e.reset(g);var G=e.sibling(g,2),E=e.child(G,!0);e.reset(G),e.reset(v);var X=e.sibling(v,2);t.each(X,17,()=>Array(B),t.index,(y,W,L,j)=>{var z=_e(),A=e.child(z),$=e.child(A);$.textContent=`${L+1}.`,e.reset(A),e.next(8),e.reset(z),t.append(y,z)}),e.template_effect((y,W,L,j)=>{t.set_text(w,y),t.set_text(p,W),t.set_text(b,L),t.set_text(E,j)},[()=>r()("name"),()=>r()("date"),()=>r()("spin"),()=>r()("assigned")]),t.append(s,a)},de=s=>{var a=t.comment(),v=e.first_child(a);{var l=i=>{var p=ze(),g=e.first_child(p),b=e.sibling(e.child(g),2),G=e.child(b,!0);e.reset(b);var E=e.sibling(b,2),X=e.child(E,!0);e.reset(E);var y=e.sibling(E,2),W=e.child(y,!0);e.reset(y);var L=e.sibling(y,2),j=e.child(L,!0);e.reset(L),e.reset(g);var z=e.sibling(g,2);t.each(z,17,()=>e.get(se),t.index,(C,n,x)=>{var h=ye(),k=e.child(h),I=e.child(k);e.reset(k);var c=e.sibling(k,2),D=e.child(c,!0);e.reset(c);var T=e.sibling(c,2),H=e.child(T),J=e.child(H,!0);e.reset(H);var _=e.sibling(H,2),u=e.child(_,!0);e.reset(_),e.reset(T);var M=e.sibling(T,2),K=e.child(M);{var pe=o=>{var m=me();t.append(o,m)},ce=o=>{var m=xe();t.append(o,m)};t.if_block(K,o=>{e.get(n).state==="drawn"||e.get(n).state==="fulfilled"?o(pe):o(ce,-1)})}e.reset(M);var Q=e.sibling(M,2),fe=e.child(Q);{var ge=o=>{var m=we();t.append(o,m)},he=o=>{var m=be();t.append(o,m)};t.if_block(fe,o=>{e.get(n).completed&&e.get(n).state==="fulfilled"?o(ge):o(he,-1)})}e.reset(Q),e.reset(h),e.template_effect((o,m)=>{t.set_text(I,`${(e.get(d)-1)*B+x+1}.`),t.set_text(D,re[e.get(n).type]||"-"),t.set_text(J,o),t.set_text(u,m)},[()=>e.formatDateTimeForHistory(e.get(n).time).date,()=>e.formatDateTimeForHistory(e.get(n).time).time]),t.append(C,h)});var A=e.sibling(z,2);{var $=C=>{var n=Le(),x=e.child(n),h=e.sibling(x,2);t.each(h,21,()=>e.get(ae),t.index,(I,c)=>{var D=t.comment(),T=e.first_child(D);{var H=_=>{var u=Ce();t.append(_,u)},J=_=>{var u=ke();let M;var K=e.child(u,!0);e.reset(u),e.template_effect(()=>{M=t.set_class(u,1,"pagination-button pagination-page svelte-1rfwd7v",null,M,{active:e.get(d)===e.get(c)}),t.set_text(K,e.get(c))}),t.delegated("click",u,()=>U(e.get(c))),t.append(_,u)};t.if_block(T,_=>{e.get(c)==="..."?_(H):_(J,-1)})}t.append(I,D)}),e.reset(h);var k=e.sibling(h,2);e.reset(n),e.template_effect((I,c)=>{x.disabled=e.get(d)===1,t.set_attribute(x,"aria-label",I),k.disabled=e.get(d)===e.get(R),t.set_attribute(k,"aria-label",c)},[()=>r()("previous"),()=>r()("next")]),t.delegated("click",x,()=>U(e.get(d)-1)),t.delegated("click",k,()=>U(e.get(d)+1)),t.append(C,n)};t.if_block(A,C=>{e.get(R)>1&&C($)})}e.template_effect((C,n,x,h)=>{t.set_text(G,C),t.set_text(X,n),t.set_text(W,x),t.set_text(j,h)},[()=>r()("name"),()=>r()("date"),()=>r()("spin"),()=>r()("assigned")]),t.append(i,p)},w=i=>{var p=Me(),g=e.child(p,!0);e.reset(p),e.template_effect(b=>t.set_text(g,b),[()=>r()("noHistory")]),t.append(i,p)};t.if_block(v,i=>{e.get(f)&&e.get(f).length>0?i(l):i(w,-1)})}t.append(s,a)};t.if_block(le,s=>{e.get(P)?s(ne):s(de,-1)})}e.reset(Z),e.template_effect(()=>t.set_attribute(Z,"aria-busy",e.get(P))),t.append(N,Z);var ve=e.pop(oe);return ee(),ve}t.delegate(["click"]);t.create_custom_element(V,{programId:{},endpoint:{},session:{}},[],[],{mode:"open"});exports.GameHistory=V;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-7PqVvd_8.cjs"),e=require("./utils-C1uNHR_J.cjs");var _e=t.from_html('<div class="game-history-item history-grid history-skeleton-row svelte-1rfwd7v" aria-hidden="true"><p class="svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v"></span></p> <p class="svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--name svelte-1rfwd7v"> </span></p> <div class="date-time-cell svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-1rfwd7v">00:00:00</span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div></div>'),ue=t.from_html('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!>',1),me=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'),xe=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'),we=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'),be=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'),ye=t.from_html('<div class="game-history-item history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <div class="date-time-cell svelte-1rfwd7v"><span class="svelte-1rfwd7v"> </span> <span class="svelte-1rfwd7v"> </span></div> <div class="history-icon svelte-1rfwd7v"><!></div> <div class="history-icon svelte-1rfwd7v"><!></div></div>'),Ce=t.from_html('<span class="pagination-ellipsis svelte-1rfwd7v">…</span>'),ke=t.from_html("<button> </button>"),Le=t.from_html('<div class="game-history-pagination svelte-1rfwd7v"><button class="pagination-button pagination-nav svelte-1rfwd7v">‹</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">›</button></div>'),ze=t.from_html('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!> <!>',1),Me=t.from_html('<h2 class="no-history svelte-1rfwd7v"> </h2>'),Be=t.from_html('<div class="history-list svelte-1rfwd7v"><!></div>');const Ee={hash:"svelte-1rfwd7v",code:` *,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .history-list {display:flex;flex-direction:column;gap:6px;width:100%;max-width:700px;margin:0 auto;} .history-grid {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;} .date-time-cell {display:flex;flex-direction:column;gap:2px;} .date-time-cell span:last-child {opacity:0.6;font-size:10px;} .game-history-item {width:100%;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);font-size:12px;} .game-history-header {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;} .history-icon {display:flex;align-items:center;justify-content:center;} .no-history {width:100%;font-size:14px;font-weight:400;margin-top:12px;} .game-history-pagination {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;} .pagination-pages {display:flex;align-items:center;gap:4px;} .pagination-ellipsis {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;} .pagination-button {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;} .pagination-button:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));} .pagination-button:disabled {opacity:0.4;cursor:not-allowed;} .pagination-page {min-width:32px;text-align:center;padding:6px 8px;} .pagination-nav {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;} .pagination-page.active {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
|
|
4
|
+
@keyframes svelte-1rfwd7v-skeleton-pulse {
|
|
5
|
+
0%, 100% {
|
|
6
|
+
opacity: 0.3;
|
|
7
|
+
}
|
|
8
|
+
50% {
|
|
9
|
+
opacity: 0.6;
|
|
10
|
+
}
|
|
11
|
+
} .history-skeleton-row {pointer-events:none;
|
|
12
|
+
animation: svelte-1rfwd7v-skeleton-pulse 1.4s ease-in-out infinite;} .history-skeleton-bar {display:inline-block;max-width:100%;border-radius:4px;background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));color:transparent;user-select:none;} .history-skeleton-bar--name {width:70%;} .history-skeleton-bar--icon {width:12px;height:12px;}`};function V(N,S){e.push(S,!0),t.append_styles(N,Ee);const r=()=>e.store_get(e.$format,"$_",Y),[Y,ee]=e.setup_stores(),q=t.prop(S,"programId",7),O=t.prop(S,"endpoint",7),F=t.prop(S,"session",7);let P=e.state(!0),f=e.state(e.proxy([])),te=e.state(!1);const B=10;let v=e.state(1);const R=e.user_derived(()=>e.get(f)&&e.get(f).length>0?Math.ceil(e.get(f).length/B):1),se=e.user_derived(()=>e.get(f)&&e.get(f).length>0?e.get(f).slice((e.get(v)-1)*B,e.get(v)*B):[]),re={bonus:r()("prizeBonus"),role:r()("prizeRole"),tournament:r()("prizeTournament"),ticket:r()("prizeTicket"),loyalty:r()("prizeLoyalty"),challenge:r()("prizeChallenge"),noprize:r()("noWin"),custom:r()("prizeCustom")},ae=e.user_derived(()=>{const s=e.get(R);if(s<=5)return Array.from({length:s},(o,p)=>p+1);const a=[],d=e.get(v);a.push(1),d>3&&a.push("...");const i=Math.max(2,d-1),w=Math.min(s-1,d+1);for(let o=i;o<=w;o++)a.push(o);return d<s-2&&a.push("..."),s>1&&a.push(s),a}),U=s=>{s<1||s>e.get(R)||(e.set(v,s,!0),window.scrollTo({top:0,behavior:"smooth"}))},ie=()=>{e.set(P,!0);const s=new URL(`${O()}/v1/wof/outcome/${q()}`),a=new Headers;F()&&a.append("X-SessionId",F()),fetch(s,{method:"GET",headers:a,cache:"no-store"}).then(i=>i.json()).then(i=>{e.set(f,i==null?void 0:i.items.map(w=>e.normalizeDrawResult(w,"history")),!0),e.set(v,1)}).catch(i=>{console.log(i),e.set(te,!0)}).finally(()=>e.set(P,!1))};t.onMount(()=>{ie()});var oe={get programId(){return q()},set programId(s){q(s),e.flushSync()},get endpoint(){return O()},set endpoint(s){O(s),e.flushSync()},get session(){return F()},set session(s){F(s),e.flushSync()}},Z=Be(),le=e.child(Z);{var ne=s=>{var a=ue(),d=e.first_child(a),i=e.sibling(e.child(d),2),w=e.child(i,!0);e.reset(i);var o=e.sibling(i,2),p=e.child(o,!0);e.reset(o);var g=e.sibling(o,2),b=e.child(g,!0);e.reset(g);var G=e.sibling(g,2),E=e.child(G,!0);e.reset(G),e.reset(d);var X=e.sibling(d,2);t.each(X,17,()=>Array(B),t.index,(y,W,L,j)=>{var z=_e(),A=e.child(z),$=e.child(A);$.textContent=`${L+1}.`,e.reset(A),e.next(8),e.reset(z),t.append(y,z)}),e.template_effect((y,W,L,j)=>{t.set_text(w,y),t.set_text(p,W),t.set_text(b,L),t.set_text(E,j)},[()=>r()("name"),()=>r()("date"),()=>r()("spin"),()=>r()("assigned")]),t.append(s,a)},ve=s=>{var a=t.comment(),d=e.first_child(a);{var i=o=>{var p=ze(),g=e.first_child(p),b=e.sibling(e.child(g),2),G=e.child(b,!0);e.reset(b);var E=e.sibling(b,2),X=e.child(E,!0);e.reset(E);var y=e.sibling(E,2),W=e.child(y,!0);e.reset(y);var L=e.sibling(y,2),j=e.child(L,!0);e.reset(L),e.reset(g);var z=e.sibling(g,2);t.each(z,17,()=>e.get(se),t.index,(C,n,x)=>{var h=ye(),k=e.child(h),I=e.child(k);e.reset(k);var c=e.sibling(k,2),D=e.child(c,!0);e.reset(c);var T=e.sibling(c,2),H=e.child(T),J=e.child(H,!0);e.reset(H);var _=e.sibling(H,2),u=e.child(_,!0);e.reset(_),e.reset(T);var M=e.sibling(T,2),K=e.child(M);{var pe=l=>{var m=me();t.append(l,m)},ce=l=>{var m=xe();t.append(l,m)};t.if_block(K,l=>{e.get(n).state==="drawn"||e.get(n).state==="fulfilled"?l(pe):l(ce,-1)})}e.reset(M);var Q=e.sibling(M,2),fe=e.child(Q);{var ge=l=>{var m=we();t.append(l,m)},he=l=>{var m=be();t.append(l,m)};t.if_block(fe,l=>{e.get(n).completed&&e.get(n).state==="fulfilled"?l(ge):l(he,-1)})}e.reset(Q),e.reset(h),e.template_effect((l,m)=>{t.set_text(I,`${(e.get(v)-1)*B+x+1}.`),t.set_text(D,re[e.get(n).type]||"-"),t.set_text(J,l),t.set_text(u,m)},[()=>e.formatDateTimeForHistory(e.get(n).time).date,()=>e.formatDateTimeForHistory(e.get(n).time).time]),t.append(C,h)});var A=e.sibling(z,2);{var $=C=>{var n=Le(),x=e.child(n),h=e.sibling(x,2);t.each(h,21,()=>e.get(ae),t.index,(I,c)=>{var D=t.comment(),T=e.first_child(D);{var H=_=>{var u=Ce();t.append(_,u)},J=_=>{var u=ke();let M;var K=e.child(u,!0);e.reset(u),e.template_effect(()=>{M=t.set_class(u,1,"pagination-button pagination-page svelte-1rfwd7v",null,M,{active:e.get(v)===e.get(c)}),t.set_text(K,e.get(c))}),t.delegated("click",u,()=>U(e.get(c))),t.append(_,u)};t.if_block(T,_=>{e.get(c)==="..."?_(H):_(J,-1)})}t.append(I,D)}),e.reset(h);var k=e.sibling(h,2);e.reset(n),e.template_effect((I,c)=>{x.disabled=e.get(v)===1,t.set_attribute(x,"aria-label",I),k.disabled=e.get(v)===e.get(R),t.set_attribute(k,"aria-label",c)},[()=>r()("previous"),()=>r()("next")]),t.delegated("click",x,()=>U(e.get(v)-1)),t.delegated("click",k,()=>U(e.get(v)+1)),t.append(C,n)};t.if_block(A,C=>{e.get(R)>1&&C($)})}e.template_effect((C,n,x,h)=>{t.set_text(G,C),t.set_text(X,n),t.set_text(W,x),t.set_text(j,h)},[()=>r()("name"),()=>r()("date"),()=>r()("spin"),()=>r()("assigned")]),t.append(o,p)},w=o=>{var p=Me(),g=e.child(p,!0);e.reset(p),e.template_effect(b=>t.set_text(g,b),[()=>r()("noHistory")]),t.append(o,p)};t.if_block(d,o=>{e.get(f)&&e.get(f).length>0?o(i):o(w,-1)})}t.append(s,a)};t.if_block(le,s=>{e.get(P)?s(ne):s(ve,-1)})}e.reset(Z),e.template_effect(()=>t.set_attribute(Z,"aria-busy",e.get(P))),t.append(N,Z);var de=e.pop(oe);return ee(),de}t.delegate(["click"]);t.create_custom_element(V,{programId:{},endpoint:{},session:{}},[],[],{mode:"open"});exports.GameHistory=V;
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { d as Ze, c as je, a as He, p as ne, o as Se, i as R, b as d, f as C, e as le, g as ve, s as p, h as ue, j as de, k as Y, l as Ae, m as pe } from "./WheelOfFortuneWheel-BABzaEBd.js";
|
|
2
|
+
import { G as Fe, aM as J, aC as We, a0 as e, ah as I, L as De, aP as Oe, au as Z, aV as Xe, aT as s, aG as ce, aR as Ne, aQ as Qe, aN as K, aO as o, aW as a, b1 as Ue, b2 as we, aX as fe } from "./utils-BJHloM10.js";
|
|
3
|
+
var Ve = C('<div class="game-history-item history-grid history-skeleton-row svelte-1rfwd7v" aria-hidden="true"><p class="svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v"></span></p> <p class="svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--name svelte-1rfwd7v"> </span></p> <div class="date-time-cell svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-1rfwd7v">00:00:00</span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div></div>'), $e = C('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!>', 1), qe = Y('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'), Je = Y('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'), Ke = Y('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'), Ye = Y('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'), et = C('<div class="game-history-item history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <div class="date-time-cell svelte-1rfwd7v"><span class="svelte-1rfwd7v"> </span> <span class="svelte-1rfwd7v"> </span></div> <div class="history-icon svelte-1rfwd7v"><!></div> <div class="history-icon svelte-1rfwd7v"><!></div></div>'), tt = C('<span class="pagination-ellipsis svelte-1rfwd7v">…</span>'), at = C("<button> </button>"), st = C('<div class="game-history-pagination svelte-1rfwd7v"><button class="pagination-button pagination-nav svelte-1rfwd7v">‹</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">›</button></div>'), rt = C('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!> <!>', 1), ot = C('<h2 class="no-history svelte-1rfwd7v"> </h2>'), it = C('<div class="history-list svelte-1rfwd7v"><!></div>');
|
|
4
|
+
const nt = {
|
|
5
|
+
hash: "svelte-1rfwd7v",
|
|
6
|
+
code: ` *,
|
|
7
|
+
*::before,
|
|
8
|
+
*::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .history-list {display:flex;flex-direction:column;gap:6px;width:100%;max-width:700px;margin:0 auto;} .history-grid {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;} .date-time-cell {display:flex;flex-direction:column;gap:2px;} .date-time-cell span:last-child {opacity:0.6;font-size:10px;} .game-history-item {width:100%;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);font-size:12px;} .game-history-header {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;} .history-icon {display:flex;align-items:center;justify-content:center;} .no-history {width:100%;font-size:14px;font-weight:400;margin-top:12px;} .game-history-pagination {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;} .pagination-pages {display:flex;align-items:center;gap:4px;} .pagination-ellipsis {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;} .pagination-button {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;} .pagination-button:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));} .pagination-button:disabled {opacity:0.4;cursor:not-allowed;} .pagination-page {min-width:32px;text-align:center;padding:6px 8px;} .pagination-nav {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;} .pagination-page.active {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
|
|
9
|
+
@keyframes svelte-1rfwd7v-skeleton-pulse {
|
|
10
|
+
0%, 100% {
|
|
11
|
+
opacity: 0.3;
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
opacity: 0.6;
|
|
15
|
+
}
|
|
16
|
+
} .history-skeleton-row {pointer-events:none;
|
|
17
|
+
animation: svelte-1rfwd7v-skeleton-pulse 1.4s ease-in-out infinite;} .history-skeleton-bar {display:inline-block;max-width:100%;border-radius:4px;background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));color:transparent;user-select:none;} .history-skeleton-bar--name {width:70%;} .history-skeleton-bar--icon {width:12px;height:12px;}`
|
|
18
|
+
};
|
|
19
|
+
function lt(ge, W) {
|
|
20
|
+
Fe(W, !0), He(ge, nt);
|
|
21
|
+
const r = () => Oe(Qe, "$_", xe), [xe, me] = Ne(), ee = ne(W, "programId", 7), te = ne(W, "endpoint", 7), D = ne(W, "session", 7);
|
|
22
|
+
let O = J(!0), w = J(We([])), _e = J(!1);
|
|
23
|
+
const j = 10;
|
|
24
|
+
let f = J(1);
|
|
25
|
+
const X = fe(() => e(w) && e(w).length > 0 ? Math.ceil(e(w).length / j) : 1), ye = fe(() => e(w) && e(w).length > 0 ? e(w).slice((e(f) - 1) * j, e(f) * j) : []), be = {
|
|
26
|
+
bonus: r()("prizeBonus"),
|
|
27
|
+
role: r()("prizeRole"),
|
|
28
|
+
tournament: r()("prizeTournament"),
|
|
29
|
+
ticket: r()("prizeTicket"),
|
|
30
|
+
loyalty: r()("prizeLoyalty"),
|
|
31
|
+
challenge: r()("prizeChallenge"),
|
|
32
|
+
noprize: r()("noWin"),
|
|
33
|
+
custom: r()("prizeCustom")
|
|
34
|
+
}, Ce = fe(() => {
|
|
35
|
+
const t = e(X);
|
|
36
|
+
if (t <= 5)
|
|
37
|
+
return Array.from({ length: t }, (l, h) => h + 1);
|
|
38
|
+
const i = [], g = e(f);
|
|
39
|
+
i.push(1), g > 3 && i.push("...");
|
|
40
|
+
const n = Math.max(2, g - 1), L = Math.min(t - 1, g + 1);
|
|
41
|
+
for (let l = n; l <= L; l++)
|
|
42
|
+
i.push(l);
|
|
43
|
+
return g < t - 2 && i.push("..."), t > 1 && i.push(t), i;
|
|
44
|
+
}), ae = (t) => {
|
|
45
|
+
t < 1 || t > e(X) || (Z(f, t, !0), window.scrollTo({ top: 0, behavior: "smooth" }));
|
|
46
|
+
}, ke = () => {
|
|
47
|
+
Z(O, !0);
|
|
48
|
+
const t = new URL(`${te()}/v1/wof/outcome/${ee()}`), i = new Headers();
|
|
49
|
+
D() && i.append("X-SessionId", D()), fetch(t, { method: "GET", headers: i, cache: "no-store" }).then((n) => n.json()).then((n) => {
|
|
50
|
+
Z(w, n == null ? void 0 : n.items.map((L) => Xe(L, "history")), !0), Z(f, 1);
|
|
51
|
+
}).catch((n) => {
|
|
52
|
+
console.log(n), Z(_e, !0);
|
|
53
|
+
}).finally(() => Z(O, !1));
|
|
54
|
+
};
|
|
55
|
+
Se(() => {
|
|
56
|
+
ke();
|
|
57
|
+
});
|
|
58
|
+
var Le = {
|
|
59
|
+
get programId() {
|
|
60
|
+
return ee();
|
|
61
|
+
},
|
|
62
|
+
set programId(t) {
|
|
63
|
+
ee(t), ce();
|
|
64
|
+
},
|
|
65
|
+
get endpoint() {
|
|
66
|
+
return te();
|
|
67
|
+
},
|
|
68
|
+
set endpoint(t) {
|
|
69
|
+
te(t), ce();
|
|
70
|
+
},
|
|
71
|
+
get session() {
|
|
72
|
+
return D();
|
|
73
|
+
},
|
|
74
|
+
set session(t) {
|
|
75
|
+
D(t), ce();
|
|
76
|
+
}
|
|
77
|
+
}, N = it(), ze = s(N);
|
|
78
|
+
{
|
|
79
|
+
var Me = (t) => {
|
|
80
|
+
var i = $e(), g = K(i), n = o(s(g), 2), L = s(n, !0);
|
|
81
|
+
a(n);
|
|
82
|
+
var l = o(n, 2), h = s(l, !0);
|
|
83
|
+
a(l);
|
|
84
|
+
var x = o(l, 2), z = s(x, !0);
|
|
85
|
+
a(x);
|
|
86
|
+
var Q = o(x, 2), H = s(Q, !0);
|
|
87
|
+
a(Q), a(g);
|
|
88
|
+
var se = o(g, 2);
|
|
89
|
+
le(se, 17, () => Array(j), ve, (M, U, T, V) => {
|
|
90
|
+
var G = Ve(), $ = s(G), re = s($);
|
|
91
|
+
re.textContent = `${T + 1}.`, a($), Ue(8), a(G), d(M, G);
|
|
92
|
+
}), I(
|
|
93
|
+
(M, U, T, V) => {
|
|
94
|
+
p(L, M), p(h, U), p(z, T), p(H, V);
|
|
95
|
+
},
|
|
96
|
+
[
|
|
97
|
+
() => r()("name"),
|
|
98
|
+
() => r()("date"),
|
|
99
|
+
() => r()("spin"),
|
|
100
|
+
() => r()("assigned")
|
|
101
|
+
]
|
|
102
|
+
), d(t, i);
|
|
103
|
+
}, Be = (t) => {
|
|
104
|
+
var i = ue(), g = K(i);
|
|
105
|
+
{
|
|
106
|
+
var n = (l) => {
|
|
107
|
+
var h = rt(), x = K(h), z = o(s(x), 2), Q = s(z, !0);
|
|
108
|
+
a(z);
|
|
109
|
+
var H = o(z, 2), se = s(H, !0);
|
|
110
|
+
a(H);
|
|
111
|
+
var M = o(H, 2), U = s(M, !0);
|
|
112
|
+
a(M);
|
|
113
|
+
var T = o(M, 2), V = s(T, !0);
|
|
114
|
+
a(T), a(x);
|
|
115
|
+
var G = o(x, 2);
|
|
116
|
+
le(G, 17, () => e(ye), ve, (B, c, k) => {
|
|
117
|
+
var m = et(), E = s(m), S = s(E);
|
|
118
|
+
a(E);
|
|
119
|
+
var u = o(E, 2), q = s(u, !0);
|
|
120
|
+
a(u);
|
|
121
|
+
var A = o(u, 2), F = s(A), oe = s(F, !0);
|
|
122
|
+
a(F);
|
|
123
|
+
var _ = o(F, 2), y = s(_, !0);
|
|
124
|
+
a(_), a(A);
|
|
125
|
+
var P = o(A, 2), ie = s(P);
|
|
126
|
+
{
|
|
127
|
+
var Ie = (v) => {
|
|
128
|
+
var b = qe();
|
|
129
|
+
d(v, b);
|
|
130
|
+
}, Te = (v) => {
|
|
131
|
+
var b = Je();
|
|
132
|
+
d(v, b);
|
|
133
|
+
};
|
|
134
|
+
R(ie, (v) => {
|
|
135
|
+
e(c).state === "drawn" || e(c).state === "fulfilled" ? v(Ie) : v(Te, -1);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
a(P);
|
|
139
|
+
var he = o(P, 2), Ge = s(he);
|
|
140
|
+
{
|
|
141
|
+
var Pe = (v) => {
|
|
142
|
+
var b = Ke();
|
|
143
|
+
d(v, b);
|
|
144
|
+
}, Re = (v) => {
|
|
145
|
+
var b = Ye();
|
|
146
|
+
d(v, b);
|
|
147
|
+
};
|
|
148
|
+
R(Ge, (v) => {
|
|
149
|
+
e(c).completed && e(c).state === "fulfilled" ? v(Pe) : v(Re, -1);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
a(he), a(m), I(
|
|
153
|
+
(v, b) => {
|
|
154
|
+
p(S, `${(e(f) - 1) * j + k + 1}.`), p(q, be[e(c).type] || "-"), p(oe, v), p(y, b);
|
|
155
|
+
},
|
|
156
|
+
[
|
|
157
|
+
() => we(e(c).time).date,
|
|
158
|
+
() => we(e(c).time).time
|
|
159
|
+
]
|
|
160
|
+
), d(B, m);
|
|
161
|
+
});
|
|
162
|
+
var $ = o(G, 2);
|
|
163
|
+
{
|
|
164
|
+
var re = (B) => {
|
|
165
|
+
var c = st(), k = s(c), m = o(k, 2);
|
|
166
|
+
le(m, 21, () => e(Ce), ve, (S, u) => {
|
|
167
|
+
var q = ue(), A = K(q);
|
|
168
|
+
{
|
|
169
|
+
var F = (_) => {
|
|
170
|
+
var y = tt();
|
|
171
|
+
d(_, y);
|
|
172
|
+
}, oe = (_) => {
|
|
173
|
+
var y = at();
|
|
174
|
+
let P;
|
|
175
|
+
var ie = s(y, !0);
|
|
176
|
+
a(y), I(() => {
|
|
177
|
+
P = Ae(y, 1, "pagination-button pagination-page svelte-1rfwd7v", null, P, { active: e(f) === e(u) }), p(ie, e(u));
|
|
178
|
+
}), pe("click", y, () => ae(e(u))), d(_, y);
|
|
179
|
+
};
|
|
180
|
+
R(A, (_) => {
|
|
181
|
+
e(u) === "..." ? _(F) : _(oe, -1);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
d(S, q);
|
|
185
|
+
}), a(m);
|
|
186
|
+
var E = o(m, 2);
|
|
187
|
+
a(c), I(
|
|
188
|
+
(S, u) => {
|
|
189
|
+
k.disabled = e(f) === 1, de(k, "aria-label", S), E.disabled = e(f) === e(X), de(E, "aria-label", u);
|
|
190
|
+
},
|
|
191
|
+
[() => r()("previous"), () => r()("next")]
|
|
192
|
+
), pe("click", k, () => ae(e(f) - 1)), pe("click", E, () => ae(e(f) + 1)), d(B, c);
|
|
193
|
+
};
|
|
194
|
+
R($, (B) => {
|
|
195
|
+
e(X) > 1 && B(re);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
I(
|
|
199
|
+
(B, c, k, m) => {
|
|
200
|
+
p(Q, B), p(se, c), p(U, k), p(V, m);
|
|
201
|
+
},
|
|
202
|
+
[
|
|
203
|
+
() => r()("name"),
|
|
204
|
+
() => r()("date"),
|
|
205
|
+
() => r()("spin"),
|
|
206
|
+
() => r()("assigned")
|
|
207
|
+
]
|
|
208
|
+
), d(l, h);
|
|
209
|
+
}, L = (l) => {
|
|
210
|
+
var h = ot(), x = s(h, !0);
|
|
211
|
+
a(h), I((z) => p(x, z), [() => r()("noHistory")]), d(l, h);
|
|
212
|
+
};
|
|
213
|
+
R(g, (l) => {
|
|
214
|
+
e(w) && e(w).length > 0 ? l(n) : l(L, -1);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
d(t, i);
|
|
218
|
+
};
|
|
219
|
+
R(ze, (t) => {
|
|
220
|
+
e(O) ? t(Me) : t(Be, -1);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
a(N), I(() => de(N, "aria-busy", e(O))), d(ge, N);
|
|
224
|
+
var Ee = De(Le);
|
|
225
|
+
return me(), Ee;
|
|
226
|
+
}
|
|
227
|
+
Ze(["click"]);
|
|
228
|
+
je(lt, { programId: {}, endpoint: {}, session: {} }, [], [], { mode: "open" });
|
|
229
|
+
export {
|
|
230
|
+
lt as G
|
|
231
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-BoZ9evN7.cjs"),e=require("./utils-8EFTHKcu.cjs");var _e=t.from_html('<div class="game-history-item history-grid history-skeleton-row svelte-1rfwd7v" aria-hidden="true"><p class="svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v"></span></p> <p class="svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--name svelte-1rfwd7v"> </span></p> <div class="date-time-cell svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-1rfwd7v">00:00:00</span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div></div>'),ue=t.from_html('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!>',1),me=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'),xe=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'),we=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-1rfwd7v"></path></svg>'),be=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-1rfwd7v"></path></svg>'),ye=t.from_html('<div class="game-history-item history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <div class="date-time-cell svelte-1rfwd7v"><span class="svelte-1rfwd7v"> </span> <span class="svelte-1rfwd7v"> </span></div> <div class="history-icon svelte-1rfwd7v"><!></div> <div class="history-icon svelte-1rfwd7v"><!></div></div>'),Ce=t.from_html('<span class="pagination-ellipsis svelte-1rfwd7v">…</span>'),ke=t.from_html("<button> </button>"),Le=t.from_html('<div class="game-history-pagination svelte-1rfwd7v"><button class="pagination-button pagination-nav svelte-1rfwd7v">‹</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">›</button></div>'),ze=t.from_html('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!> <!>',1),Me=t.from_html('<h2 class="no-history svelte-1rfwd7v"> </h2>'),Be=t.from_html('<div class="history-list svelte-1rfwd7v"><!></div>');const Ee={hash:"svelte-1rfwd7v",code:` *,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .history-list {display:flex;flex-direction:column;gap:6px;width:100%;max-width:700px;margin:0 auto;} .history-grid {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;} .date-time-cell {display:flex;flex-direction:column;gap:2px;} .date-time-cell span:last-child {opacity:0.6;font-size:10px;} .game-history-item {width:100%;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);font-size:12px;} .game-history-header {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;} .history-icon {display:flex;align-items:center;justify-content:center;} .no-history {width:100%;font-size:14px;font-weight:400;margin-top:12px;} .game-history-pagination {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;} .pagination-pages {display:flex;align-items:center;gap:4px;} .pagination-ellipsis {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;} .pagination-button {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;} .pagination-button:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));} .pagination-button:disabled {opacity:0.4;cursor:not-allowed;} .pagination-page {min-width:32px;text-align:center;padding:6px 8px;} .pagination-nav {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;} .pagination-page.active {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
|
|
4
|
+
@keyframes svelte-1rfwd7v-skeleton-pulse {
|
|
5
|
+
0%, 100% {
|
|
6
|
+
opacity: 0.3;
|
|
7
|
+
}
|
|
8
|
+
50% {
|
|
9
|
+
opacity: 0.6;
|
|
10
|
+
}
|
|
11
|
+
} .history-skeleton-row {pointer-events:none;
|
|
12
|
+
animation: svelte-1rfwd7v-skeleton-pulse 1.4s ease-in-out infinite;} .history-skeleton-bar {display:inline-block;max-width:100%;border-radius:4px;background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));color:transparent;user-select:none;} .history-skeleton-bar--name {width:70%;} .history-skeleton-bar--icon {width:12px;height:12px;}`};function V(N,S){e.push(S,!0),t.append_styles(N,Ee);const r=()=>e.store_get(e.$format,"$_",Y),[Y,ee]=e.setup_stores(),q=t.prop(S,"programId",7),O=t.prop(S,"endpoint",7),F=t.prop(S,"session",7);let P=e.state(!0),f=e.state(e.proxy([])),te=e.state(!1);const B=10;let d=e.state(1);const R=e.user_derived(()=>e.get(f)&&e.get(f).length>0?Math.ceil(e.get(f).length/B):1),se=e.user_derived(()=>e.get(f)&&e.get(f).length>0?e.get(f).slice((e.get(d)-1)*B,e.get(d)*B):[]),re={bonus:r()("prizeBonus"),role:r()("prizeRole"),tournament:r()("prizeTournament"),ticket:r()("prizeTicket"),loyalty:r()("prizeLoyalty"),challenge:r()("prizeChallenge"),noprize:r()("noWin"),custom:r()("prizeCustom")},ae=e.user_derived(()=>{const s=e.get(R);if(s<=5)return Array.from({length:s},(i,p)=>p+1);const a=[],v=e.get(d);a.push(1),v>3&&a.push("...");const l=Math.max(2,v-1),w=Math.min(s-1,v+1);for(let i=l;i<=w;i++)a.push(i);return v<s-2&&a.push("..."),s>1&&a.push(s),a}),U=s=>{s<1||s>e.get(R)||(e.set(d,s,!0),window.scrollTo({top:0,behavior:"smooth"}))},ie=()=>{e.set(P,!0);const s=new URL(`${O()}/v1/wof/outcome/${q()}`),a=new Headers;F()&&a.append("X-SessionId",F()),fetch(s,{method:"GET",headers:a,cache:"no-store"}).then(l=>l.json()).then(l=>{e.set(f,l?.items.map(w=>e.normalizeDrawResult(w,"history")),!0),e.set(d,1)}).catch(l=>{console.log(l),e.set(te,!0)}).finally(()=>e.set(P,!1))};t.onMount(()=>{ie()});var oe={get programId(){return q()},set programId(s){q(s),e.flushSync()},get endpoint(){return O()},set endpoint(s){O(s),e.flushSync()},get session(){return F()},set session(s){F(s),e.flushSync()}},Z=Be(),le=e.child(Z);{var ne=s=>{var a=ue(),v=e.first_child(a),l=e.sibling(e.child(v),2),w=e.child(l,!0);e.reset(l);var i=e.sibling(l,2),p=e.child(i,!0);e.reset(i);var g=e.sibling(i,2),b=e.child(g,!0);e.reset(g);var G=e.sibling(g,2),E=e.child(G,!0);e.reset(G),e.reset(v);var X=e.sibling(v,2);t.each(X,17,()=>Array(B),t.index,(y,W,L,j)=>{var z=_e(),A=e.child(z),$=e.child(A);$.textContent=`${L+1}.`,e.reset(A),e.next(8),e.reset(z),t.append(y,z)}),e.template_effect((y,W,L,j)=>{t.set_text(w,y),t.set_text(p,W),t.set_text(b,L),t.set_text(E,j)},[()=>r()("name"),()=>r()("date"),()=>r()("spin"),()=>r()("assigned")]),t.append(s,a)},de=s=>{var a=t.comment(),v=e.first_child(a);{var l=i=>{var p=ze(),g=e.first_child(p),b=e.sibling(e.child(g),2),G=e.child(b,!0);e.reset(b);var E=e.sibling(b,2),X=e.child(E,!0);e.reset(E);var y=e.sibling(E,2),W=e.child(y,!0);e.reset(y);var L=e.sibling(y,2),j=e.child(L,!0);e.reset(L),e.reset(g);var z=e.sibling(g,2);t.each(z,17,()=>e.get(se),t.index,(C,n,x)=>{var h=ye(),k=e.child(h),I=e.child(k);e.reset(k);var c=e.sibling(k,2),D=e.child(c,!0);e.reset(c);var T=e.sibling(c,2),H=e.child(T),J=e.child(H,!0);e.reset(H);var _=e.sibling(H,2),u=e.child(_,!0);e.reset(_),e.reset(T);var M=e.sibling(T,2),K=e.child(M);{var pe=o=>{var m=me();t.append(o,m)},ce=o=>{var m=xe();t.append(o,m)};t.if_block(K,o=>{e.get(n).state==="drawn"||e.get(n).state==="fulfilled"?o(pe):o(ce,-1)})}e.reset(M);var Q=e.sibling(M,2),fe=e.child(Q);{var ge=o=>{var m=we();t.append(o,m)},he=o=>{var m=be();t.append(o,m)};t.if_block(fe,o=>{e.get(n).completed&&e.get(n).state==="fulfilled"?o(ge):o(he,-1)})}e.reset(Q),e.reset(h),e.template_effect((o,m)=>{t.set_text(I,`${(e.get(d)-1)*B+x+1}.`),t.set_text(D,re[e.get(n).type]||"-"),t.set_text(J,o),t.set_text(u,m)},[()=>e.formatDateTimeForHistory(e.get(n).time).date,()=>e.formatDateTimeForHistory(e.get(n).time).time]),t.append(C,h)});var A=e.sibling(z,2);{var $=C=>{var n=Le(),x=e.child(n),h=e.sibling(x,2);t.each(h,21,()=>e.get(ae),t.index,(I,c)=>{var D=t.comment(),T=e.first_child(D);{var H=_=>{var u=Ce();t.append(_,u)},J=_=>{var u=ke();let M;var K=e.child(u,!0);e.reset(u),e.template_effect(()=>{M=t.set_class(u,1,"pagination-button pagination-page svelte-1rfwd7v",null,M,{active:e.get(d)===e.get(c)}),t.set_text(K,e.get(c))}),t.delegated("click",u,()=>U(e.get(c))),t.append(_,u)};t.if_block(T,_=>{e.get(c)==="..."?_(H):_(J,-1)})}t.append(I,D)}),e.reset(h);var k=e.sibling(h,2);e.reset(n),e.template_effect((I,c)=>{x.disabled=e.get(d)===1,t.set_attribute(x,"aria-label",I),k.disabled=e.get(d)===e.get(R),t.set_attribute(k,"aria-label",c)},[()=>r()("previous"),()=>r()("next")]),t.delegated("click",x,()=>U(e.get(d)-1)),t.delegated("click",k,()=>U(e.get(d)+1)),t.append(C,n)};t.if_block(A,C=>{e.get(R)>1&&C($)})}e.template_effect((C,n,x,h)=>{t.set_text(G,C),t.set_text(X,n),t.set_text(W,x),t.set_text(j,h)},[()=>r()("name"),()=>r()("date"),()=>r()("spin"),()=>r()("assigned")]),t.append(i,p)},w=i=>{var p=Me(),g=e.child(p,!0);e.reset(p),e.template_effect(b=>t.set_text(g,b),[()=>r()("noHistory")]),t.append(i,p)};t.if_block(v,i=>{e.get(f)&&e.get(f).length>0?i(l):i(w,-1)})}t.append(s,a)};t.if_block(le,s=>{e.get(P)?s(ne):s(de,-1)})}e.reset(Z),e.template_effect(()=>t.set_attribute(Z,"aria-busy",e.get(P))),t.append(N,Z);var ve=e.pop(oe);return ee(),ve}t.delegate(["click"]);t.create_custom_element(V,{programId:{},endpoint:{},session:{}},[],[],{mode:"open"});exports.GameHistory=V;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-BQFaJ7ZB.cjs"),e=require("./utils-fG_nzyoc.cjs");var $=t.from_html('<video autoplay="" loop="" playsinline=""><source type="video/mp4"/></video>',2),j=t.from_html('<div class="game-placeholder"><!> <div class="game-placeholder__badge"><p class="game-placeholder__badge-title"> </p> <p class="game-placeholder__badge-body"> </p></div> <button class="game-placeholder__cta" type="button"> </button></div>');const q={hash:"svelte-1j7eq9g",code:" .game-placeholder {position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:100%;padding:40px 16px;overflow:hidden;} .game-placeholder__video {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;} .game-placeholder__video.is-ready {opacity:1;} .game-placeholder__badge {position:relative;z-index:2;max-width:320px;padding:14px 18px;background:rgba(8, 4, 0, 0.78);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;} .game-placeholder__badge-title {margin:0;color:#ffffff;font-size:14px;font-weight:700;letter-spacing:0.2px;} .game-placeholder__badge-body {margin:6px 0 0;color:rgba(255, 255, 255, 0.6509803922);font-size:12px;line-height:1.45;} .game-placeholder__cta {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;cursor:pointer;transition:transform 160ms ease, filter 160ms ease;} .game-placeholder__cta:active {transform:translateY(2px) scale(0.98);}"};function f(h,r){e.push(r,!0),t.append_styles(h,q);const l=()=>e.store_get(e.$format,"$_",v),[v,x]=e.setup_stores(),y="https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4",n=t.prop(r,"backgroundVideoAsset",7,null),s=t.prop(r,"liteMode",7,!1),c=t.prop(r,"onLogin",7);let _=e.state(!1);var k={get backgroundVideoAsset(){return n()},set backgroundVideoAsset(o=null){n(o),e.flushSync()},get liteMode(){return s()},set liteMode(o=!1){s(o),e.flushSync()},get onLogin(){return c()},set onLogin(o){c(o),e.flushSync()}},d=j(),b=e.child(d);{var w=o=>{var a=$();let i;a.muted=!0;var M=e.child(a);e.reset(a),e.template_effect(()=>{i=t.set_class(a,1,"game-placeholder__video",null,i,{"is-ready":e.get(_)}),t.set_attribute(M,"src",n()||y)}),t.event("canplay",a,()=>e.set(_,!0)),t.append(o,a)};t.if_block(b,o=>{s()||o(w)})}var p=e.sibling(b,2),g=e.child(p),A=e.child(g,!0);e.reset(g);var m=e.sibling(g,2),L=e.child(m,!0);e.reset(m),e.reset(p);var u=e.sibling(p,2),z=e.child(u,!0);e.reset(u),e.reset(d),e.template_effect((o,a,i)=>{t.set_text(A,o),t.set_text(L,a),t.set_text(z,i)},[()=>l()("loginTitle"),()=>l()("loginDescription"),()=>l()("login")]),t.delegated("click",u,function(...o){c()?.apply(this,o)}),t.append(h,d);var V=e.pop(k);return x(),V}t.delegate(["click"]);t.create_custom_element(f,{backgroundVideoAsset:{},liteMode:{},onLogin:{}},[],[],{mode:"open"});exports.GamePlaceholder=f;
|