@opexa/portal-components 0.0.7 → 0.0.9
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.
- package/dist/_virtual/jsx-runtime.js +1 -1
- package/dist/_virtual/jsx-runtime.mjs +3 -2
- package/dist/_virtual/jsx-runtime2.js +1 -0
- package/dist/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +159 -117
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +49 -45
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +344 -232
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +20 -19
- package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/AvailablePromos.mjs +98 -80
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +38 -27
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +189 -148
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +181 -140
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +187 -146
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.mjs +16 -10
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +198 -151
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +65 -29
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +8 -7
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.mjs +14 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +179 -141
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +103 -55
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +22 -16
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +7 -6
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +87 -59
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +57 -51
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +77 -58
- package/dist/components/Empty/CloudIcon.js +1 -1
- package/dist/components/Empty/CloudIcon.mjs +189 -168
- package/dist/components/Empty/Empty.js +1 -1
- package/dist/components/Empty/Empty.mjs +13 -4
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +4 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +1 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +8 -7
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +1 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +33 -27
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +216 -170
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +20 -19
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +102 -84
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +80 -63
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +144 -114
- package/dist/components/Marquee/Marquee.js +1 -1
- package/dist/components/Marquee/Marquee.mjs +19 -10
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +53 -46
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +93 -76
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +37 -29
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +51 -44
- package/dist/components/Promos/Promos.js +1 -1
- package/dist/components/Promos/Promos.mjs +5 -4
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +3 -2
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +49 -36
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +261 -198
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +51 -38
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +240 -189
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +39 -29
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +72 -57
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +92 -66
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +163 -115
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +252 -186
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +31 -19
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +143 -101
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +164 -114
- package/dist/components.d.ts +2 -0
- package/dist/hooks/useAccountQuery.js +1 -1
- package/dist/hooks/useAccountQuery.mjs +8 -7
- package/dist/hooks/useAuthenticateMutation.js +1 -1
- package/dist/hooks/useAuthenticateMutation.mjs +6 -5
- package/dist/hooks/useAvailablePromosQuery.js +1 -1
- package/dist/hooks/useAvailablePromosQuery.mjs +3 -2
- package/dist/hooks/useBetRecordsQuery.js +1 -1
- package/dist/hooks/useBetRecordsQuery.mjs +3 -2
- package/dist/hooks/useCashbacksQuery.js +1 -1
- package/dist/hooks/useCashbacksQuery.mjs +3 -2
- package/dist/hooks/useCreateGCashDepositMutation.js +1 -1
- package/dist/hooks/useCreateGCashDepositMutation.mjs +10 -9
- package/dist/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/hooks/useCreateGameSessionMutation.mjs +8 -7
- package/dist/hooks/useCreateMayaAppDepositMutation.js +1 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.mjs +9 -8
- package/dist/hooks/useCreateMayaDepositMutation.js +1 -1
- package/dist/hooks/useCreateMayaDepositMutation.mjs +10 -9
- package/dist/hooks/useCreateOnlineBankDepositMutation.js +1 -1
- package/dist/hooks/useCreateOnlineBankDepositMutation.mjs +4 -3
- package/dist/hooks/useCreateQRPHDepositMutation.js +1 -1
- package/dist/hooks/useCreateQRPHDepositMutation.mjs +4 -3
- package/dist/hooks/useDepositQuery.js +1 -1
- package/dist/hooks/useDepositQuery.mjs +7 -6
- package/dist/hooks/useDepositRecordsQuery.js +1 -1
- package/dist/hooks/useDepositRecordsQuery.mjs +10 -9
- package/dist/hooks/useDepositsCountQuery.js +1 -1
- package/dist/hooks/useDepositsCountQuery.mjs +3 -2
- package/dist/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/hooks/useEndGameSessionMutation.mjs +3 -2
- package/dist/hooks/useGamesQuery.js +1 -1
- package/dist/hooks/useGamesQuery.mjs +3 -2
- package/dist/hooks/useInstapayBankListQuery.js +1 -1
- package/dist/hooks/useInstapayBankListQuery.mjs +10 -9
- package/dist/hooks/useIsMayaSessionValidQuery.js +1 -1
- package/dist/hooks/useIsMayaSessionValidQuery.mjs +3 -2
- package/dist/hooks/useJackpotsQuery.js +1 -1
- package/dist/hooks/useJackpotsQuery.mjs +6 -5
- package/dist/hooks/useLocaleInfo.js +1 -1
- package/dist/hooks/useLocaleInfo.mjs +3 -2
- package/dist/hooks/useMemberVerificationQuery.js +1 -1
- package/dist/hooks/useMemberVerificationQuery.mjs +7 -6
- package/dist/hooks/usePaymentSettingsQuery.js +1 -1
- package/dist/hooks/usePaymentSettingsQuery.mjs +7 -6
- package/dist/hooks/usePlatformQuery.js +1 -1
- package/dist/hooks/usePlatformQuery.mjs +3 -2
- package/dist/hooks/usePromoQuery.js +1 -1
- package/dist/hooks/usePromoQuery.mjs +3 -2
- package/dist/hooks/usePromosQuery.js +1 -1
- package/dist/hooks/usePromosQuery.mjs +3 -2
- package/dist/hooks/useSendVerificationCodeMutation.js +1 -1
- package/dist/hooks/useSendVerificationCodeMutation.mjs +3 -2
- package/dist/hooks/useSessionQuery.js +1 -1
- package/dist/hooks/useSessionQuery.mjs +3 -2
- package/dist/hooks/useSignInMutation.js +1 -1
- package/dist/hooks/useSignInMutation.mjs +3 -2
- package/dist/hooks/useSignOutMutation.js +1 -1
- package/dist/hooks/useSignOutMutation.mjs +3 -2
- package/dist/hooks/useSignUpMutation.js +1 -1
- package/dist/hooks/useSignUpMutation.mjs +3 -2
- package/dist/hooks/useSiteQuery.js +1 -1
- package/dist/hooks/useSiteQuery.mjs +3 -2
- package/dist/hooks/useTopWinsQuery.js +1 -1
- package/dist/hooks/useTopWinsQuery.mjs +3 -2
- package/dist/hooks/useTournamentsQuery.js +1 -1
- package/dist/hooks/useTournamentsQuery.mjs +6 -5
- package/dist/hooks/useTransactionRecordsQuery.js +1 -1
- package/dist/hooks/useTransactionRecordsQuery.mjs +3 -2
- package/dist/hooks/useWalletQuery.js +1 -1
- package/dist/hooks/useWalletQuery.mjs +3 -2
- package/dist/hooks/useWithdrawalRecordsQuery.js +1 -1
- package/dist/hooks/useWithdrawalRecordsQuery.mjs +9 -8
- package/dist/hooks.d.ts +2 -0
- package/dist/icons/AlertCircleIcon.js +1 -1
- package/dist/icons/AlertCircleIcon.mjs +7 -6
- package/dist/icons/AlertTriangle.js +1 -1
- package/dist/icons/AlertTriangle.mjs +7 -6
- package/dist/icons/ArrowLeftIcon.js +1 -1
- package/dist/icons/ArrowLeftIcon.mjs +7 -6
- package/dist/icons/ArrowNarrowUpRightIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpRightIcon.mjs +7 -6
- package/dist/icons/ArrowRightIcon.js +1 -1
- package/dist/icons/ArrowRightIcon.mjs +7 -6
- package/dist/icons/Award02Icon.js +1 -1
- package/dist/icons/Award02Icon.mjs +7 -6
- package/dist/icons/BankIcon.js +1 -1
- package/dist/icons/BankIcon.mjs +7 -6
- package/dist/icons/CheckCircleBrokenIcon.js +1 -1
- package/dist/icons/CheckCircleBrokenIcon.mjs +6 -5
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CheckIcon.mjs +7 -6
- package/dist/icons/ChevronDownIcon.js +1 -1
- package/dist/icons/ChevronDownIcon.mjs +6 -5
- package/dist/icons/ChevronLeftIcon.js +1 -1
- package/dist/icons/ChevronLeftIcon.mjs +7 -6
- package/dist/icons/ChevronRightIcon.js +1 -1
- package/dist/icons/ChevronRightIcon.mjs +7 -6
- package/dist/icons/ChevronUpIcon.js +1 -1
- package/dist/icons/ChevronUpIcon.mjs +7 -6
- package/dist/icons/Expand03Icon.js +1 -1
- package/dist/icons/Expand03Icon.mjs +7 -6
- package/dist/icons/FacebookIcon.js +1 -1
- package/dist/icons/FacebookIcon.mjs +22 -19
- package/dist/icons/File02Icon.js +1 -1
- package/dist/icons/File02Icon.mjs +7 -6
- package/dist/icons/Gift01Icon.js +1 -1
- package/dist/icons/Gift01Icon.mjs +7 -6
- package/dist/icons/GoogleIcon.js +1 -1
- package/dist/icons/GoogleIcon.mjs +43 -40
- package/dist/icons/Logout01Icon.js +1 -1
- package/dist/icons/Logout01Icon.mjs +7 -6
- package/dist/icons/QrCode02Icon.js +1 -1
- package/dist/icons/QrCode02Icon.mjs +7 -6
- package/dist/icons/SpinnerIcon.js +1 -1
- package/dist/icons/SpinnerIcon.mjs +33 -30
- package/dist/icons/User01Icon.js +1 -1
- package/dist/icons/User01Icon.mjs +7 -6
- package/dist/icons/Wallet02Icon.js +1 -1
- package/dist/icons/Wallet02Icon.mjs +7 -6
- package/dist/icons/XIcon.js +1 -1
- package/dist/icons/XIcon.mjs +7 -6
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +6 -0
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.mjs +953 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +1 -1
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs +1 -1
- package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +1 -1
- package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.mjs +1 -1
- package/dist/server/utils/prefetchAccountQuery.js +1 -1
- package/dist/server/utils/prefetchAccountQuery.mjs +7 -6
- package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
- package/dist/server/utils/prefetchAvailablePromosQuery.mjs +11 -10
- package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchBetRecordsQuery.mjs +9 -8
- package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
- package/dist/server/utils/prefetchCashbacksQuery.mjs +9 -8
- package/dist/server/utils/prefetchDepositQuery.js +1 -1
- package/dist/server/utils/prefetchDepositQuery.mjs +11 -10
- package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchDepositRecordsQuery.mjs +11 -10
- package/dist/server/utils/prefetchGamesQuery.js +1 -1
- package/dist/server/utils/prefetchGamesQuery.mjs +3 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
- package/dist/server/utils/prefetchInstapayBankListQuery.mjs +3 -2
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +3 -2
- package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
- package/dist/server/utils/prefetchJackpotsQuery.mjs +5 -4
- package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
- package/dist/server/utils/prefetchMemberVerificationQuery.mjs +6 -5
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
- package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +3 -2
- package/dist/server/utils/prefetchPlatformQuery.js +1 -1
- package/dist/server/utils/prefetchPlatformQuery.mjs +3 -2
- package/dist/server/utils/prefetchPromoQuery.js +1 -1
- package/dist/server/utils/prefetchPromoQuery.mjs +7 -6
- package/dist/server/utils/prefetchPromosQuery.js +1 -1
- package/dist/server/utils/prefetchPromosQuery.mjs +6 -5
- package/dist/server/utils/prefetchSessionQuery.js +1 -1
- package/dist/server/utils/prefetchSessionQuery.mjs +3 -2
- package/dist/server/utils/prefetchSiteQuery.js +1 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +3 -2
- package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
- package/dist/server/utils/prefetchTopWinsQuery.mjs +7 -6
- package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
- package/dist/server/utils/prefetchTournamentsQuery.mjs +3 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +3 -2
- package/dist/server/utils/prefetchWalletQuery.js +1 -1
- package/dist/server/utils/prefetchWalletQuery.mjs +10 -9
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +3 -2
- package/dist/server-services.d.ts +2 -0
- package/dist/server-utils.d.ts +2 -0
- package/dist/services.d.ts +2 -0
- package/dist/services.js +1 -0
- package/dist/services.mjs +10 -0
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +3 -2
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Avatar/avatar.recipe.mjs +6 -5
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +13 -12
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +3 -2
- package/dist/ui/Button/Button.js +1 -1
- package/dist/ui/Button/Button.mjs +14 -13
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +3 -2
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.mjs +3 -2
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +3 -2
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +3 -2
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +3 -2
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +3 -2
- package/dist/ui/IconButton/IconButton.js +1 -1
- package/dist/ui/IconButton/IconButton.mjs +9 -8
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +3 -2
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +3 -2
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +6 -5
- package/dist/ui/Presence.js +1 -1
- package/dist/ui/Presence.mjs +8 -7
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -2
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +3 -2
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +3 -2
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +3 -2
- package/dist/ui.d.ts +2 -0
- package/dist/utils/createRecipeContext.js +1 -1
- package/dist/utils/createRecipeContext.mjs +30 -29
- package/dist/utils/getLocaleInfo.js +1 -1
- package/dist/utils/getLocaleInfo.mjs +212 -173
- package/dist/utils.d.ts +2 -0
- package/package.json +18 -36
- package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.js +0 -6
- package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.mjs +0 -790
- /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.js +0 -0
- /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js");var t=e.__require();exports.jsxRuntimeExports=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("@ark-ui/react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),m=require("@ark-ui/react"),b=require("../../_virtual/link.js"),E=require("../../hooks/useAccountQuery.js");require("@tanstack/react-query");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");const g=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../utils/toaster.js");require("@opexa/portal-sdk-core");require("tiny-invariant");require("lodash-es");require("../../_virtual/index.cjs.js");const a=require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");const q=require("../../hooks/useLocaleInfo.js");require("usehooks-ts");const y=require("../../hooks/useSignOutMutation.js"),N=require("../../hooks/useWalletQuery.js"),p=require("../../icons/ChevronRightIcon.js"),w=require("../../icons/Logout01Icon.js"),u=require("../../icons/User01Icon.js");require("../../ui/AlertDialog/AlertDialog.js");const n=require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const d=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");const l=require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");const x=require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const c=require("../../node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.js");function O(s){const i=a.useGlobalStore(c.useShallow(r=>({profile:r.profile,mobileProfile:r.mobileProfile})));return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(l.Root,{open:i.profile.open,onOpenChange:r=>{i.profile.setOpen(r.open)},lazyMount:!0,unmountOnExit:!0,children:[e.jsxRuntimeExports.jsx(l.Trigger,{asChild:!0,className:"lg:hidden",children:s.children??e.jsxRuntimeExports.jsx("button",{type:"button",children:e.jsxRuntimeExports.jsx(n.Root,{children:e.jsxRuntimeExports.jsx(n.Fallback,{children:e.jsxRuntimeExports.jsx(u.User01Icon,{})})})})}),e.jsxRuntimeExports.jsxs(m.Portal,{children:[e.jsxRuntimeExports.jsx(l.Backdrop,{}),e.jsxRuntimeExports.jsx(l.Positioner,{children:e.jsxRuntimeExports.jsxs(l.Content,{className:"bg-gray-50 flex w-[316px] flex-col px-xl py-6",children:[e.jsxRuntimeExports.jsx(h,{}),e.jsxRuntimeExports.jsx(R,{}),e.jsxRuntimeExports.jsx(f,{links:s.links??[]}),e.jsxRuntimeExports.jsx("div",{className:"grow"}),e.jsxRuntimeExports.jsx(j,{})]})})]})]}),e.jsxRuntimeExports.jsxs(x.Root,{open:i.mobileProfile.open,onOpenChange:r=>{i.mobileProfile.setOpen(r.open)},lazyMount:!0,unmountOnExit:!0,positioning:{placement:"bottom"},children:[e.jsxRuntimeExports.jsx(x.Trigger,{className:"hidden lg:flex",asChild:!0,children:s.children??e.jsxRuntimeExports.jsx("button",{type:"button",children:e.jsxRuntimeExports.jsx(n.Root,{children:e.jsxRuntimeExports.jsx(n.Fallback,{children:e.jsxRuntimeExports.jsx(u.User01Icon,{})})})})}),e.jsxRuntimeExports.jsx(m.Portal,{children:e.jsxRuntimeExports.jsx(x.Positioner,{children:e.jsxRuntimeExports.jsxs(x.Content,{className:"border-gray-200 z-popover w-[316px] rounded-xl border bg-white p-xl ui-open:animate-fade-in ui-closed:animate-fade-out",children:[e.jsxRuntimeExports.jsx(h,{}),e.jsxRuntimeExports.jsx(R,{}),e.jsxRuntimeExports.jsx(f,{links:s.links??[]}),e.jsxRuntimeExports.jsx(j,{})]})})})]})]})}function j(){return e.jsxRuntimeExports.jsx("div",{className:"text-gray-400 mt-xl text-center text-2xs",children:"© 2025 HappyBingo All rights reserved"})}function h(){var i,r,t,o;const s=E.useAccountQuery();return e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxRuntimeExports.jsx(n.Root,{children:e.jsxRuntimeExports.jsx(n.Fallback,{children:e.jsxRuntimeExports.jsx(u.User01Icon,{})})}),e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx("p",{className:"text-sm font-semibold",children:(i=s.data)==null?void 0:i.name}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-xs",children:((r=s.data)==null?void 0:r.nickName)??((t=s.data)==null?void 0:t.emailAddress)??((o=s.data)==null?void 0:o.realName)})]})]})}function f(s){const i=y.useSignOutMutation(),r=a.useGlobalStore(c.useShallow(t=>({profile:t.profile,mobileProfile:t.mobileProfile})));return e.jsxRuntimeExports.jsxs("nav",{className:"mt-xl space-y-xl",children:[e.jsxRuntimeExports.jsx("ul",{children:s.links.map((t,o)=>e.jsxRuntimeExports.jsx("li",{className:"border-gray-200 block border-x border-b bg-white first:rounded-t-xl first:border-t last:rounded-b-xl",children:e.jsxRuntimeExports.jsxs(b,{href:t.href,onClick:()=>{r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},className:"flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",children:[e.jsxRuntimeExports.jsx(t.icon,{className:"size-5"}),e.jsxRuntimeExports.jsx("span",{className:"grow",children:t.label}),e.jsxRuntimeExports.jsx(p.ChevronRightIcon,{className:"text-gray-400 size-5"})]})},t.href+o))}),e.jsxRuntimeExports.jsx("ul",{children:e.jsxRuntimeExports.jsx("li",{className:"border-gray-200 block rounded-xl border bg-white",children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:"flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",disabled:i.isPending,onClick:()=>{i.mutate(),r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},children:[e.jsxRuntimeExports.jsx(w.Logout01Icon,{className:"size-5"}),e.jsxRuntimeExports.jsx("span",{className:"grow",children:"Log Out"}),e.jsxRuntimeExports.jsx(p.ChevronRightIcon,{className:"text-gray-400 size-5"})]})})})]})}function R(){var t;const s=q.useLocaleInfo(),i=N.useWalletQuery({refetchInterval:1e3}),r=a.useGlobalStore(c.useShallow(o=>({profile:o.profile,mobileProfile:o.mobileProfile,depositWithdrawal:o.depositWithdrawal})));return e.jsxRuntimeExports.jsxs("div",{className:"border-gray-200 mt-3 rounded-lg border bg-white p-xl",children:[e.jsxRuntimeExports.jsx("div",{className:"border-gray-200 bg-gray-50 text-gray-600 w-fit rounded-sm border px-1.5 py-0.5 text-xs font-medium",children:"Available Balance"}),e.jsxRuntimeExports.jsx("div",{className:"mt-2 text-3xl font-semibold",children:g.formatNumber((t=i.data)==null?void 0:t.balance,{currency:s==null?void 0:s.currency.code,minDecimalPlaces:2})}),e.jsxRuntimeExports.jsxs("div",{className:"mt-3 flex gap-lg",children:[e.jsxRuntimeExports.jsx(d.Button,{size:"xs",variant:"outline",colorScheme:"gray",onClick:()=>{r.depositWithdrawal.setOpen(!0),r.depositWithdrawal.setTab("WITHDRAWAL"),r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},children:"Withdraw"}),e.jsxRuntimeExports.jsx(d.Button,{size:"xs",onClick:()=>{r.depositWithdrawal.setOpen(!0),r.depositWithdrawal.setTab("DEPOSIT"),r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},children:"Deposit"})]})]})}exports.Account=O;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { Portal as d } from "@ark-ui/react";
|
|
3
4
|
import b from "../../_virtual/link.mjs";
|
|
4
5
|
import { useAccountQuery as g } from "../../hooks/useAccountQuery.mjs";
|
|
5
6
|
import "@tanstack/react-query";
|
|
6
7
|
import "../../constants/index.mjs";
|
|
7
8
|
import "../../utils/capitalize.mjs";
|
|
8
9
|
import "react";
|
|
9
|
-
import { formatNumber as
|
|
10
|
+
import { formatNumber as y } from "../../utils/formatNumber.mjs";
|
|
10
11
|
import "../../utils/getLocaleInfo.mjs";
|
|
11
12
|
import "../../utils/getQueryClient.mjs";
|
|
12
13
|
import "../../utils/isMobile.mjs";
|
|
@@ -16,156 +17,197 @@ import "@opexa/portal-sdk-core";
|
|
|
16
17
|
import "tiny-invariant";
|
|
17
18
|
import "lodash-es";
|
|
18
19
|
import "../../_virtual/index.cjs.mjs";
|
|
19
|
-
import { useGlobalStore as
|
|
20
|
+
import { useGlobalStore as m } from "../../hooks/useGlobalStore.mjs";
|
|
20
21
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
21
|
-
import { useLocaleInfo as
|
|
22
|
+
import { useLocaleInfo as N } from "../../hooks/useLocaleInfo.mjs";
|
|
22
23
|
import "usehooks-ts";
|
|
23
|
-
import { useSignOutMutation as
|
|
24
|
-
import { useWalletQuery as
|
|
25
|
-
import { ChevronRightIcon as
|
|
26
|
-
import { Logout01Icon as
|
|
27
|
-
import { User01Icon as
|
|
24
|
+
import { useSignOutMutation as w } from "../../hooks/useSignOutMutation.mjs";
|
|
25
|
+
import { useWalletQuery as O } from "../../hooks/useWalletQuery.mjs";
|
|
26
|
+
import { ChevronRightIcon as c } from "../../icons/ChevronRightIcon.mjs";
|
|
27
|
+
import { Logout01Icon as P } from "../../icons/Logout01Icon.mjs";
|
|
28
|
+
import { User01Icon as l } from "../../icons/User01Icon.mjs";
|
|
28
29
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
29
|
-
import { Root as n, Fallback as
|
|
30
|
+
import { Root as n, Fallback as a } from "../../ui/Avatar/Avatar.mjs";
|
|
30
31
|
import "../../ui/Badge/Badge.mjs";
|
|
31
|
-
import { Button as
|
|
32
|
+
import { Button as x } from "../../ui/Button/Button.mjs";
|
|
32
33
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
33
34
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
34
35
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
35
36
|
import "../../ui/Dialog/Dialog.mjs";
|
|
36
|
-
import { Root as
|
|
37
|
+
import { Root as v, Trigger as k, Backdrop as C, Positioner as W, Content as z } from "../../ui/Drawer/Drawer.mjs";
|
|
37
38
|
import "../../ui/Field/Field.mjs";
|
|
38
39
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
39
40
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
40
41
|
import "../../ui/PinInput/PinInput.mjs";
|
|
41
|
-
import { Root as
|
|
42
|
+
import { Root as R, Trigger as S, Positioner as T, Content as A } from "../../ui/Popover/Popover.mjs";
|
|
42
43
|
import "tailwind-merge";
|
|
43
44
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
44
45
|
import "../../ui/Select/Select.mjs";
|
|
45
46
|
import "../../ui/Table/Table.mjs";
|
|
46
47
|
import "../../ui/Tabs/Tabs.mjs";
|
|
47
|
-
import { useShallow as
|
|
48
|
-
function
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
profile:
|
|
52
|
-
mobileProfile:
|
|
48
|
+
import { useShallow as p } from "../../node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.mjs";
|
|
49
|
+
function Ce(t) {
|
|
50
|
+
const i = m(
|
|
51
|
+
p((r) => ({
|
|
52
|
+
profile: r.profile,
|
|
53
|
+
mobileProfile: r.mobileProfile
|
|
53
54
|
}))
|
|
54
55
|
);
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
56
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
57
|
+
/* @__PURE__ */ e.jsxs(
|
|
58
|
+
v,
|
|
59
|
+
{
|
|
60
|
+
open: i.profile.open,
|
|
61
|
+
onOpenChange: (r) => {
|
|
62
|
+
i.profile.setOpen(r.open);
|
|
63
|
+
},
|
|
64
|
+
lazyMount: !0,
|
|
65
|
+
unmountOnExit: !0,
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ e.jsx(k, { asChild: !0, className: "lg:hidden", children: t.children ?? /* @__PURE__ */ e.jsx("button", { type: "button", children: /* @__PURE__ */ e.jsx(n, { children: /* @__PURE__ */ e.jsx(a, { children: /* @__PURE__ */ e.jsx(l, {}) }) }) }) }),
|
|
68
|
+
/* @__PURE__ */ e.jsxs(d, { children: [
|
|
69
|
+
/* @__PURE__ */ e.jsx(C, {}),
|
|
70
|
+
/* @__PURE__ */ e.jsx(W, { children: /* @__PURE__ */ e.jsxs(z, { className: "bg-gray-50 flex w-[316px] flex-col px-xl py-6", children: [
|
|
71
|
+
/* @__PURE__ */ e.jsx(u, {}),
|
|
72
|
+
/* @__PURE__ */ e.jsx(j, {}),
|
|
73
|
+
/* @__PURE__ */ e.jsx(h, { links: t.links ?? [] }),
|
|
74
|
+
/* @__PURE__ */ e.jsx("div", { className: "grow" }),
|
|
75
|
+
/* @__PURE__ */ e.jsx(f, {})
|
|
76
|
+
] }) })
|
|
77
|
+
] })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ e.jsxs(
|
|
82
|
+
R,
|
|
83
|
+
{
|
|
84
|
+
open: i.mobileProfile.open,
|
|
85
|
+
onOpenChange: (r) => {
|
|
86
|
+
i.mobileProfile.setOpen(r.open);
|
|
87
|
+
},
|
|
88
|
+
lazyMount: !0,
|
|
89
|
+
unmountOnExit: !0,
|
|
90
|
+
positioning: {
|
|
91
|
+
placement: "bottom"
|
|
92
|
+
},
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ e.jsx(S, { className: "hidden lg:flex", asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsx("button", { type: "button", children: /* @__PURE__ */ e.jsx(n, { children: /* @__PURE__ */ e.jsx(a, { children: /* @__PURE__ */ e.jsx(l, {}) }) }) }) }),
|
|
95
|
+
/* @__PURE__ */ e.jsx(d, { children: /* @__PURE__ */ e.jsx(T, { children: /* @__PURE__ */ e.jsxs(A, { className: "border-gray-200 z-popover w-[316px] rounded-xl border bg-white p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [
|
|
96
|
+
/* @__PURE__ */ e.jsx(u, {}),
|
|
97
|
+
/* @__PURE__ */ e.jsx(j, {}),
|
|
98
|
+
/* @__PURE__ */ e.jsx(h, { links: t.links ?? [] }),
|
|
99
|
+
/* @__PURE__ */ e.jsx(f, {})
|
|
100
|
+
] }) }) })
|
|
101
|
+
]
|
|
78
102
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
/* @__PURE__ */ React.createElement(s, null, /* @__PURE__ */ React.createElement(S, null, /* @__PURE__ */ React.createElement(T, { className: "border-gray-200 z-popover w-[316px] rounded-xl border bg-white p-xl ui-open:animate-fade-in ui-closed:animate-fade-out" }, /* @__PURE__ */ React.createElement(d, null), /* @__PURE__ */ React.createElement(E, null), /* @__PURE__ */ React.createElement(R, { links: t.links ?? [] }), /* @__PURE__ */ React.createElement(f, null))))
|
|
82
|
-
));
|
|
103
|
+
)
|
|
104
|
+
] });
|
|
83
105
|
}
|
|
84
106
|
function f() {
|
|
85
|
-
return /* @__PURE__ */
|
|
107
|
+
return /* @__PURE__ */ e.jsx("div", { className: "text-gray-400 mt-xl text-center text-2xs", children: "© 2025 HappyBingo All rights reserved" });
|
|
86
108
|
}
|
|
87
|
-
function
|
|
88
|
-
var
|
|
109
|
+
function u() {
|
|
110
|
+
var i, r, o, s;
|
|
89
111
|
const t = g();
|
|
90
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
113
|
+
/* @__PURE__ */ e.jsx(n, { children: /* @__PURE__ */ e.jsx(a, { children: /* @__PURE__ */ e.jsx(l, {}) }) }),
|
|
114
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
115
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm font-semibold", children: (i = t.data) == null ? void 0 : i.name }),
|
|
116
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-gray-400 text-xs", children: ((r = t.data) == null ? void 0 : r.nickName) ?? ((o = t.data) == null ? void 0 : o.emailAddress) ?? ((s = t.data) == null ? void 0 : s.realName) })
|
|
117
|
+
] })
|
|
118
|
+
] });
|
|
91
119
|
}
|
|
92
|
-
function
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
profile:
|
|
96
|
-
mobileProfile:
|
|
120
|
+
function h(t) {
|
|
121
|
+
const i = w(), r = m(
|
|
122
|
+
p((o) => ({
|
|
123
|
+
profile: o.profile,
|
|
124
|
+
mobileProfile: o.mobileProfile
|
|
97
125
|
}))
|
|
98
126
|
);
|
|
99
|
-
return /* @__PURE__ */
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
127
|
+
return /* @__PURE__ */ e.jsxs("nav", { className: "mt-xl space-y-xl", children: [
|
|
128
|
+
/* @__PURE__ */ e.jsx("ul", { children: t.links.map((o, s) => /* @__PURE__ */ e.jsx(
|
|
129
|
+
"li",
|
|
130
|
+
{
|
|
131
|
+
className: "border-gray-200 block border-x border-b bg-white first:rounded-t-xl first:border-t last:rounded-b-xl",
|
|
132
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
133
|
+
b,
|
|
134
|
+
{
|
|
135
|
+
href: o.href,
|
|
136
|
+
onClick: () => {
|
|
137
|
+
r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
|
|
138
|
+
},
|
|
139
|
+
className: "flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ e.jsx(o.icon, { className: "size-5" }),
|
|
142
|
+
/* @__PURE__ */ e.jsx("span", { className: "grow", children: o.label }),
|
|
143
|
+
/* @__PURE__ */ e.jsx(c, { className: "text-gray-400 size-5" })
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
},
|
|
148
|
+
o.href + s
|
|
149
|
+
)) }),
|
|
150
|
+
/* @__PURE__ */ e.jsx("ul", { children: /* @__PURE__ */ e.jsx("li", { className: "border-gray-200 block rounded-xl border bg-white", children: /* @__PURE__ */ e.jsxs(
|
|
151
|
+
"button",
|
|
107
152
|
{
|
|
108
|
-
|
|
153
|
+
type: "button",
|
|
154
|
+
className: "flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",
|
|
155
|
+
disabled: i.isPending,
|
|
109
156
|
onClick: () => {
|
|
110
|
-
|
|
157
|
+
i.mutate(), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
|
|
111
158
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
)
|
|
118
|
-
))), /* @__PURE__ */ React.createElement("ul", null, /* @__PURE__ */ React.createElement("li", { className: "border-gray-200 block rounded-xl border bg-white" }, /* @__PURE__ */ React.createElement(
|
|
119
|
-
"button",
|
|
120
|
-
{
|
|
121
|
-
type: "button",
|
|
122
|
-
className: "flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",
|
|
123
|
-
disabled: l.isPending,
|
|
124
|
-
onClick: () => {
|
|
125
|
-
l.mutate(), e.profile.setOpen(!1), e.mobileProfile.setOpen(!1);
|
|
159
|
+
children: [
|
|
160
|
+
/* @__PURE__ */ e.jsx(P, { className: "size-5" }),
|
|
161
|
+
/* @__PURE__ */ e.jsx("span", { className: "grow", children: "Log Out" }),
|
|
162
|
+
/* @__PURE__ */ e.jsx(c, { className: "text-gray-400 size-5" })
|
|
163
|
+
]
|
|
126
164
|
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* @__PURE__ */ React.createElement("span", { className: "grow" }, "Log Out"),
|
|
130
|
-
/* @__PURE__ */ React.createElement(p, { className: "text-gray-400 size-5" })
|
|
131
|
-
))));
|
|
165
|
+
) }) })
|
|
166
|
+
] });
|
|
132
167
|
}
|
|
133
|
-
function
|
|
134
|
-
var
|
|
135
|
-
const t =
|
|
168
|
+
function j() {
|
|
169
|
+
var o;
|
|
170
|
+
const t = N(), i = O({
|
|
136
171
|
refetchInterval: 1e3
|
|
137
|
-
}),
|
|
138
|
-
|
|
139
|
-
profile:
|
|
140
|
-
mobileProfile:
|
|
141
|
-
depositWithdrawal:
|
|
172
|
+
}), r = m(
|
|
173
|
+
p((s) => ({
|
|
174
|
+
profile: s.profile,
|
|
175
|
+
mobileProfile: s.mobileProfile,
|
|
176
|
+
depositWithdrawal: s.depositWithdrawal
|
|
142
177
|
}))
|
|
143
178
|
);
|
|
144
|
-
return /* @__PURE__ */
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
179
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "border-gray-200 mt-3 rounded-lg border bg-white p-xl", children: [
|
|
180
|
+
/* @__PURE__ */ e.jsx("div", { className: "border-gray-200 bg-gray-50 text-gray-600 w-fit rounded-sm border px-1.5 py-0.5 text-xs font-medium", children: "Available Balance" }),
|
|
181
|
+
/* @__PURE__ */ e.jsx("div", { className: "mt-2 text-3xl font-semibold", children: y((o = i.data) == null ? void 0 : o.balance, {
|
|
182
|
+
currency: t == null ? void 0 : t.currency.code,
|
|
183
|
+
minDecimalPlaces: 2
|
|
184
|
+
}) }),
|
|
185
|
+
/* @__PURE__ */ e.jsxs("div", { className: "mt-3 flex gap-lg", children: [
|
|
186
|
+
/* @__PURE__ */ e.jsx(
|
|
187
|
+
x,
|
|
188
|
+
{
|
|
189
|
+
size: "xs",
|
|
190
|
+
variant: "outline",
|
|
191
|
+
colorScheme: "gray",
|
|
192
|
+
onClick: () => {
|
|
193
|
+
r.depositWithdrawal.setOpen(!0), r.depositWithdrawal.setTab("WITHDRAWAL"), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
|
|
194
|
+
},
|
|
195
|
+
children: "Withdraw"
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ e.jsx(
|
|
199
|
+
x,
|
|
200
|
+
{
|
|
201
|
+
size: "xs",
|
|
202
|
+
onClick: () => {
|
|
203
|
+
r.depositWithdrawal.setOpen(!0), r.depositWithdrawal.setTab("DEPOSIT"), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
|
|
204
|
+
},
|
|
205
|
+
children: "Deposit"
|
|
206
|
+
}
|
|
207
|
+
)
|
|
208
|
+
] })
|
|
209
|
+
] });
|
|
168
210
|
}
|
|
169
211
|
export {
|
|
170
|
-
|
|
212
|
+
Ce as Account
|
|
171
213
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../_virtual/jsx-runtime.js"),c=require("embla-carousel-autoplay"),x=require("embla-carousel-react"),d=require("../../_virtual/image.js"),j=require("../../_virtual/link.js"),i=require("react"),m=require("tailwind-merge");require("../../utils/capitalize.js");const f=require("../../utils/dataAttr.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/toaster.js");function g(n){const[l,e]=x({loop:!0,align:"start"},[c({playOnInit:!0,delay:5e3})]),[u,a]=i.useState(0);return i.useEffect(()=>{function t(r){a((r==null?void 0:r.selectedScrollSnap())??0)}return e==null||e.on("scroll",t),e==null||e.on("init",t),()=>{e==null||e.on("init",t),e==null||e.off("scroll",t)}},[e]),s.jsxRuntimeExports.jsxs("div",{className:m.twMerge("relative",n.className),children:[s.jsxRuntimeExports.jsx("div",{ref:l,className:"overflow-hidden",children:s.jsxRuntimeExports.jsx("div",{className:"flex gap-2",children:n.banners.map((t,r)=>{const o=s.jsxRuntimeExports.jsx(d,{src:t.src,alt:"",width:1200,height:300,className:"block h-auto w-full rounded-xl",priority:r===0});return s.jsxRuntimeExports.jsx(i.Fragment,{children:t.redirectUrl?s.jsxRuntimeExports.jsx(j,{href:t.redirectUrl,className:"block w-full shrink-0",children:o}):s.jsxRuntimeExports.jsx("div",{className:"w-full shrink-0",children:o})},r)})})}),s.jsxRuntimeExports.jsx("div",{className:"absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2",children:n.banners.map((t,r)=>s.jsxRuntimeExports.jsx("button",{type:"button",className:"border-gray-200 ui-active:bg-gray-800 bg-gray-400 size-3 shrink-0 rounded-full border transition-all duration-300 ui-active:w-9",onClick:()=>{e==null||e.scrollTo(r)},"aria-label":`Go to slide ${r+1}`,"data-active":f.dataAttr(r===u)},r))})]})}exports.Banner=g;
|
|
@@ -1,72 +1,76 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import c from "embla-carousel-autoplay";
|
|
3
4
|
import m from "embla-carousel-react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useState as
|
|
5
|
+
import u from "../../_virtual/image.mjs";
|
|
6
|
+
import f from "../../_virtual/link.mjs";
|
|
7
|
+
import { useState as d, useEffect as h, Fragment as g } from "react";
|
|
7
8
|
import { twMerge as p } from "tailwind-merge";
|
|
8
9
|
import "../../utils/capitalize.mjs";
|
|
9
|
-
import { dataAttr as
|
|
10
|
+
import { dataAttr as x } from "../../utils/dataAttr.mjs";
|
|
10
11
|
import "../../utils/parseDecimal.mjs";
|
|
11
12
|
import "../../constants/index.mjs";
|
|
12
13
|
import "../../utils/getLocaleInfo.mjs";
|
|
13
14
|
import "../../utils/getQueryClient.mjs";
|
|
14
15
|
import "../../utils/isMobile.mjs";
|
|
15
16
|
import "../../utils/toaster.mjs";
|
|
16
|
-
function
|
|
17
|
-
const [
|
|
17
|
+
function F(s) {
|
|
18
|
+
const [a, r] = m(
|
|
18
19
|
{
|
|
19
20
|
loop: !0,
|
|
20
21
|
align: "start"
|
|
21
22
|
},
|
|
22
23
|
[
|
|
23
|
-
|
|
24
|
+
c({
|
|
24
25
|
playOnInit: !0,
|
|
25
26
|
delay: 5e3
|
|
26
27
|
})
|
|
27
28
|
]
|
|
28
|
-
), [
|
|
29
|
-
return
|
|
30
|
-
function
|
|
29
|
+
), [i, n] = d(0);
|
|
30
|
+
return h(() => {
|
|
31
|
+
function o(t) {
|
|
31
32
|
n((t == null ? void 0 : t.selectedScrollSnap()) ?? 0);
|
|
32
33
|
}
|
|
33
|
-
return
|
|
34
|
-
|
|
34
|
+
return r == null || r.on("scroll", o), r == null || r.on("init", o), () => {
|
|
35
|
+
r == null || r.on("init", o), r == null || r.off("scroll", o);
|
|
35
36
|
};
|
|
36
|
-
}, [
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
}, [r]), /* @__PURE__ */ e.jsxs("div", { className: p("relative", s.className), children: [
|
|
38
|
+
/* @__PURE__ */ e.jsx("div", { ref: a, className: "overflow-hidden", children: /* @__PURE__ */ e.jsx("div", { className: "flex gap-2", children: s.banners.map((o, t) => {
|
|
39
|
+
const l = /* @__PURE__ */ e.jsx(
|
|
40
|
+
u,
|
|
41
|
+
{
|
|
42
|
+
src: o.src,
|
|
43
|
+
alt: "",
|
|
44
|
+
width: 1200,
|
|
45
|
+
height: 300,
|
|
46
|
+
className: "block h-auto w-full rounded-xl",
|
|
47
|
+
priority: t === 0
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
return /* @__PURE__ */ e.jsx(g, { children: o.redirectUrl ? /* @__PURE__ */ e.jsx(
|
|
51
|
+
f,
|
|
52
|
+
{
|
|
53
|
+
href: o.redirectUrl,
|
|
54
|
+
className: "block w-full shrink-0",
|
|
55
|
+
children: l
|
|
56
|
+
}
|
|
57
|
+
) : /* @__PURE__ */ e.jsx("div", { className: "w-full shrink-0", children: l }) }, t);
|
|
58
|
+
}) }) }),
|
|
59
|
+
/* @__PURE__ */ e.jsx("div", { className: "absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2", children: s.banners.map((o, t) => /* @__PURE__ */ e.jsx(
|
|
60
|
+
"button",
|
|
39
61
|
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
);
|
|
48
|
-
return /* @__PURE__ */ React.createElement(g, { key: t }, r.redirectUrl ? /* @__PURE__ */ React.createElement(
|
|
49
|
-
u,
|
|
50
|
-
{
|
|
51
|
-
href: r.redirectUrl,
|
|
52
|
-
className: "block w-full shrink-0"
|
|
53
|
-
},
|
|
54
|
-
o
|
|
55
|
-
) : /* @__PURE__ */ React.createElement("div", { className: "w-full shrink-0" }, o));
|
|
56
|
-
}))), /* @__PURE__ */ React.createElement("div", { className: "absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2" }, a.banners.map((r, t) => /* @__PURE__ */ React.createElement(
|
|
57
|
-
"button",
|
|
58
|
-
{
|
|
59
|
-
key: t,
|
|
60
|
-
type: "button",
|
|
61
|
-
className: "border-gray-200 ui-active:bg-gray-800 bg-gray-400 size-3 shrink-0 rounded-full border transition-all duration-300 ui-active:w-9",
|
|
62
|
-
onClick: () => {
|
|
63
|
-
e == null || e.scrollTo(t);
|
|
62
|
+
type: "button",
|
|
63
|
+
className: "border-gray-200 ui-active:bg-gray-800 bg-gray-400 size-3 shrink-0 rounded-full border transition-all duration-300 ui-active:w-9",
|
|
64
|
+
onClick: () => {
|
|
65
|
+
r == null || r.scrollTo(t);
|
|
66
|
+
},
|
|
67
|
+
"aria-label": `Go to slide ${t + 1}`,
|
|
68
|
+
"data-active": x(t === i)
|
|
64
69
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
))));
|
|
70
|
+
t
|
|
71
|
+
)) })
|
|
72
|
+
] });
|
|
69
73
|
}
|
|
70
74
|
export {
|
|
71
|
-
|
|
75
|
+
F as Banner
|
|
72
76
|
};
|