@opexa/portal-components 0.0.17 → 0.0.19

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 (542) hide show
  1. package/dist/client/hooks/index.d.ts +7 -1
  2. package/dist/client/hooks/useAuthenticateMutation.js +1 -1
  3. package/dist/client/hooks/useAuthenticateMutation.mjs +5 -4
  4. package/dist/client/hooks/useBonusesQuery.d.ts +3 -0
  5. package/dist/client/hooks/useBonusesQuery.js +1 -0
  6. package/dist/client/hooks/useBonusesQuery.mjs +38 -0
  7. package/dist/client/hooks/useCreateGameSessionMutation.d.ts +2 -2
  8. package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
  9. package/dist/client/hooks/useCreateGameSessionMutation.mjs +22 -22
  10. package/dist/client/hooks/useEndGameSessionMutation.d.ts +2 -2
  11. package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
  12. package/dist/client/hooks/useEndGameSessionMutation.mjs +18 -18
  13. package/dist/client/hooks/useFavoriteGamesQuery.d.ts +3 -0
  14. package/dist/client/hooks/useFavoriteGamesQuery.js +1 -0
  15. package/dist/client/hooks/useFavoriteGamesQuery.mjs +38 -0
  16. package/dist/client/hooks/useGlobalStore.d.ts +34 -14
  17. package/dist/client/hooks/useGlobalStore.js +1 -1
  18. package/dist/client/hooks/useGlobalStore.mjs +113 -34
  19. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +3 -0
  20. package/dist/client/hooks/useJackpotPayoutsQuery.js +1 -0
  21. package/dist/client/hooks/useJackpotPayoutsQuery.mjs +31 -0
  22. package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +2 -0
  23. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -0
  24. package/dist/client/hooks/useMarkGameAsFavoriteMutation.mjs +37 -0
  25. package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +2 -0
  26. package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
  27. package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
  28. package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
  29. package/dist/client/hooks/useMessagesQuery.js +1 -0
  30. package/dist/client/hooks/useMessagesQuery.mjs +47 -0
  31. package/dist/client/hooks/useSignInMutation.js +1 -1
  32. package/dist/client/hooks/useSignInMutation.mjs +3 -2
  33. package/dist/client/hooks/useSignOutMutation.js +1 -1
  34. package/dist/client/hooks/useSignOutMutation.mjs +11 -10
  35. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +2 -0
  36. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -0
  37. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.mjs +37 -0
  38. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
  39. package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
  40. package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
  41. package/dist/client/services/getSession.d.ts +1 -1
  42. package/dist/client/services/getSession.js +1 -1
  43. package/dist/client/services/getSession.mjs +4 -3
  44. package/dist/client-hooks.js +1 -1
  45. package/dist/client-hooks.mjs +92 -80
  46. package/dist/components/Account/Account.d.ts +17 -8
  47. package/dist/components/Account/Account.js +1 -1
  48. package/dist/components/Account/Account.mjs +253 -130
  49. package/dist/components/Account/account.recipe.d.ts +61 -0
  50. package/dist/components/Account/account.recipe.js +1 -0
  51. package/dist/components/Account/account.recipe.mjs +35 -0
  52. package/dist/components/Banner/Banner.js +1 -1
  53. package/dist/components/Banner/Banner.mjs +6 -6
  54. package/dist/components/BetRecords/BetRecords.js +1 -1
  55. package/dist/components/BetRecords/BetRecords.mjs +375 -319
  56. package/dist/components/Bonus/Bonus.client.d.ts +2 -0
  57. package/dist/components/Bonus/Bonus.client.js +1 -0
  58. package/dist/components/Bonus/Bonus.client.mjs +143 -0
  59. package/dist/components/Bonus/Bonus.d.ts +10 -0
  60. package/dist/components/Bonus/Bonus.js +1 -0
  61. package/dist/components/Bonus/Bonus.mjs +8 -0
  62. package/dist/components/Bonus/index.d.ts +1 -0
  63. package/dist/components/Bonuses/Bonuses.d.ts +15 -0
  64. package/dist/components/Bonuses/Bonuses.js +1 -0
  65. package/dist/components/Bonuses/Bonuses.mjs +126 -0
  66. package/dist/components/Bonuses/index.d.ts +1 -0
  67. package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
  68. package/dist/components/DepositWithdrawal/AmountChoices.mjs +11 -6
  69. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
  70. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +32 -27
  71. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
  72. package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +3 -2
  73. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  74. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +18 -13
  75. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  76. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +7 -2
  77. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  78. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +18 -13
  79. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  80. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +7 -2
  81. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
  82. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +10 -6
  83. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
  84. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -8
  85. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  86. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +43 -38
  87. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
  88. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +10 -6
  89. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
  90. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +12 -8
  91. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
  92. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -8
  93. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
  94. package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +50 -48
  95. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  96. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +28 -23
  97. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
  98. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -74
  99. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
  100. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +120 -108
  101. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
  102. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +77 -65
  103. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
  104. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -84
  105. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
  106. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +3 -2
  107. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  108. package/dist/components/Disclaimer/Disclaimer.mjs +16 -12
  109. package/dist/components/Empty.js +1 -0
  110. package/dist/components/{Empty/CloudIcon.mjs → Empty.mjs} +26 -11
  111. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -0
  112. package/dist/components/FavoriteGames/FavoriteGames.client.js +1 -0
  113. package/dist/components/FavoriteGames/FavoriteGames.client.mjs +132 -0
  114. package/dist/components/FavoriteGames/FavoriteGames.d.ts +6 -0
  115. package/dist/components/FavoriteGames/FavoriteGames.js +1 -0
  116. package/dist/components/FavoriteGames/FavoriteGames.mjs +17 -0
  117. package/dist/components/FavoriteGames/index.d.ts +1 -0
  118. package/dist/components/GameLaunch/GameLaunch.d.ts +1 -5
  119. package/dist/components/GameLaunch/GameLaunch.js +1 -1
  120. package/dist/components/GameLaunch/GameLaunch.mjs +151 -124
  121. package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +2 -2
  122. package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
  123. package/dist/components/GameLaunch/GameLaunchTrigger.mjs +7 -6
  124. package/dist/components/GameProviders/GameProviders.d.ts +7 -10
  125. package/dist/components/GameProviders/GameProviders.js +1 -0
  126. package/dist/components/GameProviders/GameProviders.mjs +122 -0
  127. package/dist/components/GameProviders/index.d.ts +1 -0
  128. package/dist/components/Games/Games.client.js +1 -1
  129. package/dist/components/Games/Games.client.mjs +96 -68
  130. package/dist/components/Games/Games.d.ts +7 -2
  131. package/dist/components/Games/Games.js +1 -1
  132. package/dist/components/Games/Games.mjs +4 -2
  133. package/dist/components/GamesSearch/GamesSearch.d.ts +6 -0
  134. package/dist/components/GamesSearch/GamesSearch.js +1 -0
  135. package/dist/components/GamesSearch/GamesSearch.mjs +199 -0
  136. package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +4 -0
  137. package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -0
  138. package/dist/components/GamesSearch/GamesSearchTrigger.mjs +50 -0
  139. package/dist/components/GamesSearch/index.d.ts +2 -0
  140. package/dist/components/InfiniteScroll.d.ts +10 -0
  141. package/dist/components/InfiniteScroll.js +1 -0
  142. package/dist/components/InfiniteScroll.mjs +30 -0
  143. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
  144. package/dist/components/JackpotCounter/JackpotCounter.client.js +1 -0
  145. package/dist/components/JackpotCounter/JackpotCounter.client.mjs +139 -0
  146. package/dist/components/JackpotCounter/JackpotCounter.d.ts +5 -3
  147. package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
  148. package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -110
  149. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +4 -1
  150. package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
  151. package/dist/components/JackpotCounter/JackpotCounterItem.mjs +370 -125
  152. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
  153. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +13 -8
  154. package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
  155. package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
  156. package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
  157. package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
  158. package/dist/components/Jackpots/JackpotItem.js +1 -0
  159. package/dist/components/Jackpots/JackpotItem.mjs +408 -0
  160. package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
  161. package/dist/components/Jackpots/JackpotItemMobile.js +1 -0
  162. package/dist/components/Jackpots/JackpotItemMobile.mjs +427 -0
  163. package/dist/components/Jackpots/JackpotRules.d.ts +6 -0
  164. package/dist/components/Jackpots/JackpotRules.js +1 -0
  165. package/dist/components/Jackpots/JackpotRules.mjs +78 -0
  166. package/dist/components/Jackpots/Jackpots.d.ts +8 -0
  167. package/dist/components/Jackpots/Jackpots.js +1 -0
  168. package/dist/components/Jackpots/Jackpots.mjs +61 -0
  169. package/dist/components/Jackpots/index.d.ts +1 -0
  170. package/dist/components/KYC/KYC.d.ts +5 -0
  171. package/dist/components/KYC/KYC.js +1 -0
  172. package/dist/components/KYC/KYC.mjs +84 -0
  173. package/dist/components/KYC/KYCContext.d.ts +3 -0
  174. package/dist/components/KYC/KYCContext.js +1 -0
  175. package/dist/components/KYC/KYCContext.mjs +11 -0
  176. package/dist/components/KYC/KYCTrigger.d.ts +5 -0
  177. package/dist/components/KYC/KYCTrigger.js +1 -0
  178. package/dist/components/KYC/KYCTrigger.mjs +42 -0
  179. package/dist/components/KYC/Step1.d.ts +1 -0
  180. package/dist/components/KYC/Step1.js +1 -0
  181. package/dist/components/KYC/Step1.mjs +67 -0
  182. package/dist/components/KYC/Step2.d.ts +1 -0
  183. package/dist/components/KYC/Step2.js +1 -0
  184. package/dist/components/KYC/Step2.mjs +126 -0
  185. package/dist/components/KYC/Step3.d.ts +1 -0
  186. package/dist/components/KYC/Step3.js +1 -0
  187. package/dist/components/KYC/Step3.mjs +98 -0
  188. package/dist/components/KYC/StepIndicator.d.ts +1 -0
  189. package/dist/components/KYC/StepIndicator.js +1 -0
  190. package/dist/components/KYC/StepIndicator.mjs +42 -0
  191. package/dist/components/KYC/UploadDocument.d.ts +1 -0
  192. package/dist/components/KYC/UploadDocument.js +1 -0
  193. package/dist/components/KYC/UploadDocument.mjs +69 -0
  194. package/dist/components/KYC/UploadSelfie.d.ts +1 -0
  195. package/dist/components/KYC/UploadSelfie.js +1 -0
  196. package/dist/components/KYC/UploadSelfie.mjs +65 -0
  197. package/dist/components/KYC/index.d.ts +2 -0
  198. package/dist/components/KYC/useKYC.d.ts +14 -0
  199. package/dist/components/KYC/useKYC.js +1 -0
  200. package/dist/components/KYC/useKYC.mjs +43 -0
  201. package/dist/components/KYC/utils.d.ts +1 -0
  202. package/dist/components/Marquee/Marquee.js +1 -1
  203. package/dist/components/Marquee/Marquee.mjs +7 -7
  204. package/dist/components/Messages/MessageItem.d.ts +4 -0
  205. package/dist/components/Messages/MessageItem.js +1 -0
  206. package/dist/components/Messages/MessageItem.mjs +75 -0
  207. package/dist/components/Messages/MessagePopup.d.ts +1 -0
  208. package/dist/components/Messages/MessagePopup.js +1 -0
  209. package/dist/components/Messages/MessagePopup.mjs +95 -0
  210. package/dist/components/Messages/Messages.d.ts +1 -0
  211. package/dist/components/Messages/Messages.js +1 -0
  212. package/dist/components/Messages/Messages.mjs +166 -0
  213. package/dist/components/Messages/index.d.ts +1 -0
  214. package/dist/components/Messages/utils.d.ts +3 -0
  215. package/dist/components/Messages/utils.js +1 -0
  216. package/dist/components/Messages/utils.mjs +16 -0
  217. package/dist/components/PortalProvider/PortalProvider.client.d.ts +2 -0
  218. package/dist/components/PortalProvider/{Providers.js → PortalProvider.client.js} +1 -1
  219. package/dist/components/PortalProvider/{Providers.mjs → PortalProvider.client.mjs} +28 -15
  220. package/dist/components/PortalProvider/PortalProvider.d.ts +9 -2
  221. package/dist/components/PortalProvider/PortalProvider.js +1 -1
  222. package/dist/components/PortalProvider/PortalProvider.mjs +17 -11
  223. package/dist/components/Promo/Promo.d.ts +4 -1
  224. package/dist/components/Promo/Promo.js +1 -1
  225. package/dist/components/Promo/Promo.mjs +2 -2
  226. package/dist/components/Promo/PromoContent.js +1 -1
  227. package/dist/components/Promo/PromoContent.mjs +75 -22
  228. package/dist/components/Promos/PromoCarousel.js +1 -1
  229. package/dist/components/Promos/PromoCarousel.mjs +30 -25
  230. package/dist/components/Promos/PromoGrid.js +1 -1
  231. package/dist/components/Promos/PromoGrid.mjs +14 -13
  232. package/dist/components/Promos/PromoItem.js +1 -1
  233. package/dist/components/Promos/PromoItem.mjs +11 -7
  234. package/dist/components/Promos/Promos.d.ts +4 -2
  235. package/dist/components/Protected/Protected.js +1 -1
  236. package/dist/components/Protected/Protected.mjs +3 -2
  237. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -0
  238. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +1 -0
  239. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.mjs +154 -0
  240. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
  241. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -0
  242. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.mjs +66 -0
  243. package/dist/components/Quests/Quests.d.ts +1 -0
  244. package/dist/components/Quests/Quests.js +1 -0
  245. package/dist/components/Quests/Quests.mjs +15 -0
  246. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -0
  247. package/dist/components/Quests/WageringQuest/WageringQuest.js +1 -0
  248. package/dist/components/Quests/WageringQuest/WageringQuest.mjs +109 -0
  249. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +8 -0
  250. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -0
  251. package/dist/components/Quests/WageringQuest/WageringQuestModal.mjs +63 -0
  252. package/dist/components/Quests/index.d.ts +1 -0
  253. package/dist/components/SignIn/SignIn.d.ts +0 -1
  254. package/dist/components/SignIn/SignIn.js +1 -1
  255. package/dist/components/SignIn/SignIn.mjs +34 -41
  256. package/dist/components/SignIn/SignInForm.js +1 -1
  257. package/dist/components/SignIn/SignInForm.mjs +169 -160
  258. package/dist/components/SignUp/SignUp.d.ts +0 -1
  259. package/dist/components/SignUp/SignUp.js +1 -1
  260. package/dist/components/SignUp/SignUp.mjs +34 -41
  261. package/dist/components/SignUp/SignUpForm.js +1 -1
  262. package/dist/components/SignUp/SignUpForm.mjs +125 -116
  263. package/dist/components/TopWins/TopWins.client.js +1 -1
  264. package/dist/components/TopWins/TopWins.client.mjs +15 -14
  265. package/dist/components/TopWins/TopWins.d.ts +2 -1
  266. package/dist/components/TopWins/TopWins.js +1 -1
  267. package/dist/components/TopWins/TopWins.mjs +4 -2
  268. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
  269. package/dist/components/TournamentCounter/TournamentCounter.client.js +1 -0
  270. package/dist/components/TournamentCounter/TournamentCounter.client.mjs +139 -0
  271. package/dist/components/TournamentCounter/TournamentCounter.d.ts +5 -3
  272. package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
  273. package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -108
  274. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
  275. package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
  276. package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
  277. package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
  278. package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
  279. package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
  280. package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
  281. package/dist/components/Tournaments/TournamentItem.js +2 -0
  282. package/dist/components/Tournaments/TournamentItem.mjs +262 -0
  283. package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
  284. package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
  285. package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
  286. package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
  287. package/dist/components/Tournaments/TournamentRules.js +1 -0
  288. package/dist/components/Tournaments/TournamentRules.mjs +78 -0
  289. package/dist/components/Tournaments/Tournaments.d.ts +8 -0
  290. package/dist/components/Tournaments/Tournaments.js +1 -0
  291. package/dist/components/Tournaments/Tournaments.mjs +47 -0
  292. package/dist/components/Tournaments/index.d.ts +1 -0
  293. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  294. package/dist/components/TransactionRecords/DepositRecordsTable.mjs +123 -100
  295. package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
  296. package/dist/components/TransactionRecords/TableFilters.js +1 -1
  297. package/dist/components/TransactionRecords/TableFilters.mjs +282 -179
  298. package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
  299. package/dist/components/TransactionRecords/TransactionRecords.mjs +22 -17
  300. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  301. package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +118 -97
  302. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  303. package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +120 -102
  304. package/dist/components/index.d.ts +10 -0
  305. package/dist/components.js +1 -1
  306. package/dist/components.mjs +56 -32
  307. package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
  308. package/dist/icons/ArrowNarrowDownIcon.js +1 -0
  309. package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
  310. package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
  311. package/dist/icons/ArrowNarrowUpIcon.js +1 -0
  312. package/dist/icons/ArrowNarrowUpIcon.mjs +22 -0
  313. package/dist/icons/Award01Icon.d.ts +2 -0
  314. package/dist/icons/Award01Icon.js +1 -0
  315. package/dist/icons/Award01Icon.mjs +22 -0
  316. package/dist/icons/Bell01Icon.d.ts +2 -0
  317. package/dist/icons/Bell01Icon.js +1 -0
  318. package/dist/icons/Bell01Icon.mjs +27 -0
  319. package/dist/icons/BellRingIcon.d.ts +2 -0
  320. package/dist/icons/BellRingIcon.js +1 -0
  321. package/dist/icons/BellRingIcon.mjs +27 -0
  322. package/dist/icons/CalendarIcon.d.ts +2 -0
  323. package/dist/icons/CalendarIcon.js +1 -0
  324. package/dist/icons/CalendarIcon.mjs +26 -0
  325. package/dist/icons/Camera01Icon.d.ts +2 -0
  326. package/dist/icons/Camera01Icon.js +1 -0
  327. package/dist/icons/Camera01Icon.mjs +25 -0
  328. package/dist/icons/CheckCircleIcon.d.ts +2 -0
  329. package/dist/icons/CheckCircleIcon.js +1 -0
  330. package/dist/icons/CheckCircleIcon.mjs +22 -0
  331. package/dist/icons/ClockStopWatchIcon.d.ts +2 -0
  332. package/dist/icons/ClockStopWatchIcon.js +1 -0
  333. package/dist/icons/ClockStopWatchIcon.mjs +26 -0
  334. package/dist/icons/CoinsHandIcon.d.ts +2 -0
  335. package/dist/icons/CoinsHandIcon.js +1 -0
  336. package/dist/icons/CoinsHandIcon.mjs +22 -0
  337. package/dist/icons/CoinsStacked02Icon.d.ts +2 -0
  338. package/dist/icons/CoinsStacked02Icon.js +1 -0
  339. package/dist/icons/CoinsStacked02Icon.mjs +22 -0
  340. package/dist/icons/CoinsSwap02Icon.d.ts +2 -0
  341. package/dist/icons/CoinsSwap02Icon.js +1 -0
  342. package/dist/icons/CoinsSwap02Icon.mjs +22 -0
  343. package/dist/icons/EyeIcon.d.ts +2 -0
  344. package/dist/icons/EyeIcon.js +1 -0
  345. package/dist/icons/EyeIcon.mjs +25 -0
  346. package/dist/icons/EyeOffIcon.d.ts +2 -0
  347. package/dist/icons/EyeOffIcon.js +1 -0
  348. package/dist/icons/EyeOffIcon.mjs +22 -0
  349. package/dist/icons/Flag06Icon.d.ts +2 -0
  350. package/dist/icons/Flag06Icon.js +1 -0
  351. package/dist/icons/Flag06Icon.mjs +22 -0
  352. package/dist/icons/HelpCircleIcon.d.ts +2 -0
  353. package/dist/icons/HelpCircleIcon.js +1 -0
  354. package/dist/icons/HelpCircleIcon.mjs +22 -0
  355. package/dist/icons/InfoCircleIcon.d.ts +2 -0
  356. package/dist/icons/InfoCircleIcon.js +1 -0
  357. package/dist/icons/InfoCircleIcon.mjs +27 -0
  358. package/dist/icons/Menu01Icon.d.ts +2 -0
  359. package/dist/icons/Menu01Icon.js +1 -0
  360. package/dist/icons/Menu01Icon.mjs +22 -0
  361. package/dist/icons/Menu03Icon.d.ts +2 -0
  362. package/dist/icons/Menu03Icon.js +1 -0
  363. package/dist/icons/Menu03Icon.mjs +22 -0
  364. package/dist/icons/SearchLgIcon.d.ts +2 -0
  365. package/dist/icons/SearchLgIcon.js +1 -0
  366. package/dist/icons/SearchLgIcon.mjs +22 -0
  367. package/dist/icons/Settings02Icon.d.ts +2 -0
  368. package/dist/icons/Settings02Icon.js +1 -0
  369. package/dist/icons/Settings02Icon.mjs +25 -0
  370. package/dist/icons/Star01Icon.d.ts +2 -0
  371. package/dist/icons/Star01Icon.js +1 -0
  372. package/dist/icons/Star01Icon.mjs +22 -0
  373. package/dist/icons/StarIcon.d.ts +2 -0
  374. package/dist/icons/StarIcon.js +1 -0
  375. package/dist/icons/StarIcon.mjs +18 -0
  376. package/dist/icons/StopWatchIcon.d.ts +2 -0
  377. package/dist/icons/StopWatchIcon.js +1 -0
  378. package/dist/icons/StopWatchIcon.mjs +22 -0
  379. package/dist/icons/Trophy01Icon.d.ts +2 -0
  380. package/dist/icons/Trophy01Icon.js +1 -0
  381. package/dist/icons/Trophy01Icon.mjs +22 -0
  382. package/dist/icons/UploadCloud02Icon.d.ts +2 -0
  383. package/dist/icons/UploadCloud02Icon.js +1 -0
  384. package/dist/icons/UploadCloud02Icon.mjs +22 -0
  385. package/dist/icons/index.d.ts +22 -0
  386. package/dist/icons.d.ts +2 -0
  387. package/dist/icons.js +1 -0
  388. package/dist/icons.mjs +94 -0
  389. package/dist/images/fantasma-games.png.js +1 -0
  390. package/dist/images/fantasma-games.png.mjs +4 -0
  391. package/dist/images/first-place.png.js +1 -0
  392. package/dist/images/first-place.png.mjs +4 -0
  393. package/dist/images/hacksaw-gaming.png.js +1 -0
  394. package/dist/images/hacksaw-gaming.png.mjs +4 -0
  395. package/dist/images/leaderboard.png.js +1 -0
  396. package/dist/images/leaderboard.png.mjs +4 -0
  397. package/dist/images/placeholder-avatar.png.js +1 -0
  398. package/dist/images/placeholder-avatar.png.mjs +4 -0
  399. package/dist/images/responsible-gaming.png.js +1 -1
  400. package/dist/images/responsible-gaming.png.mjs +2 -2
  401. package/dist/images/trophy-two.png.js +1 -0
  402. package/dist/images/trophy-two.png.mjs +4 -0
  403. package/dist/portal-components.css +1 -1
  404. package/dist/server/services/getSession.d.ts +1 -1
  405. package/dist/server/services/getSession.js +1 -1
  406. package/dist/server/services/getSession.mjs +6 -5
  407. package/dist/server/utils/index.d.ts +2 -1
  408. package/dist/server/utils/prefetchBonusesQuery.d.ts +1 -0
  409. package/dist/server/utils/prefetchBonusesQuery.js +1 -0
  410. package/dist/server/utils/prefetchBonusesQuery.mjs +26 -0
  411. package/dist/server/utils/prefetchFavoriteGamesQuery.d.ts +1 -0
  412. package/dist/server/utils/prefetchFavoriteGamesQuery.js +1 -0
  413. package/dist/server/utils/prefetchFavoriteGamesQuery.mjs +28 -0
  414. package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
  415. package/dist/server-utils.js +1 -1
  416. package/dist/server-utils.mjs +38 -36
  417. package/dist/theme.css +131 -5
  418. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  419. package/dist/third-parties/FacebookPixel/FacebookPixel.js +1 -0
  420. package/dist/third-parties/FacebookPixel/FacebookPixel.mjs +6 -0
  421. package/dist/third-parties/FacebookPixel/api.d.ts +1 -0
  422. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  423. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  424. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +1 -0
  425. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs +6 -0
  426. package/dist/third-parties/GoogleRecaptcha/api.d.ts +1 -0
  427. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  428. package/dist/third-parties/index.d.ts +2 -0
  429. package/dist/types/index.d.ts +8 -0
  430. package/dist/types.d.ts +1 -0
  431. package/dist/types.js +1 -0
  432. package/dist/types.mjs +1 -0
  433. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  434. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  435. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  436. package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
  437. package/dist/ui/Badge/Badge.d.ts +274 -27
  438. package/dist/ui/Badge/Badge.js +1 -1
  439. package/dist/ui/Badge/Badge.mjs +14 -10
  440. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  441. package/dist/ui/Badge/badge.anatomy.js +1 -1
  442. package/dist/ui/Badge/badge.anatomy.mjs +1 -0
  443. package/dist/ui/Badge/badge.recipe.d.ts +57 -9
  444. package/dist/ui/Badge/badge.recipe.js +1 -1
  445. package/dist/ui/Badge/badge.recipe.mjs +57 -21
  446. package/dist/ui/Button/button.recipe.d.ts +2 -2
  447. package/dist/ui/Button/button.recipe.js +1 -1
  448. package/dist/ui/Button/button.recipe.mjs +17 -7
  449. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  450. package/dist/ui/Checkbox/checkbox.recipe.mjs +8 -8
  451. package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
  452. package/dist/ui/Collapsible/Collapsible.js +1 -0
  453. package/dist/ui/Collapsible/Collapsible.mjs +13 -0
  454. package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
  455. package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
  456. package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
  457. package/dist/ui/Collapsible/index.d.ts +1 -0
  458. package/dist/ui/Combobox/Combobox.d.ts +815 -1
  459. package/dist/ui/Combobox/Combobox.js +1 -1
  460. package/dist/ui/Combobox/Combobox.mjs +27 -2
  461. package/dist/ui/Combobox/combobox.recipe.d.ts +58 -1
  462. package/dist/ui/Combobox/combobox.recipe.js +1 -0
  463. package/dist/ui/Combobox/combobox.recipe.mjs +15 -0
  464. package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
  465. package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
  466. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  467. package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
  468. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  469. package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
  470. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  471. package/dist/ui/Dialog/dialog.recipe.mjs +5 -5
  472. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  473. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  474. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  475. package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
  476. package/dist/ui/Field/field.recipe.js +1 -1
  477. package/dist/ui/Field/field.recipe.mjs +10 -12
  478. package/dist/ui/IconButton/iconButton.recipe.d.ts +3 -2
  479. package/dist/ui/IconButton/iconButton.recipe.js +1 -1
  480. package/dist/ui/IconButton/iconButton.recipe.mjs +7 -6
  481. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  482. package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
  483. package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
  484. package/dist/ui/PasswordInput/PasswordInput.js +1 -0
  485. package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
  486. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
  487. package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
  488. package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
  489. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  490. package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
  491. package/dist/ui/Popover/Popover.d.ts +55 -55
  492. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  493. package/dist/ui/Popover/popover.recipe.js +1 -1
  494. package/dist/ui/Popover/popover.recipe.mjs +1 -1
  495. package/dist/ui/Progress/Progress.d.ts +335 -1
  496. package/dist/ui/Progress/Progress.js +1 -1
  497. package/dist/ui/Progress/Progress.mjs +15 -2
  498. package/dist/ui/Progress/progress.recipe.d.ts +37 -1
  499. package/dist/ui/Progress/progress.recipe.js +1 -0
  500. package/dist/ui/Progress/progress.recipe.mjs +41 -0
  501. package/dist/ui/Prose.d.ts +2 -0
  502. package/dist/ui/Prose.js +1 -0
  503. package/dist/ui/Prose.mjs +47 -0
  504. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  505. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  506. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  507. package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
  508. package/dist/ui/Select/Select.d.ts +45 -45
  509. package/dist/ui/Select/select.recipe.d.ts +3 -3
  510. package/dist/ui/Select/select.recipe.js +1 -1
  511. package/dist/ui/Select/select.recipe.mjs +7 -6
  512. package/dist/ui/Table/table.recipe.js +1 -1
  513. package/dist/ui/Table/table.recipe.mjs +4 -4
  514. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  515. package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
  516. package/dist/ui/index.d.ts +3 -0
  517. package/dist/ui.js +1 -1
  518. package/dist/ui.mjs +36 -30
  519. package/dist/utils/queryKeys.d.ts +9 -2
  520. package/dist/utils/queryKeys.js +1 -1
  521. package/dist/utils/queryKeys.mjs +56 -38
  522. package/dist/utils.js +1 -1
  523. package/dist/utils.mjs +48 -41
  524. package/package.json +24 -12
  525. package/dist/client/hooks/useSiteQuery.d.ts +0 -3
  526. package/dist/client/hooks/useSiteQuery.js +0 -1
  527. package/dist/client/hooks/useSiteQuery.mjs +0 -23
  528. package/dist/components/Empty/CloudIcon.d.ts +0 -2
  529. package/dist/components/Empty/CloudIcon.js +0 -1
  530. package/dist/components/Empty/Empty.js +0 -1
  531. package/dist/components/Empty/Empty.mjs +0 -16
  532. package/dist/components/Empty/index.d.ts +0 -1
  533. package/dist/components/PortalProvider/Providers.d.ts +0 -2
  534. package/dist/components/Promos/PromosContent.d.ts +0 -2
  535. package/dist/images/ball.png.js +0 -1
  536. package/dist/images/ball.png.mjs +0 -4
  537. package/dist/images/card.png.js +0 -1
  538. package/dist/images/card.png.mjs +0 -4
  539. package/dist/server/utils/prefetchSiteQuery.d.ts +0 -1
  540. package/dist/server/utils/prefetchSiteQuery.js +0 -1
  541. package/dist/server/utils/prefetchSiteQuery.mjs +0 -23
  542. /package/dist/components/{Empty/Empty.d.ts → Empty.d.ts} +0 -0
@@ -2,7 +2,6 @@ import { ImageProps } from 'next/image';
2
2
  import { ReactNode } from 'react';
3
3
  export interface SignUpProps {
4
4
  logo: ImageProps['src'];
5
- banner: ImageProps['src'];
6
5
  children?: ReactNode;
7
6
  }
8
7
  export declare function SignUp(props: SignUpProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("@ark-ui/react"),s=require("next/image"),n=require("react"),o=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const c=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const a=require("../../icons/XIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const q=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");const r=require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const g=require("./SignUpForm.js");function h(i){const t=c.useGlobalStore(o.useShallow(u=>u.signUp));return e.jsxs(r.Root,{open:t.open,onOpenChange:u=>{t.setOpen(u.open)},lazyMount:!0,unmountOnExit:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:[e.jsx(r.Trigger,{asChild:!0,children:i.children??e.jsx(q.Button,{children:"Sign up"})}),e.jsxs(l.Portal,{children:[e.jsx(r.Backdrop,{}),e.jsx(r.Positioner,{children:e.jsxs(r.Content,{className:"mx-auto flex h-full w-full items-start lg:h-auto lg:w-fit",children:[e.jsx(s,{src:i.banner,alt:"h-auto w-[400px]",width:400,height:800,className:"hidden rounded-l-xl lg:block"}),e.jsxs("div",{className:"relative flex w-full flex-col items-start self-stretch bg-white p-3xl lg:w-[400px] lg:rounded-r-xl",children:[e.jsx(r.CloseTrigger,{children:e.jsx(a.XIcon,{})}),e.jsx(s,{src:i.logo,alt:"",width:200,height:100,className:"mx-auto h-auto w-[120px]",draggable:!1}),e.jsx(n.Suspense,{children:e.jsx(g.SignUpForm,{})})]})]})})]})]})}exports.SignUp=h;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("@ark-ui/react"),s=require("next/image"),o=require("react"),l=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../client/services/getSession.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const q=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const c=require("../../icons/XIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const a=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");const r=require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const g=require("./SignUpForm.js");function x(u){const n=q.useGlobalStore(l.useShallow(i=>i.signUp));return e.jsxs(r.Root,{open:n.open,onOpenChange:i=>{n.setOpen(i.open)},lazyMount:!0,unmountOnExit:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:[e.jsx(r.Trigger,{asChild:!0,children:u.children??e.jsx(a.Button,{children:"Sign up"})}),e.jsxs(t.Portal,{children:[e.jsx(r.Backdrop,{}),e.jsx(r.Positioner,{children:e.jsxs(r.Content,{className:"bg-bg-primary-alt mx-auto h-full w-full items-start p-3xl pb-4xl lg:h-auto lg:w-[400px] lg:rounded-xl",children:[e.jsx(r.CloseTrigger,{children:e.jsx(c.XIcon,{})}),e.jsx(s,{src:u.logo,alt:"",width:200,height:100,className:"mx-auto h-auto w-[120px]",draggable:!1}),e.jsx(o.Suspense,{children:e.jsx(g.SignUpForm,{})})]})})]})]})}exports.SignUp=x;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
3
- import { Portal as l } from "@ark-ui/react";
4
- import m from "next/image";
5
- import { Suspense as p } from "react";
6
- import { useShallow as n } from "zustand/shallow";
2
+ import { jsxs as t, jsx as o } from "react/jsx-runtime";
3
+ import { Portal as p } from "@ark-ui/react";
4
+ import e from "next/image";
5
+ import { Suspense as n } from "react";
6
+ import { useShallow as l } from "zustand/shallow";
7
7
  import "@opexa/portal-sdk-core";
8
8
  import "@tanstack/react-query";
9
9
  import "tiny-invariant";
@@ -13,6 +13,7 @@ import "../../utils/parseDecimal.mjs";
13
13
  import "../../utils/getLocaleInfo.mjs";
14
14
  import "../../utils/getQueryClient.mjs";
15
15
  import "../../utils/isMobile.mjs";
16
+ import "../../client/services/getSession.mjs";
16
17
  import "lodash-es";
17
18
  import "@opexa/portal-sdk-core/object-id";
18
19
  import { useGlobalStore as s } from "../../client/hooks/useGlobalStore.mjs";
@@ -22,66 +23,58 @@ import { XIcon as a } from "../../icons/XIcon.mjs";
22
23
  import "../../ui/AlertDialog/AlertDialog.mjs";
23
24
  import "../../ui/Avatar/Avatar.mjs";
24
25
  import "../../ui/Badge/Badge.mjs";
25
- import { Button as c } from "../../ui/Button/Button.mjs";
26
+ import { Button as u } from "../../ui/Button/Button.mjs";
26
27
  import "../../ui/Checkbox/Checkbox.mjs";
27
28
  import "../../ui/Clipboard/Clipboard.mjs";
29
+ import "../../ui/Collapsible/Collapsible.mjs";
30
+ import "../../ui/Combobox/Combobox.mjs";
28
31
  import "../../ui/DatePicker/DatePicker.mjs";
29
- import { Root as h, Trigger as u, Backdrop as d, Positioner as f, Content as g, CloseTrigger as x } from "../../ui/Dialog/Dialog.mjs";
32
+ import { Root as c, Trigger as g, Backdrop as h, Positioner as d, Content as f, CloseTrigger as x } from "../../ui/Dialog/Dialog.mjs";
30
33
  import "../../ui/Drawer/Drawer.mjs";
31
34
  import "../../ui/Field/Field.mjs";
32
35
  import "../../ui/IconButton/iconButton.recipe.mjs";
33
36
  import "../../ui/NumberInput/NumberInput.mjs";
37
+ import "../../ui/PasswordInput/PasswordInput.mjs";
34
38
  import "../../ui/PinInput/PinInput.mjs";
35
39
  import "../../ui/Popover/Popover.mjs";
36
40
  import "tailwind-merge";
41
+ import "../../ui/Progress/Progress.mjs";
37
42
  import "../../ui/SegmentGroup/SegmentGroup.mjs";
38
43
  import "../../ui/Select/Select.mjs";
39
44
  import "../../ui/Table/Table.mjs";
40
45
  import "../../ui/Tabs/Tabs.mjs";
41
- import { SignUpForm as w } from "./SignUpForm.mjs";
42
- function mr(o) {
43
- const e = s(n((i) => i.signUp));
46
+ import { SignUpForm as S } from "./SignUpForm.mjs";
47
+ function ao(i) {
48
+ const m = s(l((r) => r.signUp));
44
49
  return /* @__PURE__ */ t(
45
- h,
50
+ c,
46
51
  {
47
- open: e.open,
48
- onOpenChange: (i) => {
49
- e.setOpen(i.open);
52
+ open: m.open,
53
+ onOpenChange: (r) => {
54
+ m.setOpen(r.open);
50
55
  },
51
56
  lazyMount: !0,
52
57
  unmountOnExit: !0,
53
58
  closeOnEscape: !1,
54
59
  closeOnInteractOutside: !1,
55
60
  children: [
56
- /* @__PURE__ */ r(u, { asChild: !0, children: o.children ?? /* @__PURE__ */ r(c, { children: "Sign up" }) }),
57
- /* @__PURE__ */ t(l, { children: [
58
- /* @__PURE__ */ r(d, {}),
59
- /* @__PURE__ */ r(f, { children: /* @__PURE__ */ t(g, { className: "mx-auto flex h-full w-full items-start lg:h-auto lg:w-fit", children: [
60
- /* @__PURE__ */ r(
61
- m,
61
+ /* @__PURE__ */ o(g, { asChild: !0, children: i.children ?? /* @__PURE__ */ o(u, { children: "Sign up" }) }),
62
+ /* @__PURE__ */ t(p, { children: [
63
+ /* @__PURE__ */ o(h, {}),
64
+ /* @__PURE__ */ o(d, { children: /* @__PURE__ */ t(f, { className: "bg-bg-primary-alt mx-auto h-full w-full items-start p-3xl pb-4xl lg:h-auto lg:w-[400px] lg:rounded-xl", children: [
65
+ /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(a, {}) }),
66
+ /* @__PURE__ */ o(
67
+ e,
62
68
  {
63
- src: o.banner,
64
- alt: "h-auto w-[400px]",
65
- width: 400,
66
- height: 800,
67
- className: "hidden rounded-l-xl lg:block"
69
+ src: i.logo,
70
+ alt: "",
71
+ width: 200,
72
+ height: 100,
73
+ className: "mx-auto h-auto w-[120px]",
74
+ draggable: !1
68
75
  }
69
76
  ),
70
- /* @__PURE__ */ t("div", { className: "relative flex w-full flex-col items-start self-stretch bg-white p-3xl lg:w-[400px] lg:rounded-r-xl", children: [
71
- /* @__PURE__ */ r(x, { children: /* @__PURE__ */ r(a, {}) }),
72
- /* @__PURE__ */ r(
73
- m,
74
- {
75
- src: o.logo,
76
- alt: "",
77
- width: 200,
78
- height: 100,
79
- className: "mx-auto h-auto w-[120px]",
80
- draggable: !1
81
- }
82
- ),
83
- /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(w, {}) })
84
- ] })
77
+ /* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(S, {}) })
85
78
  ] }) })
86
79
  ] })
87
80
  ]
@@ -89,5 +82,5 @@ function mr(o) {
89
82
  );
90
83
  }
91
84
  export {
92
- mr as SignUp
85
+ ao as SignUp
93
86
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),R=require("@ark-ui/react"),q=require("@hookform/resolvers/zod"),y=require("@opexa/portal-sdk-core/object-id"),z=require("next/navigation"),P=require("react"),u=require("react-hook-form"),i=require("zod"),k=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const F=require("../../client/hooks/useCooldown.js"),V=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const O=require("../../client/hooks/useLocaleInfo.js"),D=require("../../client/hooks/useMobileNumberParser.js");require("usehooks-ts");const L=require("../../client/hooks/useSendVerificationCodeMutation.js"),U=require("../../client/hooks/useSignInMutation.js"),B=require("../../client/hooks/useSignUpMutation.js"),v=require("../../client/utils/toaster.js"),E=require("../../icons/ArrowLeftIcon.js"),G=require("../../icons/CheckIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const N=require("../../ui/Button/Button.js"),l=require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");const d=require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");const n=require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");function T(){var j;const[f,m]=P.useState(1),h=R.useDialogContext(),x=z.useSearchParams(),g=V.useGlobalStore(k.useShallow(t=>t.signIn)),S=B.useSignUpMutation(),I=U.useSignInMutation(),p=L.useSendVerificationCodeMutation(),C=O.useLocaleInfo(),o=D.useMobileNumberParser(),w=i.z.object({mobileNumber:i.z.string().superRefine((t,r)=>{o.validate(t)||r.addIssue({code:i.z.ZodIssueCode.custom,message:"Invalid mobile number"})}),termsAccepted:i.z.boolean().superRefine((t,r)=>{t||r.addIssue({code:i.z.ZodIssueCode.custom,message:"You must accept the terms and conditions"})})}),A=i.z.object({verificationCode:i.z.array(i.z.string().min(1).max(1).trim()).min(6).max(6)}),s=u.useForm({resolver:q.zodResolver(w),defaultValues:{mobileNumber:"",termsAccepted:!1}}),c=u.useForm({resolver:q.zodResolver(A),defaultValues:{verificationCode:Array.from({length:6}).fill("")}}),a=F.useCooldown({max:60,duration:1e3*60});return e.jsxs(e.Fragment,{children:[f===1&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"w-full grow",children:[e.jsx("h2",{className:"mt-xl text-center text-lg font-semibold",children:"Create an account"}),e.jsx("p",{className:"text-gray-600 mt-xs text-center text-sm",children:"Register instantly and start playing!"}),e.jsxs("form",{className:"mt-5",onSubmit:s.handleSubmit(async t=>{try{await p.mutateAsync({channel:"SMS",recipient:o.format(t.mobileNumber)}),m(2),a.start()}catch(r){v.toaster.error({description:r instanceof Error?r.message:"Failed to send verification code"})}}),children:[e.jsxs(d.Root,{invalid:!!s.formState.errors.mobileNumber,children:[e.jsx(d.Label,{children:"Mobile Number"}),e.jsxs("div",{className:"relative",children:[e.jsx(C.country.flag,{className:"absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2"}),e.jsx(d.Input,{className:"pl-11",...s.register("mobileNumber")})]}),e.jsx(d.ErrorText,{children:(j=s.formState.errors.mobileNumber)==null?void 0:j.message})]}),e.jsx(N.Button,{type:"submit",className:"mt-5",disabled:s.formState.isSubmitting,children:"Create Account"}),e.jsx(u.Controller,{control:s.control,name:"termsAccepted",render:t=>e.jsxs(l.Root,{className:"mt-xl",invalid:t.fieldState.invalid,checked:t.field.value,onCheckedChange:r=>{t.field.onChange(r.checked)},children:[e.jsx(l.Control,{children:e.jsx(l.Indicator,{asChild:!0,children:e.jsx(G.CheckIcon,{})})}),e.jsx(l.Label,{children:"I confirm that I am at least 21 years old, not listed in the PAGCOR NDRP, not a GEL license holder, government employee, or member of the Armed Forces of the Philippines. I am not playing in a public space and agree to the Terms of Use and Privacy Policy. Ineligible accounts will have their funds forfeited to the government."}),e.jsx(l.HiddenInput,{})]})})]})]}),e.jsxs("div",{className:"flex w-full items-center justify-center gap-xs text-sm",children:[e.jsx("span",{className:"text-gray-500",children:"Don't have an account?"}),e.jsx("button",{type:"submit",className:"text-accent-700 font-semibold",onClick:()=>{h.setOpen(!1),g.setOpen(!0)},children:"Log In"})]})]}),f===2&&e.jsxs("div",{className:"w-full grow",children:[e.jsx("h2",{className:"mt-xl text-center text-lg font-semibold",children:"Check your Phone"}),e.jsxs("p",{className:"text-gray-600 mt-xs text-center text-sm",children:["We’ve sent a verification code to your mobile number"," ",e.jsx("span",{className:"font-semibold",children:o.format(s.getValues("mobileNumber"))})," ","via text"]}),e.jsxs("form",{className:"mt-5",onSubmit:c.handleSubmit(async({verificationCode:t})=>{const r=y.ObjectId.generate(y.ObjectType.MemberAccount).toString(),{mobileNumber:b}=s.getValues();try{await S.mutateAsync({id:r,mobileNumber:o.format(b),verificationCode:t.join(""),referralCode:x.get("referralCode")??void 0,domain:x.get("domain")??void 0,btag:x.get("btag")??void 0});const M=`${o.format(b)}${r}`;try{await I.mutateAsync({type:"NAME_AND_PASSWORD",name:o.format(b),password:M})}catch{g.setOpen(!0)}h.setOpen(!1),s.reset(),c.reset(),m(1)}catch{v.toaster.error({title:"Invalid Verification Code"})}}),children:[e.jsx(u.Controller,{name:"verificationCode",control:c.control,render:t=>e.jsxs(n.Root,{placeholder:"0",invalid:t.fieldState.invalid,value:t.field.value,onValueChange:r=>{t.field.onChange(r.value)},children:[e.jsxs(n.Control,{children:[e.jsx(n.Input,{index:0}),e.jsx(n.Input,{index:1}),e.jsx(n.Input,{index:2}),e.jsx(n.Input,{index:3}),e.jsx(n.Input,{index:4}),e.jsx(n.Input,{index:5})]}),e.jsx(n.HiddenInput,{})]})}),e.jsx(N.Button,{type:"submit",className:"mt-5",disabled:c.formState.isSubmitting,children:"Verify and Play"}),e.jsxs("div",{className:"mt-5 flex w-full items-center justify-center gap-xs text-sm",children:[e.jsx("span",{className:"text-gray-500",children:"Didn't recieve the code?"}),e.jsx("button",{type:"button",className:"text-accent-700 font-semibold disabled:cursor-not-allowed disabled:opacity-75",disabled:a.cooling,onClick:async()=>{await p.mutateAsync({channel:"SMS",recipient:o.format(s.getValues("mobileNumber"))}),a.start()},children:a.cooling?`Resend in ${a.countdown}s`:"Resend"})]}),e.jsxs("button",{type:"button",className:"text-gray-600 mx-auto mt-5 flex w-fit items-center gap-1 text-sm font-semibold",onClick:()=>{m(1),c.reset(),a.stop()},children:[e.jsx(E.ArrowLeftIcon,{className:"size-5"}),"Back"]})]})]})]})}exports.SignUpForm=T;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),z=require("@ark-ui/react"),N=require("@hookform/resolvers/zod"),y=require("@opexa/portal-sdk-core/object-id"),k=require("next/navigation"),R=require("react"),u=require("react-hook-form"),i=require("zod"),F=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../client/services/getSession.js");const V=require("../../client/hooks/useCooldown.js"),O=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const P=require("../../client/hooks/useLocaleInfo.js"),_=require("../../client/hooks/useMobileNumberParser.js");require("usehooks-ts");const D=require("../../client/hooks/useSendVerificationCodeMutation.js"),L=require("../../client/hooks/useSignInMutation.js"),$=require("../../client/hooks/useSignUpMutation.js"),S=require("../../client/utils/toaster.js"),U=require("../../icons/ArrowLeftIcon.js"),B=require("../../icons/CheckIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const C=require("../../ui/Button/Button.js"),l=require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");const d=require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");const n=require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");function T(){var q;const[h,m]=R.useState(1),p=z.useDialogContext(),x=k.useSearchParams(),g=O.useGlobalStore(F.useShallow(t=>t.signIn)),v=$.useSignUpMutation(),I=L.useSignInMutation(),j=D.useSendVerificationCodeMutation(),b=P.useLocaleInfo(),o=_.useMobileNumberParser(),w=i.z.object({mobileNumber:i.z.string().superRefine((t,r)=>{o.validate(t)||r.addIssue({code:i.z.ZodIssueCode.custom,message:"Invalid mobile number"})}),termsAccepted:i.z.boolean().superRefine((t,r)=>{t||r.addIssue({code:i.z.ZodIssueCode.custom,message:"You must accept the terms and conditions"})})}),M=i.z.object({verificationCode:i.z.array(i.z.string().min(1).max(1).trim()).min(6).max(6)}),s=u.useForm({resolver:N.zodResolver(w),defaultValues:{mobileNumber:"",termsAccepted:!1}}),c=u.useForm({resolver:N.zodResolver(M),defaultValues:{verificationCode:Array.from({length:6}).fill("")}}),a=V.useCooldown({max:60,duration:1e3*60});return e.jsxs(e.Fragment,{children:[h===1&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"mt-xl text-center text-lg font-semibold",children:"Create an account"}),e.jsx("p",{className:"text-text-secondary-700 mt-xs text-center text-sm",children:"Register instantly and start playing!"}),e.jsxs("form",{className:"mt-3xl",onSubmit:s.handleSubmit(async t=>{try{await j.mutateAsync({channel:"SMS",recipient:o.format(t.mobileNumber)}),m(2),a.start()}catch(r){S.toaster.error({description:r instanceof Error?r.message:"Failed to send verification code"})}}),children:[e.jsxs(d.Root,{invalid:!!s.formState.errors.mobileNumber,children:[e.jsx(d.Label,{children:"Mobile Number"}),e.jsxs("div",{className:"relative",children:[e.jsx(b.country.flag,{className:"absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2"}),e.jsx(d.Input,{className:"pl-11",placeholder:`${b.mobileNumber.areaCode}${b.mobileNumber.example}`,...s.register("mobileNumber")})]}),e.jsx(d.ErrorText,{children:(q=s.formState.errors.mobileNumber)==null?void 0:q.message})]}),e.jsx(C.Button,{type:"submit",className:"mt-3xl",disabled:s.formState.isSubmitting,children:"Create Account"}),e.jsx(u.Controller,{control:s.control,name:"termsAccepted",render:t=>e.jsxs(l.Root,{className:"mt-xl",invalid:t.fieldState.invalid,checked:t.field.value,onCheckedChange:r=>{t.field.onChange(r.checked)},children:[e.jsx(l.Control,{children:e.jsx(l.Indicator,{asChild:!0,children:e.jsx(B.CheckIcon,{})})}),e.jsxs(l.Label,{children:["I am at least 21 years of age and I accept the"," ",e.jsx("span",{className:"text-brand-400 whitespace-nowrap underline underline-offset-2",children:"Terms and Conditions."})]}),e.jsx(l.HiddenInput,{})]})})]}),e.jsxs("div",{className:"mt-6 flex w-full items-center justify-center gap-xs text-sm",children:[e.jsx("span",{className:"text-text-tertiary-600",children:"Don't have an account?"}),e.jsx("button",{type:"submit",className:"text-button-tertiary-fg font-semibold",onClick:()=>{p.setOpen(!1),g.setOpen(!0)},children:"Log In"})]})]}),h===2&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"mt-xl text-center text-lg font-semibold",children:"Check your Phone"}),e.jsxs("p",{className:"text-text-secondary-700 mt-xs text-center text-sm",children:["We’ve sent a verification code to your mobile number"," ",e.jsx("span",{className:"font-semibold",children:o.format(s.getValues("mobileNumber"))})," ","via text"]}),e.jsxs("form",{className:"mt-5",onSubmit:c.handleSubmit(async({verificationCode:t})=>{const r=y.ObjectId.generate(y.ObjectType.MemberAccount).toString(),{mobileNumber:f}=s.getValues();try{await v.mutateAsync({id:r,mobileNumber:o.format(f),verificationCode:t.join(""),referralCode:x.get("referralCode")??void 0,domain:x.get("domain")??void 0,btag:x.get("btag")??void 0});const A=`${o.format(f)}${r}`;try{await I.mutateAsync({type:"NAME_AND_PASSWORD",name:o.format(f),password:A})}catch{g.setOpen(!0)}p.setOpen(!1),s.reset(),c.reset(),m(1)}catch{S.toaster.error({title:"Invalid Verification Code"})}}),children:[e.jsx(u.Controller,{name:"verificationCode",control:c.control,render:t=>e.jsxs(n.Root,{placeholder:"0",invalid:t.fieldState.invalid,value:t.field.value,onValueChange:r=>{t.field.onChange(r.value)},children:[e.jsxs(n.Control,{className:"grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center gap-md",children:[e.jsx(n.Input,{index:0}),e.jsx(n.Input,{index:1}),e.jsx(n.Input,{index:2}),e.jsx("span",{className:"text-text-placeholder-subtle text-2xl font-medium",children:"–"}),e.jsx(n.Input,{index:3}),e.jsx(n.Input,{index:4}),e.jsx(n.Input,{index:5})]}),e.jsx(n.HiddenInput,{})]})}),e.jsx(C.Button,{type:"submit",className:"mt-4xl",disabled:c.formState.isSubmitting,children:"Verify"}),e.jsxs("div",{className:"mt-3 flex w-full items-center justify-center gap-xs text-sm",children:[e.jsx("span",{className:"text-text-secondary-700",children:"Didn't recieve the code?"}),e.jsx("button",{type:"button",className:"text-button-secondary-fg font-semibold disabled:cursor-not-allowed disabled:opacity-75",disabled:a.cooling,onClick:async()=>{await j.mutateAsync({channel:"SMS",recipient:o.format(s.getValues("mobileNumber"))}),a.start()},children:a.cooling?`Resend in ${a.countdown}s`:"Resend"})]}),e.jsxs("button",{type:"button",className:"text-text-tertiary-600 mx-auto mt-3xl flex w-fit items-center gap-1 text-sm font-semibold",onClick:()=>{m(1),c.reset(),a.stop()},children:[e.jsx(U.ArrowLeftIcon,{className:"size-5"}),"Back"]})]})]})]})}exports.SignUpForm=T;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { jsxs as o, Fragment as x, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as o, Fragment as f, jsx as e } from "react/jsx-runtime";
3
3
  import { useDialogContext as k } from "@ark-ui/react";
4
4
  import { zodResolver as y } from "@hookform/resolvers/zod";
5
5
  import { ObjectId as V, ObjectType as j } from "@opexa/portal-sdk-core/object-id";
6
- import { useSearchParams as $ } from "next/navigation";
6
+ import { useSearchParams as _ } from "next/navigation";
7
7
  import { useState as D } from "react";
8
- import { useForm as N, Controller as v } from "react-hook-form";
8
+ import { useForm as v, Controller as C } from "react-hook-form";
9
9
  import { z as n } from "zod";
10
10
  import { useShallow as O } from "zustand/shallow";
11
11
  import "@opexa/portal-sdk-core";
@@ -17,40 +17,45 @@ import "../../utils/parseDecimal.mjs";
17
17
  import "../../utils/getLocaleInfo.mjs";
18
18
  import "../../utils/getQueryClient.mjs";
19
19
  import "../../utils/isMobile.mjs";
20
+ import "../../client/services/getSession.mjs";
20
21
  import { useCooldown as F } from "../../client/hooks/useCooldown.mjs";
21
22
  import { useGlobalStore as L } from "../../client/hooks/useGlobalStore.mjs";
22
23
  import "../../client/hooks/useInfiniteQueryHelper.mjs";
23
- import { useLocaleInfo as z } from "../../client/hooks/useLocaleInfo.mjs";
24
- import { useMobileNumberParser as E } from "../../client/hooks/useMobileNumberParser.mjs";
24
+ import { useLocaleInfo as P } from "../../client/hooks/useLocaleInfo.mjs";
25
+ import { useMobileNumberParser as z } from "../../client/hooks/useMobileNumberParser.mjs";
25
26
  import "usehooks-ts";
26
- import { useSendVerificationCodeMutation as U } from "../../client/hooks/useSendVerificationCodeMutation.mjs";
27
- import { useSignInMutation as G } from "../../client/hooks/useSignInMutation.mjs";
28
- import { useSignUpMutation as H } from "../../client/hooks/useSignUpMutation.mjs";
29
- import { toaster as C } from "../../client/utils/toaster.mjs";
30
- import { ArrowLeftIcon as T } from "../../icons/ArrowLeftIcon.mjs";
27
+ import { useSendVerificationCodeMutation as E } from "../../client/hooks/useSendVerificationCodeMutation.mjs";
28
+ import { useSignInMutation as H } from "../../client/hooks/useSignInMutation.mjs";
29
+ import { useSignUpMutation as T } from "../../client/hooks/useSignUpMutation.mjs";
30
+ import { toaster as S } from "../../client/utils/toaster.mjs";
31
+ import { ArrowLeftIcon as U } from "../../icons/ArrowLeftIcon.mjs";
31
32
  import { CheckIcon as B } from "../../icons/CheckIcon.mjs";
32
33
  import "../../ui/AlertDialog/AlertDialog.mjs";
33
34
  import "../../ui/Avatar/Avatar.mjs";
34
35
  import "../../ui/Badge/Badge.mjs";
35
- import { Button as S } from "../../ui/Button/Button.mjs";
36
- import { Root as W, Control as Z, Indicator as _, Label as Y, HiddenInput as q } from "../../ui/Checkbox/Checkbox.mjs";
36
+ import { Button as I } from "../../ui/Button/Button.mjs";
37
+ import { Root as W, Control as Z, Indicator as G, Label as Y, HiddenInput as q } from "../../ui/Checkbox/Checkbox.mjs";
37
38
  import "../../ui/Clipboard/Clipboard.mjs";
39
+ import "../../ui/Collapsible/Collapsible.mjs";
40
+ import "../../ui/Combobox/Combobox.mjs";
38
41
  import "../../ui/DatePicker/DatePicker.mjs";
39
42
  import "../../ui/Dialog/Dialog.mjs";
40
43
  import "../../ui/Drawer/Drawer.mjs";
41
44
  import { Root as J, Label as K, Input as Q, ErrorText as X } from "../../ui/Field/Field.mjs";
42
45
  import "../../ui/IconButton/iconButton.recipe.mjs";
43
46
  import "../../ui/NumberInput/NumberInput.mjs";
47
+ import "../../ui/PasswordInput/PasswordInput.mjs";
44
48
  import { Root as ee, Control as te, Input as m, HiddenInput as oe } from "../../ui/PinInput/PinInput.mjs";
45
49
  import "../../ui/Popover/Popover.mjs";
46
50
  import "tailwind-merge";
51
+ import "../../ui/Progress/Progress.mjs";
47
52
  import "../../ui/SegmentGroup/SegmentGroup.mjs";
48
53
  import "../../ui/Select/Select.mjs";
49
54
  import "../../ui/Table/Table.mjs";
50
55
  import "../../ui/Tabs/Tabs.mjs";
51
- function Xe() {
52
- var g;
53
- const [p, c] = D(1), f = k(), d = $(), b = L(O((t) => t.signIn)), I = H(), w = G(), h = U(), A = z(), a = E(), R = n.object({
56
+ function it() {
57
+ var N;
58
+ const [b, c] = D(1), h = k(), d = _(), x = L(O((t) => t.signIn)), w = T(), A = H(), g = E(), p = P(), a = z(), M = n.object({
54
59
  mobileNumber: n.string().superRefine((t, r) => {
55
60
  a.validate(t) || r.addIssue({
56
61
  code: n.ZodIssueCode.custom,
@@ -63,16 +68,16 @@ function Xe() {
63
68
  message: "You must accept the terms and conditions"
64
69
  });
65
70
  })
66
- }), M = n.object({
71
+ }), R = n.object({
67
72
  verificationCode: n.array(n.string().min(1).max(1).trim()).min(6).max(6)
68
- }), i = N({
69
- resolver: y(R),
73
+ }), i = v({
74
+ resolver: y(M),
70
75
  defaultValues: {
71
76
  mobileNumber: "",
72
77
  termsAccepted: !1
73
78
  }
74
- }), l = N({
75
- resolver: y(M),
79
+ }), l = v({
80
+ resolver: y(R),
76
81
  defaultValues: {
77
82
  verificationCode: Array.from({ length: 6 }).fill("")
78
83
  }
@@ -80,96 +85,99 @@ function Xe() {
80
85
  max: 60,
81
86
  duration: 1e3 * 60
82
87
  });
83
- return /* @__PURE__ */ o(x, { children: [
84
- p === 1 && /* @__PURE__ */ o(x, { children: [
85
- /* @__PURE__ */ o("div", { className: "w-full grow", children: [
86
- /* @__PURE__ */ e("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Create an account" }),
87
- /* @__PURE__ */ e("p", { className: "text-gray-600 mt-xs text-center text-sm", children: "Register instantly and start playing!" }),
88
- /* @__PURE__ */ o(
89
- "form",
90
- {
91
- className: "mt-5",
92
- onSubmit: i.handleSubmit(async (t) => {
93
- try {
94
- await h.mutateAsync({
95
- channel: "SMS",
96
- recipient: a.format(t.mobileNumber)
97
- }), c(2), s.start();
98
- } catch (r) {
99
- C.error({
100
- description: r instanceof Error ? r.message : "Failed to send verification code"
101
- });
102
- }
103
- }),
104
- children: [
105
- /* @__PURE__ */ o(J, { invalid: !!i.formState.errors.mobileNumber, children: [
106
- /* @__PURE__ */ e(K, { children: "Mobile Number" }),
107
- /* @__PURE__ */ o("div", { className: "relative", children: [
108
- /* @__PURE__ */ e(A.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }),
109
- /* @__PURE__ */ e(
110
- Q,
111
- {
112
- className: "pl-11",
113
- ...i.register("mobileNumber")
114
- }
115
- )
116
- ] }),
117
- /* @__PURE__ */ e(X, { children: (g = i.formState.errors.mobileNumber) == null ? void 0 : g.message })
88
+ return /* @__PURE__ */ o(f, { children: [
89
+ b === 1 && /* @__PURE__ */ o(f, { children: [
90
+ /* @__PURE__ */ e("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Create an account" }),
91
+ /* @__PURE__ */ e("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: "Register instantly and start playing!" }),
92
+ /* @__PURE__ */ o(
93
+ "form",
94
+ {
95
+ className: "mt-3xl",
96
+ onSubmit: i.handleSubmit(async (t) => {
97
+ try {
98
+ await g.mutateAsync({
99
+ channel: "SMS",
100
+ recipient: a.format(t.mobileNumber)
101
+ }), c(2), s.start();
102
+ } catch (r) {
103
+ S.error({
104
+ description: r instanceof Error ? r.message : "Failed to send verification code"
105
+ });
106
+ }
107
+ }),
108
+ children: [
109
+ /* @__PURE__ */ o(J, { invalid: !!i.formState.errors.mobileNumber, children: [
110
+ /* @__PURE__ */ e(K, { children: "Mobile Number" }),
111
+ /* @__PURE__ */ o("div", { className: "relative", children: [
112
+ /* @__PURE__ */ e(p.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }),
113
+ /* @__PURE__ */ e(
114
+ Q,
115
+ {
116
+ className: "pl-11",
117
+ placeholder: `${p.mobileNumber.areaCode}${p.mobileNumber.example}`,
118
+ ...i.register("mobileNumber")
119
+ }
120
+ )
118
121
  ] }),
119
- /* @__PURE__ */ e(
120
- S,
121
- {
122
- type: "submit",
123
- className: "mt-5",
124
- disabled: i.formState.isSubmitting,
125
- children: "Create Account"
126
- }
127
- ),
128
- /* @__PURE__ */ e(
129
- v,
130
- {
131
- control: i.control,
132
- name: "termsAccepted",
133
- render: (t) => /* @__PURE__ */ o(
134
- W,
135
- {
136
- className: "mt-xl",
137
- invalid: t.fieldState.invalid,
138
- checked: t.field.value,
139
- onCheckedChange: (r) => {
140
- t.field.onChange(r.checked);
141
- },
142
- children: [
143
- /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(_, { asChild: !0, children: /* @__PURE__ */ e(B, {}) }) }),
144
- /* @__PURE__ */ e(Y, { children: "I confirm that I am at least 21 years old, not listed in the PAGCOR NDRP, not a GEL license holder, government employee, or member of the Armed Forces of the Philippines. I am not playing in a public space and agree to the Terms of Use and Privacy Policy. Ineligible accounts will have their funds forfeited to the government." }),
145
- /* @__PURE__ */ e(q, {})
146
- ]
147
- }
148
- )
149
- }
150
- )
151
- ]
152
- }
153
- )
154
- ] }),
155
- /* @__PURE__ */ o("div", { className: "flex w-full items-center justify-center gap-xs text-sm", children: [
156
- /* @__PURE__ */ e("span", { className: "text-gray-500", children: "Don't have an account?" }),
122
+ /* @__PURE__ */ e(X, { children: (N = i.formState.errors.mobileNumber) == null ? void 0 : N.message })
123
+ ] }),
124
+ /* @__PURE__ */ e(
125
+ I,
126
+ {
127
+ type: "submit",
128
+ className: "mt-3xl",
129
+ disabled: i.formState.isSubmitting,
130
+ children: "Create Account"
131
+ }
132
+ ),
133
+ /* @__PURE__ */ e(
134
+ C,
135
+ {
136
+ control: i.control,
137
+ name: "termsAccepted",
138
+ render: (t) => /* @__PURE__ */ o(
139
+ W,
140
+ {
141
+ className: "mt-xl",
142
+ invalid: t.fieldState.invalid,
143
+ checked: t.field.value,
144
+ onCheckedChange: (r) => {
145
+ t.field.onChange(r.checked);
146
+ },
147
+ children: [
148
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e(B, {}) }) }),
149
+ /* @__PURE__ */ o(Y, { children: [
150
+ "I am at least 21 years of age and I accept the",
151
+ " ",
152
+ /* @__PURE__ */ e("span", { className: "text-brand-400 whitespace-nowrap underline underline-offset-2", children: "Terms and Conditions." })
153
+ ] }),
154
+ /* @__PURE__ */ e(q, {})
155
+ ]
156
+ }
157
+ )
158
+ }
159
+ )
160
+ ]
161
+ }
162
+ ),
163
+ /* @__PURE__ */ o("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [
164
+ /* @__PURE__ */ e("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }),
157
165
  /* @__PURE__ */ e(
158
166
  "button",
159
167
  {
160
168
  type: "submit",
161
- className: "text-accent-700 font-semibold",
169
+ className: "text-button-tertiary-fg font-semibold",
162
170
  onClick: () => {
163
- f.setOpen(!1), b.setOpen(!0);
171
+ h.setOpen(!1), x.setOpen(!0);
164
172
  },
165
173
  children: "Log In"
166
174
  }
167
175
  )
168
176
  ] })
169
177
  ] }),
170
- p === 2 && /* @__PURE__ */ o("div", { className: "w-full grow", children: [
178
+ b === 2 && /* @__PURE__ */ o(f, { children: [
171
179
  /* @__PURE__ */ e("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }),
172
- /* @__PURE__ */ o("p", { className: "text-gray-600 mt-xs text-center text-sm", children: [
180
+ /* @__PURE__ */ o("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: [
173
181
  "We’ve sent a verification code to your mobile number",
174
182
  " ",
175
183
  /* @__PURE__ */ e("span", { className: "font-semibold", children: a.format(i.getValues("mobileNumber")) }),
@@ -183,7 +191,7 @@ function Xe() {
183
191
  onSubmit: l.handleSubmit(async ({ verificationCode: t }) => {
184
192
  const r = V.generate(j.MemberAccount).toString(), { mobileNumber: u } = i.getValues();
185
193
  try {
186
- await I.mutateAsync({
194
+ await w.mutateAsync({
187
195
  id: r,
188
196
  mobileNumber: a.format(u),
189
197
  verificationCode: t.join(""),
@@ -191,26 +199,26 @@ function Xe() {
191
199
  domain: d.get("domain") ?? void 0,
192
200
  btag: d.get("btag") ?? void 0
193
201
  });
194
- const P = `${a.format(u)}${r}`;
202
+ const $ = `${a.format(u)}${r}`;
195
203
  try {
196
- await w.mutateAsync({
204
+ await A.mutateAsync({
197
205
  type: "NAME_AND_PASSWORD",
198
206
  name: a.format(u),
199
- password: P
207
+ password: $
200
208
  });
201
209
  } catch {
202
- b.setOpen(!0);
210
+ x.setOpen(!0);
203
211
  }
204
- f.setOpen(!1), i.reset(), l.reset(), c(1);
212
+ h.setOpen(!1), i.reset(), l.reset(), c(1);
205
213
  } catch {
206
- C.error({
214
+ S.error({
207
215
  title: "Invalid Verification Code"
208
216
  });
209
217
  }
210
218
  }),
211
219
  children: [
212
220
  /* @__PURE__ */ e(
213
- v,
221
+ C,
214
222
  {
215
223
  name: "verificationCode",
216
224
  control: l.control,
@@ -224,10 +232,11 @@ function Xe() {
224
232
  t.field.onChange(r.value);
225
233
  },
226
234
  children: [
227
- /* @__PURE__ */ o(te, { children: [
235
+ /* @__PURE__ */ o(te, { className: "grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center gap-md", children: [
228
236
  /* @__PURE__ */ e(m, { index: 0 }),
229
237
  /* @__PURE__ */ e(m, { index: 1 }),
230
238
  /* @__PURE__ */ e(m, { index: 2 }),
239
+ /* @__PURE__ */ e("span", { className: "text-text-placeholder-subtle text-2xl font-medium", children: "–" }),
231
240
  /* @__PURE__ */ e(m, { index: 3 }),
232
241
  /* @__PURE__ */ e(m, { index: 4 }),
233
242
  /* @__PURE__ */ e(m, { index: 5 })
@@ -239,24 +248,24 @@ function Xe() {
239
248
  }
240
249
  ),
241
250
  /* @__PURE__ */ e(
242
- S,
251
+ I,
243
252
  {
244
253
  type: "submit",
245
- className: "mt-5",
254
+ className: "mt-4xl",
246
255
  disabled: l.formState.isSubmitting,
247
- children: "Verify and Play"
256
+ children: "Verify"
248
257
  }
249
258
  ),
250
- /* @__PURE__ */ o("div", { className: "mt-5 flex w-full items-center justify-center gap-xs text-sm", children: [
251
- /* @__PURE__ */ e("span", { className: "text-gray-500", children: "Didn't recieve the code?" }),
259
+ /* @__PURE__ */ o("div", { className: "mt-3 flex w-full items-center justify-center gap-xs text-sm", children: [
260
+ /* @__PURE__ */ e("span", { className: "text-text-secondary-700", children: "Didn't recieve the code?" }),
252
261
  /* @__PURE__ */ e(
253
262
  "button",
254
263
  {
255
264
  type: "button",
256
- className: "text-accent-700 font-semibold disabled:cursor-not-allowed disabled:opacity-75",
265
+ className: "text-button-secondary-fg font-semibold disabled:cursor-not-allowed disabled:opacity-75",
257
266
  disabled: s.cooling,
258
267
  onClick: async () => {
259
- await h.mutateAsync({
268
+ await g.mutateAsync({
260
269
  channel: "SMS",
261
270
  recipient: a.format(
262
271
  i.getValues("mobileNumber")
@@ -271,12 +280,12 @@ function Xe() {
271
280
  "button",
272
281
  {
273
282
  type: "button",
274
- className: "text-gray-600 mx-auto mt-5 flex w-fit items-center gap-1 text-sm font-semibold",
283
+ className: "text-text-tertiary-600 mx-auto mt-3xl flex w-fit items-center gap-1 text-sm font-semibold",
275
284
  onClick: () => {
276
285
  c(1), l.reset(), s.stop();
277
286
  },
278
287
  children: [
279
- /* @__PURE__ */ e(T, { className: "size-5" }),
288
+ /* @__PURE__ */ e(U, { className: "size-5" }),
280
289
  "Back"
281
290
  ]
282
291
  }
@@ -288,5 +297,5 @@ function Xe() {
288
297
  ] });
289
298
  }
290
299
  export {
291
- Xe as SignUpForm
300
+ it as SignUpForm
292
301
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("embla-carousel-react"),u=require("next/image");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");const l=require("../../utils/formatNumber.js"),m=require("../../utils/getGameImageUrl.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const n=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const o=require("../../client/hooks/useTopWinsQuery.js");function d(a){const i=n.useLocaleInfo(),s=o.useTopWinsQuery().data??[],[c]=t({align:"start",slidesToScroll:1});return s!=null&&s.length?e.jsxs("div",{className:a.className,children:[e.jsx("div",{className:"text-gray-600 mb-3 text-lg font-semibold md:mb-4",children:a.heading}),e.jsx("div",{ref:c,className:"relative lg:overflow-hidden",children:e.jsx("div",{className:"flex gap-sm lg:gap-md",children:s.map(r=>e.jsxs("div",{className:"bg-gray-50 border-gray-200 flex w-[calc((100%-(0.375rem*2))/3)] shrink-0 flex-col space-y-2 rounded-sm border p-2 text-center lg:w-[calc((100%-(0.5rem*5))/6)] xl:w-[calc((100%-(0.5rem*9))/10)]",children:[e.jsx("div",{className:"mx-auto aspect-square w-full",children:r.game&&e.jsx(u,{width:100,height:100,src:m.getGameImageUrl(r.game),alt:"",className:"size-full rounded-sm object-cover"})}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("div",{className:"text-gray-600 text-xs",children:r.member.name}),e.jsx("div",{className:"text-gray-800 text-sm font-semibold",children:l.formatNumber(r.payout,{currency:i.currency.code,minDecimalPlaces:2})}),e.jsx("div",{className:"text-gray-600 text-xs",children:l.formatNumber(r.multiplier,{minDecimalPlaces:2})})]})]},r.id))})})]}):null}exports.TopWins__client=d;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("embla-carousel-react"),n=require("next/image");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");const a=require("../../utils/formatNumber.js"),u=require("../../utils/getGameImageUrl.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../client/services/getSession.js");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const m=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const o=require("../../client/hooks/useTopWinsQuery.js");function d(i){const l=m.useLocaleInfo(),s=o.useTopWinsQuery().data??[],[c]=t({align:"start",slidesToScroll:1});return s!=null&&s.length?e.jsxs("div",{className:i.className,children:[e.jsx("div",{className:"mb-3 text-lg font-semibold md:mb-4",children:i.heading??"Recent Big Wins"}),e.jsx("div",{ref:c,className:"relative lg:overflow-hidden",children:e.jsx("div",{className:"flex gap-sm lg:gap-md",children:s.map(r=>e.jsxs("div",{className:"bg-bg-tertiary border-border-primary flex w-[calc((100%-(0.375rem*2))/3)] shrink-0 flex-col space-y-2 rounded-sm border p-2 text-center lg:w-[calc((100%-(0.5rem*5))/6)] xl:w-[calc((100%-(0.5rem*9))/10)]",children:[e.jsx("div",{className:"mx-auto aspect-square w-full",children:r.game&&e.jsx(n,{width:100,height:100,src:u.getGameImageUrl(r.game),alt:"",className:"size-full rounded-sm object-cover"})}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("div",{className:"text-text-secondary-700 text-xs",children:r.member.name}),e.jsx("div",{className:"text-text-primary-brand text-sm font-semibold",children:a.formatNumber(r.payout,{currency:l.currency.code,minDecimalPlaces:2})}),e.jsx("div",{className:"text-text-secondary-700 text-xs",children:a.formatNumber(r.multiplier,{minDecimalPlaces:2})})]})]},r.id))})})]}):null}exports.TopWins__client=d;