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