@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,177 +1,198 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
function o(r) {
|
|
3
|
+
return /* @__PURE__ */ e.jsxs(
|
|
3
4
|
"svg",
|
|
4
5
|
{
|
|
5
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6
7
|
viewBox: "0 0 152 104",
|
|
7
8
|
fill: "none",
|
|
8
|
-
...
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
9
|
+
...r,
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ e.jsxs("g", { filter: "url(#filter0_dd_2719_19242)", children: [
|
|
12
|
+
/* @__PURE__ */ e.jsx(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M77.6 0C66.8273 0 57.2978 5.32329 51.4987 13.4829C49.605 13.0363 47.6301 12.8 45.6 12.8C31.4615 12.8 20 24.2615 20 38.4C20 52.5385 31.4615 64 45.6 64L109.6 64C121.971 64 132 53.9712 132 41.6C132 29.2288 121.971 19.2 109.6 19.2C108.721 19.2 107.854 19.2506 107.002 19.349C102.098 7.9677 90.7797 0 77.6 0Z",
|
|
16
|
+
fill: "#F9FAFB"
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ e.jsx(
|
|
20
|
+
"ellipse",
|
|
21
|
+
{
|
|
22
|
+
cx: "45.6",
|
|
23
|
+
cy: "38.4008",
|
|
24
|
+
rx: "25.6",
|
|
25
|
+
ry: "25.6",
|
|
26
|
+
fill: "url(#paint0_linear_2719_19242)"
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ e.jsx(
|
|
30
|
+
"circle",
|
|
31
|
+
{
|
|
32
|
+
cx: "77.6",
|
|
33
|
+
cy: "32",
|
|
34
|
+
r: "32",
|
|
35
|
+
fill: "url(#paint1_linear_2719_19242)"
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ e.jsx(
|
|
39
|
+
"ellipse",
|
|
40
|
+
{
|
|
41
|
+
cx: "109.6",
|
|
42
|
+
cy: "41.5992",
|
|
43
|
+
rx: "22.4",
|
|
44
|
+
ry: "22.4",
|
|
45
|
+
fill: "url(#paint2_linear_2719_19242)"
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ e.jsxs("defs", { children: [
|
|
50
|
+
/* @__PURE__ */ e.jsxs(
|
|
51
|
+
"filter",
|
|
52
|
+
{
|
|
53
|
+
id: "filter0_dd_2719_19242",
|
|
54
|
+
x: "0",
|
|
55
|
+
y: "0",
|
|
56
|
+
width: "152",
|
|
57
|
+
height: "104",
|
|
58
|
+
filterUnits: "userSpaceOnUse",
|
|
59
|
+
colorInterpolationFilters: "sRGB",
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ e.jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
62
|
+
/* @__PURE__ */ e.jsx(
|
|
63
|
+
"feColorMatrix",
|
|
64
|
+
{
|
|
65
|
+
in: "SourceAlpha",
|
|
66
|
+
type: "matrix",
|
|
67
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
68
|
+
result: "hardAlpha"
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ e.jsx(
|
|
72
|
+
"feMorphology",
|
|
73
|
+
{
|
|
74
|
+
radius: "4",
|
|
75
|
+
operator: "erode",
|
|
76
|
+
in: "SourceAlpha",
|
|
77
|
+
result: "effect1_dropShadow_2719_19242"
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ e.jsx("feOffset", { dy: "8" }),
|
|
81
|
+
/* @__PURE__ */ e.jsx("feGaussianBlur", { stdDeviation: "4" }),
|
|
82
|
+
/* @__PURE__ */ e.jsx("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
83
|
+
/* @__PURE__ */ e.jsx(
|
|
84
|
+
"feColorMatrix",
|
|
85
|
+
{
|
|
86
|
+
type: "matrix",
|
|
87
|
+
values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.03 0"
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ e.jsx(
|
|
91
|
+
"feBlend",
|
|
92
|
+
{
|
|
93
|
+
mode: "normal",
|
|
94
|
+
in2: "BackgroundImageFix",
|
|
95
|
+
result: "effect1_dropShadow_2719_19242"
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ e.jsx(
|
|
99
|
+
"feColorMatrix",
|
|
100
|
+
{
|
|
101
|
+
in: "SourceAlpha",
|
|
102
|
+
type: "matrix",
|
|
103
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
104
|
+
result: "hardAlpha"
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ e.jsx(
|
|
108
|
+
"feMorphology",
|
|
109
|
+
{
|
|
110
|
+
radius: "4",
|
|
111
|
+
operator: "erode",
|
|
112
|
+
in: "SourceAlpha",
|
|
113
|
+
result: "effect2_dropShadow_2719_19242"
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ e.jsx("feOffset", { dy: "20" }),
|
|
117
|
+
/* @__PURE__ */ e.jsx("feGaussianBlur", { stdDeviation: "12" }),
|
|
118
|
+
/* @__PURE__ */ e.jsx("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
119
|
+
/* @__PURE__ */ e.jsx(
|
|
120
|
+
"feColorMatrix",
|
|
121
|
+
{
|
|
122
|
+
type: "matrix",
|
|
123
|
+
values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.08 0"
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ e.jsx(
|
|
127
|
+
"feBlend",
|
|
128
|
+
{
|
|
129
|
+
mode: "normal",
|
|
130
|
+
in2: "effect1_dropShadow_2719_19242",
|
|
131
|
+
result: "effect2_dropShadow_2719_19242"
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
/* @__PURE__ */ e.jsx(
|
|
135
|
+
"feBlend",
|
|
136
|
+
{
|
|
137
|
+
mode: "normal",
|
|
138
|
+
in: "SourceGraphic",
|
|
139
|
+
in2: "effect2_dropShadow_2719_19242",
|
|
140
|
+
result: "shape"
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ e.jsxs(
|
|
147
|
+
"linearGradient",
|
|
148
|
+
{
|
|
149
|
+
id: "paint0_linear_2719_19242",
|
|
150
|
+
x1: "25.9429",
|
|
151
|
+
y1: "21.4865",
|
|
152
|
+
x2: "71.2",
|
|
153
|
+
y2: "64.0007",
|
|
154
|
+
gradientUnits: "userSpaceOnUse",
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ e.jsx("stop", { stopColor: "#D0D5DD" }),
|
|
157
|
+
/* @__PURE__ */ e.jsx("stop", { offset: "0.350715", stopColor: "white", stopOpacity: "0" })
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
),
|
|
161
|
+
/* @__PURE__ */ e.jsxs(
|
|
162
|
+
"linearGradient",
|
|
163
|
+
{
|
|
164
|
+
id: "paint1_linear_2719_19242",
|
|
165
|
+
x1: "53.0286",
|
|
166
|
+
y1: "10.8571",
|
|
167
|
+
x2: "109.6",
|
|
168
|
+
y2: "64",
|
|
169
|
+
gradientUnits: "userSpaceOnUse",
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ e.jsx("stop", { stopColor: "#D0D5DD" }),
|
|
172
|
+
/* @__PURE__ */ e.jsx("stop", { offset: "0.350715", stopColor: "white", stopOpacity: "0" })
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ e.jsxs(
|
|
177
|
+
"linearGradient",
|
|
178
|
+
{
|
|
179
|
+
id: "paint2_linear_2719_19242",
|
|
180
|
+
x1: "92.4",
|
|
181
|
+
y1: "26.7992",
|
|
182
|
+
x2: "132",
|
|
183
|
+
y2: "63.9992",
|
|
184
|
+
gradientUnits: "userSpaceOnUse",
|
|
185
|
+
children: [
|
|
186
|
+
/* @__PURE__ */ e.jsx("stop", { stopColor: "#D0D5DD" }),
|
|
187
|
+
/* @__PURE__ */ e.jsx("stop", { offset: "0.350715", stopColor: "white", stopOpacity: "0" })
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
] })
|
|
192
|
+
]
|
|
193
|
+
}
|
|
173
194
|
);
|
|
174
195
|
}
|
|
175
196
|
export {
|
|
176
|
-
|
|
197
|
+
o as CloudIcon
|
|
177
198
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),s=require("./CloudIcon.js");function l(t){return e.jsxRuntimeExports.jsxs("div",{role:"alert","aria-live":"polite",className:t.className,children:[e.jsxRuntimeExports.jsxs("div",{className:"relative mx-auto w-[9.5rem] pt-4",children:[e.jsxRuntimeExports.jsx("div",{className:"bg-gray-100 absolute left-1/2 top-0 size-[6.5rem] -translate-x-1/2 rounded-full"}),e.jsxRuntimeExports.jsx(s.CloudIcon,{className:"relative h-auto w-full shrink-0"}),e.jsxRuntimeExports.jsx("div",{className:"bg-gray-600/25 absolute bottom-2 left-1/2 flex size-9 -translate-x-1/2 items-center justify-center rounded-full backdrop-blur-sm",children:e.jsxRuntimeExports.jsx(t.icon,{className:"size-6 text-white"})})]}),e.jsxRuntimeExports.jsx("h2",{className:"mt-xl text-center font-semibold",children:t.title}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-500 mx-auto mt-xs max-w-[25rem] text-center text-sm",children:t.message})]})}exports.Empty=l;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { CloudIcon as s } from "./CloudIcon.mjs";
|
|
3
|
+
function r(t) {
|
|
4
|
+
return /* @__PURE__ */ e.jsxs("div", { role: "alert", "aria-live": "polite", className: t.className, children: [
|
|
5
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative mx-auto w-[9.5rem] pt-4", children: [
|
|
6
|
+
/* @__PURE__ */ e.jsx("div", { className: "bg-gray-100 absolute left-1/2 top-0 size-[6.5rem] -translate-x-1/2 rounded-full" }),
|
|
7
|
+
/* @__PURE__ */ e.jsx(s, { className: "relative h-auto w-full shrink-0" }),
|
|
8
|
+
/* @__PURE__ */ e.jsx("div", { className: "bg-gray-600/25 absolute bottom-2 left-1/2 flex size-9 -translate-x-1/2 items-center justify-center rounded-full backdrop-blur-sm", children: /* @__PURE__ */ e.jsx(t.icon, { className: "size-6 text-white" }) })
|
|
9
|
+
] }),
|
|
10
|
+
/* @__PURE__ */ e.jsx("h2", { className: "mt-xl text-center font-semibold", children: t.title }),
|
|
11
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-gray-500 mx-auto mt-xs max-w-[25rem] text-center text-sm", children: t.message })
|
|
12
|
+
] });
|
|
4
13
|
}
|
|
5
14
|
export {
|
|
6
|
-
|
|
15
|
+
r as Empty
|
|
7
16
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { UseFeatureFlagReturn } from './useFeatureFlag';
|
|
2
2
|
export declare const FeatureFlagContext: import('react').Context<UseFeatureFlagReturn | null>;
|
|
3
|
-
export declare const useFeatureFlagContext: () => UseFeatureFlagReturn
|
|
3
|
+
export declare const useFeatureFlagContext: () => UseFeatureFlagReturn | {
|
|
4
|
+
disable: (...args: any[]) => void;
|
|
5
|
+
enabled: false;
|
|
6
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("lodash-es"),e=require("react"),t=e.createContext(null),o=()=>e.useContext(t)??{disable:n.noop,enabled:!1};exports.FeatureFlagContext=t;exports.useFeatureFlagContext=o;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { noop as t } from "lodash-es";
|
|
1
3
|
import { createContext as e, useContext as o } from "react";
|
|
2
|
-
|
|
3
|
-
const r = e(
|
|
4
|
+
const n = e(
|
|
4
5
|
null
|
|
5
|
-
),
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
), s = () => o(n) ?? {
|
|
7
|
+
disable: t,
|
|
8
|
+
enabled: !1
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
n as FeatureFlagContext,
|
|
12
|
+
s as useFeatureFlagContext
|
|
12
13
|
};
|
|
@@ -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");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");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/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");const i=require("../../ui/Presence.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const n=require("./FeatureFlagContext.js"),s=require("./useFeatureFlag.js");function a(t){const r=s.useFeatureFlag();return e.jsxRuntimeExports.jsxs(n.FeatureFlagContext,{value:r,children:[t.children,e.jsxRuntimeExports.jsx(u.Portal,{children:e.jsxRuntimeExports.jsxs(i.Presence,{lazyMount:!0,unmountOnExit:!0,present:r.enabled,className:"fixed bottom-2 left-1/2 z-toast flex -translate-x-1/2 gap-1 rounded-full bg-black/50 px-1.5 py-0.5 text-2xs leading-tight text-white backdrop-blur-sm",suppressHydrationWarning:!0,children:["Experimental features are enabled."," ",e.jsxRuntimeExports.jsx("button",{type:"button",onClick:r.disable,className:"underline underline-offset-2",children:"Disable"})]})})]})}exports.FeatureFlagProvider=a;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { j as t } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { Portal as o } from "@ark-ui/react";
|
|
3
4
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
4
5
|
import "../../ui/Avatar/Avatar.mjs";
|
|
5
6
|
import "../../ui/Badge/Badge.mjs";
|
|
@@ -22,37 +23,42 @@ import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
|
22
23
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
23
24
|
import "../../ui/PinInput/PinInput.mjs";
|
|
24
25
|
import "../../ui/Popover/Popover.mjs";
|
|
25
|
-
import { Presence as
|
|
26
|
+
import { Presence as i } from "../../ui/Presence.mjs";
|
|
26
27
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
27
28
|
import "../../ui/Select/Select.mjs";
|
|
28
29
|
import "../../ui/Table/Table.mjs";
|
|
29
30
|
import "../../ui/Tabs/Tabs.mjs";
|
|
30
|
-
import { FeatureFlagContext as
|
|
31
|
-
import { useFeatureFlag as
|
|
32
|
-
function
|
|
33
|
-
const
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
unmountOnExit: !0,
|
|
39
|
-
present: t.enabled,
|
|
40
|
-
className: "fixed bottom-2 left-1/2 z-toast flex -translate-x-1/2 gap-1 rounded-full bg-black/50 px-1.5 py-0.5 text-2xs leading-tight text-white backdrop-blur-sm",
|
|
41
|
-
suppressHydrationWarning: !0
|
|
42
|
-
},
|
|
43
|
-
"Experimental features are enabled.",
|
|
44
|
-
" ",
|
|
45
|
-
/* @__PURE__ */ React.createElement(
|
|
46
|
-
"button",
|
|
31
|
+
import { FeatureFlagContext as m } from "./FeatureFlagContext.mjs";
|
|
32
|
+
import { useFeatureFlag as p } from "./useFeatureFlag.mjs";
|
|
33
|
+
function B(e) {
|
|
34
|
+
const r = p();
|
|
35
|
+
return /* @__PURE__ */ t.jsxs(m, { value: r, children: [
|
|
36
|
+
e.children,
|
|
37
|
+
/* @__PURE__ */ t.jsx(o, { children: /* @__PURE__ */ t.jsxs(
|
|
38
|
+
i,
|
|
47
39
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
lazyMount: !0,
|
|
41
|
+
unmountOnExit: !0,
|
|
42
|
+
present: r.enabled,
|
|
43
|
+
className: "fixed bottom-2 left-1/2 z-toast flex -translate-x-1/2 gap-1 rounded-full bg-black/50 px-1.5 py-0.5 text-2xs leading-tight text-white backdrop-blur-sm",
|
|
44
|
+
suppressHydrationWarning: !0,
|
|
45
|
+
children: [
|
|
46
|
+
"Experimental features are enabled.",
|
|
47
|
+
" ",
|
|
48
|
+
/* @__PURE__ */ t.jsx(
|
|
49
|
+
"button",
|
|
50
|
+
{
|
|
51
|
+
type: "button",
|
|
52
|
+
onClick: r.disable,
|
|
53
|
+
className: "underline underline-offset-2",
|
|
54
|
+
children: "Disable"
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
) })
|
|
60
|
+
] });
|
|
55
61
|
}
|
|
56
62
|
export {
|
|
57
|
-
|
|
63
|
+
B as FeatureFlagProvider
|
|
58
64
|
};
|
|
@@ -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"),R=require("../../_virtual/image.js"),f=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");const p=require("../../hooks/useDisclosure.js"),q=require("../../hooks/useEndGameSessionMutation.js"),I=require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const L=require("../../icons/AlertCircleIcon.js"),N=require("../../icons/ChevronLeftIcon.js"),h=require("../../icons/Expand03Icon.js"),g=require("../../icons/SpinnerIcon.js"),z=require("../../icons/Wallet02Icon.js"),E=require("../../icons/XIcon.js"),t=require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const c=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");const o=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const y=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 G(x){var d;const m=f.useRef(null),r=p.useDisclosure({defaultOpen:!0,onOpenChange(i){i||setTimeout(()=>{var j;(j=m.current)==null||j.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})},25)}}),a=p.useDisclosure(),u=q.useEndGameSessionMutation(),s=I.useGlobalStore(y.useShallow(i=>({gameLaunch:i.gameLaunch,depositWithdrawal:i.depositWithdrawal})));async function l(){s.gameLaunch.details.status==="PLAYING"&&await u.mutateAsync({game:s.gameLaunch.details.game,session:s.gameLaunch.details.session}),r.setOpen(!0),s.gameLaunch.setDetails({status:"WAITING",session:null,game:null})}return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(n.Presence,{ref:m,present:s.gameLaunch.details.status!=="WAITING"&&!r.open,lazyMount:!0,unmountOnExit:s.gameLaunch.details.status==="WAITING",className:"border-gray-200 w-full overflow-hidden rounded-lg border ui-open:animate-fade-in ui-closed:animate-fade-out",children:[e.jsxRuntimeExports.jsxs("section",{className:"aspect-[960/540] w-full",children:[s.gameLaunch.details.status==="LOADING"&&e.jsxRuntimeExports.jsx("div",{className:"flex size-full items-center justify-center",children:e.jsxRuntimeExports.jsx(g.SpinnerIcon,{className:"size-8"})}),s.gameLaunch.details.status==="FAILED"&&e.jsxRuntimeExports.jsx("div",{}),s.gameLaunch.details.status==="PLAYING"&&e.jsxRuntimeExports.jsx("iframe",{src:((d=s.gameLaunch.details.session)==null?void 0:d.launchUrl)??"",className:"size-full"})]}),e.jsxRuntimeExports.jsxs("section",{className:"border-gray-200 flex justify-end gap-lg border-t p-2",children:[e.jsxRuntimeExports.jsx(o.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",onClick:()=>{if(s.gameLaunch.details.status!=="PLAYING"){l();return}a.setOpen(!0)},disabled:s.gameLaunch.details.status==="LOADING","aria-label":"Quit Game",title:"Quit",children:e.jsxRuntimeExports.jsx(E.XIcon,{className:"size-5"})}),e.jsxRuntimeExports.jsx(o.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",onClick:()=>r.setOpen(!0),title:"Maximize","aria-label":"Maximize",children:e.jsxRuntimeExports.jsx(h.Expand03Icon,{className:"size-5"})})]})]}),e.jsxRuntimeExports.jsx(n.Dialog.Root,{open:s.gameLaunch.details.status!=="WAITING"&&r.open&&!a.open,lazyMount:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:e.jsxRuntimeExports.jsx(n.Portal,{children:e.jsxRuntimeExports.jsx(n.Dialog.Positioner,{className:"z-dialog fixed inset-0",children:e.jsxRuntimeExports.jsxs(n.Dialog.Content,{className:"ui-open:animate-dialog-in ui-closed:animate-dialog-out flex size-full flex-col bg-white",children:[e.jsxRuntimeExports.jsxs("section",{className:"grid grid-cols-[22rem_auto_22rem] items-center px-4 py-2",children:[e.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-start gap-2",children:e.jsxRuntimeExports.jsx(o.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",onClick:()=>{if(s.gameLaunch.details.status!=="PLAYING"){l();return}a.setOpen(!0)},disabled:s.gameLaunch.details.status==="LOADING",title:"Quit","aria-label":"Quit Game",children:e.jsxRuntimeExports.jsx(N.ChevronLeftIcon,{className:"size-5"})})}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center",children:!!x.logo&&e.jsxRuntimeExports.jsx(R,{src:x.logo,height:40,width:80,alt:"",className:"h-9 w-auto shrink-0"})}),e.jsxRuntimeExports.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsxRuntimeExports.jsxs(c.Button,{size:"sm",fullWidth:!1,onClick:()=>{s.depositWithdrawal.setOpen(!0)},children:[e.jsxRuntimeExports.jsx(z.Wallet02Icon,{className:"size-5"}),"Wallet"]}),e.jsxRuntimeExports.jsx(o.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",onClick:()=>r.setOpen(!1),title:"Minimize","aria-label":"Minimize",children:e.jsxRuntimeExports.jsx(h.Expand03Icon,{className:"size-5"})})]})]}),e.jsxRuntimeExports.jsxs("section",{className:"grow",children:[s.gameLaunch.details.status==="LOADING"&&e.jsxRuntimeExports.jsx("div",{className:"flex size-full items-center justify-center",children:e.jsxRuntimeExports.jsx(g.SpinnerIcon,{className:"size-8"})}),s.gameLaunch.details.status==="FAILED"&&e.jsxRuntimeExports.jsx("div",{}),s.gameLaunch.details.status==="PLAYING"&&e.jsxRuntimeExports.jsx("iframe",{src:s.gameLaunch.details.session.launchUrl??"",className:"size-full"})]})]})})})}),e.jsxRuntimeExports.jsx(t.Root,{role:"alertdialog",open:a.open,onOpenChange:i=>{a.setOpen(i.open)},lazyMount:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:e.jsxRuntimeExports.jsxs(n.Portal,{children:[e.jsxRuntimeExports.jsx(t.Backdrop,{}),e.jsxRuntimeExports.jsx(t.Positioner,{children:e.jsxRuntimeExports.jsxs(t.Content,{children:[e.jsxRuntimeExports.jsxs(t.Header,{children:[e.jsxRuntimeExports.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]",children:e.jsxRuntimeExports.jsx(L.AlertCircleIcon,{})}),e.jsxRuntimeExports.jsx(t.CloseTrigger,{children:e.jsxRuntimeExports.jsx(E.XIcon,{})})]}),e.jsxRuntimeExports.jsxs(t.Body,{children:[e.jsxRuntimeExports.jsx(t.Title,{children:"Quit Game"}),e.jsxRuntimeExports.jsx(t.Description,{children:"Are you sure you want to quit?"})]}),e.jsxRuntimeExports.jsx(t.Context,{children:i=>e.jsxRuntimeExports.jsxs(t.Footer,{children:[e.jsxRuntimeExports.jsx(c.Button,{variant:"outline",colorScheme:"gray",disabled:u.isPending,onClick:()=>{i.setOpen(!1)},children:"Cancel"}),e.jsxRuntimeExports.jsx(c.Button,{colorScheme:"danger",disabled:u.isPending,onClick:async()=>{await l(),i.setOpen(!1)},children:"Proceed"})]})})]})})]})})]})}exports.GameLaunch=G;
|