@burdenoff/microfe-billing 2026.1108.2 → 2026.1112.1

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.
Files changed (36) hide show
  1. package/dist/billing/BillingUserRoutes.js +202 -188
  2. package/dist/billing/BillingUserRoutes.js.map +1 -1
  3. package/dist/billing/hooks/useBillingVariant.d.ts +6 -0
  4. package/dist/billing/hooks/useBillingVariant.js +8 -0
  5. package/dist/billing/hooks/useBillingVariant.js.map +1 -0
  6. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +169 -140
  7. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
  8. package/dist/billing/modules/billing/pages/InvoicesListPage.js +191 -156
  9. package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
  10. package/dist/billing/modules/billing/pages/UserRefundsPage.js +160 -157
  11. package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
  12. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +4 -1
  13. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  14. package/dist/billing/providers/BillingProvider.js +16 -15
  15. package/dist/billing/providers/BillingProvider.js.map +1 -1
  16. package/dist/billing/shared/components/MoneyActionDialog.d.ts +27 -0
  17. package/dist/billing/shared/components/MoneyActionDialog.js +53 -0
  18. package/dist/billing/shared/components/MoneyActionDialog.js.map +1 -0
  19. package/dist/billing/shared/components/index.d.ts +1 -0
  20. package/dist/billing/shared/components/index.js +2 -1
  21. package/dist/billing/shared/utils/accessRules.d.ts +16 -0
  22. package/dist/billing/shared/utils/accessRules.js +10 -0
  23. package/dist/billing/shared/utils/accessRules.js.map +1 -0
  24. package/dist/billing/shared/utils/directActivityGraphql.d.ts +2 -0
  25. package/dist/billing/shared/utils/directActivityGraphql.js +1 -1
  26. package/dist/billing/shared/utils/directBillingGraphql.d.ts +2 -0
  27. package/dist/billing/shared/utils/directBillingGraphql.js +2 -1
  28. package/dist/billing/shared/utils/directBillingGraphql.js.map +1 -1
  29. package/dist/billing/shared/utils/gatewayGraphql.d.ts +2 -0
  30. package/dist/billing/shared/utils/gatewayGraphql.js +2 -1
  31. package/dist/billing/shared/utils/gatewayGraphql.js.map +1 -1
  32. package/dist/billing/shared/utils/pinnedRequest.d.ts +48 -0
  33. package/dist/billing/shared/utils/pinnedRequest.js +63 -0
  34. package/dist/billing/shared/utils/pinnedRequest.js.map +1 -0
  35. package/dist/billing/types/index.d.ts +6 -0
  36. package/package.json +2 -2
@@ -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 { OverviewPage as i } from "./modules/dashboard/pages/OverviewPage.js";
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 a, lazy as o, useEffect as s } from "react";
9
- import { FeatureGate as c } from "@burdenoff/fe-libs/shared/feature-flags";
10
- import { Navigate as l, Route as u, Routes as d, useLocation as f, useNavigate as p } from "react-router";
11
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
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 g = o(() => import("./modules/subscriptions/index.js").then((e) => ({ default: e.SubscriptionsListPage }))), _ = o(() => import("./modules/subscriptions/index.js").then((e) => ({ default: e.SubscriptionDetailPage }))), v = o(() => import("./modules/subscriptions/index.js").then((e) => ({ default: e.UpgradeSubscriptionPage }))), y = o(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlansBrowsePage }))), b = o(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanBrowseDetailPage }))), x = o(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonsBrowsePage }))), S = o(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonBrowseDetailPage }))), C = o(() => import("./modules/billing/index.js").then((e) => ({ default: e.InvoicesListPage }))), w = o(() => import("./modules/billing/index.js").then((e) => ({ default: e.InvoiceDetailPage }))), T = o(() => import("./modules/billing/index.js").then((e) => ({ default: e.TransactionsPage }))), E = o(() => import("./modules/billing/index.js").then((e) => ({ default: e.UserRefundsPage }))), D = o(() => import("./modules/billing/index.js").then((e) => ({ default: e.PaymentMethodsPage }))), O = o(() => import("./modules/credits/index.js").then((e) => ({ default: e.CreditsPage }))), k = o(() => import("./modules/credits/index.js").then((e) => ({ default: e.CreditTransactionsPage }))), A = o(() => import("./modules/credits/index.js").then((e) => ({ default: e.CreditWithdrawalPage }))), j = o(() => import("./modules/usage/index.js").then((e) => ({ default: e.UsagePage }))), M = o(() => import("./modules/checkout/index.js").then((e) => ({ default: e.CheckoutPage }))), N = o(() => import("./modules/store/index.js").then((e) => ({ default: e.StoreCheckoutPage }))), P = o(() => import("./modules/settings/index.js").then((e) => ({ default: e.SettingsPage }))), F = o(() => import("./modules/settings/index.js").then((e) => ({ default: e.TeamPermissionsPage }))), I = o(() => import("./modules/affiliate/index.js").then((e) => ({ default: e.AffiliateDashboardPage }))), L = o(() => import("./modules/earnings/index.js").then((e) => ({ default: e.EarningsPage }))), R = o(() => import("./modules/earnings/index.js").then((e) => ({ default: e.PayoutsPage })));
14
- function z() {
15
- return /* @__PURE__ */ m("div", {
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__ */ m("div", { className: "size-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
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 B() {
21
- let { basePath: e } = r(), { search: t } = f(), n = p(), i = e && e !== "/" ? e.replace(/\/$/, "") : "";
22
- return s(() => {
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 V({ title: e, featureFlag: t }) {
31
- return /* @__PURE__ */ m("div", {
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__ */ h("div", {
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__ */ h("h2", {
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__ */ h("p", {
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__ */ m("span", {
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 H({ title: r, featureFlag: i, permission: a, eventName: o, children: l }) {
54
- let u = n(), { emit: d } = t(), f = !!u[a];
55
- return s(() => {
56
- f && d(o, { source: "BillingUserRoutes" });
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
- d,
59
- o,
60
- f
61
- ]), u.isLoading ? /* @__PURE__ */ m(z, {}) : /* @__PURE__ */ m(c, {
62
- flag: i,
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__ */ m(V, {
78
+ fallback: /* @__PURE__ */ g(U, {
65
79
  title: r,
66
- featureFlag: i
80
+ featureFlag: a
67
81
  }),
68
- children: f ? l : /* @__PURE__ */ m(e, { message: `You don't have permission to access ${r}.` })
82
+ children: p ? c : /* @__PURE__ */ g(e, { message: `You don't have permission to access ${r}.` })
69
83
  });
70
84
  }
71
- function U(e) {
72
- return /* @__PURE__ */ m(H, { ...e });
85
+ function G(e) {
86
+ return /* @__PURE__ */ g(W, { ...e });
73
87
  }
74
- function W() {
75
- return /* @__PURE__ */ h(d, { children: [
76
- /* @__PURE__ */ m(u, {
88
+ function K() {
89
+ return /* @__PURE__ */ _(p, { children: [
90
+ /* @__PURE__ */ g(f, {
77
91
  index: !0,
78
- element: /* @__PURE__ */ m(l, {
92
+ element: /* @__PURE__ */ g(d, {
79
93
  to: "overview",
80
94
  replace: !0
81
95
  })
82
96
  }),
83
- /* @__PURE__ */ m(u, {
97
+ /* @__PURE__ */ g(f, {
84
98
  path: "overview",
85
- element: U({
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__ */ m(i, {})
104
+ children: /* @__PURE__ */ g(o, {})
91
105
  })
92
106
  }),
93
- /* @__PURE__ */ m(u, {
107
+ /* @__PURE__ */ g(f, {
94
108
  path: "subscriptions",
95
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
101
- fallback: /* @__PURE__ */ m(z, {}),
102
- children: /* @__PURE__ */ m(g, {})
114
+ children: /* @__PURE__ */ g(s, {
115
+ fallback: /* @__PURE__ */ g(V, {}),
116
+ children: /* @__PURE__ */ g(v, {})
103
117
  })
104
118
  })
105
119
  }),
106
- /* @__PURE__ */ m(u, {
120
+ /* @__PURE__ */ g(f, {
107
121
  path: "subscriptions/:subscriptionId",
108
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
114
- fallback: /* @__PURE__ */ m(z, {}),
115
- children: /* @__PURE__ */ m(_, {})
127
+ children: /* @__PURE__ */ g(s, {
128
+ fallback: /* @__PURE__ */ g(V, {}),
129
+ children: /* @__PURE__ */ g(y, {})
116
130
  })
117
131
  })
118
132
  }),
119
- /* @__PURE__ */ m(u, {
133
+ /* @__PURE__ */ g(f, {
120
134
  path: "subscriptions/:subscriptionId/upgrade",
121
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
127
- fallback: /* @__PURE__ */ m(z, {}),
128
- children: /* @__PURE__ */ m(v, {})
140
+ children: /* @__PURE__ */ g(s, {
141
+ fallback: /* @__PURE__ */ g(V, {}),
142
+ children: /* @__PURE__ */ g(b, {})
129
143
  })
130
144
  })
131
145
  }),
132
- /* @__PURE__ */ m(u, {
146
+ /* @__PURE__ */ g(f, {
133
147
  path: "plans",
134
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
140
- fallback: /* @__PURE__ */ m(z, {}),
141
- children: /* @__PURE__ */ m(y, {})
153
+ children: /* @__PURE__ */ g(s, {
154
+ fallback: /* @__PURE__ */ g(V, {}),
155
+ children: /* @__PURE__ */ g(x, {})
142
156
  })
143
157
  })
144
158
  }),
145
- /* @__PURE__ */ m(u, {
159
+ /* @__PURE__ */ g(f, {
146
160
  path: "plans/:planId",
147
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
153
- fallback: /* @__PURE__ */ m(z, {}),
154
- children: /* @__PURE__ */ m(b, {})
166
+ children: /* @__PURE__ */ g(s, {
167
+ fallback: /* @__PURE__ */ g(V, {}),
168
+ children: /* @__PURE__ */ g(S, {})
155
169
  })
156
170
  })
157
171
  }),
158
- /* @__PURE__ */ m(u, {
172
+ /* @__PURE__ */ g(f, {
159
173
  path: "addons",
160
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
166
- fallback: /* @__PURE__ */ m(z, {}),
167
- children: /* @__PURE__ */ m(x, {})
179
+ children: /* @__PURE__ */ g(s, {
180
+ fallback: /* @__PURE__ */ g(V, {}),
181
+ children: /* @__PURE__ */ g(C, {})
168
182
  })
169
183
  })
170
184
  }),
171
- /* @__PURE__ */ m(u, {
185
+ /* @__PURE__ */ g(f, {
172
186
  path: "addons/:addonId",
173
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
179
- fallback: /* @__PURE__ */ m(z, {}),
180
- children: /* @__PURE__ */ m(S, {})
192
+ children: /* @__PURE__ */ g(s, {
193
+ fallback: /* @__PURE__ */ g(V, {}),
194
+ children: /* @__PURE__ */ g(w, {})
181
195
  })
182
196
  })
183
197
  }),
184
- /* @__PURE__ */ m(u, {
198
+ /* @__PURE__ */ g(f, {
185
199
  path: "checkout",
186
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
192
- fallback: /* @__PURE__ */ m(z, {}),
193
- children: /* @__PURE__ */ m(M, {})
205
+ children: /* @__PURE__ */ g(s, {
206
+ fallback: /* @__PURE__ */ g(V, {}),
207
+ children: /* @__PURE__ */ g(P, {})
194
208
  })
195
209
  })
196
210
  }),
197
- /* @__PURE__ */ m(u, {
211
+ /* @__PURE__ */ g(f, {
198
212
  path: "checkout/:planId",
199
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
205
- fallback: /* @__PURE__ */ m(z, {}),
206
- children: /* @__PURE__ */ m(M, {})
218
+ children: /* @__PURE__ */ g(s, {
219
+ fallback: /* @__PURE__ */ g(V, {}),
220
+ children: /* @__PURE__ */ g(P, {})
207
221
  })
208
222
  })
209
223
  }),
210
- /* @__PURE__ */ m(u, {
224
+ /* @__PURE__ */ g(f, {
211
225
  path: "checkout/credits",
212
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
218
- fallback: /* @__PURE__ */ m(z, {}),
219
- children: /* @__PURE__ */ m(M, {})
231
+ children: /* @__PURE__ */ g(s, {
232
+ fallback: /* @__PURE__ */ g(V, {}),
233
+ children: /* @__PURE__ */ g(P, {})
220
234
  })
221
235
  })
222
236
  }),
223
- /* @__PURE__ */ m(u, {
237
+ /* @__PURE__ */ g(f, {
224
238
  path: "checkout/addon/:addonId",
225
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
231
- fallback: /* @__PURE__ */ m(z, {}),
232
- children: /* @__PURE__ */ m(M, {})
244
+ children: /* @__PURE__ */ g(s, {
245
+ fallback: /* @__PURE__ */ g(V, {}),
246
+ children: /* @__PURE__ */ g(P, {})
233
247
  })
234
248
  })
235
249
  }),
236
- /* @__PURE__ */ m(u, {
250
+ /* @__PURE__ */ g(f, {
237
251
  path: "checkout/addons",
238
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
244
- fallback: /* @__PURE__ */ m(z, {}),
245
- children: /* @__PURE__ */ m(M, {})
257
+ children: /* @__PURE__ */ g(s, {
258
+ fallback: /* @__PURE__ */ g(V, {}),
259
+ children: /* @__PURE__ */ g(P, {})
246
260
  })
247
261
  })
248
262
  }),
249
- /* @__PURE__ */ m(u, {
263
+ /* @__PURE__ */ g(f, {
250
264
  path: "checkout/store/:storeOrderId",
251
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
257
- fallback: /* @__PURE__ */ m(z, {}),
258
- children: /* @__PURE__ */ m(M, {})
270
+ children: /* @__PURE__ */ g(s, {
271
+ fallback: /* @__PURE__ */ g(V, {}),
272
+ children: /* @__PURE__ */ g(P, {})
259
273
  })
260
274
  })
261
275
  }),
262
- /* @__PURE__ */ m(u, {
276
+ /* @__PURE__ */ g(f, {
263
277
  path: "store/:orderId",
264
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
270
- fallback: /* @__PURE__ */ m(z, {}),
271
- children: /* @__PURE__ */ m(N, {})
283
+ children: /* @__PURE__ */ g(s, {
284
+ fallback: /* @__PURE__ */ g(V, {}),
285
+ children: /* @__PURE__ */ g(F, {})
272
286
  })
273
287
  })
274
288
  }),
275
- /* @__PURE__ */ m(u, {
289
+ /* @__PURE__ */ g(f, {
276
290
  path: "refunds",
277
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
283
- fallback: /* @__PURE__ */ m(z, {}),
284
- children: /* @__PURE__ */ m(E, {})
296
+ children: /* @__PURE__ */ g(s, {
297
+ fallback: /* @__PURE__ */ g(V, {}),
298
+ children: /* @__PURE__ */ g(O, {})
285
299
  })
286
300
  })
287
301
  }),
288
- /* @__PURE__ */ m(u, {
302
+ /* @__PURE__ */ g(f, {
289
303
  path: "invoices",
290
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
296
- fallback: /* @__PURE__ */ m(z, {}),
297
- children: /* @__PURE__ */ m(C, {})
309
+ children: /* @__PURE__ */ g(s, {
310
+ fallback: /* @__PURE__ */ g(V, {}),
311
+ children: /* @__PURE__ */ g(T, {})
298
312
  })
299
313
  })
300
314
  }),
301
- /* @__PURE__ */ m(u, {
315
+ /* @__PURE__ */ g(f, {
302
316
  path: "invoices/:invoiceId",
303
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
309
- fallback: /* @__PURE__ */ m(z, {}),
310
- children: /* @__PURE__ */ m(w, {})
322
+ children: /* @__PURE__ */ g(s, {
323
+ fallback: /* @__PURE__ */ g(V, {}),
324
+ children: /* @__PURE__ */ g(E, {})
311
325
  })
312
326
  })
313
327
  }),
314
- /* @__PURE__ */ m(u, {
328
+ /* @__PURE__ */ g(f, {
315
329
  path: "payment-methods",
316
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
322
- fallback: /* @__PURE__ */ m(z, {}),
323
- children: /* @__PURE__ */ m(D, {})
335
+ children: /* @__PURE__ */ g(s, {
336
+ fallback: /* @__PURE__ */ g(V, {}),
337
+ children: /* @__PURE__ */ g(k, {})
324
338
  })
325
339
  })
326
340
  }),
327
- /* @__PURE__ */ m(u, {
341
+ /* @__PURE__ */ g(f, {
328
342
  path: "payment-methods/add",
329
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
335
- fallback: /* @__PURE__ */ m(z, {}),
336
- children: /* @__PURE__ */ m(D, {})
348
+ children: /* @__PURE__ */ g(s, {
349
+ fallback: /* @__PURE__ */ g(V, {}),
350
+ children: /* @__PURE__ */ g(k, {})
337
351
  })
338
352
  })
339
353
  }),
340
- /* @__PURE__ */ m(u, {
354
+ /* @__PURE__ */ g(f, {
341
355
  path: "credits",
342
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
348
- fallback: /* @__PURE__ */ m(z, {}),
349
- children: /* @__PURE__ */ m(O, {})
361
+ children: /* @__PURE__ */ g(s, {
362
+ fallback: /* @__PURE__ */ g(V, {}),
363
+ children: /* @__PURE__ */ g(A, {})
350
364
  })
351
365
  })
352
366
  }),
353
- /* @__PURE__ */ m(u, {
367
+ /* @__PURE__ */ g(f, {
354
368
  path: "credits/withdraw",
355
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
361
- fallback: /* @__PURE__ */ m(z, {}),
362
- children: /* @__PURE__ */ m(A, {})
374
+ children: /* @__PURE__ */ g(s, {
375
+ fallback: /* @__PURE__ */ g(V, {}),
376
+ children: /* @__PURE__ */ g(M, {})
363
377
  })
364
378
  })
365
379
  }),
366
- /* @__PURE__ */ m(u, {
380
+ /* @__PURE__ */ g(f, {
367
381
  path: "creditTransactions/:billingAccountId",
368
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
374
- fallback: /* @__PURE__ */ m(z, {}),
375
- children: /* @__PURE__ */ m(k, {})
387
+ children: /* @__PURE__ */ g(s, {
388
+ fallback: /* @__PURE__ */ g(V, {}),
389
+ children: /* @__PURE__ */ g(j, {})
376
390
  })
377
391
  })
378
392
  }),
379
- /* @__PURE__ */ m(u, {
393
+ /* @__PURE__ */ g(f, {
380
394
  path: "usage",
381
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
387
- fallback: /* @__PURE__ */ m(z, {}),
388
- children: /* @__PURE__ */ m(j, {})
400
+ children: /* @__PURE__ */ g(s, {
401
+ fallback: /* @__PURE__ */ g(V, {}),
402
+ children: /* @__PURE__ */ g(N, {})
389
403
  })
390
404
  })
391
405
  }),
392
- /* @__PURE__ */ m(u, {
406
+ /* @__PURE__ */ g(f, {
393
407
  path: "affiliate",
394
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
400
- fallback: /* @__PURE__ */ m(z, {}),
401
- children: /* @__PURE__ */ m(I, {})
413
+ children: /* @__PURE__ */ g(s, {
414
+ fallback: /* @__PURE__ */ g(V, {}),
415
+ children: /* @__PURE__ */ g(R, {})
402
416
  })
403
417
  })
404
418
  }),
405
- /* @__PURE__ */ m(u, {
419
+ /* @__PURE__ */ g(f, {
406
420
  path: "earnings",
407
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
413
- fallback: /* @__PURE__ */ m(z, {}),
414
- children: /* @__PURE__ */ m(L, {})
426
+ children: /* @__PURE__ */ g(s, {
427
+ fallback: /* @__PURE__ */ g(V, {}),
428
+ children: /* @__PURE__ */ g(z, {})
415
429
  })
416
430
  })
417
431
  }),
418
- /* @__PURE__ */ m(u, {
432
+ /* @__PURE__ */ g(f, {
419
433
  path: "payouts",
420
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
426
- fallback: /* @__PURE__ */ m(z, {}),
427
- children: /* @__PURE__ */ m(R, {})
439
+ children: /* @__PURE__ */ g(s, {
440
+ fallback: /* @__PURE__ */ g(V, {}),
441
+ children: /* @__PURE__ */ g(B, {})
428
442
  })
429
443
  })
430
444
  }),
431
- /* @__PURE__ */ m(u, {
445
+ /* @__PURE__ */ g(f, {
432
446
  path: "transactions/:billingAccountId",
433
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
439
- fallback: /* @__PURE__ */ m(z, {}),
440
- children: /* @__PURE__ */ m(T, {})
452
+ children: /* @__PURE__ */ g(s, {
453
+ fallback: /* @__PURE__ */ g(V, {}),
454
+ children: /* @__PURE__ */ g(D, {})
441
455
  })
442
456
  })
443
457
  }),
444
- /* @__PURE__ */ m(u, {
458
+ /* @__PURE__ */ g(f, {
445
459
  path: "settings",
446
- element: /* @__PURE__ */ m(H, {
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__ */ m(a, {
452
- fallback: /* @__PURE__ */ m(z, {}),
453
- children: /* @__PURE__ */ m(P, {})
465
+ children: /* @__PURE__ */ g(s, {
466
+ fallback: /* @__PURE__ */ g(V, {}),
467
+ children: /* @__PURE__ */ g(I, {})
454
468
  })
455
469
  })
456
470
  }),
457
- /* @__PURE__ */ m(u, {
471
+ /* @__PURE__ */ g(f, {
458
472
  path: "team-permissions",
459
- element: /* @__PURE__ */ m(H, {
473
+ element: /* @__PURE__ */ g(W, {
460
474
  title: "Team & Permissions",
461
475
  featureFlag: "billing.team_permissions",
462
- permission: "isBillingAdmin",
476
+ permission: null,
463
477
  eventName: "billing.billing_account.viewed",
464
- children: /* @__PURE__ */ m(a, {
465
- fallback: /* @__PURE__ */ m(z, {}),
466
- children: /* @__PURE__ */ m(F, {})
478
+ children: /* @__PURE__ */ g(s, {
479
+ fallback: /* @__PURE__ */ g(V, {}),
480
+ children: /* @__PURE__ */ g(L, {})
467
481
  })
468
482
  })
469
483
  }),
470
- /* @__PURE__ */ m(u, {
484
+ /* @__PURE__ */ g(f, {
471
485
  path: "*",
472
- element: /* @__PURE__ */ m(B, {})
486
+ element: /* @__PURE__ */ g(H, {})
473
487
  })
474
488
  ] });
475
489
  }
476
- export { W as BillingUserRoutes };
490
+ export { K as BillingUserRoutes };
477
491
 
478
492
  //# sourceMappingURL=BillingUserRoutes.js.map