@opexa/portal-components 0.0.8 → 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/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 +6 -6
- 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,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { j as r } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import g from "embla-carousel-react";
|
|
4
|
+
import j from "../../_virtual/link.mjs";
|
|
5
|
+
import { useCallback as s, useState as n, useEffect as v } from "react";
|
|
5
6
|
import "@opexa/portal-sdk-core";
|
|
6
7
|
import "@tanstack/react-query";
|
|
7
8
|
import "tiny-invariant";
|
|
@@ -17,14 +18,14 @@ import "../../_virtual/index.cjs.mjs";
|
|
|
17
18
|
import "../../hooks/useGlobalStore.mjs";
|
|
18
19
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
19
20
|
import "usehooks-ts";
|
|
20
|
-
import { useTournamentsQuery as
|
|
21
|
-
import { ArrowLeftIcon as
|
|
22
|
-
import { ArrowRightIcon as
|
|
23
|
-
import { ChevronRightIcon as
|
|
21
|
+
import { useTournamentsQuery as b } from "../../hooks/useTournamentsQuery.mjs";
|
|
22
|
+
import { ArrowLeftIcon as S } from "../../icons/ArrowLeftIcon.mjs";
|
|
23
|
+
import { ArrowRightIcon as C } from "../../icons/ArrowRightIcon.mjs";
|
|
24
|
+
import { ChevronRightIcon as w } from "../../icons/ChevronRightIcon.mjs";
|
|
24
25
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
25
26
|
import "../../ui/Avatar/Avatar.mjs";
|
|
26
27
|
import "../../ui/Badge/Badge.mjs";
|
|
27
|
-
import { Button as
|
|
28
|
+
import { Button as a } from "../../ui/Button/Button.mjs";
|
|
28
29
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
29
30
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
30
31
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
@@ -41,69 +42,83 @@ import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
41
42
|
import "../../ui/Select/Select.mjs";
|
|
42
43
|
import "../../ui/Table/Table.mjs";
|
|
43
44
|
import "../../ui/Tabs/Tabs.mjs";
|
|
44
|
-
import { TournamentCounterItem as
|
|
45
|
-
function Ne(
|
|
45
|
+
import { TournamentCounterItem as y } from "./TournamentCounterItem.mjs";
|
|
46
|
+
function Ne(l) {
|
|
46
47
|
var m;
|
|
47
|
-
const [
|
|
48
|
+
const [c, e] = g({
|
|
48
49
|
align: "start",
|
|
49
50
|
slidesToScroll: 1
|
|
50
|
-
}),
|
|
51
|
+
}), p = s(() => {
|
|
51
52
|
e && e.scrollPrev();
|
|
52
|
-
}, [e]),
|
|
53
|
+
}, [e]), d = s(() => {
|
|
53
54
|
e && e.scrollNext();
|
|
54
|
-
}, [e]), [f, u] =
|
|
55
|
-
e && (u(e.canScrollPrev()),
|
|
55
|
+
}, [e]), [f, u] = n(!1), [x, h] = n(!1), t = s(() => {
|
|
56
|
+
e && (u(e.canScrollPrev()), h(e.canScrollNext()));
|
|
56
57
|
}, [e]);
|
|
57
|
-
|
|
58
|
+
v(() => {
|
|
58
59
|
e && (t(), e.on("select", t), e.on("reInit", t));
|
|
59
60
|
}, [e, t]);
|
|
60
|
-
const
|
|
61
|
+
const i = ((m = b({
|
|
61
62
|
first: 100,
|
|
62
63
|
filter: {
|
|
63
64
|
status: {
|
|
64
65
|
equal: "ACTIVE"
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
|
-
}).data) == null ? void 0 : m.pages[0].edges.map((
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
68
|
+
}).data) == null ? void 0 : m.pages[0].edges.map((o) => o.node)) ?? [];
|
|
69
|
+
return i.length <= 0 ? null : /* @__PURE__ */ r.jsxs("div", { className: l.className, children: [
|
|
70
|
+
/* @__PURE__ */ r.jsxs("div", { className: "mb-3 flex items-center justify-between md:mb-4", children: [
|
|
71
|
+
/* @__PURE__ */ r.jsx("div", { className: "text-lg font-semibold", children: l.heading }),
|
|
72
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center md:gap-3xl", children: [
|
|
73
|
+
/* @__PURE__ */ r.jsxs(
|
|
74
|
+
j,
|
|
75
|
+
{
|
|
76
|
+
href: l.seeAllUrl,
|
|
77
|
+
className: "flex gap-sm text-sm font-semibold",
|
|
78
|
+
children: [
|
|
79
|
+
"See All",
|
|
80
|
+
/* @__PURE__ */ r.jsx(w, { className: "size-5 lg:hidden" })
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex", children: [
|
|
85
|
+
/* @__PURE__ */ r.jsx(
|
|
86
|
+
a,
|
|
87
|
+
{
|
|
88
|
+
disabled: !f,
|
|
89
|
+
onClick: p,
|
|
90
|
+
variant: "outline",
|
|
91
|
+
colorScheme: "gray",
|
|
92
|
+
className: "rounded-r-none border-r-0",
|
|
93
|
+
"aria-label": "Previous",
|
|
94
|
+
children: /* @__PURE__ */ r.jsx(S, { className: "size-5" })
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ r.jsx(
|
|
98
|
+
a,
|
|
99
|
+
{
|
|
100
|
+
disabled: !x,
|
|
101
|
+
onClick: d,
|
|
102
|
+
variant: "outline",
|
|
103
|
+
colorScheme: "gray",
|
|
104
|
+
className: "rounded-l-none",
|
|
105
|
+
"aria-label": "Next",
|
|
106
|
+
children: /* @__PURE__ */ r.jsx(C, { className: "size-5" })
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] })
|
|
110
|
+
] })
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full overflow-hidden", ref: c, children: /* @__PURE__ */ r.jsx("div", { className: "flex gap-2.5", children: i.map((o, N) => /* @__PURE__ */ r.jsx(
|
|
113
|
+
y,
|
|
114
|
+
{
|
|
115
|
+
index: N,
|
|
116
|
+
tournament: o,
|
|
117
|
+
className: i.length < 2 ? "w-full" : "w-full lg:w-[calc((100%-0.75rem)/2)]"
|
|
118
|
+
},
|
|
119
|
+
o.id
|
|
120
|
+
)) }) })
|
|
121
|
+
] });
|
|
107
122
|
}
|
|
108
123
|
export {
|
|
109
124
|
Ne as TournamentCounter
|
|
@@ -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 e=require("../../_virtual/jsx-runtime.js"),o=require("lodash-es"),v=require("../../_virtual/image.js"),t=require("react"),m=require("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");const R=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("../../_virtual/index.cjs.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");const q=require("../../hooks/useLocaleInfo.js");require("usehooks-ts");const w=require("../../icons/Award02Icon.js"),N=require("../../images/ball.png.js"),M=require("../../images/card.png.js"),I=require("../../images/trophy.png.js");function T({tournament:r,className:d,index:f}){const j=q.useLocaleInfo(),h=o.sum(o.map(r.rewardSettings,Number)),[n,c]=t.useState({days:0,hours:0,minutes:0,isPast:!1}),a=t.useMemo(()=>new Date(r.activationEndDateTime),[r.activationEndDateTime]),l=t.useCallback(()=>{const s=new Date,i=a.getTime()-s.getTime();if(i<=0){c({days:0,hours:0,minutes:0,isPast:!0});return}const u=Math.floor(i/1e3),g=Math.floor(u/(3600*24)),b=Math.floor(u%(3600*24)/3600),y=Math.floor(u%3600/60),E=o.pick({days:g,hours:b,minutes:y,isPast:!1},["days","hours","minutes","isPast"]);c(E)},[a]);t.useEffect(()=>{l();const s=setInterval(l,60*1e3);return()=>clearInterval(s)},[a,l]);const x=[{label:"Day",value:n.days},{label:"Hour",value:n.hours},{label:"Min",value:n.minutes}],p=[{image:I},{image:M},{image:N}];return e.jsxRuntimeExports.jsxs("div",{className:m.twMerge("bg-gray-50 border-gray-200 flex shrink-0 flex-col space-y-2 rounded-sm border p-3 text-center",d),children:[e.jsxRuntimeExports.jsxs("div",{className:"flex h-full w-full justify-between",children:[e.jsxRuntimeExports.jsxs("div",{className:"border-gray-700 bg-gray-300 flex h-fit w-fit items-center rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsxRuntimeExports.jsx(w.Award02Icon,{className:"size-3.5"}),"Multiplier"]}),e.jsxRuntimeExports.jsx("div",{className:"flex h-fit",children:x.map((s,i)=>e.jsxRuntimeExports.jsxs(t.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:m.twMerge("rounded-xs bg-gray-600 text-gray-50 flex h-fit w-8 flex-col items-center pb-1.5"),children:[e.jsxRuntimeExports.jsx("span",{className:"text-base font-medium",children:String(s.value).padStart(2,"0")}),e.jsxRuntimeExports.jsx("span",{className:"text-[8px]",children:s.label})]}),i<x.length-1&&e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col justify-center gap-[6px] px-[6px]",children:[e.jsxRuntimeExports.jsx("div",{className:"h-1 w-1 rounded-full bg-[#09232E]"}),e.jsxRuntimeExports.jsx("div",{className:"h-1 w-1 rounded-full bg-[#09232E]"})]})]},s.label))})]}),e.jsxRuntimeExports.jsxs("div",{className:"flex justify-between",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex h-fit flex-col justify-between text-left",children:[e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx("div",{className:"text-lg font-semibold",children:r.name}),e.jsxRuntimeExports.jsx("div",{className:"bg-gray-950 text-gray-300 w-fit rounded-md px-2 py-1 text-2xl font-bold",children:R.formatNumber(h,{currency:j.currency.code,minDecimalPlaces:2,maxDecimalPlaces:2})})]}),e.jsxRuntimeExports.jsx("div",{className:"mt-4 text-base font-medium",children:"Play and Win!"})]}),e.jsxRuntimeExports.jsx("div",{className:"flex h-full items-end",children:e.jsxRuntimeExports.jsx("div",{className:"h-24 w-auto shrink-0",children:e.jsxRuntimeExports.jsx(v,{quality:100,width:100,height:100,src:p[f%3].image,alt:"",className:"h-full w-auto"})})})]})]})}exports.TournamentCounterItem=T;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import w from "
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { sum as y, map as N, pick as w } from "lodash-es";
|
|
4
|
+
import M from "../../_virtual/image.mjs";
|
|
5
|
+
import c, { useState as D, useMemo as I, useEffect as P } from "react";
|
|
6
|
+
import { twMerge as d } from "tailwind-merge";
|
|
6
7
|
import "@opexa/portal-sdk-core";
|
|
7
8
|
import "@tanstack/react-query";
|
|
8
9
|
import "tiny-invariant";
|
|
9
10
|
import "../../constants/index.mjs";
|
|
10
11
|
import "../../utils/capitalize.mjs";
|
|
11
|
-
import { formatNumber as
|
|
12
|
+
import { formatNumber as T } from "../../utils/formatNumber.mjs";
|
|
12
13
|
import "../../utils/getLocaleInfo.mjs";
|
|
13
14
|
import "../../utils/getQueryClient.mjs";
|
|
14
15
|
import "../../utils/isMobile.mjs";
|
|
@@ -17,94 +18,119 @@ import "../../utils/toaster.mjs";
|
|
|
17
18
|
import "../../_virtual/index.cjs.mjs";
|
|
18
19
|
import "../../hooks/useGlobalStore.mjs";
|
|
19
20
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
20
|
-
import { useLocaleInfo as
|
|
21
|
+
import { useLocaleInfo as E } from "../../hooks/useLocaleInfo.mjs";
|
|
21
22
|
import "usehooks-ts";
|
|
22
|
-
import { Award02Icon as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
function
|
|
27
|
-
tournament:
|
|
23
|
+
import { Award02Icon as R } from "../../icons/Award02Icon.mjs";
|
|
24
|
+
import S from "../../images/ball.png.mjs";
|
|
25
|
+
import k from "../../images/card.png.mjs";
|
|
26
|
+
import C from "../../images/trophy.png.mjs";
|
|
27
|
+
function re({
|
|
28
|
+
tournament: s,
|
|
28
29
|
className: f,
|
|
29
|
-
index:
|
|
30
|
+
index: u
|
|
30
31
|
}) {
|
|
31
|
-
const
|
|
32
|
+
const x = E(), p = y(N(s.rewardSettings, Number)), [i, o] = D({
|
|
32
33
|
days: 0,
|
|
33
34
|
hours: 0,
|
|
34
35
|
minutes: 0,
|
|
35
36
|
isPast: !1
|
|
36
|
-
}),
|
|
37
|
-
() => new Date(
|
|
38
|
-
[
|
|
39
|
-
),
|
|
40
|
-
const t = /* @__PURE__ */ new Date(),
|
|
41
|
-
if (
|
|
42
|
-
|
|
37
|
+
}), r = I(
|
|
38
|
+
() => new Date(s.activationEndDateTime),
|
|
39
|
+
[s.activationEndDateTime]
|
|
40
|
+
), l = c.useCallback(() => {
|
|
41
|
+
const t = /* @__PURE__ */ new Date(), a = r.getTime() - t.getTime();
|
|
42
|
+
if (a <= 0) {
|
|
43
|
+
o({ days: 0, hours: 0, minutes: 0, isPast: !0 });
|
|
43
44
|
return;
|
|
44
45
|
}
|
|
45
|
-
const
|
|
46
|
+
const m = Math.floor(a / 1e3), g = Math.floor(m / (3600 * 24)), b = Math.floor(m % (3600 * 24) / 3600), j = Math.floor(m % 3600 / 60), v = w({ days: g, hours: b, minutes: j, isPast: !1 }, [
|
|
46
47
|
"days",
|
|
47
48
|
"hours",
|
|
48
49
|
"minutes",
|
|
49
50
|
"isPast"
|
|
50
51
|
]);
|
|
51
|
-
|
|
52
|
-
}, [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const t = setInterval(
|
|
52
|
+
o(v);
|
|
53
|
+
}, [r]);
|
|
54
|
+
P(() => {
|
|
55
|
+
l();
|
|
56
|
+
const t = setInterval(l, 60 * 1e3);
|
|
56
57
|
return () => clearInterval(t);
|
|
57
|
-
}, [
|
|
58
|
-
const
|
|
59
|
-
{ label: "Day", value:
|
|
60
|
-
{ label: "Hour", value:
|
|
61
|
-
{ label: "Min", value:
|
|
62
|
-
],
|
|
58
|
+
}, [r, l]);
|
|
59
|
+
const n = [
|
|
60
|
+
{ label: "Day", value: i.days },
|
|
61
|
+
{ label: "Hour", value: i.hours },
|
|
62
|
+
{ label: "Min", value: i.minutes }
|
|
63
|
+
], h = [
|
|
63
64
|
{
|
|
64
|
-
image:
|
|
65
|
+
image: C
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
|
-
image:
|
|
68
|
+
image: k
|
|
68
69
|
},
|
|
69
70
|
{
|
|
70
|
-
image:
|
|
71
|
+
image: S
|
|
71
72
|
}
|
|
72
73
|
];
|
|
73
|
-
return /* @__PURE__ */ e.
|
|
74
|
+
return /* @__PURE__ */ e.jsxs(
|
|
74
75
|
"div",
|
|
75
76
|
{
|
|
76
|
-
className:
|
|
77
|
+
className: d(
|
|
77
78
|
"bg-gray-50 border-gray-200 flex shrink-0 flex-col space-y-2 rounded-sm border p-3 text-center",
|
|
78
79
|
f
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
80
|
+
),
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex h-full w-full justify-between", children: [
|
|
83
|
+
/* @__PURE__ */ e.jsxs("div", { className: "border-gray-700 bg-gray-300 flex h-fit w-fit items-center rounded-full border px-2 py-0.5 text-xs font-medium", children: [
|
|
84
|
+
/* @__PURE__ */ e.jsx(R, { className: "size-3.5" }),
|
|
85
|
+
"Multiplier"
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex h-fit", children: n.map((t, a) => /* @__PURE__ */ e.jsxs(c.Fragment, { children: [
|
|
88
|
+
/* @__PURE__ */ e.jsxs(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
className: d(
|
|
92
|
+
"rounded-xs bg-gray-600 text-gray-50 flex h-fit w-8 flex-col items-center pb-1.5"
|
|
93
|
+
),
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-base font-medium", children: String(t.value).padStart(2, "0") }),
|
|
96
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-[8px]", children: t.label })
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
a < n.length - 1 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center gap-[6px] px-[6px]", children: [
|
|
101
|
+
/* @__PURE__ */ e.jsx("div", { className: "h-1 w-1 rounded-full bg-[#09232E]" }),
|
|
102
|
+
/* @__PURE__ */ e.jsx("div", { className: "h-1 w-1 rounded-full bg-[#09232E]" })
|
|
103
|
+
] })
|
|
104
|
+
] }, t.label)) })
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-between", children: [
|
|
107
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex h-fit flex-col justify-between text-left", children: [
|
|
108
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
109
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-lg font-semibold", children: s.name }),
|
|
110
|
+
/* @__PURE__ */ e.jsx("div", { className: "bg-gray-950 text-gray-300 w-fit rounded-md px-2 py-1 text-2xl font-bold", children: T(p, {
|
|
111
|
+
currency: x.currency.code,
|
|
112
|
+
minDecimalPlaces: 2,
|
|
113
|
+
maxDecimalPlaces: 2
|
|
114
|
+
}) })
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ e.jsx("div", { className: "mt-4 text-base font-medium", children: "Play and Win!" })
|
|
117
|
+
] }),
|
|
118
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex h-full items-end", children: /* @__PURE__ */ e.jsx("div", { className: "h-24 w-auto shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
119
|
+
M,
|
|
120
|
+
{
|
|
121
|
+
quality: 100,
|
|
122
|
+
width: 100,
|
|
123
|
+
height: 100,
|
|
124
|
+
src: h[u % 3].image,
|
|
125
|
+
alt: "",
|
|
126
|
+
className: "h-full w-auto"
|
|
127
|
+
}
|
|
128
|
+
) }) })
|
|
129
|
+
] })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
106
132
|
);
|
|
107
133
|
}
|
|
108
134
|
export {
|
|
109
|
-
|
|
135
|
+
re as TournamentCounterItem
|
|
110
136
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),E=require("@ark-ui/react"),u=require("@date-fns/tz");require("@opexa/portal-sdk-core");const c=require("date-fns"),p=require("react");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const l=require("../../utils/capitalize.js"),m=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("lodash-es");require("../../_virtual/index.cjs.js");const P=require("../../hooks/useDepositRecordsQuery.js");require("../../hooks/useGlobalStore.js");const g=require("../../hooks/useInfiniteQueryHelper.js"),H=require("../../hooks/useLocaleInfo.js");require("usehooks-ts");const M=require("../../icons/ChevronDownIcon.js"),w=require("../../icons/ChevronLeftIcon.js"),F=require("../../icons/ChevronRightIcon.js"),O=require("../../icons/File02Icon.js"),L=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");const R=require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const h=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");const n=require("../../ui/Select/Select.js"),s=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const A=require("../Empty/Empty.js"),B=require("./TableFilters.js");function Q(){const[t,q]=p.useState(),[x,y]=p.useState(),i=H.useLocaleInfo(),{page:C,pageSize:f,hasNextPage:I,hasPrevPage:S,next:N,prev:b,rows:a,setPageSize:v,totalPages:D,loading:o,firstPage:z}=g.useInfiniteQueryHelper(P.useDepositRecordsQuery,{filter:{...x&&{status:{equal:x}},...t&&{dateTimeCreated:{...t.start&&{greaterThanOrEqual:new u.TZDateMini(c.startOfDay(t.start),i.timezone).toISOString()},...t.end&&{lesserThanOrEqual:new u.TZDateMini(c.endOfDay(t.end),i.timezone).toISOString()}}}}});return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(B.TableFilters,{enabledFilters:{depositStatus:!0},value:{timestamp:t,depositStatus:x},onChange:r=>{z(),q(r.timestamp),y(r.depositStatus)}}),a.length<=0&&e.jsxRuntimeExports.jsx(A.Empty,{icon:o?L.SpinnerIcon:O.File02Icon,title:o?"Just a moment":"No data",message:o?"Fetching latest deposit records...":"No data is currently available.",className:"mt-8 lg:mt-16"}),a.length>=1&&e.jsxRuntimeExports.jsxs("div",{className:"border-gray-200 mt-lg rounded-xl border",children:[e.jsxRuntimeExports.jsx("div",{className:"border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b",children:e.jsxRuntimeExports.jsxs(s.Root,{className:"border-0",children:[e.jsxRuntimeExports.jsx(s.Header,{children:e.jsxRuntimeExports.jsxs(s.Row,{children:[e.jsxRuntimeExports.jsx(s.Heading,{children:"Deposit No."}),e.jsxRuntimeExports.jsx(s.Heading,{children:"Reference"}),e.jsxRuntimeExports.jsx(s.Heading,{children:"Deposit Method"}),e.jsxRuntimeExports.jsx(s.Heading,{children:"Applied Amount"}),e.jsxRuntimeExports.jsx(s.Heading,{children:"Recieved Amount"}),e.jsxRuntimeExports.jsx(s.Heading,{children:"Transaction Fee"}),e.jsxRuntimeExports.jsx(s.Heading,{children:"Deposit Time"}),e.jsxRuntimeExports.jsx(s.Heading,{children:"Recieved Time"}),e.jsxRuntimeExports.jsx(s.Heading,{children:"Status"})]})}),e.jsxRuntimeExports.jsx(s.Body,{children:a.map(r=>e.jsxRuntimeExports.jsxs(s.Row,{children:[e.jsxRuntimeExports.jsx(s.Cell,{children:r.depositNumber}),e.jsxRuntimeExports.jsx(s.Cell,{children:r.reference}),e.jsxRuntimeExports.jsx(s.Cell,{children:l.capitalize(r.type,{delimiter:l.capitalize.delimiters.UNDERSCORE})}),e.jsxRuntimeExports.jsx(s.Cell,{children:m.formatNumber(r.amount,{currency:i.currency.code,minDecimalPlaces:2})}),e.jsxRuntimeExports.jsx(s.Cell,{children:m.formatNumber(r.netAmount,{currency:i.currency.code,minDecimalPlaces:2})}),e.jsxRuntimeExports.jsx(s.Cell,{children:m.formatNumber(r.fee,{currency:i.currency.code,minDecimalPlaces:2})}),e.jsxRuntimeExports.jsx(s.Cell,{children:c.format(r.dateTimeCreated,"yyyy MMM dd hh:mma",{in:u.tz(i.timezone)})}),e.jsxRuntimeExports.jsx(s.Cell,{children:(r.status==="CONFIRMED"||r.status==="APPROVED")&&c.format(r.dateTimeLastUpdated,"yyyy MMM dd hh:mma",{in:u.tz(i.timezone)})}),e.jsxRuntimeExports.jsx(s.Cell,{children:e.jsxRuntimeExports.jsx(R.Root,{variant:"subtle",colorScheme:r.status==="FAILED"||r.status==="REJECTED"||r.status==="CANCELLED"?"danger":r.status==="PENDING"?"warning":"success",children:e.jsxRuntimeExports.jsx(R.Label,{children:l.capitalize(r.status,{delimiter:l.capitalize.delimiters.UNDERSCORE})})})})]},r.id))})]})}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxRuntimeExports.jsxs("p",{children:["Page ",C," of ",D]}),e.jsxRuntimeExports.jsx("div",{className:"grow"}),e.jsxRuntimeExports.jsx(n.Root,{size:"sm",value:[f.toString()],onValueChange:r=>{const j=parseInt(r.value[0]),T=isNaN(j)?10:j;v(T)},collection:d,lazyMount:!0,children:e.jsxRuntimeExports.jsxs(n.Trigger,{children:[e.jsxRuntimeExports.jsx(n.ValueText,{}),e.jsxRuntimeExports.jsx(n.Indicator,{asChild:!0,children:e.jsxRuntimeExports.jsx(M.ChevronDownIcon,{})}),e.jsxRuntimeExports.jsx(E.Portal,{children:e.jsxRuntimeExports.jsx(n.Positioner,{children:e.jsxRuntimeExports.jsx(n.Content,{children:d.items.map(r=>e.jsxRuntimeExports.jsx(n.Item,{item:r,children:d.stringifyItem(r)},r))})})})]})}),e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx(h.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",disabled:!S||o,onClick:()=>b(),children:e.jsxRuntimeExports.jsx(w.ChevronLeftIcon,{className:"size-5"})}),e.jsxRuntimeExports.jsx(h.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-l-none",disabled:!I||o,onClick:()=>N(),children:e.jsxRuntimeExports.jsx(F.ChevronRightIcon,{className:"size-5"})})]})]})]})]})}const d=E.createListCollection({items:g.useInfiniteQueryHelper.config.pageSizes,itemToValue:t=>t.toString(),itemToString:t=>`${t} items per page`});exports.DepositRecordsTable=Q;
|