@everymatrix/mini-games-hub 0.1.20 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/components/{CoinRoyale-Bgl4Ea3N.js → CoinRoyale-BOm4-S8w.js} +119 -141
  2. package/components/{CoinRoyale-BfaHdSQN.cjs → CoinRoyale-CH5uxsuD.cjs} +4 -17
  3. package/components/{CoinRoyale-t3opSEHv.js → CoinRoyale-CnNtLq-A.js} +135 -157
  4. package/components/{CoinRoyale-CuEAflkt.cjs → CoinRoyale-D2pyi_GY.cjs} +4 -17
  5. package/components/{MiniGamesHub-CfeP3fA-.cjs → MiniGamesHub-1gI8xWg3.cjs} +1 -1
  6. package/components/{MiniGamesHub-CQ1jWyWR.js → MiniGamesHub-BokfXy1A.js} +3 -3
  7. package/components/{MiniGamesHub-ChMf3rL7.js → MiniGamesHub-CPXGTqSS.js} +3 -3
  8. package/components/{MiniGamesHub-Cv7rxLAO.cjs → MiniGamesHub-Cy_b-cvx.cjs} +1 -1
  9. package/components/{MysteryChest-pWptmU6O.js → MysteryChest-CGtkoyYH.js} +2 -3
  10. package/components/{MysteryChest-Bq1NBRQI.cjs → MysteryChest-CtJ77A-4.cjs} +2 -3
  11. package/components/{MysteryChest-BsUxRwj9.js → MysteryChest-jlPEk0Vu.js} +2 -3
  12. package/components/{MysteryChest-Cq77jWfV.cjs → MysteryChest-zfL6oGq0.cjs} +2 -3
  13. package/components/{WheelOfFortune-uTfPiHqd.js → WheelOfFortune-B3VH8v94.js} +1 -1
  14. package/components/{WheelOfFortune-Dsr3jMxy.cjs → WheelOfFortune-BcALwQhX.cjs} +1 -1
  15. package/components/{WheelOfFortune-CriOHAfp.cjs → WheelOfFortune-CxwbJNRK.cjs} +1 -1
  16. package/components/{WheelOfFortune-D2AVLv8r.js → WheelOfFortune-cfvAy6JH.js} +1 -1
  17. package/es2015/mini-games-hub.cjs +1 -1
  18. package/es2015/mini-games-hub.js +1 -1
  19. package/esnext/mini-games-hub.cjs +1 -1
  20. package/esnext/mini-games-hub.js +1 -1
  21. package/package.json +1 -1
  22. package/components/BackButton-BMWvZ9Lb.js +0 -39
  23. package/components/BackButton-BNp3jVLa.js +0 -39
  24. package/components/BackButton-Bi1zFTns.js +0 -38
  25. package/components/BackButton-BvRNh4nJ.js +0 -39
  26. package/components/BackButton-C_v3b0Ky.cjs +0 -1
  27. package/components/BackButton-D5gfQ3NI.cjs +0 -1
  28. package/components/BackButton-DznJk3U4.js +0 -38
  29. package/components/BackButton-gIVGAf6v.js +0 -38
  30. package/components/BackButton-s0YqvufR.cjs +0 -1
  31. package/components/CoinFlip-5qt33VpA.js +0 -399
  32. package/components/CoinFlip-9-7FNYAn.js +0 -364
  33. package/components/CoinFlip-BWNJK7aS.js +0 -402
  34. package/components/CoinFlip-BaNNMAYb.cjs +0 -1
  35. package/components/CoinFlip-BgRZmhbg.js +0 -367
  36. package/components/CoinFlip-COwy7cq1.cjs +0 -1
  37. package/components/CoinFlip-CSel9VZR.js +0 -398
  38. package/components/CoinFlip-ClRh6gz2.js +0 -363
  39. package/components/CoinFlip-D7Bwnl8W.cjs +0 -1
  40. package/components/CoinFlip-D8OLaQiA.js +0 -367
  41. package/components/CoinFlip-Dg2ZA_B2.cjs +0 -1
  42. package/components/CoinFlip-DoASIhfX.cjs +0 -1
  43. package/components/CoinFlip-pvtcTO4f.cjs +0 -1
  44. package/components/CoinFlip-vrZpkrnS.js +0 -402
  45. package/components/CoinRoyale-4Oe-x5-J.cjs +0 -734
  46. package/components/CoinRoyale-9nHMXODj.js +0 -1017
  47. package/components/CoinRoyale-B3bu5S4n.cjs +0 -734
  48. package/components/CoinRoyale-B4dKiGgG.cjs +0 -736
  49. package/components/CoinRoyale-BCSu92s7.cjs +0 -759
  50. package/components/CoinRoyale-BJWVsEJj.cjs +0 -759
  51. package/components/CoinRoyale-BNxFDqe1.js +0 -999
  52. package/components/CoinRoyale-BwNvG3QI.js +0 -1009
  53. package/components/CoinRoyale-Bza84vCL.cjs +0 -738
  54. package/components/CoinRoyale-C-x6uDgh.js +0 -989
  55. package/components/CoinRoyale-CAI2JCvG.js +0 -1020
  56. package/components/CoinRoyale-CGHKZ-kc.js +0 -997
  57. package/components/CoinRoyale-CbqmmMPg.cjs +0 -736
  58. package/components/CoinRoyale-ChWsctqo.cjs +0 -759
  59. package/components/CoinRoyale-Ck3dlmOV.js +0 -1040
  60. package/components/CoinRoyale-Cw8ImDP5.js +0 -1040
  61. package/components/CoinRoyale-CxIBSKFK.js +0 -1017
  62. package/components/CoinRoyale-D-rF6BV4.js +0 -1019
  63. package/components/CoinRoyale-DH-tQHtT.cjs +0 -736
  64. package/components/CoinRoyale-DKWXkm3P.js +0 -1040
  65. package/components/CoinRoyale-DmcgvBwG.js +0 -997
  66. package/components/CoinRoyale-Y2G7RWga.js +0 -1020
  67. package/components/CoinRoyale-d2utu3E3.cjs +0 -759
  68. package/components/CoinRoyale-hmGqx4pF.cjs +0 -759
  69. package/components/CoinRoyale-ifgbuEK3.cjs +0 -759
  70. package/components/CoinRoyale-xAkf1dm_.cjs +0 -738
  71. package/components/CoinRoyale-xHokf0cY.js +0 -1020
  72. package/components/DrawResult-BHZeM1oX.cjs +0 -1
  73. package/components/DrawResult-BVtwLs-z.js +0 -373
  74. package/components/DrawResult-CG5KTjF7.cjs +0 -1
  75. package/components/DrawResult-CbLPtjvZ.js +0 -343
  76. package/components/DrawResult-DMRODSxk.cjs +0 -1
  77. package/components/DrawResult-DTJJfQkP.js +0 -373
  78. package/components/DrawResult-DdL4fFZM.js +0 -343
  79. package/components/DrawResult-DxG4CaKK.cjs +0 -1
  80. package/components/DrawResult-SyzKXHgd.js +0 -343
  81. package/components/DrawResult-ZEAa0flC.js +0 -373
  82. package/components/GameCard-8k9KvRun.cjs +0 -3
  83. package/components/GameCard-A3k7RxF5.js +0 -63
  84. package/components/GameCard-B2td6J8K.js +0 -62
  85. package/components/GameCard-Bku9nP58.cjs +0 -3
  86. package/components/GameCard-CBGi9i6m.cjs +0 -3
  87. package/components/GameCard-CHZmVd6n.cjs +0 -3
  88. package/components/GameCard-Cj4zAE8_.js +0 -59
  89. package/components/GameCard-CrKoQU1B.js +0 -59
  90. package/components/GameCard-DFVjSdtd.cjs +0 -3
  91. package/components/GameCard-DHetS96-.js +0 -66
  92. package/components/GameCard-DcWpuwMl.cjs +0 -3
  93. package/components/GameCard-jIcB63Tt.js +0 -62
  94. package/components/GameHistory-9Mf_u0La.js +0 -231
  95. package/components/GameHistory-BktmYuDa.js +0 -231
  96. package/components/GameHistory-CGAhNQKk.js +0 -231
  97. package/components/GameHistory-ChYjWDsa.cjs +0 -12
  98. package/components/GameHistory-CmiIChL-.cjs +0 -12
  99. package/components/GameHistory-CrrlOaAg.js +0 -231
  100. package/components/GameHistory-DVsHn3lx.cjs +0 -12
  101. package/components/GameHistory-_jU0BiqI.js +0 -231
  102. package/components/GameHistory-aQf3vf9u.cjs +0 -12
  103. package/components/GameHistory-lyXo0tYb.cjs +0 -12
  104. package/components/GameHistory-uzrT81kU.js +0 -231
  105. package/components/GameHistory-v6cI-TIF.cjs +0 -12
  106. package/components/GamePlaceholder-4oI8uJ-1.cjs +0 -1
  107. package/components/GamePlaceholder-Bp4nTJeL.js +0 -84
  108. package/components/GamePlaceholder-COiYGwNi.cjs +0 -15
  109. package/components/GamePlaceholder-CfJ4hx9w.js +0 -70
  110. package/components/GamePlaceholder-D9JEXsAk.js +0 -84
  111. package/components/GamePlaceholder-DGnB06iW.js +0 -71
  112. package/components/GamePlaceholder-DS5evGU6.js +0 -85
  113. package/components/GamePlaceholder-DmiU1G7G.cjs +0 -15
  114. package/components/GamePlaceholder-Dwo_YAUQ.cjs +0 -1
  115. package/components/GamePlaceholder-Uni3xW09.cjs +0 -15
  116. package/components/GamePlaceholder-fVPk29f9.cjs +0 -15
  117. package/components/GamePlaceholder-vUYYV2Ps.js +0 -85
  118. package/components/GameRules-41OkRwZu.js +0 -115
  119. package/components/GameRules-BwLJBo6z.cjs +0 -3
  120. package/components/GameRules-CRiycUU8.js +0 -115
  121. package/components/GameRules-CTKyBDZO.cjs +0 -3
  122. package/components/GameRules-CV9sxZYz.js +0 -126
  123. package/components/GameRules-CuuoMoqN.cjs +0 -3
  124. package/components/GameRules-Cy7jwBok.js +0 -126
  125. package/components/GameRules-DUD8OKC0.js +0 -115
  126. package/components/GameRules-Dkl0qVzr.js +0 -126
  127. package/components/GameRules-DpGqZdSj.cjs +0 -3
  128. package/components/GameRules-DrBYjWA6.cjs +0 -3
  129. package/components/GameRules-DrZ6w0LM.cjs +0 -3
  130. package/components/MiniGamesHub-9mWWh3N1.js +0 -1111
  131. package/components/MiniGamesHub-B6YnaRxS.cjs +0 -79
  132. package/components/MiniGamesHub-B9aQplHl.js +0 -1135
  133. package/components/MiniGamesHub-BRRQIXZj.cjs +0 -79
  134. package/components/MiniGamesHub-BWPRLpyq.cjs +0 -16
  135. package/components/MiniGamesHub-BXcQ_faH.js +0 -1022
  136. package/components/MiniGamesHub-BaMQ2sWj.js +0 -1105
  137. package/components/MiniGamesHub-BbkgB1GV.js +0 -1105
  138. package/components/MiniGamesHub-BjME_rom.cjs +0 -16
  139. package/components/MiniGamesHub-Bn-xvO1e.js +0 -1055
  140. package/components/MiniGamesHub-BpjzFxHO.cjs +0 -16
  141. package/components/MiniGamesHub-BtC6TmtK.cjs +0 -16
  142. package/components/MiniGamesHub-BvS3Q0HA.js +0 -1135
  143. package/components/MiniGamesHub-C-9Nf-x7.js +0 -1029
  144. package/components/MiniGamesHub-C0ESIt9P.cjs +0 -16
  145. package/components/MiniGamesHub-CWV1acJR.cjs +0 -79
  146. package/components/MiniGamesHub-CfIFEVOU.js +0 -1022
  147. package/components/MiniGamesHub-Cj_6ebsL.cjs +0 -16
  148. package/components/MiniGamesHub-CkVJjuZl.cjs +0 -79
  149. package/components/MiniGamesHub-CktxKKTj.cjs +0 -16
  150. package/components/MiniGamesHub-ClPq7L0V.cjs +0 -79
  151. package/components/MiniGamesHub-CrPltGGl.js +0 -1042
  152. package/components/MiniGamesHub-D2Eet3pe.js +0 -1048
  153. package/components/MiniGamesHub-D4fNnQ70.js +0 -1141
  154. package/components/MiniGamesHub-D9A4HvPC.js +0 -1135
  155. package/components/MiniGamesHub-DCCeYwnc.js +0 -1055
  156. package/components/MiniGamesHub-DuAv3Z6t.cjs +0 -79
  157. package/components/MiniGamesHub-DuyWceLB.cjs +0 -16
  158. package/components/MiniGamesHub-Dz8Ltp98.js +0 -1048
  159. package/components/MiniGamesHub-_uRBhzYg.js +0 -1029
  160. package/components/MiniGamesHub-gVFlxi4x.cjs +0 -79
  161. package/components/MiniGamesHub-kIXoGqbZ.cjs +0 -16
  162. package/components/MiniGamesHub-o7rVTqn5.cjs +0 -79
  163. package/components/MiniGamesHub-v8PPHifq.js +0 -1072
  164. package/components/MiniGamesHub-w5poRbtq.js +0 -1105
  165. package/components/MysteryChest-4_QXLnuB.js +0 -1298
  166. package/components/MysteryChest-B10zFJU3.cjs +0 -741
  167. package/components/MysteryChest-B4h9tqVR.js +0 -1301
  168. package/components/MysteryChest-BJCFkn02.cjs +0 -737
  169. package/components/MysteryChest-BXPAdruk.js +0 -1290
  170. package/components/MysteryChest-BuB9PD57.js +0 -1240
  171. package/components/MysteryChest-C1jSQFBT.cjs +0 -741
  172. package/components/MysteryChest-C40hwiCW.cjs +0 -745
  173. package/components/MysteryChest-CKPELFiF.cjs +0 -737
  174. package/components/MysteryChest-CRJtPhlo.cjs +0 -743
  175. package/components/MysteryChest-CScyc3Jw.cjs +0 -745
  176. package/components/MysteryChest-Cg48wdP6.cjs +0 -741
  177. package/components/MysteryChest-CheF_Rh5.cjs +0 -739
  178. package/components/MysteryChest-CkSMlhn1.cjs +0 -741
  179. package/components/MysteryChest-CrL8IXga.js +0 -1309
  180. package/components/MysteryChest-CrXzepqD.js +0 -1296
  181. package/components/MysteryChest-D5OWiZfM.js +0 -1250
  182. package/components/MysteryChest-D6eks4QE.js +0 -1254
  183. package/components/MysteryChest-DE2NS9aL.js +0 -1299
  184. package/components/MysteryChest-DJuhkpSa.cjs +0 -743
  185. package/components/MysteryChest-DOTlHt7A.js +0 -1248
  186. package/components/MysteryChest-DfggF659.js +0 -1262
  187. package/components/MysteryChest-Di-dVQnd.cjs +0 -745
  188. package/components/MysteryChest-DnstXEZJ.js +0 -1298
  189. package/components/MysteryChest-IcRh-Dcp.js +0 -1247
  190. package/components/MysteryChest-dyhqTxMg.cjs +0 -739
  191. package/components/MysteryChest-egeYjlMm.js +0 -1249
  192. package/components/WheelOfFortune--1feiOUD.js +0 -950
  193. package/components/WheelOfFortune-B0g1znMo.cjs +0 -627
  194. package/components/WheelOfFortune-BC0wwnC-.cjs +0 -617
  195. package/components/WheelOfFortune-BYxOqBjA.js +0 -928
  196. package/components/WheelOfFortune-BgUB1tnc.js +0 -942
  197. package/components/WheelOfFortune-Bh2XAbs4.cjs +0 -619
  198. package/components/WheelOfFortune-Bq6wSR__.cjs +0 -627
  199. package/components/WheelOfFortune-BwmCnHru.js +0 -926
  200. package/components/WheelOfFortune-CEH-5uIV.js +0 -950
  201. package/components/WheelOfFortune-CHgHhi9q.cjs +0 -619
  202. package/components/WheelOfFortune-CRgnumXh.cjs +0 -627
  203. package/components/WheelOfFortune-CZ2cERqz.cjs +0 -619
  204. package/components/WheelOfFortune-CpYsfi8D.js +0 -934
  205. package/components/WheelOfFortune-Cy64rFDw.js +0 -942
  206. package/components/WheelOfFortune-D2dcgbxg.js +0 -934
  207. package/components/WheelOfFortune-DZ7fGpS9.cjs +0 -619
  208. package/components/WheelOfFortune-DZg0i79U.js +0 -949
  209. package/components/WheelOfFortune-DawF7WTd.js +0 -944
  210. package/components/WheelOfFortune-DjdKhLGF.cjs +0 -617
  211. package/components/WheelOfFortune-KpRQWn3C.cjs +0 -627
  212. package/components/WheelOfFortune-M5VMIsnw.cjs +0 -619
  213. package/components/WheelOfFortune-kXjxp6t7.js +0 -926
  214. package/components/WheelOfFortune-pBG33-QJ.js +0 -933
  215. package/components/WheelOfFortuneWheel-B4fe-idJ.cjs +0 -3
  216. package/components/WheelOfFortuneWheel-BABzaEBd.js +0 -1812
  217. package/components/WheelOfFortuneWheel-BQFaJ7ZB.cjs +0 -3
  218. package/components/WheelOfFortuneWheel-BYEHNHdI.js +0 -1807
  219. package/components/WheelOfFortuneWheel-BuBjvGRI.cjs +0 -3
  220. package/components/WheelOfFortuneWheel-CQCLWOFi.js +0 -1908
  221. package/components/WheelOfFortuneWheel-CsOjhUcv.cjs +0 -3
  222. package/components/WheelOfFortuneWheel-DUE4gyGP.js +0 -1741
  223. package/components/WheelOfFortuneWheel-DXhwrWpD.js +0 -1978
  224. package/components/WheelOfFortuneWheel-DgVQP4GA.js +0 -1735
  225. package/components/constants-BDMySuIA.cjs +0 -1
  226. package/components/constants-DNSPUges.cjs +0 -1
  227. package/components/constants-DdcZGwlM.js +0 -38
  228. package/components/constants-DgCBmV7S.js +0 -29
  229. package/components/countdown-2m_26DZf.js +0 -157
  230. package/components/countdown-Bp3yWidJ.cjs +0 -1
  231. package/components/countdown-CH5h-cVr.js +0 -146
  232. package/components/countdown-CnUPVFlE.cjs +0 -1
  233. package/components/countdown-YmZm4DrD.js +0 -146
  234. package/components/sparkles-B2kHtb3R.js +0 -14
  235. package/components/sparkles-BBLT1jhq.js +0 -14
  236. package/components/sparkles-BIl7-lvq.cjs +0 -1
  237. package/components/sparkles-BRrL2C0i.cjs +0 -1
  238. package/components/sparkles-BXFe6GK6.js +0 -18
  239. package/components/sparkles-Cot5wZXx.cjs +0 -1
  240. package/components/sparkles-DKbGLSaY.cjs +0 -1
  241. package/components/sparkles-WqrZ-iXs.js +0 -18
  242. package/components/spin-controller-BF6ymCY4.cjs +0 -1
  243. package/components/spin-controller-Bc8nQATS.cjs +0 -1
  244. package/components/spin-controller-CC3QZvWl.js +0 -175
  245. package/components/spin-controller-CEIahkSh.cjs +0 -1
  246. package/components/spin-controller-CUb1rpPl.js +0 -177
  247. package/components/spin-controller-CVXfvzb7.cjs +0 -1
  248. package/components/spin-controller-DkSQ07IL.js +0 -177
  249. package/components/spin-controller-Dxxx3-ya.js +0 -175
  250. package/components/utils-AGVOgUGK.cjs +0 -3
  251. package/components/utils-B3aNdyMX.js +0 -6055
  252. package/components/utils-DEov6Qk_.js +0 -6007
  253. package/components/utils-DQ220WK3.js +0 -6016
  254. package/components/utils-DwrHy7a0.js +0 -6007
  255. package/components/utils-Dwz-wUFC.cjs +0 -3
  256. package/components/utils-Rda5erjI.cjs +0 -3
  257. package/components/utils-fG_nzyoc.cjs +0 -3
  258. package/components/utils-qUyu-MNU.js +0 -6064
@@ -1,231 +0,0 @@
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">&nbsp;</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">&hellip;</span>'), at = C("<button> </button>"), st = C('<div class="game-history-pagination svelte-1rfwd7v"><button class="pagination-button pagination-nav svelte-1rfwd7v">&#8249;</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">&#8250;</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
- };
@@ -1,12 +0,0 @@
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">&nbsp;</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">&hellip;</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">&#8249;</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">&#8250;</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;
@@ -1,12 +0,0 @@
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">&nbsp;</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">&hellip;</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">&#8249;</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">&#8250;</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;
@@ -1,231 +0,0 @@
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">&nbsp;</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">&hellip;</span>'), at = C("<button> </button>"), st = C('<div class="game-history-pagination svelte-1rfwd7v"><button class="pagination-button pagination-nav svelte-1rfwd7v">&#8249;</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">&#8250;</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
- };
@@ -1,12 +0,0 @@
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">&nbsp;</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">&hellip;</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">&#8249;</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">&#8250;</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;
@@ -1 +0,0 @@
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;