@burdenoff/microfe-billing 2026.1113.2 → 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 +100 -100
- package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
- 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
|
@@ -9,53 +9,53 @@ import "../../../shared/components/index.js";
|
|
|
9
9
|
import { formatDate as o } from "../../../shared/utils/format.js";
|
|
10
10
|
import { useQuotaTemplate as s, useQuotaTemplateMutations as c } from "../hooks/useQuotaTemplates.js";
|
|
11
11
|
import "../../../shared/utils/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import { EmphasisPanel as l, PagePurpose as u } from "@burdenoff/fe-libs/ui";
|
|
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
16
|
// src/billing/modules/quota/pages/QuotaTemplateDetailPage.tsx
|
|
17
17
|
var h = () => {
|
|
18
|
-
let { t: h } =
|
|
18
|
+
let { t: h } = m(), g = (e, t) => {
|
|
19
19
|
let n = h(e);
|
|
20
20
|
return n === e ? t : n;
|
|
21
|
-
}, { quotaId: _ } =
|
|
22
|
-
if (!y.canViewQuotas) return /* @__PURE__ */
|
|
23
|
-
if (x) return /* @__PURE__ */
|
|
21
|
+
}, { quotaId: _ } = d(), v = r(), y = a(), { quota: b, isLoading: x, error: S, refetch: C } = s(_), { toggleQuota: w, isToggling: T } = c();
|
|
22
|
+
if (!y.canViewQuotas) return /* @__PURE__ */ f(e, { message: "You don't have permission to view quota details." });
|
|
23
|
+
if (x) return /* @__PURE__ */ p("div", {
|
|
24
24
|
className: "space-y-6 p-6",
|
|
25
|
-
children: [/* @__PURE__ */
|
|
25
|
+
children: [/* @__PURE__ */ f("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ p("div", {
|
|
26
26
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
27
|
-
children: [/* @__PURE__ */
|
|
27
|
+
children: [/* @__PURE__ */ f("div", {
|
|
28
28
|
className: "lg:col-span-2 space-y-4",
|
|
29
29
|
children: [
|
|
30
30
|
1,
|
|
31
31
|
2,
|
|
32
32
|
3
|
|
33
|
-
].map((e) => /* @__PURE__ */
|
|
34
|
-
}), /* @__PURE__ */
|
|
33
|
+
].map((e) => /* @__PURE__ */ f("div", { className: "h-24 bg-bg-sunken animate-pulse rounded" }, e))
|
|
34
|
+
}), /* @__PURE__ */ f("div", { className: "h-64 bg-bg-sunken animate-pulse rounded" })]
|
|
35
35
|
})]
|
|
36
36
|
});
|
|
37
|
-
if (S && i(S)) return /* @__PURE__ */
|
|
37
|
+
if (S && i(S)) return /* @__PURE__ */ f("div", {
|
|
38
38
|
className: "p-6",
|
|
39
|
-
children: /* @__PURE__ */
|
|
39
|
+
children: /* @__PURE__ */ f(n, {
|
|
40
40
|
title: "Server Unavailable",
|
|
41
41
|
message: "Unable to load quota details. The server might be down or experiencing issues.",
|
|
42
42
|
onRetry: () => C(),
|
|
43
43
|
showRetry: !0
|
|
44
44
|
})
|
|
45
45
|
});
|
|
46
|
-
if (!b) return /* @__PURE__ */
|
|
46
|
+
if (!b) return /* @__PURE__ */ f("div", {
|
|
47
47
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
48
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ p("div", {
|
|
49
49
|
className: "text-center space-y-4",
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ f("div", {
|
|
52
52
|
className: "size-12 mx-auto rounded-full bg-bg-sunken flex items-center justify-center",
|
|
53
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ f("svg", {
|
|
54
54
|
className: "size-6 text-text-muted",
|
|
55
55
|
fill: "none",
|
|
56
56
|
viewBox: "0 0 24 24",
|
|
57
57
|
stroke: "currentColor",
|
|
58
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ f("path", {
|
|
59
59
|
strokeLinecap: "round",
|
|
60
60
|
strokeLinejoin: "round",
|
|
61
61
|
strokeWidth: 2,
|
|
@@ -63,15 +63,15 @@ var h = () => {
|
|
|
63
63
|
})
|
|
64
64
|
})
|
|
65
65
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ f("h2", {
|
|
67
67
|
className: "text-lg font-semibold text-text-primary",
|
|
68
68
|
children: g("billing.quota.quotaNotFound", "Quota not found")
|
|
69
69
|
}),
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ f("p", {
|
|
71
71
|
className: "text-sm text-text-muted",
|
|
72
72
|
children: "The quota you're looking for doesn't exist or has been removed."
|
|
73
73
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ f("button", {
|
|
75
75
|
type: "button",
|
|
76
76
|
onClick: () => v("/quotas"),
|
|
77
77
|
className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors",
|
|
@@ -87,50 +87,50 @@ var h = () => {
|
|
|
87
87
|
console.error("Failed to toggle quota:", e);
|
|
88
88
|
}
|
|
89
89
|
}, D = b.limits, O = D?.type ?? "unknown", k = D?.value ?? 0, A = D?.unit ?? "";
|
|
90
|
-
return /* @__PURE__ */
|
|
90
|
+
return /* @__PURE__ */ p("div", {
|
|
91
91
|
className: "space-y-6 p-6",
|
|
92
92
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ f(t, {
|
|
94
94
|
title: b.name,
|
|
95
95
|
description: `${b.quotaType === "POOLED" ? "Pooled" : "Product Specific"} quota template`
|
|
96
96
|
}),
|
|
97
|
-
/* @__PURE__ */ u
|
|
98
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ f(u, { children: g("billing.quota.detailPurpose", "Everything about this quota template — its limit configuration, type and where it is used. Review it here to understand what plans and add-ons referencing it will grant, before editing or attaching it elsewhere.") }),
|
|
98
|
+
/* @__PURE__ */ p("div", {
|
|
99
99
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
100
|
-
children: [/* @__PURE__ */
|
|
100
|
+
children: [/* @__PURE__ */ p("div", {
|
|
101
101
|
className: "lg:col-span-2 space-y-6",
|
|
102
102
|
children: [
|
|
103
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ p(l, {
|
|
104
104
|
className: "overflow-hidden p-0",
|
|
105
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ f("div", {
|
|
106
106
|
className: "p-4 border-b border-border-subtle",
|
|
107
|
-
children: /* @__PURE__ */
|
|
107
|
+
children: /* @__PURE__ */ f("h2", {
|
|
108
108
|
className: "font-semibold text-text-primary",
|
|
109
109
|
children: g("billing.quota.limitsConfig", "Limits Configuration")
|
|
110
110
|
})
|
|
111
|
-
}), /* @__PURE__ */
|
|
111
|
+
}), /* @__PURE__ */ f("div", {
|
|
112
112
|
className: "p-6",
|
|
113
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ p("div", {
|
|
114
114
|
className: "grid grid-cols-3 gap-6",
|
|
115
115
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
117
117
|
className: "text-sm text-text-muted",
|
|
118
118
|
children: "Limit Type"
|
|
119
|
-
}), /* @__PURE__ */
|
|
119
|
+
}), /* @__PURE__ */ f("p", {
|
|
120
120
|
className: "text-lg font-semibold text-text-primary capitalize mt-1",
|
|
121
121
|
children: O
|
|
122
122
|
})] }),
|
|
123
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
124
124
|
className: "text-sm text-text-muted",
|
|
125
125
|
children: "Limit Value"
|
|
126
|
-
}), /* @__PURE__ */
|
|
126
|
+
}), /* @__PURE__ */ f("p", {
|
|
127
127
|
className: "text-lg font-semibold text-text-primary mt-1",
|
|
128
128
|
children: k.toLocaleString()
|
|
129
129
|
})] }),
|
|
130
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
131
131
|
className: "text-sm text-text-muted",
|
|
132
132
|
children: "Unit"
|
|
133
|
-
}), /* @__PURE__ */
|
|
133
|
+
}), /* @__PURE__ */ f("p", {
|
|
134
134
|
className: "text-lg font-semibold text-text-primary mt-1",
|
|
135
135
|
children: A || "-"
|
|
136
136
|
})] })
|
|
@@ -138,100 +138,100 @@ var h = () => {
|
|
|
138
138
|
})
|
|
139
139
|
})]
|
|
140
140
|
}),
|
|
141
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ p("div", {
|
|
142
142
|
className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
|
|
143
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ f("div", {
|
|
144
144
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
145
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: /* @__PURE__ */ f("h2", {
|
|
146
146
|
className: "font-semibold text-text-primary",
|
|
147
147
|
children: g("billing.quota.properties", "Properties")
|
|
148
148
|
})
|
|
149
|
-
}), /* @__PURE__ */
|
|
149
|
+
}), /* @__PURE__ */ p("div", {
|
|
150
150
|
className: "p-6 space-y-4",
|
|
151
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ p("div", {
|
|
152
152
|
className: "flex items-center justify-between p-3 border border-border-subtle rounded-lg",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
154
154
|
className: "font-medium text-text-primary",
|
|
155
155
|
children: "Quota Type"
|
|
156
|
-
}), /* @__PURE__ */
|
|
156
|
+
}), /* @__PURE__ */ f("p", {
|
|
157
157
|
className: "text-sm text-text-muted",
|
|
158
158
|
children: b.quotaType === "POOLED" ? "Shared across all products" : "Specific to individual products"
|
|
159
|
-
})] }), /* @__PURE__ */
|
|
159
|
+
})] }), /* @__PURE__ */ f("span", {
|
|
160
160
|
className: `px-3 py-1 text-sm font-medium rounded ${b.quotaType === "POOLED" ? "bg-status-info-bg-subtle text-status-info-text" : "bg-accent-purple-subtle text-text-primary"}`,
|
|
161
161
|
children: b.quotaType === "POOLED" ? "Pooled" : "Product Specific"
|
|
162
162
|
})]
|
|
163
|
-
}), /* @__PURE__ */
|
|
163
|
+
}), /* @__PURE__ */ p("div", {
|
|
164
164
|
className: "flex items-center justify-between p-3 border border-border-subtle rounded-lg",
|
|
165
|
-
children: [/* @__PURE__ */
|
|
165
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
166
166
|
className: "font-medium text-text-primary",
|
|
167
167
|
children: "Reusable"
|
|
168
|
-
}), /* @__PURE__ */
|
|
168
|
+
}), /* @__PURE__ */ f("p", {
|
|
169
169
|
className: "text-sm text-text-muted",
|
|
170
170
|
children: b.reusable ? "Quota can be freed up and reused (e.g., seats, bots)" : "Quota is consumed permanently (e.g., API calls, storage)"
|
|
171
|
-
})] }), /* @__PURE__ */
|
|
171
|
+
})] }), /* @__PURE__ */ f("span", {
|
|
172
172
|
className: `px-3 py-1 text-sm font-medium rounded ${b.reusable ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-muted"}`,
|
|
173
173
|
children: b.reusable ? "Yes" : "No"
|
|
174
174
|
})]
|
|
175
175
|
})]
|
|
176
176
|
})]
|
|
177
177
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ p("div", {
|
|
179
179
|
className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
|
|
180
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ f("div", {
|
|
181
181
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
182
|
-
children: /* @__PURE__ */
|
|
182
|
+
children: /* @__PURE__ */ f("h2", {
|
|
183
183
|
className: "font-semibold text-text-primary",
|
|
184
184
|
children: "Limits (Raw JSON)"
|
|
185
185
|
})
|
|
186
|
-
}), /* @__PURE__ */
|
|
186
|
+
}), /* @__PURE__ */ f("div", {
|
|
187
187
|
className: "p-4",
|
|
188
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ f("pre", {
|
|
189
189
|
className: "text-sm text-text-primary bg-bg-sunken/50 p-4 rounded-lg overflow-auto",
|
|
190
190
|
children: JSON.stringify(b.limits, null, 2)
|
|
191
191
|
})
|
|
192
192
|
})]
|
|
193
193
|
})
|
|
194
194
|
]
|
|
195
|
-
}), /* @__PURE__ */
|
|
195
|
+
}), /* @__PURE__ */ p("div", {
|
|
196
196
|
className: "space-y-6",
|
|
197
197
|
children: [
|
|
198
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ p("div", {
|
|
199
199
|
className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
200
|
+
children: [/* @__PURE__ */ f("div", {
|
|
201
201
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
202
|
-
children: /* @__PURE__ */
|
|
202
|
+
children: /* @__PURE__ */ f("h2", {
|
|
203
203
|
className: "font-semibold text-text-primary",
|
|
204
204
|
children: "Status"
|
|
205
205
|
})
|
|
206
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ p("div", {
|
|
207
207
|
className: "p-4 space-y-4",
|
|
208
208
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ p("div", {
|
|
210
210
|
className: "flex items-center justify-between",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
211
|
+
children: [/* @__PURE__ */ f("span", {
|
|
212
212
|
className: "text-sm text-text-muted",
|
|
213
213
|
children: "Status"
|
|
214
|
-
}), /* @__PURE__ */
|
|
214
|
+
}), /* @__PURE__ */ f("span", {
|
|
215
215
|
className: `px-2 py-1 text-xs font-medium rounded ${b.isActive ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-muted"}`,
|
|
216
216
|
children: b.isActive ? "Active" : "Inactive"
|
|
217
217
|
})]
|
|
218
218
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ p("div", {
|
|
220
220
|
className: "flex items-center justify-between",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
221
|
+
children: [/* @__PURE__ */ f("span", {
|
|
222
222
|
className: "text-sm text-text-muted",
|
|
223
223
|
children: "Created"
|
|
224
|
-
}), /* @__PURE__ */
|
|
224
|
+
}), /* @__PURE__ */ f("span", {
|
|
225
225
|
className: "text-sm font-medium text-text-primary",
|
|
226
226
|
children: o(b.createdAt, "short")
|
|
227
227
|
})]
|
|
228
228
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ p("div", {
|
|
230
230
|
className: "flex items-center justify-between",
|
|
231
|
-
children: [/* @__PURE__ */
|
|
231
|
+
children: [/* @__PURE__ */ f("span", {
|
|
232
232
|
className: "text-sm text-text-muted",
|
|
233
233
|
children: "Updated"
|
|
234
|
-
}), /* @__PURE__ */
|
|
234
|
+
}), /* @__PURE__ */ f("span", {
|
|
235
235
|
className: "text-sm font-medium text-text-primary",
|
|
236
236
|
children: o(b.updatedAt, "short")
|
|
237
237
|
})]
|
|
@@ -239,22 +239,22 @@ var h = () => {
|
|
|
239
239
|
]
|
|
240
240
|
})]
|
|
241
241
|
}),
|
|
242
|
-
y.canManageQuotas && /* @__PURE__ */
|
|
242
|
+
y.canManageQuotas && /* @__PURE__ */ p("div", {
|
|
243
243
|
className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
244
|
+
children: [/* @__PURE__ */ f("div", {
|
|
245
245
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
246
|
-
children: /* @__PURE__ */
|
|
246
|
+
children: /* @__PURE__ */ f("h2", {
|
|
247
247
|
className: "font-semibold text-text-primary",
|
|
248
248
|
children: "Actions"
|
|
249
249
|
})
|
|
250
|
-
}), /* @__PURE__ */
|
|
250
|
+
}), /* @__PURE__ */ p("div", {
|
|
251
251
|
className: "p-4 space-y-2",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ f("button", {
|
|
253
253
|
type: "button",
|
|
254
254
|
onClick: () => v(`/quotas/${b.id}/edit`),
|
|
255
255
|
className: "w-full px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors",
|
|
256
256
|
children: "Edit Quota"
|
|
257
|
-
}), /* @__PURE__ */
|
|
257
|
+
}), /* @__PURE__ */ f("button", {
|
|
258
258
|
type: "button",
|
|
259
259
|
onClick: E,
|
|
260
260
|
disabled: T,
|
|
@@ -263,7 +263,7 @@ var h = () => {
|
|
|
263
263
|
})]
|
|
264
264
|
})]
|
|
265
265
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ f("button", {
|
|
267
267
|
type: "button",
|
|
268
268
|
onClick: () => v("/quotas"),
|
|
269
269
|
className: "w-full px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
|