@opexa/portal-components 0.0.8 → 0.0.9

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 (337) hide show
  1. package/dist/_virtual/jsx-runtime.js +1 -1
  2. package/dist/_virtual/jsx-runtime.mjs +3 -2
  3. package/dist/_virtual/jsx-runtime2.js +1 -0
  4. package/dist/_virtual/jsx-runtime2.mjs +4 -0
  5. package/dist/components/Account/Account.js +1 -1
  6. package/dist/components/Account/Account.mjs +159 -117
  7. package/dist/components/Banner/Banner.js +1 -1
  8. package/dist/components/Banner/Banner.mjs +49 -45
  9. package/dist/components/BetRecords/BetRecords.js +1 -1
  10. package/dist/components/BetRecords/BetRecords.mjs +344 -232
  11. package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
  12. package/dist/components/DepositWithdrawal/AmountChoices.mjs +20 -19
  13. package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
  14. package/dist/components/DepositWithdrawal/AvailablePromos.mjs +98 -80
  15. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
  16. package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +38 -27
  17. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  18. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +189 -148
  19. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  20. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +181 -140
  21. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.js +1 -1
  22. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.mjs +9 -4
  23. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  24. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +187 -146
  25. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +1 -1
  26. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.mjs +16 -10
  27. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  28. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +198 -151
  29. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.js +1 -1
  30. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.mjs +9 -4
  31. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.js +1 -1
  32. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.mjs +9 -4
  33. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
  34. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +65 -29
  35. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
  36. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +8 -7
  37. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +1 -1
  38. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.mjs +14 -8
  39. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  40. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +179 -141
  41. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.js +1 -1
  42. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.mjs +9 -4
  43. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
  44. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +103 -55
  45. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
  46. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +22 -16
  47. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
  48. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +7 -6
  49. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
  50. package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +87 -59
  51. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  52. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +57 -51
  53. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  54. package/dist/components/Disclaimer/Disclaimer.mjs +77 -58
  55. package/dist/components/Empty/CloudIcon.js +1 -1
  56. package/dist/components/Empty/CloudIcon.mjs +189 -168
  57. package/dist/components/Empty/Empty.js +1 -1
  58. package/dist/components/Empty/Empty.mjs +13 -4
  59. package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +4 -1
  60. package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +1 -1
  61. package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +8 -7
  62. package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +1 -1
  63. package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +33 -27
  64. package/dist/components/GameLaunch/GameLaunch.js +1 -1
  65. package/dist/components/GameLaunch/GameLaunch.mjs +216 -170
  66. package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
  67. package/dist/components/GameLaunch/GameLaunchTrigger.mjs +20 -19
  68. package/dist/components/Games/Games.js +1 -1
  69. package/dist/components/Games/Games.mjs +102 -84
  70. package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
  71. package/dist/components/JackpotCounter/JackpotCounter.mjs +80 -63
  72. package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
  73. package/dist/components/JackpotCounter/JackpotCounterItem.mjs +144 -114
  74. package/dist/components/Marquee/Marquee.js +1 -1
  75. package/dist/components/Marquee/Marquee.mjs +19 -10
  76. package/dist/components/PortalProvider/PortalProvider.js +1 -1
  77. package/dist/components/PortalProvider/PortalProvider.mjs +53 -46
  78. package/dist/components/Promos/PromoCarousel.js +1 -1
  79. package/dist/components/Promos/PromoCarousel.mjs +93 -76
  80. package/dist/components/Promos/PromoGrid.js +1 -1
  81. package/dist/components/Promos/PromoGrid.mjs +37 -29
  82. package/dist/components/Promos/PromoItem.js +1 -1
  83. package/dist/components/Promos/PromoItem.mjs +51 -44
  84. package/dist/components/Promos/Promos.js +1 -1
  85. package/dist/components/Promos/Promos.mjs +5 -4
  86. package/dist/components/Protected/Protected.js +1 -1
  87. package/dist/components/Protected/Protected.mjs +3 -2
  88. package/dist/components/SignIn/SignIn.js +1 -1
  89. package/dist/components/SignIn/SignIn.mjs +49 -36
  90. package/dist/components/SignIn/SignInForm.js +1 -1
  91. package/dist/components/SignIn/SignInForm.mjs +261 -198
  92. package/dist/components/SignUp/SignUp.js +1 -1
  93. package/dist/components/SignUp/SignUp.mjs +51 -38
  94. package/dist/components/SignUp/SignUpForm.js +1 -1
  95. package/dist/components/SignUp/SignUpForm.mjs +240 -189
  96. package/dist/components/TopWins/TopWins.js +1 -1
  97. package/dist/components/TopWins/TopWins.mjs +39 -29
  98. package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
  99. package/dist/components/TournamentCounter/TournamentCounter.mjs +72 -57
  100. package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
  101. package/dist/components/TournamentCounter/TournamentCounterItem.mjs +92 -66
  102. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  103. package/dist/components/TransactionRecords/DepositRecordsTable.mjs +163 -115
  104. package/dist/components/TransactionRecords/TableFilters.js +1 -1
  105. package/dist/components/TransactionRecords/TableFilters.mjs +252 -186
  106. package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
  107. package/dist/components/TransactionRecords/TransactionRecords.mjs +31 -19
  108. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  109. package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +143 -101
  110. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  111. package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +164 -114
  112. package/dist/components.d.ts +2 -0
  113. package/dist/hooks/useAccountQuery.js +1 -1
  114. package/dist/hooks/useAccountQuery.mjs +8 -7
  115. package/dist/hooks/useAuthenticateMutation.js +1 -1
  116. package/dist/hooks/useAuthenticateMutation.mjs +6 -5
  117. package/dist/hooks/useAvailablePromosQuery.js +1 -1
  118. package/dist/hooks/useAvailablePromosQuery.mjs +3 -2
  119. package/dist/hooks/useBetRecordsQuery.js +1 -1
  120. package/dist/hooks/useBetRecordsQuery.mjs +3 -2
  121. package/dist/hooks/useCashbacksQuery.js +1 -1
  122. package/dist/hooks/useCashbacksQuery.mjs +3 -2
  123. package/dist/hooks/useCreateGCashDepositMutation.js +1 -1
  124. package/dist/hooks/useCreateGCashDepositMutation.mjs +10 -9
  125. package/dist/hooks/useCreateGameSessionMutation.js +1 -1
  126. package/dist/hooks/useCreateGameSessionMutation.mjs +8 -7
  127. package/dist/hooks/useCreateMayaAppDepositMutation.js +1 -1
  128. package/dist/hooks/useCreateMayaAppDepositMutation.mjs +9 -8
  129. package/dist/hooks/useCreateMayaDepositMutation.js +1 -1
  130. package/dist/hooks/useCreateMayaDepositMutation.mjs +10 -9
  131. package/dist/hooks/useCreateOnlineBankDepositMutation.js +1 -1
  132. package/dist/hooks/useCreateOnlineBankDepositMutation.mjs +4 -3
  133. package/dist/hooks/useCreateQRPHDepositMutation.js +1 -1
  134. package/dist/hooks/useCreateQRPHDepositMutation.mjs +4 -3
  135. package/dist/hooks/useDepositQuery.js +1 -1
  136. package/dist/hooks/useDepositQuery.mjs +7 -6
  137. package/dist/hooks/useDepositRecordsQuery.js +1 -1
  138. package/dist/hooks/useDepositRecordsQuery.mjs +10 -9
  139. package/dist/hooks/useDepositsCountQuery.js +1 -1
  140. package/dist/hooks/useDepositsCountQuery.mjs +3 -2
  141. package/dist/hooks/useEndGameSessionMutation.js +1 -1
  142. package/dist/hooks/useEndGameSessionMutation.mjs +3 -2
  143. package/dist/hooks/useGamesQuery.js +1 -1
  144. package/dist/hooks/useGamesQuery.mjs +3 -2
  145. package/dist/hooks/useInstapayBankListQuery.js +1 -1
  146. package/dist/hooks/useInstapayBankListQuery.mjs +10 -9
  147. package/dist/hooks/useIsMayaSessionValidQuery.js +1 -1
  148. package/dist/hooks/useIsMayaSessionValidQuery.mjs +3 -2
  149. package/dist/hooks/useJackpotsQuery.js +1 -1
  150. package/dist/hooks/useJackpotsQuery.mjs +6 -5
  151. package/dist/hooks/useLocaleInfo.js +1 -1
  152. package/dist/hooks/useLocaleInfo.mjs +3 -2
  153. package/dist/hooks/useMemberVerificationQuery.js +1 -1
  154. package/dist/hooks/useMemberVerificationQuery.mjs +7 -6
  155. package/dist/hooks/usePaymentSettingsQuery.js +1 -1
  156. package/dist/hooks/usePaymentSettingsQuery.mjs +7 -6
  157. package/dist/hooks/usePlatformQuery.js +1 -1
  158. package/dist/hooks/usePlatformQuery.mjs +3 -2
  159. package/dist/hooks/usePromoQuery.js +1 -1
  160. package/dist/hooks/usePromoQuery.mjs +3 -2
  161. package/dist/hooks/usePromosQuery.js +1 -1
  162. package/dist/hooks/usePromosQuery.mjs +3 -2
  163. package/dist/hooks/useSendVerificationCodeMutation.js +1 -1
  164. package/dist/hooks/useSendVerificationCodeMutation.mjs +3 -2
  165. package/dist/hooks/useSessionQuery.js +1 -1
  166. package/dist/hooks/useSessionQuery.mjs +3 -2
  167. package/dist/hooks/useSignInMutation.js +1 -1
  168. package/dist/hooks/useSignInMutation.mjs +3 -2
  169. package/dist/hooks/useSignOutMutation.js +1 -1
  170. package/dist/hooks/useSignOutMutation.mjs +3 -2
  171. package/dist/hooks/useSignUpMutation.js +1 -1
  172. package/dist/hooks/useSignUpMutation.mjs +3 -2
  173. package/dist/hooks/useSiteQuery.js +1 -1
  174. package/dist/hooks/useSiteQuery.mjs +3 -2
  175. package/dist/hooks/useTopWinsQuery.js +1 -1
  176. package/dist/hooks/useTopWinsQuery.mjs +3 -2
  177. package/dist/hooks/useTournamentsQuery.js +1 -1
  178. package/dist/hooks/useTournamentsQuery.mjs +6 -5
  179. package/dist/hooks/useTransactionRecordsQuery.js +1 -1
  180. package/dist/hooks/useTransactionRecordsQuery.mjs +3 -2
  181. package/dist/hooks/useWalletQuery.js +1 -1
  182. package/dist/hooks/useWalletQuery.mjs +3 -2
  183. package/dist/hooks/useWithdrawalRecordsQuery.js +1 -1
  184. package/dist/hooks/useWithdrawalRecordsQuery.mjs +9 -8
  185. package/dist/hooks.d.ts +2 -0
  186. package/dist/icons/AlertCircleIcon.js +1 -1
  187. package/dist/icons/AlertCircleIcon.mjs +7 -6
  188. package/dist/icons/AlertTriangle.js +1 -1
  189. package/dist/icons/AlertTriangle.mjs +7 -6
  190. package/dist/icons/ArrowLeftIcon.js +1 -1
  191. package/dist/icons/ArrowLeftIcon.mjs +7 -6
  192. package/dist/icons/ArrowNarrowUpRightIcon.js +1 -1
  193. package/dist/icons/ArrowNarrowUpRightIcon.mjs +7 -6
  194. package/dist/icons/ArrowRightIcon.js +1 -1
  195. package/dist/icons/ArrowRightIcon.mjs +7 -6
  196. package/dist/icons/Award02Icon.js +1 -1
  197. package/dist/icons/Award02Icon.mjs +7 -6
  198. package/dist/icons/BankIcon.js +1 -1
  199. package/dist/icons/BankIcon.mjs +7 -6
  200. package/dist/icons/CheckCircleBrokenIcon.js +1 -1
  201. package/dist/icons/CheckCircleBrokenIcon.mjs +6 -5
  202. package/dist/icons/CheckIcon.js +1 -1
  203. package/dist/icons/CheckIcon.mjs +7 -6
  204. package/dist/icons/ChevronDownIcon.js +1 -1
  205. package/dist/icons/ChevronDownIcon.mjs +6 -5
  206. package/dist/icons/ChevronLeftIcon.js +1 -1
  207. package/dist/icons/ChevronLeftIcon.mjs +7 -6
  208. package/dist/icons/ChevronRightIcon.js +1 -1
  209. package/dist/icons/ChevronRightIcon.mjs +7 -6
  210. package/dist/icons/ChevronUpIcon.js +1 -1
  211. package/dist/icons/ChevronUpIcon.mjs +7 -6
  212. package/dist/icons/Expand03Icon.js +1 -1
  213. package/dist/icons/Expand03Icon.mjs +7 -6
  214. package/dist/icons/FacebookIcon.js +1 -1
  215. package/dist/icons/FacebookIcon.mjs +22 -19
  216. package/dist/icons/File02Icon.js +1 -1
  217. package/dist/icons/File02Icon.mjs +7 -6
  218. package/dist/icons/Gift01Icon.js +1 -1
  219. package/dist/icons/Gift01Icon.mjs +7 -6
  220. package/dist/icons/GoogleIcon.js +1 -1
  221. package/dist/icons/GoogleIcon.mjs +43 -40
  222. package/dist/icons/Logout01Icon.js +1 -1
  223. package/dist/icons/Logout01Icon.mjs +7 -6
  224. package/dist/icons/QrCode02Icon.js +1 -1
  225. package/dist/icons/QrCode02Icon.mjs +7 -6
  226. package/dist/icons/SpinnerIcon.js +1 -1
  227. package/dist/icons/SpinnerIcon.mjs +33 -30
  228. package/dist/icons/User01Icon.js +1 -1
  229. package/dist/icons/User01Icon.mjs +7 -6
  230. package/dist/icons/Wallet02Icon.js +1 -1
  231. package/dist/icons/Wallet02Icon.mjs +7 -6
  232. package/dist/icons/XIcon.js +1 -1
  233. package/dist/icons/XIcon.mjs +7 -6
  234. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +6 -0
  235. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.mjs +953 -0
  236. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +1 -1
  237. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs +1 -1
  238. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +1 -1
  239. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.mjs +1 -1
  240. package/dist/server/utils/prefetchAccountQuery.js +1 -1
  241. package/dist/server/utils/prefetchAccountQuery.mjs +7 -6
  242. package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
  243. package/dist/server/utils/prefetchAvailablePromosQuery.mjs +11 -10
  244. package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
  245. package/dist/server/utils/prefetchBetRecordsQuery.mjs +9 -8
  246. package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
  247. package/dist/server/utils/prefetchCashbacksQuery.mjs +9 -8
  248. package/dist/server/utils/prefetchDepositQuery.js +1 -1
  249. package/dist/server/utils/prefetchDepositQuery.mjs +11 -10
  250. package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
  251. package/dist/server/utils/prefetchDepositRecordsQuery.mjs +11 -10
  252. package/dist/server/utils/prefetchGamesQuery.js +1 -1
  253. package/dist/server/utils/prefetchGamesQuery.mjs +3 -2
  254. package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
  255. package/dist/server/utils/prefetchInstapayBankListQuery.mjs +3 -2
  256. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
  257. package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +3 -2
  258. package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
  259. package/dist/server/utils/prefetchJackpotsQuery.mjs +5 -4
  260. package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
  261. package/dist/server/utils/prefetchMemberVerificationQuery.mjs +6 -5
  262. package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
  263. package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +3 -2
  264. package/dist/server/utils/prefetchPlatformQuery.js +1 -1
  265. package/dist/server/utils/prefetchPlatformQuery.mjs +3 -2
  266. package/dist/server/utils/prefetchPromoQuery.js +1 -1
  267. package/dist/server/utils/prefetchPromoQuery.mjs +7 -6
  268. package/dist/server/utils/prefetchPromosQuery.js +1 -1
  269. package/dist/server/utils/prefetchPromosQuery.mjs +6 -5
  270. package/dist/server/utils/prefetchSessionQuery.js +1 -1
  271. package/dist/server/utils/prefetchSessionQuery.mjs +3 -2
  272. package/dist/server/utils/prefetchSiteQuery.js +1 -1
  273. package/dist/server/utils/prefetchSiteQuery.mjs +3 -2
  274. package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
  275. package/dist/server/utils/prefetchTopWinsQuery.mjs +7 -6
  276. package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
  277. package/dist/server/utils/prefetchTournamentsQuery.mjs +3 -2
  278. package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
  279. package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +3 -2
  280. package/dist/server/utils/prefetchWalletQuery.js +1 -1
  281. package/dist/server/utils/prefetchWalletQuery.mjs +10 -9
  282. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
  283. package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +3 -2
  284. package/dist/server-services.d.ts +2 -0
  285. package/dist/server-utils.d.ts +2 -0
  286. package/dist/services.d.ts +2 -0
  287. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  288. package/dist/ui/AlertDialog/alertDialog.recipe.mjs +3 -2
  289. package/dist/ui/Avatar/avatar.recipe.js +1 -1
  290. package/dist/ui/Avatar/avatar.recipe.mjs +6 -5
  291. package/dist/ui/Badge/Badge.js +1 -1
  292. package/dist/ui/Badge/Badge.mjs +13 -12
  293. package/dist/ui/Badge/badge.recipe.js +1 -1
  294. package/dist/ui/Badge/badge.recipe.mjs +3 -2
  295. package/dist/ui/Button/Button.js +1 -1
  296. package/dist/ui/Button/Button.mjs +14 -13
  297. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  298. package/dist/ui/Checkbox/checkbox.recipe.mjs +3 -2
  299. package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
  300. package/dist/ui/Clipboard/clipboard.recipe.mjs +3 -2
  301. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  302. package/dist/ui/DatePicker/datePicker.recipe.mjs +3 -2
  303. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  304. package/dist/ui/Dialog/dialog.recipe.mjs +3 -2
  305. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  306. package/dist/ui/Drawer/drawer.recipe.mjs +3 -2
  307. package/dist/ui/Field/field.recipe.js +1 -1
  308. package/dist/ui/Field/field.recipe.mjs +3 -2
  309. package/dist/ui/IconButton/IconButton.js +1 -1
  310. package/dist/ui/IconButton/IconButton.mjs +9 -8
  311. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  312. package/dist/ui/NumberInput/numberInput.recipe.mjs +3 -2
  313. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  314. package/dist/ui/PinInput/pinInput.recipe.mjs +3 -2
  315. package/dist/ui/Popover/popover.recipe.js +1 -1
  316. package/dist/ui/Popover/popover.recipe.mjs +6 -5
  317. package/dist/ui/Presence.js +1 -1
  318. package/dist/ui/Presence.mjs +8 -7
  319. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  320. package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -2
  321. package/dist/ui/Select/select.recipe.js +1 -1
  322. package/dist/ui/Select/select.recipe.mjs +3 -2
  323. package/dist/ui/Table/table.recipe.js +1 -1
  324. package/dist/ui/Table/table.recipe.mjs +3 -2
  325. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  326. package/dist/ui/Tabs/tabs.recipe.mjs +3 -2
  327. package/dist/ui.d.ts +2 -0
  328. package/dist/utils/createRecipeContext.js +1 -1
  329. package/dist/utils/createRecipeContext.mjs +30 -29
  330. package/dist/utils/getLocaleInfo.js +1 -1
  331. package/dist/utils/getLocaleInfo.mjs +212 -173
  332. package/dist/utils.d.ts +2 -0
  333. package/package.json +6 -6
  334. package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.js +0 -6
  335. package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.mjs +0 -790
  336. /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.js +0 -0
  337. /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs +0 -0
@@ -1,11 +1,12 @@
1
1
  "use client";
2
- import { useDialogContext as w } from "@ark-ui/react";
3
- import { zodResolver as R } from "../../node_modules/.pnpm/@hookform_resolvers@5.0.1_react-hook-form@7.56.4_react@19.1.0_/node_modules/@hookform/resolvers/zod/dist/zod.mjs";
4
- import { ObjectType as A } from "../../node_modules/.pnpm/@opexa_portal-sdk-core@0.0.19/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs";
5
- import { n as M } from "../../_virtual/navigation.mjs";
6
- import { useState as P } from "react";
7
- import { useForm as g, Controller as E } from "react-hook-form";
8
- import { z as o } from "zod";
2
+ import { j as e } from "../../_virtual/jsx-runtime.mjs";
3
+ import { useDialogContext as R } from "@ark-ui/react";
4
+ import { zodResolver as h } from "../../node_modules/.pnpm/@hookform_resolvers@5.0.1_react-hook-form@7.56.4_react@19.1.0_/node_modules/@hookform/resolvers/zod/dist/zod.mjs";
5
+ import { ObjectType as M } from "../../node_modules/.pnpm/@opexa_portal-sdk-core@0.0.21/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs";
6
+ import { n as P } from "../../_virtual/navigation.mjs";
7
+ import { useState as k } from "react";
8
+ import { useForm as g, Controller as j } from "react-hook-form";
9
+ import { z as r } from "zod";
9
10
  import "@opexa/portal-sdk-core";
10
11
  import "@tanstack/react-query";
11
12
  import "tiny-invariant";
@@ -15,228 +16,278 @@ import "../../utils/parseDecimal.mjs";
15
16
  import "../../utils/getLocaleInfo.mjs";
16
17
  import "../../utils/getQueryClient.mjs";
17
18
  import "../../utils/isMobile.mjs";
18
- import { toaster as x } from "../../utils/toaster.mjs";
19
- import { useCooldown as k } from "../../hooks/useCooldown.mjs";
20
- import { useGlobalStore as V } from "../../hooks/useGlobalStore.mjs";
19
+ import { toaster as y } from "../../utils/toaster.mjs";
20
+ import { useCooldown as V } from "../../hooks/useCooldown.mjs";
21
+ import { useGlobalStore as $ } from "../../hooks/useGlobalStore.mjs";
21
22
  import "../../hooks/useInfiniteQueryHelper.mjs";
22
- import { useLocaleInfo as $ } from "../../hooks/useLocaleInfo.mjs";
23
- import { useMobileNumberParser as j } from "../../hooks/useMobileNumberParser.mjs";
23
+ import { useLocaleInfo as D } from "../../hooks/useLocaleInfo.mjs";
24
+ import { useMobileNumberParser as F } from "../../hooks/useMobileNumberParser.mjs";
24
25
  import "usehooks-ts";
25
- import { useSendVerificationCodeMutation as D } from "../../hooks/useSendVerificationCodeMutation.mjs";
26
- import { useSignInMutation as F } from "../../hooks/useSignInMutation.mjs";
27
- import { useSignUpMutation as O } from "../../hooks/useSignUpMutation.mjs";
28
- import { ArrowLeftIcon as L } from "../../icons/ArrowLeftIcon.mjs";
29
- import { CheckIcon as z } from "../../icons/CheckIcon.mjs";
26
+ import { useSendVerificationCodeMutation as O } from "../../hooks/useSendVerificationCodeMutation.mjs";
27
+ import { useSignInMutation as E } from "../../hooks/useSignInMutation.mjs";
28
+ import { useSignUpMutation as L } from "../../hooks/useSignUpMutation.mjs";
29
+ import { ArrowLeftIcon as z } from "../../icons/ArrowLeftIcon.mjs";
30
+ import { CheckIcon as U } from "../../icons/CheckIcon.mjs";
30
31
  import "../../ui/AlertDialog/AlertDialog.mjs";
31
32
  import "../../ui/Avatar/Avatar.mjs";
32
33
  import "../../ui/Badge/Badge.mjs";
33
- import { Button as y } from "../../ui/Button/Button.mjs";
34
- import { Root as U, Control as G, Indicator as H, Label as T, HiddenInput as _ } from "../../ui/Checkbox/Checkbox.mjs";
34
+ import { Button as v } from "../../ui/Button/Button.mjs";
35
+ import { Root as G, Control as H, Indicator as T, Label as _, HiddenInput as B } from "../../ui/Checkbox/Checkbox.mjs";
35
36
  import "../../ui/Clipboard/Clipboard.mjs";
36
37
  import "../../ui/DatePicker/DatePicker.mjs";
37
38
  import "../../ui/Dialog/Dialog.mjs";
38
39
  import "../../ui/Drawer/Drawer.mjs";
39
- import { Root as B, Label as W, Input as Z, ErrorText as Y } from "../../ui/Field/Field.mjs";
40
+ import { Root as W, Label as Z, Input as Y, ErrorText as q } from "../../ui/Field/Field.mjs";
40
41
  import "../../ui/IconButton/iconButton.recipe.mjs";
41
42
  import "../../ui/NumberInput/NumberInput.mjs";
42
- import { Root as q, Control as J, Input as m, HiddenInput as K } from "../../ui/PinInput/PinInput.mjs";
43
+ import { Root as J, Control as K, Input as a, HiddenInput as Q } from "../../ui/PinInput/PinInput.mjs";
43
44
  import "../../ui/Popover/Popover.mjs";
44
45
  import "tailwind-merge";
45
46
  import "../../ui/SegmentGroup/SegmentGroup.mjs";
46
47
  import "../../ui/Select/Select.mjs";
47
48
  import "../../ui/Table/Table.mjs";
48
49
  import "../../ui/Tabs/Tabs.mjs";
49
- import { useShallow as Q } from "../../node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.mjs";
50
- import { i as X } from "../../_virtual/index.cjs.mjs";
51
- function Je() {
50
+ import { useShallow as X } from "../../node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.mjs";
51
+ import { i as ee } from "../../_virtual/index.cjs.mjs";
52
+ function Qe() {
52
53
  var b;
53
- const [d, c] = P(1), u = w(), l = M.useSearchParams(), p = V(Q((e) => e.signIn)), h = O(), v = F(), f = D(), N = $(), r = j(), C = o.object({
54
- mobileNumber: o.string().superRefine((e, t) => {
55
- r.validate(e) || t.addIssue({
56
- code: o.ZodIssueCode.custom,
54
+ const [p, l] = k(1), u = R(), c = P.useSearchParams(), f = $(X((t) => t.signIn)), N = L(), C = E(), x = O(), S = D(), i = F(), I = r.object({
55
+ mobileNumber: r.string().superRefine((t, o) => {
56
+ i.validate(t) || o.addIssue({
57
+ code: r.ZodIssueCode.custom,
57
58
  message: "Invalid mobile number"
58
59
  });
59
60
  }),
60
- termsAccepted: o.boolean().superRefine((e, t) => {
61
- e || t.addIssue({
62
- code: o.ZodIssueCode.custom,
61
+ termsAccepted: r.boolean().superRefine((t, o) => {
62
+ t || o.addIssue({
63
+ code: r.ZodIssueCode.custom,
63
64
  message: "You must accept the terms and conditions"
64
65
  });
65
66
  })
66
- }), S = o.object({
67
- verificationCode: o.array(o.string().min(1).max(1).trim()).min(6).max(6)
68
- }), a = g({
69
- resolver: R(C),
67
+ }), w = r.object({
68
+ verificationCode: r.array(r.string().min(1).max(1).trim()).min(6).max(6)
69
+ }), s = g({
70
+ resolver: h(I),
70
71
  defaultValues: {
71
72
  mobileNumber: "",
72
73
  termsAccepted: !1
73
74
  }
74
- }), i = g({
75
- resolver: R(S),
75
+ }), m = g({
76
+ resolver: h(w),
76
77
  defaultValues: {
77
78
  verificationCode: Array.from({ length: 6 }).fill("")
78
79
  }
79
- }), n = k({
80
+ }), n = V({
80
81
  max: 60,
81
82
  duration: 1e3 * 60
82
83
  });
83
- return /* @__PURE__ */ React.createElement(React.Fragment, null, d === 1 && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "w-full grow" }, /* @__PURE__ */ React.createElement("h2", { className: "mt-xl text-center text-lg font-semibold" }, "Create an account"), /* @__PURE__ */ React.createElement("p", { className: "text-gray-600 mt-xs text-center text-sm" }, "Register instantly and start playing!"), /* @__PURE__ */ React.createElement(
84
- "form",
85
- {
86
- className: "mt-5",
87
- onSubmit: a.handleSubmit(async (e) => {
88
- try {
89
- await f.mutateAsync({
90
- channel: "SMS",
91
- recipient: r.format(e.mobileNumber)
92
- }), c(2), n.start();
93
- } catch (t) {
94
- x.error({
95
- description: t instanceof Error ? t.message : "Failed to send verification code"
96
- });
97
- }
98
- })
99
- },
100
- /* @__PURE__ */ React.createElement(B, { invalid: !!a.formState.errors.mobileNumber }, /* @__PURE__ */ React.createElement(W, null, "Mobile Number"), /* @__PURE__ */ React.createElement("div", { className: "relative" }, /* @__PURE__ */ React.createElement(N.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }), /* @__PURE__ */ React.createElement(
101
- Z,
102
- {
103
- className: "pl-11",
104
- ...a.register("mobileNumber")
105
- }
106
- )), /* @__PURE__ */ React.createElement(Y, null, (b = a.formState.errors.mobileNumber) == null ? void 0 : b.message)),
107
- /* @__PURE__ */ React.createElement(
108
- y,
109
- {
110
- type: "submit",
111
- className: "mt-5",
112
- disabled: a.formState.isSubmitting
113
- },
114
- "Create Account"
115
- ),
116
- /* @__PURE__ */ React.createElement(
117
- E,
118
- {
119
- control: a.control,
120
- name: "termsAccepted",
121
- render: (e) => /* @__PURE__ */ React.createElement(
122
- U,
84
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
85
+ p === 1 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
86
+ /* @__PURE__ */ e.jsxs("div", { className: "w-full grow", children: [
87
+ /* @__PURE__ */ e.jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Create an account" }),
88
+ /* @__PURE__ */ e.jsx("p", { className: "text-gray-600 mt-xs text-center text-sm", children: "Register instantly and start playing!" }),
89
+ /* @__PURE__ */ e.jsxs(
90
+ "form",
123
91
  {
124
- className: "mt-xl",
125
- invalid: e.fieldState.invalid,
126
- checked: e.field.value,
127
- onCheckedChange: (t) => {
128
- e.field.onChange(t.checked);
129
- }
130
- },
131
- /* @__PURE__ */ React.createElement(G, null, /* @__PURE__ */ React.createElement(H, { asChild: !0 }, /* @__PURE__ */ React.createElement(z, null))),
132
- /* @__PURE__ */ React.createElement(T, null, "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."),
133
- /* @__PURE__ */ React.createElement(_, null)
134
- )
135
- }
136
- )
137
- )), /* @__PURE__ */ React.createElement("div", { className: "flex w-full items-center justify-center gap-xs text-sm" }, /* @__PURE__ */ React.createElement("span", { className: "text-gray-500" }, "Don't have an account?"), /* @__PURE__ */ React.createElement(
138
- "button",
139
- {
140
- type: "submit",
141
- className: "text-accent-700 font-semibold",
142
- onClick: () => {
143
- u.setOpen(!1), p.setOpen(!0);
144
- }
145
- },
146
- "Log In"
147
- ))), d === 2 && /* @__PURE__ */ React.createElement("div", { className: "w-full grow" }, /* @__PURE__ */ React.createElement("h2", { className: "mt-xl text-center text-lg font-semibold" }, "Check your Phone"), /* @__PURE__ */ React.createElement("p", { className: "text-gray-600 mt-xs text-center text-sm" }, "We’ve sent a verification code to your mobile number", " ", /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, r.format(a.getValues("mobileNumber"))), " ", "via text"), /* @__PURE__ */ React.createElement(
148
- "form",
149
- {
150
- className: "mt-5",
151
- onSubmit: i.handleSubmit(async ({ verificationCode: e }) => {
152
- const t = X.ObjectId.generate(A.MemberAccount).toString(), { mobileNumber: s } = a.getValues();
153
- try {
154
- await h.mutateAsync({
155
- id: t,
156
- mobileNumber: r.format(s),
157
- verificationCode: e.join(""),
158
- referralCode: l.get("referralCode") ?? void 0,
159
- domain: l.get("domain") ?? void 0,
160
- btag: l.get("btag") ?? void 0
161
- });
162
- const I = `${r.format(s)}${t}`;
163
- try {
164
- await v.mutateAsync({
165
- type: "NAME_AND_PASSWORD",
166
- name: r.format(s),
167
- password: I
168
- });
169
- } catch {
170
- p.setOpen(!0);
92
+ className: "mt-5",
93
+ onSubmit: s.handleSubmit(async (t) => {
94
+ try {
95
+ await x.mutateAsync({
96
+ channel: "SMS",
97
+ recipient: i.format(t.mobileNumber)
98
+ }), l(2), n.start();
99
+ } catch (o) {
100
+ y.error({
101
+ description: o instanceof Error ? o.message : "Failed to send verification code"
102
+ });
103
+ }
104
+ }),
105
+ children: [
106
+ /* @__PURE__ */ e.jsxs(W, { invalid: !!s.formState.errors.mobileNumber, children: [
107
+ /* @__PURE__ */ e.jsx(Z, { children: "Mobile Number" }),
108
+ /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
109
+ /* @__PURE__ */ e.jsx(S.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }),
110
+ /* @__PURE__ */ e.jsx(
111
+ Y,
112
+ {
113
+ className: "pl-11",
114
+ ...s.register("mobileNumber")
115
+ }
116
+ )
117
+ ] }),
118
+ /* @__PURE__ */ e.jsx(q, { children: (b = s.formState.errors.mobileNumber) == null ? void 0 : b.message })
119
+ ] }),
120
+ /* @__PURE__ */ e.jsx(
121
+ v,
122
+ {
123
+ type: "submit",
124
+ className: "mt-5",
125
+ disabled: s.formState.isSubmitting,
126
+ children: "Create Account"
127
+ }
128
+ ),
129
+ /* @__PURE__ */ e.jsx(
130
+ j,
131
+ {
132
+ control: s.control,
133
+ name: "termsAccepted",
134
+ render: (t) => /* @__PURE__ */ e.jsxs(
135
+ G,
136
+ {
137
+ className: "mt-xl",
138
+ invalid: t.fieldState.invalid,
139
+ checked: t.field.value,
140
+ onCheckedChange: (o) => {
141
+ t.field.onChange(o.checked);
142
+ },
143
+ children: [
144
+ /* @__PURE__ */ e.jsx(H, { children: /* @__PURE__ */ e.jsx(T, { asChild: !0, children: /* @__PURE__ */ e.jsx(U, {}) }) }),
145
+ /* @__PURE__ */ e.jsx(_, { 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." }),
146
+ /* @__PURE__ */ e.jsx(B, {})
147
+ ]
148
+ }
149
+ )
150
+ }
151
+ )
152
+ ]
171
153
  }
172
- u.setOpen(!1), a.reset(), i.reset(), c(1);
173
- } catch {
174
- x.error({
175
- title: "Invalid Verification Code"
176
- });
177
- }
178
- })
179
- },
180
- /* @__PURE__ */ React.createElement(
181
- E,
182
- {
183
- name: "verificationCode",
184
- control: i.control,
185
- render: (e) => /* @__PURE__ */ React.createElement(
186
- q,
154
+ )
155
+ ] }),
156
+ /* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center justify-center gap-xs text-sm", children: [
157
+ /* @__PURE__ */ e.jsx("span", { className: "text-gray-500", children: "Don't have an account?" }),
158
+ /* @__PURE__ */ e.jsx(
159
+ "button",
187
160
  {
188
- placeholder: "0",
189
- invalid: e.fieldState.invalid,
190
- value: e.field.value,
191
- onValueChange: (t) => {
192
- e.field.onChange(t.value);
193
- }
194
- },
195
- /* @__PURE__ */ React.createElement(J, null, /* @__PURE__ */ React.createElement(m, { index: 0 }), /* @__PURE__ */ React.createElement(m, { index: 1 }), /* @__PURE__ */ React.createElement(m, { index: 2 }), /* @__PURE__ */ React.createElement(m, { index: 3 }), /* @__PURE__ */ React.createElement(m, { index: 4 }), /* @__PURE__ */ React.createElement(m, { index: 5 })),
196
- /* @__PURE__ */ React.createElement(K, null)
161
+ type: "submit",
162
+ className: "text-accent-700 font-semibold",
163
+ onClick: () => {
164
+ u.setOpen(!1), f.setOpen(!0);
165
+ },
166
+ children: "Log In"
167
+ }
197
168
  )
198
- }
199
- ),
200
- /* @__PURE__ */ React.createElement(
201
- y,
202
- {
203
- type: "submit",
204
- className: "mt-5",
205
- disabled: i.formState.isSubmitting
206
- },
207
- "Verify and Play"
208
- ),
209
- /* @__PURE__ */ React.createElement("div", { className: "mt-5 flex w-full items-center justify-center gap-xs text-sm" }, /* @__PURE__ */ React.createElement("span", { className: "text-gray-500" }, "Didn't recieve the code?"), /* @__PURE__ */ React.createElement(
210
- "button",
211
- {
212
- type: "button",
213
- className: "text-accent-700 font-semibold disabled:cursor-not-allowed disabled:opacity-75",
214
- disabled: n.cooling,
215
- onClick: async () => {
216
- await f.mutateAsync({
217
- channel: "SMS",
218
- recipient: r.format(
219
- a.getValues("mobileNumber")
169
+ ] })
170
+ ] }),
171
+ p === 2 && /* @__PURE__ */ e.jsxs("div", { className: "w-full grow", children: [
172
+ /* @__PURE__ */ e.jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }),
173
+ /* @__PURE__ */ e.jsxs("p", { className: "text-gray-600 mt-xs text-center text-sm", children: [
174
+ "We’ve sent a verification code to your mobile number",
175
+ " ",
176
+ /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: i.format(s.getValues("mobileNumber")) }),
177
+ " ",
178
+ "via text"
179
+ ] }),
180
+ /* @__PURE__ */ e.jsxs(
181
+ "form",
182
+ {
183
+ className: "mt-5",
184
+ onSubmit: m.handleSubmit(async ({ verificationCode: t }) => {
185
+ const o = ee.ObjectId.generate(M.MemberAccount).toString(), { mobileNumber: d } = s.getValues();
186
+ try {
187
+ await N.mutateAsync({
188
+ id: o,
189
+ mobileNumber: i.format(d),
190
+ verificationCode: t.join(""),
191
+ referralCode: c.get("referralCode") ?? void 0,
192
+ domain: c.get("domain") ?? void 0,
193
+ btag: c.get("btag") ?? void 0
194
+ });
195
+ const A = `${i.format(d)}${o}`;
196
+ try {
197
+ await C.mutateAsync({
198
+ type: "NAME_AND_PASSWORD",
199
+ name: i.format(d),
200
+ password: A
201
+ });
202
+ } catch {
203
+ f.setOpen(!0);
204
+ }
205
+ u.setOpen(!1), s.reset(), m.reset(), l(1);
206
+ } catch {
207
+ y.error({
208
+ title: "Invalid Verification Code"
209
+ });
210
+ }
211
+ }),
212
+ children: [
213
+ /* @__PURE__ */ e.jsx(
214
+ j,
215
+ {
216
+ name: "verificationCode",
217
+ control: m.control,
218
+ render: (t) => /* @__PURE__ */ e.jsxs(
219
+ J,
220
+ {
221
+ placeholder: "0",
222
+ invalid: t.fieldState.invalid,
223
+ value: t.field.value,
224
+ onValueChange: (o) => {
225
+ t.field.onChange(o.value);
226
+ },
227
+ children: [
228
+ /* @__PURE__ */ e.jsxs(K, { children: [
229
+ /* @__PURE__ */ e.jsx(a, { index: 0 }),
230
+ /* @__PURE__ */ e.jsx(a, { index: 1 }),
231
+ /* @__PURE__ */ e.jsx(a, { index: 2 }),
232
+ /* @__PURE__ */ e.jsx(a, { index: 3 }),
233
+ /* @__PURE__ */ e.jsx(a, { index: 4 }),
234
+ /* @__PURE__ */ e.jsx(a, { index: 5 })
235
+ ] }),
236
+ /* @__PURE__ */ e.jsx(Q, {})
237
+ ]
238
+ }
239
+ )
240
+ }
241
+ ),
242
+ /* @__PURE__ */ e.jsx(
243
+ v,
244
+ {
245
+ type: "submit",
246
+ className: "mt-5",
247
+ disabled: m.formState.isSubmitting,
248
+ children: "Verify and Play"
249
+ }
250
+ ),
251
+ /* @__PURE__ */ e.jsxs("div", { className: "mt-5 flex w-full items-center justify-center gap-xs text-sm", children: [
252
+ /* @__PURE__ */ e.jsx("span", { className: "text-gray-500", children: "Didn't recieve the code?" }),
253
+ /* @__PURE__ */ e.jsx(
254
+ "button",
255
+ {
256
+ type: "button",
257
+ className: "text-accent-700 font-semibold disabled:cursor-not-allowed disabled:opacity-75",
258
+ disabled: n.cooling,
259
+ onClick: async () => {
260
+ await x.mutateAsync({
261
+ channel: "SMS",
262
+ recipient: i.format(
263
+ s.getValues("mobileNumber")
264
+ )
265
+ }), n.start();
266
+ },
267
+ children: n.cooling ? `Resend in ${n.countdown}s` : "Resend"
268
+ }
269
+ )
270
+ ] }),
271
+ /* @__PURE__ */ e.jsxs(
272
+ "button",
273
+ {
274
+ type: "button",
275
+ className: "text-gray-600 mx-auto mt-5 flex w-fit items-center gap-1 text-sm font-semibold",
276
+ onClick: () => {
277
+ l(1), m.reset(), n.stop();
278
+ },
279
+ children: [
280
+ /* @__PURE__ */ e.jsx(z, { className: "size-5" }),
281
+ "Back"
282
+ ]
283
+ }
220
284
  )
221
- }), n.start();
222
- }
223
- },
224
- n.cooling ? `Resend in ${n.countdown}s` : "Resend"
225
- )),
226
- /* @__PURE__ */ React.createElement(
227
- "button",
228
- {
229
- type: "button",
230
- className: "text-gray-600 mx-auto mt-5 flex w-fit items-center gap-1 text-sm font-semibold",
231
- onClick: () => {
232
- c(1), i.reset(), n.stop();
285
+ ]
233
286
  }
234
- },
235
- /* @__PURE__ */ React.createElement(L, { className: "size-5" }),
236
- "Back"
237
- )
238
- )));
287
+ )
288
+ ] })
289
+ ] });
239
290
  }
240
291
  export {
241
- Je as SignUpForm
292
+ Qe as SignUpForm
242
293
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("embla-carousel-react"),m=require("../../_virtual/image.js");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");const t=require("../../utils/formatNumber.js"),i=require("../../utils/getGameImageUrl.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../utils/toaster.js");require("lodash-es");require("../../_virtual/index.cjs.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");const u=require("../../hooks/useLocaleInfo.js");require("usehooks-ts");const n=require("../../hooks/useTopWinsQuery.js");function o(a){const c=u.useLocaleInfo(),r=n.useTopWinsQuery().data??[],[l]=s({align:"start",slidesToScroll:1});return r!=null&&r.length?React.createElement("div",{className:a.className},React.createElement("div",{className:"text-gray-600 mb-3 text-lg font-semibold md:mb-4"},a.heading),React.createElement("div",{ref:l,className:"relative lg:overflow-hidden"},React.createElement("div",{className:"flex gap-sm lg:gap-md"},r.map(e=>React.createElement("div",{key:e.id,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)]"},React.createElement("div",{className:"mx-auto aspect-square w-full"},e.game&&React.createElement(m,{width:100,height:100,src:i.getGameImageUrl(e.game),alt:"",className:"size-full rounded-sm object-cover"})),React.createElement("div",{className:"space-y-0.5"},React.createElement("div",{className:"text-gray-600 text-xs"},e.member.name),React.createElement("div",{className:"text-gray-800 text-sm font-semibold"},t.formatNumber(e.payout,{currency:c.currency.code,minDecimalPlaces:2})),React.createElement("div",{className:"text-gray-600 text-xs"},t.formatNumber(e.multiplier,{minDecimalPlaces:2})))))))):null}exports.TopWins=o;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),u=require("embla-carousel-react"),c=require("../../_virtual/image.js");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");const t=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("../../utils/toaster.js");require("lodash-es");require("../../_virtual/index.cjs.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");const n=require("../../hooks/useLocaleInfo.js");require("usehooks-ts");const o=require("../../hooks/useTopWinsQuery.js");function x(i){const a=n.useLocaleInfo(),s=o.useTopWinsQuery().data??[],[l]=u({align:"start",slidesToScroll:1});return s!=null&&s.length?e.jsxRuntimeExports.jsxs("div",{className:i.className,children:[e.jsxRuntimeExports.jsx("div",{className:"text-gray-600 mb-3 text-lg font-semibold md:mb-4",children:i.heading}),e.jsxRuntimeExports.jsx("div",{ref:l,className:"relative lg:overflow-hidden",children:e.jsxRuntimeExports.jsx("div",{className:"flex gap-sm lg:gap-md",children:s.map(r=>e.jsxRuntimeExports.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.jsxRuntimeExports.jsx("div",{className:"mx-auto aspect-square w-full",children:r.game&&e.jsxRuntimeExports.jsx(c,{width:100,height:100,src:m.getGameImageUrl(r.game),alt:"",className:"size-full rounded-sm object-cover"})}),e.jsxRuntimeExports.jsxs("div",{className:"space-y-0.5",children:[e.jsxRuntimeExports.jsx("div",{className:"text-gray-600 text-xs",children:r.member.name}),e.jsxRuntimeExports.jsx("div",{className:"text-gray-800 text-sm font-semibold",children:t.formatNumber(r.payout,{currency:a.currency.code,minDecimalPlaces:2})}),e.jsxRuntimeExports.jsx("div",{className:"text-gray-600 text-xs",children:t.formatNumber(r.multiplier,{minDecimalPlaces:2})})]})]},r.id))})})]}):null}exports.TopWins=x;
@@ -1,5 +1,6 @@
1
1
  "use client";
2
- import l from "embla-carousel-react";
2
+ import { j as e } from "../../_virtual/jsx-runtime.mjs";
3
+ import i from "embla-carousel-react";
3
4
  import o from "../../_virtual/image.mjs";
4
5
  import "@opexa/portal-sdk-core";
5
6
  import "@tanstack/react-query";
@@ -7,8 +8,8 @@ import "tiny-invariant";
7
8
  import "../../constants/index.mjs";
8
9
  import "../../utils/capitalize.mjs";
9
10
  import "react";
10
- import { formatNumber as m } from "../../utils/formatNumber.mjs";
11
- import { getGameImageUrl as s } from "../../utils/getGameImageUrl.mjs";
11
+ import { formatNumber as a } from "../../utils/formatNumber.mjs";
12
+ import { getGameImageUrl as c } from "../../utils/getGameImageUrl.mjs";
12
13
  import "../../utils/getLocaleInfo.mjs";
13
14
  import "../../utils/getQueryClient.mjs";
14
15
  import "../../utils/isMobile.mjs";
@@ -18,38 +19,47 @@ import "lodash-es";
18
19
  import "../../_virtual/index.cjs.mjs";
19
20
  import "../../hooks/useGlobalStore.mjs";
20
21
  import "../../hooks/useInfiniteQueryHelper.mjs";
21
- import { useLocaleInfo as i } from "../../hooks/useLocaleInfo.mjs";
22
+ import { useLocaleInfo as d } from "../../hooks/useLocaleInfo.mjs";
22
23
  import "usehooks-ts";
23
24
  import { useTopWinsQuery as n } from "../../hooks/useTopWinsQuery.mjs";
24
- function C(a) {
25
- const r = i(), t = n().data ?? [], [c] = l({
25
+ function L(s) {
26
+ const t = d(), m = n().data ?? [], [l] = i({
26
27
  align: "start",
27
28
  slidesToScroll: 1
28
29
  });
29
- return t != null && t.length ? /* @__PURE__ */ React.createElement("div", { className: a.className }, /* @__PURE__ */ React.createElement("div", { className: "text-gray-600 mb-3 text-lg font-semibold md:mb-4" }, a.heading), /* @__PURE__ */ React.createElement("div", { ref: c, className: "relative lg:overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { className: "flex gap-sm lg:gap-md" }, t.map((e) => /* @__PURE__ */ React.createElement(
30
- "div",
31
- {
32
- key: e.id,
33
- 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)]"
34
- },
35
- /* @__PURE__ */ React.createElement("div", { className: "mx-auto aspect-square w-full" }, e.game && /* @__PURE__ */ React.createElement(
36
- o,
30
+ return m != null && m.length ? /* @__PURE__ */ e.jsxs("div", { className: s.className, children: [
31
+ /* @__PURE__ */ e.jsx("div", { className: "text-gray-600 mb-3 text-lg font-semibold md:mb-4", children: s.heading }),
32
+ /* @__PURE__ */ e.jsx("div", { ref: l, className: "relative lg:overflow-hidden", children: /* @__PURE__ */ e.jsx("div", { className: "flex gap-sm lg:gap-md", children: m.map((r) => /* @__PURE__ */ e.jsxs(
33
+ "div",
37
34
  {
38
- width: 100,
39
- height: 100,
40
- src: s(e.game),
41
- alt: "",
42
- className: "size-full rounded-sm object-cover"
43
- }
44
- )),
45
- /* @__PURE__ */ React.createElement("div", { className: "space-y-0.5" }, /* @__PURE__ */ React.createElement("div", { className: "text-gray-600 text-xs" }, e.member.name), /* @__PURE__ */ React.createElement("div", { className: "text-gray-800 text-sm font-semibold" }, m(e.payout, {
46
- currency: r.currency.code,
47
- minDecimalPlaces: 2
48
- })), /* @__PURE__ */ React.createElement("div", { className: "text-gray-600 text-xs" }, m(e.multiplier, {
49
- minDecimalPlaces: 2
50
- })))
51
- ))))) : null;
35
+ 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)]",
36
+ children: [
37
+ /* @__PURE__ */ e.jsx("div", { className: "mx-auto aspect-square w-full", children: r.game && /* @__PURE__ */ e.jsx(
38
+ o,
39
+ {
40
+ width: 100,
41
+ height: 100,
42
+ src: c(r.game),
43
+ alt: "",
44
+ className: "size-full rounded-sm object-cover"
45
+ }
46
+ ) }),
47
+ /* @__PURE__ */ e.jsxs("div", { className: "space-y-0.5", children: [
48
+ /* @__PURE__ */ e.jsx("div", { className: "text-gray-600 text-xs", children: r.member.name }),
49
+ /* @__PURE__ */ e.jsx("div", { className: "text-gray-800 text-sm font-semibold", children: a(r.payout, {
50
+ currency: t.currency.code,
51
+ minDecimalPlaces: 2
52
+ }) }),
53
+ /* @__PURE__ */ e.jsx("div", { className: "text-gray-600 text-xs", children: a(r.multiplier, {
54
+ minDecimalPlaces: 2
55
+ }) })
56
+ ] })
57
+ ]
58
+ },
59
+ r.id
60
+ )) }) })
61
+ ] }) : null;
52
62
  }
53
63
  export {
54
- C as TopWins
64
+ L as TopWins
55
65
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("embla-carousel-react"),R=require("../../_virtual/link.js"),r=require("react");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("../../utils/toaster.js");require("lodash-es");require("../../_virtual/index.cjs.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const v=require("../../hooks/useTournamentsQuery.js"),b=require("../../icons/ArrowLeftIcon.js"),E=require("../../icons/ArrowRightIcon.js"),h=require("../../icons/ChevronRightIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const i=require("../../ui/Button/Button.js");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");require("../../ui/Field/Field.js");require("@ark-ui/react");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 C=require("./TournamentCounterItem.js");function S(l){var c;const[s,e]=N({align:"start",slidesToScroll:1}),u=r.useCallback(()=>{e&&e.scrollPrev()},[e]),o=r.useCallback(()=>{e&&e.scrollNext()},[e]),[m,q]=r.useState(!1),[d,f]=r.useState(!1),t=r.useCallback(()=>{e&&(q(e.canScrollPrev()),f(e.canScrollNext()))},[e]);r.useEffect(()=>{e&&(t(),e.on("select",t),e.on("reInit",t))},[e,t]);const n=((c=v.useTournamentsQuery({first:100,filter:{status:{equal:"ACTIVE"}}}).data)==null?void 0:c.pages[0].edges.map(a=>a.node))??[];return n.length<=0?null:React.createElement("div",{className:l.className},React.createElement("div",{className:"mb-3 flex items-center justify-between md:mb-4"},React.createElement("div",{className:"text-lg font-semibold"},l.heading),React.createElement("div",{className:"flex items-center md:gap-3xl"},React.createElement(R,{href:l.seeAllUrl,className:"flex gap-sm text-sm font-semibold"},"See All",React.createElement(h.ChevronRightIcon,{className:"size-5 lg:hidden"})),React.createElement("div",{className:"hidden lg:flex"},React.createElement(i.Button,{disabled:!m,onClick:u,variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0","aria-label":"Previous"},React.createElement(b.ArrowLeftIcon,{className:"size-5"})),React.createElement(i.Button,{disabled:!d,onClick:o,variant:"outline",colorScheme:"gray",className:"rounded-l-none","aria-label":"Next"},React.createElement(E.ArrowRightIcon,{className:"size-5"}))))),React.createElement("div",{className:"w-full overflow-hidden",ref:s},React.createElement("div",{className:"flex gap-2.5"},n.map((a,g)=>React.createElement(C.TournamentCounterItem,{key:a.id,index:g,tournament:a,className:n.length<2?"w-full":"w-full lg:w-[calc((100%-0.75rem)/2)]"})))))}exports.TournamentCounter=S;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../_virtual/jsx-runtime.js"),h=require("embla-carousel-react"),g=require("../../_virtual/link.js"),s=require("react");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("../../utils/toaster.js");require("lodash-es");require("../../_virtual/index.cjs.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const N=require("../../hooks/useTournamentsQuery.js"),R=require("../../icons/ArrowLeftIcon.js"),v=require("../../icons/ArrowRightIcon.js"),b=require("../../icons/ChevronRightIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const o=require("../../ui/Button/Button.js");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");require("../../ui/Field/Field.js");require("@ark-ui/react");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 p=require("./TournamentCounterItem.js");function E(n){var u;const[a,e]=h({align:"start",slidesToScroll:1}),c=s.useCallback(()=>{e&&e.scrollPrev()},[e]),m=s.useCallback(()=>{e&&e.scrollNext()},[e]),[x,q]=s.useState(!1),[d,j]=s.useState(!1),t=s.useCallback(()=>{e&&(q(e.canScrollPrev()),j(e.canScrollNext()))},[e]);s.useEffect(()=>{e&&(t(),e.on("select",t),e.on("reInit",t))},[e,t]);const l=((u=N.useTournamentsQuery({first:100,filter:{status:{equal:"ACTIVE"}}}).data)==null?void 0:u.pages[0].edges.map(i=>i.node))??[];return l.length<=0?null:r.jsxRuntimeExports.jsxs("div",{className:n.className,children:[r.jsxRuntimeExports.jsxs("div",{className:"mb-3 flex items-center justify-between md:mb-4",children:[r.jsxRuntimeExports.jsx("div",{className:"text-lg font-semibold",children:n.heading}),r.jsxRuntimeExports.jsxs("div",{className:"flex items-center md:gap-3xl",children:[r.jsxRuntimeExports.jsxs(g,{href:n.seeAllUrl,className:"flex gap-sm text-sm font-semibold",children:["See All",r.jsxRuntimeExports.jsx(b.ChevronRightIcon,{className:"size-5 lg:hidden"})]}),r.jsxRuntimeExports.jsxs("div",{className:"hidden lg:flex",children:[r.jsxRuntimeExports.jsx(o.Button,{disabled:!x,onClick:c,variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0","aria-label":"Previous",children:r.jsxRuntimeExports.jsx(R.ArrowLeftIcon,{className:"size-5"})}),r.jsxRuntimeExports.jsx(o.Button,{disabled:!d,onClick:m,variant:"outline",colorScheme:"gray",className:"rounded-l-none","aria-label":"Next",children:r.jsxRuntimeExports.jsx(v.ArrowRightIcon,{className:"size-5"})})]})]})]}),r.jsxRuntimeExports.jsx("div",{className:"w-full overflow-hidden",ref:a,children:r.jsxRuntimeExports.jsx("div",{className:"flex gap-2.5",children:l.map((i,f)=>r.jsxRuntimeExports.jsx(p.TournamentCounterItem,{index:f,tournament:i,className:l.length<2?"w-full":"w-full lg:w-[calc((100%-0.75rem)/2)]"},i.id))})})]})}exports.TournamentCounter=E;