@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
|
@@ -11,12 +11,12 @@ import "../../../shared/ui/index.js";
|
|
|
11
11
|
import { useBillingAccounts as d, usePaginatedSubscriptions as f } from "../hooks/useSubscriptions.js";
|
|
12
12
|
import { useTr as p } from "../../../shared/hooks/useTr.js";
|
|
13
13
|
import { useEffect as m, useRef as h, useState as g } from "react";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { EmphasisPanel as _, IllustratedEmptyState as v, PagePurpose as y } from "@burdenoff/fe-libs/ui";
|
|
15
|
+
import { useSearchParams as b } from "react-router";
|
|
16
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
17
17
|
// src/billing/modules/subscriptions/pages/SubscriptionsListPage.tsx
|
|
18
18
|
var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
19
|
-
let t = p(), o = e(), s = n(), { orgId: c } = r(), [l, u] =
|
|
19
|
+
let t = p(), o = e(), s = n(), { orgId: c } = r(), [l, u] = b(), { billingAccounts: E, isLoading: O } = d(), { selectedAccountId: k, setSelectedAccountId: A } = i({
|
|
20
20
|
orgId: c,
|
|
21
21
|
billingAccounts: E,
|
|
22
22
|
syncFromUrl: !0,
|
|
@@ -32,38 +32,38 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
32
32
|
}, Z = (e) => {
|
|
33
33
|
B(e);
|
|
34
34
|
}, Q = H.filter((e) => N === "all" ? !0 : N === "inactive" ? w.includes(e.status) : e.status === N), $ = O || K;
|
|
35
|
-
return s.canViewSubscriptions ? $ && !Y ? /* @__PURE__ */
|
|
35
|
+
return s.canViewSubscriptions ? $ && !Y ? /* @__PURE__ */ C("div", {
|
|
36
36
|
className: "space-y-6 p-6",
|
|
37
|
-
children: [/* @__PURE__ */
|
|
37
|
+
children: [/* @__PURE__ */ S("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ S("div", {
|
|
38
38
|
className: "space-y-4",
|
|
39
39
|
children: [
|
|
40
40
|
1,
|
|
41
41
|
2,
|
|
42
42
|
3
|
|
43
|
-
].map((e) => /* @__PURE__ */
|
|
43
|
+
].map((e) => /* @__PURE__ */ S("div", {
|
|
44
44
|
className: "border border-border-subtle rounded-lg p-6",
|
|
45
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ C("div", {
|
|
46
46
|
className: "flex items-center gap-4",
|
|
47
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ S("div", { className: "size-12 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ C("div", {
|
|
48
48
|
className: "flex-1 space-y-2",
|
|
49
|
-
children: [/* @__PURE__ */
|
|
49
|
+
children: [/* @__PURE__ */ S("div", { className: "h-5 w-32 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ S("div", { className: "h-4 w-48 bg-bg-sunken animate-pulse rounded" })]
|
|
50
50
|
})]
|
|
51
51
|
})
|
|
52
52
|
}, e))
|
|
53
53
|
})]
|
|
54
|
-
}) : q ? /* @__PURE__ */
|
|
54
|
+
}) : q ? /* @__PURE__ */ S("div", {
|
|
55
55
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ C("div", {
|
|
57
57
|
className: "text-center space-y-4",
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ S("div", {
|
|
60
60
|
className: "size-12 mx-auto rounded-full bg-status-error-bg-subtle flex items-center justify-center",
|
|
61
|
-
children: /* @__PURE__ */
|
|
61
|
+
children: /* @__PURE__ */ S("svg", {
|
|
62
62
|
className: "size-6 text-status-error-text",
|
|
63
63
|
fill: "none",
|
|
64
64
|
viewBox: "0 0 24 24",
|
|
65
65
|
stroke: "currentColor",
|
|
66
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ S("path", {
|
|
67
67
|
strokeLinecap: "round",
|
|
68
68
|
strokeLinejoin: "round",
|
|
69
69
|
strokeWidth: 2,
|
|
@@ -71,15 +71,15 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
71
71
|
})
|
|
72
72
|
})
|
|
73
73
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ S("h2", {
|
|
75
75
|
className: "text-lg font-semibold text-text-primary",
|
|
76
76
|
children: t("billing.subscriptions.failedToLoad", "Failed to load subscriptions")
|
|
77
77
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ S("p", {
|
|
79
79
|
className: "text-sm text-text-secondary",
|
|
80
80
|
children: q.message
|
|
81
81
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ S("button", {
|
|
83
83
|
type: "button",
|
|
84
84
|
onClick: () => J(),
|
|
85
85
|
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,34 +87,34 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
87
87
|
})
|
|
88
88
|
]
|
|
89
89
|
})
|
|
90
|
-
}) : /* @__PURE__ */
|
|
90
|
+
}) : /* @__PURE__ */ C("div", {
|
|
91
91
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
92
92
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ C("div", {
|
|
94
94
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
95
|
-
children: [/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ C("div", { children: [
|
|
96
|
+
/* @__PURE__ */ S("h1", {
|
|
97
97
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
98
98
|
children: t("billing.subscriptions.title", "Subscriptions")
|
|
99
99
|
}),
|
|
100
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ S("p", {
|
|
101
101
|
className: "text-sm text-text-secondary mt-1",
|
|
102
102
|
children: t("billing.subscriptions.subtitle", "Manage your active and past subscriptions")
|
|
103
103
|
}),
|
|
104
|
-
/* @__PURE__ */ y
|
|
104
|
+
/* @__PURE__ */ S(y, {
|
|
105
105
|
className: "mt-3",
|
|
106
106
|
children: t("billing.subscriptions.purpose", "See every plan a billing account is subscribed to — active, canceled and expired — in one place. Use it to review what you are paying for, when each plan renews or ends, upgrade or cancel a subscription, and start a new one by browsing plans.")
|
|
107
107
|
})
|
|
108
|
-
] }), s.canCreateSubscription && /* @__PURE__ */
|
|
108
|
+
] }), s.canCreateSubscription && /* @__PURE__ */ C("button", {
|
|
109
109
|
type: "button",
|
|
110
110
|
onClick: () => o("/plans"),
|
|
111
111
|
className: "inline-flex items-center gap-2 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 duration-200",
|
|
112
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ S("svg", {
|
|
113
113
|
className: "size-4",
|
|
114
114
|
fill: "none",
|
|
115
115
|
viewBox: "0 0 24 24",
|
|
116
116
|
stroke: "currentColor",
|
|
117
|
-
children: /* @__PURE__ */
|
|
117
|
+
children: /* @__PURE__ */ S("path", {
|
|
118
118
|
strokeLinecap: "round",
|
|
119
119
|
strokeLinejoin: "round",
|
|
120
120
|
strokeWidth: 2,
|
|
@@ -123,91 +123,91 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
123
123
|
}), t("billing.subscriptions.newSubscription", "New Subscription")]
|
|
124
124
|
})]
|
|
125
125
|
}),
|
|
126
|
-
E.length > 1 && /* @__PURE__ */
|
|
126
|
+
E.length > 1 && /* @__PURE__ */ C("div", {
|
|
127
127
|
className: "relative",
|
|
128
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ C("button", {
|
|
129
129
|
type: "button",
|
|
130
130
|
onClick: () => M(!j),
|
|
131
131
|
className: "w-full sm:w-auto flex items-center justify-between gap-3 px-4 py-3 border border-border-seam rounded-card bg-bg-surface hover:bg-bg-sunken hover:border-border-strong transition-all duration-200",
|
|
132
|
-
children: [/* @__PURE__ */
|
|
132
|
+
children: [/* @__PURE__ */ C("div", {
|
|
133
133
|
className: "flex items-center gap-3",
|
|
134
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ S("div", {
|
|
135
135
|
className: "size-9 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
136
|
-
children: /* @__PURE__ */
|
|
136
|
+
children: /* @__PURE__ */ S("svg", {
|
|
137
137
|
className: "size-4 text-text-link",
|
|
138
138
|
fill: "none",
|
|
139
139
|
viewBox: "0 0 24 24",
|
|
140
140
|
stroke: "currentColor",
|
|
141
|
-
children: /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ S("path", {
|
|
142
142
|
strokeLinecap: "round",
|
|
143
143
|
strokeLinejoin: "round",
|
|
144
144
|
strokeWidth: 2,
|
|
145
145
|
d: "M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"
|
|
146
146
|
})
|
|
147
147
|
})
|
|
148
|
-
}), /* @__PURE__ */
|
|
148
|
+
}), /* @__PURE__ */ C("div", {
|
|
149
149
|
className: "text-left",
|
|
150
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ S("p", {
|
|
151
151
|
className: "text-sm font-medium text-text-primary",
|
|
152
152
|
children: Y?.name || t("billing.subscriptions.selectAccount", "Select Account")
|
|
153
|
-
}), /* @__PURE__ */
|
|
153
|
+
}), /* @__PURE__ */ S("p", {
|
|
154
154
|
className: "text-xs text-text-secondary",
|
|
155
155
|
children: Y?.email
|
|
156
156
|
})]
|
|
157
157
|
})]
|
|
158
|
-
}), /* @__PURE__ */
|
|
158
|
+
}), /* @__PURE__ */ S("svg", {
|
|
159
159
|
className: `size-4 text-text-secondary transition-transform ${j ? "rotate-180" : ""}`,
|
|
160
160
|
fill: "none",
|
|
161
161
|
viewBox: "0 0 24 24",
|
|
162
162
|
stroke: "currentColor",
|
|
163
|
-
children: /* @__PURE__ */
|
|
163
|
+
children: /* @__PURE__ */ S("path", {
|
|
164
164
|
strokeLinecap: "round",
|
|
165
165
|
strokeLinejoin: "round",
|
|
166
166
|
strokeWidth: 2,
|
|
167
167
|
d: "M19 9l-7 7-7-7"
|
|
168
168
|
})
|
|
169
169
|
})]
|
|
170
|
-
}), j && /* @__PURE__ */
|
|
170
|
+
}), j && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
|
|
171
171
|
className: "fixed inset-0 z-10",
|
|
172
172
|
onClick: () => M(!1)
|
|
173
|
-
}), /* @__PURE__ */
|
|
173
|
+
}), /* @__PURE__ */ S("div", {
|
|
174
174
|
className: "absolute top-full left-0 right-0 sm:right-auto mt-1 w-full sm:w-80 bg-bg-elevated border border-border-seam rounded-card shadow-elevation-3 z-20 py-1 max-h-60 overflow-y-auto",
|
|
175
|
-
children: E.map((e) => /* @__PURE__ */
|
|
175
|
+
children: E.map((e) => /* @__PURE__ */ C("button", {
|
|
176
176
|
type: "button",
|
|
177
177
|
onClick: () => X(e),
|
|
178
178
|
className: "w-full flex items-center justify-between gap-3 px-4 py-3 hover:bg-bg-sunken transition-colors",
|
|
179
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ C("div", {
|
|
180
180
|
className: "flex items-center gap-3 min-w-0",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ S("div", {
|
|
182
182
|
className: "size-9 rounded-lg bg-bg-sunken flex items-center justify-center flex-shrink-0",
|
|
183
|
-
children: /* @__PURE__ */
|
|
183
|
+
children: /* @__PURE__ */ S("svg", {
|
|
184
184
|
className: "size-4 text-text-secondary",
|
|
185
185
|
fill: "none",
|
|
186
186
|
viewBox: "0 0 24 24",
|
|
187
187
|
stroke: "currentColor",
|
|
188
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ S("path", {
|
|
189
189
|
strokeLinecap: "round",
|
|
190
190
|
strokeLinejoin: "round",
|
|
191
191
|
strokeWidth: 2,
|
|
192
192
|
d: "M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"
|
|
193
193
|
})
|
|
194
194
|
})
|
|
195
|
-
}), /* @__PURE__ */
|
|
195
|
+
}), /* @__PURE__ */ C("div", {
|
|
196
196
|
className: "text-left min-w-0",
|
|
197
|
-
children: [/* @__PURE__ */
|
|
197
|
+
children: [/* @__PURE__ */ S("p", {
|
|
198
198
|
className: "text-sm font-medium text-text-primary truncate",
|
|
199
199
|
children: e.name
|
|
200
|
-
}), /* @__PURE__ */
|
|
200
|
+
}), /* @__PURE__ */ S("p", {
|
|
201
201
|
className: "text-xs text-text-secondary truncate",
|
|
202
202
|
children: e.email
|
|
203
203
|
})]
|
|
204
204
|
})]
|
|
205
|
-
}), Y?.id === e.id && /* @__PURE__ */
|
|
205
|
+
}), Y?.id === e.id && /* @__PURE__ */ S("svg", {
|
|
206
206
|
className: "size-4 text-text-link flex-shrink-0",
|
|
207
207
|
fill: "none",
|
|
208
208
|
viewBox: "0 0 24 24",
|
|
209
209
|
stroke: "currentColor",
|
|
210
|
-
children: /* @__PURE__ */
|
|
210
|
+
children: /* @__PURE__ */ S("path", {
|
|
211
211
|
strokeLinecap: "round",
|
|
212
212
|
strokeLinejoin: "round",
|
|
213
213
|
strokeWidth: 2,
|
|
@@ -217,29 +217,29 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
217
217
|
}, e.id))
|
|
218
218
|
})] })]
|
|
219
219
|
}),
|
|
220
|
-
Y && /* @__PURE__ */
|
|
220
|
+
Y && /* @__PURE__ */ S(_, {
|
|
221
221
|
className: "p-5",
|
|
222
|
-
children: /* @__PURE__ */
|
|
222
|
+
children: /* @__PURE__ */ C("div", {
|
|
223
223
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
224
224
|
children: [
|
|
225
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
226
226
|
className: "text-sm text-text-secondary",
|
|
227
227
|
children: t("billing.subscriptions.account", "Account")
|
|
228
|
-
}), /* @__PURE__ */
|
|
228
|
+
}), /* @__PURE__ */ S("p", {
|
|
229
229
|
className: "text-lg font-semibold text-text-primary mt-1",
|
|
230
230
|
children: Y.name
|
|
231
231
|
})] }),
|
|
232
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
233
233
|
className: "text-sm text-text-secondary",
|
|
234
234
|
children: t("billing.subscriptions.activeSubscriptions", "Active Subscriptions")
|
|
235
|
-
}), /* @__PURE__ */
|
|
235
|
+
}), /* @__PURE__ */ S("p", {
|
|
236
236
|
className: "text-lg font-semibold tabular-nums text-status-success-text mt-1",
|
|
237
237
|
children: U.length
|
|
238
238
|
})] }),
|
|
239
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
240
240
|
className: "text-sm text-text-secondary",
|
|
241
241
|
children: t("billing.subscriptions.creditBalance", "Credit Balance")
|
|
242
|
-
}), /* @__PURE__ */
|
|
242
|
+
}), /* @__PURE__ */ C("p", {
|
|
243
243
|
className: "text-lg font-semibold tabular-nums text-text-primary mt-1",
|
|
244
244
|
children: [
|
|
245
245
|
(Y.creditAmount || 0).toLocaleString(),
|
|
@@ -250,37 +250,37 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
250
250
|
]
|
|
251
251
|
})
|
|
252
252
|
}),
|
|
253
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ C("div", {
|
|
254
254
|
className: "flex flex-col sm:flex-row flex-wrap items-stretch sm:items-center gap-3 sm:gap-4 pb-4 border-b border-border-subtle",
|
|
255
255
|
children: [
|
|
256
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ S("div", {
|
|
257
257
|
className: "inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken flex-wrap",
|
|
258
258
|
children: [
|
|
259
259
|
"all",
|
|
260
260
|
"active",
|
|
261
261
|
"canceled",
|
|
262
262
|
"inactive"
|
|
263
|
-
].map((e) => /* @__PURE__ */
|
|
263
|
+
].map((e) => /* @__PURE__ */ S("button", {
|
|
264
264
|
type: "button",
|
|
265
265
|
onClick: () => P(e),
|
|
266
266
|
className: `px-3 py-1.5 text-sm font-medium rounded-button transition-colors capitalize ${N === e ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
|
|
267
267
|
children: e === "all" ? t("billing.subscriptions.statusAll", "All") : e === "active" ? t("billing.subscriptions.statusActive", "Active") : e === "canceled" ? t("billing.subscriptions.statusCanceled", "Canceled") : t("billing.subscriptions.statusInactive", "Inactive")
|
|
268
268
|
}, e))
|
|
269
269
|
}),
|
|
270
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ C("div", {
|
|
271
271
|
className: "relative flex-1 min-w-0 w-full sm:max-w-md",
|
|
272
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ S("svg", {
|
|
273
273
|
className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary",
|
|
274
274
|
fill: "none",
|
|
275
275
|
viewBox: "0 0 24 24",
|
|
276
276
|
stroke: "currentColor",
|
|
277
|
-
children: /* @__PURE__ */
|
|
277
|
+
children: /* @__PURE__ */ S("path", {
|
|
278
278
|
strokeLinecap: "round",
|
|
279
279
|
strokeLinejoin: "round",
|
|
280
280
|
strokeWidth: 2,
|
|
281
281
|
d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
282
282
|
})
|
|
283
|
-
}), /* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ S("input", {
|
|
284
284
|
type: "text",
|
|
285
285
|
placeholder: t("billing.subscriptions.searchPlaceholder", "Search subscriptions..."),
|
|
286
286
|
value: F,
|
|
@@ -288,7 +288,7 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
288
288
|
className: "w-full pl-[3.25rem] pr-4 py-2 text-sm border border-border-subtle rounded-button bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-transparent"
|
|
289
289
|
})]
|
|
290
290
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ S("div", {
|
|
292
292
|
className: "text-sm text-text-secondary",
|
|
293
293
|
children: t("billing.subscriptions.totalCount", "{{count}} subscription{{plural}} total", {
|
|
294
294
|
count: W,
|
|
@@ -297,38 +297,38 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
297
297
|
})
|
|
298
298
|
]
|
|
299
299
|
}),
|
|
300
|
-
Q.length === 0 ? /* @__PURE__ */
|
|
300
|
+
Q.length === 0 ? /* @__PURE__ */ S(v, {
|
|
301
301
|
illustration: N !== "all" || L ? "empty-search" : "empty-data",
|
|
302
302
|
title: t("billing.subscriptions.noSubscriptionsFound", "No subscriptions found"),
|
|
303
303
|
description: N !== "all" || L ? t("billing.subscriptions.noSubscriptionsMatchFilters", "No subscriptions match your filters.") : t("billing.subscriptions.noSubscriptionsYet", "You don't have any subscriptions yet."),
|
|
304
|
-
action: s.canCreateSubscription && N === "all" && !L ? /* @__PURE__ */
|
|
304
|
+
action: s.canCreateSubscription && N === "all" && !L ? /* @__PURE__ */ S("button", {
|
|
305
305
|
type: "button",
|
|
306
306
|
onClick: () => o("/plans"),
|
|
307
307
|
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 duration-200",
|
|
308
308
|
children: t("billing.subscriptions.browsePlans", "Browse Plans")
|
|
309
309
|
}) : void 0
|
|
310
|
-
}) : /* @__PURE__ */
|
|
310
|
+
}) : /* @__PURE__ */ S("div", {
|
|
311
311
|
className: "space-y-4",
|
|
312
|
-
children: Q.map((e) => /* @__PURE__ */
|
|
312
|
+
children: Q.map((e) => /* @__PURE__ */ S(D, {
|
|
313
313
|
subscription: e,
|
|
314
314
|
onView: () => o(a(`/subscriptions/${e.id}`, e.billingAccountId)),
|
|
315
315
|
canCancel: s.canCancelSubscription
|
|
316
316
|
}, e.id))
|
|
317
317
|
}),
|
|
318
|
-
G > 1 && /* @__PURE__ */
|
|
318
|
+
G > 1 && /* @__PURE__ */ C("div", {
|
|
319
319
|
className: "flex items-center justify-center gap-2 pt-4",
|
|
320
320
|
children: [
|
|
321
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ S("button", {
|
|
322
322
|
type: "button",
|
|
323
323
|
onClick: () => Z(z - 1),
|
|
324
324
|
disabled: z === 1,
|
|
325
325
|
className: "px-3 py-1.5 text-sm border border-border-subtle rounded-button disabled:opacity-50 disabled:cursor-not-allowed hover:bg-bg-sunken transition-colors",
|
|
326
|
-
children: /* @__PURE__ */
|
|
326
|
+
children: /* @__PURE__ */ S("svg", {
|
|
327
327
|
className: "size-4",
|
|
328
328
|
fill: "none",
|
|
329
329
|
viewBox: "0 0 24 24",
|
|
330
330
|
stroke: "currentColor",
|
|
331
|
-
children: /* @__PURE__ */
|
|
331
|
+
children: /* @__PURE__ */ S("path", {
|
|
332
332
|
strokeLinecap: "round",
|
|
333
333
|
strokeLinejoin: "round",
|
|
334
334
|
strokeWidth: 2,
|
|
@@ -336,14 +336,14 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
336
336
|
})
|
|
337
337
|
})
|
|
338
338
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ S("div", {
|
|
340
340
|
className: "flex items-center gap-1",
|
|
341
341
|
children: Array.from({ length: G }, (e, t) => t + 1).map((e) => {
|
|
342
342
|
let t = e === 1 || e === G || Math.abs(e - z) <= 1, n = e === z - 2 && z > 3, r = e === z + 2 && z < G - 2;
|
|
343
|
-
return n || r ? /* @__PURE__ */
|
|
343
|
+
return n || r ? /* @__PURE__ */ S("span", {
|
|
344
344
|
className: "px-2 text-text-secondary",
|
|
345
345
|
children: "..."
|
|
346
|
-
}, e) : t ? /* @__PURE__ */
|
|
346
|
+
}, e) : t ? /* @__PURE__ */ S("button", {
|
|
347
347
|
type: "button",
|
|
348
348
|
onClick: () => Z(e),
|
|
349
349
|
className: `px-3 py-1.5 text-sm rounded-button transition-colors ${e === z ? "bg-action-primary-bg text-action-primary-text" : "border border-border-subtle hover:bg-bg-sunken"}`,
|
|
@@ -351,17 +351,17 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
351
351
|
}, e) : null;
|
|
352
352
|
})
|
|
353
353
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ S("button", {
|
|
355
355
|
type: "button",
|
|
356
356
|
onClick: () => Z(z + 1),
|
|
357
357
|
disabled: z === G,
|
|
358
358
|
className: "px-3 py-1.5 text-sm border border-border-subtle rounded-button disabled:opacity-50 disabled:cursor-not-allowed hover:bg-bg-sunken transition-colors",
|
|
359
|
-
children: /* @__PURE__ */
|
|
359
|
+
children: /* @__PURE__ */ S("svg", {
|
|
360
360
|
className: "size-4",
|
|
361
361
|
fill: "none",
|
|
362
362
|
viewBox: "0 0 24 24",
|
|
363
363
|
stroke: "currentColor",
|
|
364
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ S("path", {
|
|
365
365
|
strokeLinecap: "round",
|
|
366
366
|
strokeLinejoin: "round",
|
|
367
367
|
strokeWidth: 2,
|
|
@@ -372,19 +372,19 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
372
372
|
]
|
|
373
373
|
})
|
|
374
374
|
]
|
|
375
|
-
}) : /* @__PURE__ */
|
|
375
|
+
}) : /* @__PURE__ */ S("div", {
|
|
376
376
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
377
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ C("div", {
|
|
378
378
|
className: "text-center space-y-2",
|
|
379
379
|
children: [
|
|
380
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ S("div", {
|
|
381
381
|
className: "size-12 mx-auto rounded-full bg-bg-sunken flex items-center justify-center",
|
|
382
|
-
children: /* @__PURE__ */
|
|
382
|
+
children: /* @__PURE__ */ S("svg", {
|
|
383
383
|
className: "size-6 text-text-secondary",
|
|
384
384
|
fill: "none",
|
|
385
385
|
viewBox: "0 0 24 24",
|
|
386
386
|
stroke: "currentColor",
|
|
387
|
-
children: /* @__PURE__ */
|
|
387
|
+
children: /* @__PURE__ */ S("path", {
|
|
388
388
|
strokeLinecap: "round",
|
|
389
389
|
strokeLinejoin: "round",
|
|
390
390
|
strokeWidth: 2,
|
|
@@ -392,11 +392,11 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
392
392
|
})
|
|
393
393
|
})
|
|
394
394
|
}),
|
|
395
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ S("h2", {
|
|
396
396
|
className: "text-lg font-semibold text-text-primary",
|
|
397
397
|
children: t("billing.accessDenied.title", "Access Denied")
|
|
398
398
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ S("p", {
|
|
400
400
|
className: "text-sm text-text-secondary max-w-sm",
|
|
401
401
|
children: t("billing.subscriptions.noViewPermission", "You don't have permission to view subscriptions.")
|
|
402
402
|
})
|
|
@@ -405,23 +405,23 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
405
405
|
});
|
|
406
406
|
}, D = ({ subscription: e, onView: n, canCancel: r }) => {
|
|
407
407
|
let i = p(), a = e.plan, d = u(e.status), f = e.status === "active", m = new Date(e.endDate), h = /* @__PURE__ */ new Date(), g = Math.max(0, Math.ceil((m.getTime() - h.getTime()) / 864e5));
|
|
408
|
-
return /* @__PURE__ */
|
|
408
|
+
return /* @__PURE__ */ S("div", {
|
|
409
409
|
className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 hover:border-border-strong hover:shadow-elevation-2 transition-all duration-200 cursor-pointer",
|
|
410
410
|
onClick: n,
|
|
411
|
-
children: /* @__PURE__ */
|
|
411
|
+
children: /* @__PURE__ */ C("div", {
|
|
412
412
|
className: "p-5",
|
|
413
413
|
children: [
|
|
414
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ C("div", {
|
|
415
415
|
className: "flex flex-col sm:flex-row sm:items-center gap-4",
|
|
416
416
|
children: [
|
|
417
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ S("div", {
|
|
418
418
|
className: "size-12 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center shrink-0",
|
|
419
|
-
children: /* @__PURE__ */
|
|
419
|
+
children: /* @__PURE__ */ S("svg", {
|
|
420
420
|
className: "size-6 text-text-link",
|
|
421
421
|
fill: "none",
|
|
422
422
|
viewBox: "0 0 24 24",
|
|
423
423
|
stroke: "currentColor",
|
|
424
|
-
children: /* @__PURE__ */
|
|
424
|
+
children: /* @__PURE__ */ S("path", {
|
|
425
425
|
strokeLinecap: "round",
|
|
426
426
|
strokeLinejoin: "round",
|
|
427
427
|
strokeWidth: 2,
|
|
@@ -429,51 +429,51 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
429
429
|
})
|
|
430
430
|
})
|
|
431
431
|
}),
|
|
432
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ C("div", {
|
|
433
433
|
className: "flex-1 min-w-0",
|
|
434
|
-
children: [/* @__PURE__ */
|
|
434
|
+
children: [/* @__PURE__ */ C("div", {
|
|
435
435
|
className: "flex items-center gap-2 flex-wrap",
|
|
436
|
-
children: [/* @__PURE__ */
|
|
436
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
437
437
|
className: "font-semibold text-text-primary",
|
|
438
438
|
children: a?.name || i("billing.common.unknownPlan", "Unknown Plan")
|
|
439
|
-
}), /* @__PURE__ */
|
|
439
|
+
}), /* @__PURE__ */ S(t, {
|
|
440
440
|
status: d,
|
|
441
441
|
dot: !0,
|
|
442
442
|
pulse: f,
|
|
443
443
|
children: l(e.status)
|
|
444
444
|
})]
|
|
445
|
-
}), /* @__PURE__ */
|
|
445
|
+
}), /* @__PURE__ */ C("div", {
|
|
446
446
|
className: "flex items-center gap-4 mt-1 text-sm text-text-secondary",
|
|
447
447
|
children: [
|
|
448
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ C("span", { children: [
|
|
449
449
|
a ? o(a.price, a.currency) : "—",
|
|
450
450
|
" /",
|
|
451
451
|
" ",
|
|
452
452
|
a ? c(a.duration) : "—"
|
|
453
453
|
] }),
|
|
454
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ S("span", {
|
|
455
455
|
className: "hidden sm:inline",
|
|
456
456
|
children: "•"
|
|
457
457
|
}),
|
|
458
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ S("span", {
|
|
459
459
|
className: "hidden sm:inline",
|
|
460
460
|
children: i("billing.subscriptions.started", "Started {{date}}", { date: s(e.startDate, "short") })
|
|
461
461
|
})
|
|
462
462
|
]
|
|
463
463
|
})]
|
|
464
464
|
}),
|
|
465
|
-
/* @__PURE__ */
|
|
465
|
+
/* @__PURE__ */ C("div", {
|
|
466
466
|
className: "flex items-center gap-4",
|
|
467
|
-
children: [f && /* @__PURE__ */
|
|
467
|
+
children: [f && /* @__PURE__ */ C("div", {
|
|
468
468
|
className: "text-right",
|
|
469
|
-
children: [/* @__PURE__ */
|
|
469
|
+
children: [/* @__PURE__ */ S("p", {
|
|
470
470
|
className: "text-sm font-medium text-text-primary",
|
|
471
471
|
children: i("billing.subscriptions.daysRemaining", "{{count}} days", { count: g })
|
|
472
|
-
}), /* @__PURE__ */
|
|
472
|
+
}), /* @__PURE__ */ S("p", {
|
|
473
473
|
className: "text-xs text-text-secondary",
|
|
474
474
|
children: i("billing.subscriptions.remaining", "remaining")
|
|
475
475
|
})]
|
|
476
|
-
}), /* @__PURE__ */
|
|
476
|
+
}), /* @__PURE__ */ S("button", {
|
|
477
477
|
type: "button",
|
|
478
478
|
onClick: (e) => {
|
|
479
479
|
e.stopPropagation(), n();
|
|
@@ -484,9 +484,9 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
484
484
|
})
|
|
485
485
|
]
|
|
486
486
|
}),
|
|
487
|
-
e.addonSubscriptions && e.addonSubscriptions.length > 0 && /* @__PURE__ */
|
|
487
|
+
e.addonSubscriptions && e.addonSubscriptions.length > 0 && /* @__PURE__ */ S("div", {
|
|
488
488
|
className: "mt-4 pt-4 border-t border-border-subtle",
|
|
489
|
-
children: /* @__PURE__ */
|
|
489
|
+
children: /* @__PURE__ */ S("p", {
|
|
490
490
|
className: "text-sm text-text-secondary",
|
|
491
491
|
children: i("billing.subscriptions.addonsAttached", "{{count}} addon{{plural}} attached", {
|
|
492
492
|
count: e.addonSubscriptions.length,
|
|
@@ -494,11 +494,11 @@ var w = ["expired", "upgraded"], T = 10, E = () => {
|
|
|
494
494
|
})
|
|
495
495
|
})
|
|
496
496
|
}),
|
|
497
|
-
e.canceledAt && /* @__PURE__ */
|
|
497
|
+
e.canceledAt && /* @__PURE__ */ S("div", {
|
|
498
498
|
className: "mt-4 pt-4 border-t border-border-subtle",
|
|
499
|
-
children: /* @__PURE__ */
|
|
499
|
+
children: /* @__PURE__ */ C("p", {
|
|
500
500
|
className: "text-sm text-text-secondary",
|
|
501
|
-
children: [i("billing.subscriptions.canceledOn", "Canceled on {{date}}", { date: s(e.canceledAt) }), e.cancellationReason && /* @__PURE__ */
|
|
501
|
+
children: [i("billing.subscriptions.canceledOn", "Canceled on {{date}}", { date: s(e.canceledAt) }), e.cancellationReason && /* @__PURE__ */ C("span", { children: [": ", e.cancellationReason] })]
|
|
502
502
|
})
|
|
503
503
|
})
|
|
504
504
|
]
|