@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,327 +1,330 @@
|
|
|
1
1
|
import { useBilling as e } from "../../../providers/BillingProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useBillingEventEmitter as t } from "../../../hooks/useBillingEventEmitter.js";
|
|
3
|
+
import { useBillingPermissions as n } from "../../../hooks/useBillingPermissions.js";
|
|
4
4
|
import { StatCard as r } from "../../../shared/components/StatCard.js";
|
|
5
5
|
import { ServerError as ee } from "../../../shared/components/ServerError.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { getStoredBillingAccountId as re, setStoredBillingAccountId as ie } from "../../../hooks/useBillingAccountSelection.js";
|
|
9
|
-
import { isServerError as ae } from "../../../shared/utils/error.js";
|
|
6
|
+
import { AccessDenied as te } from "../../../shared/components/AccessDenied.js";
|
|
7
|
+
import { PushPermissionNudge as ne } from "../../../shared/components/PushPermissionNudge.js";
|
|
10
8
|
import "../../../shared/utils/index.js";
|
|
11
|
-
import {
|
|
12
|
-
import { useDashboardMutations as se } from "../hooks/useDashboard.js";
|
|
13
|
-
import { useBillingOverviewData as ce } from "../hooks/useBillingOverviewData.js";
|
|
9
|
+
import { isServerError as re } from "../../../shared/utils/error.js";
|
|
14
10
|
import "../hooks/index.js";
|
|
15
|
-
import { BillingAccountCard as le } from "../components/BillingAccountCard.js";
|
|
16
|
-
import { PaymentMethodsSection as ue } from "../components/PaymentMethodsSection.js";
|
|
17
|
-
import { ActiveSubscriptionCard as de } from "../components/ActiveSubscriptionCard.js";
|
|
18
|
-
import { RecommendedAddonsSection as fe } from "../components/RecommendedAddonsSection.js";
|
|
19
|
-
import { CreateBillingAccountModal as i } from "../components/CreateBillingAccountModal.js";
|
|
20
|
-
import { AddPaymentMethodModal as pe } from "../components/AddPaymentMethodModal.js";
|
|
21
11
|
import "../components/index.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
12
|
+
import { useDashboardMutations as ie } from "../hooks/useDashboard.js";
|
|
13
|
+
import { useBillingOverviewData as ae } from "../hooks/useBillingOverviewData.js";
|
|
14
|
+
import { useAddonCartStore as oe } from "../../addons/store/addonCartStore.js";
|
|
15
|
+
import { BillingAccountCard as se } from "../components/BillingAccountCard.js";
|
|
16
|
+
import { PaymentMethodsSection as ce } from "../components/PaymentMethodsSection.js";
|
|
17
|
+
import { ActiveSubscriptionCard as le } from "../components/ActiveSubscriptionCard.js";
|
|
18
|
+
import { RecommendedAddonsSection as ue } from "../components/RecommendedAddonsSection.js";
|
|
19
|
+
import { CreateBillingAccountModal as i } from "../components/CreateBillingAccountModal.js";
|
|
20
|
+
import { AddPaymentMethodModal as de } from "../components/AddPaymentMethodModal.js";
|
|
21
|
+
import { FloatingCartDrawer as fe } from "../../addons/components/FloatingCartDrawer.js";
|
|
22
|
+
import { getStoredBillingAccountId as pe, setStoredBillingAccountId as me } from "../../../hooks/useBillingAccountSelection.js";
|
|
23
|
+
import { withBillingAccountId as he } from "../../../shared/utils/navigation.js";
|
|
24
|
+
import { useTr as ge } from "../../../shared/hooks/useTr.js";
|
|
25
|
+
import { useCallback as a, useEffect as o, useState as s } from "react";
|
|
26
|
+
import { Activity as _e, ArrowRight as ve, Building2 as c, Check as l, ChevronDown as u, Coins as ye, Crown as d, Loader2 as be, Plus as f, Receipt as xe, RefreshCw as p, Sparkles as Se, Wallet as m } from "lucide-react";
|
|
27
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
28
|
+
import { AuroraBackground as Ce, Button as we, CTAOverflowMenu as Te, GlassCard as Ee, GradientText as De, IllustratedEmptyState as Oe, PagePurpose as ke } from "@burdenoff/fe-libs/ui";
|
|
29
|
+
import { shouldPromptForPushPermission as Ae } from "@burdenoff/fe-libs/shared/native";
|
|
30
|
+
// src/billing/modules/dashboard/pages/OverviewPage.tsx
|
|
31
|
+
var v = () => {
|
|
32
|
+
let v = ge(), { navigate: y, basePath: b, orgId: x, productId: je } = e(), S = n(), { emit: C } = t(), [w, Me] = s(() => pe(x)), [T, E] = s(!1), [D, O] = s(null), [Ne, k] = s(!1), [A, j] = s(!1), [Pe, M] = s(!1), [N, P] = s(0), [F, I] = s(!1), { billingAccounts: L, currentAccount: R, paymentMethods: z, activeSubscriptions: B, hasActiveSubscription: V, recommendedAddons: Fe, isLoading: H, error: U, refetchAll: W } = ae(w, je), G = R?.id, Ie = H, K = a((e) => {
|
|
33
|
+
Me(e), me(x, e);
|
|
34
|
+
}, [x]), { addToCart: q, isInCart: J, getCartItem: Le, updateQuantity: Re, removeFromCart: Y } = oe(), { createBillingAccount: ze, setBillingAddress: X, setDefaultPaymentMethod: Be, deletePaymentMethod: Ve, isCreatingAccount: He } = ie();
|
|
35
|
+
o(() => {
|
|
36
|
+
P(0), I(!1);
|
|
37
|
+
}, [G, B.length]), o(() => {
|
|
38
|
+
w && L.length > 0 && (L.some((e) => e.id === w) || K(null));
|
|
39
39
|
}, [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
]),
|
|
44
|
-
!
|
|
40
|
+
L,
|
|
41
|
+
w,
|
|
42
|
+
K
|
|
43
|
+
]), o(() => {
|
|
44
|
+
if (!w && L.length > 0) {
|
|
45
|
+
let e = L.find((e) => e.isDefault) ?? L[0];
|
|
46
|
+
K(e.id);
|
|
47
|
+
}
|
|
45
48
|
}, [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
L,
|
|
50
|
+
w,
|
|
51
|
+
K
|
|
49
52
|
]);
|
|
50
|
-
let Z =
|
|
53
|
+
let Z = B[N] || B[0] || null, Q = a((e) => {
|
|
51
54
|
let t = e;
|
|
52
|
-
|
|
53
|
-
}, [
|
|
54
|
-
|
|
55
|
+
b && b !== "/" && (t = `${b.endsWith("/") ? b.slice(0, -1) : b}${e.startsWith("/") ? e : `/${e}`}`), y(t);
|
|
56
|
+
}, [y, b]), Ue = a(async (e, t) => {
|
|
57
|
+
O(null);
|
|
55
58
|
try {
|
|
56
|
-
let n = await
|
|
57
|
-
t && n.id && await
|
|
59
|
+
let n = await ze(e);
|
|
60
|
+
t && n.id && await X({
|
|
58
61
|
billingAccountId: n.id,
|
|
59
62
|
...t
|
|
60
|
-
}),
|
|
63
|
+
}), E(!1), K(n.id), C("billing.billing_account.created", {
|
|
61
64
|
route: "/billing/overview",
|
|
62
65
|
entityId: n.id,
|
|
63
66
|
source: "overview"
|
|
64
|
-
}), await
|
|
67
|
+
}), await W(), Ae() && k(!0);
|
|
65
68
|
} catch (e) {
|
|
66
|
-
|
|
69
|
+
O(e instanceof Error ? e.message : "Failed to create billing account");
|
|
67
70
|
}
|
|
68
71
|
}, [
|
|
69
|
-
Re,
|
|
70
|
-
w,
|
|
71
|
-
G,
|
|
72
72
|
ze,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
C,
|
|
74
|
+
W,
|
|
75
|
+
X,
|
|
76
|
+
K
|
|
77
|
+
]), We = a(() => {
|
|
78
|
+
M(!0);
|
|
79
|
+
}, []), $ = a(async () => {
|
|
80
|
+
await W();
|
|
81
|
+
}, [W]), Ge = a(async () => {
|
|
82
|
+
C("billing.payment_method.added", {
|
|
80
83
|
route: "/billing/overview",
|
|
81
|
-
entityId:
|
|
84
|
+
entityId: G,
|
|
82
85
|
source: "overview"
|
|
83
86
|
}), await $();
|
|
84
87
|
}, [
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
G,
|
|
89
|
+
C,
|
|
87
90
|
$
|
|
88
|
-
]), Ke =
|
|
89
|
-
|
|
91
|
+
]), Ke = a(async (e) => {
|
|
92
|
+
G && (await Be(e, G), C("billing.payment_method.default_set", {
|
|
90
93
|
route: "/billing/overview",
|
|
91
94
|
entityId: e,
|
|
92
95
|
source: "overview"
|
|
93
96
|
}), await $());
|
|
94
97
|
}, [
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
G,
|
|
99
|
+
C,
|
|
97
100
|
Be,
|
|
98
101
|
$
|
|
99
|
-
]), qe =
|
|
100
|
-
|
|
102
|
+
]), qe = a(async (e) => {
|
|
103
|
+
G && (await Ve(e, G), C("billing.payment_method.deleted", {
|
|
101
104
|
route: "/billing/overview",
|
|
102
105
|
entityId: e,
|
|
103
106
|
source: "overview"
|
|
104
107
|
}), await $());
|
|
105
108
|
}, [
|
|
106
|
-
|
|
109
|
+
G,
|
|
107
110
|
Ve,
|
|
108
|
-
|
|
111
|
+
C,
|
|
109
112
|
$
|
|
110
|
-
]), Je =
|
|
111
|
-
|
|
112
|
-
}, [
|
|
113
|
-
await
|
|
114
|
-
}, [
|
|
115
|
-
|
|
116
|
-
}, [
|
|
117
|
-
t <= 0 ?
|
|
118
|
-
}, [
|
|
119
|
-
|
|
120
|
-
}, [
|
|
121
|
-
return
|
|
113
|
+
]), Je = a((e) => {
|
|
114
|
+
K(e.id), j(!1);
|
|
115
|
+
}, [K]), Ye = a(async () => {
|
|
116
|
+
await W();
|
|
117
|
+
}, [W]), Xe = a((e) => {
|
|
118
|
+
q(e);
|
|
119
|
+
}, [q]), Ze = a((e) => J(e), [J]), Qe = a((e) => Le(e)?.quantity || 0, [Le]), $e = a((e, t) => {
|
|
120
|
+
t <= 0 ? Y(e) : Re(e, t);
|
|
121
|
+
}, [Re, Y]), et = a((e) => {
|
|
122
|
+
Y(e);
|
|
123
|
+
}, [Y]);
|
|
124
|
+
return S.canViewBillingAccount ? U && re(U) && !H ? /* @__PURE__ */ g("div", {
|
|
122
125
|
className: "p-6",
|
|
123
|
-
children: /* @__PURE__ */
|
|
124
|
-
title:
|
|
125
|
-
message:
|
|
126
|
+
children: /* @__PURE__ */ g(ee, {
|
|
127
|
+
title: v("billing.serverError.title", "Server Unavailable"),
|
|
128
|
+
message: v("billing.overview.serverUnavailableMessage", "Unable to load billing overview. The server might be down or experiencing issues."),
|
|
126
129
|
onRetry: Ye,
|
|
127
130
|
showRetry: !0
|
|
128
131
|
})
|
|
129
|
-
}) :
|
|
132
|
+
}) : H && !R ? /* @__PURE__ */ g("div", {
|
|
130
133
|
className: "flex items-center justify-center min-h-[400px]",
|
|
131
|
-
children: /* @__PURE__ */
|
|
134
|
+
children: /* @__PURE__ */ _("div", {
|
|
132
135
|
className: "flex flex-col items-center gap-3",
|
|
133
|
-
children: [/* @__PURE__ */
|
|
136
|
+
children: [/* @__PURE__ */ g(be, { className: "size-8 animate-spin text-text-link" }), /* @__PURE__ */ g("p", {
|
|
134
137
|
className: "text-sm text-text-secondary",
|
|
135
|
-
children:
|
|
138
|
+
children: v("billing.overview.loadingInfo", "Loading billing information...")
|
|
136
139
|
})]
|
|
137
140
|
})
|
|
138
|
-
}) : !
|
|
141
|
+
}) : !H && L.length === 0 && !R ? /* @__PURE__ */ _("div", {
|
|
139
142
|
className: "px-4 sm:px-6 lg:px-8 py-4 sm:py-6",
|
|
140
143
|
children: [
|
|
141
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ _("header", {
|
|
142
145
|
className: "relative overflow-hidden mb-6 sm:mb-8 rounded-card",
|
|
143
146
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ g(Ce, { intensity: "subtle" }),
|
|
148
|
+
/* @__PURE__ */ g("h1", {
|
|
146
149
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
147
|
-
children: /* @__PURE__ */
|
|
150
|
+
children: /* @__PURE__ */ g(De, { children: v("billing.overview.title", "Billing Overview") })
|
|
148
151
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ g("p", {
|
|
150
153
|
className: "text-sm text-text-secondary mt-1",
|
|
151
|
-
children:
|
|
154
|
+
children: v("billing.overview.emptySetupDescription", "Set up billing to manage subscriptions, payments, and invoices")
|
|
152
155
|
})
|
|
153
156
|
]
|
|
154
157
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ g(Oe, {
|
|
156
159
|
illustration: "onboarding",
|
|
157
|
-
title:
|
|
158
|
-
description:
|
|
159
|
-
action:
|
|
160
|
+
title: v("billing.overview.emptyTitle", "No billing account"),
|
|
161
|
+
description: v("billing.overview.emptyDescription", "Create a billing account to start managing your subscriptions and payments"),
|
|
162
|
+
action: S.canManageBillingAccount ? /* @__PURE__ */ _("button", {
|
|
160
163
|
type: "button",
|
|
161
|
-
onClick: () =>
|
|
164
|
+
onClick: () => E(!0),
|
|
162
165
|
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-action-primary-text bg-action-primary-bg rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ g(f, { className: "size-4" }), v("billing.overview.createBillingAccount", "Create Billing Account")]
|
|
164
167
|
}) : void 0
|
|
165
168
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
isOpen:
|
|
169
|
+
/* @__PURE__ */ g(i, {
|
|
170
|
+
isOpen: T,
|
|
168
171
|
onClose: () => {
|
|
169
|
-
|
|
172
|
+
E(!1), O(null);
|
|
170
173
|
},
|
|
171
174
|
onSubmit: Ue,
|
|
172
175
|
isSubmitting: He,
|
|
173
|
-
error:
|
|
176
|
+
error: D
|
|
174
177
|
})
|
|
175
178
|
]
|
|
176
|
-
}) : /* @__PURE__ */
|
|
179
|
+
}) : /* @__PURE__ */ _("div", {
|
|
177
180
|
className: "px-4 sm:px-6 lg:px-8 py-4 sm:py-6 space-y-4 sm:space-y-8",
|
|
178
181
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ _("header", {
|
|
180
183
|
className: "relative overflow-hidden rounded-card flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",
|
|
181
184
|
children: [
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ g(Ce, { intensity: "subtle" }),
|
|
186
|
+
/* @__PURE__ */ _("div", { children: [
|
|
187
|
+
/* @__PURE__ */ g("h1", {
|
|
185
188
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
186
|
-
children: /* @__PURE__ */
|
|
189
|
+
children: /* @__PURE__ */ g(De, { children: v("billing.overview.title", "Billing Overview") })
|
|
187
190
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ g("p", {
|
|
189
192
|
className: "text-sm text-text-secondary mt-1",
|
|
190
|
-
children:
|
|
193
|
+
children: v("billing.overview.description", "Manage your billing accounts, subscriptions, and payment methods")
|
|
191
194
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ g(ke, {
|
|
193
196
|
className: "mt-3",
|
|
194
|
-
children:
|
|
197
|
+
children: v("billing.overview.purpose", "Your billing home base — see your current plan, credit balance and payment methods at a glance, and jump to transactions, usage, credits or new plans. Start here to understand what you are paying for and manage it.")
|
|
195
198
|
})
|
|
196
199
|
] }),
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
primary:
|
|
199
|
-
label:
|
|
200
|
-
onSelect: () =>
|
|
201
|
-
icon: /* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ g(Te, {
|
|
201
|
+
primary: S.canManageBillingAccount && L.length > 0 ? {
|
|
202
|
+
label: v("billing.overview.newAccount", "New Account"),
|
|
203
|
+
onSelect: () => E(!0),
|
|
204
|
+
icon: /* @__PURE__ */ g(f, { className: "size-4" })
|
|
202
205
|
} : void 0,
|
|
203
206
|
actions: [{
|
|
204
|
-
label:
|
|
207
|
+
label: v("billing.overview.refresh", "Refresh"),
|
|
205
208
|
onSelect: () => {
|
|
206
209
|
Ye();
|
|
207
210
|
},
|
|
208
|
-
icon: /* @__PURE__ */
|
|
211
|
+
icon: /* @__PURE__ */ g(p, { className: `size-4 ${H ? "animate-spin" : ""}` })
|
|
209
212
|
}]
|
|
210
213
|
})
|
|
211
214
|
]
|
|
212
215
|
}),
|
|
213
|
-
|
|
216
|
+
L.length > 1 && /* @__PURE__ */ _("div", {
|
|
214
217
|
className: "relative",
|
|
215
218
|
"data-tour": "billing-overview-account-selector",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
219
|
+
children: [/* @__PURE__ */ _("button", {
|
|
217
220
|
type: "button",
|
|
218
|
-
onClick: () =>
|
|
221
|
+
onClick: () => j(!A),
|
|
219
222
|
className: "w-full sm:w-auto flex items-center justify-between gap-3 px-4 py-3 border border-border-seam rounded-card bg-bg-surface hover:bg-bg-sunken hover:border-border-strong transition-all duration-200",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ _("div", {
|
|
221
224
|
className: "flex items-center gap-3",
|
|
222
|
-
children: [/* @__PURE__ */
|
|
225
|
+
children: [/* @__PURE__ */ g("div", {
|
|
223
226
|
className: "size-9 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
224
|
-
children: /* @__PURE__ */
|
|
225
|
-
}), /* @__PURE__ */
|
|
227
|
+
children: /* @__PURE__ */ g(c, { className: "size-4 text-text-link" })
|
|
228
|
+
}), /* @__PURE__ */ _("div", {
|
|
226
229
|
className: "text-left",
|
|
227
|
-
children: [/* @__PURE__ */
|
|
230
|
+
children: [/* @__PURE__ */ g("p", {
|
|
228
231
|
className: "text-sm font-medium text-text-primary",
|
|
229
|
-
children:
|
|
230
|
-
}), /* @__PURE__ */
|
|
232
|
+
children: R?.name || v("billing.overview.selectAccount", "Select Account")
|
|
233
|
+
}), /* @__PURE__ */ g("p", {
|
|
231
234
|
className: "text-xs text-text-secondary",
|
|
232
|
-
children:
|
|
235
|
+
children: R?.email
|
|
233
236
|
})]
|
|
234
237
|
})]
|
|
235
|
-
}), /* @__PURE__ */
|
|
236
|
-
}),
|
|
238
|
+
}), /* @__PURE__ */ g(u, { className: `size-4 text-text-muted transition-transform ${A ? "rotate-180" : ""}` })]
|
|
239
|
+
}), A && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
|
|
237
240
|
className: "fixed inset-0 z-10",
|
|
238
|
-
onClick: () =>
|
|
239
|
-
}), /* @__PURE__ */
|
|
241
|
+
onClick: () => j(!1)
|
|
242
|
+
}), /* @__PURE__ */ g("div", {
|
|
240
243
|
className: "absolute top-full left-0 right-0 sm:right-auto mt-1 w-full sm:w-80 bg-bg-elevated border border-border-seam rounded-card shadow-elevation-3 z-20 py-1 max-h-60 overflow-y-auto",
|
|
241
|
-
children:
|
|
244
|
+
children: L.map((e) => /* @__PURE__ */ _("button", {
|
|
242
245
|
type: "button",
|
|
243
246
|
onClick: () => Je(e),
|
|
244
247
|
className: "w-full flex items-center justify-between gap-3 px-4 py-3 hover:bg-bg-sunken transition-colors",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ _("div", {
|
|
246
249
|
className: "flex items-center gap-3 min-w-0",
|
|
247
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ g("div", {
|
|
248
251
|
className: "size-9 rounded-lg bg-bg-sunken flex items-center justify-center flex-shrink-0",
|
|
249
|
-
children: /* @__PURE__ */
|
|
250
|
-
}), /* @__PURE__ */
|
|
252
|
+
children: /* @__PURE__ */ g(c, { className: "size-4 text-text-secondary" })
|
|
253
|
+
}), /* @__PURE__ */ _("div", {
|
|
251
254
|
className: "text-left min-w-0",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
255
|
+
children: [/* @__PURE__ */ g("p", {
|
|
253
256
|
className: "text-sm font-medium text-text-primary truncate",
|
|
254
257
|
children: e.name
|
|
255
|
-
}), /* @__PURE__ */
|
|
258
|
+
}), /* @__PURE__ */ g("p", {
|
|
256
259
|
className: "text-xs text-text-secondary truncate",
|
|
257
260
|
children: e.email
|
|
258
261
|
})]
|
|
259
262
|
})]
|
|
260
|
-
}),
|
|
263
|
+
}), R?.id === e.id && /* @__PURE__ */ g(l, { className: "size-4 text-text-link flex-shrink-0" })]
|
|
261
264
|
}, e.id))
|
|
262
265
|
})] })]
|
|
263
266
|
}),
|
|
264
|
-
|
|
267
|
+
R && /* @__PURE__ */ _("div", {
|
|
265
268
|
className: "grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4",
|
|
266
269
|
"data-tour": "billing-overview-stats-row",
|
|
267
270
|
children: [
|
|
268
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ g(r, {
|
|
269
272
|
className: "p-3 sm:p-5",
|
|
270
|
-
label:
|
|
271
|
-
value: `${(
|
|
272
|
-
icon: /* @__PURE__ */
|
|
273
|
+
label: v("billing.overview.stats.creditBalance", "Credit Balance"),
|
|
274
|
+
value: `${(R.creditAmount || 0).toLocaleString()} Credits`,
|
|
275
|
+
icon: /* @__PURE__ */ g(m, { className: "size-5" })
|
|
273
276
|
}),
|
|
274
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ g(r, {
|
|
275
278
|
className: "p-3 sm:p-5",
|
|
276
|
-
label:
|
|
277
|
-
value:
|
|
278
|
-
icon: /* @__PURE__ */
|
|
279
|
+
label: v("billing.overview.stats.activePlans", "Active Plans"),
|
|
280
|
+
value: B.length > 0 ? B.length === 1 ? B[0]?.plan?.name || "1 Plan" : `${B.length} ${v("billing.overview.stats.plansSuffix", "Plans")}` : v("billing.overview.stats.none", "None"),
|
|
281
|
+
icon: /* @__PURE__ */ g(p, { className: "size-5" })
|
|
279
282
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ g(r, {
|
|
281
284
|
className: "p-3 sm:p-5",
|
|
282
|
-
label:
|
|
283
|
-
value:
|
|
284
|
-
icon: /* @__PURE__ */
|
|
285
|
+
label: v("billing.overview.stats.paymentMethods", "Payment Methods"),
|
|
286
|
+
value: z.length,
|
|
287
|
+
icon: /* @__PURE__ */ g(c, { className: "size-5" })
|
|
285
288
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ g(r, {
|
|
287
290
|
className: "p-3 sm:p-5",
|
|
288
|
-
label:
|
|
289
|
-
value:
|
|
290
|
-
icon: /* @__PURE__ */
|
|
291
|
+
label: v("billing.overview.stats.paymentCurrency", "Payment Currency"),
|
|
292
|
+
value: R.currency || "USD",
|
|
293
|
+
icon: /* @__PURE__ */ g(c, { className: "size-5" })
|
|
291
294
|
})
|
|
292
295
|
]
|
|
293
296
|
}),
|
|
294
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ _("div", {
|
|
295
298
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-4 sm:gap-6",
|
|
296
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ _("div", {
|
|
297
300
|
className: "lg:col-span-2 space-y-4 sm:space-y-6",
|
|
298
301
|
children: [
|
|
299
|
-
|
|
302
|
+
R && /* @__PURE__ */ g(se, {
|
|
300
303
|
dataTour: "billing-overview-billing-account-card",
|
|
301
|
-
account:
|
|
302
|
-
isDefault:
|
|
303
|
-
onEdit: () =>
|
|
304
|
-
onViewTransactions: () => Q(`/transactions/${
|
|
305
|
-
onViewCreditTransactions: () => Q(`/creditTransactions/${
|
|
304
|
+
account: R,
|
|
305
|
+
isDefault: R.isDefault ?? !1,
|
|
306
|
+
onEdit: () => R && Q(`/settings?billingAccountId=${R.id}`),
|
|
307
|
+
onViewTransactions: () => Q(`/transactions/${R.id}`),
|
|
308
|
+
onViewCreditTransactions: () => Q(`/creditTransactions/${R.id}`)
|
|
306
309
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ _("div", {
|
|
308
311
|
className: "space-y-3",
|
|
309
|
-
children: [
|
|
312
|
+
children: [B.length > 1 && /* @__PURE__ */ _("div", {
|
|
310
313
|
className: "relative",
|
|
311
|
-
children: [/* @__PURE__ */
|
|
314
|
+
children: [/* @__PURE__ */ _("button", {
|
|
312
315
|
type: "button",
|
|
313
|
-
onClick: () =>
|
|
316
|
+
onClick: () => I(!F),
|
|
314
317
|
className: "w-full sm:w-auto flex items-center justify-between gap-3 px-4 py-3 border border-border-seam rounded-card bg-bg-surface hover:bg-bg-sunken hover:border-border-strong transition-all duration-200",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
318
|
+
children: [/* @__PURE__ */ _("div", {
|
|
316
319
|
className: "flex items-center gap-3",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
320
|
+
children: [/* @__PURE__ */ g("div", {
|
|
318
321
|
className: "size-9 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
319
|
-
children: /* @__PURE__ */
|
|
320
|
-
}), /* @__PURE__ */
|
|
322
|
+
children: /* @__PURE__ */ g(d, { className: "size-4 text-text-link" })
|
|
323
|
+
}), /* @__PURE__ */ _("div", {
|
|
321
324
|
className: "text-left",
|
|
322
|
-
children: [/* @__PURE__ */
|
|
325
|
+
children: [/* @__PURE__ */ _("p", {
|
|
323
326
|
className: "text-sm font-medium text-text-primary",
|
|
324
|
-
children: [Z?.plan?.name ||
|
|
327
|
+
children: [Z?.plan?.name || v("billing.overview.selectSubscription", "Select Subscription"), Z?.plan?.product?.name && /* @__PURE__ */ _("span", {
|
|
325
328
|
className: "text-text-secondary font-normal",
|
|
326
329
|
children: [
|
|
327
330
|
" ",
|
|
@@ -329,152 +332,152 @@ var y = () => {
|
|
|
329
332
|
Z.plan.product.name
|
|
330
333
|
]
|
|
331
334
|
})]
|
|
332
|
-
}), /* @__PURE__ */
|
|
335
|
+
}), /* @__PURE__ */ _("p", {
|
|
333
336
|
className: "text-xs text-text-secondary",
|
|
334
337
|
children: [
|
|
335
|
-
|
|
338
|
+
B.length,
|
|
336
339
|
" ",
|
|
337
|
-
|
|
340
|
+
v("billing.overview.activeSubscriptions", "active subscriptions")
|
|
338
341
|
]
|
|
339
342
|
})]
|
|
340
343
|
})]
|
|
341
|
-
}), /* @__PURE__ */
|
|
342
|
-
}),
|
|
344
|
+
}), /* @__PURE__ */ g(u, { className: `size-4 text-text-muted transition-transform ${F ? "rotate-180" : ""}` })]
|
|
345
|
+
}), F && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
|
|
343
346
|
className: "fixed inset-0 z-10",
|
|
344
|
-
onClick: () =>
|
|
345
|
-
}), /* @__PURE__ */
|
|
347
|
+
onClick: () => I(!1)
|
|
348
|
+
}), /* @__PURE__ */ g("div", {
|
|
346
349
|
className: "absolute top-full left-0 right-0 sm:right-auto mt-1 w-full sm:w-80 bg-bg-elevated border border-border-seam rounded-card shadow-elevation-3 z-20 py-1 max-h-60 overflow-y-auto",
|
|
347
|
-
children:
|
|
350
|
+
children: B.map((e, t) => /* @__PURE__ */ _("button", {
|
|
348
351
|
type: "button",
|
|
349
352
|
onClick: () => {
|
|
350
|
-
|
|
353
|
+
P(t), I(!1);
|
|
351
354
|
},
|
|
352
355
|
className: "w-full flex items-center justify-between gap-3 px-4 py-3 hover:bg-bg-sunken transition-colors",
|
|
353
|
-
children: [/* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ _("div", {
|
|
354
357
|
className: "flex items-center gap-3 min-w-0",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
358
|
+
children: [/* @__PURE__ */ g("div", {
|
|
356
359
|
className: "size-9 rounded-lg bg-bg-sunken flex items-center justify-center flex-shrink-0",
|
|
357
|
-
children: /* @__PURE__ */
|
|
358
|
-
}), /* @__PURE__ */
|
|
360
|
+
children: /* @__PURE__ */ g(d, { className: "size-4 text-text-secondary" })
|
|
361
|
+
}), /* @__PURE__ */ _("div", {
|
|
359
362
|
className: "text-left min-w-0",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ g("p", {
|
|
361
364
|
className: "text-sm font-medium text-text-primary truncate",
|
|
362
|
-
children: e.plan?.name ||
|
|
363
|
-
}), /* @__PURE__ */
|
|
365
|
+
children: e.plan?.name || v("billing.overview.subscription", "Subscription")
|
|
366
|
+
}), /* @__PURE__ */ _("p", {
|
|
364
367
|
className: "text-xs text-text-secondary truncate",
|
|
365
368
|
children: [
|
|
366
|
-
e.plan?.product?.name ||
|
|
369
|
+
e.plan?.product?.name || v("billing.overview.unknownProduct", "Unknown Product"),
|
|
367
370
|
" ",
|
|
368
371
|
"· ",
|
|
369
|
-
|
|
372
|
+
v("billing.overview.ends", "Ends"),
|
|
370
373
|
" ",
|
|
371
374
|
new Date(e.endDate).toLocaleDateString()
|
|
372
375
|
]
|
|
373
376
|
})]
|
|
374
377
|
})]
|
|
375
|
-
}),
|
|
378
|
+
}), N === t && /* @__PURE__ */ g(l, { className: "size-4 text-text-link flex-shrink-0" })]
|
|
376
379
|
}, e.id))
|
|
377
380
|
})] })]
|
|
378
|
-
}), /* @__PURE__ */
|
|
381
|
+
}), /* @__PURE__ */ g(le, {
|
|
379
382
|
dataTour: "billing-overview-active-subscription-card",
|
|
380
383
|
subscription: Z,
|
|
381
|
-
onViewDetails: () => Z && Q(
|
|
382
|
-
onUpgrade: () => Z && Q(
|
|
383
|
-
onManage: () =>
|
|
384
|
+
onViewDetails: () => Z && Q(he(`/subscriptions/${Z.id}`, Z.billingAccountId ?? R?.id)),
|
|
385
|
+
onUpgrade: () => Z && Q(he(`/subscriptions/${Z.id}/upgrade`, Z.billingAccountId ?? R?.id)),
|
|
386
|
+
onManage: () => R && Q(`/subscriptions?billingAccountId=${R.id}`),
|
|
384
387
|
onPurchasePlan: () => Q("/plans")
|
|
385
388
|
})]
|
|
386
389
|
}),
|
|
387
|
-
|
|
390
|
+
R && /* @__PURE__ */ g(ce, {
|
|
388
391
|
dataTour: "billing-overview-payment-methods-section",
|
|
389
|
-
paymentMethods:
|
|
390
|
-
billingAccountId:
|
|
392
|
+
paymentMethods: z,
|
|
393
|
+
billingAccountId: R.id,
|
|
391
394
|
onAddPaymentMethod: We,
|
|
392
395
|
onSetDefault: Ke,
|
|
393
396
|
onDelete: qe,
|
|
394
|
-
isLoading:
|
|
397
|
+
isLoading: H
|
|
395
398
|
})
|
|
396
399
|
]
|
|
397
|
-
}), /* @__PURE__ */
|
|
400
|
+
}), /* @__PURE__ */ _("div", {
|
|
398
401
|
className: "space-y-4 sm:space-y-6",
|
|
399
|
-
children: [/* @__PURE__ */
|
|
402
|
+
children: [/* @__PURE__ */ _("section", {
|
|
400
403
|
className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 p-4 sm:p-5",
|
|
401
404
|
"data-tour": "billing-overview-quick-actions",
|
|
402
|
-
children: [/* @__PURE__ */
|
|
405
|
+
children: [/* @__PURE__ */ g("h3", {
|
|
403
406
|
className: "font-semibold text-text-primary mb-4",
|
|
404
|
-
children:
|
|
405
|
-
}), /* @__PURE__ */
|
|
407
|
+
children: v("billing.overview.quickActions", "Quick Actions")
|
|
408
|
+
}), /* @__PURE__ */ _("div", {
|
|
406
409
|
className: "space-y-1.5",
|
|
407
410
|
children: [
|
|
408
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ _("button", {
|
|
409
412
|
type: "button",
|
|
410
|
-
onClick: () =>
|
|
411
|
-
disabled: !
|
|
413
|
+
onClick: () => R && Q(`/transactions/${R.id}`),
|
|
414
|
+
disabled: !R,
|
|
412
415
|
className: "w-full flex items-center gap-3 px-3 py-2.5 text-sm text-left text-text-primary hover:bg-bg-sunken rounded-button transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
413
|
-
children: [/* @__PURE__ */
|
|
416
|
+
children: [/* @__PURE__ */ g("div", {
|
|
414
417
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
415
|
-
children: /* @__PURE__ */
|
|
416
|
-
}),
|
|
418
|
+
children: /* @__PURE__ */ g(xe, { className: "size-4 text-status-info-text" })
|
|
419
|
+
}), v("billing.overview.viewTransactions", "View Transactions")]
|
|
417
420
|
}),
|
|
418
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ _("button", {
|
|
419
422
|
type: "button",
|
|
420
|
-
onClick: () =>
|
|
421
|
-
disabled: !
|
|
423
|
+
onClick: () => R && Q(`/creditTransactions/${R.id}`),
|
|
424
|
+
disabled: !R,
|
|
422
425
|
className: "w-full flex items-center gap-3 px-3 py-2.5 text-sm text-left text-text-primary hover:bg-bg-sunken rounded-button transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
423
|
-
children: [/* @__PURE__ */
|
|
426
|
+
children: [/* @__PURE__ */ g("div", {
|
|
424
427
|
className: "size-9 rounded-lg bg-status-warning-bg-subtle flex items-center justify-center",
|
|
425
|
-
children: /* @__PURE__ */
|
|
426
|
-
}),
|
|
428
|
+
children: /* @__PURE__ */ g(m, { className: "size-4 text-status-warning-text" })
|
|
429
|
+
}), v("billing.overview.creditHistory", "Credit History")]
|
|
427
430
|
}),
|
|
428
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ _("button", {
|
|
429
432
|
type: "button",
|
|
430
433
|
onClick: () => Q("/checkout/credits"),
|
|
431
434
|
className: "w-full flex items-center gap-3 px-3 py-2.5 text-sm text-left text-text-primary hover:bg-bg-sunken rounded-button transition-colors",
|
|
432
|
-
children: [/* @__PURE__ */
|
|
435
|
+
children: [/* @__PURE__ */ g("div", {
|
|
433
436
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
434
|
-
children: /* @__PURE__ */
|
|
435
|
-
}),
|
|
437
|
+
children: /* @__PURE__ */ g(ye, { className: "size-4 text-status-success-text" })
|
|
438
|
+
}), v("billing.overview.purchaseCredits", "Purchase Credits")]
|
|
436
439
|
}),
|
|
437
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ _("button", {
|
|
438
441
|
type: "button",
|
|
439
|
-
onClick: () =>
|
|
440
|
-
disabled: !
|
|
442
|
+
onClick: () => R && Q(`/usage?billingAccountId=${R.id}`),
|
|
443
|
+
disabled: !R,
|
|
441
444
|
className: "w-full flex items-center gap-3 px-3 py-2.5 text-sm text-left text-text-primary hover:bg-bg-sunken rounded-button transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
445
|
+
children: [/* @__PURE__ */ g("div", {
|
|
443
446
|
className: "size-9 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
444
|
-
children: /* @__PURE__ */
|
|
445
|
-
}),
|
|
447
|
+
children: /* @__PURE__ */ g(_e, { className: "size-4 text-text-link" })
|
|
448
|
+
}), v("billing.overview.usageAnalytics", "Usage Analytics")]
|
|
446
449
|
})
|
|
447
450
|
]
|
|
448
451
|
})]
|
|
449
|
-
}), !
|
|
452
|
+
}), !V && /* @__PURE__ */ _(Ee, {
|
|
450
453
|
treatment: "glass",
|
|
451
454
|
glow: !0,
|
|
452
455
|
className: "p-4 sm:p-5",
|
|
453
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ _("div", {
|
|
454
457
|
className: "flex items-start gap-3 mb-4",
|
|
455
|
-
children: [/* @__PURE__ */
|
|
458
|
+
children: [/* @__PURE__ */ g("div", {
|
|
456
459
|
className: "size-10 rounded-lg bg-bg-surface flex items-center justify-center flex-shrink-0 shadow-elevation-1",
|
|
457
|
-
children: /* @__PURE__ */
|
|
458
|
-
}), /* @__PURE__ */
|
|
460
|
+
children: /* @__PURE__ */ g(Se, { className: "size-5 text-text-link" })
|
|
461
|
+
}), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h3", {
|
|
459
462
|
className: "font-semibold text-text-primary",
|
|
460
|
-
children:
|
|
461
|
-
}), /* @__PURE__ */
|
|
463
|
+
children: v("billing.overview.getStarted", "Get Started")
|
|
464
|
+
}), /* @__PURE__ */ g("p", {
|
|
462
465
|
className: "text-sm text-text-secondary mt-1",
|
|
463
|
-
children:
|
|
466
|
+
children: v("billing.overview.getStartedDescription", "Choose a plan that fits your needs to unlock all features")
|
|
464
467
|
})] })]
|
|
465
|
-
}), /* @__PURE__ */
|
|
468
|
+
}), /* @__PURE__ */ _(we, {
|
|
466
469
|
type: "button",
|
|
467
470
|
onClick: () => Q("/plans"),
|
|
468
471
|
className: "w-full",
|
|
469
|
-
children: [
|
|
472
|
+
children: [v("billing.overview.browsePlans", "Browse Plans"), /* @__PURE__ */ g(ve, { className: "size-4" })]
|
|
470
473
|
})]
|
|
471
474
|
})]
|
|
472
475
|
})]
|
|
473
476
|
}),
|
|
474
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ g(ue, {
|
|
475
478
|
dataTour: "billing-overview-recommended-addons",
|
|
476
|
-
addons:
|
|
477
|
-
hasSubscription:
|
|
479
|
+
addons: Fe,
|
|
480
|
+
hasSubscription: V,
|
|
478
481
|
onViewAddon: (e) => Q(`/addons/${e}`),
|
|
479
482
|
onPurchaseAddon: (e) => Q(`/addons/${e}?action=purchase`),
|
|
480
483
|
onViewAllAddons: () => Q("/addons"),
|
|
@@ -484,31 +487,30 @@ var y = () => {
|
|
|
484
487
|
onUpdateQuantity: $e,
|
|
485
488
|
onRemoveFromCart: et,
|
|
486
489
|
maxAddons: 3,
|
|
487
|
-
isLoading:
|
|
490
|
+
isLoading: Ie
|
|
488
491
|
}),
|
|
489
|
-
/* @__PURE__ */
|
|
490
|
-
|
|
491
|
-
/* @__PURE__ */
|
|
492
|
-
isOpen:
|
|
492
|
+
/* @__PURE__ */ g(fe, {}),
|
|
493
|
+
Ne && /* @__PURE__ */ g(ne, { onDismiss: () => k(!1) }),
|
|
494
|
+
/* @__PURE__ */ g(i, {
|
|
495
|
+
isOpen: T,
|
|
493
496
|
onClose: () => {
|
|
494
|
-
|
|
497
|
+
E(!1), O(null);
|
|
495
498
|
},
|
|
496
499
|
onSubmit: Ue,
|
|
497
500
|
isSubmitting: He,
|
|
498
|
-
error:
|
|
501
|
+
error: D
|
|
499
502
|
}),
|
|
500
|
-
|
|
501
|
-
isOpen:
|
|
502
|
-
onClose: () =>
|
|
503
|
-
billingAccountId:
|
|
504
|
-
currency:
|
|
505
|
-
country:
|
|
503
|
+
R && /* @__PURE__ */ g(de, {
|
|
504
|
+
isOpen: Pe,
|
|
505
|
+
onClose: () => M(!1),
|
|
506
|
+
billingAccountId: R.id,
|
|
507
|
+
currency: R.currency,
|
|
508
|
+
country: R.billingAddresses?.[0]?.country,
|
|
506
509
|
onSuccess: Ge
|
|
507
510
|
})
|
|
508
511
|
]
|
|
509
|
-
}) : /* @__PURE__ */
|
|
512
|
+
}) : /* @__PURE__ */ g(te, { message: "You don't have permission to view billing information." });
|
|
510
513
|
};
|
|
511
|
-
|
|
512
|
-
export { y as OverviewPage };
|
|
514
|
+
export { v as OverviewPage };
|
|
513
515
|
|
|
514
516
|
//# sourceMappingURL=OverviewPage.js.map
|