@opexa/portal-components 0.0.7 → 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/services.js +1 -0
- package/dist/services.mjs +10 -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 +18 -36
- package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.js +0 -6
- package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.mjs +0 -790
- /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.js +0 -0
- /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import N from "
|
|
4
|
-
import
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { Presence as N, Dialog as o, Portal as h } from "@ark-ui/react";
|
|
4
|
+
import L from "../../_virtual/image.mjs";
|
|
5
|
+
import { useRef as I } from "react";
|
|
5
6
|
import "@opexa/portal-sdk-core";
|
|
6
7
|
import "@tanstack/react-query";
|
|
7
8
|
import "tiny-invariant";
|
|
@@ -14,21 +15,21 @@ import "../../utils/isMobile.mjs";
|
|
|
14
15
|
import "../../utils/toaster.mjs";
|
|
15
16
|
import "lodash-es";
|
|
16
17
|
import "../../_virtual/index.cjs.mjs";
|
|
17
|
-
import { useDisclosure as
|
|
18
|
-
import { useEndGameSessionMutation as
|
|
19
|
-
import { useGlobalStore as
|
|
18
|
+
import { useDisclosure as x } from "../../hooks/useDisclosure.mjs";
|
|
19
|
+
import { useEndGameSessionMutation as z } from "../../hooks/useEndGameSessionMutation.mjs";
|
|
20
|
+
import { useGlobalStore as y } from "../../hooks/useGlobalStore.mjs";
|
|
20
21
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
21
22
|
import "usehooks-ts";
|
|
22
|
-
import { AlertCircleIcon as
|
|
23
|
-
import { ChevronLeftIcon as
|
|
24
|
-
import { Expand03Icon as
|
|
25
|
-
import { SpinnerIcon as
|
|
26
|
-
import { Wallet02Icon as
|
|
27
|
-
import { XIcon as
|
|
28
|
-
import { Root as
|
|
23
|
+
import { AlertCircleIcon as O } from "../../icons/AlertCircleIcon.mjs";
|
|
24
|
+
import { ChevronLeftIcon as G } from "../../icons/ChevronLeftIcon.mjs";
|
|
25
|
+
import { Expand03Icon as f } from "../../icons/Expand03Icon.mjs";
|
|
26
|
+
import { SpinnerIcon as g } from "../../icons/SpinnerIcon.mjs";
|
|
27
|
+
import { Wallet02Icon as b } from "../../icons/Wallet02Icon.mjs";
|
|
28
|
+
import { XIcon as j } from "../../icons/XIcon.mjs";
|
|
29
|
+
import { Root as A, Backdrop as v, Positioner as C, Content as w, Header as D, CloseTrigger as S, Body as P, Title as E, Description as k, Context as W, Footer as M } from "../../ui/AlertDialog/AlertDialog.mjs";
|
|
29
30
|
import "../../ui/Avatar/Avatar.mjs";
|
|
30
31
|
import "../../ui/Badge/Badge.mjs";
|
|
31
|
-
import { Button as
|
|
32
|
+
import { Button as c } from "../../ui/Button/Button.mjs";
|
|
32
33
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
33
34
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
34
35
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
@@ -44,183 +45,228 @@ import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
44
45
|
import "../../ui/Select/Select.mjs";
|
|
45
46
|
import "../../ui/Table/Table.mjs";
|
|
46
47
|
import "../../ui/Tabs/Tabs.mjs";
|
|
47
|
-
import { useShallow as
|
|
48
|
-
function
|
|
49
|
-
var
|
|
50
|
-
const
|
|
48
|
+
import { useShallow as T } 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";
|
|
49
|
+
function Se(m) {
|
|
50
|
+
var d;
|
|
51
|
+
const u = I(null), t = x({
|
|
51
52
|
defaultOpen: !0,
|
|
52
|
-
onOpenChange(
|
|
53
|
-
|
|
53
|
+
onOpenChange(i) {
|
|
54
|
+
i || setTimeout(() => {
|
|
54
55
|
var p;
|
|
55
|
-
(p =
|
|
56
|
+
(p = u.current) == null || p.scrollIntoView({
|
|
56
57
|
behavior: "smooth",
|
|
57
58
|
block: "start",
|
|
58
59
|
inline: "start"
|
|
59
60
|
});
|
|
60
61
|
}, 25);
|
|
61
62
|
}
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
gameLaunch:
|
|
65
|
-
depositWithdrawal:
|
|
63
|
+
}), a = x(), r = z(), s = y(
|
|
64
|
+
T((i) => ({
|
|
65
|
+
gameLaunch: i.gameLaunch,
|
|
66
|
+
depositWithdrawal: i.depositWithdrawal
|
|
66
67
|
}))
|
|
67
68
|
);
|
|
68
|
-
async function
|
|
69
|
-
|
|
70
|
-
game:
|
|
71
|
-
session:
|
|
72
|
-
}),
|
|
69
|
+
async function l() {
|
|
70
|
+
s.gameLaunch.details.status === "PLAYING" && await r.mutateAsync({
|
|
71
|
+
game: s.gameLaunch.details.game,
|
|
72
|
+
session: s.gameLaunch.details.session
|
|
73
|
+
}), t.setOpen(!0), s.gameLaunch.setDetails({
|
|
73
74
|
status: "WAITING",
|
|
74
75
|
session: null,
|
|
75
76
|
game: null
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
|
-
return /* @__PURE__ */
|
|
79
|
-
|
|
80
|
-
{
|
|
81
|
-
ref: m,
|
|
82
|
-
present: e.gameLaunch.details.status !== "WAITING" && !a.open,
|
|
83
|
-
lazyMount: !0,
|
|
84
|
-
unmountOnExit: e.gameLaunch.details.status === "WAITING",
|
|
85
|
-
className: "border-gray-200 w-full overflow-hidden rounded-lg border ui-open:animate-fade-in ui-closed:animate-fade-out"
|
|
86
|
-
},
|
|
87
|
-
/* @__PURE__ */ React.createElement("section", { className: "aspect-[960/540] w-full" }, e.gameLaunch.details.status === "LOADING" && /* @__PURE__ */ React.createElement("div", { className: "flex size-full items-center justify-center" }, /* @__PURE__ */ React.createElement(E, { className: "size-8" })), e.gameLaunch.details.status === "FAILED" && /* @__PURE__ */ React.createElement("div", null), e.gameLaunch.details.status === "PLAYING" && /* @__PURE__ */ React.createElement(
|
|
88
|
-
"iframe",
|
|
89
|
-
{
|
|
90
|
-
src: ((u = e.gameLaunch.details.session) == null ? void 0 : u.launchUrl) ?? "",
|
|
91
|
-
className: "size-full"
|
|
92
|
-
}
|
|
93
|
-
)),
|
|
94
|
-
/* @__PURE__ */ React.createElement("section", { className: "border-gray-200 flex justify-end gap-lg border-t p-2" }, /* @__PURE__ */ React.createElement(
|
|
95
|
-
n,
|
|
96
|
-
{
|
|
97
|
-
size: "sm",
|
|
98
|
-
variant: "outline",
|
|
99
|
-
colorScheme: "gray",
|
|
100
|
-
onClick: () => {
|
|
101
|
-
if (e.gameLaunch.details.status !== "PLAYING") {
|
|
102
|
-
i();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
l.setOpen(!0);
|
|
106
|
-
},
|
|
107
|
-
disabled: e.gameLaunch.details.status === "LOADING",
|
|
108
|
-
"aria-label": "Quit Game",
|
|
109
|
-
title: "Quit"
|
|
110
|
-
},
|
|
111
|
-
/* @__PURE__ */ React.createElement(R, { className: "size-5" })
|
|
112
|
-
), /* @__PURE__ */ React.createElement(
|
|
113
|
-
n,
|
|
114
|
-
{
|
|
115
|
-
size: "sm",
|
|
116
|
-
variant: "outline",
|
|
117
|
-
colorScheme: "gray",
|
|
118
|
-
onClick: () => a.setOpen(!0),
|
|
119
|
-
title: "Maximize",
|
|
120
|
-
"aria-label": "Maximize"
|
|
121
|
-
},
|
|
122
|
-
/* @__PURE__ */ React.createElement(g, { className: "size-5" })
|
|
123
|
-
))
|
|
124
|
-
), /* @__PURE__ */ React.createElement(
|
|
125
|
-
c.Root,
|
|
126
|
-
{
|
|
127
|
-
open: e.gameLaunch.details.status !== "WAITING" && a.open && !l.open,
|
|
128
|
-
lazyMount: !0,
|
|
129
|
-
closeOnEscape: !1,
|
|
130
|
-
closeOnInteractOutside: !1
|
|
131
|
-
},
|
|
132
|
-
/* @__PURE__ */ React.createElement(d, null, /* @__PURE__ */ React.createElement(c.Positioner, { className: "z-dialog fixed inset-0" }, /* @__PURE__ */ React.createElement(c.Content, { className: "ui-open:animate-dialog-in ui-closed:animate-dialog-out flex size-full flex-col bg-white" }, /* @__PURE__ */ React.createElement("section", { className: "grid grid-cols-[22rem_auto_22rem] items-center px-4 py-2" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-start gap-2" }, /* @__PURE__ */ React.createElement(
|
|
133
|
-
n,
|
|
134
|
-
{
|
|
135
|
-
size: "sm",
|
|
136
|
-
variant: "outline",
|
|
137
|
-
colorScheme: "gray",
|
|
138
|
-
onClick: () => {
|
|
139
|
-
if (e.gameLaunch.details.status !== "PLAYING") {
|
|
140
|
-
i();
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
l.setOpen(!0);
|
|
144
|
-
},
|
|
145
|
-
disabled: e.gameLaunch.details.status === "LOADING",
|
|
146
|
-
title: "Quit",
|
|
147
|
-
"aria-label": "Quit Game"
|
|
148
|
-
},
|
|
149
|
-
/* @__PURE__ */ React.createElement(O, { className: "size-5" })
|
|
150
|
-
)), /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-center" }, !!o.logo && /* @__PURE__ */ React.createElement(
|
|
79
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
80
|
+
/* @__PURE__ */ e.jsxs(
|
|
151
81
|
N,
|
|
152
82
|
{
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
className: "
|
|
83
|
+
ref: u,
|
|
84
|
+
present: s.gameLaunch.details.status !== "WAITING" && !t.open,
|
|
85
|
+
lazyMount: !0,
|
|
86
|
+
unmountOnExit: s.gameLaunch.details.status === "WAITING",
|
|
87
|
+
className: "border-gray-200 w-full overflow-hidden rounded-lg border ui-open:animate-fade-in ui-closed:animate-fade-out",
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ e.jsxs("section", { className: "aspect-[960/540] w-full", children: [
|
|
90
|
+
s.gameLaunch.details.status === "LOADING" && /* @__PURE__ */ e.jsx("div", { className: "flex size-full items-center justify-center", children: /* @__PURE__ */ e.jsx(g, { className: "size-8" }) }),
|
|
91
|
+
s.gameLaunch.details.status === "FAILED" && /* @__PURE__ */ e.jsx("div", {}),
|
|
92
|
+
s.gameLaunch.details.status === "PLAYING" && /* @__PURE__ */ e.jsx(
|
|
93
|
+
"iframe",
|
|
94
|
+
{
|
|
95
|
+
src: ((d = s.gameLaunch.details.session) == null ? void 0 : d.launchUrl) ?? "",
|
|
96
|
+
className: "size-full"
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ e.jsxs("section", { className: "border-gray-200 flex justify-end gap-lg border-t p-2", children: [
|
|
101
|
+
/* @__PURE__ */ e.jsx(
|
|
102
|
+
n,
|
|
103
|
+
{
|
|
104
|
+
size: "sm",
|
|
105
|
+
variant: "outline",
|
|
106
|
+
colorScheme: "gray",
|
|
107
|
+
onClick: () => {
|
|
108
|
+
if (s.gameLaunch.details.status !== "PLAYING") {
|
|
109
|
+
l();
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
a.setOpen(!0);
|
|
113
|
+
},
|
|
114
|
+
disabled: s.gameLaunch.details.status === "LOADING",
|
|
115
|
+
"aria-label": "Quit Game",
|
|
116
|
+
title: "Quit",
|
|
117
|
+
children: /* @__PURE__ */ e.jsx(j, { className: "size-5" })
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ e.jsx(
|
|
121
|
+
n,
|
|
122
|
+
{
|
|
123
|
+
size: "sm",
|
|
124
|
+
variant: "outline",
|
|
125
|
+
colorScheme: "gray",
|
|
126
|
+
onClick: () => t.setOpen(!0),
|
|
127
|
+
title: "Maximize",
|
|
128
|
+
"aria-label": "Maximize",
|
|
129
|
+
children: /* @__PURE__ */ e.jsx(f, { className: "size-5" })
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] })
|
|
133
|
+
]
|
|
158
134
|
}
|
|
159
|
-
)
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
size: "sm",
|
|
163
|
-
fullWidth: !1,
|
|
164
|
-
onClick: () => {
|
|
165
|
-
e.depositWithdrawal.setOpen(!0);
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
/* @__PURE__ */ React.createElement(G, { className: "size-5" }),
|
|
169
|
-
"Wallet"
|
|
170
|
-
), /* @__PURE__ */ React.createElement(
|
|
171
|
-
n,
|
|
172
|
-
{
|
|
173
|
-
size: "sm",
|
|
174
|
-
variant: "outline",
|
|
175
|
-
colorScheme: "gray",
|
|
176
|
-
onClick: () => a.setOpen(!1),
|
|
177
|
-
title: "Minimize",
|
|
178
|
-
"aria-label": "Minimize"
|
|
179
|
-
},
|
|
180
|
-
/* @__PURE__ */ React.createElement(g, { className: "size-5" })
|
|
181
|
-
))), /* @__PURE__ */ React.createElement("section", { className: "grow" }, e.gameLaunch.details.status === "LOADING" && /* @__PURE__ */ React.createElement("div", { className: "flex size-full items-center justify-center" }, /* @__PURE__ */ React.createElement(E, { className: "size-8" })), e.gameLaunch.details.status === "FAILED" && /* @__PURE__ */ React.createElement("div", null), e.gameLaunch.details.status === "PLAYING" && /* @__PURE__ */ React.createElement(
|
|
182
|
-
"iframe",
|
|
135
|
+
),
|
|
136
|
+
/* @__PURE__ */ e.jsx(
|
|
137
|
+
o.Root,
|
|
183
138
|
{
|
|
184
|
-
|
|
185
|
-
|
|
139
|
+
open: s.gameLaunch.details.status !== "WAITING" && t.open && !a.open,
|
|
140
|
+
lazyMount: !0,
|
|
141
|
+
closeOnEscape: !1,
|
|
142
|
+
closeOnInteractOutside: !1,
|
|
143
|
+
children: /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(o.Positioner, { className: "z-dialog fixed inset-0", children: /* @__PURE__ */ e.jsxs(o.Content, { className: "ui-open:animate-dialog-in ui-closed:animate-dialog-out flex size-full flex-col bg-white", children: [
|
|
144
|
+
/* @__PURE__ */ e.jsxs("section", { className: "grid grid-cols-[22rem_auto_22rem] items-center px-4 py-2", children: [
|
|
145
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-start gap-2", children: /* @__PURE__ */ e.jsx(
|
|
146
|
+
n,
|
|
147
|
+
{
|
|
148
|
+
size: "sm",
|
|
149
|
+
variant: "outline",
|
|
150
|
+
colorScheme: "gray",
|
|
151
|
+
onClick: () => {
|
|
152
|
+
if (s.gameLaunch.details.status !== "PLAYING") {
|
|
153
|
+
l();
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
a.setOpen(!0);
|
|
157
|
+
},
|
|
158
|
+
disabled: s.gameLaunch.details.status === "LOADING",
|
|
159
|
+
title: "Quit",
|
|
160
|
+
"aria-label": "Quit Game",
|
|
161
|
+
children: /* @__PURE__ */ e.jsx(G, { className: "size-5" })
|
|
162
|
+
}
|
|
163
|
+
) }),
|
|
164
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center", children: !!m.logo && /* @__PURE__ */ e.jsx(
|
|
165
|
+
L,
|
|
166
|
+
{
|
|
167
|
+
src: m.logo,
|
|
168
|
+
height: 40,
|
|
169
|
+
width: 80,
|
|
170
|
+
alt: "",
|
|
171
|
+
className: "h-9 w-auto shrink-0"
|
|
172
|
+
}
|
|
173
|
+
) }),
|
|
174
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
175
|
+
/* @__PURE__ */ e.jsxs(
|
|
176
|
+
c,
|
|
177
|
+
{
|
|
178
|
+
size: "sm",
|
|
179
|
+
fullWidth: !1,
|
|
180
|
+
onClick: () => {
|
|
181
|
+
s.depositWithdrawal.setOpen(!0);
|
|
182
|
+
},
|
|
183
|
+
children: [
|
|
184
|
+
/* @__PURE__ */ e.jsx(b, { className: "size-5" }),
|
|
185
|
+
"Wallet"
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
/* @__PURE__ */ e.jsx(
|
|
190
|
+
n,
|
|
191
|
+
{
|
|
192
|
+
size: "sm",
|
|
193
|
+
variant: "outline",
|
|
194
|
+
colorScheme: "gray",
|
|
195
|
+
onClick: () => t.setOpen(!1),
|
|
196
|
+
title: "Minimize",
|
|
197
|
+
"aria-label": "Minimize",
|
|
198
|
+
children: /* @__PURE__ */ e.jsx(f, { className: "size-5" })
|
|
199
|
+
}
|
|
200
|
+
)
|
|
201
|
+
] })
|
|
202
|
+
] }),
|
|
203
|
+
/* @__PURE__ */ e.jsxs("section", { className: "grow", children: [
|
|
204
|
+
s.gameLaunch.details.status === "LOADING" && /* @__PURE__ */ e.jsx("div", { className: "flex size-full items-center justify-center", children: /* @__PURE__ */ e.jsx(g, { className: "size-8" }) }),
|
|
205
|
+
s.gameLaunch.details.status === "FAILED" && /* @__PURE__ */ e.jsx("div", {}),
|
|
206
|
+
s.gameLaunch.details.status === "PLAYING" && /* @__PURE__ */ e.jsx(
|
|
207
|
+
"iframe",
|
|
208
|
+
{
|
|
209
|
+
src: s.gameLaunch.details.session.launchUrl ?? "",
|
|
210
|
+
className: "size-full"
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
] })
|
|
214
|
+
] }) }) })
|
|
186
215
|
}
|
|
187
|
-
)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
{
|
|
191
|
-
role: "alertdialog",
|
|
192
|
-
open: l.open,
|
|
193
|
-
onOpenChange: (t) => {
|
|
194
|
-
l.setOpen(t.open);
|
|
195
|
-
},
|
|
196
|
-
lazyMount: !0,
|
|
197
|
-
closeOnEscape: !1,
|
|
198
|
-
closeOnInteractOutside: !1
|
|
199
|
-
},
|
|
200
|
-
/* @__PURE__ */ React.createElement(d, null, /* @__PURE__ */ React.createElement(x, null), /* @__PURE__ */ React.createElement(A, null, /* @__PURE__ */ React.createElement(v, null, /* @__PURE__ */ React.createElement(C, null, /* @__PURE__ */ React.createElement("div", { className: "flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]" }, /* @__PURE__ */ React.createElement(y, null)), /* @__PURE__ */ React.createElement(w, null, /* @__PURE__ */ React.createElement(R, null))), /* @__PURE__ */ React.createElement(D, null, /* @__PURE__ */ React.createElement(S, null, "Quit Game"), /* @__PURE__ */ React.createElement(P, null, "Are you sure you want to quit?")), /* @__PURE__ */ React.createElement(k, null, (t) => /* @__PURE__ */ React.createElement(W, null, /* @__PURE__ */ React.createElement(
|
|
201
|
-
r,
|
|
216
|
+
),
|
|
217
|
+
/* @__PURE__ */ e.jsx(
|
|
218
|
+
A,
|
|
202
219
|
{
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
role: "alertdialog",
|
|
221
|
+
open: a.open,
|
|
222
|
+
onOpenChange: (i) => {
|
|
223
|
+
a.setOpen(i.open);
|
|
224
|
+
},
|
|
225
|
+
lazyMount: !0,
|
|
226
|
+
closeOnEscape: !1,
|
|
227
|
+
closeOnInteractOutside: !1,
|
|
228
|
+
children: /* @__PURE__ */ e.jsxs(h, { children: [
|
|
229
|
+
/* @__PURE__ */ e.jsx(v, {}),
|
|
230
|
+
/* @__PURE__ */ e.jsx(C, { children: /* @__PURE__ */ e.jsxs(w, { children: [
|
|
231
|
+
/* @__PURE__ */ e.jsxs(D, { children: [
|
|
232
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]", children: /* @__PURE__ */ e.jsx(O, {}) }),
|
|
233
|
+
/* @__PURE__ */ e.jsx(S, { children: /* @__PURE__ */ e.jsx(j, {}) })
|
|
234
|
+
] }),
|
|
235
|
+
/* @__PURE__ */ e.jsxs(P, { children: [
|
|
236
|
+
/* @__PURE__ */ e.jsx(E, { children: "Quit Game" }),
|
|
237
|
+
/* @__PURE__ */ e.jsx(k, { children: "Are you sure you want to quit?" })
|
|
238
|
+
] }),
|
|
239
|
+
/* @__PURE__ */ e.jsx(W, { children: (i) => /* @__PURE__ */ e.jsxs(M, { children: [
|
|
240
|
+
/* @__PURE__ */ e.jsx(
|
|
241
|
+
c,
|
|
242
|
+
{
|
|
243
|
+
variant: "outline",
|
|
244
|
+
colorScheme: "gray",
|
|
245
|
+
disabled: r.isPending,
|
|
246
|
+
onClick: () => {
|
|
247
|
+
i.setOpen(!1);
|
|
248
|
+
},
|
|
249
|
+
children: "Cancel"
|
|
250
|
+
}
|
|
251
|
+
),
|
|
252
|
+
/* @__PURE__ */ e.jsx(
|
|
253
|
+
c,
|
|
254
|
+
{
|
|
255
|
+
colorScheme: "danger",
|
|
256
|
+
disabled: r.isPending,
|
|
257
|
+
onClick: async () => {
|
|
258
|
+
await l(), i.setOpen(!1);
|
|
259
|
+
},
|
|
260
|
+
children: "Proceed"
|
|
261
|
+
}
|
|
262
|
+
)
|
|
263
|
+
] }) })
|
|
264
|
+
] }) })
|
|
265
|
+
] })
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
] });
|
|
223
269
|
}
|
|
224
270
|
export {
|
|
225
|
-
|
|
271
|
+
Se as GameLaunch
|
|
226
272
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("@ark-ui/react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");const d=require("../../utils/dataAttr.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../_virtual/jsx-runtime.js"),m=require("@ark-ui/react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");const d=require("../../utils/dataAttr.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const q=require("../../utils/toaster.js"),h=require("../../hooks/useSessionQuery.js");require("lodash-es");const L=require("../../hooks/useCreateGameSessionMutation.js");require("../../_virtual/index.cjs.js");const G=require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const I=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 S(e){var n,i;const r=h.useSessionQuery(),l=L.useCreateGameSessionMutation(),t=G.useGlobalStore(I.useShallow(a=>({signIn:a.signIn,gameLaunch:a.gameLaunch}))),u=((n=r.data)==null?void 0:n.status)==="unauthenticated"?!1:t.gameLaunch.details.status!=="WAITING"?!0:e.disabled;return g.jsxRuntimeExports.jsx(m.ark.button,{type:"button",...e,onClick:async a=>{var o,c;if((o=e.onClick)==null||o.call(e,a),((c=r.data)==null?void 0:c.status)==="unauthenticated")return t.signIn.setOpen(!0);t.gameLaunch.setDetails({game:e.game,status:"LOADING",session:null});try{const s=await l.mutateAsync(e.game);t.gameLaunch.setDetails({game:e.game,session:s,status:"PLAYING"})}catch(s){t.gameLaunch.setDetails({game:e.game,session:null,status:"FAILED"}),q.toaster.error({description:s instanceof Error?s.message:"Failed to launch game"})}},disabled:u,"data-disabled":d.dataAttr(u),"data-state":((i=r.data)==null?void 0:i.status)==="unauthenticated"?t.signIn.open?"open":"closed":t.gameLaunch.details.status==="WAITING"?"closed":"open"})}exports.GameLaunchTrigger=S;
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { j as l } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { ark as g } from "@ark-ui/react";
|
|
3
4
|
import "@opexa/portal-sdk-core";
|
|
4
5
|
import "@tanstack/react-query";
|
|
5
6
|
import "tiny-invariant";
|
|
6
7
|
import "../../constants/index.mjs";
|
|
7
8
|
import "../../utils/capitalize.mjs";
|
|
8
9
|
import "react";
|
|
9
|
-
import { dataAttr as
|
|
10
|
+
import { dataAttr as d } from "../../utils/dataAttr.mjs";
|
|
10
11
|
import "../../utils/parseDecimal.mjs";
|
|
11
12
|
import "../../utils/getLocaleInfo.mjs";
|
|
12
13
|
import "../../utils/getQueryClient.mjs";
|
|
13
14
|
import "../../utils/isMobile.mjs";
|
|
14
|
-
import { toaster as
|
|
15
|
-
import { useSessionQuery as
|
|
15
|
+
import { toaster as h } from "../../utils/toaster.mjs";
|
|
16
|
+
import { useSessionQuery as f } from "../../hooks/useSessionQuery.mjs";
|
|
16
17
|
import "lodash-es";
|
|
17
|
-
import { useCreateGameSessionMutation as
|
|
18
|
+
import { useCreateGameSessionMutation as I } from "../../hooks/useCreateGameSessionMutation.mjs";
|
|
18
19
|
import "../../_virtual/index.cjs.mjs";
|
|
19
|
-
import { useGlobalStore as
|
|
20
|
+
import { useGlobalStore as L } from "../../hooks/useGlobalStore.mjs";
|
|
20
21
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
21
22
|
import "usehooks-ts";
|
|
22
|
-
import { useShallow as
|
|
23
|
-
function
|
|
23
|
+
import { useShallow as p } 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";
|
|
24
|
+
function q(t) {
|
|
24
25
|
var o, m;
|
|
25
|
-
const
|
|
26
|
-
|
|
26
|
+
const i = f(), c = I(), e = L(
|
|
27
|
+
p((a) => ({
|
|
27
28
|
signIn: a.signIn,
|
|
28
29
|
gameLaunch: a.gameLaunch
|
|
29
30
|
}))
|
|
30
|
-
),
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
31
|
+
), n = ((o = i.data) == null ? void 0 : o.status) === "unauthenticated" ? !1 : e.gameLaunch.details.status !== "WAITING" ? !0 : t.disabled;
|
|
32
|
+
return /* @__PURE__ */ l.jsx(
|
|
33
|
+
g.button,
|
|
33
34
|
{
|
|
34
35
|
type: "button",
|
|
35
36
|
...t,
|
|
36
37
|
onClick: async (a) => {
|
|
37
38
|
var r, u;
|
|
38
|
-
if ((r = t.onClick) == null || r.call(t, a), ((u =
|
|
39
|
+
if ((r = t.onClick) == null || r.call(t, a), ((u = i.data) == null ? void 0 : u.status) === "unauthenticated")
|
|
39
40
|
return e.signIn.setOpen(!0);
|
|
40
41
|
e.gameLaunch.setDetails({
|
|
41
42
|
game: t.game,
|
|
@@ -56,17 +57,17 @@ function j(t) {
|
|
|
56
57
|
game: t.game,
|
|
57
58
|
session: null,
|
|
58
59
|
status: "FAILED"
|
|
59
|
-
}),
|
|
60
|
+
}), h.error({
|
|
60
61
|
description: s instanceof Error ? s.message : "Failed to launch game"
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
},
|
|
64
|
-
disabled:
|
|
65
|
-
"data-disabled":
|
|
66
|
-
"data-state": ((m =
|
|
65
|
+
disabled: n,
|
|
66
|
+
"data-disabled": d(n),
|
|
67
|
+
"data-state": ((m = i.data) == null ? void 0 : m.status) === "unauthenticated" ? e.signIn.open ? "open" : "closed" : e.gameLaunch.details.status === "WAITING" ? "closed" : "open"
|
|
67
68
|
}
|
|
68
69
|
);
|
|
69
70
|
}
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
+
q as GameLaunchTrigger
|
|
72
73
|
};
|
|
@@ -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 r=require("../../_virtual/jsx-runtime.js"),N=require("embla-carousel-react"),R=require("../../_virtual/image.js"),w=require("../../_virtual/link.js"),i=require("react"),v=require("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/toaster.js");require("lodash-es");require("../../_virtual/index.cjs.js");const E=require("../../hooks/useGamesQuery.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const S=require("../../icons/ArrowLeftIcon.js"),p=require("../../icons/ArrowRightIcon.js"),y=require("../../icons/ChevronRightIcon.js"),P=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const l=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("@ark-ui/react");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const k=require("../GameLaunch/GameLaunchTrigger.js");function C(n){var u;const c=n.numOfRows??1,t=E.useGamesQuery({first:(c+1)*6,filter:n.filter}),a=((u=t.data)==null?void 0:u.pages.map(s=>s.edges.map(f=>f.node)).flat())??[],[x,e]=N({align:"start",slidesToScroll:3,breakpoints:{"(min-width: 1024px)":{slidesToScroll:6}}}),[d,m]=i.useState(!0),[q,g]=i.useState(!0),j=i.useCallback(()=>e==null?void 0:e.scrollPrev(),[e]),h=i.useCallback(async()=>{!(e!=null&&e.canScrollNext())&&t.hasNextPage&&(await t.fetchNextPage(),e==null||e.reInit(),await new Promise(s=>setTimeout(s,1))),e==null||e.scrollNext()},[e,t]),o=i.useCallback(s=>{m(!(s!=null&&s.canScrollPrev())),g(!(s!=null&&s.canScrollNext()))},[]);return i.useEffect(()=>{e&&(o(e),e.on("reInit",o).on("select",o))},[e,o]),r.jsxRuntimeExports.jsxs("div",{className:n.className,children:[r.jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[r.jsxRuntimeExports.jsx("h2",{className:"text-lg font-semibold",children:n.heading}),r.jsxRuntimeExports.jsx("div",{className:"grow"}),r.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-xl",children:[r.jsxRuntimeExports.jsxs(w,{href:n.seeAllUrl,className:"flex gap-sm text-sm font-semibold",children:["See All",r.jsxRuntimeExports.jsx(y.ChevronRightIcon,{className:"size-5 lg:hidden"})]}),r.jsxRuntimeExports.jsxs("div",{className:"hidden lg:flex",children:[r.jsxRuntimeExports.jsx(l.Button,{variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",onClick:j,disabled:d,"aria-label":"Previous",children:r.jsxRuntimeExports.jsx(S.ArrowLeftIcon,{className:"size-5"})}),r.jsxRuntimeExports.jsx(l.Button,{variant:"outline",colorScheme:"gray",className:"rounded-l-none",onClick:h,disabled:q&&!t.hasNextPage?!0:t.isFetchingNextPage,"aria-label":"Next",children:t.isFetchingNextPage?r.jsxRuntimeExports.jsx(P.SpinnerIcon,{className:"size-5"}):r.jsxRuntimeExports.jsx(p.ArrowRightIcon,{className:"size-5"})})]})]})]}),r.jsxRuntimeExports.jsx("div",{ref:x,className:"relative mt-lg lg:overflow-hidden",children:r.jsxRuntimeExports.jsx("div",{className:v.twMerge("grid auto-cols-[calc((100%-(0.375rem*2))/3)] grid-flow-col gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/6)] lg:gap-md",c===3?"grid-rows-3":c===2?"grid-rows-2":"grid-rows-1"),children:a.map(s=>r.jsxRuntimeExports.jsxs(k.GameLaunchTrigger,{game:s,className:"block w-full",children:[r.jsxRuntimeExports.jsx(R,{src:s.image,alt:"",width:200,height:200,priority:!0,className:"aspect-square w-full rounded-t-md object-cover"}),r.jsxRuntimeExports.jsx("span",{className:"bg-gray-50 block w-full truncate rounded-b-md px-2 py-2.5 text-center text-xs font-semibold",children:s.name})]},s.id))})})]})}exports.Games=C;
|