@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,23 +1,24 @@
1
- import { Portal as b } from "@ark-ui/react";
2
- import { zodResolver as I } 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 A } from "react";
4
- import { useForm as S, Controller as C } from "react-hook-form";
5
- import { z as a } from "zod";
1
+ import { j as o } from "../../../../_virtual/jsx-runtime.mjs";
2
+ import { Portal as A } from "@ark-ui/react";
3
+ import { zodResolver as S } 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 Q } from "react";
5
+ import { useForm as R, Controller as y } from "react-hook-form";
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 m } from "../../../../utils/parseDecimal.mjs";
12
+ import { parseDecimal as n } from "../../../../utils/parseDecimal.mjs";
12
13
  import "../../../../utils/getLocaleInfo.mjs";
13
14
  import "../../../../utils/getQueryClient.mjs";
14
15
  import "../../../../utils/isMobile.mjs";
15
16
  import "../../../../utils/toaster.mjs";
16
- import { useAvailablePromosQuery as Q } from "../../../../hooks/useAvailablePromosQuery.mjs";
17
+ import { useAvailablePromosQuery as O } from "../../../../hooks/useAvailablePromosQuery.mjs";
17
18
  import "lodash-es";
18
19
  import "../../../../_virtual/index.cjs.mjs";
19
- import { useDepositsCountQuery as O } from "../../../../hooks/useDepositsCountQuery.mjs";
20
- import { useDisclosure as P } from "../../../../hooks/useDisclosure.mjs";
20
+ import { useDepositsCountQuery as P } from "../../../../hooks/useDepositsCountQuery.mjs";
21
+ import { useDisclosure as E } from "../../../../hooks/useDisclosure.mjs";
21
22
  import "../../../../hooks/useGlobalStore.mjs";
22
23
  import "../../../../hooks/useInfiniteQueryHelper.mjs";
23
24
  import "usehooks-ts";
@@ -26,18 +27,18 @@ import { AlertCircleIcon as M } from "../../../../icons/AlertCircleIcon.mjs";
26
27
  import { ChevronDownIcon as N } from "../../../../icons/ChevronDownIcon.mjs";
27
28
  import { ChevronUpIcon as k } from "../../../../icons/ChevronUpIcon.mjs";
28
29
  import { XIcon as F } from "../../../../icons/XIcon.mjs";
29
- import { Root as T, Backdrop as w, Positioner as V, Content as $, Header as L, CloseTrigger as Z, Body as B, Title as H, Description as U, Footer as j } from "../../../../ui/AlertDialog/AlertDialog.mjs";
30
+ import { Root as T, Backdrop as w, Positioner as V, Content as $, Header as L, CloseTrigger as Z, Body as B, Title as H, Description as U, Footer as q } from "../../../../ui/AlertDialog/AlertDialog.mjs";
30
31
  import "../../../../ui/Avatar/Avatar.mjs";
31
32
  import "../../../../ui/Badge/Badge.mjs";
32
- import { Button as c } from "../../../../ui/Button/Button.mjs";
33
+ import { Button as p } from "../../../../ui/Button/Button.mjs";
33
34
  import "../../../../ui/Checkbox/Checkbox.mjs";
34
35
  import "../../../../ui/Clipboard/Clipboard.mjs";
35
36
  import "../../../../ui/DatePicker/DatePicker.mjs";
36
37
  import "../../../../ui/Dialog/Dialog.mjs";
37
38
  import "../../../../ui/Drawer/Drawer.mjs";
38
- import { Root as q, ErrorText as _ } from "../../../../ui/Field/Field.mjs";
39
+ import { Root as _, ErrorText as G } from "../../../../ui/Field/Field.mjs";
39
40
  import "../../../../ui/IconButton/iconButton.recipe.mjs";
40
- import { Root as G, Label as W, Control as X, Input as Y, IncrementTrigger as J, DecrementTrigger as K } from "../../../../ui/NumberInput/NumberInput.mjs";
41
+ import { Root as W, Label as X, Control as Y, Input as J, IncrementTrigger as K, DecrementTrigger as oo } from "../../../../ui/NumberInput/NumberInput.mjs";
41
42
  import "../../../../ui/PinInput/PinInput.mjs";
42
43
  import "../../../../ui/Popover/Popover.mjs";
43
44
  import "tailwind-merge";
@@ -45,167 +46,204 @@ import "../../../../ui/SegmentGroup/SegmentGroup.mjs";
45
46
  import "../../../../ui/Select/Select.mjs";
46
47
  import "../../../../ui/Table/Table.mjs";
47
48
  import "../../../../ui/Tabs/Tabs.mjs";
48
- import { AmountChoices as ee } from "../../AmountChoices.mjs";
49
- import { AvailablePromos as te } from "../../AvailablePromos.mjs";
50
- import { useQRPHDepositContext as oe } from "./QRPHDepositContext.mjs";
51
- function tt() {
52
- var R;
53
- const y = oe(), l = P(), v = O().data ?? 0, p = z(), u = p.data, i = u == null ? void 0 : u.qrphDepositGatewaySettings, s = m(i == null ? void 0 : i.maximumAmount, 0), n = v <= 0 ? m((R = p.data) == null ? void 0 : R.minimumFirstDepositAmount, 0) : m(i == null ? void 0 : i.minimumAmount, 0), d = Q().data ?? [], x = a.object({
54
- amount: a.string().superRefine((e, r) => {
55
- const t = m(e, 0);
56
- t < n && r.addIssue({
49
+ import { AmountChoices as eo } from "../../AmountChoices.mjs";
50
+ import { AvailablePromos as to } from "../../AvailablePromos.mjs";
51
+ import { useQRPHDepositContext as ro } from "./QRPHDepositContext.mjs";
52
+ function ie() {
53
+ var h;
54
+ const v = ro(), a = E(), D = P().data ?? 0, d = z(), c = d.data, u = c == null ? void 0 : c.qrphDepositGatewaySettings, l = n(u == null ? void 0 : u.maximumAmount, 0), s = D <= 0 ? n((h = d.data) == null ? void 0 : h.minimumFirstDepositAmount, 0) : n(u == null ? void 0 : u.minimumAmount, 0), f = O().data ?? [], b = m.object({
55
+ amount: m.string().superRefine((e, i) => {
56
+ const t = n(e, 0);
57
+ t < s && i.addIssue({
57
58
  type: "number",
58
- code: a.ZodIssueCode.too_small,
59
+ code: m.ZodIssueCode.too_small,
59
60
  inclusive: !0,
60
- minimum: n,
61
- message: `Minimum amount is ${n.toLocaleString()}`
62
- }), t > s && r.addIssue({
61
+ minimum: s,
62
+ message: `Minimum amount is ${s.toLocaleString()}`
63
+ }), t > l && i.addIssue({
63
64
  type: "number",
64
- code: a.ZodIssueCode.too_big,
65
+ code: m.ZodIssueCode.too_big,
65
66
  inclusive: !0,
66
- maximum: s,
67
- message: `Maximum amount is ${s.toLocaleString()}`
67
+ maximum: l,
68
+ message: `Maximum amount is ${l.toLocaleString()}`
68
69
  });
69
70
  }),
70
- promo: a.string().optional().nullable()
71
- }).superRefine((e, r) => {
72
- const t = d.find((D) => D.id === e.promo), E = m(t == null ? void 0 : t.minimumDepositAmount, 0), g = m(t == null ? void 0 : t.maximumDepositAmount, 0), h = m(e.amount, 0);
73
- t && h < E && r.addIssue({
71
+ promo: m.string().optional().nullable()
72
+ }).superRefine((e, i) => {
73
+ const t = f.find((I) => I.id === e.promo), j = n(t == null ? void 0 : t.minimumDepositAmount, 0), g = n(t == null ? void 0 : t.maximumDepositAmount, 0), C = n(e.amount, 0);
74
+ t && C < j && i.addIssue({
74
75
  path: ["amount"],
75
- code: a.ZodIssueCode.custom,
76
- message: `Minimum amount for this promo is ${E.toLocaleString()}`
77
- }), t && h > g && r.addIssue({
76
+ code: m.ZodIssueCode.custom,
77
+ message: `Minimum amount for this promo is ${j.toLocaleString()}`
78
+ }), t && C > g && i.addIssue({
78
79
  path: ["amount"],
79
- code: a.ZodIssueCode.custom,
80
+ code: m.ZodIssueCode.custom,
80
81
  message: `Maximum amount for this promo is ${g}`
81
82
  });
82
- }), o = S({
83
+ }), r = R({
83
84
  mode: "all",
84
- resolver: I(x),
85
+ resolver: S(b),
85
86
  defaultValues: {
86
87
  amount: "0",
87
88
  promo: null
88
89
  }
89
90
  });
90
- A(() => {
91
- n && o.reset({
92
- amount: n.toString(),
91
+ Q(() => {
92
+ s && r.reset({
93
+ amount: s.toString(),
93
94
  promo: null
94
95
  });
95
- }, [o, n]);
96
- const f = o.handleSubmit(async (e) => {
97
- y.generateQrCode(
96
+ }, [r, s]);
97
+ const x = r.handleSubmit(async (e) => {
98
+ v.generateQrCode(
98
99
  {
99
100
  amount: e.amount.toString(),
100
101
  promo: e.promo ?? void 0
101
102
  },
102
103
  {
103
104
  onSuccess() {
104
- o.reset();
105
+ r.reset();
105
106
  }
106
107
  }
107
108
  );
108
109
  });
109
- return /* @__PURE__ */ React.createElement("form", { onSubmit: f, noValidate: !0 }, /* @__PURE__ */ React.createElement(
110
- C,
111
- {
112
- control: o.control,
113
- name: "amount",
114
- render: (e) => {
115
- var r;
116
- return /* @__PURE__ */ React.createElement(q, { invalid: !!o.formState.errors.amount }, /* @__PURE__ */ React.createElement(
117
- G,
110
+ return /* @__PURE__ */ o.jsxs("form", { onSubmit: x, noValidate: !0, children: [
111
+ /* @__PURE__ */ o.jsx(
112
+ y,
113
+ {
114
+ control: r.control,
115
+ name: "amount",
116
+ render: (e) => {
117
+ var i;
118
+ return /* @__PURE__ */ o.jsxs(_, { invalid: !!r.formState.errors.amount, children: [
119
+ /* @__PURE__ */ o.jsxs(
120
+ W,
121
+ {
122
+ min: 0,
123
+ step: 1,
124
+ value: e.field.value,
125
+ onValueChange: (t) => {
126
+ e.field.onChange(t.value);
127
+ },
128
+ formatOptions: {
129
+ maximumFractionDigits: 2,
130
+ minimumFractionDigits: 0
131
+ },
132
+ allowMouseWheel: !0,
133
+ children: [
134
+ /* @__PURE__ */ o.jsx(X, { children: "Enter amount you want to deposit" }),
135
+ /* @__PURE__ */ o.jsxs(Y, { children: [
136
+ /* @__PURE__ */ o.jsx(J, {}),
137
+ /* @__PURE__ */ o.jsx(K, { children: /* @__PURE__ */ o.jsx(k, {}) }),
138
+ /* @__PURE__ */ o.jsx(oo, { children: /* @__PURE__ */ o.jsx(N, {}) })
139
+ ] })
140
+ ]
141
+ }
142
+ ),
143
+ /* @__PURE__ */ o.jsx(G, { children: (i = r.formState.errors.amount) == null ? void 0 : i.message })
144
+ ] });
145
+ }
146
+ }
147
+ ),
148
+ /* @__PURE__ */ o.jsx(
149
+ eo,
150
+ {
151
+ value: n(r.watch("amount"), 0),
152
+ onChange: (e) => {
153
+ r.setValue("amount", e.toString(), {
154
+ shouldTouch: !0,
155
+ shouldDirty: !0,
156
+ shouldValidate: !0
157
+ });
158
+ },
159
+ min: s,
160
+ max: l,
161
+ className: "mt-xl"
162
+ }
163
+ ),
164
+ /* @__PURE__ */ o.jsx(
165
+ y,
166
+ {
167
+ control: r.control,
168
+ name: "promo",
169
+ render: (e) => /* @__PURE__ */ o.jsx(
170
+ to,
118
171
  {
119
- min: 0,
120
- step: 1,
172
+ className: "mt-4xl",
121
173
  value: e.field.value,
122
- onValueChange: (t) => {
123
- e.field.onChange(t.value);
124
- },
125
- formatOptions: {
126
- maximumFractionDigits: 2,
127
- minimumFractionDigits: 0
128
- },
129
- allowMouseWheel: !0
130
- },
131
- /* @__PURE__ */ React.createElement(W, null, "Enter amount you want to deposit"),
132
- /* @__PURE__ */ React.createElement(X, null, /* @__PURE__ */ React.createElement(Y, null), /* @__PURE__ */ React.createElement(J, null, /* @__PURE__ */ React.createElement(k, null)), /* @__PURE__ */ React.createElement(K, null, /* @__PURE__ */ React.createElement(N, null)))
133
- ), /* @__PURE__ */ React.createElement(_, null, (r = o.formState.errors.amount) == null ? void 0 : r.message));
174
+ onChange: e.field.onChange
175
+ }
176
+ )
134
177
  }
135
- }
136
- ), /* @__PURE__ */ React.createElement(
137
- ee,
138
- {
139
- value: m(o.watch("amount"), 0),
140
- onChange: (e) => {
141
- o.setValue("amount", e.toString(), {
142
- shouldTouch: !0,
143
- shouldDirty: !0,
144
- shouldValidate: !0
145
- });
146
- },
147
- min: n,
148
- max: s,
149
- className: "mt-xl"
150
- }
151
- ), /* @__PURE__ */ React.createElement(
152
- C,
153
- {
154
- control: o.control,
155
- name: "promo",
156
- render: (e) => /* @__PURE__ */ React.createElement(
157
- te,
158
- {
159
- className: "mt-4xl",
160
- value: e.field.value,
161
- onChange: e.field.onChange
162
- }
163
- )
164
- }
165
- ), /* @__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(
166
- c,
167
- {
168
- type: "submit",
169
- className: "mt-4.5",
170
- onClick: async (e) => {
171
- await o.trigger("amount") && (d.length <= 0 || o.getValues("promo") || (e.preventDefault(), l.setOpen(!0)));
172
- }
173
- },
174
- "Deposit"
175
- ), /* @__PURE__ */ React.createElement(
176
- T,
177
- {
178
- role: "alertdialog",
179
- open: l.open,
180
- onOpenChange: (e) => {
181
- l.setOpen(e.open);
182
- },
183
- lazyMount: !0,
184
- unmountOnExit: !0,
185
- closeOnEscape: !1,
186
- closeOnInteractOutside: !1
187
- },
188
- /* @__PURE__ */ React.createElement(b, null, /* @__PURE__ */ React.createElement(w, { className: "!z-[calc(var(--z-dialog)+10)]" }), /* @__PURE__ */ React.createElement(V, { className: "!z-[calc(var(--z-dialog)+25)]" }, /* @__PURE__ */ React.createElement($, null, /* @__PURE__ */ React.createElement(L, null, /* @__PURE__ */ React.createElement("div", { className: "flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]" }, /* @__PURE__ */ React.createElement(M, null)), /* @__PURE__ */ React.createElement(Z, null, /* @__PURE__ */ React.createElement(F, null))), /* @__PURE__ */ React.createElement(B, null, /* @__PURE__ */ React.createElement(H, null, "Submit deposit request without promo?"), /* @__PURE__ */ React.createElement(U, null, "You haven’t selected a promo. Are you sure you want to proceed without one?")), /* @__PURE__ */ React.createElement(j, null, /* @__PURE__ */ React.createElement(
189
- c,
178
+ ),
179
+ /* @__PURE__ */ o.jsxs("p", { className: "mt-4xl text-xs", children: [
180
+ "Upon clicking the deposit button, you agree to the",
181
+ " ",
182
+ /* @__PURE__ */ o.jsx("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }),
183
+ "."
184
+ ] }),
185
+ /* @__PURE__ */ o.jsx(
186
+ p,
190
187
  {
191
- variant: "outline",
192
- colorScheme: "gray",
193
- onClick: () => {
194
- l.setOpen(!1);
195
- }
196
- },
197
- "Cancel"
198
- ), /* @__PURE__ */ React.createElement(
199
- c,
188
+ type: "submit",
189
+ className: "mt-4.5",
190
+ onClick: async (e) => {
191
+ await r.trigger("amount") && (f.length <= 0 || r.getValues("promo") || (e.preventDefault(), a.setOpen(!0)));
192
+ },
193
+ children: "Deposit"
194
+ }
195
+ ),
196
+ /* @__PURE__ */ o.jsx(
197
+ T,
200
198
  {
201
- onClick: () => {
202
- f(), l.setOpen(!1);
203
- }
204
- },
205
- "Proceed"
206
- )))))
207
- ));
199
+ role: "alertdialog",
200
+ open: a.open,
201
+ onOpenChange: (e) => {
202
+ a.setOpen(e.open);
203
+ },
204
+ lazyMount: !0,
205
+ unmountOnExit: !0,
206
+ closeOnEscape: !1,
207
+ closeOnInteractOutside: !1,
208
+ children: /* @__PURE__ */ o.jsxs(A, { children: [
209
+ /* @__PURE__ */ o.jsx(w, { className: "!z-[calc(var(--z-dialog)+10)]" }),
210
+ /* @__PURE__ */ o.jsx(V, { className: "!z-[calc(var(--z-dialog)+25)]", children: /* @__PURE__ */ o.jsxs($, { children: [
211
+ /* @__PURE__ */ o.jsxs(L, { children: [
212
+ /* @__PURE__ */ o.jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]", children: /* @__PURE__ */ o.jsx(M, {}) }),
213
+ /* @__PURE__ */ o.jsx(Z, { children: /* @__PURE__ */ o.jsx(F, {}) })
214
+ ] }),
215
+ /* @__PURE__ */ o.jsxs(B, { children: [
216
+ /* @__PURE__ */ o.jsx(H, { children: "Submit deposit request without promo?" }),
217
+ /* @__PURE__ */ o.jsx(U, { children: "You haven’t selected a promo. Are you sure you want to proceed without one?" })
218
+ ] }),
219
+ /* @__PURE__ */ o.jsxs(q, { children: [
220
+ /* @__PURE__ */ o.jsx(
221
+ p,
222
+ {
223
+ variant: "outline",
224
+ colorScheme: "gray",
225
+ onClick: () => {
226
+ a.setOpen(!1);
227
+ },
228
+ children: "Cancel"
229
+ }
230
+ ),
231
+ /* @__PURE__ */ o.jsx(
232
+ p,
233
+ {
234
+ onClick: () => {
235
+ x(), a.setOpen(!1);
236
+ },
237
+ children: "Proceed"
238
+ }
239
+ )
240
+ ] })
241
+ ] }) })
242
+ ] })
243
+ }
244
+ )
245
+ ] });
208
246
  }
209
247
  export {
210
- tt as QRPHDepositForm
248
+ ie as QRPHDepositForm
211
249
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../icons/SpinnerIcon.js");function t(){return React.createElement("div",{className:"bg-gray-50 rounded-lg px-10 py-12 lg:p-16"},React.createElement(e.SpinnerIcon,{className:"mx-auto size-8 lg:size-10"}),React.createElement("p",{className:"mt-5 text-center text-lg font-semibold lg:text-xl"},"Generating QR Code"),React.createElement("p",{className:"text-gray-700 mt-3 text-center text-sm lg:text-base"},"Please hold tight as we verify the account details and amount. Once verified, a QRPH code will be displayed for you to scan and complete the transaction."))}exports.QRPHDepositLoading=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.js"),t=require("../../../../icons/SpinnerIcon.js");function s(){return e.jsxRuntimeExports.jsxs("div",{className:"bg-gray-50 rounded-lg px-10 py-12 lg:p-16",children:[e.jsxRuntimeExports.jsx(t.SpinnerIcon,{className:"mx-auto size-8 lg:size-10"}),e.jsxRuntimeExports.jsx("p",{className:"mt-5 text-center text-lg font-semibold lg:text-xl",children:"Generating QR Code"}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-700 mt-3 text-center text-sm lg:text-base",children:"Please hold tight as we verify the account details and amount. Once verified, a QRPH code will be displayed for you to scan and complete the transaction."})]})}exports.QRPHDepositLoading=s;
@@ -1,7 +1,12 @@
1
- import { SpinnerIcon as e } from "../../../../icons/SpinnerIcon.mjs";
2
- function a() {
3
- return /* @__PURE__ */ React.createElement("div", { className: "bg-gray-50 rounded-lg px-10 py-12 lg:p-16" }, /* @__PURE__ */ React.createElement(e, { className: "mx-auto size-8 lg:size-10" }), /* @__PURE__ */ React.createElement("p", { className: "mt-5 text-center text-lg font-semibold lg:text-xl" }, "Generating QR Code"), /* @__PURE__ */ React.createElement("p", { className: "text-gray-700 mt-3 text-center text-sm lg:text-base" }, "Please hold tight as we verify the account details and amount. Once verified, a QRPH code will be displayed for you to scan and complete the transaction."));
1
+ import { j as e } from "../../../../_virtual/jsx-runtime.mjs";
2
+ import { SpinnerIcon as t } from "../../../../icons/SpinnerIcon.mjs";
3
+ function n() {
4
+ return /* @__PURE__ */ e.jsxs("div", { className: "bg-gray-50 rounded-lg px-10 py-12 lg:p-16", children: [
5
+ /* @__PURE__ */ e.jsx(t, { className: "mx-auto size-8 lg:size-10" }),
6
+ /* @__PURE__ */ e.jsx("p", { className: "mt-5 text-center text-lg font-semibold lg:text-xl", children: "Generating QR Code" }),
7
+ /* @__PURE__ */ e.jsx("p", { className: "text-gray-700 mt-3 text-center text-sm lg:text-base", children: "Please hold tight as we verify the account details and amount. Once verified, a QRPH code will be displayed for you to scan and complete the transaction." })
8
+ ] });
4
9
  }
5
10
  export {
6
- a as QRPHDepositLoading
11
+ n as QRPHDepositLoading
7
12
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@ark-ui/react"),c=require("../../../../_virtual/image.js"),l=require("../../../../icons/QrCode02Icon.js"),n=require("../../../../icons/SpinnerIcon.js"),o=require("../../../../icons/XIcon.js"),i=require("../../../../images/qrph-icon.png.js");require("../../../../ui/AlertDialog/AlertDialog.js");require("../../../../ui/Avatar/Avatar.js");require("../../../../ui/Badge/Badge.js");const a=require("../../../../ui/Button/Button.js");require("../../../../ui/Checkbox/Checkbox.js");require("../../../../ui/Clipboard/Clipboard.js");require("../../../../ui/DatePicker/DatePicker.js");const e=require("../../../../ui/Dialog/Dialog.js");require("../../../../ui/Drawer/Drawer.js");require("../../../../ui/Field/Field.js");require("../../../../utils/capitalize.js");require("react");require("../../../../utils/parseDecimal.js");require("../../../../constants/index.js");require("../../../../utils/getLocaleInfo.js");require("../../../../utils/getQueryClient.js");require("../../../../utils/isMobile.js");require("../../../../utils/toaster.js");require("../../../../ui/IconButton/iconButton.recipe.js");require("../../../../ui/NumberInput/NumberInput.js");require("../../../../ui/PinInput/PinInput.js");require("../../../../ui/Popover/Popover.js");require("tailwind-merge");require("../../../../ui/SegmentGroup/SegmentGroup.js");require("../../../../ui/Select/Select.js");require("../../../../ui/Table/Table.js");require("../../../../ui/Tabs/Tabs.js");const s=require("./QRPHDepositContext.js");function m(){const r=s.useQRPHDepositContext();return React.createElement("div",{className:"bg-gray-50 rounded-lg px-10 py-12 lg:p-16"},React.createElement("p",{className:"mt-5 text-center text-lg font-semibold lg:text-xl"},"QR Code"),React.createElement("p",{className:"text-gray-700 mt-3 text-center text-sm lg:text-base"},"Scan the QR code below with your banking app, or upload it to complete your deposit."),React.createElement(t.QrCode.Root,{value:r.qrCode??"",className:"border-gray-200 mx-auto mt-6 w-[12.5rem] rounded-lg border bg-white p-5 lg:w-[13rem] lg:p-6"},React.createElement("div",{className:"relative"},React.createElement(t.QrCode.Frame,{className:"border-gray-200 mx-auto size-[10rem] rounded-[0.25rem] border"},React.createElement(t.QrCode.Pattern,null)),React.createElement(t.QrCode.Overlay,{className:"bg-white p-0.5"},React.createElement(c,{src:i,alt:"",className:"size-8",width:40,height:40}))),React.createElement(t.QrCode.DownloadTrigger,{fileName:`qrcode-${new Date().getTime()}`,mimeType:"image/png",className:"text-gray-900 mt-5 block w-full text-center text-sm font-semibold"},"Download QR Code")),r.view==="QR_CODE"&&React.createElement("div",{className:"mt-6 flex flex-col gap-4 lg:flex-row"},React.createElement(a.Button,{size:"sm",variant:"outline",colorScheme:"gray",onClick:()=>{r.reset()}},"Generate New QR Code"),React.createElement(a.Button,{size:"sm",onClick:()=>{r.verify()}},"Confirm Deposit")),r.view==="VERIFYING"&&React.createElement("div",{className:"border-gray-200 mt-6 rounded-lg border bg-white p-4 lg:p-6"},React.createElement(n.SpinnerIcon,{className:"mx-auto size-6 lg:size-8"}),React.createElement("p",{className:"mt-5 text-center font-semibold lg:text-lg"},"Processing your deposit"),React.createElement("p",{className:"text-gray-700 mx-auto mt-2 text-center text-xs lg:text-sm"},"Your deposit is being processed. ",React.createElement("br",null),"Please hold tight as we verify the account details and amount.")),React.createElement(u,null))}function u(){return React.createElement("p",{className:"text-gray-500 mt-6 text-center text-xs"},"Need help using the QR Code?"," ",React.createElement(e.Root,{lazyMount:!0,unmountOnExit:!0},React.createElement(e.Trigger,{className:"text-blue-500"},"See instructions"),React.createElement(t.Portal,null,React.createElement(e.Backdrop,{className:"!z-[calc(var(--z-dialog)+2)]"}),React.createElement(e.Positioner,{className:"!z-[calc(var(--z-dialog)+3)] flex items-center justify-center"},React.createElement(e.Content,{className:"mx-auto w-[calc(100%-2rem)] rounded-lg bg-white p-4xl lg:w-[33.625rem]"},React.createElement(e.CloseTrigger,null,React.createElement(o.XIcon,null)),React.createElement(e.Body,null,React.createElement("div",{className:"flex items-center gap-xl"},React.createElement("div",{className:"border-gray-200 flex size-11 items-center justify-center rounded-lg border"},React.createElement(l.QrCode02Icon,{className:"text-gray-600 size-6"})),React.createElement(e.Title,{className:"text-lg font-semibold"},"How to Use the QR Code for Payment")),React.createElement(e.Description,{className:"mt-5"},"Follow these simple steps to complete your transaction:"),React.createElement("ol",{className:"mt-3 list-inside list-decimal space-y-3"},React.createElement("li",null,"Open your preferred banking or EMI mobile app and select 'Transfer Money' or 'Pay via QR'"),React.createElement("li",null,"Scan or upload the generated QR Ph code. If prompted by the app, enter the amount to be sent."),React.createElement("li",null,"Proceed with the transfer or payment."))))))))}exports.QRPHDepositQrCode=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.js"),r=require("@ark-ui/react"),o=require("../../../../_virtual/image.js"),n=require("../../../../icons/QrCode02Icon.js"),x=require("../../../../icons/SpinnerIcon.js"),l=require("../../../../icons/XIcon.js"),a=require("../../../../images/qrph-icon.png.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");const t=require("../../../../ui/Dialog/Dialog.js");require("../../../../ui/Drawer/Drawer.js");require("../../../../ui/Field/Field.js");require("../../../../utils/capitalize.js");require("react");require("../../../../utils/parseDecimal.js");require("../../../../constants/index.js");require("../../../../utils/getLocaleInfo.js");require("../../../../utils/getQueryClient.js");require("../../../../utils/isMobile.js");require("../../../../utils/toaster.js");require("../../../../ui/IconButton/iconButton.recipe.js");require("../../../../ui/NumberInput/NumberInput.js");require("../../../../ui/PinInput/PinInput.js");require("../../../../ui/Popover/Popover.js");require("tailwind-merge");require("../../../../ui/SegmentGroup/SegmentGroup.js");require("../../../../ui/Select/Select.js");require("../../../../ui/Table/Table.js");require("../../../../ui/Tabs/Tabs.js");const c=require("./QRPHDepositContext.js");function u(){const s=c.useQRPHDepositContext();return e.jsxRuntimeExports.jsxs("div",{className:"bg-gray-50 rounded-lg px-10 py-12 lg:p-16",children:[e.jsxRuntimeExports.jsx("p",{className:"mt-5 text-center text-lg font-semibold lg:text-xl",children:"QR Code"}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-700 mt-3 text-center text-sm lg:text-base",children:"Scan the QR code below with your banking app, or upload it to complete your deposit."}),e.jsxRuntimeExports.jsxs(r.QrCode.Root,{value:s.qrCode??"",className:"border-gray-200 mx-auto mt-6 w-[12.5rem] rounded-lg border bg-white p-5 lg:w-[13rem] lg:p-6",children:[e.jsxRuntimeExports.jsxs("div",{className:"relative",children:[e.jsxRuntimeExports.jsx(r.QrCode.Frame,{className:"border-gray-200 mx-auto size-[10rem] rounded-[0.25rem] border",children:e.jsxRuntimeExports.jsx(r.QrCode.Pattern,{})}),e.jsxRuntimeExports.jsx(r.QrCode.Overlay,{className:"bg-white p-0.5",children:e.jsxRuntimeExports.jsx(o,{src:a,alt:"",className:"size-8",width:40,height:40})})]}),e.jsxRuntimeExports.jsx(r.QrCode.DownloadTrigger,{fileName:`qrcode-${new Date().getTime()}`,mimeType:"image/png",className:"text-gray-900 mt-5 block w-full text-center text-sm font-semibold",children:"Download QR Code"})]}),s.view==="QR_CODE"&&e.jsxRuntimeExports.jsxs("div",{className:"mt-6 flex flex-col gap-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx(i.Button,{size:"sm",variant:"outline",colorScheme:"gray",onClick:()=>{s.reset()},children:"Generate New QR Code"}),e.jsxRuntimeExports.jsx(i.Button,{size:"sm",onClick:()=>{s.verify()},children:"Confirm Deposit"})]}),s.view==="VERIFYING"&&e.jsxRuntimeExports.jsxs("div",{className:"border-gray-200 mt-6 rounded-lg border bg-white p-4 lg:p-6",children:[e.jsxRuntimeExports.jsx(x.SpinnerIcon,{className:"mx-auto size-6 lg:size-8"}),e.jsxRuntimeExports.jsx("p",{className:"mt-5 text-center font-semibold lg:text-lg",children:"Processing your deposit"}),e.jsxRuntimeExports.jsxs("p",{className:"text-gray-700 mx-auto mt-2 text-center text-xs lg:text-sm",children:["Your deposit is being processed. ",e.jsxRuntimeExports.jsx("br",{}),"Please hold tight as we verify the account details and amount."]})]}),e.jsxRuntimeExports.jsx(m,{})]})}function m(){return e.jsxRuntimeExports.jsxs("p",{className:"text-gray-500 mt-6 text-center text-xs",children:["Need help using the QR Code?"," ",e.jsxRuntimeExports.jsxs(t.Root,{lazyMount:!0,unmountOnExit:!0,children:[e.jsxRuntimeExports.jsx(t.Trigger,{className:"text-blue-500",children:"See instructions"}),e.jsxRuntimeExports.jsxs(r.Portal,{children:[e.jsxRuntimeExports.jsx(t.Backdrop,{className:"!z-[calc(var(--z-dialog)+2)]"}),e.jsxRuntimeExports.jsx(t.Positioner,{className:"!z-[calc(var(--z-dialog)+3)] flex items-center justify-center",children:e.jsxRuntimeExports.jsxs(t.Content,{className:"mx-auto w-[calc(100%-2rem)] rounded-lg bg-white p-4xl lg:w-[33.625rem]",children:[e.jsxRuntimeExports.jsx(t.CloseTrigger,{children:e.jsxRuntimeExports.jsx(l.XIcon,{})}),e.jsxRuntimeExports.jsxs(t.Body,{children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-xl",children:[e.jsxRuntimeExports.jsx("div",{className:"border-gray-200 flex size-11 items-center justify-center rounded-lg border",children:e.jsxRuntimeExports.jsx(n.QrCode02Icon,{className:"text-gray-600 size-6"})}),e.jsxRuntimeExports.jsx(t.Title,{className:"text-lg font-semibold",children:"How to Use the QR Code for Payment"})]}),e.jsxRuntimeExports.jsx(t.Description,{className:"mt-5",children:"Follow these simple steps to complete your transaction:"}),e.jsxRuntimeExports.jsxs("ol",{className:"mt-3 list-inside list-decimal space-y-3",children:[e.jsxRuntimeExports.jsx("li",{children:"Open your preferred banking or EMI mobile app and select 'Transfer Money' or 'Pay via QR'"}),e.jsxRuntimeExports.jsx("li",{children:"Scan or upload the generated QR Ph code. If prompted by the app, enter the amount to be sent."}),e.jsxRuntimeExports.jsx("li",{children:"Proceed with the transfer or payment."})]})]})]})})]})]})]})}exports.QRPHDepositQrCode=u;