@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
|
@@ -12,10 +12,10 @@ import { useAddon as l, useAddonMutations as u } from "../hooks/useAddons.js";
|
|
|
12
12
|
import { getPlanFeatureQuantity as d } from "../../../shared/utils/planFeatureQuantity.js";
|
|
13
13
|
import { getDisplayPrice as f, useDefaultBillingCurrency as p } from "../../../hooks/useDefaultBillingCurrency.js";
|
|
14
14
|
import { useMemo as m } from "react";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
15
|
+
import { EmphasisPanel as h, PagePurpose as g } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { useParams as _ } from "react-router";
|
|
17
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
18
|
+
import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
19
19
|
// src/billing/modules/addons/pages/AddonDetailPage.tsx
|
|
20
20
|
function x(e) {
|
|
21
21
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -32,66 +32,66 @@ function x(e) {
|
|
|
32
32
|
return Array.from(t.values());
|
|
33
33
|
}
|
|
34
34
|
var S = () => {
|
|
35
|
-
let { t: d } =
|
|
35
|
+
let { t: d } = b(), S = (e, t) => {
|
|
36
36
|
let n = d(e);
|
|
37
37
|
return n === e ? t : n;
|
|
38
|
-
}, { addonId: C } =
|
|
39
|
-
return T.canViewAddons ? O ? /* @__PURE__ */
|
|
38
|
+
}, { addonId: C } = _(), w = r(), T = c(), E = p(), { addon: D, isLoading: O, error: k, refetch: A } = l(C), { toggleAddon: j, isToggling: M } = u(), N = m(() => x(D?.features || []), [D?.features]);
|
|
39
|
+
return T.canViewAddons ? O ? /* @__PURE__ */ y("div", {
|
|
40
40
|
className: "space-y-6 p-6",
|
|
41
|
-
children: [/* @__PURE__ */
|
|
41
|
+
children: [/* @__PURE__ */ v("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ y("div", {
|
|
42
42
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
43
|
-
children: [/* @__PURE__ */
|
|
43
|
+
children: [/* @__PURE__ */ v("div", {
|
|
44
44
|
className: "lg:col-span-2 space-y-4",
|
|
45
45
|
children: [
|
|
46
46
|
1,
|
|
47
47
|
2,
|
|
48
48
|
3
|
|
49
|
-
].map((e) => /* @__PURE__ */
|
|
50
|
-
}), /* @__PURE__ */
|
|
49
|
+
].map((e) => /* @__PURE__ */ v("div", { className: "h-24 bg-bg-sunken animate-pulse rounded" }, e))
|
|
50
|
+
}), /* @__PURE__ */ v("div", { className: "h-64 bg-bg-sunken animate-pulse rounded" })]
|
|
51
51
|
})]
|
|
52
|
-
}) : k && s(k) ? /* @__PURE__ */
|
|
52
|
+
}) : k && s(k) ? /* @__PURE__ */ v("div", {
|
|
53
53
|
className: "p-6",
|
|
54
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ v(n, {
|
|
55
55
|
title: S("billing.addons.serverUnavailable", "Server Unavailable"),
|
|
56
56
|
message: S("billing.addons.serverUnavailableMessage", "Unable to load addon details. The server might be down or experiencing issues."),
|
|
57
57
|
onRetry: () => A(),
|
|
58
58
|
showRetry: !0
|
|
59
59
|
})
|
|
60
|
-
}) : D ? /* @__PURE__ */
|
|
60
|
+
}) : D ? /* @__PURE__ */ y("div", {
|
|
61
61
|
className: "space-y-6 p-6",
|
|
62
62
|
children: [
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ v(t, {
|
|
64
64
|
title: D.name,
|
|
65
65
|
description: `${o(D.duration)} addon`
|
|
66
66
|
}),
|
|
67
|
-
/* @__PURE__ */ g
|
|
68
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ v(g, { children: S("billing.addons.detailPurpose", "A full breakdown of this add-on — its price and the extra quotas it grants on top of a subscription. Review it here to decide whether to add it, or (as an admin) to edit what it includes.") }),
|
|
68
|
+
/* @__PURE__ */ y("div", {
|
|
69
69
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ y("div", {
|
|
71
71
|
className: "lg:col-span-2 space-y-6",
|
|
72
|
-
children: [/* @__PURE__ */
|
|
72
|
+
children: [/* @__PURE__ */ y(h, {
|
|
73
73
|
className: "overflow-hidden p-0",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ v("div", {
|
|
75
75
|
className: "p-4 border-b border-border-subtle",
|
|
76
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ v("h2", {
|
|
77
77
|
className: "font-semibold text-text-primary",
|
|
78
78
|
children: S("billing.addons.pricing", "Pricing")
|
|
79
79
|
})
|
|
80
|
-
}), /* @__PURE__ */
|
|
80
|
+
}), /* @__PURE__ */ y("div", {
|
|
81
81
|
className: "p-6",
|
|
82
|
-
children: [/* @__PURE__ */
|
|
82
|
+
children: [/* @__PURE__ */ y("div", {
|
|
83
83
|
className: "flex items-baseline gap-2",
|
|
84
|
-
children: [/* @__PURE__ */
|
|
84
|
+
children: [/* @__PURE__ */ v("span", {
|
|
85
85
|
className: "text-4xl font-bold text-text-primary",
|
|
86
86
|
children: (() => {
|
|
87
87
|
let { price: e, currency: t } = f(D.price, D.currency, D.currencyPrices, E);
|
|
88
88
|
return i(e, t);
|
|
89
89
|
})()
|
|
90
|
-
}), /* @__PURE__ */
|
|
90
|
+
}), /* @__PURE__ */ y("span", {
|
|
91
91
|
className: "text-lg text-text-muted",
|
|
92
92
|
children: ["/ ", a(D.duration)]
|
|
93
93
|
})]
|
|
94
|
-
}), /* @__PURE__ */
|
|
94
|
+
}), /* @__PURE__ */ y("p", {
|
|
95
95
|
className: "text-sm text-text-muted mt-2",
|
|
96
96
|
children: [
|
|
97
97
|
S("billing.addons.billed", "Billed"),
|
|
@@ -100,11 +100,11 @@ var S = () => {
|
|
|
100
100
|
]
|
|
101
101
|
})]
|
|
102
102
|
})]
|
|
103
|
-
}), /* @__PURE__ */
|
|
103
|
+
}), /* @__PURE__ */ y("div", {
|
|
104
104
|
className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
|
|
105
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ v("div", {
|
|
106
106
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
107
|
-
children: /* @__PURE__ */
|
|
107
|
+
children: /* @__PURE__ */ y("h2", {
|
|
108
108
|
className: "font-semibold text-text-primary",
|
|
109
109
|
children: [
|
|
110
110
|
S("billing.addons.includedQuotas", "Included Quotas"),
|
|
@@ -113,44 +113,44 @@ var S = () => {
|
|
|
113
113
|
")"
|
|
114
114
|
]
|
|
115
115
|
})
|
|
116
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ v("div", {
|
|
117
117
|
className: "p-4",
|
|
118
|
-
children: N.length === 0 ? /* @__PURE__ */
|
|
118
|
+
children: N.length === 0 ? /* @__PURE__ */ v("p", {
|
|
119
119
|
className: "text-sm text-text-muted py-4 text-center",
|
|
120
120
|
children: S("billing.addons.noQuotas", "No quotas associated with this addon.")
|
|
121
|
-
}) : /* @__PURE__ */
|
|
121
|
+
}) : /* @__PURE__ */ v("div", {
|
|
122
122
|
className: "space-y-3",
|
|
123
|
-
children: N.map((e) => /* @__PURE__ */
|
|
123
|
+
children: N.map((e) => /* @__PURE__ */ y("div", {
|
|
124
124
|
className: "flex items-center justify-between p-3 border border-border-subtle rounded-lg bg-bg-sunken/20",
|
|
125
|
-
children: [/* @__PURE__ */
|
|
125
|
+
children: [/* @__PURE__ */ y("div", {
|
|
126
126
|
className: "flex items-center gap-3",
|
|
127
|
-
children: [/* @__PURE__ */
|
|
127
|
+
children: [/* @__PURE__ */ v("div", {
|
|
128
128
|
className: "size-8 rounded-full bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
129
|
-
children: /* @__PURE__ */
|
|
129
|
+
children: /* @__PURE__ */ v("svg", {
|
|
130
130
|
className: "size-4 text-text-link",
|
|
131
131
|
fill: "none",
|
|
132
132
|
viewBox: "0 0 24 24",
|
|
133
133
|
stroke: "currentColor",
|
|
134
|
-
children: /* @__PURE__ */
|
|
134
|
+
children: /* @__PURE__ */ v("path", {
|
|
135
135
|
strokeLinecap: "round",
|
|
136
136
|
strokeLinejoin: "round",
|
|
137
137
|
strokeWidth: 2,
|
|
138
138
|
d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
139
139
|
})
|
|
140
140
|
})
|
|
141
|
-
}), /* @__PURE__ */
|
|
141
|
+
}), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
142
142
|
className: "font-medium text-text-primary",
|
|
143
143
|
children: e.name
|
|
144
|
-
}), /* @__PURE__ */
|
|
144
|
+
}), /* @__PURE__ */ y("p", {
|
|
145
145
|
className: "text-xs text-text-muted capitalize",
|
|
146
146
|
children: ["Type: ", e.type]
|
|
147
147
|
})] })]
|
|
148
|
-
}), /* @__PURE__ */
|
|
148
|
+
}), /* @__PURE__ */ y("div", {
|
|
149
149
|
className: "text-right",
|
|
150
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ v("span", {
|
|
151
151
|
className: "text-lg font-semibold text-status-success-text",
|
|
152
152
|
children: e.totalValue.toLocaleString()
|
|
153
|
-
}), /* @__PURE__ */
|
|
153
|
+
}), /* @__PURE__ */ v("p", {
|
|
154
154
|
className: "text-xs text-text-muted",
|
|
155
155
|
children: "total"
|
|
156
156
|
})]
|
|
@@ -159,46 +159,46 @@ var S = () => {
|
|
|
159
159
|
})
|
|
160
160
|
})]
|
|
161
161
|
})]
|
|
162
|
-
}), /* @__PURE__ */
|
|
162
|
+
}), /* @__PURE__ */ y("div", {
|
|
163
163
|
className: "space-y-6",
|
|
164
164
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ y("div", {
|
|
166
166
|
className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ v("div", {
|
|
168
168
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
169
|
-
children: /* @__PURE__ */
|
|
169
|
+
children: /* @__PURE__ */ v("h2", {
|
|
170
170
|
className: "font-semibold text-text-primary",
|
|
171
171
|
children: S("billing.addons.statusTitle", "Status")
|
|
172
172
|
})
|
|
173
|
-
}), /* @__PURE__ */
|
|
173
|
+
}), /* @__PURE__ */ y("div", {
|
|
174
174
|
className: "p-4 space-y-4",
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ y("div", {
|
|
177
177
|
className: "flex items-center justify-between",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ v("span", {
|
|
179
179
|
className: "text-sm text-text-muted",
|
|
180
180
|
children: S("billing.addons.status", "Status")
|
|
181
|
-
}), /* @__PURE__ */
|
|
181
|
+
}), /* @__PURE__ */ v("span", {
|
|
182
182
|
className: `px-2 py-1 text-xs font-medium rounded ${D.isActive ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-muted"}`,
|
|
183
183
|
children: D.isActive ? "Active" : "Inactive"
|
|
184
184
|
})]
|
|
185
185
|
}),
|
|
186
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ y("div", {
|
|
187
187
|
className: "flex items-center justify-between",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ v("span", {
|
|
189
189
|
className: "text-sm text-text-muted",
|
|
190
190
|
children: S("billing.addons.currency", "Currency")
|
|
191
|
-
}), /* @__PURE__ */
|
|
191
|
+
}), /* @__PURE__ */ v("span", {
|
|
192
192
|
className: "text-sm font-medium text-text-primary",
|
|
193
193
|
children: f(D.price, D.currency, D.currencyPrices, E).currency
|
|
194
194
|
})]
|
|
195
195
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ y("div", {
|
|
197
197
|
className: "flex items-center justify-between",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
198
|
+
children: [/* @__PURE__ */ v("span", {
|
|
199
199
|
className: "text-sm text-text-muted",
|
|
200
200
|
children: S("billing.addons.billingLabel", "Billing")
|
|
201
|
-
}), /* @__PURE__ */
|
|
201
|
+
}), /* @__PURE__ */ v("span", {
|
|
202
202
|
className: "text-sm font-medium text-text-primary capitalize",
|
|
203
203
|
children: D.duration
|
|
204
204
|
})]
|
|
@@ -206,22 +206,22 @@ var S = () => {
|
|
|
206
206
|
]
|
|
207
207
|
})]
|
|
208
208
|
}),
|
|
209
|
-
T.canManageAddons && /* @__PURE__ */
|
|
209
|
+
T.canManageAddons && /* @__PURE__ */ y("div", {
|
|
210
210
|
className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
211
|
+
children: [/* @__PURE__ */ v("div", {
|
|
212
212
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
213
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ v("h2", {
|
|
214
214
|
className: "font-semibold text-text-primary",
|
|
215
215
|
children: S("billing.addons.actions", "Actions")
|
|
216
216
|
})
|
|
217
|
-
}), /* @__PURE__ */
|
|
217
|
+
}), /* @__PURE__ */ y("div", {
|
|
218
218
|
className: "p-4 space-y-2",
|
|
219
|
-
children: [/* @__PURE__ */
|
|
219
|
+
children: [/* @__PURE__ */ v("button", {
|
|
220
220
|
type: "button",
|
|
221
221
|
onClick: () => w(`/addons/${D.id}/edit`),
|
|
222
222
|
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",
|
|
223
223
|
children: "Edit Addon"
|
|
224
|
-
}), /* @__PURE__ */
|
|
224
|
+
}), /* @__PURE__ */ v("button", {
|
|
225
225
|
type: "button",
|
|
226
226
|
onClick: async () => {
|
|
227
227
|
try {
|
|
@@ -236,7 +236,7 @@ var S = () => {
|
|
|
236
236
|
})]
|
|
237
237
|
})]
|
|
238
238
|
}),
|
|
239
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ v("button", {
|
|
240
240
|
type: "button",
|
|
241
241
|
onClick: () => w("/addons"),
|
|
242
242
|
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",
|
|
@@ -246,19 +246,19 @@ var S = () => {
|
|
|
246
246
|
})]
|
|
247
247
|
})
|
|
248
248
|
]
|
|
249
|
-
}) : /* @__PURE__ */
|
|
249
|
+
}) : /* @__PURE__ */ v("div", {
|
|
250
250
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
251
|
-
children: /* @__PURE__ */
|
|
251
|
+
children: /* @__PURE__ */ y("div", {
|
|
252
252
|
className: "text-center space-y-4",
|
|
253
253
|
children: [
|
|
254
|
-
/* @__PURE__ */
|
|
254
|
+
/* @__PURE__ */ v("div", {
|
|
255
255
|
className: "size-12 mx-auto rounded-full bg-bg-sunken flex items-center justify-center",
|
|
256
|
-
children: /* @__PURE__ */
|
|
256
|
+
children: /* @__PURE__ */ v("svg", {
|
|
257
257
|
className: "size-6 text-text-muted",
|
|
258
258
|
fill: "none",
|
|
259
259
|
viewBox: "0 0 24 24",
|
|
260
260
|
stroke: "currentColor",
|
|
261
|
-
children: /* @__PURE__ */
|
|
261
|
+
children: /* @__PURE__ */ v("path", {
|
|
262
262
|
strokeLinecap: "round",
|
|
263
263
|
strokeLinejoin: "round",
|
|
264
264
|
strokeWidth: 2,
|
|
@@ -266,15 +266,15 @@ var S = () => {
|
|
|
266
266
|
})
|
|
267
267
|
})
|
|
268
268
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ v("h2", {
|
|
270
270
|
className: "text-lg font-semibold text-text-primary",
|
|
271
271
|
children: S("billing.addons.addonNotFound", "Addon not found")
|
|
272
272
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ v("p", {
|
|
274
274
|
className: "text-sm text-text-muted",
|
|
275
275
|
children: S("billing.addons.addonNotFoundMessage", "The addon you're looking for doesn't exist or has been removed.")
|
|
276
276
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ v("button", {
|
|
278
278
|
type: "button",
|
|
279
279
|
onClick: () => w("/addons"),
|
|
280
280
|
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",
|
|
@@ -282,7 +282,7 @@ var S = () => {
|
|
|
282
282
|
})
|
|
283
283
|
]
|
|
284
284
|
})
|
|
285
|
-
}) : /* @__PURE__ */
|
|
285
|
+
}) : /* @__PURE__ */ v(e, { message: S("billing.addons.noViewPermission", "You don't have permission to view addon details.") });
|
|
286
286
|
};
|
|
287
287
|
export { S as AddonDetailPage };
|
|
288
288
|
|