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