@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,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
2
|
+
import { j as o } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import h from "embla-carousel-react";
|
|
4
|
+
import g from "../../_virtual/link.mjs";
|
|
5
|
+
import { useState as m, useCallback as l, useEffect as N } from "react";
|
|
6
|
+
import { twMerge as j } from "tailwind-merge";
|
|
6
7
|
import "@opexa/portal-sdk-core";
|
|
7
8
|
import "@tanstack/react-query";
|
|
8
9
|
import "tiny-invariant";
|
|
@@ -18,15 +19,15 @@ import "../../_virtual/index.cjs.mjs";
|
|
|
18
19
|
import "../../hooks/useGlobalStore.mjs";
|
|
19
20
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
20
21
|
import "usehooks-ts";
|
|
21
|
-
import { usePromosQuery as
|
|
22
|
-
import { ArrowLeftIcon as
|
|
23
|
-
import { ArrowRightIcon as
|
|
24
|
-
import { ChevronRightIcon as
|
|
25
|
-
import { Gift01Icon as
|
|
22
|
+
import { usePromosQuery as v } from "../../hooks/usePromosQuery.mjs";
|
|
23
|
+
import { ArrowLeftIcon as S } from "../../icons/ArrowLeftIcon.mjs";
|
|
24
|
+
import { ArrowRightIcon as w } from "../../icons/ArrowRightIcon.mjs";
|
|
25
|
+
import { ChevronRightIcon as y } from "../../icons/ChevronRightIcon.mjs";
|
|
26
|
+
import { Gift01Icon as P } from "../../icons/Gift01Icon.mjs";
|
|
26
27
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
27
28
|
import "../../ui/Avatar/Avatar.mjs";
|
|
28
29
|
import "../../ui/Badge/Badge.mjs";
|
|
29
|
-
import { Button as
|
|
30
|
+
import { Button as n } from "../../ui/Button/Button.mjs";
|
|
30
31
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
31
32
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
32
33
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
@@ -42,10 +43,10 @@ import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
42
43
|
import "../../ui/Select/Select.mjs";
|
|
43
44
|
import "../../ui/Table/Table.mjs";
|
|
44
45
|
import "../../ui/Tabs/Tabs.mjs";
|
|
45
|
-
import { Empty as
|
|
46
|
-
import { PromosItem as
|
|
47
|
-
function
|
|
48
|
-
const
|
|
46
|
+
import { Empty as C } from "../Empty/Empty.mjs";
|
|
47
|
+
import { PromosItem as k } from "./PromoItem.mjs";
|
|
48
|
+
function So(e) {
|
|
49
|
+
const i = v({}).data || [], [c, r] = h({
|
|
49
50
|
align: "start",
|
|
50
51
|
slidesToScroll: 1,
|
|
51
52
|
breakpoints: {
|
|
@@ -53,71 +54,87 @@ function Ee(r) {
|
|
|
53
54
|
slidesToScroll: 3
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
}), [
|
|
57
|
-
() =>
|
|
58
|
-
[
|
|
59
|
-
), u =
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
|
|
57
|
+
}), [a, d] = m(!0), [p, x] = m(!0), f = l(
|
|
58
|
+
() => r == null ? void 0 : r.scrollPrev(),
|
|
59
|
+
[r]
|
|
60
|
+
), u = l(async () => {
|
|
61
|
+
r == null || r.scrollNext();
|
|
62
|
+
}, [r]), s = l((t) => {
|
|
63
|
+
d(!(t != null && t.canScrollPrev())), x(!(t != null && t.canScrollNext()));
|
|
63
64
|
}, []);
|
|
64
|
-
return
|
|
65
|
-
|
|
66
|
-
}, [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
className: "flex
|
|
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
|
-
|
|
65
|
+
return N(() => {
|
|
66
|
+
r && (s(r), r.on("reInit", s).on("select", s));
|
|
67
|
+
}, [r, s]), /* @__PURE__ */ o.jsxs("div", { className: e.className, children: [
|
|
68
|
+
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center", children: [
|
|
69
|
+
/* @__PURE__ */ o.jsx("h2", { className: "text-lg font-semibold", children: e.heading }),
|
|
70
|
+
/* @__PURE__ */ o.jsx("div", { className: "grow" }),
|
|
71
|
+
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-center gap-xl", children: [
|
|
72
|
+
/* @__PURE__ */ o.jsxs(
|
|
73
|
+
g,
|
|
74
|
+
{
|
|
75
|
+
href: e.seeAllUrl,
|
|
76
|
+
className: "flex gap-sm text-sm font-semibold",
|
|
77
|
+
children: [
|
|
78
|
+
"See All",
|
|
79
|
+
/* @__PURE__ */ o.jsx(y, { className: "size-5 lg:hidden" })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
/* @__PURE__ */ o.jsxs("div", { className: "hidden lg:flex", children: [
|
|
84
|
+
/* @__PURE__ */ o.jsx(
|
|
85
|
+
n,
|
|
86
|
+
{
|
|
87
|
+
variant: "outline",
|
|
88
|
+
colorScheme: "gray",
|
|
89
|
+
className: "rounded-r-none border-r-0",
|
|
90
|
+
onClick: f,
|
|
91
|
+
disabled: a,
|
|
92
|
+
"aria-label": "Previous",
|
|
93
|
+
children: /* @__PURE__ */ o.jsx(S, { className: "size-5" })
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ o.jsx(
|
|
97
|
+
n,
|
|
98
|
+
{
|
|
99
|
+
variant: "outline",
|
|
100
|
+
colorScheme: "gray",
|
|
101
|
+
className: "rounded-l-none",
|
|
102
|
+
onClick: u,
|
|
103
|
+
disabled: p,
|
|
104
|
+
"aria-label": "Next",
|
|
105
|
+
children: /* @__PURE__ */ o.jsx(w, { className: "size-5" })
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] })
|
|
109
|
+
] })
|
|
110
|
+
] }),
|
|
111
|
+
i.length <= 0 && /* @__PURE__ */ o.jsx(
|
|
112
|
+
C,
|
|
113
|
+
{
|
|
114
|
+
icon: P,
|
|
115
|
+
title: "No Promos",
|
|
116
|
+
message: "No promo is currently available.",
|
|
117
|
+
className: "mt-lg"
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
i.length >= 1 && /* @__PURE__ */ o.jsx("div", { ref: c, className: "relative mt-lg lg:overflow-hidden", children: /* @__PURE__ */ o.jsx(
|
|
121
|
+
"div",
|
|
113
122
|
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
123
|
+
className: j(
|
|
124
|
+
"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"
|
|
125
|
+
),
|
|
126
|
+
children: i.map((t) => /* @__PURE__ */ o.jsx(
|
|
127
|
+
k,
|
|
128
|
+
{
|
|
129
|
+
promo: t,
|
|
130
|
+
shouldShowDescription: e.shouldShowDescription
|
|
131
|
+
},
|
|
132
|
+
t.id
|
|
133
|
+
))
|
|
117
134
|
}
|
|
118
|
-
))
|
|
119
|
-
)
|
|
135
|
+
) })
|
|
136
|
+
] });
|
|
120
137
|
}
|
|
121
138
|
export {
|
|
122
|
-
|
|
139
|
+
So as PromoCarousel
|
|
123
140
|
};
|
|
@@ -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("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");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 o=require("../../hooks/usePromosQuery.js"),u=require("../../icons/Gift01Icon.js"),n=require("../Empty/Empty.js"),m=require("./PromoItem.js");function l(r){const s=o.usePromosQuery({}).data||[];return e.jsxRuntimeExports.jsxs("div",{className:r.className,children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[e.jsxRuntimeExports.jsx("h2",{className:"text-lg font-semibold",children:r.heading}),e.jsxRuntimeExports.jsx("div",{className:"grow"})]}),s.length<=0&&e.jsxRuntimeExports.jsx(n.Empty,{icon:u.Gift01Icon,title:"No Promos",message:"No promo is currently available.",className:"mt-lg"}),s.length>=1&&e.jsxRuntimeExports.jsx("div",{className:"relative mt-lg lg:overflow-hidden",children:e.jsxRuntimeExports.jsx("div",{className:t.twMerge("grid grid-cols-1 gap-sm lg:grid-cols-3 lg:gap-md"),children:s.map(i=>e.jsxRuntimeExports.jsx(m.PromosItem,{promo:i,shouldShowDescription:r.shouldShowDescription},i.id))})})]})}exports.PromoGrid=l;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { j as o } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { twMerge as t } from "tailwind-merge";
|
|
3
4
|
import "@opexa/portal-sdk-core";
|
|
4
5
|
import "@tanstack/react-query";
|
|
5
6
|
import "tiny-invariant";
|
|
@@ -16,37 +17,44 @@ import "../../_virtual/index.cjs.mjs";
|
|
|
16
17
|
import "../../hooks/useGlobalStore.mjs";
|
|
17
18
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
18
19
|
import "usehooks-ts";
|
|
19
|
-
import { usePromosQuery as
|
|
20
|
-
import { Gift01Icon as
|
|
21
|
-
import { Empty as
|
|
22
|
-
import { PromosItem as
|
|
23
|
-
function
|
|
24
|
-
const
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
className: "mt-lg"
|
|
32
|
-
}
|
|
33
|
-
), t.length >= 1 && /* @__PURE__ */ React.createElement("div", { className: "relative mt-lg lg:overflow-hidden" }, /* @__PURE__ */ React.createElement(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
className: o(
|
|
37
|
-
"grid grid-cols-1 gap-sm lg:grid-cols-3 lg:gap-md"
|
|
38
|
-
)
|
|
39
|
-
},
|
|
40
|
-
t.map((m) => /* @__PURE__ */ React.createElement(
|
|
20
|
+
import { usePromosQuery as s } from "../../hooks/usePromosQuery.mjs";
|
|
21
|
+
import { Gift01Icon as e } from "../../icons/Gift01Icon.mjs";
|
|
22
|
+
import { Empty as l } from "../Empty/Empty.mjs";
|
|
23
|
+
import { PromosItem as p } from "./PromoItem.mjs";
|
|
24
|
+
function R(r) {
|
|
25
|
+
const i = s({}).data || [];
|
|
26
|
+
return /* @__PURE__ */ o.jsxs("div", { className: r.className, children: [
|
|
27
|
+
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center", children: [
|
|
28
|
+
/* @__PURE__ */ o.jsx("h2", { className: "text-lg font-semibold", children: r.heading }),
|
|
29
|
+
/* @__PURE__ */ o.jsx("div", { className: "grow" })
|
|
30
|
+
] }),
|
|
31
|
+
i.length <= 0 && /* @__PURE__ */ o.jsx(
|
|
41
32
|
l,
|
|
42
33
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
icon: e,
|
|
35
|
+
title: "No Promos",
|
|
36
|
+
message: "No promo is currently available.",
|
|
37
|
+
className: "mt-lg"
|
|
46
38
|
}
|
|
47
|
-
)
|
|
48
|
-
|
|
39
|
+
),
|
|
40
|
+
i.length >= 1 && /* @__PURE__ */ o.jsx("div", { className: "relative mt-lg lg:overflow-hidden", children: /* @__PURE__ */ o.jsx(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: t(
|
|
44
|
+
"grid grid-cols-1 gap-sm lg:grid-cols-3 lg:gap-md"
|
|
45
|
+
),
|
|
46
|
+
children: i.map((m) => /* @__PURE__ */ o.jsx(
|
|
47
|
+
p,
|
|
48
|
+
{
|
|
49
|
+
promo: m,
|
|
50
|
+
shouldShowDescription: r.shouldShowDescription
|
|
51
|
+
},
|
|
52
|
+
m.id
|
|
53
|
+
))
|
|
54
|
+
}
|
|
55
|
+
) })
|
|
56
|
+
] });
|
|
49
57
|
}
|
|
50
58
|
export {
|
|
51
|
-
|
|
59
|
+
R as PromoGrid
|
|
52
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../_virtual/jsx-runtime.js"),u=require("../../_virtual/image.js"),s=require("../../_virtual/navigation.js"),o=require("tailwind-merge");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const n=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("../../utils/capitalize.js");require("react");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/toaster.js");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");function l(t){const{promo:e}=t,i=s.navigationExports.useRouter();return r.jsxRuntimeExports.jsxs("div",{className:"border-gray-50 bg-accent-50 relative flex h-full flex-col rounded-md border",children:[e.banner.url&&r.jsxRuntimeExports.jsx(u,{src:e.banner.url,alt:e.name,width:1200,height:500,priority:!0,className:"aspect-[1200/500] w-full rounded-t-md object-cover"}),r.jsxRuntimeExports.jsxs("div",{className:"flex flex-grow flex-col p-4",children:[r.jsxRuntimeExports.jsx("p",{className:o.twJoin("w-full text-xl font-bold",t.shouldShowDescription?"text-start":"text-center"),children:e.name}),t.shouldShowDescription&&e.description&&r.jsxRuntimeExports.jsx("p",{className:"text-gray-600 mb-2 line-clamp-2 w-full overflow-hidden text-start text-sm",dangerouslySetInnerHTML:{__html:e.description}}),r.jsxRuntimeExports.jsx("div",{className:"mt-auto pt-4",children:r.jsxRuntimeExports.jsx(n.Button,{className:"w-full",variant:"outline",onClick:()=>i.push(`/promos/${e.id}`),children:"Read More"})})]})]},e.id)}exports.PromosItem=l;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { j as r } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import e from "../../_virtual/image.mjs";
|
|
2
3
|
import { n as m } from "../../_virtual/navigation.mjs";
|
|
3
|
-
import { twJoin as
|
|
4
|
+
import { twJoin as l } from "tailwind-merge";
|
|
4
5
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
5
6
|
import "../../ui/Avatar/Avatar.mjs";
|
|
6
7
|
import "../../ui/Badge/Badge.mjs";
|
|
7
|
-
import { Button as
|
|
8
|
+
import { Button as p } from "../../ui/Button/Button.mjs";
|
|
8
9
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
9
10
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
10
11
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
@@ -28,51 +29,57 @@ import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
28
29
|
import "../../ui/Select/Select.mjs";
|
|
29
30
|
import "../../ui/Table/Table.mjs";
|
|
30
31
|
import "../../ui/Tabs/Tabs.mjs";
|
|
31
|
-
function
|
|
32
|
-
const { promo: t } =
|
|
33
|
-
return /* @__PURE__ */
|
|
32
|
+
function $(o) {
|
|
33
|
+
const { promo: t } = o, i = m.useRouter();
|
|
34
|
+
return /* @__PURE__ */ r.jsxs(
|
|
34
35
|
"div",
|
|
35
36
|
{
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
className: "border-gray-50 bg-accent-50 relative flex h-full flex-col rounded-md border",
|
|
38
|
+
children: [
|
|
39
|
+
t.banner.url && /* @__PURE__ */ r.jsx(
|
|
40
|
+
e,
|
|
41
|
+
{
|
|
42
|
+
src: t.banner.url,
|
|
43
|
+
alt: t.name,
|
|
44
|
+
width: 1200,
|
|
45
|
+
height: 500,
|
|
46
|
+
priority: !0,
|
|
47
|
+
className: "aspect-[1200/500] w-full rounded-t-md object-cover"
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-grow flex-col p-4", children: [
|
|
51
|
+
/* @__PURE__ */ r.jsx(
|
|
52
|
+
"p",
|
|
53
|
+
{
|
|
54
|
+
className: l(
|
|
55
|
+
"w-full text-xl font-bold",
|
|
56
|
+
o.shouldShowDescription ? "text-start" : "text-center"
|
|
57
|
+
),
|
|
58
|
+
children: t.name
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
o.shouldShowDescription && t.description && /* @__PURE__ */ r.jsx(
|
|
62
|
+
"p",
|
|
63
|
+
{
|
|
64
|
+
className: "text-gray-600 mb-2 line-clamp-2 w-full overflow-hidden text-start text-sm",
|
|
65
|
+
dangerouslySetInnerHTML: { __html: t.description }
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ r.jsx("div", { className: "mt-auto pt-4", children: /* @__PURE__ */ r.jsx(
|
|
69
|
+
p,
|
|
70
|
+
{
|
|
71
|
+
className: "w-full",
|
|
72
|
+
variant: "outline",
|
|
73
|
+
onClick: () => i.push(`/promos/${t.id}`),
|
|
74
|
+
children: "Read More"
|
|
75
|
+
}
|
|
76
|
+
) })
|
|
77
|
+
] })
|
|
78
|
+
]
|
|
38
79
|
},
|
|
39
|
-
t.
|
|
40
|
-
o,
|
|
41
|
-
{
|
|
42
|
-
src: t.banner.url,
|
|
43
|
-
alt: t.name,
|
|
44
|
-
width: 1200,
|
|
45
|
-
height: 500,
|
|
46
|
-
priority: !0,
|
|
47
|
-
className: "aspect-[1200/500] w-full rounded-t-md object-cover"
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
/* @__PURE__ */ React.createElement("div", { className: "flex flex-grow flex-col p-4" }, /* @__PURE__ */ React.createElement(
|
|
51
|
-
"p",
|
|
52
|
-
{
|
|
53
|
-
className: i(
|
|
54
|
-
"w-full text-xl font-bold",
|
|
55
|
-
e.shouldShowDescription ? "text-start" : "text-center"
|
|
56
|
-
)
|
|
57
|
-
},
|
|
58
|
-
t.name
|
|
59
|
-
), e.shouldShowDescription && t.description && /* @__PURE__ */ React.createElement(
|
|
60
|
-
"p",
|
|
61
|
-
{
|
|
62
|
-
className: "text-gray-600 mb-2 line-clamp-2 w-full overflow-hidden text-start text-sm",
|
|
63
|
-
dangerouslySetInnerHTML: { __html: t.description }
|
|
64
|
-
}
|
|
65
|
-
), /* @__PURE__ */ React.createElement("div", { className: "mt-auto pt-4" }, /* @__PURE__ */ React.createElement(
|
|
66
|
-
a,
|
|
67
|
-
{
|
|
68
|
-
className: "w-full",
|
|
69
|
-
variant: "outline",
|
|
70
|
-
onClick: () => r.push(`/promos/${t.id}`)
|
|
71
|
-
},
|
|
72
|
-
"Read More"
|
|
73
|
-
)))
|
|
80
|
+
t.id
|
|
74
81
|
);
|
|
75
82
|
}
|
|
76
83
|
export {
|
|
77
|
-
|
|
84
|
+
$ as PromosItem
|
|
78
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_virtual/jsx-runtime.js"),e=require("./PromoCarousel.js"),t=require("./PromoGrid.js");function s(r){return r.layout==="grid"?o.jsxRuntimeExports.jsx(t.PromoGrid,{...r}):o.jsxRuntimeExports.jsx(e.PromoCarousel,{...r})}exports.Promos=s;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as o } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { PromoCarousel as m } from "./PromoCarousel.mjs";
|
|
2
3
|
import { PromoGrid as t } from "./PromoGrid.mjs";
|
|
3
|
-
function
|
|
4
|
-
return
|
|
4
|
+
function u(r) {
|
|
5
|
+
return r.layout === "grid" ? /* @__PURE__ */ o.jsx(t, { ...r }) : /* @__PURE__ */ o.jsx(m, { ...r });
|
|
5
6
|
}
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
u as Promos
|
|
8
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/toaster.js");const u=require("../../hooks/useSessionQuery.js");require("lodash-es");require("../../_virtual/index.cjs.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");function i(e){var r;return((r=u.useSessionQuery().data)==null?void 0:r.status)==="authenticated"?e.children:e.fallback??null}exports.Protected=i;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../_virtual/jsx-runtime.js");require("react");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/toaster.js");const u=require("../../hooks/useSessionQuery.js");require("lodash-es");require("../../_virtual/index.cjs.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");function i(e){var r;return((r=u.useSessionQuery().data)==null?void 0:r.status)==="authenticated"?e.children:e.fallback??null}exports.Protected=i;
|
|
@@ -4,6 +4,7 @@ import "@tanstack/react-query";
|
|
|
4
4
|
import "tiny-invariant";
|
|
5
5
|
import "../../constants/index.mjs";
|
|
6
6
|
import "../../utils/capitalize.mjs";
|
|
7
|
+
import "../../_virtual/jsx-runtime.mjs";
|
|
7
8
|
import "react";
|
|
8
9
|
import "../../utils/parseDecimal.mjs";
|
|
9
10
|
import "../../utils/getLocaleInfo.mjs";
|
|
@@ -16,10 +17,10 @@ import "../../_virtual/index.cjs.mjs";
|
|
|
16
17
|
import "../../hooks/useGlobalStore.mjs";
|
|
17
18
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
18
19
|
import "usehooks-ts";
|
|
19
|
-
function
|
|
20
|
+
function Q(t) {
|
|
20
21
|
var r;
|
|
21
22
|
return ((r = i().data) == null ? void 0 : r.status) === "authenticated" ? t.children : t.fallback ?? null;
|
|
22
23
|
}
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
Q as Protected
|
|
25
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@ark-ui/react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),n=require("@ark-ui/react"),u=require("../../_virtual/image.js");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");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");const o=require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const l=require("../../icons/XIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");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");const r=require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");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 x=require("./SignInForm.js"),a=require("../../node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.js");function q(i){const s=o.useGlobalStore(a.useShallow(t=>t.signIn));return e.jsxRuntimeExports.jsxs(r.Root,{open:s.open,onOpenChange:t=>{s.setOpen(t.open)},lazyMount:!0,unmountOnExit:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:[e.jsxRuntimeExports.jsx(r.Trigger,{asChild:!0,children:i.children??e.jsxRuntimeExports.jsx("button",{type:"button",className:"px-3.5 font-semibold",children:"Login"})}),e.jsxRuntimeExports.jsxs(n.Portal,{children:[e.jsxRuntimeExports.jsx(r.Backdrop,{}),e.jsxRuntimeExports.jsx(r.Positioner,{children:e.jsxRuntimeExports.jsxs(r.Content,{className:"mx-auto flex h-full w-full items-start lg:h-auto lg:w-fit",children:[e.jsxRuntimeExports.jsx(u,{src:i.banner,alt:"h-auto w-[400px]",width:400,height:800,className:"hidden rounded-l-xl lg:block"}),e.jsxRuntimeExports.jsxs("div",{className:"relative flex w-full flex-col items-start self-stretch bg-white p-3xl lg:w-[400px] lg:rounded-r-xl",children:[e.jsxRuntimeExports.jsx(r.CloseTrigger,{children:e.jsxRuntimeExports.jsx(l.XIcon,{})}),e.jsxRuntimeExports.jsx(u,{src:i.logo,alt:"",width:200,height:100,className:"mx-auto h-auto w-[120px]",draggable:!1}),e.jsxRuntimeExports.jsx(x.SignInForm,{})]})]})})]})]})}exports.SignIn=q;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { j as t } from "../../_virtual/jsx-runtime.mjs";
|
|
2
3
|
import { Portal as m } from "@ark-ui/react";
|
|
3
|
-
import
|
|
4
|
+
import e from "../../_virtual/image.mjs";
|
|
4
5
|
import "@opexa/portal-sdk-core";
|
|
5
6
|
import "@tanstack/react-query";
|
|
6
7
|
import "tiny-invariant";
|
|
@@ -17,7 +18,7 @@ import "../../_virtual/index.cjs.mjs";
|
|
|
17
18
|
import { useGlobalStore as l } from "../../hooks/useGlobalStore.mjs";
|
|
18
19
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
19
20
|
import "usehooks-ts";
|
|
20
|
-
import { XIcon as
|
|
21
|
+
import { XIcon as s } from "../../icons/XIcon.mjs";
|
|
21
22
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
22
23
|
import "../../ui/Avatar/Avatar.mjs";
|
|
23
24
|
import "../../ui/Badge/Badge.mjs";
|
|
@@ -25,7 +26,7 @@ import "../../ui/Button/button.recipe.mjs";
|
|
|
25
26
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
26
27
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
27
28
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
28
|
-
import { Root as
|
|
29
|
+
import { Root as p, Trigger as n, Backdrop as a, Positioner as x, Content as c, CloseTrigger as h } from "../../ui/Dialog/Dialog.mjs";
|
|
29
30
|
import "../../ui/Drawer/Drawer.mjs";
|
|
30
31
|
import "../../ui/Field/Field.mjs";
|
|
31
32
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
@@ -37,45 +38,57 @@ import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
37
38
|
import "../../ui/Select/Select.mjs";
|
|
38
39
|
import "../../ui/Table/Table.mjs";
|
|
39
40
|
import "../../ui/Tabs/Tabs.mjs";
|
|
40
|
-
import { SignInForm as
|
|
41
|
-
import { useShallow as
|
|
42
|
-
function
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
|
|
41
|
+
import { SignInForm as u } from "./SignInForm.mjs";
|
|
42
|
+
import { useShallow as d } from "../../node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.mjs";
|
|
43
|
+
function it(o) {
|
|
44
|
+
const i = l(d((r) => r.signIn));
|
|
45
|
+
return /* @__PURE__ */ t.jsxs(
|
|
46
|
+
p,
|
|
46
47
|
{
|
|
47
|
-
open:
|
|
48
|
-
onOpenChange: (
|
|
49
|
-
|
|
48
|
+
open: i.open,
|
|
49
|
+
onOpenChange: (r) => {
|
|
50
|
+
i.setOpen(r.open);
|
|
50
51
|
},
|
|
51
52
|
lazyMount: !0,
|
|
52
53
|
unmountOnExit: !0,
|
|
53
54
|
closeOnEscape: !1,
|
|
54
|
-
closeOnInteractOutside: !1
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
55
|
+
closeOnInteractOutside: !1,
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ t.jsx(n, { asChild: !0, children: o.children ?? /* @__PURE__ */ t.jsx("button", { type: "button", className: "px-3.5 font-semibold", children: "Login" }) }),
|
|
58
|
+
/* @__PURE__ */ t.jsxs(m, { children: [
|
|
59
|
+
/* @__PURE__ */ t.jsx(a, {}),
|
|
60
|
+
/* @__PURE__ */ t.jsx(x, { children: /* @__PURE__ */ t.jsxs(c, { className: "mx-auto flex h-full w-full items-start lg:h-auto lg:w-fit", children: [
|
|
61
|
+
/* @__PURE__ */ t.jsx(
|
|
62
|
+
e,
|
|
63
|
+
{
|
|
64
|
+
src: o.banner,
|
|
65
|
+
alt: "h-auto w-[400px]",
|
|
66
|
+
width: 400,
|
|
67
|
+
height: 800,
|
|
68
|
+
className: "hidden rounded-l-xl lg:block"
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ t.jsxs("div", { className: "relative flex w-full flex-col items-start self-stretch bg-white p-3xl lg:w-[400px] lg:rounded-r-xl", children: [
|
|
72
|
+
/* @__PURE__ */ t.jsx(h, { children: /* @__PURE__ */ t.jsx(s, {}) }),
|
|
73
|
+
/* @__PURE__ */ t.jsx(
|
|
74
|
+
e,
|
|
75
|
+
{
|
|
76
|
+
src: o.logo,
|
|
77
|
+
alt: "",
|
|
78
|
+
width: 200,
|
|
79
|
+
height: 100,
|
|
80
|
+
className: "mx-auto h-auto w-[120px]",
|
|
81
|
+
draggable: !1
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ t.jsx(u, {})
|
|
85
|
+
] })
|
|
86
|
+
] }) })
|
|
87
|
+
] })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
77
90
|
);
|
|
78
91
|
}
|
|
79
92
|
export {
|
|
80
|
-
|
|
93
|
+
it as SignIn
|
|
81
94
|
};
|