@burdenoff/microfe-billing 2026.1108.1 → 2026.1108.2
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/billing/BillingAdminRoutes.d.ts +1 -2
- package/dist/billing/BillingAdminRoutes.js +11 -12
- package/dist/billing/BillingAdminRoutes.js.map +1 -1
- package/dist/billing/BillingRoot.d.ts +0 -1
- package/dist/billing/BillingRoot.js +10 -9
- package/dist/billing/BillingRoot.js.map +1 -1
- package/dist/billing/BillingUserRoutes.d.ts +1 -2
- package/dist/billing/BillingUserRoutes.js +13 -14
- package/dist/billing/BillingUserRoutes.js.map +1 -1
- package/dist/billing/hooks/useBillingAccountSelection.d.ts +0 -1
- package/dist/billing/hooks/useBillingAccountSelection.js +7 -5
- package/dist/billing/hooks/useBillingAccountSelection.js.map +1 -1
- package/dist/billing/hooks/useBillingEventEmitter.d.ts +0 -1
- package/dist/billing/hooks/useBillingEventEmitter.js +1 -2
- package/dist/billing/hooks/useBillingEventEmitter.js.map +1 -1
- package/dist/billing/hooks/useBillingNavigate.d.ts +0 -1
- package/dist/billing/hooks/useBillingNavigate.js +1 -2
- package/dist/billing/hooks/useBillingNavigate.js.map +1 -1
- package/dist/billing/hooks/useBillingPermissions.d.ts +0 -1
- package/dist/billing/hooks/useBillingPermissions.js +2 -3
- package/dist/billing/hooks/useBillingPermissions.js.map +1 -1
- package/dist/billing/hooks/useDefaultBillingCurrency.d.ts +0 -1
- package/dist/billing/hooks/useDefaultBillingCurrency.js +1 -2
- package/dist/billing/hooks/useDefaultBillingCurrency.js.map +1 -1
- package/dist/billing/hooks/useProducts.d.ts +0 -1
- package/dist/billing/hooks/useProducts.js +1 -2
- package/dist/billing/hooks/useProducts.js.map +1 -1
- package/dist/billing/index.d.ts +0 -1
- package/dist/billing/lib/native-purchases.d.ts +0 -1
- package/dist/billing/lib/native-purchases.js +1 -2
- package/dist/billing/lib/native-purchases.js.map +1 -1
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +0 -1
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js +4 -5
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -1
- package/dist/billing/modules/addons/hooks/index.d.ts +0 -1
- package/dist/billing/modules/addons/hooks/index.js +3 -2
- package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts +0 -1
- package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.js +1 -2
- package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.js.map +1 -1
- package/dist/billing/modules/addons/hooks/useAddons.d.ts +0 -1
- package/dist/billing/modules/addons/hooks/useAddons.js +1 -2
- package/dist/billing/modules/addons/hooks/useAddons.js.map +1 -1
- package/dist/billing/modules/addons/index.d.ts +0 -1
- package/dist/billing/modules/addons/index.js +10 -10
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +0 -1
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +15 -16
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +0 -1
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +11 -12
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +0 -1
- package/dist/billing/modules/addons/pages/AddonDetailPage.js +16 -17
- package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +0 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.js +16 -17
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +0 -1
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +111 -106
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +0 -1
- package/dist/billing/modules/addons/pages/AddonsListPage.js +105 -100
- package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/index.d.ts +0 -1
- package/dist/billing/modules/addons/pages/index.js +7 -6
- package/dist/billing/modules/addons/store/addonCartStore.d.ts +0 -1
- package/dist/billing/modules/addons/store/addonCartStore.js +2 -7
- package/dist/billing/modules/addons/store/addonCartStore.js.map +1 -1
- package/dist/billing/modules/affiliate/api.d.ts +0 -1
- package/dist/billing/modules/affiliate/api.js +1 -2
- package/dist/billing/modules/affiliate/api.js.map +1 -1
- package/dist/billing/modules/affiliate/index.d.ts +0 -1
- package/dist/billing/modules/affiliate/index.js +1 -2
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +0 -1
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +29 -28
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
- package/dist/billing/modules/analytics/index.d.ts +0 -1
- package/dist/billing/modules/analytics/index.js +1 -2
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +0 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +8 -9
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/index.d.ts +0 -1
- package/dist/billing/modules/analytics/pages/index.js +1 -1
- package/dist/billing/modules/billing/hooks/index.d.ts +0 -1
- package/dist/billing/modules/billing/hooks/index.js +5 -4
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts +0 -1
- package/dist/billing/modules/billing/hooks/useInvoices.js +1 -2
- package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -1
- package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts +0 -1
- package/dist/billing/modules/billing/hooks/useOrderCallbacks.js +1 -2
- package/dist/billing/modules/billing/hooks/useOrderCallbacks.js.map +1 -1
- package/dist/billing/modules/billing/hooks/usePayments.d.ts +0 -1
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts +0 -1
- package/dist/billing/modules/billing/hooks/useRefunds.js +1 -2
- package/dist/billing/modules/billing/hooks/useRefunds.js.map +1 -1
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts +0 -1
- package/dist/billing/modules/billing/hooks/useTransactions.js +30 -31
- package/dist/billing/modules/billing/hooks/useTransactions.js.map +1 -1
- package/dist/billing/modules/billing/index.d.ts +0 -1
- package/dist/billing/modules/billing/index.js +15 -15
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts +0 -1
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +11 -12
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +0 -1
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +53 -59
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +0 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +81 -87
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts +0 -1
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +11 -12
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +0 -1
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +51 -54
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts +0 -1
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +33 -34
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts +0 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js +92 -93
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +0 -1
- package/dist/billing/modules/billing/pages/TransactionsPage.js +38 -39
- package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts +0 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +24 -30
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/index.d.ts +0 -1
- package/dist/billing/modules/billing/pages/index.js +10 -9
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +0 -1
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +0 -1
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js +1 -2
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +0 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts +0 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +1 -2
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +0 -1
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js +1 -2
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +0 -1
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +0 -1
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +0 -1
- package/dist/billing/modules/checkout/components/NativeCheckoutView.js +1 -2
- package/dist/billing/modules/checkout/components/NativeCheckoutView.js.map +1 -1
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts +0 -1
- package/dist/billing/modules/checkout/components/OrderSummary.js +35 -32
- package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -1
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +0 -1
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +0 -1
- package/dist/billing/modules/checkout/components/PromoCodeInput.js +1 -2
- package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +0 -1
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +1 -2
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +0 -1
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +0 -1
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js +1 -2
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -1
- package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts +0 -1
- package/dist/billing/modules/checkout/components/StoreShippingSection.js +5 -3
- package/dist/billing/modules/checkout/components/StoreShippingSection.js.map +1 -1
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +0 -1
- package/dist/billing/modules/checkout/components/StripePaymentForm.js +35 -41
- package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -1
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +0 -1
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js +1 -2
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +0 -1
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js +1 -2
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts +0 -1
- package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.js +5 -6
- package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.js.map +1 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts +0 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +7 -8
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
- package/dist/billing/modules/checkout/components/index.d.ts +0 -1
- package/dist/billing/modules/checkout/components/index.js +12 -11
- package/dist/billing/modules/checkout/hooks/index.d.ts +0 -1
- package/dist/billing/modules/checkout/hooks/index.js +5 -4
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +0 -1
- package/dist/billing/modules/checkout/hooks/useCheckout.js +182 -195
- package/dist/billing/modules/checkout/hooks/useCheckout.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +0 -1
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.js +33 -32
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts +0 -1
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.js +1 -2
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts +0 -1
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.js +1 -2
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts +4 -8
- package/dist/billing/modules/checkout/hooks/useStoreShipping.js +1 -2
- package/dist/billing/modules/checkout/hooks/useStoreShipping.js.map +1 -1
- package/dist/billing/modules/checkout/index.d.ts +0 -1
- package/dist/billing/modules/checkout/index.js +19 -19
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +0 -1
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +730 -732
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
- package/dist/billing/modules/checkout/pages/index.d.ts +0 -1
- package/dist/billing/modules/checkout/pages/index.js +1 -1
- package/dist/billing/modules/checkout/types/index.d.ts +0 -1
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts +0 -1
- package/dist/billing/modules/checkout/utils/storeOrder.js +0 -1
- package/dist/billing/modules/checkout/utils/storeOrder.js.map +1 -1
- package/dist/billing/modules/coupons/index.d.ts +0 -1
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +0 -1
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js +5 -6
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +0 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +15 -13
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +0 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +12 -10
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +0 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +7 -11
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/index.d.ts +0 -1
- package/dist/billing/modules/coupons/pages/index.js +5 -4
- package/dist/billing/modules/credits/hooks/index.d.ts +0 -1
- package/dist/billing/modules/credits/hooks/useCredits.d.ts +0 -1
- package/dist/billing/modules/credits/hooks/useCredits.js +20 -21
- package/dist/billing/modules/credits/hooks/useCredits.js.map +1 -1
- package/dist/billing/modules/credits/index.d.ts +0 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +0 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +19 -24
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +0 -1
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +26 -27
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +0 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +54 -52
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts +0 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +37 -38
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/index.d.ts +0 -1
- package/dist/billing/modules/credits/pages/index.js +5 -4
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +0 -1
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js +2 -3
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +0 -1
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +35 -43
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +0 -1
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js +1 -2
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +0 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +1 -2
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +0 -1
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js +2 -5
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +0 -1
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js +1 -2
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/components/index.d.ts +0 -1
- package/dist/billing/modules/dashboard/components/index.js +7 -6
- package/dist/billing/modules/dashboard/hooks/index.d.ts +0 -1
- package/dist/billing/modules/dashboard/hooks/index.js +3 -2
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +0 -1
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.js +2 -3
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.js.map +1 -1
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +0 -1
- package/dist/billing/modules/dashboard/hooks/useDashboard.js +2 -3
- package/dist/billing/modules/dashboard/hooks/useDashboard.js.map +1 -1
- package/dist/billing/modules/dashboard/index.d.ts +0 -1
- package/dist/billing/modules/dashboard/index.js +11 -10
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +0 -1
- package/dist/billing/modules/dashboard/pages/OverviewPage.js +266 -264
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
- package/dist/billing/modules/dashboard/pages/index.d.ts +0 -1
- package/dist/billing/modules/dashboard/pages/index.js +1 -1
- package/dist/billing/modules/discounts/index.d.ts +0 -1
- package/dist/billing/modules/discounts/index.js +1 -2
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +0 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +169 -176
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/discounts/pages/index.d.ts +0 -1
- package/dist/billing/modules/discounts/pages/index.js +1 -1
- package/dist/billing/modules/earnings/api.d.ts +0 -1
- package/dist/billing/modules/earnings/api.js +66 -67
- package/dist/billing/modules/earnings/api.js.map +1 -1
- package/dist/billing/modules/earnings/index.d.ts +0 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts +0 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +17 -17
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts +0 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +188 -189
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +0 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.js +111 -111
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +0 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +29 -30
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +0 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +103 -104
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/earnings/payoutAccountStatus.d.ts +0 -1
- package/dist/billing/modules/earnings/payoutAccountStatus.js +1 -2
- package/dist/billing/modules/earnings/payoutAccountStatus.js.map +1 -1
- package/dist/billing/modules/plans/constants/enterprise.d.ts +0 -1
- package/dist/billing/modules/plans/constants/enterprise.js +1 -2
- package/dist/billing/modules/plans/constants/enterprise.js.map +1 -1
- package/dist/billing/modules/plans/constants/featuredQuotas.d.ts +0 -1
- package/dist/billing/modules/plans/constants/featuredQuotas.js +1 -2
- package/dist/billing/modules/plans/constants/featuredQuotas.js.map +1 -1
- package/dist/billing/modules/plans/hooks/index.d.ts +0 -1
- package/dist/billing/modules/plans/hooks/index.js +3 -2
- package/dist/billing/modules/plans/hooks/usePlans.d.ts +0 -1
- package/dist/billing/modules/plans/hooks/usePlans.js +1 -2
- package/dist/billing/modules/plans/hooks/usePlans.js.map +1 -1
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts +0 -1
- package/dist/billing/modules/plans/hooks/useQuotas.js +1 -2
- package/dist/billing/modules/plans/hooks/useQuotas.js.map +1 -1
- package/dist/billing/modules/plans/index.d.ts +0 -1
- package/dist/billing/modules/plans/index.js +11 -11
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts +0 -1
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +12 -15
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +0 -1
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +38 -39
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +0 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +10 -11
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +0 -1
- package/dist/billing/modules/plans/pages/PlanDetailPage.js +40 -41
- package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +0 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.js +15 -16
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +0 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +18 -19
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts +0 -1
- package/dist/billing/modules/plans/pages/PlansListPage.js +100 -101
- package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/index.d.ts +0 -1
- package/dist/billing/modules/plans/pages/index.js +8 -7
- package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts +0 -1
- package/dist/billing/modules/plans/utils/currencyPriceOverrides.js +1 -2
- package/dist/billing/modules/plans/utils/currencyPriceOverrides.js.map +1 -1
- package/dist/billing/modules/plans/utils/planSelector.d.ts +0 -1
- package/dist/billing/modules/plans/utils/planSelector.js +1 -2
- package/dist/billing/modules/plans/utils/planSelector.js.map +1 -1
- package/dist/billing/modules/promotions/index.d.ts +0 -1
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts +0 -1
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +5 -6
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts +0 -1
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js +5 -6
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/index.d.ts +0 -1
- package/dist/billing/modules/promotions/pages/index.js +3 -2
- package/dist/billing/modules/quota/hooks/index.d.ts +0 -1
- package/dist/billing/modules/quota/hooks/index.js +1 -1
- package/dist/billing/modules/quota/hooks/useQuota.d.ts +0 -1
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +0 -1
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.js +1 -2
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.js.map +1 -1
- package/dist/billing/modules/quota/index.d.ts +0 -1
- package/dist/billing/modules/quota/index.js +8 -8
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts +0 -1
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +12 -15
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts +0 -1
- package/dist/billing/modules/quota/pages/QuotaPage.js +3 -3
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +0 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +13 -14
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +0 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +9 -10
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +0 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +12 -13
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +0 -1
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +16 -17
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/index.d.ts +0 -1
- package/dist/billing/modules/quota/pages/index.js +6 -5
- package/dist/billing/modules/quota/utils/quotaSelector.d.ts +0 -1
- package/dist/billing/modules/quota/utils/quotaSelector.js +1 -2
- package/dist/billing/modules/quota/utils/quotaSelector.js.map +1 -1
- package/dist/billing/modules/settings/index.d.ts +0 -1
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts +0 -1
- package/dist/billing/modules/settings/pages/SettingsPage.js +12 -13
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +0 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +32 -32
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/index.d.ts +0 -1
- package/dist/billing/modules/settings/pages/index.js +3 -2
- package/dist/billing/modules/store/graphql/index.d.ts +0 -1
- package/dist/billing/modules/store/index.d.ts +0 -1
- package/dist/billing/modules/store/index.js +1 -2
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +0 -1
- package/dist/billing/modules/store/pages/StoreCheckoutPage.js +1 -2
- package/dist/billing/modules/store/pages/StoreCheckoutPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +0 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +9 -11
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -1
- package/dist/billing/modules/subscriptions/hooks/index.d.ts +0 -1
- package/dist/billing/modules/subscriptions/hooks/index.js +1 -1
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +0 -1
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js +1 -2
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js.map +1 -1
- package/dist/billing/modules/subscriptions/index.d.ts +0 -1
- package/dist/billing/modules/subscriptions/index.js +6 -6
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +0 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +311 -312
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +0 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +61 -62
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +0 -1
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +30 -31
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/index.d.ts +0 -1
- package/dist/billing/modules/subscriptions/pages/index.js +4 -3
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts +0 -1
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js +17 -18
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js.map +1 -1
- package/dist/billing/modules/usage/hooks/index.d.ts +0 -1
- package/dist/billing/modules/usage/hooks/useUsage.d.ts +0 -1
- package/dist/billing/modules/usage/hooks/useUsage.js +72 -73
- package/dist/billing/modules/usage/hooks/useUsage.js.map +1 -1
- package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts +0 -1
- package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.js +12 -13
- package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.js.map +1 -1
- package/dist/billing/modules/usage/index.d.ts +0 -1
- package/dist/billing/modules/usage/index.js +1 -2
- package/dist/billing/modules/usage/pages/UsagePage.d.ts +0 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +229 -227
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/modules/usage/pages/index.d.ts +0 -1
- package/dist/billing/modules/usage/pages/index.js +1 -1
- package/dist/billing/modules/usage/utils/aiSpend.d.ts +0 -1
- package/dist/billing/modules/usage/utils/aiSpend.js +2 -3
- package/dist/billing/modules/usage/utils/aiSpend.js.map +1 -1
- package/dist/billing/providers/BillingProvider.d.ts +0 -1
- package/dist/billing/providers/BillingProvider.js +3 -4
- package/dist/billing/providers/BillingProvider.js.map +1 -1
- package/dist/billing/shared/components/AccessDenied.d.ts +0 -1
- package/dist/billing/shared/components/AccessDenied.js +1 -2
- package/dist/billing/shared/components/AccessDenied.js.map +1 -1
- package/dist/billing/shared/components/ActorIdentity.d.ts +0 -1
- package/dist/billing/shared/components/ActorIdentity.js +2 -3
- package/dist/billing/shared/components/ActorIdentity.js.map +1 -1
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +0 -1
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js +1 -2
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js.map +1 -1
- package/dist/billing/shared/components/EmptyState.d.ts +0 -1
- package/dist/billing/shared/components/EmptyState.js +1 -2
- package/dist/billing/shared/components/EmptyState.js.map +1 -1
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +0 -1
- package/dist/billing/shared/components/PageHeader.d.ts +0 -1
- package/dist/billing/shared/components/PageHeader.js +1 -2
- package/dist/billing/shared/components/PageHeader.js.map +1 -1
- package/dist/billing/shared/components/PushPermissionNudge.d.ts +0 -1
- package/dist/billing/shared/components/PushPermissionNudge.js +2 -3
- package/dist/billing/shared/components/PushPermissionNudge.js.map +1 -1
- package/dist/billing/shared/components/ServerError.d.ts +0 -1
- package/dist/billing/shared/components/ServerError.js +1 -2
- package/dist/billing/shared/components/ServerError.js.map +1 -1
- package/dist/billing/shared/components/StatCard.d.ts +0 -1
- package/dist/billing/shared/components/StatCard.js +1 -2
- package/dist/billing/shared/components/StatCard.js.map +1 -1
- package/dist/billing/shared/components/index.d.ts +0 -1
- package/dist/billing/shared/components/index.js +8 -7
- package/dist/billing/shared/hooks/index.d.ts +0 -1
- package/dist/billing/shared/hooks/index.js +1 -1
- package/dist/billing/shared/hooks/useActorProfiles.d.ts +0 -1
- package/dist/billing/shared/hooks/useActorProfiles.js +4 -8
- package/dist/billing/shared/hooks/useActorProfiles.js.map +1 -1
- package/dist/billing/shared/hooks/useTr.d.ts +0 -1
- package/dist/billing/shared/hooks/useTr.js +1 -2
- package/dist/billing/shared/hooks/useTr.js.map +1 -1
- package/dist/billing/shared/index.d.ts +0 -1
- package/dist/billing/shared/types/graphql.d.ts +0 -1
- package/dist/billing/shared/types/graphql.js +1 -2
- package/dist/billing/shared/types/graphql.js.map +1 -1
- package/dist/billing/shared/types/index.d.ts +0 -1
- package/dist/billing/shared/ui/Card.d.ts +1 -2
- package/dist/billing/shared/ui/Card.js +1 -2
- package/dist/billing/shared/ui/Card.js.map +1 -1
- package/dist/billing/shared/ui/MetricCard.d.ts +1 -2
- package/dist/billing/shared/ui/MetricCard.js +1 -2
- package/dist/billing/shared/ui/MetricCard.js.map +1 -1
- package/dist/billing/shared/ui/ProgressBar.d.ts +1 -2
- package/dist/billing/shared/ui/ProgressBar.js +1 -2
- package/dist/billing/shared/ui/ProgressBar.js.map +1 -1
- package/dist/billing/shared/ui/SectionHeader.d.ts +1 -2
- package/dist/billing/shared/ui/StatusPill.d.ts +1 -2
- package/dist/billing/shared/ui/StatusPill.js +1 -2
- package/dist/billing/shared/ui/StatusPill.js.map +1 -1
- package/dist/billing/shared/ui/index.d.ts +0 -1
- package/dist/billing/shared/ui/index.js +5 -4
- package/dist/billing/shared/utils/directActivityGraphql.d.ts +0 -1
- package/dist/billing/shared/utils/directBillingGraphql.d.ts +0 -1
- package/dist/billing/shared/utils/directBillingGraphql.js +1 -2
- package/dist/billing/shared/utils/directBillingGraphql.js.map +1 -1
- package/dist/billing/shared/utils/error.d.ts +0 -1
- package/dist/billing/shared/utils/error.js +1 -2
- package/dist/billing/shared/utils/error.js.map +1 -1
- package/dist/billing/shared/utils/format.d.ts +0 -1
- package/dist/billing/shared/utils/format.js +1 -2
- package/dist/billing/shared/utils/format.js.map +1 -1
- package/dist/billing/shared/utils/gatewayGraphql.d.ts +0 -1
- package/dist/billing/shared/utils/gatewayGraphql.js +2 -3
- package/dist/billing/shared/utils/gatewayGraphql.js.map +1 -1
- package/dist/billing/shared/utils/index.d.ts +0 -1
- package/dist/billing/shared/utils/index.js +9 -8
- package/dist/billing/shared/utils/navigation.d.ts +0 -1
- package/dist/billing/shared/utils/navigation.js +1 -2
- package/dist/billing/shared/utils/navigation.js.map +1 -1
- package/dist/billing/shared/utils/paymentTheme.d.ts +0 -1
- package/dist/billing/shared/utils/paymentTheme.js +2 -3
- package/dist/billing/shared/utils/paymentTheme.js.map +1 -1
- package/dist/billing/shared/utils/planFeatureQuantity.d.ts +0 -1
- package/dist/billing/shared/utils/planFeatureQuantity.js +2 -3
- package/dist/billing/shared/utils/planFeatureQuantity.js.map +1 -1
- package/dist/billing/shared/utils/status.d.ts +0 -1
- package/dist/billing/shared/utils/status.js +24 -25
- package/dist/billing/shared/utils/status.js.map +1 -1
- package/dist/billing/shared/utils/tokens.d.ts +0 -1
- package/dist/billing/shared/utils/tokens.js +1 -2
- package/dist/billing/shared/utils/tokens.js.map +1 -1
- package/dist/billing/translations/en.d.ts +0 -1
- package/dist/billing/types/index.d.ts +0 -1
- package/dist/dev/main.d.ts +0 -1
- package/dist/generated/global-operations.d.ts +3252 -3206
- package/dist/generated/global-operations.js +445 -422
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +76 -47
- package/dist/generated/wspace-operations.js +2 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/node_modules/@capacitor/core/dist/index.js +12 -14
- package/dist/node_modules/@capacitor/core/dist/index.js.map +1 -1
- package/dist/node_modules/sonner/dist/index.js +75 -69
- package/dist/node_modules/sonner/dist/index.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +65 -54
- package/dist/billing/BillingAdminRoutes.d.ts.map +0 -1
- package/dist/billing/BillingRoot.d.ts.map +0 -1
- package/dist/billing/BillingUserRoutes.d.ts.map +0 -1
- package/dist/billing/hooks/useBillingAccountSelection.d.ts.map +0 -1
- package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +0 -1
- package/dist/billing/hooks/useBillingNavigate.d.ts.map +0 -1
- package/dist/billing/hooks/useBillingPermissions.d.ts.map +0 -1
- package/dist/billing/hooks/useDefaultBillingCurrency.d.ts.map +0 -1
- package/dist/billing/hooks/useProducts.d.ts.map +0 -1
- package/dist/billing/index.d.ts.map +0 -1
- package/dist/billing/lib/native-purchases.d.ts.map +0 -1
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +0 -1
- package/dist/billing/modules/addons/hooks/index.d.ts.map +0 -1
- package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts.map +0 -1
- package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +0 -1
- package/dist/billing/modules/addons/index.d.ts.map +0 -1
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +0 -1
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +0 -1
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +0 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +0 -1
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +0 -1
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +0 -1
- package/dist/billing/modules/addons/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +0 -1
- package/dist/billing/modules/affiliate/api.d.ts.map +0 -1
- package/dist/billing/modules/affiliate/index.d.ts.map +0 -1
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +0 -1
- package/dist/billing/modules/analytics/index.d.ts.map +0 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +0 -1
- package/dist/billing/modules/analytics/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/billing/hooks/index.d.ts.map +0 -1
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +0 -1
- package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts.map +0 -1
- package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +0 -1
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +0 -1
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +0 -1
- package/dist/billing/modules/billing/index.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts.map +0 -1
- package/dist/billing/modules/billing/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts.map +0 -1
- package/dist/billing/modules/checkout/components/index.d.ts.map +0 -1
- package/dist/billing/modules/checkout/hooks/index.d.ts.map +0 -1
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +0 -1
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +0 -1
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts.map +0 -1
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts.map +0 -1
- package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts.map +0 -1
- package/dist/billing/modules/checkout/index.d.ts.map +0 -1
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +0 -1
- package/dist/billing/modules/checkout/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/checkout/types/index.d.ts.map +0 -1
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +0 -1
- package/dist/billing/modules/coupons/index.d.ts.map +0 -1
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +0 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +0 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +0 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +0 -1
- package/dist/billing/modules/coupons/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/credits/hooks/index.d.ts.map +0 -1
- package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +0 -1
- package/dist/billing/modules/credits/index.d.ts.map +0 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +0 -1
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +0 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +0 -1
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +0 -1
- package/dist/billing/modules/credits/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/components/index.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/hooks/index.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/index.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +0 -1
- package/dist/billing/modules/dashboard/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/discounts/index.d.ts.map +0 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +0 -1
- package/dist/billing/modules/discounts/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/earnings/api.d.ts.map +0 -1
- package/dist/billing/modules/earnings/index.d.ts.map +0 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts.map +0 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts.map +0 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +0 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +0 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +0 -1
- package/dist/billing/modules/earnings/payoutAccountStatus.d.ts.map +0 -1
- package/dist/billing/modules/plans/constants/enterprise.d.ts.map +0 -1
- package/dist/billing/modules/plans/constants/featuredQuotas.d.ts.map +0 -1
- package/dist/billing/modules/plans/hooks/index.d.ts.map +0 -1
- package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +0 -1
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +0 -1
- package/dist/billing/modules/plans/index.d.ts.map +0 -1
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts.map +0 -1
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +0 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +0 -1
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +0 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +0 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +0 -1
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +0 -1
- package/dist/billing/modules/plans/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts.map +0 -1
- package/dist/billing/modules/plans/utils/planSelector.d.ts.map +0 -1
- package/dist/billing/modules/promotions/index.d.ts.map +0 -1
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts.map +0 -1
- package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts.map +0 -1
- package/dist/billing/modules/promotions/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/quota/hooks/index.d.ts.map +0 -1
- package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +0 -1
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +0 -1
- package/dist/billing/modules/quota/index.d.ts.map +0 -1
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts.map +0 -1
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +0 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +0 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +0 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +0 -1
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +0 -1
- package/dist/billing/modules/quota/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/quota/utils/quotaSelector.d.ts.map +0 -1
- package/dist/billing/modules/settings/index.d.ts.map +0 -1
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +0 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +0 -1
- package/dist/billing/modules/settings/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/store/graphql/index.d.ts.map +0 -1
- package/dist/billing/modules/store/index.d.ts.map +0 -1
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +0 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +0 -1
- package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +0 -1
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +0 -1
- package/dist/billing/modules/subscriptions/index.d.ts.map +0 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +0 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +0 -1
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +0 -1
- package/dist/billing/modules/subscriptions/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts.map +0 -1
- package/dist/billing/modules/usage/hooks/index.d.ts.map +0 -1
- package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +0 -1
- package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts.map +0 -1
- package/dist/billing/modules/usage/index.d.ts.map +0 -1
- package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +0 -1
- package/dist/billing/modules/usage/pages/index.d.ts.map +0 -1
- package/dist/billing/modules/usage/utils/aiSpend.d.ts.map +0 -1
- package/dist/billing/providers/BillingProvider.d.ts.map +0 -1
- package/dist/billing/shared/components/AccessDenied.d.ts.map +0 -1
- package/dist/billing/shared/components/ActorIdentity.d.ts.map +0 -1
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +0 -1
- package/dist/billing/shared/components/EmptyState.d.ts.map +0 -1
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +0 -1
- package/dist/billing/shared/components/PageHeader.d.ts.map +0 -1
- package/dist/billing/shared/components/PushPermissionNudge.d.ts.map +0 -1
- package/dist/billing/shared/components/ServerError.d.ts.map +0 -1
- package/dist/billing/shared/components/StatCard.d.ts.map +0 -1
- package/dist/billing/shared/components/index.d.ts.map +0 -1
- package/dist/billing/shared/hooks/index.d.ts.map +0 -1
- package/dist/billing/shared/hooks/useActorProfiles.d.ts.map +0 -1
- package/dist/billing/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/billing/shared/index.d.ts.map +0 -1
- package/dist/billing/shared/types/graphql.d.ts.map +0 -1
- package/dist/billing/shared/types/index.d.ts.map +0 -1
- package/dist/billing/shared/ui/Card.d.ts.map +0 -1
- package/dist/billing/shared/ui/MetricCard.d.ts.map +0 -1
- package/dist/billing/shared/ui/ProgressBar.d.ts.map +0 -1
- package/dist/billing/shared/ui/SectionHeader.d.ts.map +0 -1
- package/dist/billing/shared/ui/StatusPill.d.ts.map +0 -1
- package/dist/billing/shared/ui/index.d.ts.map +0 -1
- package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +0 -1
- package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +0 -1
- package/dist/billing/shared/utils/error.d.ts.map +0 -1
- package/dist/billing/shared/utils/format.d.ts.map +0 -1
- package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +0 -1
- package/dist/billing/shared/utils/index.d.ts.map +0 -1
- package/dist/billing/shared/utils/navigation.d.ts.map +0 -1
- package/dist/billing/shared/utils/paymentTheme.d.ts.map +0 -1
- package/dist/billing/shared/utils/planFeatureQuantity.d.ts.map +0 -1
- package/dist/billing/shared/utils/status.d.ts.map +0 -1
- package/dist/billing/shared/utils/tokens.d.ts.map +0 -1
- package/dist/billing/translations/en.d.ts.map +0 -1
- package/dist/billing/types/index.d.ts.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useBillingNavigate as e } from "../../../hooks/useBillingNavigate.js";
|
|
2
2
|
import { Card as t } from "../../../shared/ui/Card.js";
|
|
3
3
|
import { StatusPill as n } from "../../../shared/ui/StatusPill.js";
|
|
4
4
|
import { ProgressBar as r } from "../../../shared/ui/ProgressBar.js";
|
|
5
|
-
import "../../../shared/ui/index.js";
|
|
6
5
|
import { useBillingEventEmitter as i } from "../../../hooks/useBillingEventEmitter.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { formatBytes as s, formatCurrency as c, formatDate as l, formatPercentage as u, formatPlanDuration as d, formatSubscriptionStatus as ee } from "../../../shared/utils/format.js";
|
|
10
|
-
import { getQuotaProgressColor as f, getSubscriptionStatusColor as te } from "../../../shared/utils/status.js";
|
|
11
|
-
import { useBillingPermissions as ne } from "../../../hooks/useBillingPermissions.js";
|
|
12
|
-
import { useGetDefaultBillingAccountDashboardQuery as re, useGetPlanQuery as ie } from "../../../../generated/global-operations.js";
|
|
13
|
-
import { useBillingNavigate as ae } from "../../../hooks/useBillingNavigate.js";
|
|
14
|
-
import { withBillingAccountId as p } from "../../../shared/utils/navigation.js";
|
|
15
|
-
import { useMyWorkspaces as oe, useWorkspaceQuotaOverview as m } from "../../usage/hooks/useUsage.js";
|
|
16
|
-
import { WorkspaceQuotaAssignmentModal as se, isWorkspaceScopedQuota as h } from "../../checkout/components/WorkspaceQuotaAssignmentModal.js";
|
|
17
|
-
import { useSubscription as ce, useSubscriptionMutations as g } from "../hooks/useSubscriptions.js";
|
|
6
|
+
import { useBilling as a } from "../../../providers/BillingProvider.js";
|
|
7
|
+
import { useBillingAccountSelection as o } from "../../../hooks/useBillingAccountSelection.js";
|
|
18
8
|
import "../hooks/index.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
import { useBillingPermissions as s } from "../../../hooks/useBillingPermissions.js";
|
|
10
|
+
import { useGetDefaultBillingAccountDashboardQuery as c, useGetPlanQuery as ee } from "../../../../generated/global-operations.js";
|
|
11
|
+
import { useMyWorkspaces as te, useWorkspaceQuotaOverview as l } from "../../usage/hooks/useUsage.js";
|
|
12
|
+
import { formatBytes as u, formatCurrency as d, formatDate as f, formatPercentage as p, formatPlanDuration as m, formatSubscriptionStatus as ne } from "../../../shared/utils/format.js";
|
|
13
|
+
import { getQuotaProgressColor as h, getSubscriptionStatusColor as re } from "../../../shared/utils/status.js";
|
|
14
|
+
import "../../../shared/ui/index.js";
|
|
15
|
+
import { withBillingAccountId as g } from "../../../shared/utils/navigation.js";
|
|
16
|
+
import { PricingModel as _ } from "../../../shared/types/graphql.js";
|
|
17
|
+
import { useSubscription as ie, useSubscriptionMutations as ae } from "../hooks/useSubscriptions.js";
|
|
18
|
+
import { ManageSeatsModal as oe } from "../components/ManageSeatsModal.js";
|
|
19
|
+
import { WorkspaceQuotaAssignmentModal as se, isWorkspaceScopedQuota as v } from "../../checkout/components/WorkspaceQuotaAssignmentModal.js";
|
|
20
|
+
import { useState as y } from "react";
|
|
21
|
+
import { useParams as ce } from "react-router";
|
|
22
|
+
import { Fragment as le, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
23
|
+
import { useI18n as ue } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
24
|
+
import { CTAOverflowMenu as de, EmphasisPanel as fe, NextSteps as pe, PagePurpose as me } from "@burdenoff/fe-libs/ui";
|
|
25
|
+
// src/billing/modules/subscriptions/pages/SubscriptionDetailPage.tsx
|
|
26
|
+
function S(e, t) {
|
|
27
27
|
if (t?.displayName && typeof t.displayName == "string") return t.displayName;
|
|
28
28
|
if (t?.label && typeof t.label == "string") return t.label;
|
|
29
29
|
let n = e.split(".");
|
|
30
30
|
return (n.length > 1 ? n.slice(1) : n).map((e) => e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase())).join(" ");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function C(e) {
|
|
33
33
|
return e === "DAILY" ? "Resets daily" : e === "MONTHLY" ? "Resets monthly" : "";
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
let { t:
|
|
37
|
-
let n =
|
|
35
|
+
var w = () => {
|
|
36
|
+
let { t: u } = ue(), p = (e, t) => {
|
|
37
|
+
let n = u(e);
|
|
38
38
|
return n === e ? t : n;
|
|
39
|
-
}, { subscriptionId:
|
|
40
|
-
orgId:
|
|
39
|
+
}, { subscriptionId: h } = ce(), S = e(), { emit: C } = i(), { orgId: w } = a(), T = s(), { selectedAccountId: be } = o({
|
|
40
|
+
orgId: w,
|
|
41
41
|
syncFromUrl: !0,
|
|
42
42
|
urlParamName: "billingAccountId"
|
|
43
|
-
}), { data:
|
|
44
|
-
id:
|
|
43
|
+
}), { data: xe } = c({ fetchPolicy: "cache-first" }), E = be ?? xe?.getDefaultBillingAccount?.id ?? void 0, { subscription: D, isLoading: Se, error: O, refetch: k } = ie(h, E), { cancelSubscription: Ce, isCanceling: A, updateSubscriptionSeats: we, isUpdatingSeats: Te } = ae(), { workspaceId: j } = a(), { overview: Ee, refetch: De } = l(j ?? void 0), M = (D?.activatedWorkspaceIds ?? []).find((e) => e !== j), { overview: Oe } = l(M), { workspaces: N } = te(), P = N.length > 0 ? N : j ? [{
|
|
44
|
+
id: j,
|
|
45
45
|
name: "Current workspace"
|
|
46
|
-
}] : [], { data:
|
|
47
|
-
variables: { id:
|
|
48
|
-
skip: !
|
|
46
|
+
}] : [], { data: ke } = ee({
|
|
47
|
+
variables: { id: D?.plan?.id ?? "" },
|
|
48
|
+
skip: !D?.plan?.id,
|
|
49
49
|
fetchPolicy: "cache-first"
|
|
50
|
-
}), [
|
|
51
|
-
if (
|
|
52
|
-
|
|
50
|
+
}), [Ae, F] = y(!1), [je, I] = y(!1), [Me, L] = y(!1), [R, z] = y(""), [B, V] = y(null), Ne = async () => {
|
|
51
|
+
if (D) {
|
|
52
|
+
V(null);
|
|
53
53
|
try {
|
|
54
|
-
await
|
|
55
|
-
billingAccountId:
|
|
56
|
-
subscriptionId:
|
|
57
|
-
reason:
|
|
58
|
-
}),
|
|
54
|
+
await Ce({
|
|
55
|
+
billingAccountId: E ?? D.billingAccountId,
|
|
56
|
+
subscriptionId: D.id,
|
|
57
|
+
reason: R || "User requested cancellation"
|
|
58
|
+
}), C("billing.subscription.cancelled", {
|
|
59
59
|
route: "/billing/subscriptions",
|
|
60
|
-
entityId:
|
|
60
|
+
entityId: D.id,
|
|
61
61
|
source: "subscription-detail",
|
|
62
|
-
reason:
|
|
63
|
-
}),
|
|
62
|
+
reason: R || "User requested cancellation"
|
|
63
|
+
}), F(!1), z(""), await k();
|
|
64
64
|
} catch (e) {
|
|
65
|
-
|
|
65
|
+
V(e instanceof Error ? e.message : "Failed to cancel subscription");
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
if (!
|
|
69
|
+
if (!T.canViewSubscriptions) return /* @__PURE__ */ b("div", {
|
|
70
70
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
71
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ x("div", {
|
|
72
72
|
className: "text-center space-y-2",
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ b("div", {
|
|
75
75
|
className: "size-12 mx-auto rounded-full bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
76
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ b("svg", {
|
|
77
77
|
className: "size-6 text-text-secondary",
|
|
78
78
|
fill: "none",
|
|
79
79
|
viewBox: "0 0 24 24",
|
|
80
80
|
stroke: "currentColor",
|
|
81
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ b("path", {
|
|
82
82
|
strokeLinecap: "round",
|
|
83
83
|
strokeLinejoin: "round",
|
|
84
84
|
strokeWidth: 2,
|
|
@@ -86,46 +86,46 @@ var S = () => {
|
|
|
86
86
|
})
|
|
87
87
|
})
|
|
88
88
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ b("h2", {
|
|
90
90
|
className: "text-lg font-semibold text-text-primary",
|
|
91
91
|
children: "Access Denied"
|
|
92
92
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ b("p", {
|
|
94
94
|
className: "text-sm text-text-secondary max-w-sm",
|
|
95
95
|
children: "You don't have permission to view this subscription."
|
|
96
96
|
})
|
|
97
97
|
]
|
|
98
98
|
})
|
|
99
99
|
});
|
|
100
|
-
if (
|
|
100
|
+
if (Se) return /* @__PURE__ */ x("div", {
|
|
101
101
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
102
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ x("div", {
|
|
103
103
|
className: "flex items-center gap-4",
|
|
104
|
-
children: [/* @__PURE__ */
|
|
105
|
-
}), /* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ b("div", { className: "size-10 bg-bg-sunken animate-pulse rounded-button" }), /* @__PURE__ */ b("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" })]
|
|
105
|
+
}), /* @__PURE__ */ b("div", {
|
|
106
106
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
107
|
-
children: /* @__PURE__ */
|
|
107
|
+
children: /* @__PURE__ */ b("div", {
|
|
108
108
|
className: "lg:col-span-2 space-y-6",
|
|
109
|
-
children: /* @__PURE__ */
|
|
109
|
+
children: /* @__PURE__ */ x("div", {
|
|
110
110
|
className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 p-5 space-y-4",
|
|
111
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ b("div", { className: "h-6 w-32 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ b("div", { className: "h-4 w-full bg-bg-sunken animate-pulse rounded" })]
|
|
112
112
|
})
|
|
113
113
|
})
|
|
114
114
|
})]
|
|
115
115
|
});
|
|
116
|
-
if (
|
|
116
|
+
if (O || !D) return /* @__PURE__ */ b("div", {
|
|
117
117
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
118
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ x("div", {
|
|
119
119
|
className: "text-center space-y-4",
|
|
120
120
|
children: [
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ b("div", {
|
|
122
122
|
className: "size-12 mx-auto rounded-full bg-status-error-bg-subtle flex items-center justify-center",
|
|
123
|
-
children: /* @__PURE__ */
|
|
123
|
+
children: /* @__PURE__ */ b("svg", {
|
|
124
124
|
className: "size-6 text-status-error-text",
|
|
125
125
|
fill: "none",
|
|
126
126
|
viewBox: "0 0 24 24",
|
|
127
127
|
stroke: "currentColor",
|
|
128
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ b("path", {
|
|
129
129
|
strokeLinecap: "round",
|
|
130
130
|
strokeLinejoin: "round",
|
|
131
131
|
strokeWidth: 2,
|
|
@@ -133,297 +133,297 @@ var S = () => {
|
|
|
133
133
|
})
|
|
134
134
|
})
|
|
135
135
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ b("h2", {
|
|
137
137
|
className: "text-lg font-semibold text-text-primary",
|
|
138
|
-
children:
|
|
138
|
+
children: p("billing.subscriptions.notFound", "Subscription not found")
|
|
139
139
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ b("p", {
|
|
141
141
|
className: "text-sm text-text-secondary",
|
|
142
|
-
children:
|
|
142
|
+
children: O?.message || "The subscription you are looking for does not exist."
|
|
143
143
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ b("button", {
|
|
145
145
|
type: "button",
|
|
146
|
-
onClick: () =>
|
|
146
|
+
onClick: () => S(g("/subscriptions", E)),
|
|
147
147
|
className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
|
|
148
148
|
children: "Back to Subscriptions"
|
|
149
149
|
})
|
|
150
150
|
]
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
|
-
let
|
|
153
|
+
let H = D.plan, U = (D.quotas || []).filter((e) => !v(e.name)), W = D.addonSubscriptions || [], G = D.transactions || [], K = D.history || [], Pe = re(D.status), q = D.status === "active", J = [...Ee, ...Oe].filter((e) => e.assignment.subscriptionId === D.id && e.assignment.isActive), Y = j ? (D.activatedWorkspaceIds?.includes(j) ?? !1) || J.length > 0 : !1, X = D.activatedWorkspaceIds?.length ?? 0, Z = H?.maxWorkspaces ?? 1, Q = !Y && X >= Z, Fe = (ke?.getPlan?.features ?? []).filter((e) => e != null).filter((e) => e.quota?.name && v(e.quota.name)).map((e) => {
|
|
154
154
|
let t = e.quota?.limits, n = t && "type" in t ? String(t.type) : "number", r = e.context && "quantity" in e.context ? Number(e.context.quantity) : null, i = t && "value" in t ? Number(t.value) : null, a = r ?? i;
|
|
155
155
|
return {
|
|
156
156
|
quotaName: e.quota.name,
|
|
157
|
-
productId:
|
|
157
|
+
productId: H?.productID ?? "platform",
|
|
158
158
|
limit: n === "number" ? a : null,
|
|
159
159
|
noLimit: n !== "number",
|
|
160
160
|
resetPeriod: "NEVER",
|
|
161
161
|
quotaMode: e.quota?.quotaType === "POOLED" ? "pooled" : "dedicated"
|
|
162
162
|
};
|
|
163
|
-
}),
|
|
164
|
-
...
|
|
163
|
+
}), Ie = new Date(D.endDate), Le = new Date(D.startDate), Re = /* @__PURE__ */ new Date(), ze = Math.ceil((Ie.getTime() - Le.getTime()) / 864e5), $ = Math.max(0, Math.ceil((Ie.getTime() - Re.getTime()) / 864e5)), Be = Math.round((ze - $) / ze * 100), Ve = [
|
|
164
|
+
...q && T.canUpdateSubscription ? [{
|
|
165
165
|
id: "change-plan",
|
|
166
166
|
label: "Review or change your plan",
|
|
167
167
|
description: "Upgrade, downgrade, or compare what each tier includes.",
|
|
168
|
-
onClick: () =>
|
|
168
|
+
onClick: () => S(g(`/subscriptions/${D.id}/upgrade`, E ?? D.billingAccountId))
|
|
169
169
|
}] : [],
|
|
170
|
-
...
|
|
170
|
+
...q && j && !Y && !Q ? [{
|
|
171
171
|
id: "activate-workspace",
|
|
172
172
|
label: "Activate quotas for your workspace",
|
|
173
173
|
description: "Turn on the workspace-scoped limits included in this plan.",
|
|
174
|
-
onClick: () =>
|
|
174
|
+
onClick: () => L(!0)
|
|
175
175
|
}] : [],
|
|
176
176
|
{
|
|
177
177
|
id: "track-usage",
|
|
178
178
|
label: "Track your usage",
|
|
179
179
|
description: "See how much of your included quota you have consumed.",
|
|
180
|
-
onClick: () =>
|
|
180
|
+
onClick: () => S(g("/usage", E ?? D.billingAccountId))
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
id: "view-invoices",
|
|
184
184
|
label: "Review invoices & payments",
|
|
185
185
|
description: "Check what has been billed for this subscription.",
|
|
186
|
-
onClick: () =>
|
|
186
|
+
onClick: () => S(g("/invoices", E ?? D.billingAccountId))
|
|
187
187
|
}
|
|
188
188
|
];
|
|
189
|
-
return /* @__PURE__ */
|
|
189
|
+
return /* @__PURE__ */ x("div", {
|
|
190
190
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
191
191
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ x("div", {
|
|
193
193
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
194
|
-
children: [/* @__PURE__ */
|
|
194
|
+
children: [/* @__PURE__ */ x("div", {
|
|
195
195
|
className: "flex items-start gap-4",
|
|
196
|
-
children: [/* @__PURE__ */
|
|
196
|
+
children: [/* @__PURE__ */ b("button", {
|
|
197
197
|
type: "button",
|
|
198
198
|
"aria-label": "Back to subscriptions",
|
|
199
|
-
onClick: () =>
|
|
199
|
+
onClick: () => S(g("/subscriptions", E)),
|
|
200
200
|
className: "p-2 -ml-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-button transition-colors duration-200",
|
|
201
|
-
children: /* @__PURE__ */
|
|
201
|
+
children: /* @__PURE__ */ b("svg", {
|
|
202
202
|
className: "size-5",
|
|
203
203
|
fill: "none",
|
|
204
204
|
viewBox: "0 0 24 24",
|
|
205
205
|
stroke: "currentColor",
|
|
206
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ b("path", {
|
|
207
207
|
strokeLinecap: "round",
|
|
208
208
|
strokeLinejoin: "round",
|
|
209
209
|
strokeWidth: 2,
|
|
210
210
|
d: "M15 19l-7-7 7-7"
|
|
211
211
|
})
|
|
212
212
|
})
|
|
213
|
-
}), /* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */
|
|
213
|
+
}), /* @__PURE__ */ x("div", { children: [
|
|
214
|
+
/* @__PURE__ */ x("div", {
|
|
215
215
|
className: "flex items-center gap-3 flex-wrap",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ b("h1", {
|
|
217
217
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
218
|
-
children:
|
|
219
|
-
}), /* @__PURE__ */
|
|
220
|
-
status:
|
|
218
|
+
children: H?.name || "Subscription"
|
|
219
|
+
}), /* @__PURE__ */ b(n, {
|
|
220
|
+
status: Pe,
|
|
221
221
|
dot: !0,
|
|
222
|
-
pulse:
|
|
223
|
-
children:
|
|
222
|
+
pulse: q,
|
|
223
|
+
children: ne(D.status)
|
|
224
224
|
})]
|
|
225
225
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ b("p", {
|
|
227
227
|
className: "text-sm text-text-secondary mt-1",
|
|
228
|
-
children:
|
|
228
|
+
children: H?.pricingModel === _.PER_SEAT && H.pricePerSeat ? `${d(H.pricePerSeat, H.currency)} / seat / ${m(H.duration)} · ${D.seatCount ?? H.minSeats ?? 1} seats = ${d(H.pricePerSeat * (D.seatCount ?? H.minSeats ?? 1), H.currency)} / ${m(H.duration)}` : H ? `${d(H.price, H.currency)} / ${m(H.duration)}` : "Unknown plan"
|
|
229
229
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ b(me, {
|
|
231
231
|
className: "mt-3",
|
|
232
|
-
children:
|
|
232
|
+
children: p("billing.subscriptions.detailPurpose", "Everything about this subscription in one view — its billing period, the quotas and add-ons it includes, recent charges and its full status history. Use it to track what you are getting, activate workspace quotas, change your plan, or cancel.")
|
|
233
233
|
})
|
|
234
234
|
] })]
|
|
235
|
-
}), /* @__PURE__ */
|
|
235
|
+
}), /* @__PURE__ */ x("div", {
|
|
236
236
|
className: "flex items-center gap-2",
|
|
237
|
-
children: [/* @__PURE__ */
|
|
238
|
-
primary:
|
|
237
|
+
children: [/* @__PURE__ */ b(de, {
|
|
238
|
+
primary: q && T.canUpdateSubscription ? {
|
|
239
239
|
label: "Change Plan",
|
|
240
|
-
onSelect: () =>
|
|
240
|
+
onSelect: () => S(g(`/subscriptions/${D.id}/upgrade`, E ?? D.billingAccountId))
|
|
241
241
|
} : void 0,
|
|
242
|
-
actions: [...
|
|
242
|
+
actions: [...q && T.canUpdateSubscription && H?.pricingModel === _.PER_SEAT ? [{
|
|
243
243
|
label: "Manage Seats",
|
|
244
|
-
onSelect: () =>
|
|
245
|
-
}] : [], ...
|
|
246
|
-
label:
|
|
247
|
-
onSelect: () =>
|
|
248
|
-
disabled:
|
|
244
|
+
onSelect: () => I(!0)
|
|
245
|
+
}] : [], ...q && T.canCancelSubscription && !D.canceledAt ? [{
|
|
246
|
+
label: A ? "Canceling…" : "Cancel Subscription",
|
|
247
|
+
onSelect: () => F(!0),
|
|
248
|
+
disabled: A,
|
|
249
249
|
intent: "destructive"
|
|
250
250
|
}] : []]
|
|
251
|
-
}),
|
|
251
|
+
}), D.canceledAt && /* @__PURE__ */ b("span", {
|
|
252
252
|
className: "px-4 py-2 text-sm font-medium text-status-warning-text bg-status-warning-bg-subtle rounded-button",
|
|
253
253
|
children: "Cancellation Scheduled"
|
|
254
254
|
})]
|
|
255
255
|
})]
|
|
256
256
|
}),
|
|
257
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ x("div", {
|
|
258
258
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
259
|
-
children: [/* @__PURE__ */
|
|
259
|
+
children: [/* @__PURE__ */ x("div", {
|
|
260
260
|
className: "lg:col-span-2 space-y-6",
|
|
261
261
|
children: [
|
|
262
|
-
|
|
262
|
+
q && /* @__PURE__ */ x(fe, {
|
|
263
263
|
className: "p-5",
|
|
264
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ x("div", {
|
|
265
265
|
className: "flex items-center justify-between mb-4",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ b("h2", {
|
|
267
267
|
className: "text-base font-semibold text-text-primary",
|
|
268
268
|
children: "Current Period"
|
|
269
|
-
}), /* @__PURE__ */
|
|
269
|
+
}), /* @__PURE__ */ x("span", {
|
|
270
270
|
className: "text-sm text-text-secondary tabular-nums",
|
|
271
271
|
children: [$, " days remaining"]
|
|
272
272
|
})]
|
|
273
|
-
}), /* @__PURE__ */
|
|
273
|
+
}), /* @__PURE__ */ x("div", {
|
|
274
274
|
className: "space-y-2",
|
|
275
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ b(r, {
|
|
276
276
|
value: Be,
|
|
277
277
|
status: "primary",
|
|
278
278
|
size: "md",
|
|
279
279
|
"aria-label": "Billing period progress"
|
|
280
|
-
}), /* @__PURE__ */
|
|
280
|
+
}), /* @__PURE__ */ x("div", {
|
|
281
281
|
className: "flex items-center justify-between text-sm text-text-secondary",
|
|
282
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ b("span", { children: f(D.startDate, "short") }), /* @__PURE__ */ b("span", { children: f(D.endDate, "short") })]
|
|
283
283
|
})]
|
|
284
284
|
})]
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ x(t, {
|
|
287
287
|
className: "overflow-hidden",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ x("div", {
|
|
289
289
|
className: "p-5 border-b border-border-subtle",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
290
|
+
children: [/* @__PURE__ */ x("h2", {
|
|
291
291
|
className: "text-base font-semibold text-text-primary",
|
|
292
|
-
children: ["Plan Quotas",
|
|
292
|
+
children: ["Plan Quotas", U.length > 0 && /* @__PURE__ */ x("span", {
|
|
293
293
|
className: "ml-2 text-sm font-normal text-text-muted tabular-nums",
|
|
294
294
|
children: [
|
|
295
295
|
"(",
|
|
296
|
-
|
|
296
|
+
U.length,
|
|
297
297
|
")"
|
|
298
298
|
]
|
|
299
299
|
})]
|
|
300
|
-
}), /* @__PURE__ */
|
|
300
|
+
}), /* @__PURE__ */ b("p", {
|
|
301
301
|
className: "text-sm text-text-secondary mt-0.5",
|
|
302
302
|
children: "Limits included in your plan"
|
|
303
303
|
})]
|
|
304
|
-
}), /* @__PURE__ */
|
|
304
|
+
}), /* @__PURE__ */ b("div", {
|
|
305
305
|
className: "p-5",
|
|
306
|
-
children:
|
|
306
|
+
children: U.length === 0 ? /* @__PURE__ */ b("p", {
|
|
307
307
|
className: "text-sm text-text-secondary",
|
|
308
308
|
children: "No quotas assigned to this subscription."
|
|
309
|
-
}) : /* @__PURE__ */
|
|
309
|
+
}) : /* @__PURE__ */ b("div", {
|
|
310
310
|
className: "space-y-3",
|
|
311
|
-
children:
|
|
311
|
+
children: U.map((e) => /* @__PURE__ */ b(he, { quota: e }, e.id))
|
|
312
312
|
})
|
|
313
313
|
})]
|
|
314
314
|
}),
|
|
315
|
-
|
|
315
|
+
q && j && /* @__PURE__ */ x(t, {
|
|
316
316
|
className: "overflow-hidden",
|
|
317
317
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ x("div", {
|
|
319
319
|
className: "p-5 border-b border-border-subtle flex items-center justify-between gap-4",
|
|
320
|
-
children: [/* @__PURE__ */
|
|
320
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
|
|
321
321
|
className: "text-base font-semibold text-text-primary",
|
|
322
322
|
children: "Workspace Quotas"
|
|
323
|
-
}), /* @__PURE__ */
|
|
323
|
+
}), /* @__PURE__ */ b("p", {
|
|
324
324
|
className: "text-sm text-text-secondary mt-0.5",
|
|
325
325
|
children: "Active limits for your workspace"
|
|
326
|
-
})] }),
|
|
326
|
+
})] }), Y ? /* @__PURE__ */ b(n, {
|
|
327
327
|
status: "success",
|
|
328
328
|
dot: !0,
|
|
329
329
|
children: "Active"
|
|
330
|
-
}) :
|
|
330
|
+
}) : Q ? /* @__PURE__ */ b(n, {
|
|
331
331
|
status: "warning",
|
|
332
332
|
dot: !0,
|
|
333
333
|
children: "At workspace limit"
|
|
334
|
-
}) : /* @__PURE__ */
|
|
334
|
+
}) : /* @__PURE__ */ b("button", {
|
|
335
335
|
type: "button",
|
|
336
|
-
onClick: () =>
|
|
336
|
+
onClick: () => L(!0),
|
|
337
337
|
className: "px-3 py-1.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
|
|
338
338
|
children: "Activate for Workspace"
|
|
339
339
|
})]
|
|
340
340
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ b("div", {
|
|
342
342
|
className: "p-5",
|
|
343
|
-
children:
|
|
343
|
+
children: Y ? J.length > 0 ? /* @__PURE__ */ b("div", {
|
|
344
344
|
className: "space-y-3",
|
|
345
|
-
children:
|
|
346
|
-
}) : /* @__PURE__ */
|
|
345
|
+
children: J.map((e) => /* @__PURE__ */ b(ge, { item: e }, e.assignment.id))
|
|
346
|
+
}) : /* @__PURE__ */ x("p", {
|
|
347
347
|
className: "text-sm text-text-secondary",
|
|
348
348
|
children: [
|
|
349
349
|
"Quotas are activated on workspace",
|
|
350
350
|
" ",
|
|
351
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ b("span", {
|
|
352
352
|
className: "font-mono text-xs text-text-primary bg-bg-sunken/60 rounded px-1.5 py-0.5",
|
|
353
|
-
children:
|
|
353
|
+
children: j
|
|
354
354
|
}),
|
|
355
355
|
". Usage data will appear here once quotas are consumed."
|
|
356
356
|
]
|
|
357
|
-
}) :
|
|
357
|
+
}) : Q ? /* @__PURE__ */ x("div", {
|
|
358
358
|
className: "flex items-start gap-3",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
359
|
+
children: [/* @__PURE__ */ b("div", {
|
|
360
360
|
className: "size-8 rounded-full bg-status-warning-bg-subtle flex items-center justify-center shrink-0 mt-0.5",
|
|
361
|
-
children: /* @__PURE__ */
|
|
361
|
+
children: /* @__PURE__ */ b("svg", {
|
|
362
362
|
className: "size-4 text-status-warning-text",
|
|
363
363
|
fill: "none",
|
|
364
364
|
viewBox: "0 0 24 24",
|
|
365
365
|
stroke: "currentColor",
|
|
366
|
-
children: /* @__PURE__ */
|
|
366
|
+
children: /* @__PURE__ */ b("path", {
|
|
367
367
|
strokeLinecap: "round",
|
|
368
368
|
strokeLinejoin: "round",
|
|
369
369
|
strokeWidth: 2,
|
|
370
370
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
371
371
|
})
|
|
372
372
|
})
|
|
373
|
-
}), /* @__PURE__ */
|
|
373
|
+
}), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
374
374
|
className: "text-sm font-medium text-text-primary",
|
|
375
375
|
children: "Already active on another workspace"
|
|
376
|
-
}), /* @__PURE__ */
|
|
376
|
+
}), /* @__PURE__ */ x("p", {
|
|
377
377
|
className: "text-sm text-text-secondary mt-0.5",
|
|
378
378
|
children: [
|
|
379
|
-
|
|
379
|
+
H?.name ?? "This plan",
|
|
380
380
|
" can be activated for",
|
|
381
381
|
" ",
|
|
382
|
-
|
|
382
|
+
Z === 1 ? "only 1 workspace" : `at most ${Z} workspaces`,
|
|
383
383
|
", and",
|
|
384
384
|
" ",
|
|
385
|
-
|
|
385
|
+
X === 1 ? "it" : `${X} of them`,
|
|
386
386
|
" ",
|
|
387
|
-
|
|
387
|
+
M && /* @__PURE__ */ x(le, { children: [
|
|
388
388
|
"(",
|
|
389
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ b("span", {
|
|
390
390
|
className: "font-mono text-xs bg-bg-sunken/60 rounded px-1.5 py-0.5",
|
|
391
|
-
children:
|
|
391
|
+
children: P.find((e) => e.id === M)?.name ?? M
|
|
392
392
|
}),
|
|
393
393
|
")",
|
|
394
394
|
" "
|
|
395
395
|
] }),
|
|
396
|
-
|
|
396
|
+
X === 1 ? "is" : "are",
|
|
397
397
|
" already using it. Switch to that workspace to see its quotas, or remove it there to free up the slot for this one."
|
|
398
398
|
]
|
|
399
399
|
})] })]
|
|
400
|
-
}) : /* @__PURE__ */
|
|
400
|
+
}) : /* @__PURE__ */ x("div", {
|
|
401
401
|
className: "flex items-start gap-3",
|
|
402
|
-
children: [/* @__PURE__ */
|
|
402
|
+
children: [/* @__PURE__ */ b("div", {
|
|
403
403
|
className: "size-8 rounded-full bg-status-warning-bg-subtle flex items-center justify-center shrink-0 mt-0.5",
|
|
404
|
-
children: /* @__PURE__ */
|
|
404
|
+
children: /* @__PURE__ */ b("svg", {
|
|
405
405
|
className: "size-4 text-status-warning-text",
|
|
406
406
|
fill: "none",
|
|
407
407
|
viewBox: "0 0 24 24",
|
|
408
408
|
stroke: "currentColor",
|
|
409
|
-
children: /* @__PURE__ */
|
|
409
|
+
children: /* @__PURE__ */ b("path", {
|
|
410
410
|
strokeLinecap: "round",
|
|
411
411
|
strokeLinejoin: "round",
|
|
412
412
|
strokeWidth: 2,
|
|
413
413
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
414
414
|
})
|
|
415
415
|
})
|
|
416
|
-
}), /* @__PURE__ */
|
|
416
|
+
}), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
417
417
|
className: "text-sm font-medium text-text-primary",
|
|
418
418
|
children: "Workspace quotas not activated yet"
|
|
419
|
-
}), /* @__PURE__ */
|
|
419
|
+
}), /* @__PURE__ */ x("p", {
|
|
420
420
|
className: "text-sm text-text-secondary mt-0.5",
|
|
421
421
|
children: [
|
|
422
422
|
"Click",
|
|
423
423
|
" ",
|
|
424
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ b("button", {
|
|
425
425
|
type: "button",
|
|
426
|
-
onClick: () =>
|
|
426
|
+
onClick: () => L(!0),
|
|
427
427
|
className: "text-text-link hover:underline font-medium",
|
|
428
428
|
children: "Activate for Workspace"
|
|
429
429
|
}),
|
|
@@ -433,63 +433,63 @@ var S = () => {
|
|
|
433
433
|
})] })]
|
|
434
434
|
})
|
|
435
435
|
}),
|
|
436
|
-
|
|
437
|
-
billingAccountId:
|
|
438
|
-
subscriptionId:
|
|
439
|
-
quotas:
|
|
440
|
-
workspaces:
|
|
441
|
-
currentWorkspaceId:
|
|
436
|
+
Me && /* @__PURE__ */ b(se, {
|
|
437
|
+
billingAccountId: E ?? D.billingAccountId,
|
|
438
|
+
subscriptionId: D.id,
|
|
439
|
+
quotas: Fe,
|
|
440
|
+
workspaces: P,
|
|
441
|
+
currentWorkspaceId: j,
|
|
442
442
|
onAssigned: () => {
|
|
443
|
-
|
|
443
|
+
L(!1), k(), De();
|
|
444
444
|
},
|
|
445
|
-
onSkip: () =>
|
|
445
|
+
onSkip: () => L(!1)
|
|
446
446
|
})
|
|
447
447
|
]
|
|
448
448
|
}),
|
|
449
|
-
|
|
449
|
+
W.length > 0 && /* @__PURE__ */ x(t, {
|
|
450
450
|
className: "overflow-hidden",
|
|
451
|
-
children: [/* @__PURE__ */
|
|
451
|
+
children: [/* @__PURE__ */ b("div", {
|
|
452
452
|
className: "p-5 border-b border-border-subtle",
|
|
453
|
-
children: /* @__PURE__ */
|
|
453
|
+
children: /* @__PURE__ */ x("h2", {
|
|
454
454
|
className: "text-base font-semibold text-text-primary",
|
|
455
455
|
children: [
|
|
456
456
|
"Addons",
|
|
457
457
|
" ",
|
|
458
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ x("span", {
|
|
459
459
|
className: "text-sm font-normal text-text-muted tabular-nums",
|
|
460
460
|
children: [
|
|
461
461
|
"(",
|
|
462
|
-
|
|
462
|
+
W.length,
|
|
463
463
|
")"
|
|
464
464
|
]
|
|
465
465
|
})
|
|
466
466
|
]
|
|
467
467
|
})
|
|
468
|
-
}), /* @__PURE__ */
|
|
468
|
+
}), /* @__PURE__ */ b("div", {
|
|
469
469
|
className: "p-5",
|
|
470
|
-
children: /* @__PURE__ */
|
|
470
|
+
children: /* @__PURE__ */ b("div", {
|
|
471
471
|
className: "space-y-3",
|
|
472
|
-
children:
|
|
472
|
+
children: W.map((e) => /* @__PURE__ */ b(_e, { addonSubscription: e }, e.id))
|
|
473
473
|
})
|
|
474
474
|
})]
|
|
475
475
|
}),
|
|
476
|
-
|
|
476
|
+
G.length > 0 && /* @__PURE__ */ x(t, {
|
|
477
477
|
className: "overflow-hidden",
|
|
478
478
|
children: [
|
|
479
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ b("div", {
|
|
480
480
|
className: "p-5 border-b border-border-subtle",
|
|
481
|
-
children: /* @__PURE__ */
|
|
481
|
+
children: /* @__PURE__ */ b("h2", {
|
|
482
482
|
className: "text-base font-semibold text-text-primary",
|
|
483
483
|
children: "Recent Transactions"
|
|
484
484
|
})
|
|
485
485
|
}),
|
|
486
|
-
/* @__PURE__ */
|
|
486
|
+
/* @__PURE__ */ b("div", {
|
|
487
487
|
className: "divide-y divide-border-subtle",
|
|
488
|
-
children:
|
|
488
|
+
children: G.slice(0, 5).map((e) => /* @__PURE__ */ b(ve, { transaction: e }, e.id))
|
|
489
489
|
}),
|
|
490
|
-
|
|
490
|
+
G.length > 5 && /* @__PURE__ */ b("div", {
|
|
491
491
|
className: "p-4 text-center border-t border-border-subtle",
|
|
492
|
-
children: /* @__PURE__ */
|
|
492
|
+
children: /* @__PURE__ */ b("button", {
|
|
493
493
|
type: "button",
|
|
494
494
|
className: "text-sm text-text-link hover:underline",
|
|
495
495
|
children: "View all transactions"
|
|
@@ -498,176 +498,176 @@ var S = () => {
|
|
|
498
498
|
]
|
|
499
499
|
})
|
|
500
500
|
]
|
|
501
|
-
}), /* @__PURE__ */
|
|
501
|
+
}), /* @__PURE__ */ x("div", {
|
|
502
502
|
className: "space-y-6 lg:sticky lg:top-6 lg:self-start",
|
|
503
503
|
children: [
|
|
504
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ b(pe, {
|
|
505
505
|
storageKey: "billing-subscription-detail",
|
|
506
506
|
steps: Ve
|
|
507
507
|
}),
|
|
508
|
-
/* @__PURE__ */
|
|
508
|
+
/* @__PURE__ */ x(t, {
|
|
509
509
|
className: "overflow-hidden",
|
|
510
|
-
children: [/* @__PURE__ */
|
|
510
|
+
children: [/* @__PURE__ */ b("div", {
|
|
511
511
|
className: "p-5 border-b border-border-subtle",
|
|
512
|
-
children: /* @__PURE__ */
|
|
512
|
+
children: /* @__PURE__ */ b("h2", {
|
|
513
513
|
className: "text-base font-semibold text-text-primary",
|
|
514
514
|
children: "Details"
|
|
515
515
|
})
|
|
516
|
-
}), /* @__PURE__ */
|
|
516
|
+
}), /* @__PURE__ */ x("div", {
|
|
517
517
|
className: "p-5 space-y-4",
|
|
518
518
|
children: [
|
|
519
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
520
520
|
className: "text-sm text-text-secondary",
|
|
521
521
|
children: "Subscription ID"
|
|
522
|
-
}), /* @__PURE__ */
|
|
522
|
+
}), /* @__PURE__ */ b("p", {
|
|
523
523
|
className: "font-mono text-sm text-text-primary mt-0.5 break-all",
|
|
524
|
-
children:
|
|
524
|
+
children: D.id
|
|
525
525
|
})] }),
|
|
526
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
527
527
|
className: "text-sm text-text-secondary",
|
|
528
528
|
children: "Plan"
|
|
529
|
-
}), /* @__PURE__ */
|
|
529
|
+
}), /* @__PURE__ */ b("p", {
|
|
530
530
|
className: "text-sm text-text-primary mt-0.5",
|
|
531
|
-
children:
|
|
531
|
+
children: H?.name || "Unknown"
|
|
532
532
|
})] }),
|
|
533
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
534
534
|
className: "text-sm text-text-secondary",
|
|
535
535
|
children: "Billing Account"
|
|
536
|
-
}), /* @__PURE__ */
|
|
536
|
+
}), /* @__PURE__ */ b("p", {
|
|
537
537
|
className: "text-sm text-text-primary mt-0.5",
|
|
538
|
-
children:
|
|
538
|
+
children: D.billingAccount?.name || "Unknown"
|
|
539
539
|
})] }),
|
|
540
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
541
541
|
className: "text-sm text-text-secondary",
|
|
542
542
|
children: "Start Date"
|
|
543
|
-
}), /* @__PURE__ */
|
|
543
|
+
}), /* @__PURE__ */ b("p", {
|
|
544
544
|
className: "text-sm text-text-primary mt-0.5",
|
|
545
|
-
children:
|
|
545
|
+
children: f(D.startDate)
|
|
546
546
|
})] }),
|
|
547
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
548
548
|
className: "text-sm text-text-secondary",
|
|
549
549
|
children: "End Date"
|
|
550
|
-
}), /* @__PURE__ */
|
|
550
|
+
}), /* @__PURE__ */ b("p", {
|
|
551
551
|
className: "text-sm text-text-primary mt-0.5",
|
|
552
|
-
children:
|
|
552
|
+
children: f(D.endDate)
|
|
553
553
|
})] }),
|
|
554
|
-
|
|
554
|
+
D.nextBillingDate && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
555
555
|
className: "text-sm text-text-secondary",
|
|
556
556
|
children: "Next Billing"
|
|
557
|
-
}), /* @__PURE__ */
|
|
557
|
+
}), /* @__PURE__ */ b("p", {
|
|
558
558
|
className: "text-sm text-text-primary mt-0.5",
|
|
559
|
-
children:
|
|
559
|
+
children: f(D.nextBillingDate)
|
|
560
560
|
})] }),
|
|
561
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
562
562
|
className: "text-sm text-text-secondary",
|
|
563
563
|
children: "Auto Renewal"
|
|
564
|
-
}), /* @__PURE__ */
|
|
564
|
+
}), /* @__PURE__ */ b("p", {
|
|
565
565
|
className: "text-sm text-text-primary mt-0.5",
|
|
566
|
-
children:
|
|
566
|
+
children: D.autoRenewal ? "Enabled" : "Disabled"
|
|
567
567
|
})] }),
|
|
568
|
-
|
|
568
|
+
D.paymentGateway && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
569
569
|
className: "text-sm text-text-secondary",
|
|
570
570
|
children: "Payment Gateway"
|
|
571
|
-
}), /* @__PURE__ */
|
|
571
|
+
}), /* @__PURE__ */ b("p", {
|
|
572
572
|
className: "text-sm text-text-primary mt-0.5 capitalize",
|
|
573
|
-
children:
|
|
573
|
+
children: D.paymentGateway
|
|
574
574
|
})] })
|
|
575
575
|
]
|
|
576
576
|
})]
|
|
577
577
|
}),
|
|
578
|
-
|
|
578
|
+
K.length > 0 && /* @__PURE__ */ x(t, {
|
|
579
579
|
className: "overflow-hidden",
|
|
580
|
-
children: [/* @__PURE__ */
|
|
580
|
+
children: [/* @__PURE__ */ b("div", {
|
|
581
581
|
className: "p-5 border-b border-border-subtle",
|
|
582
|
-
children: /* @__PURE__ */
|
|
582
|
+
children: /* @__PURE__ */ b("h2", {
|
|
583
583
|
className: "text-base font-semibold text-text-primary",
|
|
584
584
|
children: "History"
|
|
585
585
|
})
|
|
586
|
-
}), /* @__PURE__ */
|
|
586
|
+
}), /* @__PURE__ */ b("div", {
|
|
587
587
|
className: "p-5",
|
|
588
|
-
children: /* @__PURE__ */
|
|
588
|
+
children: /* @__PURE__ */ b("div", {
|
|
589
589
|
className: "space-y-3",
|
|
590
|
-
children:
|
|
590
|
+
children: K.slice(0, 5).map((e) => /* @__PURE__ */ b(ye, { item: e }, e.id))
|
|
591
591
|
})
|
|
592
592
|
})]
|
|
593
593
|
})
|
|
594
594
|
]
|
|
595
595
|
})]
|
|
596
596
|
}),
|
|
597
|
-
|
|
598
|
-
subscription:
|
|
599
|
-
onClose: () =>
|
|
597
|
+
je && D && /* @__PURE__ */ b(oe, {
|
|
598
|
+
subscription: D,
|
|
599
|
+
onClose: () => I(!1),
|
|
600
600
|
onConfirm: async (e) => {
|
|
601
|
-
await
|
|
602
|
-
subscriptionId:
|
|
601
|
+
await we({
|
|
602
|
+
subscriptionId: D.id,
|
|
603
603
|
seatCount: e
|
|
604
|
-
}), await
|
|
604
|
+
}), await k();
|
|
605
605
|
},
|
|
606
|
-
isLoading:
|
|
606
|
+
isLoading: Te
|
|
607
607
|
}),
|
|
608
|
-
|
|
608
|
+
Ae && /* @__PURE__ */ x("div", {
|
|
609
609
|
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
610
|
-
children: [/* @__PURE__ */
|
|
610
|
+
children: [/* @__PURE__ */ b("div", {
|
|
611
611
|
className: "absolute inset-0 bg-overlay-scrim",
|
|
612
|
-
onClick: () =>
|
|
613
|
-
}), /* @__PURE__ */
|
|
612
|
+
onClick: () => F(!1)
|
|
613
|
+
}), /* @__PURE__ */ x("div", {
|
|
614
614
|
className: "relative bg-bg-elevated border border-border-seam rounded-card shadow-[var(--shadow-elevation-4)] w-full max-w-md mx-4 p-6",
|
|
615
615
|
role: "dialog",
|
|
616
616
|
"aria-modal": "true",
|
|
617
617
|
"aria-labelledby": "cancel-subscription-title",
|
|
618
618
|
children: [
|
|
619
|
-
/* @__PURE__ */
|
|
619
|
+
/* @__PURE__ */ b("h3", {
|
|
620
620
|
id: "cancel-subscription-title",
|
|
621
621
|
className: "text-lg font-semibold text-text-primary mb-2",
|
|
622
622
|
children: "Cancel Subscription"
|
|
623
623
|
}),
|
|
624
|
-
/* @__PURE__ */
|
|
624
|
+
/* @__PURE__ */ x("p", {
|
|
625
625
|
className: "text-sm text-text-secondary mb-4",
|
|
626
626
|
children: [
|
|
627
627
|
"Are you sure you want to cancel this subscription? Your subscription will remain active until",
|
|
628
628
|
" ",
|
|
629
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ b("span", {
|
|
630
630
|
className: "font-medium text-text-primary",
|
|
631
|
-
children:
|
|
631
|
+
children: f(D.endDate)
|
|
632
632
|
}),
|
|
633
633
|
", but will not renew automatically."
|
|
634
634
|
]
|
|
635
635
|
}),
|
|
636
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ x("div", {
|
|
637
637
|
className: "mb-4",
|
|
638
|
-
children: [/* @__PURE__ */
|
|
638
|
+
children: [/* @__PURE__ */ b("label", {
|
|
639
639
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
640
640
|
children: "Reason for cancellation (optional)"
|
|
641
|
-
}), /* @__PURE__ */
|
|
642
|
-
value:
|
|
643
|
-
onChange: (e) =>
|
|
641
|
+
}), /* @__PURE__ */ b("textarea", {
|
|
642
|
+
value: R,
|
|
643
|
+
onChange: (e) => z(e.target.value),
|
|
644
644
|
placeholder: "Please share why you're canceling...",
|
|
645
645
|
className: "w-full px-3 py-2 text-sm border border-border-subtle rounded-input bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-transparent resize-none",
|
|
646
646
|
rows: 3
|
|
647
647
|
})]
|
|
648
648
|
}),
|
|
649
|
-
|
|
649
|
+
B && /* @__PURE__ */ b("div", {
|
|
650
650
|
className: "mb-4 p-3 bg-status-error-bg-subtle border border-status-error-border rounded-card",
|
|
651
|
-
children: /* @__PURE__ */
|
|
651
|
+
children: /* @__PURE__ */ b("p", {
|
|
652
652
|
className: "text-sm text-status-error-text",
|
|
653
|
-
children:
|
|
653
|
+
children: B
|
|
654
654
|
})
|
|
655
655
|
}),
|
|
656
|
-
/* @__PURE__ */
|
|
656
|
+
/* @__PURE__ */ x("div", {
|
|
657
657
|
className: "flex items-center justify-end gap-3",
|
|
658
|
-
children: [/* @__PURE__ */
|
|
658
|
+
children: [/* @__PURE__ */ b("button", {
|
|
659
659
|
type: "button",
|
|
660
660
|
onClick: () => {
|
|
661
|
-
|
|
661
|
+
F(!1), z(""), V(null);
|
|
662
662
|
},
|
|
663
663
|
className: "px-4 py-2 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
664
664
|
children: "Keep Subscription"
|
|
665
|
-
}), /* @__PURE__ */
|
|
665
|
+
}), /* @__PURE__ */ b("button", {
|
|
666
666
|
type: "button",
|
|
667
|
-
onClick:
|
|
668
|
-
disabled:
|
|
667
|
+
onClick: Ne,
|
|
668
|
+
disabled: A,
|
|
669
669
|
className: "px-4 py-2 text-sm font-medium bg-action-danger-bg text-action-danger-text rounded-button hover:bg-action-danger-bgHover transition-colors duration-200 disabled:opacity-50",
|
|
670
|
-
children:
|
|
670
|
+
children: A ? "Canceling..." : "Confirm Cancellation"
|
|
671
671
|
})]
|
|
672
672
|
})
|
|
673
673
|
]
|
|
@@ -675,155 +675,154 @@ var S = () => {
|
|
|
675
675
|
})
|
|
676
676
|
]
|
|
677
677
|
});
|
|
678
|
-
},
|
|
679
|
-
let t = e.context, n =
|
|
680
|
-
return /* @__PURE__ */
|
|
678
|
+
}, he = ({ quota: e }) => {
|
|
679
|
+
let t = e.context, n = S(e.name, t), r = t?.description && typeof t.description == "string" ? t.description : null, i = e.limits?.value ?? 0, a = e.currentUsageSum ?? 0, o = i > 0 ? Math.min(100, a / i * 100) : 0, s = e.name.includes("bytes") || e.name.includes("storage"), c = e.quotaType === "POOLED";
|
|
680
|
+
return /* @__PURE__ */ x("div", {
|
|
681
681
|
className: "p-4 rounded-card border border-border-seam bg-bg-surface",
|
|
682
682
|
children: [
|
|
683
|
-
/* @__PURE__ */
|
|
683
|
+
/* @__PURE__ */ x("div", {
|
|
684
684
|
className: "flex items-start justify-between gap-4 mb-2",
|
|
685
|
-
children: [/* @__PURE__ */
|
|
685
|
+
children: [/* @__PURE__ */ x("div", {
|
|
686
686
|
className: "min-w-0",
|
|
687
|
-
children: [/* @__PURE__ */
|
|
687
|
+
children: [/* @__PURE__ */ b("p", {
|
|
688
688
|
className: "font-medium text-text-primary truncate",
|
|
689
689
|
children: n
|
|
690
|
-
}), r && /* @__PURE__ */
|
|
690
|
+
}), r && /* @__PURE__ */ b("p", {
|
|
691
691
|
className: "text-xs text-text-secondary mt-0.5 line-clamp-2",
|
|
692
692
|
children: r
|
|
693
693
|
})]
|
|
694
|
-
}), /* @__PURE__ */
|
|
694
|
+
}), /* @__PURE__ */ x("span", {
|
|
695
695
|
className: "text-sm font-medium text-text-primary shrink-0 tabular-nums",
|
|
696
696
|
children: [
|
|
697
|
-
|
|
697
|
+
s ? u(a) : a.toLocaleString(),
|
|
698
698
|
" / ",
|
|
699
|
-
i > 0 ?
|
|
699
|
+
i > 0 ? s ? u(i) : i.toLocaleString() : "∞"
|
|
700
700
|
]
|
|
701
701
|
})]
|
|
702
702
|
}),
|
|
703
|
-
i > 0 && /* @__PURE__ */
|
|
703
|
+
i > 0 && /* @__PURE__ */ b("div", {
|
|
704
704
|
className: "h-1.5 rounded-full bg-bg-sunken overflow-hidden mb-2",
|
|
705
|
-
children: /* @__PURE__ */
|
|
706
|
-
className: `h-full rounded-full transition-all duration-300 ${
|
|
705
|
+
children: /* @__PURE__ */ b("div", {
|
|
706
|
+
className: `h-full rounded-full transition-all duration-300 ${h(o)}`,
|
|
707
707
|
style: { width: `${o}%` }
|
|
708
708
|
})
|
|
709
709
|
}),
|
|
710
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ x("div", {
|
|
711
711
|
className: "flex items-center justify-between text-xs text-text-secondary",
|
|
712
|
-
children: [/* @__PURE__ */
|
|
712
|
+
children: [/* @__PURE__ */ b("span", {
|
|
713
713
|
className: "px-1.5 py-0.5 rounded bg-bg-sunken font-medium",
|
|
714
|
-
children:
|
|
715
|
-
}), /* @__PURE__ */
|
|
714
|
+
children: c ? "Shared" : "Per Workspace"
|
|
715
|
+
}), /* @__PURE__ */ x("div", {
|
|
716
716
|
className: "flex items-center gap-3",
|
|
717
|
-
children: [e.endtime && /* @__PURE__ */
|
|
717
|
+
children: [e.endtime && /* @__PURE__ */ x("span", { children: ["Expires ", f(e.endtime, "short")] }), i > 0 && /* @__PURE__ */ x("span", {
|
|
718
718
|
className: o >= 90 ? "text-status-error-text font-medium" : o >= 70 ? "text-status-warning-text font-medium" : "",
|
|
719
|
-
children: [
|
|
719
|
+
children: [p(o), " used"]
|
|
720
720
|
})]
|
|
721
721
|
})]
|
|
722
722
|
})
|
|
723
723
|
]
|
|
724
724
|
});
|
|
725
|
-
},
|
|
726
|
-
let { assignment: t, effectiveUsed: n, usagePercentage: r } = e, i =
|
|
727
|
-
return /* @__PURE__ */
|
|
725
|
+
}, ge = ({ item: e }) => {
|
|
726
|
+
let { assignment: t, effectiveUsed: n, usagePercentage: r } = e, i = S(t.quotaName), a = !t.noLimit && t.limit !== null, o = t.limit ?? 0, s = t.quotaName.includes("bytes") || t.quotaName.includes("storage"), c = C(t.resetPeriod);
|
|
727
|
+
return /* @__PURE__ */ x("div", {
|
|
728
728
|
className: "p-4 rounded-card border border-border-seam bg-bg-surface",
|
|
729
729
|
children: [
|
|
730
|
-
/* @__PURE__ */
|
|
730
|
+
/* @__PURE__ */ x("div", {
|
|
731
731
|
className: "flex items-start justify-between gap-4 mb-2",
|
|
732
|
-
children: [/* @__PURE__ */
|
|
732
|
+
children: [/* @__PURE__ */ x("div", {
|
|
733
733
|
className: "min-w-0",
|
|
734
|
-
children: [/* @__PURE__ */
|
|
734
|
+
children: [/* @__PURE__ */ b("p", {
|
|
735
735
|
className: "font-medium text-text-primary truncate",
|
|
736
736
|
children: i
|
|
737
|
-
}), /* @__PURE__ */
|
|
737
|
+
}), /* @__PURE__ */ x("p", {
|
|
738
738
|
className: "text-xs text-text-secondary mt-0.5",
|
|
739
|
-
children: [t.quotaMode === "pooled" ? "Pooled across workspaces" : "Dedicated",
|
|
739
|
+
children: [t.quotaMode === "pooled" ? "Pooled across workspaces" : "Dedicated", c && ` · ${c}`]
|
|
740
740
|
})]
|
|
741
|
-
}), /* @__PURE__ */
|
|
741
|
+
}), /* @__PURE__ */ x("span", {
|
|
742
742
|
className: "text-sm font-medium text-text-primary shrink-0 tabular-nums",
|
|
743
743
|
children: [
|
|
744
|
-
|
|
744
|
+
s ? u(n) : n.toLocaleString(),
|
|
745
745
|
" / ",
|
|
746
|
-
t.noLimit ? "∞" : a ?
|
|
746
|
+
t.noLimit ? "∞" : a ? s ? u(o) : o.toLocaleString() : "∞"
|
|
747
747
|
]
|
|
748
748
|
})]
|
|
749
749
|
}),
|
|
750
|
-
a && /* @__PURE__ */
|
|
750
|
+
a && /* @__PURE__ */ b("div", {
|
|
751
751
|
className: "h-1.5 rounded-full bg-bg-sunken overflow-hidden mb-2",
|
|
752
|
-
children: /* @__PURE__ */
|
|
753
|
-
className: `h-full rounded-full transition-all duration-300 ${
|
|
752
|
+
children: /* @__PURE__ */ b("div", {
|
|
753
|
+
className: `h-full rounded-full transition-all duration-300 ${h(r)}`,
|
|
754
754
|
style: { width: `${Math.min(100, r)}%` }
|
|
755
755
|
})
|
|
756
756
|
}),
|
|
757
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ x("div", {
|
|
758
758
|
className: "flex items-center justify-between text-xs text-text-secondary",
|
|
759
|
-
children: [/* @__PURE__ */
|
|
759
|
+
children: [/* @__PURE__ */ x("span", { children: ["Since ", f(t.createdAt, "short")] }), a && /* @__PURE__ */ x("span", {
|
|
760
760
|
className: r >= 90 ? "text-status-error-text font-medium" : r >= 70 ? "text-status-warning-text font-medium" : "",
|
|
761
|
-
children: [
|
|
761
|
+
children: [p(r), " used"]
|
|
762
762
|
})]
|
|
763
763
|
})
|
|
764
764
|
]
|
|
765
765
|
});
|
|
766
|
-
},
|
|
766
|
+
}, _e = ({ addonSubscription: e }) => {
|
|
767
767
|
let t = e.addon;
|
|
768
|
-
return /* @__PURE__ */
|
|
768
|
+
return /* @__PURE__ */ x("div", {
|
|
769
769
|
className: "flex items-center justify-between p-3 rounded-card border border-border-seam bg-bg-sunken",
|
|
770
|
-
children: [/* @__PURE__ */
|
|
770
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
771
771
|
className: "font-medium text-text-primary",
|
|
772
772
|
children: t?.name || "Unknown Addon"
|
|
773
|
-
}), /* @__PURE__ */
|
|
773
|
+
}), /* @__PURE__ */ x("p", {
|
|
774
774
|
className: "text-sm text-text-secondary",
|
|
775
775
|
children: ["Qty: ", e.quantity]
|
|
776
|
-
})] }), t && /* @__PURE__ */
|
|
776
|
+
})] }), t && /* @__PURE__ */ b("p", {
|
|
777
777
|
className: "text-sm font-medium text-text-primary tabular-nums",
|
|
778
|
-
children:
|
|
778
|
+
children: d(t.price * e.quantity, t.currency)
|
|
779
779
|
})]
|
|
780
780
|
});
|
|
781
|
-
},
|
|
781
|
+
}, ve = ({ transaction: e }) => /* @__PURE__ */ x("div", {
|
|
782
782
|
className: "flex items-center justify-between px-5 py-4 hover:bg-bg-sunken transition-colors",
|
|
783
|
-
children: [/* @__PURE__ */
|
|
783
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
784
784
|
className: "font-medium text-text-primary capitalize",
|
|
785
785
|
children: e.type
|
|
786
|
-
}), /* @__PURE__ */
|
|
786
|
+
}), /* @__PURE__ */ b("p", {
|
|
787
787
|
className: "text-sm text-text-secondary",
|
|
788
|
-
children:
|
|
789
|
-
})] }), /* @__PURE__ */
|
|
788
|
+
children: f(e.createdAt, "short")
|
|
789
|
+
})] }), /* @__PURE__ */ x("div", {
|
|
790
790
|
className: "text-right",
|
|
791
|
-
children: [/* @__PURE__ */
|
|
791
|
+
children: [/* @__PURE__ */ x("p", {
|
|
792
792
|
className: `font-medium tabular-nums ${e.type === "refund" ? "text-status-error-text" : "text-text-primary"}`,
|
|
793
|
-
children: [e.type === "refund" ? "-" : "",
|
|
794
|
-
}), /* @__PURE__ */
|
|
793
|
+
children: [e.type === "refund" ? "-" : "", d(e.amount, e.currency)]
|
|
794
|
+
}), /* @__PURE__ */ b("p", {
|
|
795
795
|
className: "text-sm text-text-secondary capitalize",
|
|
796
796
|
children: e.status
|
|
797
797
|
})]
|
|
798
798
|
})]
|
|
799
|
-
}),
|
|
799
|
+
}), ye = ({ item: e }) => /* @__PURE__ */ x("div", {
|
|
800
800
|
className: "flex items-start gap-3",
|
|
801
|
-
children: [/* @__PURE__ */
|
|
802
|
-
/* @__PURE__ */
|
|
801
|
+
children: [/* @__PURE__ */ b("div", { className: "size-2 rounded-full bg-text-muted mt-2 shrink-0" }), /* @__PURE__ */ x("div", { children: [
|
|
802
|
+
/* @__PURE__ */ x("p", {
|
|
803
803
|
className: "text-sm text-text-primary",
|
|
804
804
|
children: [
|
|
805
|
-
/* @__PURE__ */
|
|
805
|
+
/* @__PURE__ */ b("span", {
|
|
806
806
|
className: "capitalize",
|
|
807
807
|
children: e.fromStatus
|
|
808
808
|
}),
|
|
809
809
|
" → ",
|
|
810
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ b("span", {
|
|
811
811
|
className: "capitalize font-medium",
|
|
812
812
|
children: e.toStatus
|
|
813
813
|
})
|
|
814
814
|
]
|
|
815
815
|
}),
|
|
816
|
-
e.reason && /* @__PURE__ */
|
|
816
|
+
e.reason && /* @__PURE__ */ b("p", {
|
|
817
817
|
className: "text-xs text-text-secondary mt-0.5",
|
|
818
818
|
children: e.reason
|
|
819
819
|
}),
|
|
820
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ b("p", {
|
|
821
821
|
className: "text-xs text-text-secondary mt-0.5",
|
|
822
|
-
children:
|
|
822
|
+
children: f(e.createdAt, "short")
|
|
823
823
|
})
|
|
824
824
|
] })]
|
|
825
825
|
});
|
|
826
|
-
|
|
827
|
-
export { S as SubscriptionDetailPage };
|
|
826
|
+
export { w as SubscriptionDetailPage };
|
|
828
827
|
|
|
829
828
|
//# sourceMappingURL=SubscriptionDetailPage.js.map
|