@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,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import { j as r } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import v from "embla-carousel-react";
|
|
4
|
+
import w from "../../_virtual/image.mjs";
|
|
5
|
+
import P from "../../_virtual/link.mjs";
|
|
6
|
+
import { useState as n, useCallback as a, useEffect as S } from "react";
|
|
7
|
+
import { twMerge as k } from "tailwind-merge";
|
|
7
8
|
import "@opexa/portal-sdk-core";
|
|
8
9
|
import "@tanstack/react-query";
|
|
9
10
|
import "tiny-invariant";
|
|
@@ -16,18 +17,18 @@ import "../../utils/isMobile.mjs";
|
|
|
16
17
|
import "../../utils/toaster.mjs";
|
|
17
18
|
import "lodash-es";
|
|
18
19
|
import "../../_virtual/index.cjs.mjs";
|
|
19
|
-
import { useGamesQuery as
|
|
20
|
+
import { useGamesQuery as y } from "../../hooks/useGamesQuery.mjs";
|
|
20
21
|
import "../../hooks/useGlobalStore.mjs";
|
|
21
22
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
22
23
|
import "usehooks-ts";
|
|
23
|
-
import { ArrowLeftIcon as
|
|
24
|
-
import { ArrowRightIcon as
|
|
25
|
-
import { ChevronRightIcon as
|
|
26
|
-
import { SpinnerIcon as
|
|
24
|
+
import { ArrowLeftIcon as B } from "../../icons/ArrowLeftIcon.mjs";
|
|
25
|
+
import { ArrowRightIcon as C } from "../../icons/ArrowRightIcon.mjs";
|
|
26
|
+
import { ChevronRightIcon as I } from "../../icons/ChevronRightIcon.mjs";
|
|
27
|
+
import { SpinnerIcon as R } from "../../icons/SpinnerIcon.mjs";
|
|
27
28
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
28
29
|
import "../../ui/Avatar/Avatar.mjs";
|
|
29
30
|
import "../../ui/Badge/Badge.mjs";
|
|
30
|
-
import { Button as
|
|
31
|
+
import { Button as c } from "../../ui/Button/Button.mjs";
|
|
31
32
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
32
33
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
33
34
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
@@ -43,13 +44,13 @@ import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
43
44
|
import "../../ui/Select/Select.mjs";
|
|
44
45
|
import "../../ui/Table/Table.mjs";
|
|
45
46
|
import "../../ui/Tabs/Tabs.mjs";
|
|
46
|
-
import { GameLaunchTrigger as
|
|
47
|
-
function
|
|
48
|
-
var
|
|
49
|
-
const
|
|
50
|
-
first: (
|
|
51
|
-
filter:
|
|
52
|
-
}),
|
|
47
|
+
import { GameLaunchTrigger as b } from "../GameLaunch/GameLaunchTrigger.mjs";
|
|
48
|
+
function Se(s) {
|
|
49
|
+
var m;
|
|
50
|
+
const l = s.numOfRows ?? 1, o = y({
|
|
51
|
+
first: (l + 1) * 6,
|
|
52
|
+
filter: s.filter
|
|
53
|
+
}), d = ((m = o.data) == null ? void 0 : m.pages.map((t) => t.edges.map((j) => j.node)).flat()) ?? [], [x, e] = v({
|
|
53
54
|
align: "start",
|
|
54
55
|
slidesToScroll: 3,
|
|
55
56
|
breakpoints: {
|
|
@@ -57,76 +58,93 @@ function ve(o) {
|
|
|
57
58
|
slidesToScroll: 6
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
|
-
}), [f,
|
|
61
|
+
}), [f, p] = n(!0), [g, u] = n(!0), h = a(
|
|
61
62
|
() => e == null ? void 0 : e.scrollPrev(),
|
|
62
63
|
[e]
|
|
63
|
-
),
|
|
64
|
-
!(e != null && e.canScrollNext()) &&
|
|
65
|
-
}, [e,
|
|
66
|
-
|
|
64
|
+
), N = a(async () => {
|
|
65
|
+
!(e != null && e.canScrollNext()) && o.hasNextPage && (await o.fetchNextPage(), e == null || e.reInit(), await new Promise((t) => setTimeout(t, 1))), e == null || e.scrollNext();
|
|
66
|
+
}, [e, o]), i = a((t) => {
|
|
67
|
+
p(!(t != null && t.canScrollPrev())), u(!(t != null && t.canScrollNext()));
|
|
67
68
|
}, []);
|
|
68
|
-
return
|
|
69
|
-
e && (
|
|
70
|
-
}, [e,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
className: "flex
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
69
|
+
return S(() => {
|
|
70
|
+
e && (i(e), e.on("reInit", i).on("select", i));
|
|
71
|
+
}, [e, i]), /* @__PURE__ */ r.jsxs("div", { className: s.className, children: [
|
|
72
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center", children: [
|
|
73
|
+
/* @__PURE__ */ r.jsx("h2", { className: "text-lg font-semibold", children: s.heading }),
|
|
74
|
+
/* @__PURE__ */ r.jsx("div", { className: "grow" }),
|
|
75
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-center gap-xl", children: [
|
|
76
|
+
/* @__PURE__ */ r.jsxs(
|
|
77
|
+
P,
|
|
78
|
+
{
|
|
79
|
+
href: s.seeAllUrl,
|
|
80
|
+
className: "flex gap-sm text-sm font-semibold",
|
|
81
|
+
children: [
|
|
82
|
+
"See All",
|
|
83
|
+
/* @__PURE__ */ r.jsx(I, { className: "size-5 lg:hidden" })
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex", children: [
|
|
88
|
+
/* @__PURE__ */ r.jsx(
|
|
89
|
+
c,
|
|
90
|
+
{
|
|
91
|
+
variant: "outline",
|
|
92
|
+
colorScheme: "gray",
|
|
93
|
+
className: "rounded-r-none border-r-0",
|
|
94
|
+
onClick: h,
|
|
95
|
+
disabled: f,
|
|
96
|
+
"aria-label": "Previous",
|
|
97
|
+
children: /* @__PURE__ */ r.jsx(B, { className: "size-5" })
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
/* @__PURE__ */ r.jsx(
|
|
101
|
+
c,
|
|
102
|
+
{
|
|
103
|
+
variant: "outline",
|
|
104
|
+
colorScheme: "gray",
|
|
105
|
+
className: "rounded-l-none",
|
|
106
|
+
onClick: N,
|
|
107
|
+
disabled: g && !o.hasNextPage ? !0 : o.isFetchingNextPage,
|
|
108
|
+
"aria-label": "Next",
|
|
109
|
+
children: o.isFetchingNextPage ? /* @__PURE__ */ r.jsx(R, { className: "size-5" }) : /* @__PURE__ */ r.jsx(C, { className: "size-5" })
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
] })
|
|
113
|
+
] })
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ r.jsx("div", { ref: x, className: "relative mt-lg lg:overflow-hidden", children: /* @__PURE__ */ r.jsx(
|
|
116
|
+
"div",
|
|
110
117
|
{
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
118
|
+
className: k(
|
|
119
|
+
"grid auto-cols-[calc((100%-(0.375rem*2))/3)] grid-flow-col gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/6)] lg:gap-md",
|
|
120
|
+
l === 3 ? "grid-rows-3" : l === 2 ? "grid-rows-2" : "grid-rows-1"
|
|
121
|
+
),
|
|
122
|
+
children: d.map((t) => /* @__PURE__ */ r.jsxs(
|
|
123
|
+
b,
|
|
124
|
+
{
|
|
125
|
+
game: t,
|
|
126
|
+
className: "block w-full",
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ r.jsx(
|
|
129
|
+
w,
|
|
130
|
+
{
|
|
131
|
+
src: t.image,
|
|
132
|
+
alt: "",
|
|
133
|
+
width: 200,
|
|
134
|
+
height: 200,
|
|
135
|
+
priority: !0,
|
|
136
|
+
className: "aspect-square w-full rounded-t-md object-cover"
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ r.jsx("span", { className: "bg-gray-50 block w-full truncate rounded-b-md px-2 py-2.5 text-center text-xs font-semibold", children: t.name })
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
t.id
|
|
143
|
+
))
|
|
144
|
+
}
|
|
145
|
+
) })
|
|
146
|
+
] });
|
|
129
147
|
}
|
|
130
148
|
export {
|
|
131
|
-
|
|
149
|
+
Se as Games
|
|
132
150
|
};
|
|
@@ -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"),f=require("embla-carousel-react"),p=require("../../_virtual/link.js"),s=require("react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/toaster.js");require("lodash-es");require("../../_virtual/index.cjs.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");const h=require("../../hooks/useJackpotsQuery.js");require("usehooks-ts");const g=require("../../icons/ArrowLeftIcon.js"),N=require("../../icons/ArrowRightIcon.js"),R=require("../../icons/ChevronRightIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const u=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");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("@ark-ui/react");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");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 v=require("./JackpotCounterItem.js");function E(l){var o;const[c,r]=f({align:"start",slidesToScroll:1}),a=s.useCallback(()=>{r&&r.scrollPrev()},[r]),x=s.useCallback(()=>{r&&r.scrollNext()},[r]),[m,d]=s.useState(!1),[q,j]=s.useState(!1),t=s.useCallback(()=>{r&&(d(r.canScrollPrev()),j(r.canScrollNext()))},[r]);s.useEffect(()=>{r&&(t(),r.on("select",t),r.on("reInit",t))},[r,t]);const n=((o=h.useJackpotsQuery({first:100,filter:{status:{equal:"ACTIVE"},deleted:{equal:!1}},sort:{cursor:"POOL",order:"DESC"}}).data)==null?void 0:o.pages[0].edges.map(i=>i.node))??[];return n.length<=0?null:e.jsxRuntimeExports.jsxs("div",{className:l.className,children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxRuntimeExports.jsx("div",{className:"text-lg font-semibold",children:l.heading}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center md:gap-3xl",children:[e.jsxRuntimeExports.jsxs(p,{href:l.seeAllUrl,className:"flex gap-sm text-sm font-semibold",children:["See All",e.jsxRuntimeExports.jsx(R.ChevronRightIcon,{className:"size-5 lg:hidden"})]}),e.jsxRuntimeExports.jsxs("div",{className:"hidden lg:flex",children:[e.jsxRuntimeExports.jsx(u.Button,{disabled:!m,onClick:a,variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0","aria-label":"Previous",children:e.jsxRuntimeExports.jsx(g.ArrowLeftIcon,{className:"size-5"})}),e.jsxRuntimeExports.jsxs(u.Button,{disabled:!q,onClick:x,variant:"outline",colorScheme:"gray",className:"rounded-l-none","aria-label":"Next",children:[e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Next"}),e.jsxRuntimeExports.jsx(N.ArrowRightIcon,{className:"size-5"})]})]})]})]}),e.jsxRuntimeExports.jsx("div",{className:"relative mt-lg lg:overflow-hidden",ref:c,children:e.jsxRuntimeExports.jsx("div",{className:"flex gap-2.5",children:n.map(i=>e.jsxRuntimeExports.jsx(v.JackpotCounterItem,{jackpot:i,className:n.length<2?"w-full":"w-full lg:w-[calc((100%-0.75rem)/2)]"},i.id))})})]})}exports.JackpotCounter=E;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import N from "embla-carousel-react";
|
|
4
|
+
import j from "../../_virtual/link.mjs";
|
|
5
|
+
import { useCallback as i, useState as a, useEffect as g } from "react";
|
|
5
6
|
import "@opexa/portal-sdk-core";
|
|
6
7
|
import "@tanstack/react-query";
|
|
7
8
|
import "tiny-invariant";
|
|
@@ -16,15 +17,15 @@ import "lodash-es";
|
|
|
16
17
|
import "../../_virtual/index.cjs.mjs";
|
|
17
18
|
import "../../hooks/useGlobalStore.mjs";
|
|
18
19
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
19
|
-
import { useJackpotsQuery as
|
|
20
|
+
import { useJackpotsQuery as v } from "../../hooks/useJackpotsQuery.mjs";
|
|
20
21
|
import "usehooks-ts";
|
|
21
|
-
import { ArrowLeftIcon as
|
|
22
|
-
import { ArrowRightIcon as
|
|
23
|
-
import { ChevronRightIcon as
|
|
22
|
+
import { ArrowLeftIcon as S } from "../../icons/ArrowLeftIcon.mjs";
|
|
23
|
+
import { ArrowRightIcon as b } from "../../icons/ArrowRightIcon.mjs";
|
|
24
|
+
import { ChevronRightIcon as C } 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 c } 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,23 +42,23 @@ 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 { JackpotCounterItem as
|
|
45
|
-
function
|
|
45
|
+
import { JackpotCounterItem as k } from "./JackpotCounterItem.mjs";
|
|
46
|
+
function he(l) {
|
|
46
47
|
var m;
|
|
47
|
-
const [
|
|
48
|
+
const [n, r] = N({
|
|
48
49
|
align: "start",
|
|
49
50
|
slidesToScroll: 1
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
}, [
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
|
|
56
|
-
}, [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, [
|
|
60
|
-
const
|
|
51
|
+
}), p = i(() => {
|
|
52
|
+
r && r.scrollPrev();
|
|
53
|
+
}, [r]), d = i(() => {
|
|
54
|
+
r && r.scrollNext();
|
|
55
|
+
}, [r]), [f, x] = a(!1), [u, h] = a(!1), o = i(() => {
|
|
56
|
+
r && (x(r.canScrollPrev()), h(r.canScrollNext()));
|
|
57
|
+
}, [r]);
|
|
58
|
+
g(() => {
|
|
59
|
+
r && (o(), r.on("select", o), r.on("reInit", o));
|
|
60
|
+
}, [r, o]);
|
|
61
|
+
const s = ((m = v({
|
|
61
62
|
first: 100,
|
|
62
63
|
filter: {
|
|
63
64
|
status: {
|
|
@@ -71,47 +72,63 @@ function ue(l) {
|
|
|
71
72
|
cursor: "POOL",
|
|
72
73
|
order: "DESC"
|
|
73
74
|
}
|
|
74
|
-
}).data) == null ? void 0 : m.pages[0].edges.map((
|
|
75
|
-
return
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
75
|
+
}).data) == null ? void 0 : m.pages[0].edges.map((t) => t.node)) ?? [];
|
|
76
|
+
return s.length <= 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: l.className, children: [
|
|
77
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
78
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-lg font-semibold", children: l.heading }),
|
|
79
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center md:gap-3xl", children: [
|
|
80
|
+
/* @__PURE__ */ e.jsxs(
|
|
81
|
+
j,
|
|
82
|
+
{
|
|
83
|
+
href: l.seeAllUrl,
|
|
84
|
+
className: "flex gap-sm text-sm font-semibold",
|
|
85
|
+
children: [
|
|
86
|
+
"See All",
|
|
87
|
+
/* @__PURE__ */ e.jsx(C, { className: "size-5 lg:hidden" })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ e.jsxs("div", { className: "hidden lg:flex", children: [
|
|
92
|
+
/* @__PURE__ */ e.jsx(
|
|
93
|
+
c,
|
|
94
|
+
{
|
|
95
|
+
disabled: !f,
|
|
96
|
+
onClick: p,
|
|
97
|
+
variant: "outline",
|
|
98
|
+
colorScheme: "gray",
|
|
99
|
+
className: "rounded-r-none border-r-0",
|
|
100
|
+
"aria-label": "Previous",
|
|
101
|
+
children: /* @__PURE__ */ e.jsx(S, { className: "size-5" })
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ e.jsxs(
|
|
105
|
+
c,
|
|
106
|
+
{
|
|
107
|
+
disabled: !u,
|
|
108
|
+
onClick: d,
|
|
109
|
+
variant: "outline",
|
|
110
|
+
colorScheme: "gray",
|
|
111
|
+
className: "rounded-l-none",
|
|
112
|
+
"aria-label": "Next",
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Next" }),
|
|
115
|
+
/* @__PURE__ */ e.jsx(b, { className: "size-5" })
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
] })
|
|
120
|
+
] })
|
|
121
|
+
] }),
|
|
122
|
+
/* @__PURE__ */ e.jsx("div", { className: "relative mt-lg lg:overflow-hidden", ref: n, children: /* @__PURE__ */ e.jsx("div", { className: "flex gap-2.5", children: s.map((t) => /* @__PURE__ */ e.jsx(
|
|
123
|
+
k,
|
|
124
|
+
{
|
|
125
|
+
jackpot: t,
|
|
126
|
+
className: s.length < 2 ? "w-full" : "w-full lg:w-[calc((100%-0.75rem)/2)]"
|
|
127
|
+
},
|
|
128
|
+
t.id
|
|
129
|
+
)) }) })
|
|
130
|
+
] });
|
|
114
131
|
}
|
|
115
132
|
export {
|
|
116
|
-
|
|
133
|
+
he as JackpotCounter
|
|
117
134
|
};
|
|
@@ -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"),u=require("@ark-ui/react"),c=require("../../_virtual/image.js"),s=require("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");const a=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");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");const d=require("../../hooks/useLocaleInfo.js");require("usehooks-ts");const h=require("../../icons/ArrowNarrowUpRightIcon.js"),l=require("../../icons/ChevronLeftIcon.js"),m=require("../../icons/ChevronRightIcon.js"),f=require("../../images/close-chest.png.js"),g=require("../../images/open-chest.png.js"),t=require("./JackpotCounterItem.module.css.js");function p({jackpot:r,className:o}){const i=d.useLocaleInfo(),n=r.drawing,x=n?r.maximumJackpotPoolLimit:r.pool;return e.jsxRuntimeExports.jsxs("div",{className:s.twMerge("bg-gray-50 border-gray-200 flex shrink-0 flex-col space-y-2 rounded-sm border p-3 text-center",o),children:[e.jsxRuntimeExports.jsxs("div",{className:"flex w-full justify-between",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-1",children:[n?e.jsxRuntimeExports.jsxs("div",{className:"border-gray-700 bg-gray-300 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsxRuntimeExports.jsx("span",{className:"full bg-gray-900 size-1.5 animate-pulse rounded"}),"Paying Out"]}):e.jsxRuntimeExports.jsxs("div",{className:"border-gray-700 bg-gray-300 flex w-fit items-center rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsxRuntimeExports.jsx(h.ArrowNarrowUpRightIcon,{className:"size-3.5"}),"Accumulating"]}),e.jsxRuntimeExports.jsx("div",{className:"text-left text-lg font-medium",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:a.formatNumber(x,{currency:i.currency.code,minDecimalPlaces:2,maxDecimalPlaces:2})})]}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(c,{width:100,height:100,src:n?g:f,alt:"closeChest",quality:100,className:"h-25 w-25 size-full"})})]}),e.jsxRuntimeExports.jsxs("div",{className:"flex justify-between",children:[e.jsxRuntimeExports.jsx("div",{className:"text-xs font-medium",children:a.formatNumber(0,{currency:i.currency.code,compact:!0})}),e.jsxRuntimeExports.jsxs("div",{className:"relative flex items-center justify-end gap-1.5",children:[n?e.jsxRuntimeExports.jsxs("div",{className:"flex w-6 items-center",children:[e.jsxRuntimeExports.jsx("div",{className:s.twMerge("absolute left-0",t["animate-arrow-red-flash-1"]),children:e.jsxRuntimeExports.jsx(l.ChevronLeftIcon,{className:"size-4.5"})}),e.jsxRuntimeExports.jsx("div",{className:s.twMerge("absolute left-1.5",t["animate-arrow-red-flash-2"]),children:e.jsxRuntimeExports.jsx(l.ChevronLeftIcon,{className:"size-4.5"})}),e.jsxRuntimeExports.jsx("div",{className:s.twMerge("absolute left-3",t["animate-arrow-red-flash-3"]),children:e.jsxRuntimeExports.jsx(l.ChevronLeftIcon,{className:"size-4.5"})})]}):e.jsxRuntimeExports.jsxs("div",{className:"flex w-6 items-center",children:[e.jsxRuntimeExports.jsx("div",{className:s.twMerge("absolute left-0",t["animate-arrow-green-flash-1"]),children:e.jsxRuntimeExports.jsx(m.ChevronRightIcon,{className:"size-4.5"})}),e.jsxRuntimeExports.jsx("div",{className:s.twMerge("absolute left-1.5",t["animate-arrow-green-flash-2"]),children:e.jsxRuntimeExports.jsx(m.ChevronRightIcon,{className:"size-4.5"})}),e.jsxRuntimeExports.jsx("div",{className:s.twMerge("absolute left-3",t["animate-arrow-green-flash-3"]),children:e.jsxRuntimeExports.jsx(m.ChevronRightIcon,{className:"size-4.5"})})]}),e.jsxRuntimeExports.jsx("div",{className:"text-xs font-medium",children:a.formatNumber(r==null?void 0:r.maximumJackpotPoolLimit,{currency:i.currency.code,compact:!0})})]})]}),e.jsxRuntimeExports.jsx(u.Progress.Root,{className:"bg-gray-200 h-2 w-full rounded-full",max:100,value:33,children:e.jsxRuntimeExports.jsx(u.Progress.Track,{className:"bg-gray-950 h-full rounded-full",children:e.jsxRuntimeExports.jsx(u.Progress.Range,{className:"bg-gray-300 h-full rounded-full"})})}),e.jsxRuntimeExports.jsx("div",{className:"mt-1 text-start text-[10px]",children:n?`The pot has hit ${a.formatNumber(r==null?void 0:r.maximumJackpotPoolLimit,{currency:i.currency.code,compact:!0})} Play now for your chance to win big! π₯`:j(Number(r==null?void 0:r.pool)??0,Number(r==null?void 0:r.maximumJackpotPoolLimit)??0)})]})}const j=(r,o)=>(o===0?0:r/o*100)<=90?"The jackpot is heating up! Keep playing to stay in the action and watch it grow!":"π₯ Itβs about to pop! Stay in the game for your shot at the prize!";exports.JackpotCounterItem=p;
|