@burdenoff/microfe-billing 2026.1108.1 → 2026.1109.1
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 +2 -1
- package/dist/billing/shared/utils/directActivityGraphql.js +1 -1
- package/dist/billing/shared/utils/directBillingGraphql.d.ts +2 -1
- package/dist/billing/shared/utils/directBillingGraphql.js +3 -3
- 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 +2 -1
- package/dist/billing/shared/utils/gatewayGraphql.js +4 -4
- 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/pinnedRequest.d.ts +48 -0
- package/dist/billing/shared/utils/pinnedRequest.js +63 -0
- package/dist/billing/shared/utils/pinnedRequest.js.map +1 -0
- 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 +66 -55
- 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,88 +1,91 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { formatDateTime as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { useBillingAccountsForUsage as e, useEnhancedUsagePage as t, useQuotaUsageDetails as n, useWorkspaceQuotaHistory as r, useWorkspaceQuotaOverview as i } from "../hooks/useUsage.js";
|
|
2
|
+
import { useBillingPermissions as a } from "../../../hooks/useBillingPermissions.js";
|
|
3
|
+
import { useBilling as o } from "../../../providers/BillingProvider.js";
|
|
4
|
+
import { formatDateTime as s, formatNumber as c, formatRelativeTime as l } from "../../../shared/utils/format.js";
|
|
5
|
+
import { statusTokens as u } from "../../../shared/utils/tokens.js";
|
|
6
|
+
import { QuotaStatus as d } from "../../../shared/types/graphql.js";
|
|
7
7
|
import { WorkspaceAiSpendPanel as f } from "../components/WorkspaceAiSpendPanel.js";
|
|
8
8
|
import { Fragment as p, useCallback as m, useDeferredValue as h, useMemo as g, useState as _ } from "react";
|
|
9
9
|
import { AlertCircle as v, AlertTriangle as y, CheckCircle as b, ChevronDown as x, ChevronLeft as S, ChevronRight as C, Clock as w, Info as T, Layers as E, Package as D, RefreshCw as O, Search as ee, X as k, XCircle as A } from "lucide-react";
|
|
10
10
|
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
11
11
|
import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
12
|
import { IllustratedEmptyState as P, PagePurpose as ne } from "@burdenoff/fe-libs/ui";
|
|
13
|
-
|
|
13
|
+
// src/billing/modules/usage/pages/UsagePage.tsx
|
|
14
14
|
function F(e, t) {
|
|
15
15
|
if (t?.displayName && typeof t.displayName == "string") return t.displayName;
|
|
16
16
|
if (t?.label && typeof t.label == "string") return t.label;
|
|
17
17
|
let n = e.split(".");
|
|
18
18
|
return (n.length > 1 ? n.slice(1) : n).map((e) => e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase())).join(" ");
|
|
19
19
|
}
|
|
20
|
-
var I = ({ status: e, className:
|
|
20
|
+
var I = ({ status: e, className: t = "size-4" }) => {
|
|
21
21
|
switch (e) {
|
|
22
|
-
case "EXHAUSTED": return /* @__PURE__ */ M(A, { className: `${
|
|
23
|
-
case "CRITICAL": return /* @__PURE__ */ M(y, { className: `${
|
|
24
|
-
case "WARNING": return /* @__PURE__ */ M(v, { className: `${
|
|
25
|
-
case "HEALTHY": return /* @__PURE__ */ M(b, { className: `${
|
|
26
|
-
default: return /* @__PURE__ */ M(T, { className: `${
|
|
22
|
+
case "EXHAUSTED": return /* @__PURE__ */ M(A, { className: `${t} ${u.error.icon}` });
|
|
23
|
+
case "CRITICAL": return /* @__PURE__ */ M(y, { className: `${t} ${u.error.icon}` });
|
|
24
|
+
case "WARNING": return /* @__PURE__ */ M(v, { className: `${t} ${u.warning.icon}` });
|
|
25
|
+
case "HEALTHY": return /* @__PURE__ */ M(b, { className: `${t} ${u.success.icon}` });
|
|
26
|
+
default: return /* @__PURE__ */ M(T, { className: `${t} ${u.neutral.icon}` });
|
|
27
27
|
}
|
|
28
|
-
}, L = ({ status: e }) =>
|
|
29
|
-
|
|
30
|
-
EXHAUSTED: `${
|
|
31
|
-
CRITICAL: `${
|
|
32
|
-
WARNING: `${
|
|
33
|
-
HEALTHY: `${
|
|
34
|
-
INACTIVE: `${
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
}, L = ({ status: e }) => {
|
|
29
|
+
let t = {
|
|
30
|
+
EXHAUSTED: `${u.error.bg} ${u.error.text}`,
|
|
31
|
+
CRITICAL: `${u.error.bg} ${u.error.text}`,
|
|
32
|
+
WARNING: `${u.warning.bg} ${u.warning.text}`,
|
|
33
|
+
HEALTHY: `${u.success.bg} ${u.success.text}`,
|
|
34
|
+
INACTIVE: `${u.neutral.bg} ${u.neutral.text}`
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ M("span", {
|
|
37
|
+
className: `px-2 py-0.5 text-xs font-medium rounded-full ${t[e]}`,
|
|
38
|
+
children: e
|
|
39
|
+
});
|
|
40
|
+
}, R = ({ percentage: e, status: t }) => {
|
|
41
|
+
let n = Math.min(100, Math.max(0, e)), r = {
|
|
42
|
+
EXHAUSTED: u.error.dot,
|
|
43
|
+
CRITICAL: u.error.dot,
|
|
44
|
+
WARNING: u.warning.dot,
|
|
45
|
+
HEALTHY: u.success.dot,
|
|
46
|
+
INACTIVE: u.neutral.dot
|
|
47
|
+
};
|
|
39
48
|
return /* @__PURE__ */ M("div", {
|
|
40
49
|
className: "w-full bg-bg-sunken rounded-full h-2.5 overflow-hidden",
|
|
41
50
|
children: /* @__PURE__ */ M("div", {
|
|
42
|
-
className: `h-full rounded-full transition-all duration-300 ${
|
|
43
|
-
|
|
44
|
-
CRITICAL: t.error.dot,
|
|
45
|
-
WARNING: t.warning.dot,
|
|
46
|
-
HEALTHY: t.success.dot,
|
|
47
|
-
INACTIVE: t.neutral.dot
|
|
48
|
-
}[n]}`,
|
|
49
|
-
style: { width: `${r}%` }
|
|
51
|
+
className: `h-full rounded-full transition-all duration-300 ${r[t]}`,
|
|
52
|
+
style: { width: `${n}%` }
|
|
50
53
|
})
|
|
51
54
|
});
|
|
52
|
-
}, z = ({ label: e, value:
|
|
53
|
-
let
|
|
54
|
-
blue:
|
|
55
|
-
emerald:
|
|
56
|
-
amber:
|
|
57
|
-
red:
|
|
58
|
-
gray:
|
|
59
|
-
}[
|
|
60
|
-
blue:
|
|
61
|
-
emerald:
|
|
62
|
-
amber:
|
|
63
|
-
red:
|
|
64
|
-
gray:
|
|
55
|
+
}, z = ({ label: e, value: t, icon: n, color: r, isActive: i, onClick: a }) => {
|
|
56
|
+
let o = {
|
|
57
|
+
blue: u.info,
|
|
58
|
+
emerald: u.success,
|
|
59
|
+
amber: u.warning,
|
|
60
|
+
red: u.error,
|
|
61
|
+
gray: u.neutral
|
|
62
|
+
}[r], s = {
|
|
63
|
+
blue: u.info.icon,
|
|
64
|
+
emerald: u.success.icon,
|
|
65
|
+
amber: u.warning.icon,
|
|
66
|
+
red: u.error.icon,
|
|
67
|
+
gray: u.neutral.icon
|
|
65
68
|
};
|
|
66
69
|
return /* @__PURE__ */ N("button", {
|
|
67
70
|
type: "button",
|
|
68
|
-
onClick:
|
|
69
|
-
"aria-pressed":
|
|
70
|
-
className: `rounded-card border border-border-seam bg-bg-surface bg-accent-wash shadow-elevation-1 p-5 w-full text-left ${
|
|
71
|
+
onClick: a,
|
|
72
|
+
"aria-pressed": i,
|
|
73
|
+
className: `rounded-card border border-border-seam bg-bg-surface bg-accent-wash shadow-elevation-1 p-5 w-full text-left ${a ? "cursor-pointer transition-[box-shadow,transform] duration-200 ease-[var(--motion-easing-out)] shadow-[var(--shadow-pop)] hover:shadow-elevation-2 [@media(hover:none)]: focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]" : ""} ${i ? "ring-1 ring-[var(--color-focus-ring)] border-border-strong" : ""}`,
|
|
71
74
|
children: [/* @__PURE__ */ N("div", {
|
|
72
75
|
className: "flex items-start justify-between gap-3",
|
|
73
76
|
children: [/* @__PURE__ */ M("span", {
|
|
74
77
|
className: "text-sm text-text-secondary",
|
|
75
78
|
children: e
|
|
76
79
|
}), /* @__PURE__ */ M("span", {
|
|
77
|
-
className: `flex size-9 shrink-0 items-center justify-center rounded-lg ${
|
|
80
|
+
className: `flex size-9 shrink-0 items-center justify-center rounded-lg ${o.bg}`,
|
|
78
81
|
children: /* @__PURE__ */ M("span", {
|
|
79
|
-
className:
|
|
80
|
-
children:
|
|
82
|
+
className: s[r],
|
|
83
|
+
children: n
|
|
81
84
|
})
|
|
82
85
|
})]
|
|
83
86
|
}), /* @__PURE__ */ M("p", {
|
|
84
87
|
className: "mt-2 text-2xl font-semibold tabular-nums text-text-primary",
|
|
85
|
-
children:
|
|
88
|
+
children: t
|
|
86
89
|
})]
|
|
87
90
|
});
|
|
88
91
|
}, re = ({ quota: e, planLabel: t, onClick: n }) => {
|
|
@@ -123,9 +126,9 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
123
126
|
children: [/* @__PURE__ */ N("span", {
|
|
124
127
|
className: "text-sm text-text-primary tabular-nums",
|
|
125
128
|
children: [
|
|
126
|
-
|
|
129
|
+
c(e.totalUsed),
|
|
127
130
|
"\xA0/\xA0",
|
|
128
|
-
r ?
|
|
131
|
+
r ? c(e.totalLimit) : "∞",
|
|
129
132
|
e.unit ? ` ${e.unit}` : ""
|
|
130
133
|
]
|
|
131
134
|
}), /* @__PURE__ */ M(R, {
|
|
@@ -136,7 +139,7 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
136
139
|
}),
|
|
137
140
|
/* @__PURE__ */ M("td", {
|
|
138
141
|
className: "px-4 py-3 text-sm text-text-secondary tabular-nums whitespace-nowrap",
|
|
139
|
-
children: r ?
|
|
142
|
+
children: r ? c(e.totalLimit) : "∞"
|
|
140
143
|
}),
|
|
141
144
|
/* @__PURE__ */ M("td", {
|
|
142
145
|
className: "px-4 py-3",
|
|
@@ -178,22 +181,22 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
178
181
|
onClick: () => r(e)
|
|
179
182
|
}, e.name)) })]
|
|
180
183
|
})
|
|
181
|
-
}), ae = ({ subscription: e, onQuotaClick:
|
|
182
|
-
let [
|
|
183
|
-
active: `${
|
|
184
|
-
trialing: `${
|
|
185
|
-
past_due: `${
|
|
186
|
-
canceled: `${
|
|
187
|
-
expired: `${
|
|
188
|
-
upgraded: `${
|
|
184
|
+
}), ae = ({ subscription: e, onQuotaClick: t, defaultExpanded: n = !0 }) => {
|
|
185
|
+
let [r, i] = _(n), a = {
|
|
186
|
+
active: `${u.success.bg} ${u.success.text}`,
|
|
187
|
+
trialing: `${u.info.bg} ${u.info.text}`,
|
|
188
|
+
past_due: `${u.warning.bg} ${u.warning.text}`,
|
|
189
|
+
canceled: `${u.neutral.bg} ${u.neutral.text}`,
|
|
190
|
+
expired: `${u.neutral.bg} ${u.neutral.text}`,
|
|
191
|
+
upgraded: `${u.primary.bg} ${u.primary.text}`
|
|
189
192
|
};
|
|
190
193
|
return /* @__PURE__ */ N("div", {
|
|
191
194
|
className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
|
|
192
195
|
children: [
|
|
193
196
|
/* @__PURE__ */ N("button", {
|
|
194
197
|
type: "button",
|
|
195
|
-
onClick: () =>
|
|
196
|
-
"aria-expanded":
|
|
198
|
+
onClick: () => i(!r),
|
|
199
|
+
"aria-expanded": r,
|
|
197
200
|
className: "w-full flex items-center justify-between p-4 hover:bg-bg-sunken transition-colors",
|
|
198
201
|
children: [/* @__PURE__ */ N("div", {
|
|
199
202
|
className: "flex items-center gap-3",
|
|
@@ -208,7 +211,7 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
208
211
|
className: "font-medium text-text-primary",
|
|
209
212
|
children: e.planName || e.productId || "Subscription"
|
|
210
213
|
}), /* @__PURE__ */ M("span", {
|
|
211
|
-
className: `px-2 py-0.5 text-xs font-medium rounded-full capitalize ${
|
|
214
|
+
className: `px-2 py-0.5 text-xs font-medium rounded-full capitalize ${a[e.status.toLowerCase()] || a.active}`,
|
|
212
215
|
children: e.status
|
|
213
216
|
})]
|
|
214
217
|
}), /* @__PURE__ */ N("p", {
|
|
@@ -220,18 +223,18 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
220
223
|
]
|
|
221
224
|
})]
|
|
222
225
|
})]
|
|
223
|
-
}), M(
|
|
226
|
+
}), M(r ? x : C, { className: "size-5 text-text-muted" })]
|
|
224
227
|
}),
|
|
225
|
-
|
|
228
|
+
r && e.aggregatedQuotas.length > 0 && /* @__PURE__ */ M("div", {
|
|
226
229
|
className: "border-t border-border-subtle",
|
|
227
230
|
children: /* @__PURE__ */ M(ie, {
|
|
228
231
|
quotas: e.aggregatedQuotas,
|
|
229
232
|
planLabel: e.planName || e.productId || void 0,
|
|
230
233
|
showPlanColumn: !!(e.planName || e.productId),
|
|
231
|
-
onQuotaClick:
|
|
234
|
+
onQuotaClick: t
|
|
232
235
|
})
|
|
233
236
|
}),
|
|
234
|
-
|
|
237
|
+
r && e.aggregatedQuotas.length === 0 && /* @__PURE__ */ M("div", {
|
|
235
238
|
className: "border-t border-border-subtle p-6 text-center",
|
|
236
239
|
children: /* @__PURE__ */ M("p", {
|
|
237
240
|
className: "text-sm text-text-secondary",
|
|
@@ -240,17 +243,17 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
240
243
|
})
|
|
241
244
|
]
|
|
242
245
|
});
|
|
243
|
-
}, oe = ({ quota:
|
|
244
|
-
let [
|
|
245
|
-
v &&
|
|
246
|
+
}, oe = ({ quota: e, onClose: t }) => {
|
|
247
|
+
let [i, a] = _([null]), d = i[i.length - 1] ?? null, f = i.length, { workspaceId: p } = o(), m = e.quotaAssignments[0]?.id, { usages: h, hasNextPage: g, nextCursor: v, isLoading: y } = n(m, 10, d, p), { snapshots: b, isLoading: x } = r(p, e.name, 24), w = () => {
|
|
248
|
+
v && a((e) => [...e, v]);
|
|
246
249
|
}, T = () => {
|
|
247
|
-
|
|
250
|
+
i.length > 1 && a((e) => e.slice(0, -1));
|
|
248
251
|
};
|
|
249
252
|
return /* @__PURE__ */ N("div", {
|
|
250
253
|
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
251
254
|
children: [/* @__PURE__ */ M("div", {
|
|
252
255
|
className: "absolute inset-0 bg-overlay-scrim",
|
|
253
|
-
onClick:
|
|
256
|
+
onClick: t
|
|
254
257
|
}), /* @__PURE__ */ N("div", {
|
|
255
258
|
className: "relative bg-bg-elevated border border-border-seam rounded-card shadow-[var(--shadow-elevation-4)] max-w-2xl w-full mx-4 max-h-[90vh] overflow-auto",
|
|
256
259
|
role: "dialog",
|
|
@@ -262,34 +265,34 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
262
265
|
children: [/* @__PURE__ */ N("div", {
|
|
263
266
|
className: "flex items-center gap-3",
|
|
264
267
|
children: [/* @__PURE__ */ M(I, {
|
|
265
|
-
status:
|
|
268
|
+
status: e.status,
|
|
266
269
|
className: "size-5"
|
|
267
270
|
}), /* @__PURE__ */ N("div", { children: [
|
|
268
271
|
/* @__PURE__ */ M("h2", {
|
|
269
272
|
id: "quota-detail-title",
|
|
270
273
|
className: "text-lg font-semibold capitalize text-text-primary",
|
|
271
|
-
children:
|
|
274
|
+
children: e.displayName || e.name.replace(/_/g, " ")
|
|
272
275
|
}),
|
|
273
276
|
/* @__PURE__ */ M("p", {
|
|
274
277
|
className: "text-xs font-mono text-text-muted",
|
|
275
|
-
children:
|
|
278
|
+
children: e.name
|
|
276
279
|
}),
|
|
277
|
-
|
|
280
|
+
e.description && /* @__PURE__ */ M("p", {
|
|
278
281
|
className: "text-sm text-text-secondary mt-0.5",
|
|
279
|
-
children:
|
|
282
|
+
children: e.description
|
|
280
283
|
}),
|
|
281
284
|
/* @__PURE__ */ N("p", {
|
|
282
285
|
className: "text-sm text-text-secondary mt-0.5",
|
|
283
286
|
children: [
|
|
284
|
-
|
|
287
|
+
e.quotaCount,
|
|
285
288
|
" quota assignment",
|
|
286
|
-
|
|
289
|
+
e.quotaCount === 1 ? "" : "s"
|
|
287
290
|
]
|
|
288
291
|
})
|
|
289
292
|
] })]
|
|
290
293
|
}), /* @__PURE__ */ M("button", {
|
|
291
294
|
type: "button",
|
|
292
|
-
onClick:
|
|
295
|
+
onClick: t,
|
|
293
296
|
className: "p-1 rounded-button text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors",
|
|
294
297
|
"aria-label": "Close quota details",
|
|
295
298
|
children: /* @__PURE__ */ M(k, { className: "size-5" })
|
|
@@ -305,65 +308,65 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
305
308
|
children: [/* @__PURE__ */ M("span", {
|
|
306
309
|
className: "text-sm text-text-secondary",
|
|
307
310
|
children: "Usage"
|
|
308
|
-
}), /* @__PURE__ */ M(L, { status:
|
|
311
|
+
}), /* @__PURE__ */ M(L, { status: e.status })]
|
|
309
312
|
}),
|
|
310
313
|
/* @__PURE__ */ M(R, {
|
|
311
|
-
percentage:
|
|
312
|
-
status:
|
|
314
|
+
percentage: e.usagePercentage,
|
|
315
|
+
status: e.status
|
|
313
316
|
}),
|
|
314
317
|
/* @__PURE__ */ N("div", {
|
|
315
318
|
className: "flex items-center justify-between mt-2 text-sm",
|
|
316
319
|
children: [/* @__PURE__ */ N("span", {
|
|
317
320
|
className: "font-medium text-text-primary tabular-nums",
|
|
318
321
|
children: [
|
|
319
|
-
|
|
322
|
+
c(e.totalUsed),
|
|
320
323
|
" /",
|
|
321
324
|
" ",
|
|
322
|
-
|
|
323
|
-
|
|
325
|
+
e.totalLimit != null && e.totalLimit > 0 ? c(e.totalLimit) : "∞",
|
|
326
|
+
e.unit && ` ${e.unit}`
|
|
324
327
|
]
|
|
325
328
|
}), /* @__PURE__ */ M("span", {
|
|
326
329
|
className: "text-text-secondary",
|
|
327
|
-
children:
|
|
330
|
+
children: e.totalLimit != null && e.totalLimit > 0 ? `${Math.round(e.usagePercentage)}% used` : "Unlimited"
|
|
328
331
|
})]
|
|
329
332
|
})
|
|
330
333
|
]
|
|
331
|
-
}),
|
|
334
|
+
}), e.quotaCount > 1 && /* @__PURE__ */ N("div", {
|
|
332
335
|
className: "mt-4",
|
|
333
336
|
children: [/* @__PURE__ */ M("h3", {
|
|
334
337
|
className: "text-sm font-medium text-text-primary mb-3",
|
|
335
338
|
children: "Quota Breakdown"
|
|
336
339
|
}), /* @__PURE__ */ M("div", {
|
|
337
340
|
className: "border border-border-seam rounded-card overflow-hidden divide-y divide-border-subtle",
|
|
338
|
-
children: [...
|
|
339
|
-
let
|
|
341
|
+
children: [...e.quotaAssignments].sort((e, t) => (e.endtime ? new Date(e.endtime).getTime() : Infinity) - (t.endtime ? new Date(t.endtime).getTime() : Infinity)).map((e) => {
|
|
342
|
+
let t = e.endtime ? new Date(e.endtime) : null, n = /* @__PURE__ */ new Date(), r = t && t < n, i = t ? Math.ceil((t.getTime() - n.getTime()) / 864e5) : null, a = i !== null && i > 0 && i <= 7;
|
|
340
343
|
return /* @__PURE__ */ N("div", {
|
|
341
|
-
className: `flex items-center justify-between px-3 py-2.5 ${
|
|
344
|
+
className: `flex items-center justify-between px-3 py-2.5 ${r ? "bg-bg-sunken" : a ? u.warning.bg : "bg-bg-surface"}`,
|
|
342
345
|
children: [/* @__PURE__ */ N("div", {
|
|
343
346
|
className: "flex items-center gap-2",
|
|
344
|
-
children: [
|
|
347
|
+
children: [a && !r && /* @__PURE__ */ M("span", { className: `size-2 rounded-full ${u.warning.dot} animate-pulse` }), /* @__PURE__ */ N("div", {
|
|
345
348
|
className: "flex flex-col",
|
|
346
349
|
children: [/* @__PURE__ */ M("span", {
|
|
347
|
-
className: `text-sm ${
|
|
348
|
-
children:
|
|
350
|
+
className: `text-sm ${r ? "text-text-muted" : "text-text-primary"}`,
|
|
351
|
+
children: t ? t.toLocaleDateString("en-US", {
|
|
349
352
|
month: "short",
|
|
350
353
|
day: "numeric",
|
|
351
354
|
year: "numeric"
|
|
352
355
|
}) : "No expiry"
|
|
353
356
|
}), /* @__PURE__ */ M("span", {
|
|
354
|
-
className: `text-xs ${
|
|
355
|
-
children:
|
|
357
|
+
className: `text-xs ${r ? "text-status-error-text" : a ? u.warning.text : "text-text-secondary"}`,
|
|
358
|
+
children: r ? "Expired" : i === null ? "Never expires" : i === 0 ? "Expires today" : i === 1 ? "Expires tomorrow" : `${i} days left`
|
|
356
359
|
})]
|
|
357
360
|
})]
|
|
358
361
|
}), /* @__PURE__ */ M("div", {
|
|
359
362
|
className: "text-right",
|
|
360
363
|
children: /* @__PURE__ */ N("span", {
|
|
361
|
-
className: `text-sm font-semibold tabular-nums ${
|
|
362
|
-
children: [
|
|
364
|
+
className: `text-sm font-semibold tabular-nums ${r ? "text-text-muted" : "text-text-primary"}`,
|
|
365
|
+
children: [c(e.used), /* @__PURE__ */ N("span", {
|
|
363
366
|
className: "text-text-secondary font-normal",
|
|
364
367
|
children: [
|
|
365
368
|
" / ",
|
|
366
|
-
e.limit != null && e.limit > 0 ?
|
|
369
|
+
e.limit != null && e.limit > 0 ? c(e.limit) : "∞",
|
|
367
370
|
e.unit && ` ${e.unit}`
|
|
368
371
|
]
|
|
369
372
|
})]
|
|
@@ -388,26 +391,26 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
388
391
|
].map((e) => /* @__PURE__ */ M("div", { className: "h-8 bg-bg-sunken animate-pulse rounded" }, e))
|
|
389
392
|
}) : /* @__PURE__ */ M("div", {
|
|
390
393
|
className: "space-y-1.5",
|
|
391
|
-
children: b.map((
|
|
394
|
+
children: b.map((t) => /* @__PURE__ */ N("div", {
|
|
392
395
|
className: "flex items-center justify-between px-3 py-2 bg-bg-sunken rounded-button",
|
|
393
396
|
children: [/* @__PURE__ */ M("span", {
|
|
394
397
|
className: "text-xs text-text-secondary",
|
|
395
|
-
children:
|
|
398
|
+
children: s(t.snapshotAt)
|
|
396
399
|
}), /* @__PURE__ */ N("span", {
|
|
397
400
|
className: "text-sm font-medium text-text-primary tabular-nums",
|
|
398
401
|
children: [
|
|
399
|
-
|
|
400
|
-
|
|
402
|
+
c(t.value),
|
|
403
|
+
e.unit && /* @__PURE__ */ M("span", {
|
|
401
404
|
className: "text-xs text-text-secondary ml-1",
|
|
402
|
-
children:
|
|
405
|
+
children: e.unit
|
|
403
406
|
}),
|
|
404
|
-
!
|
|
407
|
+
!t.noLimit && t.limit != null && /* @__PURE__ */ N("span", {
|
|
405
408
|
className: "text-xs text-text-secondary ml-1",
|
|
406
|
-
children: ["/ ",
|
|
409
|
+
children: ["/ ", c(t.limit)]
|
|
407
410
|
})
|
|
408
411
|
]
|
|
409
412
|
})]
|
|
410
|
-
},
|
|
413
|
+
}, t.id))
|
|
411
414
|
})]
|
|
412
415
|
}),
|
|
413
416
|
/* @__PURE__ */ N("div", {
|
|
@@ -417,7 +420,7 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
417
420
|
className: "text-sm font-medium text-text-primary mb-3",
|
|
418
421
|
children: "Recent Usage"
|
|
419
422
|
}),
|
|
420
|
-
|
|
423
|
+
e.isCollectorBased ? /* @__PURE__ */ M("p", {
|
|
421
424
|
className: "text-sm text-text-secondary text-center py-6",
|
|
422
425
|
children: "Usage is tracked via system metrics, individual event records are not available for this quota."
|
|
423
426
|
}) : y ? /* @__PURE__ */ M("div", {
|
|
@@ -442,24 +445,24 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
442
445
|
}), /* @__PURE__ */ N("p", {
|
|
443
446
|
className: "text-xs text-text-secondary",
|
|
444
447
|
children: [
|
|
445
|
-
|
|
448
|
+
l(e.timestamp),
|
|
446
449
|
" • ",
|
|
447
|
-
|
|
450
|
+
s(e.timestamp)
|
|
448
451
|
]
|
|
449
452
|
})]
|
|
450
453
|
}), /* @__PURE__ */ M("span", {
|
|
451
454
|
className: "text-sm font-medium text-text-primary ml-4 tabular-nums",
|
|
452
|
-
children:
|
|
455
|
+
children: c(e.amount)
|
|
453
456
|
})]
|
|
454
457
|
}, e.id))
|
|
455
458
|
}),
|
|
456
|
-
!
|
|
459
|
+
!e.isCollectorBased && (i.length > 1 || g) && /* @__PURE__ */ N("div", {
|
|
457
460
|
className: "flex items-center justify-center gap-2 mt-4",
|
|
458
461
|
children: [
|
|
459
462
|
/* @__PURE__ */ M("button", {
|
|
460
463
|
type: "button",
|
|
461
464
|
onClick: T,
|
|
462
|
-
disabled:
|
|
465
|
+
disabled: i.length === 1,
|
|
463
466
|
className: "px-3 py-1.5 text-sm border border-border-subtle rounded-button text-text-primary hover:bg-bg-sunken transition-colors disabled:opacity-50",
|
|
464
467
|
"aria-label": "Previous usage page",
|
|
465
468
|
children: /* @__PURE__ */ M(S, { className: "size-4" })
|
|
@@ -484,7 +487,7 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
484
487
|
className: "sticky bottom-0 bg-bg-elevated border-t border-border-subtle p-4",
|
|
485
488
|
children: /* @__PURE__ */ M("button", {
|
|
486
489
|
type: "button",
|
|
487
|
-
onClick:
|
|
490
|
+
onClick: t,
|
|
488
491
|
className: "w-full py-2 px-4 bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
|
|
489
492
|
children: "Close"
|
|
490
493
|
})
|
|
@@ -493,13 +496,13 @@ var I = ({ status: e, className: n = "size-4" }) => {
|
|
|
493
496
|
})]
|
|
494
497
|
});
|
|
495
498
|
};
|
|
496
|
-
function
|
|
497
|
-
return t ?
|
|
499
|
+
function se(e, t) {
|
|
500
|
+
return t ? d.HEALTHY : e >= 100 ? d.EXHAUSTED : e >= 90 ? d.CRITICAL : e >= 75 ? d.WARNING : d.HEALTHY;
|
|
498
501
|
}
|
|
499
|
-
var
|
|
500
|
-
let { overview:
|
|
502
|
+
var ce = ({ workspaceId: e, productId: t }) => {
|
|
503
|
+
let { overview: n, isLoading: r, error: a, refetch: o } = i(e, t), [s, c] = _(/* @__PURE__ */ new Set()), l = g(() => {
|
|
501
504
|
let e = /* @__PURE__ */ new Map();
|
|
502
|
-
for (let t of
|
|
505
|
+
for (let t of n) {
|
|
503
506
|
let n = e.get(t.assignment.quotaName) ?? [];
|
|
504
507
|
n.push(t), e.set(t.assignment.quotaName, n);
|
|
505
508
|
}
|
|
@@ -513,18 +516,18 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
513
516
|
totalUsed: i,
|
|
514
517
|
totalRemaining: a,
|
|
515
518
|
usagePercentage: o,
|
|
516
|
-
status:
|
|
519
|
+
status: se(o, n),
|
|
517
520
|
hasLive: t.some((e) => e.liveStatus !== null),
|
|
518
521
|
hasMultiple: t.length > 1
|
|
519
522
|
};
|
|
520
523
|
});
|
|
521
|
-
}, [
|
|
522
|
-
|
|
524
|
+
}, [n]), f = g(() => l.filter((e) => e.items[0]?.assignment.quotaMode === "dedicated"), [l]), p = g(() => l.filter((e) => e.items[0]?.assignment.quotaMode === "pooled"), [l]), h = m((e) => {
|
|
525
|
+
c((t) => {
|
|
523
526
|
let n = new Set(t);
|
|
524
527
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
525
528
|
});
|
|
526
529
|
}, []);
|
|
527
|
-
if (
|
|
530
|
+
if (r && n.length === 0) return /* @__PURE__ */ M("div", {
|
|
528
531
|
className: "space-y-3",
|
|
529
532
|
children: [
|
|
530
533
|
1,
|
|
@@ -532,28 +535,28 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
532
535
|
3
|
|
533
536
|
].map((e) => /* @__PURE__ */ M("div", { className: "h-16 bg-bg-sunken animate-pulse rounded-card" }, e))
|
|
534
537
|
});
|
|
535
|
-
if (
|
|
538
|
+
if (a) return /* @__PURE__ */ N("div", {
|
|
536
539
|
className: "text-center py-8 space-y-2",
|
|
537
540
|
children: [
|
|
538
541
|
/* @__PURE__ */ M(y, { className: "size-8 text-status-error-text mx-auto" }),
|
|
539
542
|
/* @__PURE__ */ M("p", {
|
|
540
543
|
className: "text-sm text-text-secondary",
|
|
541
|
-
children:
|
|
544
|
+
children: a.message
|
|
542
545
|
}),
|
|
543
546
|
/* @__PURE__ */ M("button", {
|
|
544
547
|
type: "button",
|
|
545
|
-
onClick: () =>
|
|
548
|
+
onClick: () => o(),
|
|
546
549
|
className: "px-3 py-1.5 text-sm border border-border-subtle rounded-button text-text-primary hover:bg-bg-sunken transition-colors",
|
|
547
550
|
children: "Retry"
|
|
548
551
|
})
|
|
549
552
|
]
|
|
550
553
|
});
|
|
551
|
-
if (
|
|
554
|
+
if (n.length === 0) return /* @__PURE__ */ M(P, {
|
|
552
555
|
illustration: "empty-data",
|
|
553
556
|
title: "No workspace quotas assigned",
|
|
554
557
|
description: "Quotas are assigned to this workspace after a successful purchase. If you have an active subscription, contact support."
|
|
555
558
|
});
|
|
556
|
-
let x =
|
|
559
|
+
let x = l.filter((e) => e.status === d.HEALTHY).length, S = l.filter((e) => e.status === d.WARNING).length, C = l.filter((e) => e.status === d.CRITICAL || e.status === d.EXHAUSTED).length;
|
|
557
560
|
return /* @__PURE__ */ N("div", {
|
|
558
561
|
className: "space-y-4",
|
|
559
562
|
children: [
|
|
@@ -565,8 +568,8 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
565
568
|
children: [/* @__PURE__ */ N("div", {
|
|
566
569
|
className: "flex items-center gap-1.5 mb-1",
|
|
567
570
|
children: [/* @__PURE__ */ M("span", {
|
|
568
|
-
className: `flex size-7 items-center justify-center rounded-lg ${
|
|
569
|
-
children: /* @__PURE__ */ M(b, { className: `size-4 ${
|
|
571
|
+
className: `flex size-7 items-center justify-center rounded-lg ${u.success.bg}`,
|
|
572
|
+
children: /* @__PURE__ */ M(b, { className: `size-4 ${u.success.icon}` })
|
|
570
573
|
}), /* @__PURE__ */ M("span", {
|
|
571
574
|
className: "text-xs text-text-secondary",
|
|
572
575
|
children: "Healthy"
|
|
@@ -581,8 +584,8 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
581
584
|
children: [/* @__PURE__ */ N("div", {
|
|
582
585
|
className: "flex items-center gap-1.5 mb-1",
|
|
583
586
|
children: [/* @__PURE__ */ M("span", {
|
|
584
|
-
className: `flex size-7 items-center justify-center rounded-lg ${
|
|
585
|
-
children: /* @__PURE__ */ M(v, { className: `size-4 ${
|
|
587
|
+
className: `flex size-7 items-center justify-center rounded-lg ${u.warning.bg}`,
|
|
588
|
+
children: /* @__PURE__ */ M(v, { className: `size-4 ${u.warning.icon}` })
|
|
586
589
|
}), /* @__PURE__ */ M("span", {
|
|
587
590
|
className: "text-xs text-text-secondary",
|
|
588
591
|
children: "Warning"
|
|
@@ -597,8 +600,8 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
597
600
|
children: [/* @__PURE__ */ N("div", {
|
|
598
601
|
className: "flex items-center gap-1.5 mb-1",
|
|
599
602
|
children: [/* @__PURE__ */ M("span", {
|
|
600
|
-
className: `flex size-7 items-center justify-center rounded-lg ${
|
|
601
|
-
children: /* @__PURE__ */ M(A, { className: `size-4 ${
|
|
603
|
+
className: `flex size-7 items-center justify-center rounded-lg ${u.error.bg}`,
|
|
604
|
+
children: /* @__PURE__ */ M(A, { className: `size-4 ${u.error.icon}` })
|
|
602
605
|
}), /* @__PURE__ */ M("span", {
|
|
603
606
|
className: "text-xs text-text-secondary",
|
|
604
607
|
children: "Critical / Exhausted"
|
|
@@ -619,9 +622,9 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
619
622
|
className: "text-xs text-text-secondary mb-2",
|
|
620
623
|
children: "Quotas dedicated to this product for your workspace."
|
|
621
624
|
}),
|
|
622
|
-
/* @__PURE__ */ M(
|
|
625
|
+
/* @__PURE__ */ M(B, {
|
|
623
626
|
groups: f,
|
|
624
|
-
expandedGroups:
|
|
627
|
+
expandedGroups: s,
|
|
625
628
|
onToggleGroup: h
|
|
626
629
|
})
|
|
627
630
|
] }),
|
|
@@ -634,19 +637,19 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
634
637
|
className: "text-xs text-text-secondary mb-2",
|
|
635
638
|
children: "Shared limits pooled across your workspace, independent of any single product."
|
|
636
639
|
}),
|
|
637
|
-
/* @__PURE__ */ M(
|
|
640
|
+
/* @__PURE__ */ M(B, {
|
|
638
641
|
groups: p,
|
|
639
|
-
expandedGroups:
|
|
642
|
+
expandedGroups: s,
|
|
640
643
|
onToggleGroup: h
|
|
641
644
|
})
|
|
642
645
|
] }),
|
|
643
646
|
/* @__PURE__ */ N("p", {
|
|
644
647
|
className: "text-xs text-text-secondary",
|
|
645
|
-
children: ["Workspace quotas are sourced from the activity service. Usage is tracked cumulatively across all active sources for each quota.",
|
|
648
|
+
children: ["Workspace quotas are sourced from the activity service. Usage is tracked cumulatively across all active sources for each quota.", n.some((e) => e.liveStatus) && " Live values are updated every ~60 seconds."]
|
|
646
649
|
})
|
|
647
650
|
]
|
|
648
651
|
});
|
|
649
|
-
},
|
|
652
|
+
}, B = ({ groups: e, expandedGroups: t, onToggleGroup: n }) => /* @__PURE__ */ M("div", {
|
|
650
653
|
className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
|
|
651
654
|
children: /* @__PURE__ */ N("table", {
|
|
652
655
|
className: "w-full text-sm",
|
|
@@ -724,12 +727,12 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
724
727
|
className: "space-y-1.5",
|
|
725
728
|
children: [/* @__PURE__ */ N("div", {
|
|
726
729
|
className: "text-text-primary tabular-nums",
|
|
727
|
-
children: [
|
|
730
|
+
children: [c(e.totalUsed), !e.noLimit && e.totalLimit != null && /* @__PURE__ */ N("span", {
|
|
728
731
|
className: "text-text-secondary",
|
|
729
732
|
children: [
|
|
730
733
|
" ",
|
|
731
734
|
"/ ",
|
|
732
|
-
|
|
735
|
+
c(e.totalLimit)
|
|
733
736
|
]
|
|
734
737
|
})]
|
|
735
738
|
}), !e.noLimit && /* @__PURE__ */ M(R, {
|
|
@@ -743,7 +746,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
743
746
|
children: e.noLimit ? /* @__PURE__ */ M("span", {
|
|
744
747
|
className: "text-text-secondary",
|
|
745
748
|
children: "Unlimited"
|
|
746
|
-
}) :
|
|
749
|
+
}) : c(e.totalRemaining ?? 0)
|
|
747
750
|
}),
|
|
748
751
|
/* @__PURE__ */ M("td", {
|
|
749
752
|
className: "px-4 py-3",
|
|
@@ -751,7 +754,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
751
754
|
})
|
|
752
755
|
]
|
|
753
756
|
}, e.quotaName), r && e.items.map((e) => {
|
|
754
|
-
let t =
|
|
757
|
+
let t = se(e.usagePercentage, e.assignment.noLimit);
|
|
755
758
|
return /* @__PURE__ */ N("tr", {
|
|
756
759
|
className: "bg-bg-sunken/50 border-t border-dashed border-border-subtle",
|
|
757
760
|
children: [
|
|
@@ -778,11 +781,11 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
778
781
|
/* @__PURE__ */ M("td", { className: "px-4 py-2.5 hidden sm:table-cell" }),
|
|
779
782
|
/* @__PURE__ */ N("td", {
|
|
780
783
|
className: "px-4 py-2.5 text-xs text-text-secondary tabular-nums",
|
|
781
|
-
children: [
|
|
784
|
+
children: [c(e.effectiveUsed), !e.assignment.noLimit && e.assignment.limit != null && /* @__PURE__ */ N(j, { children: [" / ", c(e.assignment.limit)] })]
|
|
782
785
|
}),
|
|
783
786
|
/* @__PURE__ */ M("td", {
|
|
784
787
|
className: "px-4 py-2.5 hidden sm:table-cell text-xs text-text-secondary tabular-nums",
|
|
785
|
-
children: e.assignment.noLimit ? "Unlimited" :
|
|
788
|
+
children: e.assignment.noLimit ? "Unlimited" : c(e.remaining ?? 0)
|
|
786
789
|
}),
|
|
787
790
|
/* @__PURE__ */ M("td", {
|
|
788
791
|
className: "px-4 py-2.5",
|
|
@@ -794,45 +797,45 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
794
797
|
})
|
|
795
798
|
})]
|
|
796
799
|
})
|
|
797
|
-
}),
|
|
800
|
+
}), V = () => {
|
|
798
801
|
let { t: n } = te(), r = (e, t) => {
|
|
799
802
|
let r = n(e);
|
|
800
803
|
return r === e ? t : r;
|
|
801
|
-
}, i =
|
|
802
|
-
if (
|
|
803
|
-
}), [
|
|
804
|
-
billingAccountId:
|
|
805
|
-
workspaceId:
|
|
806
|
-
productId:
|
|
804
|
+
}, i = a(), [s, c] = _(() => {
|
|
805
|
+
if (typeof window < "u") return new URLSearchParams(window.location.search).get("billingAccountId") || void 0;
|
|
806
|
+
}), [l, d] = _(null), [p, S] = _(""), [C, T] = _("all"), [F, I] = _("active"), L = h(p), { billingAccounts: R, isLoading: re } = e(), se = (R.find((e) => e.isDefault) ?? R[0])?.id, B = s ?? se, { workspaceId: V, productId: le, navigate: ue } = o(), [H, de] = _("workspace"), { dashboard: U, pooledQuotas: W, activeSubscriptions: G, pastSubscriptions: K, isLoading: fe, isPastSubscriptionsLoading: q, error: pe, refetch: me, loadMorePastSubscriptions: he, hasMorePastSubscriptions: ge, isLoadingMorePast: _e, pastSubscriptionsCount: ve } = t({
|
|
807
|
+
billingAccountId: B,
|
|
808
|
+
workspaceId: V,
|
|
809
|
+
productId: le,
|
|
807
810
|
searchQuery: L || void 0,
|
|
808
811
|
viewMode: F
|
|
809
|
-
}),
|
|
812
|
+
}), J = m((e) => C === "all" ? !0 : C === "healthy" ? e.status === "HEALTHY" : C === "warning" ? e.status === "WARNING" : C !== "critical" || e.status === "CRITICAL" || e.status === "EXHAUSTED", [C]), Y = g(() => W.filter(J), [W, J]), X = g(() => C === "all" ? G : G.map((e) => ({
|
|
810
813
|
...e,
|
|
811
|
-
aggregatedQuotas: e.aggregatedQuotas.filter(
|
|
814
|
+
aggregatedQuotas: e.aggregatedQuotas.filter(J)
|
|
812
815
|
})).filter((e) => e.aggregatedQuotas.length > 0), [
|
|
813
|
-
|
|
816
|
+
G,
|
|
814
817
|
C,
|
|
815
|
-
|
|
816
|
-
]),
|
|
818
|
+
J
|
|
819
|
+
]), Z = g(() => C === "all" ? K : K.map((e) => ({
|
|
817
820
|
...e,
|
|
818
|
-
aggregatedQuotas: e.aggregatedQuotas.filter(
|
|
821
|
+
aggregatedQuotas: e.aggregatedQuotas.filter(J)
|
|
819
822
|
})).filter((e) => e.aggregatedQuotas.length > 0), [
|
|
820
|
-
|
|
823
|
+
K,
|
|
821
824
|
C,
|
|
822
|
-
|
|
825
|
+
J
|
|
823
826
|
]), Q = g(() => F === "active" ? {
|
|
824
|
-
active:
|
|
827
|
+
active: X,
|
|
825
828
|
past: []
|
|
826
829
|
} : F === "past" ? {
|
|
827
830
|
active: [],
|
|
828
|
-
past:
|
|
831
|
+
past: Z
|
|
829
832
|
} : {
|
|
830
|
-
active:
|
|
831
|
-
past:
|
|
833
|
+
active: X,
|
|
834
|
+
past: Z
|
|
832
835
|
}, [
|
|
833
836
|
F,
|
|
834
|
-
|
|
835
|
-
|
|
837
|
+
X,
|
|
838
|
+
Z
|
|
836
839
|
]), $ = p !== "" || C !== "all", ye = L !== p, be = () => {
|
|
837
840
|
S(""), T("all");
|
|
838
841
|
}, xe = (e) => {
|
|
@@ -858,7 +861,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
858
861
|
]
|
|
859
862
|
})
|
|
860
863
|
});
|
|
861
|
-
if ((re ||
|
|
864
|
+
if ((re || fe) && !U) return /* @__PURE__ */ N("div", {
|
|
862
865
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
863
866
|
children: [
|
|
864
867
|
/* @__PURE__ */ M("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }),
|
|
@@ -874,7 +877,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
874
877
|
/* @__PURE__ */ M("div", { className: "h-64 bg-bg-sunken animate-pulse rounded-card" })
|
|
875
878
|
]
|
|
876
879
|
});
|
|
877
|
-
if (
|
|
880
|
+
if (pe) return /* @__PURE__ */ M("div", {
|
|
878
881
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
879
882
|
children: /* @__PURE__ */ N("div", {
|
|
880
883
|
className: "text-center space-y-4",
|
|
@@ -889,18 +892,18 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
889
892
|
}),
|
|
890
893
|
/* @__PURE__ */ M("p", {
|
|
891
894
|
className: "text-sm text-text-secondary",
|
|
892
|
-
children:
|
|
895
|
+
children: pe.message
|
|
893
896
|
}),
|
|
894
897
|
/* @__PURE__ */ M("button", {
|
|
895
898
|
type: "button",
|
|
896
|
-
onClick: () =>
|
|
899
|
+
onClick: () => me(),
|
|
897
900
|
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",
|
|
898
901
|
children: "Try Again"
|
|
899
902
|
})
|
|
900
903
|
]
|
|
901
904
|
})
|
|
902
905
|
});
|
|
903
|
-
let Se = R.find((e) => e.id ===
|
|
906
|
+
let Se = R.find((e) => e.id === B);
|
|
904
907
|
return /* @__PURE__ */ N("div", {
|
|
905
908
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
906
909
|
children: [
|
|
@@ -926,19 +929,19 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
926
929
|
className: "flex items-center bg-bg-sunken rounded-lg p-1 border border-border-subtle",
|
|
927
930
|
children: [/* @__PURE__ */ N("button", {
|
|
928
931
|
type: "button",
|
|
929
|
-
onClick: () =>
|
|
930
|
-
className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${
|
|
932
|
+
onClick: () => de("workspace"),
|
|
933
|
+
className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${H === "workspace" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"}`,
|
|
931
934
|
children: [/* @__PURE__ */ M(E, { className: "size-3.5" }), "Workspace"]
|
|
932
935
|
}), /* @__PURE__ */ N("button", {
|
|
933
936
|
type: "button",
|
|
934
|
-
onClick: () =>
|
|
935
|
-
className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${
|
|
937
|
+
onClick: () => de("global"),
|
|
938
|
+
className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${H === "global" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"}`,
|
|
936
939
|
children: [/* @__PURE__ */ M(D, { className: "size-3.5" }), "Global"]
|
|
937
940
|
})]
|
|
938
941
|
}),
|
|
939
|
-
|
|
940
|
-
value:
|
|
941
|
-
onChange: (e) =>
|
|
942
|
+
H === "global" && R.length > 1 && /* @__PURE__ */ M("select", {
|
|
943
|
+
value: B || "",
|
|
944
|
+
onChange: (e) => c(e.target.value),
|
|
942
945
|
className: "px-3 py-2 text-sm border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] w-full sm:min-w-[200px] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
943
946
|
children: R.map((e) => /* @__PURE__ */ M("option", {
|
|
944
947
|
value: e.id,
|
|
@@ -947,7 +950,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
947
950
|
}),
|
|
948
951
|
/* @__PURE__ */ M("button", {
|
|
949
952
|
type: "button",
|
|
950
|
-
onClick: () =>
|
|
953
|
+
onClick: () => H === "workspace" ? void 0 : me(),
|
|
951
954
|
className: "p-2 border border-border-subtle rounded-button text-text-secondary hover:text-text-primary hover:bg-bg-sunken hover:border-border-strong transition-all duration-200",
|
|
952
955
|
"aria-label": "Refresh",
|
|
953
956
|
title: "Refresh",
|
|
@@ -956,18 +959,18 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
956
959
|
]
|
|
957
960
|
})]
|
|
958
961
|
}),
|
|
959
|
-
|
|
962
|
+
H === "workspace" && V && /* @__PURE__ */ N("div", {
|
|
960
963
|
className: "space-y-4",
|
|
961
|
-
children: [/* @__PURE__ */ M(f, { workspaceId:
|
|
962
|
-
workspaceId:
|
|
963
|
-
productId:
|
|
964
|
+
children: [/* @__PURE__ */ M(f, { workspaceId: V }), /* @__PURE__ */ M(ce, {
|
|
965
|
+
workspaceId: V,
|
|
966
|
+
productId: le
|
|
964
967
|
})]
|
|
965
968
|
}),
|
|
966
|
-
|
|
969
|
+
H === "workspace" && !V && /* @__PURE__ */ M("div", {
|
|
967
970
|
className: "text-center py-12 text-text-secondary text-sm",
|
|
968
971
|
children: "No workspace context available."
|
|
969
972
|
}),
|
|
970
|
-
|
|
973
|
+
H === "global" && /* @__PURE__ */ N(j, { children: [
|
|
971
974
|
/* @__PURE__ */ N("div", {
|
|
972
975
|
className: "flex flex-col gap-3 sm:flex-row sm:items-center",
|
|
973
976
|
children: [
|
|
@@ -1001,9 +1004,9 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1001
1004
|
}), /* @__PURE__ */ N("button", {
|
|
1002
1005
|
type: "button",
|
|
1003
1006
|
onClick: () => I("past"),
|
|
1004
|
-
disabled:
|
|
1005
|
-
className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${F === "past" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"} ${
|
|
1006
|
-
children: [
|
|
1007
|
+
disabled: q && F !== "past",
|
|
1008
|
+
className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${F === "past" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"} ${q && F !== "past" ? "opacity-70" : ""}`,
|
|
1009
|
+
children: [q && F === "past" ? /* @__PURE__ */ M(O, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ M(w, { className: "size-3.5" }), "Past"]
|
|
1007
1010
|
})]
|
|
1008
1011
|
}),
|
|
1009
1012
|
$ && /* @__PURE__ */ N("button", {
|
|
@@ -1025,12 +1028,12 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1025
1028
|
})
|
|
1026
1029
|
]
|
|
1027
1030
|
}),
|
|
1028
|
-
|
|
1031
|
+
U && /* @__PURE__ */ N("div", {
|
|
1029
1032
|
className: "grid grid-cols-2 sm:grid-cols-4 gap-4",
|
|
1030
1033
|
children: [
|
|
1031
1034
|
/* @__PURE__ */ M(z, {
|
|
1032
1035
|
label: "Total Quotas",
|
|
1033
|
-
value:
|
|
1036
|
+
value: U.totalQuotas,
|
|
1034
1037
|
icon: /* @__PURE__ */ M(E, { className: "size-5" }),
|
|
1035
1038
|
color: "blue",
|
|
1036
1039
|
isActive: C === "all",
|
|
@@ -1038,7 +1041,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1038
1041
|
}),
|
|
1039
1042
|
/* @__PURE__ */ M(z, {
|
|
1040
1043
|
label: "Healthy",
|
|
1041
|
-
value:
|
|
1044
|
+
value: U.healthyQuotas,
|
|
1042
1045
|
icon: /* @__PURE__ */ M(b, { className: "size-5" }),
|
|
1043
1046
|
color: "emerald",
|
|
1044
1047
|
isActive: C === "healthy",
|
|
@@ -1046,7 +1049,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1046
1049
|
}),
|
|
1047
1050
|
/* @__PURE__ */ M(z, {
|
|
1048
1051
|
label: "Warning",
|
|
1049
|
-
value:
|
|
1052
|
+
value: U.warningQuotas,
|
|
1050
1053
|
icon: /* @__PURE__ */ M(v, { className: "size-5" }),
|
|
1051
1054
|
color: "amber",
|
|
1052
1055
|
isActive: C === "warning",
|
|
@@ -1054,7 +1057,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1054
1057
|
}),
|
|
1055
1058
|
/* @__PURE__ */ M(z, {
|
|
1056
1059
|
label: "Critical / Exhausted",
|
|
1057
|
-
value:
|
|
1060
|
+
value: U.criticalQuotas + U.exhaustedQuotas,
|
|
1058
1061
|
icon: /* @__PURE__ */ M(y, { className: "size-5" }),
|
|
1059
1062
|
color: "red",
|
|
1060
1063
|
isActive: C === "critical",
|
|
@@ -1062,21 +1065,21 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1062
1065
|
})
|
|
1063
1066
|
]
|
|
1064
1067
|
}),
|
|
1065
|
-
|
|
1066
|
-
className: `flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between p-4 rounded-lg border ${
|
|
1068
|
+
U && (U.warningQuotas > 0 || U.criticalQuotas > 0 || U.exhaustedQuotas > 0) && /* @__PURE__ */ N("div", {
|
|
1069
|
+
className: `flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between p-4 rounded-lg border ${U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? `${u.error.bg} ${u.error.border}` : `${u.warning.bg} ${u.warning.border}`}`,
|
|
1067
1070
|
children: [/* @__PURE__ */ N("div", {
|
|
1068
1071
|
className: "flex items-center gap-3",
|
|
1069
|
-
children: [
|
|
1070
|
-
className: `text-sm font-medium ${
|
|
1071
|
-
children:
|
|
1072
|
+
children: [U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? /* @__PURE__ */ M(A, { className: `size-5 shrink-0 ${u.error.icon}` }) : /* @__PURE__ */ M(v, { className: `size-5 shrink-0 ${u.warning.icon}` }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
1073
|
+
className: `text-sm font-medium ${U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? u.error.text : u.warning.text}`,
|
|
1074
|
+
children: U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? `${U.criticalQuotas + U.exhaustedQuotas} quota${U.criticalQuotas + U.exhaustedQuotas === 1 ? "" : "s"} exhausted or critical` : `${U.warningQuotas} quota${U.warningQuotas === 1 ? "" : "s"} approaching the limit`
|
|
1072
1075
|
}), /* @__PURE__ */ M("p", {
|
|
1073
1076
|
className: "text-xs text-text-secondary mt-0.5",
|
|
1074
1077
|
children: "Contact support to request a quota increase for your plan."
|
|
1075
1078
|
})] })]
|
|
1076
1079
|
}), /* @__PURE__ */ M("button", {
|
|
1077
1080
|
type: "button",
|
|
1078
|
-
onClick: () =>
|
|
1079
|
-
className: `shrink-0 px-4 py-2 text-sm font-medium rounded-button border transition-colors duration-200 ${
|
|
1081
|
+
onClick: () => ue("/support/tickets"),
|
|
1082
|
+
className: `shrink-0 px-4 py-2 text-sm font-medium rounded-button border transition-colors duration-200 ${U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? "bg-action-danger-bg text-action-danger-text border-action-danger-bg hover:bg-action-danger-bgHover" : "border-status-warning-border text-status-warning-text hover:bg-status-warning-bg-subtle"}`,
|
|
1080
1083
|
children: "Request more quota"
|
|
1081
1084
|
})]
|
|
1082
1085
|
}),
|
|
@@ -1086,7 +1089,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1086
1089
|
/* @__PURE__ */ N("span", { children: [
|
|
1087
1090
|
"Showing",
|
|
1088
1091
|
" ",
|
|
1089
|
-
Q.active.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + Q.past.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + (F === "past" ? 0 :
|
|
1092
|
+
Q.active.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + Q.past.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + (F === "past" ? 0 : Y.length),
|
|
1090
1093
|
" ",
|
|
1091
1094
|
"quotas"
|
|
1092
1095
|
] }),
|
|
@@ -1132,13 +1135,13 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1132
1135
|
className: "text-xs font-normal text-text-secondary",
|
|
1133
1136
|
children: "(Canceled / Expired / Upgraded)"
|
|
1134
1137
|
}),
|
|
1135
|
-
|
|
1138
|
+
ve > 0 && /* @__PURE__ */ N("span", {
|
|
1136
1139
|
className: "text-xs font-normal px-2 py-0.5 bg-bg-sunken text-text-secondary rounded-full tabular-nums",
|
|
1137
1140
|
children: [
|
|
1138
1141
|
Q.past.length,
|
|
1139
|
-
|
|
1142
|
+
ge ? "+" : "",
|
|
1140
1143
|
" of ",
|
|
1141
|
-
|
|
1144
|
+
ve
|
|
1142
1145
|
]
|
|
1143
1146
|
})
|
|
1144
1147
|
]
|
|
@@ -1148,21 +1151,21 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1148
1151
|
subscription: e,
|
|
1149
1152
|
onQuotaClick: d,
|
|
1150
1153
|
defaultExpanded: F === "past"
|
|
1151
|
-
}, e.id)),
|
|
1154
|
+
}, e.id)), ge && /* @__PURE__ */ M("div", {
|
|
1152
1155
|
className: "flex justify-center pt-2",
|
|
1153
1156
|
children: /* @__PURE__ */ M("button", {
|
|
1154
1157
|
type: "button",
|
|
1155
|
-
onClick:
|
|
1156
|
-
disabled:
|
|
1158
|
+
onClick: he,
|
|
1159
|
+
disabled: _e,
|
|
1157
1160
|
className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-text-secondary hover:text-text-primary border border-border-subtle rounded-button hover:bg-bg-sunken transition-colors disabled:opacity-50",
|
|
1158
|
-
children:
|
|
1161
|
+
children: _e ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(O, { className: "size-4 animate-spin" }), "Loading…"] }) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(x, { className: "size-4" }), "Load more past subscriptions"] })
|
|
1159
1162
|
})
|
|
1160
1163
|
})]
|
|
1161
1164
|
})] }),
|
|
1162
|
-
F !== "past" &&
|
|
1165
|
+
F !== "past" && Y.length > 0 && /* @__PURE__ */ N("section", { children: [/* @__PURE__ */ N("h2", {
|
|
1163
1166
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
1164
1167
|
children: [
|
|
1165
|
-
/* @__PURE__ */ M(E, { className: `size-5 ${
|
|
1168
|
+
/* @__PURE__ */ M(E, { className: `size-5 ${u.info.icon}` }),
|
|
1166
1169
|
"Pooled Quotas",
|
|
1167
1170
|
/* @__PURE__ */ M("span", {
|
|
1168
1171
|
className: "text-xs font-normal text-text-secondary",
|
|
@@ -1170,16 +1173,16 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1170
1173
|
})
|
|
1171
1174
|
]
|
|
1172
1175
|
}), /* @__PURE__ */ M(ie, {
|
|
1173
|
-
quotas:
|
|
1176
|
+
quotas: Y,
|
|
1174
1177
|
showPlanColumn: !1,
|
|
1175
1178
|
onQuotaClick: d
|
|
1176
1179
|
})] }),
|
|
1177
|
-
F === "active" &&
|
|
1180
|
+
F === "active" && G.length === 0 && W.length === 0 && !$ && /* @__PURE__ */ M(P, {
|
|
1178
1181
|
illustration: "empty-data",
|
|
1179
1182
|
title: "No active quotas found",
|
|
1180
1183
|
description: "Quotas will appear here once you have active subscriptions or pooled allocations."
|
|
1181
1184
|
}),
|
|
1182
|
-
F === "past" &&
|
|
1185
|
+
F === "past" && K.length === 0 && !$ && !q && /* @__PURE__ */ M(P, {
|
|
1183
1186
|
illustration: "empty-data",
|
|
1184
1187
|
title: "No past subscriptions",
|
|
1185
1188
|
description: "You don't have any canceled, expired, or upgraded subscriptions yet.",
|
|
@@ -1190,7 +1193,7 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1190
1193
|
children: "View active subscriptions"
|
|
1191
1194
|
})
|
|
1192
1195
|
}),
|
|
1193
|
-
F === "past" &&
|
|
1196
|
+
F === "past" && q && /* @__PURE__ */ M("div", {
|
|
1194
1197
|
className: "space-y-4",
|
|
1195
1198
|
children: [
|
|
1196
1199
|
1,
|
|
@@ -1198,19 +1201,19 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1198
1201
|
3
|
|
1199
1202
|
].map((e) => /* @__PURE__ */ M("div", { className: "h-24 bg-bg-sunken animate-pulse rounded-card" }, e))
|
|
1200
1203
|
}),
|
|
1201
|
-
$ && Q.active.length === 0 && Q.past.length === 0 && (F === "past" ||
|
|
1204
|
+
$ && Q.active.length === 0 && Q.past.length === 0 && (F === "past" || Y.length === 0) && /* @__PURE__ */ M(P, {
|
|
1202
1205
|
illustration: "empty-search",
|
|
1203
1206
|
title: C !== "all" && !p ? `No ${C === "critical" ? "critical or exhausted" : C} quotas` : "No matching quotas",
|
|
1204
|
-
description: C !== "all" && !p ? /* @__PURE__ */ N(j, { children: ["All your quotas are in a different status.",
|
|
1207
|
+
description: C !== "all" && !p ? /* @__PURE__ */ N(j, { children: ["All your quotas are in a different status.", U && /* @__PURE__ */ N("span", {
|
|
1205
1208
|
className: "block mt-1",
|
|
1206
1209
|
children: [
|
|
1207
1210
|
"You have ",
|
|
1208
|
-
|
|
1211
|
+
U.healthyQuotas,
|
|
1209
1212
|
" healthy, ",
|
|
1210
|
-
|
|
1213
|
+
U.warningQuotas,
|
|
1211
1214
|
" ",
|
|
1212
1215
|
"warning, and ",
|
|
1213
|
-
|
|
1216
|
+
U.criticalQuotas + U.exhaustedQuotas,
|
|
1214
1217
|
" ",
|
|
1215
1218
|
"critical quotas."
|
|
1216
1219
|
]
|
|
@@ -1241,14 +1244,13 @@ var se = ({ workspaceId: e, productId: r }) => {
|
|
|
1241
1244
|
})
|
|
1242
1245
|
})
|
|
1243
1246
|
] }),
|
|
1244
|
-
|
|
1245
|
-
quota:
|
|
1247
|
+
l && /* @__PURE__ */ M(oe, {
|
|
1248
|
+
quota: l,
|
|
1246
1249
|
onClose: () => d(null)
|
|
1247
1250
|
})
|
|
1248
1251
|
]
|
|
1249
1252
|
});
|
|
1250
1253
|
};
|
|
1251
|
-
|
|
1252
|
-
export { H as UsagePage };
|
|
1254
|
+
export { V as UsagePage };
|
|
1253
1255
|
|
|
1254
1256
|
//# sourceMappingURL=UsagePage.js.map
|