@opexa/portal-components 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. package/dist/client/hooks/index.d.ts +7 -1
  2. package/dist/client/hooks/useAuthenticateMutation.js +1 -1
  3. package/dist/client/hooks/useAuthenticateMutation.mjs +5 -4
  4. package/dist/client/hooks/useBonusesQuery.d.ts +3 -0
  5. package/dist/client/hooks/useBonusesQuery.js +1 -0
  6. package/dist/client/hooks/useBonusesQuery.mjs +38 -0
  7. package/dist/client/hooks/useCreateGameSessionMutation.d.ts +2 -2
  8. package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
  9. package/dist/client/hooks/useCreateGameSessionMutation.mjs +22 -22
  10. package/dist/client/hooks/useEndGameSessionMutation.d.ts +2 -2
  11. package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
  12. package/dist/client/hooks/useEndGameSessionMutation.mjs +18 -18
  13. package/dist/client/hooks/useFavoriteGamesQuery.d.ts +3 -0
  14. package/dist/client/hooks/useFavoriteGamesQuery.js +1 -0
  15. package/dist/client/hooks/useFavoriteGamesQuery.mjs +38 -0
  16. package/dist/client/hooks/useGlobalStore.d.ts +34 -14
  17. package/dist/client/hooks/useGlobalStore.js +1 -1
  18. package/dist/client/hooks/useGlobalStore.mjs +113 -34
  19. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +3 -0
  20. package/dist/client/hooks/useJackpotPayoutsQuery.js +1 -0
  21. package/dist/client/hooks/useJackpotPayoutsQuery.mjs +31 -0
  22. package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +2 -0
  23. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -0
  24. package/dist/client/hooks/useMarkGameAsFavoriteMutation.mjs +37 -0
  25. package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +2 -0
  26. package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
  27. package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
  28. package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
  29. package/dist/client/hooks/useMessagesQuery.js +1 -0
  30. package/dist/client/hooks/useMessagesQuery.mjs +47 -0
  31. package/dist/client/hooks/useSignInMutation.js +1 -1
  32. package/dist/client/hooks/useSignInMutation.mjs +3 -2
  33. package/dist/client/hooks/useSignOutMutation.js +1 -1
  34. package/dist/client/hooks/useSignOutMutation.mjs +11 -10
  35. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +2 -0
  36. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -0
  37. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.mjs +37 -0
  38. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
  39. package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
  40. package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
  41. package/dist/client/services/getSession.d.ts +1 -1
  42. package/dist/client/services/getSession.js +1 -1
  43. package/dist/client/services/getSession.mjs +4 -3
  44. package/dist/client-hooks.js +1 -1
  45. package/dist/client-hooks.mjs +92 -80
  46. package/dist/components/Account/Account.d.ts +17 -8
  47. package/dist/components/Account/Account.js +1 -1
  48. package/dist/components/Account/Account.mjs +253 -130
  49. package/dist/components/Account/account.recipe.d.ts +61 -0
  50. package/dist/components/Account/account.recipe.js +1 -0
  51. package/dist/components/Account/account.recipe.mjs +35 -0
  52. package/dist/components/Banner/Banner.js +1 -1
  53. package/dist/components/Banner/Banner.mjs +6 -6
  54. package/dist/components/BetRecords/BetRecords.js +1 -1
  55. package/dist/components/BetRecords/BetRecords.mjs +375 -319
  56. package/dist/components/Bonus/Bonus.client.d.ts +2 -0
  57. package/dist/components/Bonus/Bonus.client.js +1 -0
  58. package/dist/components/Bonus/Bonus.client.mjs +143 -0
  59. package/dist/components/Bonus/Bonus.d.ts +10 -0
  60. package/dist/components/Bonus/Bonus.js +1 -0
  61. package/dist/components/Bonus/Bonus.mjs +8 -0
  62. package/dist/components/Bonus/index.d.ts +1 -0
  63. package/dist/components/Bonuses/Bonuses.d.ts +15 -0
  64. package/dist/components/Bonuses/Bonuses.js +1 -0
  65. package/dist/components/Bonuses/Bonuses.mjs +126 -0
  66. package/dist/components/Bonuses/index.d.ts +1 -0
  67. package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
  68. package/dist/components/DepositWithdrawal/AmountChoices.mjs +11 -6
  69. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
  70. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +32 -27
  71. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
  72. package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +3 -2
  73. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  74. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +18 -13
  75. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  76. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +7 -2
  77. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  78. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +18 -13
  79. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  80. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +7 -2
  81. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
  82. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +10 -6
  83. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
  84. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -8
  85. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  86. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +43 -38
  87. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
  88. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +10 -6
  89. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
  90. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +12 -8
  91. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
  92. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -8
  93. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
  94. package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +50 -48
  95. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  96. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +28 -23
  97. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
  98. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -74
  99. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
  100. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +120 -108
  101. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
  102. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +77 -65
  103. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
  104. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -84
  105. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
  106. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +3 -2
  107. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  108. package/dist/components/Disclaimer/Disclaimer.mjs +16 -12
  109. package/dist/components/Empty.js +1 -0
  110. package/dist/components/{Empty/CloudIcon.mjs → Empty.mjs} +26 -11
  111. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -0
  112. package/dist/components/FavoriteGames/FavoriteGames.client.js +1 -0
  113. package/dist/components/FavoriteGames/FavoriteGames.client.mjs +132 -0
  114. package/dist/components/FavoriteGames/FavoriteGames.d.ts +6 -0
  115. package/dist/components/FavoriteGames/FavoriteGames.js +1 -0
  116. package/dist/components/FavoriteGames/FavoriteGames.mjs +17 -0
  117. package/dist/components/FavoriteGames/index.d.ts +1 -0
  118. package/dist/components/GameLaunch/GameLaunch.d.ts +1 -5
  119. package/dist/components/GameLaunch/GameLaunch.js +1 -1
  120. package/dist/components/GameLaunch/GameLaunch.mjs +151 -124
  121. package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +2 -2
  122. package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
  123. package/dist/components/GameLaunch/GameLaunchTrigger.mjs +7 -6
  124. package/dist/components/GameProviders/GameProviders.d.ts +7 -10
  125. package/dist/components/GameProviders/GameProviders.js +1 -0
  126. package/dist/components/GameProviders/GameProviders.mjs +122 -0
  127. package/dist/components/GameProviders/index.d.ts +1 -0
  128. package/dist/components/Games/Games.client.js +1 -1
  129. package/dist/components/Games/Games.client.mjs +96 -68
  130. package/dist/components/Games/Games.d.ts +7 -2
  131. package/dist/components/Games/Games.js +1 -1
  132. package/dist/components/Games/Games.mjs +4 -2
  133. package/dist/components/GamesSearch/GamesSearch.d.ts +6 -0
  134. package/dist/components/GamesSearch/GamesSearch.js +1 -0
  135. package/dist/components/GamesSearch/GamesSearch.mjs +199 -0
  136. package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +4 -0
  137. package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -0
  138. package/dist/components/GamesSearch/GamesSearchTrigger.mjs +50 -0
  139. package/dist/components/GamesSearch/index.d.ts +2 -0
  140. package/dist/components/InfiniteScroll.d.ts +10 -0
  141. package/dist/components/InfiniteScroll.js +1 -0
  142. package/dist/components/InfiniteScroll.mjs +30 -0
  143. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
  144. package/dist/components/JackpotCounter/JackpotCounter.client.js +1 -0
  145. package/dist/components/JackpotCounter/JackpotCounter.client.mjs +139 -0
  146. package/dist/components/JackpotCounter/JackpotCounter.d.ts +5 -3
  147. package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
  148. package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -110
  149. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +4 -1
  150. package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
  151. package/dist/components/JackpotCounter/JackpotCounterItem.mjs +370 -125
  152. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
  153. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +13 -8
  154. package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
  155. package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
  156. package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
  157. package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
  158. package/dist/components/Jackpots/JackpotItem.js +1 -0
  159. package/dist/components/Jackpots/JackpotItem.mjs +408 -0
  160. package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
  161. package/dist/components/Jackpots/JackpotItemMobile.js +1 -0
  162. package/dist/components/Jackpots/JackpotItemMobile.mjs +427 -0
  163. package/dist/components/Jackpots/JackpotRules.d.ts +6 -0
  164. package/dist/components/Jackpots/JackpotRules.js +1 -0
  165. package/dist/components/Jackpots/JackpotRules.mjs +78 -0
  166. package/dist/components/Jackpots/Jackpots.d.ts +8 -0
  167. package/dist/components/Jackpots/Jackpots.js +1 -0
  168. package/dist/components/Jackpots/Jackpots.mjs +61 -0
  169. package/dist/components/Jackpots/index.d.ts +1 -0
  170. package/dist/components/KYC/KYC.d.ts +5 -0
  171. package/dist/components/KYC/KYC.js +1 -0
  172. package/dist/components/KYC/KYC.mjs +84 -0
  173. package/dist/components/KYC/KYCContext.d.ts +3 -0
  174. package/dist/components/KYC/KYCContext.js +1 -0
  175. package/dist/components/KYC/KYCContext.mjs +11 -0
  176. package/dist/components/KYC/KYCTrigger.d.ts +5 -0
  177. package/dist/components/KYC/KYCTrigger.js +1 -0
  178. package/dist/components/KYC/KYCTrigger.mjs +42 -0
  179. package/dist/components/KYC/Step1.d.ts +1 -0
  180. package/dist/components/KYC/Step1.js +1 -0
  181. package/dist/components/KYC/Step1.mjs +67 -0
  182. package/dist/components/KYC/Step2.d.ts +1 -0
  183. package/dist/components/KYC/Step2.js +1 -0
  184. package/dist/components/KYC/Step2.mjs +126 -0
  185. package/dist/components/KYC/Step3.d.ts +1 -0
  186. package/dist/components/KYC/Step3.js +1 -0
  187. package/dist/components/KYC/Step3.mjs +98 -0
  188. package/dist/components/KYC/StepIndicator.d.ts +1 -0
  189. package/dist/components/KYC/StepIndicator.js +1 -0
  190. package/dist/components/KYC/StepIndicator.mjs +42 -0
  191. package/dist/components/KYC/UploadDocument.d.ts +1 -0
  192. package/dist/components/KYC/UploadDocument.js +1 -0
  193. package/dist/components/KYC/UploadDocument.mjs +69 -0
  194. package/dist/components/KYC/UploadSelfie.d.ts +1 -0
  195. package/dist/components/KYC/UploadSelfie.js +1 -0
  196. package/dist/components/KYC/UploadSelfie.mjs +65 -0
  197. package/dist/components/KYC/index.d.ts +2 -0
  198. package/dist/components/KYC/useKYC.d.ts +14 -0
  199. package/dist/components/KYC/useKYC.js +1 -0
  200. package/dist/components/KYC/useKYC.mjs +43 -0
  201. package/dist/components/KYC/utils.d.ts +1 -0
  202. package/dist/components/Marquee/Marquee.js +1 -1
  203. package/dist/components/Marquee/Marquee.mjs +7 -7
  204. package/dist/components/Messages/MessageItem.d.ts +4 -0
  205. package/dist/components/Messages/MessageItem.js +1 -0
  206. package/dist/components/Messages/MessageItem.mjs +75 -0
  207. package/dist/components/Messages/MessagePopup.d.ts +1 -0
  208. package/dist/components/Messages/MessagePopup.js +1 -0
  209. package/dist/components/Messages/MessagePopup.mjs +95 -0
  210. package/dist/components/Messages/Messages.d.ts +1 -0
  211. package/dist/components/Messages/Messages.js +1 -0
  212. package/dist/components/Messages/Messages.mjs +166 -0
  213. package/dist/components/Messages/index.d.ts +1 -0
  214. package/dist/components/Messages/utils.d.ts +3 -0
  215. package/dist/components/Messages/utils.js +1 -0
  216. package/dist/components/Messages/utils.mjs +16 -0
  217. package/dist/components/PortalProvider/PortalProvider.client.d.ts +2 -0
  218. package/dist/components/PortalProvider/{Providers.js → PortalProvider.client.js} +1 -1
  219. package/dist/components/PortalProvider/{Providers.mjs → PortalProvider.client.mjs} +28 -15
  220. package/dist/components/PortalProvider/PortalProvider.d.ts +9 -2
  221. package/dist/components/PortalProvider/PortalProvider.js +1 -1
  222. package/dist/components/PortalProvider/PortalProvider.mjs +17 -11
  223. package/dist/components/Promo/Promo.d.ts +4 -1
  224. package/dist/components/Promo/Promo.js +1 -1
  225. package/dist/components/Promo/Promo.mjs +2 -2
  226. package/dist/components/Promo/PromoContent.js +1 -1
  227. package/dist/components/Promo/PromoContent.mjs +75 -22
  228. package/dist/components/Promos/PromoCarousel.js +1 -1
  229. package/dist/components/Promos/PromoCarousel.mjs +30 -25
  230. package/dist/components/Promos/PromoGrid.js +1 -1
  231. package/dist/components/Promos/PromoGrid.mjs +14 -13
  232. package/dist/components/Promos/PromoItem.js +1 -1
  233. package/dist/components/Promos/PromoItem.mjs +11 -7
  234. package/dist/components/Promos/Promos.d.ts +4 -2
  235. package/dist/components/Protected/Protected.js +1 -1
  236. package/dist/components/Protected/Protected.mjs +3 -2
  237. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -0
  238. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +1 -0
  239. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.mjs +154 -0
  240. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
  241. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -0
  242. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.mjs +66 -0
  243. package/dist/components/Quests/Quests.d.ts +1 -0
  244. package/dist/components/Quests/Quests.js +1 -0
  245. package/dist/components/Quests/Quests.mjs +15 -0
  246. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -0
  247. package/dist/components/Quests/WageringQuest/WageringQuest.js +1 -0
  248. package/dist/components/Quests/WageringQuest/WageringQuest.mjs +109 -0
  249. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +8 -0
  250. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -0
  251. package/dist/components/Quests/WageringQuest/WageringQuestModal.mjs +63 -0
  252. package/dist/components/Quests/index.d.ts +1 -0
  253. package/dist/components/SignIn/SignIn.d.ts +0 -1
  254. package/dist/components/SignIn/SignIn.js +1 -1
  255. package/dist/components/SignIn/SignIn.mjs +34 -41
  256. package/dist/components/SignIn/SignInForm.js +1 -1
  257. package/dist/components/SignIn/SignInForm.mjs +169 -160
  258. package/dist/components/SignUp/SignUp.d.ts +0 -1
  259. package/dist/components/SignUp/SignUp.js +1 -1
  260. package/dist/components/SignUp/SignUp.mjs +34 -41
  261. package/dist/components/SignUp/SignUpForm.js +1 -1
  262. package/dist/components/SignUp/SignUpForm.mjs +125 -116
  263. package/dist/components/TopWins/TopWins.client.js +1 -1
  264. package/dist/components/TopWins/TopWins.client.mjs +15 -14
  265. package/dist/components/TopWins/TopWins.d.ts +2 -1
  266. package/dist/components/TopWins/TopWins.js +1 -1
  267. package/dist/components/TopWins/TopWins.mjs +4 -2
  268. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
  269. package/dist/components/TournamentCounter/TournamentCounter.client.js +1 -0
  270. package/dist/components/TournamentCounter/TournamentCounter.client.mjs +139 -0
  271. package/dist/components/TournamentCounter/TournamentCounter.d.ts +5 -3
  272. package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
  273. package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -108
  274. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
  275. package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
  276. package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
  277. package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
  278. package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
  279. package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
  280. package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
  281. package/dist/components/Tournaments/TournamentItem.js +2 -0
  282. package/dist/components/Tournaments/TournamentItem.mjs +262 -0
  283. package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
  284. package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
  285. package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
  286. package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
  287. package/dist/components/Tournaments/TournamentRules.js +1 -0
  288. package/dist/components/Tournaments/TournamentRules.mjs +78 -0
  289. package/dist/components/Tournaments/Tournaments.d.ts +8 -0
  290. package/dist/components/Tournaments/Tournaments.js +1 -0
  291. package/dist/components/Tournaments/Tournaments.mjs +47 -0
  292. package/dist/components/Tournaments/index.d.ts +1 -0
  293. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  294. package/dist/components/TransactionRecords/DepositRecordsTable.mjs +123 -100
  295. package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
  296. package/dist/components/TransactionRecords/TableFilters.js +1 -1
  297. package/dist/components/TransactionRecords/TableFilters.mjs +282 -179
  298. package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
  299. package/dist/components/TransactionRecords/TransactionRecords.mjs +22 -17
  300. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  301. package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +118 -97
  302. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  303. package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +120 -102
  304. package/dist/components/index.d.ts +10 -0
  305. package/dist/components.js +1 -1
  306. package/dist/components.mjs +56 -32
  307. package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
  308. package/dist/icons/ArrowNarrowDownIcon.js +1 -0
  309. package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
  310. package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
  311. package/dist/icons/ArrowNarrowUpIcon.js +1 -0
  312. package/dist/icons/ArrowNarrowUpIcon.mjs +22 -0
  313. package/dist/icons/Award01Icon.d.ts +2 -0
  314. package/dist/icons/Award01Icon.js +1 -0
  315. package/dist/icons/Award01Icon.mjs +22 -0
  316. package/dist/icons/Bell01Icon.d.ts +2 -0
  317. package/dist/icons/Bell01Icon.js +1 -0
  318. package/dist/icons/Bell01Icon.mjs +27 -0
  319. package/dist/icons/BellRingIcon.d.ts +2 -0
  320. package/dist/icons/BellRingIcon.js +1 -0
  321. package/dist/icons/BellRingIcon.mjs +27 -0
  322. package/dist/icons/CalendarIcon.d.ts +2 -0
  323. package/dist/icons/CalendarIcon.js +1 -0
  324. package/dist/icons/CalendarIcon.mjs +26 -0
  325. package/dist/icons/Camera01Icon.d.ts +2 -0
  326. package/dist/icons/Camera01Icon.js +1 -0
  327. package/dist/icons/Camera01Icon.mjs +25 -0
  328. package/dist/icons/CheckCircleIcon.d.ts +2 -0
  329. package/dist/icons/CheckCircleIcon.js +1 -0
  330. package/dist/icons/CheckCircleIcon.mjs +22 -0
  331. package/dist/icons/ClockStopWatchIcon.d.ts +2 -0
  332. package/dist/icons/ClockStopWatchIcon.js +1 -0
  333. package/dist/icons/ClockStopWatchIcon.mjs +26 -0
  334. package/dist/icons/CoinsHandIcon.d.ts +2 -0
  335. package/dist/icons/CoinsHandIcon.js +1 -0
  336. package/dist/icons/CoinsHandIcon.mjs +22 -0
  337. package/dist/icons/CoinsStacked02Icon.d.ts +2 -0
  338. package/dist/icons/CoinsStacked02Icon.js +1 -0
  339. package/dist/icons/CoinsStacked02Icon.mjs +22 -0
  340. package/dist/icons/CoinsSwap02Icon.d.ts +2 -0
  341. package/dist/icons/CoinsSwap02Icon.js +1 -0
  342. package/dist/icons/CoinsSwap02Icon.mjs +22 -0
  343. package/dist/icons/EyeIcon.d.ts +2 -0
  344. package/dist/icons/EyeIcon.js +1 -0
  345. package/dist/icons/EyeIcon.mjs +25 -0
  346. package/dist/icons/EyeOffIcon.d.ts +2 -0
  347. package/dist/icons/EyeOffIcon.js +1 -0
  348. package/dist/icons/EyeOffIcon.mjs +22 -0
  349. package/dist/icons/Flag06Icon.d.ts +2 -0
  350. package/dist/icons/Flag06Icon.js +1 -0
  351. package/dist/icons/Flag06Icon.mjs +22 -0
  352. package/dist/icons/HelpCircleIcon.d.ts +2 -0
  353. package/dist/icons/HelpCircleIcon.js +1 -0
  354. package/dist/icons/HelpCircleIcon.mjs +22 -0
  355. package/dist/icons/InfoCircleIcon.d.ts +2 -0
  356. package/dist/icons/InfoCircleIcon.js +1 -0
  357. package/dist/icons/InfoCircleIcon.mjs +27 -0
  358. package/dist/icons/Menu01Icon.d.ts +2 -0
  359. package/dist/icons/Menu01Icon.js +1 -0
  360. package/dist/icons/Menu01Icon.mjs +22 -0
  361. package/dist/icons/Menu03Icon.d.ts +2 -0
  362. package/dist/icons/Menu03Icon.js +1 -0
  363. package/dist/icons/Menu03Icon.mjs +22 -0
  364. package/dist/icons/SearchLgIcon.d.ts +2 -0
  365. package/dist/icons/SearchLgIcon.js +1 -0
  366. package/dist/icons/SearchLgIcon.mjs +22 -0
  367. package/dist/icons/Settings02Icon.d.ts +2 -0
  368. package/dist/icons/Settings02Icon.js +1 -0
  369. package/dist/icons/Settings02Icon.mjs +25 -0
  370. package/dist/icons/Star01Icon.d.ts +2 -0
  371. package/dist/icons/Star01Icon.js +1 -0
  372. package/dist/icons/Star01Icon.mjs +22 -0
  373. package/dist/icons/StarIcon.d.ts +2 -0
  374. package/dist/icons/StarIcon.js +1 -0
  375. package/dist/icons/StarIcon.mjs +18 -0
  376. package/dist/icons/StopWatchIcon.d.ts +2 -0
  377. package/dist/icons/StopWatchIcon.js +1 -0
  378. package/dist/icons/StopWatchIcon.mjs +22 -0
  379. package/dist/icons/Trophy01Icon.d.ts +2 -0
  380. package/dist/icons/Trophy01Icon.js +1 -0
  381. package/dist/icons/Trophy01Icon.mjs +22 -0
  382. package/dist/icons/UploadCloud02Icon.d.ts +2 -0
  383. package/dist/icons/UploadCloud02Icon.js +1 -0
  384. package/dist/icons/UploadCloud02Icon.mjs +22 -0
  385. package/dist/icons/index.d.ts +22 -0
  386. package/dist/icons.d.ts +2 -0
  387. package/dist/icons.js +1 -0
  388. package/dist/icons.mjs +94 -0
  389. package/dist/images/fantasma-games.png.js +1 -0
  390. package/dist/images/fantasma-games.png.mjs +4 -0
  391. package/dist/images/first-place.png.js +1 -0
  392. package/dist/images/first-place.png.mjs +4 -0
  393. package/dist/images/hacksaw-gaming.png.js +1 -0
  394. package/dist/images/hacksaw-gaming.png.mjs +4 -0
  395. package/dist/images/leaderboard.png.js +1 -0
  396. package/dist/images/leaderboard.png.mjs +4 -0
  397. package/dist/images/placeholder-avatar.png.js +1 -0
  398. package/dist/images/placeholder-avatar.png.mjs +4 -0
  399. package/dist/images/responsible-gaming.png.js +1 -1
  400. package/dist/images/responsible-gaming.png.mjs +2 -2
  401. package/dist/images/trophy-two.png.js +1 -0
  402. package/dist/images/trophy-two.png.mjs +4 -0
  403. package/dist/portal-components.css +1 -1
  404. package/dist/server/services/getSession.d.ts +1 -1
  405. package/dist/server/services/getSession.js +1 -1
  406. package/dist/server/services/getSession.mjs +6 -5
  407. package/dist/server/utils/index.d.ts +2 -1
  408. package/dist/server/utils/prefetchBonusesQuery.d.ts +1 -0
  409. package/dist/server/utils/prefetchBonusesQuery.js +1 -0
  410. package/dist/server/utils/prefetchBonusesQuery.mjs +26 -0
  411. package/dist/server/utils/prefetchFavoriteGamesQuery.d.ts +1 -0
  412. package/dist/server/utils/prefetchFavoriteGamesQuery.js +1 -0
  413. package/dist/server/utils/prefetchFavoriteGamesQuery.mjs +28 -0
  414. package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
  415. package/dist/server-utils.js +1 -1
  416. package/dist/server-utils.mjs +38 -36
  417. package/dist/theme.css +131 -5
  418. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  419. package/dist/third-parties/FacebookPixel/FacebookPixel.js +1 -0
  420. package/dist/third-parties/FacebookPixel/FacebookPixel.mjs +6 -0
  421. package/dist/third-parties/FacebookPixel/api.d.ts +1 -0
  422. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  423. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  424. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +1 -0
  425. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs +6 -0
  426. package/dist/third-parties/GoogleRecaptcha/api.d.ts +1 -0
  427. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  428. package/dist/third-parties/index.d.ts +2 -0
  429. package/dist/types/index.d.ts +8 -0
  430. package/dist/types.d.ts +1 -0
  431. package/dist/types.js +1 -0
  432. package/dist/types.mjs +1 -0
  433. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  434. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  435. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  436. package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
  437. package/dist/ui/Badge/Badge.d.ts +274 -27
  438. package/dist/ui/Badge/Badge.js +1 -1
  439. package/dist/ui/Badge/Badge.mjs +14 -10
  440. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  441. package/dist/ui/Badge/badge.anatomy.js +1 -1
  442. package/dist/ui/Badge/badge.anatomy.mjs +1 -0
  443. package/dist/ui/Badge/badge.recipe.d.ts +57 -9
  444. package/dist/ui/Badge/badge.recipe.js +1 -1
  445. package/dist/ui/Badge/badge.recipe.mjs +57 -21
  446. package/dist/ui/Button/button.recipe.d.ts +2 -2
  447. package/dist/ui/Button/button.recipe.js +1 -1
  448. package/dist/ui/Button/button.recipe.mjs +17 -7
  449. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  450. package/dist/ui/Checkbox/checkbox.recipe.mjs +8 -8
  451. package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
  452. package/dist/ui/Collapsible/Collapsible.js +1 -0
  453. package/dist/ui/Collapsible/Collapsible.mjs +13 -0
  454. package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
  455. package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
  456. package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
  457. package/dist/ui/Collapsible/index.d.ts +1 -0
  458. package/dist/ui/Combobox/Combobox.d.ts +815 -1
  459. package/dist/ui/Combobox/Combobox.js +1 -1
  460. package/dist/ui/Combobox/Combobox.mjs +27 -2
  461. package/dist/ui/Combobox/combobox.recipe.d.ts +58 -1
  462. package/dist/ui/Combobox/combobox.recipe.js +1 -0
  463. package/dist/ui/Combobox/combobox.recipe.mjs +15 -0
  464. package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
  465. package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
  466. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  467. package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
  468. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  469. package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
  470. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  471. package/dist/ui/Dialog/dialog.recipe.mjs +5 -5
  472. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  473. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  474. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  475. package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
  476. package/dist/ui/Field/field.recipe.js +1 -1
  477. package/dist/ui/Field/field.recipe.mjs +10 -12
  478. package/dist/ui/IconButton/iconButton.recipe.d.ts +3 -2
  479. package/dist/ui/IconButton/iconButton.recipe.js +1 -1
  480. package/dist/ui/IconButton/iconButton.recipe.mjs +7 -6
  481. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  482. package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
  483. package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
  484. package/dist/ui/PasswordInput/PasswordInput.js +1 -0
  485. package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
  486. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
  487. package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
  488. package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
  489. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  490. package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
  491. package/dist/ui/Popover/Popover.d.ts +55 -55
  492. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  493. package/dist/ui/Popover/popover.recipe.js +1 -1
  494. package/dist/ui/Popover/popover.recipe.mjs +1 -1
  495. package/dist/ui/Progress/Progress.d.ts +335 -1
  496. package/dist/ui/Progress/Progress.js +1 -1
  497. package/dist/ui/Progress/Progress.mjs +15 -2
  498. package/dist/ui/Progress/progress.recipe.d.ts +37 -1
  499. package/dist/ui/Progress/progress.recipe.js +1 -0
  500. package/dist/ui/Progress/progress.recipe.mjs +41 -0
  501. package/dist/ui/Prose.d.ts +2 -0
  502. package/dist/ui/Prose.js +1 -0
  503. package/dist/ui/Prose.mjs +47 -0
  504. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  505. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  506. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  507. package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
  508. package/dist/ui/Select/Select.d.ts +45 -45
  509. package/dist/ui/Select/select.recipe.d.ts +3 -3
  510. package/dist/ui/Select/select.recipe.js +1 -1
  511. package/dist/ui/Select/select.recipe.mjs +7 -6
  512. package/dist/ui/Table/table.recipe.js +1 -1
  513. package/dist/ui/Table/table.recipe.mjs +4 -4
  514. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  515. package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
  516. package/dist/ui/index.d.ts +3 -0
  517. package/dist/ui.js +1 -1
  518. package/dist/ui.mjs +36 -30
  519. package/dist/utils/queryKeys.d.ts +9 -2
  520. package/dist/utils/queryKeys.js +1 -1
  521. package/dist/utils/queryKeys.mjs +56 -38
  522. package/dist/utils.js +1 -1
  523. package/dist/utils.mjs +48 -41
  524. package/package.json +24 -12
  525. package/dist/client/hooks/useSiteQuery.d.ts +0 -3
  526. package/dist/client/hooks/useSiteQuery.js +0 -1
  527. package/dist/client/hooks/useSiteQuery.mjs +0 -23
  528. package/dist/components/Empty/CloudIcon.d.ts +0 -2
  529. package/dist/components/Empty/CloudIcon.js +0 -1
  530. package/dist/components/Empty/Empty.js +0 -1
  531. package/dist/components/Empty/Empty.mjs +0 -16
  532. package/dist/components/Empty/index.d.ts +0 -1
  533. package/dist/components/PortalProvider/Providers.d.ts +0 -2
  534. package/dist/components/Promos/PromosContent.d.ts +0 -2
  535. package/dist/images/ball.png.js +0 -1
  536. package/dist/images/ball.png.mjs +0 -4
  537. package/dist/images/card.png.js +0 -1
  538. package/dist/images/card.png.mjs +0 -4
  539. package/dist/server/utils/prefetchSiteQuery.d.ts +0 -1
  540. package/dist/server/utils/prefetchSiteQuery.js +0 -1
  541. package/dist/server/utils/prefetchSiteQuery.mjs +0 -23
  542. /package/dist/components/{Empty/Empty.d.ts → Empty.d.ts} +0 -0
@@ -1,10 +1,10 @@
1
- import { jsxs as r, jsx as e, Fragment as L } from "react/jsx-runtime";
2
- import { createListCollection as T } from "@ark-ui/react";
3
- import { zodResolver as V } from "@hookform/resolvers/zod";
4
- import { useEffect as w, useMemo as W } from "react";
5
- import { useForm as $, Controller as y } from "react-hook-form";
1
+ import { jsxs as t, jsx as o, Fragment as N } from "react/jsx-runtime";
2
+ import { createListCollection as $ } from "@ark-ui/react";
3
+ import { zodResolver as L } from "@hookform/resolvers/zod";
4
+ import { useEffect as I, useMemo as P } from "react";
5
+ import { useForm as T, Controller as w } from "react-hook-form";
6
6
  import { z as s } from "zod";
7
- import { useShallow as D } from "zustand/shallow";
7
+ import { useShallow as V } from "zustand/shallow";
8
8
  import "@opexa/portal-sdk-core";
9
9
  import "@tanstack/react-query";
10
10
  import "tiny-invariant";
@@ -14,18 +14,21 @@ import { parseDecimal as c } from "../../../../utils/parseDecimal.mjs";
14
14
  import "../../../../utils/getLocaleInfo.mjs";
15
15
  import "../../../../utils/getQueryClient.mjs";
16
16
  import "../../../../utils/isMobile.mjs";
17
+ import "../../../../client/services/getSession.mjs";
17
18
  import "lodash-es";
18
19
  import "@opexa/portal-sdk-core/object-id";
19
- import { useCreateInstapayWithdrawalMutation as R } from "../../../../client/hooks/useCreateInstapayWithdrawalMutation.mjs";
20
- import { useGlobalStore as B } from "../../../../client/hooks/useGlobalStore.mjs";
20
+ import { useCreateInstapayWithdrawalMutation as W } from "../../../../client/hooks/useCreateInstapayWithdrawalMutation.mjs";
21
+ import { useGlobalStore as R } from "../../../../client/hooks/useGlobalStore.mjs";
21
22
  import "../../../../client/hooks/useInfiniteQueryHelper.mjs";
22
- import { useInstapayBankListQuery as M } from "../../../../client/hooks/useInstapayBankListQuery.mjs";
23
+ import { useInstapayBankListQuery as D } from "../../../../client/hooks/useInstapayBankListQuery.mjs";
23
24
  import "usehooks-ts";
24
- import { usePaymentSettingsQuery as Q } from "../../../../client/hooks/usePaymentSettingsQuery.mjs";
25
- import { toaster as I } from "../../../../client/utils/toaster.mjs";
26
- import { CheckIcon as A } from "../../../../icons/CheckIcon.mjs";
25
+ import { usePaymentSettingsQuery as B } from "../../../../client/hooks/usePaymentSettingsQuery.mjs";
26
+ import { toaster as y } from "../../../../client/utils/toaster.mjs";
27
+ import { CheckIcon as E } from "../../../../icons/CheckIcon.mjs";
27
28
  import { ChevronDownIcon as S } from "../../../../icons/ChevronDownIcon.mjs";
28
- import { ChevronUpIcon as E } from "../../../../icons/ChevronUpIcon.mjs";
29
+ import { ChevronUpIcon as M } from "../../../../icons/ChevronUpIcon.mjs";
30
+ import { EyeIcon as Q } from "../../../../icons/EyeIcon.mjs";
31
+ import { EyeOffIcon as A } from "../../../../icons/EyeOffIcon.mjs";
29
32
  import { SpinnerIcon as F } from "../../../../icons/SpinnerIcon.mjs";
30
33
  import "../../../../ui/AlertDialog/AlertDialog.mjs";
31
34
  import "../../../../ui/Avatar/Avatar.mjs";
@@ -33,47 +36,51 @@ import "../../../../ui/Badge/Badge.mjs";
33
36
  import { Button as j } from "../../../../ui/Button/Button.mjs";
34
37
  import "../../../../ui/Checkbox/Checkbox.mjs";
35
38
  import "../../../../ui/Clipboard/Clipboard.mjs";
39
+ import "../../../../ui/Collapsible/Collapsible.mjs";
40
+ import "../../../../ui/Combobox/Combobox.mjs";
36
41
  import "../../../../ui/DatePicker/DatePicker.mjs";
37
42
  import "../../../../ui/Dialog/Dialog.mjs";
38
43
  import "../../../../ui/Drawer/Drawer.mjs";
39
- import { Root as d, ErrorText as p, Label as v, Input as x } from "../../../../ui/Field/Field.mjs";
44
+ import { Root as d, ErrorText as p, Label as G, Input as O } from "../../../../ui/Field/Field.mjs";
40
45
  import "../../../../ui/IconButton/iconButton.recipe.mjs";
41
- import { Root as G, Label as U, Control as q, Input as z, IncrementTrigger as O, DecrementTrigger as Z } from "../../../../ui/NumberInput/NumberInput.mjs";
46
+ import { Root as U, Label as q, Control as z, Input as Z, IncrementTrigger as _, DecrementTrigger as H } from "../../../../ui/NumberInput/NumberInput.mjs";
47
+ import { Root as J, Label as K, Control as X, Input as Y, VisibilityTrigger as oo, Indicator as eo } from "../../../../ui/PasswordInput/PasswordInput.mjs";
42
48
  import "../../../../ui/PinInput/PinInput.mjs";
43
49
  import "../../../../ui/Popover/Popover.mjs";
44
50
  import "tailwind-merge";
51
+ import "../../../../ui/Progress/Progress.mjs";
45
52
  import "../../../../ui/SegmentGroup/SegmentGroup.mjs";
46
- import { Root as _, Label as H, Control as J, Trigger as K, ValueText as X, Indicator as Y, Positioner as ee, Content as oe, ItemGroup as te, Item as re, ItemText as ne, ItemIndicator as ie } from "../../../../ui/Select/Select.mjs";
53
+ import { Root as ro, Label as to, Control as io, Trigger as no, ValueText as ao, Indicator as mo, Positioner as so, Content as lo, ItemGroup as uo, Item as co, ItemText as po, ItemIndicator as ho } from "../../../../ui/Select/Select.mjs";
47
54
  import "../../../../ui/Table/Table.mjs";
48
55
  import "../../../../ui/Tabs/Tabs.mjs";
49
- import { AmountChoices as ae } from "../../AmountChoices.mjs";
50
- function no() {
56
+ import { AmountChoices as fo } from "../../AmountChoices.mjs";
57
+ function we() {
51
58
  var g, C;
52
- const k = B(
53
- D((o) => ({
54
- depositWithdrawal: o.depositWithdrawal
59
+ const k = R(
60
+ V((e) => ({
61
+ depositWithdrawal: e.depositWithdrawal
55
62
  }))
56
- ), h = R({
63
+ ), h = W({
57
64
  onSuccess() {
58
- t.reset(), k.depositWithdrawal.setOpen(!1), I.success({
65
+ r.reset(), k.depositWithdrawal.setOpen(!1), y.success({
59
66
  description: "Withdrawal request submitted successfully."
60
67
  });
61
68
  },
62
- onError(o) {
63
- I.error({
64
- description: o.message
69
+ onError(e) {
70
+ y.error({
71
+ description: e.message
65
72
  });
66
73
  }
67
- }), a = M().data, f = Q().data, l = f == null ? void 0 : f.instapayWithdrawalGatewaySettings, m = c(l == null ? void 0 : l.minimumAmount, 0), u = c(l == null ? void 0 : l.maximumAmount, 0), N = s.object({
68
- amount: s.string().superRefine((o, i) => {
69
- const n = c(o, 0);
70
- n < m && i.addIssue({
74
+ }), a = D().data, f = B().data, l = f == null ? void 0 : f.instapayWithdrawalGatewaySettings, m = c(l == null ? void 0 : l.minimumAmount, 0), u = c(l == null ? void 0 : l.maximumAmount, 0), v = s.object({
75
+ amount: s.string().superRefine((e, n) => {
76
+ const i = c(e, 0);
77
+ i < m && n.addIssue({
71
78
  type: "number",
72
79
  code: s.ZodIssueCode.too_small,
73
80
  inclusive: !0,
74
81
  minimum: m,
75
82
  message: `Minimum amount is ${m.toLocaleString()}`
76
- }), n > u && i.addIssue({
83
+ }), i > u && n.addIssue({
77
84
  type: "number",
78
85
  code: s.ZodIssueCode.too_big,
79
86
  inclusive: !0,
@@ -84,9 +91,9 @@ function no() {
84
91
  password: s.string().min(8, "Password must be 8 or more characters").max(64, "Password must be not be more than 64 characters"),
85
92
  accountNumber: s.string().min(1).trim(),
86
93
  bankCode: s.string().min(1, "Bank is required").trim()
87
- }), t = $({
94
+ }), r = T({
88
95
  mode: "all",
89
- resolver: V(N),
96
+ resolver: L(v),
90
97
  defaultValues: {
91
98
  amount: "0",
92
99
  password: "",
@@ -94,107 +101,107 @@ function no() {
94
101
  bankCode: ""
95
102
  }
96
103
  });
97
- w(() => {
98
- m && t.reset({
104
+ I(() => {
105
+ m && r.reset({
99
106
  amount: m.toString(),
100
- bankCode: t.getValues("bankCode"),
107
+ bankCode: r.getValues("bankCode"),
101
108
  password: "",
102
109
  accountNumber: ""
103
110
  });
104
- }, [t, m]), w(() => {
105
- a != null && a.length && t.reset({
106
- amount: t.getValues("amount"),
111
+ }, [r, m]), I(() => {
112
+ a != null && a.length && r.reset({
113
+ amount: r.getValues("amount"),
107
114
  bankCode: a[0].code,
108
115
  password: "",
109
116
  accountNumber: ""
110
117
  });
111
- }, [t, a]);
112
- const P = t.handleSubmit(async (o) => {
118
+ }, [r, a]);
119
+ const x = r.handleSubmit(async (e) => {
113
120
  h.mutate({
114
- amount: o.amount,
115
- transactionPassword: o.password,
116
- accountNumber: o.accountNumber,
117
- bankCode: o.bankCode
121
+ amount: e.amount,
122
+ transactionPassword: e.password,
123
+ accountNumber: e.accountNumber,
124
+ bankCode: e.bankCode
118
125
  });
119
- }), b = W(
120
- () => T({
126
+ }), b = P(
127
+ () => $({
121
128
  items: a ?? [],
122
- itemToValue: (o) => o.code,
123
- itemToString: (o) => o.name
129
+ itemToValue: (e) => e.code,
130
+ itemToString: (e) => e.name
124
131
  }),
125
132
  [a]
126
133
  );
127
- return console.log(b.items), /* @__PURE__ */ r("form", { onSubmit: P, noValidate: !0, autoComplete: "off", children: [
128
- /* @__PURE__ */ e(
129
- y,
134
+ return console.log(b.items), /* @__PURE__ */ t("form", { onSubmit: x, noValidate: !0, autoComplete: "off", children: [
135
+ /* @__PURE__ */ o(
136
+ w,
130
137
  {
131
- control: t.control,
138
+ control: r.control,
132
139
  name: "bankCode",
133
- render: (o) => {
134
- var i;
135
- return /* @__PURE__ */ r(d, { invalid: !!t.formState.errors.bankCode, children: [
136
- /* @__PURE__ */ r(
137
- _,
140
+ render: (e) => {
141
+ var n;
142
+ return /* @__PURE__ */ t(d, { invalid: !!r.formState.errors.bankCode, children: [
143
+ /* @__PURE__ */ t(
144
+ ro,
138
145
  {
139
146
  collection: b,
140
147
  positioning: {
141
148
  sameWidth: !0
142
149
  },
143
- value: o.field.value ? [o.field.value] : [],
144
- onValueChange: (n) => {
145
- o.field.onChange(n.value.at(0) ?? "");
150
+ value: e.field.value ? [e.field.value] : [],
151
+ onValueChange: (i) => {
152
+ e.field.onChange(i.value.at(0) ?? "");
146
153
  },
147
154
  children: [
148
- /* @__PURE__ */ e(H, { children: "Bank" }),
149
- /* @__PURE__ */ e(J, { children: /* @__PURE__ */ r(K, { children: [
150
- /* @__PURE__ */ e(X, {}),
151
- /* @__PURE__ */ e(Y, { asChild: !0, children: /* @__PURE__ */ e(S, {}) })
155
+ /* @__PURE__ */ o(to, { children: "Bank" }),
156
+ /* @__PURE__ */ o(io, { children: /* @__PURE__ */ t(no, { children: [
157
+ /* @__PURE__ */ o(ao, {}),
158
+ /* @__PURE__ */ o(mo, { asChild: !0, children: /* @__PURE__ */ o(S, {}) })
152
159
  ] }) }),
153
- /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(te, { children: b.items.map((n) => /* @__PURE__ */ r(re, { item: n, children: [
154
- /* @__PURE__ */ e(ne, { children: n.name }),
155
- /* @__PURE__ */ e(ie, { asChild: !0, children: /* @__PURE__ */ e(A, {}) })
156
- ] }, n.id)) }) }) })
160
+ /* @__PURE__ */ o(so, { children: /* @__PURE__ */ o(lo, { children: /* @__PURE__ */ o(uo, { children: b.items.map((i) => /* @__PURE__ */ t(co, { item: i, children: [
161
+ /* @__PURE__ */ o(po, { children: i.name }),
162
+ /* @__PURE__ */ o(ho, { asChild: !0, children: /* @__PURE__ */ o(E, {}) })
163
+ ] }, i.id)) }) }) })
157
164
  ]
158
165
  }
159
166
  ),
160
- /* @__PURE__ */ e(p, { children: (i = t.formState.errors.bankCode) == null ? void 0 : i.message })
167
+ /* @__PURE__ */ o(p, { children: (n = r.formState.errors.bankCode) == null ? void 0 : n.message })
161
168
  ] });
162
169
  }
163
170
  }
164
171
  ),
165
- /* @__PURE__ */ r(
172
+ /* @__PURE__ */ t(
166
173
  d,
167
174
  {
168
- invalid: !!t.formState.errors.accountNumber,
175
+ invalid: !!r.formState.errors.accountNumber,
169
176
  className: "mt-3xl",
170
177
  children: [
171
- /* @__PURE__ */ e(v, { children: "Bank account number" }),
172
- /* @__PURE__ */ e(x, { ...t.register("accountNumber") }),
173
- /* @__PURE__ */ e(p, { children: (g = t.formState.errors.accountNumber) == null ? void 0 : g.message })
178
+ /* @__PURE__ */ o(G, { children: "Bank account number" }),
179
+ /* @__PURE__ */ o(O, { ...r.register("accountNumber") }),
180
+ /* @__PURE__ */ o(p, { children: (g = r.formState.errors.accountNumber) == null ? void 0 : g.message })
174
181
  ]
175
182
  }
176
183
  ),
177
- /* @__PURE__ */ e(
178
- y,
184
+ /* @__PURE__ */ o(
185
+ w,
179
186
  {
180
- control: t.control,
187
+ control: r.control,
181
188
  name: "amount",
182
- render: (o) => {
183
- var i;
184
- return /* @__PURE__ */ r(
189
+ render: (e) => {
190
+ var n;
191
+ return /* @__PURE__ */ t(
185
192
  d,
186
193
  {
187
- invalid: !!t.formState.errors.amount,
194
+ invalid: !!r.formState.errors.amount,
188
195
  className: "mt-3xl",
189
196
  children: [
190
- /* @__PURE__ */ r(
191
- G,
197
+ /* @__PURE__ */ t(
198
+ U,
192
199
  {
193
200
  min: 0,
194
201
  step: 1,
195
- value: o.field.value,
196
- onValueChange: (n) => {
197
- o.field.onChange(n.value);
202
+ value: e.field.value,
203
+ onValueChange: (i) => {
204
+ e.field.onChange(i.value);
198
205
  },
199
206
  formatOptions: {
200
207
  maximumFractionDigits: 2,
@@ -202,28 +209,28 @@ function no() {
202
209
  },
203
210
  allowMouseWheel: !0,
204
211
  children: [
205
- /* @__PURE__ */ e(U, { children: "Enter amount you want to withdraw" }),
206
- /* @__PURE__ */ r(q, { children: [
207
- /* @__PURE__ */ e(z, {}),
208
- /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(E, {}) }),
209
- /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(S, {}) })
212
+ /* @__PURE__ */ o(q, { children: "Enter amount you want to withdraw" }),
213
+ /* @__PURE__ */ t(z, { children: [
214
+ /* @__PURE__ */ o(Z, {}),
215
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(M, {}) }),
216
+ /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o(S, {}) })
210
217
  ] })
211
218
  ]
212
219
  }
213
220
  ),
214
- /* @__PURE__ */ e(p, { children: (i = t.formState.errors.amount) == null ? void 0 : i.message })
221
+ /* @__PURE__ */ o(p, { children: (n = r.formState.errors.amount) == null ? void 0 : n.message })
215
222
  ]
216
223
  }
217
224
  );
218
225
  }
219
226
  }
220
227
  ),
221
- /* @__PURE__ */ e(
222
- ae,
228
+ /* @__PURE__ */ o(
229
+ fo,
223
230
  {
224
- value: c(t.watch("amount"), 0),
225
- onChange: (o) => {
226
- t.setValue("amount", o.toString(), {
231
+ value: c(r.watch("amount"), 0),
232
+ onChange: (e) => {
233
+ r.setValue("amount", e.toString(), {
227
234
  shouldTouch: !0,
228
235
  shouldDirty: !0,
229
236
  shouldValidate: !0
@@ -234,25 +241,30 @@ function no() {
234
241
  className: "mt-xl"
235
242
  }
236
243
  ),
237
- /* @__PURE__ */ r(d, { className: "mt-3xl", invalid: !!t.formState.errors.password, children: [
238
- /* @__PURE__ */ e(v, { children: "Password" }),
239
- /* @__PURE__ */ e(x, { type: "password", ...t.register("password") }),
240
- /* @__PURE__ */ e(p, { children: (C = t.formState.errors.password) == null ? void 0 : C.message })
244
+ /* @__PURE__ */ t(d, { className: "mt-3xl", invalid: !!r.formState.errors.password, children: [
245
+ /* @__PURE__ */ t(J, { children: [
246
+ /* @__PURE__ */ o(K, { children: "Password" }),
247
+ /* @__PURE__ */ t(X, { children: [
248
+ /* @__PURE__ */ o(Y, { ...r.register("password") }),
249
+ /* @__PURE__ */ o(oo, { children: /* @__PURE__ */ o(eo, { fallback: /* @__PURE__ */ o(A, {}), asChild: !0, children: /* @__PURE__ */ o(Q, {}) }) })
250
+ ] })
251
+ ] }),
252
+ /* @__PURE__ */ o(p, { children: (C = r.formState.errors.password) == null ? void 0 : C.message })
241
253
  ] }),
242
- /* @__PURE__ */ r("p", { className: "mt-4xl text-xs", children: [
254
+ /* @__PURE__ */ t("p", { className: "mt-4xl text-xs", children: [
243
255
  "Upon clicking the deposit button, you agree to the",
244
256
  " ",
245
- /* @__PURE__ */ e("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }),
257
+ /* @__PURE__ */ o("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }),
246
258
  "."
247
259
  ] }),
248
- /* @__PURE__ */ e(
260
+ /* @__PURE__ */ o(
249
261
  j,
250
262
  {
251
263
  type: "submit",
252
264
  className: "mt-4.5",
253
265
  disabled: h.isPending,
254
- children: h.isPending ? /* @__PURE__ */ r(L, { children: [
255
- /* @__PURE__ */ e(F, {}),
266
+ children: h.isPending ? /* @__PURE__ */ t(N, { children: [
267
+ /* @__PURE__ */ o(F, {}),
256
268
  "Processing..."
257
269
  ] }) : "Deposit"
258
270
  }
@@ -260,5 +272,5 @@ function no() {
260
272
  ] });
261
273
  }
262
274
  export {
263
- no as InstapayWithdrawal
275
+ we as InstapayWithdrawal
264
276
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("@hookform/resolvers/zod"),f=require("react"),q=require("react-hook-form"),u=require("zod"),b=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../../../constants/index.js");require("../../../../utils/capitalize.js");const l=require("../../../../utils/parseDecimal.js");require("../../../../utils/getLocaleInfo.js");require("../../../../utils/getQueryClient.js");require("../../../../utils/isMobile.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const M=require("../../../../client/hooks/useCreateMayaAppWithdrawalMutation.js"),v=require("../../../../client/hooks/useGlobalStore.js");require("../../../../client/hooks/useInfiniteQueryHelper.js");const I=require("../../../../client/hooks/useIsMayaSessionValidQuery.js");require("usehooks-ts");const C=require("../../../../client/hooks/usePaymentSettingsQuery.js"),x=require("../../../../client/utils/toaster.js"),P=require("../../../../icons/ChevronDownIcon.js"),W=require("../../../../icons/ChevronUpIcon.js"),A=require("../../../../icons/SpinnerIcon.js");require("../../../../ui/AlertDialog/AlertDialog.js");require("../../../../ui/Avatar/Avatar.js");require("../../../../ui/Badge/Badge.js");const D=require("../../../../ui/Button/Button.js");require("../../../../ui/Checkbox/Checkbox.js");require("../../../../ui/Clipboard/Clipboard.js");require("../../../../ui/DatePicker/DatePicker.js");require("../../../../ui/Dialog/Dialog.js");require("../../../../ui/Drawer/Drawer.js");const i=require("../../../../ui/Field/Field.js");require("@ark-ui/react");require("../../../../ui/IconButton/iconButton.recipe.js");const n=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 V=require("../../AmountChoices.js"),z=require("../../MayaSessionExpired.js");function Q(){var h;const y=v.useGlobalStore(b.useShallow(r=>({depositWithdrawal:r.depositWithdrawal}))),d=M.useCreateMayaAppWithdrawalMutation({onSuccess(){s.reset(),y.depositWithdrawal.setOpen(!1),x.toaster.success({description:"Withdrawal request submitted successfully."})},onError(r){x.toaster.error({description:r.message})}}),g=I.useIsMayaSessionValidQuery().data??!0,p=C.usePaymentSettingsQuery().data,o=p==null?void 0:p.mayaAppWithdrawalGatewaySettings,c=l.parseDecimal(o==null?void 0:o.maximumAmount,0),t=l.parseDecimal(o==null?void 0:o.minimumAmount,0),w=u.z.object({amount:u.z.string().superRefine((r,a)=>{const m=l.parseDecimal(r,0);m<t&&a.addIssue({type:"number",code:u.z.ZodIssueCode.too_small,inclusive:!0,minimum:t,message:`Minimum amount is ${t.toLocaleString()}`}),m>c&&a.addIssue({type:"number",code:u.z.ZodIssueCode.too_big,inclusive:!0,maximum:c,message:`Maximum amount is ${c.toLocaleString()}`})}),password:u.z.string().min(8,"Password must be 8 or more characters").max(64,"Password must be not be more than 64 characters")}),s=q.useForm({mode:"all",resolver:j.zodResolver(w),defaultValues:{amount:"0",password:""}});f.useEffect(()=>{t&&s.reset({amount:t.toString(),password:""})},[s,t]);const S=s.handleSubmit(async r=>{d.mutate({amount:r.amount,transactionPassword:r.password})});return g?e.jsxs("form",{onSubmit:S,noValidate:!0,children:[e.jsx(q.Controller,{control:s.control,name:"amount",render:r=>{var a;return e.jsxs(i.Root,{invalid:!!s.formState.errors.amount,children:[e.jsxs(n.Root,{min:0,step:1,value:r.field.value,onValueChange:m=>{r.field.onChange(m.value)},formatOptions:{maximumFractionDigits:2,minimumFractionDigits:0},allowMouseWheel:!0,children:[e.jsx(n.Label,{children:"Enter amount you want to deposit"}),e.jsxs(n.Control,{children:[e.jsx(n.Input,{}),e.jsx(n.IncrementTrigger,{children:e.jsx(W.ChevronUpIcon,{})}),e.jsx(n.DecrementTrigger,{children:e.jsx(P.ChevronDownIcon,{})})]})]}),e.jsx(i.ErrorText,{children:(a=s.formState.errors.amount)==null?void 0:a.message})]})}}),e.jsx(V.AmountChoices,{value:l.parseDecimal(s.watch("amount"),0),onChange:r=>{s.setValue("amount",r.toString(),{shouldTouch:!0,shouldDirty:!0,shouldValidate:!0})},min:t,max:c,className:"mt-xl"}),e.jsxs(i.Root,{className:"mt-3xl",invalid:!!s.formState.errors.password,children:[e.jsx(i.Label,{children:"Transaction Password"}),e.jsx(i.Input,{type:"password",...s.register("password")}),e.jsx(i.ErrorText,{children:(h=s.formState.errors.password)==null?void 0:h.message})]}),e.jsxs("p",{className:"mt-4xl text-xs",children:["Upon clicking the deposit button, you agree to the"," ",e.jsx("button",{type:"button",className:"underline underline-offset-2",children:"Terms of Use and Privacy Policy"}),"."]}),e.jsx(D.Button,{type:"submit",className:"mt-4.5",disabled:d.isPending,children:d.isPending?e.jsxs(e.Fragment,{children:[e.jsx(A.SpinnerIcon,{}),"Processing..."]}):"Withdraw"})]}):e.jsx(z.MayaSessionExpired,{})}exports.MayaAppWithdrawal=Q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),S=require("@hookform/resolvers/zod"),b=require("react"),x=require("react-hook-form"),u=require("zod"),I=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../../../constants/index.js");require("../../../../utils/capitalize.js");const m=require("../../../../utils/parseDecimal.js");require("../../../../utils/getLocaleInfo.js");require("../../../../utils/getQueryClient.js");require("../../../../utils/isMobile.js");require("../../../../client/services/getSession.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const M=require("../../../../client/hooks/useCreateMayaAppWithdrawalMutation.js"),C=require("../../../../client/hooks/useGlobalStore.js");require("../../../../client/hooks/useInfiniteQueryHelper.js");const v=require("../../../../client/hooks/useIsMayaSessionValidQuery.js");require("usehooks-ts");const P=require("../../../../client/hooks/usePaymentSettingsQuery.js"),y=require("../../../../client/utils/toaster.js"),W=require("../../../../icons/ChevronDownIcon.js"),A=require("../../../../icons/ChevronUpIcon.js"),D=require("../../../../icons/EyeIcon.js"),E=require("../../../../icons/EyeOffIcon.js"),V=require("../../../../icons/SpinnerIcon.js");require("../../../../ui/AlertDialog/AlertDialog.js");require("../../../../ui/Avatar/Avatar.js");require("../../../../ui/Badge/Badge.js");const z=require("../../../../ui/Button/Button.js");require("../../../../ui/Checkbox/Checkbox.js");require("../../../../ui/Clipboard/Clipboard.js");require("../../../../ui/Collapsible/Collapsible.js");require("../../../../ui/Combobox/Combobox.js");require("../../../../ui/DatePicker/DatePicker.js");require("../../../../ui/Dialog/Dialog.js");require("../../../../ui/Drawer/Drawer.js");const d=require("../../../../ui/Field/Field.js");require("@ark-ui/react");require("../../../../ui/IconButton/iconButton.recipe.js");const o=require("../../../../ui/NumberInput/NumberInput.js"),n=require("../../../../ui/PasswordInput/PasswordInput.js");require("../../../../ui/PinInput/PinInput.js");require("../../../../ui/Popover/Popover.js");require("tailwind-merge");require("../../../../ui/Progress/Progress.js");require("../../../../ui/SegmentGroup/SegmentGroup.js");require("../../../../ui/Select/Select.js");require("../../../../ui/Table/Table.js");require("../../../../ui/Tabs/Tabs.js");const Q=require("../../AmountChoices.js"),R=require("../../MayaSessionExpired.js");function T(){var p;const j=C.useGlobalStore(I.useShallow(r=>({depositWithdrawal:r.depositWithdrawal}))),q=M.useCreateMayaAppWithdrawalMutation({onSuccess(){s.reset(),j.depositWithdrawal.setOpen(!1),y.toaster.success({description:"Withdrawal request submitted successfully."})},onError(r){y.toaster.error({description:r.message})}}),g=v.useIsMayaSessionValidQuery().data??!0,h=P.usePaymentSettingsQuery().data,i=h==null?void 0:h.mayaAppWithdrawalGatewaySettings,c=m.parseDecimal(i==null?void 0:i.maximumAmount,0),t=m.parseDecimal(i==null?void 0:i.minimumAmount,0),f=u.z.object({amount:u.z.string().superRefine((r,a)=>{const l=m.parseDecimal(r,0);l<t&&a.addIssue({type:"number",code:u.z.ZodIssueCode.too_small,inclusive:!0,minimum:t,message:`Minimum amount is ${t.toLocaleString()}`}),l>c&&a.addIssue({type:"number",code:u.z.ZodIssueCode.too_big,inclusive:!0,maximum:c,message:`Maximum amount is ${c.toLocaleString()}`})}),password:u.z.string().min(8,"Password must be 8 or more characters").max(64,"Password must be not be more than 64 characters")}),s=x.useForm({mode:"all",resolver:S.zodResolver(f),defaultValues:{amount:"0",password:""}});b.useEffect(()=>{t&&s.reset({amount:t.toString(),password:""})},[s,t]);const w=s.handleSubmit(async r=>{q.mutate({amount:r.amount,transactionPassword:r.password})});return g?e.jsxs("form",{onSubmit:w,noValidate:!0,children:[e.jsx(x.Controller,{control:s.control,name:"amount",render:r=>{var a;return e.jsxs(d.Root,{invalid:!!s.formState.errors.amount,children:[e.jsxs(o.Root,{min:0,step:1,value:r.field.value,onValueChange:l=>{r.field.onChange(l.value)},formatOptions:{maximumFractionDigits:2,minimumFractionDigits:0},allowMouseWheel:!0,children:[e.jsx(o.Label,{children:"Enter amount you want to deposit"}),e.jsxs(o.Control,{children:[e.jsx(o.Input,{}),e.jsx(o.IncrementTrigger,{children:e.jsx(A.ChevronUpIcon,{})}),e.jsx(o.DecrementTrigger,{children:e.jsx(W.ChevronDownIcon,{})})]})]}),e.jsx(d.ErrorText,{children:(a=s.formState.errors.amount)==null?void 0:a.message})]})}}),e.jsx(Q.AmountChoices,{value:m.parseDecimal(s.watch("amount"),0),onChange:r=>{s.setValue("amount",r.toString(),{shouldTouch:!0,shouldDirty:!0,shouldValidate:!0})},min:t,max:c,className:"mt-xl"}),e.jsxs(d.Root,{className:"mt-3xl",invalid:!!s.formState.errors.password,children:[e.jsxs(n.Root,{children:[e.jsx(n.Label,{children:"Password"}),e.jsxs(n.Control,{children:[e.jsx(n.Input,{...s.register("password")}),e.jsx(n.VisibilityTrigger,{children:e.jsx(n.Indicator,{fallback:e.jsx(E.EyeOffIcon,{}),asChild:!0,children:e.jsx(D.EyeIcon,{})})})]})]}),e.jsx(d.ErrorText,{children:(p=s.formState.errors.password)==null?void 0:p.message})]}),e.jsxs("p",{className:"mt-4xl text-xs",children:["Upon clicking the deposit button, you agree to the"," ",e.jsx("button",{type:"button",className:"underline underline-offset-2",children:"Terms of Use and Privacy Policy"}),"."]}),e.jsx(z.Button,{type:"submit",className:"mt-4.5",disabled:q.isPending,children:q.isPending?e.jsxs(e.Fragment,{children:[e.jsx(V.SpinnerIcon,{}),"Processing..."]}):"Withdraw"})]}):e.jsx(R.MayaSessionExpired,{})}exports.MayaAppWithdrawal=T;