@opexa/portal-components 0.0.2 → 0.0.4

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 (687) 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 +1 -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/images/bank-icon.png +0 -0
  446. package/dist/images/images/QRPh.png +0 -0
  447. package/dist/images/images/ball.png +0 -0
  448. package/dist/images/images/bank-icon.png +0 -0
  449. package/dist/images/images/card.png +0 -0
  450. package/dist/images/images/close-chest.png +0 -0
  451. package/dist/images/images/gcash.png +0 -0
  452. package/dist/images/images/qrph-icon.png +0 -0
  453. package/dist/images/maya.png +0 -0
  454. package/dist/images/online-bank.png +0 -0
  455. package/dist/images/open-chest.png +0 -0
  456. package/dist/images/pagcor.png +0 -0
  457. package/dist/images/qrph-icon.png +0 -0
  458. package/dist/images/responsible-gaming.png +0 -0
  459. package/dist/images/trophy.png +0 -0
  460. package/dist/index.d.ts +1 -144
  461. package/dist/index.js +1 -7654
  462. package/dist/middleware.d.ts +2 -5
  463. package/dist/middleware.js +90 -90
  464. package/dist/services/client/authenticate.d.ts +2 -0
  465. package/dist/services/client/authenticate.js +76 -0
  466. package/dist/services/client/getSession.d.ts +2 -0
  467. package/dist/services/client/getSession.js +59 -0
  468. package/dist/services/client/signIn.d.ts +3 -0
  469. package/dist/services/client/signIn.js +77 -0
  470. package/dist/services/client/signOut.d.ts +1 -0
  471. package/dist/services/client/signOut.js +61 -0
  472. package/dist/services/server/authenticate.d.ts +2 -0
  473. package/dist/services/server/authenticate.js +69 -0
  474. package/dist/services/server/getSession.d.ts +2 -0
  475. package/dist/services/server/getSession.js +55 -0
  476. package/dist/services/server/signIn.d.ts +2 -0
  477. package/dist/services/server/signIn.js +74 -0
  478. package/dist/services/server/signOut.d.ts +1 -0
  479. package/dist/services/server/signOut.js +67 -0
  480. package/dist/tsconfig.build.tsbuildinfo +1 -0
  481. package/dist/types/index.d.ts +63 -0
  482. package/dist/types/index.js +1 -0
  483. package/dist/ui/AlertDialog/AlertDialog.d.ts +508 -0
  484. package/dist/ui/AlertDialog/AlertDialog.jsx +17 -0
  485. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +46 -0
  486. package/dist/ui/AlertDialog/alertDialog.recipe.js +17 -0
  487. package/dist/ui/AlertDialog/index.d.ts +1 -0
  488. package/dist/ui/AlertDialog/index.js +1 -0
  489. package/dist/ui/Avatar/Avatar.d.ts +68 -0
  490. package/dist/ui/Avatar/Avatar.jsx +9 -0
  491. package/dist/ui/Avatar/avatar.recipe.d.ts +22 -0
  492. package/dist/ui/Avatar/avatar.recipe.js +21 -0
  493. package/dist/ui/Avatar/index.d.ts +1 -0
  494. package/dist/ui/Avatar/index.js +1 -0
  495. package/dist/ui/Badge/Badge.d.ts +167 -0
  496. package/dist/ui/Badge/Badge.jsx +10 -0
  497. package/dist/ui/Badge/badge.anatomy.d.ts +1 -0
  498. package/dist/ui/Badge/badge.anatomy.js +2 -0
  499. package/dist/ui/Badge/badge.recipe.d.ts +52 -0
  500. package/dist/ui/Badge/badge.recipe.js +67 -0
  501. package/dist/ui/Badge/index.d.ts +1 -0
  502. package/dist/ui/Badge/index.js +1 -0
  503. package/dist/ui/Button/Button.d.ts +7 -0
  504. package/dist/ui/Button/Button.jsx +19 -0
  505. package/dist/ui/Button/button.recipe.d.ts +57 -0
  506. package/dist/ui/Button/button.recipe.js +46 -0
  507. package/dist/ui/Button/index.d.ts +1 -0
  508. package/dist/ui/Button/index.js +1 -0
  509. package/dist/ui/Checkbox/Checkbox.d.ts +286 -0
  510. package/dist/ui/Checkbox/Checkbox.jsx +13 -0
  511. package/dist/ui/Checkbox/checkbox.recipe.d.ts +40 -0
  512. package/dist/ui/Checkbox/checkbox.recipe.js +40 -0
  513. package/dist/ui/Checkbox/index.d.ts +1 -0
  514. package/dist/ui/Checkbox/index.js +1 -0
  515. package/dist/ui/Clipboard/Clipboard.d.ts +224 -0
  516. package/dist/ui/Clipboard/Clipboard.jsx +12 -0
  517. package/dist/ui/Clipboard/clipboard.recipe.d.ts +37 -0
  518. package/dist/ui/Clipboard/clipboard.recipe.js +38 -0
  519. package/dist/ui/Clipboard/index.d.ts +1 -0
  520. package/dist/ui/Clipboard/index.js +1 -0
  521. package/dist/ui/Combobox/Combobox.d.ts +1 -0
  522. package/dist/ui/Combobox/Combobox.jsx +2 -0
  523. package/dist/ui/Combobox/combobox.recipe.d.ts +0 -0
  524. package/dist/ui/Combobox/combobox.recipe.js +1 -0
  525. package/dist/ui/Combobox/index.d.ts +1 -0
  526. package/dist/ui/Combobox/index.js +1 -0
  527. package/dist/ui/DatePicker/DatePicker.d.ts +2114 -0
  528. package/dist/ui/DatePicker/DatePicker.jsx +30 -0
  529. package/dist/ui/DatePicker/datePicker.recipe.d.ts +88 -0
  530. package/dist/ui/DatePicker/datePicker.recipe.js +15 -0
  531. package/dist/ui/DatePicker/index.d.ts +1 -0
  532. package/dist/ui/DatePicker/index.js +1 -0
  533. package/dist/ui/Dialog/Dialog.d.ts +508 -0
  534. package/dist/ui/Dialog/Dialog.jsx +17 -0
  535. package/dist/ui/Dialog/dialog.recipe.d.ts +46 -0
  536. package/dist/ui/Dialog/dialog.recipe.js +12 -0
  537. package/dist/ui/Dialog/index.d.ts +1 -0
  538. package/dist/ui/Dialog/index.js +1 -0
  539. package/dist/ui/Drawer/Drawer.d.ts +310 -0
  540. package/dist/ui/Drawer/Drawer.jsx +17 -0
  541. package/dist/ui/Drawer/drawer.recipe.d.ts +28 -0
  542. package/dist/ui/Drawer/drawer.recipe.js +24 -0
  543. package/dist/ui/Drawer/index.d.ts +1 -0
  544. package/dist/ui/Drawer/index.js +1 -0
  545. package/dist/ui/Field/Field.d.ts +303 -0
  546. package/dist/ui/Field/Field.jsx +13 -0
  547. package/dist/ui/Field/field.recipe.d.ts +43 -0
  548. package/dist/ui/Field/field.recipe.js +47 -0
  549. package/dist/ui/Field/index.d.ts +1 -0
  550. package/dist/ui/Field/index.js +1 -0
  551. package/dist/ui/IconButton/IconButton.d.ts +7 -0
  552. package/dist/ui/IconButton/IconButton.jsx +19 -0
  553. package/dist/ui/IconButton/iconButton.recipe.d.ts +80 -0
  554. package/dist/ui/IconButton/iconButton.recipe.js +17 -0
  555. package/dist/ui/IconButton/index.d.ts +1 -0
  556. package/dist/ui/IconButton/index.js +1 -0
  557. package/dist/ui/Menu/Menu.d.ts +1 -0
  558. package/dist/ui/Menu/Menu.jsx +2 -0
  559. package/dist/ui/Menu/index.d.ts +1 -0
  560. package/dist/ui/Menu/index.js +1 -0
  561. package/dist/ui/Menu/menu.recipe.d.ts +0 -0
  562. package/dist/ui/Menu/menu.recipe.js +1 -0
  563. package/dist/ui/NumberInput/NumberInput.d.ts +202 -0
  564. package/dist/ui/NumberInput/NumberInput.jsx +14 -0
  565. package/dist/ui/NumberInput/index.d.ts +1 -0
  566. package/dist/ui/NumberInput/index.js +1 -0
  567. package/dist/ui/NumberInput/numberInput.recipe.d.ts +25 -0
  568. package/dist/ui/NumberInput/numberInput.recipe.js +24 -0
  569. package/dist/ui/PinInput/PinInput.d.ts +163 -0
  570. package/dist/ui/PinInput/PinInput.jsx +11 -0
  571. package/dist/ui/PinInput/index.d.ts +1 -0
  572. package/dist/ui/PinInput/index.js +1 -0
  573. package/dist/ui/PinInput/pinInput.recipe.d.ts +40 -0
  574. package/dist/ui/PinInput/pinInput.recipe.js +38 -0
  575. package/dist/ui/Popover/Popover.d.ts +508 -0
  576. package/dist/ui/Popover/Popover.jsx +17 -0
  577. package/dist/ui/Popover/index.d.ts +1 -0
  578. package/dist/ui/Popover/index.js +1 -0
  579. package/dist/ui/Popover/popover.recipe.d.ts +46 -0
  580. package/dist/ui/Popover/popover.recipe.js +9 -0
  581. package/dist/ui/Presence.d.ts +2 -0
  582. package/dist/ui/Presence.jsx +5 -0
  583. package/dist/ui/Progress/Progress.d.ts +1 -0
  584. package/dist/ui/Progress/Progress.jsx +2 -0
  585. package/dist/ui/Progress/index.d.ts +1 -0
  586. package/dist/ui/Progress/index.js +1 -0
  587. package/dist/ui/Progress/progress.recipe.d.ts +0 -0
  588. package/dist/ui/Progress/progress.recipe.js +1 -0
  589. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +226 -0
  590. package/dist/ui/SegmentGroup/SegmentGroup.jsx +14 -0
  591. package/dist/ui/SegmentGroup/index.d.ts +1 -0
  592. package/dist/ui/SegmentGroup/index.js +1 -0
  593. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +37 -0
  594. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +33 -0
  595. package/dist/ui/Select/Select.d.ts +739 -0
  596. package/dist/ui/Select/Select.jsx +24 -0
  597. package/dist/ui/Select/index.d.ts +1 -0
  598. package/dist/ui/Select/index.js +1 -0
  599. package/dist/ui/Select/select.recipe.d.ts +49 -0
  600. package/dist/ui/Select/select.recipe.js +37 -0
  601. package/dist/ui/Table/Table.d.ts +301 -0
  602. package/dist/ui/Table/Table.jsx +12 -0
  603. package/dist/ui/Table/index.d.ts +1 -0
  604. package/dist/ui/Table/index.js +1 -0
  605. package/dist/ui/Table/table.anatomy.d.ts +1 -0
  606. package/dist/ui/Table/table.anatomy.js +2 -0
  607. package/dist/ui/Table/table.recipe.d.ts +43 -0
  608. package/dist/ui/Table/table.recipe.js +27 -0
  609. package/dist/ui/Tabs/Tabs.d.ts +187 -0
  610. package/dist/ui/Tabs/Tabs.jsx +11 -0
  611. package/dist/ui/Tabs/index.d.ts +1 -0
  612. package/dist/ui/Tabs/index.js +1 -0
  613. package/dist/ui/Tabs/tabs.recipe.d.ts +37 -0
  614. package/dist/ui/Tabs/tabs.recipe.js +33 -0
  615. package/dist/ui/Tooltip/Tooltip.d.ts +1 -0
  616. package/dist/ui/Tooltip/Tooltip.jsx +2 -0
  617. package/dist/ui/Tooltip/index.d.ts +1 -0
  618. package/dist/ui/Tooltip/index.js +1 -0
  619. package/dist/ui/Tooltip/tooltip.recipe.d.ts +0 -0
  620. package/dist/ui/Tooltip/tooltip.recipe.js +1 -0
  621. package/dist/ui/index.d.ts +23 -0
  622. package/dist/ui/index.js +23 -0
  623. package/dist/utils/anatomyToRecipeSlots.d.ts +6 -0
  624. package/dist/utils/anatomyToRecipeSlots.js +13 -0
  625. package/dist/utils/capitalize.d.ts +40 -0
  626. package/dist/utils/capitalize.js +47 -0
  627. package/dist/utils/createPoll.d.ts +28 -0
  628. package/dist/utils/createPoll.js +104 -0
  629. package/dist/utils/createRecipeContext.d.ts +15 -0
  630. package/dist/utils/createRecipeContext.jsx +73 -0
  631. package/dist/utils/createSplitProps.d.ts +3 -0
  632. package/dist/utils/createSplitProps.js +19 -0
  633. package/dist/utils/dataAttr.d.ts +1 -0
  634. package/dist/utils/dataAttr.js +3 -0
  635. package/dist/utils/formatNumber.d.ts +21 -0
  636. package/dist/utils/formatNumber.js +45 -0
  637. package/dist/utils/getGameImageUrl.d.ts +12 -0
  638. package/dist/utils/getGameImageUrl.js +10 -0
  639. package/dist/utils/getLocaleInfo.d.ts +79 -0
  640. package/dist/utils/getLocaleInfo.jsx +237 -0
  641. package/dist/utils/getQueryClient.d.ts +2 -0
  642. package/dist/utils/getQueryClient.js +26 -0
  643. package/dist/utils/index.d.ts +13 -0
  644. package/dist/utils/index.js +13 -0
  645. package/dist/utils/isMobile.d.ts +5 -0
  646. package/dist/utils/isMobile.js +16 -0
  647. package/dist/utils/parseDecimal.d.ts +2 -0
  648. package/dist/utils/parseDecimal.js +18 -0
  649. package/dist/utils/toaster.d.ts +2 -0
  650. package/dist/utils/toaster.js +8 -0
  651. package/package.json +157 -13
  652. package/dist/JackpotCounter.module-5D2TMSET.module.css +0 -46
  653. package/dist/chunk-CA3CKIFK.mjs +0 -74
  654. package/dist/chunk-CA3CKIFK.mjs.map +0 -1
  655. package/dist/chunk-J5LGTIGS.mjs +0 -10
  656. package/dist/chunk-J5LGTIGS.mjs.map +0 -1
  657. package/dist/chunk-WGWFJYET.mjs +0 -1229
  658. package/dist/chunk-WGWFJYET.mjs.map +0 -1
  659. package/dist/handlers.d.mts +0 -43
  660. package/dist/handlers.js.map +0 -1
  661. package/dist/handlers.mjs +0 -267
  662. package/dist/handlers.mjs.map +0 -1
  663. package/dist/index.d.mts +0 -144
  664. package/dist/index.js.map +0 -1
  665. package/dist/index.mjs +0 -6422
  666. package/dist/index.mjs.map +0 -1
  667. package/dist/middleware.d.mts +0 -8
  668. package/dist/middleware.js.map +0 -1
  669. package/dist/middleware.mjs +0 -45
  670. package/dist/middleware.mjs.map +0 -1
  671. package/dist/ui.d.mts +0 -6904
  672. package/dist/ui.d.ts +0 -6904
  673. package/dist/ui.js +0 -1280
  674. package/dist/ui.js.map +0 -1
  675. package/dist/ui.mjs +0 -48
  676. package/dist/ui.mjs.map +0 -1
  677. /package/dist/{QRPh-LURVHEVK.png → images/QRPh.png} +0 -0
  678. /package/dist/{ball-TSKR3KCL.png → images/ball.png} +0 -0
  679. /package/dist/{card-DTJVRZI7.png → images/card.png} +0 -0
  680. /package/dist/{close-chest-T4YK5KYS.png → images/close-chest.png} +0 -0
  681. /package/dist/{gcash-3TV2ZD5Z.png → images/gcash.png} +0 -0
  682. /package/dist/{maya-2LESMCYJ.png → images/images/maya.png} +0 -0
  683. /package/dist/{online-bank-ZRRABICE.png → images/images/online-bank.png} +0 -0
  684. /package/dist/{open-chest-XMGW5QZE.png → images/images/open-chest.png} +0 -0
  685. /package/dist/{pagcor-AFUY5PSY.png → images/images/pagcor.png} +0 -0
  686. /package/dist/{responsible-gaming-MQQBK5RV.png → images/images/responsible-gaming.png} +0 -0
  687. /package/dist/{trophy-QC26LEAT.png → images/images/trophy.png} +0 -0
@@ -1,8 +1,5 @@
1
1
  import { NextRequest, NextResponse } from 'next/server';
2
-
3
- declare const config: {
2
+ export declare const config: {
4
3
  matcher: string[];
5
4
  };
6
- declare function middleware(request: NextRequest): Promise<NextResponse<unknown>>;
7
-
8
- export { config, middleware };
5
+ export declare function middleware(request: NextRequest): Promise<NextResponse<unknown>>;
@@ -1,94 +1,94 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
9
  };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ 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);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ 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;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
17
36
  };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/lib/middleware.ts
21
- var middleware_exports = {};
22
- __export(middleware_exports, {
23
- config: () => config,
24
- middleware: () => middleware
25
- });
26
- module.exports = __toCommonJS(middleware_exports);
27
- var import_portal_sdk_core = require("@opexa/portal-sdk-core");
28
- var import_date_fns = require("date-fns");
29
- var import_server = require("next/server");
30
-
31
- // src/lib/constants/index.ts
32
- var import_zod = require("zod");
33
- var SITE_ID = import_zod.z.string().min(
34
- 1,
35
- 'Environment variable "NEXT_PUBLIC_SITE_ID" must be 1 or more characters'
36
- ).max(
37
- 32,
38
- 'Environment variable "NEXT_PUBLIC_SITE_ID" must not be more than 32 characters'
39
- ).trim().parse(process.env.NEXT_PUBLIC_SITE_ID);
40
- var PLATFORM_ID = import_zod.z.string().min(
41
- 1,
42
- 'Environment variable "NEXT_PUBLIC_PLATFORM_ID" must be 1 or more characters'
43
- ).max(
44
- 32,
45
- 'Environment variable "NEXT_PUBLIC_PLATFORM_ID" must not be more than 32 characters'
46
- ).trim().parse(process.env.NEXT_PUBLIC_PLATFORM_ID);
47
- var PLATFORM_CODE = import_zod.z.string().min(
48
- 4,
49
- 'Environment variable "NEXT_PUBLIC_PLATFORM_CODE" must be at least 4 characters'
50
- ).max(
51
- 8,
52
- 'Environment variable "NEXT_PUBLIC_PLATFORM_CODE" must not be more than 8 characters'
53
- ).trim().parse(process.env.NEXT_PUBLIC_PLATFORM_CODE);
54
- var ENVIRONMENT = import_zod.z.enum(["production", "development"]).catch("development").parse(process.env.NEXT_PUBLIC_ENVIRONMENT);
55
- var BYPASS_RECAPTCHA = import_zod.z.any().transform(Boolean).catch(false).parse(process.env.NEXT_PUBLIC_BYPASS_RECAPTCHA);
56
- var ACCESS_TOKEN_COOKIE_NAME = "WebPortalAuthAccessToken";
57
- var REFRESH_TOKEN_COOKIE_NAME = "WebPortalAuthRefreshToken";
58
-
59
- // src/lib/middleware.ts
60
- var config = {
61
- matcher: [
62
- "/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)"
63
- ]
37
+ import { refreshSession } from '@opexa/portal-sdk-core';
38
+ import { addMinutes } from 'date-fns';
39
+ import { NextResponse } from 'next/server';
40
+ import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, REFRESH_TOKEN_COOKIE_NAME, } from './constants';
41
+ export var config = {
42
+ matcher: [
43
+ '/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)',
44
+ ],
64
45
  };
65
- async function middleware(request) {
66
- var _a, _b;
67
- const accessToken = (_a = request.cookies.get(ACCESS_TOKEN_COOKIE_NAME)) == null ? void 0 : _a.value;
68
- const refreshToken = (_b = request.cookies.get(REFRESH_TOKEN_COOKIE_NAME)) == null ? void 0 : _b.value;
69
- const response = import_server.NextResponse.next();
70
- if (!accessToken && refreshToken) {
71
- try {
72
- const data = await (0, import_portal_sdk_core.refreshSession)({
73
- headers: {
74
- Authorization: `Bearer ${refreshToken}`
75
- },
76
- environment: ENVIRONMENT
77
- });
78
- response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, data.accessToken, {
79
- expires: (0, import_date_fns.addMinutes)(/* @__PURE__ */ new Date(), 9),
80
- httpOnly: true,
81
- sameSite: "strict"
82
- });
83
- } catch {
84
- response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
85
- }
86
- }
87
- return response;
46
+ export function middleware(request) {
47
+ return __awaiter(this, void 0, void 0, function () {
48
+ var accessToken, refreshToken, response, data, _a;
49
+ var _b, _c;
50
+ return __generator(this, function (_d) {
51
+ switch (_d.label) {
52
+ case 0:
53
+ accessToken = (_b = request.cookies.get(ACCESS_TOKEN_COOKIE_NAME)) === null || _b === void 0 ? void 0 : _b.value;
54
+ refreshToken = (_c = request.cookies.get(REFRESH_TOKEN_COOKIE_NAME)) === null || _c === void 0 ? void 0 : _c.value;
55
+ response = NextResponse.next();
56
+ if (!(!accessToken && refreshToken)) return [3 /*break*/, 4];
57
+ _d.label = 1;
58
+ case 1:
59
+ _d.trys.push([1, 3, , 4]);
60
+ return [4 /*yield*/, refreshSession({
61
+ headers: {
62
+ Authorization: "Bearer ".concat(refreshToken),
63
+ },
64
+ environment: ENVIRONMENT,
65
+ })];
66
+ case 2:
67
+ data = _d.sent();
68
+ response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, data.accessToken, {
69
+ expires: addMinutes(new Date(), 9),
70
+ httpOnly: true,
71
+ sameSite: 'strict',
72
+ });
73
+ return [3 /*break*/, 4];
74
+ case 3:
75
+ _a = _d.sent();
76
+ response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
77
+ return [3 /*break*/, 4];
78
+ case 4:
79
+ /*
80
+ response.cookies.set(
81
+ REFRESH_TOKEN_COOKIE_NAME,
82
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJoWnRkaHpGVHZLbkhvY3UzNSIsInJvbGUiOiJNRU1CRVIiLCJqdGkiOiIxZTRiZTc2NmIzNDllMDdlOGIyNTk3ZjAiLCJpcEFkZHJlc3MiOiIxMjAuMjguMjM5LjE5MCIsImxvY2F0aW9uIjoiSWxvaWxvIENpdHksIFBoaWxpcHBpbmVzIiwicGxhdGZvcm0iOiIxMnV3dVJDY1lwMWNXaVh6UFkiLCJpYXAiOiIyMDI1LTA1LTI2VDAxOjI3OjQ1LjU1MSswMDowMCIsInR5cGUiOiJyZWZyZXNoIiwiaWF0IjoxNzQ4MjIyODk1LCJleHAiOjE3NTA4MTQ4OTV9.d-xAhZxi6JDnjkRjQ0PRAwP0fAEZ3n5O0ELCkGDIHME',
83
+ {
84
+ expires: addDays(new Date(), 30), // 30 days
85
+ httpOnly: true,
86
+ sameSite: 'strict',
87
+ },
88
+ );
89
+ */
90
+ return [2 /*return*/, response];
91
+ }
92
+ });
93
+ });
88
94
  }
89
- // Annotate the CommonJS export names for ESM import in node:
90
- 0 && (module.exports = {
91
- config,
92
- middleware
93
- });
94
- //# sourceMappingURL=middleware.js.map
@@ -0,0 +1,2 @@
1
+ import type { AuthenticateInput } from '@opexa/portal-sdk-core';
2
+ export declare function authenticate(input: AuthenticateInput): Promise<void>;
@@ -0,0 +1,76 @@
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 { BYPASS_RECAPTCHA } from '../../constants/index.js';
49
+ export function authenticate(input) {
50
+ return __awaiter(this, void 0, void 0, function () {
51
+ var res, json, error;
52
+ return __generator(this, function (_a) {
53
+ switch (_a.label) {
54
+ case 0: return [4 /*yield*/, fetch('/api/authenticate', {
55
+ body: JSON.stringify(input),
56
+ method: 'POST',
57
+ headers: __assign({ 'Content-Type': 'application/json', Accept: 'application/json' }, (BYPASS_RECAPTCHA && {
58
+ 'Test-Pass': '',
59
+ })),
60
+ })];
61
+ case 1:
62
+ res = _a.sent();
63
+ return [4 /*yield*/, res.json()];
64
+ case 2:
65
+ json = (_a.sent());
66
+ if (!json.ok) {
67
+ error = new Error();
68
+ error.name = 'SignInError';
69
+ error.message = 'Failed to sign in';
70
+ throw error;
71
+ }
72
+ return [2 /*return*/];
73
+ }
74
+ });
75
+ });
76
+ }
@@ -0,0 +1,2 @@
1
+ import type { Session } from '../../types/index.js';
2
+ export declare function getSession(): Promise<Session>;
@@ -0,0 +1,59 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ 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);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ 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;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ export function getSession() {
38
+ return __awaiter(this, void 0, void 0, function () {
39
+ var res, json, data;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0: return [4 /*yield*/, fetch('/api/sessions', {
43
+ method: 'GET',
44
+ headers: {
45
+ 'Content-Type': 'application/json',
46
+ Accept: 'application/json',
47
+ },
48
+ })];
49
+ case 1:
50
+ res = _a.sent();
51
+ return [4 /*yield*/, res.json()];
52
+ case 2:
53
+ json = (_a.sent());
54
+ data = json.ok ? json.data : { status: 'unauthenticated' };
55
+ return [2 /*return*/, data];
56
+ }
57
+ });
58
+ });
59
+ }
@@ -0,0 +1,3 @@
1
+ import type { Authenticator, CreateSessionInput } from '@opexa/portal-sdk-core';
2
+ export type SignInInput = CreateSessionInput;
3
+ export declare function signIn(input: SignInInput): Promise<Authenticator | null>;
@@ -0,0 +1,77 @@
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 { BYPASS_RECAPTCHA } from '../../constants/index.js';
49
+ export function signIn(input) {
50
+ return __awaiter(this, void 0, void 0, function () {
51
+ var res, json, error;
52
+ var _a;
53
+ return __generator(this, function (_b) {
54
+ switch (_b.label) {
55
+ case 0: return [4 /*yield*/, fetch('/api/sessions', {
56
+ body: JSON.stringify(input),
57
+ method: 'POST',
58
+ headers: __assign({ 'Content-Type': 'application/json', Accept: 'application/json' }, (BYPASS_RECAPTCHA && {
59
+ 'Test-Pass': '',
60
+ })),
61
+ })];
62
+ case 1:
63
+ res = _b.sent();
64
+ return [4 /*yield*/, res.json()];
65
+ case 2:
66
+ json = (_b.sent());
67
+ if (!json.ok) {
68
+ error = new Error();
69
+ error.name = 'SignInError';
70
+ error.message = 'Failed to sign in';
71
+ throw error;
72
+ }
73
+ return [2 /*return*/, (_a = json.data) !== null && _a !== void 0 ? _a : null];
74
+ }
75
+ });
76
+ });
77
+ }
@@ -0,0 +1 @@
1
+ export declare function signOut(): Promise<void>;
@@ -0,0 +1,61 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ 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);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ 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;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ export function signOut() {
38
+ return __awaiter(this, void 0, void 0, function () {
39
+ var res, error;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0: return [4 /*yield*/, fetch('/api/sessions', {
43
+ method: 'DELETE',
44
+ headers: {
45
+ 'Content-Type': 'application/json',
46
+ Accept: 'application/json',
47
+ },
48
+ })];
49
+ case 1:
50
+ res = _a.sent();
51
+ if (!res.ok) {
52
+ error = new Error();
53
+ error.name = 'SignOutError';
54
+ error.message = 'Failed to sign out';
55
+ throw error;
56
+ }
57
+ return [2 /*return*/];
58
+ }
59
+ });
60
+ });
61
+ }
@@ -0,0 +1,2 @@
1
+ import { type AuthenticateInput } from '@opexa/portal-sdk-core';
2
+ export declare function authenticate(input: AuthenticateInput): Promise<void>;
@@ -0,0 +1,69 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ 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);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ 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;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { authenticate as sdkAuthenticate, } from '@opexa/portal-sdk-core';
38
+ import { addDays, addMinutes, subMinutes } from 'date-fns';
39
+ import { cookies } from 'next/headers';
40
+ import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, PLATFORM_CODE, REFRESH_TOKEN_COOKIE_NAME, } from '../../constants/index.js';
41
+ export function authenticate(input) {
42
+ return __awaiter(this, void 0, void 0, function () {
43
+ var Cookies, res;
44
+ return __generator(this, function (_a) {
45
+ switch (_a.label) {
46
+ case 0: return [4 /*yield*/, cookies()];
47
+ case 1:
48
+ Cookies = _a.sent();
49
+ return [4 /*yield*/, sdkAuthenticate(input, {
50
+ headers: {
51
+ 'Platform-Code': PLATFORM_CODE,
52
+ },
53
+ environment: ENVIRONMENT,
54
+ })];
55
+ case 2:
56
+ res = _a.sent();
57
+ Cookies.set(ACCESS_TOKEN_COOKIE_NAME, res.accessToken, {
58
+ expires: addMinutes(new Date(), 9),
59
+ httpOnly: true,
60
+ });
61
+ Cookies.set(REFRESH_TOKEN_COOKIE_NAME, res.refreshToken, {
62
+ expires: subMinutes(addDays(new Date(), 30), 1),
63
+ httpOnly: true,
64
+ });
65
+ return [2 /*return*/];
66
+ }
67
+ });
68
+ });
69
+ }
@@ -0,0 +1,2 @@
1
+ import type { Session } from '../../types/index.js';
2
+ export declare function getSession(): Promise<Session>;
@@ -0,0 +1,55 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ 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);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ 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;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { cookies } from 'next/headers';
38
+ import { ACCESS_TOKEN_COOKIE_NAME } from '../../constants/index.js';
39
+ export function getSession() {
40
+ return __awaiter(this, void 0, void 0, function () {
41
+ var Cookies, accessToken;
42
+ var _a;
43
+ return __generator(this, function (_b) {
44
+ switch (_b.label) {
45
+ case 0: return [4 /*yield*/, cookies()];
46
+ case 1:
47
+ Cookies = _b.sent();
48
+ accessToken = (_a = Cookies.get(ACCESS_TOKEN_COOKIE_NAME)) === null || _a === void 0 ? void 0 : _a.value;
49
+ return [2 /*return*/, accessToken
50
+ ? { status: 'authenticated', token: accessToken }
51
+ : { status: 'unauthenticated' }];
52
+ }
53
+ });
54
+ });
55
+ }
@@ -0,0 +1,2 @@
1
+ import { type Authenticator, type CreateSessionInput } from '@opexa/portal-sdk-core';
2
+ export declare function signIn(input: CreateSessionInput): Promise<Authenticator | null>;