@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
@@ -10,16 +10,16 @@ import "../../../shared/utils/index.js";
10
10
  import { useQuotaTemplate as o, useQuotaTemplateMutations as s } from "../hooks/useQuotaTemplates.js";
11
11
  import { QuotaResetPeriod as c } from "../../../shared/types/graphql.js";
12
12
  import { useEffect as l, useState as u } from "react";
13
- import { useParams as d } from "react-router";
14
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
15
- import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
16
- import { PagePurpose as h } from "@burdenoff/fe-libs/ui";
13
+ import { PagePurpose as d } from "@burdenoff/fe-libs/ui";
14
+ import { useParams as f } from "react-router";
15
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
16
+ import { useI18n as h } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
17
  // src/billing/modules/quota/pages/QuotaTemplateEditPage.tsx
18
18
  var g = () => {
19
- let { t: g } = m(), _ = (e, t) => {
19
+ let { t: g } = h(), _ = (e, t) => {
20
20
  let n = g(e);
21
21
  return n === e ? t : n;
22
- }, { quotaId: v } = d(), y = r(), b = a(), { quota: x, isLoading: S, error: C, refetch: w } = o(v), { updateQuota: T, isUpdating: E } = s(), [D, O] = u(""), [k, A] = u(""), [j, M] = u(""), [N, P] = u("numeric"), [F, I] = u(""), [L, R] = u(""), [z, B] = u(!1), [V, H] = u(c.NEVER), [U, W] = u(!0), [G, K] = u(null), [q, J] = u(!1);
22
+ }, { quotaId: v } = f(), y = r(), b = a(), { quota: x, isLoading: S, error: C, refetch: w } = o(v), { updateQuota: T, isUpdating: E } = s(), [D, O] = u(""), [k, A] = u(""), [j, M] = u(""), [N, P] = u("numeric"), [F, I] = u(""), [L, R] = u(""), [z, B] = u(!1), [V, H] = u(c.NEVER), [U, W] = u(!0), [G, K] = u(null), [q, J] = u(!1);
23
23
  return l(() => {
24
24
  if (x) {
25
25
  O(x.name ?? ""), B(x.reusable ?? !1), H(x.resetPeriod ?? c.NEVER), W(x.isActive ?? !0);
@@ -28,34 +28,34 @@ var g = () => {
28
28
  let t = x.context;
29
29
  A(t?.displayName ?? ""), M(t?.description ?? "");
30
30
  }
31
- }, [x]), b.canManageQuotas ? S ? /* @__PURE__ */ p("div", {
31
+ }, [x]), b.canManageQuotas ? S ? /* @__PURE__ */ m("div", {
32
32
  className: "space-y-6 p-6",
33
- children: [/* @__PURE__ */ f("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ f("div", {
33
+ children: [/* @__PURE__ */ p("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ p("div", {
34
34
  className: "max-w-2xl space-y-4",
35
35
  children: [
36
36
  1,
37
37
  2,
38
38
  3,
39
39
  4
40
- ].map((e) => /* @__PURE__ */ f("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
40
+ ].map((e) => /* @__PURE__ */ p("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
41
41
  })]
42
- }) : C && i(C) ? /* @__PURE__ */ f("div", {
42
+ }) : C && i(C) ? /* @__PURE__ */ p("div", {
43
43
  className: "p-6",
44
- children: /* @__PURE__ */ f(n, {
44
+ children: /* @__PURE__ */ p(n, {
45
45
  title: "Server Unavailable",
46
46
  message: "Unable to load quota. The server might be down or experiencing issues.",
47
47
  onRetry: () => w(),
48
48
  showRetry: !0
49
49
  })
50
- }) : x ? /* @__PURE__ */ p("div", {
50
+ }) : x ? /* @__PURE__ */ m("div", {
51
51
  className: "space-y-6 p-6",
52
52
  children: [
53
- /* @__PURE__ */ f(t, {
53
+ /* @__PURE__ */ p(t, {
54
54
  title: `Edit Quota: ${x.context?.displayName ?? x.name}`,
55
55
  description: "Update the quota template configuration"
56
56
  }),
57
- /* @__PURE__ */ f(h, { children: "Adjust this quota template's configuration. Changes apply wherever the template is referenced, so review which plans and add-ons use it before changing its type or unit." }),
58
- /* @__PURE__ */ p("form", {
57
+ /* @__PURE__ */ p(d, { children: "Adjust this quota template's configuration. Changes apply wherever the template is referenced, so review which plans and add-ons use it before changing its type or unit." }),
58
+ /* @__PURE__ */ m("form", {
59
59
  onSubmit: async (e) => {
60
60
  if (e.preventDefault(), K(null), J(!1), !D.trim()) {
61
61
  K("Quota name is required");
@@ -93,38 +93,38 @@ var g = () => {
93
93
  },
94
94
  className: "max-w-2xl space-y-6",
95
95
  children: [
96
- G && /* @__PURE__ */ f("div", {
96
+ G && /* @__PURE__ */ p("div", {
97
97
  className: "p-4 bg-status-error-bg-subtle border border-border-subtle rounded-lg",
98
- children: /* @__PURE__ */ f("p", {
98
+ children: /* @__PURE__ */ p("p", {
99
99
  className: "text-sm text-status-error-text",
100
100
  children: G
101
101
  })
102
102
  }),
103
- q && /* @__PURE__ */ f("div", {
103
+ q && /* @__PURE__ */ p("div", {
104
104
  className: "p-4 bg-status-success-bg-subtle border border-border-subtle rounded-lg",
105
- children: /* @__PURE__ */ f("p", {
105
+ children: /* @__PURE__ */ p("p", {
106
106
  className: "text-sm text-status-success-text",
107
107
  children: "Quota updated successfully! Redirecting…"
108
108
  })
109
109
  }),
110
- /* @__PURE__ */ p("div", {
110
+ /* @__PURE__ */ m("div", {
111
111
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
112
- children: [/* @__PURE__ */ f("div", {
112
+ children: [/* @__PURE__ */ p("div", {
113
113
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
114
- children: /* @__PURE__ */ f("h2", {
114
+ children: /* @__PURE__ */ p("h2", {
115
115
  className: "font-semibold text-text-primary",
116
116
  children: "Basic Information"
117
117
  })
118
- }), /* @__PURE__ */ p("div", {
118
+ }), /* @__PURE__ */ m("div", {
119
119
  className: "p-4 space-y-4",
120
120
  children: [
121
- /* @__PURE__ */ p("div", { children: [
122
- /* @__PURE__ */ f("label", {
121
+ /* @__PURE__ */ m("div", { children: [
122
+ /* @__PURE__ */ p("label", {
123
123
  htmlFor: "name",
124
124
  className: "block text-sm font-medium text-text-primary mb-1",
125
125
  children: "Quota Key *"
126
126
  }),
127
- /* @__PURE__ */ f("input", {
127
+ /* @__PURE__ */ p("input", {
128
128
  id: "name",
129
129
  type: "text",
130
130
  value: D,
@@ -133,25 +133,25 @@ var g = () => {
133
133
  placeholder: "e.g., sessions-started, tunnels-created",
134
134
  required: !0
135
135
  }),
136
- /* @__PURE__ */ p("p", {
136
+ /* @__PURE__ */ m("p", {
137
137
  className: "text-xs text-text-muted mt-1",
138
138
  children: [
139
139
  "Internal machine key, must match the ",
140
- /* @__PURE__ */ f("code", { children: "quotaName" }),
140
+ /* @__PURE__ */ p("code", { children: "quotaName" }),
141
141
  " used in",
142
142
  " ",
143
- /* @__PURE__ */ f("code", { children: "@usage" }),
143
+ /* @__PURE__ */ p("code", { children: "@usage" }),
144
144
  " directives. Never shown to users."
145
145
  ]
146
146
  })
147
147
  ] }),
148
- /* @__PURE__ */ p("div", { children: [
149
- /* @__PURE__ */ f("label", {
148
+ /* @__PURE__ */ m("div", { children: [
149
+ /* @__PURE__ */ p("label", {
150
150
  htmlFor: "displayName",
151
151
  className: "block text-sm font-medium text-text-primary mb-1",
152
152
  children: "Display Name *"
153
153
  }),
154
- /* @__PURE__ */ f("input", {
154
+ /* @__PURE__ */ p("input", {
155
155
  id: "displayName",
156
156
  type: "text",
157
157
  value: k,
@@ -160,18 +160,18 @@ var g = () => {
160
160
  placeholder: "e.g., Tunnels, Session Starts, Webhooks",
161
161
  required: !0
162
162
  }),
163
- /* @__PURE__ */ f("p", {
163
+ /* @__PURE__ */ p("p", {
164
164
  className: "text-xs text-text-muted mt-1",
165
165
  children: "Human-readable name shown to users in billing and usage UI."
166
166
  })
167
167
  ] }),
168
- /* @__PURE__ */ p("div", { children: [
169
- /* @__PURE__ */ f("label", {
168
+ /* @__PURE__ */ m("div", { children: [
169
+ /* @__PURE__ */ p("label", {
170
170
  htmlFor: "description",
171
171
  className: "block text-sm font-medium text-text-primary mb-1",
172
172
  children: "Description"
173
173
  }),
174
- /* @__PURE__ */ f("textarea", {
174
+ /* @__PURE__ */ p("textarea", {
175
175
  id: "description",
176
176
  value: j,
177
177
  onChange: (e) => M(e.target.value),
@@ -179,78 +179,78 @@ var g = () => {
179
179
  className: "w-full px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] resize-none",
180
180
  placeholder: "e.g., Active tunnels created through VibeControls (slot freed on delete)"
181
181
  }),
182
- /* @__PURE__ */ f("p", {
182
+ /* @__PURE__ */ p("p", {
183
183
  className: "text-xs text-text-muted mt-1",
184
184
  children: "Short explanation shown in billing and usage detail views."
185
185
  })
186
186
  ] }),
187
- /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
187
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
188
188
  className: "block text-sm font-medium text-text-primary mb-1",
189
189
  children: "Quota Type"
190
- }), /* @__PURE__ */ p("div", {
190
+ }), /* @__PURE__ */ m("div", {
191
191
  className: "px-3 py-2 border border-border-subtle rounded-md bg-bg-sunken/50 text-text-muted",
192
- children: [x.quotaType === "POOLED" ? "Pooled" : "Product Specific", /* @__PURE__ */ f("span", {
192
+ children: [x.quotaType === "POOLED" ? "Pooled" : "Product Specific", /* @__PURE__ */ p("span", {
193
193
  className: "text-xs ml-2",
194
194
  children: "(cannot be changed)"
195
195
  })]
196
196
  })] }),
197
- /* @__PURE__ */ p("div", {
197
+ /* @__PURE__ */ m("div", {
198
198
  className: "flex items-center gap-3",
199
- children: [/* @__PURE__ */ f("input", {
199
+ children: [/* @__PURE__ */ p("input", {
200
200
  id: "reusable",
201
201
  type: "checkbox",
202
202
  checked: z,
203
203
  onChange: (e) => B(e.target.checked),
204
204
  className: "size-4 rounded border-border-subtle text-text-link focus:ring-[var(--color-focus-ring)]"
205
- }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
205
+ }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
206
206
  htmlFor: "reusable",
207
207
  className: "text-sm font-medium text-text-primary",
208
208
  children: "Reusable Quota"
209
- }), /* @__PURE__ */ f("p", {
209
+ }), /* @__PURE__ */ p("p", {
210
210
  className: "text-xs text-text-muted",
211
211
  children: "Enable for quotas like seats or bots that can be freed up"
212
212
  })] })]
213
213
  }),
214
- /* @__PURE__ */ p("div", { children: [
215
- /* @__PURE__ */ f("label", {
214
+ /* @__PURE__ */ m("div", { children: [
215
+ /* @__PURE__ */ p("label", {
216
216
  htmlFor: "resetPeriod",
217
217
  className: "block text-sm font-medium text-text-primary mb-1",
218
218
  children: "Reset Period"
219
219
  }),
220
- /* @__PURE__ */ p("select", {
220
+ /* @__PURE__ */ m("select", {
221
221
  id: "resetPeriod",
222
222
  value: V,
223
223
  onChange: (e) => H(e.target.value),
224
224
  className: "w-full px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
225
225
  children: [
226
- /* @__PURE__ */ f("option", {
226
+ /* @__PURE__ */ p("option", {
227
227
  value: c.NEVER,
228
228
  children: "Never (one-time limit)"
229
229
  }),
230
- /* @__PURE__ */ f("option", {
230
+ /* @__PURE__ */ p("option", {
231
231
  value: c.DAILY,
232
232
  children: "Daily (resets every day)"
233
233
  }),
234
- /* @__PURE__ */ f("option", {
234
+ /* @__PURE__ */ p("option", {
235
235
  value: c.MONTHLY,
236
236
  children: "Monthly (resets every month)"
237
237
  })
238
238
  ]
239
239
  }),
240
- /* @__PURE__ */ f("p", {
240
+ /* @__PURE__ */ p("p", {
241
241
  className: "text-xs text-text-muted mt-1",
242
242
  children: "How often the quota usage counter is reset to zero"
243
243
  })
244
244
  ] }),
245
- /* @__PURE__ */ p("div", {
245
+ /* @__PURE__ */ m("div", {
246
246
  className: "flex items-center gap-3",
247
- children: [/* @__PURE__ */ f("input", {
247
+ children: [/* @__PURE__ */ p("input", {
248
248
  id: "isActive",
249
249
  type: "checkbox",
250
250
  checked: U,
251
251
  onChange: (e) => W(e.target.checked),
252
252
  className: "size-4 rounded border-border-subtle text-text-link focus:ring-[var(--color-focus-ring)]"
253
- }), /* @__PURE__ */ f("label", {
253
+ }), /* @__PURE__ */ p("label", {
254
254
  htmlFor: "isActive",
255
255
  className: "text-sm font-medium text-text-primary",
256
256
  children: "Quota is active"
@@ -259,52 +259,52 @@ var g = () => {
259
259
  ]
260
260
  })]
261
261
  }),
262
- /* @__PURE__ */ p("div", {
262
+ /* @__PURE__ */ m("div", {
263
263
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
264
- children: [/* @__PURE__ */ f("div", {
264
+ children: [/* @__PURE__ */ p("div", {
265
265
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
266
- children: /* @__PURE__ */ f("h2", {
266
+ children: /* @__PURE__ */ p("h2", {
267
267
  className: "font-semibold text-text-primary",
268
268
  children: "Limits Configuration"
269
269
  })
270
- }), /* @__PURE__ */ p("div", {
270
+ }), /* @__PURE__ */ m("div", {
271
271
  className: "p-4 space-y-4",
272
272
  children: [
273
- /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
273
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
274
274
  htmlFor: "limitType",
275
275
  className: "block text-sm font-medium text-text-primary mb-1",
276
276
  children: "Limit Type *"
277
- }), /* @__PURE__ */ p("select", {
277
+ }), /* @__PURE__ */ m("select", {
278
278
  id: "limitType",
279
279
  value: N,
280
280
  onChange: (e) => P(e.target.value),
281
281
  className: "w-full px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
282
282
  children: [
283
- /* @__PURE__ */ f("option", {
283
+ /* @__PURE__ */ p("option", {
284
284
  value: "numeric",
285
285
  children: "Numeric (count)"
286
286
  }),
287
- /* @__PURE__ */ f("option", {
287
+ /* @__PURE__ */ p("option", {
288
288
  value: "storage",
289
289
  children: "Storage (bytes)"
290
290
  }),
291
- /* @__PURE__ */ f("option", {
291
+ /* @__PURE__ */ p("option", {
292
292
  value: "duration",
293
293
  children: "Duration (seconds)"
294
294
  }),
295
- /* @__PURE__ */ f("option", {
295
+ /* @__PURE__ */ p("option", {
296
296
  value: "percentage",
297
297
  children: "Percentage"
298
298
  })
299
299
  ]
300
300
  })] }),
301
- /* @__PURE__ */ p("div", { children: [
302
- /* @__PURE__ */ f("label", {
301
+ /* @__PURE__ */ m("div", { children: [
302
+ /* @__PURE__ */ p("label", {
303
303
  htmlFor: "limitValue",
304
304
  className: "block text-sm font-medium text-text-primary mb-1",
305
305
  children: "Limit Value *"
306
306
  }),
307
- /* @__PURE__ */ f("input", {
307
+ /* @__PURE__ */ p("input", {
308
308
  id: "limitValue",
309
309
  type: "number",
310
310
  min: "0",
@@ -314,18 +314,18 @@ var g = () => {
314
314
  placeholder: "1000",
315
315
  required: !0
316
316
  }),
317
- /* @__PURE__ */ f("p", {
317
+ /* @__PURE__ */ p("p", {
318
318
  className: "text-xs text-text-muted mt-1",
319
319
  children: "The maximum limit value for this quota"
320
320
  })
321
321
  ] }),
322
- /* @__PURE__ */ p("div", { children: [
323
- /* @__PURE__ */ f("label", {
322
+ /* @__PURE__ */ m("div", { children: [
323
+ /* @__PURE__ */ p("label", {
324
324
  htmlFor: "unit",
325
325
  className: "block text-sm font-medium text-text-primary mb-1",
326
326
  children: "Unit *"
327
327
  }),
328
- /* @__PURE__ */ f("input", {
328
+ /* @__PURE__ */ p("input", {
329
329
  id: "unit",
330
330
  type: "text",
331
331
  value: L,
@@ -334,7 +334,7 @@ var g = () => {
334
334
  placeholder: "e.g., bots, GB, MB, seats, workflow runs",
335
335
  required: !0
336
336
  }),
337
- /* @__PURE__ */ f("p", {
337
+ /* @__PURE__ */ p("p", {
338
338
  className: "text-xs text-text-muted mt-1",
339
339
  children: "The unit of measurement displayed with usage values (e.g., \"2/6 bots\")"
340
340
  })
@@ -342,14 +342,14 @@ var g = () => {
342
342
  ]
343
343
  })]
344
344
  }),
345
- /* @__PURE__ */ p("div", {
345
+ /* @__PURE__ */ m("div", {
346
346
  className: "flex items-center gap-3 pt-4",
347
- children: [/* @__PURE__ */ f("button", {
347
+ children: [/* @__PURE__ */ p("button", {
348
348
  type: "submit",
349
349
  disabled: E,
350
350
  className: "px-6 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors disabled:opacity-50",
351
351
  children: E ? _("billing.quota.saving", "Saving...") : _("billing.quota.saveChanges", "Save Changes")
352
- }), /* @__PURE__ */ f("button", {
352
+ }), /* @__PURE__ */ p("button", {
353
353
  type: "button",
354
354
  onClick: () => y(`/quotas/${v}`),
355
355
  className: "px-6 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
@@ -359,21 +359,21 @@ var g = () => {
359
359
  ]
360
360
  })
361
361
  ]
362
- }) : /* @__PURE__ */ f("div", {
362
+ }) : /* @__PURE__ */ p("div", {
363
363
  className: "flex items-center justify-center h-full min-h-[400px]",
364
- children: /* @__PURE__ */ p("div", {
364
+ children: /* @__PURE__ */ m("div", {
365
365
  className: "text-center space-y-4",
366
- children: [/* @__PURE__ */ f("h2", {
366
+ children: [/* @__PURE__ */ p("h2", {
367
367
  className: "text-lg font-semibold text-text-primary",
368
368
  children: "Quota not found"
369
- }), /* @__PURE__ */ f("button", {
369
+ }), /* @__PURE__ */ p("button", {
370
370
  type: "button",
371
371
  onClick: () => y("/quotas"),
372
372
  className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover",
373
373
  children: "Back to Quotas"
374
374
  })]
375
375
  })
376
- }) : /* @__PURE__ */ f(e, { message: "You don't have permission to edit quotas." });
376
+ }) : /* @__PURE__ */ p(e, { message: "You don't have permission to edit quotas." });
377
377
  };
378
378
  export { g as QuotaTemplateEditPage };
379
379