@burdenoff/microfe-billing 2026.1030.1 → 2026.1101.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 +6 -0
- package/dist/billing/BillingAdminRoutes.d.ts.map +1 -0
- package/dist/billing/BillingRoot.d.ts +36 -0
- package/dist/billing/BillingRoot.d.ts.map +1 -0
- package/dist/billing/BillingUserRoutes.d.ts +7 -0
- package/dist/billing/BillingUserRoutes.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingAccountSelection.d.ts +36 -0
- package/dist/billing/hooks/useBillingAccountSelection.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingEventEmitter.d.ts +7 -0
- package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingNavigate.d.ts +30 -0
- package/dist/billing/hooks/useBillingNavigate.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingPermissions.d.ts +106 -0
- package/dist/billing/hooks/useBillingPermissions.d.ts.map +1 -0
- package/dist/billing/hooks/useDefaultBillingCurrency.d.ts +14 -0
- package/dist/billing/hooks/useDefaultBillingCurrency.d.ts.map +1 -0
- package/dist/billing/hooks/useProducts.d.ts +18 -0
- package/dist/billing/hooks/useProducts.d.ts.map +1 -0
- package/dist/billing/index.d.ts +31 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/lib/native-purchases.d.ts +10 -0
- package/dist/billing/lib/native-purchases.d.ts.map +1 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +3 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/index.d.ts +8 -0
- package/dist/billing/modules/addons/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts +23 -0
- package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/useAddons.d.ts +54 -0
- package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +1 -0
- package/dist/billing/modules/addons/index.d.ts +7 -0
- package/dist/billing/modules/addons/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/index.d.ts +11 -0
- package/dist/billing/modules/addons/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/store/addonCartStore.d.ts +37 -0
- package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/api.d.ts +101 -0
- package/dist/billing/modules/affiliate/api.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/index.d.ts +2 -0
- package/dist/billing/modules/affiliate/index.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +3 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +1 -0
- package/dist/billing/modules/analytics/index.d.ts +5 -0
- package/dist/billing/modules/analytics/index.d.ts.map +1 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +3 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +1 -0
- package/dist/billing/modules/analytics/pages/index.d.ts +5 -0
- package/dist/billing/modules/analytics/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/index.d.ts +12 -0
- package/dist/billing/modules/billing/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts +76 -0
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts +57 -0
- package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/usePayments.d.ts +61 -0
- package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts +216 -0
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts +40 -0
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +1 -0
- package/dist/billing/modules/billing/index.d.ts +7 -0
- package/dist/billing/modules/billing/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/index.d.ts +14 -0
- package/dist/billing/modules/billing/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +13 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +13 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +13 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts +23 -0
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +13 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +15 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +18 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +13 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts +36 -0
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +18 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +18 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +34 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +12 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +12 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts +17 -0
- package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +15 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +25 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +28 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts +11 -0
- package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts +30 -0
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/index.d.ts +24 -0
- package/dist/billing/modules/checkout/components/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/index.d.ts +9 -0
- package/dist/billing/modules/checkout/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +78 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +25 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts +19 -0
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts +59 -0
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts +122 -0
- package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts.map +1 -0
- package/dist/billing/modules/checkout/index.d.ts +24 -0
- package/dist/billing/modules/checkout/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +3 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +1 -0
- package/dist/billing/modules/checkout/pages/index.d.ts +5 -0
- package/dist/billing/modules/checkout/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/types/index.d.ts +279 -0
- package/dist/billing/modules/checkout/types/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts +19 -0
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +1 -0
- package/dist/billing/modules/coupons/index.d.ts +5 -0
- package/dist/billing/modules/coupons/index.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +3 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +3 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +3 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +3 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/index.d.ts +8 -0
- package/dist/billing/modules/coupons/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/credits/hooks/index.d.ts +5 -0
- package/dist/billing/modules/credits/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/credits/hooks/useCredits.d.ts +74 -0
- package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +1 -0
- package/dist/billing/modules/credits/index.d.ts +6 -0
- package/dist/billing/modules/credits/index.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +3 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +3 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +3 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts +3 -0
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/index.d.ts +8 -0
- package/dist/billing/modules/credits/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +15 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +71 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +17 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +12 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +16 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +28 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/index.d.ts +10 -0
- package/dist/billing/modules/dashboard/components/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/index.d.ts +6 -0
- package/dist/billing/modules/dashboard/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +16 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +144 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/index.d.ts +8 -0
- package/dist/billing/modules/dashboard/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +3 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/pages/index.d.ts +5 -0
- package/dist/billing/modules/dashboard/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/discounts/index.d.ts +6 -0
- package/dist/billing/modules/discounts/index.d.ts.map +1 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +3 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +1 -0
- package/dist/billing/modules/discounts/pages/index.d.ts +6 -0
- package/dist/billing/modules/discounts/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/earnings/api.d.ts +226 -0
- package/dist/billing/modules/earnings/api.d.ts.map +1 -0
- package/dist/billing/modules/earnings/index.d.ts +6 -0
- package/dist/billing/modules/earnings/index.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/constants/enterprise.d.ts +20 -0
- package/dist/billing/modules/plans/constants/enterprise.d.ts.map +1 -0
- package/dist/billing/modules/plans/constants/featuredQuotas.d.ts +10 -0
- package/dist/billing/modules/plans/constants/featuredQuotas.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/index.d.ts +7 -0
- package/dist/billing/modules/plans/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/usePlans.d.ts +45 -0
- package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts +26 -0
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +1 -0
- package/dist/billing/modules/plans/index.d.ts +7 -0
- package/dist/billing/modules/plans/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.js +90 -92
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/index.d.ts +12 -0
- package/dist/billing/modules/plans/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts +3 -0
- package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts.map +1 -0
- package/dist/billing/modules/plans/utils/planSelector.d.ts +3 -0
- package/dist/billing/modules/plans/utils/planSelector.d.ts.map +1 -0
- package/dist/billing/modules/promotions/index.d.ts +2 -0
- package/dist/billing/modules/promotions/index.d.ts.map +1 -0
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts +3 -0
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts.map +1 -0
- package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts +3 -0
- package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts.map +1 -0
- package/dist/billing/modules/promotions/pages/index.d.ts +3 -0
- package/dist/billing/modules/promotions/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/index.d.ts +6 -0
- package/dist/billing/modules/quota/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuota.d.ts +132 -0
- package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +38 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +1 -0
- package/dist/billing/modules/quota/index.d.ts +6 -0
- package/dist/billing/modules/quota/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/index.d.ts +10 -0
- package/dist/billing/modules/quota/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/utils/quotaSelector.d.ts +4 -0
- package/dist/billing/modules/quota/utils/quotaSelector.d.ts.map +1 -0
- package/dist/billing/modules/settings/index.d.ts +5 -0
- package/dist/billing/modules/settings/index.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts +3 -0
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +3 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/index.d.ts +6 -0
- package/dist/billing/modules/settings/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/store/graphql/index.d.ts +6 -0
- package/dist/billing/modules/store/graphql/index.d.ts.map +1 -0
- package/dist/billing/modules/store/index.d.ts +6 -0
- package/dist/billing/modules/store/index.d.ts.map +1 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +10 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +11 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/hooks/index.d.ts +6 -0
- package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +91 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/index.d.ts +7 -0
- package/dist/billing/modules/subscriptions/index.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +3 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +3 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +3 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/index.d.ts +8 -0
- package/dist/billing/modules/subscriptions/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts +7 -0
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts.map +1 -0
- package/dist/billing/modules/usage/hooks/index.d.ts +6 -0
- package/dist/billing/modules/usage/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/hooks/useUsage.d.ts +316 -0
- package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +1 -0
- package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts +13 -0
- package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts.map +1 -0
- package/dist/billing/modules/usage/index.d.ts +6 -0
- package/dist/billing/modules/usage/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/pages/UsagePage.d.ts +3 -0
- package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +1 -0
- package/dist/billing/modules/usage/pages/index.d.ts +5 -0
- package/dist/billing/modules/usage/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/utils/aiSpend.d.ts +71 -0
- package/dist/billing/modules/usage/utils/aiSpend.d.ts.map +1 -0
- package/dist/billing/providers/BillingProvider.d.ts +20 -0
- package/dist/billing/providers/BillingProvider.d.ts.map +1 -0
- package/dist/billing/shared/components/AccessDenied.d.ts +7 -0
- package/dist/billing/shared/components/AccessDenied.d.ts.map +1 -0
- package/dist/billing/shared/components/ActorIdentity.d.ts +9 -0
- package/dist/billing/shared/components/ActorIdentity.d.ts.map +1 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +10 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +1 -0
- package/dist/billing/shared/components/EmptyState.d.ts +10 -0
- package/dist/billing/shared/components/EmptyState.d.ts.map +1 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +10 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +1 -0
- package/dist/billing/shared/components/PageHeader.d.ts +10 -0
- package/dist/billing/shared/components/PageHeader.d.ts.map +1 -0
- package/dist/billing/shared/components/PushPermissionNudge.d.ts +7 -0
- package/dist/billing/shared/components/PushPermissionNudge.d.ts.map +1 -0
- package/dist/billing/shared/components/ServerError.d.ts +10 -0
- package/dist/billing/shared/components/ServerError.d.ts.map +1 -0
- package/dist/billing/shared/components/StatCard.d.ts +14 -0
- package/dist/billing/shared/components/StatCard.d.ts.map +1 -0
- package/dist/billing/shared/components/index.d.ts +13 -0
- package/dist/billing/shared/components/index.d.ts.map +1 -0
- package/dist/billing/shared/hooks/index.d.ts +4 -0
- package/dist/billing/shared/hooks/index.d.ts.map +1 -0
- package/dist/billing/shared/hooks/useActorProfiles.d.ts +17 -0
- package/dist/billing/shared/hooks/useActorProfiles.d.ts.map +1 -0
- package/dist/billing/shared/hooks/useTr.d.ts +17 -0
- package/dist/billing/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/billing/shared/index.d.ts +9 -0
- package/dist/billing/shared/index.d.ts.map +1 -0
- package/dist/billing/shared/types/graphql.d.ts +946 -0
- package/dist/billing/shared/types/graphql.d.ts.map +1 -0
- package/dist/billing/shared/types/index.d.ts +101 -0
- package/dist/billing/shared/types/index.d.ts.map +1 -0
- package/dist/billing/shared/ui/Card.d.ts +17 -0
- package/dist/billing/shared/ui/Card.d.ts.map +1 -0
- package/dist/billing/shared/ui/MetricCard.d.ts +20 -0
- package/dist/billing/shared/ui/MetricCard.d.ts.map +1 -0
- package/dist/billing/shared/ui/ProgressBar.d.ts +15 -0
- package/dist/billing/shared/ui/ProgressBar.d.ts.map +1 -0
- package/dist/billing/shared/ui/SectionHeader.d.ts +15 -0
- package/dist/billing/shared/ui/SectionHeader.d.ts.map +1 -0
- package/dist/billing/shared/ui/StatusPill.d.ts +14 -0
- package/dist/billing/shared/ui/StatusPill.d.ts.map +1 -0
- package/dist/billing/shared/ui/index.d.ts +13 -0
- package/dist/billing/shared/ui/index.d.ts.map +1 -0
- package/dist/billing/shared/utils/directActivityGraphql.d.ts +12 -0
- package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/directBillingGraphql.d.ts +12 -0
- package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/error.d.ts +30 -0
- package/dist/billing/shared/utils/error.d.ts.map +1 -0
- package/dist/billing/shared/utils/format.d.ts +33 -0
- package/dist/billing/shared/utils/format.d.ts.map +1 -0
- package/dist/billing/shared/utils/gatewayGraphql.d.ts +14 -0
- package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/index.d.ts +14 -0
- package/dist/billing/shared/utils/index.d.ts.map +1 -0
- package/dist/billing/shared/utils/navigation.d.ts +2 -0
- package/dist/billing/shared/utils/navigation.d.ts.map +1 -0
- package/dist/billing/shared/utils/paymentTheme.d.ts +18 -0
- package/dist/billing/shared/utils/paymentTheme.d.ts.map +1 -0
- package/dist/billing/shared/utils/planFeatureQuantity.d.ts +40 -0
- package/dist/billing/shared/utils/planFeatureQuantity.d.ts.map +1 -0
- package/dist/billing/shared/utils/status.d.ts +27 -0
- package/dist/billing/shared/utils/status.d.ts.map +1 -0
- package/dist/billing/shared/utils/tokens.d.ts +156 -0
- package/dist/billing/shared/utils/tokens.d.ts.map +1 -0
- package/dist/billing/translations/en.d.ts +534 -0
- package/dist/billing/translations/en.d.ts.map +1 -0
- package/dist/billing/types/index.d.ts +275 -0
- package/dist/billing/types/index.d.ts.map +1 -0
- package/dist/dev/main.d.ts +1 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +10856 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +26958 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +261 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +49193 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayoutsPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/earnings/pages/PayoutsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AA2D3E,eAAO,MAAM,WAAW,EAAE,EAsezB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enterprise "Contact Us" copy for the plans browse page.
|
|
3
|
+
*
|
|
4
|
+
* Enterprise is contact-sales in every product and has no backend plan
|
|
5
|
+
* record, so its card is static. The highlights are product-specific and must
|
|
6
|
+
* match the product website's Enterprise card, so a FluidGrids shell never
|
|
7
|
+
* shows VibeControls wording (and vice versa). Products without curated copy
|
|
8
|
+
* fall back to product-neutral highlights.
|
|
9
|
+
*/
|
|
10
|
+
export interface EnterpriseOffer {
|
|
11
|
+
/** Bullet points on the grid card, in display order. */
|
|
12
|
+
highlights: readonly string[];
|
|
13
|
+
/** One-line summary for the compact list row. */
|
|
14
|
+
summary: string;
|
|
15
|
+
/** Sales inbox the Contact Us button opens. */
|
|
16
|
+
contactEmail: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function getEnterpriseOffer(productId: string | null | undefined): EnterpriseOffer;
|
|
19
|
+
export declare function enterpriseMailto(offer: EnterpriseOffer): string;
|
|
20
|
+
//# sourceMappingURL=enterprise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enterprise.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/constants/enterprise.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAC;CACtB;AAqID,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,eAAe,CAMxF;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAE/D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The subset of quotas shown prominently on plan cards.
|
|
3
|
+
* Order here determines display order. All other quotas are shown only on
|
|
4
|
+
* the plan detail page.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FEATURED_QUOTA_NAMES: readonly ["vibecontrols.agents.count", "vibecontrols.sessions.active", "vibecontrols.vibes.count", "vibecontrols.sandbox.runtime_hours", "vibecontrols.tunnels.custom_domains", "vibecontrols.audit.retention_days", "vibecontrols.actions.count", "vibecontrols.vibedeck.boards", "vibecontrols.scheduler.executions", "vibecontrols.security.vaults", "vibecontrols.catalogs.count", "vibecontrols.docs.compilations", "vibecontrols.organizations.count"];
|
|
7
|
+
export declare const FEATURED_QUOTA_LABELS: Record<string, string>;
|
|
8
|
+
/** Format a featured quota value for display (e.g. hours → minutes, days suffix). */
|
|
9
|
+
export declare function formatFeaturedQuotaValue(name: string, value: number): string;
|
|
10
|
+
//# sourceMappingURL=featuredQuotas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featuredQuotas.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/constants/featuredQuotas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,8bAcvB,CAAC;AAEX,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAcxD,CAAC;AAEF,qFAAqF;AACrF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAS5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Plan, CreatePlanInput, UpdatePlanInput } from '../../../shared/types';
|
|
2
|
+
interface UsePlansOptions {
|
|
3
|
+
onlyActive?: boolean;
|
|
4
|
+
/** Filter by product ID — pushed to backend query, not client-side. */
|
|
5
|
+
productId?: string;
|
|
6
|
+
/**
|
|
7
|
+
* When false, free plans (price = 0) are excluded at the backend.
|
|
8
|
+
* Use false on user-facing browse pages; omit or set true for admin pages.
|
|
9
|
+
*/
|
|
10
|
+
includeFree?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface UsePlansResult {
|
|
13
|
+
plans: Plan[];
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
error: Error | undefined;
|
|
16
|
+
refetch: () => Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
interface UsePlanResult {
|
|
19
|
+
plan: Plan | null;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
error: Error | undefined;
|
|
22
|
+
refetch: () => Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
interface UsePlanMutationsResult {
|
|
25
|
+
createPlan: (input: CreatePlanInput) => Promise<boolean>;
|
|
26
|
+
updatePlan: (input: UpdatePlanInput) => Promise<boolean>;
|
|
27
|
+
togglePlan: (planId: string, status: boolean) => Promise<boolean>;
|
|
28
|
+
isCreating: boolean;
|
|
29
|
+
isUpdating: boolean;
|
|
30
|
+
isToggling: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Hook for fetching all plans
|
|
34
|
+
*/
|
|
35
|
+
export declare function usePlans(options?: UsePlansOptions): UsePlansResult;
|
|
36
|
+
/**
|
|
37
|
+
* Hook for fetching a single plan by ID
|
|
38
|
+
*/
|
|
39
|
+
export declare function usePlan(id: string | undefined): UsePlanResult;
|
|
40
|
+
/**
|
|
41
|
+
* Hook for plan mutations (create, update, toggle)
|
|
42
|
+
*/
|
|
43
|
+
export declare function usePlanMutations(): UsePlanMutationsResult;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=usePlans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePlans.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/hooks/usePlans.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEpF,UAAU,eAAe;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,cAAc;IACtB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,UAAU,sBAAsB;IAC9B,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACzD,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACzD,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB,GAAG,cAAc,CA6BtE;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,CAiB7D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,sBAAsB,CA0EzD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Quota, CreateQuotaInput, UpdateQuotaInput } from '../../../shared/types';
|
|
2
|
+
interface UseQuotasOptions {
|
|
3
|
+
onlyActive?: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface UseQuotasResult {
|
|
6
|
+
quotas: Quota[];
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
error: Error | undefined;
|
|
9
|
+
refetch: () => Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
interface UseQuotaMutationsResult {
|
|
12
|
+
createQuota: (input: CreateQuotaInput) => Promise<boolean>;
|
|
13
|
+
updateQuota: (input: UpdateQuotaInput) => Promise<boolean>;
|
|
14
|
+
isCreating: boolean;
|
|
15
|
+
isUpdating: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Hook for fetching all quotas
|
|
19
|
+
*/
|
|
20
|
+
export declare function useQuotas(options?: UseQuotasOptions): UseQuotasResult;
|
|
21
|
+
/**
|
|
22
|
+
* Hook for quota mutations (create, update)
|
|
23
|
+
*/
|
|
24
|
+
export declare function useQuotaMutations(): UseQuotaMutationsResult;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useQuotas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQuotas.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/hooks/useQuotas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEvF,UAAU,gBAAgB;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,eAAe;IACvB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,UAAU,uBAAuB;IAC/B,WAAW,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3D,WAAW,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3D,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,GAAE,gBAAqB,GAAG,eAAe,CAwBzE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,uBAAuB,CA8C3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/billing/modules/plans/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlanAssignFreePage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/pages/PlanAssignFreePage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAqB,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AAoBnE,eAAO,MAAM,kBAAkB,EAAE,EAyUhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlanBrowseDetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/pages/PlanBrowseDetailPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAiEzC,eAAO,MAAM,oBAAoB,EAAE,EAwRlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlanCreatePage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/pages/PlanCreatePage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AAkB1D,eAAO,MAAM,cAAc,EAAE,EA2b5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlanDetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/pages/PlanDetailPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAmEzC,eAAO,MAAM,cAAc,EAAE,EAgX5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlanEditPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/plans/pages/PlanEditPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuB,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AA0BrE,eAAO,MAAM,YAAY,EAAE,EAqgB1B,CAAC"}
|
|
@@ -8,34 +8,34 @@ import { isServerError as a } from "../../../shared/utils/error.js";
|
|
|
8
8
|
import { getPlanFeatureQuantity as o } from "../../../shared/utils/planFeatureQuantity.js";
|
|
9
9
|
import "../../../shared/utils/index.js";
|
|
10
10
|
import { useBillingPermissions as s } from "../../../hooks/useBillingPermissions.js";
|
|
11
|
-
import { useBillingNavigate as
|
|
12
|
-
import { usePlan as
|
|
13
|
-
import { useQuotas as
|
|
11
|
+
import { useBillingNavigate as c } from "../../../hooks/useBillingNavigate.js";
|
|
12
|
+
import { usePlan as l, usePlanMutations as u } from "../hooks/usePlans.js";
|
|
13
|
+
import { useQuotas as ee } from "../hooks/useQuotas.js";
|
|
14
14
|
import "../hooks/index.js";
|
|
15
15
|
import { getChangedCurrencyPriceOverrides as d } from "../utils/currencyPriceOverrides.js";
|
|
16
16
|
import { useEffect as f, useState as p } from "react";
|
|
17
17
|
import { useParams as m } from "react-router";
|
|
18
18
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
19
|
-
import { useI18n as
|
|
20
|
-
import { PagePurpose as
|
|
19
|
+
import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
20
|
+
import { PagePurpose as v } from "@burdenoff/fe-libs/ui";
|
|
21
21
|
//#region src/billing/modules/plans/pages/PlanEditPage.tsx
|
|
22
|
-
var
|
|
23
|
-
let { t:
|
|
24
|
-
let n =
|
|
22
|
+
var y = () => {
|
|
23
|
+
let { t: y } = te(), b = (e, t) => {
|
|
24
|
+
let n = y(e);
|
|
25
25
|
return n === e ? t : n;
|
|
26
|
-
}, { planId:
|
|
26
|
+
}, { planId: x } = m(), S = c(), C = s(), { plan: w, isLoading: T, error: E, refetch: D } = l(x), { quotas: O, isLoading: k } = ee({ onlyActive: !0 }), { updatePlan: A, isUpdating: j } = u(), [M, N] = p(""), [ne, P] = p(""), [F, I] = p("USD"), [L, R] = p(i.MONTHLY), [z, B] = p(!0), [V, H] = p(!0), [U, W] = p([]), [G, K] = p([]), [q, J] = p([]), [Y, X] = p(null), [Z, Q] = p(!1);
|
|
27
27
|
if (f(() => {
|
|
28
|
-
if (
|
|
29
|
-
if (N(
|
|
30
|
-
let e =
|
|
28
|
+
if (w) {
|
|
29
|
+
if (N(w.name ?? ""), P(String(w.price ?? "")), I(w.currency ?? "USD"), R(w.duration ?? i.MONTHLY), B(w.isActive ?? !0), H(w.isPurchasable ?? !0), w.currencyPrices && typeof w.currencyPrices == "object") {
|
|
30
|
+
let e = w.currencyPrices, t = Object.entries(e).filter(([, e]) => typeof e == "number").map(([e, t]) => ({
|
|
31
31
|
currency: e,
|
|
32
32
|
amount: t
|
|
33
33
|
}));
|
|
34
|
-
|
|
34
|
+
K(t), J(t);
|
|
35
35
|
}
|
|
36
|
-
if (
|
|
36
|
+
if (w.features && w.features.length > 0) {
|
|
37
37
|
let e = [], t = /* @__PURE__ */ new Map();
|
|
38
|
-
for (let e of
|
|
38
|
+
for (let e of w.features) if (e.quota?.id) {
|
|
39
39
|
let n = e.quota.id, r = o(e) || 1;
|
|
40
40
|
t.set(n, r);
|
|
41
41
|
}
|
|
@@ -43,11 +43,11 @@ var b = () => {
|
|
|
43
43
|
quotaId: n,
|
|
44
44
|
quantity: r
|
|
45
45
|
});
|
|
46
|
-
|
|
46
|
+
W(e);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
}, [
|
|
50
|
-
if (
|
|
49
|
+
}, [w]), !C.canManagePlans) return /* @__PURE__ */ g(e, { message: b("billing.plans.noEditPermission", "You don't have permission to edit plans.") });
|
|
50
|
+
if (T || k) return /* @__PURE__ */ _("div", {
|
|
51
51
|
className: "space-y-6 p-6",
|
|
52
52
|
children: [/* @__PURE__ */ g("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ g("div", {
|
|
53
53
|
className: "max-w-2xl space-y-4",
|
|
@@ -63,98 +63,91 @@ var b = () => {
|
|
|
63
63
|
if (E && a(E)) return /* @__PURE__ */ g("div", {
|
|
64
64
|
className: "p-6",
|
|
65
65
|
children: /* @__PURE__ */ g(n, {
|
|
66
|
-
title:
|
|
67
|
-
message:
|
|
66
|
+
title: b("billing.plans.serverUnavailable", "Server Unavailable"),
|
|
67
|
+
message: b("billing.plans.serverUnavailableLoadPlan", "Unable to load plan. The server might be down or experiencing issues."),
|
|
68
68
|
onRetry: () => D(),
|
|
69
69
|
showRetry: !0
|
|
70
70
|
})
|
|
71
71
|
});
|
|
72
|
-
if (!
|
|
72
|
+
if (!w) return /* @__PURE__ */ g("div", {
|
|
73
73
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
74
74
|
children: /* @__PURE__ */ _("div", {
|
|
75
75
|
className: "text-center space-y-4",
|
|
76
76
|
children: [/* @__PURE__ */ g("h2", {
|
|
77
77
|
className: "text-lg font-semibold text-text-primary",
|
|
78
|
-
children:
|
|
78
|
+
children: b("billing.plans.planNotFound", "Plan not found")
|
|
79
79
|
}), /* @__PURE__ */ g("button", {
|
|
80
80
|
type: "button",
|
|
81
|
-
onClick: () =>
|
|
81
|
+
onClick: () => S("/plans"),
|
|
82
82
|
className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover",
|
|
83
83
|
children: "Back to Plans"
|
|
84
84
|
})]
|
|
85
85
|
})
|
|
86
86
|
});
|
|
87
87
|
let re = () => {
|
|
88
|
-
|
|
88
|
+
W([{
|
|
89
89
|
quotaId: "",
|
|
90
90
|
quantity: 1
|
|
91
|
-
}, ...
|
|
91
|
+
}, ...U]);
|
|
92
92
|
}, ie = (e) => {
|
|
93
|
-
|
|
93
|
+
W(U.filter((t, n) => n !== e));
|
|
94
94
|
}, $ = (e, t, n) => {
|
|
95
|
-
let r = [...
|
|
96
|
-
t === "quotaId" ? r[e].quotaId = n : r[e].quantity = Number(n),
|
|
95
|
+
let r = [...U];
|
|
96
|
+
t === "quotaId" ? r[e].quotaId = n : r[e].quantity = Number(n), W(r);
|
|
97
97
|
};
|
|
98
98
|
return /* @__PURE__ */ _("div", {
|
|
99
99
|
className: "space-y-6 p-6",
|
|
100
100
|
children: [
|
|
101
101
|
/* @__PURE__ */ g(t, {
|
|
102
|
-
title: `Edit Plan: ${
|
|
103
|
-
description:
|
|
102
|
+
title: `Edit Plan: ${w.name}`,
|
|
103
|
+
description: b("billing.plans.editPlanDesc", "Update the plan details and quota allocations")
|
|
104
104
|
}),
|
|
105
|
-
/* @__PURE__ */ g(
|
|
105
|
+
/* @__PURE__ */ g(v, { children: b("billing.plans.editPurpose", "Update this plan's price, currency/seat pricing and the quotas it grants. Changes apply to new subscriptions; existing subscribers keep the terms they signed up with until they renew or change plans.") }),
|
|
106
106
|
/* @__PURE__ */ _("form", {
|
|
107
107
|
onSubmit: async (e) => {
|
|
108
|
-
if (e.preventDefault(),
|
|
109
|
-
|
|
108
|
+
if (e.preventDefault(), X(null), Q(!1), !M.trim()) {
|
|
109
|
+
X("Plan name is required");
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
|
-
if (
|
|
113
|
-
|
|
112
|
+
if (U.length === 0) {
|
|
113
|
+
X("At least one quota is required");
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
if (W.filter((e) => e.quotaId === "").length > 0) {
|
|
121
|
-
Z("Please select a quota for all allocations");
|
|
116
|
+
if (U.filter((e) => e.quotaId === "").length > 0) {
|
|
117
|
+
X("Please select a quota for all allocations");
|
|
122
118
|
return;
|
|
123
119
|
}
|
|
124
120
|
let t = {
|
|
125
|
-
id:
|
|
121
|
+
id: x,
|
|
126
122
|
name: M.trim(),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
isActive: B,
|
|
131
|
-
isPurchasable: H,
|
|
132
|
-
quotas: W.map((e) => ({
|
|
123
|
+
isActive: z,
|
|
124
|
+
isPurchasable: V,
|
|
125
|
+
quotas: U.map((e) => ({
|
|
133
126
|
quotaId: e.quotaId,
|
|
134
127
|
quantity: e.quantity
|
|
135
128
|
})),
|
|
136
|
-
...d(
|
|
129
|
+
...d(q, G).length > 0 ? { currencyPriceOverrides: d(q, G) } : {}
|
|
137
130
|
};
|
|
138
131
|
try {
|
|
139
|
-
await A(t), Q(!0), setTimeout(() =>
|
|
132
|
+
await A(t), Q(!0), setTimeout(() => S(`/plans/${x}`), 1500);
|
|
140
133
|
} catch (e) {
|
|
141
|
-
|
|
134
|
+
X(e instanceof Error ? e.message : "Failed to update plan");
|
|
142
135
|
}
|
|
143
136
|
},
|
|
144
137
|
className: "space-y-6",
|
|
145
138
|
children: [
|
|
146
|
-
|
|
139
|
+
Y && /* @__PURE__ */ g("div", {
|
|
147
140
|
className: "p-4 bg-status-error-bg-subtle border border-border-subtle rounded-lg",
|
|
148
141
|
children: /* @__PURE__ */ g("p", {
|
|
149
142
|
className: "text-sm text-status-error-text",
|
|
150
|
-
children:
|
|
143
|
+
children: Y
|
|
151
144
|
})
|
|
152
145
|
}),
|
|
153
|
-
|
|
146
|
+
Z && /* @__PURE__ */ g("div", {
|
|
154
147
|
className: "p-4 bg-status-success-bg-subtle border border-border-subtle rounded-lg",
|
|
155
148
|
children: /* @__PURE__ */ g("p", {
|
|
156
149
|
className: "text-sm text-status-success-text",
|
|
157
|
-
children:
|
|
150
|
+
children: b("billing.plans.updateSuccess", "Plan updated successfully! Redirecting...")
|
|
158
151
|
})
|
|
159
152
|
}),
|
|
160
153
|
/* @__PURE__ */ _("div", {
|
|
@@ -165,7 +158,7 @@ var b = () => {
|
|
|
165
158
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
166
159
|
children: /* @__PURE__ */ g("h2", {
|
|
167
160
|
className: "font-semibold text-text-primary",
|
|
168
|
-
children:
|
|
161
|
+
children: b("billing.plans.basicInfo", "Basic Information")
|
|
169
162
|
})
|
|
170
163
|
}), /* @__PURE__ */ _("div", {
|
|
171
164
|
className: "p-4 space-y-4",
|
|
@@ -173,14 +166,14 @@ var b = () => {
|
|
|
173
166
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ _("label", {
|
|
174
167
|
htmlFor: "name",
|
|
175
168
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
176
|
-
children: [
|
|
169
|
+
children: [b("billing.plans.planNameLabel", "Plan Name"), " *"]
|
|
177
170
|
}), /* @__PURE__ */ g("input", {
|
|
178
171
|
id: "name",
|
|
179
172
|
type: "text",
|
|
180
173
|
value: M,
|
|
181
174
|
onChange: (e) => N(e.target.value),
|
|
182
175
|
className: "w-full px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
183
|
-
placeholder:
|
|
176
|
+
placeholder: b("billing.plans.planNamePlaceholder", "e.g., Pro Plan"),
|
|
184
177
|
required: !0
|
|
185
178
|
})] }),
|
|
186
179
|
/* @__PURE__ */ _("div", {
|
|
@@ -188,26 +181,29 @@ var b = () => {
|
|
|
188
181
|
children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ _("label", {
|
|
189
182
|
htmlFor: "price",
|
|
190
183
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
191
|
-
children: [
|
|
184
|
+
children: [b("billing.plans.priceLabel", "Price"), " *"]
|
|
192
185
|
}), /* @__PURE__ */ g("input", {
|
|
193
186
|
id: "price",
|
|
194
187
|
type: "number",
|
|
195
188
|
step: "0.01",
|
|
196
189
|
min: "0",
|
|
197
|
-
value:
|
|
198
|
-
onChange: (e) =>
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
190
|
+
value: ne,
|
|
191
|
+
onChange: (e) => P(e.target.value),
|
|
192
|
+
disabled: !0,
|
|
193
|
+
title: "Price cannot be changed on an existing plan. Create a new plan instead.",
|
|
194
|
+
className: "w-full disabled:opacity-60 disabled:cursor-not-allowed px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
195
|
+
placeholder: "49.99"
|
|
202
196
|
})] }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ _("label", {
|
|
203
197
|
htmlFor: "currency",
|
|
204
198
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
205
|
-
children: [
|
|
199
|
+
children: [b("billing.plans.currencyLabel", "Currency"), " *"]
|
|
206
200
|
}), /* @__PURE__ */ _("select", {
|
|
207
201
|
id: "currency",
|
|
208
|
-
value:
|
|
209
|
-
onChange: (e) =>
|
|
210
|
-
|
|
202
|
+
value: F,
|
|
203
|
+
onChange: (e) => I(e.target.value),
|
|
204
|
+
disabled: !0,
|
|
205
|
+
title: "Currency cannot be changed on an existing plan. Create a new plan instead.",
|
|
206
|
+
className: "w-full disabled:opacity-60 disabled:cursor-not-allowed px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
211
207
|
children: [
|
|
212
208
|
/* @__PURE__ */ g("option", {
|
|
213
209
|
value: "USD",
|
|
@@ -247,12 +243,14 @@ var b = () => {
|
|
|
247
243
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ _("label", {
|
|
248
244
|
htmlFor: "duration",
|
|
249
245
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
250
|
-
children: [
|
|
246
|
+
children: [b("billing.plans.billingPeriodLabel", "Billing Period"), " *"]
|
|
251
247
|
}), /* @__PURE__ */ _("select", {
|
|
252
248
|
id: "duration",
|
|
253
|
-
value:
|
|
254
|
-
onChange: (e) =>
|
|
255
|
-
|
|
249
|
+
value: L,
|
|
250
|
+
onChange: (e) => R(e.target.value),
|
|
251
|
+
disabled: !0,
|
|
252
|
+
title: "Billing period cannot be changed on an existing plan. Create a new plan instead.",
|
|
253
|
+
className: "w-full disabled:opacity-60 disabled:cursor-not-allowed px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
256
254
|
children: [/* @__PURE__ */ g("option", {
|
|
257
255
|
value: i.MONTHLY,
|
|
258
256
|
children: "Monthly"
|
|
@@ -266,30 +264,30 @@ var b = () => {
|
|
|
266
264
|
children: [/* @__PURE__ */ g("input", {
|
|
267
265
|
id: "isActive",
|
|
268
266
|
type: "checkbox",
|
|
269
|
-
checked:
|
|
270
|
-
onChange: (e) =>
|
|
267
|
+
checked: z,
|
|
268
|
+
onChange: (e) => B(e.target.checked),
|
|
271
269
|
className: "size-4 rounded border-border-subtle text-text-link focus:ring-[var(--color-focus-ring)]"
|
|
272
270
|
}), /* @__PURE__ */ g("label", {
|
|
273
271
|
htmlFor: "isActive",
|
|
274
272
|
className: "text-sm font-medium text-text-primary",
|
|
275
|
-
children:
|
|
273
|
+
children: b("billing.plans.planIsActive", "Plan is active")
|
|
276
274
|
})]
|
|
277
275
|
}),
|
|
278
276
|
/* @__PURE__ */ _("div", {
|
|
279
277
|
className: "flex items-start justify-between gap-4 pt-1",
|
|
280
278
|
children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
281
279
|
className: "text-sm font-medium text-text-primary",
|
|
282
|
-
children:
|
|
280
|
+
children: b("billing.plans.isPurchasableLabel", "Publicly purchasable")
|
|
283
281
|
}), /* @__PURE__ */ g("p", {
|
|
284
282
|
className: "text-xs text-text-muted mt-0.5",
|
|
285
|
-
children:
|
|
283
|
+
children: V ? b("billing.plans.isPurchasableOn", "Visible on pricing page — users can subscribe directly.") : b("billing.plans.isPurchasableOff", "Internal / custom plan — hidden from pricing page, assign via API only.")
|
|
286
284
|
})] }), /* @__PURE__ */ g("button", {
|
|
287
285
|
type: "button",
|
|
288
286
|
role: "switch",
|
|
289
|
-
"aria-checked":
|
|
290
|
-
onClick: () =>
|
|
291
|
-
className: `relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:ring-offset-2 ${
|
|
292
|
-
children: /* @__PURE__ */ g("span", { className: `inline-block h-5 w-5 transform rounded-full bg-bg-surface shadow transition-transform ${
|
|
287
|
+
"aria-checked": V,
|
|
288
|
+
onClick: () => H((e) => !e),
|
|
289
|
+
className: `relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:ring-offset-2 ${V ? "bg-action-primary-bg" : "bg-text-muted/30"}`,
|
|
290
|
+
children: /* @__PURE__ */ g("span", { className: `inline-block h-5 w-5 transform rounded-full bg-bg-surface shadow transition-transform ${V ? "translate-x-5" : "translate-x-0"}` })
|
|
293
291
|
})]
|
|
294
292
|
})
|
|
295
293
|
]
|
|
@@ -300,7 +298,7 @@ var b = () => {
|
|
|
300
298
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30 flex items-center justify-between",
|
|
301
299
|
children: [/* @__PURE__ */ g("h2", {
|
|
302
300
|
className: "font-semibold text-text-primary",
|
|
303
|
-
children:
|
|
301
|
+
children: b("billing.plans.quotaAllocations", "Quota Allocations")
|
|
304
302
|
}), /* @__PURE__ */ g("button", {
|
|
305
303
|
type: "button",
|
|
306
304
|
onClick: re,
|
|
@@ -309,10 +307,10 @@ var b = () => {
|
|
|
309
307
|
})]
|
|
310
308
|
}), /* @__PURE__ */ g("div", {
|
|
311
309
|
className: "p-4 space-y-3",
|
|
312
|
-
children:
|
|
310
|
+
children: U.length === 0 ? /* @__PURE__ */ g("p", {
|
|
313
311
|
className: "text-sm text-text-muted",
|
|
314
|
-
children:
|
|
315
|
-
}) :
|
|
312
|
+
children: b("billing.plans.noQuotasAllocated", "No quotas allocated. Click \"Add Quota\" to add one.")
|
|
313
|
+
}) : U.map((e, t) => {
|
|
316
314
|
let n = O.find((t) => t.id === e.quotaId), r = n?.limits?.type ?? "unknown";
|
|
317
315
|
return /* @__PURE__ */ _("div", {
|
|
318
316
|
className: "p-3 border border-border-subtle rounded-lg bg-bg-sunken/20 space-y-3",
|
|
@@ -325,7 +323,7 @@ var b = () => {
|
|
|
325
323
|
children: [/* @__PURE__ */ g("option", {
|
|
326
324
|
value: "",
|
|
327
325
|
disabled: !0,
|
|
328
|
-
children:
|
|
326
|
+
children: b("billing.plans.selectQuota", "Select a quota...")
|
|
329
327
|
}), O.map((e) => /* @__PURE__ */ g("option", {
|
|
330
328
|
value: e.id,
|
|
331
329
|
children: e.name
|
|
@@ -358,7 +356,7 @@ var b = () => {
|
|
|
358
356
|
className: "flex items-center gap-2",
|
|
359
357
|
children: [/* @__PURE__ */ _("label", {
|
|
360
358
|
className: "text-sm text-text-muted",
|
|
361
|
-
children: [
|
|
359
|
+
children: [b("billing.plans.limit", "Limit"), ":"]
|
|
362
360
|
}), /* @__PURE__ */ g("input", {
|
|
363
361
|
type: "number",
|
|
364
362
|
min: "1",
|
|
@@ -373,8 +371,8 @@ var b = () => {
|
|
|
373
371
|
})]
|
|
374
372
|
}),
|
|
375
373
|
/* @__PURE__ */ g(r, {
|
|
376
|
-
overrides:
|
|
377
|
-
onChange:
|
|
374
|
+
overrides: G,
|
|
375
|
+
onChange: K
|
|
378
376
|
}),
|
|
379
377
|
/* @__PURE__ */ _("div", {
|
|
380
378
|
className: "flex items-center gap-3 pt-4",
|
|
@@ -382,10 +380,10 @@ var b = () => {
|
|
|
382
380
|
type: "submit",
|
|
383
381
|
disabled: j,
|
|
384
382
|
className: "px-6 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors disabled:opacity-50",
|
|
385
|
-
children: j ?
|
|
383
|
+
children: j ? b("billing.plans.saving", "Saving...") : b("billing.plans.saveChanges", "Save Changes")
|
|
386
384
|
}), /* @__PURE__ */ g("button", {
|
|
387
385
|
type: "button",
|
|
388
|
-
onClick: () =>
|
|
386
|
+
onClick: () => S(`/plans/${x}`),
|
|
389
387
|
className: "px-6 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
|
|
390
388
|
children: "Cancel"
|
|
391
389
|
})]
|
|
@@ -396,6 +394,6 @@ var b = () => {
|
|
|
396
394
|
});
|
|
397
395
|
};
|
|
398
396
|
//#endregion
|
|
399
|
-
export {
|
|
397
|
+
export { y as PlanEditPage };
|
|
400
398
|
|
|
401
399
|
//# sourceMappingURL=PlanEditPage.js.map
|