@burdenoff/microfe-billing 2026.1114.2 → 2026.1114.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/modules/billing/pages/InvoicesListPage.js +131 -120
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +143 -140
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +59 -67
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/dashboard/pages/OverviewPage.js +282 -277
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
- package/dist/billing/modules/settings/index.js +3 -3
- package/dist/billing/modules/settings/pages/SettingsPage.js +192 -179
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +6 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +77 -78
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +65 -59
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,329 +4,334 @@ import { useBillingPermissions as n } from "../../../hooks/useBillingPermissions
|
|
|
4
4
|
import { StatCard as r } from "../../../shared/components/StatCard.js";
|
|
5
5
|
import { ServerError as ee } from "../../../shared/components/ServerError.js";
|
|
6
6
|
import { AccessDenied as te } from "../../../shared/components/AccessDenied.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { PushPermissionNudge as ne } from "../../../shared/components/PushPermissionNudge.js";
|
|
8
|
+
import { HeaderActions as re } from "../../../shared/components/HeaderActions.js";
|
|
9
9
|
import "../../../shared/utils/index.js";
|
|
10
10
|
import "../hooks/index.js";
|
|
11
|
-
import { isServerError as ie } from "../../../shared/utils/error.js";
|
|
12
11
|
import "../components/index.js";
|
|
12
|
+
import { isServerError as ie } from "../../../shared/utils/error.js";
|
|
13
13
|
import { useAddonCartStore as ae } from "../../addons/store/addonCartStore.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
14
|
+
import { FloatingCartDrawer as oe } from "../../addons/components/FloatingCartDrawer.js";
|
|
15
|
+
import { useDashboardMutations as se } from "../hooks/useDashboard.js";
|
|
16
|
+
import { useBillingOverviewData as ce } from "../hooks/useBillingOverviewData.js";
|
|
17
|
+
import { getStoredBillingAccountId as le, setStoredBillingAccountId as ue } from "../../../hooks/useBillingAccountSelection.js";
|
|
18
|
+
import { BillingAccountCard as de } from "../components/BillingAccountCard.js";
|
|
19
|
+
import { PaymentMethodsSection as fe } from "../components/PaymentMethodsSection.js";
|
|
20
|
+
import { ActiveSubscriptionCard as pe } from "../components/ActiveSubscriptionCard.js";
|
|
21
|
+
import { RecommendedAddonsSection as me } from "../components/RecommendedAddonsSection.js";
|
|
21
22
|
import { CreateBillingAccountModal as i } from "../components/CreateBillingAccountModal.js";
|
|
22
|
-
import { AddPaymentMethodModal as
|
|
23
|
-
import { getStoredBillingAccountId as me, setStoredBillingAccountId as he } from "../../../hooks/useBillingAccountSelection.js";
|
|
23
|
+
import { AddPaymentMethodModal as he } from "../components/AddPaymentMethodModal.js";
|
|
24
24
|
import { withBillingAccountId as a } from "../../../shared/utils/navigation.js";
|
|
25
25
|
import { useTr as ge } from "../../../shared/hooks/useTr.js";
|
|
26
26
|
import "../../../shared/components/index.js";
|
|
27
|
+
import { useIsFluidgridsVariant as _e } from "../../../hooks/useBillingVariant.js";
|
|
27
28
|
import { useCallback as o, useEffect as s, useState as c } from "react";
|
|
28
|
-
import { AuroraBackground as
|
|
29
|
-
import { Activity as Se, ArrowRight as Ce, Building2 as
|
|
30
|
-
import { Fragment as
|
|
29
|
+
import { AuroraBackground as l, Button as ve, GlassCard as ye, GradientText as u, IllustratedEmptyState as be, PagePurpose as xe } from "@burdenoff/fe-libs/ui";
|
|
30
|
+
import { Activity as Se, ArrowRight as Ce, Building2 as d, Check as f, ChevronDown as p, Coins as we, Crown as m, Loader2 as Te, Plus as h, Receipt as Ee, RefreshCw as g, Sparkles as De, Wallet as _ } from "lucide-react";
|
|
31
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
31
32
|
import { shouldPromptForPushPermission as Oe } from "@burdenoff/fe-libs/shared/native";
|
|
32
33
|
// src/billing/modules/dashboard/pages/OverviewPage.tsx
|
|
33
|
-
var
|
|
34
|
-
let
|
|
35
|
-
Ae(e),
|
|
36
|
-
}, [
|
|
34
|
+
var x = () => {
|
|
35
|
+
let x = _e(), S = ge(), { navigate: C, basePath: w, orgId: T, productId: ke } = e(), E = n(), { emit: D } = t(), [O, Ae] = c(() => le(T)), [k, A] = c(!1), [j, M] = c(null), [je, N] = c(!1), [P, F] = c(!1), [Me, I] = c(!1), [L, Ne] = c(0), [R, z] = c(!1), { billingAccounts: B, currentAccount: V, paymentMethods: H, activeSubscriptions: U, hasActiveSubscription: W, recommendedAddons: Pe, isLoading: G, error: K, refetchAll: q } = ce(O, ke), J = V?.id, Fe = G, Y = o((e) => {
|
|
36
|
+
Ae(e), ue(T, e);
|
|
37
|
+
}, [T]), { addToCart: Ie, isInCart: Le, getCartItem: Re, updateQuantity: ze, removeFromCart: X } = ae(), { createBillingAccount: Be, setBillingAddress: Ve, setDefaultPaymentMethod: He, deletePaymentMethod: Ue, isCreatingAccount: We } = se();
|
|
37
38
|
s(() => {
|
|
38
|
-
|
|
39
|
-
}, [
|
|
40
|
-
|
|
39
|
+
Ne(0), z(!1);
|
|
40
|
+
}, [J, U.length]), s(() => {
|
|
41
|
+
O && B.length > 0 && (B.some((e) => e.id === O) || Y(null));
|
|
41
42
|
}, [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
B,
|
|
44
|
+
O,
|
|
45
|
+
Y
|
|
45
46
|
]), s(() => {
|
|
46
|
-
if (!
|
|
47
|
-
let e =
|
|
48
|
-
|
|
47
|
+
if (!O && B.length > 0) {
|
|
48
|
+
let e = B.find((e) => e.isDefault) ?? B[0];
|
|
49
|
+
Y(e.id);
|
|
49
50
|
}
|
|
50
51
|
}, [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
B,
|
|
53
|
+
O,
|
|
54
|
+
Y
|
|
54
55
|
]);
|
|
55
|
-
let Z =
|
|
56
|
+
let Z = U[L] || U[0] || null, Q = o((e) => {
|
|
56
57
|
let t = e;
|
|
57
|
-
|
|
58
|
-
}, [
|
|
59
|
-
|
|
58
|
+
w && w !== "/" && (t = `${w.endsWith("/") ? w.slice(0, -1) : w}${e.startsWith("/") ? e : `/${e}`}`), C(t);
|
|
59
|
+
}, [C, w]), Ge = o(async (e, t) => {
|
|
60
|
+
M(null);
|
|
60
61
|
try {
|
|
61
|
-
let n = await
|
|
62
|
-
t && n.id && await
|
|
62
|
+
let n = await Be(e);
|
|
63
|
+
t && n.id && await Ve({
|
|
63
64
|
billingAccountId: n.id,
|
|
64
65
|
...t
|
|
65
|
-
}),
|
|
66
|
+
}), A(!1), Y(n.id), D("billing.billing_account.created", {
|
|
66
67
|
route: "/billing/overview",
|
|
67
68
|
entityId: n.id,
|
|
68
69
|
source: "overview"
|
|
69
|
-
}), await
|
|
70
|
+
}), await q(), Oe() && N(!0);
|
|
70
71
|
} catch (e) {
|
|
71
|
-
|
|
72
|
+
M(e instanceof Error ? e.message : "Failed to create billing account");
|
|
72
73
|
}
|
|
73
74
|
}, [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
]),
|
|
80
|
-
|
|
75
|
+
Be,
|
|
76
|
+
D,
|
|
77
|
+
q,
|
|
78
|
+
Ve,
|
|
79
|
+
Y
|
|
80
|
+
]), Ke = o(() => {
|
|
81
|
+
I(!0);
|
|
81
82
|
}, []), $ = o(async () => {
|
|
82
|
-
await
|
|
83
|
-
}, [
|
|
84
|
-
|
|
83
|
+
await q();
|
|
84
|
+
}, [q]), qe = o(async () => {
|
|
85
|
+
D("billing.payment_method.added", {
|
|
85
86
|
route: "/billing/overview",
|
|
86
|
-
entityId:
|
|
87
|
+
entityId: J,
|
|
87
88
|
source: "overview"
|
|
88
89
|
}), await $();
|
|
89
90
|
}, [
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
J,
|
|
92
|
+
D,
|
|
92
93
|
$
|
|
93
|
-
]),
|
|
94
|
-
|
|
94
|
+
]), Je = o(async (e) => {
|
|
95
|
+
J && (await He(e, J), D("billing.payment_method.default_set", {
|
|
95
96
|
route: "/billing/overview",
|
|
96
97
|
entityId: e,
|
|
97
98
|
source: "overview"
|
|
98
99
|
}), await $());
|
|
99
100
|
}, [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
J,
|
|
102
|
+
D,
|
|
103
|
+
He,
|
|
103
104
|
$
|
|
104
|
-
]),
|
|
105
|
-
|
|
105
|
+
]), Ye = o(async (e) => {
|
|
106
|
+
J && (await Ue(e, J), D("billing.payment_method.deleted", {
|
|
106
107
|
route: "/billing/overview",
|
|
107
108
|
entityId: e,
|
|
108
109
|
source: "overview"
|
|
109
110
|
}), await $());
|
|
110
111
|
}, [
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
J,
|
|
113
|
+
Ue,
|
|
114
|
+
D,
|
|
114
115
|
$
|
|
115
|
-
]),
|
|
116
|
-
|
|
117
|
-
}, [
|
|
118
|
-
await
|
|
119
|
-
}, [
|
|
120
|
-
|
|
121
|
-
}, [
|
|
122
|
-
t <= 0 ? X(e) :
|
|
123
|
-
}, [
|
|
116
|
+
]), Xe = o((e) => {
|
|
117
|
+
Y(e.id), F(!1);
|
|
118
|
+
}, [Y]), Ze = o(async () => {
|
|
119
|
+
await q();
|
|
120
|
+
}, [q]), Qe = o((e) => {
|
|
121
|
+
Ie(e);
|
|
122
|
+
}, [Ie]), $e = o((e) => Le(e), [Le]), et = o((e) => Re(e)?.quantity || 0, [Re]), tt = o((e, t) => {
|
|
123
|
+
t <= 0 ? X(e) : ze(e, t);
|
|
124
|
+
}, [ze, X]), nt = o((e) => {
|
|
124
125
|
X(e);
|
|
125
126
|
}, [X]);
|
|
126
|
-
return
|
|
127
|
+
return E.canViewBillingAccount ? K && ie(K) && !G ? /* @__PURE__ */ y("div", {
|
|
127
128
|
className: "p-6",
|
|
128
|
-
children: /* @__PURE__ */
|
|
129
|
-
title:
|
|
130
|
-
message:
|
|
131
|
-
onRetry:
|
|
129
|
+
children: /* @__PURE__ */ y(ee, {
|
|
130
|
+
title: S("billing.serverError.title", "Server Unavailable"),
|
|
131
|
+
message: S("billing.overview.serverUnavailableMessage", "Unable to load billing overview. The server might be down or experiencing issues."),
|
|
132
|
+
onRetry: Ze,
|
|
132
133
|
showRetry: !0
|
|
133
134
|
})
|
|
134
|
-
}) :
|
|
135
|
+
}) : G && !V ? /* @__PURE__ */ y("div", {
|
|
135
136
|
className: "flex items-center justify-center min-h-[400px]",
|
|
136
|
-
children: /* @__PURE__ */
|
|
137
|
+
children: /* @__PURE__ */ b("div", {
|
|
137
138
|
className: "flex flex-col items-center gap-3",
|
|
138
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ y(Te, { className: "size-8 animate-spin text-text-link" }), /* @__PURE__ */ y("p", {
|
|
139
140
|
className: "text-sm text-text-secondary",
|
|
140
|
-
children:
|
|
141
|
+
children: S("billing.overview.loadingInfo", "Loading billing information...")
|
|
141
142
|
})]
|
|
142
143
|
})
|
|
143
|
-
}) : !
|
|
144
|
+
}) : !G && B.length === 0 && !V ? /* @__PURE__ */ b("div", {
|
|
144
145
|
className: "px-4 sm:px-6 lg:px-8 py-4 sm:py-6",
|
|
145
146
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ b("header", {
|
|
147
148
|
className: "relative overflow-hidden mb-6 sm:mb-8 rounded-card",
|
|
148
149
|
children: [
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ y(l, { intensity: "subtle" }),
|
|
151
|
+
/* @__PURE__ */ y("h1", {
|
|
151
152
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
152
|
-
children: /* @__PURE__ */
|
|
153
|
+
children: /* @__PURE__ */ y(u, { children: S("billing.overview.title", "Billing Overview") })
|
|
153
154
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ y("p", {
|
|
155
156
|
className: "text-sm text-text-secondary mt-1",
|
|
156
|
-
children:
|
|
157
|
+
children: S("billing.overview.emptySetupDescription", "Set up billing to manage subscriptions, payments, and invoices")
|
|
157
158
|
})
|
|
158
159
|
]
|
|
159
160
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ y(be, {
|
|
161
162
|
illustration: "onboarding",
|
|
162
|
-
title:
|
|
163
|
-
description:
|
|
164
|
-
action:
|
|
163
|
+
title: S("billing.overview.emptyTitle", "No billing account"),
|
|
164
|
+
description: S("billing.overview.emptyDescription", "Create a billing account to start managing your subscriptions and payments"),
|
|
165
|
+
action: E.canManageBillingAccount ? /* @__PURE__ */ b("button", {
|
|
165
166
|
type: "button",
|
|
166
|
-
onClick: () =>
|
|
167
|
+
onClick: () => A(!0),
|
|
167
168
|
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-action-primary-text bg-action-primary-bg rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ y(h, { className: "size-4" }), S("billing.overview.createBillingAccount", "Create Billing Account")]
|
|
169
170
|
}) : void 0
|
|
170
171
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
isOpen:
|
|
172
|
+
/* @__PURE__ */ y(i, {
|
|
173
|
+
isOpen: k,
|
|
173
174
|
onClose: () => {
|
|
174
|
-
|
|
175
|
+
A(!1), M(null);
|
|
175
176
|
},
|
|
176
|
-
onSubmit:
|
|
177
|
-
isSubmitting:
|
|
178
|
-
error:
|
|
177
|
+
onSubmit: Ge,
|
|
178
|
+
isSubmitting: We,
|
|
179
|
+
error: j
|
|
179
180
|
})
|
|
180
181
|
]
|
|
181
|
-
}) : /* @__PURE__ */
|
|
182
|
+
}) : /* @__PURE__ */ b("div", {
|
|
182
183
|
className: "px-4 sm:px-6 lg:px-8 py-4 sm:py-6 space-y-4 sm:space-y-8",
|
|
183
184
|
children: [
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
className: "relative overflow-hidden rounded-card flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",
|
|
185
|
+
/* @__PURE__ */ b("header", {
|
|
186
|
+
className: x ? "relative overflow-hidden rounded-card flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between" : "relative overflow-hidden rounded-card flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",
|
|
186
187
|
children: [
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
188
|
+
/* @__PURE__ */ y(l, { intensity: "subtle" }),
|
|
189
|
+
/* @__PURE__ */ b("div", {
|
|
190
|
+
className: x ? "min-w-0 lg:max-w-3xl" : void 0,
|
|
191
|
+
children: [
|
|
192
|
+
/* @__PURE__ */ y("h1", {
|
|
193
|
+
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
194
|
+
children: /* @__PURE__ */ y(u, { children: S("billing.overview.title", "Billing Overview") })
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ y("p", {
|
|
197
|
+
className: "text-sm text-text-secondary mt-1",
|
|
198
|
+
children: S("billing.overview.description", "Manage your billing accounts, subscriptions, and payment methods")
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ y(xe, {
|
|
201
|
+
className: "mt-3",
|
|
202
|
+
children: S("billing.overview.purpose", "Your billing home base — see your current plan, credit balance and payment methods at a glance, and jump to transactions, usage, credits or new plans. Start here to understand what you are paying for and manage it.")
|
|
203
|
+
})
|
|
204
|
+
]
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ y(re, {
|
|
207
|
+
className: x ? "relative lg:shrink-0 lg:justify-end [&_button]:whitespace-nowrap" : void 0,
|
|
208
|
+
primary: E.canManageBillingAccount && B.length > 0 ? {
|
|
209
|
+
label: S("billing.overview.newAccount", "New Account"),
|
|
210
|
+
onSelect: () => A(!0),
|
|
211
|
+
icon: /* @__PURE__ */ y(h, { className: "size-4" })
|
|
207
212
|
} : void 0,
|
|
208
213
|
actions: [{
|
|
209
|
-
label:
|
|
214
|
+
label: S("billing.overview.refresh", "Refresh"),
|
|
210
215
|
onSelect: () => {
|
|
211
|
-
|
|
216
|
+
Ze();
|
|
212
217
|
},
|
|
213
|
-
icon: /* @__PURE__ */
|
|
218
|
+
icon: /* @__PURE__ */ y(g, { className: `size-4 ${G ? "animate-spin" : ""}` })
|
|
214
219
|
}]
|
|
215
220
|
})
|
|
216
221
|
]
|
|
217
222
|
}),
|
|
218
|
-
|
|
223
|
+
B.length > 1 && /* @__PURE__ */ b("div", {
|
|
219
224
|
className: "relative",
|
|
220
225
|
"data-tour": "billing-overview-account-selector",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
226
|
+
children: [/* @__PURE__ */ b("button", {
|
|
222
227
|
type: "button",
|
|
223
|
-
onClick: () =>
|
|
228
|
+
onClick: () => F(!P),
|
|
224
229
|
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",
|
|
225
|
-
children: [/* @__PURE__ */
|
|
230
|
+
children: [/* @__PURE__ */ b("div", {
|
|
226
231
|
className: "flex items-center gap-3",
|
|
227
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ y("div", {
|
|
228
233
|
className: "size-9 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
229
|
-
children: /* @__PURE__ */
|
|
230
|
-
}), /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ y(d, { className: "size-4 text-text-link" })
|
|
235
|
+
}), /* @__PURE__ */ b("div", {
|
|
231
236
|
className: "text-left",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
237
|
+
children: [/* @__PURE__ */ y("p", {
|
|
233
238
|
className: "text-sm font-medium text-text-primary",
|
|
234
|
-
children:
|
|
235
|
-
}), /* @__PURE__ */
|
|
239
|
+
children: V?.name || S("billing.overview.selectAccount", "Select Account")
|
|
240
|
+
}), /* @__PURE__ */ y("p", {
|
|
236
241
|
className: "text-xs text-text-secondary",
|
|
237
|
-
children:
|
|
242
|
+
children: V?.email
|
|
238
243
|
})]
|
|
239
244
|
})]
|
|
240
|
-
}), /* @__PURE__ */
|
|
241
|
-
}),
|
|
245
|
+
}), /* @__PURE__ */ y(p, { className: `size-4 text-text-muted transition-transform ${P ? "rotate-180" : ""}` })]
|
|
246
|
+
}), P && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("div", {
|
|
242
247
|
className: "fixed inset-0 z-10",
|
|
243
|
-
onClick: () =>
|
|
244
|
-
}), /* @__PURE__ */
|
|
248
|
+
onClick: () => F(!1)
|
|
249
|
+
}), /* @__PURE__ */ y("div", {
|
|
245
250
|
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",
|
|
246
|
-
children:
|
|
251
|
+
children: B.map((e) => /* @__PURE__ */ b("button", {
|
|
247
252
|
type: "button",
|
|
248
|
-
onClick: () =>
|
|
253
|
+
onClick: () => Xe(e),
|
|
249
254
|
className: "w-full flex items-center justify-between gap-3 px-4 py-3 hover:bg-bg-sunken transition-colors",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
255
|
+
children: [/* @__PURE__ */ b("div", {
|
|
251
256
|
className: "flex items-center gap-3 min-w-0",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ y("div", {
|
|
253
258
|
className: "size-9 rounded-lg bg-bg-sunken flex items-center justify-center flex-shrink-0",
|
|
254
|
-
children: /* @__PURE__ */
|
|
255
|
-
}), /* @__PURE__ */
|
|
259
|
+
children: /* @__PURE__ */ y(d, { className: "size-4 text-text-secondary" })
|
|
260
|
+
}), /* @__PURE__ */ b("div", {
|
|
256
261
|
className: "text-left min-w-0",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ y("p", {
|
|
258
263
|
className: "text-sm font-medium text-text-primary truncate",
|
|
259
264
|
children: e.name
|
|
260
|
-
}), /* @__PURE__ */
|
|
265
|
+
}), /* @__PURE__ */ y("p", {
|
|
261
266
|
className: "text-xs text-text-secondary truncate",
|
|
262
267
|
children: e.email
|
|
263
268
|
})]
|
|
264
269
|
})]
|
|
265
|
-
}),
|
|
270
|
+
}), V?.id === e.id && /* @__PURE__ */ y(f, { className: "size-4 text-text-link flex-shrink-0" })]
|
|
266
271
|
}, e.id))
|
|
267
272
|
})] })]
|
|
268
273
|
}),
|
|
269
|
-
|
|
274
|
+
V && /* @__PURE__ */ b("div", {
|
|
270
275
|
className: "grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4",
|
|
271
276
|
"data-tour": "billing-overview-stats-row",
|
|
272
277
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ y(r, {
|
|
274
279
|
className: "p-3 sm:p-5",
|
|
275
|
-
label:
|
|
276
|
-
value: `${(
|
|
277
|
-
icon: /* @__PURE__ */
|
|
280
|
+
label: S("billing.overview.stats.creditBalance", "Credit Balance"),
|
|
281
|
+
value: `${(V.creditAmount || 0).toLocaleString()} Credits`,
|
|
282
|
+
icon: /* @__PURE__ */ y(_, { className: "size-5" })
|
|
278
283
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ y(r, {
|
|
280
285
|
className: "p-3 sm:p-5",
|
|
281
|
-
label:
|
|
282
|
-
value:
|
|
283
|
-
icon: /* @__PURE__ */
|
|
286
|
+
label: S("billing.overview.stats.activePlans", "Active Plans"),
|
|
287
|
+
value: U.length > 0 ? U.length === 1 ? U[0]?.plan?.name || "1 Plan" : `${U.length} ${S("billing.overview.stats.plansSuffix", "Plans")}` : S("billing.overview.stats.none", "None"),
|
|
288
|
+
icon: /* @__PURE__ */ y(g, { className: "size-5" })
|
|
284
289
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ y(r, {
|
|
286
291
|
className: "p-3 sm:p-5",
|
|
287
|
-
label:
|
|
288
|
-
value:
|
|
289
|
-
icon: /* @__PURE__ */
|
|
292
|
+
label: S("billing.overview.stats.paymentMethods", "Payment Methods"),
|
|
293
|
+
value: H.length,
|
|
294
|
+
icon: /* @__PURE__ */ y(d, { className: "size-5" })
|
|
290
295
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ y(r, {
|
|
292
297
|
className: "p-3 sm:p-5",
|
|
293
|
-
label:
|
|
294
|
-
value:
|
|
295
|
-
icon: /* @__PURE__ */
|
|
298
|
+
label: S("billing.overview.stats.paymentCurrency", "Payment Currency"),
|
|
299
|
+
value: V.currency || "USD",
|
|
300
|
+
icon: /* @__PURE__ */ y(d, { className: "size-5" })
|
|
296
301
|
})
|
|
297
302
|
]
|
|
298
303
|
}),
|
|
299
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ b("div", {
|
|
300
305
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-4 sm:gap-6",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ b("div", {
|
|
302
307
|
className: "lg:col-span-2 space-y-4 sm:space-y-6",
|
|
303
308
|
children: [
|
|
304
|
-
|
|
309
|
+
V && /* @__PURE__ */ y(de, {
|
|
305
310
|
dataTour: "billing-overview-billing-account-card",
|
|
306
|
-
account:
|
|
307
|
-
isDefault:
|
|
308
|
-
onEdit: () =>
|
|
309
|
-
onViewTransactions: () => Q(`/transactions/${
|
|
310
|
-
onViewCreditTransactions: () => Q(`/creditTransactions/${
|
|
311
|
+
account: V,
|
|
312
|
+
isDefault: V.isDefault ?? !1,
|
|
313
|
+
onEdit: () => V && Q(`/settings?billingAccountId=${V.id}`),
|
|
314
|
+
onViewTransactions: () => Q(`/transactions/${V.id}`),
|
|
315
|
+
onViewCreditTransactions: () => Q(`/creditTransactions/${V.id}`)
|
|
311
316
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ b("div", {
|
|
313
318
|
className: "space-y-3",
|
|
314
|
-
children: [
|
|
319
|
+
children: [U.length > 1 && /* @__PURE__ */ b("div", {
|
|
315
320
|
className: "relative",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
321
|
+
children: [/* @__PURE__ */ b("button", {
|
|
317
322
|
type: "button",
|
|
318
|
-
onClick: () =>
|
|
323
|
+
onClick: () => z(!R),
|
|
319
324
|
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",
|
|
320
|
-
children: [/* @__PURE__ */
|
|
325
|
+
children: [/* @__PURE__ */ b("div", {
|
|
321
326
|
className: "flex items-center gap-3",
|
|
322
|
-
children: [/* @__PURE__ */
|
|
327
|
+
children: [/* @__PURE__ */ y("div", {
|
|
323
328
|
className: "size-9 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
324
|
-
children: /* @__PURE__ */
|
|
325
|
-
}), /* @__PURE__ */
|
|
329
|
+
children: /* @__PURE__ */ y(m, { className: "size-4 text-text-link" })
|
|
330
|
+
}), /* @__PURE__ */ b("div", {
|
|
326
331
|
className: "text-left",
|
|
327
|
-
children: [/* @__PURE__ */
|
|
332
|
+
children: [/* @__PURE__ */ b("p", {
|
|
328
333
|
className: "text-sm font-medium text-text-primary",
|
|
329
|
-
children: [Z?.plan?.name ||
|
|
334
|
+
children: [Z?.plan?.name || S("billing.overview.selectSubscription", "Select Subscription"), Z?.plan?.product?.name && /* @__PURE__ */ b("span", {
|
|
330
335
|
className: "text-text-secondary font-normal",
|
|
331
336
|
children: [
|
|
332
337
|
" ",
|
|
@@ -334,185 +339,185 @@ var b = () => {
|
|
|
334
339
|
Z.plan.product.name
|
|
335
340
|
]
|
|
336
341
|
})]
|
|
337
|
-
}), /* @__PURE__ */
|
|
342
|
+
}), /* @__PURE__ */ b("p", {
|
|
338
343
|
className: "text-xs text-text-secondary",
|
|
339
344
|
children: [
|
|
340
|
-
|
|
345
|
+
U.length,
|
|
341
346
|
" ",
|
|
342
|
-
|
|
347
|
+
S("billing.overview.activeSubscriptions", "active subscriptions")
|
|
343
348
|
]
|
|
344
349
|
})]
|
|
345
350
|
})]
|
|
346
|
-
}), /* @__PURE__ */
|
|
347
|
-
}),
|
|
351
|
+
}), /* @__PURE__ */ y(p, { className: `size-4 text-text-muted transition-transform ${R ? "rotate-180" : ""}` })]
|
|
352
|
+
}), R && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("div", {
|
|
348
353
|
className: "fixed inset-0 z-10",
|
|
349
|
-
onClick: () =>
|
|
350
|
-
}), /* @__PURE__ */
|
|
354
|
+
onClick: () => z(!1)
|
|
355
|
+
}), /* @__PURE__ */ y("div", {
|
|
351
356
|
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",
|
|
352
|
-
children:
|
|
357
|
+
children: U.map((e, t) => /* @__PURE__ */ b("button", {
|
|
353
358
|
type: "button",
|
|
354
359
|
onClick: () => {
|
|
355
|
-
|
|
360
|
+
Ne(t), z(!1);
|
|
356
361
|
},
|
|
357
362
|
className: "w-full flex items-center justify-between gap-3 px-4 py-3 hover:bg-bg-sunken transition-colors",
|
|
358
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ b("div", {
|
|
359
364
|
className: "flex items-center gap-3 min-w-0",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
365
|
+
children: [/* @__PURE__ */ y("div", {
|
|
361
366
|
className: "size-9 rounded-lg bg-bg-sunken flex items-center justify-center flex-shrink-0",
|
|
362
|
-
children: /* @__PURE__ */
|
|
363
|
-
}), /* @__PURE__ */
|
|
367
|
+
children: /* @__PURE__ */ y(m, { className: "size-4 text-text-secondary" })
|
|
368
|
+
}), /* @__PURE__ */ b("div", {
|
|
364
369
|
className: "text-left min-w-0",
|
|
365
|
-
children: [/* @__PURE__ */
|
|
370
|
+
children: [/* @__PURE__ */ y("p", {
|
|
366
371
|
className: "text-sm font-medium text-text-primary truncate",
|
|
367
|
-
children: e.plan?.name ||
|
|
368
|
-
}), /* @__PURE__ */
|
|
372
|
+
children: e.plan?.name || S("billing.overview.subscription", "Subscription")
|
|
373
|
+
}), /* @__PURE__ */ b("p", {
|
|
369
374
|
className: "text-xs text-text-secondary truncate",
|
|
370
375
|
children: [
|
|
371
|
-
e.plan?.product?.name ||
|
|
376
|
+
e.plan?.product?.name || S("billing.overview.unknownProduct", "Unknown Product"),
|
|
372
377
|
" ",
|
|
373
378
|
"· ",
|
|
374
|
-
|
|
379
|
+
S("billing.overview.ends", "Ends"),
|
|
375
380
|
" ",
|
|
376
381
|
new Date(e.endDate).toLocaleDateString()
|
|
377
382
|
]
|
|
378
383
|
})]
|
|
379
384
|
})]
|
|
380
|
-
}),
|
|
385
|
+
}), L === t && /* @__PURE__ */ y(f, { className: "size-4 text-text-link flex-shrink-0" })]
|
|
381
386
|
}, e.id))
|
|
382
387
|
})] })]
|
|
383
|
-
}), /* @__PURE__ */
|
|
388
|
+
}), /* @__PURE__ */ y(pe, {
|
|
384
389
|
dataTour: "billing-overview-active-subscription-card",
|
|
385
390
|
subscription: Z,
|
|
386
|
-
onViewDetails: () => Z && Q(a(`/subscriptions/${Z.id}`, Z.billingAccountId ??
|
|
387
|
-
onUpgrade: () => Z && Q(a(`/subscriptions/${Z.id}/upgrade`, Z.billingAccountId ??
|
|
388
|
-
onManage: () =>
|
|
391
|
+
onViewDetails: () => Z && Q(a(`/subscriptions/${Z.id}`, Z.billingAccountId ?? V?.id)),
|
|
392
|
+
onUpgrade: () => Z && Q(a(`/subscriptions/${Z.id}/upgrade`, Z.billingAccountId ?? V?.id)),
|
|
393
|
+
onManage: () => V && Q(`/subscriptions?billingAccountId=${V.id}`),
|
|
389
394
|
onPurchasePlan: () => Q("/plans")
|
|
390
395
|
})]
|
|
391
396
|
}),
|
|
392
|
-
|
|
397
|
+
V && /* @__PURE__ */ y(fe, {
|
|
393
398
|
dataTour: "billing-overview-payment-methods-section",
|
|
394
|
-
paymentMethods:
|
|
395
|
-
billingAccountId:
|
|
396
|
-
onAddPaymentMethod:
|
|
397
|
-
onSetDefault:
|
|
398
|
-
onDelete:
|
|
399
|
-
isLoading:
|
|
399
|
+
paymentMethods: H,
|
|
400
|
+
billingAccountId: V.id,
|
|
401
|
+
onAddPaymentMethod: Ke,
|
|
402
|
+
onSetDefault: Je,
|
|
403
|
+
onDelete: Ye,
|
|
404
|
+
isLoading: G
|
|
400
405
|
})
|
|
401
406
|
]
|
|
402
|
-
}), /* @__PURE__ */
|
|
407
|
+
}), /* @__PURE__ */ b("div", {
|
|
403
408
|
className: "space-y-4 sm:space-y-6",
|
|
404
|
-
children: [/* @__PURE__ */
|
|
409
|
+
children: [/* @__PURE__ */ b("section", {
|
|
405
410
|
className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 p-4 sm:p-5",
|
|
406
411
|
"data-tour": "billing-overview-quick-actions",
|
|
407
|
-
children: [/* @__PURE__ */
|
|
412
|
+
children: [/* @__PURE__ */ y("h3", {
|
|
408
413
|
className: "font-semibold text-text-primary mb-4",
|
|
409
|
-
children:
|
|
410
|
-
}), /* @__PURE__ */
|
|
414
|
+
children: S("billing.overview.quickActions", "Quick Actions")
|
|
415
|
+
}), /* @__PURE__ */ b("div", {
|
|
411
416
|
className: "space-y-1.5",
|
|
412
417
|
children: [
|
|
413
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ b("button", {
|
|
414
419
|
type: "button",
|
|
415
|
-
onClick: () =>
|
|
416
|
-
disabled: !
|
|
420
|
+
onClick: () => V && Q(`/transactions/${V.id}`),
|
|
421
|
+
disabled: !V,
|
|
417
422
|
className: "w-full flex items-center gap-3 px-3 py-2.5 text-sm text-left text-text-primary hover:bg-bg-sunken rounded-button transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
418
|
-
children: [/* @__PURE__ */
|
|
423
|
+
children: [/* @__PURE__ */ y("div", {
|
|
419
424
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
420
|
-
children: /* @__PURE__ */
|
|
421
|
-
}),
|
|
425
|
+
children: /* @__PURE__ */ y(Ee, { className: "size-4 text-status-info-text" })
|
|
426
|
+
}), S("billing.overview.viewTransactions", "View Transactions")]
|
|
422
427
|
}),
|
|
423
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ b("button", {
|
|
424
429
|
type: "button",
|
|
425
|
-
onClick: () =>
|
|
426
|
-
disabled: !
|
|
430
|
+
onClick: () => V && Q(`/creditTransactions/${V.id}`),
|
|
431
|
+
disabled: !V,
|
|
427
432
|
className: "w-full flex items-center gap-3 px-3 py-2.5 text-sm text-left text-text-primary hover:bg-bg-sunken rounded-button transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
428
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ y("div", {
|
|
429
434
|
className: "size-9 rounded-lg bg-status-warning-bg-subtle flex items-center justify-center",
|
|
430
|
-
children: /* @__PURE__ */
|
|
431
|
-
}),
|
|
435
|
+
children: /* @__PURE__ */ y(_, { className: "size-4 text-status-warning-text" })
|
|
436
|
+
}), S("billing.overview.creditHistory", "Credit History")]
|
|
432
437
|
}),
|
|
433
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ b("button", {
|
|
434
439
|
type: "button",
|
|
435
440
|
onClick: () => Q("/checkout/credits"),
|
|
436
441
|
className: "w-full flex items-center gap-3 px-3 py-2.5 text-sm text-left text-text-primary hover:bg-bg-sunken rounded-button transition-colors",
|
|
437
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ y("div", {
|
|
438
443
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
439
|
-
children: /* @__PURE__ */
|
|
440
|
-
}),
|
|
444
|
+
children: /* @__PURE__ */ y(we, { className: "size-4 text-status-success-text" })
|
|
445
|
+
}), S("billing.overview.purchaseCredits", "Purchase Credits")]
|
|
441
446
|
}),
|
|
442
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ b("button", {
|
|
443
448
|
type: "button",
|
|
444
|
-
onClick: () =>
|
|
445
|
-
disabled: !
|
|
449
|
+
onClick: () => V && Q(`/usage?billingAccountId=${V.id}`),
|
|
450
|
+
disabled: !V,
|
|
446
451
|
className: "w-full flex items-center gap-3 px-3 py-2.5 text-sm text-left text-text-primary hover:bg-bg-sunken rounded-button transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
452
|
+
children: [/* @__PURE__ */ y("div", {
|
|
448
453
|
className: "size-9 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
449
|
-
children: /* @__PURE__ */
|
|
450
|
-
}),
|
|
454
|
+
children: /* @__PURE__ */ y(Se, { className: "size-4 text-text-link" })
|
|
455
|
+
}), S("billing.overview.usageAnalytics", "Usage Analytics")]
|
|
451
456
|
})
|
|
452
457
|
]
|
|
453
458
|
})]
|
|
454
|
-
}), !
|
|
459
|
+
}), !W && /* @__PURE__ */ b(ye, {
|
|
455
460
|
treatment: "glass",
|
|
456
461
|
glow: !0,
|
|
457
462
|
className: "p-4 sm:p-5",
|
|
458
|
-
children: [/* @__PURE__ */
|
|
463
|
+
children: [/* @__PURE__ */ b("div", {
|
|
459
464
|
className: "flex items-start gap-3 mb-4",
|
|
460
|
-
children: [/* @__PURE__ */
|
|
465
|
+
children: [/* @__PURE__ */ y("div", {
|
|
461
466
|
className: "size-10 rounded-lg bg-bg-surface flex items-center justify-center flex-shrink-0 shadow-elevation-1",
|
|
462
|
-
children: /* @__PURE__ */
|
|
463
|
-
}), /* @__PURE__ */
|
|
467
|
+
children: /* @__PURE__ */ y(De, { className: "size-5 text-text-link" })
|
|
468
|
+
}), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("h3", {
|
|
464
469
|
className: "font-semibold text-text-primary",
|
|
465
|
-
children:
|
|
466
|
-
}), /* @__PURE__ */
|
|
470
|
+
children: S("billing.overview.getStarted", "Get Started")
|
|
471
|
+
}), /* @__PURE__ */ y("p", {
|
|
467
472
|
className: "text-sm text-text-secondary mt-1",
|
|
468
|
-
children:
|
|
473
|
+
children: S("billing.overview.getStartedDescription", "Choose a plan that fits your needs to unlock all features")
|
|
469
474
|
})] })]
|
|
470
|
-
}), /* @__PURE__ */
|
|
475
|
+
}), /* @__PURE__ */ b(ve, {
|
|
471
476
|
type: "button",
|
|
472
477
|
onClick: () => Q("/plans"),
|
|
473
478
|
className: "w-full",
|
|
474
|
-
children: [
|
|
479
|
+
children: [S("billing.overview.browsePlans", "Browse Plans"), /* @__PURE__ */ y(Ce, { className: "size-4" })]
|
|
475
480
|
})]
|
|
476
481
|
})]
|
|
477
482
|
})]
|
|
478
483
|
}),
|
|
479
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ y(me, {
|
|
480
485
|
dataTour: "billing-overview-recommended-addons",
|
|
481
|
-
addons:
|
|
482
|
-
hasSubscription:
|
|
486
|
+
addons: Pe,
|
|
487
|
+
hasSubscription: W,
|
|
483
488
|
onViewAddon: (e) => Q(`/addons/${e}`),
|
|
484
489
|
onPurchaseAddon: (e) => Q(`/addons/${e}?action=purchase`),
|
|
485
490
|
onViewAllAddons: () => Q("/addons"),
|
|
486
|
-
onAddToCart:
|
|
487
|
-
isInCart:
|
|
488
|
-
getCartQuantity:
|
|
489
|
-
onUpdateQuantity:
|
|
490
|
-
onRemoveFromCart:
|
|
491
|
+
onAddToCart: Qe,
|
|
492
|
+
isInCart: $e,
|
|
493
|
+
getCartQuantity: et,
|
|
494
|
+
onUpdateQuantity: tt,
|
|
495
|
+
onRemoveFromCart: nt,
|
|
491
496
|
maxAddons: 3,
|
|
492
|
-
isLoading:
|
|
497
|
+
isLoading: Fe
|
|
493
498
|
}),
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
je && /* @__PURE__ */
|
|
496
|
-
/* @__PURE__ */
|
|
497
|
-
isOpen:
|
|
499
|
+
/* @__PURE__ */ y(oe, {}),
|
|
500
|
+
je && /* @__PURE__ */ y(ne, { onDismiss: () => N(!1) }),
|
|
501
|
+
/* @__PURE__ */ y(i, {
|
|
502
|
+
isOpen: k,
|
|
498
503
|
onClose: () => {
|
|
499
|
-
|
|
504
|
+
A(!1), M(null);
|
|
500
505
|
},
|
|
501
|
-
onSubmit:
|
|
502
|
-
isSubmitting:
|
|
503
|
-
error:
|
|
506
|
+
onSubmit: Ge,
|
|
507
|
+
isSubmitting: We,
|
|
508
|
+
error: j
|
|
504
509
|
}),
|
|
505
|
-
|
|
510
|
+
V && /* @__PURE__ */ y(he, {
|
|
506
511
|
isOpen: Me,
|
|
507
|
-
onClose: () =>
|
|
508
|
-
billingAccountId:
|
|
509
|
-
currency:
|
|
510
|
-
country:
|
|
511
|
-
onSuccess:
|
|
512
|
+
onClose: () => I(!1),
|
|
513
|
+
billingAccountId: V.id,
|
|
514
|
+
currency: V.currency,
|
|
515
|
+
country: V.billingAddresses?.[0]?.country,
|
|
516
|
+
onSuccess: qe
|
|
512
517
|
})
|
|
513
518
|
]
|
|
514
|
-
}) : /* @__PURE__ */
|
|
519
|
+
}) : /* @__PURE__ */ y(te, { message: "You don't have permission to view billing information." });
|
|
515
520
|
};
|
|
516
|
-
export {
|
|
521
|
+
export { x as OverviewPage };
|
|
517
522
|
|
|
518
523
|
//# sourceMappingURL=OverviewPage.js.map
|