@opexa/portal-components 0.0.99 → 0.0.101

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 (499) hide show
  1. package/dist/client/hooks/index.d.ts +0 -5
  2. package/dist/client/hooks/index.js +0 -5
  3. package/dist/client/hooks/useAccountQuery.js +3 -3
  4. package/dist/client/hooks/useAuthenticateMutation.d.ts +1 -1
  5. package/dist/client/hooks/useAuthenticateMutation.js +3 -2
  6. package/dist/client/hooks/useAvailablePromosQuery.d.ts +1 -1
  7. package/dist/client/hooks/useAvailablePromosQuery.js +3 -3
  8. package/dist/client/hooks/useAvailableQuestsCountQuery.js +3 -3
  9. package/dist/client/hooks/useAvailableQuestsQuery.js +3 -3
  10. package/dist/client/hooks/useBetRecordsQuery.d.ts +1 -1
  11. package/dist/client/hooks/useBetRecordsQuery.js +3 -3
  12. package/dist/client/hooks/useBonusQuery.js +3 -3
  13. package/dist/client/hooks/useBonusesCountQuery.js +3 -3
  14. package/dist/client/hooks/useBonusesQuery.js +3 -3
  15. package/dist/client/hooks/useCashbackBonusQuery.js +3 -3
  16. package/dist/client/hooks/useCashbackBonusesCountQuery.js +3 -3
  17. package/dist/client/hooks/useCashbackBonusesQuery.js +3 -3
  18. package/dist/client/hooks/useCashbackQuery.js +2 -2
  19. package/dist/client/hooks/useCashbacksQuery.js +2 -2
  20. package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +3 -3
  21. package/dist/client/hooks/useClaimCashbackBonusMutation.js +4 -3
  22. package/dist/client/hooks/useClaimSpotBonusMutation.js +4 -3
  23. package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +1 -1
  24. package/dist/client/hooks/useCreateGCashDepositMutation.js +5 -3
  25. package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
  26. package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -3
  27. package/dist/client/hooks/useCreateGameSessionMutation.js +5 -3
  28. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
  29. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -3
  30. package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +1 -1
  31. package/dist/client/hooks/useCreateMayaAppDepositMutation.js +5 -3
  32. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
  33. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -3
  34. package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +1 -1
  35. package/dist/client/hooks/useCreateMayaDepositMutation.js +5 -3
  36. package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
  37. package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -3
  38. package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +1 -1
  39. package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +5 -3
  40. package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +1 -1
  41. package/dist/client/hooks/useCreateQRPHDepositMutation.js +5 -3
  42. package/dist/client/hooks/useDepositQuery.js +3 -3
  43. package/dist/client/hooks/useDepositRecordsQuery.d.ts +1 -1
  44. package/dist/client/hooks/useDepositRecordsQuery.js +3 -3
  45. package/dist/client/hooks/useDepositsCountQuery.js +3 -3
  46. package/dist/client/hooks/useEndGameSessionMutation.js +4 -3
  47. package/dist/client/hooks/useFavoriteGamesQuery.js +3 -3
  48. package/dist/client/hooks/useGamesQuery.d.ts +1 -1
  49. package/dist/client/hooks/useGamesQuery.js +2 -2
  50. package/dist/client/hooks/useGlobalStore.d.ts +3 -0
  51. package/dist/client/hooks/useGlobalStore.js +41 -1
  52. package/dist/client/hooks/useInstapayBankListQuery.js +3 -3
  53. package/dist/client/hooks/useIsMayaSessionValidQuery.js +5 -5
  54. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +1 -1
  55. package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -2
  56. package/dist/client/hooks/useJackpotsCountQuery.d.ts +1 -1
  57. package/dist/client/hooks/useJackpotsCountQuery.js +2 -2
  58. package/dist/client/hooks/useJackpotsQuery.d.ts +1 -1
  59. package/dist/client/hooks/useJackpotsQuery.js +2 -2
  60. package/dist/client/hooks/useLocaleInfo.d.ts +1 -1
  61. package/dist/client/hooks/useLocaleInfo.js +1 -1
  62. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +4 -3
  63. package/dist/client/hooks/useMarkMessageAsReadMutation.js +4 -3
  64. package/dist/client/hooks/useMemberVerificationQuery.js +3 -3
  65. package/dist/client/hooks/useMessagesQuery.d.ts +1 -1
  66. package/dist/client/hooks/useMessagesQuery.js +3 -3
  67. package/dist/client/hooks/usePaymentSettingsQuery.js +3 -3
  68. package/dist/client/hooks/usePlatformQuery.js +2 -2
  69. package/dist/client/hooks/useProfileCompletionQuery.js +3 -3
  70. package/dist/client/hooks/usePromoQuery.js +2 -2
  71. package/dist/client/hooks/usePromosQuery.js +2 -2
  72. package/dist/client/hooks/useSendVerificationCodeMutation.d.ts +1 -1
  73. package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -2
  74. package/dist/client/hooks/useSessionQuery.js +4 -4
  75. package/dist/client/hooks/useSignInMutation.d.ts +1 -1
  76. package/dist/client/hooks/useSignInMutation.js +3 -2
  77. package/dist/client/hooks/useSignOutMutation.js +3 -2
  78. package/dist/client/hooks/useSignUpMutation.d.ts +1 -1
  79. package/dist/client/hooks/useSignUpMutation.js +2 -2
  80. package/dist/client/hooks/useTopWinsQuery.js +2 -2
  81. package/dist/client/hooks/useTournamentsCountQuery.d.ts +1 -1
  82. package/dist/client/hooks/useTournamentsCountQuery.js +2 -2
  83. package/dist/client/hooks/useTournamentsQuery.d.ts +1 -1
  84. package/dist/client/hooks/useTournamentsQuery.js +2 -2
  85. package/dist/client/hooks/useTransactionRecordsQuery.d.ts +1 -1
  86. package/dist/client/hooks/useTransactionRecordsQuery.js +3 -3
  87. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +4 -3
  88. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
  89. package/dist/client/hooks/useUnreadMessagesCountQuery.js +3 -3
  90. package/dist/client/hooks/useUpdateAccountMutation.d.ts +1 -1
  91. package/dist/client/hooks/useUpdateAccountMutation.js +4 -3
  92. package/dist/client/hooks/useWalletQuery.js +3 -3
  93. package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +1 -1
  94. package/dist/client/hooks/useWithdrawalRecordsQuery.js +3 -3
  95. package/dist/client/services/authenticate.d.ts +1 -1
  96. package/dist/client/services/signIn.d.ts +1 -1
  97. package/dist/client/utils/createRecipeContext.js +1 -1
  98. package/dist/client/utils/toaster.d.ts +1 -1
  99. package/dist/client/utils/toaster.js +1 -1
  100. package/dist/components/Account/Account.d.ts +3 -23
  101. package/dist/components/Account/Account.js +10 -115
  102. package/dist/components/Account/Account.lazy.d.ts +23 -0
  103. package/dist/components/Account/Account.lazy.js +138 -0
  104. package/dist/components/Account/AccountTrigger.js +2 -2
  105. package/dist/components/AccountInfo/AccountInfo.js +10 -4
  106. package/dist/components/AccountSecurity/AccountSecurity.js +13 -4
  107. package/dist/components/AccountVerification/AccountVerification.js +12 -3
  108. package/dist/components/Banner/Banner.d.ts +2 -2
  109. package/dist/components/Banner/Banner.js +2 -2
  110. package/dist/components/BetRecords/BetRecords.client.d.ts +7 -0
  111. package/dist/components/BetRecords/BetRecords.client.js +189 -0
  112. package/dist/components/BetRecords/BetRecords.d.ts +3 -7
  113. package/dist/components/BetRecords/BetRecords.js +8 -174
  114. package/dist/components/Bonus/Bonus.client.d.ts +9 -1
  115. package/dist/components/Bonus/Bonus.client.js +13 -4
  116. package/dist/components/Bonus/Bonus.d.ts +2 -9
  117. package/dist/components/Bonus/Bonus.js +22 -6
  118. package/dist/components/Bonuses/Bonuses.client.d.ts +9 -1
  119. package/dist/components/Bonuses/Bonuses.client.js +14 -4
  120. package/dist/components/Bonuses/Bonuses.d.ts +2 -9
  121. package/dist/components/Bonuses/Bonuses.js +3 -2
  122. package/dist/components/Bonuses/BonusesTrigger.js +7 -6
  123. package/dist/components/Cashback/Cashback.client.d.ts +6 -1
  124. package/dist/components/Cashback/Cashback.client.js +7 -3
  125. package/dist/components/Cashback/Cashback.d.ts +2 -6
  126. package/dist/components/Cashback/Cashback.js +11 -6
  127. package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +2 -0
  128. package/dist/components/CashbackBonus/CashbackBonus.client.js +9 -0
  129. package/dist/components/CashbackBonus/CashbackBonus.d.ts +10 -0
  130. package/dist/components/CashbackBonus/CashbackBonus.js +5 -0
  131. package/dist/components/CashbackBonus/index.d.ts +1 -0
  132. package/dist/components/CashbackBonus/index.js +1 -0
  133. package/dist/components/DepositWithdrawal/AmountChoices.js +5 -3
  134. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +5 -3
  135. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +6 -3
  136. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +15 -4
  137. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +15 -4
  138. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +15 -4
  139. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.js +5 -2
  140. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  141. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.js +1 -1
  142. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.js +5 -2
  143. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +10 -4
  144. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  145. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +2 -1
  146. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +5 -2
  147. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  148. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.js +1 -1
  149. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +4 -2
  150. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +10 -4
  151. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  152. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +2 -1
  153. package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +1 -1
  154. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +10 -27
  155. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +1 -0
  156. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +36 -0
  157. package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.js +5 -2
  158. package/dist/components/DepositWithdrawal/PaymentMethods.js +4 -3
  159. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +17 -4
  160. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +18 -4
  161. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +15 -4
  162. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +17 -4
  163. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +11 -4
  164. package/dist/components/Disclaimer/DisclaimerV1.js +2 -1
  165. package/dist/components/Disclaimer/DisclaimerV2.js +2 -1
  166. package/dist/components/Disclaimer/ResponsibleGaming.js +2 -1
  167. package/dist/components/Disclaimer/TermsOfUse.js +3 -2
  168. package/dist/components/Empty.d.ts +1 -2
  169. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +5 -1
  170. package/dist/components/FavoriteGames/FavoriteGames.client.js +8 -4
  171. package/dist/components/FavoriteGames/FavoriteGames.d.ts +2 -5
  172. package/dist/components/FavoriteGames/FavoriteGames.js +2 -2
  173. package/dist/components/GameLaunch/GameLaunch.d.ts +1 -1
  174. package/dist/components/GameLaunch/GameLaunch.js +10 -71
  175. package/dist/components/GameLaunch/GameLaunch.lazy.d.ts +1 -0
  176. package/dist/components/GameLaunch/GameLaunch.lazy.js +90 -0
  177. package/dist/components/GameLaunch/GameLaunchTrigger.js +4 -2
  178. package/dist/components/GameProviders/GameProvidersCarousel.js +5 -3
  179. package/dist/components/GameProviders/GameProvidersList.js +4 -3
  180. package/dist/components/Games/Game.js +14 -5
  181. package/dist/components/Games/GameContext.d.ts +2 -0
  182. package/dist/components/Games/GameContext.js +2 -0
  183. package/dist/components/Games/GamesCarousel.client.d.ts +24 -1
  184. package/dist/components/Games/GamesCarousel.client.js +7 -3
  185. package/dist/components/Games/GamesCarousel.d.ts +2 -23
  186. package/dist/components/Games/GamesCarousel.js +2 -2
  187. package/dist/components/Games/GamesContext.js +1 -1
  188. package/dist/components/Games/GamesList.client.d.ts +19 -1
  189. package/dist/components/Games/GamesList.client.js +6 -3
  190. package/dist/components/Games/GamesList.d.ts +2 -18
  191. package/dist/components/Games/GamesList.js +1 -1
  192. package/dist/components/GamesSearch/GamesSearch.d.ts +1 -1
  193. package/dist/components/GamesSearch/GamesSearch.js +10 -4
  194. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +1 -1
  195. package/dist/components/JackpotCounter/JackpotCounterItem.module.css +184 -184
  196. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +9 -0
  197. package/dist/components/Jackpots/JackpotItemDesktop.js +43 -0
  198. package/dist/components/Jackpots/JackpotItemMobile.d.ts +9 -0
  199. package/dist/components/Jackpots/JackpotItemMobile.js +44 -0
  200. package/dist/components/Jackpots/Jackpots.js +1 -1
  201. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.js +6 -4
  202. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselContext.js +1 -1
  203. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +14 -9
  204. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  205. package/dist/components/Jackpots/JackpotsContext.d.ts +1 -1
  206. package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +3 -1
  207. package/dist/components/Jackpots/JackpotsList/JackpotsList.js +9 -9
  208. package/dist/components/Jackpots/JackpotsList/JackpotsListContext.js +1 -1
  209. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  210. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +14 -9
  211. package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.js +11 -4
  212. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +15 -7
  213. package/dist/components/Jackpots/JackpotsList/JackpotsListItemRules.js +2 -2
  214. package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.d.ts +1 -5
  215. package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.js +3 -25
  216. package/dist/components/Jackpots/useJackpotData.d.ts +2 -2
  217. package/dist/components/Jackpots/useJackpotData.js +1 -0
  218. package/dist/components/Jackpots/useJackpotItemData.d.ts +20 -0
  219. package/dist/components/Jackpots/useJackpotItemData.js +87 -0
  220. package/dist/components/KYC/Header.js +4 -2
  221. package/dist/components/KYC/Indicator.js +2 -2
  222. package/dist/components/KYC/KYC.d.ts +1 -1
  223. package/dist/components/KYC/KYC.js +10 -22
  224. package/dist/components/KYC/KYC.lazy.d.ts +1 -0
  225. package/dist/components/KYC/KYC.lazy.js +26 -0
  226. package/dist/components/KYC/KYCContext.js +1 -1
  227. package/dist/components/KYC/KYCTrigger.js +1 -1
  228. package/dist/components/KYC/Step1.js +3 -2
  229. package/dist/components/KYC/Step2.js +3 -2
  230. package/dist/components/KYC/Step3.js +4 -2
  231. package/dist/components/KYC/Step4.js +3 -2
  232. package/dist/components/Messages/Message.js +3 -1
  233. package/dist/components/Messages/MessageContext.js +1 -1
  234. package/dist/components/Messages/MessageItem.d.ts +4 -0
  235. package/dist/components/Messages/MessageItem.js +34 -0
  236. package/dist/components/Messages/MessagePopup.js +3 -3
  237. package/dist/components/Messages/MessageTrigger.js +2 -1
  238. package/dist/components/Messages/Messages.d.ts +3 -13
  239. package/dist/components/Messages/Messages.js +10 -35
  240. package/dist/components/Messages/Messages.lazy.d.ts +13 -0
  241. package/dist/components/Messages/Messages.lazy.js +48 -0
  242. package/dist/components/Messages/MessagesTrigger.js +7 -4
  243. package/dist/components/Messages/utils.d.ts +1 -1
  244. package/dist/components/Messages/utils.js +1 -1
  245. package/dist/components/PortalProvider/PortalProvider.js +8 -5
  246. package/dist/components/PortalProvider/Providers.js +1 -1
  247. package/dist/components/PortalProvider/Snackbar.js +4 -3
  248. package/dist/components/Promo/Promo.client.d.ts +6 -1
  249. package/dist/components/Promo/Promo.client.js +7 -3
  250. package/dist/components/Promo/Promo.d.ts +2 -6
  251. package/dist/components/Promo/Promo.js +11 -6
  252. package/dist/components/Promo/PromoContent.d.ts +2 -0
  253. package/dist/components/Promo/PromoContent.js +9 -0
  254. package/dist/components/Promos/Cashback.js +3 -2
  255. package/dist/components/Promos/Promo.js +3 -2
  256. package/dist/components/Promos/PromoCarousel.d.ts +2 -0
  257. package/dist/components/Promos/PromoCarousel.js +41 -0
  258. package/dist/components/Promos/PromoGrid.d.ts +2 -0
  259. package/dist/components/Promos/PromoGrid.js +12 -0
  260. package/dist/components/Promos/PromoItem.d.ts +7 -0
  261. package/dist/components/Promos/PromoItem.js +10 -0
  262. package/dist/components/Promos/Promos.js +3 -2
  263. package/dist/components/Promos/PromosCarousel.js +7 -3
  264. package/dist/components/Promos/PromosGrid.js +2 -1
  265. package/dist/components/Protected/Protected.d.ts +1 -2
  266. package/dist/components/Protected/Protected.js +1 -1
  267. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +10 -5
  268. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +3 -2
  269. package/dist/components/Quests/Quests.client.d.ts +5 -1
  270. package/dist/components/Quests/Quests.client.js +2 -2
  271. package/dist/components/Quests/Quests.d.ts +2 -5
  272. package/dist/components/Quests/Quests.js +1 -1
  273. package/dist/components/Quests/WageringQuest/WageringQuest.js +3 -2
  274. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +3 -2
  275. package/dist/components/Search/Search.d.ts +3 -21
  276. package/dist/components/Search/Search.js +10 -64
  277. package/dist/components/Search/Search.lazy.d.ts +20 -0
  278. package/dist/components/Search/Search.lazy.js +78 -0
  279. package/dist/components/Search/SearchTrigger.js +1 -1
  280. package/dist/components/SignIn/MobileNumberSignIn.js +16 -5
  281. package/dist/components/SignIn/NameAndPasswordSignIn.js +16 -7
  282. package/dist/components/SignIn/SignIn.d.ts +3 -7
  283. package/dist/components/SignIn/SignIn.js +10 -14
  284. package/dist/components/SignIn/SignIn.lazy.d.ts +7 -0
  285. package/dist/components/SignIn/SignIn.lazy.js +18 -0
  286. package/dist/components/SignIn/SignInContext.js +1 -1
  287. package/dist/components/SignIn/SignInMethod.js +1 -1
  288. package/dist/components/SignIn/SignInTrigger.js +1 -1
  289. package/dist/components/SignUp/SignUp.d.ts +3 -7
  290. package/dist/components/SignUp/SignUp.js +10 -12
  291. package/dist/components/SignUp/SignUp.lazy.d.ts +7 -0
  292. package/dist/components/SignUp/SignUp.lazy.js +16 -0
  293. package/dist/components/SignUp/SignUpForm.js +15 -5
  294. package/dist/components/SignUp/SignUpTrigger.js +1 -1
  295. package/dist/components/TopWins/TopWins.client.d.ts +5 -1
  296. package/dist/components/TopWins/TopWins.client.js +8 -3
  297. package/dist/components/TopWins/TopWins.d.ts +2 -5
  298. package/dist/components/TopWins/TopWins.js +1 -1
  299. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +1 -1
  300. package/dist/components/Tournaments/TournamentItemDesktop.d.ts +7 -0
  301. package/dist/components/Tournaments/TournamentItemDesktop.js +56 -0
  302. package/dist/components/Tournaments/TournamentItemMobile.d.ts +7 -0
  303. package/dist/components/Tournaments/TournamentItemMobile.js +54 -0
  304. package/dist/components/Tournaments/Tournaments.js +1 -1
  305. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.js +6 -4
  306. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselContext.js +1 -1
  307. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.js +8 -3
  308. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  309. package/dist/components/Tournaments/TournamentsContext.d.ts +1 -1
  310. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  311. package/dist/components/Tournaments/TournamentsList/TournamentsList.js +2 -2
  312. package/dist/components/Tournaments/TournamentsList/TournamentsListContext.js +1 -1
  313. package/dist/components/Tournaments/TournamentsList/TournamentsListItemDesktop.js +7 -2
  314. package/dist/components/Tournaments/TournamentsList/TournamentsListItemGameProviders.js +3 -2
  315. package/dist/components/Tournaments/TournamentsList/TournamentsListItemMobile.js +10 -3
  316. package/dist/components/Tournaments/TournamentsList/TournamentsListItemRules.js +3 -2
  317. package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.d.ts +1 -1
  318. package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.js +1 -1
  319. package/dist/components/Tournaments/useTournamentData.js +1 -0
  320. package/dist/components/Tournaments/useTournamentItemData.d.ts +16 -0
  321. package/dist/components/Tournaments/useTournamentItemData.js +64 -0
  322. package/dist/components/TransactionRecords/DepositRecordsTable.js +12 -4
  323. package/dist/components/TransactionRecords/TableFilters.js +9 -4
  324. package/dist/components/TransactionRecords/TransactionRecords.d.ts +1 -1
  325. package/dist/components/TransactionRecords/TransactionRecords.js +7 -2
  326. package/dist/components/TransactionRecords/TransactionRecordsTable.js +11 -4
  327. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +12 -4
  328. package/dist/components/index.d.ts +2 -0
  329. package/dist/components/index.js +2 -0
  330. package/dist/constants/endpoints.js +2 -2
  331. package/dist/handlers.js +1 -1
  332. package/dist/icons/index.d.ts +0 -1
  333. package/dist/icons/index.js +0 -1
  334. package/dist/images/hacksaw-gaming.png +0 -0
  335. package/dist/middleware.js +1 -1
  336. package/dist/next.config.js +4 -0
  337. package/dist/server/services/authenticate.d.ts +1 -1
  338. package/dist/server/services/authenticate.js +1 -1
  339. package/dist/server/services/signIn.d.ts +1 -1
  340. package/dist/server/services/signIn.js +1 -1
  341. package/dist/server/services/signOut.js +1 -1
  342. package/dist/server/utils/index.d.ts +0 -5
  343. package/dist/server/utils/index.js +0 -5
  344. package/dist/server/utils/prefetchAccountQuery.js +3 -2
  345. package/dist/server/utils/prefetchAvailablePromosQuery.d.ts +1 -1
  346. package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -2
  347. package/dist/server/utils/prefetchAvailableQuestsCountQuery.js +3 -2
  348. package/dist/server/utils/prefetchAvailableQuestsQuery.js +3 -2
  349. package/dist/server/utils/prefetchBetRecordsQuery.d.ts +1 -1
  350. package/dist/server/utils/prefetchBetRecordsQuery.js +3 -2
  351. package/dist/server/utils/prefetchBonusQuery.js +3 -2
  352. package/dist/server/utils/prefetchBonusesCountQuery.js +3 -2
  353. package/dist/server/utils/prefetchBonusesQuery.js +3 -2
  354. package/dist/server/utils/prefetchCashbackBonusQuery.js +3 -2
  355. package/dist/server/utils/prefetchCashbackBonusesCountQuery.js +4 -3
  356. package/dist/server/utils/prefetchCashbackBonusesQuery.js +4 -3
  357. package/dist/server/utils/prefetchCashbackQuery.js +3 -2
  358. package/dist/server/utils/prefetchCashbacksQuery.js +3 -2
  359. package/dist/server/utils/prefetchDepositQuery.js +3 -2
  360. package/dist/server/utils/prefetchDepositRecordsQuery.d.ts +1 -1
  361. package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -2
  362. package/dist/server/utils/prefetchDepositsCountQuery.js +3 -2
  363. package/dist/server/utils/prefetchFavoriteGamesQuery.js +4 -3
  364. package/dist/server/utils/prefetchGamesQuery.d.ts +1 -1
  365. package/dist/server/utils/prefetchGamesQuery.js +3 -2
  366. package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -2
  367. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -2
  368. package/dist/server/utils/prefetchJackpotsCountQuery.d.ts +1 -1
  369. package/dist/server/utils/prefetchJackpotsCountQuery.js +3 -2
  370. package/dist/server/utils/prefetchJackpotsQuery.d.ts +1 -1
  371. package/dist/server/utils/prefetchJackpotsQuery.js +3 -2
  372. package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -2
  373. package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -2
  374. package/dist/server/utils/prefetchPlatformQuery.js +3 -2
  375. package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -2
  376. package/dist/server/utils/prefetchPromoQuery.js +3 -2
  377. package/dist/server/utils/prefetchPromosQuery.js +3 -2
  378. package/dist/server/utils/prefetchSessionQuery.js +2 -1
  379. package/dist/server/utils/prefetchTopWinsQuery.js +3 -2
  380. package/dist/server/utils/prefetchTournamentsCountQuery.d.ts +1 -1
  381. package/dist/server/utils/prefetchTournamentsCountQuery.js +3 -2
  382. package/dist/server/utils/prefetchTournamentsQuery.d.ts +1 -1
  383. package/dist/server/utils/prefetchTournamentsQuery.js +3 -2
  384. package/dist/server/utils/prefetchTransactionRecordsQuery.d.ts +1 -1
  385. package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -2
  386. package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +1 -1
  387. package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -2
  388. package/dist/server/utils/prefetchWalletQuery.js +3 -2
  389. package/dist/server/utils/prefetchWithdrawalRecordsQuery.d.ts +1 -1
  390. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -2
  391. package/dist/services/queries.js +2351 -2351
  392. package/dist/styles/theme.css +697 -697
  393. package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
  394. package/dist/ui/AlertDialog/AlertDialog.js +1 -1
  395. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
  396. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  397. package/dist/ui/Avatar/Avatar.js +1 -1
  398. package/dist/ui/Avatar/avatar.recipe.js +1 -1
  399. package/dist/ui/Badge/Badge.d.ts +12 -12
  400. package/dist/ui/Badge/Badge.js +1 -1
  401. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  402. package/dist/ui/Badge/badge.recipe.js +1 -1
  403. package/dist/ui/Button/Button.js +2 -1
  404. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  405. package/dist/ui/Checkbox/Checkbox.js +1 -1
  406. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  407. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  408. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  409. package/dist/ui/Clipboard/Clipboard.js +1 -1
  410. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  411. package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
  412. package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
  413. package/dist/ui/Collapsible/Collapsible.js +1 -1
  414. package/dist/ui/Collapsible/collapsible.recipe.d.ts +8 -8
  415. package/dist/ui/Collapsible/collapsible.recipe.js +1 -1
  416. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  417. package/dist/ui/Combobox/Combobox.js +1 -1
  418. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  419. package/dist/ui/Combobox/combobox.recipe.js +1 -1
  420. package/dist/ui/DatePicker/DatePicker.d.ts +336 -336
  421. package/dist/ui/DatePicker/DatePicker.js +1 -1
  422. package/dist/ui/DatePicker/datePicker.recipe.d.ts +14 -14
  423. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  424. package/dist/ui/Dialog/Dialog.d.ts +154 -154
  425. package/dist/ui/Dialog/Dialog.js +1 -1
  426. package/dist/ui/Dialog/dialog.recipe.d.ts +14 -14
  427. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  428. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  429. package/dist/ui/Drawer/Drawer.js +1 -1
  430. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  431. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  432. package/dist/ui/Field/Field.d.ts +21 -21
  433. package/dist/ui/Field/Field.js +1 -1
  434. package/dist/ui/Field/field.recipe.d.ts +3 -3
  435. package/dist/ui/Field/field.recipe.js +1 -1
  436. package/dist/ui/IconButton/IconButton.js +2 -1
  437. package/dist/ui/NumberInput/NumberInput.js +1 -1
  438. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  439. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  440. package/dist/ui/PasswordInput/PasswordInput.js +1 -1
  441. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  442. package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
  443. package/dist/ui/PinInput/PinInput.js +1 -1
  444. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  445. package/dist/ui/Popover/Popover.d.ts +121 -121
  446. package/dist/ui/Popover/Popover.js +1 -1
  447. package/dist/ui/Popover/popover.recipe.d.ts +11 -11
  448. package/dist/ui/Popover/popover.recipe.js +1 -1
  449. package/dist/ui/Presence.d.ts +1 -1
  450. package/dist/ui/Presence.js +1 -1
  451. package/dist/ui/Progress/Progress.d.ts +27 -27
  452. package/dist/ui/Progress/Progress.js +1 -1
  453. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  454. package/dist/ui/Progress/progress.recipe.js +1 -1
  455. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  456. package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
  457. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  458. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  459. package/dist/ui/Select/Select.d.ts +45 -45
  460. package/dist/ui/Select/Select.js +1 -1
  461. package/dist/ui/Select/select.recipe.d.ts +3 -3
  462. package/dist/ui/Select/select.recipe.js +1 -1
  463. package/dist/ui/Table/Table.d.ts +21 -21
  464. package/dist/ui/Table/Table.js +1 -1
  465. package/dist/ui/Table/table.recipe.d.ts +3 -3
  466. package/dist/ui/Table/table.recipe.js +1 -1
  467. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  468. package/dist/ui/Tabs/Tabs.js +1 -1
  469. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  470. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  471. package/dist/utils/getQueryClient.js +2 -2
  472. package/dist/utils/index.d.ts +0 -1
  473. package/dist/utils/index.js +0 -1
  474. package/dist/utils/onMobileDevice.d.ts +5 -0
  475. package/dist/utils/onMobileDevice.js +9 -0
  476. package/dist/utils/queryKeys.d.ts +4 -1
  477. package/package.json +162 -163
  478. package/dist/services/ObjectId.d.ts +0 -10
  479. package/dist/services/ObjectId.js +0 -72
  480. package/dist/services/index.d.ts +0 -13
  481. package/dist/services/index.js +0 -13
  482. /package/dist/services/{account.service.d.ts → account.d.ts} +0 -0
  483. /package/dist/services/{account.service.js → account.js} +0 -0
  484. /package/dist/services/{auth.service.d.ts → auth.d.ts} +0 -0
  485. /package/dist/services/{auth.service.js → auth.js} +0 -0
  486. /package/dist/services/{cmsPortal.service.d.ts → cmsPortal.d.ts} +0 -0
  487. /package/dist/services/{cmsPortal.service.js → cmsPortal.js} +0 -0
  488. /package/dist/services/{file.service.d.ts → file.d.ts} +0 -0
  489. /package/dist/services/{file.service.js → file.js} +0 -0
  490. /package/dist/services/{game.service.d.ts → game.d.ts} +0 -0
  491. /package/dist/services/{game.service.js → game.js} +0 -0
  492. /package/dist/services/{portal.service.d.ts → portal.d.ts} +0 -0
  493. /package/dist/services/{portal.service.js → portal.js} +0 -0
  494. /package/dist/services/{report.service.d.ts → report.d.ts} +0 -0
  495. /package/dist/services/{report.service.js → report.js} +0 -0
  496. /package/dist/services/{trigger.service.d.ts → trigger.d.ts} +0 -0
  497. /package/dist/services/{trigger.service.js → trigger.js} +0 -0
  498. /package/dist/services/{wallet.service.d.ts → wallet.d.ts} +0 -0
  499. /package/dist/services/{wallet.service.js → wallet.js} +0 -0
@@ -1,7 +1,3 @@
1
- export interface CashbackProps {
2
- id: string;
3
- /** @default '/promos' */
4
- viewAllPromosUrl?: string;
5
- className?: string;
6
- }
1
+ import { type CashbackProps } from './Cashback.client';
7
2
  export declare function Cashback(props: CashbackProps): Promise<import("react/jsx-runtime").JSX.Element>;
3
+ export type { CashbackProps };
@@ -1,12 +1,17 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { notFound } from 'next/navigation';
3
- import { prefetchCashbackQuery } from '../../server/utils/index.js';
4
- import { getCashbackQueryKey, getQueryClient } from '../../utils/index.js';
3
+ import { prefetchCashbackQuery } from '../../server/utils/prefetchCashbackQuery.js';
4
+ import { getCashback } from '../../services/wallet.js';
5
5
  import { Cashback__client } from './Cashback.client.js';
6
6
  export async function Cashback(props) {
7
- await prefetchCashbackQuery(props.id);
8
- const cashback = getQueryClient().getQueryData(getCashbackQueryKey(props.id));
9
- if (!cashback)
7
+ const [result] = await Promise.allSettled([
8
+ getCashback(props.id),
9
+ prefetchCashbackQuery(props.id),
10
+ ]);
11
+ if (result.status === 'fulfilled' && result.value) {
12
+ return _jsx(Cashback__client, { ...props });
13
+ }
14
+ else {
10
15
  return notFound();
11
- return _jsx(Cashback__client, { ...props });
16
+ }
12
17
  }
@@ -0,0 +1,2 @@
1
+ import type { CashbackBonusProps } from './CashbackBonus';
2
+ export declare function CashbackBonus__client(props: CashbackBonusProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import Image from 'next/image';
4
+ import Link from 'next/link';
5
+ import { ChevronLeftIcon, ChevronRightIcon, StopWatchIcon } from '../../icons/index.js';
6
+ import { Badge, Collapsible, Progress, Prose } from '../../ui/index.js';
7
+ export function CashbackBonus__client(props) {
8
+ return (_jsxs("div", { className: props.className, children: [_jsxs(Link, { href: props.viewAllUrl ?? '/rewards', className: "text-button-tertiary-fg flex items-center gap-lg text-lg font-semibold", children: [_jsx(ChevronLeftIcon, { className: "size-6" }), "Back to Rewards"] }), _jsx(Image, { src: "https://s3.ap-east-1.amazonaws.com/opexa-assets.opexasystem.com/assets/BSxIXEsa59_zzMAR27-ALLDAYREBATE06-STATIC-WEB-HB-1920x1080.png", alt: "", width: 1024, height: 600, className: "mt-3xl h-auto w-full rounded-xl" }), _jsxs(Badge.Root, { size: "lg", round: false, colorScheme: "brand", className: "mt-xl lg:mt-6", children: [_jsx(Badge.Icon, { children: _jsx(StopWatchIcon, {}) }), _jsx(Badge.Label, { children: "9d:10h:11m" })] }), _jsx("h1", { className: "text-text-primary-900 mt-xl text-2xl font-semibold lg:mt-6 lg:text-3xl", children: "50 PHP First Deposit Bonus" }), _jsx("p", { className: "text-text-primary-brand mt-xl text-base lg:mt-6 lg:text-lg", children: "Complete the wagering before time runs out to convert your bonus balance into real money!" }), _jsxs("div", { className: "border-border-primary bg-bg-tertiary text-text-secondary-700 mt-xl flex items-center justify-between rounded-md border px-3.5 py-xl lg:mt-6", children: [_jsx("p", { children: "Your bonus" }), _jsxs("p", { children: [_jsx("span", { className: "text-text-primary-900", children: "20.00" }), " / 50.00 PHP"] })] }), _jsxs("div", { className: "border-border-primary bg-bg-tertiary text-text-secondary-700 mt-xl flex items-center justify-between rounded-md border px-3.5 py-xl lg:mt-6", children: [_jsx("p", { children: "Required Turnover" }), _jsx("p", { children: "5x" })] }), _jsxs("div", { className: "border-border-primary bg-bg-tertiary text-text-secondary-700 mt-xl rounded-md border px-3.5 py-xl lg:mt-6", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("p", { children: "Wagering" }), _jsx("p", { children: "400/1000" })] }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) })] }), _jsxs(Collapsible.Root, { className: "mt-xl lg:mt-6", children: [_jsxs(Collapsible.Trigger, { className: "text-button-tertiary-fg flex w-fit items-center justify-center gap-sm text-sm font-semibold lg:mx-auto", children: ["Game Provider Contribution", _jsx(Collapsible.Indicator, { asChild: true, children: _jsx(ChevronRightIcon, { className: "size-5" }) })] }), _jsxs(Collapsible.Content, { className: "border-border-primary bg-bg-tertiary text-text-secondary-700 mt-xl space-y-1.5 rounded-md border px-3.5 py-xl lg:mt-6", children: [_jsxs("div", { className: "flex items-center justify-between gap-md", children: [_jsx("p", { className: "w-[11.25rem] shrink-0", children: "Playson" }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2 grow", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx("p", { children: "25%" })] }), _jsxs("div", { className: "flex items-center justify-between gap-md", children: [_jsx("p", { className: "w-[11.25rem] shrink-0", children: "Betsoft Gaming" }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2 grow", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx("p", { children: "13%" })] }), _jsxs("div", { className: "flex items-center justify-between gap-md", children: [_jsx("p", { className: "w-[11.25rem] shrink-0", children: "Microgaming" }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2 grow", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx("p", { children: "50%" })] }), _jsxs("div", { className: "flex items-center justify-between gap-md", children: [_jsx("p", { className: "w-[11.25rem] shrink-0", children: "Realtime Gaming" }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2 grow", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx("p", { children: "10%" })] })] })] }), _jsxs(Prose, { className: "mt-xl lg:mt-6", children: [_jsx("h3", { children: "How to get bonus" }), _jsxs("ol", { children: [_jsx("li", { children: "All OFWin members are eligible for this program." }), _jsx("li", { children: "50 PHP of game credit will be automatically credited to the new member account upon completion of first deposit Auctor vel in vitae placerat." }), _jsx("li", { children: "Member must reach a 5x turnover requirement before a withdrawal can be made. Attempting to make a withdrawal before this turnover requirement is completed could cause your bonus to be voided." }), _jsx("li", { children: "Players will have 10 days from the date the bonus is awarded to complete the rollover requirement." }), _jsx("li", { children: "Bets used to meet other bonus rollover requirements will not count toward this promotion." })] }), _jsx("h3", { children: "Terms and Conditions" }), _jsxs("ul", { children: [_jsx("li", { children: "Only one account per player is allowed. No same IP address/bank account name allowed. Players who have multiple or fraudulent accounts will not be qualified for the promotion." }), _jsx("li", { children: "Players that are found to have any duplicate accounts or those who participate in fraudulent activities may have their funds forfeited and their accounts closed." }), _jsx("li", { children: "OFWin reserves the right to amend or cancel this Referral Program at any time. OFWin General Terms and Conditions apply." })] })] })] }));
9
+ }
@@ -0,0 +1,10 @@
1
+ export interface CashbackBonusProps {
2
+ id: string;
3
+ className?: string;
4
+ /**
5
+ * @description URL for the bonuses details page
6
+ * @default "/rewards"
7
+ */
8
+ viewAllUrl?: string;
9
+ }
10
+ export declare function CashbackBonus(props: CashbackBonusProps): Promise<import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { CashbackBonus__client } from './CashbackBonus.client.js';
3
+ export async function CashbackBonus(props) {
4
+ return _jsx(CashbackBonus__client, { ...props });
5
+ }
@@ -0,0 +1 @@
1
+ export * from './CashbackBonus';
@@ -0,0 +1 @@
1
+ export * from './CashbackBonus.js';
@@ -1,8 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { twMerge } from 'tailwind-merge';
3
- import { useControllableState, useLocaleInfo } from '../../client/hooks/index.js';
4
- import { Button } from '../../ui/index.js';
5
- import { dataAttr, formatNumber } from '../../utils/index.js';
3
+ import { useControllableState } from '../../client/hooks/useControllableState.js';
4
+ import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
5
+ import { Button } from '../../ui/Button/index.js';
6
+ import { dataAttr } from '../../utils/dataAttr.js';
7
+ import { formatNumber } from '../../utils/formatNumber.js';
6
8
  export function AmountChoices(props) {
7
9
  const min = props.min ?? 0;
8
10
  const max = props.max ?? 9999999;
@@ -1,10 +1,12 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { createListCollection } from '@ark-ui/react';
3
3
  import Image from 'next/image';
4
- import { useAvailablePromosQuery, useControllableState, } from '../../../client/hooks/index.js';
5
- import { CheckIcon, ChevronDownIcon } from '../../../icons/index.js';
4
+ import { useAvailablePromosQuery } from '../../../client/hooks/useAvailablePromosQuery.js';
5
+ import { useControllableState } from '../../../client/hooks/useControllableState.js';
6
+ import { CheckIcon } from '../../../icons/CheckIcon.js';
7
+ import { ChevronDownIcon } from '../../../icons/ChevronDownIcon.js';
6
8
  import gift from '../../../images/gift.png';
7
- import { Select } from '../../../ui/index.js';
9
+ import { Select } from '../../../ui/Select/index.js';
8
10
  export function AvailablePromos(props) {
9
11
  const query = useAvailablePromosQuery();
10
12
  const promos = query.data ?? [];
@@ -1,8 +1,11 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from 'react';
3
- import { useIsMayaSessionValidQuery, useOnMMA, usePaymentSettingsQuery, } from '../../../client/hooks/index.js';
4
- import { AlertCircleIcon, SpinnerIcon } from '../../../icons/index.js';
5
- import { onMobileDevice } from '../../../utils/index.js';
3
+ import { useIsMayaSessionValidQuery } from '../../../client/hooks/useIsMayaSessionValidQuery.js';
4
+ import { useOnMMA } from '../../../client/hooks/useOnMMA.js';
5
+ import { usePaymentSettingsQuery } from '../../../client/hooks/usePaymentSettingsQuery.js';
6
+ import { AlertCircleIcon } from '../../../icons/AlertCircleIcon.js';
7
+ import { SpinnerIcon } from '../../../icons/SpinnerIcon.js';
8
+ import { onMobileDevice } from '../../../utils/onMobileDevice.js';
6
9
  import { PaymentMethods } from '../PaymentMethods.js';
7
10
  import { GCashDeposit } from './GCashDeposit/GCashDeposit.js';
8
11
  import { MayaAppDeposit } from './MayaAppDeposit/MayaAppDeposit.js';
@@ -6,10 +6,21 @@ import { Controller, useForm } from 'react-hook-form';
6
6
  import invariant from 'tiny-invariant';
7
7
  import { z } from 'zod';
8
8
  import { useShallow } from 'zustand/shallow';
9
- import { useAvailablePromosQuery, useCreateGCashDepositMutation, useDepositsCountQuery, useGlobalStore, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
10
- import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, SpinnerIcon, XIcon, } from '../../../../icons/index.js';
11
- import { AlertDialog, Button, Field, NumberInput } from '../../../../ui/index.js';
12
- import { parseDecimal } from '../../../../utils/index.js';
9
+ import { useAvailablePromosQuery } from '../../../../client/hooks/useAvailablePromosQuery.js';
10
+ import { useCreateGCashDepositMutation } from '../../../../client/hooks/useCreateGCashDepositMutation.js';
11
+ import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
12
+ import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
13
+ import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
14
+ import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.js';
15
+ import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon.js';
16
+ import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon.js';
17
+ import { SpinnerIcon } from '../../../../icons/SpinnerIcon.js';
18
+ import { XIcon } from '../../../../icons/XIcon.js';
19
+ import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
20
+ import { Button } from '../../../../ui/Button/index.js';
21
+ import { Field } from '../../../../ui/Field/index.js';
22
+ import { NumberInput } from '../../../../ui/NumberInput/index.js';
23
+ import { parseDecimal } from '../../../../utils/parseDecimal.js';
13
24
  import { AmountChoices } from '../../AmountChoices.js';
14
25
  import { AvailablePromos } from '../AvailablePromos.js';
15
26
  export function GCashDeposit() {
@@ -5,10 +5,21 @@ import { useEffect, useState } from 'react';
5
5
  import { Controller, useForm } from 'react-hook-form';
6
6
  import { z } from 'zod';
7
7
  import { useShallow } from 'zustand/shallow';
8
- import { useAvailablePromosQuery, useCreateMayaAppDepositMutation, useDepositsCountQuery, useGlobalStore, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
9
- import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, SpinnerIcon, XIcon, } from '../../../../icons/index.js';
10
- import { AlertDialog, Button, Field, NumberInput } from '../../../../ui/index.js';
11
- import { parseDecimal } from '../../../../utils/index.js';
8
+ import { useAvailablePromosQuery } from '../../../../client/hooks/useAvailablePromosQuery.js';
9
+ import { useCreateMayaAppDepositMutation } from '../../../../client/hooks/useCreateMayaAppDepositMutation.js';
10
+ import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
11
+ import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
12
+ import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
13
+ import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.js';
14
+ import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon.js';
15
+ import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon.js';
16
+ import { SpinnerIcon } from '../../../../icons/SpinnerIcon.js';
17
+ import { XIcon } from '../../../../icons/XIcon.js';
18
+ import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
19
+ import { Button } from '../../../../ui/Button/index.js';
20
+ import { Field } from '../../../../ui/Field/index.js';
21
+ import { NumberInput } from '../../../../ui/NumberInput/index.js';
22
+ import { parseDecimal } from '../../../../utils/parseDecimal.js';
12
23
  import { AmountChoices } from '../../AmountChoices.js';
13
24
  import { AvailablePromos } from '../AvailablePromos.js';
14
25
  export function MayaAppDeposit() {
@@ -6,10 +6,21 @@ import { Controller, useForm } from 'react-hook-form';
6
6
  import invariant from 'tiny-invariant';
7
7
  import { z } from 'zod';
8
8
  import { useShallow } from 'zustand/shallow';
9
- import { useAvailablePromosQuery, useCreateMayaDepositMutation, useDepositsCountQuery, useGlobalStore, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
10
- import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, SpinnerIcon, XIcon, } from '../../../../icons/index.js';
11
- import { AlertDialog, Button, Field, NumberInput } from '../../../../ui/index.js';
12
- import { parseDecimal } from '../../../../utils/index.js';
9
+ import { useAvailablePromosQuery } from '../../../../client/hooks/useAvailablePromosQuery.js';
10
+ import { useCreateMayaDepositMutation } from '../../../../client/hooks/useCreateMayaDepositMutation.js';
11
+ import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
12
+ import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
13
+ import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
14
+ import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.js';
15
+ import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon.js';
16
+ import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon.js';
17
+ import { SpinnerIcon } from '../../../../icons/SpinnerIcon.js';
18
+ import { XIcon } from '../../../../icons/XIcon.js';
19
+ import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
20
+ import { Button } from '../../../../ui/Button/index.js';
21
+ import { Field } from '../../../../ui/Field/index.js';
22
+ import { NumberInput } from '../../../../ui/NumberInput/index.js';
23
+ import { parseDecimal } from '../../../../utils/parseDecimal.js';
13
24
  import { AmountChoices } from '../../AmountChoices.js';
14
25
  import { AvailablePromos } from '../AvailablePromos.js';
15
26
  export function MayaDeposit() {
@@ -1,7 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Portal } from '@ark-ui/react';
3
- import { AlertCircleIcon, SpinnerIcon, XIcon } from '../../../../icons/index.js';
4
- import { AlertDialog, Button } from '../../../../ui/index.js';
3
+ import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.js';
4
+ import { SpinnerIcon } from '../../../../icons/SpinnerIcon.js';
5
+ import { XIcon } from '../../../../icons/XIcon.js';
6
+ import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
7
+ import { Button } from '../../../../ui/Button/index.js';
5
8
  import { useOnlineBankDepositContext } from './OnlineBankDepositContext.js';
6
9
  export function OnlineBankDepositAlert() {
7
10
  const context = useOnlineBankDepositContext();
@@ -1,5 +1,5 @@
1
1
  export declare const OnlineBankDepositContext: import("react").Context<{
2
- view: "form" | "vca";
2
+ view: "vca" | "form";
3
3
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
4
4
  verify: () => void;
5
5
  reset: () => void;
@@ -9,7 +9,7 @@ export declare const OnlineBankDepositContext: import("react").Context<{
9
9
  promo?: string | null;
10
10
  }) => void;
11
11
  }>, useOnlineBankDepositContext: () => {
12
- view: "form" | "vca";
12
+ view: "vca" | "form";
13
13
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
14
14
  verify: () => void;
15
15
  reset: () => void;
@@ -1,2 +1,2 @@
1
- import { createContext } from '../../../../client/utils/index.js';
1
+ import { createContext } from '../../../../client/utils/createContext.js';
2
2
  export const [OnlineBankDepositContext, useOnlineBankDepositContext] = createContext();
@@ -1,9 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Portal } from '@ark-ui/react';
3
3
  import Image from 'next/image';
4
- import { BankIcon, XIcon } from '../../../../icons/index.js';
4
+ import { BankIcon } from '../../../../icons/BankIcon.js';
5
+ import { XIcon } from '../../../../icons/XIcon.js';
5
6
  import bankIcon from '../../../../images/bank-icon.png';
6
- import { Button, Clipboard, Dialog } from '../../../../ui/index.js';
7
+ import { Button } from '../../../../ui/Button/index.js';
8
+ import { Clipboard } from '../../../../ui/Clipboard/index.js';
9
+ import { Dialog } from '../../../../ui/Dialog/index.js';
7
10
  import { useOnlineBankDepositContext } from './OnlineBankDepositContext.js';
8
11
  export function OnlineBankDepositDetails() {
9
12
  const context = useOnlineBankDepositContext();
@@ -5,10 +5,16 @@ import { useEffect } from 'react';
5
5
  import { Controller, useForm } from 'react-hook-form';
6
6
  import { z } from 'zod';
7
7
  import { useShallow } from 'zustand/shallow';
8
- import { useAvailablePromosQuery, useDepositsCountQuery, useGlobalStore, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
9
- import { ChevronDownIcon, ChevronUpIcon } from '../../../../icons/index.js';
10
- import { Button, Field, NumberInput } from '../../../../ui/index.js';
11
- import { parseDecimal } from '../../../../utils/index.js';
8
+ import { useAvailablePromosQuery } from '../../../../client/hooks/useAvailablePromosQuery.js';
9
+ import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
10
+ import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
11
+ import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
12
+ import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon.js';
13
+ import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon.js';
14
+ import { Button } from '../../../../ui/Button/index.js';
15
+ import { Field } from '../../../../ui/Field/index.js';
16
+ import { NumberInput } from '../../../../ui/NumberInput/index.js';
17
+ import { parseDecimal } from '../../../../utils/parseDecimal.js';
12
18
  import { AmountChoices } from '../../AmountChoices.js';
13
19
  import { AvailablePromos } from '../AvailablePromos.js';
14
20
  import { useOnlineBankDepositContext } from './OnlineBankDepositContext.js';
@@ -1,7 +1,7 @@
1
1
  import type { Deposit } from '../../../../types';
2
2
  export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
3
3
  export declare function useOnlineBankDeposit(): {
4
- view: "form" | "vca";
4
+ view: "vca" | "form";
5
5
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
6
6
  verify: () => void;
7
7
  reset: () => void;
@@ -1,6 +1,7 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import invariant from 'tiny-invariant';
3
- import { useCreateOnlineBankDepositMutation, useDepositQuery, } from '../../../../client/hooks/index.js';
3
+ import { useCreateOnlineBankDepositMutation } from '../../../../client/hooks/useCreateOnlineBankDepositMutation.js';
4
+ import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
4
5
  export function useOnlineBankDeposit() {
5
6
  const [deposit, setDeposit] = useState(null);
6
7
  const [status, setStatus] = useState('waiting');
@@ -1,7 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Portal } from '@ark-ui/react';
3
- import { AlertCircleIcon, SpinnerIcon, XIcon } from '../../../../icons/index.js';
4
- import { AlertDialog, Button } from '../../../../ui/index.js';
3
+ import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.js';
4
+ import { SpinnerIcon } from '../../../../icons/SpinnerIcon.js';
5
+ import { XIcon } from '../../../../icons/XIcon.js';
6
+ import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
7
+ import { Button } from '../../../../ui/Button/index.js';
5
8
  import { useQRPHDepositContext } from './QRPHDepositContext.js';
6
9
  export function QRPHDepositAlert() {
7
10
  const context = useQRPHDepositContext();
@@ -1,5 +1,5 @@
1
1
  export declare const QRPHDepositContext: import("react").Context<{
2
- view: "form" | "qrCode";
2
+ view: "qrCode" | "form";
3
3
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
4
4
  verify: () => void;
5
5
  reset: () => void;
@@ -9,7 +9,7 @@ export declare const QRPHDepositContext: import("react").Context<{
9
9
  promo?: string | null;
10
10
  }) => void;
11
11
  }>, useQRPHDepositContext: () => {
12
- view: "form" | "qrCode";
12
+ view: "qrCode" | "form";
13
13
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
14
14
  verify: () => void;
15
15
  reset: () => void;
@@ -1,2 +1,2 @@
1
- import { createContext } from '../../../../client/utils/index.js';
1
+ import { createContext } from '../../../../client/utils/createContext.js';
2
2
  export const [QRPHDepositContext, useQRPHDepositContext] = createContext();
@@ -1,9 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Portal, QrCode } from '@ark-ui/react';
3
3
  import Image from 'next/image';
4
- import { QrCode02Icon, XIcon } from '../../../../icons/index.js';
4
+ import { QrCode02Icon } from '../../../../icons/QrCode02Icon.js';
5
+ import { XIcon } from '../../../../icons/XIcon.js';
5
6
  import qrphIcon from '../../../../images/qrph-icon.png';
6
- import { Button, Dialog } from '../../../../ui/index.js';
7
+ import { Button } from '../../../../ui/Button/index.js';
8
+ import { Dialog } from '../../../../ui/Dialog/index.js';
7
9
  import { useQRPHDepositContext } from './QRPHDepositContext.js';
8
10
  export function QRPHDepositDetails() {
9
11
  const context = useQRPHDepositContext();
@@ -4,10 +4,16 @@ import { useEffect } from 'react';
4
4
  import { Controller, useForm } from 'react-hook-form';
5
5
  import { z } from 'zod';
6
6
  import { useShallow } from 'zustand/shallow';
7
- import { useAvailablePromosQuery, useDepositsCountQuery, useGlobalStore, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
8
- import { ChevronDownIcon, ChevronUpIcon } from '../../../../icons/index.js';
9
- import { Button, Field, NumberInput } from '../../../../ui/index.js';
10
- import { parseDecimal } from '../../../../utils/index.js';
7
+ import { useAvailablePromosQuery } from '../../../../client/hooks/useAvailablePromosQuery.js';
8
+ import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
9
+ import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
10
+ import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
11
+ import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon.js';
12
+ import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon.js';
13
+ import { Button } from '../../../../ui/Button/index.js';
14
+ import { Field } from '../../../../ui/Field/index.js';
15
+ import { NumberInput } from '../../../../ui/NumberInput/index.js';
16
+ import { parseDecimal } from '../../../../utils/parseDecimal.js';
11
17
  import { AmountChoices } from '../../AmountChoices.js';
12
18
  import { AvailablePromos } from '../AvailablePromos.js';
13
19
  import { useQRPHDepositContext } from './QRPHDepositContext.js';
@@ -1,7 +1,7 @@
1
1
  import type { Deposit } from '../../../../types';
2
2
  export type UseQRPHDepositReturn = ReturnType<typeof useQRPHDeposit>;
3
3
  export declare function useQRPHDeposit(): {
4
- view: "form" | "qrCode";
4
+ view: "qrCode" | "form";
5
5
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
6
6
  verify: () => void;
7
7
  reset: () => void;
@@ -1,6 +1,7 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import invariant from 'tiny-invariant';
3
- import { useCreateQRPHDepositMutation, useDepositQuery, } from '../../../../client/hooks/index.js';
3
+ import { useCreateQRPHDepositMutation } from '../../../../client/hooks/useCreateQRPHDepositMutation.js';
4
+ import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
4
5
  export function useQRPHDeposit() {
5
6
  const [deposit, setDeposit] = useState(null);
6
7
  const [status, setStatus] = useState('waiting');
@@ -1 +1 @@
1
- export declare function DepositWithdrawal(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function DepositWithdrawal(): import("react/jsx-runtime").JSX.Element | undefined;
@@ -1,31 +1,14 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Portal } from '@ark-ui/react';
4
- import { z } from 'zod';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import dynamic from 'next/dynamic';
5
4
  import { useShallow } from 'zustand/shallow';
6
- import { useGlobalStore, useLocaleInfo, useWalletQuery, } from '../../client/hooks/index.js';
7
- import { Wallet02Icon, XIcon } from '../../icons/index.js';
8
- import { Dialog, IconButton, Tabs } from '../../ui/index.js';
9
- import { formatNumber } from '../../utils/index.js';
10
- import { Deposit } from './Deposit/Deposit.js';
11
- import { Withdrawal } from './Withdrawal/Withdrawal.js';
5
+ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
6
+ const Component = dynamic(() => import('./DepositWithdrawal.lazy.js').then((m) => m.DepositWithdrawal), {
7
+ ssr: false,
8
+ loading: () => null,
9
+ });
12
10
  export function DepositWithdrawal() {
13
- const globalStore = useGlobalStore(useShallow((ctx) => ({
14
- depositWithdrawal: ctx.depositWithdrawal,
15
- })));
16
- const localeInfo = useLocaleInfo();
17
- const walletQuery = useWalletQuery({
18
- refetchInterval: 5000,
19
- });
20
- return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: globalStore.depositWithdrawal.open, onOpenChange: (details) => {
21
- globalStore.depositWithdrawal.setOpen(details.open);
22
- if (!details.open) {
23
- globalStore.depositWithdrawal.setPromo(null);
24
- }
25
- }, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)]", children: _jsxs(Dialog.Content, { className: "lg:min-h-auto mx-auto min-h-full w-full px-4 py-3xl lg:w-[480px] lg:rounded-xl", children: [_jsxs(Dialog.Header, { className: "flex items-center gap-xl", children: [_jsx("div", { className: "border-border-primary shadow-xs text-gray-700 text-text-secondary-700 flex size-10 items-center justify-center rounded-md border", children: _jsx(Wallet02Icon, { className: "size-5" }) }), _jsx(Dialog.Title, { className: "grow text-lg font-semibold", children: "Wallet" }), _jsx(Dialog.Context, { children: (api) => (_jsx(IconButton, { size: "sm", variant: "outline", colorScheme: "gray", onClick: () => api.setOpen(false), children: _jsx(XIcon, {}) })) })] }), _jsxs(Dialog.Body, { className: "mt-3xl", children: [_jsx("p", { className: "text-text-secondary-700 text-center text-sm", children: "Deposit Balance" }), _jsx("p", { className: "text-center text-3xl font-bold leading-tight tracking-tight", children: formatNumber(walletQuery.data?.balance, {
26
- currency: localeInfo.currency.code,
27
- minDecimalPlaces: 2,
28
- }) }), _jsxs(Tabs.Root, { value: globalStore.depositWithdrawal.tab, onValueChange: (details) => {
29
- globalStore.depositWithdrawal.setTab(z.enum(['DEPOSIT', 'WITHDRAWAL']).parse(details.value));
30
- }, lazyMount: true, unmountOnExit: true, className: "mt-3xl space-y-4xl", children: [_jsxs(Tabs.List, { className: "w-full", children: [_jsx(Tabs.Trigger, { value: "DEPOSIT", className: "grow", children: "Deposit" }), _jsx(Tabs.Trigger, { value: "WITHDRAWAL", className: "grow", children: "Withdrawal" }), _jsx(Tabs.Indicator, {})] }), _jsx(Tabs.Content, { value: "DEPOSIT", className: "space-y-3xl", children: _jsx(Deposit, {}) }), _jsx(Tabs.Content, { value: "WITHDRAWAL", className: "space-y-3xl", children: _jsx(Withdrawal, {}) })] })] })] }) })] }) }));
11
+ const touched = useGlobalStore(useShallow((ctx) => ctx.depositWithdrawal['~touched']));
12
+ if (touched)
13
+ return _jsx(Component, {});
31
14
  }
@@ -0,0 +1 @@
1
+ export declare function DepositWithdrawal(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,36 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Portal } from '@ark-ui/react';
4
+ import { z } from 'zod';
5
+ import { useShallow } from 'zustand/shallow';
6
+ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
7
+ import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
8
+ import { useWalletQuery } from '../../client/hooks/useWalletQuery.js';
9
+ import { Wallet02Icon } from '../../icons/Wallet02Icon.js';
10
+ import { XIcon } from '../../icons/XIcon.js';
11
+ import { Dialog } from '../../ui/Dialog/index.js';
12
+ import { IconButton } from '../../ui/IconButton/index.js';
13
+ import { Tabs } from '../../ui/Tabs/index.js';
14
+ import { formatNumber } from '../../utils/formatNumber.js';
15
+ import { Deposit } from './Deposit/Deposit.js';
16
+ import { Withdrawal } from './Withdrawal/Withdrawal.js';
17
+ export function DepositWithdrawal() {
18
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
19
+ depositWithdrawal: ctx.depositWithdrawal,
20
+ })));
21
+ const localeInfo = useLocaleInfo();
22
+ const walletQuery = useWalletQuery({
23
+ refetchInterval: 5000,
24
+ });
25
+ return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: globalStore.depositWithdrawal.open, onOpenChange: (details) => {
26
+ globalStore.depositWithdrawal.setOpen(details.open);
27
+ if (!details.open) {
28
+ globalStore.depositWithdrawal.setPromo(null);
29
+ }
30
+ }, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)]", children: _jsxs(Dialog.Content, { className: "lg:min-h-auto mx-auto min-h-full w-full px-4 py-3xl lg:w-[480px] lg:rounded-xl", children: [_jsxs(Dialog.Header, { className: "flex items-center gap-xl", children: [_jsx("div", { className: "border-border-primary shadow-xs text-gray-700 text-text-secondary-700 flex size-10 items-center justify-center rounded-md border", children: _jsx(Wallet02Icon, { className: "size-5" }) }), _jsx(Dialog.Title, { className: "grow text-lg font-semibold", children: "Wallet" }), _jsx(Dialog.Context, { children: (api) => (_jsx(IconButton, { size: "sm", variant: "outline", colorScheme: "gray", onClick: () => api.setOpen(false), children: _jsx(XIcon, {}) })) })] }), _jsxs(Dialog.Body, { className: "mt-3xl", children: [_jsx("p", { className: "text-text-secondary-700 text-center text-sm", children: "Deposit Balance" }), _jsx("p", { className: "text-center text-3xl font-bold leading-tight tracking-tight", children: formatNumber(walletQuery.data?.balance, {
31
+ currency: localeInfo.currency.code,
32
+ minDecimalPlaces: 2,
33
+ }) }), _jsxs(Tabs.Root, { value: globalStore.depositWithdrawal.tab, onValueChange: (details) => {
34
+ globalStore.depositWithdrawal.setTab(z.enum(['DEPOSIT', 'WITHDRAWAL']).parse(details.value));
35
+ }, lazyMount: true, unmountOnExit: true, className: "mt-3xl space-y-4xl", children: [_jsxs(Tabs.List, { className: "w-full", children: [_jsx(Tabs.Trigger, { value: "DEPOSIT", className: "grow", children: "Deposit" }), _jsx(Tabs.Trigger, { value: "WITHDRAWAL", className: "grow", children: "Withdrawal" }), _jsx(Tabs.Indicator, {})] }), _jsx(Tabs.Content, { value: "DEPOSIT", className: "space-y-3xl", children: _jsx(Deposit, {}) }), _jsx(Tabs.Content, { value: "WITHDRAWAL", className: "space-y-3xl", children: _jsx(Withdrawal, {}) })] })] })] }) })] }) }));
36
+ }
@@ -2,8 +2,11 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { ark } from '@ark-ui/react';
4
4
  import { useShallow } from 'zustand/shallow';
5
- import { useGlobalStore, useLocaleInfo, useSessionQuery, useWalletQuery, } from '../../client/hooks/index.js';
6
- import { formatNumber } from '../../utils/index.js';
5
+ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
6
+ import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
7
+ import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
8
+ import { useWalletQuery } from '../../client/hooks/useWalletQuery.js';
9
+ import { formatNumber } from '../../utils/formatNumber.js';
7
10
  export function DepositWithdrawalTrigger({ asChild, children, ...props }) {
8
11
  const sessionQuery = useSessionQuery();
9
12
  const globalStore = useGlobalStore(useShallow((ctx) => ({
@@ -1,14 +1,15 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Image from 'next/image';
3
3
  import { twMerge } from 'tailwind-merge';
4
- import { useControllableState } from '../../client/hooks/index.js';
5
- import { CheckIcon } from '../../icons/index.js';
4
+ import { useControllableState } from '../../client/hooks/useControllableState.js';
5
+ import { CheckIcon } from '../../icons/CheckIcon.js';
6
6
  import qrph from '../../images/QRPH.png';
7
7
  import gcash from '../../images/gcash.png';
8
8
  import instapay from '../../images/instapay.png';
9
9
  import maya from '../../images/maya.png';
10
10
  import onlineBank from '../../images/online-bank.png';
11
- import { Checkbox, Field } from '../../ui/index.js';
11
+ import { Checkbox } from '../../ui/Checkbox/index.js';
12
+ import { Field } from '../../ui/Field/index.js';
12
13
  import { PaymentMethodDefinition } from './utils.js';
13
14
  const OPTIONS = [
14
15
  {
@@ -4,10 +4,23 @@ import { zodResolver } from '@hookform/resolvers/zod';
4
4
  import { useEffect, useState } from 'react';
5
5
  import { Controller, useForm } from 'react-hook-form';
6
6
  import { z } from 'zod';
7
- import { useCreateGCashWithdrawalMutation, useLocaleInfo, useMobileNumberParser, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
8
- import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, XIcon, } from '../../../../icons/index.js';
9
- import { AlertDialog, Button, Field, NumberInput, PasswordInput, } from '../../../../ui/index.js';
10
- import { parseDecimal } from '../../../../utils/index.js';
7
+ import { useCreateGCashWithdrawalMutation } from '../../../../client/hooks/useCreateGCashWithdrawalMutation.js';
8
+ import { useLocaleInfo } from '../../../../client/hooks/useLocaleInfo.js';
9
+ import { useMobileNumberParser } from '../../../../client/hooks/useMobileNumberParser.js';
10
+ import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
11
+ import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.js';
12
+ import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon.js';
13
+ import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon.js';
14
+ import { EyeIcon } from '../../../../icons/EyeIcon.js';
15
+ import { EyeOffIcon } from '../../../../icons/EyeOffIcon.js';
16
+ import { SpinnerIcon } from '../../../../icons/SpinnerIcon.js';
17
+ import { XIcon } from '../../../../icons/XIcon.js';
18
+ import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
19
+ import { Button } from '../../../../ui/Button/index.js';
20
+ import { Field } from '../../../../ui/Field/index.js';
21
+ import { NumberInput } from '../../../../ui/NumberInput/index.js';
22
+ import { PasswordInput } from '../../../../ui/PasswordInput/index.js';
23
+ import { parseDecimal } from '../../../../utils/parseDecimal.js';
11
24
  import { AmountChoices } from '../../AmountChoices.js';
12
25
  export function GCashWithdrawal() {
13
26
  const [status, setStatus] = useState('waiting');