@burdenoff/microfe-billing 2026.1113.2 → 2026.1113.4

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 (118) hide show
  1. package/dist/billing/BillingRoot.js +83 -77
  2. package/dist/billing/BillingRoot.js.map +1 -1
  3. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +78 -78
  4. package/dist/billing/modules/addons/pages/AddonCreatePage.js +70 -70
  5. package/dist/billing/modules/addons/pages/AddonDetailPage.js +72 -72
  6. package/dist/billing/modules/addons/pages/AddonEditPage.js +79 -79
  7. package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +224 -224
  8. package/dist/billing/modules/addons/pages/AddonsListPage.js +186 -186
  9. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +168 -168
  10. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
  11. package/dist/billing/modules/analytics/pages/AnalyticsPage.js +88 -88
  12. package/dist/billing/modules/billing/hooks/index.js +5 -5
  13. package/dist/billing/modules/billing/hooks/useInvoices.js +39 -20
  14. package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -1
  15. package/dist/billing/modules/billing/index.js +14 -14
  16. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +92 -92
  17. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +160 -160
  18. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
  19. package/dist/billing/modules/billing/pages/InvoicesListPage.js +100 -100
  20. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +105 -105
  21. package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +37 -37
  22. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +41 -41
  23. package/dist/billing/modules/billing/pages/RefundsPage.js +334 -334
  24. package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
  25. package/dist/billing/modules/billing/pages/TransactionsPage.js +174 -174
  26. package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
  27. package/dist/billing/modules/billing/pages/UserRefundsPage.js +24 -24
  28. package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
  29. package/dist/billing/modules/checkout/components/OrderSummary.js +71 -71
  30. package/dist/billing/modules/checkout/pages/CheckoutPage.js +646 -625
  31. package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
  32. package/dist/billing/modules/checkout/utils/checkoutOptions.d.ts +23 -0
  33. package/dist/billing/modules/checkout/utils/checkoutOptions.js +8 -0
  34. package/dist/billing/modules/checkout/utils/checkoutOptions.js.map +1 -0
  35. package/dist/billing/modules/coupons/pages/CouponDetailPage.js +112 -112
  36. package/dist/billing/modules/coupons/pages/CouponsListPage.js +118 -118
  37. package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
  38. package/dist/billing/modules/coupons/pages/CreateCouponPage.js +119 -119
  39. package/dist/billing/modules/coupons/pages/EditCouponPage.js +82 -82
  40. package/dist/billing/modules/credits/pages/AdminCreditsPage.js +30 -30
  41. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +77 -77
  42. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +187 -164
  43. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
  44. package/dist/billing/modules/credits/pages/CreditsPage.js +67 -67
  45. package/dist/billing/modules/dashboard/pages/OverviewPage.js +594 -442
  46. package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
  47. package/dist/billing/modules/dashboard/utils/overviewSummary.d.ts +46 -0
  48. package/dist/billing/modules/dashboard/utils/overviewSummary.js +37 -0
  49. package/dist/billing/modules/dashboard/utils/overviewSummary.js.map +1 -0
  50. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +199 -199
  51. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  52. package/dist/billing/modules/earnings/components/PayoutDestinationList.d.ts +15 -0
  53. package/dist/billing/modules/earnings/components/PayoutDestinationList.js +66 -0
  54. package/dist/billing/modules/earnings/components/PayoutDestinationList.js.map +1 -0
  55. package/dist/billing/modules/earnings/components/PayoutErrorNotice.d.ts +7 -0
  56. package/dist/billing/modules/earnings/components/PayoutErrorNotice.js +19 -0
  57. package/dist/billing/modules/earnings/components/PayoutErrorNotice.js.map +1 -0
  58. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +64 -64
  59. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +122 -122
  60. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
  61. package/dist/billing/modules/earnings/pages/EarningsPage.js +123 -110
  62. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  63. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +178 -178
  64. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
  65. package/dist/billing/modules/earnings/pages/PayoutsPage.js +215 -157
  66. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  67. package/dist/billing/modules/earnings/utils/payoutDestination.d.ts +20 -0
  68. package/dist/billing/modules/earnings/utils/payoutDestination.js +27 -0
  69. package/dist/billing/modules/earnings/utils/payoutDestination.js.map +1 -0
  70. package/dist/billing/modules/earnings/utils/plainPayoutError.d.ts +10 -0
  71. package/dist/billing/modules/earnings/utils/plainPayoutError.js +50 -0
  72. package/dist/billing/modules/earnings/utils/plainPayoutError.js.map +1 -0
  73. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +54 -54
  74. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +94 -94
  75. package/dist/billing/modules/plans/pages/PlanCreatePage.js +73 -73
  76. package/dist/billing/modules/plans/pages/PlanDetailPage.js +96 -96
  77. package/dist/billing/modules/plans/pages/PlanEditPage.js +16 -16
  78. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  79. package/dist/billing/modules/plans/pages/PlansBrowsePage.js +100 -100
  80. package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
  81. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
  82. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
  83. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
  84. package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
  85. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
  86. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
  87. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
  88. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
  89. package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
  90. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  91. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
  92. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  93. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
  94. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
  95. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  96. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
  97. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
  98. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  99. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
  100. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
  101. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
  102. package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
  103. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
  104. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
  105. package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
  106. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  107. package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
  108. package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
  109. package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
  110. package/dist/billing/shared/components/EmptyState.js +3 -3
  111. package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
  112. package/dist/billing/shared/ui/MetricCard.js +13 -13
  113. package/dist/billing/shared/utils/format.js +16 -4
  114. package/dist/billing/shared/utils/format.js.map +1 -1
  115. package/dist/billing/shared/utils/index.js +8 -8
  116. package/dist/generated/global-operations.js +294 -286
  117. package/dist/generated/global-operations.js.map +1 -1
  118. package/package.json +2 -2
@@ -1,26 +1,26 @@
1
1
  import { EMPTY_SETTINGS_FORM as e, formFromAccount as t, hasFormChanges as n, toUpdateInput as ee } from "../utils/accountForm.js";
2
2
  import { useIsFluidgridsVariant as te } from "../../../hooks/useBillingVariant.js";
3
- import { AccessDenied as ne } from "../../../shared/components/AccessDenied.js";
4
- import { PageHeader as re } from "../../../shared/components/PageHeader.js";
5
- import { useBillingEventEmitter as ie } from "../../../hooks/useBillingEventEmitter.js";
6
- import { useBillingPermissions as ae } from "../../../hooks/useBillingPermissions.js";
7
- import { directBillingGraphqlRequest as oe } from "../../../shared/utils/directBillingGraphql.js";
8
- import { useBilling as se } from "../../../providers/BillingProvider.js";
3
+ import { AccessDenied as r } from "../../../shared/components/AccessDenied.js";
4
+ import { PageHeader as i } from "../../../shared/components/PageHeader.js";
5
+ import { useBillingEventEmitter as ne } from "../../../hooks/useBillingEventEmitter.js";
6
+ import { useBillingPermissions as re } from "../../../hooks/useBillingPermissions.js";
7
+ import { directBillingGraphqlRequest as ie } from "../../../shared/utils/directBillingGraphql.js";
8
+ import { useBilling as ae } from "../../../providers/BillingProvider.js";
9
9
  import "../../../shared/components/index.js";
10
10
  import "../../../shared/utils/index.js";
11
- import { ArchiveBillingAccountSettingsDocument as ce, useGetBillingAccountSettingsQuery as le, useGetBillingAccountsSettingsQuery as r, useGetDefaultBillingAccountSettingsQuery as ue, useSetDefaultBillingAccountSettingsMutation as de, useUpdateBillingAccountSettingsMutation as fe } from "../../../../generated/global-operations.js";
12
- import { useTr as pe } from "../../../shared/hooks/useTr.js";
13
- import { useCallback as i, useEffect as me, useMemo as a, useState as o } from "react";
14
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
15
- import { AccessGate as he, AlertDialog as ge, AlertDialogAction as _e, AlertDialogCancel as ve, AlertDialogContent as ye, AlertDialogDescription as be, AlertDialogFooter as xe, AlertDialogHeader as Se, AlertDialogTitle as Ce, OptionalFields as u, PagePurpose as d } from "@burdenoff/fe-libs/ui";
11
+ import { ArchiveBillingAccountSettingsDocument as oe, useGetBillingAccountSettingsQuery as se, useGetBillingAccountsSettingsQuery as a, useGetDefaultBillingAccountSettingsQuery as ce, useSetDefaultBillingAccountSettingsMutation as le, useUpdateBillingAccountSettingsMutation as ue } from "../../../../generated/global-operations.js";
12
+ import { useTr as de } from "../../../shared/hooks/useTr.js";
13
+ import { useCallback as o, useEffect as fe, useMemo as s, useState as c } from "react";
14
+ import { AccessGate as pe, AlertDialog as me, AlertDialogAction as he, AlertDialogCancel as ge, AlertDialogContent as _e, AlertDialogDescription as ve, AlertDialogFooter as ye, AlertDialogHeader as be, AlertDialogTitle as xe, OptionalFields as Se, PagePurpose as Ce } from "@burdenoff/fe-libs/ui";
15
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
16
16
  // src/billing/modules/settings/pages/SettingsPage.tsx
17
17
  var f = () => {
18
18
  if (typeof window < "u") return new URLSearchParams(window.location.search).get("billingAccountId") || void 0;
19
19
  }, p = () => {
20
- let p = pe(), m = ae(), h = te(), { apiGatewayUrl: g, authToken: _, orgId: v } = se(), { emit: y } = ie(), [b, x] = o(f), [S, C] = o(!1), [w, T] = o(!1), [E, D] = o(!1), [O, k] = o(!1), [A, j] = o(null), [we, M] = o(!1), [Te, N] = o(!1), [Ee, P] = o(!1), [F, I] = o(e), { data: L, loading: De, refetch: R } = r({}), z = a(() => L?.getBillingAccountsByOrg || [], [L?.getBillingAccountsByOrg]), { data: Oe, loading: ke, refetch: B } = ue({}), V = Oe?.getDefaultBillingAccount || null, { data: Ae, loading: H, refetch: U } = le({
20
+ let p = de(), m = re(), h = te(), { apiGatewayUrl: g, authToken: _, orgId: v } = ae(), { emit: y } = ne(), [b, x] = c(f), [S, C] = c(!1), [w, T] = c(!1), [E, D] = c(!1), [O, k] = c(!1), [A, j] = c(null), [we, M] = c(!1), [Te, N] = c(!1), [Ee, P] = c(!1), [F, I] = c(e), { data: L, loading: De, refetch: R } = a({}), z = s(() => L?.getBillingAccountsByOrg || [], [L?.getBillingAccountsByOrg]), { data: Oe, loading: ke, refetch: B } = ce({}), V = Oe?.getDefaultBillingAccount || null, { data: Ae, loading: H, refetch: U } = se({
21
21
  variables: { id: b },
22
22
  skip: !b
23
- }), W = Ae?.getBillingAccount || null, [G] = fe(), [K] = de(), q = a(() => {
23
+ }), W = Ae?.getBillingAccount || null, [G] = ue(), [K] = le(), q = s(() => {
24
24
  if (b) {
25
25
  if (W) return W;
26
26
  let e = z.find((e) => e.id === b);
@@ -35,7 +35,7 @@ var f = () => {
35
35
  H,
36
36
  V
37
37
  ]), je = De || ke || b && H;
38
- me(() => {
38
+ fe(() => {
39
39
  q && I(t(q));
40
40
  }, [q]);
41
41
  let Me = (e) => {
@@ -45,7 +45,7 @@ var f = () => {
45
45
  ...n,
46
46
  [e]: t
47
47
  })), M(!1), j(null);
48
- }, Y = a(() => z.find((e) => e.isDefault) || null, [z]), Ne = a(() => n(F, q), [F, q]), X = F.isDefault && !q?.isDefault, Z = X && Y && Y.id !== q?.id, Q = i(async () => {
48
+ }, Y = s(() => z.find((e) => e.isDefault) || null, [z]), Ne = s(() => n(F, q), [F, q]), X = F.isDefault && !q?.isDefault, Z = X && Y && Y.id !== q?.id, Q = o(async () => {
49
49
  if (q?.id) {
50
50
  T(!0), j(null), M(!1), N(!1), P(!1);
51
51
  try {
@@ -77,24 +77,24 @@ var f = () => {
77
77
  U,
78
78
  B,
79
79
  y
80
- ]), Pe = i(() => {
80
+ ]), Pe = o(() => {
81
81
  q?.id && (Z ? (P(!0), N(!0)) : Q());
82
82
  }, [
83
83
  q?.id,
84
84
  Z,
85
85
  Q
86
- ]), $ = a(() => q ? z.find((e) => e.id !== q.id && e.isActive) : void 0, [q, z]), Fe = q ? q.isDefault ? $ ? p("billing.settings.archiveDefaultConfirm", "Archive {{accountName}}? {{replacementName}} will become the default account.", {
86
+ ]), $ = s(() => q ? z.find((e) => e.id !== q.id && e.isActive) : void 0, [q, z]), Fe = q ? q.isDefault ? $ ? p("billing.settings.archiveDefaultConfirm", "Archive {{accountName}}? {{replacementName}} will become the default account.", {
87
87
  accountName: q.name,
88
88
  replacementName: $.name
89
- }) : p("billing.settings.archiveDefaultNoReplacementConfirm", "Archive {{accountName}}? No replacement default account is available.", { accountName: q.name }) : p("billing.settings.archiveConfirm", "Archive {{accountName}}?", { accountName: q.name }) : "", Ie = i(async () => {
89
+ }) : p("billing.settings.archiveDefaultNoReplacementConfirm", "Archive {{accountName}}? No replacement default account is available.", { accountName: q.name }) : p("billing.settings.archiveConfirm", "Archive {{accountName}}?", { accountName: q.name }) : "", Ie = o(async () => {
90
90
  if (q?.id && q.isActive) {
91
91
  D(!0), j(null), M(!1);
92
92
  try {
93
- await oe({
93
+ await ie({
94
94
  apiGatewayUrl: g,
95
95
  authToken: _,
96
96
  orgId: v,
97
- query: ce,
97
+ query: oe,
98
98
  variables: {
99
99
  id: q.id,
100
100
  reason: "Archived from billing settings",
@@ -121,109 +121,109 @@ var f = () => {
121
121
  B,
122
122
  y
123
123
  ]);
124
- return m.canManageBillingAccount ? je && !q ? /* @__PURE__ */ l("div", {
124
+ return m.canManageBillingAccount ? je && !q ? /* @__PURE__ */ d("div", {
125
125
  className: "space-y-6 p-6",
126
- children: [/* @__PURE__ */ c("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ c("div", {
126
+ children: [/* @__PURE__ */ u("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ u("div", {
127
127
  className: "border border-border-subtle rounded-lg p-6 space-y-4",
128
128
  children: [
129
129
  1,
130
130
  2,
131
131
  3
132
- ].map((e) => /* @__PURE__ */ c("div", { className: "h-10 bg-bg-sunken animate-pulse rounded" }, e))
132
+ ].map((e) => /* @__PURE__ */ u("div", { className: "h-10 bg-bg-sunken animate-pulse rounded" }, e))
133
133
  })]
134
- }) : /* @__PURE__ */ l("div", {
134
+ }) : /* @__PURE__ */ d("div", {
135
135
  className: "space-y-6 p-6",
136
136
  children: [
137
- /* @__PURE__ */ c(re, {
137
+ /* @__PURE__ */ u(i, {
138
138
  title: p("billing.settings.billingSettings", "Billing Settings"),
139
139
  description: p("billing.settings.description", "Manage your billing account configuration")
140
140
  }),
141
- /* @__PURE__ */ c(d, { children: p("billing.settings.purpose", "Configure how a billing account behaves — its name and contact details, default currency, tax information and whether it's your default account. Changes here affect how invoices are generated and which account new purchases bill to.") }),
142
- z.length > 1 && /* @__PURE__ */ l("div", {
141
+ /* @__PURE__ */ u(Ce, { children: p("billing.settings.purpose", "Configure how a billing account behaves — its name and contact details, default currency, tax information and whether it's your default account. Changes here affect how invoices are generated and which account new purchases bill to.") }),
142
+ z.length > 1 && /* @__PURE__ */ d("div", {
143
143
  className: "relative",
144
- children: [/* @__PURE__ */ l("button", {
144
+ children: [/* @__PURE__ */ d("button", {
145
145
  type: "button",
146
146
  onClick: () => C(!S),
147
147
  className: "w-full sm:w-auto flex items-center justify-between gap-3 px-4 py-3 border border-border-subtle rounded-lg bg-bg-surface hover:bg-bg-sunken/50 transition-colors",
148
- children: [/* @__PURE__ */ l("div", {
148
+ children: [/* @__PURE__ */ d("div", {
149
149
  className: "flex items-center gap-3",
150
- children: [/* @__PURE__ */ c("div", {
150
+ children: [/* @__PURE__ */ u("div", {
151
151
  className: "size-8 rounded-lg bg-action-primary-bg/10 flex items-center justify-center",
152
- children: /* @__PURE__ */ c("svg", {
152
+ children: /* @__PURE__ */ u("svg", {
153
153
  className: "size-4 text-primary",
154
154
  fill: "none",
155
155
  viewBox: "0 0 24 24",
156
156
  stroke: "currentColor",
157
- children: /* @__PURE__ */ c("path", {
157
+ children: /* @__PURE__ */ u("path", {
158
158
  strokeLinecap: "round",
159
159
  strokeLinejoin: "round",
160
160
  strokeWidth: 2,
161
161
  d: "M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"
162
162
  })
163
163
  })
164
- }), /* @__PURE__ */ l("div", {
164
+ }), /* @__PURE__ */ d("div", {
165
165
  className: "text-left",
166
- children: [/* @__PURE__ */ c("p", {
166
+ children: [/* @__PURE__ */ u("p", {
167
167
  className: "text-sm font-medium text-text-primary",
168
168
  children: q?.name || p("billing.settings.selectAccount", "Select Account")
169
- }), /* @__PURE__ */ c("p", {
169
+ }), /* @__PURE__ */ u("p", {
170
170
  className: "text-xs text-text-secondary",
171
171
  children: q?.email
172
172
  })]
173
173
  })]
174
- }), /* @__PURE__ */ c("svg", {
174
+ }), /* @__PURE__ */ u("svg", {
175
175
  className: `size-4 text-text-secondary transition-transform ${S ? "rotate-180" : ""}`,
176
176
  fill: "none",
177
177
  viewBox: "0 0 24 24",
178
178
  stroke: "currentColor",
179
- children: /* @__PURE__ */ c("path", {
179
+ children: /* @__PURE__ */ u("path", {
180
180
  strokeLinecap: "round",
181
181
  strokeLinejoin: "round",
182
182
  strokeWidth: 2,
183
183
  d: "M19 9l-7 7-7-7"
184
184
  })
185
185
  })]
186
- }), S && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("div", {
186
+ }), S && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", {
187
187
  className: "fixed inset-0 z-10",
188
188
  onClick: () => C(!1)
189
- }), /* @__PURE__ */ c("div", {
189
+ }), /* @__PURE__ */ u("div", {
190
190
  className: "absolute top-full left-0 right-0 sm:right-auto mt-1 w-full sm:w-80 bg-popover border border-border-subtle rounded-lg shadow-lg z-20 py-1 max-h-60 overflow-y-auto",
191
- children: z.map((e) => /* @__PURE__ */ l("button", {
191
+ children: z.map((e) => /* @__PURE__ */ d("button", {
192
192
  type: "button",
193
193
  onClick: () => Me(e),
194
194
  className: "w-full flex items-center justify-between gap-3 px-4 py-3 hover:bg-bg-sunken transition-colors",
195
- children: [/* @__PURE__ */ l("div", {
195
+ children: [/* @__PURE__ */ d("div", {
196
196
  className: "flex items-center gap-3 min-w-0",
197
- children: [/* @__PURE__ */ c("div", {
197
+ children: [/* @__PURE__ */ u("div", {
198
198
  className: "size-8 rounded-lg bg-bg-sunken flex items-center justify-center flex-shrink-0",
199
- children: /* @__PURE__ */ c("svg", {
199
+ children: /* @__PURE__ */ u("svg", {
200
200
  className: "size-4 text-text-secondary",
201
201
  fill: "none",
202
202
  viewBox: "0 0 24 24",
203
203
  stroke: "currentColor",
204
- children: /* @__PURE__ */ c("path", {
204
+ children: /* @__PURE__ */ u("path", {
205
205
  strokeLinecap: "round",
206
206
  strokeLinejoin: "round",
207
207
  strokeWidth: 2,
208
208
  d: "M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"
209
209
  })
210
210
  })
211
- }), /* @__PURE__ */ l("div", {
211
+ }), /* @__PURE__ */ d("div", {
212
212
  className: "text-left min-w-0",
213
- children: [/* @__PURE__ */ c("p", {
213
+ children: [/* @__PURE__ */ u("p", {
214
214
  className: "text-sm font-medium text-text-primary truncate",
215
215
  children: e.name
216
- }), /* @__PURE__ */ c("p", {
216
+ }), /* @__PURE__ */ u("p", {
217
217
  className: "text-xs text-text-secondary truncate",
218
218
  children: e.email
219
219
  })]
220
220
  })]
221
- }), q?.id === e.id && /* @__PURE__ */ c("svg", {
221
+ }), q?.id === e.id && /* @__PURE__ */ u("svg", {
222
222
  className: "size-4 text-primary flex-shrink-0",
223
223
  fill: "none",
224
224
  viewBox: "0 0 24 24",
225
225
  stroke: "currentColor",
226
- children: /* @__PURE__ */ c("path", {
226
+ children: /* @__PURE__ */ u("path", {
227
227
  strokeLinecap: "round",
228
228
  strokeLinejoin: "round",
229
229
  strokeWidth: 2,
@@ -233,25 +233,25 @@ var f = () => {
233
233
  }, e.id))
234
234
  })] })]
235
235
  }),
236
- /* @__PURE__ */ l("div", {
236
+ /* @__PURE__ */ d("div", {
237
237
  className: "border border-border-subtle rounded-lg bg-bg-surface",
238
- children: [/* @__PURE__ */ c("div", {
238
+ children: [/* @__PURE__ */ u("div", {
239
239
  className: "p-6 border-b border-border-subtle",
240
- children: /* @__PURE__ */ l("div", {
240
+ children: /* @__PURE__ */ d("div", {
241
241
  className: "flex items-center justify-between",
242
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h2", {
242
+ children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("h2", {
243
243
  className: "text-lg font-semibold text-text-primary",
244
244
  children: p("billing.settings.accountInfo", "Account Information")
245
- }), /* @__PURE__ */ c("p", {
245
+ }), /* @__PURE__ */ u("p", {
246
246
  className: "text-sm text-text-secondary mt-1",
247
247
  children: p("billing.settings.accountInfoDescription", "Update your billing contact details and tax information")
248
- })] }), q?.isDefault && /* @__PURE__ */ l("span", {
248
+ })] }), q?.isDefault && /* @__PURE__ */ d("span", {
249
249
  className: "inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium bg-action-primary-bg/10 text-primary rounded-full",
250
- children: [/* @__PURE__ */ c("svg", {
250
+ children: [/* @__PURE__ */ u("svg", {
251
251
  className: "size-3",
252
252
  fill: "currentColor",
253
253
  viewBox: "0 0 20 20",
254
- children: /* @__PURE__ */ c("path", {
254
+ children: /* @__PURE__ */ u("path", {
255
255
  fillRule: "evenodd",
256
256
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
257
257
  clipRule: "evenodd"
@@ -259,23 +259,23 @@ var f = () => {
259
259
  }), p("billing.settings.defaultAccount", "Default Account")]
260
260
  })]
261
261
  })
262
- }), /* @__PURE__ */ l("div", {
262
+ }), /* @__PURE__ */ d("div", {
263
263
  className: "p-6 space-y-6",
264
264
  children: [
265
- q && /* @__PURE__ */ l("div", {
265
+ q && /* @__PURE__ */ d("div", {
266
266
  className: "grid grid-cols-2 sm:grid-cols-4 gap-4 text-sm pb-4 border-b border-border-subtle",
267
267
  children: [
268
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
268
+ /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
269
269
  className: "text-text-secondary",
270
270
  children: p("billing.settings.status", "Status")
271
- }), /* @__PURE__ */ c("p", {
271
+ }), /* @__PURE__ */ u("p", {
272
272
  className: `font-medium ${q.isActive ? "text-status-success-text" : "text-status-error-text"}`,
273
273
  children: q.isActive ? p("billing.settings.active", "Active") : p("billing.settings.inactive", "Inactive")
274
274
  })] }),
275
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
275
+ /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
276
276
  className: "text-text-secondary",
277
277
  children: p("billing.settings.creditBalance", "Credit Balance")
278
- }), /* @__PURE__ */ l("p", {
278
+ }), /* @__PURE__ */ d("p", {
279
279
  className: "font-medium text-text-primary",
280
280
  children: [
281
281
  (q.creditAmount || 0).toLocaleString(),
@@ -283,57 +283,57 @@ var f = () => {
283
283
  p("billing.common.credits", "Credits")
284
284
  ]
285
285
  })] }),
286
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
286
+ /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
287
287
  className: "text-text-secondary",
288
288
  children: p("billing.settings.accountId", "Account ID")
289
- }), /* @__PURE__ */ c("p", {
289
+ }), /* @__PURE__ */ u("p", {
290
290
  className: "font-mono text-xs text-text-primary truncate",
291
291
  title: q.id,
292
292
  children: q.id
293
293
  })] }),
294
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
294
+ /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
295
295
  className: "text-text-secondary",
296
296
  children: p("billing.settings.created", "Created")
297
- }), /* @__PURE__ */ c("p", {
297
+ }), /* @__PURE__ */ u("p", {
298
298
  className: "font-medium text-text-primary",
299
299
  children: q.createdAt ? new Date(q.createdAt).toLocaleDateString() : p("billing.settings.notAvailable", "N/A")
300
300
  })] })
301
301
  ]
302
302
  }),
303
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h3", {
303
+ /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("h3", {
304
304
  className: "text-sm font-medium text-text-primary mb-4",
305
305
  children: p("billing.settings.contactDetails", "Contact Details")
306
- }), /* @__PURE__ */ l("div", {
306
+ }), /* @__PURE__ */ d("div", {
307
307
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
308
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("label", {
308
+ children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ d("label", {
309
309
  htmlFor: "billing-account-name",
310
310
  className: "block text-sm font-medium text-text-primary mb-1",
311
311
  children: [
312
312
  p("billing.settings.accountName", "Account Name"),
313
313
  " ",
314
- /* @__PURE__ */ c("span", {
314
+ /* @__PURE__ */ u("span", {
315
315
  className: "text-status-error-text",
316
316
  children: "*"
317
317
  })
318
318
  ]
319
- }), /* @__PURE__ */ c("input", {
319
+ }), /* @__PURE__ */ u("input", {
320
320
  id: "billing-account-name",
321
321
  type: "text",
322
322
  value: F.name,
323
323
  onChange: (e) => J("name", e.target.value),
324
324
  className: "w-full px-3 py-2 text-sm border border-border-subtle rounded-md bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"
325
- })] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("label", {
325
+ })] }), /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ d("label", {
326
326
  htmlFor: "billing-account-email",
327
327
  className: "block text-sm font-medium text-text-primary mb-1",
328
328
  children: [
329
329
  p("billing.settings.email", "Email"),
330
330
  " ",
331
- /* @__PURE__ */ c("span", {
331
+ /* @__PURE__ */ u("span", {
332
332
  className: "text-status-error-text",
333
333
  children: "*"
334
334
  })
335
335
  ]
336
- }), /* @__PURE__ */ c("input", {
336
+ }), /* @__PURE__ */ u("input", {
337
337
  id: "billing-account-email",
338
338
  type: "email",
339
339
  value: F.email,
@@ -341,23 +341,23 @@ var f = () => {
341
341
  className: "w-full px-3 py-2 text-sm border border-border-subtle rounded-md bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"
342
342
  })] })]
343
343
  })] }),
344
- /* @__PURE__ */ c(u, {
344
+ /* @__PURE__ */ u(Se, {
345
345
  ...h ? {
346
346
  storageKey: "billing.settings.account",
347
347
  label: p("billing.settings.moreOptions", "More options")
348
348
  } : {},
349
349
  title: p("billing.settings.advancedTitle", "Advanced settings"),
350
350
  description: p("billing.settings.advancedDescription", "Billing email override, currency, and tax identification."),
351
- children: /* @__PURE__ */ l("div", {
351
+ children: /* @__PURE__ */ d("div", {
352
352
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
353
353
  children: [
354
- /* @__PURE__ */ l("div", { children: [
355
- /* @__PURE__ */ c("label", {
354
+ /* @__PURE__ */ d("div", { children: [
355
+ /* @__PURE__ */ u("label", {
356
356
  htmlFor: "billing-account-billing-email",
357
357
  className: "block text-sm font-medium text-text-primary mb-1",
358
358
  children: p("billing.settings.billingEmail", "Billing Email")
359
359
  }),
360
- /* @__PURE__ */ c("input", {
360
+ /* @__PURE__ */ u("input", {
361
361
  id: "billing-account-billing-email",
362
362
  type: "email",
363
363
  value: F.billingEmail,
@@ -365,48 +365,48 @@ var f = () => {
365
365
  placeholder: p("billing.settings.billingEmailPlaceholder", "Optional - defaults to account email"),
366
366
  className: "w-full px-3 py-2 text-sm border border-border-subtle rounded-md bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"
367
367
  }),
368
- /* @__PURE__ */ c("p", {
368
+ /* @__PURE__ */ u("p", {
369
369
  className: "text-xs text-text-secondary mt-1",
370
370
  children: p("billing.settings.billingEmailHelp", "Invoices will be sent to this email if provided")
371
371
  })
372
372
  ] }),
373
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
373
+ /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("label", {
374
374
  htmlFor: "billing-account-currency",
375
375
  className: "block text-sm font-medium text-text-primary mb-1",
376
376
  children: p("billing.settings.currency", "Currency")
377
- }), /* @__PURE__ */ l("select", {
377
+ }), /* @__PURE__ */ d("select", {
378
378
  id: "billing-account-currency",
379
379
  value: F.currency,
380
380
  onChange: (e) => J("currency", e.target.value),
381
381
  className: "w-full px-3 py-2 text-sm border border-border-subtle rounded-md bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
382
382
  children: [
383
- /* @__PURE__ */ c("option", {
383
+ /* @__PURE__ */ u("option", {
384
384
  value: "USD",
385
385
  children: "USD - US Dollar"
386
386
  }),
387
- /* @__PURE__ */ c("option", {
387
+ /* @__PURE__ */ u("option", {
388
388
  value: "EUR",
389
389
  children: "EUR - Euro"
390
390
  }),
391
- /* @__PURE__ */ c("option", {
391
+ /* @__PURE__ */ u("option", {
392
392
  value: "GBP",
393
393
  children: "GBP - British Pound"
394
394
  }),
395
- /* @__PURE__ */ c("option", {
395
+ /* @__PURE__ */ u("option", {
396
396
  value: "INR",
397
397
  children: "INR - Indian Rupee"
398
398
  })
399
399
  ]
400
400
  })] }),
401
- /* @__PURE__ */ l("div", {
401
+ /* @__PURE__ */ d("div", {
402
402
  className: "sm:col-span-2 max-w-md",
403
403
  children: [
404
- /* @__PURE__ */ c("label", {
404
+ /* @__PURE__ */ u("label", {
405
405
  htmlFor: "billing-account-tax-id",
406
406
  className: "block text-sm font-medium text-text-primary mb-1",
407
407
  children: p("billing.settings.taxId", "Tax ID / VAT Number")
408
408
  }),
409
- /* @__PURE__ */ c("input", {
409
+ /* @__PURE__ */ u("input", {
410
410
  id: "billing-account-tax-id",
411
411
  type: "text",
412
412
  value: F.taxId,
@@ -414,7 +414,7 @@ var f = () => {
414
414
  placeholder: p("billing.settings.taxIdPlaceholder", "Enter your tax identification number"),
415
415
  className: "w-full px-3 py-2 text-sm border border-border-subtle rounded-md bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"
416
416
  }),
417
- /* @__PURE__ */ c("p", {
417
+ /* @__PURE__ */ u("p", {
418
418
  className: "text-xs text-text-secondary mt-1",
419
419
  children: p("billing.settings.taxIdHelp", "Used for invoices and tax compliance (e.g., GST, VAT number)")
420
420
  })
@@ -423,13 +423,13 @@ var f = () => {
423
423
  ]
424
424
  })
425
425
  }),
426
- q?.isActive && z.length > 1 && /* @__PURE__ */ c("div", {
426
+ q?.isActive && z.length > 1 && /* @__PURE__ */ u("div", {
427
427
  className: "pt-4 border-t border-border-subtle",
428
- children: /* @__PURE__ */ l("div", {
428
+ children: /* @__PURE__ */ d("div", {
429
429
  className: "flex items-start gap-3",
430
- children: [/* @__PURE__ */ c("div", {
430
+ children: [/* @__PURE__ */ u("div", {
431
431
  className: "flex items-center h-6",
432
- children: /* @__PURE__ */ c("input", {
432
+ children: /* @__PURE__ */ u("input", {
433
433
  type: "checkbox",
434
434
  id: "isDefault",
435
435
  checked: F.isDefault,
@@ -440,45 +440,45 @@ var f = () => {
440
440
  disabled: q?.isDefault,
441
441
  className: "size-4 rounded border-border-subtle text-primary focus:ring-primary focus:ring-offset-0 disabled:opacity-50 disabled:cursor-not-allowed"
442
442
  })
443
- }), /* @__PURE__ */ l("div", {
443
+ }), /* @__PURE__ */ d("div", {
444
444
  className: "flex-1",
445
- children: [/* @__PURE__ */ c("label", {
445
+ children: [/* @__PURE__ */ u("label", {
446
446
  htmlFor: "isDefault",
447
447
  className: "text-sm font-medium text-text-primary cursor-pointer",
448
448
  children: p("billing.settings.setDefault", "Set as default billing account")
449
- }), /* @__PURE__ */ c("p", {
449
+ }), /* @__PURE__ */ u("p", {
450
450
  className: "text-xs text-text-secondary mt-0.5",
451
451
  children: q?.isDefault ? p("billing.settings.currentDefaultDescription", "This is currently your default billing account") : p("billing.settings.makePrimaryDescription", "Make this your primary billing account for new subscriptions")
452
452
  })]
453
453
  })]
454
454
  })
455
455
  }),
456
- /* @__PURE__ */ l("div", {
456
+ /* @__PURE__ */ d("div", {
457
457
  className: "pt-4 border-t border-border-subtle flex items-center justify-between",
458
- children: [/* @__PURE__ */ l("div", {
458
+ children: [/* @__PURE__ */ d("div", {
459
459
  className: "flex items-center gap-2",
460
- children: [we && /* @__PURE__ */ l("div", {
460
+ children: [we && /* @__PURE__ */ d("div", {
461
461
  className: "flex items-center gap-2 text-sm text-status-success-text",
462
- children: [/* @__PURE__ */ c("svg", {
462
+ children: [/* @__PURE__ */ u("svg", {
463
463
  className: "size-4",
464
464
  fill: "none",
465
465
  viewBox: "0 0 24 24",
466
466
  stroke: "currentColor",
467
- children: /* @__PURE__ */ c("path", {
467
+ children: /* @__PURE__ */ u("path", {
468
468
  strokeLinecap: "round",
469
469
  strokeLinejoin: "round",
470
470
  strokeWidth: 2,
471
471
  d: "M5 13l4 4L19 7"
472
472
  })
473
473
  }), p("billing.settings.saveSuccess", "Changes saved successfully")]
474
- }), A && /* @__PURE__ */ l("div", {
474
+ }), A && /* @__PURE__ */ d("div", {
475
475
  className: "flex items-center gap-2 text-sm text-status-error-text",
476
- children: [/* @__PURE__ */ c("svg", {
476
+ children: [/* @__PURE__ */ u("svg", {
477
477
  className: "size-4",
478
478
  fill: "none",
479
479
  viewBox: "0 0 24 24",
480
480
  stroke: "currentColor",
481
- children: /* @__PURE__ */ c("path", {
481
+ children: /* @__PURE__ */ u("path", {
482
482
  strokeLinecap: "round",
483
483
  strokeLinejoin: "round",
484
484
  strokeWidth: 2,
@@ -486,31 +486,31 @@ var f = () => {
486
486
  })
487
487
  }), A]
488
488
  })]
489
- }), /* @__PURE__ */ l("div", {
489
+ }), /* @__PURE__ */ d("div", {
490
490
  className: "flex items-center gap-3",
491
- children: [m.canArchiveBillingAccount && q?.isActive ? /* @__PURE__ */ c("button", {
491
+ children: [m.canArchiveBillingAccount && q?.isActive ? /* @__PURE__ */ u("button", {
492
492
  type: "button",
493
493
  onClick: () => k(!0),
494
494
  disabled: w || E,
495
495
  className: "px-4 py-2 text-sm font-medium border border-border-subtle text-status-error-text rounded-md hover:bg-status-error-bg-subtle disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
496
496
  children: E ? p("billing.settings.archiving", "Archiving...") : p("billing.settings.archiveAccount", "Archive Account")
497
- }) : null, /* @__PURE__ */ l("button", {
497
+ }) : null, /* @__PURE__ */ d("button", {
498
498
  type: "button",
499
499
  onClick: Pe,
500
500
  disabled: !Ne || w || E || !F.name || !F.email,
501
501
  className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center gap-2",
502
- children: [w && /* @__PURE__ */ l("svg", {
502
+ children: [w && /* @__PURE__ */ d("svg", {
503
503
  className: "size-4 animate-spin",
504
504
  fill: "none",
505
505
  viewBox: "0 0 24 24",
506
- children: [/* @__PURE__ */ c("circle", {
506
+ children: [/* @__PURE__ */ u("circle", {
507
507
  className: "opacity-25",
508
508
  cx: "12",
509
509
  cy: "12",
510
510
  r: "10",
511
511
  stroke: "currentColor",
512
512
  strokeWidth: "4"
513
- }), /* @__PURE__ */ c("path", {
513
+ }), /* @__PURE__ */ u("path", {
514
514
  className: "opacity-75",
515
515
  fill: "currentColor",
516
516
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
@@ -522,7 +522,7 @@ var f = () => {
522
522
  ]
523
523
  })]
524
524
  }),
525
- Te && Ee && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("div", {
525
+ Te && Ee && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", {
526
526
  className: "fixed inset-0 bg-overlay-scrim z-40",
527
527
  onClick: () => {
528
528
  w || (N(!1), P(!1), I((e) => ({
@@ -530,49 +530,49 @@ var f = () => {
530
530
  isDefault: q?.isDefault || !1
531
531
  })));
532
532
  }
533
- }), /* @__PURE__ */ c("div", {
533
+ }), /* @__PURE__ */ u("div", {
534
534
  className: "fixed inset-0 flex items-center justify-center z-50 p-4",
535
- children: /* @__PURE__ */ l("div", {
535
+ children: /* @__PURE__ */ d("div", {
536
536
  className: "bg-bg-surface border border-border-subtle rounded-lg shadow-xl max-w-md w-full p-6",
537
537
  children: [
538
- /* @__PURE__ */ c("h3", {
538
+ /* @__PURE__ */ u("h3", {
539
539
  className: "text-lg font-semibold text-text-primary mb-2",
540
540
  children: p("billing.settings.confirmDefaultTitle", "Confirm Default Account Change")
541
541
  }),
542
- /* @__PURE__ */ c("p", {
542
+ /* @__PURE__ */ u("p", {
543
543
  className: "text-sm text-text-secondary mb-4",
544
544
  children: p("billing.settings.confirmDefaultDescription", "You are about to set {{accountName}} as your default billing account and save your changes.", { accountName: q?.name ?? "" })
545
545
  }),
546
- Y && Y.id !== q?.id && /* @__PURE__ */ c("div", {
546
+ Y && Y.id !== q?.id && /* @__PURE__ */ u("div", {
547
547
  className: "mb-4 p-3 bg-status-warning-bg-subtle border border-border-subtle rounded-md",
548
- children: /* @__PURE__ */ l("div", {
548
+ children: /* @__PURE__ */ d("div", {
549
549
  className: "flex items-start gap-2",
550
- children: [/* @__PURE__ */ c("svg", {
550
+ children: [/* @__PURE__ */ u("svg", {
551
551
  className: "size-5 text-status-warning-text flex-shrink-0 mt-0.5",
552
552
  fill: "none",
553
553
  viewBox: "0 0 24 24",
554
554
  stroke: "currentColor",
555
- children: /* @__PURE__ */ c("path", {
555
+ children: /* @__PURE__ */ u("path", {
556
556
  strokeLinecap: "round",
557
557
  strokeLinejoin: "round",
558
558
  strokeWidth: 2,
559
559
  d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
560
560
  })
561
- }), /* @__PURE__ */ l("div", {
561
+ }), /* @__PURE__ */ d("div", {
562
562
  className: "text-sm",
563
- children: [/* @__PURE__ */ c("p", {
563
+ children: [/* @__PURE__ */ u("p", {
564
564
  className: "font-medium text-status-warning-text",
565
565
  children: p("billing.settings.currentDefaultWillChange", "Current default will change")
566
- }), /* @__PURE__ */ c("p", {
566
+ }), /* @__PURE__ */ u("p", {
567
567
  className: "text-status-warning-text mt-0.5",
568
568
  children: p("billing.settings.currentDefaultWillChangeDescription", "{{accountName}} will no longer be the default account.", { accountName: Y.name })
569
569
  })]
570
570
  })]
571
571
  })
572
572
  }),
573
- /* @__PURE__ */ l("div", {
573
+ /* @__PURE__ */ d("div", {
574
574
  className: "flex justify-end gap-3",
575
- children: [/* @__PURE__ */ c("button", {
575
+ children: [/* @__PURE__ */ u("button", {
576
576
  type: "button",
577
577
  onClick: () => {
578
578
  N(!1), P(!1), I((e) => ({
@@ -583,23 +583,23 @@ var f = () => {
583
583
  disabled: w,
584
584
  className: "px-4 py-2 text-sm font-medium text-text-primary border border-border-subtle rounded-md hover:bg-bg-sunken transition-colors disabled:opacity-50",
585
585
  children: p("billing.common.cancel", "Cancel")
586
- }), /* @__PURE__ */ l("button", {
586
+ }), /* @__PURE__ */ d("button", {
587
587
  type: "button",
588
588
  onClick: Q,
589
589
  disabled: w,
590
590
  className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 disabled:opacity-50 transition-colors flex items-center gap-2",
591
- children: [w && /* @__PURE__ */ l("svg", {
591
+ children: [w && /* @__PURE__ */ d("svg", {
592
592
  className: "size-4 animate-spin",
593
593
  fill: "none",
594
594
  viewBox: "0 0 24 24",
595
- children: [/* @__PURE__ */ c("circle", {
595
+ children: [/* @__PURE__ */ u("circle", {
596
596
  className: "opacity-25",
597
597
  cx: "12",
598
598
  cy: "12",
599
599
  r: "10",
600
600
  stroke: "currentColor",
601
601
  strokeWidth: "4"
602
- }), /* @__PURE__ */ c("path", {
602
+ }), /* @__PURE__ */ u("path", {
603
603
  className: "opacity-75",
604
604
  fill: "currentColor",
605
605
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
@@ -610,10 +610,10 @@ var f = () => {
610
610
  ]
611
611
  })
612
612
  })] }),
613
- /* @__PURE__ */ c(ge, {
613
+ /* @__PURE__ */ u(me, {
614
614
  open: O,
615
615
  onOpenChange: k,
616
- children: /* @__PURE__ */ l(ye, { children: [/* @__PURE__ */ l(Se, { children: [/* @__PURE__ */ c(Ce, { children: p("billing.settings.archiveDialogTitle", "Archive billing account?") }), /* @__PURE__ */ c(be, { children: Fe })] }), /* @__PURE__ */ l(xe, { children: [/* @__PURE__ */ c(ve, { children: p("billing.common.cancel", "Cancel") }), /* @__PURE__ */ c(_e, {
616
+ children: /* @__PURE__ */ d(_e, { children: [/* @__PURE__ */ d(be, { children: [/* @__PURE__ */ u(xe, { children: p("billing.settings.archiveDialogTitle", "Archive billing account?") }), /* @__PURE__ */ u(ve, { children: Fe })] }), /* @__PURE__ */ d(ye, { children: [/* @__PURE__ */ u(ge, { children: p("billing.common.cancel", "Cancel") }), /* @__PURE__ */ u(he, {
617
617
  onClick: () => {
618
618
  k(!1), Ie();
619
619
  },
@@ -621,10 +621,10 @@ var f = () => {
621
621
  })] })] })
622
622
  })
623
623
  ]
624
- }) : h ? /* @__PURE__ */ c(he, {
624
+ }) : h ? /* @__PURE__ */ u(pe, {
625
625
  message: p("billing.settings.needAccess", "You need access to billing settings"),
626
626
  granterHint: p("billing.settings.needAccessHint", "Ask a billing admin of this organization to give you access.")
627
- }) : /* @__PURE__ */ c(ne, { message: p("billing.settings.noManagePermission", "You don't have permission to manage billing settings.") });
627
+ }) : /* @__PURE__ */ u(r, { message: p("billing.settings.noManagePermission", "You don't have permission to manage billing settings.") });
628
628
  };
629
629
  export { p as SettingsPage };
630
630