@burdenoff/microfe-billing 2026.1109.1 → 2026.1112.2
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/BillingUserRoutes.js +202 -188
- package/dist/billing/BillingUserRoutes.js.map +1 -1
- package/dist/billing/hooks/useBillingVariant.d.ts +6 -0
- package/dist/billing/hooks/useBillingVariant.js +8 -0
- package/dist/billing/hooks/useBillingVariant.js.map +1 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +182 -150
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +169 -140
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +191 -156
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +160 -157
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +153 -126
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +110 -109
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +220 -181
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +4 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/providers/BillingProvider.js +16 -15
- package/dist/billing/providers/BillingProvider.js.map +1 -1
- package/dist/billing/shared/components/MoneyActionDialog.d.ts +27 -0
- package/dist/billing/shared/components/MoneyActionDialog.js +53 -0
- package/dist/billing/shared/components/MoneyActionDialog.js.map +1 -0
- package/dist/billing/shared/components/index.d.ts +1 -0
- package/dist/billing/shared/components/index.js +2 -1
- package/dist/billing/shared/utils/accessRules.d.ts +16 -0
- package/dist/billing/shared/utils/accessRules.js +10 -0
- package/dist/billing/shared/utils/accessRules.js.map +1 -0
- package/dist/billing/types/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -3,23 +3,25 @@ import { AccessDenied as e } from "./shared/components/AccessDenied.js";
|
|
|
3
3
|
import { useBillingEventEmitter as t } from "./hooks/useBillingEventEmitter.js";
|
|
4
4
|
import { useBillingPermissions as n } from "./hooks/useBillingPermissions.js";
|
|
5
5
|
import { useBilling as r } from "./providers/BillingProvider.js";
|
|
6
|
-
import {
|
|
6
|
+
import { isRouteAllowed as i } from "./shared/utils/accessRules.js";
|
|
7
|
+
import { useIsFluidgridsVariant as a } from "./hooks/useBillingVariant.js";
|
|
8
|
+
import { OverviewPage as o } from "./modules/dashboard/pages/OverviewPage.js";
|
|
7
9
|
import "./modules/dashboard/index.js";
|
|
8
|
-
import { Suspense as
|
|
9
|
-
import { FeatureGate as
|
|
10
|
-
import { Navigate as
|
|
11
|
-
import { jsx as
|
|
10
|
+
import { Suspense as s, lazy as c, useEffect as l } from "react";
|
|
11
|
+
import { FeatureGate as u } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
12
|
+
import { Navigate as d, Route as f, Routes as p, useLocation as m, useNavigate as h } from "react-router";
|
|
13
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
12
14
|
// src/billing/BillingUserRoutes.tsx
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
var v = c(() => import("./modules/subscriptions/index.js").then((e) => ({ default: e.SubscriptionsListPage }))), y = c(() => import("./modules/subscriptions/index.js").then((e) => ({ default: e.SubscriptionDetailPage }))), b = c(() => import("./modules/subscriptions/index.js").then((e) => ({ default: e.UpgradeSubscriptionPage }))), x = c(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlansBrowsePage }))), S = c(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanBrowseDetailPage }))), C = c(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonsBrowsePage }))), w = c(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonBrowseDetailPage }))), T = c(() => import("./modules/billing/index.js").then((e) => ({ default: e.InvoicesListPage }))), E = c(() => import("./modules/billing/index.js").then((e) => ({ default: e.InvoiceDetailPage }))), D = c(() => import("./modules/billing/index.js").then((e) => ({ default: e.TransactionsPage }))), O = c(() => import("./modules/billing/index.js").then((e) => ({ default: e.UserRefundsPage }))), k = c(() => import("./modules/billing/index.js").then((e) => ({ default: e.PaymentMethodsPage }))), A = c(() => import("./modules/credits/index.js").then((e) => ({ default: e.CreditsPage }))), j = c(() => import("./modules/credits/index.js").then((e) => ({ default: e.CreditTransactionsPage }))), M = c(() => import("./modules/credits/index.js").then((e) => ({ default: e.CreditWithdrawalPage }))), N = c(() => import("./modules/usage/index.js").then((e) => ({ default: e.UsagePage }))), P = c(() => import("./modules/checkout/index.js").then((e) => ({ default: e.CheckoutPage }))), F = c(() => import("./modules/store/index.js").then((e) => ({ default: e.StoreCheckoutPage }))), I = c(() => import("./modules/settings/index.js").then((e) => ({ default: e.SettingsPage }))), L = c(() => import("./modules/settings/index.js").then((e) => ({ default: e.TeamPermissionsPage }))), R = c(() => import("./modules/affiliate/index.js").then((e) => ({ default: e.AffiliateDashboardPage }))), z = c(() => import("./modules/earnings/index.js").then((e) => ({ default: e.EarningsPage }))), B = c(() => import("./modules/earnings/index.js").then((e) => ({ default: e.PayoutsPage })));
|
|
16
|
+
function V() {
|
|
17
|
+
return /* @__PURE__ */ g("div", {
|
|
16
18
|
className: "flex min-h-[400px] items-center justify-center",
|
|
17
|
-
children: /* @__PURE__ */
|
|
19
|
+
children: /* @__PURE__ */ g("div", { className: "size-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
|
|
18
20
|
});
|
|
19
21
|
}
|
|
20
|
-
function
|
|
21
|
-
let { basePath: e } = r(), { search: t } =
|
|
22
|
-
return
|
|
22
|
+
function H() {
|
|
23
|
+
let { basePath: e } = r(), { search: t } = m(), n = h(), i = e && e !== "/" ? e.replace(/\/$/, "") : "";
|
|
24
|
+
return l(() => {
|
|
23
25
|
n(`${i}/overview${t}`, { replace: !0 });
|
|
24
26
|
}, [
|
|
25
27
|
i,
|
|
@@ -27,19 +29,31 @@ function B() {
|
|
|
27
29
|
t
|
|
28
30
|
]), null;
|
|
29
31
|
}
|
|
30
|
-
function
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
+
function U({ title: e, featureFlag: t }) {
|
|
33
|
+
return a() ? /* @__PURE__ */ g("div", {
|
|
32
34
|
className: "flex min-h-[400px] items-center justify-center p-6",
|
|
33
|
-
children: /* @__PURE__ */
|
|
35
|
+
children: /* @__PURE__ */ _("div", {
|
|
34
36
|
className: "max-w-md rounded-lg border border-border-subtle bg-bg-surface p-6 text-center shadow-sm",
|
|
35
|
-
children: [/* @__PURE__ */
|
|
37
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
38
|
+
className: "text-lg font-semibold text-text-primary",
|
|
39
|
+
children: [e, " isn't available"]
|
|
40
|
+
}), /* @__PURE__ */ g("p", {
|
|
41
|
+
className: "mt-2 text-sm text-text-secondary",
|
|
42
|
+
children: "This part of billing isn't turned on for your organization yet. Ask an administrator to turn it on."
|
|
43
|
+
})]
|
|
44
|
+
})
|
|
45
|
+
}) : /* @__PURE__ */ g("div", {
|
|
46
|
+
className: "flex min-h-[400px] items-center justify-center p-6",
|
|
47
|
+
children: /* @__PURE__ */ _("div", {
|
|
48
|
+
className: "max-w-md rounded-lg border border-border-subtle bg-bg-surface p-6 text-center shadow-sm",
|
|
49
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
36
50
|
className: "text-lg font-semibold text-text-primary",
|
|
37
51
|
children: [e, " is not enabled"]
|
|
38
|
-
}), /* @__PURE__ */
|
|
52
|
+
}), /* @__PURE__ */ _("p", {
|
|
39
53
|
className: "mt-2 text-sm text-text-secondary",
|
|
40
54
|
children: [
|
|
41
55
|
"Ask an administrator to enable the ",
|
|
42
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ g("span", {
|
|
43
57
|
className: "font-mono",
|
|
44
58
|
children: t
|
|
45
59
|
}),
|
|
@@ -50,429 +64,429 @@ function V({ title: e, featureFlag: t }) {
|
|
|
50
64
|
})
|
|
51
65
|
});
|
|
52
66
|
}
|
|
53
|
-
function
|
|
54
|
-
let
|
|
55
|
-
return
|
|
56
|
-
|
|
67
|
+
function W({ title: r, featureFlag: a, permission: o, eventName: s, children: c }) {
|
|
68
|
+
let d = n(), { emit: f } = t(), p = i(o, d);
|
|
69
|
+
return l(() => {
|
|
70
|
+
p && f(s, { source: "BillingUserRoutes" });
|
|
57
71
|
}, [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
]),
|
|
62
|
-
flag:
|
|
72
|
+
f,
|
|
73
|
+
s,
|
|
74
|
+
p
|
|
75
|
+
]), o !== null && d.isLoading ? /* @__PURE__ */ g(V, {}) : /* @__PURE__ */ g(u, {
|
|
76
|
+
flag: a,
|
|
63
77
|
defaultValue: !0,
|
|
64
|
-
fallback: /* @__PURE__ */
|
|
78
|
+
fallback: /* @__PURE__ */ g(U, {
|
|
65
79
|
title: r,
|
|
66
|
-
featureFlag:
|
|
80
|
+
featureFlag: a
|
|
67
81
|
}),
|
|
68
|
-
children:
|
|
82
|
+
children: p ? c : /* @__PURE__ */ g(e, { message: `You don't have permission to access ${r}.` })
|
|
69
83
|
});
|
|
70
84
|
}
|
|
71
|
-
function
|
|
72
|
-
return /* @__PURE__ */
|
|
85
|
+
function G(e) {
|
|
86
|
+
return /* @__PURE__ */ g(W, { ...e });
|
|
73
87
|
}
|
|
74
|
-
function
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
88
|
+
function K() {
|
|
89
|
+
return /* @__PURE__ */ _(p, { children: [
|
|
90
|
+
/* @__PURE__ */ g(f, {
|
|
77
91
|
index: !0,
|
|
78
|
-
element: /* @__PURE__ */
|
|
92
|
+
element: /* @__PURE__ */ g(d, {
|
|
79
93
|
to: "overview",
|
|
80
94
|
replace: !0
|
|
81
95
|
})
|
|
82
96
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ g(f, {
|
|
84
98
|
path: "overview",
|
|
85
|
-
element:
|
|
99
|
+
element: G({
|
|
86
100
|
title: "Billing overview",
|
|
87
101
|
featureFlag: "billing.overview",
|
|
88
102
|
permission: "canViewBillingAccount",
|
|
89
103
|
eventName: "billing.billing_account.viewed",
|
|
90
|
-
children: /* @__PURE__ */
|
|
104
|
+
children: /* @__PURE__ */ g(o, {})
|
|
91
105
|
})
|
|
92
106
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ g(f, {
|
|
94
108
|
path: "subscriptions",
|
|
95
|
-
element: /* @__PURE__ */
|
|
109
|
+
element: /* @__PURE__ */ g(W, {
|
|
96
110
|
title: "Subscriptions",
|
|
97
111
|
featureFlag: "billing.subscriptions",
|
|
98
112
|
permission: "canViewSubscriptions",
|
|
99
113
|
eventName: "billing.subscription.viewed",
|
|
100
|
-
children: /* @__PURE__ */
|
|
101
|
-
fallback: /* @__PURE__ */
|
|
102
|
-
children: /* @__PURE__ */
|
|
114
|
+
children: /* @__PURE__ */ g(s, {
|
|
115
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
116
|
+
children: /* @__PURE__ */ g(v, {})
|
|
103
117
|
})
|
|
104
118
|
})
|
|
105
119
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ g(f, {
|
|
107
121
|
path: "subscriptions/:subscriptionId",
|
|
108
|
-
element: /* @__PURE__ */
|
|
122
|
+
element: /* @__PURE__ */ g(W, {
|
|
109
123
|
title: "Subscription details",
|
|
110
124
|
featureFlag: "billing.subscriptions",
|
|
111
125
|
permission: "canViewSubscriptions",
|
|
112
126
|
eventName: "billing.subscription.viewed",
|
|
113
|
-
children: /* @__PURE__ */
|
|
114
|
-
fallback: /* @__PURE__ */
|
|
115
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ g(s, {
|
|
128
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
129
|
+
children: /* @__PURE__ */ g(y, {})
|
|
116
130
|
})
|
|
117
131
|
})
|
|
118
132
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ g(f, {
|
|
120
134
|
path: "subscriptions/:subscriptionId/upgrade",
|
|
121
|
-
element: /* @__PURE__ */
|
|
135
|
+
element: /* @__PURE__ */ g(W, {
|
|
122
136
|
title: "Subscription upgrade",
|
|
123
137
|
featureFlag: "billing.subscriptions.upgrade",
|
|
124
138
|
permission: "canCreateSubscription",
|
|
125
139
|
eventName: "billing.subscription.viewed",
|
|
126
|
-
children: /* @__PURE__ */
|
|
127
|
-
fallback: /* @__PURE__ */
|
|
128
|
-
children: /* @__PURE__ */
|
|
140
|
+
children: /* @__PURE__ */ g(s, {
|
|
141
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
142
|
+
children: /* @__PURE__ */ g(b, {})
|
|
129
143
|
})
|
|
130
144
|
})
|
|
131
145
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ g(f, {
|
|
133
147
|
path: "plans",
|
|
134
|
-
element: /* @__PURE__ */
|
|
148
|
+
element: /* @__PURE__ */ g(W, {
|
|
135
149
|
title: "Plans",
|
|
136
150
|
featureFlag: "billing.plans",
|
|
137
151
|
permission: "canViewPlans",
|
|
138
152
|
eventName: "billing.plan.viewed",
|
|
139
|
-
children: /* @__PURE__ */
|
|
140
|
-
fallback: /* @__PURE__ */
|
|
141
|
-
children: /* @__PURE__ */
|
|
153
|
+
children: /* @__PURE__ */ g(s, {
|
|
154
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
155
|
+
children: /* @__PURE__ */ g(x, {})
|
|
142
156
|
})
|
|
143
157
|
})
|
|
144
158
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ g(f, {
|
|
146
160
|
path: "plans/:planId",
|
|
147
|
-
element: /* @__PURE__ */
|
|
161
|
+
element: /* @__PURE__ */ g(W, {
|
|
148
162
|
title: "Plan details",
|
|
149
163
|
featureFlag: "billing.plans",
|
|
150
164
|
permission: "canViewPlans",
|
|
151
165
|
eventName: "billing.plan.viewed",
|
|
152
|
-
children: /* @__PURE__ */
|
|
153
|
-
fallback: /* @__PURE__ */
|
|
154
|
-
children: /* @__PURE__ */
|
|
166
|
+
children: /* @__PURE__ */ g(s, {
|
|
167
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
168
|
+
children: /* @__PURE__ */ g(S, {})
|
|
155
169
|
})
|
|
156
170
|
})
|
|
157
171
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ g(f, {
|
|
159
173
|
path: "addons",
|
|
160
|
-
element: /* @__PURE__ */
|
|
174
|
+
element: /* @__PURE__ */ g(W, {
|
|
161
175
|
title: "Addons",
|
|
162
176
|
featureFlag: "billing.addons",
|
|
163
177
|
permission: "canViewAddons",
|
|
164
178
|
eventName: "billing.addon.viewed",
|
|
165
|
-
children: /* @__PURE__ */
|
|
166
|
-
fallback: /* @__PURE__ */
|
|
167
|
-
children: /* @__PURE__ */
|
|
179
|
+
children: /* @__PURE__ */ g(s, {
|
|
180
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
181
|
+
children: /* @__PURE__ */ g(C, {})
|
|
168
182
|
})
|
|
169
183
|
})
|
|
170
184
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ g(f, {
|
|
172
186
|
path: "addons/:addonId",
|
|
173
|
-
element: /* @__PURE__ */
|
|
187
|
+
element: /* @__PURE__ */ g(W, {
|
|
174
188
|
title: "Addon details",
|
|
175
189
|
featureFlag: "billing.addons",
|
|
176
190
|
permission: "canViewAddons",
|
|
177
191
|
eventName: "billing.addon.viewed",
|
|
178
|
-
children: /* @__PURE__ */
|
|
179
|
-
fallback: /* @__PURE__ */
|
|
180
|
-
children: /* @__PURE__ */
|
|
192
|
+
children: /* @__PURE__ */ g(s, {
|
|
193
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
194
|
+
children: /* @__PURE__ */ g(w, {})
|
|
181
195
|
})
|
|
182
196
|
})
|
|
183
197
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ g(f, {
|
|
185
199
|
path: "checkout",
|
|
186
|
-
element: /* @__PURE__ */
|
|
200
|
+
element: /* @__PURE__ */ g(W, {
|
|
187
201
|
title: "Checkout",
|
|
188
202
|
featureFlag: "billing.checkout",
|
|
189
203
|
permission: "canProcessPayment",
|
|
190
204
|
eventName: "billing.checkout.viewed",
|
|
191
|
-
children: /* @__PURE__ */
|
|
192
|
-
fallback: /* @__PURE__ */
|
|
193
|
-
children: /* @__PURE__ */
|
|
205
|
+
children: /* @__PURE__ */ g(s, {
|
|
206
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
207
|
+
children: /* @__PURE__ */ g(P, {})
|
|
194
208
|
})
|
|
195
209
|
})
|
|
196
210
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ g(f, {
|
|
198
212
|
path: "checkout/:planId",
|
|
199
|
-
element: /* @__PURE__ */
|
|
213
|
+
element: /* @__PURE__ */ g(W, {
|
|
200
214
|
title: "Plan checkout",
|
|
201
215
|
featureFlag: "billing.checkout",
|
|
202
216
|
permission: "canProcessPayment",
|
|
203
217
|
eventName: "billing.checkout.viewed",
|
|
204
|
-
children: /* @__PURE__ */
|
|
205
|
-
fallback: /* @__PURE__ */
|
|
206
|
-
children: /* @__PURE__ */
|
|
218
|
+
children: /* @__PURE__ */ g(s, {
|
|
219
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
220
|
+
children: /* @__PURE__ */ g(P, {})
|
|
207
221
|
})
|
|
208
222
|
})
|
|
209
223
|
}),
|
|
210
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ g(f, {
|
|
211
225
|
path: "checkout/credits",
|
|
212
|
-
element: /* @__PURE__ */
|
|
226
|
+
element: /* @__PURE__ */ g(W, {
|
|
213
227
|
title: "Credits checkout",
|
|
214
228
|
featureFlag: "billing.checkout.credits",
|
|
215
229
|
permission: "canProcessPayment",
|
|
216
230
|
eventName: "billing.checkout.viewed",
|
|
217
|
-
children: /* @__PURE__ */
|
|
218
|
-
fallback: /* @__PURE__ */
|
|
219
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ g(s, {
|
|
232
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
233
|
+
children: /* @__PURE__ */ g(P, {})
|
|
220
234
|
})
|
|
221
235
|
})
|
|
222
236
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ g(f, {
|
|
224
238
|
path: "checkout/addon/:addonId",
|
|
225
|
-
element: /* @__PURE__ */
|
|
239
|
+
element: /* @__PURE__ */ g(W, {
|
|
226
240
|
title: "Addon checkout",
|
|
227
241
|
featureFlag: "billing.checkout.addons",
|
|
228
242
|
permission: "canProcessPayment",
|
|
229
243
|
eventName: "billing.checkout.viewed",
|
|
230
|
-
children: /* @__PURE__ */
|
|
231
|
-
fallback: /* @__PURE__ */
|
|
232
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ g(s, {
|
|
245
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
246
|
+
children: /* @__PURE__ */ g(P, {})
|
|
233
247
|
})
|
|
234
248
|
})
|
|
235
249
|
}),
|
|
236
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ g(f, {
|
|
237
251
|
path: "checkout/addons",
|
|
238
|
-
element: /* @__PURE__ */
|
|
252
|
+
element: /* @__PURE__ */ g(W, {
|
|
239
253
|
title: "Addons checkout",
|
|
240
254
|
featureFlag: "billing.checkout.addons",
|
|
241
255
|
permission: "canProcessPayment",
|
|
242
256
|
eventName: "billing.checkout.viewed",
|
|
243
|
-
children: /* @__PURE__ */
|
|
244
|
-
fallback: /* @__PURE__ */
|
|
245
|
-
children: /* @__PURE__ */
|
|
257
|
+
children: /* @__PURE__ */ g(s, {
|
|
258
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
259
|
+
children: /* @__PURE__ */ g(P, {})
|
|
246
260
|
})
|
|
247
261
|
})
|
|
248
262
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ g(f, {
|
|
250
264
|
path: "checkout/store/:storeOrderId",
|
|
251
|
-
element: /* @__PURE__ */
|
|
265
|
+
element: /* @__PURE__ */ g(W, {
|
|
252
266
|
title: "Store order checkout",
|
|
253
267
|
featureFlag: "billing.checkout.store",
|
|
254
268
|
permission: "canProcessPayment",
|
|
255
269
|
eventName: "billing.checkout.viewed",
|
|
256
|
-
children: /* @__PURE__ */
|
|
257
|
-
fallback: /* @__PURE__ */
|
|
258
|
-
children: /* @__PURE__ */
|
|
270
|
+
children: /* @__PURE__ */ g(s, {
|
|
271
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
272
|
+
children: /* @__PURE__ */ g(P, {})
|
|
259
273
|
})
|
|
260
274
|
})
|
|
261
275
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ g(f, {
|
|
263
277
|
path: "store/:orderId",
|
|
264
|
-
element: /* @__PURE__ */
|
|
278
|
+
element: /* @__PURE__ */ g(W, {
|
|
265
279
|
title: "Store checkout",
|
|
266
280
|
featureFlag: "billing.checkout.store",
|
|
267
281
|
permission: "canProcessPayment",
|
|
268
282
|
eventName: "billing.checkout.viewed",
|
|
269
|
-
children: /* @__PURE__ */
|
|
270
|
-
fallback: /* @__PURE__ */
|
|
271
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ g(s, {
|
|
284
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
285
|
+
children: /* @__PURE__ */ g(F, {})
|
|
272
286
|
})
|
|
273
287
|
})
|
|
274
288
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ g(f, {
|
|
276
290
|
path: "refunds",
|
|
277
|
-
element: /* @__PURE__ */
|
|
291
|
+
element: /* @__PURE__ */ g(W, {
|
|
278
292
|
title: "Refunds",
|
|
279
293
|
featureFlag: "billing.transactions",
|
|
280
294
|
permission: "canViewPayments",
|
|
281
295
|
eventName: "billing.transaction.viewed",
|
|
282
|
-
children: /* @__PURE__ */
|
|
283
|
-
fallback: /* @__PURE__ */
|
|
284
|
-
children: /* @__PURE__ */
|
|
296
|
+
children: /* @__PURE__ */ g(s, {
|
|
297
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
298
|
+
children: /* @__PURE__ */ g(O, {})
|
|
285
299
|
})
|
|
286
300
|
})
|
|
287
301
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ g(f, {
|
|
289
303
|
path: "invoices",
|
|
290
|
-
element: /* @__PURE__ */
|
|
304
|
+
element: /* @__PURE__ */ g(W, {
|
|
291
305
|
title: "Invoices",
|
|
292
306
|
featureFlag: "billing.invoices",
|
|
293
307
|
permission: "canViewInvoices",
|
|
294
308
|
eventName: "billing.invoice.viewed",
|
|
295
|
-
children: /* @__PURE__ */
|
|
296
|
-
fallback: /* @__PURE__ */
|
|
297
|
-
children: /* @__PURE__ */
|
|
309
|
+
children: /* @__PURE__ */ g(s, {
|
|
310
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
311
|
+
children: /* @__PURE__ */ g(T, {})
|
|
298
312
|
})
|
|
299
313
|
})
|
|
300
314
|
}),
|
|
301
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ g(f, {
|
|
302
316
|
path: "invoices/:invoiceId",
|
|
303
|
-
element: /* @__PURE__ */
|
|
317
|
+
element: /* @__PURE__ */ g(W, {
|
|
304
318
|
title: "Invoice details",
|
|
305
319
|
featureFlag: "billing.invoices",
|
|
306
320
|
permission: "canViewInvoices",
|
|
307
321
|
eventName: "billing.invoice.viewed",
|
|
308
|
-
children: /* @__PURE__ */
|
|
309
|
-
fallback: /* @__PURE__ */
|
|
310
|
-
children: /* @__PURE__ */
|
|
322
|
+
children: /* @__PURE__ */ g(s, {
|
|
323
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
324
|
+
children: /* @__PURE__ */ g(E, {})
|
|
311
325
|
})
|
|
312
326
|
})
|
|
313
327
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ g(f, {
|
|
315
329
|
path: "payment-methods",
|
|
316
|
-
element: /* @__PURE__ */
|
|
330
|
+
element: /* @__PURE__ */ g(W, {
|
|
317
331
|
title: "Payment methods",
|
|
318
332
|
featureFlag: "billing.payment_methods",
|
|
319
333
|
permission: "canViewPaymentMethods",
|
|
320
334
|
eventName: "billing.payment_method.viewed",
|
|
321
|
-
children: /* @__PURE__ */
|
|
322
|
-
fallback: /* @__PURE__ */
|
|
323
|
-
children: /* @__PURE__ */
|
|
335
|
+
children: /* @__PURE__ */ g(s, {
|
|
336
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
337
|
+
children: /* @__PURE__ */ g(k, {})
|
|
324
338
|
})
|
|
325
339
|
})
|
|
326
340
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ g(f, {
|
|
328
342
|
path: "payment-methods/add",
|
|
329
|
-
element: /* @__PURE__ */
|
|
343
|
+
element: /* @__PURE__ */ g(W, {
|
|
330
344
|
title: "Add payment method",
|
|
331
345
|
featureFlag: "billing.payment_methods",
|
|
332
346
|
permission: "canManagePaymentMethods",
|
|
333
347
|
eventName: "billing.payment_method.viewed",
|
|
334
|
-
children: /* @__PURE__ */
|
|
335
|
-
fallback: /* @__PURE__ */
|
|
336
|
-
children: /* @__PURE__ */
|
|
348
|
+
children: /* @__PURE__ */ g(s, {
|
|
349
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
350
|
+
children: /* @__PURE__ */ g(k, {})
|
|
337
351
|
})
|
|
338
352
|
})
|
|
339
353
|
}),
|
|
340
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ g(f, {
|
|
341
355
|
path: "credits",
|
|
342
|
-
element: /* @__PURE__ */
|
|
356
|
+
element: /* @__PURE__ */ g(W, {
|
|
343
357
|
title: "Credits",
|
|
344
358
|
featureFlag: "billing.credits",
|
|
345
359
|
permission: "canViewCredits",
|
|
346
360
|
eventName: "billing.credit.viewed",
|
|
347
|
-
children: /* @__PURE__ */
|
|
348
|
-
fallback: /* @__PURE__ */
|
|
349
|
-
children: /* @__PURE__ */
|
|
361
|
+
children: /* @__PURE__ */ g(s, {
|
|
362
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
363
|
+
children: /* @__PURE__ */ g(A, {})
|
|
350
364
|
})
|
|
351
365
|
})
|
|
352
366
|
}),
|
|
353
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ g(f, {
|
|
354
368
|
path: "credits/withdraw",
|
|
355
|
-
element: /* @__PURE__ */
|
|
369
|
+
element: /* @__PURE__ */ g(W, {
|
|
356
370
|
title: "Credit withdrawal",
|
|
357
371
|
featureFlag: "billing.credits",
|
|
358
372
|
permission: "canWithdrawCredits",
|
|
359
373
|
eventName: "billing.credit.viewed",
|
|
360
|
-
children: /* @__PURE__ */
|
|
361
|
-
fallback: /* @__PURE__ */
|
|
362
|
-
children: /* @__PURE__ */
|
|
374
|
+
children: /* @__PURE__ */ g(s, {
|
|
375
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
376
|
+
children: /* @__PURE__ */ g(M, {})
|
|
363
377
|
})
|
|
364
378
|
})
|
|
365
379
|
}),
|
|
366
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ g(f, {
|
|
367
381
|
path: "creditTransactions/:billingAccountId",
|
|
368
|
-
element: /* @__PURE__ */
|
|
382
|
+
element: /* @__PURE__ */ g(W, {
|
|
369
383
|
title: "Credit transactions",
|
|
370
384
|
featureFlag: "billing.credits",
|
|
371
385
|
permission: "canViewCredits",
|
|
372
386
|
eventName: "billing.credit.viewed",
|
|
373
|
-
children: /* @__PURE__ */
|
|
374
|
-
fallback: /* @__PURE__ */
|
|
375
|
-
children: /* @__PURE__ */
|
|
387
|
+
children: /* @__PURE__ */ g(s, {
|
|
388
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
389
|
+
children: /* @__PURE__ */ g(j, {})
|
|
376
390
|
})
|
|
377
391
|
})
|
|
378
392
|
}),
|
|
379
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ g(f, {
|
|
380
394
|
path: "usage",
|
|
381
|
-
element: /* @__PURE__ */
|
|
395
|
+
element: /* @__PURE__ */ g(W, {
|
|
382
396
|
title: "Usage",
|
|
383
397
|
featureFlag: "billing.usage",
|
|
384
398
|
permission: "canViewUsage",
|
|
385
399
|
eventName: "billing.usage.viewed",
|
|
386
|
-
children: /* @__PURE__ */
|
|
387
|
-
fallback: /* @__PURE__ */
|
|
388
|
-
children: /* @__PURE__ */
|
|
400
|
+
children: /* @__PURE__ */ g(s, {
|
|
401
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
402
|
+
children: /* @__PURE__ */ g(N, {})
|
|
389
403
|
})
|
|
390
404
|
})
|
|
391
405
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ g(f, {
|
|
393
407
|
path: "affiliate",
|
|
394
|
-
element: /* @__PURE__ */
|
|
408
|
+
element: /* @__PURE__ */ g(W, {
|
|
395
409
|
title: "Affiliate dashboard",
|
|
396
410
|
featureFlag: "billing.affiliate",
|
|
397
411
|
permission: "canManagePaymentMethods",
|
|
398
412
|
eventName: "billing.affiliate.viewed",
|
|
399
|
-
children: /* @__PURE__ */
|
|
400
|
-
fallback: /* @__PURE__ */
|
|
401
|
-
children: /* @__PURE__ */
|
|
413
|
+
children: /* @__PURE__ */ g(s, {
|
|
414
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
415
|
+
children: /* @__PURE__ */ g(R, {})
|
|
402
416
|
})
|
|
403
417
|
})
|
|
404
418
|
}),
|
|
405
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ g(f, {
|
|
406
420
|
path: "earnings",
|
|
407
|
-
element: /* @__PURE__ */
|
|
421
|
+
element: /* @__PURE__ */ g(W, {
|
|
408
422
|
title: "Earnings",
|
|
409
423
|
featureFlag: "billing.earnings",
|
|
410
424
|
permission: "canViewBillingAccount",
|
|
411
425
|
eventName: "billing.earning.viewed",
|
|
412
|
-
children: /* @__PURE__ */
|
|
413
|
-
fallback: /* @__PURE__ */
|
|
414
|
-
children: /* @__PURE__ */
|
|
426
|
+
children: /* @__PURE__ */ g(s, {
|
|
427
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
428
|
+
children: /* @__PURE__ */ g(z, {})
|
|
415
429
|
})
|
|
416
430
|
})
|
|
417
431
|
}),
|
|
418
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ g(f, {
|
|
419
433
|
path: "payouts",
|
|
420
|
-
element: /* @__PURE__ */
|
|
434
|
+
element: /* @__PURE__ */ g(W, {
|
|
421
435
|
title: "Payouts",
|
|
422
436
|
featureFlag: "billing.payouts",
|
|
423
437
|
permission: "canViewBillingAccount",
|
|
424
438
|
eventName: "billing.payout.viewed",
|
|
425
|
-
children: /* @__PURE__ */
|
|
426
|
-
fallback: /* @__PURE__ */
|
|
427
|
-
children: /* @__PURE__ */
|
|
439
|
+
children: /* @__PURE__ */ g(s, {
|
|
440
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
441
|
+
children: /* @__PURE__ */ g(B, {})
|
|
428
442
|
})
|
|
429
443
|
})
|
|
430
444
|
}),
|
|
431
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ g(f, {
|
|
432
446
|
path: "transactions/:billingAccountId",
|
|
433
|
-
element: /* @__PURE__ */
|
|
447
|
+
element: /* @__PURE__ */ g(W, {
|
|
434
448
|
title: "Transactions",
|
|
435
449
|
featureFlag: "billing.transactions",
|
|
436
450
|
permission: "canViewPayments",
|
|
437
451
|
eventName: "billing.transaction.viewed",
|
|
438
|
-
children: /* @__PURE__ */
|
|
439
|
-
fallback: /* @__PURE__ */
|
|
440
|
-
children: /* @__PURE__ */
|
|
452
|
+
children: /* @__PURE__ */ g(s, {
|
|
453
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
454
|
+
children: /* @__PURE__ */ g(D, {})
|
|
441
455
|
})
|
|
442
456
|
})
|
|
443
457
|
}),
|
|
444
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ g(f, {
|
|
445
459
|
path: "settings",
|
|
446
|
-
element: /* @__PURE__ */
|
|
460
|
+
element: /* @__PURE__ */ g(W, {
|
|
447
461
|
title: "Billing settings",
|
|
448
462
|
featureFlag: "billing.settings",
|
|
449
463
|
permission: "canManageBillingAccount",
|
|
450
464
|
eventName: "billing.billing_account.viewed",
|
|
451
|
-
children: /* @__PURE__ */
|
|
452
|
-
fallback: /* @__PURE__ */
|
|
453
|
-
children: /* @__PURE__ */
|
|
465
|
+
children: /* @__PURE__ */ g(s, {
|
|
466
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
467
|
+
children: /* @__PURE__ */ g(I, {})
|
|
454
468
|
})
|
|
455
469
|
})
|
|
456
470
|
}),
|
|
457
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ g(f, {
|
|
458
472
|
path: "team-permissions",
|
|
459
|
-
element: /* @__PURE__ */
|
|
473
|
+
element: /* @__PURE__ */ g(W, {
|
|
460
474
|
title: "Team & Permissions",
|
|
461
475
|
featureFlag: "billing.team_permissions",
|
|
462
|
-
permission:
|
|
476
|
+
permission: null,
|
|
463
477
|
eventName: "billing.billing_account.viewed",
|
|
464
|
-
children: /* @__PURE__ */
|
|
465
|
-
fallback: /* @__PURE__ */
|
|
466
|
-
children: /* @__PURE__ */
|
|
478
|
+
children: /* @__PURE__ */ g(s, {
|
|
479
|
+
fallback: /* @__PURE__ */ g(V, {}),
|
|
480
|
+
children: /* @__PURE__ */ g(L, {})
|
|
467
481
|
})
|
|
468
482
|
})
|
|
469
483
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ g(f, {
|
|
471
485
|
path: "*",
|
|
472
|
-
element: /* @__PURE__ */
|
|
486
|
+
element: /* @__PURE__ */ g(H, {})
|
|
473
487
|
})
|
|
474
488
|
] });
|
|
475
489
|
}
|
|
476
|
-
export {
|
|
490
|
+
export { K as BillingUserRoutes };
|
|
477
491
|
|
|
478
492
|
//# sourceMappingURL=BillingUserRoutes.js.map
|