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