@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.
- 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 +187 -164
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- 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/components/PayoutDestinationList.d.ts +15 -0
- package/dist/billing/modules/earnings/components/PayoutDestinationList.js +66 -0
- package/dist/billing/modules/earnings/components/PayoutDestinationList.js.map +1 -0
- package/dist/billing/modules/earnings/components/PayoutErrorNotice.d.ts +7 -0
- package/dist/billing/modules/earnings/components/PayoutErrorNotice.js +19 -0
- package/dist/billing/modules/earnings/components/PayoutErrorNotice.js.map +1 -0
- 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 +123 -110
- 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 +215 -157
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/earnings/utils/payoutDestination.d.ts +20 -0
- package/dist/billing/modules/earnings/utils/payoutDestination.js +27 -0
- package/dist/billing/modules/earnings/utils/payoutDestination.js.map +1 -0
- package/dist/billing/modules/earnings/utils/plainPayoutError.d.ts +10 -0
- package/dist/billing/modules/earnings/utils/plainPayoutError.js +50 -0
- package/dist/billing/modules/earnings/utils/plainPayoutError.js.map +1 -0
- 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
|
@@ -10,11 +10,11 @@ import { useAddon as c } from "../hooks/useAddons.js";
|
|
|
10
10
|
import { useAddonPurchaseEligibility as l } from "../hooks/useAddonPurchaseEligibility.js";
|
|
11
11
|
import "../../../shared/utils/index.js";
|
|
12
12
|
import { useMemo as u } from "react";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
13
|
+
import { EmphasisPanel as d, PagePurpose as f } from "@burdenoff/fe-libs/ui";
|
|
14
|
+
import { Lock as p, Minus as m, Plus as h, ShoppingCart as g, Trash2 as _ } from "lucide-react";
|
|
15
|
+
import { useParams as v } from "react-router";
|
|
16
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
17
|
+
import { useI18n as x } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
18
18
|
// src/billing/modules/addons/pages/AddonBrowseDetailPage.tsx
|
|
19
19
|
function S(e) {
|
|
20
20
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -31,63 +31,63 @@ function S(e) {
|
|
|
31
31
|
return Array.from(t.values());
|
|
32
32
|
}
|
|
33
33
|
var C = () => {
|
|
34
|
-
let { t: C } =
|
|
34
|
+
let { t: C } = x(), w = (e, t) => {
|
|
35
35
|
let n = C(e);
|
|
36
36
|
return n === e ? t : n;
|
|
37
|
-
}, { addonId: T } =
|
|
38
|
-
return O ? /* @__PURE__ */
|
|
37
|
+
}, { addonId: T } = v(), E = n(), { addon: D, isLoading: O, error: k, refetch: A } = c(T), { addToCart: j, removeFromCart: M, updateQuantity: N, isInCart: P, getCartItem: F } = s(), I = u(() => S(D?.features || []), [D?.features]), L = D ? P(D.id) : !1, R = (D ? F(D.id) : void 0)?.quantity || 0, z = u(() => D ? [D.id] : [], [D]), { isBlocked: B } = l(z), V = D ? B(D.id) : !1;
|
|
38
|
+
return O ? /* @__PURE__ */ b("div", {
|
|
39
39
|
className: "space-y-6 p-6",
|
|
40
|
-
children: [/* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ y("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ b("div", {
|
|
41
41
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
42
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ y("div", {
|
|
43
43
|
className: "lg:col-span-2 space-y-4",
|
|
44
44
|
children: [
|
|
45
45
|
1,
|
|
46
46
|
2,
|
|
47
47
|
3
|
|
48
|
-
].map((e) => /* @__PURE__ */
|
|
49
|
-
}), /* @__PURE__ */
|
|
48
|
+
].map((e) => /* @__PURE__ */ y("div", { className: "h-24 bg-bg-sunken animate-pulse rounded" }, e))
|
|
49
|
+
}), /* @__PURE__ */ y("div", { className: "h-64 bg-bg-sunken animate-pulse rounded" })]
|
|
50
50
|
})]
|
|
51
|
-
}) : k && o(k) ? /* @__PURE__ */
|
|
51
|
+
}) : k && o(k) ? /* @__PURE__ */ y("div", {
|
|
52
52
|
className: "p-6",
|
|
53
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ y(t, {
|
|
54
54
|
title: w("billing.addons.serverUnavailable", "Server Unavailable"),
|
|
55
55
|
message: w("billing.addons.unableToLoadAddonDetails", "Unable to load addon details."),
|
|
56
56
|
onRetry: () => A(),
|
|
57
57
|
showRetry: !0
|
|
58
58
|
})
|
|
59
|
-
}) : D ? /* @__PURE__ */
|
|
59
|
+
}) : D ? /* @__PURE__ */ b("div", {
|
|
60
60
|
className: "space-y-6 p-6",
|
|
61
61
|
children: [
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ y(e, {
|
|
63
63
|
title: D.name,
|
|
64
64
|
description: `${a(D.duration)} addon`
|
|
65
65
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ y(f, { children: w("billing.addons.browseDetailPurpose", "See exactly what this add-on costs and the extra capacity it gives you on top of your plan before you buy it. Add it to your cart from here when it fits your needs.") }),
|
|
67
|
+
/* @__PURE__ */ b("div", {
|
|
68
68
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ b("div", {
|
|
70
70
|
className: "lg:col-span-2 space-y-6",
|
|
71
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ b(d, {
|
|
72
72
|
className: "overflow-hidden p-0",
|
|
73
|
-
children: [/* @__PURE__ */
|
|
73
|
+
children: [/* @__PURE__ */ y("div", {
|
|
74
74
|
className: "p-4 border-b border-border-subtle",
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ y("h2", {
|
|
76
76
|
className: "font-semibold text-text-primary",
|
|
77
77
|
children: w("billing.addons.pricing", "Pricing")
|
|
78
78
|
})
|
|
79
|
-
}), /* @__PURE__ */
|
|
79
|
+
}), /* @__PURE__ */ b("div", {
|
|
80
80
|
className: "p-6",
|
|
81
|
-
children: [/* @__PURE__ */
|
|
81
|
+
children: [/* @__PURE__ */ b("div", {
|
|
82
82
|
className: "flex items-baseline gap-2",
|
|
83
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ y("span", {
|
|
84
84
|
className: "text-4xl font-bold text-text-primary",
|
|
85
85
|
children: r(D.price, D.currency)
|
|
86
|
-
}), /* @__PURE__ */
|
|
86
|
+
}), /* @__PURE__ */ b("span", {
|
|
87
87
|
className: "text-lg text-text-secondary",
|
|
88
88
|
children: ["/ ", i(D.duration)]
|
|
89
89
|
})]
|
|
90
|
-
}), /* @__PURE__ */
|
|
90
|
+
}), /* @__PURE__ */ b("p", {
|
|
91
91
|
className: "text-sm text-text-secondary mt-2",
|
|
92
92
|
children: [
|
|
93
93
|
w("billing.addons.billed", "Billed"),
|
|
@@ -96,11 +96,11 @@ var C = () => {
|
|
|
96
96
|
]
|
|
97
97
|
})]
|
|
98
98
|
})]
|
|
99
|
-
}), /* @__PURE__ */
|
|
99
|
+
}), /* @__PURE__ */ b("div", {
|
|
100
100
|
className: "border border-border-subtle rounded-lg bg-bg-surface overflow-hidden",
|
|
101
|
-
children: [/* @__PURE__ */
|
|
101
|
+
children: [/* @__PURE__ */ y("div", {
|
|
102
102
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
103
|
-
children: /* @__PURE__ */
|
|
103
|
+
children: /* @__PURE__ */ b("h2", {
|
|
104
104
|
className: "font-semibold text-text-primary",
|
|
105
105
|
children: [
|
|
106
106
|
w("billing.addons.includedQuotas", "Included Quotas"),
|
|
@@ -109,44 +109,44 @@ var C = () => {
|
|
|
109
109
|
")"
|
|
110
110
|
]
|
|
111
111
|
})
|
|
112
|
-
}), /* @__PURE__ */
|
|
112
|
+
}), /* @__PURE__ */ y("div", {
|
|
113
113
|
className: "p-4",
|
|
114
|
-
children: I.length === 0 ? /* @__PURE__ */
|
|
114
|
+
children: I.length === 0 ? /* @__PURE__ */ y("p", {
|
|
115
115
|
className: "text-sm text-text-secondary py-4 text-center",
|
|
116
116
|
children: w("billing.addons.noQuotas", "No quotas associated with this addon.")
|
|
117
|
-
}) : /* @__PURE__ */
|
|
117
|
+
}) : /* @__PURE__ */ y("div", {
|
|
118
118
|
className: "space-y-3",
|
|
119
|
-
children: I.map((e) => /* @__PURE__ */
|
|
119
|
+
children: I.map((e) => /* @__PURE__ */ b("div", {
|
|
120
120
|
className: "flex items-center justify-between p-3 border border-border-subtle rounded-lg bg-bg-sunken/20",
|
|
121
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ b("div", {
|
|
122
122
|
className: "flex items-center gap-3",
|
|
123
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ y("div", {
|
|
124
124
|
className: "size-8 rounded-full bg-action-primary-bg/10 flex items-center justify-center",
|
|
125
|
-
children: /* @__PURE__ */
|
|
125
|
+
children: /* @__PURE__ */ y("svg", {
|
|
126
126
|
className: "size-4 text-primary",
|
|
127
127
|
fill: "none",
|
|
128
128
|
viewBox: "0 0 24 24",
|
|
129
129
|
stroke: "currentColor",
|
|
130
|
-
children: /* @__PURE__ */
|
|
130
|
+
children: /* @__PURE__ */ y("path", {
|
|
131
131
|
strokeLinecap: "round",
|
|
132
132
|
strokeLinejoin: "round",
|
|
133
133
|
strokeWidth: 2,
|
|
134
134
|
d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
135
135
|
})
|
|
136
136
|
})
|
|
137
|
-
}), /* @__PURE__ */
|
|
137
|
+
}), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
138
138
|
className: "font-medium text-text-primary",
|
|
139
139
|
children: e.name
|
|
140
|
-
}), /* @__PURE__ */
|
|
140
|
+
}), /* @__PURE__ */ b("p", {
|
|
141
141
|
className: "text-xs text-text-secondary capitalize",
|
|
142
142
|
children: ["Type: ", e.type]
|
|
143
143
|
})] })]
|
|
144
|
-
}), /* @__PURE__ */
|
|
144
|
+
}), /* @__PURE__ */ b("div", {
|
|
145
145
|
className: "text-right",
|
|
146
|
-
children: [/* @__PURE__ */
|
|
146
|
+
children: [/* @__PURE__ */ y("span", {
|
|
147
147
|
className: "text-lg font-semibold text-status-success-text",
|
|
148
148
|
children: e.totalValue.toLocaleString()
|
|
149
|
-
}), /* @__PURE__ */
|
|
149
|
+
}), /* @__PURE__ */ y("p", {
|
|
150
150
|
className: "text-xs text-text-secondary",
|
|
151
151
|
children: "total"
|
|
152
152
|
})]
|
|
@@ -155,25 +155,25 @@ var C = () => {
|
|
|
155
155
|
})
|
|
156
156
|
})]
|
|
157
157
|
})]
|
|
158
|
-
}), /* @__PURE__ */
|
|
158
|
+
}), /* @__PURE__ */ b("div", {
|
|
159
159
|
className: "space-y-6",
|
|
160
|
-
children: [/* @__PURE__ */
|
|
160
|
+
children: [/* @__PURE__ */ b("div", {
|
|
161
161
|
className: "border border-border-subtle rounded-lg bg-bg-surface overflow-hidden",
|
|
162
|
-
children: [/* @__PURE__ */
|
|
162
|
+
children: [/* @__PURE__ */ y("div", {
|
|
163
163
|
className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
|
|
164
|
-
children: /* @__PURE__ */
|
|
164
|
+
children: /* @__PURE__ */ y("h2", {
|
|
165
165
|
className: "font-semibold text-text-primary",
|
|
166
166
|
children: w("billing.addons.purchase", "Purchase")
|
|
167
167
|
})
|
|
168
|
-
}), /* @__PURE__ */
|
|
168
|
+
}), /* @__PURE__ */ b("div", {
|
|
169
169
|
className: "p-4 space-y-4",
|
|
170
170
|
children: [
|
|
171
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ b("div", {
|
|
172
172
|
className: "flex items-center justify-between",
|
|
173
|
-
children: [/* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ y("span", {
|
|
174
174
|
className: "text-sm text-text-secondary",
|
|
175
175
|
children: w("billing.addons.price", "Price")
|
|
176
|
-
}), /* @__PURE__ */
|
|
176
|
+
}), /* @__PURE__ */ b("span", {
|
|
177
177
|
className: "text-sm font-medium text-text-primary",
|
|
178
178
|
children: [
|
|
179
179
|
r(D.price, D.currency),
|
|
@@ -183,80 +183,80 @@ var C = () => {
|
|
|
183
183
|
]
|
|
184
184
|
})]
|
|
185
185
|
}),
|
|
186
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ b("div", {
|
|
187
187
|
className: "flex items-center justify-between",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ y("span", {
|
|
189
189
|
className: "text-sm text-text-secondary",
|
|
190
190
|
children: w("billing.addons.billingLabel", "Billing")
|
|
191
|
-
}), /* @__PURE__ */
|
|
191
|
+
}), /* @__PURE__ */ y("span", {
|
|
192
192
|
className: "text-sm font-medium text-text-primary capitalize",
|
|
193
193
|
children: D.duration
|
|
194
194
|
})]
|
|
195
195
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ y("div", {
|
|
197
197
|
className: "pt-2 space-y-2",
|
|
198
|
-
children: L ? /* @__PURE__ */
|
|
198
|
+
children: L ? /* @__PURE__ */ b("div", {
|
|
199
199
|
className: "space-y-2",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
200
|
+
children: [/* @__PURE__ */ b("div", {
|
|
201
201
|
className: "flex items-center justify-between gap-2",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
202
|
+
children: [/* @__PURE__ */ b("div", {
|
|
203
203
|
className: "flex items-center gap-1",
|
|
204
204
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ y("button", {
|
|
206
206
|
type: "button",
|
|
207
207
|
onClick: () => N(D.id, R - 1),
|
|
208
208
|
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
209
|
-
children: /* @__PURE__ */
|
|
209
|
+
children: /* @__PURE__ */ y(m, { className: "size-4" })
|
|
210
210
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ y("span", {
|
|
212
212
|
className: "w-10 text-center font-medium",
|
|
213
213
|
children: R
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ y("button", {
|
|
216
216
|
type: "button",
|
|
217
217
|
onClick: () => N(D.id, R + 1),
|
|
218
218
|
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
219
|
-
children: /* @__PURE__ */
|
|
219
|
+
children: /* @__PURE__ */ y(h, { className: "size-4" })
|
|
220
220
|
})
|
|
221
221
|
]
|
|
222
|
-
}), /* @__PURE__ */
|
|
222
|
+
}), /* @__PURE__ */ y("button", {
|
|
223
223
|
type: "button",
|
|
224
224
|
onClick: () => M(D.id),
|
|
225
225
|
className: "p-1.5 rounded text-status-error-text hover:bg-status-error-bg/10 transition-colors",
|
|
226
226
|
title: "Remove from cart",
|
|
227
|
-
children: /* @__PURE__ */ _
|
|
227
|
+
children: /* @__PURE__ */ y(_, { className: "size-4" })
|
|
228
228
|
})]
|
|
229
|
-
}), /* @__PURE__ */
|
|
229
|
+
}), /* @__PURE__ */ y("button", {
|
|
230
230
|
type: "button",
|
|
231
231
|
onClick: () => E("/checkout/addons"),
|
|
232
232
|
className: "w-full px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",
|
|
233
233
|
children: "Proceed to Checkout"
|
|
234
234
|
})]
|
|
235
|
-
}) : V ? /* @__PURE__ */
|
|
235
|
+
}) : V ? /* @__PURE__ */ b("div", {
|
|
236
236
|
className: "space-y-3",
|
|
237
237
|
"data-testid": "addon-paid-plan-required",
|
|
238
|
-
children: [/* @__PURE__ */
|
|
238
|
+
children: [/* @__PURE__ */ b("p", {
|
|
239
239
|
className: "flex items-start gap-2 text-sm text-text-secondary",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ y(p, {
|
|
241
241
|
className: "mt-0.5 size-4 shrink-0 text-status-warning-text",
|
|
242
242
|
"aria-hidden": "true"
|
|
243
243
|
}), w("billing.addons.paidPlanRequiredBody", "Add-ons extend a paid subscription. You are on the Free plan for this product, so upgrade to a paid plan first, then come back to add extra capacity.")]
|
|
244
|
-
}), /* @__PURE__ */
|
|
244
|
+
}), /* @__PURE__ */ y("button", {
|
|
245
245
|
type: "button",
|
|
246
246
|
onClick: () => E("/plans"),
|
|
247
247
|
className: "w-full px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",
|
|
248
248
|
children: w("billing.addons.viewPlans", "View plans")
|
|
249
249
|
})]
|
|
250
|
-
}) : /* @__PURE__ */
|
|
250
|
+
}) : /* @__PURE__ */ b("button", {
|
|
251
251
|
type: "button",
|
|
252
252
|
onClick: () => j(D),
|
|
253
253
|
className: "w-full px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors flex items-center justify-center gap-2",
|
|
254
|
-
children: [/* @__PURE__ */
|
|
254
|
+
children: [/* @__PURE__ */ y(g, { className: "size-4" }), "Add to Cart"]
|
|
255
255
|
})
|
|
256
256
|
})
|
|
257
257
|
]
|
|
258
258
|
})]
|
|
259
|
-
}), /* @__PURE__ */
|
|
259
|
+
}), /* @__PURE__ */ y("button", {
|
|
260
260
|
type: "button",
|
|
261
261
|
onClick: () => E("/addons"),
|
|
262
262
|
className: "w-full px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-md hover:bg-bg-sunken transition-colors",
|
|
@@ -265,20 +265,20 @@ var C = () => {
|
|
|
265
265
|
})]
|
|
266
266
|
})
|
|
267
267
|
]
|
|
268
|
-
}) : /* @__PURE__ */
|
|
268
|
+
}) : /* @__PURE__ */ y("div", {
|
|
269
269
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
270
|
-
children: /* @__PURE__ */
|
|
270
|
+
children: /* @__PURE__ */ b("div", {
|
|
271
271
|
className: "text-center space-y-4",
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ y("h2", {
|
|
274
274
|
className: "text-lg font-semibold text-text-primary",
|
|
275
275
|
children: w("billing.addons.addonNotFound", "Addon not found")
|
|
276
276
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ y("p", {
|
|
278
278
|
className: "text-sm text-text-secondary",
|
|
279
279
|
children: w("billing.addons.addonNotFoundMessage", "The addon you're looking for doesn't exist or has been removed.")
|
|
280
280
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ y("button", {
|
|
282
282
|
type: "button",
|
|
283
283
|
onClick: () => E("/addons"),
|
|
284
284
|
className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",
|