@burdenoff/microfe-billing 2026.1108.1 → 2026.1108.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (769) hide show
  1. package/dist/billing/BillingAdminRoutes.d.ts +1 -2
  2. package/dist/billing/BillingAdminRoutes.js +11 -12
  3. package/dist/billing/BillingAdminRoutes.js.map +1 -1
  4. package/dist/billing/BillingRoot.d.ts +0 -1
  5. package/dist/billing/BillingRoot.js +10 -9
  6. package/dist/billing/BillingRoot.js.map +1 -1
  7. package/dist/billing/BillingUserRoutes.d.ts +1 -2
  8. package/dist/billing/BillingUserRoutes.js +13 -14
  9. package/dist/billing/BillingUserRoutes.js.map +1 -1
  10. package/dist/billing/hooks/useBillingAccountSelection.d.ts +0 -1
  11. package/dist/billing/hooks/useBillingAccountSelection.js +7 -5
  12. package/dist/billing/hooks/useBillingAccountSelection.js.map +1 -1
  13. package/dist/billing/hooks/useBillingEventEmitter.d.ts +0 -1
  14. package/dist/billing/hooks/useBillingEventEmitter.js +1 -2
  15. package/dist/billing/hooks/useBillingEventEmitter.js.map +1 -1
  16. package/dist/billing/hooks/useBillingNavigate.d.ts +0 -1
  17. package/dist/billing/hooks/useBillingNavigate.js +1 -2
  18. package/dist/billing/hooks/useBillingNavigate.js.map +1 -1
  19. package/dist/billing/hooks/useBillingPermissions.d.ts +0 -1
  20. package/dist/billing/hooks/useBillingPermissions.js +2 -3
  21. package/dist/billing/hooks/useBillingPermissions.js.map +1 -1
  22. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts +0 -1
  23. package/dist/billing/hooks/useDefaultBillingCurrency.js +1 -2
  24. package/dist/billing/hooks/useDefaultBillingCurrency.js.map +1 -1
  25. package/dist/billing/hooks/useProducts.d.ts +0 -1
  26. package/dist/billing/hooks/useProducts.js +1 -2
  27. package/dist/billing/hooks/useProducts.js.map +1 -1
  28. package/dist/billing/index.d.ts +0 -1
  29. package/dist/billing/lib/native-purchases.d.ts +0 -1
  30. package/dist/billing/lib/native-purchases.js +1 -2
  31. package/dist/billing/lib/native-purchases.js.map +1 -1
  32. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +0 -1
  33. package/dist/billing/modules/addons/components/FloatingCartDrawer.js +4 -5
  34. package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -1
  35. package/dist/billing/modules/addons/hooks/index.d.ts +0 -1
  36. package/dist/billing/modules/addons/hooks/index.js +3 -2
  37. package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts +0 -1
  38. package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.js +1 -2
  39. package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.js.map +1 -1
  40. package/dist/billing/modules/addons/hooks/useAddons.d.ts +0 -1
  41. package/dist/billing/modules/addons/hooks/useAddons.js +1 -2
  42. package/dist/billing/modules/addons/hooks/useAddons.js.map +1 -1
  43. package/dist/billing/modules/addons/index.d.ts +0 -1
  44. package/dist/billing/modules/addons/index.js +10 -10
  45. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +0 -1
  46. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +15 -16
  47. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js.map +1 -1
  48. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +0 -1
  49. package/dist/billing/modules/addons/pages/AddonCreatePage.js +11 -12
  50. package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
  51. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +0 -1
  52. package/dist/billing/modules/addons/pages/AddonDetailPage.js +16 -17
  53. package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -1
  54. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +0 -1
  55. package/dist/billing/modules/addons/pages/AddonEditPage.js +16 -17
  56. package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
  57. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +0 -1
  58. package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +111 -106
  59. package/dist/billing/modules/addons/pages/AddonsBrowsePage.js.map +1 -1
  60. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +0 -1
  61. package/dist/billing/modules/addons/pages/AddonsListPage.js +105 -100
  62. package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -1
  63. package/dist/billing/modules/addons/pages/index.d.ts +0 -1
  64. package/dist/billing/modules/addons/pages/index.js +7 -6
  65. package/dist/billing/modules/addons/store/addonCartStore.d.ts +0 -1
  66. package/dist/billing/modules/addons/store/addonCartStore.js +2 -7
  67. package/dist/billing/modules/addons/store/addonCartStore.js.map +1 -1
  68. package/dist/billing/modules/affiliate/api.d.ts +0 -1
  69. package/dist/billing/modules/affiliate/api.js +1 -2
  70. package/dist/billing/modules/affiliate/api.js.map +1 -1
  71. package/dist/billing/modules/affiliate/index.d.ts +0 -1
  72. package/dist/billing/modules/affiliate/index.js +1 -2
  73. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +0 -1
  74. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +29 -28
  75. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
  76. package/dist/billing/modules/analytics/index.d.ts +0 -1
  77. package/dist/billing/modules/analytics/index.js +1 -2
  78. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +0 -1
  79. package/dist/billing/modules/analytics/pages/AnalyticsPage.js +8 -9
  80. package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
  81. package/dist/billing/modules/analytics/pages/index.d.ts +0 -1
  82. package/dist/billing/modules/analytics/pages/index.js +1 -1
  83. package/dist/billing/modules/billing/hooks/index.d.ts +0 -1
  84. package/dist/billing/modules/billing/hooks/index.js +5 -4
  85. package/dist/billing/modules/billing/hooks/useInvoices.d.ts +0 -1
  86. package/dist/billing/modules/billing/hooks/useInvoices.js +1 -2
  87. package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -1
  88. package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts +0 -1
  89. package/dist/billing/modules/billing/hooks/useOrderCallbacks.js +1 -2
  90. package/dist/billing/modules/billing/hooks/useOrderCallbacks.js.map +1 -1
  91. package/dist/billing/modules/billing/hooks/usePayments.d.ts +0 -1
  92. package/dist/billing/modules/billing/hooks/useRefunds.d.ts +0 -1
  93. package/dist/billing/modules/billing/hooks/useRefunds.js +1 -2
  94. package/dist/billing/modules/billing/hooks/useRefunds.js.map +1 -1
  95. package/dist/billing/modules/billing/hooks/useTransactions.d.ts +0 -1
  96. package/dist/billing/modules/billing/hooks/useTransactions.js +30 -31
  97. package/dist/billing/modules/billing/hooks/useTransactions.js.map +1 -1
  98. package/dist/billing/modules/billing/index.d.ts +0 -1
  99. package/dist/billing/modules/billing/index.js +15 -15
  100. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts +0 -1
  101. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +11 -12
  102. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js.map +1 -1
  103. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +0 -1
  104. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +53 -59
  105. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
  106. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +0 -1
  107. package/dist/billing/modules/billing/pages/InvoicesListPage.js +81 -87
  108. package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
  109. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts +0 -1
  110. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +11 -12
  111. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js.map +1 -1
  112. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +0 -1
  113. package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +51 -54
  114. package/dist/billing/modules/billing/pages/PaymentMethodsPage.js.map +1 -1
  115. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts +0 -1
  116. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +33 -34
  117. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js.map +1 -1
  118. package/dist/billing/modules/billing/pages/RefundsPage.d.ts +0 -1
  119. package/dist/billing/modules/billing/pages/RefundsPage.js +92 -93
  120. package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
  121. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +0 -1
  122. package/dist/billing/modules/billing/pages/TransactionsPage.js +38 -39
  123. package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
  124. package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts +0 -1
  125. package/dist/billing/modules/billing/pages/UserRefundsPage.js +24 -30
  126. package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
  127. package/dist/billing/modules/billing/pages/index.d.ts +0 -1
  128. package/dist/billing/modules/billing/pages/index.js +10 -9
  129. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +0 -1
  130. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +0 -1
  131. package/dist/billing/modules/checkout/components/BillingAccountSelector.js +1 -2
  132. package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -1
  133. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +0 -1
  134. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts +0 -1
  135. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +1 -2
  136. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
  137. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +0 -1
  138. package/dist/billing/modules/checkout/components/CreditsAmountInput.js +1 -2
  139. package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -1
  140. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +0 -1
  141. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +0 -1
  142. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +0 -1
  143. package/dist/billing/modules/checkout/components/NativeCheckoutView.js +1 -2
  144. package/dist/billing/modules/checkout/components/NativeCheckoutView.js.map +1 -1
  145. package/dist/billing/modules/checkout/components/OrderSummary.d.ts +0 -1
  146. package/dist/billing/modules/checkout/components/OrderSummary.js +35 -32
  147. package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -1
  148. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +0 -1
  149. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +0 -1
  150. package/dist/billing/modules/checkout/components/PromoCodeInput.js +1 -2
  151. package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -1
  152. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +0 -1
  153. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +1 -2
  154. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
  155. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +0 -1
  156. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +0 -1
  157. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js +1 -2
  158. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -1
  159. package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts +0 -1
  160. package/dist/billing/modules/checkout/components/StoreShippingSection.js +5 -3
  161. package/dist/billing/modules/checkout/components/StoreShippingSection.js.map +1 -1
  162. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +0 -1
  163. package/dist/billing/modules/checkout/components/StripePaymentForm.js +35 -41
  164. package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -1
  165. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +0 -1
  166. package/dist/billing/modules/checkout/components/SubscriptionSelector.js +1 -2
  167. package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -1
  168. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +0 -1
  169. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js +1 -2
  170. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -1
  171. package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts +0 -1
  172. package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.js +5 -6
  173. package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.js.map +1 -1
  174. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts +0 -1
  175. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +7 -8
  176. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
  177. package/dist/billing/modules/checkout/components/index.d.ts +0 -1
  178. package/dist/billing/modules/checkout/components/index.js +12 -11
  179. package/dist/billing/modules/checkout/hooks/index.d.ts +0 -1
  180. package/dist/billing/modules/checkout/hooks/index.js +5 -4
  181. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +0 -1
  182. package/dist/billing/modules/checkout/hooks/useCheckout.js +182 -195
  183. package/dist/billing/modules/checkout/hooks/useCheckout.js.map +1 -1
  184. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +0 -1
  185. package/dist/billing/modules/checkout/hooks/useNativeCheckout.js +33 -32
  186. package/dist/billing/modules/checkout/hooks/useNativeCheckout.js.map +1 -1
  187. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts +0 -1
  188. package/dist/billing/modules/checkout/hooks/usePaymentProviders.js +1 -2
  189. package/dist/billing/modules/checkout/hooks/usePaymentProviders.js.map +1 -1
  190. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts +0 -1
  191. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.js +1 -2
  192. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.js.map +1 -1
  193. package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts +4 -8
  194. package/dist/billing/modules/checkout/hooks/useStoreShipping.js +1 -2
  195. package/dist/billing/modules/checkout/hooks/useStoreShipping.js.map +1 -1
  196. package/dist/billing/modules/checkout/index.d.ts +0 -1
  197. package/dist/billing/modules/checkout/index.js +19 -19
  198. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +0 -1
  199. package/dist/billing/modules/checkout/pages/CheckoutPage.js +730 -732
  200. package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
  201. package/dist/billing/modules/checkout/pages/index.d.ts +0 -1
  202. package/dist/billing/modules/checkout/pages/index.js +1 -1
  203. package/dist/billing/modules/checkout/types/index.d.ts +0 -1
  204. package/dist/billing/modules/checkout/utils/storeOrder.d.ts +0 -1
  205. package/dist/billing/modules/checkout/utils/storeOrder.js +0 -1
  206. package/dist/billing/modules/checkout/utils/storeOrder.js.map +1 -1
  207. package/dist/billing/modules/coupons/index.d.ts +0 -1
  208. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +0 -1
  209. package/dist/billing/modules/coupons/pages/CouponDetailPage.js +5 -6
  210. package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -1
  211. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +0 -1
  212. package/dist/billing/modules/coupons/pages/CouponsListPage.js +15 -13
  213. package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
  214. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +0 -1
  215. package/dist/billing/modules/coupons/pages/CreateCouponPage.js +12 -10
  216. package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
  217. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +0 -1
  218. package/dist/billing/modules/coupons/pages/EditCouponPage.js +7 -11
  219. package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
  220. package/dist/billing/modules/coupons/pages/index.d.ts +0 -1
  221. package/dist/billing/modules/coupons/pages/index.js +5 -4
  222. package/dist/billing/modules/credits/hooks/index.d.ts +0 -1
  223. package/dist/billing/modules/credits/hooks/useCredits.d.ts +0 -1
  224. package/dist/billing/modules/credits/hooks/useCredits.js +20 -21
  225. package/dist/billing/modules/credits/hooks/useCredits.js.map +1 -1
  226. package/dist/billing/modules/credits/index.d.ts +0 -1
  227. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +0 -1
  228. package/dist/billing/modules/credits/pages/AdminCreditsPage.js +19 -24
  229. package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
  230. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +0 -1
  231. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +26 -27
  232. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -1
  233. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +0 -1
  234. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +54 -52
  235. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
  236. package/dist/billing/modules/credits/pages/CreditsPage.d.ts +0 -1
  237. package/dist/billing/modules/credits/pages/CreditsPage.js +37 -38
  238. package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
  239. package/dist/billing/modules/credits/pages/index.d.ts +0 -1
  240. package/dist/billing/modules/credits/pages/index.js +5 -4
  241. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +0 -1
  242. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js +2 -3
  243. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -1
  244. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +0 -1
  245. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +35 -43
  246. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -1
  247. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +0 -1
  248. package/dist/billing/modules/dashboard/components/BillingAccountCard.js +1 -2
  249. package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -1
  250. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +0 -1
  251. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +1 -2
  252. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
  253. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +0 -1
  254. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js +2 -5
  255. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -1
  256. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +0 -1
  257. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js +1 -2
  258. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.map +1 -1
  259. package/dist/billing/modules/dashboard/components/index.d.ts +0 -1
  260. package/dist/billing/modules/dashboard/components/index.js +7 -6
  261. package/dist/billing/modules/dashboard/hooks/index.d.ts +0 -1
  262. package/dist/billing/modules/dashboard/hooks/index.js +3 -2
  263. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +0 -1
  264. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.js +2 -3
  265. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.js.map +1 -1
  266. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +0 -1
  267. package/dist/billing/modules/dashboard/hooks/useDashboard.js +2 -3
  268. package/dist/billing/modules/dashboard/hooks/useDashboard.js.map +1 -1
  269. package/dist/billing/modules/dashboard/index.d.ts +0 -1
  270. package/dist/billing/modules/dashboard/index.js +11 -10
  271. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +0 -1
  272. package/dist/billing/modules/dashboard/pages/OverviewPage.js +266 -264
  273. package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
  274. package/dist/billing/modules/dashboard/pages/index.d.ts +0 -1
  275. package/dist/billing/modules/dashboard/pages/index.js +1 -1
  276. package/dist/billing/modules/discounts/index.d.ts +0 -1
  277. package/dist/billing/modules/discounts/index.js +1 -2
  278. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +0 -1
  279. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +169 -176
  280. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  281. package/dist/billing/modules/discounts/pages/index.d.ts +0 -1
  282. package/dist/billing/modules/discounts/pages/index.js +1 -1
  283. package/dist/billing/modules/earnings/api.d.ts +0 -1
  284. package/dist/billing/modules/earnings/api.js +66 -67
  285. package/dist/billing/modules/earnings/api.js.map +1 -1
  286. package/dist/billing/modules/earnings/index.d.ts +0 -1
  287. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts +0 -1
  288. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +17 -17
  289. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js.map +1 -1
  290. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts +0 -1
  291. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +188 -189
  292. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
  293. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +0 -1
  294. package/dist/billing/modules/earnings/pages/EarningsPage.js +111 -111
  295. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  296. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +0 -1
  297. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +29 -30
  298. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
  299. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +0 -1
  300. package/dist/billing/modules/earnings/pages/PayoutsPage.js +103 -104
  301. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  302. package/dist/billing/modules/earnings/payoutAccountStatus.d.ts +0 -1
  303. package/dist/billing/modules/earnings/payoutAccountStatus.js +1 -2
  304. package/dist/billing/modules/earnings/payoutAccountStatus.js.map +1 -1
  305. package/dist/billing/modules/plans/constants/enterprise.d.ts +0 -1
  306. package/dist/billing/modules/plans/constants/enterprise.js +1 -2
  307. package/dist/billing/modules/plans/constants/enterprise.js.map +1 -1
  308. package/dist/billing/modules/plans/constants/featuredQuotas.d.ts +0 -1
  309. package/dist/billing/modules/plans/constants/featuredQuotas.js +1 -2
  310. package/dist/billing/modules/plans/constants/featuredQuotas.js.map +1 -1
  311. package/dist/billing/modules/plans/hooks/index.d.ts +0 -1
  312. package/dist/billing/modules/plans/hooks/index.js +3 -2
  313. package/dist/billing/modules/plans/hooks/usePlans.d.ts +0 -1
  314. package/dist/billing/modules/plans/hooks/usePlans.js +1 -2
  315. package/dist/billing/modules/plans/hooks/usePlans.js.map +1 -1
  316. package/dist/billing/modules/plans/hooks/useQuotas.d.ts +0 -1
  317. package/dist/billing/modules/plans/hooks/useQuotas.js +1 -2
  318. package/dist/billing/modules/plans/hooks/useQuotas.js.map +1 -1
  319. package/dist/billing/modules/plans/index.d.ts +0 -1
  320. package/dist/billing/modules/plans/index.js +11 -11
  321. package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts +0 -1
  322. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +12 -15
  323. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js.map +1 -1
  324. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +0 -1
  325. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +38 -39
  326. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -1
  327. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +0 -1
  328. package/dist/billing/modules/plans/pages/PlanCreatePage.js +10 -11
  329. package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
  330. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +0 -1
  331. package/dist/billing/modules/plans/pages/PlanDetailPage.js +40 -41
  332. package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -1
  333. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +0 -1
  334. package/dist/billing/modules/plans/pages/PlanEditPage.js +15 -16
  335. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  336. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +0 -1
  337. package/dist/billing/modules/plans/pages/PlansBrowsePage.js +18 -19
  338. package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
  339. package/dist/billing/modules/plans/pages/PlansListPage.d.ts +0 -1
  340. package/dist/billing/modules/plans/pages/PlansListPage.js +100 -101
  341. package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -1
  342. package/dist/billing/modules/plans/pages/index.d.ts +0 -1
  343. package/dist/billing/modules/plans/pages/index.js +8 -7
  344. package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts +0 -1
  345. package/dist/billing/modules/plans/utils/currencyPriceOverrides.js +1 -2
  346. package/dist/billing/modules/plans/utils/currencyPriceOverrides.js.map +1 -1
  347. package/dist/billing/modules/plans/utils/planSelector.d.ts +0 -1
  348. package/dist/billing/modules/plans/utils/planSelector.js +1 -2
  349. package/dist/billing/modules/plans/utils/planSelector.js.map +1 -1
  350. package/dist/billing/modules/promotions/index.d.ts +0 -1
  351. package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts +0 -1
  352. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +5 -6
  353. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js.map +1 -1
  354. package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts +0 -1
  355. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +5 -6
  356. package/dist/billing/modules/promotions/pages/PromotionsListPage.js.map +1 -1
  357. package/dist/billing/modules/promotions/pages/index.d.ts +0 -1
  358. package/dist/billing/modules/promotions/pages/index.js +3 -2
  359. package/dist/billing/modules/quota/hooks/index.d.ts +0 -1
  360. package/dist/billing/modules/quota/hooks/index.js +1 -1
  361. package/dist/billing/modules/quota/hooks/useQuota.d.ts +0 -1
  362. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +0 -1
  363. package/dist/billing/modules/quota/hooks/useQuotaTemplates.js +1 -2
  364. package/dist/billing/modules/quota/hooks/useQuotaTemplates.js.map +1 -1
  365. package/dist/billing/modules/quota/index.d.ts +0 -1
  366. package/dist/billing/modules/quota/index.js +8 -8
  367. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts +0 -1
  368. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +12 -15
  369. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js.map +1 -1
  370. package/dist/billing/modules/quota/pages/QuotaPage.d.ts +0 -1
  371. package/dist/billing/modules/quota/pages/QuotaPage.js +3 -3
  372. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +0 -1
  373. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +13 -14
  374. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
  375. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +0 -1
  376. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +9 -10
  377. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -1
  378. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +0 -1
  379. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +12 -13
  380. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
  381. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +0 -1
  382. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +16 -17
  383. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -1
  384. package/dist/billing/modules/quota/pages/index.d.ts +0 -1
  385. package/dist/billing/modules/quota/pages/index.js +6 -5
  386. package/dist/billing/modules/quota/utils/quotaSelector.d.ts +0 -1
  387. package/dist/billing/modules/quota/utils/quotaSelector.js +1 -2
  388. package/dist/billing/modules/quota/utils/quotaSelector.js.map +1 -1
  389. package/dist/billing/modules/settings/index.d.ts +0 -1
  390. package/dist/billing/modules/settings/pages/SettingsPage.d.ts +0 -1
  391. package/dist/billing/modules/settings/pages/SettingsPage.js +12 -13
  392. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  393. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +0 -1
  394. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +32 -32
  395. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  396. package/dist/billing/modules/settings/pages/index.d.ts +0 -1
  397. package/dist/billing/modules/settings/pages/index.js +3 -2
  398. package/dist/billing/modules/store/graphql/index.d.ts +0 -1
  399. package/dist/billing/modules/store/index.d.ts +0 -1
  400. package/dist/billing/modules/store/index.js +1 -2
  401. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +0 -1
  402. package/dist/billing/modules/store/pages/StoreCheckoutPage.js +1 -2
  403. package/dist/billing/modules/store/pages/StoreCheckoutPage.js.map +1 -1
  404. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +0 -1
  405. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +9 -11
  406. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -1
  407. package/dist/billing/modules/subscriptions/hooks/index.d.ts +0 -1
  408. package/dist/billing/modules/subscriptions/hooks/index.js +1 -1
  409. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +0 -1
  410. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js +1 -2
  411. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js.map +1 -1
  412. package/dist/billing/modules/subscriptions/index.d.ts +0 -1
  413. package/dist/billing/modules/subscriptions/index.js +6 -6
  414. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +0 -1
  415. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +311 -312
  416. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  417. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +0 -1
  418. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +61 -62
  419. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
  420. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +0 -1
  421. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +30 -31
  422. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  423. package/dist/billing/modules/subscriptions/pages/index.d.ts +0 -1
  424. package/dist/billing/modules/subscriptions/pages/index.js +4 -3
  425. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts +0 -1
  426. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js +17 -18
  427. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js.map +1 -1
  428. package/dist/billing/modules/usage/hooks/index.d.ts +0 -1
  429. package/dist/billing/modules/usage/hooks/useUsage.d.ts +0 -1
  430. package/dist/billing/modules/usage/hooks/useUsage.js +72 -73
  431. package/dist/billing/modules/usage/hooks/useUsage.js.map +1 -1
  432. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts +0 -1
  433. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.js +12 -13
  434. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.js.map +1 -1
  435. package/dist/billing/modules/usage/index.d.ts +0 -1
  436. package/dist/billing/modules/usage/index.js +1 -2
  437. package/dist/billing/modules/usage/pages/UsagePage.d.ts +0 -1
  438. package/dist/billing/modules/usage/pages/UsagePage.js +229 -227
  439. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  440. package/dist/billing/modules/usage/pages/index.d.ts +0 -1
  441. package/dist/billing/modules/usage/pages/index.js +1 -1
  442. package/dist/billing/modules/usage/utils/aiSpend.d.ts +0 -1
  443. package/dist/billing/modules/usage/utils/aiSpend.js +2 -3
  444. package/dist/billing/modules/usage/utils/aiSpend.js.map +1 -1
  445. package/dist/billing/providers/BillingProvider.d.ts +0 -1
  446. package/dist/billing/providers/BillingProvider.js +3 -4
  447. package/dist/billing/providers/BillingProvider.js.map +1 -1
  448. package/dist/billing/shared/components/AccessDenied.d.ts +0 -1
  449. package/dist/billing/shared/components/AccessDenied.js +1 -2
  450. package/dist/billing/shared/components/AccessDenied.js.map +1 -1
  451. package/dist/billing/shared/components/ActorIdentity.d.ts +0 -1
  452. package/dist/billing/shared/components/ActorIdentity.js +2 -3
  453. package/dist/billing/shared/components/ActorIdentity.js.map +1 -1
  454. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +0 -1
  455. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js +1 -2
  456. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js.map +1 -1
  457. package/dist/billing/shared/components/EmptyState.d.ts +0 -1
  458. package/dist/billing/shared/components/EmptyState.js +1 -2
  459. package/dist/billing/shared/components/EmptyState.js.map +1 -1
  460. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +0 -1
  461. package/dist/billing/shared/components/PageHeader.d.ts +0 -1
  462. package/dist/billing/shared/components/PageHeader.js +1 -2
  463. package/dist/billing/shared/components/PageHeader.js.map +1 -1
  464. package/dist/billing/shared/components/PushPermissionNudge.d.ts +0 -1
  465. package/dist/billing/shared/components/PushPermissionNudge.js +2 -3
  466. package/dist/billing/shared/components/PushPermissionNudge.js.map +1 -1
  467. package/dist/billing/shared/components/ServerError.d.ts +0 -1
  468. package/dist/billing/shared/components/ServerError.js +1 -2
  469. package/dist/billing/shared/components/ServerError.js.map +1 -1
  470. package/dist/billing/shared/components/StatCard.d.ts +0 -1
  471. package/dist/billing/shared/components/StatCard.js +1 -2
  472. package/dist/billing/shared/components/StatCard.js.map +1 -1
  473. package/dist/billing/shared/components/index.d.ts +0 -1
  474. package/dist/billing/shared/components/index.js +8 -7
  475. package/dist/billing/shared/hooks/index.d.ts +0 -1
  476. package/dist/billing/shared/hooks/index.js +1 -1
  477. package/dist/billing/shared/hooks/useActorProfiles.d.ts +0 -1
  478. package/dist/billing/shared/hooks/useActorProfiles.js +4 -8
  479. package/dist/billing/shared/hooks/useActorProfiles.js.map +1 -1
  480. package/dist/billing/shared/hooks/useTr.d.ts +0 -1
  481. package/dist/billing/shared/hooks/useTr.js +1 -2
  482. package/dist/billing/shared/hooks/useTr.js.map +1 -1
  483. package/dist/billing/shared/index.d.ts +0 -1
  484. package/dist/billing/shared/types/graphql.d.ts +0 -1
  485. package/dist/billing/shared/types/graphql.js +1 -2
  486. package/dist/billing/shared/types/graphql.js.map +1 -1
  487. package/dist/billing/shared/types/index.d.ts +0 -1
  488. package/dist/billing/shared/ui/Card.d.ts +1 -2
  489. package/dist/billing/shared/ui/Card.js +1 -2
  490. package/dist/billing/shared/ui/Card.js.map +1 -1
  491. package/dist/billing/shared/ui/MetricCard.d.ts +1 -2
  492. package/dist/billing/shared/ui/MetricCard.js +1 -2
  493. package/dist/billing/shared/ui/MetricCard.js.map +1 -1
  494. package/dist/billing/shared/ui/ProgressBar.d.ts +1 -2
  495. package/dist/billing/shared/ui/ProgressBar.js +1 -2
  496. package/dist/billing/shared/ui/ProgressBar.js.map +1 -1
  497. package/dist/billing/shared/ui/SectionHeader.d.ts +1 -2
  498. package/dist/billing/shared/ui/StatusPill.d.ts +1 -2
  499. package/dist/billing/shared/ui/StatusPill.js +1 -2
  500. package/dist/billing/shared/ui/StatusPill.js.map +1 -1
  501. package/dist/billing/shared/ui/index.d.ts +0 -1
  502. package/dist/billing/shared/ui/index.js +5 -4
  503. package/dist/billing/shared/utils/directActivityGraphql.d.ts +0 -1
  504. package/dist/billing/shared/utils/directBillingGraphql.d.ts +0 -1
  505. package/dist/billing/shared/utils/directBillingGraphql.js +1 -2
  506. package/dist/billing/shared/utils/directBillingGraphql.js.map +1 -1
  507. package/dist/billing/shared/utils/error.d.ts +0 -1
  508. package/dist/billing/shared/utils/error.js +1 -2
  509. package/dist/billing/shared/utils/error.js.map +1 -1
  510. package/dist/billing/shared/utils/format.d.ts +0 -1
  511. package/dist/billing/shared/utils/format.js +1 -2
  512. package/dist/billing/shared/utils/format.js.map +1 -1
  513. package/dist/billing/shared/utils/gatewayGraphql.d.ts +0 -1
  514. package/dist/billing/shared/utils/gatewayGraphql.js +2 -3
  515. package/dist/billing/shared/utils/gatewayGraphql.js.map +1 -1
  516. package/dist/billing/shared/utils/index.d.ts +0 -1
  517. package/dist/billing/shared/utils/index.js +9 -8
  518. package/dist/billing/shared/utils/navigation.d.ts +0 -1
  519. package/dist/billing/shared/utils/navigation.js +1 -2
  520. package/dist/billing/shared/utils/navigation.js.map +1 -1
  521. package/dist/billing/shared/utils/paymentTheme.d.ts +0 -1
  522. package/dist/billing/shared/utils/paymentTheme.js +2 -3
  523. package/dist/billing/shared/utils/paymentTheme.js.map +1 -1
  524. package/dist/billing/shared/utils/planFeatureQuantity.d.ts +0 -1
  525. package/dist/billing/shared/utils/planFeatureQuantity.js +2 -3
  526. package/dist/billing/shared/utils/planFeatureQuantity.js.map +1 -1
  527. package/dist/billing/shared/utils/status.d.ts +0 -1
  528. package/dist/billing/shared/utils/status.js +24 -25
  529. package/dist/billing/shared/utils/status.js.map +1 -1
  530. package/dist/billing/shared/utils/tokens.d.ts +0 -1
  531. package/dist/billing/shared/utils/tokens.js +1 -2
  532. package/dist/billing/shared/utils/tokens.js.map +1 -1
  533. package/dist/billing/translations/en.d.ts +0 -1
  534. package/dist/billing/types/index.d.ts +0 -1
  535. package/dist/dev/main.d.ts +0 -1
  536. package/dist/generated/global-operations.d.ts +3252 -3206
  537. package/dist/generated/global-operations.js +445 -422
  538. package/dist/generated/global-operations.js.map +1 -1
  539. package/dist/generated/global-types.d.ts +2 -22
  540. package/dist/generated/global-types.js +1 -2
  541. package/dist/generated/global-types.js.map +1 -1
  542. package/dist/generated/wspace-operations.d.ts +76 -47
  543. package/dist/generated/wspace-operations.js +2 -3
  544. package/dist/generated/wspace-operations.js.map +1 -1
  545. package/dist/generated/wspace-types.d.ts +4 -24
  546. package/dist/index.d.ts +0 -1
  547. package/dist/index.js +1 -2
  548. package/dist/node_modules/@capacitor/core/dist/index.js +12 -14
  549. package/dist/node_modules/@capacitor/core/dist/index.js.map +1 -1
  550. package/dist/node_modules/sonner/dist/index.js +75 -69
  551. package/dist/node_modules/sonner/dist/index.js.map +1 -1
  552. package/dist/utils/nativeBridge.d.ts +0 -1
  553. package/dist/utils/nativeBridge.js +1 -2
  554. package/package.json +65 -54
  555. package/dist/billing/BillingAdminRoutes.d.ts.map +0 -1
  556. package/dist/billing/BillingRoot.d.ts.map +0 -1
  557. package/dist/billing/BillingUserRoutes.d.ts.map +0 -1
  558. package/dist/billing/hooks/useBillingAccountSelection.d.ts.map +0 -1
  559. package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +0 -1
  560. package/dist/billing/hooks/useBillingNavigate.d.ts.map +0 -1
  561. package/dist/billing/hooks/useBillingPermissions.d.ts.map +0 -1
  562. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts.map +0 -1
  563. package/dist/billing/hooks/useProducts.d.ts.map +0 -1
  564. package/dist/billing/index.d.ts.map +0 -1
  565. package/dist/billing/lib/native-purchases.d.ts.map +0 -1
  566. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +0 -1
  567. package/dist/billing/modules/addons/hooks/index.d.ts.map +0 -1
  568. package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts.map +0 -1
  569. package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +0 -1
  570. package/dist/billing/modules/addons/index.d.ts.map +0 -1
  571. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +0 -1
  572. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +0 -1
  573. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +0 -1
  574. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +0 -1
  575. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +0 -1
  576. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +0 -1
  577. package/dist/billing/modules/addons/pages/index.d.ts.map +0 -1
  578. package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +0 -1
  579. package/dist/billing/modules/affiliate/api.d.ts.map +0 -1
  580. package/dist/billing/modules/affiliate/index.d.ts.map +0 -1
  581. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +0 -1
  582. package/dist/billing/modules/analytics/index.d.ts.map +0 -1
  583. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +0 -1
  584. package/dist/billing/modules/analytics/pages/index.d.ts.map +0 -1
  585. package/dist/billing/modules/billing/hooks/index.d.ts.map +0 -1
  586. package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +0 -1
  587. package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts.map +0 -1
  588. package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +0 -1
  589. package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +0 -1
  590. package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +0 -1
  591. package/dist/billing/modules/billing/index.d.ts.map +0 -1
  592. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts.map +0 -1
  593. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +0 -1
  594. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +0 -1
  595. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts.map +0 -1
  596. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +0 -1
  597. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts.map +0 -1
  598. package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +0 -1
  599. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +0 -1
  600. package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts.map +0 -1
  601. package/dist/billing/modules/billing/pages/index.d.ts.map +0 -1
  602. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +0 -1
  603. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +0 -1
  604. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +0 -1
  605. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts.map +0 -1
  606. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +0 -1
  607. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +0 -1
  608. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +0 -1
  609. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +0 -1
  610. package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +0 -1
  611. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +0 -1
  612. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +0 -1
  613. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +0 -1
  614. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +0 -1
  615. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +0 -1
  616. package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts.map +0 -1
  617. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +0 -1
  618. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +0 -1
  619. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +0 -1
  620. package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts.map +0 -1
  621. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts.map +0 -1
  622. package/dist/billing/modules/checkout/components/index.d.ts.map +0 -1
  623. package/dist/billing/modules/checkout/hooks/index.d.ts.map +0 -1
  624. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +0 -1
  625. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +0 -1
  626. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts.map +0 -1
  627. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts.map +0 -1
  628. package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts.map +0 -1
  629. package/dist/billing/modules/checkout/index.d.ts.map +0 -1
  630. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +0 -1
  631. package/dist/billing/modules/checkout/pages/index.d.ts.map +0 -1
  632. package/dist/billing/modules/checkout/types/index.d.ts.map +0 -1
  633. package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +0 -1
  634. package/dist/billing/modules/coupons/index.d.ts.map +0 -1
  635. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +0 -1
  636. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +0 -1
  637. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +0 -1
  638. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +0 -1
  639. package/dist/billing/modules/coupons/pages/index.d.ts.map +0 -1
  640. package/dist/billing/modules/credits/hooks/index.d.ts.map +0 -1
  641. package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +0 -1
  642. package/dist/billing/modules/credits/index.d.ts.map +0 -1
  643. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +0 -1
  644. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +0 -1
  645. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +0 -1
  646. package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +0 -1
  647. package/dist/billing/modules/credits/pages/index.d.ts.map +0 -1
  648. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +0 -1
  649. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +0 -1
  650. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +0 -1
  651. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +0 -1
  652. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +0 -1
  653. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +0 -1
  654. package/dist/billing/modules/dashboard/components/index.d.ts.map +0 -1
  655. package/dist/billing/modules/dashboard/hooks/index.d.ts.map +0 -1
  656. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +0 -1
  657. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +0 -1
  658. package/dist/billing/modules/dashboard/index.d.ts.map +0 -1
  659. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +0 -1
  660. package/dist/billing/modules/dashboard/pages/index.d.ts.map +0 -1
  661. package/dist/billing/modules/discounts/index.d.ts.map +0 -1
  662. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +0 -1
  663. package/dist/billing/modules/discounts/pages/index.d.ts.map +0 -1
  664. package/dist/billing/modules/earnings/api.d.ts.map +0 -1
  665. package/dist/billing/modules/earnings/index.d.ts.map +0 -1
  666. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts.map +0 -1
  667. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts.map +0 -1
  668. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +0 -1
  669. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +0 -1
  670. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +0 -1
  671. package/dist/billing/modules/earnings/payoutAccountStatus.d.ts.map +0 -1
  672. package/dist/billing/modules/plans/constants/enterprise.d.ts.map +0 -1
  673. package/dist/billing/modules/plans/constants/featuredQuotas.d.ts.map +0 -1
  674. package/dist/billing/modules/plans/hooks/index.d.ts.map +0 -1
  675. package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +0 -1
  676. package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +0 -1
  677. package/dist/billing/modules/plans/index.d.ts.map +0 -1
  678. package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts.map +0 -1
  679. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +0 -1
  680. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +0 -1
  681. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +0 -1
  682. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +0 -1
  683. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +0 -1
  684. package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +0 -1
  685. package/dist/billing/modules/plans/pages/index.d.ts.map +0 -1
  686. package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts.map +0 -1
  687. package/dist/billing/modules/plans/utils/planSelector.d.ts.map +0 -1
  688. package/dist/billing/modules/promotions/index.d.ts.map +0 -1
  689. package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts.map +0 -1
  690. package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts.map +0 -1
  691. package/dist/billing/modules/promotions/pages/index.d.ts.map +0 -1
  692. package/dist/billing/modules/quota/hooks/index.d.ts.map +0 -1
  693. package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +0 -1
  694. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +0 -1
  695. package/dist/billing/modules/quota/index.d.ts.map +0 -1
  696. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts.map +0 -1
  697. package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +0 -1
  698. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +0 -1
  699. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +0 -1
  700. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +0 -1
  701. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +0 -1
  702. package/dist/billing/modules/quota/pages/index.d.ts.map +0 -1
  703. package/dist/billing/modules/quota/utils/quotaSelector.d.ts.map +0 -1
  704. package/dist/billing/modules/settings/index.d.ts.map +0 -1
  705. package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +0 -1
  706. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +0 -1
  707. package/dist/billing/modules/settings/pages/index.d.ts.map +0 -1
  708. package/dist/billing/modules/store/graphql/index.d.ts.map +0 -1
  709. package/dist/billing/modules/store/index.d.ts.map +0 -1
  710. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +0 -1
  711. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +0 -1
  712. package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +0 -1
  713. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +0 -1
  714. package/dist/billing/modules/subscriptions/index.d.ts.map +0 -1
  715. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +0 -1
  716. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +0 -1
  717. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +0 -1
  718. package/dist/billing/modules/subscriptions/pages/index.d.ts.map +0 -1
  719. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts.map +0 -1
  720. package/dist/billing/modules/usage/hooks/index.d.ts.map +0 -1
  721. package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +0 -1
  722. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts.map +0 -1
  723. package/dist/billing/modules/usage/index.d.ts.map +0 -1
  724. package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +0 -1
  725. package/dist/billing/modules/usage/pages/index.d.ts.map +0 -1
  726. package/dist/billing/modules/usage/utils/aiSpend.d.ts.map +0 -1
  727. package/dist/billing/providers/BillingProvider.d.ts.map +0 -1
  728. package/dist/billing/shared/components/AccessDenied.d.ts.map +0 -1
  729. package/dist/billing/shared/components/ActorIdentity.d.ts.map +0 -1
  730. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +0 -1
  731. package/dist/billing/shared/components/EmptyState.d.ts.map +0 -1
  732. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +0 -1
  733. package/dist/billing/shared/components/PageHeader.d.ts.map +0 -1
  734. package/dist/billing/shared/components/PushPermissionNudge.d.ts.map +0 -1
  735. package/dist/billing/shared/components/ServerError.d.ts.map +0 -1
  736. package/dist/billing/shared/components/StatCard.d.ts.map +0 -1
  737. package/dist/billing/shared/components/index.d.ts.map +0 -1
  738. package/dist/billing/shared/hooks/index.d.ts.map +0 -1
  739. package/dist/billing/shared/hooks/useActorProfiles.d.ts.map +0 -1
  740. package/dist/billing/shared/hooks/useTr.d.ts.map +0 -1
  741. package/dist/billing/shared/index.d.ts.map +0 -1
  742. package/dist/billing/shared/types/graphql.d.ts.map +0 -1
  743. package/dist/billing/shared/types/index.d.ts.map +0 -1
  744. package/dist/billing/shared/ui/Card.d.ts.map +0 -1
  745. package/dist/billing/shared/ui/MetricCard.d.ts.map +0 -1
  746. package/dist/billing/shared/ui/ProgressBar.d.ts.map +0 -1
  747. package/dist/billing/shared/ui/SectionHeader.d.ts.map +0 -1
  748. package/dist/billing/shared/ui/StatusPill.d.ts.map +0 -1
  749. package/dist/billing/shared/ui/index.d.ts.map +0 -1
  750. package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +0 -1
  751. package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +0 -1
  752. package/dist/billing/shared/utils/error.d.ts.map +0 -1
  753. package/dist/billing/shared/utils/format.d.ts.map +0 -1
  754. package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +0 -1
  755. package/dist/billing/shared/utils/index.d.ts.map +0 -1
  756. package/dist/billing/shared/utils/navigation.d.ts.map +0 -1
  757. package/dist/billing/shared/utils/paymentTheme.d.ts.map +0 -1
  758. package/dist/billing/shared/utils/planFeatureQuantity.d.ts.map +0 -1
  759. package/dist/billing/shared/utils/status.d.ts.map +0 -1
  760. package/dist/billing/shared/utils/tokens.d.ts.map +0 -1
  761. package/dist/billing/translations/en.d.ts.map +0 -1
  762. package/dist/billing/types/index.d.ts.map +0 -1
  763. package/dist/dev/main.d.ts.map +0 -1
  764. package/dist/generated/global-operations.d.ts.map +0 -1
  765. package/dist/generated/global-types.d.ts.map +0 -1
  766. package/dist/generated/wspace-operations.d.ts.map +0 -1
  767. package/dist/generated/wspace-types.d.ts.map +0 -1
  768. package/dist/index.d.ts.map +0 -1
  769. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,19 +1,19 @@
1
1
  import { AccessDenied as e } from "../../../shared/components/AccessDenied.js";
2
+ import { useCreateDiscountMutation as t, useDeleteDiscountMutation as n, useGetDiscountsQuery as r, useUpdateDiscountMutation as i } from "../../../../generated/global-operations.js";
3
+ import { useBillingPermissions as a } from "../../../hooks/useBillingPermissions.js";
2
4
  import "../../../shared/components/index.js";
3
- import { formatCurrency as t, formatDate as n } from "../../../shared/utils/format.js";
4
- import { useBillingPermissions as r } from "../../../hooks/useBillingPermissions.js";
5
- import { useCreateDiscountMutation as i, useDeleteDiscountMutation as a, useGetDiscountsQuery as o, useUpdateDiscountMutation as ee } from "../../../../generated/global-operations.js";
6
- import { nativeImpact as s, nativeNotify as c } from "../../../../utils/nativeBridge.js";
7
- import { useMemo as l, useState as u } from "react";
5
+ import { formatCurrency as o, formatDate as s } from "../../../shared/utils/format.js";
6
+ import { nativeImpact as c, nativeNotify as l } from "../../../../utils/nativeBridge.js";
7
+ import { useMemo as ee, useState as u } from "react";
8
8
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
9
- import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
- import { IllustratedEmptyState as p, PagePurpose as m } from "@burdenoff/fe-libs/ui";
11
- //#region src/billing/modules/discounts/pages/DiscountsListPage.tsx
9
+ import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
+ import { IllustratedEmptyState as m, PagePurpose as te } from "@burdenoff/fe-libs/ui";
11
+ // src/billing/modules/discounts/pages/DiscountsListPage.tsx
12
12
  function h(e) {
13
13
  return e.validUntil ? new Date(e.validUntil) < /* @__PURE__ */ new Date() : !1;
14
14
  }
15
15
  function g(e) {
16
- return e.type === "PERCENTAGE" ? `${e.value}%` : t(e.value, e.currency ?? "USD");
16
+ return e.type === "PERCENTAGE" ? `${e.value}%` : o(e.value, e.currency ?? "USD");
17
17
  }
18
18
  var _ = {
19
19
  code: "",
@@ -24,96 +24,90 @@ var _ = {
24
24
  validFrom: "",
25
25
  validUntil: ""
26
26
  }, v = () => {
27
- let { t } = te(), n = (e, n) => {
28
- let r = t(e);
29
- return r === e ? n : r;
30
- }, v = r(), { data: x, loading: S, error: C, refetch: w } = o(), [T, { loading: E }] = i(), [D, { loading: O }] = ee(), [k, { loading: A }] = a(), [j, ne] = u(""), [M, N] = u({ kind: "closed" }), [P, F] = u(_), [I, L] = u({
27
+ let { t: o } = p(), s = (e, t) => {
28
+ let n = o(e);
29
+ return n === e ? t : n;
30
+ }, v = a(), { data: ne, loading: re, error: x, refetch: S } = r(), [C, { loading: w }] = t(), [T, { loading: E }] = i(), [D, { loading: O }] = n(), [k, A] = u(""), [j, M] = u({ kind: "closed" }), [N, P] = u(_), [F, I] = u({
31
31
  maxUses: "",
32
32
  validUntil: ""
33
- }), [R, z] = u(null), [B, V] = u(/* @__PURE__ */ new Set()), [H, U] = u(!1), W = x?.getDiscounts ?? [], G = W.filter((e) => j ? e.code.toLowerCase().includes(j.toLowerCase()) : !0), K = l(() => G.filter((e) => B.has(e.id)), [G, B]), q = G.length > 0 && G.every((e) => B.has(e.id)), J = G.some((e) => B.has(e.id)) && !q;
33
+ }), [L, R] = u(null), [z, B] = u(/* @__PURE__ */ new Set()), [V, H] = u(!1), U = ne?.getDiscounts ?? [], W = U.filter((e) => !k || e.code.toLowerCase().includes(k.toLowerCase())), G = ee(() => W.filter((e) => z.has(e.id)), [W, z]), K = W.length > 0 && W.every((e) => z.has(e.id)), q = W.some((e) => z.has(e.id)) && !K;
34
34
  if (!v.canManageDiscounts) return /* @__PURE__ */ d(e, { message: "You don't have permission to manage discount codes." });
35
- let Y = W.length, X = W.filter((e) => !h(e)).length, re = W.filter((e) => h(e)).length, Z = () => {
36
- F(_), z(null), N({ kind: "create" });
37
- }, ie = (e) => {
38
- L({
35
+ let J = U.length, Y = U.filter((e) => !h(e)).length, ie = U.filter((e) => h(e)).length, X = () => {
36
+ P(_), R(null), M({ kind: "create" });
37
+ }, ae = (e) => {
38
+ I({
39
39
  maxUses: e.maxUses == null ? "" : String(e.maxUses),
40
40
  validUntil: e.validUntil ? new Date(e.validUntil).toISOString().slice(0, 16) : ""
41
- }), z(null), N({
41
+ }), R(null), M({
42
42
  kind: "edit",
43
43
  discount: e
44
44
  });
45
- }, ae = (e) => {
46
- z(null), N({
45
+ }, oe = (e) => {
46
+ R(null), M({
47
47
  kind: "delete",
48
48
  discount: e
49
49
  });
50
- }, Q = () => {
51
- N({ kind: "closed" }), z(null);
52
- }, oe = async (e) => {
53
- if (e.preventDefault(), z(null), !P.code.trim()) {
54
- z("Discount code is required.");
55
- return;
56
- }
57
- let t = Number(P.value);
58
- if (Number.isNaN(t) || t <= 0) {
59
- z("Value must be a positive number.");
50
+ }, Z = () => {
51
+ M({ kind: "closed" }), R(null);
52
+ }, Q = async (e) => {
53
+ if (e.preventDefault(), R(null), !N.code.trim()) {
54
+ R("Discount code is required.");
60
55
  return;
61
56
  }
62
- if (P.type === "PERCENTAGE" && t > 100) {
63
- z("Percentage value cannot exceed 100.");
64
- return;
65
- }
66
- try {
67
- await T({ variables: {
68
- code: P.code.trim().toUpperCase(),
69
- type: P.type,
57
+ let t = Number(N.value);
58
+ if (Number.isNaN(t) || t <= 0) R("Value must be a positive number.");
59
+ else if (N.type === "PERCENTAGE" && t > 100) R("Percentage value cannot exceed 100.");
60
+ else try {
61
+ await C({ variables: {
62
+ code: N.code.trim().toUpperCase(),
63
+ type: N.type,
70
64
  value: t,
71
- currency: P.type === "FIXED" ? P.currency : null,
72
- maxUses: P.maxUses ? Number(P.maxUses) : null,
73
- validFrom: P.validFrom ? new Date(P.validFrom).toISOString() : null,
74
- validUntil: P.validUntil ? new Date(P.validUntil).toISOString() : null
75
- } }), await w(), Q();
65
+ currency: N.type === "FIXED" ? N.currency : null,
66
+ maxUses: N.maxUses ? Number(N.maxUses) : null,
67
+ validFrom: N.validFrom ? new Date(N.validFrom).toISOString() : null,
68
+ validUntil: N.validUntil ? new Date(N.validUntil).toISOString() : null
69
+ } }), await S(), Z();
76
70
  } catch (e) {
77
- z(e instanceof Error ? e.message : "Failed to create discount.");
71
+ R(e instanceof Error ? e.message : "Failed to create discount.");
78
72
  }
79
73
  }, se = async (e) => {
80
- if (e.preventDefault(), M.kind === "edit") {
81
- z(null);
74
+ if (e.preventDefault(), j.kind === "edit") {
75
+ R(null);
82
76
  try {
83
- await D({ variables: {
84
- id: M.discount.id,
85
- maxUses: I.maxUses ? Number(I.maxUses) : null,
86
- validUntil: I.validUntil ? new Date(I.validUntil).toISOString() : null
87
- } }), await w(), Q();
77
+ await T({ variables: {
78
+ id: j.discount.id,
79
+ maxUses: F.maxUses ? Number(F.maxUses) : null,
80
+ validUntil: F.validUntil ? new Date(F.validUntil).toISOString() : null
81
+ } }), await S(), Z();
88
82
  } catch (e) {
89
- z(e instanceof Error ? e.message : "Failed to update discount.");
83
+ R(e instanceof Error ? e.message : "Failed to update discount.");
90
84
  }
91
85
  }
92
86
  }, ce = async () => {
93
- if (M.kind === "delete") {
94
- z(null), s("medium");
87
+ if (j.kind === "delete") {
88
+ R(null), c("medium");
95
89
  try {
96
- await k({ variables: { id: M.discount.id } }), c("success"), await w(), Q();
90
+ await D({ variables: { id: j.discount.id } }), l("success"), await S(), Z();
97
91
  } catch (e) {
98
- c("error"), z(e instanceof Error ? e.message : "Failed to delete discount.");
92
+ l("error"), R(e instanceof Error ? e.message : "Failed to delete discount.");
99
93
  }
100
94
  }
101
95
  }, le = async () => {
102
- K.length !== 0 && (z(null), U(!1), await Promise.allSettled(K.map((e) => k({ variables: { id: e.id } }))), await w(), V(/* @__PURE__ */ new Set()));
96
+ G.length !== 0 && (R(null), H(!1), await Promise.allSettled(G.map((e) => D({ variables: { id: e.id } }))), await S(), B(/* @__PURE__ */ new Set()));
103
97
  }, ue = (e, t) => {
104
- V((n) => {
98
+ B((n) => {
105
99
  let r = new Set(n);
106
100
  return t ? r.add(e) : r.delete(e), r;
107
- }), U(!1);
101
+ }), H(!1);
108
102
  }, $ = (e) => {
109
- V((t) => {
103
+ B((t) => {
110
104
  let n = new Set(t);
111
- return G.forEach((t) => {
105
+ return W.forEach((t) => {
112
106
  e ? n.add(t.id) : n.delete(t.id);
113
107
  }), n;
114
- }), U(!1);
108
+ }), H(!1);
115
109
  };
116
- return S && W.length === 0 ? /* @__PURE__ */ f("div", {
110
+ return re && U.length === 0 ? /* @__PURE__ */ f("div", {
117
111
  className: "space-y-6 p-6",
118
112
  children: [
119
113
  /* @__PURE__ */ d("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }),
@@ -148,7 +142,7 @@ var _ = {
148
142
  }, e))
149
143
  })
150
144
  ]
151
- }) : C ? /* @__PURE__ */ d("div", {
145
+ }) : x ? /* @__PURE__ */ d("div", {
152
146
  className: "flex items-center justify-center h-full min-h-[400px]",
153
147
  children: /* @__PURE__ */ f("div", {
154
148
  className: "text-center space-y-4",
@@ -174,11 +168,11 @@ var _ = {
174
168
  }),
175
169
  /* @__PURE__ */ d("p", {
176
170
  className: "text-sm text-text-muted",
177
- children: C.message
171
+ children: x.message
178
172
  }),
179
173
  /* @__PURE__ */ d("button", {
180
174
  type: "button",
181
- onClick: () => w(),
175
+ onClick: () => S(),
182
176
  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",
183
177
  children: "Try Again"
184
178
  })
@@ -198,13 +192,13 @@ var _ = {
198
192
  className: "text-sm text-text-secondary mt-1",
199
193
  children: "Create, view, and manage discount codes for billing"
200
194
  }),
201
- /* @__PURE__ */ d(m, {
195
+ /* @__PURE__ */ d(te, {
202
196
  className: "mt-3",
203
197
  children: "Discount codes reduce the price of a purchase at checkout. Create codes here, set how much they take off and any limits, and manage which ones are active — separate from time-bounded promotions and customer-facing coupons."
204
198
  })
205
199
  ] }), /* @__PURE__ */ f("button", {
206
200
  type: "button",
207
- onClick: Z,
201
+ onClick: X,
208
202
  className: "inline-flex items-center gap-2 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 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
209
203
  children: [/* @__PURE__ */ d("svg", {
210
204
  className: "size-4",
@@ -230,7 +224,7 @@ var _ = {
230
224
  children: "Total Discounts"
231
225
  }), /* @__PURE__ */ d("p", {
232
226
  className: "text-2xl font-semibold text-text-primary tabular-nums mt-1",
233
- children: Y
227
+ children: J
234
228
  })]
235
229
  }),
236
230
  /* @__PURE__ */ f("div", {
@@ -240,7 +234,7 @@ var _ = {
240
234
  children: "Active"
241
235
  }), /* @__PURE__ */ d("p", {
242
236
  className: "text-2xl font-semibold text-status-success-text tabular-nums mt-1",
243
- children: X
237
+ children: Y
244
238
  })]
245
239
  }),
246
240
  /* @__PURE__ */ f("div", {
@@ -250,7 +244,7 @@ var _ = {
250
244
  children: "Expired"
251
245
  }), /* @__PURE__ */ d("p", {
252
246
  className: "text-2xl font-semibold text-status-warning-text tabular-nums mt-1",
253
- children: re
247
+ children: ie
254
248
  })]
255
249
  })
256
250
  ]
@@ -273,21 +267,21 @@ var _ = {
273
267
  }), /* @__PURE__ */ d("input", {
274
268
  type: "text",
275
269
  placeholder: "Search by discount code...",
276
- value: j,
277
- onChange: (e) => ne(e.target.value),
270
+ value: k,
271
+ onChange: (e) => A(e.target.value),
278
272
  className: "w-full pl-[3.25rem] pr-4 py-2 text-sm border border-border-subtle rounded-input bg-bg-surface text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-transparent"
279
273
  })]
280
274
  })
281
275
  }),
282
- G.length > 0 && /* @__PURE__ */ f("div", {
276
+ W.length > 0 && /* @__PURE__ */ f("div", {
283
277
  className: "flex flex-col gap-3 rounded-lg border border-border-subtle bg-bg-surface p-4 sm:flex-row sm:items-center sm:justify-between",
284
278
  children: [/* @__PURE__ */ f("label", {
285
279
  className: "flex items-center gap-2 text-sm text-text-primary",
286
280
  children: [/* @__PURE__ */ d("input", {
287
281
  type: "checkbox",
288
- checked: q,
282
+ checked: K,
289
283
  ref: (e) => {
290
- e && (e.indeterminate = J && !q);
284
+ e && (e.indeterminate = q && !K);
291
285
  },
292
286
  onChange: (e) => $(e.target.checked),
293
287
  "aria-label": "Select all discounts",
@@ -298,27 +292,27 @@ var _ = {
298
292
  children: [
299
293
  /* @__PURE__ */ f("span", {
300
294
  className: "text-sm text-text-muted",
301
- children: [B.size, " selected"]
295
+ children: [z.size, " selected"]
302
296
  }),
303
- B.size > 0 && /* @__PURE__ */ d("button", {
297
+ z.size > 0 && /* @__PURE__ */ d("button", {
304
298
  type: "button",
305
299
  onClick: () => {
306
- V(/* @__PURE__ */ new Set()), U(!1);
300
+ B(/* @__PURE__ */ new Set()), H(!1);
307
301
  },
308
302
  className: "text-sm text-text-muted hover:text-text-primary",
309
303
  children: "Clear selection"
310
304
  }),
311
305
  /* @__PURE__ */ f("button", {
312
306
  type: "button",
313
- onClick: () => U(!0),
314
- disabled: K.length === 0 || A,
307
+ onClick: () => H(!0),
308
+ disabled: G.length === 0 || O,
315
309
  className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium border border-status-error-border text-status-error-text rounded-md hover:bg-status-error-bg-subtle transition-colors disabled:opacity-50",
316
- children: ["Delete Selected", K.length > 0 ? ` (${K.length})` : ""]
310
+ children: ["Delete Selected", G.length > 0 ? ` (${G.length})` : ""]
317
311
  })
318
312
  ]
319
313
  })]
320
314
  }),
321
- H && K.length > 0 && /* @__PURE__ */ d("div", {
315
+ V && G.length > 0 && /* @__PURE__ */ d("div", {
322
316
  className: "rounded-lg border border-status-error-border bg-status-error-bg-subtle p-4",
323
317
  children: /* @__PURE__ */ f("div", {
324
318
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
@@ -326,9 +320,9 @@ var _ = {
326
320
  className: "text-sm font-medium text-text-primary",
327
321
  children: [
328
322
  "Delete ",
329
- K.length,
323
+ G.length,
330
324
  " selected discount",
331
- K.length === 1 ? "" : "s",
325
+ G.length === 1 ? "" : "s",
332
326
  "?"
333
327
  ]
334
328
  }), /* @__PURE__ */ d("p", {
@@ -338,26 +332,26 @@ var _ = {
338
332
  className: "flex items-center gap-2",
339
333
  children: [/* @__PURE__ */ d("button", {
340
334
  type: "button",
341
- onClick: () => U(!1),
335
+ onClick: () => H(!1),
342
336
  className: "px-3 py-2 text-sm font-medium text-text-muted hover:text-text-primary",
343
337
  children: "Cancel"
344
338
  }), /* @__PURE__ */ d("button", {
345
339
  type: "button",
346
340
  onClick: le,
347
- disabled: A,
341
+ disabled: O,
348
342
  className: "inline-flex items-center gap-2 rounded-button bg-action-danger-bg px-3 py-2 text-sm font-medium text-action-danger-text hover:bg-action-danger-bgHover disabled:opacity-50",
349
343
  children: "Confirm Delete"
350
344
  })]
351
345
  })]
352
346
  })
353
347
  }),
354
- G.length === 0 ? /* @__PURE__ */ d(p, {
355
- illustration: j ? "empty-search" : "empty-data",
348
+ W.length === 0 ? /* @__PURE__ */ d(m, {
349
+ illustration: k ? "empty-search" : "empty-data",
356
350
  title: "No discount codes found",
357
- description: j ? "No discount codes match your search." : "Create your first discount code to get started.",
358
- action: j ? void 0 : /* @__PURE__ */ d("button", {
351
+ description: k ? "No discount codes match your search." : "Create your first discount code to get started.",
352
+ action: k ? void 0 : /* @__PURE__ */ d("button", {
359
353
  type: "button",
360
- onClick: Z,
354
+ onClick: X,
361
355
  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",
362
356
  children: "Create your first discount"
363
357
  })
@@ -374,9 +368,9 @@ var _ = {
374
368
  className: "text-left px-4 py-3 text-xs font-medium uppercase tracking-wide text-text-muted w-12",
375
369
  children: /* @__PURE__ */ d("input", {
376
370
  type: "checkbox",
377
- checked: q,
371
+ checked: K,
378
372
  ref: (e) => {
379
- e && (e.indeterminate = J && !q);
373
+ e && (e.indeterminate = q && !K);
380
374
  },
381
375
  onChange: (e) => $(e.target.checked),
382
376
  "aria-label": "Select all discounts",
@@ -418,31 +412,31 @@ var _ = {
418
412
  ] })
419
413
  }), /* @__PURE__ */ d("tbody", {
420
414
  className: "divide-y divide-border-subtle",
421
- children: G.map((e) => /* @__PURE__ */ d(y, {
415
+ children: W.map((e) => /* @__PURE__ */ d(y, {
422
416
  discount: e,
423
- selected: B.has(e.id),
417
+ selected: z.has(e.id),
424
418
  onToggleSelect: ue,
425
- onEdit: ie,
426
- onDelete: ae
419
+ onEdit: ae,
420
+ onDelete: oe
427
421
  }, e.id))
428
422
  })]
429
423
  })
430
424
  })
431
425
  }),
432
- M.kind === "create" && /* @__PURE__ */ d(b, {
433
- onClose: Q,
426
+ j.kind === "create" && /* @__PURE__ */ d(b, {
427
+ onClose: Z,
434
428
  children: /* @__PURE__ */ f("form", {
435
- onSubmit: oe,
429
+ onSubmit: Q,
436
430
  className: "space-y-4",
437
431
  children: [
438
432
  /* @__PURE__ */ f("div", {
439
433
  className: "flex items-center justify-between mb-2",
440
434
  children: [/* @__PURE__ */ d("h2", {
441
435
  className: "text-lg font-semibold text-text-primary",
442
- children: n("billing.discounts.createDiscountCode", "Create Discount Code")
436
+ children: s("billing.discounts.createDiscountCode", "Create Discount Code")
443
437
  }), /* @__PURE__ */ d("button", {
444
438
  type: "button",
445
- onClick: Q,
439
+ onClick: Z,
446
440
  className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
447
441
  children: /* @__PURE__ */ d("svg", {
448
442
  className: "size-5 text-text-muted",
@@ -458,15 +452,15 @@ var _ = {
458
452
  })
459
453
  })]
460
454
  }),
461
- R && /* @__PURE__ */ d("div", {
455
+ L && /* @__PURE__ */ d("div", {
462
456
  className: "p-3 text-sm text-status-error-text bg-status-error-bg-subtle border border-status-error-border rounded-md",
463
- children: R
457
+ children: L
464
458
  }),
465
459
  /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("label", {
466
460
  htmlFor: "create-code",
467
461
  className: "block text-sm font-medium text-text-primary mb-1",
468
462
  children: [
469
- n("billing.discounts.code", "Code"),
463
+ s("billing.discounts.code", "Code"),
470
464
  " ",
471
465
  /* @__PURE__ */ d("span", {
472
466
  className: "text-status-error-text",
@@ -477,12 +471,12 @@ var _ = {
477
471
  id: "create-code",
478
472
  type: "text",
479
473
  required: !0,
480
- value: P.code,
481
- onChange: (e) => F((t) => ({
474
+ value: N.code,
475
+ onChange: (e) => P((t) => ({
482
476
  ...t,
483
477
  code: e.target.value
484
478
  })),
485
- placeholder: n("billing.discounts.codePlaceholder", "e.g. SUMMER25"),
479
+ placeholder: s("billing.discounts.codePlaceholder", "e.g. SUMMER25"),
486
480
  className: "w-full px-3 py-2 text-sm border border-border-subtle rounded-input bg-bg-surface text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-transparent uppercase"
487
481
  })] }),
488
482
  /* @__PURE__ */ f("div", {
@@ -491,7 +485,7 @@ var _ = {
491
485
  htmlFor: "create-type",
492
486
  className: "block text-sm font-medium text-text-primary mb-1",
493
487
  children: [
494
- n("billing.discounts.type", "Type"),
488
+ s("billing.discounts.type", "Type"),
495
489
  " ",
496
490
  /* @__PURE__ */ d("span", {
497
491
  className: "text-status-error-text",
@@ -500,24 +494,24 @@ var _ = {
500
494
  ]
501
495
  }), /* @__PURE__ */ f("select", {
502
496
  id: "create-type",
503
- value: P.type,
504
- onChange: (e) => F((t) => ({
497
+ value: N.type,
498
+ onChange: (e) => P((t) => ({
505
499
  ...t,
506
500
  type: e.target.value
507
501
  })),
508
502
  className: "w-full 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)] focus:border-transparent scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
509
503
  children: [/* @__PURE__ */ d("option", {
510
504
  value: "PERCENTAGE",
511
- children: n("billing.discounts.typePercentage", "Percentage")
505
+ children: s("billing.discounts.typePercentage", "Percentage")
512
506
  }), /* @__PURE__ */ d("option", {
513
507
  value: "FIXED",
514
- children: n("billing.discounts.typeFixedAmount", "Fixed Amount")
508
+ children: s("billing.discounts.typeFixedAmount", "Fixed Amount")
515
509
  })]
516
510
  })] }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("label", {
517
511
  htmlFor: "create-value",
518
512
  className: "block text-sm font-medium text-text-primary mb-1",
519
513
  children: [
520
- n("billing.discounts.value", "Value"),
514
+ s("billing.discounts.value", "Value"),
521
515
  " ",
522
516
  /* @__PURE__ */ d("span", {
523
517
  className: "text-status-error-text",
@@ -531,29 +525,29 @@ var _ = {
531
525
  type: "number",
532
526
  required: !0,
533
527
  min: "0.01",
534
- max: P.type === "PERCENTAGE" ? "100" : void 0,
528
+ max: N.type === "PERCENTAGE" ? "100" : void 0,
535
529
  step: "0.01",
536
- value: P.value,
537
- onChange: (e) => F((t) => ({
530
+ value: N.value,
531
+ onChange: (e) => P((t) => ({
538
532
  ...t,
539
533
  value: e.target.value
540
534
  })),
541
- placeholder: P.type === "PERCENTAGE" ? "10" : "25.00",
535
+ placeholder: N.type === "PERCENTAGE" ? "10" : "25.00",
542
536
  className: "w-full px-3 py-2 pr-8 text-sm border border-border-subtle rounded-input bg-bg-surface text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-transparent"
543
537
  }), /* @__PURE__ */ d("span", {
544
538
  className: "absolute right-3 top-1/2 -translate-y-1/2 text-sm text-text-muted",
545
- children: P.type === "PERCENTAGE" ? "%" : P.currency
539
+ children: N.type === "PERCENTAGE" ? "%" : N.currency
546
540
  })]
547
541
  })] })]
548
542
  }),
549
- P.type === "FIXED" && /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
543
+ N.type === "FIXED" && /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
550
544
  htmlFor: "create-currency",
551
545
  className: "block text-sm font-medium text-text-primary mb-1",
552
- children: n("billing.discounts.currency", "Currency")
546
+ children: s("billing.discounts.currency", "Currency")
553
547
  }), /* @__PURE__ */ f("select", {
554
548
  id: "create-currency",
555
- value: P.currency,
556
- onChange: (e) => F((t) => ({
549
+ value: N.currency,
550
+ onChange: (e) => P((t) => ({
557
551
  ...t,
558
552
  currency: e.target.value
559
553
  })),
@@ -589,24 +583,24 @@ var _ = {
589
583
  /* @__PURE__ */ d("label", {
590
584
  htmlFor: "create-max-uses",
591
585
  className: "block text-sm font-medium text-text-primary mb-1",
592
- children: n("billing.discounts.maxUses", "Max Uses")
586
+ children: s("billing.discounts.maxUses", "Max Uses")
593
587
  }),
594
588
  /* @__PURE__ */ d("input", {
595
589
  id: "create-max-uses",
596
590
  type: "number",
597
591
  min: "1",
598
592
  step: "1",
599
- value: P.maxUses,
600
- onChange: (e) => F((t) => ({
593
+ value: N.maxUses,
594
+ onChange: (e) => P((t) => ({
601
595
  ...t,
602
596
  maxUses: e.target.value
603
597
  })),
604
- placeholder: n("billing.discounts.unlimited", "Unlimited"),
598
+ placeholder: s("billing.discounts.unlimited", "Unlimited"),
605
599
  className: "w-full px-3 py-2 text-sm border border-border-subtle rounded-input bg-bg-surface text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-transparent"
606
600
  }),
607
601
  /* @__PURE__ */ d("p", {
608
602
  className: "text-xs text-text-muted mt-1",
609
- children: n("billing.discounts.unlimitedHelp", "Leave empty for unlimited uses.")
603
+ children: s("billing.discounts.unlimitedHelp", "Leave empty for unlimited uses.")
610
604
  })
611
605
  ] }),
612
606
  /* @__PURE__ */ f("div", {
@@ -614,12 +608,12 @@ var _ = {
614
608
  children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
615
609
  htmlFor: "create-valid-from",
616
610
  className: "block text-sm font-medium text-text-primary mb-1",
617
- children: n("billing.discounts.validFrom", "Valid From")
611
+ children: s("billing.discounts.validFrom", "Valid From")
618
612
  }), /* @__PURE__ */ d("input", {
619
613
  id: "create-valid-from",
620
614
  type: "datetime-local",
621
- value: P.validFrom,
622
- onChange: (e) => F((t) => ({
615
+ value: N.validFrom,
616
+ onChange: (e) => P((t) => ({
623
617
  ...t,
624
618
  validFrom: e.target.value
625
619
  })),
@@ -627,12 +621,12 @@ var _ = {
627
621
  })] }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
628
622
  htmlFor: "create-valid-until",
629
623
  className: "block text-sm font-medium text-text-primary mb-1",
630
- children: n("billing.discounts.validUntil", "Valid Until")
624
+ children: s("billing.discounts.validUntil", "Valid Until")
631
625
  }), /* @__PURE__ */ d("input", {
632
626
  id: "create-valid-until",
633
627
  type: "datetime-local",
634
- value: P.validUntil,
635
- onChange: (e) => F((t) => ({
628
+ value: N.validUntil,
629
+ onChange: (e) => P((t) => ({
636
630
  ...t,
637
631
  validUntil: e.target.value
638
632
  })),
@@ -643,21 +637,21 @@ var _ = {
643
637
  className: "flex items-center justify-end gap-3 pt-2 border-t border-border-subtle",
644
638
  children: [/* @__PURE__ */ d("button", {
645
639
  type: "button",
646
- onClick: Q,
640
+ onClick: Z,
647
641
  className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
648
- children: n("billing.discounts.cancel", "Cancel")
642
+ children: s("billing.discounts.cancel", "Cancel")
649
643
  }), /* @__PURE__ */ d("button", {
650
644
  type: "submit",
651
- disabled: E,
645
+ disabled: w,
652
646
  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 disabled:opacity-50 disabled:cursor-not-allowed",
653
- children: E ? n("billing.discounts.creating", "Creating...") : n("billing.discounts.createDiscount", "Create Discount")
647
+ children: w ? s("billing.discounts.creating", "Creating...") : s("billing.discounts.createDiscount", "Create Discount")
654
648
  })]
655
649
  })
656
650
  ]
657
651
  })
658
652
  }),
659
- M.kind === "edit" && /* @__PURE__ */ d(b, {
660
- onClose: Q,
653
+ j.kind === "edit" && /* @__PURE__ */ d(b, {
654
+ onClose: Z,
661
655
  children: /* @__PURE__ */ f("form", {
662
656
  onSubmit: se,
663
657
  className: "space-y-4",
@@ -669,7 +663,7 @@ var _ = {
669
663
  children: "Edit Discount"
670
664
  }), /* @__PURE__ */ d("button", {
671
665
  type: "button",
672
- onClick: Q,
666
+ onClick: Z,
673
667
  className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
674
668
  children: /* @__PURE__ */ d("svg", {
675
669
  className: "size-5 text-text-muted",
@@ -685,9 +679,9 @@ var _ = {
685
679
  })
686
680
  })]
687
681
  }),
688
- R && /* @__PURE__ */ d("div", {
682
+ L && /* @__PURE__ */ d("div", {
689
683
  className: "p-3 text-sm text-status-error-text bg-status-error-bg-subtle border border-status-error-border rounded-md",
690
- children: R
684
+ children: L
691
685
  }),
692
686
  /* @__PURE__ */ f("div", {
693
687
  className: "p-3 bg-bg-sunken/50 border border-border-subtle rounded-md space-y-1",
@@ -699,7 +693,7 @@ var _ = {
699
693
  children: "Code"
700
694
  }), /* @__PURE__ */ d("span", {
701
695
  className: "font-mono font-medium text-text-primary",
702
- children: M.discount.code
696
+ children: j.discount.code
703
697
  })]
704
698
  }),
705
699
  /* @__PURE__ */ f("div", {
@@ -709,7 +703,7 @@ var _ = {
709
703
  children: "Type"
710
704
  }), /* @__PURE__ */ d("span", {
711
705
  className: "text-text-primary",
712
- children: M.discount.type === "PERCENTAGE" ? "Percentage" : "Fixed Amount"
706
+ children: j.discount.type === "PERCENTAGE" ? "Percentage" : "Fixed Amount"
713
707
  })]
714
708
  }),
715
709
  /* @__PURE__ */ f("div", {
@@ -719,7 +713,7 @@ var _ = {
719
713
  children: "Value"
720
714
  }), /* @__PURE__ */ d("span", {
721
715
  className: "text-text-primary",
722
- children: g(M.discount)
716
+ children: g(j.discount)
723
717
  })]
724
718
  }),
725
719
  /* @__PURE__ */ f("div", {
@@ -729,7 +723,7 @@ var _ = {
729
723
  children: "Used"
730
724
  }), /* @__PURE__ */ f("span", {
731
725
  className: "text-text-primary",
732
- children: [M.discount.usedCount, " times"]
726
+ children: [j.discount.usedCount, " times"]
733
727
  })]
734
728
  })
735
729
  ]
@@ -745,8 +739,8 @@ var _ = {
745
739
  type: "number",
746
740
  min: "1",
747
741
  step: "1",
748
- value: I.maxUses,
749
- onChange: (e) => L((t) => ({
742
+ value: F.maxUses,
743
+ onChange: (e) => I((t) => ({
750
744
  ...t,
751
745
  maxUses: e.target.value
752
746
  })),
@@ -765,8 +759,8 @@ var _ = {
765
759
  }), /* @__PURE__ */ d("input", {
766
760
  id: "edit-valid-until",
767
761
  type: "datetime-local",
768
- value: I.validUntil,
769
- onChange: (e) => L((t) => ({
762
+ value: F.validUntil,
763
+ onChange: (e) => I((t) => ({
770
764
  ...t,
771
765
  validUntil: e.target.value
772
766
  })),
@@ -776,21 +770,21 @@ var _ = {
776
770
  className: "flex items-center justify-end gap-3 pt-2 border-t border-border-subtle",
777
771
  children: [/* @__PURE__ */ d("button", {
778
772
  type: "button",
779
- onClick: Q,
773
+ onClick: Z,
780
774
  className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
781
775
  children: "Cancel"
782
776
  }), /* @__PURE__ */ d("button", {
783
777
  type: "submit",
784
- disabled: O,
778
+ disabled: E,
785
779
  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 disabled:opacity-50 disabled:cursor-not-allowed",
786
- children: O ? "Saving..." : "Save Changes"
780
+ children: E ? "Saving..." : "Save Changes"
787
781
  })]
788
782
  })
789
783
  ]
790
784
  })
791
785
  }),
792
- M.kind === "delete" && /* @__PURE__ */ d(b, {
793
- onClose: Q,
786
+ j.kind === "delete" && /* @__PURE__ */ d(b, {
787
+ onClose: Z,
794
788
  children: /* @__PURE__ */ f("div", {
795
789
  className: "space-y-4",
796
790
  children: [
@@ -801,7 +795,7 @@ var _ = {
801
795
  children: "Delete Discount"
802
796
  }), /* @__PURE__ */ d("button", {
803
797
  type: "button",
804
- onClick: Q,
798
+ onClick: Z,
805
799
  className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
806
800
  children: /* @__PURE__ */ d("svg", {
807
801
  className: "size-5 text-text-muted",
@@ -817,9 +811,9 @@ var _ = {
817
811
  })
818
812
  })]
819
813
  }),
820
- R && /* @__PURE__ */ d("div", {
814
+ L && /* @__PURE__ */ d("div", {
821
815
  className: "p-3 text-sm text-status-error-text bg-status-error-bg-subtle border border-status-error-border rounded-md",
822
- children: R
816
+ children: L
823
817
  }),
824
818
  /* @__PURE__ */ f("div", {
825
819
  className: "flex items-start gap-3",
@@ -844,7 +838,7 @@ var _ = {
844
838
  " ",
845
839
  /* @__PURE__ */ d("span", {
846
840
  className: "font-mono font-semibold",
847
- children: M.discount.code
841
+ children: j.discount.code
848
842
  }),
849
843
  "?"
850
844
  ]
@@ -855,10 +849,10 @@ var _ = {
855
849
  " ",
856
850
  /* @__PURE__ */ d("span", {
857
851
  className: "font-medium",
858
- children: M.discount.usedCount
852
+ children: j.discount.usedCount
859
853
  }),
860
854
  " time",
861
- M.discount.usedCount === 1 ? "" : "s",
855
+ j.discount.usedCount === 1 ? "" : "s",
862
856
  "."
863
857
  ]
864
858
  })] })]
@@ -867,15 +861,15 @@ var _ = {
867
861
  className: "flex items-center justify-end gap-3 pt-2 border-t border-border-subtle",
868
862
  children: [/* @__PURE__ */ d("button", {
869
863
  type: "button",
870
- onClick: Q,
864
+ onClick: Z,
871
865
  className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
872
866
  children: "Cancel"
873
867
  }), /* @__PURE__ */ d("button", {
874
868
  type: "button",
875
869
  onClick: ce,
876
- disabled: A,
870
+ disabled: O,
877
871
  className: "px-4 py-2 text-sm font-medium bg-action-danger-bg text-action-danger-text rounded-button hover:bg-action-danger-bgHover transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
878
- children: A ? "Deleting..." : "Delete Discount"
872
+ children: O ? "Deleting..." : "Delete Discount"
879
873
  })]
880
874
  })
881
875
  ]
@@ -883,8 +877,8 @@ var _ = {
883
877
  })
884
878
  ]
885
879
  });
886
- }, y = ({ discount: e, selected: t, onToggleSelect: r, onEdit: i, onDelete: a }) => {
887
- let o = h(e);
880
+ }, y = ({ discount: e, selected: t, onToggleSelect: n, onEdit: r, onDelete: i }) => {
881
+ let a = h(e);
888
882
  return /* @__PURE__ */ f("tr", {
889
883
  className: `hover:bg-bg-sunken/30 transition-colors ${t ? "bg-bg-sunken/20" : ""}`,
890
884
  children: [
@@ -893,7 +887,7 @@ var _ = {
893
887
  children: /* @__PURE__ */ d("input", {
894
888
  type: "checkbox",
895
889
  checked: t,
896
- onChange: (t) => r(e.id, t.target.checked),
890
+ onChange: (t) => n(e.id, t.target.checked),
897
891
  "aria-label": `Select discount ${e.code}`,
898
892
  className: "size-4 rounded border-border-subtle text-text-link"
899
893
  })
@@ -928,15 +922,15 @@ var _ = {
928
922
  }),
929
923
  /* @__PURE__ */ d("td", {
930
924
  className: "p-4 text-sm text-text-muted hidden lg:table-cell",
931
- children: e.validFrom ? n(e.validFrom, "short") : "—"
925
+ children: e.validFrom ? s(e.validFrom, "short") : "—"
932
926
  }),
933
927
  /* @__PURE__ */ d("td", {
934
928
  className: "p-4 text-sm text-text-muted hidden sm:table-cell",
935
- children: e.validUntil ? n(e.validUntil, "short") : "—"
929
+ children: e.validUntil ? s(e.validUntil, "short") : "—"
936
930
  }),
937
931
  /* @__PURE__ */ d("td", {
938
932
  className: "p-4",
939
- children: o ? /* @__PURE__ */ d("span", {
933
+ children: a ? /* @__PURE__ */ d("span", {
940
934
  className: "inline-flex px-2 py-1 text-xs font-medium rounded bg-status-warning-bg-subtle text-status-warning-text",
941
935
  children: "Expired"
942
936
  }) : /* @__PURE__ */ d("span", {
@@ -950,7 +944,7 @@ var _ = {
950
944
  className: "flex items-center justify-end gap-2",
951
945
  children: [/* @__PURE__ */ d("button", {
952
946
  type: "button",
953
- onClick: () => i(e),
947
+ onClick: () => r(e),
954
948
  className: "px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-bg-sunken rounded-button transition-colors",
955
949
  title: "Edit discount",
956
950
  children: /* @__PURE__ */ d("svg", {
@@ -967,7 +961,7 @@ var _ = {
967
961
  })
968
962
  }), /* @__PURE__ */ d("button", {
969
963
  type: "button",
970
- onClick: () => a(e),
964
+ onClick: () => i(e),
971
965
  className: "px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle rounded-md transition-colors",
972
966
  title: "Delete discount",
973
967
  children: /* @__PURE__ */ d("svg", {
@@ -997,7 +991,6 @@ var _ = {
997
991
  children: t
998
992
  })]
999
993
  });
1000
- //#endregion
1001
994
  export { v as DiscountsListPage };
1002
995
 
1003
996
  //# sourceMappingURL=DiscountsListPage.js.map