@openrails/billing-ui 0.258.1 → 0.259.0

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/admin.js CHANGED
@@ -6,22 +6,22 @@ import { t as D } from "./admin-auth-DhoAWJR7.js";
6
6
  import { f as ie, s as O } from "./admin-format-DoohJ7Fg.js";
7
7
  import { t as ae } from "./admin-confirm-katGq0Qo.js";
8
8
  import * as k from "react";
9
- import { Component as oe, Suspense as se, lazy as A, useCallback as j, useEffect as ce, useId as le, useLayoutEffect as ue, useMemo as M, useRef as de, useState as N, useSyncExternalStore as P } from "react";
10
- import { QueryCache as fe, QueryClient as pe, QueryClientProvider as me, useQuery as F } from "@tanstack/react-query";
11
- import { Toaster as he } from "sonner";
12
- import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
13
- import { HugeiconsIcon as z } from "@hugeicons/react";
14
- import { Add01Icon as ge, Alert01Icon as _e, AlertCircleIcon as ve, CreditCardIcon as B, DashboardCircleIcon as ye, Notification01Icon as V, PackageIcon as be, Refresh01Icon as xe, RepeatIcon as Se, Settings01Icon as Ce, Tick02Icon as we, UnfoldMoreIcon as Te, UserGroupIcon as Ee, Wrench01Icon as De } from "@hugeicons/core-free-icons";
15
- import { ChevronRightIcon as Oe, CircleCheckIcon as ke, InfoIcon as Ae, Loader2Icon as je, OctagonXIcon as Me, PanelLeftIcon as Ne, TriangleAlertIcon as Pe, XIcon as Fe } from "lucide-react";
16
- import { mergeProps as H } from "@base-ui/react/merge-props";
17
- import { useRender as U } from "@base-ui/react/use-render";
18
- import { cva as Ie } from "class-variance-authority";
19
- import { Separator as Le } from "@base-ui/react/separator";
20
- import { Dialog as W } from "@base-ui/react/dialog";
21
- import { Tooltip as G } from "@base-ui/react/tooltip";
22
- import { AlertDialog as K } from "@base-ui/react/alert-dialog";
9
+ import { Component as oe, Suspense as se, lazy as A, useCallback as j, useEffect as ce, useId as le, useLayoutEffect as ue, useMemo as M, useRef as de, useState as N, useSyncExternalStore as fe } from "react";
10
+ import { QueryCache as pe, QueryClient as me, QueryClientProvider as he, useQuery as P } from "@tanstack/react-query";
11
+ import { Toaster as ge } from "sonner";
12
+ import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
13
+ import { HugeiconsIcon as R } from "@hugeicons/react";
14
+ import { Add01Icon as _e, Alert01Icon as ve, AlertCircleIcon as ye, CreditCardIcon as be, DashboardCircleIcon as xe, Notification01Icon as Se, PackageIcon as Ce, Refresh01Icon as we, RepeatIcon as Te, Settings01Icon as Ee, Tick02Icon as De, UnfoldMoreIcon as Oe, UserGroupIcon as ke, Wrench01Icon as Ae } from "@hugeicons/core-free-icons";
15
+ import { ChevronRightIcon as je, CircleCheckIcon as Me, InfoIcon as Ne, Loader2Icon as Pe, OctagonXIcon as Fe, PanelLeftIcon as Ie, TriangleAlertIcon as Le, XIcon as Re } from "lucide-react";
16
+ import { mergeProps as z } from "@base-ui/react/merge-props";
17
+ import { useRender as B } from "@base-ui/react/use-render";
18
+ import { cva as ze } from "class-variance-authority";
19
+ import { Separator as Be } from "@base-ui/react/separator";
20
+ import { Dialog as V } from "@base-ui/react/dialog";
21
+ import { Tooltip as H } from "@base-ui/react/tooltip";
22
+ import { AlertDialog as U } from "@base-ui/react/alert-dialog";
23
23
  //#region src/appearance.ts
24
- var Re = {
24
+ var Ve = {
25
25
  background: "--background",
26
26
  foreground: "--foreground",
27
27
  card: "--card",
@@ -36,16 +36,16 @@ var Re = {
36
36
  radius: "--radius",
37
37
  fontFamily: "--orck-font"
38
38
  };
39
- function q(e, t = "orck") {
39
+ function W(e, t = "orck") {
40
40
  let n = e?.variables;
41
41
  if (!n) return;
42
42
  let r = {};
43
- for (let [e, i] of Object.entries(n)) i && (r[Re[e].replace("--orck-", `--${t}-`)] = i);
43
+ for (let [e, i] of Object.entries(n)) i && (r[Ve[e].replace("--orck-", `--${t}-`)] = i);
44
44
  return r;
45
45
  }
46
46
  //#endregion
47
47
  //#region src/admin/routes.tsx
48
- var ze = [
48
+ var He = [
49
49
  {
50
50
  path: "/payments/attempts",
51
51
  Component: A(() => import("./admin-attempts-Ch3gEugh.js").then((e) => ({ default: e.AttemptsPage })))
@@ -139,8 +139,8 @@ var ze = [
139
139
  Component: A(() => import("./admin-detail-DJyfOdAA.js").then((e) => ({ default: e.OrderDetailPage })))
140
140
  }
141
141
  ];
142
- function Be(e) {
143
- for (let { path: t, Component: n } of ze) {
142
+ function Ue(e) {
143
+ for (let { path: t, Component: n } of He) {
144
144
  let r = e.replace(/\/$/, "").split("/"), i = t === "/" ? [""] : t.split("/"), a = {};
145
145
  if (r.length === i.length && i.every((e, t) => {
146
146
  if (e.startsWith(":")) try {
@@ -155,35 +155,35 @@ function Be(e) {
155
155
  };
156
156
  }
157
157
  }
158
- function Ve() {
159
- let e = Be(d().pathname);
160
- return e ? /* @__PURE__ */ L(i, {
158
+ function We() {
159
+ let e = Ue(d().pathname);
160
+ return e ? /* @__PURE__ */ I(i, {
161
161
  params: e.params,
162
- children: /* @__PURE__ */ L(se, {
163
- fallback: /* @__PURE__ */ L("p", {
162
+ children: /* @__PURE__ */ I(se, {
163
+ fallback: /* @__PURE__ */ I("p", {
164
164
  role: "status",
165
- children: /* @__PURE__ */ L(_, { id: "Loading…" })
165
+ children: /* @__PURE__ */ I(_, { id: "Loading…" })
166
166
  }),
167
- children: /* @__PURE__ */ L(e.Component, {})
167
+ children: /* @__PURE__ */ I(e.Component, {})
168
168
  })
169
- }) : /* @__PURE__ */ L("p", {
169
+ }) : /* @__PURE__ */ I("p", {
170
170
  role: "status",
171
- children: /* @__PURE__ */ L(_, { id: "This billing page does not exist." })
171
+ children: /* @__PURE__ */ I(_, { id: "This billing page does not exist." })
172
172
  });
173
173
  }
174
174
  //#endregion
175
175
  //#region src/admin/hooks/use-mobile.ts
176
- var J = "(max-width: 767px)", He = (e) => {
177
- let t = window.matchMedia(J);
176
+ var G = "(max-width: 767px)", Ge = (e) => {
177
+ let t = window.matchMedia(G);
178
178
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
179
179
  };
180
- function Ue() {
181
- return P(He, () => window.matchMedia(J).matches, () => !1);
180
+ function Ke() {
181
+ return fe(Ge, () => window.matchMedia(G).matches, () => !1);
182
182
  }
183
183
  //#endregion
184
184
  //#region src/admin/components/ui/separator.tsx
185
- function We({ className: e, orientation: t = "horizontal", ...n }) {
186
- return /* @__PURE__ */ L(Le, {
185
+ function qe({ className: e, orientation: t = "horizontal", ...n }) {
186
+ return /* @__PURE__ */ I(Be, {
187
187
  "data-slot": "separator",
188
188
  orientation: t,
189
189
  className: h("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", e),
@@ -192,62 +192,62 @@ function We({ className: e, orientation: t = "horizontal", ...n }) {
192
192
  }
193
193
  //#endregion
194
194
  //#region src/admin/components/ui/sheet.tsx
195
- function Ge({ ...e }) {
196
- return /* @__PURE__ */ L(W.Root, {
195
+ function Je({ ...e }) {
196
+ return /* @__PURE__ */ I(V.Root, {
197
197
  "data-slot": "sheet",
198
198
  ...e
199
199
  });
200
200
  }
201
- function Ke({ ...e }) {
202
- return /* @__PURE__ */ L(W.Portal, {
201
+ function Ye({ ...e }) {
202
+ return /* @__PURE__ */ I(V.Portal, {
203
203
  container: o().portal,
204
204
  "data-slot": "sheet-portal",
205
205
  ...e
206
206
  });
207
207
  }
208
- function qe({ className: e, ...t }) {
209
- return /* @__PURE__ */ L(W.Backdrop, {
208
+ function Xe({ className: e, ...t }) {
209
+ return /* @__PURE__ */ I(V.Backdrop, {
210
210
  "data-slot": "sheet-overlay",
211
211
  className: h("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs", e),
212
212
  ...t
213
213
  });
214
214
  }
215
- function Je({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
216
- return /* @__PURE__ */ R(Ke, { children: [/* @__PURE__ */ L(qe, {}), /* @__PURE__ */ R(W.Popup, {
215
+ function Ze({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
216
+ return /* @__PURE__ */ L(Ye, { children: [/* @__PURE__ */ I(Xe, {}), /* @__PURE__ */ L(V.Popup, {
217
217
  "data-slot": "sheet-content",
218
218
  "data-side": n,
219
219
  className: h("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", e),
220
220
  ...i,
221
- children: [t, r && /* @__PURE__ */ R(W.Close, {
221
+ children: [t, r && /* @__PURE__ */ L(V.Close, {
222
222
  "data-slot": "sheet-close",
223
- render: /* @__PURE__ */ L(C, {
223
+ render: /* @__PURE__ */ I(C, {
224
224
  variant: "ghost",
225
225
  className: "absolute top-3 right-3",
226
226
  size: "icon-sm"
227
227
  }),
228
- children: [/* @__PURE__ */ L(Fe, {}), /* @__PURE__ */ L("span", {
228
+ children: [/* @__PURE__ */ I(Re, {}), /* @__PURE__ */ I("span", {
229
229
  className: "sr-only",
230
- children: /* @__PURE__ */ L(_, { id: "Close" })
230
+ children: /* @__PURE__ */ I(_, { id: "Close" })
231
231
  })]
232
232
  })]
233
233
  })] });
234
234
  }
235
- function Ye({ className: e, ...t }) {
236
- return /* @__PURE__ */ L("div", {
235
+ function Qe({ className: e, ...t }) {
236
+ return /* @__PURE__ */ I("div", {
237
237
  "data-slot": "sheet-header",
238
238
  className: h("flex flex-col gap-0.5 p-4", e),
239
239
  ...t
240
240
  });
241
241
  }
242
- function Xe({ className: e, ...t }) {
243
- return /* @__PURE__ */ L(W.Title, {
242
+ function $e({ className: e, ...t }) {
243
+ return /* @__PURE__ */ I(V.Title, {
244
244
  "data-slot": "sheet-title",
245
245
  className: h("font-heading text-base font-medium text-foreground", e),
246
246
  ...t
247
247
  });
248
248
  }
249
- function Ze({ className: e, ...t }) {
250
- return /* @__PURE__ */ L(W.Description, {
249
+ function et({ className: e, ...t }) {
250
+ return /* @__PURE__ */ I(V.Description, {
251
251
  "data-slot": "sheet-description",
252
252
  className: h("text-sm text-muted-foreground", e),
253
253
  ...t
@@ -255,53 +255,53 @@ function Ze({ className: e, ...t }) {
255
255
  }
256
256
  //#endregion
257
257
  //#region src/admin/components/ui/tooltip.tsx
258
- function Qe({ delay: e = 0, ...t }) {
259
- return /* @__PURE__ */ L(G.Provider, {
258
+ function tt({ delay: e = 0, ...t }) {
259
+ return /* @__PURE__ */ I(H.Provider, {
260
260
  "data-slot": "tooltip-provider",
261
261
  delay: e,
262
262
  ...t
263
263
  });
264
264
  }
265
- function $e({ ...e }) {
266
- return /* @__PURE__ */ L(G.Root, {
265
+ function nt({ ...e }) {
266
+ return /* @__PURE__ */ I(H.Root, {
267
267
  "data-slot": "tooltip",
268
268
  ...e
269
269
  });
270
270
  }
271
- function et({ ...e }) {
272
- return /* @__PURE__ */ L(G.Trigger, {
271
+ function rt({ ...e }) {
272
+ return /* @__PURE__ */ I(H.Trigger, {
273
273
  "data-slot": "tooltip-trigger",
274
274
  ...e
275
275
  });
276
276
  }
277
- function tt({ className: e, side: t = "top", sideOffset: n = 4, align: r = "center", alignOffset: i = 0, children: a, ...s }) {
278
- return /* @__PURE__ */ L(G.Portal, {
277
+ function it({ className: e, side: t = "top", sideOffset: n = 4, align: r = "center", alignOffset: i = 0, children: a, ...s }) {
278
+ return /* @__PURE__ */ I(H.Portal, {
279
279
  container: o().portal,
280
- children: /* @__PURE__ */ L(G.Positioner, {
280
+ children: /* @__PURE__ */ I(H.Positioner, {
281
281
  align: r,
282
282
  alignOffset: i,
283
283
  side: t,
284
284
  sideOffset: n,
285
285
  className: "isolate z-50",
286
- children: /* @__PURE__ */ R(G.Popup, {
286
+ children: /* @__PURE__ */ L(H.Popup, {
287
287
  "data-slot": "tooltip-content",
288
288
  className: h("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95", e),
289
289
  ...s,
290
- children: [a, /* @__PURE__ */ L(G.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })]
290
+ children: [a, /* @__PURE__ */ I(H.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })]
291
291
  })
292
292
  })
293
293
  });
294
294
  }
295
295
  //#endregion
296
296
  //#region src/admin/components/ui/sidebar.tsx
297
- var nt = "16rem", rt = "18rem", it = "3rem", at = "b", Y = k.createContext(null);
298
- function X() {
299
- let e = k.useContext(Y);
297
+ var at = "16rem", ot = "18rem", st = "3rem", ct = "b", K = k.createContext(null);
298
+ function q() {
299
+ let e = k.useContext(K);
300
300
  if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
301
301
  return e;
302
302
  }
303
- function ot({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...o }) {
304
- let s = Ue(), [c, l] = k.useState(!1), [u, d] = k.useState(e), f = t ?? u, p = k.useCallback((e) => {
303
+ function lt({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...o }) {
304
+ let s = Ke(), [c, l] = k.useState(!1), [u, d] = k.useState(e), f = t ?? u, p = k.useCallback((e) => {
305
305
  let t = typeof e == "function" ? e(f) : e;
306
306
  n ? n(t) : d(t);
307
307
  }, [n, f]), m = k.useCallback(() => s ? l((e) => !e) : p((e) => !e), [
@@ -325,16 +325,16 @@ function ot({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
325
325
  l,
326
326
  m
327
327
  ]);
328
- return /* @__PURE__ */ L(Y.Provider, {
328
+ return /* @__PURE__ */ I(K.Provider, {
329
329
  value: _,
330
- children: /* @__PURE__ */ L("div", {
330
+ children: /* @__PURE__ */ I("div", {
331
331
  "data-slot": "sidebar-wrapper",
332
332
  onKeyDown: (e) => {
333
- e.key === at && (e.metaKey || e.ctrlKey) && (e.preventDefault(), m());
333
+ e.key === ct && (e.metaKey || e.ctrlKey) && (e.preventDefault(), m());
334
334
  },
335
335
  style: {
336
- "--sidebar-width": nt,
337
- "--sidebar-width-icon": it,
336
+ "--sidebar-width": at,
337
+ "--sidebar-width-icon": st,
338
338
  ...i
339
339
  },
340
340
  className: h("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar relative flex min-h-[30rem] w-full", r),
@@ -343,49 +343,49 @@ function ot({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
343
343
  })
344
344
  });
345
345
  }
346
- function st({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, dir: a, ...o }) {
347
- let { isMobile: s, state: c, openMobile: l, setOpenMobile: u } = X();
348
- return n === "none" ? /* @__PURE__ */ L("div", {
346
+ function ut({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, dir: a, ...o }) {
347
+ let { isMobile: s, state: c, openMobile: l, setOpenMobile: u } = q();
348
+ return n === "none" ? /* @__PURE__ */ I("div", {
349
349
  "data-slot": "sidebar",
350
350
  className: h("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
351
351
  ...o,
352
352
  children: i
353
- }) : s ? /* @__PURE__ */ L(Ge, {
353
+ }) : s ? /* @__PURE__ */ I(Je, {
354
354
  open: l,
355
355
  onOpenChange: u,
356
356
  ...o,
357
- children: /* @__PURE__ */ R(Je, {
357
+ children: /* @__PURE__ */ L(Ze, {
358
358
  dir: a,
359
359
  "data-sidebar": "sidebar",
360
360
  "data-slot": "sidebar",
361
361
  "data-mobile": "true",
362
362
  className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
363
- style: { "--sidebar-width": rt },
363
+ style: { "--sidebar-width": ot },
364
364
  side: e,
365
- children: [/* @__PURE__ */ R(Ye, {
365
+ children: [/* @__PURE__ */ L(Qe, {
366
366
  className: "sr-only",
367
- children: [/* @__PURE__ */ L(Xe, { children: /* @__PURE__ */ L(_, { id: "Sidebar" }) }), /* @__PURE__ */ L(Ze, { children: /* @__PURE__ */ L(_, { id: "Displays the mobile sidebar." }) })]
368
- }), /* @__PURE__ */ L("div", {
367
+ children: [/* @__PURE__ */ I($e, { children: /* @__PURE__ */ I(_, { id: "Sidebar" }) }), /* @__PURE__ */ I(et, { children: /* @__PURE__ */ I(_, { id: "Displays the mobile sidebar." }) })]
368
+ }), /* @__PURE__ */ I("div", {
369
369
  className: "flex h-full w-full flex-col",
370
370
  children: i
371
371
  })]
372
372
  })
373
- }) : /* @__PURE__ */ R("div", {
373
+ }) : /* @__PURE__ */ L("div", {
374
374
  className: "group peer text-sidebar-foreground relative hidden md:block",
375
375
  "data-state": c,
376
376
  "data-collapsible": c === "collapsed" ? n : "",
377
377
  "data-variant": t,
378
378
  "data-side": e,
379
379
  "data-slot": "sidebar",
380
- children: [/* @__PURE__ */ L("div", {
380
+ children: [/* @__PURE__ */ I("div", {
381
381
  "data-slot": "sidebar-gap",
382
382
  className: h("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
383
- }), /* @__PURE__ */ L("div", {
383
+ }), /* @__PURE__ */ I("div", {
384
384
  "data-slot": "sidebar-container",
385
385
  "data-side": e,
386
386
  className: h("absolute inset-y-0 z-10 hidden h-full w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", r),
387
387
  ...o,
388
- children: /* @__PURE__ */ L("div", {
388
+ children: /* @__PURE__ */ I("div", {
389
389
  "data-sidebar": "sidebar",
390
390
  "data-slot": "sidebar-inner",
391
391
  className: "bg-sidebar group-data-[variant=floating]:ring-sidebar-border flex size-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1",
@@ -394,9 +394,9 @@ function st({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
394
394
  })]
395
395
  });
396
396
  }
397
- function ct({ className: e, onClick: t, ...n }) {
398
- let { toggleSidebar: r } = X();
399
- return /* @__PURE__ */ R(C, {
397
+ function dt({ className: e, onClick: t, ...n }) {
398
+ let { toggleSidebar: r } = q();
399
+ return /* @__PURE__ */ L(C, {
400
400
  "data-sidebar": "trigger",
401
401
  "data-slot": "sidebar-trigger",
402
402
  variant: "ghost",
@@ -406,15 +406,15 @@ function ct({ className: e, onClick: t, ...n }) {
406
406
  t?.(e), r();
407
407
  },
408
408
  ...n,
409
- children: [/* @__PURE__ */ L(Ne, {}), /* @__PURE__ */ L("span", {
409
+ children: [/* @__PURE__ */ I(Ie, {}), /* @__PURE__ */ I("span", {
410
410
  className: "sr-only",
411
- children: /* @__PURE__ */ L(_, { id: "Toggle Sidebar" })
411
+ children: /* @__PURE__ */ I(_, { id: "Toggle Sidebar" })
412
412
  })]
413
413
  });
414
414
  }
415
- function lt({ className: e, ...n }) {
416
- let { text: r } = t(), { toggleSidebar: i } = X();
417
- return /* @__PURE__ */ L("button", {
415
+ function ft({ className: e, ...n }) {
416
+ let { text: r } = t(), { toggleSidebar: i } = q();
417
+ return /* @__PURE__ */ I("button", {
418
418
  "data-sidebar": "rail",
419
419
  "data-slot": "sidebar-rail",
420
420
  "aria-label": r("Toggle Sidebar"),
@@ -425,41 +425,41 @@ function lt({ className: e, ...n }) {
425
425
  ...n
426
426
  });
427
427
  }
428
- function ut({ className: e, ...t }) {
429
- return /* @__PURE__ */ L("main", {
428
+ function pt({ className: e, ...t }) {
429
+ return /* @__PURE__ */ I("main", {
430
430
  "data-slot": "sidebar-inset",
431
431
  className: h("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
432
432
  ...t
433
433
  });
434
434
  }
435
- function dt({ className: e, ...t }) {
436
- return /* @__PURE__ */ L("div", {
435
+ function mt({ className: e, ...t }) {
436
+ return /* @__PURE__ */ I("div", {
437
437
  "data-slot": "sidebar-header",
438
438
  "data-sidebar": "header",
439
439
  className: h("flex flex-col gap-2 p-2", e),
440
440
  ...t
441
441
  });
442
442
  }
443
- function ft({ className: e, ...t }) {
444
- return /* @__PURE__ */ L("div", {
443
+ function ht({ className: e, ...t }) {
444
+ return /* @__PURE__ */ I("div", {
445
445
  "data-slot": "sidebar-content",
446
446
  "data-sidebar": "content",
447
447
  className: h("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
448
448
  ...t
449
449
  });
450
450
  }
451
- function pt({ className: e, ...t }) {
452
- return /* @__PURE__ */ L("div", {
451
+ function gt({ className: e, ...t }) {
452
+ return /* @__PURE__ */ I("div", {
453
453
  "data-slot": "sidebar-group",
454
454
  "data-sidebar": "group",
455
455
  className: h("relative flex w-full min-w-0 flex-col p-2", e),
456
456
  ...t
457
457
  });
458
458
  }
459
- function mt({ className: e, render: t, ...n }) {
460
- return U({
459
+ function _t({ className: e, render: t, ...n }) {
460
+ return B({
461
461
  defaultTagName: "div",
462
- props: H({ className: h("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", e) }, n),
462
+ props: z({ className: h("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", e) }, n),
463
463
  render: t,
464
464
  state: {
465
465
  slot: "sidebar-group-label",
@@ -467,31 +467,31 @@ function mt({ className: e, render: t, ...n }) {
467
467
  }
468
468
  });
469
469
  }
470
- function ht({ className: e, ...t }) {
471
- return /* @__PURE__ */ L("div", {
470
+ function vt({ className: e, ...t }) {
471
+ return /* @__PURE__ */ I("div", {
472
472
  "data-slot": "sidebar-group-content",
473
473
  "data-sidebar": "group-content",
474
474
  className: h("w-full text-sm", e),
475
475
  ...t
476
476
  });
477
477
  }
478
- function Z({ className: e, ...t }) {
479
- return /* @__PURE__ */ L("ul", {
478
+ function J({ className: e, ...t }) {
479
+ return /* @__PURE__ */ I("ul", {
480
480
  "data-slot": "sidebar-menu",
481
481
  "data-sidebar": "menu",
482
482
  className: h("flex w-full min-w-0 flex-col gap-0", e),
483
483
  ...t
484
484
  });
485
485
  }
486
- function Q({ className: e, ...t }) {
487
- return /* @__PURE__ */ L("li", {
486
+ function Y({ className: e, ...t }) {
487
+ return /* @__PURE__ */ I("li", {
488
488
  "data-slot": "sidebar-menu-item",
489
489
  "data-sidebar": "menu-item",
490
490
  className: h("group/menu-item relative", e),
491
491
  ...t
492
492
  });
493
493
  }
494
- var gt = Ie("peer/menu-button group/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:font-medium [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
494
+ var yt = ze("peer/menu-button group/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:font-medium [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
495
495
  variants: {
496
496
  variant: {
497
497
  default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
@@ -508,14 +508,14 @@ var gt = Ie("peer/menu-button group/menu-button ring-sidebar-ring hover:bg-sideb
508
508
  size: "default"
509
509
  }
510
510
  });
511
- function _t({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
512
- let { isMobile: s, state: c } = X(), l = U({
511
+ function X({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
512
+ let { isMobile: s, state: c } = q(), l = B({
513
513
  defaultTagName: "button",
514
- props: H({ className: h(gt({
514
+ props: z({ className: h(yt({
515
515
  variant: n,
516
516
  size: r
517
517
  }), a) }, o),
518
- render: i ? /* @__PURE__ */ L(et, { render: e }) : e,
518
+ render: i ? /* @__PURE__ */ I(rt, { render: e }) : e,
519
519
  state: {
520
520
  slot: "sidebar-menu-button",
521
521
  sidebar: "menu-button",
@@ -523,33 +523,33 @@ function _t({ render: e, isActive: t = !1, variant: n = "default", size: r = "de
523
523
  active: t
524
524
  }
525
525
  });
526
- return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ R($e, { children: [l, /* @__PURE__ */ L(tt, {
526
+ return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ L(nt, { children: [l, /* @__PURE__ */ I(it, {
527
527
  side: "right",
528
528
  align: "center",
529
529
  hidden: c !== "collapsed" || s,
530
530
  ...i
531
531
  })] })) : l;
532
532
  }
533
- function vt({ className: e, ...t }) {
534
- return /* @__PURE__ */ L("ul", {
533
+ function bt({ className: e, ...t }) {
534
+ return /* @__PURE__ */ I("ul", {
535
535
  "data-slot": "sidebar-menu-sub",
536
536
  "data-sidebar": "menu-sub",
537
537
  className: h("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden", e),
538
538
  ...t
539
539
  });
540
540
  }
541
- function yt({ className: e, ...t }) {
542
- return /* @__PURE__ */ L("li", {
541
+ function xt({ className: e, ...t }) {
542
+ return /* @__PURE__ */ I("li", {
543
543
  "data-slot": "sidebar-menu-sub-item",
544
544
  "data-sidebar": "menu-sub-item",
545
545
  className: h("group/menu-sub-item relative", e),
546
546
  ...t
547
547
  });
548
548
  }
549
- function bt({ render: e, size: t = "md", isActive: n = !1, className: r, ...i }) {
550
- return U({
549
+ function St({ render: e, size: t = "md", isActive: n = !1, className: r, ...i }) {
550
+ return B({
551
551
  defaultTagName: "a",
552
- props: H({ className: h("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden group-data-[collapsible=icon]:hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", r) }, i),
552
+ props: z({ className: h("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden group-data-[collapsible=icon]:hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", r) }, i),
553
553
  render: e,
554
554
  state: {
555
555
  slot: "sidebar-menu-sub-button",
@@ -561,11 +561,11 @@ function bt({ render: e, size: t = "md", isActive: n = !1, className: r, ...i })
561
561
  }
562
562
  //#endregion
563
563
  //#region src/admin/navigation.tsx
564
- var xt = [
564
+ var Z = [
565
565
  {
566
566
  title: "Dashboard",
567
567
  path: "/",
568
- icon: ye,
568
+ icon: xe,
569
569
  order: 0,
570
570
  useVisible: w,
571
571
  items: [{
@@ -579,21 +579,21 @@ var xt = [
579
579
  {
580
580
  title: "Customers",
581
581
  path: "/customers",
582
- icon: Ee,
582
+ icon: ke,
583
583
  order: 10,
584
584
  useVisible: T
585
585
  },
586
586
  {
587
587
  title: "Subscriptions",
588
588
  path: "/subscriptions",
589
- icon: Se,
589
+ icon: Te,
590
590
  order: 20,
591
591
  useVisible: T
592
592
  },
593
593
  {
594
594
  title: "Payments",
595
595
  path: "/payments",
596
- icon: B,
596
+ icon: be,
597
597
  order: 30,
598
598
  useVisible: T,
599
599
  items: [
@@ -619,14 +619,14 @@ var xt = [
619
619
  {
620
620
  title: "Orders",
621
621
  path: "/orders",
622
- icon: B,
622
+ icon: be,
623
623
  order: 40,
624
624
  useVisible: T
625
625
  },
626
626
  {
627
627
  title: "Catalog",
628
628
  path: "/catalog",
629
- icon: be,
629
+ icon: Ce,
630
630
  order: 50,
631
631
  useVisible: ne,
632
632
  items: [
@@ -652,249 +652,249 @@ var xt = [
652
652
  {
653
653
  title: "Ops",
654
654
  path: "/ops",
655
- icon: De,
655
+ icon: Ae,
656
656
  order: 60,
657
657
  useVisible: E
658
658
  },
659
659
  {
660
660
  title: "Settings",
661
661
  path: "/settings",
662
- icon: Ce,
662
+ icon: Ee,
663
663
  order: 70
664
664
  }
665
665
  ].map((e) => ({ ...e }));
666
666
  //#endregion
667
667
  //#region src/admin/components/app-sidebar.tsx
668
- function St(e, t, n) {
668
+ function Ct(e, t, n) {
669
669
  return t === n ? e === t : e.startsWith(t);
670
670
  }
671
- function Ct() {
671
+ function wt() {
672
672
  let { pathname: e } = d(), t = [{
673
673
  label: "Billing",
674
- items: xt
675
- }], n = [...xt].sort((e, t) => t.path.length - e.path.length).find((t) => e === t.path || t.path !== "/" && e.startsWith(t.path + "/"))?.path;
676
- return /* @__PURE__ */ R(st, {
674
+ items: Z
675
+ }], n = [...Z].sort((e, t) => t.path.length - e.path.length).find((t) => e === t.path || t.path !== "/" && e.startsWith(t.path + "/"))?.path;
676
+ return /* @__PURE__ */ L(ut, {
677
677
  variant: "inset",
678
678
  collapsible: "icon",
679
679
  children: [
680
- /* @__PURE__ */ L(dt, { children: /* @__PURE__ */ L(Dt, {}) }),
681
- /* @__PURE__ */ L(ft, { children: t.map((t) => /* @__PURE__ */ R(pt, { children: [/* @__PURE__ */ L(mt, { children: /* @__PURE__ */ L(_, { id: t.label }) }), /* @__PURE__ */ L(ht, { children: /* @__PURE__ */ L(Z, { children: t.items.map((t) => /* @__PURE__ */ L(Tt, {
680
+ /* @__PURE__ */ I(mt, { children: /* @__PURE__ */ I(Ot, {}) }),
681
+ /* @__PURE__ */ I(ht, { children: t.map((t) => /* @__PURE__ */ L(gt, { children: [/* @__PURE__ */ I(_t, { children: /* @__PURE__ */ I(_, { id: t.label }) }), /* @__PURE__ */ I(vt, { children: /* @__PURE__ */ I(J, { children: t.items.map((t) => /* @__PURE__ */ I(Et, {
682
682
  item: t,
683
683
  active: t.path === n,
684
684
  pathname: e
685
685
  }, t.path)) }) })] }, t.label)) }),
686
- /* @__PURE__ */ L(lt, {})
686
+ /* @__PURE__ */ I(ft, {})
687
687
  ]
688
688
  });
689
689
  }
690
- var wt = () => !0;
691
- function Tt({ item: e, active: n, pathname: r }) {
690
+ var Tt = () => !0;
691
+ function Et({ item: e, active: n, pathname: r }) {
692
692
  let { text: i } = t();
693
- return (e.useVisible ?? wt)() ? /* @__PURE__ */ R(Q, { children: [/* @__PURE__ */ L(_t, {
693
+ return (e.useVisible ?? Tt)() ? /* @__PURE__ */ L(Y, { children: [/* @__PURE__ */ I(X, {
694
694
  isActive: n,
695
695
  tooltip: i(e.title),
696
- render: /* @__PURE__ */ R(p, {
696
+ render: /* @__PURE__ */ L(p, {
697
697
  to: e.path,
698
- children: [e.icon && /* @__PURE__ */ L(z, { icon: e.icon }), /* @__PURE__ */ L("span", { children: /* @__PURE__ */ L(_, { id: e.title }) })]
698
+ children: [e.icon && /* @__PURE__ */ I(R, { icon: e.icon }), /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(_, { id: e.title }) })]
699
699
  })
700
- }), e.items && n && /* @__PURE__ */ L(vt, { children: e.items.map((t) => /* @__PURE__ */ L(Et, {
700
+ }), e.items && n && /* @__PURE__ */ I(bt, { children: e.items.map((t) => /* @__PURE__ */ I(Dt, {
701
701
  sub: t,
702
- active: St(r, t.path, e.path)
702
+ active: Ct(r, t.path, e.path)
703
703
  }, t.path)) })] }) : null;
704
704
  }
705
- function Et({ sub: e, active: t }) {
706
- return (e.useVisible ?? wt)() ? /* @__PURE__ */ L(yt, { children: /* @__PURE__ */ L(bt, {
705
+ function Dt({ sub: e, active: t }) {
706
+ return (e.useVisible ?? Tt)() ? /* @__PURE__ */ I(xt, { children: /* @__PURE__ */ I(St, {
707
707
  isActive: t,
708
- render: /* @__PURE__ */ L(p, {
708
+ render: /* @__PURE__ */ I(p, {
709
709
  to: e.path,
710
- children: /* @__PURE__ */ L("span", { children: /* @__PURE__ */ L(_, { id: e.title }) })
710
+ children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(_, { id: e.title }) })
711
711
  })
712
712
  }) }) : null;
713
713
  }
714
- function Dt() {
714
+ function Ot() {
715
715
  let { activeMerchant: e, merchants: t, selectMerchant: n } = D(), r = m(), i = o().props.newMerchantHref, a = e?.display_name || e?.slug || "Select merchant", s = e?.role || "Merchant console", c = e?.slug.slice(0, 2) ?? "µ";
716
- return /* @__PURE__ */ L(Z, { children: /* @__PURE__ */ L(Q, { children: /* @__PURE__ */ R(S, { children: [/* @__PURE__ */ L(x, { render: /* @__PURE__ */ R(_t, {
716
+ return /* @__PURE__ */ I(J, { children: /* @__PURE__ */ I(Y, { children: /* @__PURE__ */ L(S, { children: [/* @__PURE__ */ I(x, { render: /* @__PURE__ */ L(X, {
717
717
  size: "lg",
718
718
  tooltip: a,
719
719
  className: "data-open:bg-sidebar-accent",
720
720
  children: [
721
- /* @__PURE__ */ L("span", {
721
+ /* @__PURE__ */ I("span", {
722
722
  className: "flex aspect-square size-8 shrink-0 items-center justify-center rounded-lg bg-primary text-xs font-semibold text-primary-foreground uppercase",
723
723
  children: c
724
724
  }),
725
- /* @__PURE__ */ R("span", {
725
+ /* @__PURE__ */ L("span", {
726
726
  className: "grid min-w-0 flex-1 text-left leading-tight",
727
- children: [/* @__PURE__ */ L("span", {
727
+ children: [/* @__PURE__ */ I("span", {
728
728
  className: "truncate text-sm font-medium",
729
729
  children: a
730
- }), /* @__PURE__ */ L("span", {
730
+ }), /* @__PURE__ */ I("span", {
731
731
  className: "truncate text-xs text-muted-foreground capitalize",
732
732
  children: s
733
733
  })]
734
734
  }),
735
- /* @__PURE__ */ L(z, {
736
- icon: Te,
735
+ /* @__PURE__ */ I(R, {
736
+ icon: Oe,
737
737
  className: "ml-auto size-4 shrink-0"
738
738
  })
739
739
  ]
740
- }) }), /* @__PURE__ */ R(b, {
740
+ }) }), /* @__PURE__ */ L(b, {
741
741
  side: "bottom",
742
742
  align: "start",
743
743
  className: "min-w-60",
744
- children: [/* @__PURE__ */ R(te, { children: [/* @__PURE__ */ L(v, {
744
+ children: [/* @__PURE__ */ L(te, { children: [/* @__PURE__ */ I(v, {
745
745
  className: "text-xs text-muted-foreground",
746
- children: /* @__PURE__ */ L(_, { id: "Merchants" })
746
+ children: /* @__PURE__ */ I(_, { id: "Merchants" })
747
747
  }), t.map((t) => {
748
748
  let r = t.slug === e?.slug;
749
- return /* @__PURE__ */ R(y, {
749
+ return /* @__PURE__ */ L(y, {
750
750
  onClick: () => n(t.slug),
751
751
  className: "gap-2 py-2",
752
752
  children: [
753
- /* @__PURE__ */ L("span", {
753
+ /* @__PURE__ */ I("span", {
754
754
  className: "flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-[10px] font-semibold uppercase",
755
755
  children: t.slug.slice(0, 2)
756
756
  }),
757
- /* @__PURE__ */ R("span", {
757
+ /* @__PURE__ */ L("span", {
758
758
  className: "grid min-w-0 flex-1 leading-tight",
759
- children: [/* @__PURE__ */ L("span", {
759
+ children: [/* @__PURE__ */ I("span", {
760
760
  className: "truncate text-sm",
761
761
  children: t.display_name || t.slug
762
- }), t.role && /* @__PURE__ */ L("span", {
762
+ }), t.role && /* @__PURE__ */ I("span", {
763
763
  className: "truncate text-xs text-muted-foreground capitalize",
764
764
  children: t.role
765
765
  })]
766
766
  }),
767
- r && /* @__PURE__ */ L(z, {
768
- icon: we,
767
+ r && /* @__PURE__ */ I(R, {
768
+ icon: De,
769
769
  className: "ml-auto size-4 shrink-0 text-primary"
770
770
  })
771
771
  ]
772
772
  }, t.slug);
773
- })] }), i && /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(ee, {}), /* @__PURE__ */ R(y, {
773
+ })] }), i && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(ee, {}), /* @__PURE__ */ L(y, {
774
774
  onClick: () => void r(i),
775
775
  className: "gap-2 py-2",
776
- children: [/* @__PURE__ */ L("span", {
776
+ children: [/* @__PURE__ */ I("span", {
777
777
  className: "flex size-7 shrink-0 items-center justify-center rounded-md border border-dashed border-border",
778
- children: /* @__PURE__ */ L(z, {
779
- icon: ge,
778
+ children: /* @__PURE__ */ I(R, {
779
+ icon: _e,
780
780
  className: "size-4"
781
781
  })
782
- }), /* @__PURE__ */ L(_, { id: "New merchant" })]
782
+ }), /* @__PURE__ */ I(_, { id: "New merchant" })]
783
783
  })] })]
784
784
  })] }) }) });
785
785
  }
786
786
  //#endregion
787
787
  //#region src/admin/components/no-access.tsx
788
- function Ot({ area: e }) {
789
- return /* @__PURE__ */ L("div", {
788
+ function kt({ area: e }) {
789
+ return /* @__PURE__ */ I("div", {
790
790
  className: "flex items-center justify-center py-16",
791
- children: /* @__PURE__ */ R("div", {
791
+ children: /* @__PURE__ */ L("div", {
792
792
  className: "w-full max-w-sm",
793
- children: [/* @__PURE__ */ L("h1", {
793
+ children: [/* @__PURE__ */ I("h1", {
794
794
  className: "text-2xl font-semibold tracking-tight text-balance",
795
795
  children: e ? `You don't have access to ${e}` : "You don't have access to this merchant's billing"
796
- }), /* @__PURE__ */ L("p", {
796
+ }), /* @__PURE__ */ I("p", {
797
797
  className: "mt-2 text-sm text-pretty text-muted-foreground",
798
- children: /* @__PURE__ */ L(_, { id: "Ask an administrator for a role that includes it." })
798
+ children: /* @__PURE__ */ I(_, { id: "Ask an administrator for a role that includes it." })
799
799
  })]
800
800
  })
801
801
  });
802
802
  }
803
803
  //#endregion
804
804
  //#region src/admin/components/no-merchants.tsx
805
- function kt() {
805
+ function At() {
806
806
  let { props: e } = o();
807
- return /* @__PURE__ */ L("div", {
807
+ return /* @__PURE__ */ I("div", {
808
808
  role: "status",
809
809
  className: "p-8",
810
- children: e.emptyState ?? /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L("p", { children: /* @__PURE__ */ L(_, { id: "Select a merchant to view its billing." }) }), e.newMerchantHref && /* @__PURE__ */ L("a", {
810
+ children: e.emptyState ?? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("p", { children: /* @__PURE__ */ I(_, { id: "Select a merchant to view its billing." }) }), e.newMerchantHref && /* @__PURE__ */ I("a", {
811
811
  href: e.newMerchantHref,
812
- children: /* @__PURE__ */ L(_, { id: "New merchant" })
812
+ children: /* @__PURE__ */ I(_, { id: "New merchant" })
813
813
  })] })
814
814
  });
815
815
  }
816
816
  //#endregion
817
817
  //#region src/admin/components/notification-bell.tsx
818
- function At() {
819
- let { text: e } = t(), { adminQueries: n } = f(), r = m(), [i, a] = k.useState(!1), o = w(), s = E(), { data: c = 0 } = F({
818
+ function jt() {
819
+ let { text: e } = t(), { adminQueries: n } = f(), r = m(), [i, a] = k.useState(!1), o = w(), s = E(), { data: c = 0 } = P({
820
820
  ...n.unreadNotifications(),
821
821
  enabled: s && o
822
- }), { data: l, isFetching: u } = F(n.notifications(s && i)), d = l?.data ?? [];
822
+ }), { data: l, isFetching: u } = P(n.notifications(s && i)), d = l?.data ?? [];
823
823
  if (!s) return null;
824
824
  let p = (e) => {
825
825
  a(!1), r(`/ops?finding=${encodeURIComponent(e.id)}`);
826
826
  };
827
- return /* @__PURE__ */ R(S, {
827
+ return /* @__PURE__ */ L(S, {
828
828
  open: i,
829
829
  onOpenChange: a,
830
- children: [/* @__PURE__ */ L(x, { render: /* @__PURE__ */ R(C, {
830
+ children: [/* @__PURE__ */ I(x, { render: /* @__PURE__ */ L(C, {
831
831
  variant: "ghost",
832
832
  size: "icon",
833
833
  "aria-label": e("Notifications"),
834
834
  className: "relative",
835
- children: [/* @__PURE__ */ L(z, {
836
- icon: V,
835
+ children: [/* @__PURE__ */ I(R, {
836
+ icon: Se,
837
837
  className: "size-4"
838
- }), c > 0 && /* @__PURE__ */ L("span", {
838
+ }), c > 0 && /* @__PURE__ */ I("span", {
839
839
  className: "absolute -top-0.5 -right-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-[10px] font-medium text-white",
840
840
  children: c > 9 ? "9+" : c
841
841
  })]
842
- }) }), /* @__PURE__ */ R(b, {
842
+ }) }), /* @__PURE__ */ L(b, {
843
843
  align: "end",
844
844
  className: "w-80 p-0 sm:w-96",
845
- children: [/* @__PURE__ */ R("div", {
845
+ children: [/* @__PURE__ */ L("div", {
846
846
  className: "flex items-center justify-between border-b px-3 py-2",
847
- children: [/* @__PURE__ */ L("span", {
847
+ children: [/* @__PURE__ */ I("span", {
848
848
  className: "text-sm font-medium",
849
- children: /* @__PURE__ */ L(_, { id: "Needs attention" })
850
- }), c > d.length && /* @__PURE__ */ R(C, {
849
+ children: /* @__PURE__ */ I(_, { id: "Needs attention" })
850
+ }), c > d.length && /* @__PURE__ */ L(C, {
851
851
  variant: "ghost",
852
852
  size: "sm",
853
853
  className: "h-6 px-2 text-xs",
854
854
  onClick: () => {
855
855
  a(!1), r("/ops");
856
856
  },
857
- children: [/* @__PURE__ */ L(_, { id: "View all " }), c]
857
+ children: [/* @__PURE__ */ I(_, { id: "View all " }), c]
858
858
  })]
859
- }), /* @__PURE__ */ L("div", {
859
+ }), /* @__PURE__ */ I("div", {
860
860
  className: "max-h-96 overflow-y-auto",
861
- children: u ? /* @__PURE__ */ L("p", {
861
+ children: u ? /* @__PURE__ */ I("p", {
862
862
  className: "px-3 py-6 text-center text-sm text-muted-foreground",
863
- children: /* @__PURE__ */ L(_, { id: "Loading…" })
864
- }) : d.length === 0 ? /* @__PURE__ */ R("div", {
863
+ children: /* @__PURE__ */ I(_, { id: "Loading…" })
864
+ }) : d.length === 0 ? /* @__PURE__ */ L("div", {
865
865
  className: "flex flex-col items-center gap-1 px-3 py-8 text-center",
866
- children: [/* @__PURE__ */ L(z, {
867
- icon: V,
866
+ children: [/* @__PURE__ */ I(R, {
867
+ icon: Se,
868
868
  className: "size-5 text-muted-foreground"
869
- }), /* @__PURE__ */ L("p", {
869
+ }), /* @__PURE__ */ I("p", {
870
870
  className: "text-sm text-muted-foreground",
871
- children: /* @__PURE__ */ L(_, { id: "You're all caught up." })
871
+ children: /* @__PURE__ */ I(_, { id: "You're all caught up." })
872
872
  })]
873
- }) : d.map((e) => /* @__PURE__ */ R("button", {
873
+ }) : d.map((e) => /* @__PURE__ */ L("button", {
874
874
  type: "button",
875
875
  onClick: () => p(e),
876
876
  className: "flex w-full items-start gap-2 border-b px-3 py-2 text-left last:border-b-0 hover:bg-muted/50",
877
- children: [/* @__PURE__ */ L("span", {
877
+ children: [/* @__PURE__ */ I("span", {
878
878
  className: "mt-0.5 shrink-0",
879
- children: e.severity === "critical" || e.severity === "high" ? /* @__PURE__ */ L(z, {
880
- icon: ve,
879
+ children: e.severity === "critical" || e.severity === "high" ? /* @__PURE__ */ I(R, {
880
+ icon: ye,
881
881
  className: "text-failed size-4"
882
- }) : /* @__PURE__ */ L(z, {
883
- icon: _e,
882
+ }) : /* @__PURE__ */ I(R, {
883
+ icon: ve,
884
884
  className: "text-held size-4"
885
885
  })
886
- }), /* @__PURE__ */ R("span", {
886
+ }), /* @__PURE__ */ L("span", {
887
887
  className: "min-w-0 flex-1",
888
- children: [/* @__PURE__ */ R("span", {
888
+ children: [/* @__PURE__ */ L("span", {
889
889
  className: "flex items-center justify-between gap-2",
890
- children: [/* @__PURE__ */ L("span", {
890
+ children: [/* @__PURE__ */ I("span", {
891
891
  className: "truncate text-sm font-medium",
892
892
  children: e.finding_type
893
- }), /* @__PURE__ */ L("span", {
893
+ }), /* @__PURE__ */ I("span", {
894
894
  className: "shrink-0 text-[11px] text-muted-foreground",
895
895
  children: ie(e.created_at)
896
896
  })]
897
- }), e.recommended_action && /* @__PURE__ */ L("span", {
897
+ }), e.recommended_action && /* @__PURE__ */ I("span", {
898
898
  className: "mt-0.5 line-clamp-2 block text-xs text-muted-foreground",
899
899
  children: e.recommended_action
900
900
  })]
@@ -906,39 +906,39 @@ function At() {
906
906
  }
907
907
  //#endregion
908
908
  //#region src/admin/components/ui/breadcrumb.tsx
909
- function jt({ className: e, ...n }) {
909
+ function Mt({ className: e, ...n }) {
910
910
  let { text: r } = t();
911
- return /* @__PURE__ */ L("nav", {
911
+ return /* @__PURE__ */ I("nav", {
912
912
  "aria-label": r("breadcrumb"),
913
913
  "data-slot": "breadcrumb",
914
914
  className: h(e),
915
915
  ...n
916
916
  });
917
917
  }
918
- function Mt({ className: e, ...t }) {
919
- return /* @__PURE__ */ L("ol", {
918
+ function Nt({ className: e, ...t }) {
919
+ return /* @__PURE__ */ I("ol", {
920
920
  "data-slot": "breadcrumb-list",
921
921
  className: h("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground", e),
922
922
  ...t
923
923
  });
924
924
  }
925
- function $({ className: e, ...t }) {
926
- return /* @__PURE__ */ L("li", {
925
+ function Q({ className: e, ...t }) {
926
+ return /* @__PURE__ */ I("li", {
927
927
  "data-slot": "breadcrumb-item",
928
928
  className: h("inline-flex items-center gap-1", e),
929
929
  ...t
930
930
  });
931
931
  }
932
- function Nt({ className: e, render: t, ...n }) {
933
- return U({
932
+ function Pt({ className: e, render: t, ...n }) {
933
+ return B({
934
934
  defaultTagName: "a",
935
- props: H({ className: h("transition-colors hover:text-foreground", e) }, n),
935
+ props: z({ className: h("transition-colors hover:text-foreground", e) }, n),
936
936
  render: t,
937
937
  state: { slot: "breadcrumb-link" }
938
938
  });
939
939
  }
940
- function Pt({ className: e, ...t }) {
941
- return /* @__PURE__ */ L("span", {
940
+ function Ft({ className: e, ...t }) {
941
+ return /* @__PURE__ */ I("span", {
942
942
  "data-slot": "breadcrumb-page",
943
943
  role: "link",
944
944
  "aria-disabled": "true",
@@ -947,45 +947,45 @@ function Pt({ className: e, ...t }) {
947
947
  ...t
948
948
  });
949
949
  }
950
- function Ft({ children: e, className: t, ...n }) {
951
- return /* @__PURE__ */ L("li", {
950
+ function It({ children: e, className: t, ...n }) {
951
+ return /* @__PURE__ */ I("li", {
952
952
  "data-slot": "breadcrumb-separator",
953
953
  role: "presentation",
954
954
  "aria-hidden": "true",
955
955
  className: h("[&>svg]:size-3.5", t),
956
956
  ...n,
957
- children: e ?? /* @__PURE__ */ L(Oe, {})
957
+ children: e ?? /* @__PURE__ */ I(je, {})
958
958
  });
959
959
  }
960
960
  //#endregion
961
961
  //#region src/admin/components/site-header.tsx
962
- function It({ trail: e }) {
962
+ function Lt({ trail: e }) {
963
963
  let { activeMerchant: t } = D(), n = E();
964
- return /* @__PURE__ */ R("header", {
964
+ return /* @__PURE__ */ L("header", {
965
965
  className: "flex h-14 shrink-0 items-center gap-2 border-b px-4",
966
966
  children: [
967
- /* @__PURE__ */ L(ct, { className: "-ml-1" }),
968
- /* @__PURE__ */ L(We, {
967
+ /* @__PURE__ */ I(dt, { className: "-ml-1" }),
968
+ /* @__PURE__ */ I(qe, {
969
969
  orientation: "vertical",
970
970
  className: "mr-2 h-4"
971
971
  }),
972
- /* @__PURE__ */ L(jt, { children: /* @__PURE__ */ L(Mt, { children: e.length === 0 ? /* @__PURE__ */ L($, { children: /* @__PURE__ */ L(Pt, { children: /* @__PURE__ */ L(_, { id: "Dashboard" }) }) }) : /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L($, { children: /* @__PURE__ */ L(Nt, { render: /* @__PURE__ */ L(p, {
972
+ /* @__PURE__ */ I(Mt, { children: /* @__PURE__ */ I(Nt, { children: e.length === 0 ? /* @__PURE__ */ I(Q, { children: /* @__PURE__ */ I(Ft, { children: /* @__PURE__ */ I(_, { id: "Dashboard" }) }) }) : /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(Q, { children: /* @__PURE__ */ I(Pt, { render: /* @__PURE__ */ I(p, {
973
973
  to: "/",
974
- children: /* @__PURE__ */ L(_, { id: "Dashboard" })
975
- }) }) }), e.map((t, n) => /* @__PURE__ */ R(k.Fragment, { children: [/* @__PURE__ */ L(Ft, {}), /* @__PURE__ */ L($, { children: t.to && n < e.length - 1 ? /* @__PURE__ */ L(Nt, { render: /* @__PURE__ */ L(p, {
974
+ children: /* @__PURE__ */ I(_, { id: "Dashboard" })
975
+ }) }) }), e.map((t, n) => /* @__PURE__ */ L(k.Fragment, { children: [/* @__PURE__ */ I(It, {}), /* @__PURE__ */ I(Q, { children: t.to && n < e.length - 1 ? /* @__PURE__ */ I(Pt, { render: /* @__PURE__ */ I(p, {
976
976
  to: t.to,
977
- children: /* @__PURE__ */ L(_, { id: t.label })
978
- }) }) : /* @__PURE__ */ L(Pt, { children: /* @__PURE__ */ L(_, { id: t.label }) }) })] }, t.label))] }) }) }),
979
- /* @__PURE__ */ L("div", {
977
+ children: /* @__PURE__ */ I(_, { id: t.label })
978
+ }) }) : /* @__PURE__ */ I(Ft, { children: /* @__PURE__ */ I(_, { id: t.label }) }) })] }, t.label))] }) }) }),
979
+ /* @__PURE__ */ I("div", {
980
980
  className: "ml-auto flex items-center gap-2",
981
- children: t && n && /* @__PURE__ */ L(At, {})
981
+ children: t && n && /* @__PURE__ */ I(jt, {})
982
982
  })
983
983
  ]
984
984
  });
985
985
  }
986
986
  //#endregion
987
987
  //#region src/admin/layouts/app-layout.tsx
988
- var Lt = [
988
+ var Rt = [
989
989
  ["/customers", [{ label: "Customers" }]],
990
990
  ["/subscriptions", [{ label: "Subscriptions" }]],
991
991
  ["/payments", [{ label: "Payments" }]],
@@ -1008,7 +1008,7 @@ var Lt = [
1008
1008
  ["/ops", [{ label: "Ops" }]],
1009
1009
  ["/settings", [{ label: "Settings" }]]
1010
1010
  ];
1011
- function Rt(e, t) {
1011
+ function zt(e, t) {
1012
1012
  let n = (t) => e === t || e.startsWith(t + "/");
1013
1013
  return n("/payments/health") ? {
1014
1014
  name: "payment health",
@@ -1029,102 +1029,102 @@ function Rt(e, t) {
1029
1029
  allowed: t.catalog === "read" || t.catalog === "update"
1030
1030
  } : null;
1031
1031
  }
1032
- function zt({ children: e }) {
1033
- let { activeMerchant: t } = D(), { pathname: n } = d(), { props: r, services: i } = o(), a = F(i.adminQueries.access()), s = a.data, c = (r.settingsTabs?.length ?? 0) > 0 && (n === "/settings" || n === "/"), l = Lt.find(([e]) => n.startsWith(e))?.[1] ?? [];
1034
- return t ? a.isPending ? /* @__PURE__ */ L("p", {
1032
+ function Bt({ children: e }) {
1033
+ let { activeMerchant: t } = D(), { pathname: n } = d(), { props: r, services: i } = o(), a = P(i.adminQueries.access()), s = a.data, c = (r.settingsTabs?.length ?? 0) > 0 && (n === "/settings" || n === "/"), l = Rt.find(([e]) => n.startsWith(e))?.[1] ?? [];
1034
+ return t ? a.isPending ? /* @__PURE__ */ I("p", {
1035
1035
  role: "status",
1036
1036
  className: "p-6",
1037
- children: /* @__PURE__ */ L(_, { id: "Loading billing permissions…" })
1038
- }) : a.error ? /* @__PURE__ */ R("div", {
1037
+ children: /* @__PURE__ */ I(_, { id: "Loading billing permissions…" })
1038
+ }) : a.error ? /* @__PURE__ */ L("div", {
1039
1039
  role: "alert",
1040
1040
  className: "p-6",
1041
- children: [/* @__PURE__ */ L("p", { children: a.error.message }), /* @__PURE__ */ L("button", {
1041
+ children: [/* @__PURE__ */ I("p", { children: a.error.message }), /* @__PURE__ */ I("button", {
1042
1042
  type: "button",
1043
1043
  onClick: () => void a.refetch(),
1044
- children: /* @__PURE__ */ L(_, { id: "Try again" })
1044
+ children: /* @__PURE__ */ I(_, { id: "Try again" })
1045
1045
  })]
1046
- }) : t.id && s?.scope_id && t.id !== s.scope_id ? /* @__PURE__ */ L("p", {
1046
+ }) : t.id && s?.scope_id && t.id !== s.scope_id ? /* @__PURE__ */ I("p", {
1047
1047
  role: "alert",
1048
1048
  className: "p-6",
1049
- children: /* @__PURE__ */ L(_, { id: "The authenticated connection is bound to another merchant. Update the host connection before opening this merchant." })
1050
- }) : /* @__PURE__ */ L(Qe, { children: /* @__PURE__ */ R(ot, { children: [/* @__PURE__ */ L(Ct, {}), /* @__PURE__ */ R(ut, { children: [/* @__PURE__ */ L(It, { trail: l }), /* @__PURE__ */ L("main", {
1049
+ children: /* @__PURE__ */ I(_, { id: "The authenticated connection is bound to another merchant. Update the host connection before opening this merchant." })
1050
+ }) : /* @__PURE__ */ I(tt, { children: /* @__PURE__ */ L(lt, { children: [/* @__PURE__ */ I(wt, {}), /* @__PURE__ */ L(pt, { children: [/* @__PURE__ */ I(Lt, { trail: l }), /* @__PURE__ */ I("main", {
1051
1051
  className: "flex min-w-0 flex-1 flex-col p-4 md:p-8",
1052
- children: /* @__PURE__ */ L("div", {
1052
+ children: /* @__PURE__ */ I("div", {
1053
1053
  className: "mx-auto w-full max-w-7xl min-w-0",
1054
- children: s && (!re(s) && !c || Rt(n, s)?.allowed === !1) ? /* @__PURE__ */ L(Ot, { area: Rt(n, s)?.name }) : e
1054
+ children: s && (!re(s) && !c || zt(n, s)?.allowed === !1) ? /* @__PURE__ */ I(kt, { area: zt(n, s)?.name }) : e
1055
1055
  })
1056
- }, t?.id || t?.slug || "")] })] }) }) : /* @__PURE__ */ L(kt, {});
1056
+ }, t?.id || t?.slug || "")] })] }) }) : /* @__PURE__ */ I(At, {});
1057
1057
  }
1058
1058
  //#endregion
1059
1059
  //#region src/admin/components/ui/alert-dialog.tsx
1060
- function Bt({ ...e }) {
1061
- return /* @__PURE__ */ L(K.Root, {
1060
+ function Vt({ ...e }) {
1061
+ return /* @__PURE__ */ I(U.Root, {
1062
1062
  "data-slot": "alert-dialog",
1063
1063
  ...e
1064
1064
  });
1065
1065
  }
1066
- function Vt({ ...e }) {
1067
- return /* @__PURE__ */ L(K.Portal, {
1066
+ function Ht({ ...e }) {
1067
+ return /* @__PURE__ */ I(U.Portal, {
1068
1068
  container: o().portal,
1069
1069
  "data-slot": "alert-dialog-portal",
1070
1070
  ...e
1071
1071
  });
1072
1072
  }
1073
- function Ht({ className: e, ...t }) {
1074
- return /* @__PURE__ */ L(K.Backdrop, {
1073
+ function Ut({ className: e, ...t }) {
1074
+ return /* @__PURE__ */ I(U.Backdrop, {
1075
1075
  "data-slot": "alert-dialog-overlay",
1076
1076
  className: h("fixed inset-0 isolate z-50 bg-black/10 duration-100 data-closed:animate-out data-closed:fade-out-0 data-open:animate-in data-open:fade-in-0 supports-backdrop-filter:backdrop-blur-xs", e),
1077
1077
  ...t
1078
1078
  });
1079
1079
  }
1080
- function Ut({ className: e, size: t = "default", ...n }) {
1081
- return /* @__PURE__ */ R(Vt, { children: [/* @__PURE__ */ L(Ht, {}), /* @__PURE__ */ L(K.Popup, {
1080
+ function Wt({ className: e, size: t = "default", ...n }) {
1081
+ return /* @__PURE__ */ L(Ht, { children: [/* @__PURE__ */ I(Ut, {}), /* @__PURE__ */ I(U.Popup, {
1082
1082
  "data-slot": "alert-dialog-content",
1083
1083
  "data-size": t,
1084
1084
  className: h("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm", e),
1085
1085
  ...n
1086
1086
  })] });
1087
1087
  }
1088
- function Wt({ className: e, ...t }) {
1089
- return /* @__PURE__ */ L("div", {
1088
+ function Gt({ className: e, ...t }) {
1089
+ return /* @__PURE__ */ I("div", {
1090
1090
  "data-slot": "alert-dialog-header",
1091
1091
  className: h("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
1092
1092
  ...t
1093
1093
  });
1094
1094
  }
1095
- function Gt({ className: e, ...t }) {
1096
- return /* @__PURE__ */ L("div", {
1095
+ function Kt({ className: e, ...t }) {
1096
+ return /* @__PURE__ */ I("div", {
1097
1097
  "data-slot": "alert-dialog-footer",
1098
1098
  className: h("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
1099
1099
  ...t
1100
1100
  });
1101
1101
  }
1102
- function Kt({ className: e, ...t }) {
1103
- return /* @__PURE__ */ L(K.Title, {
1102
+ function qt({ className: e, ...t }) {
1103
+ return /* @__PURE__ */ I(U.Title, {
1104
1104
  "data-slot": "alert-dialog-title",
1105
1105
  className: h("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
1106
1106
  ...t
1107
1107
  });
1108
1108
  }
1109
- function qt({ className: e, ...t }) {
1110
- return /* @__PURE__ */ L(K.Description, {
1109
+ function Jt({ className: e, ...t }) {
1110
+ return /* @__PURE__ */ I(U.Description, {
1111
1111
  "data-slot": "alert-dialog-description",
1112
1112
  className: h("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
1113
1113
  ...t
1114
1114
  });
1115
1115
  }
1116
- function Jt({ className: e, ...t }) {
1117
- return /* @__PURE__ */ L(C, {
1116
+ function Yt({ className: e, ...t }) {
1117
+ return /* @__PURE__ */ I(C, {
1118
1118
  "data-slot": "alert-dialog-action",
1119
1119
  className: h(e),
1120
1120
  ...t
1121
1121
  });
1122
1122
  }
1123
- function Yt({ className: e, variant: t = "outline", size: n = "default", ...r }) {
1124
- return /* @__PURE__ */ L(K.Close, {
1123
+ function Xt({ className: e, variant: t = "outline", size: n = "default", ...r }) {
1124
+ return /* @__PURE__ */ I(U.Close, {
1125
1125
  "data-slot": "alert-dialog-cancel",
1126
1126
  className: h(e),
1127
- render: /* @__PURE__ */ L(C, {
1127
+ render: /* @__PURE__ */ I(C, {
1128
1128
  variant: t,
1129
1129
  size: n
1130
1130
  }),
@@ -1133,20 +1133,20 @@ function Yt({ className: e, variant: t = "outline", size: n = "default", ...r })
1133
1133
  }
1134
1134
  //#endregion
1135
1135
  //#region src/admin/components/confirm.tsx
1136
- function Xt({ children: e }) {
1136
+ function Zt({ children: e }) {
1137
1137
  let [t, n] = k.useState(null), [r, i] = k.useState(!1), a = k.useRef(null), o = k.useCallback((e) => {
1138
1138
  a.current?.(e), a.current = null, i(!1);
1139
1139
  }, []), s = k.useCallback((e) => new Promise((t) => {
1140
1140
  a.current?.(!1), a.current = t, n(e), i(!0);
1141
1141
  }), []);
1142
- return k.useEffect(() => () => a.current?.(!1), []), /* @__PURE__ */ R(ae.Provider, {
1142
+ return k.useEffect(() => () => a.current?.(!1), []), /* @__PURE__ */ L(ae.Provider, {
1143
1143
  value: s,
1144
- children: [e, /* @__PURE__ */ L(Bt, {
1144
+ children: [e, /* @__PURE__ */ I(Vt, {
1145
1145
  open: r,
1146
1146
  onOpenChange: (e) => {
1147
1147
  e || o(!1);
1148
1148
  },
1149
- children: /* @__PURE__ */ R(Ut, { children: [/* @__PURE__ */ R(Wt, { children: [/* @__PURE__ */ L(Kt, { children: t?.title }), t?.description ? /* @__PURE__ */ L(qt, { children: t.description }) : null] }), /* @__PURE__ */ R(Gt, { children: [/* @__PURE__ */ L(Yt, { children: t?.cancelLabel ?? "Cancel" }), /* @__PURE__ */ L(Jt, {
1149
+ children: /* @__PURE__ */ L(Wt, { children: [/* @__PURE__ */ L(Gt, { children: [/* @__PURE__ */ I(qt, { children: t?.title }), t?.description ? /* @__PURE__ */ I(Jt, { children: t.description }) : null] }), /* @__PURE__ */ L(Kt, { children: [/* @__PURE__ */ I(Xt, { children: t?.cancelLabel ?? "Cancel" }), /* @__PURE__ */ I(Yt, {
1150
1150
  variant: t?.tone === "destructive" ? "destructive" : "default",
1151
1151
  onClick: () => o(!0),
1152
1152
  children: t?.confirmLabel ?? "Confirm"
@@ -1156,18 +1156,18 @@ function Xt({ children: e }) {
1156
1156
  }
1157
1157
  //#endregion
1158
1158
  //#region src/admin/components/ui/sonner.tsx
1159
- var Zt = ({ ...e }) => {
1159
+ var Qt = ({ ...e }) => {
1160
1160
  let t = o().props.appearance?.theme ?? "system";
1161
- return /* @__PURE__ */ L(he, {
1161
+ return /* @__PURE__ */ I(ge, {
1162
1162
  id: o().services.namespace,
1163
1163
  theme: t === "inherit" ? "system" : t,
1164
1164
  className: "toaster group",
1165
1165
  icons: {
1166
- success: /* @__PURE__ */ L(ke, { className: "size-4" }),
1167
- info: /* @__PURE__ */ L(Ae, { className: "size-4" }),
1168
- warning: /* @__PURE__ */ L(Pe, { className: "size-4" }),
1169
- error: /* @__PURE__ */ L(Me, { className: "size-4" }),
1170
- loading: /* @__PURE__ */ L(je, { className: "size-4 animate-spin" })
1166
+ success: /* @__PURE__ */ I(Me, { className: "size-4" }),
1167
+ info: /* @__PURE__ */ I(Ne, { className: "size-4" }),
1168
+ warning: /* @__PURE__ */ I(Le, { className: "size-4" }),
1169
+ error: /* @__PURE__ */ I(Fe, { className: "size-4" }),
1170
+ loading: /* @__PURE__ */ I(Pe, { className: "size-4 animate-spin" })
1171
1171
  },
1172
1172
  style: {
1173
1173
  "--normal-bg": "var(--popover)",
@@ -1178,58 +1178,58 @@ var Zt = ({ ...e }) => {
1178
1178
  toastOptions: { classNames: { toast: "cn-toast" } },
1179
1179
  ...e
1180
1180
  });
1181
- }, Qt = [
1181
+ }, $t = [
1182
1182
  /dynamically imported module/i,
1183
1183
  /failed to load module script/i,
1184
1184
  /importing a module script failed/i,
1185
1185
  /loading (css )?chunk \S+ failed/i,
1186
1186
  /unable to preload css/i
1187
1187
  ];
1188
- function $t(e) {
1188
+ function en(e) {
1189
1189
  let t = e;
1190
- return t?.name === "ChunkLoadError" || Qt.some((e) => e.test(t?.message ?? ""));
1190
+ return t?.name === "ChunkLoadError" || $t.some((e) => e.test(t?.message ?? ""));
1191
1191
  }
1192
1192
  //#endregion
1193
1193
  //#region src/admin/components/route-error.tsx
1194
- function en({ error: e }) {
1195
- let t = $t(e), n = e instanceof Error ? e.message : "";
1196
- return /* @__PURE__ */ R("div", {
1194
+ function tn({ error: e }) {
1195
+ let t = en(e), n = e instanceof Error ? e.message : "";
1196
+ return /* @__PURE__ */ L("div", {
1197
1197
  role: "alert",
1198
1198
  className: "flex min-h-[50vh] flex-col items-center justify-center gap-4 p-6 text-center",
1199
- children: [/* @__PURE__ */ R("div", {
1199
+ children: [/* @__PURE__ */ L("div", {
1200
1200
  className: "max-w-md",
1201
- children: [/* @__PURE__ */ L("p", {
1201
+ children: [/* @__PURE__ */ I("p", {
1202
1202
  className: "font-medium",
1203
1203
  children: t ? "The console has been updated. Reload to use the new version." : "This page failed to load."
1204
- }), !t && n ? /* @__PURE__ */ L("p", {
1204
+ }), !t && n ? /* @__PURE__ */ I("p", {
1205
1205
  className: "mt-1 text-sm break-words text-muted-foreground",
1206
1206
  children: n
1207
1207
  }) : null]
1208
- }), /* @__PURE__ */ R("div", {
1208
+ }), /* @__PURE__ */ L("div", {
1209
1209
  className: "flex flex-wrap items-center justify-center gap-3",
1210
- children: [/* @__PURE__ */ R(C, {
1210
+ children: [/* @__PURE__ */ L(C, {
1211
1211
  onClick: () => window.location.reload(),
1212
- children: [/* @__PURE__ */ L(z, {
1213
- icon: xe,
1212
+ children: [/* @__PURE__ */ I(R, {
1213
+ icon: we,
1214
1214
  className: "size-4"
1215
1215
  }), t ? "Reload" : "Try again"]
1216
- }), /* @__PURE__ */ L(p, {
1216
+ }), /* @__PURE__ */ I(p, {
1217
1217
  to: "/",
1218
1218
  className: "text-sm text-muted-foreground underline underline-offset-4",
1219
- children: /* @__PURE__ */ L(_, { id: "Console home" })
1219
+ children: /* @__PURE__ */ I(_, { id: "Console home" })
1220
1220
  })]
1221
1221
  })]
1222
1222
  });
1223
1223
  }
1224
1224
  //#endregion
1225
1225
  //#region src/admin/lib/query-client.ts
1226
- function tn(e, t) {
1226
+ function nn(e, t) {
1227
1227
  return t instanceof n && t.status > 0 && t.status < 500 ? !1 : e < 2;
1228
1228
  }
1229
- var nn = (e) => {
1229
+ var rn = (e) => {
1230
1230
  let { toastApiError: t } = c(l(e));
1231
- return new pe({
1232
- queryCache: new fe({ onError: (e, n) => {
1231
+ return new me({
1232
+ queryCache: new pe({ onError: (e, n) => {
1233
1233
  let r = n.meta?.errorAction;
1234
1234
  typeof r == "string" && t(e, r);
1235
1235
  } }),
@@ -1237,17 +1237,17 @@ var nn = (e) => {
1237
1237
  queries: {
1238
1238
  staleTime: 2e4,
1239
1239
  gcTime: 3e5,
1240
- retry: tn
1240
+ retry: nn
1241
1241
  },
1242
1242
  mutations: { retry: !1 }
1243
1243
  }
1244
1244
  });
1245
- }, rn = () => window.matchMedia?.("(prefers-color-scheme: dark)"), an = (e) => {
1246
- let t = rn();
1245
+ }, an = () => window.matchMedia?.("(prefers-color-scheme: dark)"), on = (e) => {
1246
+ let t = an();
1247
1247
  return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
1248
- }, on = () => rn()?.matches ? "dark" : "light", sn = () => "light", cn = () => () => {};
1249
- function ln(e = "inherit") {
1250
- let t = P(e === "auto" ? an : cn, on, sn);
1248
+ }, sn = () => an()?.matches ? "dark" : "light", cn = () => "light", ln = () => () => {};
1249
+ function $(e = "inherit") {
1250
+ let t = fe(e === "auto" ? on : ln, sn, cn);
1251
1251
  return e === "auto" ? t : e;
1252
1252
  }
1253
1253
  //#endregion
@@ -1266,14 +1266,14 @@ function dn(e) {
1266
1266
  auth: e.auth,
1267
1267
  baseUrl: e.baseUrl,
1268
1268
  generation: r.generation + 1
1269
- }), /* @__PURE__ */ L(fn, {
1269
+ }), /* @__PURE__ */ I(fn, {
1270
1270
  ...e,
1271
1271
  selected: t,
1272
1272
  onSelected: n
1273
1273
  }, r.generation);
1274
1274
  }
1275
1275
  function fn({ selected: e, onSelected: t, ...n }) {
1276
- let i = ln(n.appearance?.theme), o = le(), [s, c] = N(null), l = M(() => n.merchants ?? (n.merchant ? [un(n.merchant)] : [{
1276
+ let i = $(n.appearance?.theme), o = le(), [s, c] = N(null), l = M(() => n.merchants ?? (n.merchant ? [un(n.merchant)] : [{
1277
1277
  id: "",
1278
1278
  slug: "",
1279
1279
  display_name: "Billing"
@@ -1281,7 +1281,7 @@ function fn({ selected: e, onSelected: t, ...n }) {
1281
1281
  ue(() => (m.current = p, () => {
1282
1282
  m.current = void 0;
1283
1283
  }), [p]);
1284
- let h = j(() => m.current === p, [p]), _ = M(() => n.queryClient ?? nn(o), [o, n.queryClient]), v = {
1284
+ let h = j(() => m.current === p, [p]), _ = M(() => n.queryClient ?? rn(o), [o, n.queryClient]), v = {
1285
1285
  props: n,
1286
1286
  services: M(() => a({
1287
1287
  namespace: o,
@@ -1306,29 +1306,29 @@ function fn({ selected: e, onSelected: t, ...n }) {
1306
1306
  r && (t(r.id), n.onMerchantChange?.(r));
1307
1307
  }
1308
1308
  };
1309
- return /* @__PURE__ */ L("div", {
1309
+ return /* @__PURE__ */ I("div", {
1310
1310
  lang: n.language ?? "en",
1311
1311
  className: ["orba", n.className].filter(Boolean).join(" "),
1312
1312
  "data-orba-theme": i,
1313
1313
  style: {
1314
- ...q(n.appearance, "orba"),
1314
+ ...W(n.appearance, "orba"),
1315
1315
  ...n.style
1316
1316
  },
1317
- children: /* @__PURE__ */ L(r.Provider, {
1317
+ children: /* @__PURE__ */ I(r.Provider, {
1318
1318
  value: {
1319
1319
  namespace: o,
1320
1320
  messages: n.messages
1321
1321
  },
1322
- children: /* @__PURE__ */ R(g.Provider, {
1322
+ children: /* @__PURE__ */ L(g.Provider, {
1323
1323
  value: v,
1324
- children: [/* @__PURE__ */ L(me, {
1324
+ children: [/* @__PURE__ */ I(he, {
1325
1325
  client: _,
1326
- children: /* @__PURE__ */ R(u, {
1326
+ children: /* @__PURE__ */ L(u, {
1327
1327
  basePath: n.basePath,
1328
1328
  navigation: n.navigation,
1329
- children: [/* @__PURE__ */ L(Xt, { children: /* @__PURE__ */ L(zt, { children: /* @__PURE__ */ L(mn, { children: /* @__PURE__ */ L(Ve, {}) }) }) }), /* @__PURE__ */ L(Zt, {})]
1329
+ children: [/* @__PURE__ */ I(Zt, { children: /* @__PURE__ */ I(Bt, { children: /* @__PURE__ */ I(mn, { children: /* @__PURE__ */ I(We, {}) }) }) }), /* @__PURE__ */ I(Qt, {})]
1330
1330
  })
1331
- }), /* @__PURE__ */ L("div", { ref: c })]
1331
+ }), /* @__PURE__ */ I("div", { ref: c })]
1332
1332
  })
1333
1333
  })
1334
1334
  });
@@ -1339,12 +1339,12 @@ var pn = class extends oe {
1339
1339
  return { error: e };
1340
1340
  }
1341
1341
  render() {
1342
- return this.state.error ? /* @__PURE__ */ L(en, { error: this.state.error }) : this.props.children;
1342
+ return this.state.error ? /* @__PURE__ */ I(tn, { error: this.state.error }) : this.props.children;
1343
1343
  }
1344
1344
  };
1345
1345
  function mn({ children: e }) {
1346
1346
  let t = d();
1347
- return /* @__PURE__ */ L(pn, { children: e }, t.pathname);
1347
+ return /* @__PURE__ */ I(pn, { children: e }, t.pathname);
1348
1348
  }
1349
1349
  //#endregion
1350
1350
  //#region src/admin/summary.tsx
@@ -1397,7 +1397,7 @@ function _n(e) {
1397
1397
  return gn(j((e) => t.getAdminAccess(e), [t]));
1398
1398
  }
1399
1399
  function vn(e) {
1400
- let t = ln(e.appearance?.theme), n = hn(e), { data: r, error: i, isPending: a, refetch: o } = gn(j(async (t) => {
1400
+ let t = $(e.appearance?.theme), n = hn(e), { data: r, error: i, isPending: a, refetch: o } = gn(j(async (t) => {
1401
1401
  let [r, i, a, o, s] = await Promise.all([
1402
1402
  n.getCustomer(e.customer, t),
1403
1403
  n.listSubscriptions({
@@ -1416,57 +1416,57 @@ function vn(e) {
1416
1416
  payments: s
1417
1417
  };
1418
1418
  }, [n, e.customer]));
1419
- return /* @__PURE__ */ L("section", {
1419
+ return /* @__PURE__ */ I("section", {
1420
1420
  className: ["orba", e.className].filter(Boolean).join(" "),
1421
1421
  "data-orba-theme": t,
1422
- style: q(e.appearance, "orba"),
1423
- children: /* @__PURE__ */ R("div", {
1422
+ style: W(e.appearance, "orba"),
1423
+ children: /* @__PURE__ */ L("div", {
1424
1424
  className: "rounded-lg border p-4",
1425
1425
  children: [
1426
- /* @__PURE__ */ L("h3", {
1426
+ /* @__PURE__ */ I("h3", {
1427
1427
  className: "font-semibold",
1428
- children: /* @__PURE__ */ L(_, { id: "Billing" })
1428
+ children: /* @__PURE__ */ I(_, { id: "Billing" })
1429
1429
  }),
1430
- a && /* @__PURE__ */ L("p", {
1430
+ a && /* @__PURE__ */ I("p", {
1431
1431
  role: "status",
1432
- children: /* @__PURE__ */ L(_, { id: "Loading billing…" })
1432
+ children: /* @__PURE__ */ I(_, { id: "Loading billing…" })
1433
1433
  }),
1434
- i && /* @__PURE__ */ R("p", {
1434
+ i && /* @__PURE__ */ L("p", {
1435
1435
  role: "alert",
1436
1436
  children: [
1437
1437
  i.message,
1438
1438
  " ",
1439
- /* @__PURE__ */ L("button", {
1439
+ /* @__PURE__ */ I("button", {
1440
1440
  type: "button",
1441
1441
  onClick: o,
1442
- children: /* @__PURE__ */ L(_, { id: "Try again" })
1442
+ children: /* @__PURE__ */ I(_, { id: "Try again" })
1443
1443
  })
1444
1444
  ]
1445
1445
  }),
1446
- r && /* @__PURE__ */ R(I, { children: [
1447
- /* @__PURE__ */ L("dl", { children: r.customer.balances.map((e) => /* @__PURE__ */ R("div", { children: [/* @__PURE__ */ L("dt", { children: /* @__PURE__ */ L(_, { id: "Available balance" }) }), /* @__PURE__ */ L("dd", { children: O(e.available_amount, e.currency) })] }, e.currency)) }),
1448
- /* @__PURE__ */ L("h4", { children: /* @__PURE__ */ L(_, { id: "Active subscriptions" }) }),
1449
- r.subscriptions.data.length ? /* @__PURE__ */ L("ul", { children: r.subscriptions.data.map((e) => /* @__PURE__ */ L("li", { children: e.id }, e.id)) }) : /* @__PURE__ */ L("p", { children: /* @__PURE__ */ L(_, { id: "No active subscriptions." }) }),
1450
- /* @__PURE__ */ L("h4", { children: /* @__PURE__ */ L(_, { id: "Entitlements" }) }),
1451
- /* @__PURE__ */ L("ul", { children: r.entitlements.data.map((e) => /* @__PURE__ */ L("li", { children: e.entitlement }, e.entitlement)) }),
1452
- /* @__PURE__ */ L("h4", { children: /* @__PURE__ */ L(_, { id: "Product access" }) }),
1453
- /* @__PURE__ */ L("ul", { children: r.access.data.map((e) => /* @__PURE__ */ R("li", { children: [
1446
+ r && /* @__PURE__ */ L(F, { children: [
1447
+ /* @__PURE__ */ I("dl", { children: r.customer.balances.map((e) => /* @__PURE__ */ L("div", { children: [/* @__PURE__ */ I("dt", { children: /* @__PURE__ */ I(_, { id: "Available balance" }) }), /* @__PURE__ */ I("dd", { children: O(e.available_amount, e.currency) })] }, e.currency)) }),
1448
+ /* @__PURE__ */ I("h4", { children: /* @__PURE__ */ I(_, { id: "Active subscriptions" }) }),
1449
+ r.subscriptions.data.length ? /* @__PURE__ */ I("ul", { children: r.subscriptions.data.map((e) => /* @__PURE__ */ I("li", { children: e.id }, e.id)) }) : /* @__PURE__ */ I("p", { children: /* @__PURE__ */ I(_, { id: "No active subscriptions." }) }),
1450
+ /* @__PURE__ */ I("h4", { children: /* @__PURE__ */ I(_, { id: "Entitlements" }) }),
1451
+ /* @__PURE__ */ I("ul", { children: r.entitlements.data.map((e) => /* @__PURE__ */ I("li", { children: e.entitlement }, e.entitlement)) }),
1452
+ /* @__PURE__ */ I("h4", { children: /* @__PURE__ */ I(_, { id: "Product access" }) }),
1453
+ /* @__PURE__ */ I("ul", { children: r.access.data.map((e) => /* @__PURE__ */ L("li", { children: [
1454
1454
  e.product_name,
1455
1455
  " · ",
1456
1456
  e.status
1457
1457
  ] }, e.id)) }),
1458
- /* @__PURE__ */ L("h4", { children: /* @__PURE__ */ L(_, { id: "Recent payments" }) }),
1459
- /* @__PURE__ */ L("ul", { children: r.payments.data.map((e) => /* @__PURE__ */ R("li", { children: [
1458
+ /* @__PURE__ */ I("h4", { children: /* @__PURE__ */ I(_, { id: "Recent payments" }) }),
1459
+ /* @__PURE__ */ I("ul", { children: r.payments.data.map((e) => /* @__PURE__ */ L("li", { children: [
1460
1460
  O(e.amount, e.currency),
1461
1461
  " ·",
1462
1462
  " ",
1463
1463
  e.status
1464
1464
  ] }, e.id)) })
1465
1465
  ] }),
1466
- e.href && /* @__PURE__ */ L("a", {
1466
+ e.href && /* @__PURE__ */ I("a", {
1467
1467
  className: "underline",
1468
1468
  href: e.href,
1469
- children: /* @__PURE__ */ L(_, { id: "View billing details" })
1469
+ children: /* @__PURE__ */ I(_, { id: "View billing details" })
1470
1470
  })
1471
1471
  ]
1472
1472
  })
@@ -1475,7 +1475,30 @@ function vn(e) {
1475
1475
  function yn(e) {
1476
1476
  return e.subscriptions.some((e) => e.status !== "canceled") ? ["This customer has ongoing subscriptions. Banning or deleting the account does not cancel them; cancel them separately in billing."] : [];
1477
1477
  }
1478
- var bn = {
1478
+ var bn = "Subscription status could not be fully checked. Banning or deleting the account does not cancel subscriptions; review billing separately.";
1479
+ async function xn(t) {
1480
+ let n = typeof t.merchant == "string" ? {
1481
+ id: t.merchant,
1482
+ slug: t.merchant
1483
+ } : t.merchant, r = s(e({
1484
+ ...t,
1485
+ merchant: n
1486
+ })), i, a = /* @__PURE__ */ new Set();
1487
+ try {
1488
+ for (let e = 0; e < 10; e++) {
1489
+ t.signal?.throwIfAborted();
1490
+ let e = await r.listSubscriptions({ customer_id: t.customer }, 100, i, t.signal), n = yn({ subscriptions: e.data });
1491
+ if (n.length) return n;
1492
+ if (!e.next_cursor) return [];
1493
+ if (a.has(e.next_cursor)) break;
1494
+ a.add(e.next_cursor), i = e.next_cursor;
1495
+ }
1496
+ } catch (e) {
1497
+ if (t.signal?.throwIfAborted(), e instanceof Error && e.name === "AbortError") throw e;
1498
+ }
1499
+ return [bn];
1500
+ }
1501
+ var Sn = {
1479
1502
  "customer:read": "Read customers, subscriptions, payments, and orders.",
1480
1503
  "customer:manage": "Change customer billing, including refunds, cancellations, and credits.",
1481
1504
  "catalog:manage": "Change products, prices, meters, and catalog migrations.",
@@ -1489,7 +1512,7 @@ var bn = {
1489
1512
  "events:read": "Read and acknowledge billing events through the application API.",
1490
1513
  "orders:manage": "Preview, create, and withdraw merchant orders through the application API.",
1491
1514
  "customers:read": "Find customers by their network account through the application API."
1492
- }, xn = Object.fromEntries(["merchant", "root"].flatMap((e) => Object.entries(bn).map(([t, n]) => [`${e}:${t}`, `${n} ${e === "root" ? "Applies across merchants." : "Applies within this merchant."}`]))), Sn = {
1515
+ }, Cn = Object.fromEntries(["merchant", "root"].flatMap((e) => Object.entries(Sn).map(([t, n]) => [`${e}:${t}`, `${n} ${e === "root" ? "Applies across merchants." : "Applies within this merchant."}`]))), wn = {
1493
1516
  "Sold by OpenRails": "Sold by OpenRails",
1494
1517
  "OpenRails bills this price through your card vault and charge PSPs, and on Solana. Provider catalogs are not synchronized. Hosted one-time Stripe payments use inline checkout objects.": "OpenRails bills this price through your card vault and charge PSPs, and on Solana. Provider catalogs are not synchronized. Hosted one-time Stripe payments use inline checkout objects.",
1495
1518
  "Sold via: ": "Sold via: ",
@@ -2177,6 +2200,6 @@ var bn = {
2177
2200
  "← Orders": "← Orders"
2178
2201
  };
2179
2202
  //#endregion
2180
- export { dn as BillingAdmin, vn as BillingCustomerSummary, Sn as billingAdminMessages, yn as billingConfirmWarnings, xn as billingPermissionHelp, _n as useBillingAdminAccess };
2203
+ export { dn as BillingAdmin, vn as BillingCustomerSummary, wn as billingAdminMessages, yn as billingConfirmWarnings, Cn as billingPermissionHelp, xn as loadBillingConfirmWarnings, _n as useBillingAdminAccess };
2181
2204
 
2182
2205
  //# sourceMappingURL=admin.js.map