@everymatrix/mini-games-hub 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/components/BackButton-BMWvZ9Lb.js +39 -0
  2. package/components/BackButton-BNp3jVLa.js +39 -0
  3. package/components/BackButton-Bi1zFTns.js +38 -0
  4. package/components/BackButton-BvRNh4nJ.js +39 -0
  5. package/components/BackButton-C2-HXI2m.cjs +1 -0
  6. package/components/BackButton-C_v3b0Ky.cjs +1 -0
  7. package/components/BackButton-D5gfQ3NI.cjs +1 -0
  8. package/components/BackButton-DOW_OP-H.cjs +1 -0
  9. package/components/BackButton-DznJk3U4.js +38 -0
  10. package/components/BackButton-gIVGAf6v.js +38 -0
  11. package/components/BackButton-s0YqvufR.cjs +1 -0
  12. package/components/CoinFlip-5qt33VpA.js +399 -0
  13. package/components/CoinFlip-9-7FNYAn.js +364 -0
  14. package/components/CoinFlip-B0Q-xZDI.cjs +1 -0
  15. package/components/CoinFlip-BWNJK7aS.js +402 -0
  16. package/components/CoinFlip-BaNNMAYb.cjs +1 -0
  17. package/components/CoinFlip-BgRZmhbg.js +367 -0
  18. package/components/CoinFlip-COwy7cq1.cjs +1 -0
  19. package/components/CoinFlip-CSel9VZR.js +398 -0
  20. package/components/CoinFlip-CfHvSwpV.cjs +1 -0
  21. package/components/CoinFlip-ClRh6gz2.js +363 -0
  22. package/components/CoinFlip-D7Bwnl8W.cjs +1 -0
  23. package/components/CoinFlip-D8OLaQiA.js +367 -0
  24. package/components/CoinFlip-Dg2ZA_B2.cjs +1 -0
  25. package/components/CoinFlip-DoASIhfX.cjs +1 -0
  26. package/components/CoinFlip-pvtcTO4f.cjs +1 -0
  27. package/components/CoinFlip-vrZpkrnS.js +402 -0
  28. package/components/CoinRoyale-4Oe-x5-J.cjs +734 -0
  29. package/components/CoinRoyale-9nHMXODj.js +1017 -0
  30. package/components/CoinRoyale-B3bu5S4n.cjs +734 -0
  31. package/components/CoinRoyale-B4dKiGgG.cjs +736 -0
  32. package/components/CoinRoyale-BNxFDqe1.js +999 -0
  33. package/components/CoinRoyale-BwNvG3QI.js +1009 -0
  34. package/components/CoinRoyale-Bza84vCL.cjs +738 -0
  35. package/components/CoinRoyale-C-x6uDgh.js +989 -0
  36. package/components/CoinRoyale-CAI2JCvG.js +1020 -0
  37. package/components/CoinRoyale-CGHKZ-kc.js +997 -0
  38. package/components/CoinRoyale-CbqmmMPg.cjs +736 -0
  39. package/components/CoinRoyale-ChWsctqo.cjs +759 -0
  40. package/components/CoinRoyale-Cw8ImDP5.js +1040 -0
  41. package/components/CoinRoyale-CxIBSKFK.js +1017 -0
  42. package/components/CoinRoyale-D-rF6BV4.js +1019 -0
  43. package/components/CoinRoyale-DH-tQHtT.cjs +736 -0
  44. package/components/CoinRoyale-DmcgvBwG.js +997 -0
  45. package/components/CoinRoyale-d2utu3E3.cjs +759 -0
  46. package/components/CoinRoyale-xAkf1dm_.cjs +738 -0
  47. package/components/DrawResult-BHZeM1oX.cjs +1 -0
  48. package/components/DrawResult-BVtwLs-z.js +373 -0
  49. package/components/DrawResult-CG5KTjF7.cjs +1 -0
  50. package/components/DrawResult-COyPm6Cv.cjs +1 -0
  51. package/components/DrawResult-CbLPtjvZ.js +343 -0
  52. package/components/DrawResult-Cul15bW0.cjs +1 -0
  53. package/components/DrawResult-DMRODSxk.cjs +1 -0
  54. package/components/DrawResult-DTJJfQkP.js +373 -0
  55. package/components/DrawResult-DdL4fFZM.js +343 -0
  56. package/components/DrawResult-DxG4CaKK.cjs +1 -0
  57. package/components/DrawResult-SyzKXHgd.js +343 -0
  58. package/components/DrawResult-ZEAa0flC.js +373 -0
  59. package/components/GameCard-8k9KvRun.cjs +3 -0
  60. package/components/GameCard-A3k7RxF5.js +63 -0
  61. package/components/GameCard-B2td6J8K.js +62 -0
  62. package/components/{GameCard-BIn8BJ4U.cjs → GameCard-Bku9nP58.cjs} +3 -3
  63. package/components/GameCard-CBGi9i6m.cjs +3 -0
  64. package/components/GameCard-CHZmVd6n.cjs +3 -0
  65. package/components/GameCard-Cj4zAE8_.js +59 -0
  66. package/components/GameCard-CrKoQU1B.js +59 -0
  67. package/components/GameCard-DFVjSdtd.cjs +3 -0
  68. package/components/GameCard-DHetS96-.js +66 -0
  69. package/components/GameCard-DcWpuwMl.cjs +3 -0
  70. package/components/GameCard-jIcB63Tt.js +62 -0
  71. package/components/GameHistory-9Mf_u0La.js +231 -0
  72. package/components/GameHistory-BktmYuDa.js +231 -0
  73. package/components/GameHistory-CGAhNQKk.js +231 -0
  74. package/components/GameHistory-ChYjWDsa.cjs +12 -0
  75. package/components/GameHistory-CmiIChL-.cjs +12 -0
  76. package/components/GameHistory-CrrlOaAg.js +231 -0
  77. package/components/GameHistory-DVsHn3lx.cjs +12 -0
  78. package/components/GameHistory-_jU0BiqI.js +231 -0
  79. package/components/GameHistory-aQf3vf9u.cjs +12 -0
  80. package/components/GameHistory-lyXo0tYb.cjs +12 -0
  81. package/components/GameHistory-uzrT81kU.js +231 -0
  82. package/components/GameHistory-v6cI-TIF.cjs +12 -0
  83. package/components/GamePlaceholder-4oI8uJ-1.cjs +1 -0
  84. package/components/GamePlaceholder-Bp4nTJeL.js +84 -0
  85. package/components/GamePlaceholder-COiYGwNi.cjs +15 -0
  86. package/components/GamePlaceholder-CfJ4hx9w.js +70 -0
  87. package/components/GamePlaceholder-D9JEXsAk.js +84 -0
  88. package/components/GamePlaceholder-DGnB06iW.js +71 -0
  89. package/components/GamePlaceholder-DS5evGU6.js +85 -0
  90. package/components/GamePlaceholder-DmiU1G7G.cjs +15 -0
  91. package/components/GamePlaceholder-Dwo_YAUQ.cjs +1 -0
  92. package/components/GamePlaceholder-Uni3xW09.cjs +15 -0
  93. package/components/GamePlaceholder-fVPk29f9.cjs +15 -0
  94. package/components/GamePlaceholder-vUYYV2Ps.js +85 -0
  95. package/components/GameRules-41OkRwZu.js +115 -0
  96. package/components/GameRules-BwLJBo6z.cjs +3 -0
  97. package/components/GameRules-CRiycUU8.js +115 -0
  98. package/components/GameRules-CTKyBDZO.cjs +3 -0
  99. package/components/GameRules-CV9sxZYz.js +126 -0
  100. package/components/GameRules-CuuoMoqN.cjs +3 -0
  101. package/components/GameRules-Cy7jwBok.js +126 -0
  102. package/components/GameRules-DUD8OKC0.js +115 -0
  103. package/components/GameRules-Dkl0qVzr.js +126 -0
  104. package/components/GameRules-DpGqZdSj.cjs +3 -0
  105. package/components/GameRules-DrBYjWA6.cjs +3 -0
  106. package/components/GameRules-DrZ6w0LM.cjs +3 -0
  107. package/components/MiniGamesHub-BWPRLpyq.cjs +16 -0
  108. package/components/MiniGamesHub-BXcQ_faH.js +1022 -0
  109. package/components/MiniGamesHub-BjME_rom.cjs +16 -0
  110. package/components/{MiniGamesHub-D3BazHMT.js → MiniGamesHub-Bn-xvO1e.js} +419 -743
  111. package/components/MiniGamesHub-BpjzFxHO.cjs +16 -0
  112. package/components/MiniGamesHub-BtC6TmtK.cjs +16 -0
  113. package/components/MiniGamesHub-C-9Nf-x7.js +1029 -0
  114. package/components/MiniGamesHub-C0ESIt9P.cjs +16 -0
  115. package/components/MiniGamesHub-CfIFEVOU.js +1022 -0
  116. package/components/MiniGamesHub-Cj_6ebsL.cjs +16 -0
  117. package/components/MiniGamesHub-CktxKKTj.cjs +16 -0
  118. package/components/MiniGamesHub-CrPltGGl.js +1042 -0
  119. package/components/MiniGamesHub-D2Eet3pe.js +1048 -0
  120. package/components/{MiniGamesHub-Cu8_8yFl.js → MiniGamesHub-DCCeYwnc.js} +416 -760
  121. package/components/MiniGamesHub-DuyWceLB.cjs +16 -0
  122. package/components/MiniGamesHub-Dz8Ltp98.js +1048 -0
  123. package/components/MiniGamesHub-_uRBhzYg.js +1029 -0
  124. package/components/MiniGamesHub-kIXoGqbZ.cjs +16 -0
  125. package/components/MiniGamesHub-v8PPHifq.js +1072 -0
  126. package/components/MysteryChest-B4h9tqVR.js +1301 -0
  127. package/components/MysteryChest-BJCFkn02.cjs +737 -0
  128. package/components/MysteryChest-BXPAdruk.js +1290 -0
  129. package/components/MysteryChest-BuB9PD57.js +1240 -0
  130. package/components/MysteryChest-C40hwiCW.cjs +745 -0
  131. package/components/MysteryChest-CKPELFiF.cjs +737 -0
  132. package/components/MysteryChest-CRJtPhlo.cjs +743 -0
  133. package/components/MysteryChest-CScyc3Jw.cjs +745 -0
  134. package/components/MysteryChest-CheF_Rh5.cjs +739 -0
  135. package/components/MysteryChest-CrL8IXga.js +1309 -0
  136. package/components/MysteryChest-CrXzepqD.js +1296 -0
  137. package/components/MysteryChest-D6eks4QE.js +1254 -0
  138. package/components/MysteryChest-DJuhkpSa.cjs +743 -0
  139. package/components/MysteryChest-DOTlHt7A.js +1248 -0
  140. package/components/MysteryChest-DfggF659.js +1262 -0
  141. package/components/MysteryChest-Di-dVQnd.cjs +745 -0
  142. package/components/MysteryChest-DnstXEZJ.js +1298 -0
  143. package/components/MysteryChest-IcRh-Dcp.js +1247 -0
  144. package/components/MysteryChest-dyhqTxMg.cjs +739 -0
  145. package/components/WheelOfFortune--1feiOUD.js +950 -0
  146. package/components/WheelOfFortune-B0g1znMo.cjs +627 -0
  147. package/components/{WheelOfFortune-BlHeZ0q7.cjs → WheelOfFortune-BC0wwnC-.cjs} +8 -23
  148. package/components/{WheelOfFortune-CnaDpfpq.js → WheelOfFortune-BYxOqBjA.js} +151 -177
  149. package/components/WheelOfFortune-BgUB1tnc.js +942 -0
  150. package/components/WheelOfFortune-Bh2XAbs4.cjs +619 -0
  151. package/components/WheelOfFortune-BwmCnHru.js +926 -0
  152. package/components/WheelOfFortune-CHgHhi9q.cjs +619 -0
  153. package/components/WheelOfFortune-CRgnumXh.cjs +627 -0
  154. package/components/WheelOfFortune-CZ2cERqz.cjs +619 -0
  155. package/components/WheelOfFortune-CpYsfi8D.js +934 -0
  156. package/components/WheelOfFortune-Cy64rFDw.js +942 -0
  157. package/components/WheelOfFortune-DZ7fGpS9.cjs +619 -0
  158. package/components/WheelOfFortune-DZg0i79U.js +949 -0
  159. package/components/{WheelOfFortune-Lfc_l9kc.js → WheelOfFortune-DawF7WTd.js} +180 -231
  160. package/components/WheelOfFortune-DjdKhLGF.cjs +617 -0
  161. package/components/WheelOfFortune-M5VMIsnw.cjs +619 -0
  162. package/components/WheelOfFortune-kXjxp6t7.js +926 -0
  163. package/components/WheelOfFortune-pBG33-QJ.js +933 -0
  164. package/components/WheelOfFortuneWheel-7PqVvd_8.cjs +3 -0
  165. package/components/WheelOfFortuneWheel-B4fe-idJ.cjs +3 -0
  166. package/components/WheelOfFortuneWheel-BABzaEBd.js +1812 -0
  167. package/components/WheelOfFortuneWheel-BQFaJ7ZB.cjs +3 -0
  168. package/components/WheelOfFortuneWheel-BYEHNHdI.js +1807 -0
  169. package/components/WheelOfFortuneWheel-BoZ9evN7.cjs +3 -0
  170. package/components/WheelOfFortuneWheel-BuBjvGRI.cjs +3 -0
  171. package/components/{WheelOfFortuneWheel-BAR98ByP.js → WheelOfFortuneWheel-CQCLWOFi.js} +310 -302
  172. package/components/WheelOfFortuneWheel-CsOjhUcv.cjs +3 -0
  173. package/components/WheelOfFortuneWheel-DUE4gyGP.js +1741 -0
  174. package/components/{WheelOfFortuneWheel-DxFn6jjg.js → WheelOfFortuneWheel-DXhwrWpD.js} +548 -539
  175. package/components/WheelOfFortuneWheel-DgVQP4GA.js +1735 -0
  176. package/components/bg-scene-Bz42V1FW.cjs +1 -0
  177. package/components/bg-scene-DpHgKCHj.js +4 -0
  178. package/components/coin-heads-BuJOLpyg.cjs +1 -0
  179. package/components/coin-heads-loqcEtH2.js +4 -0
  180. package/components/coin-tails-20vJmhwv.cjs +1 -0
  181. package/components/coin-tails-BTbsTwkz.js +4 -0
  182. package/components/confetti-CIk02Iw8.cjs +1 -0
  183. package/components/confetti-QNsE8ssC.js +14 -0
  184. package/components/constants-BDMySuIA.cjs +1 -0
  185. package/components/constants-DNSPUges.cjs +1 -0
  186. package/components/{constants-BYsDpbRv.js → constants-DdcZGwlM.js} +28 -19
  187. package/components/constants-DgCBmV7S.js +29 -0
  188. package/components/constants-Ds7J0meH.cjs +1 -0
  189. package/components/constants-Q_kcdbM6.js +29 -0
  190. package/components/countdown-2m_26DZf.js +157 -0
  191. package/components/countdown-BhZfvy-p.cjs +1 -0
  192. package/components/countdown-Bp3yWidJ.cjs +1 -0
  193. package/components/countdown-CH5h-cVr.js +146 -0
  194. package/components/countdown-CnUPVFlE.cjs +1 -0
  195. package/components/countdown-DmWNNDzv.js +168 -0
  196. package/components/countdown-YmZm4DrD.js +146 -0
  197. package/components/countdown-o9wqo7P7.cjs +1 -0
  198. package/components/key-CFhvp9Ju.cjs +1 -0
  199. package/components/key-D1g9LqMU.js +4 -0
  200. package/components/mystery-chest-bg-CGT-JTBW.js +4 -0
  201. package/components/mystery-chest-bg-vrQMNafs.cjs +1 -0
  202. package/components/mystery-chest-empty-CSY7-Vbl.cjs +1 -0
  203. package/components/mystery-chest-empty-D7bbrCHH.js +4 -0
  204. package/components/mystery-chest-locked-CIxpYU3v.js +4 -0
  205. package/components/mystery-chest-locked-DiyrvNm3.cjs +1 -0
  206. package/components/mystery-chest-win-D1NYItcd.js +4 -0
  207. package/components/mystery-chest-win-OxXZtQQd.cjs +1 -0
  208. package/components/remaining-times-Dexper1E.js +52 -0
  209. package/components/remaining-times-DiYnfuZB.js +23 -0
  210. package/components/remaining-times-Eqo69UfM.cjs +1 -0
  211. package/components/remaining-times-Gt6ytHaa.cjs +1 -0
  212. package/components/sparkles-B2kHtb3R.js +14 -0
  213. package/components/sparkles-BBLT1jhq.js +14 -0
  214. package/components/sparkles-BIl7-lvq.cjs +1 -0
  215. package/components/sparkles-BRrL2C0i.cjs +1 -0
  216. package/components/sparkles-BXFe6GK6.js +18 -0
  217. package/components/sparkles-C2rT-gN_.cjs +1 -0
  218. package/components/sparkles-Cfa1xTlQ.js +14 -0
  219. package/components/sparkles-Cot5wZXx.cjs +1 -0
  220. package/components/sparkles-D1RTsqBU.js +18 -0
  221. package/components/sparkles-DKbGLSaY.cjs +1 -0
  222. package/components/sparkles-DmL-n8od.cjs +1 -0
  223. package/components/sparkles-WqrZ-iXs.js +18 -0
  224. package/components/spin-controller-3wmy9F5-.cjs +1 -0
  225. package/components/{spin-controller-CIshWmlA.cjs → spin-controller-BF6ymCY4.cjs} +1 -1
  226. package/components/spin-controller-Bc8nQATS.cjs +1 -0
  227. package/components/{spin-controller-BuBkKrNR.js → spin-controller-BcBfHUn9.js} +7 -7
  228. package/components/{spin-controller-REPdRwaB.js → spin-controller-CC3QZvWl.js} +8 -8
  229. package/components/spin-controller-CEIahkSh.cjs +1 -0
  230. package/components/spin-controller-CUb1rpPl.js +177 -0
  231. package/components/spin-controller-CVXfvzb7.cjs +1 -0
  232. package/components/spin-controller-DBglqs7W.js +175 -0
  233. package/components/spin-controller-Db-fwR9V.cjs +1 -0
  234. package/components/spin-controller-DkSQ07IL.js +177 -0
  235. package/components/spin-controller-Dxxx3-ya.js +175 -0
  236. package/components/utils-8EFTHKcu.cjs +3 -0
  237. package/components/utils-AGVOgUGK.cjs +3 -0
  238. package/components/{utils-C7uxZXaZ.js → utils-B3aNdyMX.js} +968 -958
  239. package/components/utils-BJHloM10.js +6055 -0
  240. package/components/utils-C1uNHR_J.cjs +3 -0
  241. package/components/{utils-d-JrZBJu.js → utils-DEov6Qk_.js} +902 -892
  242. package/components/utils-DQ220WK3.js +6016 -0
  243. package/components/utils-DwrHy7a0.js +6007 -0
  244. package/components/utils-Dwz-wUFC.cjs +3 -0
  245. package/components/utils-Rda5erjI.cjs +3 -0
  246. package/components/utils-fG_nzyoc.cjs +3 -0
  247. package/components/utils-qUyu-MNU.js +6064 -0
  248. package/es2015/mini-games-hub.cjs +1 -1
  249. package/es2015/mini-games-hub.js +1 -1
  250. package/esnext/mini-games-hub.cjs +1 -0
  251. package/esnext/mini-games-hub.js +1 -1
  252. package/package.json +12 -13
  253. package/components/GameCard-D3knomma.js +0 -56
  254. package/components/GameCard-Ds0FcnPp.js +0 -56
  255. package/components/MiniGamesHub-SjsgF4e2.cjs +0 -94
  256. package/components/WheelOfFortuneDrawResults-1lzyxrks.cjs +0 -1
  257. package/components/WheelOfFortuneDrawResults-DQweghnp.js +0 -301
  258. package/components/WheelOfFortuneDrawResults-dOeQDVub.js +0 -276
  259. package/components/WheelOfFortuneHistory-CQZ9QtVt.js +0 -232
  260. package/components/WheelOfFortuneHistory-DZNPM57t.cjs +0 -13
  261. package/components/WheelOfFortuneHistory-DygZEtcR.js +0 -232
  262. package/components/WheelOfFortuneRules-D3N1c8PX.js +0 -117
  263. package/components/WheelOfFortuneRules-DuiCet95.js +0 -128
  264. package/components/WheelOfFortuneRules-VAMAiK0m.cjs +0 -5
  265. package/components/WheelOfFortuneWheel-hSjxThyU.cjs +0 -3
  266. package/components/constants-DM6Vdc6Z.cjs +0 -1
  267. package/components/sparkles-BnriHiyw.cjs +0 -1
  268. package/components/sparkles-CSfeD2Zu.js +0 -25
  269. package/components/sparkles-CTrQ372y.js +0 -29
  270. package/components/utils-DQIHJIDu.cjs +0 -3
@@ -0,0 +1,39 @@
1
+ import { d as f, c as v, p as c, l as $, s as w, m as x, b as C, f as B } from "./WheelOfFortuneWheel-BABzaEBd.js";
2
+ import { G as y, aO as L, aT as i, ah as M, L as G, aP as H, aQ as T, aG as u, aR as j, aW as p } from "./utils-BJHloM10.js";
3
+ var O = B('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');
4
+ function P(d, a) {
5
+ y(a, !0);
6
+ const b = () => H(T, "$_", k), [k, m] = j(), s = c(a, "onClick", 7), o = c(a, "hidden", 7, !1);
7
+ var h = {
8
+ get onClick() {
9
+ return s();
10
+ },
11
+ set onClick(t) {
12
+ s(t), u();
13
+ },
14
+ get hidden() {
15
+ return o();
16
+ },
17
+ set hidden(t = !1) {
18
+ o(t), u();
19
+ }
20
+ }, e = O();
21
+ let n;
22
+ var r = L(i(e), 2), g = i(r, !0);
23
+ p(r), p(e), M(
24
+ (t) => {
25
+ n = $(e, 1, "game-back-button", null, n, { "game-back-button--hidden": o() }), w(g, t);
26
+ },
27
+ [() => b()("backToHub")]
28
+ ), x("click", e, function(...t) {
29
+ var l;
30
+ (l = s()) == null || l.apply(this, t);
31
+ }), C(d, e);
32
+ var _ = G(h);
33
+ return m(), _;
34
+ }
35
+ f(["click"]);
36
+ v(P, { onClick: {}, hidden: {} }, [], [], { mode: "open" });
37
+ export {
38
+ P as B
39
+ };
@@ -0,0 +1,39 @@
1
+ import { d as f, c as v, p as c, l as $, s as w, m as x, b as C, f as B } from "./WheelOfFortuneWheel-BYEHNHdI.js";
2
+ import { G as y, aO as L, aT as i, ah as M, L as G, aP as H, aQ as T, aG as u, aR as j, aW as p } from "./utils-B3aNdyMX.js";
3
+ var O = B('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');
4
+ function P(d, a) {
5
+ y(a, !0);
6
+ const b = () => H(T, "$_", k), [k, m] = j(), s = c(a, "onClick", 7), o = c(a, "hidden", 7, !1);
7
+ var h = {
8
+ get onClick() {
9
+ return s();
10
+ },
11
+ set onClick(t) {
12
+ s(t), u();
13
+ },
14
+ get hidden() {
15
+ return o();
16
+ },
17
+ set hidden(t = !1) {
18
+ o(t), u();
19
+ }
20
+ }, e = O();
21
+ let n;
22
+ var r = L(i(e), 2), g = i(r, !0);
23
+ p(r), p(e), M(
24
+ (t) => {
25
+ n = $(e, 1, "game-back-button", null, n, { "game-back-button--hidden": o() }), w(g, t);
26
+ },
27
+ [() => b()("backToHub")]
28
+ ), x("click", e, function(...t) {
29
+ var l;
30
+ (l = s()) == null || l.apply(this, t);
31
+ }), C(d, e);
32
+ var _ = G(h);
33
+ return m(), _;
34
+ }
35
+ f(["click"]);
36
+ v(P, { onClick: {}, hidden: {} }, [], [], { mode: "open" });
37
+ export {
38
+ P as B
39
+ };
@@ -0,0 +1,38 @@
1
+ import { d as _, c as f, p as l, l as v, h as $, m as w, b as x, f as C } from "./WheelOfFortuneWheel-DgVQP4GA.js";
2
+ import { G as B, ah as y, L, aO as M, aP as G, aT as c, aG as i, aQ as H, aS as S, aW as u } from "./utils-DwrHy7a0.js";
3
+ var T = C('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');
4
+ function j(p, a) {
5
+ B(a, !0);
6
+ const d = () => M(G, "$_", b), [b, h] = H(), s = l(a, "onClick", 7), o = l(a, "hidden", 7, !1);
7
+ var k = {
8
+ get onClick() {
9
+ return s();
10
+ },
11
+ set onClick(t) {
12
+ s(t), i();
13
+ },
14
+ get hidden() {
15
+ return o();
16
+ },
17
+ set hidden(t = !1) {
18
+ o(t), i();
19
+ }
20
+ }, e = T();
21
+ let n;
22
+ var r = S(c(e), 2), m = c(r, !0);
23
+ u(r), u(e), y(
24
+ (t) => {
25
+ n = v(e, 1, "game-back-button", null, n, { "game-back-button--hidden": o() }), $(m, t);
26
+ },
27
+ [() => d()("backToHub")]
28
+ ), w("click", e, function(...t) {
29
+ s()?.apply(this, t);
30
+ }), x(p, e);
31
+ var g = L(k);
32
+ return h(), g;
33
+ }
34
+ _(["click"]);
35
+ f(j, { onClick: {}, hidden: {} }, [], [], { mode: "open" });
36
+ export {
37
+ j as B
38
+ };
@@ -0,0 +1,39 @@
1
+ import { d as f, c as v, p as c, l as $, s as w, m as x, b as C, f as B } from "./WheelOfFortuneWheel-DXhwrWpD.js";
2
+ import { D as y, aO as M, aT as i, ae as D, I as H, aP as L, aQ as T, aD as u, aR as j, aW as p } from "./utils-qUyu-MNU.js";
3
+ var I = B('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');
4
+ function O(d, a) {
5
+ y(a, !0);
6
+ const b = () => L(T, "$_", k), [k, m] = j(), s = c(a, "onClick", 7), o = c(a, "hidden", 7, !1);
7
+ var h = {
8
+ get onClick() {
9
+ return s();
10
+ },
11
+ set onClick(t) {
12
+ s(t), u();
13
+ },
14
+ get hidden() {
15
+ return o();
16
+ },
17
+ set hidden(t = !1) {
18
+ o(t), u();
19
+ }
20
+ }, e = I();
21
+ let n;
22
+ var r = M(i(e), 2), g = i(r, !0);
23
+ p(r), p(e), D(
24
+ (t) => {
25
+ n = $(e, 1, "game-back-button", null, n, { "game-back-button--hidden": o() }), w(g, t);
26
+ },
27
+ [() => b()("backToHub")]
28
+ ), x("click", e, function(...t) {
29
+ var l;
30
+ (l = s()) == null || l.apply(this, t);
31
+ }), C(d, e);
32
+ var _ = H(h);
33
+ return m(), _;
34
+ }
35
+ f(["click"]);
36
+ v(O, { onClick: {}, hidden: {} }, [], [], { mode: "open" });
37
+ export {
38
+ O as B
39
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./WheelOfFortuneWheel-7PqVvd_8.cjs"),t=require("./utils-C1uNHR_J.cjs");var m=e.from_html('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');function i(p,s){t.push(s,!0);const d=()=>t.store_get(t.$format,"$_",h),[h,k]=t.setup_stores(),c=e.prop(s,"onClick",7),r=e.prop(s,"hidden",7,!1);var b={get onClick(){return c()},set onClick(n){c(n),t.flushSync()},get hidden(){return r()},set hidden(n=!1){r(n),t.flushSync()}},o=m();let l;var a=t.sibling(t.child(o),2),_=t.child(a,!0);t.reset(a),t.reset(o),t.template_effect(n=>{l=e.set_class(o,1,"game-back-button",null,l,{"game-back-button--hidden":r()}),e.set_text(_,n)},[()=>d()("backToHub")]),e.delegated("click",o,function(...n){var u;(u=c())==null||u.apply(this,n)}),e.append(p,o);var g=t.pop(b);return k(),g}e.delegate(["click"]);e.create_custom_element(i,{onClick:{},hidden:{}},[],[],{mode:"open"});exports.BackButton=i;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./WheelOfFortuneWheel-B4fe-idJ.cjs"),t=require("./utils-Rda5erjI.cjs");var m=e.from_html('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');function i(p,s){t.push(s,!0);const d=()=>t.store_get(t.$format,"$_",h),[h,k]=t.setup_stores(),c=e.prop(s,"onClick",7),r=e.prop(s,"hidden",7,!1);var b={get onClick(){return c()},set onClick(n){c(n),t.flushSync()},get hidden(){return r()},set hidden(n=!1){r(n),t.flushSync()}},o=m();let l;var a=t.sibling(t.child(o),2),_=t.child(a,!0);t.reset(a),t.reset(o),t.template_effect(n=>{l=e.set_class(o,1,"game-back-button",null,l,{"game-back-button--hidden":r()}),e.set_text(_,n)},[()=>d()("backToHub")]),e.delegated("click",o,function(...n){var u;(u=c())==null||u.apply(this,n)}),e.append(p,o);var g=t.pop(b);return k(),g}e.delegate(["click"]);e.create_custom_element(i,{onClick:{},hidden:{}},[],[],{mode:"open"});exports.BackButton=i;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./WheelOfFortuneWheel-BuBjvGRI.cjs"),t=require("./utils-AGVOgUGK.cjs");var m=e.from_html('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');function i(p,s){t.push(s,!0);const d=()=>t.store_get(t.$format,"$_",h),[h,k]=t.setup_stores(),c=e.prop(s,"onClick",7),r=e.prop(s,"hidden",7,!1);var b={get onClick(){return c()},set onClick(n){c(n),t.flushSync()},get hidden(){return r()},set hidden(n=!1){r(n),t.flushSync()}},o=m();let l;var a=t.sibling(t.child(o),2),_=t.child(a,!0);t.reset(a),t.reset(o),t.template_effect(n=>{l=e.set_class(o,1,"game-back-button",null,l,{"game-back-button--hidden":r()}),e.set_text(_,n)},[()=>d()("backToHub")]),e.delegated("click",o,function(...n){var u;(u=c())==null||u.apply(this,n)}),e.append(p,o);var g=t.pop(b);return k(),g}e.delegate(["click"]);e.create_custom_element(i,{onClick:{},hidden:{}},[],[],{mode:"open"});exports.BackButton=i;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./WheelOfFortuneWheel-BoZ9evN7.cjs"),t=require("./utils-8EFTHKcu.cjs");var g=e.from_html('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');function u(i,s){t.push(s,!0);const p=()=>t.store_get(t.$format,"$_",d),[d,h]=t.setup_stores(),c=e.prop(s,"onClick",7),r=e.prop(s,"hidden",7,!1);var k={get onClick(){return c()},set onClick(n){c(n),t.flushSync()},get hidden(){return r()},set hidden(n=!1){r(n),t.flushSync()}},o=g();let l;var a=t.sibling(t.child(o),2),b=t.child(a,!0);t.reset(a),t.reset(o),t.template_effect(n=>{l=e.set_class(o,1,"game-back-button",null,l,{"game-back-button--hidden":r()}),e.set_text(b,n)},[()=>p()("backToHub")]),e.delegated("click",o,function(...n){c()?.apply(this,n)}),e.append(i,o);var _=t.pop(k);return h(),_}e.delegate(["click"]);e.create_custom_element(u,{onClick:{},hidden:{}},[],[],{mode:"open"});exports.BackButton=u;
@@ -0,0 +1,38 @@
1
+ import { d as _, c as f, p as l, l as v, h as $, m as w, b as x, f as C } from "./WheelOfFortuneWheel-CQCLWOFi.js";
2
+ import { D as B, ae as y, I as M, aO as D, aP as H, aT as c, aD as i, aQ as L, aS as S, aW as u } from "./utils-DQ220WK3.js";
3
+ var T = C('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');
4
+ function j(p, a) {
5
+ B(a, !0);
6
+ const d = () => D(H, "$_", b), [b, k] = L(), s = l(a, "onClick", 7), o = l(a, "hidden", 7, !1);
7
+ var m = {
8
+ get onClick() {
9
+ return s();
10
+ },
11
+ set onClick(t) {
12
+ s(t), i();
13
+ },
14
+ get hidden() {
15
+ return o();
16
+ },
17
+ set hidden(t = !1) {
18
+ o(t), i();
19
+ }
20
+ }, e = T();
21
+ let n;
22
+ var r = S(c(e), 2), h = c(r, !0);
23
+ u(r), u(e), y(
24
+ (t) => {
25
+ n = v(e, 1, "game-back-button", null, n, { "game-back-button--hidden": o() }), $(h, t);
26
+ },
27
+ [() => d()("backToHub")]
28
+ ), w("click", e, function(...t) {
29
+ s()?.apply(this, t);
30
+ }), x(p, e);
31
+ var g = M(m);
32
+ return k(), g;
33
+ }
34
+ _(["click"]);
35
+ f(j, { onClick: {}, hidden: {} }, [], [], { mode: "open" });
36
+ export {
37
+ j as B
38
+ };
@@ -0,0 +1,38 @@
1
+ import { d as _, c as f, p as l, l as v, h as $, m as w, b as x, f as C } from "./WheelOfFortuneWheel-DUE4gyGP.js";
2
+ import { G as B, ah as y, L, aO as M, aP as G, aT as c, aG as i, aQ as H, aS as S, aW as u } from "./utils-DEov6Qk_.js";
3
+ var T = C('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');
4
+ function j(p, a) {
5
+ B(a, !0);
6
+ const d = () => M(G, "$_", b), [b, h] = H(), s = l(a, "onClick", 7), o = l(a, "hidden", 7, !1);
7
+ var k = {
8
+ get onClick() {
9
+ return s();
10
+ },
11
+ set onClick(t) {
12
+ s(t), i();
13
+ },
14
+ get hidden() {
15
+ return o();
16
+ },
17
+ set hidden(t = !1) {
18
+ o(t), i();
19
+ }
20
+ }, e = T();
21
+ let n;
22
+ var r = S(c(e), 2), m = c(r, !0);
23
+ u(r), u(e), y(
24
+ (t) => {
25
+ n = v(e, 1, "game-back-button", null, n, { "game-back-button--hidden": o() }), $(m, t);
26
+ },
27
+ [() => d()("backToHub")]
28
+ ), w("click", e, function(...t) {
29
+ s()?.apply(this, t);
30
+ }), x(p, e);
31
+ var g = L(k);
32
+ return h(), g;
33
+ }
34
+ _(["click"]);
35
+ f(j, { onClick: {}, hidden: {} }, [], [], { mode: "open" });
36
+ export {
37
+ j as B
38
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./WheelOfFortuneWheel-BQFaJ7ZB.cjs"),t=require("./utils-fG_nzyoc.cjs");var g=e.from_html('<button type="button"><svg class="game-back-button__icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5M5 12L12 19M5 12L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p class="game-back-button__label"> </p></button>');function u(i,s){t.push(s,!0);const p=()=>t.store_get(t.$format,"$_",d),[d,h]=t.setup_stores(),c=e.prop(s,"onClick",7),r=e.prop(s,"hidden",7,!1);var k={get onClick(){return c()},set onClick(n){c(n),t.flushSync()},get hidden(){return r()},set hidden(n=!1){r(n),t.flushSync()}},o=g();let l;var a=t.sibling(t.child(o),2),b=t.child(a,!0);t.reset(a),t.reset(o),t.template_effect(n=>{l=e.set_class(o,1,"game-back-button",null,l,{"game-back-button--hidden":r()}),e.set_text(b,n)},[()=>p()("backToHub")]),e.delegated("click",o,function(...n){c()?.apply(this,n)}),e.append(i,o);var _=t.pop(k);return h(),_}e.delegate(["click"]);e.create_custom_element(u,{onClick:{},hidden:{}},[],[],{mode:"open"});exports.BackButton=u;
@@ -0,0 +1,399 @@
1
+ var xt = Object.defineProperty, Et = Object.defineProperties;
2
+ var Mt = Object.getOwnPropertyDescriptors;
3
+ var $e = Object.getOwnPropertySymbols;
4
+ var St = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable;
5
+ var Me = Math.pow, qe = (m, r, i) => r in m ? xt(m, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[r] = i, Se = (m, r) => {
6
+ for (var i in r || (r = {}))
7
+ St.call(r, i) && qe(m, i, r[i]);
8
+ if ($e)
9
+ for (var i of $e(r))
10
+ Rt.call(r, i) && qe(m, i, r[i]);
11
+ return m;
12
+ }, Be = (m, r) => Et(m, Mt(r));
13
+ var Re = (m, r, i) => new Promise((fe, ie) => {
14
+ var E = (u) => {
15
+ try {
16
+ P(i.next(u));
17
+ } catch (L) {
18
+ ie(L);
19
+ }
20
+ }, O = (u) => {
21
+ try {
22
+ P(i.throw(u));
23
+ } catch (L) {
24
+ ie(L);
25
+ }
26
+ }, P = (u) => u.done ? fe(u.value) : Promise.resolve(u.value).then(E, O);
27
+ P((i = i.apply(m, r)).next());
28
+ });
29
+ import { d as At, c as Pt, p as C, o as Ft, n as _e, i as ve, l as Ae, j as Z, s as A, m as se, b as D, f as q, u as It } from "./WheelOfFortuneWheel-BYEHNHdI.js";
30
+ import { G as Ct, aM as Y, aC as kt, W as Je, au as w, a0 as t, aN as Ke, aO as p, aT as _, ah as $, L as Lt, aP as Dt, aQ as Yt, aX as Ot, aU as zt, aV as Ht, aG as k, aR as Nt, aW as v, b1 as Ut } from "./utils-B3aNdyMX.js";
31
+ import { E as Pe, R as Vt, T as Xt, k as Gt, j as jt, l as Fe, m as Wt, n as Qe, o as et, p as Zt } from "./constants-DgCBmV7S.js";
32
+ import { f as $t } from "./countdown-YmZm4DrD.js";
33
+ import { c as tt } from "./coin-heads-loqcEtH2.js";
34
+ import { c as qt } from "./coin-tails-BTbsTwkz.js";
35
+ var Bt = q('<div><span class="coin-royale__chev">︿</span> <span class="coin-royale__hint-text"> </span> <span class="coin-royale__chev coin-royale__chev--down">﹀</span></div> <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M9 11V5.5a1.5 1.5 0 0 1 3 0V11h.5V7.5a1.5 1.5 0 0 1 3 0V11h.5V9a1.5 1.5 0 0 1 3 0v6.5c0 3-2 5.5-5.5 5.5H12c-2 0-3.2-.8-4.2-2.3l-2.4-3.6a1.5 1.5 0 0 1 2.3-1.9L9 15.5V11Z"></path></svg>', 1), Jt = q('<div class="coin-royale__badge"><p class="coin-royale__badge-title"> </p> <p class="coin-royale__badge-countdown"> </p></div>'), Kt = q('<div class="coin-royale__badge"><p class="coin-royale__badge-title"> </p> <p class="coin-royale__badge-body"> </p> <button class="coin-royale__badge-close" type="button"> </button></div>'), Qt = q('<span class="coin-royale__flips-loader"></span>'), ea = q('<p class="coin-royale__flips"> <span class="coin-royale__flips-count"><img class="coin-royale__flips-icon" alt="" aria-hidden="true"/> <!></span></p>'), ta = q('<div class="coin-royale__play"><div class="coin-royale__stage"><div role="button"><div class="coin-royale__coin-shadow"></div> <div class="coin-royale__coin"><div class="coin-royale__coin-drop-shadow" aria-hidden="true"></div> <div class="coin-royale__coin-edge" aria-hidden="true"></div> <div class="coin-royale__face coin-royale__face--front"><img alt="" draggable="false"/></div> <div class="coin-royale__face coin-royale__face--back"><img alt="" draggable="false"/></div></div> <!></div> <!></div></div> <!> <button class="coin-royale__cta" type="button"> </button>', 1);
36
+ function aa(m, r) {
37
+ Ct(r, !0);
38
+ const i = () => Dt(Yt, "$_", fe), [fe, ie] = Nt();
39
+ let E = C(r, "program", 7, null), O = C(r, "endpoint", 7, null), P = C(r, "session", 7, null), u = C(r, "isAvailable", 7, !1), L = C(r, "spinResults", 15, null), b = C(r, "spinActive", 15, !1), re = C(r, "remainingTimesLoading", 7, !1), pe = C(r, "onFlip", 7, () => {
40
+ }), B = Y(kt({}));
41
+ Je(() => {
42
+ if (!u() && E()) {
43
+ const e = () => {
44
+ var n, l;
45
+ return w(B, $t((l = (n = E()) == null ? void 0 : n.next) == null ? void 0 : l.startTime), !0);
46
+ };
47
+ e();
48
+ const a = setInterval(e, 1e3);
49
+ return () => clearInterval(a);
50
+ }
51
+ });
52
+ let z = Y(!1), me;
53
+ const at = () => {
54
+ clearTimeout(me), me = setTimeout(() => w(z, !1), 400);
55
+ };
56
+ let J = Y(!1), F = Y(void 0), c = Y(void 0), H = Y(void 0), I = Y(void 0);
57
+ const ge = Ot(() => u() && !b() && !t(J) && !re());
58
+ let N = 0, U = !1, K = !1, ye = 0, Q = 0, he = 0, s = null, V = null, Ie, X = !1;
59
+ const G = (e, a = 1, n = 0) => {
60
+ t(c) && (t(c).style.transform = `translateY(${n}px) rotateX(${e}deg) scale(${a})`);
61
+ };
62
+ Je(() => {
63
+ if (!t(F) || !t(c) || !t(H)) return;
64
+ Ce(), G(N);
65
+ const e = new ResizeObserver(() => Ce());
66
+ return e.observe(t(F)), () => e.disconnect();
67
+ });
68
+ const Ce = () => {
69
+ if (!t(F) || !t(c) || !t(H)) return;
70
+ const e = t(F).clientWidth;
71
+ if (!e) return;
72
+ const a = e / 2 * Vt, n = Math.max(14, e * Xt), l = 2 * a * Math.tan(Math.PI / Pe) + 0.6;
73
+ t(c).style.setProperty("--half-t", `${(n / 2).toFixed(2)}px`), t(H).replaceChildren();
74
+ for (let o = 0; o < Pe; o++) {
75
+ const f = document.createElement("div");
76
+ f.className = `coin-royale__edge-seg coin-royale__edge-seg--${o % 2 === 0 ? "a" : "b"}`, f.style.width = `${l.toFixed(2)}px`, f.style.height = `${n.toFixed(2)}px`, f.style.transform = `translate(-50%,-50%) rotateZ(${o * 360 / Pe}deg) translateY(${(-a).toFixed(2)}px) rotateX(90deg)`, t(H).appendChild(f);
77
+ }
78
+ }, ke = (e) => {
79
+ N = e, s == null || s.cancel(), s = null, G(e, 1), t(c) && (t(c).style.animation = ""), t(I) && (t(I).style.opacity = "", t(I).style.width = "");
80
+ }, nt = (e, a) => new Promise((n) => {
81
+ if (!t(c)) return n();
82
+ s == null || s.cancel(), s = t(c).animate(e, Se({ fill: "forwards" }, a)), s.onfinish = () => n(), s.oncancel = () => n();
83
+ }), st = (e, a) => Re(this, null, function* () {
84
+ var o;
85
+ const n = new Headers({ "Content-Type": "application/json" });
86
+ P() && n.append("X-SessionId", P());
87
+ const l = yield fetch(new URL(`${O()}/v1/wof/draw/${(o = E()) == null ? void 0 : o.id}`), {
88
+ method: "PUT",
89
+ headers: n,
90
+ cache: "no-store",
91
+ body: JSON.stringify({ action: 1, guid: e }),
92
+ signal: a
93
+ });
94
+ if (!l.ok) throw new Error(`draw request failed: ${l.status}`);
95
+ return l.json();
96
+ }), oe = (e) => Re(this, null, function* () {
97
+ var ee, te;
98
+ if (!t(ge) || !t(c) || !t(F) || !O()) return;
99
+ pe()();
100
+ const a = typeof e == "number" ? e : N;
101
+ b(!0), w(z, !0), w(J, !1), s == null || s.cancel();
102
+ const n = -(t(F).clientHeight * Gt);
103
+ t(I) && (t(I).style.opacity = "0.3", t(I).style.width = "34%");
104
+ const l = () => new Promise((h, S) => requestAnimationFrame((Te) => X ? S(new Error("destroyed")) : h(Te)));
105
+ let o = !1, f = !1, g;
106
+ const x = zt(), d = new AbortController();
107
+ V = d;
108
+ const M = Promise.race([
109
+ st(x, d.signal),
110
+ new Promise((h, S) => {
111
+ g = setTimeout(
112
+ () => {
113
+ f = !0, d.abort(), S(new Error("draw timed out"));
114
+ },
115
+ jt
116
+ );
117
+ })
118
+ ]);
119
+ M.then(() => o = !0, () => o = !0);
120
+ let y = a;
121
+ try {
122
+ let h = yield l();
123
+ const S = h;
124
+ for (; !o || h - S < Fe; ) {
125
+ const R = yield l(), j = Math.min(R - h, 50) / 1e3;
126
+ h = R;
127
+ const ae = R - S, W = Math.min(ae / Wt, 1);
128
+ y += Qe * W * W * (3 - 2 * W) * j;
129
+ const ne = Math.min(ae / Fe, 1), ue = 1 - Me(1 - ne, 3), Ze = ne >= 1 ? Math.sin((ae - Fe) / 380) * 0.015 : 0;
130
+ G(y, 1 + et * (ue + Ze), n * (ue + Ze));
131
+ }
132
+ const Te = yield M;
133
+ clearTimeout(g);
134
+ const de = Ht(Te, "draw");
135
+ if (de.success !== !0) throw new Error("draw failed");
136
+ const ht = Be(Se({}, de), {
137
+ guid: x,
138
+ lotteryProgramID: (te = de.lotteryProgramID) != null ? te : (ee = E()) == null ? void 0 : ee.id
139
+ }), wt = de.type === "noprize" ? 180 : 0, je = 360, xe = je + (wt - ((y + je) % 360 + 360) % 360 + 360) % 360, bt = y + xe, We = 2 * xe / Qe * 1e3, Tt = y, Ee = yield l();
140
+ for (let R = Ee; R - Ee < We; R = yield l()) {
141
+ const j = (R - Ee) / We, ae = 1 - Me(1 - j, 2), W = Math.min(j / 0.78, 1), ne = 1 - W * W, ue = j > 0.78 ? Math.sin((j - 0.78) / 0.22 * Math.PI) * 5 : 0;
142
+ G(Tt + xe * ae, 1 + et * ne, n * ne + ue);
143
+ }
144
+ if (ke(bt), yield new Promise((R) => Ie = setTimeout(R, 550)), X) return;
145
+ L(ht), b(!1);
146
+ } catch (h) {
147
+ if (clearTimeout(g), X) return;
148
+ console.log(h);
149
+ const S = y + ((a - y) % 360 + 360) % 360;
150
+ if (t(c) && (yield nt(
151
+ [
152
+ { transform: t(c).style.transform },
153
+ { transform: `translateY(0px) rotateX(${S}deg) scale(1)` }
154
+ ],
155
+ { duration: 420, easing: "cubic-bezier(.55,0,.75,.4)" }
156
+ )), X) return;
157
+ ke(S), f && w(J, !0), b(!1);
158
+ } finally {
159
+ V === d && (V = null), X || at();
160
+ }
161
+ }), it = () => {
162
+ w(J, !1), b(!1);
163
+ }, Le = (e) => {
164
+ t(c) && (s == null || s.cancel(), s = t(c).animate(
165
+ [
166
+ { transform: `translateY(0px) rotateX(${e}deg) scale(1)` },
167
+ {
168
+ transform: `translateY(0px) rotateX(${N}deg) scale(1)`
169
+ }
170
+ ],
171
+ {
172
+ duration: 320,
173
+ easing: "cubic-bezier(.22,.61,.32,1)",
174
+ fill: "forwards"
175
+ }
176
+ ), s.onfinish = () => {
177
+ s == null || s.cancel(), s = null, G(N, 1), t(c) && (t(c).style.animation = ""), w(z, !1);
178
+ });
179
+ }, rt = (e) => {
180
+ t(ge) && (U = !0, K = !1, ye = e.clientY, he = 0, Q = N, s == null || s.cancel(), t(c) && (t(c).style.animation = "none"), w(z, !0));
181
+ }, De = (e) => {
182
+ if (!U || b()) return;
183
+ const a = ye - e.clientY;
184
+ he = a, Math.abs(a) > 4 && (K = !0), G(Q + a * 1.1, 1 + Math.min(Math.abs(a) / 400, 0.12));
185
+ }, Ye = (e) => {
186
+ if (!U) return;
187
+ U = !1;
188
+ const a = ye - e.clientY;
189
+ if (Math.abs(a) > Zt) {
190
+ oe(Q + a * 1.1);
191
+ return;
192
+ }
193
+ Le(Q + a * 1.1);
194
+ }, Oe = () => {
195
+ U && (U = !1, K = !1, Le(Q + he * 1.1));
196
+ }, ot = () => {
197
+ if (K) {
198
+ K = !1;
199
+ return;
200
+ }
201
+ oe();
202
+ };
203
+ Ft(() => (window.addEventListener("pointermove", De), window.addEventListener("pointerup", Ye), window.addEventListener("pointercancel", Oe), () => {
204
+ X = !0, V == null || V.abort(), clearTimeout(Ie), clearTimeout(me), window.removeEventListener("pointermove", De), window.removeEventListener("pointerup", Ye), window.removeEventListener("pointercancel", Oe), s == null || s.cancel();
205
+ }));
206
+ var lt = {
207
+ get program() {
208
+ return E();
209
+ },
210
+ set program(e = null) {
211
+ E(e), k();
212
+ },
213
+ get endpoint() {
214
+ return O();
215
+ },
216
+ set endpoint(e = null) {
217
+ O(e), k();
218
+ },
219
+ get session() {
220
+ return P();
221
+ },
222
+ set session(e = null) {
223
+ P(e), k();
224
+ },
225
+ get isAvailable() {
226
+ return u();
227
+ },
228
+ set isAvailable(e = !1) {
229
+ u(e), k();
230
+ },
231
+ get spinResults() {
232
+ return L();
233
+ },
234
+ set spinResults(e = null) {
235
+ L(e), k();
236
+ },
237
+ get spinActive() {
238
+ return b();
239
+ },
240
+ set spinActive(e = !1) {
241
+ b(e), k();
242
+ },
243
+ get remainingTimesLoading() {
244
+ return re();
245
+ },
246
+ set remainingTimesLoading(e = !1) {
247
+ re(e), k();
248
+ },
249
+ get onFlip() {
250
+ return pe();
251
+ },
252
+ set onFlip(e = () => {
253
+ }) {
254
+ pe(e), k();
255
+ }
256
+ }, ze = ta(), we = Ke(ze), He = _(we), T = _(He);
257
+ let Ne;
258
+ var Ue = _(T);
259
+ _e(Ue, (e) => w(I, e), () => t(I));
260
+ var le = p(Ue, 2), Ve = p(_(le), 2);
261
+ _e(Ve, (e) => w(H, e), () => t(H));
262
+ var be = p(Ve, 2), ct = _(be);
263
+ v(be);
264
+ var Xe = p(be, 2), dt = _(Xe);
265
+ v(Xe), v(le), _e(le, (e) => w(c, e), () => t(c));
266
+ var ut = p(le, 2);
267
+ {
268
+ var _t = (e) => {
269
+ var a = Bt(), n = Ke(a);
270
+ let l;
271
+ var o = p(_(n), 2), f = _(o, !0);
272
+ v(o), Ut(2), v(n);
273
+ var g = p(n, 2);
274
+ let x;
275
+ $(
276
+ (d) => {
277
+ l = Ae(n, 1, "coin-royale__drag-hint", null, l, {
278
+ "coin-royale__drag-hint--hidden": t(z) || b()
279
+ }), A(f, d), x = Ae(g, 0, "coin-royale__finger-cue", null, x, {
280
+ "coin-royale__finger-cue--hidden": t(z) || b()
281
+ });
282
+ },
283
+ [() => i()("dragToFlip")]
284
+ ), D(e, a);
285
+ };
286
+ ve(ut, (e) => {
287
+ u() && e(_t);
288
+ });
289
+ }
290
+ v(T), _e(T, (e) => w(F, e), () => t(F));
291
+ var vt = p(T, 2);
292
+ {
293
+ var ft = (e) => {
294
+ var a = Jt(), n = _(a), l = _(n, !0);
295
+ v(n);
296
+ var o = p(n, 2), f = _(o, !0);
297
+ v(o), v(a), $(
298
+ (g, x) => {
299
+ A(l, g), A(f, x);
300
+ },
301
+ [
302
+ () => i()("nextAvailable"),
303
+ () => i()("countdown", {
304
+ values: {
305
+ days: t(B).days,
306
+ hours: t(B).hours,
307
+ minutes: t(B).minutes,
308
+ seconds: t(B).seconds
309
+ }
310
+ })
311
+ ]
312
+ ), D(e, a);
313
+ }, pt = (e) => {
314
+ var a = Kt(), n = _(a), l = _(n, !0);
315
+ v(n);
316
+ var o = p(n, 2), f = _(o, !0);
317
+ v(o);
318
+ var g = p(o, 2), x = _(g, !0);
319
+ v(g), v(a), $(
320
+ (d, M, y) => {
321
+ A(l, d), A(f, M), A(x, y);
322
+ },
323
+ [
324
+ () => i()("timeoutTitle"),
325
+ () => i()("timeoutDescription"),
326
+ () => i()("close")
327
+ ]
328
+ ), se("click", g, it), D(e, a);
329
+ };
330
+ ve(vt, (e) => {
331
+ u() ? t(J) && e(pt, 1) : e(ft);
332
+ });
333
+ }
334
+ v(He), v(we);
335
+ var Ge = p(we, 2);
336
+ {
337
+ var mt = (e) => {
338
+ var a = ea(), n = _(a), l = p(n), o = _(l), f = p(o, 2);
339
+ {
340
+ var g = (d) => {
341
+ var M = Qt();
342
+ D(d, M);
343
+ }, x = (d) => {
344
+ var M = It();
345
+ $(() => {
346
+ var y, ee, te, h;
347
+ return A(M, (h = (ee = (y = E()) == null ? void 0 : y.current) == null ? void 0 : ee.remainingTimes) != null ? h : (te = E()) == null ? void 0 : te.remainingTimes);
348
+ }), D(d, M);
349
+ };
350
+ ve(f, (d) => {
351
+ re() ? d(g) : d(x, -1);
352
+ });
353
+ }
354
+ v(l), v(a), $(
355
+ (d) => {
356
+ A(n, `${d != null ? d : ""} `), Z(o, "src", tt);
357
+ },
358
+ [() => i()("remainingFlips")]
359
+ ), D(e, a);
360
+ };
361
+ ve(Ge, (e) => {
362
+ u() && e(mt);
363
+ });
364
+ }
365
+ var ce = p(Ge, 2), gt = _(ce, !0);
366
+ v(ce), $(
367
+ (e, a) => {
368
+ Ne = Ae(T, 1, "coin-royale__flip-zone", null, Ne, {
369
+ "coin-royale__flip-zone--disabled": !u(),
370
+ "coin-royale__flip-zone--settling": b()
371
+ }), Z(T, "tabindex", u() ? 0 : -1), Z(T, "aria-label", e), Z(T, "aria-disabled", !t(ge)), Z(ct, "src", tt), Z(dt, "src", qt), ce.disabled = !u(), A(gt, a);
372
+ },
373
+ [() => i()("flipCoin"), () => i()("flipCoin")]
374
+ ), se("pointerdown", T, rt), se("click", T, ot), se("keydown", T, (e) => {
375
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), oe());
376
+ }), se("click", ce, () => oe()), D(m, ze);
377
+ var yt = Lt(lt);
378
+ return ie(), yt;
379
+ }
380
+ At(["pointerdown", "click", "keydown"]);
381
+ Pt(
382
+ aa,
383
+ {
384
+ program: {},
385
+ endpoint: {},
386
+ session: {},
387
+ isAvailable: {},
388
+ spinResults: {},
389
+ spinActive: {},
390
+ remainingTimesLoading: {},
391
+ onFlip: {}
392
+ },
393
+ [],
394
+ [],
395
+ { mode: "open" }
396
+ );
397
+ export {
398
+ aa as C
399
+ };