@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.
Files changed (431) hide show
  1. package/dist/billing/BillingAdminRoutes.d.ts +6 -0
  2. package/dist/billing/BillingAdminRoutes.d.ts.map +1 -0
  3. package/dist/billing/BillingRoot.d.ts +36 -0
  4. package/dist/billing/BillingRoot.d.ts.map +1 -0
  5. package/dist/billing/BillingUserRoutes.d.ts +7 -0
  6. package/dist/billing/BillingUserRoutes.d.ts.map +1 -0
  7. package/dist/billing/hooks/useBillingAccountSelection.d.ts +36 -0
  8. package/dist/billing/hooks/useBillingAccountSelection.d.ts.map +1 -0
  9. package/dist/billing/hooks/useBillingEventEmitter.d.ts +7 -0
  10. package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +1 -0
  11. package/dist/billing/hooks/useBillingNavigate.d.ts +30 -0
  12. package/dist/billing/hooks/useBillingNavigate.d.ts.map +1 -0
  13. package/dist/billing/hooks/useBillingPermissions.d.ts +106 -0
  14. package/dist/billing/hooks/useBillingPermissions.d.ts.map +1 -0
  15. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts +14 -0
  16. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts.map +1 -0
  17. package/dist/billing/hooks/useProducts.d.ts +18 -0
  18. package/dist/billing/hooks/useProducts.d.ts.map +1 -0
  19. package/dist/billing/index.d.ts +31 -0
  20. package/dist/billing/index.d.ts.map +1 -0
  21. package/dist/billing/lib/native-purchases.d.ts +10 -0
  22. package/dist/billing/lib/native-purchases.d.ts.map +1 -0
  23. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +3 -0
  24. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +1 -0
  25. package/dist/billing/modules/addons/hooks/index.d.ts +8 -0
  26. package/dist/billing/modules/addons/hooks/index.d.ts.map +1 -0
  27. package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts +23 -0
  28. package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts.map +1 -0
  29. package/dist/billing/modules/addons/hooks/useAddons.d.ts +54 -0
  30. package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +1 -0
  31. package/dist/billing/modules/addons/index.d.ts +7 -0
  32. package/dist/billing/modules/addons/index.d.ts.map +1 -0
  33. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +3 -0
  34. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +1 -0
  35. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +3 -0
  36. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +1 -0
  37. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +3 -0
  38. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +1 -0
  39. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +3 -0
  40. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +1 -0
  41. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +3 -0
  42. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +1 -0
  43. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +3 -0
  44. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +1 -0
  45. package/dist/billing/modules/addons/pages/index.d.ts +11 -0
  46. package/dist/billing/modules/addons/pages/index.d.ts.map +1 -0
  47. package/dist/billing/modules/addons/store/addonCartStore.d.ts +37 -0
  48. package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +1 -0
  49. package/dist/billing/modules/affiliate/api.d.ts +101 -0
  50. package/dist/billing/modules/affiliate/api.d.ts.map +1 -0
  51. package/dist/billing/modules/affiliate/index.d.ts +2 -0
  52. package/dist/billing/modules/affiliate/index.d.ts.map +1 -0
  53. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +3 -0
  54. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +1 -0
  55. package/dist/billing/modules/analytics/index.d.ts +5 -0
  56. package/dist/billing/modules/analytics/index.d.ts.map +1 -0
  57. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +3 -0
  58. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +1 -0
  59. package/dist/billing/modules/analytics/pages/index.d.ts +5 -0
  60. package/dist/billing/modules/analytics/pages/index.d.ts.map +1 -0
  61. package/dist/billing/modules/billing/hooks/index.d.ts +12 -0
  62. package/dist/billing/modules/billing/hooks/index.d.ts.map +1 -0
  63. package/dist/billing/modules/billing/hooks/useInvoices.d.ts +76 -0
  64. package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +1 -0
  65. package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts +57 -0
  66. package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts.map +1 -0
  67. package/dist/billing/modules/billing/hooks/usePayments.d.ts +61 -0
  68. package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +1 -0
  69. package/dist/billing/modules/billing/hooks/useRefunds.d.ts +216 -0
  70. package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +1 -0
  71. package/dist/billing/modules/billing/hooks/useTransactions.d.ts +40 -0
  72. package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +1 -0
  73. package/dist/billing/modules/billing/index.d.ts +7 -0
  74. package/dist/billing/modules/billing/index.d.ts.map +1 -0
  75. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts +3 -0
  76. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts.map +1 -0
  77. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +3 -0
  78. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +1 -0
  79. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +3 -0
  80. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +1 -0
  81. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts +3 -0
  82. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts.map +1 -0
  83. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +3 -0
  84. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +1 -0
  85. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts +3 -0
  86. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts.map +1 -0
  87. package/dist/billing/modules/billing/pages/RefundsPage.d.ts +3 -0
  88. package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +1 -0
  89. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +3 -0
  90. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +1 -0
  91. package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts +3 -0
  92. package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts.map +1 -0
  93. package/dist/billing/modules/billing/pages/index.d.ts +14 -0
  94. package/dist/billing/modules/billing/pages/index.d.ts.map +1 -0
  95. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +13 -0
  96. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +1 -0
  97. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +13 -0
  98. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +1 -0
  99. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +13 -0
  100. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +1 -0
  101. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts +23 -0
  102. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts.map +1 -0
  103. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +13 -0
  104. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +1 -0
  105. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +15 -0
  106. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +1 -0
  107. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +18 -0
  108. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +1 -0
  109. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +13 -0
  110. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +1 -0
  111. package/dist/billing/modules/checkout/components/OrderSummary.d.ts +36 -0
  112. package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +1 -0
  113. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +18 -0
  114. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +1 -0
  115. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +18 -0
  116. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +1 -0
  117. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +34 -0
  118. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +1 -0
  119. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +12 -0
  120. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +1 -0
  121. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +12 -0
  122. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +1 -0
  123. package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts +17 -0
  124. package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts.map +1 -0
  125. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +15 -0
  126. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +1 -0
  127. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +25 -0
  128. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +1 -0
  129. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +28 -0
  130. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +1 -0
  131. package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts +11 -0
  132. package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts.map +1 -0
  133. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts +30 -0
  134. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts.map +1 -0
  135. package/dist/billing/modules/checkout/components/index.d.ts +24 -0
  136. package/dist/billing/modules/checkout/components/index.d.ts.map +1 -0
  137. package/dist/billing/modules/checkout/hooks/index.d.ts +9 -0
  138. package/dist/billing/modules/checkout/hooks/index.d.ts.map +1 -0
  139. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +78 -0
  140. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +1 -0
  141. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +25 -0
  142. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +1 -0
  143. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts +19 -0
  144. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts.map +1 -0
  145. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts +59 -0
  146. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts.map +1 -0
  147. package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts +122 -0
  148. package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts.map +1 -0
  149. package/dist/billing/modules/checkout/index.d.ts +24 -0
  150. package/dist/billing/modules/checkout/index.d.ts.map +1 -0
  151. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +3 -0
  152. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +1 -0
  153. package/dist/billing/modules/checkout/pages/index.d.ts +5 -0
  154. package/dist/billing/modules/checkout/pages/index.d.ts.map +1 -0
  155. package/dist/billing/modules/checkout/types/index.d.ts +279 -0
  156. package/dist/billing/modules/checkout/types/index.d.ts.map +1 -0
  157. package/dist/billing/modules/checkout/utils/storeOrder.d.ts +19 -0
  158. package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +1 -0
  159. package/dist/billing/modules/coupons/index.d.ts +5 -0
  160. package/dist/billing/modules/coupons/index.d.ts.map +1 -0
  161. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +3 -0
  162. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +1 -0
  163. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +3 -0
  164. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +1 -0
  165. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +3 -0
  166. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +1 -0
  167. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +3 -0
  168. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +1 -0
  169. package/dist/billing/modules/coupons/pages/index.d.ts +8 -0
  170. package/dist/billing/modules/coupons/pages/index.d.ts.map +1 -0
  171. package/dist/billing/modules/credits/hooks/index.d.ts +5 -0
  172. package/dist/billing/modules/credits/hooks/index.d.ts.map +1 -0
  173. package/dist/billing/modules/credits/hooks/useCredits.d.ts +74 -0
  174. package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +1 -0
  175. package/dist/billing/modules/credits/index.d.ts +6 -0
  176. package/dist/billing/modules/credits/index.d.ts.map +1 -0
  177. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +3 -0
  178. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +1 -0
  179. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +3 -0
  180. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +1 -0
  181. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +3 -0
  182. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +1 -0
  183. package/dist/billing/modules/credits/pages/CreditsPage.d.ts +3 -0
  184. package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +1 -0
  185. package/dist/billing/modules/credits/pages/index.d.ts +8 -0
  186. package/dist/billing/modules/credits/pages/index.d.ts.map +1 -0
  187. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +15 -0
  188. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +1 -0
  189. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +71 -0
  190. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +1 -0
  191. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +17 -0
  192. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +1 -0
  193. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +12 -0
  194. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +1 -0
  195. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +16 -0
  196. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +1 -0
  197. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +28 -0
  198. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +1 -0
  199. package/dist/billing/modules/dashboard/components/index.d.ts +10 -0
  200. package/dist/billing/modules/dashboard/components/index.d.ts.map +1 -0
  201. package/dist/billing/modules/dashboard/hooks/index.d.ts +6 -0
  202. package/dist/billing/modules/dashboard/hooks/index.d.ts.map +1 -0
  203. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +16 -0
  204. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +1 -0
  205. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +144 -0
  206. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +1 -0
  207. package/dist/billing/modules/dashboard/index.d.ts +8 -0
  208. package/dist/billing/modules/dashboard/index.d.ts.map +1 -0
  209. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +3 -0
  210. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +1 -0
  211. package/dist/billing/modules/dashboard/pages/index.d.ts +5 -0
  212. package/dist/billing/modules/dashboard/pages/index.d.ts.map +1 -0
  213. package/dist/billing/modules/discounts/index.d.ts +6 -0
  214. package/dist/billing/modules/discounts/index.d.ts.map +1 -0
  215. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +3 -0
  216. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +1 -0
  217. package/dist/billing/modules/discounts/pages/index.d.ts +6 -0
  218. package/dist/billing/modules/discounts/pages/index.d.ts.map +1 -0
  219. package/dist/billing/modules/earnings/api.d.ts +226 -0
  220. package/dist/billing/modules/earnings/api.d.ts.map +1 -0
  221. package/dist/billing/modules/earnings/index.d.ts +6 -0
  222. package/dist/billing/modules/earnings/index.d.ts.map +1 -0
  223. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts +3 -0
  224. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts.map +1 -0
  225. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts +3 -0
  226. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts.map +1 -0
  227. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +3 -0
  228. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +1 -0
  229. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +3 -0
  230. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +1 -0
  231. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +3 -0
  232. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +1 -0
  233. package/dist/billing/modules/plans/constants/enterprise.d.ts +20 -0
  234. package/dist/billing/modules/plans/constants/enterprise.d.ts.map +1 -0
  235. package/dist/billing/modules/plans/constants/featuredQuotas.d.ts +10 -0
  236. package/dist/billing/modules/plans/constants/featuredQuotas.d.ts.map +1 -0
  237. package/dist/billing/modules/plans/hooks/index.d.ts +7 -0
  238. package/dist/billing/modules/plans/hooks/index.d.ts.map +1 -0
  239. package/dist/billing/modules/plans/hooks/usePlans.d.ts +45 -0
  240. package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +1 -0
  241. package/dist/billing/modules/plans/hooks/useQuotas.d.ts +26 -0
  242. package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +1 -0
  243. package/dist/billing/modules/plans/index.d.ts +7 -0
  244. package/dist/billing/modules/plans/index.d.ts.map +1 -0
  245. package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts +3 -0
  246. package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts.map +1 -0
  247. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +3 -0
  248. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +1 -0
  249. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +3 -0
  250. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +1 -0
  251. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +3 -0
  252. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +1 -0
  253. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +3 -0
  254. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +1 -0
  255. package/dist/billing/modules/plans/pages/PlanEditPage.js +90 -92
  256. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  257. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +3 -0
  258. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +1 -0
  259. package/dist/billing/modules/plans/pages/PlansListPage.d.ts +3 -0
  260. package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +1 -0
  261. package/dist/billing/modules/plans/pages/index.d.ts +12 -0
  262. package/dist/billing/modules/plans/pages/index.d.ts.map +1 -0
  263. package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts +3 -0
  264. package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts.map +1 -0
  265. package/dist/billing/modules/plans/utils/planSelector.d.ts +3 -0
  266. package/dist/billing/modules/plans/utils/planSelector.d.ts.map +1 -0
  267. package/dist/billing/modules/promotions/index.d.ts +2 -0
  268. package/dist/billing/modules/promotions/index.d.ts.map +1 -0
  269. package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts +3 -0
  270. package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts.map +1 -0
  271. package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts +3 -0
  272. package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts.map +1 -0
  273. package/dist/billing/modules/promotions/pages/index.d.ts +3 -0
  274. package/dist/billing/modules/promotions/pages/index.d.ts.map +1 -0
  275. package/dist/billing/modules/quota/hooks/index.d.ts +6 -0
  276. package/dist/billing/modules/quota/hooks/index.d.ts.map +1 -0
  277. package/dist/billing/modules/quota/hooks/useQuota.d.ts +132 -0
  278. package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +1 -0
  279. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +38 -0
  280. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +1 -0
  281. package/dist/billing/modules/quota/index.d.ts +6 -0
  282. package/dist/billing/modules/quota/index.d.ts.map +1 -0
  283. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts +3 -0
  284. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts.map +1 -0
  285. package/dist/billing/modules/quota/pages/QuotaPage.d.ts +3 -0
  286. package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +1 -0
  287. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +3 -0
  288. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +1 -0
  289. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +3 -0
  290. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +1 -0
  291. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +3 -0
  292. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +1 -0
  293. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +3 -0
  294. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +1 -0
  295. package/dist/billing/modules/quota/pages/index.d.ts +10 -0
  296. package/dist/billing/modules/quota/pages/index.d.ts.map +1 -0
  297. package/dist/billing/modules/quota/utils/quotaSelector.d.ts +4 -0
  298. package/dist/billing/modules/quota/utils/quotaSelector.d.ts.map +1 -0
  299. package/dist/billing/modules/settings/index.d.ts +5 -0
  300. package/dist/billing/modules/settings/index.d.ts.map +1 -0
  301. package/dist/billing/modules/settings/pages/SettingsPage.d.ts +3 -0
  302. package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +1 -0
  303. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +3 -0
  304. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +1 -0
  305. package/dist/billing/modules/settings/pages/index.d.ts +6 -0
  306. package/dist/billing/modules/settings/pages/index.d.ts.map +1 -0
  307. package/dist/billing/modules/store/graphql/index.d.ts +6 -0
  308. package/dist/billing/modules/store/graphql/index.d.ts.map +1 -0
  309. package/dist/billing/modules/store/index.d.ts +6 -0
  310. package/dist/billing/modules/store/index.d.ts.map +1 -0
  311. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +10 -0
  312. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +1 -0
  313. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +11 -0
  314. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +1 -0
  315. package/dist/billing/modules/subscriptions/hooks/index.d.ts +6 -0
  316. package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +1 -0
  317. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +91 -0
  318. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +1 -0
  319. package/dist/billing/modules/subscriptions/index.d.ts +7 -0
  320. package/dist/billing/modules/subscriptions/index.d.ts.map +1 -0
  321. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +3 -0
  322. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +1 -0
  323. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +3 -0
  324. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +1 -0
  325. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +3 -0
  326. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +1 -0
  327. package/dist/billing/modules/subscriptions/pages/index.d.ts +8 -0
  328. package/dist/billing/modules/subscriptions/pages/index.d.ts.map +1 -0
  329. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts +7 -0
  330. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts.map +1 -0
  331. package/dist/billing/modules/usage/hooks/index.d.ts +6 -0
  332. package/dist/billing/modules/usage/hooks/index.d.ts.map +1 -0
  333. package/dist/billing/modules/usage/hooks/useUsage.d.ts +316 -0
  334. package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +1 -0
  335. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts +13 -0
  336. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts.map +1 -0
  337. package/dist/billing/modules/usage/index.d.ts +6 -0
  338. package/dist/billing/modules/usage/index.d.ts.map +1 -0
  339. package/dist/billing/modules/usage/pages/UsagePage.d.ts +3 -0
  340. package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +1 -0
  341. package/dist/billing/modules/usage/pages/index.d.ts +5 -0
  342. package/dist/billing/modules/usage/pages/index.d.ts.map +1 -0
  343. package/dist/billing/modules/usage/utils/aiSpend.d.ts +71 -0
  344. package/dist/billing/modules/usage/utils/aiSpend.d.ts.map +1 -0
  345. package/dist/billing/providers/BillingProvider.d.ts +20 -0
  346. package/dist/billing/providers/BillingProvider.d.ts.map +1 -0
  347. package/dist/billing/shared/components/AccessDenied.d.ts +7 -0
  348. package/dist/billing/shared/components/AccessDenied.d.ts.map +1 -0
  349. package/dist/billing/shared/components/ActorIdentity.d.ts +9 -0
  350. package/dist/billing/shared/components/ActorIdentity.d.ts.map +1 -0
  351. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +10 -0
  352. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +1 -0
  353. package/dist/billing/shared/components/EmptyState.d.ts +10 -0
  354. package/dist/billing/shared/components/EmptyState.d.ts.map +1 -0
  355. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +10 -0
  356. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +1 -0
  357. package/dist/billing/shared/components/PageHeader.d.ts +10 -0
  358. package/dist/billing/shared/components/PageHeader.d.ts.map +1 -0
  359. package/dist/billing/shared/components/PushPermissionNudge.d.ts +7 -0
  360. package/dist/billing/shared/components/PushPermissionNudge.d.ts.map +1 -0
  361. package/dist/billing/shared/components/ServerError.d.ts +10 -0
  362. package/dist/billing/shared/components/ServerError.d.ts.map +1 -0
  363. package/dist/billing/shared/components/StatCard.d.ts +14 -0
  364. package/dist/billing/shared/components/StatCard.d.ts.map +1 -0
  365. package/dist/billing/shared/components/index.d.ts +13 -0
  366. package/dist/billing/shared/components/index.d.ts.map +1 -0
  367. package/dist/billing/shared/hooks/index.d.ts +4 -0
  368. package/dist/billing/shared/hooks/index.d.ts.map +1 -0
  369. package/dist/billing/shared/hooks/useActorProfiles.d.ts +17 -0
  370. package/dist/billing/shared/hooks/useActorProfiles.d.ts.map +1 -0
  371. package/dist/billing/shared/hooks/useTr.d.ts +17 -0
  372. package/dist/billing/shared/hooks/useTr.d.ts.map +1 -0
  373. package/dist/billing/shared/index.d.ts +9 -0
  374. package/dist/billing/shared/index.d.ts.map +1 -0
  375. package/dist/billing/shared/types/graphql.d.ts +946 -0
  376. package/dist/billing/shared/types/graphql.d.ts.map +1 -0
  377. package/dist/billing/shared/types/index.d.ts +101 -0
  378. package/dist/billing/shared/types/index.d.ts.map +1 -0
  379. package/dist/billing/shared/ui/Card.d.ts +17 -0
  380. package/dist/billing/shared/ui/Card.d.ts.map +1 -0
  381. package/dist/billing/shared/ui/MetricCard.d.ts +20 -0
  382. package/dist/billing/shared/ui/MetricCard.d.ts.map +1 -0
  383. package/dist/billing/shared/ui/ProgressBar.d.ts +15 -0
  384. package/dist/billing/shared/ui/ProgressBar.d.ts.map +1 -0
  385. package/dist/billing/shared/ui/SectionHeader.d.ts +15 -0
  386. package/dist/billing/shared/ui/SectionHeader.d.ts.map +1 -0
  387. package/dist/billing/shared/ui/StatusPill.d.ts +14 -0
  388. package/dist/billing/shared/ui/StatusPill.d.ts.map +1 -0
  389. package/dist/billing/shared/ui/index.d.ts +13 -0
  390. package/dist/billing/shared/ui/index.d.ts.map +1 -0
  391. package/dist/billing/shared/utils/directActivityGraphql.d.ts +12 -0
  392. package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +1 -0
  393. package/dist/billing/shared/utils/directBillingGraphql.d.ts +12 -0
  394. package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +1 -0
  395. package/dist/billing/shared/utils/error.d.ts +30 -0
  396. package/dist/billing/shared/utils/error.d.ts.map +1 -0
  397. package/dist/billing/shared/utils/format.d.ts +33 -0
  398. package/dist/billing/shared/utils/format.d.ts.map +1 -0
  399. package/dist/billing/shared/utils/gatewayGraphql.d.ts +14 -0
  400. package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +1 -0
  401. package/dist/billing/shared/utils/index.d.ts +14 -0
  402. package/dist/billing/shared/utils/index.d.ts.map +1 -0
  403. package/dist/billing/shared/utils/navigation.d.ts +2 -0
  404. package/dist/billing/shared/utils/navigation.d.ts.map +1 -0
  405. package/dist/billing/shared/utils/paymentTheme.d.ts +18 -0
  406. package/dist/billing/shared/utils/paymentTheme.d.ts.map +1 -0
  407. package/dist/billing/shared/utils/planFeatureQuantity.d.ts +40 -0
  408. package/dist/billing/shared/utils/planFeatureQuantity.d.ts.map +1 -0
  409. package/dist/billing/shared/utils/status.d.ts +27 -0
  410. package/dist/billing/shared/utils/status.d.ts.map +1 -0
  411. package/dist/billing/shared/utils/tokens.d.ts +156 -0
  412. package/dist/billing/shared/utils/tokens.d.ts.map +1 -0
  413. package/dist/billing/translations/en.d.ts +534 -0
  414. package/dist/billing/translations/en.d.ts.map +1 -0
  415. package/dist/billing/types/index.d.ts +275 -0
  416. package/dist/billing/types/index.d.ts.map +1 -0
  417. package/dist/dev/main.d.ts +1 -0
  418. package/dist/dev/main.d.ts.map +1 -0
  419. package/dist/generated/global-operations.d.ts +10856 -0
  420. package/dist/generated/global-operations.d.ts.map +1 -0
  421. package/dist/generated/global-types.d.ts +26958 -0
  422. package/dist/generated/global-types.d.ts.map +1 -0
  423. package/dist/generated/wspace-operations.d.ts +261 -0
  424. package/dist/generated/wspace-operations.d.ts.map +1 -0
  425. package/dist/generated/wspace-types.d.ts +49193 -0
  426. package/dist/generated/wspace-types.d.ts.map +1 -0
  427. package/dist/index.d.ts +8 -0
  428. package/dist/index.d.ts.map +1 -0
  429. package/dist/utils/nativeBridge.d.ts +3 -0
  430. package/dist/utils/nativeBridge.d.ts.map +1 -0
  431. 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,7 @@
1
+ /**
2
+ * Plans Module - Hooks
3
+ * Re-exports all hooks for the Plans module
4
+ */
5
+ export { usePlans, usePlan, usePlanMutations } from './usePlans';
6
+ export { useQuotas, useQuotaMutations } from './useQuotas';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -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,7 @@
1
+ /**
2
+ * Plans Module
3
+ * Provides plan management functionality including listing, viewing, and managing plans
4
+ */
5
+ export * from './pages';
6
+ export * from './hooks';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import { FC } from 'react';
2
+ export declare const PlanAssignFreePage: FC;
3
+ //# sourceMappingURL=PlanAssignFreePage.d.ts.map
@@ -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,3 @@
1
+ import { FC } from 'react';
2
+ export declare const PlanBrowseDetailPage: FC;
3
+ //# sourceMappingURL=PlanBrowseDetailPage.d.ts.map
@@ -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,3 @@
1
+ import { FC } from 'react';
2
+ export declare const PlanCreatePage: FC;
3
+ //# sourceMappingURL=PlanCreatePage.d.ts.map
@@ -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,3 @@
1
+ import { FC } from 'react';
2
+ export declare const PlanDetailPage: FC;
3
+ //# sourceMappingURL=PlanDetailPage.d.ts.map
@@ -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,3 @@
1
+ import { FC } from 'react';
2
+ export declare const PlanEditPage: FC;
3
+ //# sourceMappingURL=PlanEditPage.d.ts.map
@@ -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 ee } from "../../../hooks/useBillingNavigate.js";
12
- import { usePlan as c, usePlanMutations as l } from "../hooks/usePlans.js";
13
- import { useQuotas as u } from "../hooks/useQuotas.js";
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 v } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
20
- import { PagePurpose as y } from "@burdenoff/fe-libs/ui";
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 b = () => {
23
- let { t: b } = v(), x = (e, t) => {
24
- let n = b(e);
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: S } = m(), C = ee(), w = s(), { plan: T, isLoading: te, error: E, refetch: D } = c(S), { quotas: O, isLoading: k } = u({ onlyActive: !0 }), { updatePlan: A, isUpdating: j } = l(), [M, N] = p(""), [P, F] = p(""), [I, L] = p("USD"), [R, z] = p(i.MONTHLY), [B, V] = p(!0), [H, U] = p(!0), [W, G] = p([]), [K, q] = p([]), [J, Y] = p([]), [X, Z] = p(null), [ne, Q] = p(!1);
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 (T) {
29
- if (N(T.name ?? ""), F(String(T.price ?? "")), L(T.currency ?? "USD"), z(T.duration ?? i.MONTHLY), V(T.isActive ?? !0), U(T.isPurchasable ?? !0), T.currencyPrices && typeof T.currencyPrices == "object") {
30
- let e = T.currencyPrices, t = Object.entries(e).filter(([, e]) => typeof e == "number").map(([e, t]) => ({
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
- q(t), Y(t);
34
+ K(t), J(t);
35
35
  }
36
- if (T.features && T.features.length > 0) {
36
+ if (w.features && w.features.length > 0) {
37
37
  let e = [], t = /* @__PURE__ */ new Map();
38
- for (let e of T.features) if (e.quota?.id) {
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
- G(e);
46
+ W(e);
47
47
  }
48
48
  }
49
- }, [T]), !w.canManagePlans) return /* @__PURE__ */ g(e, { message: x("billing.plans.noEditPermission", "You don't have permission to edit plans.") });
50
- if (te || k) return /* @__PURE__ */ _("div", {
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: x("billing.plans.serverUnavailable", "Server Unavailable"),
67
- message: x("billing.plans.serverUnavailableLoadPlan", "Unable to load plan. The server might be down or experiencing issues."),
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 (!T) return /* @__PURE__ */ g("div", {
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: x("billing.plans.planNotFound", "Plan not found")
78
+ children: b("billing.plans.planNotFound", "Plan not found")
79
79
  }), /* @__PURE__ */ g("button", {
80
80
  type: "button",
81
- onClick: () => C("/plans"),
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
- G([{
88
+ W([{
89
89
  quotaId: "",
90
90
  quantity: 1
91
- }, ...W]);
91
+ }, ...U]);
92
92
  }, ie = (e) => {
93
- G(W.filter((t, n) => n !== e));
93
+ W(U.filter((t, n) => n !== e));
94
94
  }, $ = (e, t, n) => {
95
- let r = [...W];
96
- t === "quotaId" ? r[e].quotaId = n : r[e].quantity = Number(n), G(r);
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: ${T.name}`,
103
- description: x("billing.plans.editPlanDesc", "Update the plan details and quota allocations")
102
+ title: `Edit Plan: ${w.name}`,
103
+ description: b("billing.plans.editPlanDesc", "Update the plan details and quota allocations")
104
104
  }),
105
- /* @__PURE__ */ g(y, { children: x("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.") }),
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(), Z(null), Q(!1), !M.trim()) {
109
- Z("Plan name is required");
108
+ if (e.preventDefault(), X(null), Q(!1), !M.trim()) {
109
+ X("Plan name is required");
110
110
  return;
111
111
  }
112
- if (!P || isNaN(Number(P)) || Number(P) < 0) {
113
- Z("Valid price is required");
112
+ if (U.length === 0) {
113
+ X("At least one quota is required");
114
114
  return;
115
115
  }
116
- if (W.length === 0) {
117
- Z("At least one quota is required");
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: S,
121
+ id: x,
126
122
  name: M.trim(),
127
- price: Number(P),
128
- currency: I,
129
- duration: R,
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(J, K).length > 0 ? { currencyPriceOverrides: d(J, K) } : {}
129
+ ...d(q, G).length > 0 ? { currencyPriceOverrides: d(q, G) } : {}
137
130
  };
138
131
  try {
139
- await A(t), Q(!0), setTimeout(() => C(`/plans/${S}`), 1500);
132
+ await A(t), Q(!0), setTimeout(() => S(`/plans/${x}`), 1500);
140
133
  } catch (e) {
141
- Z(e instanceof Error ? e.message : "Failed to update plan");
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
- X && /* @__PURE__ */ g("div", {
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: X
143
+ children: Y
151
144
  })
152
145
  }),
153
- ne && /* @__PURE__ */ g("div", {
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: x("billing.plans.updateSuccess", "Plan updated successfully! Redirecting...")
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: x("billing.plans.basicInfo", "Basic Information")
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: [x("billing.plans.planNameLabel", "Plan Name"), " *"]
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: x("billing.plans.planNamePlaceholder", "e.g., Pro Plan"),
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: [x("billing.plans.priceLabel", "Price"), " *"]
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: P,
198
- onChange: (e) => F(e.target.value),
199
- 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)]",
200
- placeholder: "49.99",
201
- required: !0
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: [x("billing.plans.currencyLabel", "Currency"), " *"]
199
+ children: [b("billing.plans.currencyLabel", "Currency"), " *"]
206
200
  }), /* @__PURE__ */ _("select", {
207
201
  id: "currency",
208
- value: I,
209
- onChange: (e) => L(e.target.value),
210
- 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)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
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: [x("billing.plans.billingPeriodLabel", "Billing Period"), " *"]
246
+ children: [b("billing.plans.billingPeriodLabel", "Billing Period"), " *"]
251
247
  }), /* @__PURE__ */ _("select", {
252
248
  id: "duration",
253
- value: R,
254
- onChange: (e) => z(e.target.value),
255
- 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)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
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: B,
270
- onChange: (e) => V(e.target.checked),
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: x("billing.plans.planIsActive", "Plan is active")
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: x("billing.plans.isPurchasableLabel", "Publicly purchasable")
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: H ? x("billing.plans.isPurchasableOn", "Visible on pricing page — users can subscribe directly.") : x("billing.plans.isPurchasableOff", "Internal / custom plan — hidden from pricing page, assign via API only.")
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": H,
290
- onClick: () => U((e) => !e),
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 ${H ? "bg-action-primary-bg" : "bg-text-muted/30"}`,
292
- children: /* @__PURE__ */ g("span", { className: `inline-block h-5 w-5 transform rounded-full bg-bg-surface shadow transition-transform ${H ? "translate-x-5" : "translate-x-0"}` })
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: x("billing.plans.quotaAllocations", "Quota Allocations")
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: W.length === 0 ? /* @__PURE__ */ g("p", {
310
+ children: U.length === 0 ? /* @__PURE__ */ g("p", {
313
311
  className: "text-sm text-text-muted",
314
- children: x("billing.plans.noQuotasAllocated", "No quotas allocated. Click \"Add Quota\" to add one.")
315
- }) : W.map((e, t) => {
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: x("billing.plans.selectQuota", "Select a quota...")
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: [x("billing.plans.limit", "Limit"), ":"]
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: K,
377
- onChange: q
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 ? x("billing.plans.saving", "Saving...") : x("billing.plans.saveChanges", "Save Changes")
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: () => C(`/plans/${S}`),
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 { b as PlanEditPage };
397
+ export { y as PlanEditPage };
400
398
 
401
399
  //# sourceMappingURL=PlanEditPage.js.map