@opexa/portal-components 0.0.7 → 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 (339) 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/services.js +1 -0
  288. package/dist/services.mjs +10 -0
  289. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  290. package/dist/ui/AlertDialog/alertDialog.recipe.mjs +3 -2
  291. package/dist/ui/Avatar/avatar.recipe.js +1 -1
  292. package/dist/ui/Avatar/avatar.recipe.mjs +6 -5
  293. package/dist/ui/Badge/Badge.js +1 -1
  294. package/dist/ui/Badge/Badge.mjs +13 -12
  295. package/dist/ui/Badge/badge.recipe.js +1 -1
  296. package/dist/ui/Badge/badge.recipe.mjs +3 -2
  297. package/dist/ui/Button/Button.js +1 -1
  298. package/dist/ui/Button/Button.mjs +14 -13
  299. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  300. package/dist/ui/Checkbox/checkbox.recipe.mjs +3 -2
  301. package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
  302. package/dist/ui/Clipboard/clipboard.recipe.mjs +3 -2
  303. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  304. package/dist/ui/DatePicker/datePicker.recipe.mjs +3 -2
  305. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  306. package/dist/ui/Dialog/dialog.recipe.mjs +3 -2
  307. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  308. package/dist/ui/Drawer/drawer.recipe.mjs +3 -2
  309. package/dist/ui/Field/field.recipe.js +1 -1
  310. package/dist/ui/Field/field.recipe.mjs +3 -2
  311. package/dist/ui/IconButton/IconButton.js +1 -1
  312. package/dist/ui/IconButton/IconButton.mjs +9 -8
  313. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  314. package/dist/ui/NumberInput/numberInput.recipe.mjs +3 -2
  315. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  316. package/dist/ui/PinInput/pinInput.recipe.mjs +3 -2
  317. package/dist/ui/Popover/popover.recipe.js +1 -1
  318. package/dist/ui/Popover/popover.recipe.mjs +6 -5
  319. package/dist/ui/Presence.js +1 -1
  320. package/dist/ui/Presence.mjs +8 -7
  321. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  322. package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -2
  323. package/dist/ui/Select/select.recipe.js +1 -1
  324. package/dist/ui/Select/select.recipe.mjs +3 -2
  325. package/dist/ui/Table/table.recipe.js +1 -1
  326. package/dist/ui/Table/table.recipe.mjs +3 -2
  327. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  328. package/dist/ui/Tabs/tabs.recipe.mjs +3 -2
  329. package/dist/ui.d.ts +2 -0
  330. package/dist/utils/createRecipeContext.js +1 -1
  331. package/dist/utils/createRecipeContext.mjs +30 -29
  332. package/dist/utils/getLocaleInfo.js +1 -1
  333. package/dist/utils/getLocaleInfo.mjs +212 -173
  334. package/dist/utils.d.ts +2 -0
  335. package/package.json +18 -36
  336. package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.js +0 -6
  337. package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.mjs +0 -790
  338. /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
  339. /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,23 +1,24 @@
1
- import { Portal as I } from "@ark-ui/react";
2
- import { zodResolver as M } 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";
3
- import { useEffect as O } from "react";
4
- import { useForm as P, Controller as C } from "react-hook-form";
1
+ import { j as o } from "../../../../_virtual/jsx-runtime.mjs";
2
+ import { Portal as E } from "@ark-ui/react";
3
+ import { zodResolver as O } 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 { useEffect as P } from "react";
5
+ import { useForm as Q, Controller as v } from "react-hook-form";
5
6
  import { z as m } from "zod";
6
7
  import "@opexa/portal-sdk-core";
7
8
  import "@tanstack/react-query";
8
9
  import "tiny-invariant";
9
10
  import "../../../../constants/index.mjs";
10
11
  import "../../../../utils/capitalize.mjs";
11
- import { parseDecimal as n } from "../../../../utils/parseDecimal.mjs";
12
+ import { parseDecimal as i } from "../../../../utils/parseDecimal.mjs";
12
13
  import "../../../../utils/getLocaleInfo.mjs";
13
14
  import "../../../../utils/getQueryClient.mjs";
14
15
  import "../../../../utils/isMobile.mjs";
15
- import { toaster as v } from "../../../../utils/toaster.mjs";
16
- import { useAvailablePromosQuery as Q } from "../../../../hooks/useAvailablePromosQuery.mjs";
16
+ import { toaster as S } from "../../../../utils/toaster.mjs";
17
+ import { useAvailablePromosQuery as w } from "../../../../hooks/useAvailablePromosQuery.mjs";
17
18
  import "lodash-es";
18
19
  import "../../../../_virtual/index.cjs.mjs";
19
- import { useCreateMayaAppDepositMutation as w } from "../../../../hooks/useCreateMayaAppDepositMutation.mjs";
20
- import { useDepositsCountQuery as V } from "../../../../hooks/useDepositsCountQuery.mjs";
20
+ import { useCreateMayaAppDepositMutation as V } from "../../../../hooks/useCreateMayaAppDepositMutation.mjs";
21
+ import { useDepositsCountQuery as R } from "../../../../hooks/useDepositsCountQuery.mjs";
21
22
  import { useDisclosure as z } from "../../../../hooks/useDisclosure.mjs";
22
23
  import { useGlobalStore as N } from "../../../../hooks/useGlobalStore.mjs";
23
24
  import "../../../../hooks/useInfiniteQueryHelper.mjs";
@@ -29,18 +30,18 @@ import { ChevronDownIcon as $ } from "../../../../icons/ChevronDownIcon.mjs";
29
30
  import { ChevronUpIcon as L } from "../../../../icons/ChevronUpIcon.mjs";
30
31
  import { SpinnerIcon as W } from "../../../../icons/SpinnerIcon.mjs";
31
32
  import { XIcon as Z } from "../../../../icons/XIcon.mjs";
32
- import { Root as B, Backdrop as U, Positioner as j, Content as G, Header as _, CloseTrigger as q, Body as H, Title as X, Description as Y, Footer as J } from "../../../../ui/AlertDialog/AlertDialog.mjs";
33
+ import { Root as B, Backdrop as U, Positioner as G, Content as _, Header as q, CloseTrigger as H, Body as X, Title as Y, Description as J, Footer as K } from "../../../../ui/AlertDialog/AlertDialog.mjs";
33
34
  import "../../../../ui/Avatar/Avatar.mjs";
34
35
  import "../../../../ui/Badge/Badge.mjs";
35
- import { Button as p } from "../../../../ui/Button/Button.mjs";
36
+ import { Button as d } from "../../../../ui/Button/Button.mjs";
36
37
  import "../../../../ui/Checkbox/Checkbox.mjs";
37
38
  import "../../../../ui/Clipboard/Clipboard.mjs";
38
39
  import "../../../../ui/DatePicker/DatePicker.mjs";
39
40
  import "../../../../ui/Dialog/Dialog.mjs";
40
41
  import "../../../../ui/Drawer/Drawer.mjs";
41
- import { Root as K, ErrorText as ee } from "../../../../ui/Field/Field.mjs";
42
+ import { Root as oo, ErrorText as eo } from "../../../../ui/Field/Field.mjs";
42
43
  import "../../../../ui/IconButton/iconButton.recipe.mjs";
43
- import { Root as te, Label as oe, Control as re, Input as ne, IncrementTrigger as ae, DecrementTrigger as me } from "../../../../ui/NumberInput/NumberInput.mjs";
44
+ import { Root as to, Label as ro, Control as so, Input as io, IncrementTrigger as no, DecrementTrigger as mo } from "../../../../ui/NumberInput/NumberInput.mjs";
44
45
  import "../../../../ui/PinInput/PinInput.mjs";
45
46
  import "../../../../ui/Popover/Popover.mjs";
46
47
  import "tailwind-merge";
@@ -48,37 +49,37 @@ import "../../../../ui/SegmentGroup/SegmentGroup.mjs";
48
49
  import "../../../../ui/Select/Select.mjs";
49
50
  import "../../../../ui/Table/Table.mjs";
50
51
  import "../../../../ui/Tabs/Tabs.mjs";
51
- import { AmountChoices as ie } from "../../AmountChoices.mjs";
52
- import { AvailablePromos as se } from "../../AvailablePromos.mjs";
53
- import { SessionExpired as le } from "./SessionExpired.mjs";
54
- import { useShallow as ue } 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";
55
- function ft() {
56
- var R;
57
- const s = z(), S = N(
58
- ue((e) => ({
52
+ import { AmountChoices as ao } from "../../AmountChoices.mjs";
53
+ import { AvailablePromos as uo } from "../../AvailablePromos.mjs";
54
+ import { SessionExpired as lo } from "./SessionExpired.mjs";
55
+ import { useShallow as po } 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";
56
+ function ge() {
57
+ var g;
58
+ const u = z(), D = N(
59
+ po((e) => ({
59
60
  depositWithdrawal: e.depositWithdrawal
60
61
  }))
61
- ), u = w({
62
+ ), p = V({
62
63
  onSuccess() {
63
- o.reset(), S.depositWithdrawal.setOpen(!1), v.success({
64
+ r.reset(), D.depositWithdrawal.setOpen(!1), S.success({
64
65
  description: "Deposit success!"
65
66
  });
66
67
  },
67
68
  onError(e) {
68
- v.error({
69
+ S.error({
69
70
  description: e.message
70
71
  });
71
72
  }
72
- }), D = k().data ?? !0, b = V().data ?? 0, d = F(), c = d.data, i = c == null ? void 0 : c.mayaAppDepositGatewaySettings, l = n(i == null ? void 0 : i.maximumAmount, 0), a = b <= 0 ? n((R = d.data) == null ? void 0 : R.minimumFirstDepositAmount, 0) : n(i == null ? void 0 : i.minimumAmount, 0), f = Q().data ?? [], x = m.object({
73
- amount: m.string().superRefine((e, r) => {
74
- const t = n(e, 0);
75
- t < a && r.addIssue({
73
+ }), b = k().data ?? !0, A = R().data ?? 0, f = F(), c = f.data, a = c == null ? void 0 : c.mayaAppDepositGatewaySettings, l = i(a == null ? void 0 : a.maximumAmount, 0), n = A <= 0 ? i((g = f.data) == null ? void 0 : g.minimumFirstDepositAmount, 0) : i(a == null ? void 0 : a.minimumAmount, 0), h = w().data ?? [], I = m.object({
74
+ amount: m.string().superRefine((e, s) => {
75
+ const t = i(e, 0);
76
+ t < n && s.addIssue({
76
77
  type: "number",
77
78
  code: m.ZodIssueCode.too_small,
78
79
  inclusive: !0,
79
- minimum: a,
80
- message: `Minimum amount is ${a.toLocaleString()}`
81
- }), t > l && r.addIssue({
80
+ minimum: n,
81
+ message: `Minimum amount is ${n.toLocaleString()}`
82
+ }), t > l && s.addIssue({
82
83
  type: "number",
83
84
  code: m.ZodIssueCode.too_big,
84
85
  inclusive: !0,
@@ -87,138 +88,178 @@ function ft() {
87
88
  });
88
89
  }),
89
90
  promo: m.string().optional().nullable()
90
- }).superRefine((e, r) => {
91
- const t = f.find((A) => A.id === e.promo), g = n(t == null ? void 0 : t.minimumDepositAmount, 0), y = n(t == null ? void 0 : t.maximumDepositAmount, 0), h = n(e.amount, 0);
92
- t && h < g && r.addIssue({
91
+ }).superRefine((e, s) => {
92
+ const t = h.find((M) => M.id === e.promo), j = i(t == null ? void 0 : t.minimumDepositAmount, 0), y = i(t == null ? void 0 : t.maximumDepositAmount, 0), C = i(e.amount, 0);
93
+ t && C < j && s.addIssue({
93
94
  path: ["amount"],
94
95
  code: m.ZodIssueCode.custom,
95
- message: `Minimum amount for this promo is ${g.toLocaleString()}`
96
- }), t && h > y && r.addIssue({
96
+ message: `Minimum amount for this promo is ${j.toLocaleString()}`
97
+ }), t && C > y && s.addIssue({
97
98
  path: ["amount"],
98
99
  code: m.ZodIssueCode.custom,
99
100
  message: `Maximum amount for this promo is ${y}`
100
101
  });
101
- }), o = P({
102
+ }), r = Q({
102
103
  mode: "all",
103
- resolver: M(x),
104
+ resolver: O(I),
104
105
  defaultValues: {
105
106
  amount: "0",
106
107
  promo: null
107
108
  }
108
109
  });
109
- O(() => {
110
- a && o.reset({
111
- amount: a.toString(),
110
+ P(() => {
111
+ n && r.reset({
112
+ amount: n.toString(),
112
113
  promo: null
113
114
  });
114
- }, [o, a]);
115
- const E = o.handleSubmit(async (e) => {
116
- u.mutate({
115
+ }, [r, n]);
116
+ const x = r.handleSubmit(async (e) => {
117
+ p.mutate({
117
118
  amount: e.amount.toString(),
118
119
  promo: e.promo ?? void 0
119
120
  });
120
121
  });
121
- return D ? /* @__PURE__ */ React.createElement("form", { onSubmit: E, noValidate: !0 }, /* @__PURE__ */ React.createElement(
122
- C,
123
- {
124
- control: o.control,
125
- name: "amount",
126
- render: (e) => {
127
- var r;
128
- return /* @__PURE__ */ React.createElement(K, { invalid: !!o.formState.errors.amount }, /* @__PURE__ */ React.createElement(
129
- te,
122
+ return b ? /* @__PURE__ */ o.jsxs("form", { onSubmit: x, noValidate: !0, children: [
123
+ /* @__PURE__ */ o.jsx(
124
+ v,
125
+ {
126
+ control: r.control,
127
+ name: "amount",
128
+ render: (e) => {
129
+ var s;
130
+ return /* @__PURE__ */ o.jsxs(oo, { invalid: !!r.formState.errors.amount, children: [
131
+ /* @__PURE__ */ o.jsxs(
132
+ to,
133
+ {
134
+ min: 0,
135
+ step: 1,
136
+ value: e.field.value,
137
+ onValueChange: (t) => {
138
+ e.field.onChange(t.value);
139
+ },
140
+ formatOptions: {
141
+ maximumFractionDigits: 2,
142
+ minimumFractionDigits: 0
143
+ },
144
+ allowMouseWheel: !0,
145
+ children: [
146
+ /* @__PURE__ */ o.jsx(ro, { children: "Enter amount you want to deposit" }),
147
+ /* @__PURE__ */ o.jsxs(so, { children: [
148
+ /* @__PURE__ */ o.jsx(io, {}),
149
+ /* @__PURE__ */ o.jsx(no, { children: /* @__PURE__ */ o.jsx(L, {}) }),
150
+ /* @__PURE__ */ o.jsx(mo, { children: /* @__PURE__ */ o.jsx($, {}) })
151
+ ] })
152
+ ]
153
+ }
154
+ ),
155
+ /* @__PURE__ */ o.jsx(eo, { children: (s = r.formState.errors.amount) == null ? void 0 : s.message })
156
+ ] });
157
+ }
158
+ }
159
+ ),
160
+ /* @__PURE__ */ o.jsx(
161
+ ao,
162
+ {
163
+ value: i(r.watch("amount"), 0),
164
+ onChange: (e) => {
165
+ r.setValue("amount", e.toString(), {
166
+ shouldTouch: !0,
167
+ shouldDirty: !0,
168
+ shouldValidate: !0
169
+ });
170
+ },
171
+ min: n,
172
+ max: l,
173
+ className: "mt-xl"
174
+ }
175
+ ),
176
+ /* @__PURE__ */ o.jsx(
177
+ v,
178
+ {
179
+ control: r.control,
180
+ name: "promo",
181
+ render: (e) => /* @__PURE__ */ o.jsx(
182
+ uo,
130
183
  {
131
- min: 0,
132
- step: 1,
184
+ className: "mt-4xl",
133
185
  value: e.field.value,
134
- onValueChange: (t) => {
135
- e.field.onChange(t.value);
136
- },
137
- formatOptions: {
138
- maximumFractionDigits: 2,
139
- minimumFractionDigits: 0
140
- },
141
- allowMouseWheel: !0
142
- },
143
- /* @__PURE__ */ React.createElement(oe, null, "Enter amount you want to deposit"),
144
- /* @__PURE__ */ React.createElement(re, null, /* @__PURE__ */ React.createElement(ne, null), /* @__PURE__ */ React.createElement(ae, null, /* @__PURE__ */ React.createElement(L, null)), /* @__PURE__ */ React.createElement(me, null, /* @__PURE__ */ React.createElement($, null)))
145
- ), /* @__PURE__ */ React.createElement(ee, null, (r = o.formState.errors.amount) == null ? void 0 : r.message));
186
+ onChange: e.field.onChange
187
+ }
188
+ )
146
189
  }
147
- }
148
- ), /* @__PURE__ */ React.createElement(
149
- ie,
150
- {
151
- value: n(o.watch("amount"), 0),
152
- onChange: (e) => {
153
- o.setValue("amount", e.toString(), {
154
- shouldTouch: !0,
155
- shouldDirty: !0,
156
- shouldValidate: !0
157
- });
158
- },
159
- min: a,
160
- max: l,
161
- className: "mt-xl"
162
- }
163
- ), /* @__PURE__ */ React.createElement(
164
- C,
165
- {
166
- control: o.control,
167
- name: "promo",
168
- render: (e) => /* @__PURE__ */ React.createElement(
169
- se,
170
- {
171
- className: "mt-4xl",
172
- value: e.field.value,
173
- onChange: e.field.onChange
174
- }
175
- )
176
- }
177
- ), /* @__PURE__ */ React.createElement("p", { className: "mt-4xl text-xs" }, "Upon clicking the deposit button, you agree to the", " ", /* @__PURE__ */ React.createElement("button", { type: "button", className: "underline underline-offset-2" }, "Terms of Use and Privacy Policy"), "."), /* @__PURE__ */ React.createElement(
178
- p,
179
- {
180
- type: "submit",
181
- className: "mt-4.5",
182
- disabled: u.isPending,
183
- onClick: async (e) => {
184
- await o.trigger("amount") && (f.length <= 0 || o.getValues("promo") || (e.preventDefault(), s.setOpen(!0)));
185
- }
186
- },
187
- u.isPending ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(W, null), "Processing...") : "Deposit"
188
- ), /* @__PURE__ */ React.createElement(
189
- B,
190
- {
191
- role: "alertdialog",
192
- open: s.open,
193
- onOpenChange: (e) => {
194
- s.setOpen(e.open);
195
- },
196
- lazyMount: !0,
197
- unmountOnExit: !0,
198
- closeOnEscape: !1,
199
- closeOnInteractOutside: !1
200
- },
201
- /* @__PURE__ */ React.createElement(I, null, /* @__PURE__ */ React.createElement(U, { className: "!z-[calc(var(--z-dialog)+10)]" }), /* @__PURE__ */ React.createElement(j, { className: "!z-[calc(var(--z-dialog)+25)]" }, /* @__PURE__ */ React.createElement(G, null, /* @__PURE__ */ React.createElement(_, null, /* @__PURE__ */ React.createElement("div", { className: "flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]" }, /* @__PURE__ */ React.createElement(T, null)), /* @__PURE__ */ React.createElement(q, null, /* @__PURE__ */ React.createElement(Z, null))), /* @__PURE__ */ React.createElement(H, null, /* @__PURE__ */ React.createElement(X, null, "Submit deposit request without promo?"), /* @__PURE__ */ React.createElement(Y, null, "You haven’t selected a promo. Are you sure you want to proceed without one?")), /* @__PURE__ */ React.createElement(J, null, /* @__PURE__ */ React.createElement(
202
- p,
190
+ ),
191
+ /* @__PURE__ */ o.jsxs("p", { className: "mt-4xl text-xs", children: [
192
+ "Upon clicking the deposit button, you agree to the",
193
+ " ",
194
+ /* @__PURE__ */ o.jsx("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }),
195
+ "."
196
+ ] }),
197
+ /* @__PURE__ */ o.jsx(
198
+ d,
203
199
  {
204
- variant: "outline",
205
- colorScheme: "gray",
206
- onClick: () => {
207
- s.setOpen(!1);
208
- }
209
- },
210
- "Cancel"
211
- ), /* @__PURE__ */ React.createElement(
212
- p,
200
+ type: "submit",
201
+ className: "mt-4.5",
202
+ disabled: p.isPending,
203
+ onClick: async (e) => {
204
+ await r.trigger("amount") && (h.length <= 0 || r.getValues("promo") || (e.preventDefault(), u.setOpen(!0)));
205
+ },
206
+ children: p.isPending ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
207
+ /* @__PURE__ */ o.jsx(W, {}),
208
+ "Processing..."
209
+ ] }) : "Deposit"
210
+ }
211
+ ),
212
+ /* @__PURE__ */ o.jsx(
213
+ B,
213
214
  {
214
- onClick: () => {
215
- E(), s.setOpen(!1);
216
- }
217
- },
218
- "Proceed"
219
- )))))
220
- )) : /* @__PURE__ */ React.createElement(le, null);
215
+ role: "alertdialog",
216
+ open: u.open,
217
+ onOpenChange: (e) => {
218
+ u.setOpen(e.open);
219
+ },
220
+ lazyMount: !0,
221
+ unmountOnExit: !0,
222
+ closeOnEscape: !1,
223
+ closeOnInteractOutside: !1,
224
+ children: /* @__PURE__ */ o.jsxs(E, { children: [
225
+ /* @__PURE__ */ o.jsx(U, { className: "!z-[calc(var(--z-dialog)+10)]" }),
226
+ /* @__PURE__ */ o.jsx(G, { className: "!z-[calc(var(--z-dialog)+25)]", children: /* @__PURE__ */ o.jsxs(_, { children: [
227
+ /* @__PURE__ */ o.jsxs(q, { children: [
228
+ /* @__PURE__ */ o.jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]", children: /* @__PURE__ */ o.jsx(T, {}) }),
229
+ /* @__PURE__ */ o.jsx(H, { children: /* @__PURE__ */ o.jsx(Z, {}) })
230
+ ] }),
231
+ /* @__PURE__ */ o.jsxs(X, { children: [
232
+ /* @__PURE__ */ o.jsx(Y, { children: "Submit deposit request without promo?" }),
233
+ /* @__PURE__ */ o.jsx(J, { children: "You haven’t selected a promo. Are you sure you want to proceed without one?" })
234
+ ] }),
235
+ /* @__PURE__ */ o.jsxs(K, { children: [
236
+ /* @__PURE__ */ o.jsx(
237
+ d,
238
+ {
239
+ variant: "outline",
240
+ colorScheme: "gray",
241
+ onClick: () => {
242
+ u.setOpen(!1);
243
+ },
244
+ children: "Cancel"
245
+ }
246
+ ),
247
+ /* @__PURE__ */ o.jsx(
248
+ d,
249
+ {
250
+ onClick: () => {
251
+ x(), u.setOpen(!1);
252
+ },
253
+ children: "Proceed"
254
+ }
255
+ )
256
+ ] })
257
+ ] }) })
258
+ ] })
259
+ }
260
+ )
261
+ ] }) : /* @__PURE__ */ o.jsx(lo, {});
221
262
  }
222
263
  export {
223
- ft as MayaAppDeposit
264
+ ge as MayaAppDeposit
224
265
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../icons/AlertTriangle.js");function t(){return React.createElement("div",{className:"bg-gray-50 mt-3xl rounded-lg px-5 py-16 lg:mt-4xl"},React.createElement(e.AlertTriangleIcon,{className:"text-amber-500 mx-auto size-10"}),React.createElement("h2",{className:"mt-3 text-center text-lg font-semibold"},"Session Expired"),React.createElement("p",{className:"text-gray-700 mx-auto mt-2 max-w-[30rem] text-center text-sm"},"Your session has timed out. To continue with deposits or withdrawals, Please try reloading the app."))}exports.SessionExpired=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.js"),t=require("../../../../icons/AlertTriangle.js");function s(){return e.jsxRuntimeExports.jsxs("div",{className:"bg-gray-50 mt-3xl rounded-lg px-5 py-16 lg:mt-4xl",children:[e.jsxRuntimeExports.jsx(t.AlertTriangleIcon,{className:"text-amber-500 mx-auto size-10"}),e.jsxRuntimeExports.jsx("h2",{className:"mt-3 text-center text-lg font-semibold",children:"Session Expired"}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-700 mx-auto mt-2 max-w-[30rem] text-center text-sm",children:"Your session has timed out. To continue with deposits or withdrawals, Please try reloading the app."})]})}exports.SessionExpired=s;
@@ -1,7 +1,12 @@
1
- import { AlertTriangleIcon as e } from "../../../../icons/AlertTriangle.mjs";
2
- function a() {
3
- return /* @__PURE__ */ React.createElement("div", { className: "bg-gray-50 mt-3xl rounded-lg px-5 py-16 lg:mt-4xl" }, /* @__PURE__ */ React.createElement(e, { className: "text-amber-500 mx-auto size-10" }), /* @__PURE__ */ React.createElement("h2", { className: "mt-3 text-center text-lg font-semibold" }, "Session Expired"), /* @__PURE__ */ React.createElement("p", { className: "text-gray-700 mx-auto mt-2 max-w-[30rem] text-center text-sm" }, "Your session has timed out. To continue with deposits or withdrawals, Please try reloading the app."));
1
+ import { j as e } from "../../../../_virtual/jsx-runtime.mjs";
2
+ import { AlertTriangleIcon as t } from "../../../../icons/AlertTriangle.mjs";
3
+ function o() {
4
+ return /* @__PURE__ */ e.jsxs("div", { className: "bg-gray-50 mt-3xl rounded-lg px-5 py-16 lg:mt-4xl", children: [
5
+ /* @__PURE__ */ e.jsx(t, { className: "text-amber-500 mx-auto size-10" }),
6
+ /* @__PURE__ */ e.jsx("h2", { className: "mt-3 text-center text-lg font-semibold", children: "Session Expired" }),
7
+ /* @__PURE__ */ e.jsx("p", { className: "text-gray-700 mx-auto mt-2 max-w-[30rem] text-center text-sm", children: "Your session has timed out. To continue with deposits or withdrawals, Please try reloading the app." })
8
+ ] });
4
9
  }
5
10
  export {
6
- a as SessionExpired
11
+ o as SessionExpired
7
12
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("@ark-ui/react"),z=require("../../../../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.js"),M=require("react"),q=require("react-hook-form"),P=require("tiny-invariant"),i=require("zod");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("../../../../constants/index.js");require("../../../../utils/capitalize.js");const a=require("../../../../utils/parseDecimal.js");require("../../../../utils/getLocaleInfo.js");require("../../../../utils/getQueryClient.js");require("../../../../utils/isMobile.js");const w=require("../../../../utils/toaster.js"),O=require("../../../../hooks/useAvailablePromosQuery.js");require("lodash-es");require("../../../../_virtual/index.cjs.js");const k=require("../../../../hooks/useCreateMayaDepositMutation.js"),Q=require("../../../../hooks/useDepositsCountQuery.js"),F=require("../../../../hooks/useDisclosure.js"),N=require("../../../../hooks/useGlobalStore.js");require("../../../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const T=require("../../../../hooks/usePaymentSettingsQuery.js"),B=require("../../../../icons/AlertCircleIcon.js"),U=require("../../../../icons/ChevronDownIcon.js"),V=require("../../../../icons/ChevronUpIcon.js"),$=require("../../../../icons/SpinnerIcon.js"),L=require("../../../../icons/XIcon.js"),o=require("../../../../ui/AlertDialog/AlertDialog.js");require("../../../../ui/Avatar/Avatar.js");require("../../../../ui/Badge/Badge.js");const g=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");const v=require("../../../../ui/Field/Field.js");require("../../../../ui/IconButton/iconButton.recipe.js");const l=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 W=require("../../AmountChoices.js"),Z=require("../../AvailablePromos.js"),j=require("../../../../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.js");function G(){var h;const c=F.useDisclosure(),b=N.useGlobalStore(j.useShallow(e=>({depositWithdrawal:e.depositWithdrawal}))),d=k.useCreateMayaDepositMutation({onSuccess(e){P(e.checkoutUrl),window.open(e.checkoutUrl,"_blank","noopener,noreferrer"),r.reset(),b.depositWithdrawal.setOpen(!1)},onError(e){w.toaster.error({description:e.message})}}),I=Q.useDepositsCountQuery().data??0,E=T.usePaymentSettingsQuery(),p=E.data,s=p==null?void 0:p.mayaDepositGatewaySettings,m=a.parseDecimal(s==null?void 0:s.maximumAmount,0),u=I<=0?a.parseDecimal((h=E.data)==null?void 0:h.minimumFirstDepositAmount,0):a.parseDecimal(s==null?void 0:s.minimumAmount,0),R=O.useAvailablePromosQuery().data??[],S=i.z.object({amount:i.z.string().superRefine((e,n)=>{const t=a.parseDecimal(e,0);t<u&&n.addIssue({type:"number",code:i.z.ZodIssueCode.too_small,inclusive:!0,minimum:u,message:`Minimum amount is ${u.toLocaleString()}`}),t>m&&n.addIssue({type:"number",code:i.z.ZodIssueCode.too_big,inclusive:!0,maximum:m,message:`Maximum amount is ${m.toLocaleString()}`})}),promo:i.z.string().optional().nullable()}).superRefine((e,n)=>{const t=R.find(A=>A.id===e.promo),y=a.parseDecimal(t==null?void 0:t.minimumDepositAmount,0),C=a.parseDecimal(t==null?void 0:t.maximumDepositAmount,0),D=a.parseDecimal(e.amount,0);t&&D<y&&n.addIssue({path:["amount"],code:i.z.ZodIssueCode.custom,message:`Minimum amount for this promo is ${y.toLocaleString()}`}),t&&D>C&&n.addIssue({path:["amount"],code:i.z.ZodIssueCode.custom,message:`Maximum amount for this promo is ${C}`})}),r=q.useForm({mode:"all",resolver:z.zodResolver(S),defaultValues:{amount:"0",promo:null}});M.useEffect(()=>{u&&r.reset({amount:u.toString(),promo:null})},[r,u]);const f=r.handleSubmit(async e=>{d.mutate({amount:e.amount.toString(),promo:e.promo??void 0})});return React.createElement("form",{onSubmit:f,noValidate:!0},React.createElement(q.Controller,{control:r.control,name:"amount",render:e=>{var n;return React.createElement(v.Root,{invalid:!!r.formState.errors.amount},React.createElement(l.Root,{min:0,step:1,value:e.field.value,onValueChange:t=>{e.field.onChange(t.value)},formatOptions:{maximumFractionDigits:2,minimumFractionDigits:0},allowMouseWheel:!0},React.createElement(l.Label,null,"Enter amount you want to deposit"),React.createElement(l.Control,null,React.createElement(l.Input,null),React.createElement(l.IncrementTrigger,null,React.createElement(V.ChevronUpIcon,null)),React.createElement(l.DecrementTrigger,null,React.createElement(U.ChevronDownIcon,null)))),React.createElement(v.ErrorText,null,(n=r.formState.errors.amount)==null?void 0:n.message))}}),React.createElement(W.AmountChoices,{value:a.parseDecimal(r.watch("amount"),0),onChange:e=>{r.setValue("amount",e.toString(),{shouldTouch:!0,shouldDirty:!0,shouldValidate:!0})},min:u,max:m,className:"mt-xl"}),React.createElement(q.Controller,{control:r.control,name:"promo",render:e=>React.createElement(Z.AvailablePromos,{className:"mt-4xl",value:e.field.value,onChange:e.field.onChange})}),React.createElement("p",{className:"mt-4xl text-xs"},"Upon clicking the deposit button, you agree to the"," ",React.createElement("button",{type:"button",className:"underline underline-offset-2"},"Terms of Use and Privacy Policy"),"."),React.createElement(g.Button,{type:"submit",className:"mt-4.5",disabled:d.isPending,onClick:async e=>{await r.trigger("amount")&&(R.length<=0||r.getValues("promo")||(e.preventDefault(),c.setOpen(!0)))}},d.isPending?React.createElement(React.Fragment,null,React.createElement($.SpinnerIcon,null),"Processing..."):"Deposit"),React.createElement(o.Root,{role:"alertdialog",open:c.open,onOpenChange:e=>{c.setOpen(e.open)},lazyMount:!0,unmountOnExit:!0,closeOnEscape:!1,closeOnInteractOutside:!1},React.createElement(x.Portal,null,React.createElement(o.Backdrop,{className:"!z-[calc(var(--z-dialog)+10)]"}),React.createElement(o.Positioner,{className:"!z-[calc(var(--z-dialog)+25)]"},React.createElement(o.Content,null,React.createElement(o.Header,null,React.createElement("div",{className:"flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]"},React.createElement(B.AlertCircleIcon,null)),React.createElement(o.CloseTrigger,null,React.createElement(L.XIcon,null))),React.createElement(o.Body,null,React.createElement(o.Title,null,"Submit deposit request without promo?"),React.createElement(o.Description,null,"You haven’t selected a promo. Are you sure you want to proceed without one?")),React.createElement(o.Footer,null,React.createElement(g.Button,{variant:"outline",colorScheme:"gray",onClick:()=>{c.setOpen(!1)}},"Cancel"),React.createElement(g.Button,{onClick:()=>{f(),c.setOpen(!1)}},"Proceed")))))))}exports.MayaDeposit=G;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.js"),A=require("@ark-ui/react"),z=require("../../../../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.js"),M=require("react"),j=require("react-hook-form"),P=require("tiny-invariant"),a=require("zod");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("../../../../constants/index.js");require("../../../../utils/capitalize.js");const i=require("../../../../utils/parseDecimal.js");require("../../../../utils/getLocaleInfo.js");require("../../../../utils/getQueryClient.js");require("../../../../utils/isMobile.js");const w=require("../../../../utils/toaster.js"),O=require("../../../../hooks/useAvailablePromosQuery.js");require("lodash-es");require("../../../../_virtual/index.cjs.js");const k=require("../../../../hooks/useCreateMayaDepositMutation.js"),Q=require("../../../../hooks/useDepositsCountQuery.js"),F=require("../../../../hooks/useDisclosure.js"),N=require("../../../../hooks/useGlobalStore.js");require("../../../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const T=require("../../../../hooks/usePaymentSettingsQuery.js"),B=require("../../../../icons/AlertCircleIcon.js"),U=require("../../../../icons/ChevronDownIcon.js"),V=require("../../../../icons/ChevronUpIcon.js"),$=require("../../../../icons/SpinnerIcon.js"),L=require("../../../../icons/XIcon.js"),s=require("../../../../ui/AlertDialog/AlertDialog.js");require("../../../../ui/Avatar/Avatar.js");require("../../../../ui/Badge/Badge.js");const h=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");const D=require("../../../../ui/Field/Field.js");require("../../../../ui/IconButton/iconButton.recipe.js");const l=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 W=require("../../AmountChoices.js"),Z=require("../../AvailablePromos.js"),G=require("../../../../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.js");function _(){var R;const c=F.useDisclosure(),v=N.useGlobalStore(G.useShallow(o=>({depositWithdrawal:o.depositWithdrawal}))),p=k.useCreateMayaDepositMutation({onSuccess(o){P(o.checkoutUrl),window.open(o.checkoutUrl,"_blank","noopener,noreferrer"),r.reset(),v.depositWithdrawal.setOpen(!1)},onError(o){w.toaster.error({description:o.message})}}),b=Q.useDepositsCountQuery().data??0,q=T.usePaymentSettingsQuery(),d=q.data,m=d==null?void 0:d.mayaDepositGatewaySettings,x=i.parseDecimal(m==null?void 0:m.maximumAmount,0),u=b<=0?i.parseDecimal((R=q.data)==null?void 0:R.minimumFirstDepositAmount,0):i.parseDecimal(m==null?void 0:m.minimumAmount,0),E=O.useAvailablePromosQuery().data??[],I=a.z.object({amount:a.z.string().superRefine((o,n)=>{const t=i.parseDecimal(o,0);t<u&&n.addIssue({type:"number",code:a.z.ZodIssueCode.too_small,inclusive:!0,minimum:u,message:`Minimum amount is ${u.toLocaleString()}`}),t>x&&n.addIssue({type:"number",code:a.z.ZodIssueCode.too_big,inclusive:!0,maximum:x,message:`Maximum amount is ${x.toLocaleString()}`})}),promo:a.z.string().optional().nullable()}).superRefine((o,n)=>{const t=E.find(S=>S.id===o.promo),f=i.parseDecimal(t==null?void 0:t.minimumDepositAmount,0),y=i.parseDecimal(t==null?void 0:t.maximumDepositAmount,0),C=i.parseDecimal(o.amount,0);t&&C<f&&n.addIssue({path:["amount"],code:a.z.ZodIssueCode.custom,message:`Minimum amount for this promo is ${f.toLocaleString()}`}),t&&C>y&&n.addIssue({path:["amount"],code:a.z.ZodIssueCode.custom,message:`Maximum amount for this promo is ${y}`})}),r=j.useForm({mode:"all",resolver:z.zodResolver(I),defaultValues:{amount:"0",promo:null}});M.useEffect(()=>{u&&r.reset({amount:u.toString(),promo:null})},[r,u]);const g=r.handleSubmit(async o=>{p.mutate({amount:o.amount.toString(),promo:o.promo??void 0})});return e.jsxRuntimeExports.jsxs("form",{onSubmit:g,noValidate:!0,children:[e.jsxRuntimeExports.jsx(j.Controller,{control:r.control,name:"amount",render:o=>{var n;return e.jsxRuntimeExports.jsxs(D.Root,{invalid:!!r.formState.errors.amount,children:[e.jsxRuntimeExports.jsxs(l.Root,{min:0,step:1,value:o.field.value,onValueChange:t=>{o.field.onChange(t.value)},formatOptions:{maximumFractionDigits:2,minimumFractionDigits:0},allowMouseWheel:!0,children:[e.jsxRuntimeExports.jsx(l.Label,{children:"Enter amount you want to deposit"}),e.jsxRuntimeExports.jsxs(l.Control,{children:[e.jsxRuntimeExports.jsx(l.Input,{}),e.jsxRuntimeExports.jsx(l.IncrementTrigger,{children:e.jsxRuntimeExports.jsx(V.ChevronUpIcon,{})}),e.jsxRuntimeExports.jsx(l.DecrementTrigger,{children:e.jsxRuntimeExports.jsx(U.ChevronDownIcon,{})})]})]}),e.jsxRuntimeExports.jsx(D.ErrorText,{children:(n=r.formState.errors.amount)==null?void 0:n.message})]})}}),e.jsxRuntimeExports.jsx(W.AmountChoices,{value:i.parseDecimal(r.watch("amount"),0),onChange:o=>{r.setValue("amount",o.toString(),{shouldTouch:!0,shouldDirty:!0,shouldValidate:!0})},min:u,max:x,className:"mt-xl"}),e.jsxRuntimeExports.jsx(j.Controller,{control:r.control,name:"promo",render:o=>e.jsxRuntimeExports.jsx(Z.AvailablePromos,{className:"mt-4xl",value:o.field.value,onChange:o.field.onChange})}),e.jsxRuntimeExports.jsxs("p",{className:"mt-4xl text-xs",children:["Upon clicking the deposit button, you agree to the"," ",e.jsxRuntimeExports.jsx("button",{type:"button",className:"underline underline-offset-2",children:"Terms of Use and Privacy Policy"}),"."]}),e.jsxRuntimeExports.jsx(h.Button,{type:"submit",className:"mt-4.5",disabled:p.isPending,onClick:async o=>{await r.trigger("amount")&&(E.length<=0||r.getValues("promo")||(o.preventDefault(),c.setOpen(!0)))},children:p.isPending?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx($.SpinnerIcon,{}),"Processing..."]}):"Deposit"}),e.jsxRuntimeExports.jsx(s.Root,{role:"alertdialog",open:c.open,onOpenChange:o=>{c.setOpen(o.open)},lazyMount:!0,unmountOnExit:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:e.jsxRuntimeExports.jsxs(A.Portal,{children:[e.jsxRuntimeExports.jsx(s.Backdrop,{className:"!z-[calc(var(--z-dialog)+10)]"}),e.jsxRuntimeExports.jsx(s.Positioner,{className:"!z-[calc(var(--z-dialog)+25)]",children:e.jsxRuntimeExports.jsxs(s.Content,{children:[e.jsxRuntimeExports.jsxs(s.Header,{children:[e.jsxRuntimeExports.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]",children:e.jsxRuntimeExports.jsx(B.AlertCircleIcon,{})}),e.jsxRuntimeExports.jsx(s.CloseTrigger,{children:e.jsxRuntimeExports.jsx(L.XIcon,{})})]}),e.jsxRuntimeExports.jsxs(s.Body,{children:[e.jsxRuntimeExports.jsx(s.Title,{children:"Submit deposit request without promo?"}),e.jsxRuntimeExports.jsx(s.Description,{children:"You haven’t selected a promo. Are you sure you want to proceed without one?"})]}),e.jsxRuntimeExports.jsxs(s.Footer,{children:[e.jsxRuntimeExports.jsx(h.Button,{variant:"outline",colorScheme:"gray",onClick:()=>{c.setOpen(!1)},children:"Cancel"}),e.jsxRuntimeExports.jsx(h.Button,{onClick:()=>{g(),c.setOpen(!1)},children:"Proceed"})]})]})})]})})]})}exports.MayaDeposit=_;