@opexa/portal-components 0.0.2 → 0.0.3

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 (670) hide show
  1. package/dist/components/Account/Account.d.ts +12 -0
  2. package/dist/components/Account/Account.jsx +172 -0
  3. package/dist/components/Account/index.d.ts +1 -0
  4. package/dist/components/Account/index.js +1 -0
  5. package/dist/components/Banner/Banner.d.ts +11 -0
  6. package/dist/components/Banner/Banner.jsx +52 -0
  7. package/dist/components/Banner/index.d.ts +1 -0
  8. package/dist/components/Banner/index.js +1 -0
  9. package/dist/components/BetRecords/BetRecords.d.ts +7 -0
  10. package/dist/components/BetRecords/BetRecords.jsx +4 -0
  11. package/dist/components/BetRecords/BetRecordsContent.d.ts +2 -0
  12. package/dist/components/BetRecords/BetRecordsContent.jsx +413 -0
  13. package/dist/components/BetRecords/index.d.ts +1 -0
  14. package/dist/components/BetRecords/index.js +1 -0
  15. package/dist/components/DepositWithdrawal/AmountChoices.d.ts +11 -0
  16. package/dist/components/DepositWithdrawal/AmountChoices.jsx +31 -0
  17. package/dist/components/DepositWithdrawal/AvailablePromos.d.ts +8 -0
  18. package/dist/components/DepositWithdrawal/AvailablePromos.jsx +78 -0
  19. package/dist/components/DepositWithdrawal/Deposit/Deposit.d.ts +1 -0
  20. package/dist/components/DepositWithdrawal/Deposit/Deposit.jsx +82 -0
  21. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.d.ts +1 -0
  22. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.jsx +275 -0
  23. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.d.ts +1 -0
  24. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.jsx +282 -0
  25. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.d.ts +1 -0
  26. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.jsx +13 -0
  27. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.d.ts +1 -0
  28. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.jsx +275 -0
  29. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.d.ts +1 -0
  30. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.jsx +15 -0
  31. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +22 -0
  32. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.jsx +8 -0
  33. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -0
  34. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +286 -0
  35. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.d.ts +1 -0
  36. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +15 -0
  37. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.d.ts +1 -0
  38. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +13 -0
  39. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.d.ts +1 -0
  40. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +92 -0
  41. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +14 -0
  42. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.jsx +77 -0
  43. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.d.ts +1 -0
  44. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.jsx +15 -0
  45. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +24 -0
  46. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.jsx +8 -0
  47. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -0
  48. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +256 -0
  49. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.d.ts +1 -0
  50. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +14 -0
  51. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.d.ts +1 -0
  52. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +107 -0
  53. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.d.ts +1 -0
  54. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +19 -0
  55. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +15 -0
  56. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.jsx +81 -0
  57. package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +6 -0
  58. package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +101 -0
  59. package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.d.ts +4 -0
  60. package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.jsx +63 -0
  61. package/dist/components/DepositWithdrawal/PaymentMethods.d.ts +10 -0
  62. package/dist/components/DepositWithdrawal/PaymentMethods.jsx +70 -0
  63. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal.d.ts +0 -0
  64. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal.jsx +1 -0
  65. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal.d.ts +0 -0
  66. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal.jsx +1 -0
  67. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal.d.ts +0 -0
  68. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal.jsx +1 -0
  69. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal.d.ts +0 -0
  70. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal.jsx +1 -0
  71. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.d.ts +1 -0
  72. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.jsx +3 -0
  73. package/dist/components/DepositWithdrawal/index.d.ts +1 -0
  74. package/dist/components/DepositWithdrawal/index.js +1 -0
  75. package/dist/components/DepositWithdrawal/utils.d.ts +3 -0
  76. package/dist/components/DepositWithdrawal/utils.js +8 -0
  77. package/dist/components/Disclaimer/Disclaimer.d.ts +5 -0
  78. package/dist/components/Disclaimer/Disclaimer.jsx +45 -0
  79. package/dist/components/Disclaimer/index.d.ts +1 -0
  80. package/dist/components/Disclaimer/index.js +1 -0
  81. package/dist/components/Disclaimer/useDisclaimer.d.ts +4 -0
  82. package/dist/components/Disclaimer/useDisclaimer.jsx +39 -0
  83. package/dist/components/Empty/CloudIcon.d.ts +2 -0
  84. package/dist/components/Empty/CloudIcon.jsx +42 -0
  85. package/dist/components/Empty/Empty.d.ts +9 -0
  86. package/dist/components/Empty/Empty.jsx +16 -0
  87. package/dist/components/Empty/index.d.ts +1 -0
  88. package/dist/components/Empty/index.js +1 -0
  89. package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +3 -0
  90. package/dist/components/FeatureFlagProvider/FeatureFlagContext.jsx +8 -0
  91. package/dist/components/FeatureFlagProvider/FeatureFlagProvider.d.ts +6 -0
  92. package/dist/components/FeatureFlagProvider/FeatureFlagProvider.jsx +19 -0
  93. package/dist/components/FeatureFlagProvider/index.d.ts +2 -0
  94. package/dist/components/FeatureFlagProvider/index.js +3 -0
  95. package/dist/components/FeatureFlagProvider/useFeatureFlag.d.ts +8 -0
  96. package/dist/components/FeatureFlagProvider/useFeatureFlag.js +66 -0
  97. package/dist/components/GameLaunch/GameLaunch.d.ts +5 -0
  98. package/dist/components/GameLaunch/GameLaunch.jsx +225 -0
  99. package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +6 -0
  100. package/dist/components/GameLaunch/GameLaunchTrigger.jsx +107 -0
  101. package/dist/components/GameLaunch/index.d.ts +2 -0
  102. package/dist/components/GameLaunch/index.js +2 -0
  103. package/dist/components/GameProviders/GameProviders.d.ts +14 -0
  104. package/dist/components/GameProviders/GameProviders.jsx +3 -0
  105. package/dist/components/Games/Games.d.ts +10 -0
  106. package/dist/components/Games/Games.jsx +57 -0
  107. package/dist/components/Games/GamesContent.d.ts +2 -0
  108. package/dist/components/Games/GamesContent.jsx +138 -0
  109. package/dist/components/Games/index.d.ts +1 -0
  110. package/dist/components/Games/index.js +1 -0
  111. package/dist/components/JackpotCounter/JackpotCounter.d.ts +6 -0
  112. package/dist/components/JackpotCounter/JackpotCounter.jsx +61 -0
  113. package/dist/components/JackpotCounter/JackpotCounterContent.d.ts +2 -0
  114. package/dist/components/JackpotCounter/JackpotCounterContent.jsx +87 -0
  115. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +6 -0
  116. package/dist/components/JackpotCounter/JackpotCounterItem.jsx +108 -0
  117. package/dist/components/JackpotCounter/index.d.ts +1 -0
  118. package/dist/components/JackpotCounter/index.js +1 -0
  119. package/dist/components/Marquee/Marquee.d.ts +5 -0
  120. package/dist/components/Marquee/Marquee.jsx +14 -0
  121. package/dist/components/Marquee/index.d.ts +1 -0
  122. package/dist/components/Marquee/index.js +1 -0
  123. package/dist/components/PortalProvider/PortalProvider.d.ts +2 -0
  124. package/dist/components/PortalProvider/PortalProvider.jsx +67 -0
  125. package/dist/components/PortalProvider/Providers.d.ts +2 -0
  126. package/dist/components/PortalProvider/Providers.jsx +49 -0
  127. package/dist/components/PortalProvider/index.d.ts +1 -0
  128. package/dist/components/PortalProvider/index.js +1 -0
  129. package/dist/components/Promo/Promo.d.ts +4 -0
  130. package/dist/components/Promo/Promo.jsx +50 -0
  131. package/dist/components/Promo/PromoContent.d.ts +2 -0
  132. package/dist/components/Promo/PromoContent.jsx +18 -0
  133. package/dist/components/Promo/index.d.ts +1 -0
  134. package/dist/components/Promo/index.js +1 -0
  135. package/dist/components/Promos/PromoCarousel.d.ts +2 -0
  136. package/dist/components/Promos/PromoCarousel.jsx +110 -0
  137. package/dist/components/Promos/PromoGrid.d.ts +2 -0
  138. package/dist/components/Promos/PromoGrid.jsx +24 -0
  139. package/dist/components/Promos/PromoItem.d.ts +7 -0
  140. package/dist/components/Promos/PromoItem.jsx +24 -0
  141. package/dist/components/Promos/Promos.d.ts +11 -0
  142. package/dist/components/Promos/Promos.jsx +57 -0
  143. package/dist/components/Promos/PromosContent.d.ts +2 -0
  144. package/dist/components/Promos/PromosContent.jsx +110 -0
  145. package/dist/components/Promos/index.d.ts +1 -0
  146. package/dist/components/Promos/index.js +1 -0
  147. package/dist/components/Protected/Protected.d.ts +6 -0
  148. package/dist/components/Protected/Protected.jsx +9 -0
  149. package/dist/components/Protected/index.d.ts +1 -0
  150. package/dist/components/Protected/index.js +1 -0
  151. package/dist/components/SignIn/SignIn.d.ts +8 -0
  152. package/dist/components/SignIn/SignIn.jsx +39 -0
  153. package/dist/components/SignIn/SignInForm.d.ts +1 -0
  154. package/dist/components/SignIn/SignInForm.jsx +308 -0
  155. package/dist/components/SignIn/index.d.ts +1 -0
  156. package/dist/components/SignIn/index.js +1 -0
  157. package/dist/components/SignUp/SignUp.d.ts +8 -0
  158. package/dist/components/SignUp/SignUp.jsx +37 -0
  159. package/dist/components/SignUp/SignUpForm.d.ts +1 -0
  160. package/dist/components/SignUp/SignUpForm.jsx +312 -0
  161. package/dist/components/SignUp/index.d.ts +1 -0
  162. package/dist/components/SignUp/index.js +1 -0
  163. package/dist/components/TopWins/TopWins.d.ts +5 -0
  164. package/dist/components/TopWins/TopWins.jsx +45 -0
  165. package/dist/components/TopWins/TopWinsContent.d.ts +2 -0
  166. package/dist/components/TopWins/TopWinsContent.jsx +51 -0
  167. package/dist/components/TopWins/index.d.ts +1 -0
  168. package/dist/components/TopWins/index.js +1 -0
  169. package/dist/components/TournamentCounter/TournamentCounter.d.ts +6 -0
  170. package/dist/components/TournamentCounter/TournamentCounter.jsx +54 -0
  171. package/dist/components/TournamentCounter/TournamentCounterContent.d.ts +2 -0
  172. package/dist/components/TournamentCounter/TournamentCounterContent.jsx +79 -0
  173. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +8 -0
  174. package/dist/components/TournamentCounter/TournamentCounterItem.jsx +111 -0
  175. package/dist/components/TournamentCounter/index.d.ts +1 -0
  176. package/dist/components/TournamentCounter/index.js +1 -0
  177. package/dist/components/TransactionRecords/DepositRecordsTable.d.ts +1 -0
  178. package/dist/components/TransactionRecords/DepositRecordsTable.jsx +181 -0
  179. package/dist/components/TransactionRecords/TableFilters.d.ts +26 -0
  180. package/dist/components/TransactionRecords/TableFilters.jsx +359 -0
  181. package/dist/components/TransactionRecords/TransactionRecords.d.ts +7 -0
  182. package/dist/components/TransactionRecords/TransactionRecords.jsx +33 -0
  183. package/dist/components/TransactionRecords/TransactionRecordsTable.d.ts +1 -0
  184. package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +141 -0
  185. package/dist/components/TransactionRecords/WithdrawalRecordsTable.d.ts +1 -0
  186. package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +177 -0
  187. package/dist/components/TransactionRecords/index.d.ts +1 -0
  188. package/dist/components/TransactionRecords/index.js +1 -0
  189. package/dist/components/index.d.ts +18 -0
  190. package/dist/components/index.js +18 -0
  191. package/dist/constants/index.d.ts +10 -0
  192. package/dist/constants/index.js +64 -0
  193. package/dist/handlers.d.ts +4 -6
  194. package/dist/handlers.js +291 -303
  195. package/dist/hooks/useAccountQuery/getAccountQueryKey.d.ts +2 -0
  196. package/dist/hooks/useAccountQuery/getAccountQueryKey.js +1 -0
  197. package/dist/hooks/useAccountQuery/prefetchAccountQuery.d.ts +1 -0
  198. package/dist/hooks/useAccountQuery/prefetchAccountQuery.js +75 -0
  199. package/dist/hooks/useAccountQuery/useAccountQuery.d.ts +3 -0
  200. package/dist/hooks/useAccountQuery/useAccountQuery.js +88 -0
  201. package/dist/hooks/useAuthenticateMutation/getAuthenticateMutationKey.d.ts +2 -0
  202. package/dist/hooks/useAuthenticateMutation/getAuthenticateMutationKey.js +1 -0
  203. package/dist/hooks/useAuthenticateMutation/useAuthenticateMutation.d.ts +3 -0
  204. package/dist/hooks/useAuthenticateMutation/useAuthenticateMutation.js +70 -0
  205. package/dist/hooks/useAvailablePromosQuery/getAvailablePromosQueryKey.d.ts +3 -0
  206. package/dist/hooks/useAvailablePromosQuery/getAvailablePromosQueryKey.js +4 -0
  207. package/dist/hooks/useAvailablePromosQuery/prefetchAvailablePromosQuery.d.ts +2 -0
  208. package/dist/hooks/useAvailablePromosQuery/prefetchAvailablePromosQuery.js +75 -0
  209. package/dist/hooks/useAvailablePromosQuery/useAvailablePromosQuery.d.ts +3 -0
  210. package/dist/hooks/useAvailablePromosQuery/useAvailablePromosQuery.js +88 -0
  211. package/dist/hooks/useBetRecordsQuery/getBetRecordsQueryKey.d.ts +3 -0
  212. package/dist/hooks/useBetRecordsQuery/getBetRecordsQueryKey.js +4 -0
  213. package/dist/hooks/useBetRecordsQuery/prefetchBetRecordsQuery.d.ts +2 -0
  214. package/dist/hooks/useBetRecordsQuery/prefetchBetRecordsQuery.js +75 -0
  215. package/dist/hooks/useBetRecordsQuery/useBetRecordsQuery.d.ts +3 -0
  216. package/dist/hooks/useBetRecordsQuery/useBetRecordsQuery.js +91 -0
  217. package/dist/hooks/useCashbacksQuery/getCashbacksQueryKey.d.ts +2 -0
  218. package/dist/hooks/useCashbacksQuery/getCashbacksQueryKey.js +1 -0
  219. package/dist/hooks/useCashbacksQuery/prefetchCashbacksQuery.d.ts +1 -0
  220. package/dist/hooks/useCashbacksQuery/prefetchCashbacksQuery.js +67 -0
  221. package/dist/hooks/useCashbacksQuery/useCashbacksQuery.d.ts +3 -0
  222. package/dist/hooks/useCashbacksQuery/useCashbacksQuery.js +68 -0
  223. package/dist/hooks/useControllableState.d.ts +8 -0
  224. package/dist/hooks/useControllableState.js +47 -0
  225. package/dist/hooks/useCooldown.d.ts +43 -0
  226. package/dist/hooks/useCooldown.js +101 -0
  227. package/dist/hooks/useCreateGCashDepositMutation/getCreateGCashDepositMutationKey.d.ts +2 -0
  228. package/dist/hooks/useCreateGCashDepositMutation/getCreateGCashDepositMutationKey.js +3 -0
  229. package/dist/hooks/useCreateGCashDepositMutation/useCreateGCashDepositMutation.d.ts +4 -0
  230. package/dist/hooks/useCreateGCashDepositMutation/useCreateGCashDepositMutation.js +125 -0
  231. package/dist/hooks/useCreateGameSessionMutation/getCreateGameSessionMutationKey.d.ts +2 -0
  232. package/dist/hooks/useCreateGameSessionMutation/getCreateGameSessionMutationKey.js +3 -0
  233. package/dist/hooks/useCreateGameSessionMutation/useCreateGameSessionMutation.d.ts +3 -0
  234. package/dist/hooks/useCreateGameSessionMutation/useCreateGameSessionMutation.js +171 -0
  235. package/dist/hooks/useCreateMayaAppDepositMutation/getCreateMayaAppDepositMutationKey.d.ts +2 -0
  236. package/dist/hooks/useCreateMayaAppDepositMutation/getCreateMayaAppDepositMutationKey.js +3 -0
  237. package/dist/hooks/useCreateMayaAppDepositMutation/useCreateMayaAppDepositMutation.d.ts +4 -0
  238. package/dist/hooks/useCreateMayaAppDepositMutation/useCreateMayaAppDepositMutation.js +125 -0
  239. package/dist/hooks/useCreateMayaDepositMutation/getCreateMayaDepositMutationKey.d.ts +2 -0
  240. package/dist/hooks/useCreateMayaDepositMutation/getCreateMayaDepositMutationKey.js +3 -0
  241. package/dist/hooks/useCreateMayaDepositMutation/useCreateMayaDepositMutation.d.ts +4 -0
  242. package/dist/hooks/useCreateMayaDepositMutation/useCreateMayaDepositMutation.js +125 -0
  243. package/dist/hooks/useCreateOnlineBankDepositMutation/getCreateOnlineBankDepositMutationKey.d.ts +2 -0
  244. package/dist/hooks/useCreateOnlineBankDepositMutation/getCreateOnlineBankDepositMutationKey.js +3 -0
  245. package/dist/hooks/useCreateOnlineBankDepositMutation/useCreateOnlineBankDepositMutation.d.ts +4 -0
  246. package/dist/hooks/useCreateOnlineBankDepositMutation/useCreateOnlineBankDepositMutation.js +125 -0
  247. package/dist/hooks/useCreateQRPHDepositMutation/getCreateQRPHDepositMutationKey.d.ts +2 -0
  248. package/dist/hooks/useCreateQRPHDepositMutation/getCreateQRPHDepositMutationKey.js +3 -0
  249. package/dist/hooks/useCreateQRPHDepositMutation/useCreateQRPHDepositMutation.d.ts +4 -0
  250. package/dist/hooks/useCreateQRPHDepositMutation/useCreateQRPHDepositMutation.js +125 -0
  251. package/dist/hooks/useDepositQuery/getDepositQueryKey.d.ts +2 -0
  252. package/dist/hooks/useDepositQuery/getDepositQueryKey.js +4 -0
  253. package/dist/hooks/useDepositQuery/prefetchDepositQuery.d.ts +1 -0
  254. package/dist/hooks/useDepositQuery/prefetchDepositQuery.js +75 -0
  255. package/dist/hooks/useDepositQuery/useDepositQuery.d.ts +3 -0
  256. package/dist/hooks/useDepositQuery/useDepositQuery.js +88 -0
  257. package/dist/hooks/useDepositRecordsQuery/getDepositRecordsQueryKey.d.ts +3 -0
  258. package/dist/hooks/useDepositRecordsQuery/getDepositRecordsQueryKey.js +4 -0
  259. package/dist/hooks/useDepositRecordsQuery/prefetchDepositRecordsQuery.d.ts +2 -0
  260. package/dist/hooks/useDepositRecordsQuery/prefetchDepositRecordsQuery.js +75 -0
  261. package/dist/hooks/useDepositRecordsQuery/useDepositRecordsQuery.d.ts +3 -0
  262. package/dist/hooks/useDepositRecordsQuery/useDepositRecordsQuery.js +93 -0
  263. package/dist/hooks/useDepositsCountQuery/getDepositsCountQueryKey.d.ts +2 -0
  264. package/dist/hooks/useDepositsCountQuery/getDepositsCountQueryKey.js +3 -0
  265. package/dist/hooks/useDepositsCountQuery/prefetchDepositsCountQuery.d.ts +1 -0
  266. package/dist/hooks/useDepositsCountQuery/prefetchDepositsCountQuery.js +75 -0
  267. package/dist/hooks/useDepositsCountQuery/useDepositsCountQuery.d.ts +2 -0
  268. package/dist/hooks/useDepositsCountQuery/useDepositsCountQuery.js +88 -0
  269. package/dist/hooks/useDisclosure.d.ts +11 -0
  270. package/dist/hooks/useDisclosure.js +13 -0
  271. package/dist/hooks/useEndGameSessionMutation/getEndGameSessionMutationKey.d.ts +2 -0
  272. package/dist/hooks/useEndGameSessionMutation/getEndGameSessionMutationKey.js +3 -0
  273. package/dist/hooks/useEndGameSessionMutation/useEndGameSessionMutation.d.ts +6 -0
  274. package/dist/hooks/useEndGameSessionMutation/useEndGameSessionMutation.js +95 -0
  275. package/dist/hooks/useGamesQuery/getGamesQueryKey.d.ts +3 -0
  276. package/dist/hooks/useGamesQuery/getGamesQueryKey.js +1 -0
  277. package/dist/hooks/useGamesQuery/prefetchGamesQuery.d.ts +2 -0
  278. package/dist/hooks/useGamesQuery/prefetchGamesQuery.js +80 -0
  279. package/dist/hooks/useGamesQuery/useGamesQuery.d.ts +3 -0
  280. package/dist/hooks/useGamesQuery/useGamesQuery.js +33 -0
  281. package/dist/hooks/useGlobalStore.d.ts +42 -0
  282. package/dist/hooks/useGlobalStore.js +76 -0
  283. package/dist/hooks/useInfiniteQueryHelper.d.ts +31 -0
  284. package/dist/hooks/useInfiniteQueryHelper.js +121 -0
  285. package/dist/hooks/useInstapayBankListQuery/getInstapayBankListQueryKey.d.ts +2 -0
  286. package/dist/hooks/useInstapayBankListQuery/getInstapayBankListQueryKey.js +3 -0
  287. package/dist/hooks/useInstapayBankListQuery/prefetchInstapayBankListQuery.d.ts +1 -0
  288. package/dist/hooks/useInstapayBankListQuery/prefetchInstapayBankListQuery.js +75 -0
  289. package/dist/hooks/useInstapayBankListQuery/useInstapayBankListQuery.d.ts +3 -0
  290. package/dist/hooks/useInstapayBankListQuery/useInstapayBankListQuery.js +88 -0
  291. package/dist/hooks/useIsMayaSessionValidQuery/getIsMayaSessionValidQueryKey.d.ts +2 -0
  292. package/dist/hooks/useIsMayaSessionValidQuery/getIsMayaSessionValidQueryKey.js +3 -0
  293. package/dist/hooks/useIsMayaSessionValidQuery/prefetchIsMayaSessionValidQuery.d.ts +1 -0
  294. package/dist/hooks/useIsMayaSessionValidQuery/prefetchIsMayaSessionValidQuery.js +84 -0
  295. package/dist/hooks/useIsMayaSessionValidQuery/useIsMayaSessionValidQuery.d.ts +2 -0
  296. package/dist/hooks/useIsMayaSessionValidQuery/useIsMayaSessionValidQuery.js +97 -0
  297. package/dist/hooks/useJackpotsQuery/getJackpotsQueryKey.d.ts +3 -0
  298. package/dist/hooks/useJackpotsQuery/getJackpotsQueryKey.js +1 -0
  299. package/dist/hooks/useJackpotsQuery/prefetchJackpotsQuery.d.ts +2 -0
  300. package/dist/hooks/useJackpotsQuery/prefetchJackpotsQuery.js +68 -0
  301. package/dist/hooks/useJackpotsQuery/useJackpotsQuery.d.ts +3 -0
  302. package/dist/hooks/useJackpotsQuery/useJackpotsQuery.js +32 -0
  303. package/dist/hooks/useLocaleInfo.d.ts +1 -0
  304. package/dist/hooks/useLocaleInfo.js +7 -0
  305. package/dist/hooks/useMemberVerificationQuery/getMemberVerificationQueryKey.d.ts +2 -0
  306. package/dist/hooks/useMemberVerificationQuery/getMemberVerificationQueryKey.js +1 -0
  307. package/dist/hooks/useMemberVerificationQuery/prefetchMemberVerificationQuery.d.ts +1 -0
  308. package/dist/hooks/useMemberVerificationQuery/prefetchMemberVerificationQuery.js +75 -0
  309. package/dist/hooks/useMemberVerificationQuery/useMemberVerificationQuery.d.ts +3 -0
  310. package/dist/hooks/useMemberVerificationQuery/useMemberVerificationQuery.js +87 -0
  311. package/dist/hooks/useMobileNumberParser.d.ts +8 -0
  312. package/dist/hooks/useMobileNumberParser.js +63 -0
  313. package/dist/hooks/useOnMMA.d.ts +2 -0
  314. package/dist/hooks/useOnMMA.js +5 -0
  315. package/dist/hooks/usePaymentSettingsQuery/getPaymentSettingsQueryKey.d.ts +2 -0
  316. package/dist/hooks/usePaymentSettingsQuery/getPaymentSettingsQueryKey.js +3 -0
  317. package/dist/hooks/usePaymentSettingsQuery/prefetchPaymentSettingsQuery.d.ts +1 -0
  318. package/dist/hooks/usePaymentSettingsQuery/prefetchPaymentSettingsQuery.js +75 -0
  319. package/dist/hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.d.ts +3 -0
  320. package/dist/hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.js +88 -0
  321. package/dist/hooks/usePlatformQuery/getPlatformQueryKey.d.ts +2 -0
  322. package/dist/hooks/usePlatformQuery/getPlatformQueryKey.js +1 -0
  323. package/dist/hooks/usePlatformQuery/prefetchPlatformQuery.d.ts +1 -0
  324. package/dist/hooks/usePlatformQuery/prefetchPlatformQuery.js +70 -0
  325. package/dist/hooks/usePlatformQuery/usePlatformQuery.d.ts +3 -0
  326. package/dist/hooks/usePlatformQuery/usePlatformQuery.js +65 -0
  327. package/dist/hooks/usePromoQuery/getPromoQueryKey.d.ts +2 -0
  328. package/dist/hooks/usePromoQuery/getPromoQueryKey.js +1 -0
  329. package/dist/hooks/usePromoQuery/prefetchPromoQuery.d.ts +1 -0
  330. package/dist/hooks/usePromoQuery/prefetchPromoQuery.js +67 -0
  331. package/dist/hooks/usePromoQuery/usePromoQuery.d.ts +3 -0
  332. package/dist/hooks/usePromoQuery/usePromoQuery.js +68 -0
  333. package/dist/hooks/usePromosQuery/getPromosQueryKey.d.ts +2 -0
  334. package/dist/hooks/usePromosQuery/getPromosQueryKey.js +1 -0
  335. package/dist/hooks/usePromosQuery/prefetchPromosQuery.d.ts +1 -0
  336. package/dist/hooks/usePromosQuery/prefetchPromosQuery.js +67 -0
  337. package/dist/hooks/usePromosQuery/usePromosQuery.d.ts +3 -0
  338. package/dist/hooks/usePromosQuery/usePromosQuery.js +68 -0
  339. package/dist/hooks/useSendVerificationCodeMutation/getSendVerificationCodeMutationKey.d.ts +2 -0
  340. package/dist/hooks/useSendVerificationCodeMutation/getSendVerificationCodeMutationKey.js +3 -0
  341. package/dist/hooks/useSendVerificationCodeMutation/useSendVerificationCodeMutation.d.ts +3 -0
  342. package/dist/hooks/useSendVerificationCodeMutation/useSendVerificationCodeMutation.js +68 -0
  343. package/dist/hooks/useSessionQuery/getSessionQueryKey.d.ts +2 -0
  344. package/dist/hooks/useSessionQuery/getSessionQueryKey.js +1 -0
  345. package/dist/hooks/useSessionQuery/prefetchSessionQuery.d.ts +1 -0
  346. package/dist/hooks/useSessionQuery/prefetchSessionQuery.js +53 -0
  347. package/dist/hooks/useSessionQuery/useSessionQuery.d.ts +2 -0
  348. package/dist/hooks/useSessionQuery/useSessionQuery.js +60 -0
  349. package/dist/hooks/useSignOutMutation/getSignOutMutationKey.d.ts +2 -0
  350. package/dist/hooks/useSignOutMutation/getSignOutMutationKey.js +1 -0
  351. package/dist/hooks/useSignOutMutation/useSignOutMutation.d.ts +2 -0
  352. package/dist/hooks/useSignOutMutation/useSignOutMutation.js +69 -0
  353. package/dist/hooks/useSignUpMutation/getSignUpMutationKey.d.ts +2 -0
  354. package/dist/hooks/useSignUpMutation/getSignUpMutationKey.js +1 -0
  355. package/dist/hooks/useSignUpMutation/useSignUpMutation.d.ts +5 -0
  356. package/dist/hooks/useSignUpMutation/useSignUpMutation.js +65 -0
  357. package/dist/hooks/useSigninMutation/getSignInMutationKey.d.ts +2 -0
  358. package/dist/hooks/useSigninMutation/getSignInMutationKey.js +1 -0
  359. package/dist/hooks/useSigninMutation/useSignInMutation.d.ts +4 -0
  360. package/dist/hooks/useSigninMutation/useSignInMutation.js +73 -0
  361. package/dist/hooks/useSiteQuery/getSiteQueryKey.d.ts +2 -0
  362. package/dist/hooks/useSiteQuery/getSiteQueryKey.js +1 -0
  363. package/dist/hooks/useSiteQuery/prefetchSiteQuery.d.ts +1 -0
  364. package/dist/hooks/useSiteQuery/prefetchSiteQuery.js +70 -0
  365. package/dist/hooks/useSiteQuery/useSiteQuery.d.ts +3 -0
  366. package/dist/hooks/useSiteQuery/useSiteQuery.js +68 -0
  367. package/dist/hooks/useTopWinsQuery/getTopWinsQueryKey.d.ts +2 -0
  368. package/dist/hooks/useTopWinsQuery/getTopWinsQueryKey.js +1 -0
  369. package/dist/hooks/useTopWinsQuery/prefetchTopWinsQuery.d.ts +1 -0
  370. package/dist/hooks/useTopWinsQuery/prefetchTopWinsQuery.js +67 -0
  371. package/dist/hooks/useTopWinsQuery/useTopWinsQuery.d.ts +3 -0
  372. package/dist/hooks/useTopWinsQuery/useTopWinsQuery.js +66 -0
  373. package/dist/hooks/useTournamentsQuery/getTournamentsQueryKey.d.ts +3 -0
  374. package/dist/hooks/useTournamentsQuery/getTournamentsQueryKey.js +4 -0
  375. package/dist/hooks/useTournamentsQuery/prefetchTournamentsQuery.d.ts +2 -0
  376. package/dist/hooks/useTournamentsQuery/prefetchTournamentsQuery.js +68 -0
  377. package/dist/hooks/useTournamentsQuery/useTournamentsQuery.d.ts +3 -0
  378. package/dist/hooks/useTournamentsQuery/useTournamentsQuery.js +33 -0
  379. package/dist/hooks/useTransactionRecordsQuery/getTransactionRecordsQueryKey.d.ts +3 -0
  380. package/dist/hooks/useTransactionRecordsQuery/getTransactionRecordsQueryKey.js +4 -0
  381. package/dist/hooks/useTransactionRecordsQuery/prefetchTransactionRecordsQuery.d.ts +2 -0
  382. package/dist/hooks/useTransactionRecordsQuery/prefetchTransactionRecordsQuery.js +75 -0
  383. package/dist/hooks/useTransactionRecordsQuery/useTransactionRecordsQuery.d.ts +3 -0
  384. package/dist/hooks/useTransactionRecordsQuery/useTransactionRecordsQuery.js +93 -0
  385. package/dist/hooks/useWalletQuery/getWalletQueryKey.d.ts +2 -0
  386. package/dist/hooks/useWalletQuery/getWalletQueryKey.js +1 -0
  387. package/dist/hooks/useWalletQuery/prefetchWalletQuery.d.ts +1 -0
  388. package/dist/hooks/useWalletQuery/prefetchWalletQuery.js +75 -0
  389. package/dist/hooks/useWalletQuery/useWalletQuery.d.ts +3 -0
  390. package/dist/hooks/useWalletQuery/useWalletQuery.js +87 -0
  391. package/dist/hooks/useWithdrawalRecordsQuery/getWithdrawalRecordsQueryKey.d.ts +3 -0
  392. package/dist/hooks/useWithdrawalRecordsQuery/getWithdrawalRecordsQueryKey.js +4 -0
  393. package/dist/hooks/useWithdrawalRecordsQuery/prefetchWithdrawalRecordsQuery.d.ts +2 -0
  394. package/dist/hooks/useWithdrawalRecordsQuery/prefetchWithdrawalRecordsQuery.js +75 -0
  395. package/dist/hooks/useWithdrawalRecordsQuery/useWithdrawalRecordsQuery.d.ts +3 -0
  396. package/dist/hooks/useWithdrawalRecordsQuery/useWithdrawalRecordsQuery.js +94 -0
  397. package/dist/icons/AlertCircleIcon.d.ts +2 -0
  398. package/dist/icons/AlertCircleIcon.jsx +5 -0
  399. package/dist/icons/AlertTriangle.d.ts +2 -0
  400. package/dist/icons/AlertTriangle.jsx +5 -0
  401. package/dist/icons/ArrowLeftIcon.d.ts +2 -0
  402. package/dist/icons/ArrowLeftIcon.jsx +5 -0
  403. package/dist/icons/ArrowNarrowUpRightIcon.d.ts +2 -0
  404. package/dist/icons/ArrowNarrowUpRightIcon.jsx +5 -0
  405. package/dist/icons/ArrowRightIcon.d.ts +2 -0
  406. package/dist/icons/ArrowRightIcon.jsx +5 -0
  407. package/dist/icons/Award02Icon.d.ts +2 -0
  408. package/dist/icons/Award02Icon.jsx +5 -0
  409. package/dist/icons/BankIcon.d.ts +2 -0
  410. package/dist/icons/BankIcon.jsx +5 -0
  411. package/dist/icons/CheckCircleBrokenIcon.d.ts +2 -0
  412. package/dist/icons/CheckCircleBrokenIcon.jsx +5 -0
  413. package/dist/icons/CheckIcon.d.ts +2 -0
  414. package/dist/icons/CheckIcon.jsx +5 -0
  415. package/dist/icons/ChevronDownIcon.d.ts +2 -0
  416. package/dist/icons/ChevronDownIcon.jsx +5 -0
  417. package/dist/icons/ChevronLeftIcon.d.ts +2 -0
  418. package/dist/icons/ChevronLeftIcon.jsx +5 -0
  419. package/dist/icons/ChevronRightIcon.d.ts +2 -0
  420. package/dist/icons/ChevronRightIcon.jsx +5 -0
  421. package/dist/icons/ChevronUpIcon.d.ts +2 -0
  422. package/dist/icons/ChevronUpIcon.jsx +5 -0
  423. package/dist/icons/Expand03Icon.d.ts +2 -0
  424. package/dist/icons/Expand03Icon.jsx +5 -0
  425. package/dist/icons/FacebookIcon.d.ts +2 -0
  426. package/dist/icons/FacebookIcon.jsx +6 -0
  427. package/dist/icons/File02Icon.d.ts +2 -0
  428. package/dist/icons/File02Icon.jsx +5 -0
  429. package/dist/icons/Gift01Icon.d.ts +2 -0
  430. package/dist/icons/Gift01Icon.jsx +5 -0
  431. package/dist/icons/GoogleIcon.d.ts +2 -0
  432. package/dist/icons/GoogleIcon.jsx +9 -0
  433. package/dist/icons/Logout01Icon.d.ts +2 -0
  434. package/dist/icons/Logout01Icon.jsx +5 -0
  435. package/dist/icons/QrCode02Icon.d.ts +2 -0
  436. package/dist/icons/QrCode02Icon.jsx +5 -0
  437. package/dist/icons/SpinnerIcon.d.ts +2 -0
  438. package/dist/icons/SpinnerIcon.jsx +9 -0
  439. package/dist/icons/User01Icon.d.ts +2 -0
  440. package/dist/icons/User01Icon.jsx +5 -0
  441. package/dist/icons/Wallet02Icon.d.ts +2 -0
  442. package/dist/icons/Wallet02Icon.jsx +5 -0
  443. package/dist/icons/XIcon.d.ts +1 -0
  444. package/dist/icons/XIcon.jsx +5 -0
  445. package/dist/index.d.ts +1 -144
  446. package/dist/index.js +1 -7654
  447. package/dist/middleware.d.ts +2 -5
  448. package/dist/middleware.js +90 -90
  449. package/dist/services/client/authenticate.d.ts +2 -0
  450. package/dist/services/client/authenticate.js +76 -0
  451. package/dist/services/client/getSession.d.ts +2 -0
  452. package/dist/services/client/getSession.js +59 -0
  453. package/dist/services/client/signIn.d.ts +3 -0
  454. package/dist/services/client/signIn.js +77 -0
  455. package/dist/services/client/signOut.d.ts +1 -0
  456. package/dist/services/client/signOut.js +61 -0
  457. package/dist/services/server/authenticate.d.ts +2 -0
  458. package/dist/services/server/authenticate.js +69 -0
  459. package/dist/services/server/getSession.d.ts +2 -0
  460. package/dist/services/server/getSession.js +55 -0
  461. package/dist/services/server/signIn.d.ts +2 -0
  462. package/dist/services/server/signIn.js +74 -0
  463. package/dist/services/server/signOut.d.ts +1 -0
  464. package/dist/services/server/signOut.js +67 -0
  465. package/dist/tsconfig.build.tsbuildinfo +1 -0
  466. package/dist/types/index.d.ts +63 -0
  467. package/dist/types/index.js +1 -0
  468. package/dist/ui/AlertDialog/AlertDialog.d.ts +508 -0
  469. package/dist/ui/AlertDialog/AlertDialog.jsx +17 -0
  470. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +46 -0
  471. package/dist/ui/AlertDialog/alertDialog.recipe.js +17 -0
  472. package/dist/ui/AlertDialog/index.d.ts +1 -0
  473. package/dist/ui/AlertDialog/index.js +1 -0
  474. package/dist/ui/Avatar/Avatar.d.ts +68 -0
  475. package/dist/ui/Avatar/Avatar.jsx +9 -0
  476. package/dist/ui/Avatar/avatar.recipe.d.ts +22 -0
  477. package/dist/ui/Avatar/avatar.recipe.js +21 -0
  478. package/dist/ui/Avatar/index.d.ts +1 -0
  479. package/dist/ui/Avatar/index.js +1 -0
  480. package/dist/ui/Badge/Badge.d.ts +167 -0
  481. package/dist/ui/Badge/Badge.jsx +10 -0
  482. package/dist/ui/Badge/badge.anatomy.d.ts +1 -0
  483. package/dist/ui/Badge/badge.anatomy.js +2 -0
  484. package/dist/ui/Badge/badge.recipe.d.ts +52 -0
  485. package/dist/ui/Badge/badge.recipe.js +67 -0
  486. package/dist/ui/Badge/index.d.ts +1 -0
  487. package/dist/ui/Badge/index.js +1 -0
  488. package/dist/ui/Button/Button.d.ts +7 -0
  489. package/dist/ui/Button/Button.jsx +20 -0
  490. package/dist/ui/Button/button.recipe.d.ts +57 -0
  491. package/dist/ui/Button/button.recipe.js +46 -0
  492. package/dist/ui/Button/index.d.ts +1 -0
  493. package/dist/ui/Button/index.js +1 -0
  494. package/dist/ui/Checkbox/Checkbox.d.ts +286 -0
  495. package/dist/ui/Checkbox/Checkbox.jsx +13 -0
  496. package/dist/ui/Checkbox/checkbox.recipe.d.ts +40 -0
  497. package/dist/ui/Checkbox/checkbox.recipe.js +40 -0
  498. package/dist/ui/Checkbox/index.d.ts +1 -0
  499. package/dist/ui/Checkbox/index.js +1 -0
  500. package/dist/ui/Clipboard/Clipboard.d.ts +224 -0
  501. package/dist/ui/Clipboard/Clipboard.jsx +12 -0
  502. package/dist/ui/Clipboard/clipboard.recipe.d.ts +37 -0
  503. package/dist/ui/Clipboard/clipboard.recipe.js +38 -0
  504. package/dist/ui/Clipboard/index.d.ts +1 -0
  505. package/dist/ui/Clipboard/index.js +1 -0
  506. package/dist/ui/Combobox/Combobox.d.ts +1 -0
  507. package/dist/ui/Combobox/Combobox.jsx +2 -0
  508. package/dist/ui/Combobox/combobox.recipe.d.ts +0 -0
  509. package/dist/ui/Combobox/combobox.recipe.js +1 -0
  510. package/dist/ui/Combobox/index.d.ts +1 -0
  511. package/dist/ui/Combobox/index.js +1 -0
  512. package/dist/ui/DatePicker/DatePicker.d.ts +2114 -0
  513. package/dist/ui/DatePicker/DatePicker.jsx +30 -0
  514. package/dist/ui/DatePicker/datePicker.recipe.d.ts +88 -0
  515. package/dist/ui/DatePicker/datePicker.recipe.js +15 -0
  516. package/dist/ui/DatePicker/index.d.ts +1 -0
  517. package/dist/ui/DatePicker/index.js +1 -0
  518. package/dist/ui/Dialog/Dialog.d.ts +508 -0
  519. package/dist/ui/Dialog/Dialog.jsx +17 -0
  520. package/dist/ui/Dialog/dialog.recipe.d.ts +46 -0
  521. package/dist/ui/Dialog/dialog.recipe.js +12 -0
  522. package/dist/ui/Dialog/index.d.ts +1 -0
  523. package/dist/ui/Dialog/index.js +1 -0
  524. package/dist/ui/Drawer/Drawer.d.ts +310 -0
  525. package/dist/ui/Drawer/Drawer.jsx +17 -0
  526. package/dist/ui/Drawer/drawer.recipe.d.ts +28 -0
  527. package/dist/ui/Drawer/drawer.recipe.js +24 -0
  528. package/dist/ui/Drawer/index.d.ts +1 -0
  529. package/dist/ui/Drawer/index.js +1 -0
  530. package/dist/ui/Field/Field.d.ts +303 -0
  531. package/dist/ui/Field/Field.jsx +13 -0
  532. package/dist/ui/Field/field.recipe.d.ts +43 -0
  533. package/dist/ui/Field/field.recipe.js +47 -0
  534. package/dist/ui/Field/index.d.ts +1 -0
  535. package/dist/ui/Field/index.js +1 -0
  536. package/dist/ui/IconButton/IconButton.d.ts +7 -0
  537. package/dist/ui/IconButton/IconButton.jsx +20 -0
  538. package/dist/ui/IconButton/iconButton.recipe.d.ts +80 -0
  539. package/dist/ui/IconButton/iconButton.recipe.js +17 -0
  540. package/dist/ui/IconButton/index.d.ts +1 -0
  541. package/dist/ui/IconButton/index.js +1 -0
  542. package/dist/ui/Menu/Menu.d.ts +2 -0
  543. package/dist/ui/Menu/Menu.jsx +3 -0
  544. package/dist/ui/Menu/index.d.ts +1 -0
  545. package/dist/ui/Menu/index.js +1 -0
  546. package/dist/ui/Menu/menu.recipe.d.ts +0 -0
  547. package/dist/ui/Menu/menu.recipe.js +1 -0
  548. package/dist/ui/NumberInput/NumberInput.d.ts +202 -0
  549. package/dist/ui/NumberInput/NumberInput.jsx +14 -0
  550. package/dist/ui/NumberInput/index.d.ts +1 -0
  551. package/dist/ui/NumberInput/index.js +1 -0
  552. package/dist/ui/NumberInput/numberInput.recipe.d.ts +25 -0
  553. package/dist/ui/NumberInput/numberInput.recipe.js +24 -0
  554. package/dist/ui/PinInput/PinInput.d.ts +163 -0
  555. package/dist/ui/PinInput/PinInput.jsx +11 -0
  556. package/dist/ui/PinInput/index.d.ts +1 -0
  557. package/dist/ui/PinInput/index.js +1 -0
  558. package/dist/ui/PinInput/pinInput.recipe.d.ts +40 -0
  559. package/dist/ui/PinInput/pinInput.recipe.js +38 -0
  560. package/dist/ui/Popover/Popover.d.ts +508 -0
  561. package/dist/ui/Popover/Popover.jsx +17 -0
  562. package/dist/ui/Popover/index.d.ts +1 -0
  563. package/dist/ui/Popover/index.js +1 -0
  564. package/dist/ui/Popover/popover.recipe.d.ts +46 -0
  565. package/dist/ui/Popover/popover.recipe.js +9 -0
  566. package/dist/ui/Presence.d.ts +2 -0
  567. package/dist/ui/Presence.jsx +5 -0
  568. package/dist/ui/Progress/Progress.d.ts +1 -0
  569. package/dist/ui/Progress/Progress.jsx +2 -0
  570. package/dist/ui/Progress/index.d.ts +1 -0
  571. package/dist/ui/Progress/index.js +1 -0
  572. package/dist/ui/Progress/progress.recipe.d.ts +0 -0
  573. package/dist/ui/Progress/progress.recipe.js +1 -0
  574. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +226 -0
  575. package/dist/ui/SegmentGroup/SegmentGroup.jsx +14 -0
  576. package/dist/ui/SegmentGroup/index.d.ts +1 -0
  577. package/dist/ui/SegmentGroup/index.js +1 -0
  578. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +37 -0
  579. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +33 -0
  580. package/dist/ui/Select/Select.d.ts +739 -0
  581. package/dist/ui/Select/Select.jsx +24 -0
  582. package/dist/ui/Select/index.d.ts +1 -0
  583. package/dist/ui/Select/index.js +1 -0
  584. package/dist/ui/Select/select.recipe.d.ts +49 -0
  585. package/dist/ui/Select/select.recipe.js +37 -0
  586. package/dist/ui/Table/Table.d.ts +301 -0
  587. package/dist/ui/Table/Table.jsx +12 -0
  588. package/dist/ui/Table/index.d.ts +1 -0
  589. package/dist/ui/Table/index.js +1 -0
  590. package/dist/ui/Table/table.anatomy.d.ts +1 -0
  591. package/dist/ui/Table/table.anatomy.js +2 -0
  592. package/dist/ui/Table/table.recipe.d.ts +43 -0
  593. package/dist/ui/Table/table.recipe.js +27 -0
  594. package/dist/ui/Tabs/Tabs.d.ts +187 -0
  595. package/dist/ui/Tabs/Tabs.jsx +11 -0
  596. package/dist/ui/Tabs/index.d.ts +1 -0
  597. package/dist/ui/Tabs/index.js +1 -0
  598. package/dist/ui/Tabs/tabs.recipe.d.ts +37 -0
  599. package/dist/ui/Tabs/tabs.recipe.js +33 -0
  600. package/dist/ui/Tooltip/Tooltip.d.ts +1 -0
  601. package/dist/ui/Tooltip/Tooltip.jsx +2 -0
  602. package/dist/ui/Tooltip/index.d.ts +1 -0
  603. package/dist/ui/Tooltip/index.js +1 -0
  604. package/dist/ui/Tooltip/tooltip.recipe.d.ts +0 -0
  605. package/dist/ui/Tooltip/tooltip.recipe.js +1 -0
  606. package/dist/ui/index.d.ts +23 -0
  607. package/dist/ui/index.js +23 -0
  608. package/dist/utils/anatomyToRecipeSlots.d.ts +6 -0
  609. package/dist/utils/anatomyToRecipeSlots.js +13 -0
  610. package/dist/utils/capitalize.d.ts +40 -0
  611. package/dist/utils/capitalize.js +47 -0
  612. package/dist/utils/createPoll.d.ts +28 -0
  613. package/dist/utils/createPoll.js +104 -0
  614. package/dist/utils/createRecipeContext.d.ts +15 -0
  615. package/dist/utils/createRecipeContext.jsx +71 -0
  616. package/dist/utils/createSplitProps.d.ts +3 -0
  617. package/dist/utils/createSplitProps.js +19 -0
  618. package/dist/utils/dataAttr.d.ts +1 -0
  619. package/dist/utils/dataAttr.js +3 -0
  620. package/dist/utils/formatNumber.d.ts +21 -0
  621. package/dist/utils/formatNumber.js +45 -0
  622. package/dist/utils/getGameImageUrl.d.ts +12 -0
  623. package/dist/utils/getGameImageUrl.js +10 -0
  624. package/dist/utils/getLocaleInfo.d.ts +79 -0
  625. package/dist/utils/getLocaleInfo.jsx +237 -0
  626. package/dist/utils/getQueryClient.d.ts +2 -0
  627. package/dist/utils/getQueryClient.js +26 -0
  628. package/dist/utils/isMobile.d.ts +5 -0
  629. package/dist/utils/isMobile.js +16 -0
  630. package/dist/utils/parseDecimal.d.ts +2 -0
  631. package/dist/utils/parseDecimal.js +18 -0
  632. package/dist/utils/toaster.d.ts +2 -0
  633. package/dist/utils/toaster.js +8 -0
  634. package/package.json +156 -13
  635. package/dist/JackpotCounter.module-5D2TMSET.module.css +0 -46
  636. package/dist/QRPh-LURVHEVK.png +0 -0
  637. package/dist/ball-TSKR3KCL.png +0 -0
  638. package/dist/card-DTJVRZI7.png +0 -0
  639. package/dist/chunk-CA3CKIFK.mjs +0 -74
  640. package/dist/chunk-CA3CKIFK.mjs.map +0 -1
  641. package/dist/chunk-J5LGTIGS.mjs +0 -10
  642. package/dist/chunk-J5LGTIGS.mjs.map +0 -1
  643. package/dist/chunk-WGWFJYET.mjs +0 -1229
  644. package/dist/chunk-WGWFJYET.mjs.map +0 -1
  645. package/dist/close-chest-T4YK5KYS.png +0 -0
  646. package/dist/gcash-3TV2ZD5Z.png +0 -0
  647. package/dist/handlers.d.mts +0 -43
  648. package/dist/handlers.js.map +0 -1
  649. package/dist/handlers.mjs +0 -267
  650. package/dist/handlers.mjs.map +0 -1
  651. package/dist/index.d.mts +0 -144
  652. package/dist/index.js.map +0 -1
  653. package/dist/index.mjs +0 -6422
  654. package/dist/index.mjs.map +0 -1
  655. package/dist/maya-2LESMCYJ.png +0 -0
  656. package/dist/middleware.d.mts +0 -8
  657. package/dist/middleware.js.map +0 -1
  658. package/dist/middleware.mjs +0 -45
  659. package/dist/middleware.mjs.map +0 -1
  660. package/dist/online-bank-ZRRABICE.png +0 -0
  661. package/dist/open-chest-XMGW5QZE.png +0 -0
  662. package/dist/pagcor-AFUY5PSY.png +0 -0
  663. package/dist/responsible-gaming-MQQBK5RV.png +0 -0
  664. package/dist/trophy-QC26LEAT.png +0 -0
  665. package/dist/ui.d.mts +0 -6904
  666. package/dist/ui.d.ts +0 -6904
  667. package/dist/ui.js +0 -1280
  668. package/dist/ui.js.map +0 -1
  669. package/dist/ui.mjs +0 -48
  670. package/dist/ui.mjs.map +0 -1
@@ -0,0 +1,171 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { createGameSession, createGameSession__legacy, getGameSession, getGameSession__legacy, } from '@opexa/portal-sdk-core';
49
+ import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
50
+ import { useMutation } from '@tanstack/react-query';
51
+ import invariant from 'tiny-invariant';
52
+ import { ENVIRONMENT, LEGACY_GAME_PROVIDERS, PLATFORM_CODE, } from '../../constants';
53
+ import { getSession } from '../../services/client/getSession';
54
+ import { createPoll } from '../../utils/createPoll';
55
+ import { getQueryClient } from '../../utils/getQueryClient';
56
+ import { getSessionQueryKey } from '../useSessionQuery/getSessionQueryKey';
57
+ import { getCreateGameSessionMutationKey } from './getCreateGameSessionMutationKey';
58
+ export var useCreateGameSessionMutation = function (config) {
59
+ var queryClient = getQueryClient();
60
+ return useMutation(__assign(__assign({}, config), { mutationKey: getCreateGameSessionMutationKey(), mutationFn: function (game) { return __awaiter(void 0, void 0, void 0, function () {
61
+ var id, session, data, error, data, error;
62
+ return __generator(this, function (_a) {
63
+ switch (_a.label) {
64
+ case 0:
65
+ id = ObjectId.generate(ObjectType.GameSession).toString();
66
+ return [4 /*yield*/, queryClient.fetchQuery({
67
+ queryKey: getSessionQueryKey(),
68
+ queryFn: function () { return getSession(); },
69
+ })];
70
+ case 1:
71
+ session = _a.sent();
72
+ invariant(session.status === 'authenticated');
73
+ if (!LEGACY_GAME_PROVIDERS.includes(game.provider)) return [3 /*break*/, 4];
74
+ return [4 /*yield*/, createGameSession__legacy({
75
+ id: id,
76
+ game: game.reference,
77
+ }, {
78
+ environment: ENVIRONMENT,
79
+ headers: {
80
+ 'Platform-Code': PLATFORM_CODE,
81
+ Authorization: "Bearer ".concat(session.token),
82
+ },
83
+ })];
84
+ case 2:
85
+ _a.sent();
86
+ return [4 /*yield*/, createPoll(function () { return __awaiter(void 0, void 0, void 0, function () {
87
+ var session;
88
+ return __generator(this, function (_a) {
89
+ switch (_a.label) {
90
+ case 0: return [4 /*yield*/, queryClient.fetchQuery({
91
+ queryKey: getSessionQueryKey(),
92
+ queryFn: function () { return getSession(); },
93
+ })];
94
+ case 1:
95
+ session = _a.sent();
96
+ invariant(session.status === 'authenticated');
97
+ return [4 /*yield*/, getGameSession__legacy(id, {
98
+ environment: ENVIRONMENT,
99
+ headers: {
100
+ 'Platform-Code': PLATFORM_CODE,
101
+ Authorization: "Bearer ".concat(session.token),
102
+ },
103
+ })];
104
+ case 2: return [2 /*return*/, _a.sent()];
105
+ }
106
+ });
107
+ }); }, {
108
+ until: function (r) { return !!(r === null || r === void 0 ? void 0 : r.launchUrl); },
109
+ interval: 1000,
110
+ maxAttempt: 5,
111
+ })()];
112
+ case 3:
113
+ data = _a.sent();
114
+ if (!(data === null || data === void 0 ? void 0 : data.launchUrl)) {
115
+ error = new Error();
116
+ error.name = 'GameSessionError';
117
+ error.message = 'Failed to launch game';
118
+ throw error;
119
+ }
120
+ return [2 /*return*/, data];
121
+ case 4: return [4 /*yield*/, createGameSession({
122
+ id: id,
123
+ game: game.reference,
124
+ }, {
125
+ environment: ENVIRONMENT,
126
+ headers: {
127
+ 'Platform-Code': PLATFORM_CODE,
128
+ Authorization: "Bearer ".concat(session.token),
129
+ },
130
+ })];
131
+ case 5:
132
+ _a.sent();
133
+ return [4 /*yield*/, createPoll(function () { return __awaiter(void 0, void 0, void 0, function () {
134
+ var session;
135
+ return __generator(this, function (_a) {
136
+ switch (_a.label) {
137
+ case 0: return [4 /*yield*/, queryClient.fetchQuery({
138
+ queryKey: getSessionQueryKey(),
139
+ queryFn: function () { return getSession(); },
140
+ })];
141
+ case 1:
142
+ session = _a.sent();
143
+ invariant(session.status === 'authenticated');
144
+ return [4 /*yield*/, getGameSession(id, {
145
+ environment: ENVIRONMENT,
146
+ headers: {
147
+ 'Platform-Code': PLATFORM_CODE,
148
+ Authorization: "Bearer ".concat(session.token),
149
+ },
150
+ })];
151
+ case 2: return [2 /*return*/, _a.sent()];
152
+ }
153
+ });
154
+ }); }, {
155
+ until: function (r) { return !!(r === null || r === void 0 ? void 0 : r.launchUrl); },
156
+ interval: 1000,
157
+ maxAttempt: 5,
158
+ })()];
159
+ case 6:
160
+ data = _a.sent();
161
+ if (!(data === null || data === void 0 ? void 0 : data.launchUrl)) {
162
+ error = new Error();
163
+ error.name = 'GameSessionError';
164
+ error.message = 'Failed to launch game';
165
+ throw error;
166
+ }
167
+ return [2 /*return*/, data];
168
+ }
169
+ });
170
+ }); } }));
171
+ };
@@ -0,0 +1,2 @@
1
+ import type { MutationKey } from '@tanstack/react-query';
2
+ export declare const getCreateMayaAppDepositMutationKey: () => MutationKey;
@@ -0,0 +1,3 @@
1
+ export var getCreateMayaAppDepositMutationKey = function () { return [
2
+ 'mutations/createMayaAppDeposit',
3
+ ]; };
@@ -0,0 +1,4 @@
1
+ import { type CreateMayaAppDepositInput, type Deposit } from '@opexa/portal-sdk-core';
2
+ import type { SetOptional } from 'type-fest';
3
+ import type { Mutation } from '../../types';
4
+ export declare const useCreateMayaAppDepositMutation: Mutation<Deposit, SetOptional<CreateMayaAppDepositInput, 'id'>>;
@@ -0,0 +1,125 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { createMayaAppDeposit, getDeposit, } from '@opexa/portal-sdk-core';
49
+ import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
50
+ import { useMutation } from '@tanstack/react-query';
51
+ import invariant from 'tiny-invariant';
52
+ import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
53
+ import { getSession } from '../../services/client/getSession';
54
+ import { createPoll } from '../../utils/createPoll';
55
+ import { getQueryClient } from '../../utils/getQueryClient';
56
+ import { getSessionQueryKey } from '../useSessionQuery/getSessionQueryKey';
57
+ import { getCreateMayaAppDepositMutationKey } from './getCreateMayaAppDepositMutationKey';
58
+ export var useCreateMayaAppDepositMutation = function (config) {
59
+ var queryClient = getQueryClient();
60
+ var mutation = useMutation(__assign(__assign({}, config), { mutationKey: getCreateMayaAppDepositMutationKey(), mutationFn: function (input) { return __awaiter(void 0, void 0, void 0, function () {
61
+ var id, session, poll, res, error;
62
+ var _a;
63
+ return __generator(this, function (_b) {
64
+ switch (_b.label) {
65
+ case 0:
66
+ id = (_a = input.id) !== null && _a !== void 0 ? _a : ObjectId.generate(ObjectType.Deposit).toString();
67
+ return [4 /*yield*/, queryClient.fetchQuery({
68
+ queryKey: getSessionQueryKey(),
69
+ queryFn: function () { return getSession(); },
70
+ })];
71
+ case 1:
72
+ session = _b.sent();
73
+ invariant(session.status === 'authenticated');
74
+ return [4 /*yield*/, createMayaAppDeposit(__assign(__assign({}, input), { id: id }), {
75
+ environment: ENVIRONMENT,
76
+ headers: {
77
+ 'Platform-Code': PLATFORM_CODE,
78
+ Authorization: "Bearer ".concat(session.token),
79
+ },
80
+ })];
81
+ case 2:
82
+ _b.sent();
83
+ poll = createPoll(function () { return __awaiter(void 0, void 0, void 0, function () {
84
+ var session;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0: return [4 /*yield*/, queryClient.fetchQuery({
88
+ queryKey: getSessionQueryKey(),
89
+ queryFn: function () { return getSession(); },
90
+ })];
91
+ case 1:
92
+ session = _a.sent();
93
+ invariant(session.status === 'authenticated');
94
+ return [4 /*yield*/, getDeposit(id, {
95
+ environment: ENVIRONMENT,
96
+ headers: {
97
+ 'Platform-Code': PLATFORM_CODE,
98
+ Authorization: "Bearer ".concat(session.token),
99
+ },
100
+ })];
101
+ case 2: return [2 /*return*/, _a.sent()];
102
+ }
103
+ });
104
+ }); }, {
105
+ until: function (res) {
106
+ return (res === null || res === void 0 ? void 0 : res.status) === 'APPROVED' || (res === null || res === void 0 ? void 0 : res.status) === 'CONFIRMED';
107
+ },
108
+ interval: 1000,
109
+ maxAttempt: 5,
110
+ });
111
+ return [4 /*yield*/, poll()];
112
+ case 3:
113
+ res = _b.sent();
114
+ if ((res === null || res === void 0 ? void 0 : res.status) !== 'APPROVED' && (res === null || res === void 0 ? void 0 : res.status) !== 'CONFIRMED') {
115
+ error = new Error();
116
+ error.name = 'MayaAppDepositError';
117
+ error.message = 'Failed to process Maya deposit';
118
+ throw error;
119
+ }
120
+ return [2 /*return*/, res];
121
+ }
122
+ });
123
+ }); } }));
124
+ return mutation;
125
+ };
@@ -0,0 +1,2 @@
1
+ import type { MutationKey } from '@tanstack/react-query';
2
+ export declare const getCreateMayaDepositMutationKey: () => MutationKey;
@@ -0,0 +1,3 @@
1
+ export var getCreateMayaDepositMutationKey = function () { return [
2
+ 'mutations/createMayaDeposit',
3
+ ]; };
@@ -0,0 +1,4 @@
1
+ import { type CreateMayaDepositInput, type Deposit } from '@opexa/portal-sdk-core';
2
+ import type { SetOptional } from 'type-fest';
3
+ import type { Mutation } from '../../types';
4
+ export declare const useCreateMayaDepositMutation: Mutation<Deposit, SetOptional<CreateMayaDepositInput, 'id'>>;
@@ -0,0 +1,125 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { createMayaDeposit, getDeposit, } from '@opexa/portal-sdk-core';
49
+ import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
50
+ import { useMutation } from '@tanstack/react-query';
51
+ import invariant from 'tiny-invariant';
52
+ import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
53
+ import { getSession } from '../../services/client/getSession';
54
+ import { createPoll } from '../../utils/createPoll';
55
+ import { getQueryClient } from '../../utils/getQueryClient';
56
+ import { getSessionQueryKey } from '../useSessionQuery/getSessionQueryKey';
57
+ import { getCreateMayaDepositMutationKey } from './getCreateMayaDepositMutationKey';
58
+ export var useCreateMayaDepositMutation = function (config) {
59
+ var queryClient = getQueryClient();
60
+ var mutation = useMutation(__assign(__assign({}, config), { mutationKey: getCreateMayaDepositMutationKey(), mutationFn: function (input) { return __awaiter(void 0, void 0, void 0, function () {
61
+ var id, session, poll, res, error;
62
+ var _a;
63
+ return __generator(this, function (_b) {
64
+ switch (_b.label) {
65
+ case 0:
66
+ id = (_a = input.id) !== null && _a !== void 0 ? _a : ObjectId.generate(ObjectType.Deposit).toString();
67
+ return [4 /*yield*/, queryClient.fetchQuery({
68
+ queryKey: getSessionQueryKey(),
69
+ queryFn: function () { return getSession(); },
70
+ })];
71
+ case 1:
72
+ session = _b.sent();
73
+ invariant(session.status === 'authenticated');
74
+ return [4 /*yield*/, createMayaDeposit(__assign(__assign({}, input), { id: id }), {
75
+ environment: ENVIRONMENT,
76
+ headers: {
77
+ 'Platform-Code': PLATFORM_CODE,
78
+ Authorization: "Bearer ".concat(session.token),
79
+ },
80
+ })];
81
+ case 2:
82
+ _b.sent();
83
+ poll = createPoll(function () { return __awaiter(void 0, void 0, void 0, function () {
84
+ var session;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0: return [4 /*yield*/, queryClient.fetchQuery({
88
+ queryKey: getSessionQueryKey(),
89
+ queryFn: function () { return getSession(); },
90
+ })];
91
+ case 1:
92
+ session = _a.sent();
93
+ invariant(session.status === 'authenticated');
94
+ return [4 /*yield*/, getDeposit(id, {
95
+ environment: ENVIRONMENT,
96
+ headers: {
97
+ 'Platform-Code': PLATFORM_CODE,
98
+ Authorization: "Bearer ".concat(session.token),
99
+ },
100
+ })];
101
+ case 2: return [2 /*return*/, _a.sent()];
102
+ }
103
+ });
104
+ }); }, {
105
+ until: function (res) {
106
+ return !!(res === null || res === void 0 ? void 0 : res.checkoutUrl);
107
+ },
108
+ interval: 1000,
109
+ maxAttempt: 5,
110
+ });
111
+ return [4 /*yield*/, poll()];
112
+ case 3:
113
+ res = _b.sent();
114
+ if (!(res === null || res === void 0 ? void 0 : res.checkoutUrl)) {
115
+ error = new Error();
116
+ error.name = 'MayaDepositError';
117
+ error.message = 'Failed to process Maya deposit';
118
+ throw error;
119
+ }
120
+ return [2 /*return*/, res];
121
+ }
122
+ });
123
+ }); } }));
124
+ return mutation;
125
+ };
@@ -0,0 +1,2 @@
1
+ import type { MutationKey } from '@tanstack/react-query';
2
+ export declare const getCreateOnlineBankDepositMutationKey: () => MutationKey;
@@ -0,0 +1,3 @@
1
+ export var getCreateOnlineBankDepositMutationKey = function () { return [
2
+ 'mutations/createOnlineBankDeposit',
3
+ ]; };
@@ -0,0 +1,4 @@
1
+ import { type CreateAIOOnlineBankDepositInput, type Deposit } from '@opexa/portal-sdk-core';
2
+ import type { SetOptional } from 'type-fest';
3
+ import type { Mutation } from '../../types';
4
+ export declare const useCreateOnlineBankDepositMutation: Mutation<Deposit, SetOptional<CreateAIOOnlineBankDepositInput, 'id'>>;
@@ -0,0 +1,125 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { createAIOOnlineBankDeposit, getDeposit, } from '@opexa/portal-sdk-core';
49
+ import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
50
+ import { useMutation } from '@tanstack/react-query';
51
+ import invariant from 'tiny-invariant';
52
+ import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
53
+ import { getSession } from '../../services/client/getSession';
54
+ import { createPoll } from '../../utils/createPoll';
55
+ import { getQueryClient } from '../../utils/getQueryClient';
56
+ import { getSessionQueryKey } from '../useSessionQuery/getSessionQueryKey';
57
+ import { getCreateOnlineBankDepositMutationKey } from './getCreateOnlineBankDepositMutationKey';
58
+ export var useCreateOnlineBankDepositMutation = function (config) {
59
+ var queryClient = getQueryClient();
60
+ var mutation = useMutation(__assign(__assign({}, config), { mutationKey: getCreateOnlineBankDepositMutationKey(), mutationFn: function (input) { return __awaiter(void 0, void 0, void 0, function () {
61
+ var id, session, poll, res, error;
62
+ var _a;
63
+ return __generator(this, function (_b) {
64
+ switch (_b.label) {
65
+ case 0:
66
+ id = (_a = input.id) !== null && _a !== void 0 ? _a : ObjectId.generate(ObjectType.Deposit).toString();
67
+ return [4 /*yield*/, queryClient.fetchQuery({
68
+ queryKey: getSessionQueryKey(),
69
+ queryFn: function () { return getSession(); },
70
+ })];
71
+ case 1:
72
+ session = _b.sent();
73
+ invariant(session.status === 'authenticated');
74
+ return [4 /*yield*/, createAIOOnlineBankDeposit(__assign(__assign({}, input), { id: id }), {
75
+ environment: ENVIRONMENT,
76
+ headers: {
77
+ 'Platform-Code': PLATFORM_CODE,
78
+ Authorization: "Bearer ".concat(session.token),
79
+ },
80
+ })];
81
+ case 2:
82
+ _b.sent();
83
+ poll = createPoll(function () { return __awaiter(void 0, void 0, void 0, function () {
84
+ var session;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0: return [4 /*yield*/, queryClient.fetchQuery({
88
+ queryKey: getSessionQueryKey(),
89
+ queryFn: function () { return getSession(); },
90
+ })];
91
+ case 1:
92
+ session = _a.sent();
93
+ invariant(session.status === 'authenticated');
94
+ return [4 /*yield*/, getDeposit(id, {
95
+ environment: ENVIRONMENT,
96
+ headers: {
97
+ 'Platform-Code': PLATFORM_CODE,
98
+ Authorization: "Bearer ".concat(session.token),
99
+ },
100
+ })];
101
+ case 2: return [2 /*return*/, _a.sent()];
102
+ }
103
+ });
104
+ }); }, {
105
+ until: function (res) {
106
+ return !!(res === null || res === void 0 ? void 0 : res.vca);
107
+ },
108
+ interval: 1000,
109
+ maxAttempt: 5,
110
+ });
111
+ return [4 /*yield*/, poll()];
112
+ case 3:
113
+ res = _b.sent();
114
+ if (!(res === null || res === void 0 ? void 0 : res.vca)) {
115
+ error = new Error();
116
+ error.name = 'OnlineBankDepositError';
117
+ error.message = 'Failed to process online bank deposit';
118
+ throw error;
119
+ }
120
+ return [2 /*return*/, res];
121
+ }
122
+ });
123
+ }); } }));
124
+ return mutation;
125
+ };
@@ -0,0 +1,2 @@
1
+ import type { MutationKey } from '@tanstack/react-query';
2
+ export declare const getCreateQRPHDepositMutationKey: () => MutationKey;
@@ -0,0 +1,3 @@
1
+ export var getCreateQRPHDepositMutationKey = function () { return [
2
+ 'mutations/createQRPHDeposit',
3
+ ]; };
@@ -0,0 +1,4 @@
1
+ import { type CreateAIOQRPHDeposit, type Deposit } from '@opexa/portal-sdk-core';
2
+ import type { SetOptional } from 'type-fest';
3
+ import type { Mutation } from '../../types';
4
+ export declare const useCreateQRPHDepositMutation: Mutation<Deposit, SetOptional<CreateAIOQRPHDeposit, 'id'>>;