@opexa/portal-components 0.0.925 → 0.0.927

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 (201) hide show
  1. package/dist/assets/providers/alize.png +0 -0
  2. package/dist/assets/providers/bigtime-gaming.png +0 -0
  3. package/dist/assets/providers/bng.png +0 -0
  4. package/dist/assets/providers/boongo.png +0 -0
  5. package/dist/assets/providers/btg.png +0 -0
  6. package/dist/assets/providers/cq9.png +0 -0
  7. package/dist/assets/providers/darwin.png +0 -0
  8. package/dist/assets/providers/digitain.png +0 -0
  9. package/dist/assets/providers/evolution.png +0 -0
  10. package/dist/assets/providers/fantasma-games.png +0 -0
  11. package/dist/assets/providers/fc.png +0 -0
  12. package/dist/assets/providers/fp.png +0 -0
  13. package/dist/assets/providers/habanero.png +0 -0
  14. package/dist/assets/providers/hacksaw.png +0 -0
  15. package/dist/assets/providers/jdb.png +0 -0
  16. package/dist/assets/providers/jili.png +0 -0
  17. package/dist/assets/providers/leap.png +0 -0
  18. package/dist/assets/providers/live-22-metaverse.png +0 -0
  19. package/dist/assets/providers/netent.png +0 -0
  20. package/dist/assets/providers/no-limit.png +0 -0
  21. package/dist/assets/providers/pg.png +0 -0
  22. package/dist/assets/providers/pgsoft.png +0 -0
  23. package/dist/assets/providers/pragmatic-play.png +0 -0
  24. package/dist/assets/providers/realtime-gaming.png +0 -0
  25. package/dist/assets/providers/redtiger.png +0 -0
  26. package/dist/assets/providers/rtg.png +0 -0
  27. package/dist/assets/providers/sagaming.png +0 -0
  28. package/dist/client/hooks/useAiOGCashDepositMutation.d.ts +4 -0
  29. package/dist/client/hooks/useAiOGCashDepositMutation.js +90 -0
  30. package/dist/client/hooks/useAiOGrabPayDepositMutation.d.ts +4 -0
  31. package/dist/client/hooks/useAiOGrabPayDepositMutation.js +80 -0
  32. package/dist/client/hooks/useAiOPalawanPayDepositMutation.d.ts +4 -0
  33. package/dist/client/hooks/useAiOPalawanPayDepositMutation.js +80 -0
  34. package/dist/client/hooks/useAiOPayMayaDepositMutation.d.ts +4 -0
  35. package/dist/client/hooks/useAiOPayMayaDepositMutation.js +80 -0
  36. package/dist/client/hooks/useRedeemVoucherMutation.d.ts +3 -0
  37. package/dist/client/hooks/useRedeemVoucherMutation.js +24 -0
  38. package/dist/components/Banner/Banner.client.d.ts +12 -0
  39. package/dist/components/Banner/Banner.client.js +49 -0
  40. package/dist/components/DepositWithdrawal/AiOPaymentMethods.d.ts +11 -0
  41. package/dist/components/DepositWithdrawal/AiOPaymentMethods.js +55 -0
  42. package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.js +21 -2
  43. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +6 -1
  44. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.d.ts +1 -0
  45. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +99 -0
  46. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.d.ts +1 -0
  47. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +17 -0
  48. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -0
  49. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +116 -0
  50. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHQRCode.d.ts +3 -0
  51. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHQRCode.js +69 -0
  52. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDeposit.d.ts +1 -0
  53. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDeposit.js +10 -0
  54. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositAlert.d.ts +1 -0
  55. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositAlert.js +99 -0
  56. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.d.ts +25 -0
  57. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.js +2 -0
  58. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositDetails.d.ts +1 -0
  59. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositDetails.js +17 -0
  60. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositForm.d.ts +1 -0
  61. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositForm.js +116 -0
  62. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHQRCode.d.ts +3 -0
  63. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHQRCode.js +69 -0
  64. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.d.ts +13 -0
  65. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.js +85 -0
  66. package/dist/components/DepositWithdrawal/Deposit/Voucher/Voucher.d.ts +1 -0
  67. package/dist/components/DepositWithdrawal/Deposit/Voucher/Voucher.js +86 -0
  68. package/dist/components/DepositWithdrawal/Deposit/Voucher/definition.d.ts +11 -0
  69. package/dist/components/DepositWithdrawal/Deposit/Voucher/definition.js +6 -0
  70. package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGCashDeposit/AiOGCashDeposit.d.ts +1 -0
  71. package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGCashDeposit/AiOGCashDeposit.js +173 -0
  72. package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGrabPayDeposit/AiOGrabPayDeposit.d.ts +1 -0
  73. package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGrabPayDeposit/AiOGrabPayDeposit.js +171 -0
  74. package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPalawanPayDeposit/AiOPalawanPayDeposit.d.ts +1 -0
  75. package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPalawanPayDeposit/AiOPalawanPayDeposit.js +171 -0
  76. package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPayMayaDeposit/AiOPayMayaDeposit.d.ts +1 -0
  77. package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPayMayaDeposit/AiOPayMayaDeposit.js +171 -0
  78. package/dist/components/DepositWithdrawal/Deposit__legacy/AvailablePromos.d.ts +8 -0
  79. package/dist/components/DepositWithdrawal/Deposit__legacy/AvailablePromos.js +33 -0
  80. package/dist/components/DepositWithdrawal/Deposit__legacy/Deposit.d.ts +1 -0
  81. package/dist/components/DepositWithdrawal/Deposit__legacy/Deposit.js +120 -0
  82. package/dist/components/DepositWithdrawal/Deposit__legacy/GCashDeposit/GCashDeposit.d.ts +1 -0
  83. package/dist/components/DepositWithdrawal/Deposit__legacy/GCashDeposit/GCashDeposit.js +163 -0
  84. package/dist/components/DepositWithdrawal/Deposit__legacy/GCashWebpayDeposit/GCashWebpayDeposit.d.ts +1 -0
  85. package/dist/components/DepositWithdrawal/Deposit__legacy/GCashWebpayDeposit/GCashWebpayDeposit.js +165 -0
  86. package/dist/components/DepositWithdrawal/Deposit__legacy/LibanganDeposit/LibanganDeposit.d.ts +1 -0
  87. package/dist/components/DepositWithdrawal/Deposit__legacy/LibanganDeposit/LibanganDeposit.js +186 -0
  88. package/dist/components/DepositWithdrawal/Deposit__legacy/MayaAppDeposit/MayaAppDeposit.d.ts +1 -0
  89. package/dist/components/DepositWithdrawal/Deposit__legacy/MayaAppDeposit/MayaAppDeposit.js +157 -0
  90. package/dist/components/DepositWithdrawal/Deposit__legacy/MayaDeposit/MayaDeposit.d.ts +1 -0
  91. package/dist/components/DepositWithdrawal/Deposit__legacy/MayaDeposit/MayaDeposit.js +163 -0
  92. package/dist/components/DepositWithdrawal/Deposit__legacy/MayaWebpayDeposit/MayaWebpayDeposit.d.ts +1 -0
  93. package/dist/components/DepositWithdrawal/Deposit__legacy/MayaWebpayDeposit/MayaWebpayDeposit.js +166 -0
  94. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDeposit.d.ts +1 -0
  95. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDeposit.js +10 -0
  96. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositAlert.d.ts +1 -0
  97. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositAlert.js +99 -0
  98. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.d.ts +25 -0
  99. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.js +2 -0
  100. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositDetails.d.ts +1 -0
  101. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositDetails.js +19 -0
  102. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -0
  103. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositForm.js +115 -0
  104. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.d.ts +13 -0
  105. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.js +81 -0
  106. package/dist/components/DepositWithdrawal/Deposit__legacy/PisoPayDeposit/PisoPayDeposit.d.ts +1 -0
  107. package/dist/components/DepositWithdrawal/Deposit__legacy/PisoPayDeposit/PisoPayDeposit.js +180 -0
  108. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDeposit.d.ts +1 -0
  109. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDeposit.js +10 -0
  110. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositAlert.d.ts +1 -0
  111. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositAlert.js +99 -0
  112. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.d.ts +25 -0
  113. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.js +2 -0
  114. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositDetails.d.ts +1 -0
  115. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositDetails.js +17 -0
  116. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositForm.d.ts +1 -0
  117. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositForm.js +116 -0
  118. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHQRCode.d.ts +3 -0
  119. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHQRCode.js +69 -0
  120. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.d.ts +13 -0
  121. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.js +85 -0
  122. package/dist/components/DepositWithdrawal/PaymentMethods.js +9 -2
  123. package/dist/components/DepositWithdrawal/utils.d.ts +1 -1
  124. package/dist/components/DepositWithdrawal/utils.js +1 -0
  125. package/dist/components/DigitainLauncher/Loading.d.ts +1 -0
  126. package/dist/components/DigitainLauncher/Loading.js +5 -0
  127. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -0
  128. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -0
  129. package/dist/components/KYC/BasicInformation.d.ts +1 -0
  130. package/dist/components/KYC/BasicInformation.js +101 -0
  131. package/dist/components/KYC/IdentityVerification.d.ts +1 -0
  132. package/dist/components/KYC/IdentityVerification.js +120 -0
  133. package/dist/components/KYC/Indicator.d.ts +1 -0
  134. package/dist/components/KYC/Indicator.js +8 -0
  135. package/dist/components/KYC/KYC.lazy.d.ts +6 -0
  136. package/dist/components/KYC/KYC.lazy.js +45 -0
  137. package/dist/components/KYC/KYCContext.d.ts +6 -0
  138. package/dist/components/KYC/KYCContext.js +2 -0
  139. package/dist/components/KYC/KYCDefault/BasicInformation.d.ts +1 -0
  140. package/dist/components/KYC/KYCDefault/BasicInformation.js +101 -0
  141. package/dist/components/KYC/KYCNonPagCor/PersonalInformation.js +51 -5
  142. package/dist/components/KYC/KYCNonPagCor/useKYCNonPagCor.js +5 -3
  143. package/dist/components/KYC/KYCVerificationStatus.d.ts +1 -0
  144. package/dist/components/KYC/KYCVerificationStatus.js +10 -0
  145. package/dist/components/KYC/KYCVerificationStatus.lazy.d.ts +1 -0
  146. package/dist/components/KYC/KYCVerificationStatus.lazy.js +36 -0
  147. package/dist/components/KYC/PersonalInformation.d.ts +1 -0
  148. package/dist/components/KYC/PersonalInformation.js +122 -0
  149. package/dist/components/KYC/useKYC.d.ts +25 -0
  150. package/dist/components/KYC/useKYC.js +38 -0
  151. package/dist/components/KYCNotRequired/KYCNotRequired.d.ts +0 -0
  152. package/dist/components/KYCNotRequired/KYCNotRequired.js +1 -0
  153. package/dist/components/PortalProvider/AndroidOnlyComponents.d.ts +1 -0
  154. package/dist/components/PortalProvider/AndroidOnlyComponents.js +12 -0
  155. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +1 -0
  156. package/dist/components/PortalProvider/CXDTokenObserver.js +30 -0
  157. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +1 -0
  158. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +29 -0
  159. package/dist/components/Quests/MultiWageringQuest.d.ts +1 -0
  160. package/dist/components/Quests/MultiWageringQuest.js +111 -0
  161. package/dist/components/SessionWatcher/SessionWatcher.d.ts +1 -0
  162. package/dist/components/SessionWatcher/SessionWatcher.js +20 -0
  163. package/dist/components/SessionWatcher/index.d.ts +1 -0
  164. package/dist/components/SessionWatcher/index.js +1 -0
  165. package/dist/components/SignIn/utils.d.ts +8 -0
  166. package/dist/components/SignIn/utils.js +26 -0
  167. package/dist/components/SingleSignOn/SingleSignOn.d.ts +1 -1
  168. package/dist/components/SingleSignOn/SingleSignOn.js +7 -15
  169. package/dist/constants/Branches.d.ts +2 -0
  170. package/dist/constants/Branches.js +42 -0
  171. package/dist/icons/CelebrationIcon.d.ts +2 -0
  172. package/dist/icons/CelebrationIcon.js +4 -0
  173. package/dist/images/game-providers/ALPHACHINKO.png +0 -0
  174. package/dist/images/responsible-gaming-yellow.png +0 -0
  175. package/dist/images/voucher-lazada.png +0 -0
  176. package/dist/images/voucher-ticket.png +0 -0
  177. package/dist/services/queries.d.ts +1 -0
  178. package/dist/services/queries.js +18 -0
  179. package/dist/services/wallet.d.ts +25 -0
  180. package/dist/services/wallet.js +19 -1
  181. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  182. package/dist/third-parties/FacebookPixel/FacebookPixel.js +4 -0
  183. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  184. package/dist/third-parties/FacebookPixel/api.js +1 -0
  185. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  186. package/dist/third-parties/FacebookPixel/index.js +1 -0
  187. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  188. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +4 -0
  189. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  190. package/dist/third-parties/GoogleRecaptcha/api.js +1 -0
  191. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  192. package/dist/third-parties/GoogleRecaptcha/index.js +1 -0
  193. package/dist/third-parties/index.d.ts +2 -0
  194. package/dist/third-parties/index.js +2 -0
  195. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  196. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  197. package/dist/utils/getLocaleInfo.d.ts +79 -0
  198. package/dist/utils/getLocaleInfo.js +175 -0
  199. package/dist/utils/mutationKeys.d.ts +1 -0
  200. package/dist/utils/mutationKeys.js +4 -0
  201. package/package.json +1 -1
@@ -713,4 +713,29 @@ export interface FavoriteGamesQuery {
713
713
  favoriteGames: FavoriteGame[];
714
714
  }
715
715
  export declare const getFavoriteGames: (options?: GraphQLRequestOptions) => Promise<FavoriteGame[]>;
716
+ export type RedeemVoucherError = {
717
+ name: 'InvalidVoucherError';
718
+ message: string;
719
+ } | {
720
+ name: 'VoucherAlreadyRedeemedError';
721
+ message: string;
722
+ } | {
723
+ name: 'ExpiredVoucherError';
724
+ message: string;
725
+ };
726
+ export interface RedeemVoucherMutation {
727
+ redeemVoucher?: null | RedeemVoucherError;
728
+ }
729
+ declare enum VoucherType {
730
+ BUILTIN = 0,
731
+ LAZADA = 1
732
+ }
733
+ export interface RedeemVoucherMutationVariables {
734
+ input: {
735
+ type: VoucherType;
736
+ code: string;
737
+ };
738
+ }
739
+ export type RedeemVoucherInput = Simplify<RedeemVoucherMutationVariables['input']>;
740
+ export declare const redeemVoucher: (input: RedeemVoucherInput, options?: GraphQLRequestOptions) => Promise<void>;
716
741
  export {};
@@ -2,7 +2,7 @@ import { cache } from 'react';
2
2
  import { WALLET_GRAPHQL_ENDPOINT } from '../constants/index.js';
3
3
  import { parseDecimal } from '../utils/parseDecimal.js';
4
4
  import { graphqlRequest } from './graphqlRequest.js';
5
- import { AVAILABLE_PROMOS, BONUS, BONUS_BALANCES, BONUS_IDS, BONUSES, CASHBACK, CASHBACK_BONUS, CASHBACK_BONUS_IDS, CASHBACK_BONUSES, CASHBACKS, CLAIM_CASHBACK_BONUS, CLAIM_SPOT_BONUS, CREATE_AIO_GCASH_DEPOSIT, CREATE_AIO_GRAB_PAY_DEPOSIT, CREATE_AIO_INSTAPAY_WITHDRAWAL, CREATE_AIO_INSTAPAY_WITHDRAWAL_NEXT, CREATE_AIO_ONLINE_BANK_DEPOSIT, CREATE_AIO_PALAWAN_PAY_DEPOSIT, CREATE_AIO_PAY_MAYA_DEPOSIT, CREATE_AIO_QRPH_DEPOSIT, CREATE_AURIX_PAY_GCASH_DEPOSIT, CREATE_AURIX_PAY_GRAB_PAY_DEPOSIT, CREATE_AURIX_PAY_PAY_MAYA_DEPOSIT, CREATE_AURIX_PAY_QR_PH_DEPOSIT, CREATE_BANK_WITHDRAWAL, CREATE_GAME_SESSION, CREATE_GCASH_DEPOSIT, CREATE_GCASH_STANDARD_CASH_IN_WITHDRAWAL, CREATE_GCASH_WEBPAY_DEPOSIT, CREATE_GCASH_WITHDRAWAL, CREATE_LIBANGAN_DEPOSIT, CREATE_MANUAL_BANK_DEPOSIT, CREATE_MANUAL_BANK_WITHDRAWAL, CREATE_MANUAL_UPI_DEPOSIT, CREATE_MANUAL_UPI_WITHDRAWAL, CREATE_MAYA_APP_DEPOSIT, CREATE_MAYA_APP_WITHDRAWAL, CREATE_MAYA_DEPOSIT, CREATE_MAYA_WEBPAY_DEPOSIT, CREATE_MAYA_WITHDRAWAL, CREATE_PISO_PAY_DEPOSIT, CREATE_PISO_PAY_WITHDRAWAL, CREATE_VENTAJA_WITHDRAWAL, DEPOSIT, END_GAME_SESSION, FAVORITE_GAMES, GAME_SESSION, INSTAPAY_BANK_LIST, MARK_GAME_AS_FAVORITE, MAYA_SESSION, POINTS_WALLET, PROMO, PROMOS, REDEEM_POINTS_TO_CASH, REMAINING_DAILY_WITHDRAWALS_COUNT, TOUCH_GCASH_DEPOSIT, TOUCH_QRPH_DEPOSIT, UNMARK_GAME_AS_FAVORITE, VALIDATE_MAYA_SESSION, WALLET, } from './queries.js';
5
+ import { AVAILABLE_PROMOS, BONUS, BONUS_BALANCES, BONUS_IDS, BONUSES, CASHBACK, CASHBACK_BONUS, CASHBACK_BONUS_IDS, CASHBACK_BONUSES, CASHBACKS, CLAIM_CASHBACK_BONUS, CLAIM_SPOT_BONUS, CREATE_AIO_GCASH_DEPOSIT, CREATE_AIO_GRAB_PAY_DEPOSIT, CREATE_AIO_INSTAPAY_WITHDRAWAL, CREATE_AIO_INSTAPAY_WITHDRAWAL_NEXT, CREATE_AIO_ONLINE_BANK_DEPOSIT, CREATE_AIO_PALAWAN_PAY_DEPOSIT, CREATE_AIO_PAY_MAYA_DEPOSIT, CREATE_AIO_QRPH_DEPOSIT, CREATE_AURIX_PAY_GCASH_DEPOSIT, CREATE_AURIX_PAY_GRAB_PAY_DEPOSIT, CREATE_AURIX_PAY_PAY_MAYA_DEPOSIT, CREATE_AURIX_PAY_QR_PH_DEPOSIT, CREATE_BANK_WITHDRAWAL, CREATE_GAME_SESSION, CREATE_GCASH_DEPOSIT, CREATE_GCASH_STANDARD_CASH_IN_WITHDRAWAL, CREATE_GCASH_WEBPAY_DEPOSIT, CREATE_GCASH_WITHDRAWAL, CREATE_LIBANGAN_DEPOSIT, CREATE_MANUAL_BANK_DEPOSIT, CREATE_MANUAL_BANK_WITHDRAWAL, CREATE_MANUAL_UPI_DEPOSIT, CREATE_MANUAL_UPI_WITHDRAWAL, CREATE_MAYA_APP_DEPOSIT, CREATE_MAYA_APP_WITHDRAWAL, CREATE_MAYA_DEPOSIT, CREATE_MAYA_WEBPAY_DEPOSIT, CREATE_MAYA_WITHDRAWAL, CREATE_PISO_PAY_DEPOSIT, CREATE_PISO_PAY_WITHDRAWAL, CREATE_VENTAJA_WITHDRAWAL, DEPOSIT, END_GAME_SESSION, FAVORITE_GAMES, GAME_SESSION, INSTAPAY_BANK_LIST, MARK_GAME_AS_FAVORITE, MAYA_SESSION, POINTS_WALLET, PROMO, PROMOS, REDEEM_POINTS_TO_CASH, REMAINING_DAILY_WITHDRAWALS_COUNT, TOUCH_GCASH_DEPOSIT, TOUCH_QRPH_DEPOSIT, UNMARK_GAME_AS_FAVORITE, VALIDATE_MAYA_SESSION, WALLET, REDEEM_VOUCHER, } from './queries.js';
6
6
  import { sha256 } from './sha256.js';
7
7
  export const getPromos = cache(async (options) => {
8
8
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, PROMOS, undefined, {
@@ -583,6 +583,21 @@ export const getFavoriteGames = cache(async (options) => {
583
583
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, FAVORITE_GAMES, undefined, options);
584
584
  return res.favoriteGames;
585
585
  });
586
+ var VoucherType;
587
+ (function (VoucherType) {
588
+ VoucherType[VoucherType["BUILTIN"] = 0] = "BUILTIN";
589
+ VoucherType[VoucherType["LAZADA"] = 1] = "LAZADA";
590
+ })(VoucherType || (VoucherType = {}));
591
+ export const redeemVoucher = async (input, options) => {
592
+ const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, REDEEM_VOUCHER, { input }, options);
593
+ if (res.redeemVoucher) {
594
+ const error = new Error();
595
+ error.name = res.redeemVoucher.name;
596
+ error.message = ERROR_CODES_MESSAGE_MAP[res.redeemVoucher.name];
597
+ Error.captureStackTrace?.(error, redeemVoucher);
598
+ throw error;
599
+ }
600
+ };
586
601
  const ERROR_CODES_MESSAGE_MAP = {
587
602
  PointsNotDivisibleBy100Error: 'Please input points that are multiples of 100.',
588
603
  MaximumBonusesCountLimitExceededError: 'Maximum bonuses reached',
@@ -612,4 +627,7 @@ const ERROR_CODES_MESSAGE_MAP = {
612
627
  ExpiredSessionError: 'Libangan Session has expired',
613
628
  TurnoverRequirementNotYetFulfilledError: 'Turnover requirement not yet fulfilled',
614
629
  FirstDepositRequiredError: 'First deposit is required',
630
+ InvalidVoucherError: 'Invalid voucher code',
631
+ VoucherAlreadyRedeemedError: 'This voucher has already been redeemed',
632
+ ExpiredVoucherError: 'This voucher has expired',
615
633
  };
@@ -0,0 +1,4 @@
1
+ export interface FacebookPixelProps {
2
+ fbId: string;
3
+ }
4
+ export declare function FacebookPixel(props: FacebookPixelProps): null;
@@ -0,0 +1,4 @@
1
+ export function FacebookPixel(props) {
2
+ console.log(props);
3
+ return null;
4
+ }
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export * from './FacebookPixel';
@@ -0,0 +1 @@
1
+ export * from './FacebookPixel.js';
@@ -0,0 +1,4 @@
1
+ export interface GoogleRecaptchaProps {
2
+ siteKey: string;
3
+ }
4
+ export declare function GoogleRecaptcha(props: GoogleRecaptchaProps): null;
@@ -0,0 +1,4 @@
1
+ export function GoogleRecaptcha(props) {
2
+ console.log(props);
3
+ return null;
4
+ }
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export * from './GoogleRecaptcha';
@@ -0,0 +1 @@
1
+ export * from './GoogleRecaptcha.js';
@@ -0,0 +1,2 @@
1
+ export * from './FacebookPixel';
2
+ export * from './GoogleRecaptcha';
@@ -0,0 +1,2 @@
1
+ export * from './FacebookPixel/index.js';
2
+ export * from './GoogleRecaptcha/index.js';
@@ -4,8 +4,8 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
4
4
  [key: string]: import("tailwind-variants").ClassValue | {
5
5
  pattern?: import("tailwind-variants").ClassValue;
6
6
  root?: import("tailwind-variants").ClassValue;
7
- overlay?: import("tailwind-variants").ClassValue;
8
7
  frame?: import("tailwind-variants").ClassValue;
8
+ overlay?: import("tailwind-variants").ClassValue;
9
9
  downloadTrigger?: import("tailwind-variants").ClassValue;
10
10
  };
11
11
  };
@@ -14,29 +14,29 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
14
14
  [x: string]: import("tailwind-variants").ClassValue | {
15
15
  pattern?: import("tailwind-variants").ClassValue;
16
16
  root?: import("tailwind-variants").ClassValue;
17
- overlay?: import("tailwind-variants").ClassValue;
18
17
  frame?: import("tailwind-variants").ClassValue;
18
+ overlay?: import("tailwind-variants").ClassValue;
19
19
  downloadTrigger?: import("tailwind-variants").ClassValue;
20
20
  };
21
21
  };
22
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, {
22
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, {
23
23
  [key: string]: {
24
24
  [key: string]: import("tailwind-variants").ClassValue | {
25
25
  pattern?: import("tailwind-variants").ClassValue;
26
26
  root?: import("tailwind-variants").ClassValue;
27
- overlay?: import("tailwind-variants").ClassValue;
28
27
  frame?: import("tailwind-variants").ClassValue;
28
+ overlay?: import("tailwind-variants").ClassValue;
29
29
  downloadTrigger?: import("tailwind-variants").ClassValue;
30
30
  };
31
31
  };
32
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
32
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
33
33
  export declare const DownloadTrigger: import("react").ComponentType<import("@ark-ui/react").Assign<QrCode.DownloadTriggerProps & import("react").RefAttributes<HTMLButtonElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
34
34
  [key: string]: {
35
35
  [key: string]: import("tailwind-variants").ClassValue | {
36
36
  pattern?: import("tailwind-variants").ClassValue;
37
37
  root?: import("tailwind-variants").ClassValue;
38
- overlay?: import("tailwind-variants").ClassValue;
39
38
  frame?: import("tailwind-variants").ClassValue;
39
+ overlay?: import("tailwind-variants").ClassValue;
40
40
  downloadTrigger?: import("tailwind-variants").ClassValue;
41
41
  };
42
42
  };
@@ -45,29 +45,29 @@ export declare const DownloadTrigger: import("react").ComponentType<import("@ark
45
45
  [x: string]: import("tailwind-variants").ClassValue | {
46
46
  pattern?: import("tailwind-variants").ClassValue;
47
47
  root?: import("tailwind-variants").ClassValue;
48
- overlay?: import("tailwind-variants").ClassValue;
49
48
  frame?: import("tailwind-variants").ClassValue;
49
+ overlay?: import("tailwind-variants").ClassValue;
50
50
  downloadTrigger?: import("tailwind-variants").ClassValue;
51
51
  };
52
52
  };
53
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, {
53
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, {
54
54
  [key: string]: {
55
55
  [key: string]: import("tailwind-variants").ClassValue | {
56
56
  pattern?: import("tailwind-variants").ClassValue;
57
57
  root?: import("tailwind-variants").ClassValue;
58
- overlay?: import("tailwind-variants").ClassValue;
59
58
  frame?: import("tailwind-variants").ClassValue;
59
+ overlay?: import("tailwind-variants").ClassValue;
60
60
  downloadTrigger?: import("tailwind-variants").ClassValue;
61
61
  };
62
62
  };
63
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
63
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
64
64
  export declare const Frame: import("react").ComponentType<import("@ark-ui/react").Assign<QrCode.FrameProps & import("react").RefAttributes<SVGSVGElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
65
65
  [key: string]: {
66
66
  [key: string]: import("tailwind-variants").ClassValue | {
67
67
  pattern?: import("tailwind-variants").ClassValue;
68
68
  root?: import("tailwind-variants").ClassValue;
69
- overlay?: import("tailwind-variants").ClassValue;
70
69
  frame?: import("tailwind-variants").ClassValue;
70
+ overlay?: import("tailwind-variants").ClassValue;
71
71
  downloadTrigger?: import("tailwind-variants").ClassValue;
72
72
  };
73
73
  };
@@ -76,29 +76,29 @@ export declare const Frame: import("react").ComponentType<import("@ark-ui/react"
76
76
  [x: string]: import("tailwind-variants").ClassValue | {
77
77
  pattern?: import("tailwind-variants").ClassValue;
78
78
  root?: import("tailwind-variants").ClassValue;
79
- overlay?: import("tailwind-variants").ClassValue;
80
79
  frame?: import("tailwind-variants").ClassValue;
80
+ overlay?: import("tailwind-variants").ClassValue;
81
81
  downloadTrigger?: import("tailwind-variants").ClassValue;
82
82
  };
83
83
  };
84
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, {
84
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, {
85
85
  [key: string]: {
86
86
  [key: string]: import("tailwind-variants").ClassValue | {
87
87
  pattern?: import("tailwind-variants").ClassValue;
88
88
  root?: import("tailwind-variants").ClassValue;
89
- overlay?: import("tailwind-variants").ClassValue;
90
89
  frame?: import("tailwind-variants").ClassValue;
90
+ overlay?: import("tailwind-variants").ClassValue;
91
91
  downloadTrigger?: import("tailwind-variants").ClassValue;
92
92
  };
93
93
  };
94
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
94
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
95
95
  export declare const Overlay: import("react").ComponentType<import("@ark-ui/react").Assign<QrCode.OverlayProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
96
96
  [key: string]: {
97
97
  [key: string]: import("tailwind-variants").ClassValue | {
98
98
  pattern?: import("tailwind-variants").ClassValue;
99
99
  root?: import("tailwind-variants").ClassValue;
100
- overlay?: import("tailwind-variants").ClassValue;
101
100
  frame?: import("tailwind-variants").ClassValue;
101
+ overlay?: import("tailwind-variants").ClassValue;
102
102
  downloadTrigger?: import("tailwind-variants").ClassValue;
103
103
  };
104
104
  };
@@ -107,29 +107,29 @@ export declare const Overlay: import("react").ComponentType<import("@ark-ui/reac
107
107
  [x: string]: import("tailwind-variants").ClassValue | {
108
108
  pattern?: import("tailwind-variants").ClassValue;
109
109
  root?: import("tailwind-variants").ClassValue;
110
- overlay?: import("tailwind-variants").ClassValue;
111
110
  frame?: import("tailwind-variants").ClassValue;
111
+ overlay?: import("tailwind-variants").ClassValue;
112
112
  downloadTrigger?: import("tailwind-variants").ClassValue;
113
113
  };
114
114
  };
115
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, {
115
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, {
116
116
  [key: string]: {
117
117
  [key: string]: import("tailwind-variants").ClassValue | {
118
118
  pattern?: import("tailwind-variants").ClassValue;
119
119
  root?: import("tailwind-variants").ClassValue;
120
- overlay?: import("tailwind-variants").ClassValue;
121
120
  frame?: import("tailwind-variants").ClassValue;
121
+ overlay?: import("tailwind-variants").ClassValue;
122
122
  downloadTrigger?: import("tailwind-variants").ClassValue;
123
123
  };
124
124
  };
125
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
125
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
126
126
  export declare const Pattern: import("react").ComponentType<import("@ark-ui/react").Assign<QrCode.PatternProps & import("react").RefAttributes<SVGPathElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
127
127
  [key: string]: {
128
128
  [key: string]: import("tailwind-variants").ClassValue | {
129
129
  pattern?: import("tailwind-variants").ClassValue;
130
130
  root?: import("tailwind-variants").ClassValue;
131
- overlay?: import("tailwind-variants").ClassValue;
132
131
  frame?: import("tailwind-variants").ClassValue;
132
+ overlay?: import("tailwind-variants").ClassValue;
133
133
  downloadTrigger?: import("tailwind-variants").ClassValue;
134
134
  };
135
135
  };
@@ -138,20 +138,20 @@ export declare const Pattern: import("react").ComponentType<import("@ark-ui/reac
138
138
  [x: string]: import("tailwind-variants").ClassValue | {
139
139
  pattern?: import("tailwind-variants").ClassValue;
140
140
  root?: import("tailwind-variants").ClassValue;
141
- overlay?: import("tailwind-variants").ClassValue;
142
141
  frame?: import("tailwind-variants").ClassValue;
142
+ overlay?: import("tailwind-variants").ClassValue;
143
143
  downloadTrigger?: import("tailwind-variants").ClassValue;
144
144
  };
145
145
  };
146
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, {
146
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, {
147
147
  [key: string]: {
148
148
  [key: string]: import("tailwind-variants").ClassValue | {
149
149
  pattern?: import("tailwind-variants").ClassValue;
150
150
  root?: import("tailwind-variants").ClassValue;
151
- overlay?: import("tailwind-variants").ClassValue;
152
151
  frame?: import("tailwind-variants").ClassValue;
152
+ overlay?: import("tailwind-variants").ClassValue;
153
153
  downloadTrigger?: import("tailwind-variants").ClassValue;
154
154
  };
155
155
  };
156
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
156
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
157
157
  export declare const Context: (props: QrCode.ContextProps) => import("react").ReactNode;
@@ -3,8 +3,8 @@ export declare const qrCodeRecipe: import("tailwind-variants").TVReturnType<{
3
3
  [key: string]: import("tailwind-variants").ClassValue | {
4
4
  pattern?: import("tailwind-variants").ClassValue;
5
5
  root?: import("tailwind-variants").ClassValue;
6
- overlay?: import("tailwind-variants").ClassValue;
7
6
  frame?: import("tailwind-variants").ClassValue;
7
+ overlay?: import("tailwind-variants").ClassValue;
8
8
  downloadTrigger?: import("tailwind-variants").ClassValue;
9
9
  };
10
10
  };
@@ -13,19 +13,19 @@ export declare const qrCodeRecipe: import("tailwind-variants").TVReturnType<{
13
13
  [x: string]: import("tailwind-variants").ClassValue | {
14
14
  pattern?: import("tailwind-variants").ClassValue;
15
15
  root?: import("tailwind-variants").ClassValue;
16
- overlay?: import("tailwind-variants").ClassValue;
17
16
  frame?: import("tailwind-variants").ClassValue;
17
+ overlay?: import("tailwind-variants").ClassValue;
18
18
  downloadTrigger?: import("tailwind-variants").ClassValue;
19
19
  };
20
20
  };
21
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, {
21
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, {
22
22
  [key: string]: {
23
23
  [key: string]: import("tailwind-variants").ClassValue | {
24
24
  pattern?: import("tailwind-variants").ClassValue;
25
25
  root?: import("tailwind-variants").ClassValue;
26
- overlay?: import("tailwind-variants").ClassValue;
27
26
  frame?: import("tailwind-variants").ClassValue;
27
+ overlay?: import("tailwind-variants").ClassValue;
28
28
  downloadTrigger?: import("tailwind-variants").ClassValue;
29
29
  };
30
30
  };
31
- } | {}, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "overlay" | "frame" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>;
31
+ } | {}, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"pattern" | "root" | "frame" | "overlay" | "downloadTrigger", string | string[]>, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,79 @@
1
+ import { type ComponentProps, type ComponentType } from 'react';
2
+ export interface CountryInfo {
3
+ /**
4
+ * @description The country code
5
+ * @example 'PHL'
6
+ */
7
+ code: 'IDN' | 'IND' | 'MYS' | 'PHL' | 'VNM';
8
+ /**
9
+ * @description The country name
10
+ * @example 'Philippines'
11
+ */
12
+ name: string;
13
+ /**
14
+ * @description The country flag
15
+ * @usage
16
+ * ```tsx
17
+ * const localeInfo = getLocaleInfo('Asia/Manila');
18
+ * <localeInfo.country.flag />
19
+ * ```
20
+ */
21
+ flag: ComponentType<ComponentProps<'svg'>>;
22
+ }
23
+ export interface CurrencyInfo {
24
+ /**
25
+ * @description The currency code
26
+ * @example 'PHP'
27
+ */
28
+ code: 'IDR' | 'INR' | 'MYR' | 'PHP' | 'USD' | 'VND';
29
+ /**
30
+ * @description The currency name
31
+ * @example 'Philippine Peso'
32
+ */
33
+ name: string;
34
+ /**
35
+ * @description The currency symbol
36
+ * @example '₱'
37
+ */
38
+ symbol: string;
39
+ /**
40
+ * Used in api
41
+ * @example 'VIRTUAL'
42
+ */
43
+ externalCode: 'IDR' | 'INR' | 'MYR' | 'PHP' | 'USD' | 'VIRTUAL' | (string & {});
44
+ }
45
+ export interface MobileNumberInfo {
46
+ /**
47
+ * @description The mobile number area code
48
+ * @example '+63'
49
+ */
50
+ areaCode: string;
51
+ /**
52
+ * @description The mobile number digits count
53
+ * @example 10
54
+ */
55
+ numOfDigits: number;
56
+ /**
57
+ * @description pattern to validate mobile number
58
+ * @usage
59
+ * ```ts
60
+ * const localeInfo = getLocaleInfo('Asia/Manila');
61
+ * const isValid = localeInfo.mobileNumber.pattern.test('9190000000');
62
+ * ```
63
+ */
64
+ pattern: RegExp;
65
+ /**
66
+ * @description The mobile number example
67
+ * @example '9190000000'
68
+ */
69
+ example: string;
70
+ }
71
+ export type Timezone = 'Asia/Manila' | 'Asia/Kolkata' | 'Asia/Jakarta' | 'Asia/Makassar' | 'Asia/Jayapura' | 'Asia/Kuala_Lumpur' | 'Asia/Ho_Chi_Minh' | (string & {});
72
+ export interface LocaleInfo {
73
+ locale: string;
74
+ timezone: Timezone;
75
+ country: CountryInfo;
76
+ currency: CurrencyInfo;
77
+ mobileNumber: MobileNumberInfo;
78
+ }
79
+ export declare const getLocaleInfo: (timezone: Timezone) => LocaleInfo;
@@ -0,0 +1,175 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cache, } from 'react';
3
+ export const getLocaleInfo = cache((timezone) => {
4
+ switch (timezone.toLowerCase()) {
5
+ case 'asia/jakarta':
6
+ return {
7
+ locale: 'id-ID',
8
+ timezone: 'Asia/Jakarta',
9
+ country: {
10
+ name: 'Indonesia',
11
+ code: 'IDN',
12
+ flag: IndonesianFlag,
13
+ },
14
+ currency: {
15
+ code: 'IDR',
16
+ name: 'Indonesian Rupiah',
17
+ symbol: 'Rp',
18
+ externalCode: 'IDR',
19
+ },
20
+ mobileNumber: {
21
+ areaCode: '+62',
22
+ numOfDigits: 10,
23
+ example: `81${''.padStart(8, '0')}`,
24
+ pattern: /^(\+?62|0)?8\d{9}$/,
25
+ },
26
+ };
27
+ case 'asia/jayapura':
28
+ return {
29
+ locale: 'id-ID',
30
+ timezone: 'Asia/Jayapura',
31
+ country: {
32
+ code: 'IDN',
33
+ name: 'Indonesia',
34
+ flag: IndonesianFlag,
35
+ },
36
+ currency: {
37
+ code: 'IDR',
38
+ name: 'Indonesian Rupiah',
39
+ symbol: 'Rp',
40
+ externalCode: 'IDR',
41
+ },
42
+ mobileNumber: {
43
+ areaCode: '+62',
44
+ numOfDigits: 10,
45
+ example: `81${''.padStart(8, '0')}`,
46
+ pattern: /^(\+?62|0)?8\d{9}$/,
47
+ },
48
+ };
49
+ case 'asia/makassar':
50
+ return {
51
+ locale: 'id-ID',
52
+ timezone: 'Asia/Makassar',
53
+ country: {
54
+ code: 'IDN',
55
+ name: 'Indonesia',
56
+ flag: IndonesianFlag,
57
+ },
58
+ currency: {
59
+ code: 'IDR',
60
+ name: 'Indonesian Rupiah',
61
+ symbol: 'Rp',
62
+ externalCode: 'IDR',
63
+ },
64
+ mobileNumber: {
65
+ areaCode: '+62',
66
+ numOfDigits: 10,
67
+ example: `81${''.padStart(8, '0')}`,
68
+ pattern: /^(\+?62|0)?8\d{9}$/,
69
+ },
70
+ };
71
+ case 'asia/kuala_lumpur':
72
+ return {
73
+ locale: 'ms-MY',
74
+ timezone: 'Asia/Kuala_Lumpur',
75
+ country: {
76
+ name: 'Malaysia',
77
+ code: 'MYS',
78
+ flag: MalaysianFlag,
79
+ },
80
+ currency: {
81
+ code: 'MYR',
82
+ name: 'Malaysian Ringgit',
83
+ symbol: 'RM',
84
+ externalCode: 'MYR',
85
+ },
86
+ mobileNumber: {
87
+ areaCode: '+60',
88
+ numOfDigits: 9,
89
+ example: `12${''.padStart(7, '0')}`,
90
+ pattern: /^(\+?60|0)?1[0-9]{1}\d{7}$/,
91
+ },
92
+ };
93
+ case 'asia/kolkata':
94
+ return {
95
+ locale: 'en-IN',
96
+ timezone: 'Asia/Kolkata',
97
+ country: {
98
+ code: 'IND',
99
+ name: 'India',
100
+ flag: IndianFlag,
101
+ },
102
+ currency: {
103
+ code: 'INR',
104
+ name: 'Indian Rupee',
105
+ symbol: '₹',
106
+ externalCode: 'INR',
107
+ },
108
+ mobileNumber: {
109
+ areaCode: '+91',
110
+ numOfDigits: 10,
111
+ example: `919${''.padStart(7, '0')}`,
112
+ pattern: /^(\+?91|0)?[789]\d{9}$/,
113
+ },
114
+ };
115
+ case 'asia/ho_chi_minh':
116
+ return {
117
+ locale: 'vi-VN',
118
+ timezone: 'Asia/Ho_Chi_Minh',
119
+ country: {
120
+ code: 'VNM',
121
+ name: 'Vietnam',
122
+ flag: VietnameseFlag,
123
+ },
124
+ currency: {
125
+ code: 'VND',
126
+ name: 'Vietnamese Dong',
127
+ symbol: '₫',
128
+ externalCode: 'VIRTUAL',
129
+ },
130
+ mobileNumber: {
131
+ areaCode: '+84',
132
+ numOfDigits: 9,
133
+ example: `849${''.padStart(7, '0')}`,
134
+ pattern: /^(\+?84|0)?(3[2-9]|5[6|8|9]|7[0|6-9]|8[1-6|8|9]|9[0-9])\d{7}$/,
135
+ },
136
+ };
137
+ default:
138
+ return {
139
+ locale: 'en-PH',
140
+ timezone: 'Asia/Manila',
141
+ country: {
142
+ code: 'PHL',
143
+ name: 'Philippines',
144
+ flag: PhilippineFlag,
145
+ },
146
+ currency: {
147
+ code: 'PHP',
148
+ name: 'Philippine Peso',
149
+ symbol: '₱',
150
+ externalCode: 'PHP',
151
+ },
152
+ mobileNumber: {
153
+ areaCode: '+63',
154
+ numOfDigits: 10,
155
+ example: `919${''.padStart(7, '0')}`,
156
+ pattern: /^(\+?63|0)?9\d{9}$/,
157
+ },
158
+ };
159
+ }
160
+ });
161
+ const PhilippineFlag = (props) => {
162
+ return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsxs("g", { clipPath: "url(#clip0_4392_27540)", children: [_jsx("path", { d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z", fill: "#F0F0F0" }), _jsx("path", { d: "M12.0004 0V12L3.51514 20.4853C5.68671 22.6568 8.68671 24 12.0004 24C18.6278 24 24.0004 18.6274 24.0004 12C24.0004 5.37262 12.0004 0 12.0004 0Z", fill: "#D80027" }), _jsx("path", { d: "M12.0004 0C8.68671 0 5.68671 1.34316 3.51514 3.51469C6.45936 6.45891 7.50453 7.50412 12.0004 12H24.0004C24.0004 5.37262 18.6278 0 12.0004 0Z", fill: "#0052B4" }), _jsx("path", { d: "M8.21723 11.9998L6.75173 11.3104L7.53215 9.89111L5.94074 10.1956L5.73909 8.58789L4.63059 9.77027L3.52213 8.58789L3.32043 10.1956L1.72907 9.89106L2.50949 11.3104L1.04395 11.9998L2.50949 12.6891L1.72907 14.1085L3.32057 13.8041L3.52209 15.4117L4.63059 14.2293L5.73909 15.4117L5.94074 13.8041L7.53205 14.1085L6.75168 12.6892L8.21723 11.9998Z", fill: "#FFDA44" }), _jsx("path", { d: "M3.20082 4.69519L3.68851 5.37689L4.48749 5.12382L3.98977 5.79825L4.47746 6.47996L3.68218 6.21507L3.18451 6.88946L3.19074 6.05133L2.39551 5.78639L3.19463 5.53332L3.20082 4.69519Z", fill: "#FFDA44" }), _jsx("path", { d: "M3.20082 17.1095L3.68851 17.7912L4.48749 17.5381L3.98977 18.2126L4.47746 18.8943L3.68218 18.6294L3.18451 19.3038L3.19074 18.4656L2.39551 18.2007L3.19463 17.9476L3.20082 17.1095Z", fill: "#FFDA44" }), _jsx("path", { d: "M10.1563 10.9032L9.66866 11.5849L8.86963 11.3317L9.36735 12.0062L8.87966 12.688L9.67494 12.423L10.1727 13.0974L10.1664 12.2593L10.9616 11.9944L10.1625 11.7413L10.1563 10.9032Z", fill: "#FFDA44" })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_4392_27540", children: _jsx("rect", { width: "24", height: "24", fill: "white" }) }) })] }));
163
+ };
164
+ const MalaysianFlag = (props) => {
165
+ return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsxs("g", { clipPath: "url(#clip0_4392_27547)", children: [_jsx("path", { d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z", fill: "#F0F0F0" }), _jsx("path", { d: "M11.4783 12.0002H24C24 10.9171 23.8556 9.86791 23.5866 8.86975H11.4783V12.0002Z", fill: "#D80027" }), _jsx("path", { d: "M11.4783 5.73873H22.2387C21.5041 4.54004 20.565 3.48053 19.4698 2.60828H11.4783V5.73873Z", fill: "#D80027" }), _jsx("path", { d: "M12.0001 24.0002C14.8243 24.0002 17.4201 23.024 19.47 21.3915H4.53027C6.58016 23.024 9.17596 24.0002 12.0001 24.0002Z", fill: "#D80027" }), _jsx("path", { d: "M1.76146 18.2601H22.2389C22.8286 17.2978 23.2859 16.2459 23.5868 15.1296H0.413574C0.714371 16.2459 1.17173 17.2978 1.76146 18.2601Z", fill: "#D80027" }), _jsx("path", { d: "M12 12C12 5.37262 12 4.59131 12 0C5.37262 0 0 5.37262 0 12H12Z", fill: "#0052B4" }), _jsx("path", { d: "M7.98001 10.2709C6.34117 10.2709 5.01263 8.94229 5.01263 7.30349C5.01263 5.6647 6.34121 4.33612 7.98001 4.33612C8.491 4.33612 8.97179 4.46535 9.39156 4.69279C8.73306 4.04887 7.8325 3.65137 6.8387 3.65137C4.82171 3.65137 3.18652 5.28651 3.18652 7.30354C3.18652 9.32057 4.82171 10.9557 6.8387 10.9557C7.8325 10.9557 8.73306 10.5582 9.39156 9.91429C8.97179 10.1416 8.49104 10.2709 7.98001 10.2709Z", fill: "#FFDA44" }), _jsx("path", { d: "M8.81671 5.21729L9.34354 6.31894L10.5333 6.04407L10.0005 7.14277L10.9573 7.90153L9.76602 8.17008L9.76935 9.39122L8.81671 8.62725L7.86402 9.39122L7.86731 8.17008L6.67603 7.90153L7.63284 7.14277L7.10001 6.04407L8.28984 6.31894L8.81671 5.21729Z", fill: "#FFDA44" })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_4392_27547", children: _jsx("rect", { width: "24", height: "24", fill: "white" }) }) })] }));
166
+ };
167
+ const IndianFlag = (props) => {
168
+ return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsxs("g", { clipPath: "url(#clip0_4392_27553)", children: [_jsx("path", { d: "M1.19023 6.78213C0.427387 8.35976 -0.000488281 10.1296 -0.000488281 11.9995C-0.000488281 13.8694 0.427387 15.6393 1.19023 17.2169L11.9995 18.2604L22.8088 17.2169C23.5716 15.6393 23.9995 13.8694 23.9995 11.9995C23.9995 10.1296 23.5716 8.35976 22.8088 6.78213L11.9995 5.73865L1.19023 6.78213Z", fill: "#F0F0F0" }), _jsx("path", { d: "M1.19092 17.2183C3.13182 21.2322 7.24225 24.0009 11.9998 24.0009C16.7573 24.0009 20.8677 21.2322 22.8086 17.2183H1.19092Z", fill: "#6DA544" }), _jsx("path", { d: "M1.19092 6.78238H22.8086C20.8677 2.76843 16.7573 -0.000244141 11.9998 -0.000244141C7.24229 -0.000244141 3.13182 2.76843 1.19092 6.78238Z", fill: "#FF9811" }), _jsx("path", { d: "M12.0001 16.1742C14.3052 16.1742 16.174 14.3055 16.174 12.0003C16.174 9.69513 14.3052 7.82642 12.0001 7.82642C9.69489 7.82642 7.82617 9.69513 7.82617 12.0003C7.82617 14.3055 9.69489 16.1742 12.0001 16.1742Z", fill: "#FF9811" })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_4392_27553", children: _jsx("rect", { width: "24", height: "24", fill: "white" }) }) })] }));
169
+ };
170
+ const IndonesianFlag = (props) => {
171
+ return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsxs("g", { clipPath: "url(#clip0_4392_27559)", children: [_jsx("path", { d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z", fill: "#F0F0F0" }), _jsx("path", { d: "M0 12C0 5.37262 5.37262 0 12 0C18.6274 0 24 5.37262 24 12", fill: "#A2001D" })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_4392_27559", children: _jsx("rect", { width: "24", height: "24", fill: "white" }) }) })] }));
172
+ };
173
+ const VietnameseFlag = (props) => {
174
+ return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsxs("g", { clipPath: "url(#clip0_10544_106556)", children: [_jsx("path", { d: "M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z", fill: "#D80027" }), _jsx("path", { d: "M10.0003 5.2168L11.0795 8.53825H14.5719L11.7464 10.591L12.8257 13.9125L10.0003 11.8597L7.17488 13.9125L8.2541 10.591L5.42871 8.53825H8.92105L10.0003 5.2168Z", fill: "#FFDA44" })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_10544_106556", children: _jsx("rect", { width: "20", height: "20", fill: "white" }) }) })] }));
175
+ };
@@ -55,3 +55,4 @@ export declare const getCreateAurixPayGCashDepositMutationKey: () => MutationKey
55
55
  export declare const getCreateAurixPayQrphDepositMutationKey: () => MutationKey;
56
56
  export declare const getCreateAurixPayGrabPayDepositMutationKey: () => MutationKey;
57
57
  export declare const getCreateAurixPayPayMayaDepositMutationKey: () => MutationKey;
58
+ export declare const getRedeemVoucherMutationKey: () => MutationKey;
@@ -205,3 +205,7 @@ export const getCreateAurixPayPayMayaDepositMutationKey = () => [
205
205
  PARENT_KEY,
206
206
  'createAurixPayGrabPayDeposit',
207
207
  ];
208
+ export const getRedeemVoucherMutationKey = () => [
209
+ PARENT_KEY,
210
+ 'redeemVoucher',
211
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.925",
3
+ "version": "0.0.927",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",