@burdenoff/microfe-billing 2026.1113.1 → 2026.1113.3
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.
- package/dist/billing/BillingRoot.js +83 -77
- package/dist/billing/BillingRoot.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +78 -78
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +70 -70
- package/dist/billing/modules/addons/pages/AddonDetailPage.js +72 -72
- package/dist/billing/modules/addons/pages/AddonEditPage.js +79 -79
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +224 -224
- package/dist/billing/modules/addons/pages/AddonsListPage.js +186 -186
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +168 -168
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +88 -88
- package/dist/billing/modules/billing/hooks/index.js +5 -5
- package/dist/billing/modules/billing/hooks/useInvoices.js +39 -20
- package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -1
- package/dist/billing/modules/billing/index.js +14 -14
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +92 -92
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +160 -160
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +100 -100
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +105 -105
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +37 -37
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +41 -41
- package/dist/billing/modules/billing/pages/RefundsPage.js +334 -334
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/TransactionsPage.js +174 -174
- package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +24 -24
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/OrderSummary.js +71 -71
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +646 -625
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
- package/dist/billing/modules/checkout/utils/checkoutOptions.d.ts +23 -0
- package/dist/billing/modules/checkout/utils/checkoutOptions.js +8 -0
- package/dist/billing/modules/checkout/utils/checkoutOptions.js.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js +112 -112
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +118 -118
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +119 -119
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +82 -82
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +30 -30
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +77 -77
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +144 -144
- package/dist/billing/modules/credits/pages/CreditsPage.js +67 -67
- package/dist/billing/modules/dashboard/pages/OverviewPage.js +594 -442
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
- package/dist/billing/modules/dashboard/utils/overviewSummary.d.ts +46 -0
- package/dist/billing/modules/dashboard/utils/overviewSummary.js +37 -0
- package/dist/billing/modules/dashboard/utils/overviewSummary.js.map +1 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +199 -199
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +64 -64
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +122 -122
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.js +102 -102
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +178 -178
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +107 -107
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +54 -54
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +94 -94
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +73 -73
- package/dist/billing/modules/plans/pages/PlanDetailPage.js +96 -96
- package/dist/billing/modules/plans/pages/PlanEditPage.js +16 -16
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +143 -143
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
- package/dist/billing/modules/plans/utils/planAction.d.ts +9 -0
- package/dist/billing/modules/plans/utils/planAction.js +4 -1
- package/dist/billing/modules/plans/utils/planAction.js.map +1 -1
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
- package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
- package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
- package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
- package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
- package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
- package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
- package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
- package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
- package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
- package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
- package/dist/billing/shared/components/EmptyState.js +3 -3
- package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
- package/dist/billing/shared/ui/MetricCard.js +13 -13
- package/dist/billing/shared/utils/format.js +16 -4
- package/dist/billing/shared/utils/format.js.map +1 -1
- package/dist/billing/shared/utils/index.js +8 -8
- package/dist/generated/global-operations.js +294 -286
- package/dist/generated/global-operations.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,24 +7,24 @@ import "../../../shared/components/index.js";
|
|
|
7
7
|
import { useQuotaTemplateMutations as i } from "../hooks/useQuotaTemplates.js";
|
|
8
8
|
import { QuotaResetPeriod as a, QuotaType as o } from "../../../shared/types/graphql.js";
|
|
9
9
|
import { useState as s } from "react";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { PagePurpose as c } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
12
|
+
import { useI18n as d } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
13
13
|
// src/billing/modules/quota/pages/QuotaTemplateCreatePage.tsx
|
|
14
14
|
var f = () => {
|
|
15
|
-
let { t: f } =
|
|
15
|
+
let { t: f } = d(), p = (e, t) => {
|
|
16
16
|
let n = f(e);
|
|
17
17
|
return n === e ? t : n;
|
|
18
18
|
}, m = n(), h = r(), { createQuota: g, isCreating: _ } = i(), [v, y] = s(""), [b, x] = s(""), [S, C] = s(""), [w, T] = s("numeric"), [E, D] = s(""), [O, k] = s(""), [A, j] = s(o.PRODUCT_SPECIFIC), [M, N] = s(!1), [P, F] = s(a.NEVER), [I, L] = s(null), [R, z] = s(!1);
|
|
19
|
-
return h.canManageQuotas ? /* @__PURE__ */
|
|
19
|
+
return h.canManageQuotas ? /* @__PURE__ */ u("div", {
|
|
20
20
|
className: "space-y-6 p-6",
|
|
21
21
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ l(t, {
|
|
23
23
|
title: "Create New Quota",
|
|
24
24
|
description: "Set up a new quota template"
|
|
25
25
|
}),
|
|
26
|
-
/* @__PURE__ */ c
|
|
27
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ l(c, { children: "Define a reusable limit — its name, type (pooled or product-specific), unit and default value — that you can then attach to any number of plans and add-ons. Build the template once here instead of redefining the same limit on every plan." }),
|
|
27
|
+
/* @__PURE__ */ u("form", {
|
|
28
28
|
onSubmit: async (e) => {
|
|
29
29
|
if (e.preventDefault(), L(null), z(!1), !v.trim()) {
|
|
30
30
|
L("Quota name is required");
|
|
@@ -61,38 +61,38 @@ var f = () => {
|
|
|
61
61
|
},
|
|
62
62
|
className: "max-w-2xl space-y-6",
|
|
63
63
|
children: [
|
|
64
|
-
I && /* @__PURE__ */
|
|
64
|
+
I && /* @__PURE__ */ l("div", {
|
|
65
65
|
className: "p-4 bg-status-error-bg-subtle border border-border-subtle rounded-lg",
|
|
66
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ l("p", {
|
|
67
67
|
className: "text-sm text-status-error-text",
|
|
68
68
|
children: I
|
|
69
69
|
})
|
|
70
70
|
}),
|
|
71
|
-
R && /* @__PURE__ */
|
|
71
|
+
R && /* @__PURE__ */ l("div", {
|
|
72
72
|
className: "p-4 bg-status-success-bg-subtle border border-border-subtle rounded-lg",
|
|
73
|
-
children: /* @__PURE__ */
|
|
73
|
+
children: /* @__PURE__ */ l("p", {
|
|
74
74
|
className: "text-sm text-status-success-text",
|
|
75
75
|
children: "Quota created successfully! Redirecting…"
|
|
76
76
|
})
|
|
77
77
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ u("div", {
|
|
79
79
|
className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
|
|
80
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ l("div", {
|
|
81
81
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
82
|
-
children: /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ l("h2", {
|
|
83
83
|
className: "font-semibold text-text-primary",
|
|
84
84
|
children: "Basic Information"
|
|
85
85
|
})
|
|
86
|
-
}), /* @__PURE__ */
|
|
86
|
+
}), /* @__PURE__ */ u("div", {
|
|
87
87
|
className: "p-4 space-y-4",
|
|
88
88
|
children: [
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ u("div", { children: [
|
|
90
|
+
/* @__PURE__ */ l("label", {
|
|
91
91
|
htmlFor: "name",
|
|
92
92
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
93
93
|
children: "Quota Key *"
|
|
94
94
|
}),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ l("input", {
|
|
96
96
|
id: "name",
|
|
97
97
|
type: "text",
|
|
98
98
|
value: v,
|
|
@@ -101,25 +101,25 @@ var f = () => {
|
|
|
101
101
|
placeholder: "e.g., sessions-started, tunnels-created",
|
|
102
102
|
required: !0
|
|
103
103
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ u("p", {
|
|
105
105
|
className: "text-xs text-text-muted mt-1",
|
|
106
106
|
children: [
|
|
107
107
|
"Internal machine key, must match the ",
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ l("code", { children: "quotaName" }),
|
|
109
109
|
" used in",
|
|
110
110
|
" ",
|
|
111
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ l("code", { children: "@usage" }),
|
|
112
112
|
" directives. Never shown to users."
|
|
113
113
|
]
|
|
114
114
|
})
|
|
115
115
|
] }),
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ u("div", { children: [
|
|
117
|
+
/* @__PURE__ */ l("label", {
|
|
118
118
|
htmlFor: "displayName",
|
|
119
119
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
120
120
|
children: "Display Name *"
|
|
121
121
|
}),
|
|
122
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ l("input", {
|
|
123
123
|
id: "displayName",
|
|
124
124
|
type: "text",
|
|
125
125
|
value: b,
|
|
@@ -128,18 +128,18 @@ var f = () => {
|
|
|
128
128
|
placeholder: "e.g., Tunnels, Session Starts, Webhooks",
|
|
129
129
|
required: !0
|
|
130
130
|
}),
|
|
131
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ l("p", {
|
|
132
132
|
className: "text-xs text-text-muted mt-1",
|
|
133
133
|
children: "Human-readable name shown to users in billing and usage UI."
|
|
134
134
|
})
|
|
135
135
|
] }),
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ u("div", { children: [
|
|
137
|
+
/* @__PURE__ */ l("label", {
|
|
138
138
|
htmlFor: "description",
|
|
139
139
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
140
140
|
children: "Description"
|
|
141
141
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ l("textarea", {
|
|
143
143
|
id: "description",
|
|
144
144
|
value: S,
|
|
145
145
|
onChange: (e) => C(e.target.value),
|
|
@@ -147,79 +147,79 @@ var f = () => {
|
|
|
147
147
|
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",
|
|
148
148
|
placeholder: "e.g., Active tunnels created through VibeControls (slot freed on delete)"
|
|
149
149
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ l("p", {
|
|
151
151
|
className: "text-xs text-text-muted mt-1",
|
|
152
152
|
children: "Short explanation shown in billing and usage detail views."
|
|
153
153
|
})
|
|
154
154
|
] }),
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ u("div", { children: [
|
|
156
|
+
/* @__PURE__ */ l("label", {
|
|
157
157
|
htmlFor: "quotaType",
|
|
158
158
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
159
159
|
children: "Quota Type *"
|
|
160
160
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ u("select", {
|
|
162
162
|
id: "quotaType",
|
|
163
163
|
value: A,
|
|
164
164
|
onChange: (e) => j(e.target.value),
|
|
165
165
|
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",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ l("option", {
|
|
167
167
|
value: o.PRODUCT_SPECIFIC,
|
|
168
168
|
children: "Product Specific"
|
|
169
|
-
}), /* @__PURE__ */
|
|
169
|
+
}), /* @__PURE__ */ l("option", {
|
|
170
170
|
value: o.POOLED,
|
|
171
171
|
children: "Pooled"
|
|
172
172
|
})]
|
|
173
173
|
}),
|
|
174
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ l("p", {
|
|
175
175
|
className: "text-xs text-text-muted mt-1",
|
|
176
176
|
children: A === o.POOLED ? "Shared across all products" : "Specific to individual products"
|
|
177
177
|
})
|
|
178
178
|
] }),
|
|
179
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ u("div", {
|
|
180
180
|
className: "flex items-center gap-3",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ l("input", {
|
|
182
182
|
id: "reusable",
|
|
183
183
|
type: "checkbox",
|
|
184
184
|
checked: M,
|
|
185
185
|
onChange: (e) => N(e.target.checked),
|
|
186
186
|
className: "size-4 rounded border-border-subtle text-text-link focus:ring-[var(--color-focus-ring)]"
|
|
187
|
-
}), /* @__PURE__ */
|
|
187
|
+
}), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
188
188
|
htmlFor: "reusable",
|
|
189
189
|
className: "text-sm font-medium text-text-primary",
|
|
190
190
|
children: "Reusable Quota"
|
|
191
|
-
}), /* @__PURE__ */
|
|
191
|
+
}), /* @__PURE__ */ l("p", {
|
|
192
192
|
className: "text-xs text-text-muted",
|
|
193
193
|
children: "Enable for quotas like seats or bots that can be freed up"
|
|
194
194
|
})] })]
|
|
195
195
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ u("div", { children: [
|
|
197
|
+
/* @__PURE__ */ l("label", {
|
|
198
198
|
htmlFor: "resetPeriod",
|
|
199
199
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
200
200
|
children: "Reset Period"
|
|
201
201
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ u("select", {
|
|
203
203
|
id: "resetPeriod",
|
|
204
204
|
value: P,
|
|
205
205
|
onChange: (e) => F(e.target.value),
|
|
206
206
|
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",
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ l("option", {
|
|
209
209
|
value: a.NEVER,
|
|
210
210
|
children: "Never (one-time limit)"
|
|
211
211
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ l("option", {
|
|
213
213
|
value: a.DAILY,
|
|
214
214
|
children: "Daily (resets every day)"
|
|
215
215
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ l("option", {
|
|
217
217
|
value: a.MONTHLY,
|
|
218
218
|
children: "Monthly (resets every month)"
|
|
219
219
|
})
|
|
220
220
|
]
|
|
221
221
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ l("p", {
|
|
223
223
|
className: "text-xs text-text-muted mt-1",
|
|
224
224
|
children: "How often the quota usage counter is reset to zero"
|
|
225
225
|
})
|
|
@@ -227,52 +227,52 @@ var f = () => {
|
|
|
227
227
|
]
|
|
228
228
|
})]
|
|
229
229
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ u("div", {
|
|
231
231
|
className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ l("div", {
|
|
233
233
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
234
|
-
children: /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ l("h2", {
|
|
235
235
|
className: "font-semibold text-text-primary",
|
|
236
236
|
children: "Limits Configuration"
|
|
237
237
|
})
|
|
238
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ u("div", {
|
|
239
239
|
className: "p-4 space-y-4",
|
|
240
240
|
children: [
|
|
241
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
242
242
|
htmlFor: "limitType",
|
|
243
243
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
244
244
|
children: "Limit Type *"
|
|
245
|
-
}), /* @__PURE__ */
|
|
245
|
+
}), /* @__PURE__ */ u("select", {
|
|
246
246
|
id: "limitType",
|
|
247
247
|
value: w,
|
|
248
248
|
onChange: (e) => T(e.target.value),
|
|
249
249
|
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",
|
|
250
250
|
children: [
|
|
251
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ l("option", {
|
|
252
252
|
value: "numeric",
|
|
253
253
|
children: "Numeric (count)"
|
|
254
254
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ l("option", {
|
|
256
256
|
value: "storage",
|
|
257
257
|
children: "Storage (bytes)"
|
|
258
258
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ l("option", {
|
|
260
260
|
value: "duration",
|
|
261
261
|
children: "Duration (seconds)"
|
|
262
262
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ l("option", {
|
|
264
264
|
value: "percentage",
|
|
265
265
|
children: "Percentage"
|
|
266
266
|
})
|
|
267
267
|
]
|
|
268
268
|
})] }),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ u("div", { children: [
|
|
270
|
+
/* @__PURE__ */ l("label", {
|
|
271
271
|
htmlFor: "limitValue",
|
|
272
272
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
273
273
|
children: "Limit Value *"
|
|
274
274
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ l("input", {
|
|
276
276
|
id: "limitValue",
|
|
277
277
|
type: "number",
|
|
278
278
|
min: "0",
|
|
@@ -282,18 +282,18 @@ var f = () => {
|
|
|
282
282
|
placeholder: "1000",
|
|
283
283
|
required: !0
|
|
284
284
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ l("p", {
|
|
286
286
|
className: "text-xs text-text-muted mt-1",
|
|
287
287
|
children: "The maximum limit value for this quota"
|
|
288
288
|
})
|
|
289
289
|
] }),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ u("div", { children: [
|
|
291
|
+
/* @__PURE__ */ l("label", {
|
|
292
292
|
htmlFor: "unit",
|
|
293
293
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
294
294
|
children: "Unit *"
|
|
295
295
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ l("input", {
|
|
297
297
|
id: "unit",
|
|
298
298
|
type: "text",
|
|
299
299
|
value: O,
|
|
@@ -302,7 +302,7 @@ var f = () => {
|
|
|
302
302
|
placeholder: "e.g., bots, GB, MB, seats, workflow runs",
|
|
303
303
|
required: !0
|
|
304
304
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ l("p", {
|
|
306
306
|
className: "text-xs text-text-muted mt-1",
|
|
307
307
|
children: "The unit of measurement displayed with usage values (e.g., \"2/6 bots\")"
|
|
308
308
|
})
|
|
@@ -310,14 +310,14 @@ var f = () => {
|
|
|
310
310
|
]
|
|
311
311
|
})]
|
|
312
312
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ u("div", {
|
|
314
314
|
className: "flex items-center gap-3 pt-4",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ l("button", {
|
|
316
316
|
type: "submit",
|
|
317
317
|
disabled: _,
|
|
318
318
|
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",
|
|
319
319
|
children: _ ? p("billing.quota.creating", "Creating...") : p("billing.quota.createQuota", "Create Quota")
|
|
320
|
-
}), /* @__PURE__ */
|
|
320
|
+
}), /* @__PURE__ */ l("button", {
|
|
321
321
|
type: "button",
|
|
322
322
|
onClick: () => m("/quotas"),
|
|
323
323
|
className: "px-6 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
|
|
@@ -327,7 +327,7 @@ var f = () => {
|
|
|
327
327
|
]
|
|
328
328
|
})
|
|
329
329
|
]
|
|
330
|
-
}) : /* @__PURE__ */
|
|
330
|
+
}) : /* @__PURE__ */ l(e, { message: "You don't have permission to create quotas." });
|
|
331
331
|
};
|
|
332
332
|
export { f as QuotaTemplateCreatePage };
|
|
333
333
|
|