@burdenoff/microfe-billing 2026.1108.1 → 2026.1108.2

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