@openrails/billing-ui 0.273.0 → 0.275.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.
Files changed (207) hide show
  1. package/dist/admin/components/customer-search.d.ts +5 -0
  2. package/dist/admin/components/missing-record.d.ts +6 -0
  3. package/dist/admin/components/status-badge.d.ts +1 -0
  4. package/dist/admin/context.d.ts +34 -2
  5. package/dist/admin/lib/api/endpoints.d.ts +4 -1
  6. package/dist/admin/lib/api/index.d.ts +3 -0
  7. package/dist/admin/lib/api/order-endpoints.d.ts +1 -0
  8. package/dist/admin/lib/api/types.d.ts +4 -12
  9. package/dist/admin/lib/capabilities.d.ts +4 -0
  10. package/dist/admin/lib/dialog-width.d.ts +4 -3
  11. package/dist/admin/lib/error-text.d.ts +4 -0
  12. package/dist/admin/lib/format.d.ts +5 -1
  13. package/dist/admin/lib/mutations.d.ts +6 -1
  14. package/dist/admin/lib/order-queries.d.ts +3 -0
  15. package/dist/admin/lib/queries.d.ts +6 -0
  16. package/dist/admin/lib/tile-grids.d.ts +6 -0
  17. package/dist/admin/messages.d.ts +102 -8
  18. package/dist/admin/pages/dashboard/lib.d.ts +1 -0
  19. package/dist/admin/pages/imports/shared.d.ts +1 -0
  20. package/dist/admin/pages/payments/index.d.ts +1 -2
  21. package/dist/admin/pages/subscriptions/change-subscription-dialog.d.ts +4 -7
  22. package/dist/admin/pages/subscriptions/index.d.ts +1 -2
  23. package/dist/admin/pages/subscriptions/subscription-change-options.d.ts +6 -15
  24. package/dist/admin-attempts-CP5CWyNR.js +419 -0
  25. package/dist/admin-attempts-CP5CWyNR.js.map +1 -0
  26. package/dist/{admin-auth-1aZIgXiS.js → admin-auth-DlIOmwPo.js} +2 -2
  27. package/dist/{admin-auth-1aZIgXiS.js.map → admin-auth-DlIOmwPo.js.map} +1 -1
  28. package/dist/{admin-badge-pgG6D9-a.js → admin-badge-DR_8AhdC.js} +2 -2
  29. package/dist/{admin-badge-pgG6D9-a.js.map → admin-badge-DR_8AhdC.js.map} +1 -1
  30. package/dist/{admin-button-CrcYk5r0.js → admin-button-DBzTD6By.js} +2 -2
  31. package/dist/{admin-button-CrcYk5r0.js.map → admin-button-DBzTD6By.js.map} +1 -1
  32. package/dist/{admin-capabilities-BDcZeHL_.js → admin-capabilities-CZdT1Pxe.js} +35 -14
  33. package/dist/admin-capabilities-CZdT1Pxe.js.map +1 -0
  34. package/dist/{admin-card-DvTMc5Se.js → admin-card-mZl4-s5d.js} +2 -2
  35. package/dist/{admin-card-DvTMc5Se.js.map → admin-card-mZl4-s5d.js.map} +1 -1
  36. package/dist/{admin-catalog-BlF5mnu4.js → admin-catalog-DpTjS0Yo.js} +298 -298
  37. package/dist/{admin-catalog-BlF5mnu4.js.map → admin-catalog-DpTjS0Yo.js.map} +1 -1
  38. package/dist/{admin-cursor-pager-CIb3Jw2F.js → admin-cursor-pager-C-KjCIy9.js} +6 -6
  39. package/dist/{admin-cursor-pager-CIb3Jw2F.js.map → admin-cursor-pager-C-KjCIy9.js.map} +1 -1
  40. package/dist/{admin-customers-EpfoWDh-.js → admin-customers-BE3N839X.js} +22 -21
  41. package/dist/{admin-customers-EpfoWDh-.js.map → admin-customers-BE3N839X.js.map} +1 -1
  42. package/dist/admin-dashboard-BxjkV15J.js +464 -0
  43. package/dist/admin-dashboard-BxjkV15J.js.map +1 -0
  44. package/dist/admin-data-table-D89AwWz_.js +107 -0
  45. package/dist/admin-data-table-D89AwWz_.js.map +1 -0
  46. package/dist/admin-detail-BKe9xqPd.js +338 -0
  47. package/dist/admin-detail-BKe9xqPd.js.map +1 -0
  48. package/dist/admin-detail-C8lD7U2t.js +699 -0
  49. package/dist/admin-detail-C8lD7U2t.js.map +1 -0
  50. package/dist/admin-detail-D6zD085K.js +354 -0
  51. package/dist/admin-detail-D6zD085K.js.map +1 -0
  52. package/dist/{admin-detail-3wFIDPNB.js → admin-detail-Ln56otK0.js} +83 -83
  53. package/dist/{admin-detail-3wFIDPNB.js.map → admin-detail-Ln56otK0.js.map} +1 -1
  54. package/dist/admin-detail-P-UnNvXJ.js +1357 -0
  55. package/dist/admin-detail-P-UnNvXJ.js.map +1 -0
  56. package/dist/{admin-dialog-BSRf9Zre.js → admin-dialog-Dn2FRJu4.js} +3 -3
  57. package/dist/{admin-dialog-BSRf9Zre.js.map → admin-dialog-Dn2FRJu4.js.map} +1 -1
  58. package/dist/admin-dialog-width-CC7QHT1p.js +6 -0
  59. package/dist/admin-dialog-width-CC7QHT1p.js.map +1 -0
  60. package/dist/{admin-dropdown-menu-D0E5rwmn.js → admin-dropdown-menu-DLUn6Uj3.js} +2 -2
  61. package/dist/{admin-dropdown-menu-D0E5rwmn.js.map → admin-dropdown-menu-DLUn6Uj3.js.map} +1 -1
  62. package/dist/{admin-dunning-B2zgtrOo.js → admin-dunning-COaHzrmN.js} +2 -2
  63. package/dist/{admin-dunning-B2zgtrOo.js.map → admin-dunning-COaHzrmN.js.map} +1 -1
  64. package/dist/{admin-fact-card-BPSVhS15.js → admin-fact-card-DKvBnUXB.js} +2 -2
  65. package/dist/{admin-fact-card-BPSVhS15.js.map → admin-fact-card-DKvBnUXB.js.map} +1 -1
  66. package/dist/admin-format-BbiTCqUG.js +171 -0
  67. package/dist/admin-format-BbiTCqUG.js.map +1 -0
  68. package/dist/{admin-health-D0L5Kig7.js → admin-health-DmnI4e8K.js} +249 -248
  69. package/dist/admin-health-DmnI4e8K.js.map +1 -0
  70. package/dist/{admin-imports-CgZB5JAV.js → admin-imports-C0aMP6sj.js} +65 -65
  71. package/dist/{admin-imports-CgZB5JAV.js.map → admin-imports-C0aMP6sj.js.map} +1 -1
  72. package/dist/{admin-input-DJAK9nmk.js → admin-input-JKrQIGfD.js} +2 -2
  73. package/dist/{admin-input-DJAK9nmk.js.map → admin-input-JKrQIGfD.js.map} +1 -1
  74. package/dist/{admin-label-aviN9Gng.js → admin-label-CHWsVIZC.js} +2 -2
  75. package/dist/{admin-label-aviN9Gng.js.map → admin-label-CHWsVIZC.js.map} +1 -1
  76. package/dist/{admin-linked-table-row-BGr7JXeM.js → admin-linked-table-row-BMZYYsuk.js} +4 -4
  77. package/dist/{admin-linked-table-row-BGr7JXeM.js.map → admin-linked-table-row-BMZYYsuk.js.map} +1 -1
  78. package/dist/{admin-map-dialog-DS2Wz6G3.js → admin-map-dialog-BHUGdCcv.js} +24 -24
  79. package/dist/{admin-map-dialog-DS2Wz6G3.js.map → admin-map-dialog-BHUGdCcv.js.map} +1 -1
  80. package/dist/{admin-metering-D-e-37Jn.js → admin-metering-CDqueHUh.js} +307 -307
  81. package/dist/{admin-metering-D-e-37Jn.js.map → admin-metering-CDqueHUh.js.map} +1 -1
  82. package/dist/admin-missing-record-BPFs3MmO.js +42 -0
  83. package/dist/admin-missing-record-BPFs3MmO.js.map +1 -0
  84. package/dist/admin-ops-CL2kjDwi.js +359 -0
  85. package/dist/admin-ops-CL2kjDwi.js.map +1 -0
  86. package/dist/admin-orders-C1Sf2qhc.js +192 -0
  87. package/dist/admin-orders-C1Sf2qhc.js.map +1 -0
  88. package/dist/admin-parked-a0tB5bhG.js +193 -0
  89. package/dist/admin-parked-a0tB5bhG.js.map +1 -0
  90. package/dist/admin-payments-DJcjwRA4.js +221 -0
  91. package/dist/admin-payments-DJcjwRA4.js.map +1 -0
  92. package/dist/{admin-price-detail-CSI5oKdb.js → admin-price-detail-BOmeWw15.js} +103 -103
  93. package/dist/{admin-price-detail-CSI5oKdb.js.map → admin-price-detail-BOmeWw15.js.map} +1 -1
  94. package/dist/{admin-price-format-BVUpDoSC.js → admin-price-format-CqOmHrIn.js} +2 -2
  95. package/dist/{admin-price-format-BVUpDoSC.js.map → admin-price-format-CqOmHrIn.js.map} +1 -1
  96. package/dist/{admin-price-wizard-CBEcNGvP.js → admin-price-wizard-B6s5OJeO.js} +63 -63
  97. package/dist/{admin-price-wizard-CBEcNGvP.js.map → admin-price-wizard-B6s5OJeO.js.map} +1 -1
  98. package/dist/{admin-proposals-Cuj7tvaM.js → admin-proposals-DVrl-ym4.js} +70 -70
  99. package/dist/{admin-proposals-Cuj7tvaM.js.map → admin-proposals-DVrl-ym4.js.map} +1 -1
  100. package/dist/admin-provider-prices-BVVogH7Q.js +241 -0
  101. package/dist/admin-provider-prices-BVVogH7Q.js.map +1 -0
  102. package/dist/{admin-range-picker-De36L-AP.js → admin-range-picker-C6BtSm2B.js} +9 -9
  103. package/dist/{admin-range-picker-De36L-AP.js.map → admin-range-picker-C6BtSm2B.js.map} +1 -1
  104. package/dist/{admin-records-H0MlhEVY.js → admin-records-DKtcgN11.js} +50 -50
  105. package/dist/{admin-records-H0MlhEVY.js.map → admin-records-DKtcgN11.js.map} +1 -1
  106. package/dist/{admin-reports-BFGS_PWf.js → admin-reports-CtPoiceH.js} +50 -50
  107. package/dist/{admin-reports-BFGS_PWf.js.map → admin-reports-CtPoiceH.js.map} +1 -1
  108. package/dist/{admin-select-BUcEU5Rg.js → admin-select-6Yuh5M1Q.js} +2 -2
  109. package/dist/{admin-select-BUcEU5Rg.js.map → admin-select-6Yuh5M1Q.js.map} +1 -1
  110. package/dist/admin-settings-DscHu4ww.js +1823 -0
  111. package/dist/admin-settings-DscHu4ww.js.map +1 -0
  112. package/dist/{admin-shared-lfIUEbPY.js → admin-shared-BywM-MMp.js} +28 -24
  113. package/dist/{admin-shared-lfIUEbPY.js.map → admin-shared-BywM-MMp.js.map} +1 -1
  114. package/dist/{admin-skeleton-B0yzYY_X.js → admin-skeleton-lndmw89u.js} +2 -2
  115. package/dist/{admin-skeleton-B0yzYY_X.js.map → admin-skeleton-lndmw89u.js.map} +1 -1
  116. package/dist/admin-status-badge-IL8ofZ_6.js +51 -0
  117. package/dist/admin-status-badge-IL8ofZ_6.js.map +1 -0
  118. package/dist/admin-subscriptions-Cd5CGrue.js +271 -0
  119. package/dist/admin-subscriptions-Cd5CGrue.js.map +1 -0
  120. package/dist/{admin-switch-DDorugaw.js → admin-switch-DpwQSzEm.js} +2 -2
  121. package/dist/{admin-switch-DDorugaw.js.map → admin-switch-DpwQSzEm.js.map} +1 -1
  122. package/dist/{admin-table-BU6Tie69.js → admin-table-D-GdGM1m.js} +2 -2
  123. package/dist/{admin-table-BU6Tie69.js.map → admin-table-D-GdGM1m.js.map} +1 -1
  124. package/dist/admin-tabs-B--1flzO.js +158 -0
  125. package/dist/admin-tabs-B--1flzO.js.map +1 -0
  126. package/dist/{admin-textarea-Dc6lnEub.js → admin-textarea-xsp5V9xM.js} +2 -2
  127. package/dist/{admin-textarea-Dc6lnEub.js.map → admin-textarea-xsp5V9xM.js.map} +1 -1
  128. package/dist/admin-tile-grids-CzGpidd9.js +6 -0
  129. package/dist/admin-tile-grids-CzGpidd9.js.map +1 -0
  130. package/dist/{admin-typed-confirm-dialog-Bk6XxmPb.js → admin-typed-confirm-dialog-NiEDwX_0.js} +11 -11
  131. package/dist/{admin-typed-confirm-dialog-Bk6XxmPb.js.map → admin-typed-confirm-dialog-NiEDwX_0.js.map} +1 -1
  132. package/dist/{admin-utils-B9eEBNsR.js → admin-utils-wuPUD0uh.js} +341 -283
  133. package/dist/admin-utils-wuPUD0uh.js.map +1 -0
  134. package/dist/admin-widget-viz-kHHVmDEx.js +646 -0
  135. package/dist/admin-widget-viz-kHHVmDEx.js.map +1 -0
  136. package/dist/admin.css +1 -1
  137. package/dist/admin.js +544 -413
  138. package/dist/admin.js.map +1 -1
  139. package/dist/client/generated/routes.d.ts +17 -0
  140. package/dist/client/generated/wire.d.ts +4 -0
  141. package/dist/client/types.d.ts +6 -0
  142. package/dist/{client-BYgnI6_h.js → client-ctrbivyN.js} +3 -2
  143. package/dist/client-ctrbivyN.js.map +1 -0
  144. package/dist/client.js +1 -1
  145. package/dist/{hooks-t2tSrCpa.js → hooks-KpTetx6F.js} +2 -2
  146. package/dist/{hooks-t2tSrCpa.js.map → hooks-KpTetx6F.js.map} +1 -1
  147. package/dist/index.js +750 -711
  148. package/dist/index.js.map +1 -1
  149. package/dist/lib/card-brands.d.ts +1 -0
  150. package/dist/locales/de.js +3 -0
  151. package/dist/locales/de.js.map +1 -1
  152. package/dist/locales/en.d.ts +3 -0
  153. package/dist/locales/en.js +3 -0
  154. package/dist/locales/en.js.map +1 -1
  155. package/dist/locales/es.js +3 -0
  156. package/dist/locales/es.js.map +1 -1
  157. package/dist/locales/ja.js +3 -0
  158. package/dist/locales/ja.js.map +1 -1
  159. package/dist/locales/ko.js +3 -0
  160. package/dist/locales/ko.js.map +1 -1
  161. package/dist/locales/zh.js +3 -0
  162. package/dist/locales/zh.js.map +1 -1
  163. package/dist/react.js +1 -1
  164. package/dist/styles.css +1 -1
  165. package/package.json +1 -1
  166. package/dist/admin-attempts-DyDDt-qw.js +0 -418
  167. package/dist/admin-attempts-DyDDt-qw.js.map +0 -1
  168. package/dist/admin-capabilities-BDcZeHL_.js.map +0 -1
  169. package/dist/admin-dashboard-CJE63yz4.js +0 -420
  170. package/dist/admin-dashboard-CJE63yz4.js.map +0 -1
  171. package/dist/admin-data-table-hvFcJepL.js +0 -96
  172. package/dist/admin-data-table-hvFcJepL.js.map +0 -1
  173. package/dist/admin-detail-BRP6pL7t.js +0 -328
  174. package/dist/admin-detail-BRP6pL7t.js.map +0 -1
  175. package/dist/admin-detail-CRzFb_pa.js +0 -1331
  176. package/dist/admin-detail-CRzFb_pa.js.map +0 -1
  177. package/dist/admin-detail-QLxU8r-5.js +0 -344
  178. package/dist/admin-detail-QLxU8r-5.js.map +0 -1
  179. package/dist/admin-detail-pPC8Q9l-.js +0 -710
  180. package/dist/admin-detail-pPC8Q9l-.js.map +0 -1
  181. package/dist/admin-dialog-width-BPrgdYlj.js +0 -6
  182. package/dist/admin-dialog-width-BPrgdYlj.js.map +0 -1
  183. package/dist/admin-format-DoohJ7Fg.js +0 -136
  184. package/dist/admin-format-DoohJ7Fg.js.map +0 -1
  185. package/dist/admin-health-D0L5Kig7.js.map +0 -1
  186. package/dist/admin-ops-CQP4TzWM.js +0 -235
  187. package/dist/admin-ops-CQP4TzWM.js.map +0 -1
  188. package/dist/admin-orders-BJ7W5S8P.js +0 -192
  189. package/dist/admin-orders-BJ7W5S8P.js.map +0 -1
  190. package/dist/admin-parked-B8xHkV2e.js +0 -193
  191. package/dist/admin-parked-B8xHkV2e.js.map +0 -1
  192. package/dist/admin-payments-CzkzqYA1.js +0 -246
  193. package/dist/admin-payments-CzkzqYA1.js.map +0 -1
  194. package/dist/admin-provider-prices-B6vwnVPi.js +0 -246
  195. package/dist/admin-provider-prices-B6vwnVPi.js.map +0 -1
  196. package/dist/admin-settings-DYC-c7mJ.js +0 -1813
  197. package/dist/admin-settings-DYC-c7mJ.js.map +0 -1
  198. package/dist/admin-status-badge-0-K37EfN.js +0 -43
  199. package/dist/admin-status-badge-0-K37EfN.js.map +0 -1
  200. package/dist/admin-subscriptions-CvW-YFs0.js +0 -301
  201. package/dist/admin-subscriptions-CvW-YFs0.js.map +0 -1
  202. package/dist/admin-tabs-D5lqdVcC.js +0 -46
  203. package/dist/admin-tabs-D5lqdVcC.js.map +0 -1
  204. package/dist/admin-utils-B9eEBNsR.js.map +0 -1
  205. package/dist/admin-widget-viz-8aukE3v_.js +0 -581
  206. package/dist/admin-widget-viz-8aukE3v_.js.map +0 -1
  207. package/dist/client-BYgnI6_h.js.map +0 -1
package/dist/admin.js CHANGED
@@ -1,27 +1,28 @@
1
- import { C as e, D as t, E as n, T as r, _ as i, a, d as o, f as s, g as c, h as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, w as _ } from "./admin-utils-B9eEBNsR.js";
2
- import { a as v, i as ee, n as y, o as te, r as ne, s as b, t as x } from "./admin-dropdown-menu-D0E5rwmn.js";
3
- import { t as S } from "./admin-button-CrcYk5r0.js";
4
- import { f as C, i as w, l as T, o as re, t as ie } from "./admin-capabilities-BDcZeHL_.js";
5
- import { t as E } from "./admin-auth-1aZIgXiS.js";
6
- import { f as ae, s as D } from "./admin-format-DoohJ7Fg.js";
7
- import { t as oe } from "./admin-confirm-katGq0Qo.js";
1
+ import { D as e, E as t, O as n, T as r, _ as i, a, d as o, f as s, g as c, h as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, w as v } from "./admin-utils-wuPUD0uh.js";
2
+ import { a as ee, i as te, n as y, o as ne, r as re, s as b, t as x } from "./admin-dropdown-menu-DLUn6Uj3.js";
3
+ import { t as S } from "./admin-button-DBzTD6By.js";
4
+ import { i as C, o as ie, p as w, t as ae, u as T } from "./admin-capabilities-CZdT1Pxe.js";
5
+ import { t as E } from "./admin-auth-DlIOmwPo.js";
6
+ import { p as oe, s as se } from "./admin-format-BbiTCqUG.js";
7
+ import { t as ce } from "./admin-confirm-katGq0Qo.js";
8
+ import { n as D } from "./admin-status-badge-IL8ofZ_6.js";
8
9
  import * as O from "react";
9
- import { Component as se, Suspense as ce, lazy as k, useCallback as A, useEffect as le, useId as ue, useLayoutEffect as de, useMemo as j, useRef as fe, useState as M, useSyncExternalStore as N } 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";
10
+ import { Component as le, Suspense as ue, lazy as k, useCallback as A, useEffect as de, useId as fe, useLayoutEffect as pe, useMemo as j, useRef as me, useState as M, useSyncExternalStore as N } from "react";
11
+ import { QueryCache as he, QueryClient as ge, QueryClientProvider as _e, useQuery as P } from "@tanstack/react-query";
12
+ import { Toaster as ve } from "sonner";
12
13
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
13
14
  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";
15
+ import { Add01Icon as ye, Alert01Icon as be, AlertCircleIcon as xe, CreditCardIcon as z, DashboardCircleIcon as Se, Notification01Icon as Ce, PackageIcon as we, Refresh01Icon as Te, RepeatIcon as Ee, Settings01Icon as De, Tick02Icon as Oe, UnfoldMoreIcon as ke, UserGroupIcon as Ae, Wrench01Icon as je } from "@hugeicons/core-free-icons";
16
+ import { ChevronRightIcon as Me, CircleCheckIcon as Ne, InfoIcon as Pe, Loader2Icon as Fe, OctagonXIcon as Ie, PanelLeftIcon as Le, TriangleAlertIcon as Re, XIcon as ze } from "lucide-react";
17
+ import { mergeProps as B } from "@base-ui/react/merge-props";
18
+ import { useRender as V } from "@base-ui/react/use-render";
19
+ import { cva as Be } from "class-variance-authority";
20
+ import { Separator as Ve } from "@base-ui/react/separator";
21
+ import { Dialog as H } from "@base-ui/react/dialog";
22
+ import { Tooltip as U } from "@base-ui/react/tooltip";
23
+ import { AlertDialog as W } from "@base-ui/react/alert-dialog";
23
24
  //#region src/appearance.ts
24
- var Ve = {
25
+ var He = {
25
26
  background: "--background",
26
27
  foreground: "--foreground",
27
28
  card: "--card",
@@ -36,131 +37,131 @@ var Ve = {
36
37
  radius: "--radius",
37
38
  fontFamily: "--orck-font"
38
39
  };
39
- function W(e, t = "orck") {
40
+ function G(e, t = "orck") {
40
41
  let n = e?.variables;
41
42
  if (!n) return;
42
43
  let r = {};
43
- for (let [e, i] of Object.entries(n)) i && (r[Ve[e].replace("--orck-", `--${t}-`)] = i);
44
+ for (let [e, i] of Object.entries(n)) i && (r[He[e].replace("--orck-", `--${t}-`)] = i);
44
45
  return r;
45
46
  }
46
47
  //#endregion
47
48
  //#region src/admin/routes.tsx
48
- var He = [
49
+ var Ue = [
49
50
  {
50
51
  path: "/payments/attempts",
51
- Component: k(() => import("./admin-attempts-DyDDt-qw.js").then((e) => ({ default: e.AttemptsPage })))
52
+ Component: k(() => import("./admin-attempts-CP5CWyNR.js").then((e) => ({ default: e.AttemptsPage })))
52
53
  },
53
54
  {
54
55
  path: "/catalog/metering",
55
- Component: k(() => import("./admin-metering-D-e-37Jn.js").then((e) => ({ default: e.CatalogMeteringPage })))
56
+ Component: k(() => import("./admin-metering-CDqueHUh.js").then((e) => ({ default: e.CatalogMeteringPage })))
56
57
  },
57
58
  {
58
59
  path: "/payments/health",
59
- Component: k(() => import("./admin-health-D0L5Kig7.js").then((e) => ({ default: e.PaymentHealthPage })))
60
+ Component: k(() => import("./admin-health-DmnI4e8K.js").then((e) => ({ default: e.PaymentHealthPage })))
60
61
  },
61
62
  {
62
63
  path: "/payments/cycles",
63
- Component: k(() => import("./admin-attempts-DyDDt-qw.js").then((e) => ({ default: e.CyclesPage })))
64
+ Component: k(() => import("./admin-attempts-CP5CWyNR.js").then((e) => ({ default: e.CyclesPage })))
64
65
  },
65
66
  {
66
67
  path: "/catalog/prices",
67
- Component: k(() => import("./admin-catalog-BlF5mnu4.js").then((e) => ({ default: e.CatalogPricesPage })))
68
+ Component: k(() => import("./admin-catalog-DpTjS0Yo.js").then((e) => ({ default: e.CatalogPricesPage })))
68
69
  },
69
70
  {
70
71
  path: "/subscriptions",
71
- Component: k(() => import("./admin-subscriptions-CvW-YFs0.js").then((e) => ({ default: e.SubscriptionsPage })))
72
+ Component: k(() => import("./admin-subscriptions-Cd5CGrue.js").then((e) => ({ default: e.SubscriptionsPage })))
72
73
  },
73
74
  {
74
75
  path: "/customers",
75
- Component: k(() => import("./admin-customers-EpfoWDh-.js").then((e) => ({ default: e.CustomersPage })))
76
+ Component: k(() => import("./admin-customers-BE3N839X.js").then((e) => ({ default: e.CustomersPage })))
76
77
  },
77
78
  {
78
79
  path: "/payments",
79
- Component: k(() => import("./admin-payments-CzkzqYA1.js").then((e) => ({ default: e.PaymentsPage })))
80
+ Component: k(() => import("./admin-payments-DJcjwRA4.js").then((e) => ({ default: e.PaymentsPage })))
80
81
  },
81
82
  {
82
83
  path: "/settings",
83
- Component: k(() => import("./admin-settings-DYC-c7mJ.js").then((e) => ({ default: e.SettingsPage })))
84
+ Component: k(() => import("./admin-settings-DscHu4ww.js").then((e) => ({ default: e.SettingsPage })))
84
85
  },
85
86
  {
86
87
  path: "/reports",
87
- Component: k(() => import("./admin-reports-BFGS_PWf.js").then((e) => ({ default: e.ReportsPage })))
88
+ Component: k(() => import("./admin-reports-CtPoiceH.js").then((e) => ({ default: e.ReportsPage })))
88
89
  },
89
90
  {
90
91
  path: "/catalog",
91
- Component: k(() => import("./admin-catalog-BlF5mnu4.js").then((e) => ({ default: e.CatalogProductsPage })))
92
+ Component: k(() => import("./admin-catalog-DpTjS0Yo.js").then((e) => ({ default: e.CatalogProductsPage })))
92
93
  },
93
94
  {
94
95
  path: "/orders",
95
- Component: k(() => import("./admin-orders-BJ7W5S8P.js").then((e) => ({ default: e.OrdersPage })))
96
+ Component: k(() => import("./admin-orders-C1Sf2qhc.js").then((e) => ({ default: e.OrdersPage })))
96
97
  },
97
98
  {
98
99
  path: "/ops/imports",
99
- Component: k(() => import("./admin-imports-CgZB5JAV.js").then((e) => ({ default: e.ImportsPage })))
100
+ Component: k(() => import("./admin-imports-C0aMP6sj.js").then((e) => ({ default: e.ImportsPage })))
100
101
  },
101
102
  {
102
103
  path: "/ops/imports/:id",
103
- Component: k(() => import("./admin-detail-3wFIDPNB.js").then((e) => ({ default: e.ImportDetailPage })))
104
+ Component: k(() => import("./admin-detail-Ln56otK0.js").then((e) => ({ default: e.ImportDetailPage })))
104
105
  },
105
106
  {
106
107
  path: "/ops/imports/:id/records",
107
- Component: k(() => import("./admin-records-H0MlhEVY.js").then((e) => ({ default: e.ImportRecordsPage })))
108
+ Component: k(() => import("./admin-records-DKtcgN11.js").then((e) => ({ default: e.ImportRecordsPage })))
108
109
  },
109
110
  {
110
111
  path: "/ops/provider-prices",
111
- Component: k(() => import("./admin-provider-prices-B6vwnVPi.js").then((e) => ({ default: e.ProviderPricesPage })))
112
+ Component: k(() => import("./admin-provider-prices-BVVogH7Q.js").then((e) => ({ default: e.ProviderPricesPage })))
112
113
  },
113
114
  {
114
115
  path: "/ops/proposals",
115
- Component: k(() => import("./admin-proposals-Cuj7tvaM.js").then((e) => ({ default: e.ProposalsPage })))
116
+ Component: k(() => import("./admin-proposals-DVrl-ym4.js").then((e) => ({ default: e.ProposalsPage })))
116
117
  },
117
118
  {
118
119
  path: "/ops/parked",
119
- Component: k(() => import("./admin-parked-B8xHkV2e.js").then((e) => ({ default: e.ParkedPage })))
120
+ Component: k(() => import("./admin-parked-a0tB5bhG.js").then((e) => ({ default: e.ParkedPage })))
120
121
  },
121
122
  {
122
123
  path: "/ops",
123
- Component: k(() => import("./admin-ops-CQP4TzWM.js").then((e) => ({ default: e.OpsPage })))
124
+ Component: k(() => import("./admin-ops-CL2kjDwi.js").then((e) => ({ default: e.OpsPage })))
124
125
  },
125
126
  {
126
127
  path: "/",
127
- Component: k(() => import("./admin-dashboard-CJE63yz4.js").then((e) => ({ default: e.DashboardPage })))
128
+ Component: k(() => import("./admin-dashboard-BxjkV15J.js").then((e) => ({ default: e.DashboardPage })))
128
129
  },
129
130
  {
130
131
  path: "/customers/:customerId",
131
- Component: k(() => import("./admin-detail-CRzFb_pa.js").then((e) => ({ default: e.CustomerDetailPage })))
132
+ Component: k(() => import("./admin-detail-P-UnNvXJ.js").then((e) => ({ default: e.CustomerDetailPage })))
132
133
  },
133
134
  {
134
135
  path: "/payments/attempts/:id",
135
- Component: k(() => import("./admin-attempts-DyDDt-qw.js").then((e) => ({ default: e.AttemptDetailPage })))
136
+ Component: k(() => import("./admin-attempts-CP5CWyNR.js").then((e) => ({ default: e.AttemptDetailPage })))
136
137
  },
137
138
  {
138
139
  path: "/catalog/metering/:key",
139
- Component: k(() => import("./admin-metering-D-e-37Jn.js").then((e) => ({ default: e.MeterDetailPage })))
140
+ Component: k(() => import("./admin-metering-CDqueHUh.js").then((e) => ({ default: e.MeterDetailPage })))
140
141
  },
141
142
  {
142
143
  path: "/payments/cycles/:id",
143
- Component: k(() => import("./admin-attempts-DyDDt-qw.js").then((e) => ({ default: e.CycleDetailPage })))
144
+ Component: k(() => import("./admin-attempts-CP5CWyNR.js").then((e) => ({ default: e.CycleDetailPage })))
144
145
  },
145
146
  {
146
147
  path: "/catalog/prices/:id",
147
- Component: k(() => import("./admin-price-detail-CSI5oKdb.js").then((e) => ({ default: e.PriceDetailPage })))
148
+ Component: k(() => import("./admin-price-detail-BOmeWw15.js").then((e) => ({ default: e.PriceDetailPage })))
148
149
  },
149
150
  {
150
151
  path: "/subscriptions/:id",
151
- Component: k(() => import("./admin-detail-pPC8Q9l-.js").then((e) => ({ default: e.SubscriptionDetailPage })))
152
+ Component: k(() => import("./admin-detail-C8lD7U2t.js").then((e) => ({ default: e.SubscriptionDetailPage })))
152
153
  },
153
154
  {
154
155
  path: "/payments/:id",
155
- Component: k(() => import("./admin-detail-BRP6pL7t.js").then((e) => ({ default: e.PaymentDetailPage })))
156
+ Component: k(() => import("./admin-detail-BKe9xqPd.js").then((e) => ({ default: e.PaymentDetailPage })))
156
157
  },
157
158
  {
158
159
  path: "/orders/:id",
159
- Component: k(() => import("./admin-detail-QLxU8r-5.js").then((e) => ({ default: e.OrderDetailPage })))
160
+ Component: k(() => import("./admin-detail-D6zD085K.js").then((e) => ({ default: e.OrderDetailPage })))
160
161
  }
161
162
  ];
162
- function Ue(e) {
163
- for (let { path: t, Component: n } of He) {
163
+ function We(e) {
164
+ for (let { path: t, Component: n } of Ue) {
164
165
  let r = e.replace(/\/$/, "").split("/"), i = t === "/" ? [""] : t.split("/"), a = {};
165
166
  if (r.length === i.length && i.every((e, t) => {
166
167
  if (e.startsWith(":")) try {
@@ -175,35 +176,35 @@ function Ue(e) {
175
176
  };
176
177
  }
177
178
  }
178
- function We() {
179
- let e = Ue(d().pathname);
179
+ function Ge() {
180
+ let e = We(d().pathname);
180
181
  return e ? /* @__PURE__ */ I(a, {
181
182
  params: e.params,
182
- children: /* @__PURE__ */ I(ce, {
183
+ children: /* @__PURE__ */ I(ue, {
183
184
  fallback: /* @__PURE__ */ I("p", {
184
185
  role: "status",
185
- children: /* @__PURE__ */ I(r, { id: "Loading…" })
186
+ children: /* @__PURE__ */ I(t, { id: "Loading…" })
186
187
  }),
187
188
  children: /* @__PURE__ */ I(e.Component, {})
188
189
  })
189
190
  }) : /* @__PURE__ */ I("p", {
190
191
  role: "status",
191
- children: /* @__PURE__ */ I(r, { id: "This billing page does not exist." })
192
+ children: /* @__PURE__ */ I(t, { id: "This billing page does not exist." })
192
193
  });
193
194
  }
194
195
  //#endregion
195
196
  //#region src/admin/hooks/use-mobile.ts
196
- var G = "(max-width: 767px)", Ge = (e) => {
197
- let t = window.matchMedia(G);
197
+ var K = "(max-width: 767px)", Ke = (e) => {
198
+ let t = window.matchMedia(K);
198
199
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
199
200
  };
200
- function Ke() {
201
- return N(Ge, () => window.matchMedia(G).matches, () => !1);
201
+ function qe() {
202
+ return N(Ke, () => window.matchMedia(K).matches, () => !1);
202
203
  }
203
204
  //#endregion
204
205
  //#region src/admin/components/ui/separator.tsx
205
- function qe({ className: e, orientation: t = "horizontal", ...n }) {
206
- return /* @__PURE__ */ I(Be, {
206
+ function Je({ className: e, orientation: t = "horizontal", ...n }) {
207
+ return /* @__PURE__ */ I(Ve, {
207
208
  "data-slot": "separator",
208
209
  orientation: t,
209
210
  className: h("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", e),
@@ -212,62 +213,62 @@ function qe({ className: e, orientation: t = "horizontal", ...n }) {
212
213
  }
213
214
  //#endregion
214
215
  //#region src/admin/components/ui/sheet.tsx
215
- function Je({ ...e }) {
216
- return /* @__PURE__ */ I(V.Root, {
216
+ function Ye({ ...e }) {
217
+ return /* @__PURE__ */ I(H.Root, {
217
218
  "data-slot": "sheet",
218
219
  ...e
219
220
  });
220
221
  }
221
- function Ye({ ...e }) {
222
- return /* @__PURE__ */ I(V.Portal, {
222
+ function Xe({ ...e }) {
223
+ return /* @__PURE__ */ I(H.Portal, {
223
224
  container: s().portal,
224
225
  "data-slot": "sheet-portal",
225
226
  ...e
226
227
  });
227
228
  }
228
- function Xe({ className: e, ...t }) {
229
- return /* @__PURE__ */ I(V.Backdrop, {
229
+ function Ze({ className: e, ...t }) {
230
+ return /* @__PURE__ */ I(H.Backdrop, {
230
231
  "data-slot": "sheet-overlay",
231
232
  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),
232
233
  ...t
233
234
  });
234
235
  }
235
- function Ze({ className: e, children: t, side: n = "right", showCloseButton: i = !0, ...a }) {
236
- return /* @__PURE__ */ L(Ye, { children: [/* @__PURE__ */ I(Xe, {}), /* @__PURE__ */ L(V.Popup, {
236
+ function Qe({ className: e, children: n, side: r = "right", showCloseButton: i = !0, ...a }) {
237
+ return /* @__PURE__ */ L(Xe, { children: [/* @__PURE__ */ I(Ze, {}), /* @__PURE__ */ L(H.Popup, {
237
238
  "data-slot": "sheet-content",
238
- "data-side": n,
239
+ "data-side": r,
239
240
  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),
240
241
  ...a,
241
- children: [t, i && /* @__PURE__ */ L(V.Close, {
242
+ children: [n, i && /* @__PURE__ */ L(H.Close, {
242
243
  "data-slot": "sheet-close",
243
244
  render: /* @__PURE__ */ I(S, {
244
245
  variant: "ghost",
245
246
  className: "absolute top-3 right-3",
246
247
  size: "icon-sm"
247
248
  }),
248
- children: [/* @__PURE__ */ I(Re, {}), /* @__PURE__ */ I("span", {
249
+ children: [/* @__PURE__ */ I(ze, {}), /* @__PURE__ */ I("span", {
249
250
  className: "sr-only",
250
- children: /* @__PURE__ */ I(r, { id: "Close" })
251
+ children: /* @__PURE__ */ I(t, { id: "Close" })
251
252
  })]
252
253
  })]
253
254
  })] });
254
255
  }
255
- function Qe({ className: e, ...t }) {
256
+ function $e({ className: e, ...t }) {
256
257
  return /* @__PURE__ */ I("div", {
257
258
  "data-slot": "sheet-header",
258
259
  className: h("flex flex-col gap-0.5 p-4", e),
259
260
  ...t
260
261
  });
261
262
  }
262
- function $e({ className: e, ...t }) {
263
- return /* @__PURE__ */ I(V.Title, {
263
+ function et({ className: e, ...t }) {
264
+ return /* @__PURE__ */ I(H.Title, {
264
265
  "data-slot": "sheet-title",
265
266
  className: h("font-heading text-base font-medium text-foreground", e),
266
267
  ...t
267
268
  });
268
269
  }
269
- function et({ className: e, ...t }) {
270
- return /* @__PURE__ */ I(V.Description, {
270
+ function tt({ className: e, ...t }) {
271
+ return /* @__PURE__ */ I(H.Description, {
271
272
  "data-slot": "sheet-description",
272
273
  className: h("text-sm text-muted-foreground", e),
273
274
  ...t
@@ -275,53 +276,53 @@ function et({ className: e, ...t }) {
275
276
  }
276
277
  //#endregion
277
278
  //#region src/admin/components/ui/tooltip.tsx
278
- function tt({ delay: e = 0, ...t }) {
279
- return /* @__PURE__ */ I(H.Provider, {
279
+ function nt({ delay: e = 0, ...t }) {
280
+ return /* @__PURE__ */ I(U.Provider, {
280
281
  "data-slot": "tooltip-provider",
281
282
  delay: e,
282
283
  ...t
283
284
  });
284
285
  }
285
- function nt({ ...e }) {
286
- return /* @__PURE__ */ I(H.Root, {
286
+ function rt({ ...e }) {
287
+ return /* @__PURE__ */ I(U.Root, {
287
288
  "data-slot": "tooltip",
288
289
  ...e
289
290
  });
290
291
  }
291
- function rt({ ...e }) {
292
- return /* @__PURE__ */ I(H.Trigger, {
292
+ function it({ ...e }) {
293
+ return /* @__PURE__ */ I(U.Trigger, {
293
294
  "data-slot": "tooltip-trigger",
294
295
  ...e
295
296
  });
296
297
  }
297
- function it({ className: e, side: t = "top", sideOffset: n = 4, align: r = "center", alignOffset: i = 0, children: a, ...o }) {
298
- return /* @__PURE__ */ I(H.Portal, {
298
+ function at({ className: e, side: t = "top", sideOffset: n = 4, align: r = "center", alignOffset: i = 0, children: a, ...o }) {
299
+ return /* @__PURE__ */ I(U.Portal, {
299
300
  container: s().portal,
300
- children: /* @__PURE__ */ I(H.Positioner, {
301
+ children: /* @__PURE__ */ I(U.Positioner, {
301
302
  align: r,
302
303
  alignOffset: i,
303
304
  side: t,
304
305
  sideOffset: n,
305
306
  className: "isolate z-50",
306
- children: /* @__PURE__ */ L(H.Popup, {
307
+ children: /* @__PURE__ */ L(U.Popup, {
307
308
  "data-slot": "tooltip-content",
308
309
  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),
309
310
  ...o,
310
- 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" })]
311
+ children: [a, /* @__PURE__ */ I(U.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" })]
311
312
  })
312
313
  })
313
314
  });
314
315
  }
315
316
  //#endregion
316
317
  //#region src/admin/components/ui/sidebar.tsx
317
- var at = "16rem", ot = "18rem", st = "3rem", ct = "b", K = O.createContext(null);
318
- function q() {
319
- let e = O.useContext(K);
318
+ var ot = "16rem", st = "18rem", ct = "3rem", lt = "b", q = O.createContext(null);
319
+ function J() {
320
+ let e = O.useContext(q);
320
321
  if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
321
322
  return e;
322
323
  }
323
- function lt({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...o }) {
324
- let s = Ke(), [c, l] = O.useState(!1), [u, d] = O.useState(e), f = t ?? u, p = O.useCallback((e) => {
324
+ function ut({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...o }) {
325
+ let s = qe(), [c, l] = O.useState(!1), [u, d] = O.useState(e), f = t ?? u, p = O.useCallback((e) => {
325
326
  let t = typeof e == "function" ? e(f) : e;
326
327
  n ? n(t) : d(t);
327
328
  }, [n, f]), m = O.useCallback(() => s ? l((e) => !e) : p((e) => !e), [
@@ -345,16 +346,16 @@ function lt({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
345
346
  l,
346
347
  m
347
348
  ]);
348
- return /* @__PURE__ */ I(K.Provider, {
349
+ return /* @__PURE__ */ I(q.Provider, {
349
350
  value: _,
350
351
  children: /* @__PURE__ */ I("div", {
351
352
  "data-slot": "sidebar-wrapper",
352
353
  onKeyDown: (e) => {
353
- e.key === ct && (e.metaKey || e.ctrlKey) && (e.preventDefault(), m());
354
+ e.key === lt && (e.metaKey || e.ctrlKey) && (e.preventDefault(), m());
354
355
  },
355
356
  style: {
356
- "--sidebar-width": at,
357
- "--sidebar-width-icon": st,
357
+ "--sidebar-width": ot,
358
+ "--sidebar-width-icon": ct,
358
359
  ...i
359
360
  },
360
361
  className: h("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar relative flex min-h-[30rem] w-full", r),
@@ -363,28 +364,28 @@ function lt({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
363
364
  })
364
365
  });
365
366
  }
366
- function ut({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: i, children: a, dir: o, ...s }) {
367
- let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = q();
368
- return n === "none" ? /* @__PURE__ */ I("div", {
367
+ function dt({ side: e = "left", variant: n = "sidebar", collapsible: r = "offcanvas", className: i, children: a, dir: o, ...s }) {
368
+ let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = J();
369
+ return r === "none" ? /* @__PURE__ */ I("div", {
369
370
  "data-slot": "sidebar",
370
371
  className: h("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", i),
371
372
  ...s,
372
373
  children: a
373
- }) : c ? /* @__PURE__ */ I(Je, {
374
+ }) : c ? /* @__PURE__ */ I(Ye, {
374
375
  open: u,
375
376
  onOpenChange: d,
376
377
  ...s,
377
- children: /* @__PURE__ */ L(Ze, {
378
+ children: /* @__PURE__ */ L(Qe, {
378
379
  dir: o,
379
380
  "data-sidebar": "sidebar",
380
381
  "data-slot": "sidebar",
381
382
  "data-mobile": "true",
382
383
  className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
383
- style: { "--sidebar-width": ot },
384
+ style: { "--sidebar-width": st },
384
385
  side: e,
385
- children: [/* @__PURE__ */ L(Qe, {
386
+ children: [/* @__PURE__ */ L($e, {
386
387
  className: "sr-only",
387
- children: [/* @__PURE__ */ I($e, { children: /* @__PURE__ */ I(r, { id: "Sidebar" }) }), /* @__PURE__ */ I(et, { children: /* @__PURE__ */ I(r, { id: "Displays the mobile sidebar." }) })]
388
+ children: [/* @__PURE__ */ I(et, { children: /* @__PURE__ */ I(t, { id: "Sidebar" }) }), /* @__PURE__ */ I(tt, { children: /* @__PURE__ */ I(t, { id: "Displays the mobile sidebar." }) })]
388
389
  }), /* @__PURE__ */ I("div", {
389
390
  className: "flex h-full w-full flex-col",
390
391
  children: a
@@ -393,17 +394,17 @@ function ut({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
393
394
  }) : /* @__PURE__ */ L("div", {
394
395
  className: "group peer text-sidebar-foreground relative hidden md:block",
395
396
  "data-state": l,
396
- "data-collapsible": l === "collapsed" ? n : "",
397
- "data-variant": t,
397
+ "data-collapsible": l === "collapsed" ? r : "",
398
+ "data-variant": n,
398
399
  "data-side": e,
399
400
  "data-slot": "sidebar",
400
401
  children: [/* @__PURE__ */ I("div", {
401
402
  "data-slot": "sidebar-gap",
402
- 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)")
403
+ 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", n === "floating" || n === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
403
404
  }), /* @__PURE__ */ I("div", {
404
405
  "data-slot": "sidebar-container",
405
406
  "data-side": e,
406
- 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", i),
407
+ 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", n === "floating" || n === "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", i),
407
408
  ...s,
408
409
  children: /* @__PURE__ */ I("div", {
409
410
  "data-sidebar": "sidebar",
@@ -414,8 +415,8 @@ function ut({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
414
415
  })]
415
416
  });
416
417
  }
417
- function dt({ className: e, onClick: t, ...n }) {
418
- let { toggleSidebar: i } = q();
418
+ function ft({ className: e, onClick: n, ...r }) {
419
+ let { toggleSidebar: i } = J();
419
420
  return /* @__PURE__ */ L(S, {
420
421
  "data-sidebar": "trigger",
421
422
  "data-slot": "sidebar-trigger",
@@ -423,17 +424,17 @@ function dt({ className: e, onClick: t, ...n }) {
423
424
  size: "icon-sm",
424
425
  className: h(e),
425
426
  onClick: (e) => {
426
- t?.(e), i();
427
+ n?.(e), i();
427
428
  },
428
- ...n,
429
- children: [/* @__PURE__ */ I(Ie, {}), /* @__PURE__ */ I("span", {
429
+ ...r,
430
+ children: [/* @__PURE__ */ I(Le, {}), /* @__PURE__ */ I("span", {
430
431
  className: "sr-only",
431
- children: /* @__PURE__ */ I(r, { id: "Toggle Sidebar" })
432
+ children: /* @__PURE__ */ I(t, { id: "Toggle Sidebar" })
432
433
  })]
433
434
  });
434
435
  }
435
- function ft({ className: e, ...n }) {
436
- let { text: r } = t(), { toggleSidebar: i } = q();
436
+ function pt({ className: e, ...t }) {
437
+ let { text: r } = n(), { toggleSidebar: i } = J();
437
438
  return /* @__PURE__ */ I("button", {
438
439
  "data-sidebar": "rail",
439
440
  "data-slot": "sidebar-rail",
@@ -442,17 +443,17 @@ function ft({ className: e, ...n }) {
442
443
  onClick: i,
443
444
  title: r("Toggle Sidebar"),
444
445
  className: h("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", e),
445
- ...n
446
+ ...t
446
447
  });
447
448
  }
448
- function pt({ className: e, ...t }) {
449
+ function mt({ className: e, ...t }) {
449
450
  return /* @__PURE__ */ I("main", {
450
451
  "data-slot": "sidebar-inset",
451
452
  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),
452
453
  ...t
453
454
  });
454
455
  }
455
- function mt({ className: e, ...t }) {
456
+ function ht({ className: e, ...t }) {
456
457
  return /* @__PURE__ */ I("div", {
457
458
  "data-slot": "sidebar-header",
458
459
  "data-sidebar": "header",
@@ -460,7 +461,7 @@ function mt({ className: e, ...t }) {
460
461
  ...t
461
462
  });
462
463
  }
463
- function ht({ className: e, ...t }) {
464
+ function gt({ className: e, ...t }) {
464
465
  return /* @__PURE__ */ I("div", {
465
466
  "data-slot": "sidebar-content",
466
467
  "data-sidebar": "content",
@@ -468,7 +469,7 @@ function ht({ className: e, ...t }) {
468
469
  ...t
469
470
  });
470
471
  }
471
- function gt({ className: e, ...t }) {
472
+ function _t({ className: e, ...t }) {
472
473
  return /* @__PURE__ */ I("div", {
473
474
  "data-slot": "sidebar-group",
474
475
  "data-sidebar": "group",
@@ -476,10 +477,10 @@ function gt({ className: e, ...t }) {
476
477
  ...t
477
478
  });
478
479
  }
479
- function _t({ className: e, render: t, ...n }) {
480
- return B({
480
+ function vt({ className: e, render: t, ...n }) {
481
+ return V({
481
482
  defaultTagName: "div",
482
- 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),
483
+ props: B({ 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),
483
484
  render: t,
484
485
  state: {
485
486
  slot: "sidebar-group-label",
@@ -487,7 +488,7 @@ function _t({ className: e, render: t, ...n }) {
487
488
  }
488
489
  });
489
490
  }
490
- function vt({ className: e, ...t }) {
491
+ function yt({ className: e, ...t }) {
491
492
  return /* @__PURE__ */ I("div", {
492
493
  "data-slot": "sidebar-group-content",
493
494
  "data-sidebar": "group-content",
@@ -495,7 +496,7 @@ function vt({ className: e, ...t }) {
495
496
  ...t
496
497
  });
497
498
  }
498
- function J({ className: e, ...t }) {
499
+ function Y({ className: e, ...t }) {
499
500
  return /* @__PURE__ */ I("ul", {
500
501
  "data-slot": "sidebar-menu",
501
502
  "data-sidebar": "menu",
@@ -503,7 +504,7 @@ function J({ className: e, ...t }) {
503
504
  ...t
504
505
  });
505
506
  }
506
- function Y({ className: e, ...t }) {
507
+ function X({ className: e, ...t }) {
507
508
  return /* @__PURE__ */ I("li", {
508
509
  "data-slot": "sidebar-menu-item",
509
510
  "data-sidebar": "menu-item",
@@ -511,7 +512,7 @@ function Y({ className: e, ...t }) {
511
512
  ...t
512
513
  });
513
514
  }
514
- 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", {
515
+ var bt = Be("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", {
515
516
  variants: {
516
517
  variant: {
517
518
  default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
@@ -528,14 +529,14 @@ var yt = ze("peer/menu-button group/menu-button ring-sidebar-ring hover:bg-sideb
528
529
  size: "default"
529
530
  }
530
531
  });
531
- function X({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
532
- let { isMobile: s, state: c } = q(), l = B({
532
+ function Z({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
533
+ let { isMobile: s, state: c } = J(), l = V({
533
534
  defaultTagName: "button",
534
- props: z({ className: h(yt({
535
+ props: B({ className: h(bt({
535
536
  variant: n,
536
537
  size: r
537
538
  }), a) }, o),
538
- render: i ? /* @__PURE__ */ I(rt, { render: e }) : e,
539
+ render: i ? /* @__PURE__ */ I(it, { render: e }) : e,
539
540
  state: {
540
541
  slot: "sidebar-menu-button",
541
542
  sidebar: "menu-button",
@@ -543,14 +544,14 @@ function X({ render: e, isActive: t = !1, variant: n = "default", size: r = "def
543
544
  active: t
544
545
  }
545
546
  });
546
- return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ L(nt, { children: [l, /* @__PURE__ */ I(it, {
547
+ return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ L(rt, { children: [l, /* @__PURE__ */ I(at, {
547
548
  side: "right",
548
549
  align: "center",
549
550
  hidden: c !== "collapsed" || s,
550
551
  ...i
551
552
  })] })) : l;
552
553
  }
553
- function bt({ className: e, ...t }) {
554
+ function xt({ className: e, ...t }) {
554
555
  return /* @__PURE__ */ I("ul", {
555
556
  "data-slot": "sidebar-menu-sub",
556
557
  "data-sidebar": "menu-sub",
@@ -558,7 +559,7 @@ function bt({ className: e, ...t }) {
558
559
  ...t
559
560
  });
560
561
  }
561
- function xt({ className: e, ...t }) {
562
+ function St({ className: e, ...t }) {
562
563
  return /* @__PURE__ */ I("li", {
563
564
  "data-slot": "sidebar-menu-sub-item",
564
565
  "data-sidebar": "menu-sub-item",
@@ -566,10 +567,10 @@ function xt({ className: e, ...t }) {
566
567
  ...t
567
568
  });
568
569
  }
569
- function St({ render: e, size: t = "md", isActive: n = !1, className: r, ...i }) {
570
- return B({
570
+ function Ct({ render: e, size: t = "md", isActive: n = !1, className: r, ...i }) {
571
+ return V({
571
572
  defaultTagName: "a",
572
- 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),
573
+ props: B({ 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),
573
574
  render: e,
574
575
  state: {
575
576
  slot: "sidebar-menu-sub-button",
@@ -581,13 +582,13 @@ function St({ render: e, size: t = "md", isActive: n = !1, className: r, ...i })
581
582
  }
582
583
  //#endregion
583
584
  //#region src/admin/navigation.tsx
584
- var Z = [
585
+ var wt = [
585
586
  {
586
587
  title: "Dashboard",
587
588
  path: "/",
588
- icon: xe,
589
+ icon: Se,
589
590
  order: 0,
590
- useVisible: C,
591
+ useVisible: w,
591
592
  items: [{
592
593
  title: "Overview",
593
594
  path: "/"
@@ -599,23 +600,23 @@ var Z = [
599
600
  {
600
601
  title: "Customers",
601
602
  path: "/customers",
602
- icon: ke,
603
+ icon: Ae,
603
604
  order: 10,
604
- useVisible: w
605
+ useVisible: C
605
606
  },
606
607
  {
607
608
  title: "Subscriptions",
608
609
  path: "/subscriptions",
609
- icon: Te,
610
+ icon: Ee,
610
611
  order: 20,
611
- useVisible: w
612
+ useVisible: C
612
613
  },
613
614
  {
614
615
  title: "Payments",
615
616
  path: "/payments",
616
- icon: be,
617
+ icon: z,
617
618
  order: 30,
618
- useVisible: w,
619
+ useVisible: C,
619
620
  items: [
620
621
  {
621
622
  title: "Payments",
@@ -624,7 +625,7 @@ var Z = [
624
625
  {
625
626
  title: "Health",
626
627
  path: "/payments/health",
627
- useVisible: C
628
+ useVisible: w
628
629
  },
629
630
  {
630
631
  title: "Attempts",
@@ -639,16 +640,16 @@ var Z = [
639
640
  {
640
641
  title: "Orders",
641
642
  path: "/orders",
642
- icon: be,
643
+ icon: z,
643
644
  order: 40,
644
- useVisible: w
645
+ useVisible: C
645
646
  },
646
647
  {
647
648
  title: "Catalog",
648
649
  path: "/catalog",
649
- icon: Ce,
650
+ icon: we,
650
651
  order: 50,
651
- useVisible: re,
652
+ useVisible: ie,
652
653
  items: [
653
654
  {
654
655
  title: "Products",
@@ -667,7 +668,7 @@ var Z = [
667
668
  {
668
669
  title: "Ops",
669
670
  path: "/ops",
670
- icon: Ae,
671
+ icon: je,
671
672
  order: 60,
672
673
  useVisible: T,
673
674
  items: [
@@ -696,61 +697,61 @@ var Z = [
696
697
  {
697
698
  title: "Settings",
698
699
  path: "/settings",
699
- icon: Ee,
700
+ icon: De,
700
701
  order: 70
701
702
  }
702
703
  ].map((e) => ({ ...e }));
703
704
  //#endregion
704
705
  //#region src/admin/components/app-sidebar.tsx
705
- function Ct(e, t, n) {
706
+ function Tt(e, t, n) {
706
707
  return t === n ? e === t : e.startsWith(t);
707
708
  }
708
- function wt() {
709
- let { pathname: e } = d(), t = [{
709
+ function Et() {
710
+ let { pathname: e } = d(), n = [{
710
711
  label: "Billing",
711
- items: Z
712
- }], n = [...Z].sort((e, t) => t.path.length - e.path.length).find((t) => e === t.path || t.path !== "/" && e.startsWith(t.path + "/"))?.path;
713
- return /* @__PURE__ */ L(ut, {
712
+ items: wt
713
+ }], r = [...wt].sort((e, t) => t.path.length - e.path.length).find((t) => e === t.path || t.path !== "/" && e.startsWith(t.path + "/"))?.path;
714
+ return /* @__PURE__ */ L(dt, {
714
715
  variant: "inset",
715
716
  collapsible: "icon",
716
717
  children: [
717
- /* @__PURE__ */ I(mt, { children: /* @__PURE__ */ I(Ot, {}) }),
718
- /* @__PURE__ */ I(ht, { children: t.map((t) => /* @__PURE__ */ L(gt, { children: [/* @__PURE__ */ I(_t, { children: /* @__PURE__ */ I(r, { id: t.label }) }), /* @__PURE__ */ I(vt, { children: /* @__PURE__ */ I(J, { children: t.items.map((t) => /* @__PURE__ */ I(Et, {
718
+ /* @__PURE__ */ I(ht, { children: /* @__PURE__ */ I(At, {}) }),
719
+ /* @__PURE__ */ I(gt, { children: n.map((n) => /* @__PURE__ */ L(_t, { children: [/* @__PURE__ */ I(vt, { children: /* @__PURE__ */ I(t, { id: n.label }) }), /* @__PURE__ */ I(yt, { children: /* @__PURE__ */ I(Y, { children: n.items.map((t) => /* @__PURE__ */ I(Ot, {
719
720
  item: t,
720
- active: t.path === n,
721
+ active: t.path === r,
721
722
  pathname: e
722
- }, t.path)) }) })] }, t.label)) }),
723
- /* @__PURE__ */ I(ft, {})
723
+ }, t.path)) }) })] }, n.label)) }),
724
+ /* @__PURE__ */ I(pt, {})
724
725
  ]
725
726
  });
726
727
  }
727
- var Tt = () => !0;
728
- function Et({ item: e, active: n, pathname: i }) {
729
- let { text: a } = t();
730
- return (e.useVisible ?? Tt)() ? /* @__PURE__ */ L(Y, { children: [/* @__PURE__ */ I(X, {
731
- isActive: n,
728
+ var Dt = () => !0;
729
+ function Ot({ item: e, active: r, pathname: i }) {
730
+ let { text: a } = n();
731
+ return (e.useVisible ?? Dt)() ? /* @__PURE__ */ L(X, { children: [/* @__PURE__ */ I(Z, {
732
+ isActive: r,
732
733
  tooltip: a(e.title),
733
734
  render: /* @__PURE__ */ L(p, {
734
735
  to: e.path,
735
- children: [e.icon && /* @__PURE__ */ I(R, { icon: e.icon }), /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(r, { id: e.title }) })]
736
+ children: [e.icon && /* @__PURE__ */ I(R, { icon: e.icon }), /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(t, { id: e.title }) })]
736
737
  })
737
- }), e.items && n && /* @__PURE__ */ I(bt, { children: e.items.map((t) => /* @__PURE__ */ I(Dt, {
738
+ }), e.items && r && /* @__PURE__ */ I(xt, { children: e.items.map((t) => /* @__PURE__ */ I(kt, {
738
739
  sub: t,
739
- active: Ct(i, t.path, e.path)
740
+ active: Tt(i, t.path, e.path)
740
741
  }, t.path)) })] }) : null;
741
742
  }
742
- function Dt({ sub: e, active: t }) {
743
- return (e.useVisible ?? Tt)() ? /* @__PURE__ */ I(xt, { children: /* @__PURE__ */ I(St, {
744
- isActive: t,
743
+ function kt({ sub: e, active: n }) {
744
+ return (e.useVisible ?? Dt)() ? /* @__PURE__ */ I(St, { children: /* @__PURE__ */ I(Ct, {
745
+ isActive: n,
745
746
  render: /* @__PURE__ */ I(p, {
746
747
  to: e.path,
747
- children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(r, { id: e.title }) })
748
+ children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(t, { id: e.title }) })
748
749
  })
749
750
  }) }) : null;
750
751
  }
751
- function Ot() {
752
- let { activeMerchant: e, merchants: t, selectMerchant: n } = E(), i = m(), a = s().props.newMerchantHref, o = e?.display_name || e?.slug || "Select merchant", c = e?.role || "Merchant console", l = e?.slug.slice(0, 2) ?? "µ";
753
- return /* @__PURE__ */ I(J, { children: /* @__PURE__ */ I(Y, { children: /* @__PURE__ */ L(x, { children: [/* @__PURE__ */ I(b, { render: /* @__PURE__ */ L(X, {
752
+ function At() {
753
+ let { activeMerchant: e, merchants: n, selectMerchant: r } = E(), i = m(), a = s().props.newMerchantHref, o = e?.display_name || e?.slug || "Select merchant", c = e?.role || "Merchant console", l = e?.slug.slice(0, 2) ?? "µ";
754
+ return /* @__PURE__ */ I(Y, { children: /* @__PURE__ */ I(X, { children: /* @__PURE__ */ L(x, { children: [/* @__PURE__ */ I(b, { render: /* @__PURE__ */ L(Z, {
754
755
  size: "lg",
755
756
  tooltip: o,
756
757
  className: "data-open:bg-sidebar-accent",
@@ -770,7 +771,7 @@ function Ot() {
770
771
  })]
771
772
  }),
772
773
  /* @__PURE__ */ I(R, {
773
- icon: Oe,
774
+ icon: ke,
774
775
  className: "ml-auto size-4 shrink-0"
775
776
  })
776
777
  ]
@@ -778,13 +779,13 @@ function Ot() {
778
779
  side: "bottom",
779
780
  align: "start",
780
781
  className: "min-w-60",
781
- children: [/* @__PURE__ */ L(ne, { children: [/* @__PURE__ */ I(v, {
782
+ children: [/* @__PURE__ */ L(re, { children: [/* @__PURE__ */ I(ee, {
782
783
  className: "text-xs text-muted-foreground",
783
- children: /* @__PURE__ */ I(r, { id: "Merchants" })
784
- }), t.map((t) => {
785
- let r = t.slug === e?.slug;
786
- return /* @__PURE__ */ L(ee, {
787
- onClick: () => n(t.slug),
784
+ children: /* @__PURE__ */ I(t, { id: "Merchants" })
785
+ }), n.map((t) => {
786
+ let n = t.slug === e?.slug;
787
+ return /* @__PURE__ */ L(te, {
788
+ onClick: () => r(t.slug),
788
789
  className: "gap-2 py-2",
789
790
  children: [
790
791
  /* @__PURE__ */ I("span", {
@@ -801,28 +802,28 @@ function Ot() {
801
802
  children: t.role
802
803
  })]
803
804
  }),
804
- r && /* @__PURE__ */ I(R, {
805
- icon: De,
805
+ n && /* @__PURE__ */ I(R, {
806
+ icon: Oe,
806
807
  className: "ml-auto size-4 shrink-0 text-primary"
807
808
  })
808
809
  ]
809
810
  }, t.slug);
810
- })] }), a && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(te, {}), /* @__PURE__ */ L(ee, {
811
+ })] }), a && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(ne, {}), /* @__PURE__ */ L(te, {
811
812
  onClick: () => void i(a),
812
813
  className: "gap-2 py-2",
813
814
  children: [/* @__PURE__ */ I("span", {
814
815
  className: "flex size-7 shrink-0 items-center justify-center rounded-md border border-dashed border-border",
815
816
  children: /* @__PURE__ */ I(R, {
816
- icon: _e,
817
+ icon: ye,
817
818
  className: "size-4"
818
819
  })
819
- }), /* @__PURE__ */ I(r, { id: "New merchant" })]
820
+ }), /* @__PURE__ */ I(t, { id: "New merchant" })]
820
821
  })] })]
821
822
  })] }) }) });
822
823
  }
823
824
  //#endregion
824
825
  //#region src/admin/components/no-access.tsx
825
- function kt({ area: e }) {
826
+ function jt({ area: e }) {
826
827
  return /* @__PURE__ */ I("div", {
827
828
  className: "flex items-center justify-center py-16",
828
829
  children: /* @__PURE__ */ L("div", {
@@ -832,31 +833,31 @@ function kt({ area: e }) {
832
833
  children: e ? `You don't have access to ${e}` : "You don't have access to this merchant's billing"
833
834
  }), /* @__PURE__ */ I("p", {
834
835
  className: "mt-2 text-sm text-pretty text-muted-foreground",
835
- children: /* @__PURE__ */ I(r, { id: "Ask an administrator for a role that includes it." })
836
+ children: /* @__PURE__ */ I(t, { id: "Ask an administrator for a role that includes it." })
836
837
  })]
837
838
  })
838
839
  });
839
840
  }
840
841
  //#endregion
841
842
  //#region src/admin/components/no-merchants.tsx
842
- function At() {
843
+ function Mt() {
843
844
  let { props: e } = s();
844
845
  return /* @__PURE__ */ I("div", {
845
846
  role: "status",
846
847
  className: "p-8",
847
- children: e.emptyState ?? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("p", { children: /* @__PURE__ */ I(r, { id: "Select a merchant to view its billing." }) }), e.newMerchantHref && /* @__PURE__ */ I("a", {
848
+ children: e.emptyState ?? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("p", { children: /* @__PURE__ */ I(t, { id: "Select a merchant to view its billing." }) }), e.newMerchantHref && /* @__PURE__ */ I("a", {
848
849
  href: e.newMerchantHref,
849
- children: /* @__PURE__ */ I(r, { id: "New merchant" })
850
+ children: /* @__PURE__ */ I(t, { id: "New merchant" })
850
851
  })] })
851
852
  });
852
853
  }
853
854
  //#endregion
854
855
  //#region src/admin/components/notification-bell.tsx
855
- function jt() {
856
- let { text: e } = t(), { adminQueries: n } = f(), i = m(), [a, o] = O.useState(!1), s = C(), c = T(), { data: l = 0 } = P({
857
- ...n.unreadNotifications(),
856
+ function Nt() {
857
+ let { text: e } = n(), { adminQueries: r } = f(), i = m(), [a, o] = O.useState(!1), s = w(), c = T(), { data: l = 0 } = P({
858
+ ...r.unreadNotifications(),
858
859
  enabled: c && s
859
- }), { data: u, isFetching: d } = P(n.notifications(c && a)), p = u?.data ?? [];
860
+ }), { data: u, isFetching: d } = P(r.notifications(c && a)), p = u?.data ?? [];
860
861
  if (!c) return null;
861
862
  let h = (e) => {
862
863
  o(!1), i(`/ops?finding=${encodeURIComponent(e.id)}`);
@@ -870,7 +871,7 @@ function jt() {
870
871
  "aria-label": e("Notifications"),
871
872
  className: "relative",
872
873
  children: [/* @__PURE__ */ I(R, {
873
- icon: Se,
874
+ icon: Ce,
874
875
  className: "size-4"
875
876
  }), l > 0 && /* @__PURE__ */ I("span", {
876
877
  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",
@@ -883,7 +884,7 @@ function jt() {
883
884
  className: "flex items-center justify-between border-b px-3 py-2",
884
885
  children: [/* @__PURE__ */ I("span", {
885
886
  className: "text-sm font-medium",
886
- children: /* @__PURE__ */ I(r, { id: "Needs attention" })
887
+ children: /* @__PURE__ */ I(t, { id: "Needs attention" })
887
888
  }), l > p.length && /* @__PURE__ */ L(S, {
888
889
  variant: "ghost",
889
890
  size: "sm",
@@ -891,21 +892,21 @@ function jt() {
891
892
  onClick: () => {
892
893
  o(!1), i("/ops");
893
894
  },
894
- children: [/* @__PURE__ */ I(r, { id: "View all " }), l]
895
+ children: [/* @__PURE__ */ I(t, { id: "View all " }), l]
895
896
  })]
896
897
  }), /* @__PURE__ */ I("div", {
897
898
  className: "max-h-96 overflow-y-auto",
898
899
  children: d ? /* @__PURE__ */ I("p", {
899
900
  className: "px-3 py-6 text-center text-sm text-muted-foreground",
900
- children: /* @__PURE__ */ I(r, { id: "Loading…" })
901
+ children: /* @__PURE__ */ I(t, { id: "Loading…" })
901
902
  }) : p.length === 0 ? /* @__PURE__ */ L("div", {
902
903
  className: "flex flex-col items-center gap-1 px-3 py-8 text-center",
903
904
  children: [/* @__PURE__ */ I(R, {
904
- icon: Se,
905
+ icon: Ce,
905
906
  className: "size-5 text-muted-foreground"
906
907
  }), /* @__PURE__ */ I("p", {
907
908
  className: "text-sm text-muted-foreground",
908
- children: /* @__PURE__ */ I(r, { id: "You're all caught up." })
909
+ children: /* @__PURE__ */ I(t, { id: "You're all caught up." })
909
910
  })]
910
911
  }) : p.map((e) => /* @__PURE__ */ L("button", {
911
912
  type: "button",
@@ -914,10 +915,10 @@ function jt() {
914
915
  children: [/* @__PURE__ */ I("span", {
915
916
  className: "mt-0.5 shrink-0",
916
917
  children: e.severity === "critical" || e.severity === "high" ? /* @__PURE__ */ I(R, {
917
- icon: ye,
918
+ icon: xe,
918
919
  className: "text-failed size-4"
919
920
  }) : /* @__PURE__ */ I(R, {
920
- icon: ve,
921
+ icon: be,
921
922
  className: "text-held size-4"
922
923
  })
923
924
  }), /* @__PURE__ */ L("span", {
@@ -929,7 +930,7 @@ function jt() {
929
930
  children: e.finding_type
930
931
  }), /* @__PURE__ */ I("span", {
931
932
  className: "shrink-0 text-[11px] text-muted-foreground",
932
- children: ae(e.created_at)
933
+ children: oe(e.created_at)
933
934
  })]
934
935
  }), e.recommended_action && /* @__PURE__ */ I("span", {
935
936
  className: "mt-0.5 line-clamp-2 block text-xs text-muted-foreground",
@@ -943,16 +944,16 @@ function jt() {
943
944
  }
944
945
  //#endregion
945
946
  //#region src/admin/components/ui/breadcrumb.tsx
946
- function Mt({ className: e, ...n }) {
947
- let { text: r } = t();
947
+ function Pt({ className: e, ...t }) {
948
+ let { text: r } = n();
948
949
  return /* @__PURE__ */ I("nav", {
949
950
  "aria-label": r("breadcrumb"),
950
951
  "data-slot": "breadcrumb",
951
952
  className: h(e),
952
- ...n
953
+ ...t
953
954
  });
954
955
  }
955
- function Nt({ className: e, ...t }) {
956
+ function Ft({ className: e, ...t }) {
956
957
  return /* @__PURE__ */ I("ol", {
957
958
  "data-slot": "breadcrumb-list",
958
959
  className: h("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground", e),
@@ -966,15 +967,15 @@ function Q({ className: e, ...t }) {
966
967
  ...t
967
968
  });
968
969
  }
969
- function Pt({ className: e, render: t, ...n }) {
970
- return B({
970
+ function It({ className: e, render: t, ...n }) {
971
+ return V({
971
972
  defaultTagName: "a",
972
- props: z({ className: h("transition-colors hover:text-foreground", e) }, n),
973
+ props: B({ className: h("transition-colors hover:text-foreground", e) }, n),
973
974
  render: t,
974
975
  state: { slot: "breadcrumb-link" }
975
976
  });
976
977
  }
977
- function Ft({ className: e, ...t }) {
978
+ function Lt({ className: e, ...t }) {
978
979
  return /* @__PURE__ */ I("span", {
979
980
  "data-slot": "breadcrumb-page",
980
981
  role: "link",
@@ -984,48 +985,49 @@ function Ft({ className: e, ...t }) {
984
985
  ...t
985
986
  });
986
987
  }
987
- function It({ children: e, className: t, ...n }) {
988
+ function Rt({ children: e, className: t, ...n }) {
988
989
  return /* @__PURE__ */ I("li", {
989
990
  "data-slot": "breadcrumb-separator",
990
991
  role: "presentation",
991
992
  "aria-hidden": "true",
992
993
  className: h("[&>svg]:size-3.5", t),
993
994
  ...n,
994
- children: e ?? /* @__PURE__ */ I(je, {})
995
+ children: e ?? /* @__PURE__ */ I(Me, {})
995
996
  });
996
997
  }
997
998
  //#endregion
998
999
  //#region src/admin/components/site-header.tsx
999
- function Lt({ trail: e }) {
1000
- let { activeMerchant: t } = E(), n = T();
1000
+ function zt({ trail: e }) {
1001
+ let { activeMerchant: n } = E(), r = T();
1001
1002
  return /* @__PURE__ */ L("header", {
1002
1003
  className: "flex h-14 shrink-0 items-center gap-2 border-b px-4",
1003
1004
  children: [
1004
- /* @__PURE__ */ I(dt, { className: "-ml-1" }),
1005
- /* @__PURE__ */ I(qe, {
1005
+ /* @__PURE__ */ I(ft, { className: "-ml-1" }),
1006
+ /* @__PURE__ */ I(Je, {
1006
1007
  orientation: "vertical",
1007
1008
  className: "mr-2 h-4"
1008
1009
  }),
1009
- /* @__PURE__ */ I(Mt, { children: /* @__PURE__ */ I(Nt, { children: e.length === 0 ? /* @__PURE__ */ I(Q, { children: /* @__PURE__ */ I(Ft, { children: /* @__PURE__ */ I(r, { id: "Dashboard" }) }) }) : /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(Q, { children: /* @__PURE__ */ I(Pt, { render: /* @__PURE__ */ I(p, {
1010
+ /* @__PURE__ */ I(Pt, { children: /* @__PURE__ */ I(Ft, { children: e.length === 0 ? /* @__PURE__ */ I(Q, { children: /* @__PURE__ */ I(Lt, { children: /* @__PURE__ */ I(t, { id: "Dashboard" }) }) }) : /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(Q, { children: /* @__PURE__ */ I(It, { render: /* @__PURE__ */ I(p, {
1010
1011
  to: "/",
1011
- children: /* @__PURE__ */ I(r, { id: "Dashboard" })
1012
- }) }) }), e.map((t, n) => /* @__PURE__ */ L(O.Fragment, { children: [/* @__PURE__ */ I(It, {}), /* @__PURE__ */ I(Q, { children: t.to && n < e.length - 1 ? /* @__PURE__ */ I(Pt, { render: /* @__PURE__ */ I(p, {
1013
- to: t.to,
1014
- children: /* @__PURE__ */ I(r, { id: t.label })
1015
- }) }) : /* @__PURE__ */ I(Ft, { children: /* @__PURE__ */ I(r, { id: t.label }) }) })] }, t.label))] }) }) }),
1012
+ children: /* @__PURE__ */ I(t, { id: "Dashboard" })
1013
+ }) }) }), e.map((n, r) => /* @__PURE__ */ L(O.Fragment, { children: [/* @__PURE__ */ I(Rt, {}), /* @__PURE__ */ I(Q, { children: n.to && r < e.length - 1 ? /* @__PURE__ */ I(It, { render: /* @__PURE__ */ I(p, {
1014
+ to: n.to,
1015
+ children: /* @__PURE__ */ I(t, { id: n.label })
1016
+ }) }) : /* @__PURE__ */ I(Lt, { children: /* @__PURE__ */ I(t, { id: n.label }) }) })] }, n.label))] }) }) }),
1016
1017
  /* @__PURE__ */ I("div", {
1017
1018
  className: "ml-auto flex items-center gap-2",
1018
- children: t && n && /* @__PURE__ */ I(jt, {})
1019
+ children: n && r && /* @__PURE__ */ I(Nt, {})
1019
1020
  })
1020
1021
  ]
1021
1022
  });
1022
1023
  }
1023
1024
  //#endregion
1024
1025
  //#region src/admin/layouts/app-layout.tsx
1025
- var Rt = [
1026
+ var Bt = [
1026
1027
  ["/customers", [{ label: "Customers" }]],
1027
1028
  ["/subscriptions", [{ label: "Subscriptions" }]],
1028
1029
  ["/payments", [{ label: "Payments" }]],
1030
+ ["/orders", [{ label: "Orders" }]],
1029
1031
  ["/catalog/metering", [{
1030
1032
  label: "Catalog",
1031
1033
  to: "/catalog"
@@ -1063,7 +1065,7 @@ var Rt = [
1063
1065
  }, { label: "Findings" }]],
1064
1066
  ["/settings", [{ label: "Settings" }]]
1065
1067
  ];
1066
- function zt(e, t) {
1068
+ function Vt(e, t) {
1067
1069
  let n = (t) => e === t || e.startsWith(t + "/");
1068
1070
  return n("/payments/health") ? {
1069
1071
  name: "payment health",
@@ -1084,99 +1086,105 @@ function zt(e, t) {
1084
1086
  allowed: t.catalog === "read" || t.catalog === "update"
1085
1087
  } : null;
1086
1088
  }
1087
- function Bt({ children: e }) {
1088
- let { activeMerchant: t } = E(), { pathname: n } = d(), { props: i, services: a } = s(), o = P(a.adminQueries.access()), c = o.data, l = (i.settingsTabs?.length ?? 0) > 0 && (n === "/settings" || n === "/"), u = Rt.find(([e]) => n.startsWith(e))?.[1] ?? [];
1089
- return t ? o.isPending ? /* @__PURE__ */ I("p", {
1089
+ function Ht({ children: e }) {
1090
+ let { activeMerchant: n } = E(), { pathname: r } = d(), { props: a, services: o } = s(), c = P(o.adminQueries.access()), l = c.data, u = (a.settingsTabs?.length ?? 0) > 0 && (r === "/settings" || r === "/"), f = Bt.find(([e]) => r.startsWith(e))?.[1] ?? [];
1091
+ return n ? c.isPending ? /* @__PURE__ */ I("p", {
1090
1092
  role: "status",
1091
1093
  className: "p-6",
1092
- children: /* @__PURE__ */ I(r, { id: "Loading billing permissions…" })
1093
- }) : o.error ? /* @__PURE__ */ L("div", {
1094
+ children: /* @__PURE__ */ I(t, { id: "Loading billing permissions…" })
1095
+ }) : c.error ? /* @__PURE__ */ L("div", {
1094
1096
  role: "alert",
1095
1097
  className: "p-6",
1096
- children: [/* @__PURE__ */ I("p", { children: o.error.message }), /* @__PURE__ */ I("button", {
1098
+ children: [/* @__PURE__ */ I("p", { children: i(c.error).text }), /* @__PURE__ */ I("button", {
1097
1099
  type: "button",
1098
- onClick: () => void o.refetch(),
1099
- children: /* @__PURE__ */ I(r, { id: "Try again" })
1100
+ onClick: () => void c.refetch(),
1101
+ children: /* @__PURE__ */ I(t, { id: "Try again" })
1100
1102
  })]
1101
- }) : t.id && c?.scope_id && t.id !== c.scope_id ? /* @__PURE__ */ I("p", {
1103
+ }) : n.id && l?.scope_id && n.id !== l.scope_id ? /* @__PURE__ */ I("p", {
1102
1104
  role: "alert",
1103
1105
  className: "p-6",
1104
- children: /* @__PURE__ */ I(r, { id: "The authenticated connection is bound to another merchant. Update the host connection before opening this merchant." })
1105
- }) : /* @__PURE__ */ I(tt, { children: /* @__PURE__ */ L(lt, { children: [/* @__PURE__ */ I(wt, {}), /* @__PURE__ */ L(pt, { children: [/* @__PURE__ */ I(Lt, { trail: u }), /* @__PURE__ */ I("main", {
1106
- className: "flex min-w-0 flex-1 flex-col p-4 md:p-8",
1107
- children: /* @__PURE__ */ I("div", {
1108
- className: "mx-auto w-full max-w-7xl min-w-0",
1109
- children: c && (!ie(c) && !l || zt(n, c)?.allowed === !1) ? /* @__PURE__ */ I(kt, { area: zt(n, c)?.name }) : e
1110
- })
1111
- }, t?.id || t?.slug || "")] })] }) }) : /* @__PURE__ */ I(At, {});
1106
+ children: /* @__PURE__ */ I(t, { id: "The authenticated connection is bound to another merchant. Update the host connection before opening this merchant." })
1107
+ }) : /* @__PURE__ */ I(nt, { children: /* @__PURE__ */ L(ut, {
1108
+ defaultOpen: window.matchMedia?.("(min-width: 64rem)").matches ?? !0,
1109
+ children: [/* @__PURE__ */ I(Et, {}), /* @__PURE__ */ L(mt, {
1110
+ className: "min-w-0",
1111
+ children: [/* @__PURE__ */ I(zt, { trail: f }), /* @__PURE__ */ I("main", {
1112
+ className: "flex min-w-0 flex-1 flex-col p-4 md:p-8",
1113
+ children: /* @__PURE__ */ I("div", {
1114
+ className: "@container/page mx-auto w-full max-w-7xl min-w-0",
1115
+ children: l && (!ae(l) && !u || Vt(r, l)?.allowed === !1) ? /* @__PURE__ */ I(jt, { area: Vt(r, l)?.name }) : e
1116
+ })
1117
+ }, n?.id || n?.slug || "")]
1118
+ })]
1119
+ }) }) : /* @__PURE__ */ I(Mt, {});
1112
1120
  }
1113
1121
  //#endregion
1114
1122
  //#region src/admin/components/ui/alert-dialog.tsx
1115
- function Vt({ ...e }) {
1116
- return /* @__PURE__ */ I(U.Root, {
1123
+ function Ut({ ...e }) {
1124
+ return /* @__PURE__ */ I(W.Root, {
1117
1125
  "data-slot": "alert-dialog",
1118
1126
  ...e
1119
1127
  });
1120
1128
  }
1121
- function Ht({ ...e }) {
1122
- return /* @__PURE__ */ I(U.Portal, {
1129
+ function Wt({ ...e }) {
1130
+ return /* @__PURE__ */ I(W.Portal, {
1123
1131
  container: s().portal,
1124
1132
  "data-slot": "alert-dialog-portal",
1125
1133
  ...e
1126
1134
  });
1127
1135
  }
1128
- function Ut({ className: e, ...t }) {
1129
- return /* @__PURE__ */ I(U.Backdrop, {
1136
+ function Gt({ className: e, ...t }) {
1137
+ return /* @__PURE__ */ I(W.Backdrop, {
1130
1138
  "data-slot": "alert-dialog-overlay",
1131
1139
  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),
1132
1140
  ...t
1133
1141
  });
1134
1142
  }
1135
- function Wt({ className: e, size: t = "default", ...n }) {
1136
- return /* @__PURE__ */ L(Ht, { children: [/* @__PURE__ */ I(Ut, {}), /* @__PURE__ */ I(U.Popup, {
1143
+ function Kt({ className: e, size: t = "default", ...n }) {
1144
+ return /* @__PURE__ */ L(Wt, { children: [/* @__PURE__ */ I(Gt, {}), /* @__PURE__ */ I(W.Popup, {
1137
1145
  "data-slot": "alert-dialog-content",
1138
1146
  "data-size": t,
1139
1147
  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),
1140
1148
  ...n
1141
1149
  })] });
1142
1150
  }
1143
- function Gt({ className: e, ...t }) {
1151
+ function qt({ className: e, ...t }) {
1144
1152
  return /* @__PURE__ */ I("div", {
1145
1153
  "data-slot": "alert-dialog-header",
1146
1154
  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),
1147
1155
  ...t
1148
1156
  });
1149
1157
  }
1150
- function Kt({ className: e, ...t }) {
1158
+ function Jt({ className: e, ...t }) {
1151
1159
  return /* @__PURE__ */ I("div", {
1152
1160
  "data-slot": "alert-dialog-footer",
1153
1161
  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),
1154
1162
  ...t
1155
1163
  });
1156
1164
  }
1157
- function qt({ className: e, ...t }) {
1158
- return /* @__PURE__ */ I(U.Title, {
1165
+ function Yt({ className: e, ...t }) {
1166
+ return /* @__PURE__ */ I(W.Title, {
1159
1167
  "data-slot": "alert-dialog-title",
1160
1168
  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),
1161
1169
  ...t
1162
1170
  });
1163
1171
  }
1164
- function Jt({ className: e, ...t }) {
1165
- return /* @__PURE__ */ I(U.Description, {
1172
+ function Xt({ className: e, ...t }) {
1173
+ return /* @__PURE__ */ I(W.Description, {
1166
1174
  "data-slot": "alert-dialog-description",
1167
1175
  className: h("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
1168
1176
  ...t
1169
1177
  });
1170
1178
  }
1171
- function Yt({ className: e, ...t }) {
1179
+ function Zt({ className: e, ...t }) {
1172
1180
  return /* @__PURE__ */ I(S, {
1173
1181
  "data-slot": "alert-dialog-action",
1174
1182
  className: h(e),
1175
1183
  ...t
1176
1184
  });
1177
1185
  }
1178
- function Xt({ className: e, variant: t = "outline", size: n = "default", ...r }) {
1179
- return /* @__PURE__ */ I(U.Close, {
1186
+ function Qt({ className: e, variant: t = "outline", size: n = "default", ...r }) {
1187
+ return /* @__PURE__ */ I(W.Close, {
1180
1188
  "data-slot": "alert-dialog-cancel",
1181
1189
  className: h(e),
1182
1190
  render: /* @__PURE__ */ I(S, {
@@ -1188,20 +1196,20 @@ function Xt({ className: e, variant: t = "outline", size: n = "default", ...r })
1188
1196
  }
1189
1197
  //#endregion
1190
1198
  //#region src/admin/components/confirm.tsx
1191
- function Zt({ children: e }) {
1199
+ function $t({ children: e }) {
1192
1200
  let [t, n] = O.useState(null), [r, i] = O.useState(!1), a = O.useRef(null), o = O.useCallback((e) => {
1193
1201
  a.current?.(e), a.current = null, i(!1);
1194
1202
  }, []), s = O.useCallback((e) => new Promise((t) => {
1195
1203
  a.current?.(!1), a.current = t, n(e), i(!0);
1196
1204
  }), []);
1197
- return O.useEffect(() => () => a.current?.(!1), []), /* @__PURE__ */ L(oe.Provider, {
1205
+ return O.useEffect(() => () => a.current?.(!1), []), /* @__PURE__ */ L(ce.Provider, {
1198
1206
  value: s,
1199
- children: [e, /* @__PURE__ */ I(Vt, {
1207
+ children: [e, /* @__PURE__ */ I(Ut, {
1200
1208
  open: r,
1201
1209
  onOpenChange: (e) => {
1202
1210
  e || o(!1);
1203
1211
  },
1204
- 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, {
1212
+ children: /* @__PURE__ */ L(Kt, { children: [/* @__PURE__ */ L(qt, { children: [/* @__PURE__ */ I(Yt, { children: t?.title }), t?.description ? /* @__PURE__ */ I(Xt, { children: t.description }) : null] }), /* @__PURE__ */ L(Jt, { children: [/* @__PURE__ */ I(Qt, { children: t?.cancelLabel ?? "Cancel" }), /* @__PURE__ */ I(Zt, {
1205
1213
  variant: t?.tone === "destructive" ? "destructive" : "default",
1206
1214
  onClick: () => o(!0),
1207
1215
  children: t?.confirmLabel ?? "Confirm"
@@ -1211,18 +1219,18 @@ function Zt({ children: e }) {
1211
1219
  }
1212
1220
  //#endregion
1213
1221
  //#region src/admin/components/ui/sonner.tsx
1214
- var Qt = ({ ...e }) => {
1222
+ var en = ({ ...e }) => {
1215
1223
  let t = s().props.appearance?.theme ?? "system";
1216
- return /* @__PURE__ */ I(ge, {
1224
+ return /* @__PURE__ */ I(ve, {
1217
1225
  id: s().services.namespace,
1218
1226
  theme: t === "inherit" ? "system" : t,
1219
1227
  className: "toaster group",
1220
1228
  icons: {
1221
- success: /* @__PURE__ */ I(Me, { className: "size-4" }),
1222
- info: /* @__PURE__ */ I(Ne, { className: "size-4" }),
1223
- warning: /* @__PURE__ */ I(Le, { className: "size-4" }),
1224
- error: /* @__PURE__ */ I(Fe, { className: "size-4" }),
1225
- loading: /* @__PURE__ */ I(Pe, { className: "size-4 animate-spin" })
1229
+ success: /* @__PURE__ */ I(Ne, { className: "size-4" }),
1230
+ info: /* @__PURE__ */ I(Pe, { className: "size-4" }),
1231
+ warning: /* @__PURE__ */ I(Re, { className: "size-4" }),
1232
+ error: /* @__PURE__ */ I(Ie, { className: "size-4" }),
1233
+ loading: /* @__PURE__ */ I(Fe, { className: "size-4 animate-spin" })
1226
1234
  },
1227
1235
  style: {
1228
1236
  "--normal-bg": "var(--popover)",
@@ -1233,21 +1241,21 @@ var Qt = ({ ...e }) => {
1233
1241
  toastOptions: { classNames: { toast: "cn-toast" } },
1234
1242
  ...e
1235
1243
  });
1236
- }, $t = [
1244
+ }, tn = [
1237
1245
  /dynamically imported module/i,
1238
1246
  /failed to load module script/i,
1239
1247
  /importing a module script failed/i,
1240
1248
  /loading (css )?chunk \S+ failed/i,
1241
1249
  /unable to preload css/i
1242
1250
  ];
1243
- function en(e) {
1251
+ function nn(e) {
1244
1252
  let t = e;
1245
- return t?.name === "ChunkLoadError" || $t.some((e) => e.test(t?.message ?? ""));
1253
+ return t?.name === "ChunkLoadError" || tn.some((e) => e.test(t?.message ?? ""));
1246
1254
  }
1247
1255
  //#endregion
1248
1256
  //#region src/admin/components/route-error.tsx
1249
- function tn({ error: e }) {
1250
- let t = en(e), n = e instanceof Error ? e.message : "";
1257
+ function rn({ error: e }) {
1258
+ let n = nn(e), r = e instanceof Error ? e.message : "";
1251
1259
  return /* @__PURE__ */ L("div", {
1252
1260
  role: "alert",
1253
1261
  className: "flex min-h-[50vh] flex-col items-center justify-center gap-4 p-6 text-center",
@@ -1255,36 +1263,36 @@ function tn({ error: e }) {
1255
1263
  className: "max-w-md",
1256
1264
  children: [/* @__PURE__ */ I("p", {
1257
1265
  className: "font-medium",
1258
- children: t ? "The console has been updated. Reload to use the new version." : "This page failed to load."
1259
- }), !t && n ? /* @__PURE__ */ I("p", {
1266
+ children: n ? "The console has been updated. Reload to use the new version." : "This page failed to load."
1267
+ }), !n && r ? /* @__PURE__ */ I("p", {
1260
1268
  className: "mt-1 text-sm break-words text-muted-foreground",
1261
- children: n
1269
+ children: r
1262
1270
  }) : null]
1263
1271
  }), /* @__PURE__ */ L("div", {
1264
1272
  className: "flex flex-wrap items-center justify-center gap-3",
1265
1273
  children: [/* @__PURE__ */ L(S, {
1266
1274
  onClick: () => window.location.reload(),
1267
1275
  children: [/* @__PURE__ */ I(R, {
1268
- icon: we,
1276
+ icon: Te,
1269
1277
  className: "size-4"
1270
- }), t ? "Reload" : "Try again"]
1278
+ }), n ? "Reload" : "Try again"]
1271
1279
  }), /* @__PURE__ */ I(p, {
1272
1280
  to: "/",
1273
1281
  className: "text-sm text-muted-foreground underline underline-offset-4",
1274
- children: /* @__PURE__ */ I(r, { id: "Console home" })
1282
+ children: /* @__PURE__ */ I(t, { id: "Console home" })
1275
1283
  })]
1276
1284
  })]
1277
1285
  });
1278
1286
  }
1279
1287
  //#endregion
1280
1288
  //#region src/admin/lib/query-client.ts
1281
- function nn(t, n) {
1282
- return n instanceof e && n.status > 0 && n.status < 500 ? !1 : t < 2;
1289
+ function an(e, t) {
1290
+ return t instanceof v && t.status > 0 && t.status < 500 ? !1 : e < 2;
1283
1291
  }
1284
- var rn = (e) => {
1292
+ var on = (e) => {
1285
1293
  let { toastApiError: t } = c(l(e));
1286
- return new me({
1287
- queryCache: new pe({ onError: (e, n) => {
1294
+ return new ge({
1295
+ queryCache: new he({ onError: (e, n) => {
1288
1296
  let r = n.meta?.errorAction;
1289
1297
  typeof r == "string" && t(e, r);
1290
1298
  } }),
@@ -1292,26 +1300,26 @@ var rn = (e) => {
1292
1300
  queries: {
1293
1301
  staleTime: 2e4,
1294
1302
  gcTime: 3e5,
1295
- retry: nn
1303
+ retry: an
1296
1304
  },
1297
1305
  mutations: { retry: !1 }
1298
1306
  }
1299
1307
  });
1300
- }, an = () => window.matchMedia?.("(prefers-color-scheme: dark)"), on = (e) => {
1301
- let t = an();
1308
+ }, sn = () => window.matchMedia?.("(prefers-color-scheme: dark)"), cn = (e) => {
1309
+ let t = sn();
1302
1310
  return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
1303
- }, sn = () => an()?.matches ? "dark" : "light", cn = () => "light", ln = () => () => {};
1304
- function un(e = "inherit") {
1305
- let t = N(e === "auto" ? on : ln, sn, cn);
1311
+ }, ln = () => sn()?.matches ? "dark" : "light", un = () => "light", dn = () => () => {};
1312
+ function fn(e = "inherit") {
1313
+ let t = N(e === "auto" ? cn : dn, ln, un);
1306
1314
  return e === "auto" ? t : e;
1307
1315
  }
1308
1316
  //#endregion
1309
1317
  //#region src/admin/billing-admin.tsx
1310
- var $ = (e) => typeof e == "string" ? {
1318
+ var pn = (e) => typeof e == "string" ? {
1311
1319
  id: e,
1312
1320
  slug: e
1313
1321
  } : e;
1314
- function dn(e) {
1322
+ function mn(e) {
1315
1323
  let [t, n] = M(), [r, i] = M({
1316
1324
  auth: e.auth,
1317
1325
  baseUrl: e.baseUrl,
@@ -1321,22 +1329,22 @@ function dn(e) {
1321
1329
  auth: e.auth,
1322
1330
  baseUrl: e.baseUrl,
1323
1331
  generation: r.generation + 1
1324
- }), /* @__PURE__ */ I(fn, {
1332
+ }), /* @__PURE__ */ I(hn, {
1325
1333
  ...e,
1326
1334
  selected: t,
1327
1335
  onSelected: n
1328
1336
  }, r.generation);
1329
1337
  }
1330
- function fn({ selected: e, onSelected: t, ...r }) {
1331
- let i = un(r.appearance?.theme), a = ue(), [s, c] = M(null), l = j(() => r.merchants ?? (r.merchant ? [$(r.merchant)] : [{
1338
+ function hn({ selected: t, onSelected: n, ...r }) {
1339
+ let i = fn(r.appearance?.theme), a = fe(), [s, c] = M(null), l = j(() => r.merchants ?? (r.merchant ? [pn(r.merchant)] : [{
1332
1340
  id: "",
1333
1341
  slug: "",
1334
1342
  display_name: "Billing"
1335
- }]), [r.merchants, r.merchant]), d = r.merchant ? $(r.merchant).id : e, f = l.find((e) => e.id === d || e.slug === d) ?? l[0], p = `${r.baseUrl}:${f?.id ?? ""}:${f?.slug ?? ""}`, m = fe(p);
1336
- de(() => (m.current = p, () => {
1343
+ }]), [r.merchants, r.merchant]), d = r.merchant ? pn(r.merchant).id : t, f = l.find((e) => e.id === d || e.slug === d) ?? l[0], p = `${r.baseUrl}:${f?.id ?? ""}:${f?.slug ?? ""}`, m = me(p);
1344
+ pe(() => (m.current = p, () => {
1337
1345
  m.current = void 0;
1338
1346
  }), [p]);
1339
- let h = A(() => m.current === p, [p]), _ = j(() => r.queryClient ?? rn(a), [a, r.queryClient]), v = {
1347
+ let h = A(() => m.current === p, [p]), _ = j(() => r.queryClient ?? on(a), [a, r.queryClient]), v = {
1340
1348
  props: r,
1341
1349
  services: j(() => o({
1342
1350
  namespace: a,
@@ -1357,8 +1365,8 @@ function fn({ selected: e, onSelected: t, ...r }) {
1357
1365
  activeMerchant: f,
1358
1366
  portal: s,
1359
1367
  selectMerchant(e) {
1360
- let n = l.find((t) => t.slug === e || t.id === e);
1361
- n && (t(n.id), r.onMerchantChange?.(n));
1368
+ let t = l.find((t) => t.slug === e || t.id === e);
1369
+ t && (n(t.id), r.onMerchantChange?.(t));
1362
1370
  }
1363
1371
  };
1364
1372
  return /* @__PURE__ */ I("div", {
@@ -1366,46 +1374,46 @@ function fn({ selected: e, onSelected: t, ...r }) {
1366
1374
  className: ["orba", r.className].filter(Boolean).join(" "),
1367
1375
  "data-orba-theme": i,
1368
1376
  style: {
1369
- ...W(r.appearance, "orba"),
1377
+ ...G(r.appearance, "orba"),
1370
1378
  ...r.style
1371
1379
  },
1372
- children: /* @__PURE__ */ I(n.Provider, {
1380
+ children: /* @__PURE__ */ I(e.Provider, {
1373
1381
  value: {
1374
1382
  namespace: a,
1375
1383
  messages: r.messages
1376
1384
  },
1377
1385
  children: /* @__PURE__ */ L(g.Provider, {
1378
1386
  value: v,
1379
- children: [/* @__PURE__ */ I(he, {
1387
+ children: [/* @__PURE__ */ I(_e, {
1380
1388
  client: _,
1381
1389
  children: /* @__PURE__ */ L(u, {
1382
1390
  basePath: r.basePath,
1383
1391
  navigation: r.navigation,
1384
- children: [/* @__PURE__ */ I(Zt, { children: /* @__PURE__ */ I(Bt, { children: /* @__PURE__ */ I(mn, { children: /* @__PURE__ */ I(We, {}) }) }) }), /* @__PURE__ */ I(Qt, {})]
1392
+ children: [/* @__PURE__ */ I($t, { children: /* @__PURE__ */ I(Ht, { children: /* @__PURE__ */ I(_n, { children: /* @__PURE__ */ I(Ge, {}) }) }) }), /* @__PURE__ */ I(en, {})]
1385
1393
  })
1386
1394
  }), /* @__PURE__ */ I("div", { ref: c })]
1387
1395
  })
1388
1396
  })
1389
1397
  });
1390
1398
  }
1391
- var pn = class extends se {
1399
+ var gn = class extends le {
1392
1400
  state = {};
1393
1401
  static getDerivedStateFromError(e) {
1394
1402
  return { error: e };
1395
1403
  }
1396
1404
  render() {
1397
- return this.state.error ? /* @__PURE__ */ I(tn, { error: this.state.error }) : this.props.children;
1405
+ return this.state.error ? /* @__PURE__ */ I(rn, { error: this.state.error }) : this.props.children;
1398
1406
  }
1399
1407
  };
1400
- function mn({ children: e }) {
1408
+ function _n({ children: e }) {
1401
1409
  let t = d();
1402
- return /* @__PURE__ */ I(pn, { children: e }, t.pathname);
1410
+ return /* @__PURE__ */ I(gn, { children: e }, t.pathname);
1403
1411
  }
1404
1412
  //#endregion
1405
1413
  //#region src/admin/summary.tsx
1406
- function hn(e) {
1414
+ function vn(e) {
1407
1415
  let t = typeof e.merchant == "string" ? e.merchant : e.merchant?.id, n = typeof e.merchant == "string" ? e.merchant : e.merchant?.slug;
1408
- return j(() => i(_({
1416
+ return j(() => _(r({
1409
1417
  baseUrl: e.baseUrl,
1410
1418
  auth: e.auth,
1411
1419
  exchange: e.exchange,
@@ -1421,9 +1429,9 @@ function hn(e) {
1421
1429
  n
1422
1430
  ]);
1423
1431
  }
1424
- function gn(e) {
1432
+ function yn(e) {
1425
1433
  let [t, n] = M(0), [r, i] = M();
1426
- le(() => {
1434
+ de(() => {
1427
1435
  let n = new AbortController();
1428
1436
  return e(n.signal).then((r) => {
1429
1437
  n.signal.aborted || i({
@@ -1447,115 +1455,144 @@ function gn(e) {
1447
1455
  refetch: () => n((e) => e + 1)
1448
1456
  };
1449
1457
  }
1450
- function _n(e) {
1451
- let t = hn(e);
1452
- return gn(A((e) => t.getAdminAccess(e), [t]));
1453
- }
1454
- var vn = (t) => t instanceof e && t.code === "customer_not_found";
1455
- function yn(e) {
1456
- let t = un(e.appearance?.theme), n = hn(e), { data: i, error: a, isPending: o, refetch: s } = gn(A(async (t) => {
1457
- let [r, i, a, o, s] = await Promise.all([
1458
- n.getCustomer(e.customer, t),
1459
- n.listSubscriptions({
1458
+ function bn(e) {
1459
+ let t = vn(e);
1460
+ return yn(A((e) => t.getAdminAccess(e), [t]));
1461
+ }
1462
+ var xn = (e) => e instanceof v && e.code === "customer_not_found";
1463
+ function Sn(e) {
1464
+ let n = fn(e.appearance?.theme), r = vn(e), { data: a, error: o, isPending: s, refetch: c } = yn(A(async (t) => {
1465
+ let [n, i, a, o, s] = await Promise.all([
1466
+ r.getCustomer(e.customer, t),
1467
+ r.listSubscriptions({
1460
1468
  customer_id: e.customer,
1461
1469
  status: "active"
1462
1470
  }, 5, void 0, t),
1463
- n.listCustomerEntitlements(e.customer, { limit: 5 }, t),
1464
- n.listCustomerProductAccess(e.customer, { limit: 5 }, t),
1465
- n.listPayments({ customer_id: e.customer }, { limit: 5 }, t)
1471
+ r.listCustomerEntitlements(e.customer, { limit: 5 }, t),
1472
+ r.listCustomerProductAccess(e.customer, { limit: 5 }, t),
1473
+ r.listPayments({ customer_id: e.customer }, { limit: 5 }, t)
1466
1474
  ]);
1467
1475
  return {
1468
- customer: r,
1476
+ customer: n,
1469
1477
  subscriptions: i,
1470
1478
  entitlements: a,
1471
1479
  access: o,
1472
1480
  payments: s
1473
1481
  };
1474
- }, [n, e.customer]));
1482
+ }, [r, e.customer]));
1475
1483
  return /* @__PURE__ */ I("section", {
1476
1484
  className: ["orba", e.className].filter(Boolean).join(" "),
1477
- "data-orba-theme": t,
1478
- style: W(e.appearance, "orba"),
1485
+ "data-orba-theme": n,
1486
+ style: G(e.appearance, "orba"),
1479
1487
  children: /* @__PURE__ */ L("div", {
1480
- className: "rounded-lg border p-4",
1481
- children: [
1482
- /* @__PURE__ */ I("h3", {
1483
- className: "font-semibold",
1484
- children: /* @__PURE__ */ I(r, { id: "Billing" })
1485
- }),
1486
- o && /* @__PURE__ */ I("p", {
1487
- role: "status",
1488
- children: /* @__PURE__ */ I(r, { id: "Loading billing…" })
1489
- }),
1490
- a && vn(a) && /* @__PURE__ */ I("p", { children: /* @__PURE__ */ I(r, { id: "No billing activity yet." }) }),
1491
- a && !vn(a) && /* @__PURE__ */ L("p", {
1492
- role: "alert",
1493
- children: [
1494
- a.message,
1495
- " ",
1496
- /* @__PURE__ */ I("button", {
1497
- type: "button",
1498
- onClick: s,
1499
- children: /* @__PURE__ */ I(r, { id: "Try again" })
1500
- })
1501
- ]
1502
- }),
1503
- i && /* @__PURE__ */ L(F, { children: [
1504
- /* @__PURE__ */ I("dl", { children: i.customer.balances.map((e) => /* @__PURE__ */ L("div", { children: [/* @__PURE__ */ I("dt", { children: /* @__PURE__ */ I(r, { id: "Available balance" }) }), /* @__PURE__ */ I("dd", { children: D(e.available_amount, e.currency) })] }, e.currency)) }),
1505
- /* @__PURE__ */ I("h4", { children: /* @__PURE__ */ I(r, { id: "Active subscriptions" }) }),
1506
- i.subscriptions.data.length ? /* @__PURE__ */ I("ul", { children: i.subscriptions.data.map((e) => /* @__PURE__ */ I("li", { children: e.id }, e.id)) }) : /* @__PURE__ */ I("p", { children: /* @__PURE__ */ I(r, { id: "No active subscriptions." }) }),
1507
- /* @__PURE__ */ I("h4", { children: /* @__PURE__ */ I(r, { id: "Entitlements" }) }),
1508
- /* @__PURE__ */ I("ul", { children: i.entitlements.data.map((e) => /* @__PURE__ */ I("li", { children: e.entitlement }, e.entitlement)) }),
1509
- /* @__PURE__ */ I("h4", { children: /* @__PURE__ */ I(r, { id: "Product access" }) }),
1510
- /* @__PURE__ */ I("ul", { children: i.access.data.map((e) => /* @__PURE__ */ L("li", { children: [
1511
- e.product_name,
1512
- " · ",
1513
- e.status
1514
- ] }, e.id)) }),
1515
- /* @__PURE__ */ I("h4", { children: /* @__PURE__ */ I(r, { id: "Recent payments" }) }),
1516
- /* @__PURE__ */ I("ul", { children: i.payments.data.map((e) => /* @__PURE__ */ L("li", { children: [
1517
- D(e.amount, e.currency),
1518
- " ·",
1519
- " ",
1520
- e.status
1521
- ] }, e.id)) })
1522
- ] }),
1523
- e.href && /* @__PURE__ */ I("a", {
1524
- className: "underline",
1488
+ className: "overflow-hidden rounded-xl bg-card text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10",
1489
+ children: [/* @__PURE__ */ L("div", {
1490
+ className: "flex flex-wrap items-center justify-between gap-3 border-b px-5 py-5 sm:px-6",
1491
+ children: [/* @__PURE__ */ I("h2", {
1492
+ className: "text-base leading-tight font-semibold",
1493
+ children: /* @__PURE__ */ I(t, { id: "Billing" })
1494
+ }), e.href && /* @__PURE__ */ I("a", {
1495
+ className: "inline-flex min-h-10 items-center text-sm text-muted-foreground underline-offset-4 hover:text-foreground hover:underline sm:min-h-0",
1525
1496
  href: e.href,
1526
- children: /* @__PURE__ */ I(r, { id: "View billing details" })
1527
- })
1528
- ]
1497
+ children: /* @__PURE__ */ I(t, { id: "View billing details" })
1498
+ })]
1499
+ }), /* @__PURE__ */ L("div", {
1500
+ className: "px-5 py-4 sm:px-6",
1501
+ children: [
1502
+ s && /* @__PURE__ */ I("p", {
1503
+ role: "status",
1504
+ className: "text-muted-foreground",
1505
+ children: /* @__PURE__ */ I(t, { id: "Loading billing…" })
1506
+ }),
1507
+ o && xn(o) && /* @__PURE__ */ I("p", {
1508
+ className: "text-muted-foreground",
1509
+ children: /* @__PURE__ */ I(t, { id: "No billing activity yet." })
1510
+ }),
1511
+ o && !xn(o) && /* @__PURE__ */ L("p", {
1512
+ role: "alert",
1513
+ children: [
1514
+ i(o).text,
1515
+ " ",
1516
+ /* @__PURE__ */ I("button", {
1517
+ type: "button",
1518
+ className: "underline underline-offset-4",
1519
+ onClick: c,
1520
+ children: /* @__PURE__ */ I(t, { id: "Try again" })
1521
+ })
1522
+ ]
1523
+ }),
1524
+ a && /* @__PURE__ */ L("dl", {
1525
+ className: "grid gap-x-6 gap-y-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-y-3",
1526
+ children: [
1527
+ a.customer.balances.map((e) => /* @__PURE__ */ I($, {
1528
+ label: "Available balance",
1529
+ items: [se(e.available_amount, e.currency)]
1530
+ }, e.currency)),
1531
+ /* @__PURE__ */ I($, {
1532
+ label: "Active subscriptions",
1533
+ items: a.subscriptions.data.map((e) => e.product?.display_name ?? e.id)
1534
+ }),
1535
+ /* @__PURE__ */ I($, {
1536
+ label: "Entitlements",
1537
+ items: a.entitlements.data.map((e) => e.entitlement)
1538
+ }),
1539
+ /* @__PURE__ */ I($, {
1540
+ label: "Product access",
1541
+ items: a.access.data.map((e) => `${e.product_name} · ${D(e.status)}`)
1542
+ }),
1543
+ /* @__PURE__ */ I($, {
1544
+ label: "Recent payments",
1545
+ items: a.payments.data.map((e) => `${se(e.amount, e.currency)} · ${D(e.status)}`)
1546
+ })
1547
+ ]
1548
+ })
1549
+ ]
1550
+ })]
1529
1551
  })
1530
1552
  });
1531
1553
  }
1532
- function bn(e) {
1554
+ function $({ label: e, items: n }) {
1555
+ return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("dt", {
1556
+ className: "pt-2 text-muted-foreground first:pt-0 sm:pt-0",
1557
+ children: /* @__PURE__ */ I(t, { id: e })
1558
+ }), /* @__PURE__ */ I("dd", {
1559
+ className: "min-w-0",
1560
+ children: n.length ? /* @__PURE__ */ I("ul", {
1561
+ className: "grid gap-0.5",
1562
+ children: n.map((e, t) => /* @__PURE__ */ I("li", { children: e }, t))
1563
+ }) : /* @__PURE__ */ I("span", {
1564
+ className: "text-muted-foreground",
1565
+ children: /* @__PURE__ */ I(t, { id: "None" })
1566
+ })
1567
+ })] });
1568
+ }
1569
+ function Cn(e) {
1533
1570
  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."] : [];
1534
1571
  }
1535
- var xn = "Subscription status could not be fully checked. Banning or deleting the account does not cancel subscriptions; review billing separately.";
1536
- async function Sn(e) {
1572
+ var wn = "Subscription status could not be fully checked. Banning or deleting the account does not cancel subscriptions; review billing separately.";
1573
+ async function Tn(e) {
1537
1574
  let t = typeof e.merchant == "string" ? {
1538
1575
  id: e.merchant,
1539
1576
  slug: e.merchant
1540
- } : e.merchant, n = i(_({
1577
+ } : e.merchant, n = _(r({
1541
1578
  ...e,
1542
1579
  merchant: t
1543
- })), r, a = /* @__PURE__ */ new Set();
1580
+ })), i, a = /* @__PURE__ */ new Set();
1544
1581
  try {
1545
1582
  for (let t = 0; t < 10; t++) {
1546
1583
  e.signal?.throwIfAborted();
1547
- let t = await n.listSubscriptions({ customer_id: e.customer }, 100, r, e.signal), i = bn({ subscriptions: t.data });
1548
- if (i.length) return i;
1584
+ let t = await n.listSubscriptions({ customer_id: e.customer }, 100, i, e.signal), r = Cn({ subscriptions: t.data });
1585
+ if (r.length) return r;
1549
1586
  if (!t.next_cursor) return [];
1550
1587
  if (a.has(t.next_cursor)) break;
1551
- a.add(t.next_cursor), r = t.next_cursor;
1588
+ a.add(t.next_cursor), i = t.next_cursor;
1552
1589
  }
1553
1590
  } catch (t) {
1554
1591
  if (e.signal?.throwIfAborted(), t instanceof Error && t.name === "AbortError") throw t;
1555
1592
  }
1556
- return [xn];
1593
+ return [wn];
1557
1594
  }
1558
- var Cn = {
1595
+ var En = {
1559
1596
  "customer:read": "Read customers, subscriptions, payments, and orders.",
1560
1597
  "customer:manage": "Change customer billing, including refunds, cancellations, and credits.",
1561
1598
  "catalog:manage": "Change products, prices, meters, and catalog migrations.",
@@ -1569,7 +1606,7 @@ var Cn = {
1569
1606
  "events:read": "Read retained billing events through the application API.",
1570
1607
  "orders:manage": "Preview, create, and withdraw merchant orders through the application API.",
1571
1608
  "customers:read": "Read merchant customer identity and billing settings."
1572
- }, wn = Object.fromEntries(["merchant", "root"].flatMap((e) => Object.entries(Cn).map(([t, n]) => [`${e}:${t}`, `${n} ${e === "root" ? "Applies across merchants." : "Applies within this merchant."}`]))), Tn = {
1609
+ }, Dn = Object.fromEntries(["merchant", "root"].flatMap((e) => Object.entries(En).map(([t, n]) => [`${e}:${t}`, `${n} ${e === "root" ? "Applies across merchants." : "Applies within this merchant."}`]))), On = {
1573
1610
  "Sold by OpenRails": "Sold by OpenRails",
1574
1611
  "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.",
1575
1612
  "Sold via: ": "Sold via: ",
@@ -1628,6 +1665,7 @@ var Cn = {
1628
1665
  ", an edit set": ", an edit set",
1629
1666
  ", before another action.": ", before another action.",
1630
1667
  ", deleted: ": ", deleted: ",
1668
+ ".": ".",
1631
1669
  ". Active holds may prevent revocation. Payment refunds are managed separately.": ". Active holds may prevent revocation. Payment refunds are managed separately.",
1632
1670
  ". Currency and interval stay locked to the current price.": ". Currency and interval stay locked to the current price.",
1633
1671
  "/app/usage-events": "/app/usage-events",
@@ -1824,6 +1862,7 @@ var Cn = {
1824
1862
  "Choose a method": "Choose a method",
1825
1863
  Churn: "Churn",
1826
1864
  "Clear all": "Clear all",
1865
+ "Clear customer": "Clear customer",
1827
1866
  "Clear customer filter": "Clear customer filter",
1828
1867
  "Clear filters": "Clear filters",
1829
1868
  Close: "Close",
@@ -1857,7 +1896,6 @@ var Cn = {
1857
1896
  "Custom range": "Custom range",
1858
1897
  Customer: "Customer",
1859
1898
  "Customer ID": "Customer ID",
1860
- "Customer UUID": "Customer UUID",
1861
1899
  "Customer controls": "Customer controls",
1862
1900
  "Customer lookup": "Customer lookup",
1863
1901
  "Customer not found.": "Customer not found.",
@@ -1925,7 +1963,7 @@ var Cn = {
1925
1963
  Filter: "Filter",
1926
1964
  "Filter meters on this page": "Filter meters on this page",
1927
1965
  "Filter this page…": "Filter this page…",
1928
- "Find a customer by ID and currency.": "Find a customer by ID and currency.",
1966
+ "Find a customer by name or email, then pick a currency.": "Find a customer by name or email, then pick a currency.",
1929
1967
  "First outcome": "First outcome",
1930
1968
  "First page": "First page",
1931
1969
  "Fixed included units": "Fixed included units",
@@ -1981,6 +2019,7 @@ var Cn = {
1981
2019
  "Loading order…": "Loading order…",
1982
2020
  "Loading products…": "Loading products…",
1983
2021
  "Loading transactions…": "Loading transactions…",
2022
+ "Loading plans…": "Loading plans…",
1984
2023
  "Loading…": "Loading…",
1985
2024
  "Logo URL": "Logo URL",
1986
2025
  "Manual remittance": "Manual remittance",
@@ -2006,7 +2045,7 @@ var Cn = {
2006
2045
  "Move everyone to the new price at their first renewal on or after a date you choose.": "Move everyone to the new price at their first renewal on or after a date you choose.",
2007
2046
  "Must be at least ": "Must be at least ",
2008
2047
  "NMI history (before OpenRails recorded attempts)": "NMI history (before OpenRails recorded attempts)",
2009
- "NMI&apos;s own transaction history, read daily and kept 25 months. It counts every sender, OpenRails too once it started. One-off sales mix initial sales, upgrades and retries of declined rebills: the history cannot tell them apart. Scheduled rebills are NMI&apos;s own charges, each the first try of its period. Rates count authorizations, not buyers.": "NMI&apos;s own transaction history, read daily and kept 25 months. It counts every sender, OpenRails too once it started. One-off sales mix initial sales, upgrades and retries of declined rebills: the history cannot tell them apart. Scheduled rebills are NMI&apos;s own charges, each the first try of its period. Rates count authorizations, not buyers.",
2048
+ "NMI's own transaction history, read daily and kept 25 months. It counts every sender, OpenRails too once it started. One-off sales mix initial sales, upgrades and retries of declined rebills: the history cannot tell them apart. Scheduled rebills are NMI's own charges, each the first try of its period. Rates count authorizations, not buyers.": "NMI's own transaction history, read daily and kept 25 months. It counts every sender, OpenRails too once it started. One-off sales mix initial sales, upgrades and retries of declined rebills: the history cannot tell them apart. Scheduled rebills are NMI's own charges, each the first try of its period. Rates count authorizations, not buyers.",
2010
2049
  "NMI-owned": "NMI-owned",
2011
2050
  "NMI-scheduled rebills": "NMI-scheduled rebills",
2012
2051
  Name: "Name",
@@ -2035,7 +2074,7 @@ var Cn = {
2035
2074
  "Next page": "Next page",
2036
2075
  "No NMI history yet: it is read daily.": "No NMI history yet: it is read daily.",
2037
2076
  "No PSPs configured.": "No PSPs configured.",
2038
- "No actions are available for your permissions and this order&apos;s state.": "No actions are available for your permissions and this order&apos;s state.",
2077
+ "No actions are available for your permissions and this order's state.": "No actions are available for your permissions and this order's state.",
2039
2078
  "No active products are available.": "No active products are available.",
2040
2079
  "No active subscriptions.": "No active subscriptions.",
2041
2080
  "No allowance": "No allowance",
@@ -2064,6 +2103,7 @@ var Cn = {
2064
2103
  "No saved payment methods. Add one on the customer page before retrying collection.": "No saved payment methods. Add one on the customer page before retrying collection.",
2065
2104
  "No subscriptions.": "No subscriptions.",
2066
2105
  "No transactions in this currency.": "No transactions in this currency.",
2106
+ "No currency yet": "No currency yet",
2067
2107
  "No usage meters yet": "No usage meters yet",
2068
2108
  "No webhooks configured.": "No webhooks configured.",
2069
2109
  "No widgets yet": "No widgets yet",
@@ -2125,6 +2165,7 @@ var Cn = {
2125
2165
  "Period maximum": "Period maximum",
2126
2166
  "Period: ": "Period: ",
2127
2167
  "Pick a later date.": "Pick a later date.",
2168
+ "Pick a customer first": "Pick a customer first",
2128
2169
  "Pick a product": "Pick a product",
2129
2170
  "Pick a product…": "Pick a product…",
2130
2171
  "Pick a rail…": "Pick a rail…",
@@ -2158,7 +2199,7 @@ var Cn = {
2158
2199
  "Client subaccount": "Client subaccount",
2159
2200
  "Pick a stored payment method": "Pick a stored payment method",
2160
2201
  "Pinned to an archived (prior) version": "Pinned to an archived (prior) version",
2161
- "Points future renewals of this subscription at another of the customer&apos;s stored cards (same rail), or back at their default card for its currency.": "Points future renewals of this subscription at another of the customer&apos;s stored cards (same rail), or back at their default card for its currency.",
2202
+ "Points future renewals of this subscription at another of the customer's stored cards (same rail), or back at their default card for its currency.": "Points future renewals of this subscription at another of the customer's stored cards (same rail), or back at their default card for its currency.",
2162
2203
  Preview: "Preview",
2163
2204
  "Previous page": "Previous page",
2164
2205
  "Previous period": "Previous period",
@@ -2285,13 +2326,14 @@ var Cn = {
2285
2326
  "Terms and billing facts for future usage orders. Billed orders keep their original snapshots. Tax details are recorded; no tax is calculated.": "Terms and billing facts for future usage orders. Billed orders keep their original snapshots. Tax details are recorded; no tax is calculated.",
2286
2327
  "The accounts this merchant takes payments through, one or more per rail.": "The accounts this merchant takes payments through, one or more per rail.",
2287
2328
  "The customer loses its entitlements now. The grant stays on record with your reason.": "The customer loses its entitlements now. The grant stays on record with your reason.",
2288
- "The customer&apos;s default card": "The customer&apos;s default card",
2329
+ "The customer's default card": "The customer's default card",
2289
2330
  "The daily report covers at most ": "The daily report covers at most ",
2290
2331
  "The keys of the products this customer holds now.": "The keys of the products this customer holds now.",
2291
2332
  "The payment provider calculates the final prorated amount.": "The payment provider calculates the final prorated amount.",
2333
+ "The payment provider hasn't confirmed this order's payment yet. It settles once the provider shows the result, or when it is resolved with ": "The payment provider hasn't confirmed this order's payment yet. It settles once the provider shows the result, or when it is resolved with ",
2292
2334
  "Their reference": "Their reference",
2293
2335
  "There were no providers to consider.": "There were no providers to consider.",
2294
- "These are the customer&apos;s invoice profile when the order was billed. Editing the profile affects later orders.": "These are the customer&apos;s invoice profile when the order was billed. Editing the profile affects later orders.",
2336
+ "These are the customer's invoice profile when the order was billed. Editing the profile affects later orders.": "These are the customer's invoice profile when the order was billed. Editing the profile affects later orders.",
2295
2337
  "These terms cannot be changed later. To charge a different amount, create another price and deactivate this one.": "These terms cannot be changed later. To charge a different amount, create another price and deactivate this one.",
2296
2338
  "This billing page does not exist.": "This billing page does not exist.",
2297
2339
  "This is a price": "This is a price",
@@ -2348,7 +2390,7 @@ var Cn = {
2348
2390
  "Why it was granted": "Why it was granted",
2349
2391
  "Widget menu": "Widget menu",
2350
2392
  "Widget title": "Widget title",
2351
- "You&apos;re all caught up.": "You&apos;re all caught up.",
2393
+ "You're all caught up.": "You're all caught up.",
2352
2394
  "Your directory holds no contact for this customer.": "Your directory holds no contact for this customer.",
2353
2395
  "Your role does not have permission to read the merchant catalog.": "Your role does not have permission to read the merchant catalog.",
2354
2396
  "access revocations": "access revocations",
@@ -2424,9 +2466,98 @@ var Cn = {
2424
2466
  "waiting for import": "waiting for import",
2425
2467
  "why is this being canceled?": "why is this being canceled?",
2426
2468
  "· owed ": "· owed ",
2427
- "← Orders": "← Orders"
2469
+ "← Orders": "← Orders",
2470
+ Succeeded: "Succeeded",
2471
+ Completed: "Completed",
2472
+ Complete: "Complete",
2473
+ Linked: "Linked",
2474
+ Approved: "Approved",
2475
+ Landed: "Landed",
2476
+ Current: "Current",
2477
+ Held: "Held",
2478
+ "Past due": "Past due",
2479
+ Grace: "Grace",
2480
+ Unknown: "Unknown",
2481
+ "Requires review": "Requires review",
2482
+ Delinquent: "Delinquent",
2483
+ Lost: "Lost",
2484
+ "Partially refunded": "Partially refunded",
2485
+ Dismissed: "Dismissed",
2486
+ Superseded: "Superseded",
2487
+ "Already resolved": "Already resolved",
2488
+ "Awaiting method": "Awaiting method",
2489
+ "Cancel this membership?": "Cancel this membership?",
2490
+ "Renewal stops now and can't be restarted from here.": "Renewal stops now and can't be restarted from here.",
2491
+ "The customer": "The customer",
2492
+ keeps: "keeps",
2493
+ loses: "loses",
2494
+ "now. No refund is made.": "now. No refund is made.",
2495
+ "their access": "their access",
2496
+ until: "until",
2497
+ "until the current period ends.": "until the current period ends.",
2498
+ "Cancel membership": "Cancel membership",
2499
+ "End access now instead (no refund is made)": "End access now instead (no refund is made)",
2500
+ "By the customer": "By the customer",
2501
+ "By staff": "By staff",
2502
+ "Renewal payment failed": "Renewal payment failed",
2503
+ "After a chargeback": "After a chargeback",
2504
+ "Replaced by an upgrade": "Replaced by an upgrade",
2505
+ "This page couldn't be loaded": "This page couldn't be loaded",
2506
+ "It may have been removed, or the link may be wrong.": "It may have been removed, or the link may be wrong.",
2507
+ "Code:": "Code:",
2508
+ "Subscription not found": "Subscription not found",
2509
+ "Payment not found": "Payment not found",
2510
+ "Order not found": "Order not found",
2511
+ "Customer not found": "Customer not found",
2512
+ "Refunds, revokes and cancels are paused for you after several in a short time. Someone else can clear the hold on the Ops page.": "Refunds, revokes and cancels are paused for you after several in a short time. Someone else can clear the hold on the Ops page.",
2513
+ "Billing couldn't check your permissions just now. Try again in a moment.": "Billing couldn't check your permissions just now. Try again in a moment.",
2514
+ "Your role doesn't allow this.": "Your role doesn't allow this.",
2515
+ "Search customers": "Search customers",
2516
+ "Customer email, ref, or id": "Customer email, ref, or id",
2517
+ "Clear search": "Clear search",
2518
+ "Searching…": "Searching…",
2519
+ Search: "Search",
2520
+ "No customer matches": "No customer matches",
2521
+ "More customers match. Choose one, or search for more of the name or email.": "More customers match. Choose one, or search for more of the name or email.",
2522
+ "customers match. Choose one.": "customers match. Choose one.",
2523
+ "Holds on refunds and cancels": "Holds on refunds and cancels",
2524
+ "A staff member reached the limit of": "A staff member reached the limit of",
2525
+ "Staff reached the limit of": "Staff reached the limit of",
2526
+ "refunds, revokes or cancels in an hour. These are paused until someone clears the hold.": "refunds, revokes or cancels in an hour. These are paused until someone clears the hold.",
2527
+ "refunds, revokes or cancels in a day. These are paused until someone clears the hold.": "refunds, revokes or cancels in a day. These are paused until someone clears the hold.",
2528
+ "Held since": "Held since",
2529
+ "Clear hold": "Clear hold",
2530
+ "Clear this hold?": "Clear this hold?",
2531
+ "Refunds, revokes and cancels start working again for the people it held. Someone other than the person it stopped must clear it.": "Refunds, revokes and cancels start working again for the people it held. Someone other than the person it stopped must clear it.",
2532
+ "Reason (required)": "Reason (required)",
2533
+ "Hold cleared": "Hold cleared",
2534
+ "Clearing…": "Clearing…",
2535
+ "A different person must clear this hold.": "A different person must clear this hold.",
2536
+ "You don't have permission to clear holds.": "You don't have permission to clear holds.",
2537
+ "Billing couldn't check your permission to clear holds. Try again in a moment.": "Billing couldn't check your permission to clear holds. Try again in a moment.",
2538
+ "This hold was already cleared or no longer exists.": "This hold was already cleared or no longer exists.",
2539
+ None: "None",
2540
+ "Payment methods are up to date": "Payment methods are up to date",
2541
+ "Refreshing…": "Refreshing…",
2542
+ "Last updated": "Last updated",
2543
+ "Current, read from your directory": "Current, read from your directory",
2544
+ "Refunding…": "Refunding…",
2545
+ "The money goes back through ": "The money goes back through ",
2546
+ ". Up to ": ". Up to ",
2547
+ " can still be refunded.": " can still be refunded.",
2548
+ Pulling: "Pulling",
2549
+ Released: "Released",
2550
+ Resolved: "Resolved",
2551
+ Processing: "Processing",
2552
+ "Requires action": "Requires action",
2553
+ Void: "Void",
2554
+ Uncollectible: "Uncollectible",
2555
+ Converged: "Converged",
2556
+ Gone: "Gone",
2557
+ Ignored: "Ignored",
2558
+ Imported: "Imported"
2428
2559
  };
2429
2560
  //#endregion
2430
- export { dn as BillingAdmin, yn as BillingCustomerSummary, Tn as billingAdminMessages, bn as billingConfirmWarnings, wn as billingPermissionHelp, Sn as loadBillingConfirmWarnings, _n as useBillingAdminAccess };
2561
+ export { mn as BillingAdmin, Sn as BillingCustomerSummary, On as billingAdminMessages, Cn as billingConfirmWarnings, Dn as billingPermissionHelp, Tn as loadBillingConfirmWarnings, bn as useBillingAdminAccess };
2431
2562
 
2432
2563
  //# sourceMappingURL=admin.js.map