@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,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { Progress as o } from "@ark-ui/react";
|
|
4
|
+
import x from "../../_virtual/image.mjs";
|
|
5
|
+
import { twMerge as r } from "tailwind-merge";
|
|
5
6
|
import "@opexa/portal-sdk-core";
|
|
6
7
|
import "@tanstack/react-query";
|
|
7
8
|
import "tiny-invariant";
|
|
8
9
|
import "../../constants/index.mjs";
|
|
9
10
|
import "../../utils/capitalize.mjs";
|
|
10
11
|
import "react";
|
|
11
|
-
import { formatNumber as
|
|
12
|
+
import { formatNumber as m } from "../../utils/formatNumber.mjs";
|
|
12
13
|
import "../../utils/getLocaleInfo.mjs";
|
|
13
14
|
import "../../utils/getQueryClient.mjs";
|
|
14
15
|
import "../../utils/isMobile.mjs";
|
|
@@ -18,122 +19,151 @@ import "lodash-es";
|
|
|
18
19
|
import "../../_virtual/index.cjs.mjs";
|
|
19
20
|
import "../../hooks/useGlobalStore.mjs";
|
|
20
21
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
21
|
-
import { useLocaleInfo as
|
|
22
|
+
import { useLocaleInfo as u } from "../../hooks/useLocaleInfo.mjs";
|
|
22
23
|
import "usehooks-ts";
|
|
23
|
-
import { ArrowNarrowUpRightIcon as
|
|
24
|
-
import { ChevronLeftIcon as
|
|
25
|
-
import { ChevronRightIcon as
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
function
|
|
30
|
-
jackpot:
|
|
31
|
-
className:
|
|
24
|
+
import { ArrowNarrowUpRightIcon as f } from "../../icons/ArrowNarrowUpRightIcon.mjs";
|
|
25
|
+
import { ChevronLeftIcon as n } from "../../icons/ChevronLeftIcon.mjs";
|
|
26
|
+
import { ChevronRightIcon as c } from "../../icons/ChevronRightIcon.mjs";
|
|
27
|
+
import h from "../../images/close-chest.png.mjs";
|
|
28
|
+
import g from "../../images/open-chest.png.mjs";
|
|
29
|
+
import i from "./JackpotCounterItem.module.css.mjs";
|
|
30
|
+
function Q({
|
|
31
|
+
jackpot: s,
|
|
32
|
+
className: l
|
|
32
33
|
}) {
|
|
33
|
-
const
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
const t = u(), a = s.drawing, d = a ? s.maximumJackpotPoolLimit : s.pool;
|
|
35
|
+
return /* @__PURE__ */ e.jsxs(
|
|
35
36
|
"div",
|
|
36
37
|
{
|
|
37
|
-
className:
|
|
38
|
+
className: r(
|
|
38
39
|
"bg-gray-50 border-gray-200 flex shrink-0 flex-col space-y-2 rounded-sm border p-3 text-center",
|
|
39
|
-
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
40
|
+
l
|
|
41
|
+
),
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full justify-between", children: [
|
|
44
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
45
|
+
a ? /* @__PURE__ */ e.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: [
|
|
46
|
+
/* @__PURE__ */ e.jsx("span", { className: "full bg-gray-900 size-1.5 animate-pulse rounded" }),
|
|
47
|
+
"Paying Out"
|
|
48
|
+
] }) : /* @__PURE__ */ e.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: [
|
|
49
|
+
/* @__PURE__ */ e.jsx(f, { className: "size-3.5" }),
|
|
50
|
+
"Accumulating"
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-left text-lg font-medium", children: s.name }),
|
|
53
|
+
/* @__PURE__ */ e.jsx("div", { className: "bg-gray-950 text-gray-300 w-fit rounded-md px-2 py-1 text-2xl font-bold", children: m(d, {
|
|
54
|
+
currency: t.currency.code,
|
|
55
|
+
minDecimalPlaces: 2,
|
|
56
|
+
maxDecimalPlaces: 2
|
|
57
|
+
}) })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
|
|
60
|
+
x,
|
|
61
|
+
{
|
|
62
|
+
width: 100,
|
|
63
|
+
height: 100,
|
|
64
|
+
src: a ? g : h,
|
|
65
|
+
alt: "closeChest",
|
|
66
|
+
quality: 100,
|
|
67
|
+
className: "h-25 w-25 size-full"
|
|
68
|
+
}
|
|
69
|
+
) })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-between", children: [
|
|
72
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-xs font-medium", children: m(0, {
|
|
73
|
+
currency: t.currency.code,
|
|
74
|
+
compact: !0
|
|
75
|
+
}) }),
|
|
76
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center justify-end gap-1.5", children: [
|
|
77
|
+
a ? /* @__PURE__ */ e.jsxs("div", { className: "flex w-6 items-center", children: [
|
|
78
|
+
/* @__PURE__ */ e.jsx(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
className: r(
|
|
82
|
+
"absolute left-0",
|
|
83
|
+
i["animate-arrow-red-flash-1"]
|
|
84
|
+
),
|
|
85
|
+
children: /* @__PURE__ */ e.jsx(n, { className: "size-4.5" })
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ e.jsx(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
className: r(
|
|
92
|
+
"absolute left-1.5",
|
|
93
|
+
i["animate-arrow-red-flash-2"]
|
|
94
|
+
),
|
|
95
|
+
children: /* @__PURE__ */ e.jsx(n, { className: "size-4.5" })
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ e.jsx(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
className: r(
|
|
102
|
+
"absolute left-3",
|
|
103
|
+
i["animate-arrow-red-flash-3"]
|
|
104
|
+
),
|
|
105
|
+
children: /* @__PURE__ */ e.jsx(n, { className: "size-4.5" })
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] }) : /* @__PURE__ */ e.jsxs("div", { className: "flex w-6 items-center", children: [
|
|
109
|
+
/* @__PURE__ */ e.jsx(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
className: r(
|
|
113
|
+
"absolute left-0",
|
|
114
|
+
i["animate-arrow-green-flash-1"]
|
|
115
|
+
),
|
|
116
|
+
children: /* @__PURE__ */ e.jsx(c, { className: "size-4.5" })
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ e.jsx(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
className: r(
|
|
123
|
+
"absolute left-1.5",
|
|
124
|
+
i["animate-arrow-green-flash-2"]
|
|
125
|
+
),
|
|
126
|
+
children: /* @__PURE__ */ e.jsx(c, { className: "size-4.5" })
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ e.jsx(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
className: r(
|
|
133
|
+
"absolute left-3",
|
|
134
|
+
i["animate-arrow-green-flash-3"]
|
|
135
|
+
),
|
|
136
|
+
children: /* @__PURE__ */ e.jsx(c, { className: "size-4.5" })
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
] }),
|
|
140
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-xs font-medium", children: m(s == null ? void 0 : s.maximumJackpotPoolLimit, {
|
|
141
|
+
currency: t.currency.code,
|
|
142
|
+
compact: !0
|
|
143
|
+
}) })
|
|
144
|
+
] })
|
|
145
|
+
] }),
|
|
146
|
+
/* @__PURE__ */ e.jsx(
|
|
147
|
+
o.Root,
|
|
148
|
+
{
|
|
149
|
+
className: "bg-gray-200 h-2 w-full rounded-full",
|
|
150
|
+
max: 100,
|
|
151
|
+
value: 33,
|
|
152
|
+
children: /* @__PURE__ */ e.jsx(o.Track, { className: "bg-gray-950 h-full rounded-full", children: /* @__PURE__ */ e.jsx(o.Range, { className: "bg-gray-300 h-full rounded-full" }) })
|
|
153
|
+
}
|
|
154
|
+
),
|
|
155
|
+
/* @__PURE__ */ e.jsx("div", { className: "mt-1 text-start text-[10px]", children: a ? `The pot has hit ${m(s == null ? void 0 : s.maximumJackpotPoolLimit, {
|
|
156
|
+
currency: t.currency.code,
|
|
157
|
+
compact: !0
|
|
158
|
+
})} Play now for your chance to win big! 🔥` : p(
|
|
159
|
+
Number(s == null ? void 0 : s.pool) ?? 0,
|
|
160
|
+
Number(s == null ? void 0 : s.maximumJackpotPoolLimit) ?? 0
|
|
161
|
+
) })
|
|
162
|
+
]
|
|
163
|
+
}
|
|
134
164
|
);
|
|
135
165
|
}
|
|
136
|
-
const
|
|
166
|
+
const p = (s, l) => (l === 0 ? 0 : s / l * 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!";
|
|
137
167
|
export {
|
|
138
|
-
|
|
168
|
+
Q as JackpotCounterItem
|
|
139
169
|
};
|
|
@@ -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"),s=require("react-fast-marquee"),t=require("tailwind-merge");function n(r){return e.jsxRuntimeExports.jsxs("div",{className:t.twMerge("border-gray-200 text-gray-700 flex gap-lg rounded-lg border p-1 pr-2.5 text-sm font-medium",r.className),children:[e.jsxRuntimeExports.jsxs("div",{className:"border-gray-200 flex shrink-0 items-center gap-sm rounded-sm border px-2 py-0.5",children:[e.jsxRuntimeExports.jsx("span",{className:"bg-green-400 outline-green-400/20 size-2 rounded-full outline-4"}),e.jsxRuntimeExports.jsx("span",{children:"What's new"})]}),e.jsxRuntimeExports.jsxs(s,{className:"grow",children:[r.children," "]})]})}exports.Marquee=n;
|
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import s from "react-fast-marquee";
|
|
4
|
+
import { twMerge as n } from "tailwind-merge";
|
|
5
|
+
function l(r) {
|
|
6
|
+
return /* @__PURE__ */ e.jsxs(
|
|
6
7
|
"div",
|
|
7
8
|
{
|
|
8
|
-
className:
|
|
9
|
+
className: n(
|
|
9
10
|
"border-gray-200 text-gray-700 flex gap-lg rounded-lg border p-1 pr-2.5 text-sm font-medium",
|
|
10
|
-
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
r.className
|
|
12
|
+
),
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ e.jsxs("div", { className: "border-gray-200 flex shrink-0 items-center gap-sm rounded-sm border px-2 py-0.5", children: [
|
|
15
|
+
/* @__PURE__ */ e.jsx("span", { className: "bg-green-400 outline-green-400/20 size-2 rounded-full outline-4" }),
|
|
16
|
+
/* @__PURE__ */ e.jsx("span", { children: "What's new" })
|
|
17
|
+
] }),
|
|
18
|
+
/* @__PURE__ */ e.jsxs(s, { className: "grow", children: [
|
|
19
|
+
r.children,
|
|
20
|
+
" "
|
|
21
|
+
] })
|
|
22
|
+
]
|
|
23
|
+
}
|
|
15
24
|
);
|
|
16
25
|
}
|
|
17
26
|
export {
|
|
@@ -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"),t=require("@ark-ui/react"),s=require("@tanstack/react-query"),i=require("tailwind-merge"),l=require("../../icons/AlertCircleIcon.js"),c=require("../../icons/XIcon.js");require("../../utils/capitalize.js");require("react");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");const a=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const x=require("../../utils/toaster.js");function u({children:o}){const n=a.getQueryClient();return e.jsxRuntimeExports.jsxs(s.QueryClientProvider,{client:n,children:[e.jsxRuntimeExports.jsx(s.HydrationBoundary,{state:s.dehydrate(n),children:o}),e.jsxRuntimeExports.jsx(t.Toaster,{toaster:x.toaster,children:r=>e.jsxRuntimeExports.jsxs(t.Toast.Root,{className:"shadow-xs border-gray-300 group z-[var(--z-index)] flex h-[var(--height)] w-[860px] max-w-full scale-[var(--scale)] items-center gap-lg rounded-xl border bg-white p-xl opacity-[var(--opacity)] transition-all duration-300 [translate:var(--x)_var(--y)_0]",children:[e.jsxRuntimeExports.jsx("div",{className:i.twMerge("flex size-9.5 items-center justify-center rounded-full border-2",r.type==="error"?"border-red-500/15":"border-green-500/15"),children:e.jsxRuntimeExports.jsx("div",{className:i.twMerge("flex size-7 items-center justify-center rounded-full border-2",r.type==="error"?"border-red-500/35":"border-green-500/35"),children:e.jsxRuntimeExports.jsx(l.AlertCircleIcon,{className:i.twMerge("size-5",r.type==="error"?"text-red-500":"text-green-500")})})}),e.jsxRuntimeExports.jsxs("div",{className:"grow text-sm leading-none",children:[e.jsxRuntimeExports.jsx(t.Toast.Title,{className:"font-semibold",children:r.title?r.title:r.type==="error"?"Error":"Success"}),e.jsxRuntimeExports.jsx(t.Toast.Description,{className:"text-gray-700 mt-1",children:r.description?r.description:r.type==="error"?"Something went wrong.":"Operation completed successfully."})]}),e.jsxRuntimeExports.jsx(t.Toast.CloseTrigger,{className:"text-gray-400 hover:text-gray-500 self-start",children:e.jsxRuntimeExports.jsx(c.XIcon,{className:"size-5"})})]},r.id)})]})}exports.PortalProvider=u;
|
|
@@ -1,58 +1,65 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { Toaster as l, Toast as t } from "@ark-ui/react";
|
|
4
|
+
import { QueryClientProvider as n, HydrationBoundary as d, dehydrate as a } from "@tanstack/react-query";
|
|
5
|
+
import { twMerge as i } from "tailwind-merge";
|
|
6
|
+
import { AlertCircleIcon as c } from "../../icons/AlertCircleIcon.mjs";
|
|
7
|
+
import { XIcon as m } from "../../icons/XIcon.mjs";
|
|
7
8
|
import "../../utils/capitalize.mjs";
|
|
8
9
|
import "react";
|
|
9
10
|
import "../../utils/parseDecimal.mjs";
|
|
10
11
|
import "../../constants/index.mjs";
|
|
11
12
|
import "../../utils/getLocaleInfo.mjs";
|
|
12
|
-
import { getQueryClient as
|
|
13
|
+
import { getQueryClient as p } from "../../utils/getQueryClient.mjs";
|
|
13
14
|
import "../../utils/isMobile.mjs";
|
|
14
|
-
import { toaster as
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{
|
|
22
|
-
key: e.id,
|
|
23
|
-
className: "shadow-xs border-gray-300 group z-[var(--z-index)] flex h-[var(--height)] w-[860px] max-w-full scale-[var(--scale)] items-center gap-lg rounded-xl border bg-white p-xl opacity-[var(--opacity)] transition-all duration-300 [translate:var(--x)_var(--y)_0]"
|
|
24
|
-
},
|
|
25
|
-
/* @__PURE__ */ React.createElement(
|
|
26
|
-
"div",
|
|
15
|
+
import { toaster as x } from "../../utils/toaster.mjs";
|
|
16
|
+
function E({ children: s }) {
|
|
17
|
+
const o = p();
|
|
18
|
+
return /* @__PURE__ */ e.jsxs(n, { client: o, children: [
|
|
19
|
+
/* @__PURE__ */ e.jsx(d, { state: a(o), children: s }),
|
|
20
|
+
/* @__PURE__ */ e.jsx(l, { toaster: x, children: (r) => /* @__PURE__ */ e.jsxs(
|
|
21
|
+
t.Root,
|
|
27
22
|
{
|
|
28
|
-
className:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
className: "shadow-xs border-gray-300 group z-[var(--z-index)] flex h-[var(--height)] w-[860px] max-w-full scale-[var(--scale)] items-center gap-lg rounded-xl border bg-white p-xl opacity-[var(--opacity)] transition-all duration-300 [translate:var(--x)_var(--y)_0]",
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ e.jsx(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: i(
|
|
29
|
+
"flex size-9.5 items-center justify-center rounded-full border-2",
|
|
30
|
+
r.type === "error" ? "border-red-500/15" : "border-green-500/15"
|
|
31
|
+
),
|
|
32
|
+
children: /* @__PURE__ */ e.jsx(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
className: i(
|
|
36
|
+
"flex size-7 items-center justify-center rounded-full border-2",
|
|
37
|
+
r.type === "error" ? "border-red-500/35" : "border-green-500/35"
|
|
38
|
+
),
|
|
39
|
+
children: /* @__PURE__ */ e.jsx(
|
|
40
|
+
c,
|
|
41
|
+
{
|
|
42
|
+
className: i(
|
|
43
|
+
"size-5",
|
|
44
|
+
r.type === "error" ? "text-red-500" : "text-green-500"
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ e.jsxs("div", { className: "grow text-sm leading-none", children: [
|
|
53
|
+
/* @__PURE__ */ e.jsx(t.Title, { className: "font-semibold", children: r.title ? r.title : r.type === "error" ? "Error" : "Success" }),
|
|
54
|
+
/* @__PURE__ */ e.jsx(t.Description, { className: "text-gray-700 mt-1", children: r.description ? r.description : r.type === "error" ? "Something went wrong." : "Operation completed successfully." })
|
|
55
|
+
] }),
|
|
56
|
+
/* @__PURE__ */ e.jsx(t.CloseTrigger, { className: "text-gray-400 hover:text-gray-500 self-start", children: /* @__PURE__ */ e.jsx(m, { className: "size-5" }) })
|
|
57
|
+
]
|
|
32
58
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
className: t(
|
|
37
|
-
"flex size-7 items-center justify-center rounded-full border-2",
|
|
38
|
-
e.type === "error" ? "border-red-500/35" : "border-green-500/35"
|
|
39
|
-
)
|
|
40
|
-
},
|
|
41
|
-
/* @__PURE__ */ React.createElement(
|
|
42
|
-
n,
|
|
43
|
-
{
|
|
44
|
-
className: t(
|
|
45
|
-
"size-5",
|
|
46
|
-
e.type === "error" ? "text-red-500" : "text-green-500"
|
|
47
|
-
)
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
)
|
|
51
|
-
),
|
|
52
|
-
/* @__PURE__ */ React.createElement("div", { className: "grow text-sm leading-none" }, /* @__PURE__ */ React.createElement(r.Title, { className: "font-semibold" }, e.title ? e.title : e.type === "error" ? "Error" : "Success"), /* @__PURE__ */ React.createElement(r.Description, { className: "text-gray-700 mt-1" }, e.description ? e.description : e.type === "error" ? "Something went wrong." : "Operation completed successfully.")),
|
|
53
|
-
/* @__PURE__ */ React.createElement(r.CloseTrigger, { className: "text-gray-400 hover:text-gray-500 self-start" }, /* @__PURE__ */ React.createElement(s, { className: "size-5" }))
|
|
54
|
-
)));
|
|
59
|
+
r.id
|
|
60
|
+
) })
|
|
61
|
+
] });
|
|
55
62
|
}
|
|
56
63
|
export {
|
|
57
|
-
|
|
64
|
+
E as PortalProvider
|
|
58
65
|
};
|
|
@@ -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"),j=require("embla-carousel-react"),h=require("../../_virtual/link.js"),t=require("react"),g=require("tailwind-merge");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");require("usehooks-ts");const N=require("../../hooks/usePromosQuery.js"),R=require("../../icons/ArrowLeftIcon.js"),f=require("../../icons/ArrowRightIcon.js"),v=require("../../icons/ChevronRightIcon.js"),E=require("../../icons/Gift01Icon.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("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const p=require("../Empty/Empty.js"),S=require("./PromoItem.js");function y(i){const n=N.usePromosQuery({}).data||[],[l,r]=j({align:"start",slidesToScroll:1,breakpoints:{"(min-width: 1024px)":{slidesToScroll:3}}}),[c,a]=t.useState(!0),[x,m]=t.useState(!0),d=t.useCallback(()=>r==null?void 0:r.scrollPrev(),[r]),q=t.useCallback(async()=>{r==null||r.scrollNext()},[r]),o=t.useCallback(s=>{a(!(s!=null&&s.canScrollPrev())),m(!(s!=null&&s.canScrollNext()))},[]);return t.useEffect(()=>{r&&(o(r),r.on("reInit",o).on("select",o))},[r,o]),e.jsxRuntimeExports.jsxs("div",{className:i.className,children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[e.jsxRuntimeExports.jsx("h2",{className:"text-lg font-semibold",children:i.heading}),e.jsxRuntimeExports.jsx("div",{className:"grow"}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-xl",children:[e.jsxRuntimeExports.jsxs(h,{href:i.seeAllUrl,className:"flex gap-sm text-sm font-semibold",children:["See All",e.jsxRuntimeExports.jsx(v.ChevronRightIcon,{className:"size-5 lg:hidden"})]}),e.jsxRuntimeExports.jsxs("div",{className:"hidden lg:flex",children:[e.jsxRuntimeExports.jsx(u.Button,{variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",onClick:d,disabled:c,"aria-label":"Previous",children:e.jsxRuntimeExports.jsx(R.ArrowLeftIcon,{className:"size-5"})}),e.jsxRuntimeExports.jsx(u.Button,{variant:"outline",colorScheme:"gray",className:"rounded-l-none",onClick:q,disabled:x,"aria-label":"Next",children:e.jsxRuntimeExports.jsx(f.ArrowRightIcon,{className:"size-5"})})]})]})]}),n.length<=0&&e.jsxRuntimeExports.jsx(p.Empty,{icon:E.Gift01Icon,title:"No Promos",message:"No promo is currently available.",className:"mt-lg"}),n.length>=1&&e.jsxRuntimeExports.jsx("div",{ref:l,className:"relative mt-lg lg:overflow-hidden",children:e.jsxRuntimeExports.jsx("div",{className:g.twMerge("grid auto-cols-[calc((100%-(0.375rem*2))/1)] grid-flow-col gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/3)] lg:gap-md"),children:n.map(s=>e.jsxRuntimeExports.jsx(S.PromosItem,{promo:s,shouldShowDescription:i.shouldShowDescription},s.id))})})]})}exports.PromoCarousel=y;
|