@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
|
@@ -16,10 +16,10 @@ import { getDisplayPrice as m, useDefaultBillingCurrency as h } from "../../../h
|
|
|
16
16
|
import { FEATURED_QUOTA_LABELS as g, FEATURED_QUOTA_NAMES as _, formatFeaturedQuotaValue as v } from "../constants/featuredQuotas.js";
|
|
17
17
|
import { enterpriseMailto as y, getEnterpriseOffer as b } from "../constants/enterprise.js";
|
|
18
18
|
import { useState as x } from "react";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
19
|
+
import { IllustratedEmptyState as S, PagePurpose as C } from "@burdenoff/fe-libs/ui";
|
|
20
|
+
import { ArrowRight as w, Check as T, Sparkles as E } from "lucide-react";
|
|
21
|
+
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
22
|
+
import { useI18n as k } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
23
23
|
// src/billing/modules/plans/pages/PlansBrowsePage.tsx
|
|
24
24
|
function A(e) {
|
|
25
25
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -42,107 +42,107 @@ function j(e) {
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
var M = () => {
|
|
45
|
-
let { t: r } =
|
|
45
|
+
let { t: r } = k(), i = (e, t) => {
|
|
46
46
|
let n = r(e);
|
|
47
47
|
return n === e ? t : n;
|
|
48
48
|
}, a = e(), { productId: s, plansDocsUrl: m } = n(), h = b(s), { plans: g, isLoading: _, error: v, refetch: y } = f({
|
|
49
49
|
includeFree: !1,
|
|
50
50
|
productId: s ?? void 0
|
|
51
|
-
}),
|
|
51
|
+
}), w = l(), { subscriptions: T } = c(), E = u(T, new Set(g.map((e) => e.id))), A = (e) => w ? d(e, E) : null, j = (e) => {
|
|
52
52
|
let t = A(e);
|
|
53
53
|
t?.kind === "change" ? a(`/subscriptions/${t.subscriptionId}/upgrade`) : a(`/checkout/${e}`);
|
|
54
54
|
}, [M, F] = x("grid"), [R, z] = x(p.MONTHLY), B = g.filter((e) => e.isActive && e.isPurchasable !== !1 && e.duration === R), V = B.length >= 2 ? 1 : -1;
|
|
55
|
-
return _ && g.length === 0 ? /* @__PURE__ */
|
|
55
|
+
return _ && g.length === 0 ? /* @__PURE__ */ O("div", {
|
|
56
56
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ D("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded-card" }), /* @__PURE__ */ D("div", {
|
|
58
58
|
className: "grid grid-cols-1 md:grid-cols-3 gap-6",
|
|
59
59
|
children: [
|
|
60
60
|
1,
|
|
61
61
|
2,
|
|
62
62
|
3
|
|
63
|
-
].map((e) => /* @__PURE__ */
|
|
63
|
+
].map((e) => /* @__PURE__ */ O("div", {
|
|
64
64
|
className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 p-5 space-y-4",
|
|
65
65
|
children: [
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ D("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded" }),
|
|
67
|
+
/* @__PURE__ */ D("div", { className: "h-8 w-32 bg-bg-sunken animate-pulse rounded" }),
|
|
68
|
+
/* @__PURE__ */ D("div", {
|
|
69
69
|
className: "space-y-2",
|
|
70
70
|
children: [
|
|
71
71
|
1,
|
|
72
72
|
2,
|
|
73
73
|
3
|
|
74
|
-
].map((e) => /* @__PURE__ */
|
|
74
|
+
].map((e) => /* @__PURE__ */ D("div", { className: "h-4 w-full bg-bg-sunken animate-pulse rounded" }, e))
|
|
75
75
|
})
|
|
76
76
|
]
|
|
77
77
|
}, e))
|
|
78
78
|
})]
|
|
79
|
-
}) : v && o(v) ? /* @__PURE__ */
|
|
79
|
+
}) : v && o(v) ? /* @__PURE__ */ D("div", {
|
|
80
80
|
className: "p-6",
|
|
81
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ D(t, {
|
|
82
82
|
title: i("billing.plans.serverUnavailable", "Server Unavailable"),
|
|
83
83
|
message: i("billing.plans.unableToLoadPlans", "Unable to load plans."),
|
|
84
84
|
onRetry: () => y(),
|
|
85
85
|
showRetry: !0
|
|
86
86
|
})
|
|
87
|
-
}) : /* @__PURE__ */
|
|
87
|
+
}) : /* @__PURE__ */ O("div", {
|
|
88
88
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
89
89
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ O("div", { children: [
|
|
91
|
+
/* @__PURE__ */ D("h1", {
|
|
92
92
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
93
93
|
children: i("billing.plans.browsePlansTitle", "Plans")
|
|
94
94
|
}),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ D("p", {
|
|
96
96
|
className: "text-sm text-text-secondary mt-1",
|
|
97
97
|
children: i("billing.plans.browsePlansSubtitle", "Choose a plan that fits your needs")
|
|
98
98
|
}),
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ D(C, {
|
|
100
100
|
className: "mt-3",
|
|
101
101
|
learnMoreHref: m,
|
|
102
102
|
learnMoreLabel: i("billing.plans.learnMore", "Learn more"),
|
|
103
103
|
children: i("billing.plans.browsePurpose", "Compare what each plan includes — quotas, features and price — and subscribe to the one that fits your team. Switch between monthly and yearly billing to see the difference, or contact us for a custom Enterprise contract.")
|
|
104
104
|
})
|
|
105
105
|
] }),
|
|
106
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ O("div", {
|
|
107
107
|
className: "flex flex-wrap items-center gap-4 pb-4 border-b border-border-subtle",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ D("div", {
|
|
109
109
|
className: "inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken",
|
|
110
|
-
children: [p.MONTHLY, p.YEARLY].map((e) => /* @__PURE__ */
|
|
110
|
+
children: [p.MONTHLY, p.YEARLY].map((e) => /* @__PURE__ */ D("button", {
|
|
111
111
|
type: "button",
|
|
112
112
|
onClick: () => z(e),
|
|
113
113
|
className: `px-3 py-1.5 text-sm font-medium rounded-button transition-colors ${R === e ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
|
|
114
114
|
children: e === p.MONTHLY ? "Monthly" : "Yearly"
|
|
115
115
|
}, e))
|
|
116
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ O("div", {
|
|
117
117
|
className: "ml-auto inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken",
|
|
118
|
-
children: [/* @__PURE__ */
|
|
118
|
+
children: [/* @__PURE__ */ D("button", {
|
|
119
119
|
type: "button",
|
|
120
120
|
onClick: () => F("grid"),
|
|
121
121
|
className: `p-1.5 rounded-button transition-colors ${M === "grid" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
|
|
122
122
|
title: "Grid view",
|
|
123
|
-
children: /* @__PURE__ */
|
|
123
|
+
children: /* @__PURE__ */ D("svg", {
|
|
124
124
|
className: "size-4",
|
|
125
125
|
fill: "none",
|
|
126
126
|
viewBox: "0 0 24 24",
|
|
127
127
|
stroke: "currentColor",
|
|
128
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ D("path", {
|
|
129
129
|
strokeLinecap: "round",
|
|
130
130
|
strokeLinejoin: "round",
|
|
131
131
|
strokeWidth: 2,
|
|
132
132
|
d: "M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"
|
|
133
133
|
})
|
|
134
134
|
})
|
|
135
|
-
}), /* @__PURE__ */
|
|
135
|
+
}), /* @__PURE__ */ D("button", {
|
|
136
136
|
type: "button",
|
|
137
137
|
onClick: () => F("list"),
|
|
138
138
|
className: `p-1.5 rounded-button transition-colors ${M === "list" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
|
|
139
139
|
title: "List view",
|
|
140
|
-
children: /* @__PURE__ */
|
|
140
|
+
children: /* @__PURE__ */ D("svg", {
|
|
141
141
|
className: "size-4",
|
|
142
142
|
fill: "none",
|
|
143
143
|
viewBox: "0 0 24 24",
|
|
144
144
|
stroke: "currentColor",
|
|
145
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: /* @__PURE__ */ D("path", {
|
|
146
146
|
strokeLinecap: "round",
|
|
147
147
|
strokeLinejoin: "round",
|
|
148
148
|
strokeWidth: 2,
|
|
@@ -152,97 +152,97 @@ var M = () => {
|
|
|
152
152
|
})]
|
|
153
153
|
})]
|
|
154
154
|
}),
|
|
155
|
-
B.length === 0 ? /* @__PURE__ */
|
|
155
|
+
B.length === 0 ? /* @__PURE__ */ D(S, {
|
|
156
156
|
illustration: "empty-data",
|
|
157
157
|
title: i("billing.plans.noPlansAvailable", "No plans available"),
|
|
158
158
|
description: i("billing.plans.checkBackLater", "Check back later for new plans.")
|
|
159
|
-
}) : M === "grid" ? /* @__PURE__ */
|
|
159
|
+
}) : M === "grid" ? /* @__PURE__ */ O("div", {
|
|
160
160
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 items-stretch",
|
|
161
|
-
children: [B.map((e, t) => /* @__PURE__ */
|
|
161
|
+
children: [B.map((e, t) => /* @__PURE__ */ D(I, {
|
|
162
162
|
plan: e,
|
|
163
163
|
highlighted: t === V,
|
|
164
164
|
onView: () => a(`/plans/${e.id}`),
|
|
165
165
|
onSubscribe: () => j(e.id),
|
|
166
166
|
action: A(e.id)
|
|
167
|
-
}, e.id)), /* @__PURE__ */
|
|
168
|
-
}) : /* @__PURE__ */
|
|
167
|
+
}, e.id)), /* @__PURE__ */ D(N, { offer: h })]
|
|
168
|
+
}) : /* @__PURE__ */ O("div", {
|
|
169
169
|
className: "space-y-3",
|
|
170
|
-
children: [B.map((e) => /* @__PURE__ */
|
|
170
|
+
children: [B.map((e) => /* @__PURE__ */ D(L, {
|
|
171
171
|
plan: e,
|
|
172
172
|
onView: () => a(`/plans/${e.id}`),
|
|
173
173
|
onSubscribe: () => j(e.id),
|
|
174
174
|
action: A(e.id)
|
|
175
|
-
}, e.id)), /* @__PURE__ */
|
|
175
|
+
}, e.id)), /* @__PURE__ */ D(P, { offer: h })]
|
|
176
176
|
})
|
|
177
177
|
]
|
|
178
178
|
});
|
|
179
|
-
}, N = ({ offer: e }) => /* @__PURE__ */
|
|
179
|
+
}, N = ({ offer: e }) => /* @__PURE__ */ O("div", {
|
|
180
180
|
className: "border border-border-strong bg-[var(--color-accent-soft)] rounded-card shadow-elevation-1 p-5 flex flex-col h-full",
|
|
181
181
|
children: [
|
|
182
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ O("div", {
|
|
183
183
|
className: "mb-4",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ O("div", {
|
|
185
185
|
className: "flex items-center gap-2",
|
|
186
|
-
children: [/* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
187
187
|
className: "text-lg font-semibold text-text-primary",
|
|
188
188
|
children: "Enterprise"
|
|
189
|
-
}), /* @__PURE__ */
|
|
189
|
+
}), /* @__PURE__ */ D("span", {
|
|
190
190
|
className: "text-xs font-medium px-2 py-0.5 rounded-full bg-bg-surface text-text-link",
|
|
191
191
|
children: "Contact Us"
|
|
192
192
|
})]
|
|
193
|
-
}), /* @__PURE__ */
|
|
193
|
+
}), /* @__PURE__ */ D("span", {
|
|
194
194
|
className: "text-sm text-text-secondary",
|
|
195
195
|
children: "Custom contract"
|
|
196
196
|
})]
|
|
197
197
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ D("div", {
|
|
199
199
|
className: "flex items-baseline gap-1 mb-4",
|
|
200
|
-
children: /* @__PURE__ */
|
|
200
|
+
children: /* @__PURE__ */ D("span", {
|
|
201
201
|
className: "text-2xl font-semibold text-text-primary",
|
|
202
202
|
children: "Custom pricing"
|
|
203
203
|
})
|
|
204
204
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ D("ul", {
|
|
206
206
|
className: "space-y-2 mb-4 flex-1",
|
|
207
|
-
children: e.highlights.map((e) => /* @__PURE__ */
|
|
207
|
+
children: e.highlights.map((e) => /* @__PURE__ */ O("li", {
|
|
208
208
|
className: "flex items-center gap-2 text-sm",
|
|
209
|
-
children: [/* @__PURE__ */
|
|
209
|
+
children: [/* @__PURE__ */ D("svg", {
|
|
210
210
|
className: "size-4 text-status-success-text shrink-0",
|
|
211
211
|
fill: "none",
|
|
212
212
|
viewBox: "0 0 24 24",
|
|
213
213
|
stroke: "currentColor",
|
|
214
|
-
children: /* @__PURE__ */
|
|
214
|
+
children: /* @__PURE__ */ D("path", {
|
|
215
215
|
strokeLinecap: "round",
|
|
216
216
|
strokeLinejoin: "round",
|
|
217
217
|
strokeWidth: 2,
|
|
218
218
|
d: "M5 13l4 4L19 7"
|
|
219
219
|
})
|
|
220
|
-
}), /* @__PURE__ */
|
|
220
|
+
}), /* @__PURE__ */ D("span", {
|
|
221
221
|
className: "text-text-primary",
|
|
222
222
|
children: e
|
|
223
223
|
})]
|
|
224
224
|
}, e))
|
|
225
225
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ D("div", {
|
|
227
227
|
className: "space-y-2 pt-4 border-t border-border-subtle mt-auto",
|
|
228
|
-
children: /* @__PURE__ */
|
|
228
|
+
children: /* @__PURE__ */ D("a", {
|
|
229
229
|
href: y(e),
|
|
230
230
|
className: "block w-full px-4 py-2 text-sm font-medium text-center bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
|
|
231
231
|
children: "Contact Us"
|
|
232
232
|
})
|
|
233
233
|
})
|
|
234
234
|
]
|
|
235
|
-
}), P = ({ offer: e }) => /* @__PURE__ */
|
|
235
|
+
}), P = ({ offer: e }) => /* @__PURE__ */ O("div", {
|
|
236
236
|
className: "flex items-center gap-4 p-5 border border-border-strong rounded-card bg-[var(--color-accent-soft)] shadow-elevation-1 transition-all duration-200 hover:shadow-elevation-2",
|
|
237
237
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ D("div", {
|
|
239
239
|
className: "size-10 rounded-lg bg-bg-surface flex items-center justify-center shrink-0 shadow-elevation-1",
|
|
240
|
-
children: /* @__PURE__ */
|
|
240
|
+
children: /* @__PURE__ */ D("svg", {
|
|
241
241
|
className: "size-5 text-text-link",
|
|
242
242
|
fill: "none",
|
|
243
243
|
viewBox: "0 0 24 24",
|
|
244
244
|
stroke: "currentColor",
|
|
245
|
-
children: /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ D("path", {
|
|
246
246
|
strokeLinecap: "round",
|
|
247
247
|
strokeLinejoin: "round",
|
|
248
248
|
strokeWidth: 2,
|
|
@@ -250,33 +250,33 @@ var M = () => {
|
|
|
250
250
|
})
|
|
251
251
|
})
|
|
252
252
|
}),
|
|
253
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ O("div", {
|
|
254
254
|
className: "flex-1 min-w-0",
|
|
255
|
-
children: [/* @__PURE__ */
|
|
255
|
+
children: [/* @__PURE__ */ O("div", {
|
|
256
256
|
className: "flex items-center gap-2",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
258
258
|
className: "font-semibold text-text-primary",
|
|
259
259
|
children: "Enterprise"
|
|
260
|
-
}), /* @__PURE__ */
|
|
260
|
+
}), /* @__PURE__ */ D("span", {
|
|
261
261
|
className: "text-xs font-medium px-2 py-0.5 rounded-full bg-bg-surface text-text-link shrink-0",
|
|
262
262
|
children: "Contact Us"
|
|
263
263
|
})]
|
|
264
|
-
}), /* @__PURE__ */
|
|
264
|
+
}), /* @__PURE__ */ D("p", {
|
|
265
265
|
className: "text-sm text-text-secondary",
|
|
266
266
|
children: e.summary
|
|
267
267
|
})]
|
|
268
268
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ O("div", {
|
|
270
270
|
className: "text-right",
|
|
271
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ D("div", {
|
|
272
272
|
className: "font-semibold text-text-primary",
|
|
273
273
|
children: "Custom pricing"
|
|
274
|
-
}), /* @__PURE__ */
|
|
274
|
+
}), /* @__PURE__ */ D("div", {
|
|
275
275
|
className: "text-sm text-text-secondary",
|
|
276
276
|
children: "contract-based"
|
|
277
277
|
})]
|
|
278
278
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ D("a", {
|
|
280
280
|
href: y(e),
|
|
281
281
|
className: "px-3 py-1.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200 shrink-0",
|
|
282
282
|
children: "Contact Us"
|
|
@@ -288,61 +288,61 @@ function F(e) {
|
|
|
288
288
|
}
|
|
289
289
|
var I = ({ plan: e, highlighted: t = !1, onView: n, onSubscribe: o, action: s }) => {
|
|
290
290
|
let c = j(e.features || []), l = A(e.features || []).length - c.length, u = h(), { price: d, currency: f } = m(e.price, e.currency, e.currencyPrices, u);
|
|
291
|
-
return /* @__PURE__ */
|
|
291
|
+
return /* @__PURE__ */ O("div", {
|
|
292
292
|
className: `relative flex flex-col h-full rounded-card bg-bg-surface p-6 transition-[border-color,box-shadow] duration-200 ${t ? "border-2 border-action-primary-bg shadow-[var(--shadow-glow)]" : "border border-border-subtle shadow-elevation-1 hover:border-border-strong hover:shadow-elevation-2"}`,
|
|
293
293
|
children: [
|
|
294
|
-
s?.kind === "current" && /* @__PURE__ */
|
|
294
|
+
s?.kind === "current" && /* @__PURE__ */ D("span", {
|
|
295
295
|
className: "absolute -top-3 right-4 inline-flex items-center rounded-full bg-bg-sunken px-3 py-1 text-xs font-semibold text-text-primary border border-border-subtle",
|
|
296
296
|
children: "Current plan"
|
|
297
297
|
}),
|
|
298
|
-
t && /* @__PURE__ */
|
|
298
|
+
t && /* @__PURE__ */ O("span", {
|
|
299
299
|
className: "absolute -top-3 left-1/2 -translate-x-1/2 inline-flex items-center gap-1 rounded-full bg-action-primary-bg px-3 py-1 text-xs font-semibold text-action-primary-text shadow-elevation-2",
|
|
300
|
-
children: [/* @__PURE__ */
|
|
300
|
+
children: [/* @__PURE__ */ D(E, {
|
|
301
301
|
className: "size-3.5",
|
|
302
302
|
"aria-hidden": "true"
|
|
303
303
|
}), "Most popular"]
|
|
304
304
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ O("div", {
|
|
306
306
|
className: "mb-4",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
307
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
308
308
|
className: "text-lg font-semibold text-text-primary",
|
|
309
309
|
children: e.name
|
|
310
|
-
}), /* @__PURE__ */
|
|
310
|
+
}), /* @__PURE__ */ D("span", {
|
|
311
311
|
className: "text-sm text-text-secondary",
|
|
312
312
|
children: a(e.duration)
|
|
313
313
|
})]
|
|
314
314
|
}),
|
|
315
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ O("div", {
|
|
316
316
|
className: "flex items-baseline gap-1.5 mb-5",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
317
|
+
children: [/* @__PURE__ */ D("span", {
|
|
318
318
|
className: "text-4xl font-bold tabular-nums tracking-tight text-text-primary",
|
|
319
319
|
children: r(d, f)
|
|
320
|
-
}), /* @__PURE__ */
|
|
320
|
+
}), /* @__PURE__ */ O("span", {
|
|
321
321
|
className: "text-text-secondary text-sm",
|
|
322
322
|
children: ["/ ", i(e.duration)]
|
|
323
323
|
})]
|
|
324
324
|
}),
|
|
325
|
-
c.length > 0 && /* @__PURE__ */
|
|
325
|
+
c.length > 0 && /* @__PURE__ */ O("ul", {
|
|
326
326
|
className: "space-y-2.5 mb-5 flex-1",
|
|
327
|
-
children: [c.map((e) => /* @__PURE__ */
|
|
327
|
+
children: [c.map((e) => /* @__PURE__ */ O("li", {
|
|
328
328
|
className: "flex items-center justify-between gap-2 text-sm",
|
|
329
|
-
children: [/* @__PURE__ */
|
|
329
|
+
children: [/* @__PURE__ */ O("span", {
|
|
330
330
|
className: "flex items-center gap-2 min-w-0",
|
|
331
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ D("span", {
|
|
332
332
|
className: "flex size-5 shrink-0 items-center justify-center rounded-full bg-[var(--color-accent-soft)]",
|
|
333
|
-
children: /* @__PURE__ */ T
|
|
333
|
+
children: /* @__PURE__ */ D(T, {
|
|
334
334
|
className: "size-3 text-action-primary-bg",
|
|
335
335
|
"aria-hidden": "true"
|
|
336
336
|
})
|
|
337
|
-
}), /* @__PURE__ */
|
|
337
|
+
}), /* @__PURE__ */ D("span", {
|
|
338
338
|
className: "truncate text-text-primary",
|
|
339
339
|
children: g[e.name] ?? e.name
|
|
340
340
|
})]
|
|
341
|
-
}), /* @__PURE__ */
|
|
341
|
+
}), /* @__PURE__ */ D("span", {
|
|
342
342
|
className: "font-semibold text-text-primary tabular-nums shrink-0",
|
|
343
343
|
children: v(e.name, e.totalValue)
|
|
344
344
|
})]
|
|
345
|
-
}, e.quotaId)), l > 0 && /* @__PURE__ */
|
|
345
|
+
}, e.quotaId)), l > 0 && /* @__PURE__ */ O("li", {
|
|
346
346
|
className: "text-sm text-text-secondary pl-7",
|
|
347
347
|
children: [
|
|
348
348
|
"+",
|
|
@@ -351,19 +351,19 @@ var I = ({ plan: e, highlighted: t = !1, onView: n, onSubscribe: o, action: s })
|
|
|
351
351
|
]
|
|
352
352
|
})]
|
|
353
353
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ O("div", {
|
|
355
355
|
className: "space-y-2 pt-4 border-t border-border-subtle mt-auto",
|
|
356
|
-
children: [/* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ O("button", {
|
|
357
357
|
type: "button",
|
|
358
358
|
onClick: o,
|
|
359
359
|
disabled: s?.kind === "current",
|
|
360
360
|
"aria-disabled": s?.kind === "current",
|
|
361
361
|
className: "group disabled:cursor-not-allowed disabled:opacity-60 inline-flex w-full items-center justify-center gap-2 rounded-button bg-action-primary-bg px-4 py-2.5 text-sm font-semibold text-action-primary-text shadow-elevation-1 transition-colors duration-200 hover:bg-action-primary-bgHover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
362
|
-
children: [F(s), /* @__PURE__ */
|
|
362
|
+
children: [F(s), /* @__PURE__ */ D(w, {
|
|
363
363
|
className: "size-4 transition-transform duration-200",
|
|
364
364
|
"aria-hidden": "true"
|
|
365
365
|
})]
|
|
366
|
-
}), /* @__PURE__ */
|
|
366
|
+
}), /* @__PURE__ */ D("button", {
|
|
367
367
|
type: "button",
|
|
368
368
|
onClick: n,
|
|
369
369
|
className: "w-full px-4 py-2 text-sm font-medium border border-border-subtle text-text-secondary rounded-button hover:bg-bg-sunken hover:text-text-primary hover:border-border-strong transition-colors duration-200",
|
|
@@ -374,17 +374,17 @@ var I = ({ plan: e, highlighted: t = !1, onView: n, onSubscribe: o, action: s })
|
|
|
374
374
|
});
|
|
375
375
|
}, L = ({ plan: e, onView: t, onSubscribe: n, action: a }) => {
|
|
376
376
|
let o = j(e.features || []), s = h();
|
|
377
|
-
return /* @__PURE__ */
|
|
377
|
+
return /* @__PURE__ */ O("div", {
|
|
378
378
|
className: "flex items-center gap-4 p-5 border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 transition-all duration-200 hover:border-border-strong hover:shadow-elevation-2",
|
|
379
379
|
children: [
|
|
380
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ D("div", {
|
|
381
381
|
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center shrink-0",
|
|
382
|
-
children: /* @__PURE__ */
|
|
382
|
+
children: /* @__PURE__ */ D("svg", {
|
|
383
383
|
className: "size-5 text-text-link",
|
|
384
384
|
fill: "none",
|
|
385
385
|
viewBox: "0 0 24 24",
|
|
386
386
|
stroke: "currentColor",
|
|
387
|
-
children: /* @__PURE__ */
|
|
387
|
+
children: /* @__PURE__ */ D("path", {
|
|
388
388
|
strokeLinecap: "round",
|
|
389
389
|
strokeLinejoin: "round",
|
|
390
390
|
strokeWidth: 2,
|
|
@@ -392,12 +392,12 @@ var I = ({ plan: e, highlighted: t = !1, onView: n, onSubscribe: o, action: s })
|
|
|
392
392
|
})
|
|
393
393
|
})
|
|
394
394
|
}),
|
|
395
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ O("div", {
|
|
396
396
|
className: "flex-1 min-w-0",
|
|
397
|
-
children: [/* @__PURE__ */
|
|
397
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
398
398
|
className: "font-semibold text-text-primary truncate",
|
|
399
399
|
children: e.name
|
|
400
|
-
}), /* @__PURE__ */
|
|
400
|
+
}), /* @__PURE__ */ O("p", {
|
|
401
401
|
className: "text-sm text-text-secondary",
|
|
402
402
|
children: [
|
|
403
403
|
o.length,
|
|
@@ -407,28 +407,28 @@ var I = ({ plan: e, highlighted: t = !1, onView: n, onSubscribe: o, action: s })
|
|
|
407
407
|
]
|
|
408
408
|
})]
|
|
409
409
|
}),
|
|
410
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ O("div", {
|
|
411
411
|
className: "text-right",
|
|
412
|
-
children: [/* @__PURE__ */
|
|
412
|
+
children: [/* @__PURE__ */ D("div", {
|
|
413
413
|
className: "font-semibold text-text-primary",
|
|
414
414
|
children: (() => {
|
|
415
415
|
let { price: t, currency: n } = m(e.price, e.currency, e.currencyPrices, s);
|
|
416
416
|
return r(t, n);
|
|
417
417
|
})()
|
|
418
|
-
}), /* @__PURE__ */
|
|
418
|
+
}), /* @__PURE__ */ O("div", {
|
|
419
419
|
className: "text-sm text-text-secondary",
|
|
420
420
|
children: ["per ", i(e.duration)]
|
|
421
421
|
})]
|
|
422
422
|
}),
|
|
423
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ O("div", {
|
|
424
424
|
className: "flex items-center gap-2",
|
|
425
|
-
children: [/* @__PURE__ */
|
|
425
|
+
children: [/* @__PURE__ */ D("button", {
|
|
426
426
|
type: "button",
|
|
427
427
|
onClick: n,
|
|
428
428
|
disabled: a?.kind === "current",
|
|
429
429
|
className: "disabled:cursor-not-allowed disabled:opacity-60 px-3 py-1.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
|
|
430
430
|
children: F(a)
|
|
431
|
-
}), /* @__PURE__ */
|
|
431
|
+
}), /* @__PURE__ */ D("button", {
|
|
432
432
|
type: "button",
|
|
433
433
|
onClick: t,
|
|
434
434
|
className: "px-3 py-1.5 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken hover:border-border-strong transition-all duration-200",
|