@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.
- package/dist/admin/components/customer-search.d.ts +5 -0
- package/dist/admin/components/missing-record.d.ts +6 -0
- package/dist/admin/components/status-badge.d.ts +1 -0
- package/dist/admin/context.d.ts +34 -2
- package/dist/admin/lib/api/endpoints.d.ts +4 -1
- package/dist/admin/lib/api/index.d.ts +3 -0
- package/dist/admin/lib/api/order-endpoints.d.ts +1 -0
- package/dist/admin/lib/api/types.d.ts +4 -12
- package/dist/admin/lib/capabilities.d.ts +4 -0
- package/dist/admin/lib/dialog-width.d.ts +4 -3
- package/dist/admin/lib/error-text.d.ts +4 -0
- package/dist/admin/lib/format.d.ts +5 -1
- package/dist/admin/lib/mutations.d.ts +6 -1
- package/dist/admin/lib/order-queries.d.ts +3 -0
- package/dist/admin/lib/queries.d.ts +6 -0
- package/dist/admin/lib/tile-grids.d.ts +6 -0
- package/dist/admin/messages.d.ts +102 -8
- package/dist/admin/pages/dashboard/lib.d.ts +1 -0
- package/dist/admin/pages/imports/shared.d.ts +1 -0
- package/dist/admin/pages/payments/index.d.ts +1 -2
- package/dist/admin/pages/subscriptions/change-subscription-dialog.d.ts +4 -7
- package/dist/admin/pages/subscriptions/index.d.ts +1 -2
- package/dist/admin/pages/subscriptions/subscription-change-options.d.ts +6 -15
- package/dist/admin-attempts-CP5CWyNR.js +419 -0
- package/dist/admin-attempts-CP5CWyNR.js.map +1 -0
- package/dist/{admin-auth-1aZIgXiS.js → admin-auth-DlIOmwPo.js} +2 -2
- package/dist/{admin-auth-1aZIgXiS.js.map → admin-auth-DlIOmwPo.js.map} +1 -1
- package/dist/{admin-badge-pgG6D9-a.js → admin-badge-DR_8AhdC.js} +2 -2
- package/dist/{admin-badge-pgG6D9-a.js.map → admin-badge-DR_8AhdC.js.map} +1 -1
- package/dist/{admin-button-CrcYk5r0.js → admin-button-DBzTD6By.js} +2 -2
- package/dist/{admin-button-CrcYk5r0.js.map → admin-button-DBzTD6By.js.map} +1 -1
- package/dist/{admin-capabilities-BDcZeHL_.js → admin-capabilities-CZdT1Pxe.js} +35 -14
- package/dist/admin-capabilities-CZdT1Pxe.js.map +1 -0
- package/dist/{admin-card-DvTMc5Se.js → admin-card-mZl4-s5d.js} +2 -2
- package/dist/{admin-card-DvTMc5Se.js.map → admin-card-mZl4-s5d.js.map} +1 -1
- package/dist/{admin-catalog-BlF5mnu4.js → admin-catalog-DpTjS0Yo.js} +298 -298
- package/dist/{admin-catalog-BlF5mnu4.js.map → admin-catalog-DpTjS0Yo.js.map} +1 -1
- package/dist/{admin-cursor-pager-CIb3Jw2F.js → admin-cursor-pager-C-KjCIy9.js} +6 -6
- package/dist/{admin-cursor-pager-CIb3Jw2F.js.map → admin-cursor-pager-C-KjCIy9.js.map} +1 -1
- package/dist/{admin-customers-EpfoWDh-.js → admin-customers-BE3N839X.js} +22 -21
- package/dist/{admin-customers-EpfoWDh-.js.map → admin-customers-BE3N839X.js.map} +1 -1
- package/dist/admin-dashboard-BxjkV15J.js +464 -0
- package/dist/admin-dashboard-BxjkV15J.js.map +1 -0
- package/dist/admin-data-table-D89AwWz_.js +107 -0
- package/dist/admin-data-table-D89AwWz_.js.map +1 -0
- package/dist/admin-detail-BKe9xqPd.js +338 -0
- package/dist/admin-detail-BKe9xqPd.js.map +1 -0
- package/dist/admin-detail-C8lD7U2t.js +699 -0
- package/dist/admin-detail-C8lD7U2t.js.map +1 -0
- package/dist/admin-detail-D6zD085K.js +354 -0
- package/dist/admin-detail-D6zD085K.js.map +1 -0
- package/dist/{admin-detail-3wFIDPNB.js → admin-detail-Ln56otK0.js} +83 -83
- package/dist/{admin-detail-3wFIDPNB.js.map → admin-detail-Ln56otK0.js.map} +1 -1
- package/dist/admin-detail-P-UnNvXJ.js +1357 -0
- package/dist/admin-detail-P-UnNvXJ.js.map +1 -0
- package/dist/{admin-dialog-BSRf9Zre.js → admin-dialog-Dn2FRJu4.js} +3 -3
- package/dist/{admin-dialog-BSRf9Zre.js.map → admin-dialog-Dn2FRJu4.js.map} +1 -1
- package/dist/admin-dialog-width-CC7QHT1p.js +6 -0
- package/dist/admin-dialog-width-CC7QHT1p.js.map +1 -0
- package/dist/{admin-dropdown-menu-D0E5rwmn.js → admin-dropdown-menu-DLUn6Uj3.js} +2 -2
- package/dist/{admin-dropdown-menu-D0E5rwmn.js.map → admin-dropdown-menu-DLUn6Uj3.js.map} +1 -1
- package/dist/{admin-dunning-B2zgtrOo.js → admin-dunning-COaHzrmN.js} +2 -2
- package/dist/{admin-dunning-B2zgtrOo.js.map → admin-dunning-COaHzrmN.js.map} +1 -1
- package/dist/{admin-fact-card-BPSVhS15.js → admin-fact-card-DKvBnUXB.js} +2 -2
- package/dist/{admin-fact-card-BPSVhS15.js.map → admin-fact-card-DKvBnUXB.js.map} +1 -1
- package/dist/admin-format-BbiTCqUG.js +171 -0
- package/dist/admin-format-BbiTCqUG.js.map +1 -0
- package/dist/{admin-health-D0L5Kig7.js → admin-health-DmnI4e8K.js} +249 -248
- package/dist/admin-health-DmnI4e8K.js.map +1 -0
- package/dist/{admin-imports-CgZB5JAV.js → admin-imports-C0aMP6sj.js} +65 -65
- package/dist/{admin-imports-CgZB5JAV.js.map → admin-imports-C0aMP6sj.js.map} +1 -1
- package/dist/{admin-input-DJAK9nmk.js → admin-input-JKrQIGfD.js} +2 -2
- package/dist/{admin-input-DJAK9nmk.js.map → admin-input-JKrQIGfD.js.map} +1 -1
- package/dist/{admin-label-aviN9Gng.js → admin-label-CHWsVIZC.js} +2 -2
- package/dist/{admin-label-aviN9Gng.js.map → admin-label-CHWsVIZC.js.map} +1 -1
- package/dist/{admin-linked-table-row-BGr7JXeM.js → admin-linked-table-row-BMZYYsuk.js} +4 -4
- package/dist/{admin-linked-table-row-BGr7JXeM.js.map → admin-linked-table-row-BMZYYsuk.js.map} +1 -1
- package/dist/{admin-map-dialog-DS2Wz6G3.js → admin-map-dialog-BHUGdCcv.js} +24 -24
- package/dist/{admin-map-dialog-DS2Wz6G3.js.map → admin-map-dialog-BHUGdCcv.js.map} +1 -1
- package/dist/{admin-metering-D-e-37Jn.js → admin-metering-CDqueHUh.js} +307 -307
- package/dist/{admin-metering-D-e-37Jn.js.map → admin-metering-CDqueHUh.js.map} +1 -1
- package/dist/admin-missing-record-BPFs3MmO.js +42 -0
- package/dist/admin-missing-record-BPFs3MmO.js.map +1 -0
- package/dist/admin-ops-CL2kjDwi.js +359 -0
- package/dist/admin-ops-CL2kjDwi.js.map +1 -0
- package/dist/admin-orders-C1Sf2qhc.js +192 -0
- package/dist/admin-orders-C1Sf2qhc.js.map +1 -0
- package/dist/admin-parked-a0tB5bhG.js +193 -0
- package/dist/admin-parked-a0tB5bhG.js.map +1 -0
- package/dist/admin-payments-DJcjwRA4.js +221 -0
- package/dist/admin-payments-DJcjwRA4.js.map +1 -0
- package/dist/{admin-price-detail-CSI5oKdb.js → admin-price-detail-BOmeWw15.js} +103 -103
- package/dist/{admin-price-detail-CSI5oKdb.js.map → admin-price-detail-BOmeWw15.js.map} +1 -1
- package/dist/{admin-price-format-BVUpDoSC.js → admin-price-format-CqOmHrIn.js} +2 -2
- package/dist/{admin-price-format-BVUpDoSC.js.map → admin-price-format-CqOmHrIn.js.map} +1 -1
- package/dist/{admin-price-wizard-CBEcNGvP.js → admin-price-wizard-B6s5OJeO.js} +63 -63
- package/dist/{admin-price-wizard-CBEcNGvP.js.map → admin-price-wizard-B6s5OJeO.js.map} +1 -1
- package/dist/{admin-proposals-Cuj7tvaM.js → admin-proposals-DVrl-ym4.js} +70 -70
- package/dist/{admin-proposals-Cuj7tvaM.js.map → admin-proposals-DVrl-ym4.js.map} +1 -1
- package/dist/admin-provider-prices-BVVogH7Q.js +241 -0
- package/dist/admin-provider-prices-BVVogH7Q.js.map +1 -0
- package/dist/{admin-range-picker-De36L-AP.js → admin-range-picker-C6BtSm2B.js} +9 -9
- package/dist/{admin-range-picker-De36L-AP.js.map → admin-range-picker-C6BtSm2B.js.map} +1 -1
- package/dist/{admin-records-H0MlhEVY.js → admin-records-DKtcgN11.js} +50 -50
- package/dist/{admin-records-H0MlhEVY.js.map → admin-records-DKtcgN11.js.map} +1 -1
- package/dist/{admin-reports-BFGS_PWf.js → admin-reports-CtPoiceH.js} +50 -50
- package/dist/{admin-reports-BFGS_PWf.js.map → admin-reports-CtPoiceH.js.map} +1 -1
- package/dist/{admin-select-BUcEU5Rg.js → admin-select-6Yuh5M1Q.js} +2 -2
- package/dist/{admin-select-BUcEU5Rg.js.map → admin-select-6Yuh5M1Q.js.map} +1 -1
- package/dist/admin-settings-DscHu4ww.js +1823 -0
- package/dist/admin-settings-DscHu4ww.js.map +1 -0
- package/dist/{admin-shared-lfIUEbPY.js → admin-shared-BywM-MMp.js} +28 -24
- package/dist/{admin-shared-lfIUEbPY.js.map → admin-shared-BywM-MMp.js.map} +1 -1
- package/dist/{admin-skeleton-B0yzYY_X.js → admin-skeleton-lndmw89u.js} +2 -2
- package/dist/{admin-skeleton-B0yzYY_X.js.map → admin-skeleton-lndmw89u.js.map} +1 -1
- package/dist/admin-status-badge-IL8ofZ_6.js +51 -0
- package/dist/admin-status-badge-IL8ofZ_6.js.map +1 -0
- package/dist/admin-subscriptions-Cd5CGrue.js +271 -0
- package/dist/admin-subscriptions-Cd5CGrue.js.map +1 -0
- package/dist/{admin-switch-DDorugaw.js → admin-switch-DpwQSzEm.js} +2 -2
- package/dist/{admin-switch-DDorugaw.js.map → admin-switch-DpwQSzEm.js.map} +1 -1
- package/dist/{admin-table-BU6Tie69.js → admin-table-D-GdGM1m.js} +2 -2
- package/dist/{admin-table-BU6Tie69.js.map → admin-table-D-GdGM1m.js.map} +1 -1
- package/dist/admin-tabs-B--1flzO.js +158 -0
- package/dist/admin-tabs-B--1flzO.js.map +1 -0
- package/dist/{admin-textarea-Dc6lnEub.js → admin-textarea-xsp5V9xM.js} +2 -2
- package/dist/{admin-textarea-Dc6lnEub.js.map → admin-textarea-xsp5V9xM.js.map} +1 -1
- package/dist/admin-tile-grids-CzGpidd9.js +6 -0
- package/dist/admin-tile-grids-CzGpidd9.js.map +1 -0
- package/dist/{admin-typed-confirm-dialog-Bk6XxmPb.js → admin-typed-confirm-dialog-NiEDwX_0.js} +11 -11
- package/dist/{admin-typed-confirm-dialog-Bk6XxmPb.js.map → admin-typed-confirm-dialog-NiEDwX_0.js.map} +1 -1
- package/dist/{admin-utils-B9eEBNsR.js → admin-utils-wuPUD0uh.js} +341 -283
- package/dist/admin-utils-wuPUD0uh.js.map +1 -0
- package/dist/admin-widget-viz-kHHVmDEx.js +646 -0
- package/dist/admin-widget-viz-kHHVmDEx.js.map +1 -0
- package/dist/admin.css +1 -1
- package/dist/admin.js +544 -413
- package/dist/admin.js.map +1 -1
- package/dist/client/generated/routes.d.ts +17 -0
- package/dist/client/generated/wire.d.ts +4 -0
- package/dist/client/types.d.ts +6 -0
- package/dist/{client-BYgnI6_h.js → client-ctrbivyN.js} +3 -2
- package/dist/client-ctrbivyN.js.map +1 -0
- package/dist/client.js +1 -1
- package/dist/{hooks-t2tSrCpa.js → hooks-KpTetx6F.js} +2 -2
- package/dist/{hooks-t2tSrCpa.js.map → hooks-KpTetx6F.js.map} +1 -1
- package/dist/index.js +750 -711
- package/dist/index.js.map +1 -1
- package/dist/lib/card-brands.d.ts +1 -0
- package/dist/locales/de.js +3 -0
- package/dist/locales/de.js.map +1 -1
- package/dist/locales/en.d.ts +3 -0
- package/dist/locales/en.js +3 -0
- package/dist/locales/en.js.map +1 -1
- package/dist/locales/es.js +3 -0
- package/dist/locales/es.js.map +1 -1
- package/dist/locales/ja.js +3 -0
- package/dist/locales/ja.js.map +1 -1
- package/dist/locales/ko.js +3 -0
- package/dist/locales/ko.js.map +1 -1
- package/dist/locales/zh.js +3 -0
- package/dist/locales/zh.js.map +1 -1
- package/dist/react.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/admin-attempts-DyDDt-qw.js +0 -418
- package/dist/admin-attempts-DyDDt-qw.js.map +0 -1
- package/dist/admin-capabilities-BDcZeHL_.js.map +0 -1
- package/dist/admin-dashboard-CJE63yz4.js +0 -420
- package/dist/admin-dashboard-CJE63yz4.js.map +0 -1
- package/dist/admin-data-table-hvFcJepL.js +0 -96
- package/dist/admin-data-table-hvFcJepL.js.map +0 -1
- package/dist/admin-detail-BRP6pL7t.js +0 -328
- package/dist/admin-detail-BRP6pL7t.js.map +0 -1
- package/dist/admin-detail-CRzFb_pa.js +0 -1331
- package/dist/admin-detail-CRzFb_pa.js.map +0 -1
- package/dist/admin-detail-QLxU8r-5.js +0 -344
- package/dist/admin-detail-QLxU8r-5.js.map +0 -1
- package/dist/admin-detail-pPC8Q9l-.js +0 -710
- package/dist/admin-detail-pPC8Q9l-.js.map +0 -1
- package/dist/admin-dialog-width-BPrgdYlj.js +0 -6
- package/dist/admin-dialog-width-BPrgdYlj.js.map +0 -1
- package/dist/admin-format-DoohJ7Fg.js +0 -136
- package/dist/admin-format-DoohJ7Fg.js.map +0 -1
- package/dist/admin-health-D0L5Kig7.js.map +0 -1
- package/dist/admin-ops-CQP4TzWM.js +0 -235
- package/dist/admin-ops-CQP4TzWM.js.map +0 -1
- package/dist/admin-orders-BJ7W5S8P.js +0 -192
- package/dist/admin-orders-BJ7W5S8P.js.map +0 -1
- package/dist/admin-parked-B8xHkV2e.js +0 -193
- package/dist/admin-parked-B8xHkV2e.js.map +0 -1
- package/dist/admin-payments-CzkzqYA1.js +0 -246
- package/dist/admin-payments-CzkzqYA1.js.map +0 -1
- package/dist/admin-provider-prices-B6vwnVPi.js +0 -246
- package/dist/admin-provider-prices-B6vwnVPi.js.map +0 -1
- package/dist/admin-settings-DYC-c7mJ.js +0 -1813
- package/dist/admin-settings-DYC-c7mJ.js.map +0 -1
- package/dist/admin-status-badge-0-K37EfN.js +0 -43
- package/dist/admin-status-badge-0-K37EfN.js.map +0 -1
- package/dist/admin-subscriptions-CvW-YFs0.js +0 -301
- package/dist/admin-subscriptions-CvW-YFs0.js.map +0 -1
- package/dist/admin-tabs-D5lqdVcC.js +0 -46
- package/dist/admin-tabs-D5lqdVcC.js.map +0 -1
- package/dist/admin-utils-B9eEBNsR.js.map +0 -1
- package/dist/admin-widget-viz-8aukE3v_.js +0 -581
- package/dist/admin-widget-viz-8aukE3v_.js.map +0 -1
- package/dist/client-BYgnI6_h.js.map +0 -1
package/dist/admin.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as S } from "./admin-button-
|
|
4
|
-
import {
|
|
5
|
-
import { t as E } from "./admin-auth-
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
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
|
|
10
|
-
import { QueryCache as
|
|
11
|
-
import { Toaster as
|
|
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
|
|
15
|
-
import { ChevronRightIcon as
|
|
16
|
-
import { mergeProps as
|
|
17
|
-
import { useRender as
|
|
18
|
-
import { cva as
|
|
19
|
-
import { Separator as
|
|
20
|
-
import { Dialog as
|
|
21
|
-
import { Tooltip as
|
|
22
|
-
import { AlertDialog as
|
|
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
|
|
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
|
|
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[
|
|
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
|
|
49
|
+
var Ue = [
|
|
49
50
|
{
|
|
50
51
|
path: "/payments/attempts",
|
|
51
|
-
Component: k(() => import("./admin-attempts-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
160
|
+
Component: k(() => import("./admin-detail-D6zD085K.js").then((e) => ({ default: e.OrderDetailPage })))
|
|
160
161
|
}
|
|
161
162
|
];
|
|
162
|
-
function
|
|
163
|
-
for (let { path: t, Component: n } of
|
|
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
|
|
179
|
-
let e =
|
|
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(
|
|
183
|
+
children: /* @__PURE__ */ I(ue, {
|
|
183
184
|
fallback: /* @__PURE__ */ I("p", {
|
|
184
185
|
role: "status",
|
|
185
|
-
children: /* @__PURE__ */ I(
|
|
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(
|
|
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
|
|
197
|
-
let t = window.matchMedia(
|
|
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
|
|
201
|
-
return N(
|
|
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
|
|
206
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
216
|
-
return /* @__PURE__ */ I(
|
|
216
|
+
function Ye({ ...e }) {
|
|
217
|
+
return /* @__PURE__ */ I(H.Root, {
|
|
217
218
|
"data-slot": "sheet",
|
|
218
219
|
...e
|
|
219
220
|
});
|
|
220
221
|
}
|
|
221
|
-
function
|
|
222
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
229
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
236
|
-
return /* @__PURE__ */ L(
|
|
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":
|
|
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: [
|
|
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(
|
|
249
|
+
children: [/* @__PURE__ */ I(ze, {}), /* @__PURE__ */ I("span", {
|
|
249
250
|
className: "sr-only",
|
|
250
|
-
children: /* @__PURE__ */ I(
|
|
251
|
+
children: /* @__PURE__ */ I(t, { id: "Close" })
|
|
251
252
|
})]
|
|
252
253
|
})]
|
|
253
254
|
})] });
|
|
254
255
|
}
|
|
255
|
-
function
|
|
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
|
|
263
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
270
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
279
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
286
|
-
return /* @__PURE__ */ I(
|
|
286
|
+
function rt({ ...e }) {
|
|
287
|
+
return /* @__PURE__ */ I(U.Root, {
|
|
287
288
|
"data-slot": "tooltip",
|
|
288
289
|
...e
|
|
289
290
|
});
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
298
|
-
return /* @__PURE__ */ I(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
318
|
-
function
|
|
319
|
-
let e = O.useContext(
|
|
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
|
|
324
|
-
let s =
|
|
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(
|
|
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 ===
|
|
354
|
+
e.key === lt && (e.metaKey || e.ctrlKey) && (e.preventDefault(), m());
|
|
354
355
|
},
|
|
355
356
|
style: {
|
|
356
|
-
"--sidebar-width":
|
|
357
|
-
"--sidebar-width-icon":
|
|
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
|
|
367
|
-
let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } =
|
|
368
|
-
return
|
|
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(
|
|
374
|
+
}) : c ? /* @__PURE__ */ I(Ye, {
|
|
374
375
|
open: u,
|
|
375
376
|
onOpenChange: d,
|
|
376
377
|
...s,
|
|
377
|
-
children: /* @__PURE__ */ L(
|
|
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":
|
|
384
|
+
style: { "--sidebar-width": st },
|
|
384
385
|
side: e,
|
|
385
|
-
children: [/* @__PURE__ */ L(
|
|
386
|
+
children: [/* @__PURE__ */ L($e, {
|
|
386
387
|
className: "sr-only",
|
|
387
|
-
children: [/* @__PURE__ */ I(
|
|
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" ?
|
|
397
|
-
"data-variant":
|
|
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",
|
|
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",
|
|
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
|
|
418
|
-
let { toggleSidebar: i } =
|
|
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
|
-
|
|
427
|
+
n?.(e), i();
|
|
427
428
|
},
|
|
428
|
-
...
|
|
429
|
-
children: [/* @__PURE__ */ I(
|
|
429
|
+
...r,
|
|
430
|
+
children: [/* @__PURE__ */ I(Le, {}), /* @__PURE__ */ I("span", {
|
|
430
431
|
className: "sr-only",
|
|
431
|
-
children: /* @__PURE__ */ I(
|
|
432
|
+
children: /* @__PURE__ */ I(t, { id: "Toggle Sidebar" })
|
|
432
433
|
})]
|
|
433
434
|
});
|
|
434
435
|
}
|
|
435
|
-
function
|
|
436
|
-
let { text: r } =
|
|
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
|
-
...
|
|
446
|
+
...t
|
|
446
447
|
});
|
|
447
448
|
}
|
|
448
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
480
|
-
return
|
|
480
|
+
function vt({ className: e, render: t, ...n }) {
|
|
481
|
+
return V({
|
|
481
482
|
defaultTagName: "div",
|
|
482
|
-
props:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
532
|
-
let { isMobile: s, state: c } =
|
|
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:
|
|
535
|
+
props: B({ className: h(bt({
|
|
535
536
|
variant: n,
|
|
536
537
|
size: r
|
|
537
538
|
}), a) }, o),
|
|
538
|
-
render: i ? /* @__PURE__ */ I(
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
570
|
-
return
|
|
570
|
+
function Ct({ render: e, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
571
|
+
return V({
|
|
571
572
|
defaultTagName: "a",
|
|
572
|
-
props:
|
|
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
|
|
585
|
+
var wt = [
|
|
585
586
|
{
|
|
586
587
|
title: "Dashboard",
|
|
587
588
|
path: "/",
|
|
588
|
-
icon:
|
|
589
|
+
icon: Se,
|
|
589
590
|
order: 0,
|
|
590
|
-
useVisible:
|
|
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:
|
|
603
|
+
icon: Ae,
|
|
603
604
|
order: 10,
|
|
604
|
-
useVisible:
|
|
605
|
+
useVisible: C
|
|
605
606
|
},
|
|
606
607
|
{
|
|
607
608
|
title: "Subscriptions",
|
|
608
609
|
path: "/subscriptions",
|
|
609
|
-
icon:
|
|
610
|
+
icon: Ee,
|
|
610
611
|
order: 20,
|
|
611
|
-
useVisible:
|
|
612
|
+
useVisible: C
|
|
612
613
|
},
|
|
613
614
|
{
|
|
614
615
|
title: "Payments",
|
|
615
616
|
path: "/payments",
|
|
616
|
-
icon:
|
|
617
|
+
icon: z,
|
|
617
618
|
order: 30,
|
|
618
|
-
useVisible:
|
|
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:
|
|
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:
|
|
643
|
+
icon: z,
|
|
643
644
|
order: 40,
|
|
644
|
-
useVisible:
|
|
645
|
+
useVisible: C
|
|
645
646
|
},
|
|
646
647
|
{
|
|
647
648
|
title: "Catalog",
|
|
648
649
|
path: "/catalog",
|
|
649
|
-
icon:
|
|
650
|
+
icon: we,
|
|
650
651
|
order: 50,
|
|
651
|
-
useVisible:
|
|
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:
|
|
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:
|
|
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
|
|
706
|
+
function Tt(e, t, n) {
|
|
706
707
|
return t === n ? e === t : e.startsWith(t);
|
|
707
708
|
}
|
|
708
|
-
function
|
|
709
|
-
let { pathname: e } = d(),
|
|
709
|
+
function Et() {
|
|
710
|
+
let { pathname: e } = d(), n = [{
|
|
710
711
|
label: "Billing",
|
|
711
|
-
items:
|
|
712
|
-
}],
|
|
713
|
-
return /* @__PURE__ */ L(
|
|
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(
|
|
718
|
-
/* @__PURE__ */ I(
|
|
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 ===
|
|
721
|
+
active: t.path === r,
|
|
721
722
|
pathname: e
|
|
722
|
-
}, t.path)) }) })] },
|
|
723
|
-
/* @__PURE__ */ I(
|
|
723
|
+
}, t.path)) }) })] }, n.label)) }),
|
|
724
|
+
/* @__PURE__ */ I(pt, {})
|
|
724
725
|
]
|
|
725
726
|
});
|
|
726
727
|
}
|
|
727
|
-
var
|
|
728
|
-
function
|
|
729
|
-
let { text: a } =
|
|
730
|
-
return (e.useVisible ??
|
|
731
|
-
isActive:
|
|
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(
|
|
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 &&
|
|
738
|
+
}), e.items && r && /* @__PURE__ */ I(xt, { children: e.items.map((t) => /* @__PURE__ */ I(kt, {
|
|
738
739
|
sub: t,
|
|
739
|
-
active:
|
|
740
|
+
active: Tt(i, t.path, e.path)
|
|
740
741
|
}, t.path)) })] }) : null;
|
|
741
742
|
}
|
|
742
|
-
function
|
|
743
|
-
return (e.useVisible ??
|
|
744
|
-
isActive:
|
|
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(
|
|
748
|
+
children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(t, { id: e.title }) })
|
|
748
749
|
})
|
|
749
750
|
}) }) : null;
|
|
750
751
|
}
|
|
751
|
-
function
|
|
752
|
-
let { activeMerchant: e, merchants:
|
|
753
|
-
return /* @__PURE__ */ I(
|
|
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:
|
|
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(
|
|
782
|
+
children: [/* @__PURE__ */ L(re, { children: [/* @__PURE__ */ I(ee, {
|
|
782
783
|
className: "text-xs text-muted-foreground",
|
|
783
|
-
children: /* @__PURE__ */ I(
|
|
784
|
-
}),
|
|
785
|
-
let
|
|
786
|
-
return /* @__PURE__ */ L(
|
|
787
|
-
onClick: () =>
|
|
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
|
-
|
|
805
|
-
icon:
|
|
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(
|
|
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:
|
|
817
|
+
icon: ye,
|
|
817
818
|
className: "size-4"
|
|
818
819
|
})
|
|
819
|
-
}), /* @__PURE__ */ I(
|
|
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
|
|
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(
|
|
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
|
|
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(
|
|
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(
|
|
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
|
|
856
|
-
let { text: e } =
|
|
857
|
-
...
|
|
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(
|
|
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:
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
918
|
+
icon: xe,
|
|
918
919
|
className: "text-failed size-4"
|
|
919
920
|
}) : /* @__PURE__ */ I(R, {
|
|
920
|
-
icon:
|
|
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:
|
|
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
|
|
947
|
-
let { text: r } =
|
|
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
|
-
...
|
|
953
|
+
...t
|
|
953
954
|
});
|
|
954
955
|
}
|
|
955
|
-
function
|
|
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
|
|
970
|
-
return
|
|
970
|
+
function It({ className: e, render: t, ...n }) {
|
|
971
|
+
return V({
|
|
971
972
|
defaultTagName: "a",
|
|
972
|
-
props:
|
|
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
|
|
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
|
|
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(
|
|
995
|
+
children: e ?? /* @__PURE__ */ I(Me, {})
|
|
995
996
|
});
|
|
996
997
|
}
|
|
997
998
|
//#endregion
|
|
998
999
|
//#region src/admin/components/site-header.tsx
|
|
999
|
-
function
|
|
1000
|
-
let { activeMerchant:
|
|
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(
|
|
1005
|
-
/* @__PURE__ */ I(
|
|
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(
|
|
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(
|
|
1012
|
-
}) }) }), e.map((
|
|
1013
|
-
to:
|
|
1014
|
-
children: /* @__PURE__ */ I(
|
|
1015
|
-
}) }) : /* @__PURE__ */ I(
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
1088
|
-
let { activeMerchant:
|
|
1089
|
-
return
|
|
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(
|
|
1093
|
-
}) :
|
|
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:
|
|
1098
|
+
children: [/* @__PURE__ */ I("p", { children: i(c.error).text }), /* @__PURE__ */ I("button", {
|
|
1097
1099
|
type: "button",
|
|
1098
|
-
onClick: () => void
|
|
1099
|
-
children: /* @__PURE__ */ I(
|
|
1100
|
+
onClick: () => void c.refetch(),
|
|
1101
|
+
children: /* @__PURE__ */ I(t, { id: "Try again" })
|
|
1100
1102
|
})]
|
|
1101
|
-
}) :
|
|
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(
|
|
1105
|
-
}) : /* @__PURE__ */ I(
|
|
1106
|
-
|
|
1107
|
-
children: /* @__PURE__ */ I(
|
|
1108
|
-
className: "
|
|
1109
|
-
children:
|
|
1110
|
-
|
|
1111
|
-
|
|
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
|
|
1116
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
1122
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
1129
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
1136
|
-
return /* @__PURE__ */ L(
|
|
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
|
|
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
|
|
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
|
|
1158
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
1165
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
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
|
|
1179
|
-
return /* @__PURE__ */ I(
|
|
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
|
|
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(
|
|
1205
|
+
return O.useEffect(() => () => a.current?.(!1), []), /* @__PURE__ */ L(ce.Provider, {
|
|
1198
1206
|
value: s,
|
|
1199
|
-
children: [e, /* @__PURE__ */ I(
|
|
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(
|
|
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
|
|
1222
|
+
var en = ({ ...e }) => {
|
|
1215
1223
|
let t = s().props.appearance?.theme ?? "system";
|
|
1216
|
-
return /* @__PURE__ */ I(
|
|
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(
|
|
1222
|
-
info: /* @__PURE__ */ I(
|
|
1223
|
-
warning: /* @__PURE__ */ I(
|
|
1224
|
-
error: /* @__PURE__ */ I(
|
|
1225
|
-
loading: /* @__PURE__ */ I(
|
|
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
|
-
},
|
|
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
|
|
1251
|
+
function nn(e) {
|
|
1244
1252
|
let t = e;
|
|
1245
|
-
return t?.name === "ChunkLoadError" ||
|
|
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
|
|
1250
|
-
let
|
|
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:
|
|
1259
|
-
}), !
|
|
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:
|
|
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:
|
|
1276
|
+
icon: Te,
|
|
1269
1277
|
className: "size-4"
|
|
1270
|
-
}),
|
|
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(
|
|
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
|
|
1282
|
-
return
|
|
1289
|
+
function an(e, t) {
|
|
1290
|
+
return t instanceof v && t.status > 0 && t.status < 500 ? !1 : e < 2;
|
|
1283
1291
|
}
|
|
1284
|
-
var
|
|
1292
|
+
var on = (e) => {
|
|
1285
1293
|
let { toastApiError: t } = c(l(e));
|
|
1286
|
-
return new
|
|
1287
|
-
queryCache: new
|
|
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:
|
|
1303
|
+
retry: an
|
|
1296
1304
|
},
|
|
1297
1305
|
mutations: { retry: !1 }
|
|
1298
1306
|
}
|
|
1299
1307
|
});
|
|
1300
|
-
},
|
|
1301
|
-
let t =
|
|
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
|
-
},
|
|
1304
|
-
function
|
|
1305
|
-
let t = N(e === "auto" ?
|
|
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
|
|
1318
|
+
var pn = (e) => typeof e == "string" ? {
|
|
1311
1319
|
id: e,
|
|
1312
1320
|
slug: e
|
|
1313
1321
|
} : e;
|
|
1314
|
-
function
|
|
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(
|
|
1332
|
+
}), /* @__PURE__ */ I(hn, {
|
|
1325
1333
|
...e,
|
|
1326
1334
|
selected: t,
|
|
1327
1335
|
onSelected: n
|
|
1328
1336
|
}, r.generation);
|
|
1329
1337
|
}
|
|
1330
|
-
function
|
|
1331
|
-
let i =
|
|
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 ?
|
|
1336
|
-
|
|
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 ??
|
|
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
|
|
1361
|
-
|
|
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
|
-
...
|
|
1377
|
+
...G(r.appearance, "orba"),
|
|
1370
1378
|
...r.style
|
|
1371
1379
|
},
|
|
1372
|
-
children: /* @__PURE__ */ I(
|
|
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(
|
|
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(
|
|
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
|
|
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(
|
|
1405
|
+
return this.state.error ? /* @__PURE__ */ I(rn, { error: this.state.error }) : this.props.children;
|
|
1398
1406
|
}
|
|
1399
1407
|
};
|
|
1400
|
-
function
|
|
1408
|
+
function _n({ children: e }) {
|
|
1401
1409
|
let t = d();
|
|
1402
|
-
return /* @__PURE__ */ I(
|
|
1410
|
+
return /* @__PURE__ */ I(gn, { children: e }, t.pathname);
|
|
1403
1411
|
}
|
|
1404
1412
|
//#endregion
|
|
1405
1413
|
//#region src/admin/summary.tsx
|
|
1406
|
-
function
|
|
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(() =>
|
|
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
|
|
1432
|
+
function yn(e) {
|
|
1425
1433
|
let [t, n] = M(0), [r, i] = M();
|
|
1426
|
-
|
|
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
|
|
1451
|
-
let t =
|
|
1452
|
-
return
|
|
1453
|
-
}
|
|
1454
|
-
var
|
|
1455
|
-
function
|
|
1456
|
-
let
|
|
1457
|
-
let [
|
|
1458
|
-
|
|
1459
|
-
|
|
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
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
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:
|
|
1476
|
+
customer: n,
|
|
1469
1477
|
subscriptions: i,
|
|
1470
1478
|
entitlements: a,
|
|
1471
1479
|
access: o,
|
|
1472
1480
|
payments: s
|
|
1473
1481
|
};
|
|
1474
|
-
}, [
|
|
1482
|
+
}, [r, e.customer]));
|
|
1475
1483
|
return /* @__PURE__ */ I("section", {
|
|
1476
1484
|
className: ["orba", e.className].filter(Boolean).join(" "),
|
|
1477
|
-
"data-orba-theme":
|
|
1478
|
-
style:
|
|
1485
|
+
"data-orba-theme": n,
|
|
1486
|
+
style: G(e.appearance, "orba"),
|
|
1479
1487
|
children: /* @__PURE__ */ L("div", {
|
|
1480
|
-
className: "rounded-
|
|
1481
|
-
children: [
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
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(
|
|
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
|
|
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
|
|
1536
|
-
async function
|
|
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 =
|
|
1577
|
+
} : e.merchant, n = _(r({
|
|
1541
1578
|
...e,
|
|
1542
1579
|
merchant: t
|
|
1543
|
-
})),
|
|
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,
|
|
1548
|
-
if (
|
|
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),
|
|
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 [
|
|
1593
|
+
return [wn];
|
|
1557
1594
|
}
|
|
1558
|
-
var
|
|
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
|
-
},
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
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
|