@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
|
@@ -8,15 +8,15 @@ import "../../../shared/components/index.js";
|
|
|
8
8
|
import { usePlan as u } from "../hooks/usePlans.js";
|
|
9
9
|
import "../../../shared/utils/index.js";
|
|
10
10
|
import { useMemo as d } from "react";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { EmphasisPanel as f, PagePurpose as p, ShowMore as m } from "@burdenoff/fe-libs/ui";
|
|
12
|
+
import { useParams as h } from "react-router";
|
|
13
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
14
|
+
import { useI18n as y } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
15
15
|
// src/billing/modules/plans/pages/PlanBrowseDetailPage.tsx
|
|
16
|
-
var b = ({ when: e, collapsedHeight: t, children: n }) => e ? /* @__PURE__ */ m
|
|
16
|
+
var b = ({ when: e, collapsedHeight: t, children: n }) => e ? /* @__PURE__ */ _(m, {
|
|
17
17
|
collapsedHeight: t,
|
|
18
18
|
children: n
|
|
19
|
-
}) : /* @__PURE__ */
|
|
19
|
+
}) : /* @__PURE__ */ _(g, { children: n });
|
|
20
20
|
function x(e) {
|
|
21
21
|
let t = /* @__PURE__ */ new Map();
|
|
22
22
|
for (let n of e) {
|
|
@@ -35,115 +35,115 @@ function x(e) {
|
|
|
35
35
|
return Array.from(t.values());
|
|
36
36
|
}
|
|
37
37
|
var S = () => {
|
|
38
|
-
let { t: s } =
|
|
38
|
+
let { t: s } = y(), c = (e, t) => {
|
|
39
39
|
let n = s(e);
|
|
40
40
|
return n === e ? t : n;
|
|
41
|
-
}, { planId: l } =
|
|
42
|
-
return S ? /* @__PURE__ */
|
|
41
|
+
}, { planId: l } = h(), m = t(), { plan: g, isLoading: S, error: C, refetch: w } = u(l), T = d(() => x(g?.features || []), [g?.features]);
|
|
42
|
+
return S ? /* @__PURE__ */ v("div", {
|
|
43
43
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ v("div", {
|
|
45
45
|
className: "flex items-center gap-4",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
47
|
-
}), /* @__PURE__ */
|
|
46
|
+
children: [/* @__PURE__ */ _("div", { className: "size-10 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ _("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" })]
|
|
47
|
+
}), /* @__PURE__ */ v("div", {
|
|
48
48
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
49
|
-
children: [/* @__PURE__ */
|
|
49
|
+
children: [/* @__PURE__ */ _("div", {
|
|
50
50
|
className: "lg:col-span-2 space-y-6",
|
|
51
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ v("div", {
|
|
52
52
|
className: "border border-border-subtle rounded-lg p-6 space-y-4",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
53
|
+
children: [/* @__PURE__ */ _("div", { className: "h-6 w-32 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ _("div", { className: "h-4 w-full bg-bg-sunken animate-pulse rounded" })]
|
|
54
54
|
})
|
|
55
|
-
}), /* @__PURE__ */
|
|
55
|
+
}), /* @__PURE__ */ v("div", {
|
|
56
56
|
className: "border border-border-subtle rounded-lg p-6 space-y-4",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ _("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ _("div", { className: "h-10 w-full bg-bg-sunken animate-pulse rounded" })]
|
|
58
58
|
})]
|
|
59
59
|
})]
|
|
60
|
-
}) : C && o(C) ? /* @__PURE__ */
|
|
60
|
+
}) : C && o(C) ? /* @__PURE__ */ _("div", {
|
|
61
61
|
className: "p-6",
|
|
62
|
-
children: /* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ _(e, {
|
|
63
63
|
title: c("billing.plans.serverUnavailable", "Server Unavailable"),
|
|
64
64
|
message: c("billing.plans.unableToLoadPlanDetails", "Unable to load plan details."),
|
|
65
65
|
onRetry: () => w(),
|
|
66
66
|
showRetry: !0
|
|
67
67
|
})
|
|
68
|
-
}) :
|
|
68
|
+
}) : g ? /* @__PURE__ */ v("div", {
|
|
69
69
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ v("div", {
|
|
71
71
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
72
|
-
children: [/* @__PURE__ */
|
|
72
|
+
children: [/* @__PURE__ */ v("div", {
|
|
73
73
|
className: "flex items-start gap-4",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ _("button", {
|
|
75
75
|
type: "button",
|
|
76
|
-
onClick: () =>
|
|
76
|
+
onClick: () => m("/plans"),
|
|
77
77
|
className: "p-2 -ml-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-button transition-colors",
|
|
78
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ _("svg", {
|
|
79
79
|
className: "size-5",
|
|
80
80
|
fill: "none",
|
|
81
81
|
viewBox: "0 0 24 24",
|
|
82
82
|
stroke: "currentColor",
|
|
83
|
-
children: /* @__PURE__ */
|
|
83
|
+
children: /* @__PURE__ */ _("path", {
|
|
84
84
|
strokeLinecap: "round",
|
|
85
85
|
strokeLinejoin: "round",
|
|
86
86
|
strokeWidth: 2,
|
|
87
87
|
d: "M15 19l-7-7 7-7"
|
|
88
88
|
})
|
|
89
89
|
})
|
|
90
|
-
}), /* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
90
|
+
}), /* @__PURE__ */ v("div", { children: [
|
|
91
|
+
/* @__PURE__ */ _("h1", {
|
|
92
92
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
93
|
-
children:
|
|
93
|
+
children: g.name
|
|
94
94
|
}),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ v("p", {
|
|
96
96
|
className: "text-sm text-text-secondary mt-1",
|
|
97
|
-
children: [i(
|
|
97
|
+
children: [i(g.duration), " billing plan"]
|
|
98
98
|
}),
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ _(p, {
|
|
100
100
|
className: "mt-3",
|
|
101
101
|
children: c("billing.plans.browseDetailPurpose", "Everything this plan includes — its price, billing period and the full list of features and quotas — so you can confirm it fits before subscribing. Hit Subscribe when you are ready to check out.")
|
|
102
102
|
})
|
|
103
103
|
] })]
|
|
104
|
-
}), /* @__PURE__ */
|
|
104
|
+
}), /* @__PURE__ */ _("button", {
|
|
105
105
|
type: "button",
|
|
106
|
-
onClick: () =>
|
|
106
|
+
onClick: () => m(`/checkout/${g.id}`),
|
|
107
107
|
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",
|
|
108
108
|
children: "Subscribe to Plan"
|
|
109
109
|
})]
|
|
110
|
-
}), /* @__PURE__ */
|
|
110
|
+
}), /* @__PURE__ */ v("div", {
|
|
111
111
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
112
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ v("div", {
|
|
113
113
|
className: "lg:col-span-2 space-y-6",
|
|
114
|
-
children: [/* @__PURE__ */
|
|
114
|
+
children: [/* @__PURE__ */ v(f, {
|
|
115
115
|
className: "overflow-hidden p-0",
|
|
116
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ _("div", {
|
|
117
117
|
className: "p-6 border-b border-border-seam",
|
|
118
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ _("h2", {
|
|
119
119
|
className: "text-lg font-semibold text-text-primary",
|
|
120
120
|
children: c("billing.plans.pricing", "Pricing")
|
|
121
121
|
})
|
|
122
|
-
}), /* @__PURE__ */
|
|
122
|
+
}), /* @__PURE__ */ v("div", {
|
|
123
123
|
className: "p-6",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
124
|
+
children: [/* @__PURE__ */ v("div", {
|
|
125
125
|
className: "flex items-baseline gap-1",
|
|
126
|
-
children: [/* @__PURE__ */
|
|
126
|
+
children: [/* @__PURE__ */ _("span", {
|
|
127
127
|
className: "text-4xl font-bold text-text-primary",
|
|
128
|
-
children: n(
|
|
129
|
-
}), /* @__PURE__ */
|
|
128
|
+
children: n(g.price, g.currency)
|
|
129
|
+
}), /* @__PURE__ */ v("span", {
|
|
130
130
|
className: "text-lg text-text-secondary",
|
|
131
|
-
children: ["/ ", r(
|
|
131
|
+
children: ["/ ", r(g.duration)]
|
|
132
132
|
})]
|
|
133
|
-
}), /* @__PURE__ */
|
|
133
|
+
}), /* @__PURE__ */ v("p", {
|
|
134
134
|
className: "text-sm text-text-secondary mt-2",
|
|
135
135
|
children: [
|
|
136
136
|
c("billing.plans.billed", "Billed"),
|
|
137
137
|
" ",
|
|
138
|
-
|
|
138
|
+
g.duration === "monthly" ? c("billing.plans.everyMonth", "every month") : c("billing.plans.annually", "annually")
|
|
139
139
|
]
|
|
140
140
|
})]
|
|
141
141
|
})]
|
|
142
|
-
}), /* @__PURE__ */
|
|
142
|
+
}), /* @__PURE__ */ v("div", {
|
|
143
143
|
className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
|
|
144
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ _("div", {
|
|
145
145
|
className: "p-6 border-b border-border-seam bg-bg-sunken",
|
|
146
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ v("h2", {
|
|
147
147
|
className: "text-lg font-semibold text-text-primary",
|
|
148
148
|
children: [
|
|
149
149
|
c("billing.plans.featuresAndQuotas", "Features & Quotas"),
|
|
@@ -152,52 +152,52 @@ var S = () => {
|
|
|
152
152
|
")"
|
|
153
153
|
]
|
|
154
154
|
})
|
|
155
|
-
}), /* @__PURE__ */
|
|
155
|
+
}), /* @__PURE__ */ _("div", {
|
|
156
156
|
className: "p-6",
|
|
157
|
-
children: T.length === 0 ? /* @__PURE__ */
|
|
157
|
+
children: T.length === 0 ? /* @__PURE__ */ _("p", {
|
|
158
158
|
className: "text-sm text-text-secondary",
|
|
159
159
|
children: c("billing.plans.noFeatures", "No features configured for this plan.")
|
|
160
|
-
}) : /* @__PURE__ */
|
|
160
|
+
}) : /* @__PURE__ */ _(b, {
|
|
161
161
|
when: T.length > 4,
|
|
162
162
|
collapsedHeight: 280,
|
|
163
|
-
children: /* @__PURE__ */
|
|
163
|
+
children: /* @__PURE__ */ _("ul", {
|
|
164
164
|
className: "space-y-3",
|
|
165
|
-
children: T.map((e) => /* @__PURE__ */
|
|
165
|
+
children: T.map((e) => /* @__PURE__ */ v("li", {
|
|
166
166
|
className: "flex items-start gap-3 p-3 rounded-lg bg-bg-sunken",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ _("div", {
|
|
168
168
|
className: "size-8 rounded-full bg-status-success-bg-subtle flex items-center justify-center shrink-0",
|
|
169
|
-
children: /* @__PURE__ */
|
|
169
|
+
children: /* @__PURE__ */ _("svg", {
|
|
170
170
|
className: "size-4 text-status-success-text",
|
|
171
171
|
fill: "none",
|
|
172
172
|
viewBox: "0 0 24 24",
|
|
173
173
|
stroke: "currentColor",
|
|
174
|
-
children: /* @__PURE__ */
|
|
174
|
+
children: /* @__PURE__ */ _("path", {
|
|
175
175
|
strokeLinecap: "round",
|
|
176
176
|
strokeLinejoin: "round",
|
|
177
177
|
strokeWidth: 2,
|
|
178
178
|
d: "M5 13l4 4L19 7"
|
|
179
179
|
})
|
|
180
180
|
})
|
|
181
|
-
}), /* @__PURE__ */
|
|
181
|
+
}), /* @__PURE__ */ v("div", {
|
|
182
182
|
className: "flex-1",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ v("div", {
|
|
184
184
|
className: "flex items-center justify-between",
|
|
185
|
-
children: [/* @__PURE__ */
|
|
185
|
+
children: [/* @__PURE__ */ _("p", {
|
|
186
186
|
className: "font-medium text-text-primary",
|
|
187
187
|
children: e.name
|
|
188
|
-
}), /* @__PURE__ */
|
|
188
|
+
}), /* @__PURE__ */ v("span", {
|
|
189
189
|
className: "font-semibold text-text-primary",
|
|
190
|
-
children: [a(e.totalValue, e.unit), e.perWorkspace && /* @__PURE__ */
|
|
190
|
+
children: [a(e.totalValue, e.unit), e.perWorkspace && /* @__PURE__ */ v("span", {
|
|
191
191
|
className: "font-normal text-text-secondary",
|
|
192
192
|
children: [" ", c("billing.plans.perWorkspace", "per workspace")]
|
|
193
193
|
})]
|
|
194
194
|
})]
|
|
195
|
-
}), /* @__PURE__ */
|
|
195
|
+
}), /* @__PURE__ */ v("div", {
|
|
196
196
|
className: "flex items-center gap-2 mt-1",
|
|
197
|
-
children: [/* @__PURE__ */
|
|
197
|
+
children: [/* @__PURE__ */ v("span", {
|
|
198
198
|
className: "text-sm text-text-secondary capitalize",
|
|
199
199
|
children: ["Type: ", e.limitType]
|
|
200
|
-
}), e.quotaType && /* @__PURE__ */
|
|
200
|
+
}), e.quotaType && /* @__PURE__ */ _("span", {
|
|
201
201
|
className: "px-2 py-0.5 text-xs font-medium bg-bg-sunken text-text-secondary rounded",
|
|
202
202
|
children: e.quotaType
|
|
203
203
|
})]
|
|
@@ -208,87 +208,87 @@ var S = () => {
|
|
|
208
208
|
})
|
|
209
209
|
})]
|
|
210
210
|
})]
|
|
211
|
-
}), /* @__PURE__ */
|
|
211
|
+
}), /* @__PURE__ */ v("div", {
|
|
212
212
|
className: "space-y-6 lg:sticky lg:top-6 lg:self-start",
|
|
213
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ v("div", {
|
|
214
214
|
className: "border border-border-seam rounded-card bg-bg-surface bg-accent-wash shadow-[var(--shadow-pop)] overflow-hidden",
|
|
215
|
-
children: [/* @__PURE__ */
|
|
215
|
+
children: [/* @__PURE__ */ _("div", {
|
|
216
216
|
className: "p-6 border-b border-border-seam bg-bg-sunken",
|
|
217
|
-
children: /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ _("h2", {
|
|
218
218
|
className: "text-lg font-semibold text-text-primary",
|
|
219
219
|
children: c("billing.plans.subscribeTitle", "Subscribe")
|
|
220
220
|
})
|
|
221
|
-
}), /* @__PURE__ */
|
|
221
|
+
}), /* @__PURE__ */ v("div", {
|
|
222
222
|
className: "p-6 space-y-4",
|
|
223
223
|
children: [
|
|
224
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
225
225
|
className: "text-sm text-text-secondary",
|
|
226
226
|
children: c("billing.plans.price", "Price")
|
|
227
|
-
}), /* @__PURE__ */
|
|
227
|
+
}), /* @__PURE__ */ v("p", {
|
|
228
228
|
className: "text-sm font-medium text-text-primary mt-0.5",
|
|
229
229
|
children: [
|
|
230
|
-
n(
|
|
230
|
+
n(g.price, g.currency),
|
|
231
231
|
" / ",
|
|
232
|
-
r(
|
|
232
|
+
r(g.duration)
|
|
233
233
|
]
|
|
234
234
|
})] }),
|
|
235
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
236
236
|
className: "text-sm text-text-secondary",
|
|
237
237
|
children: c("billing.plans.billingPeriod", "Billing Period")
|
|
238
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ _("p", {
|
|
239
239
|
className: "text-sm text-text-primary mt-0.5",
|
|
240
|
-
children: i(
|
|
240
|
+
children: i(g.duration)
|
|
241
241
|
})] }),
|
|
242
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
243
243
|
className: "text-sm text-text-secondary",
|
|
244
244
|
children: c("billing.plans.maxWorkspaces", "Max Workspaces")
|
|
245
|
-
}), /* @__PURE__ */
|
|
245
|
+
}), /* @__PURE__ */ v("p", {
|
|
246
246
|
className: "text-sm font-medium text-text-primary mt-0.5",
|
|
247
247
|
children: [
|
|
248
|
-
|
|
248
|
+
g.maxWorkspaces ?? 1,
|
|
249
249
|
" ",
|
|
250
|
-
(
|
|
250
|
+
(g.maxWorkspaces ?? 1) === 1 ? c("billing.plans.workspaceSingular", "workspace") : c("billing.plans.workspacePlural", "workspaces")
|
|
251
251
|
]
|
|
252
252
|
})] }),
|
|
253
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
254
254
|
className: "text-sm text-text-secondary",
|
|
255
255
|
children: c("billing.plans.quotasIncluded", "Quotas Included")
|
|
256
|
-
}), /* @__PURE__ */
|
|
256
|
+
}), /* @__PURE__ */ _("p", {
|
|
257
257
|
className: "text-sm font-medium text-text-primary mt-0.5",
|
|
258
258
|
children: T.length
|
|
259
259
|
})] }),
|
|
260
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ _("button", {
|
|
261
261
|
type: "button",
|
|
262
|
-
onClick: () =>
|
|
262
|
+
onClick: () => m(`/checkout/${g.id}`),
|
|
263
263
|
className: "w-full px-4 py-2.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors",
|
|
264
264
|
children: "Subscribe to Plan"
|
|
265
265
|
})
|
|
266
266
|
]
|
|
267
267
|
})]
|
|
268
|
-
}), /* @__PURE__ */
|
|
268
|
+
}), /* @__PURE__ */ _("button", {
|
|
269
269
|
type: "button",
|
|
270
|
-
onClick: () =>
|
|
270
|
+
onClick: () => m("/plans"),
|
|
271
271
|
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",
|
|
272
272
|
children: "Back to Plans"
|
|
273
273
|
})]
|
|
274
274
|
})]
|
|
275
275
|
})]
|
|
276
|
-
}) : /* @__PURE__ */
|
|
276
|
+
}) : /* @__PURE__ */ _("div", {
|
|
277
277
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
278
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ v("div", {
|
|
279
279
|
className: "text-center space-y-4",
|
|
280
280
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ _("h2", {
|
|
282
282
|
className: "text-lg font-semibold text-text-primary",
|
|
283
283
|
children: c("billing.plans.planNotFound", "Plan not found")
|
|
284
284
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ _("p", {
|
|
286
286
|
className: "text-sm text-text-secondary",
|
|
287
287
|
children: C?.message || c("billing.plans.planNotFoundMessage", "The plan you are looking for does not exist.")
|
|
288
288
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ _("button", {
|
|
290
290
|
type: "button",
|
|
291
|
-
onClick: () =>
|
|
291
|
+
onClick: () => m("/plans"),
|
|
292
292
|
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",
|
|
293
293
|
children: "Back to Plans"
|
|
294
294
|
})
|