@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,402 +0,0 @@
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
- };