@openrails/billing-ui 0.274.0 → 0.276.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/README.md +10 -1
- package/dist/admin/console.d.ts +33 -0
- package/dist/admin/context.d.ts +14 -0
- package/dist/admin/index.d.ts +1 -0
- package/dist/admin/lib/api/endpoints.d.ts +2 -1
- package/dist/admin/lib/api/index.d.ts +1 -0
- package/dist/admin/lib/api/order-endpoints.d.ts +1 -0
- package/dist/admin/lib/api/types.d.ts +2 -12
- package/dist/admin/lib/format.d.ts +5 -1
- package/dist/admin/lib/order-queries.d.ts +3 -0
- package/dist/admin/lib/queries.d.ts +3 -0
- package/dist/admin/messages.d.ts +13 -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/subscriptions/change-subscription-dialog.d.ts +4 -7
- package/dist/admin/pages/subscriptions/subscription-change-options.d.ts +6 -15
- package/dist/{admin-attempts-Dzipkstg.js → admin-attempts-CP5CWyNR.js} +28 -28
- package/dist/{admin-attempts-Dzipkstg.js.map → admin-attempts-CP5CWyNR.js.map} +1 -1
- package/dist/{admin-auth-BCl_Tv3t.js → admin-auth-DlIOmwPo.js} +2 -2
- package/dist/{admin-auth-BCl_Tv3t.js.map → admin-auth-DlIOmwPo.js.map} +1 -1
- package/dist/{admin-badge-kmYQM9Ge.js → admin-badge-DR_8AhdC.js} +2 -2
- package/dist/{admin-badge-kmYQM9Ge.js.map → admin-badge-DR_8AhdC.js.map} +1 -1
- package/dist/{admin-button-Cq9ZfX4R.js → admin-button-DBzTD6By.js} +2 -2
- package/dist/{admin-button-Cq9ZfX4R.js.map → admin-button-DBzTD6By.js.map} +1 -1
- package/dist/{admin-capabilities-k5fQZhN9.js → admin-capabilities-CZdT1Pxe.js} +2 -2
- package/dist/{admin-capabilities-k5fQZhN9.js.map → admin-capabilities-CZdT1Pxe.js.map} +1 -1
- package/dist/{admin-card-C8k67jJv.js → admin-card-mZl4-s5d.js} +2 -2
- package/dist/{admin-card-C8k67jJv.js.map → admin-card-mZl4-s5d.js.map} +1 -1
- package/dist/{admin-catalog-CON-GwKL.js → admin-catalog-DpTjS0Yo.js} +38 -38
- package/dist/{admin-catalog-CON-GwKL.js.map → admin-catalog-DpTjS0Yo.js.map} +1 -1
- package/dist/{admin-cursor-pager-DqFruoNu.js → admin-cursor-pager-C-KjCIy9.js} +4 -4
- package/dist/{admin-cursor-pager-DqFruoNu.js.map → admin-cursor-pager-C-KjCIy9.js.map} +1 -1
- package/dist/{admin-customers-CWWOrcVR.js → admin-customers-BE3N839X.js} +12 -12
- package/dist/{admin-customers-CWWOrcVR.js.map → admin-customers-BE3N839X.js.map} +1 -1
- package/dist/{admin-dashboard-BiShWFk2.js → admin-dashboard-BxjkV15J.js} +25 -17
- package/dist/admin-dashboard-BxjkV15J.js.map +1 -0
- package/dist/{admin-data-table-CdsjYJh5.js → admin-data-table-D89AwWz_.js} +5 -5
- package/dist/{admin-data-table-CdsjYJh5.js.map → admin-data-table-D89AwWz_.js.map} +1 -1
- package/dist/{admin-detail-BWSC1aCH.js → admin-detail-BKe9xqPd.js} +41 -41
- package/dist/{admin-detail-BWSC1aCH.js.map → admin-detail-BKe9xqPd.js.map} +1 -1
- package/dist/admin-detail-C8lD7U2t.js +699 -0
- package/dist/admin-detail-C8lD7U2t.js.map +1 -0
- package/dist/{admin-detail-CMmhZQ2A.js → admin-detail-D6zD085K.js} +45 -37
- package/dist/admin-detail-D6zD085K.js.map +1 -0
- package/dist/{admin-detail-Cyuf_i9U.js → admin-detail-Ln56otK0.js} +40 -40
- package/dist/{admin-detail-Cyuf_i9U.js.map → admin-detail-Ln56otK0.js.map} +1 -1
- package/dist/{admin-detail-CiONe1Pt.js → admin-detail-P-UnNvXJ.js} +171 -171
- package/dist/admin-detail-P-UnNvXJ.js.map +1 -0
- package/dist/{admin-dialog-Ch7rTOCr.js → admin-dialog-Dn2FRJu4.js} +3 -3
- package/dist/{admin-dialog-Ch7rTOCr.js.map → admin-dialog-Dn2FRJu4.js.map} +1 -1
- package/dist/{admin-dropdown-menu-Bah3f8AZ.js → admin-dropdown-menu-DLUn6Uj3.js} +2 -2
- package/dist/{admin-dropdown-menu-Bah3f8AZ.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-Bt__Cd_U.js → admin-fact-card-DKvBnUXB.js} +2 -2
- package/dist/{admin-fact-card-Bt__Cd_U.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-pzTO6_0v.js → admin-health-DmnI4e8K.js} +10 -10
- package/dist/{admin-health-pzTO6_0v.js.map → admin-health-DmnI4e8K.js.map} +1 -1
- package/dist/{admin-imports-tT5et8-V.js → admin-imports-C0aMP6sj.js} +18 -18
- package/dist/{admin-imports-tT5et8-V.js.map → admin-imports-C0aMP6sj.js.map} +1 -1
- package/dist/{admin-input-DvRZy_2a.js → admin-input-JKrQIGfD.js} +2 -2
- package/dist/{admin-input-DvRZy_2a.js.map → admin-input-JKrQIGfD.js.map} +1 -1
- package/dist/{admin-label-QZtWJGH-.js → admin-label-CHWsVIZC.js} +2 -2
- package/dist/{admin-label-QZtWJGH-.js.map → admin-label-CHWsVIZC.js.map} +1 -1
- package/dist/{admin-linked-table-row-6jkCKwMn.js → admin-linked-table-row-BMZYYsuk.js} +3 -3
- package/dist/{admin-linked-table-row-6jkCKwMn.js.map → admin-linked-table-row-BMZYYsuk.js.map} +1 -1
- package/dist/{admin-map-dialog-BV54mvMQ.js → admin-map-dialog-BHUGdCcv.js} +10 -10
- package/dist/{admin-map-dialog-BV54mvMQ.js.map → admin-map-dialog-BHUGdCcv.js.map} +1 -1
- package/dist/{admin-metering-Bv5EcX6M.js → admin-metering-CDqueHUh.js} +15 -15
- package/dist/{admin-metering-Bv5EcX6M.js.map → admin-metering-CDqueHUh.js.map} +1 -1
- package/dist/{admin-missing-record-BXqGFDt3.js → admin-missing-record-BPFs3MmO.js} +2 -2
- package/dist/{admin-missing-record-BXqGFDt3.js.map → admin-missing-record-BPFs3MmO.js.map} +1 -1
- package/dist/{admin-ops-h3RjpcNu.js → admin-ops-CL2kjDwi.js} +18 -15
- 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-BjWYU5A-.js → admin-price-detail-BOmeWw15.js} +15 -15
- package/dist/{admin-price-detail-BjWYU5A-.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-CTbkbmYc.js → admin-price-wizard-B6s5OJeO.js} +9 -9
- package/dist/{admin-price-wizard-CTbkbmYc.js.map → admin-price-wizard-B6s5OJeO.js.map} +1 -1
- package/dist/{admin-proposals-Ci9Q8j7Y.js → admin-proposals-DVrl-ym4.js} +20 -20
- package/dist/{admin-proposals-Ci9Q8j7Y.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-nfflPp21.js → admin-range-picker-C6BtSm2B.js} +5 -5
- package/dist/{admin-range-picker-nfflPp21.js.map → admin-range-picker-C6BtSm2B.js.map} +1 -1
- package/dist/{admin-records-CrTCorWH.js → admin-records-DKtcgN11.js} +19 -19
- package/dist/{admin-records-CrTCorWH.js.map → admin-records-DKtcgN11.js.map} +1 -1
- package/dist/{admin-reports-BO6wrvtw.js → admin-reports-CtPoiceH.js} +8 -8
- package/dist/{admin-reports-BO6wrvtw.js.map → admin-reports-CtPoiceH.js.map} +1 -1
- package/dist/{admin-select-DvfJ80Rg.js → admin-select-6Yuh5M1Q.js} +2 -2
- package/dist/{admin-select-DvfJ80Rg.js.map → admin-select-6Yuh5M1Q.js.map} +1 -1
- package/dist/{admin-settings-BOoTzhyf.js → admin-settings-DscHu4ww.js} +560 -550
- package/dist/admin-settings-DscHu4ww.js.map +1 -0
- package/dist/{admin-shared-BbGT_qTo.js → admin-shared-BywM-MMp.js} +13 -9
- package/dist/{admin-shared-BbGT_qTo.js.map → admin-shared-BywM-MMp.js.map} +1 -1
- package/dist/{admin-skeleton-B2a4ScVE.js → admin-skeleton-lndmw89u.js} +2 -2
- package/dist/{admin-skeleton-B2a4ScVE.js.map → admin-skeleton-lndmw89u.js.map} +1 -1
- package/dist/{admin-status-badge-Bp6cssXY.js → admin-status-badge-IL8ofZ_6.js} +3 -3
- package/dist/{admin-status-badge-Bp6cssXY.js.map → admin-status-badge-IL8ofZ_6.js.map} +1 -1
- package/dist/{admin-subscriptions-D9JmoicC.js → admin-subscriptions-Cd5CGrue.js} +83 -87
- package/dist/admin-subscriptions-Cd5CGrue.js.map +1 -0
- package/dist/{admin-switch-DBBxJRZP.js → admin-switch-DpwQSzEm.js} +2 -2
- package/dist/{admin-switch-DBBxJRZP.js.map → admin-switch-DpwQSzEm.js.map} +1 -1
- package/dist/{admin-table-CPDoVfK4.js → admin-table-D-GdGM1m.js} +2 -2
- package/dist/{admin-table-CPDoVfK4.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-d3fu_waS.js → admin-textarea-xsp5V9xM.js} +2 -2
- package/dist/{admin-textarea-d3fu_waS.js.map → admin-textarea-xsp5V9xM.js.map} +1 -1
- package/dist/{admin-typed-confirm-dialog-BVklYjFo.js → admin-typed-confirm-dialog-NiEDwX_0.js} +6 -6
- package/dist/{admin-typed-confirm-dialog-BVklYjFo.js.map → admin-typed-confirm-dialog-NiEDwX_0.js.map} +1 -1
- package/dist/{admin-utils-DTT53IpS.js → admin-utils-wuPUD0uh.js} +152 -137
- package/dist/admin-utils-wuPUD0uh.js.map +1 -0
- package/dist/{admin-widget-viz-Exsqz3Dw.js → admin-widget-viz-kHHVmDEx.js} +215 -187
- package/dist/admin-widget-viz-kHHVmDEx.js.map +1 -0
- package/dist/admin.css +1 -1
- package/dist/admin.js +581 -434
- 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 +6 -2
- package/dist/admin-customer-search-CJHB80rg.js +0 -117
- package/dist/admin-customer-search-CJHB80rg.js.map +0 -1
- package/dist/admin-dashboard-BiShWFk2.js.map +0 -1
- package/dist/admin-detail-CKRtK43V.js +0 -728
- package/dist/admin-detail-CKRtK43V.js.map +0 -1
- package/dist/admin-detail-CMmhZQ2A.js.map +0 -1
- package/dist/admin-detail-CiONe1Pt.js.map +0 -1
- package/dist/admin-format-DoohJ7Fg.js +0 -136
- package/dist/admin-format-DoohJ7Fg.js.map +0 -1
- package/dist/admin-ops-h3RjpcNu.js.map +0 -1
- package/dist/admin-orders-DYxPiuTl.js +0 -192
- package/dist/admin-orders-DYxPiuTl.js.map +0 -1
- package/dist/admin-parked-ClKA60d5.js +0 -193
- package/dist/admin-parked-ClKA60d5.js.map +0 -1
- package/dist/admin-payments-BlIuy3wL.js +0 -220
- package/dist/admin-payments-BlIuy3wL.js.map +0 -1
- package/dist/admin-provider-prices-B6Ayq-eN.js +0 -246
- package/dist/admin-provider-prices-B6Ayq-eN.js.map +0 -1
- package/dist/admin-settings-BOoTzhyf.js.map +0 -1
- package/dist/admin-subscriptions-D9JmoicC.js.map +0 -1
- package/dist/admin-tabs-DDUv3kiu.js +0 -46
- package/dist/admin-tabs-DDUv3kiu.js.map +0 -1
- package/dist/admin-utils-DTT53IpS.js.map +0 -1
- package/dist/admin-widget-viz-Exsqz3Dw.js.map +0 -1
- package/dist/client-BYgnI6_h.js.map +0 -1
package/dist/admin.js
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
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-
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as
|
|
4
|
-
import { i as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { n as
|
|
9
|
-
import * as
|
|
10
|
-
import { Component as
|
|
11
|
-
import { QueryCache as
|
|
12
|
-
import { Toaster as
|
|
13
|
-
import { Fragment as
|
|
14
|
-
import { HugeiconsIcon as
|
|
15
|
-
import { Add01Icon 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 y, i as b, n as x, o as S, r as C, s as w, t as ee } from "./admin-dropdown-menu-DLUn6Uj3.js";
|
|
3
|
+
import { t as T } from "./admin-button-DBzTD6By.js";
|
|
4
|
+
import { i as E, o as te, p as D, t as ne, u as O } from "./admin-capabilities-CZdT1Pxe.js";
|
|
5
|
+
import { t as k } from "./admin-auth-DlIOmwPo.js";
|
|
6
|
+
import { p as re, s as ie } from "./admin-format-BbiTCqUG.js";
|
|
7
|
+
import { t as ae } from "./admin-confirm-katGq0Qo.js";
|
|
8
|
+
import { n as oe } from "./admin-status-badge-IL8ofZ_6.js";
|
|
9
|
+
import * as A from "react";
|
|
10
|
+
import { Component as se, Suspense as ce, createElement as le, lazy as j, useCallback as M, useEffect as N, useId as ue, useLayoutEffect as de, useMemo as P, useRef as fe, useState as F, useSyncExternalStore as pe } from "react";
|
|
11
|
+
import { QueryCache as me, QueryClient as he, QueryClientProvider as ge, useQuery as I } from "@tanstack/react-query";
|
|
12
|
+
import { Toaster as _e } from "sonner";
|
|
13
|
+
import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
14
|
+
import { HugeiconsIcon as B } from "@hugeicons/react";
|
|
15
|
+
import { Add01Icon as ve, Alert01Icon as ye, AlertCircleIcon as be, CreditCardIcon as xe, 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
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
|
|
18
|
-
import { useRender as
|
|
17
|
+
import { mergeProps as V } from "@base-ui/react/merge-props";
|
|
18
|
+
import { useRender as H } from "@base-ui/react/use-render";
|
|
19
19
|
import { cva as Be } from "class-variance-authority";
|
|
20
20
|
import { Separator as Ve } from "@base-ui/react/separator";
|
|
21
|
-
import { Dialog as
|
|
22
|
-
import { Tooltip as
|
|
23
|
-
import { AlertDialog as
|
|
21
|
+
import { Dialog as U } from "@base-ui/react/dialog";
|
|
22
|
+
import { Tooltip as W } from "@base-ui/react/tooltip";
|
|
23
|
+
import { AlertDialog as G } from "@base-ui/react/alert-dialog";
|
|
24
|
+
import { SignInPanel as He, StepUpProvider as Ue, useStepUpGuard as We } from "@openrails/auth-ui";
|
|
25
|
+
import { useAuthClient as Ge, useSession as Ke } from "@openrails/auth-ui/react";
|
|
26
|
+
import { AuthAdmin as qe, useGroupAdminAccess as Je, useHistoryNavigation as Ye, useUsersAdminAccess as Xe } from "@openrails/auth-ui/admin";
|
|
24
27
|
//#region src/appearance.ts
|
|
25
|
-
var
|
|
28
|
+
var Ze = {
|
|
26
29
|
background: "--background",
|
|
27
30
|
foreground: "--foreground",
|
|
28
31
|
card: "--card",
|
|
@@ -37,131 +40,131 @@ var He = {
|
|
|
37
40
|
radius: "--radius",
|
|
38
41
|
fontFamily: "--orck-font"
|
|
39
42
|
};
|
|
40
|
-
function
|
|
43
|
+
function K(e, t = "orck") {
|
|
41
44
|
let n = e?.variables;
|
|
42
45
|
if (!n) return;
|
|
43
46
|
let r = {};
|
|
44
|
-
for (let [e, i] of Object.entries(n)) i && (r[
|
|
47
|
+
for (let [e, i] of Object.entries(n)) i && (r[Ze[e].replace("--orck-", `--${t}-`)] = i);
|
|
45
48
|
return r;
|
|
46
49
|
}
|
|
47
50
|
//#endregion
|
|
48
51
|
//#region src/admin/routes.tsx
|
|
49
|
-
var
|
|
52
|
+
var Qe = [
|
|
50
53
|
{
|
|
51
54
|
path: "/payments/attempts",
|
|
52
|
-
Component:
|
|
55
|
+
Component: j(() => import("./admin-attempts-CP5CWyNR.js").then((e) => ({ default: e.AttemptsPage })))
|
|
53
56
|
},
|
|
54
57
|
{
|
|
55
58
|
path: "/catalog/metering",
|
|
56
|
-
Component:
|
|
59
|
+
Component: j(() => import("./admin-metering-CDqueHUh.js").then((e) => ({ default: e.CatalogMeteringPage })))
|
|
57
60
|
},
|
|
58
61
|
{
|
|
59
62
|
path: "/payments/health",
|
|
60
|
-
Component:
|
|
63
|
+
Component: j(() => import("./admin-health-DmnI4e8K.js").then((e) => ({ default: e.PaymentHealthPage })))
|
|
61
64
|
},
|
|
62
65
|
{
|
|
63
66
|
path: "/payments/cycles",
|
|
64
|
-
Component:
|
|
67
|
+
Component: j(() => import("./admin-attempts-CP5CWyNR.js").then((e) => ({ default: e.CyclesPage })))
|
|
65
68
|
},
|
|
66
69
|
{
|
|
67
70
|
path: "/catalog/prices",
|
|
68
|
-
Component:
|
|
71
|
+
Component: j(() => import("./admin-catalog-DpTjS0Yo.js").then((e) => ({ default: e.CatalogPricesPage })))
|
|
69
72
|
},
|
|
70
73
|
{
|
|
71
74
|
path: "/subscriptions",
|
|
72
|
-
Component:
|
|
75
|
+
Component: j(() => import("./admin-subscriptions-Cd5CGrue.js").then((e) => ({ default: e.SubscriptionsPage })))
|
|
73
76
|
},
|
|
74
77
|
{
|
|
75
78
|
path: "/customers",
|
|
76
|
-
Component:
|
|
79
|
+
Component: j(() => import("./admin-customers-BE3N839X.js").then((e) => ({ default: e.CustomersPage })))
|
|
77
80
|
},
|
|
78
81
|
{
|
|
79
82
|
path: "/payments",
|
|
80
|
-
Component:
|
|
83
|
+
Component: j(() => import("./admin-payments-DJcjwRA4.js").then((e) => ({ default: e.PaymentsPage })))
|
|
81
84
|
},
|
|
82
85
|
{
|
|
83
86
|
path: "/settings",
|
|
84
|
-
Component:
|
|
87
|
+
Component: j(() => import("./admin-settings-DscHu4ww.js").then((e) => ({ default: e.SettingsPage })))
|
|
85
88
|
},
|
|
86
89
|
{
|
|
87
90
|
path: "/reports",
|
|
88
|
-
Component:
|
|
91
|
+
Component: j(() => import("./admin-reports-CtPoiceH.js").then((e) => ({ default: e.ReportsPage })))
|
|
89
92
|
},
|
|
90
93
|
{
|
|
91
94
|
path: "/catalog",
|
|
92
|
-
Component:
|
|
95
|
+
Component: j(() => import("./admin-catalog-DpTjS0Yo.js").then((e) => ({ default: e.CatalogProductsPage })))
|
|
93
96
|
},
|
|
94
97
|
{
|
|
95
98
|
path: "/orders",
|
|
96
|
-
Component:
|
|
99
|
+
Component: j(() => import("./admin-orders-C1Sf2qhc.js").then((e) => ({ default: e.OrdersPage })))
|
|
97
100
|
},
|
|
98
101
|
{
|
|
99
102
|
path: "/ops/imports",
|
|
100
|
-
Component:
|
|
103
|
+
Component: j(() => import("./admin-imports-C0aMP6sj.js").then((e) => ({ default: e.ImportsPage })))
|
|
101
104
|
},
|
|
102
105
|
{
|
|
103
106
|
path: "/ops/imports/:id",
|
|
104
|
-
Component:
|
|
107
|
+
Component: j(() => import("./admin-detail-Ln56otK0.js").then((e) => ({ default: e.ImportDetailPage })))
|
|
105
108
|
},
|
|
106
109
|
{
|
|
107
110
|
path: "/ops/imports/:id/records",
|
|
108
|
-
Component:
|
|
111
|
+
Component: j(() => import("./admin-records-DKtcgN11.js").then((e) => ({ default: e.ImportRecordsPage })))
|
|
109
112
|
},
|
|
110
113
|
{
|
|
111
114
|
path: "/ops/provider-prices",
|
|
112
|
-
Component:
|
|
115
|
+
Component: j(() => import("./admin-provider-prices-BVVogH7Q.js").then((e) => ({ default: e.ProviderPricesPage })))
|
|
113
116
|
},
|
|
114
117
|
{
|
|
115
118
|
path: "/ops/proposals",
|
|
116
|
-
Component:
|
|
119
|
+
Component: j(() => import("./admin-proposals-DVrl-ym4.js").then((e) => ({ default: e.ProposalsPage })))
|
|
117
120
|
},
|
|
118
121
|
{
|
|
119
122
|
path: "/ops/parked",
|
|
120
|
-
Component:
|
|
123
|
+
Component: j(() => import("./admin-parked-a0tB5bhG.js").then((e) => ({ default: e.ParkedPage })))
|
|
121
124
|
},
|
|
122
125
|
{
|
|
123
126
|
path: "/ops",
|
|
124
|
-
Component:
|
|
127
|
+
Component: j(() => import("./admin-ops-CL2kjDwi.js").then((e) => ({ default: e.OpsPage })))
|
|
125
128
|
},
|
|
126
129
|
{
|
|
127
130
|
path: "/",
|
|
128
|
-
Component:
|
|
131
|
+
Component: j(() => import("./admin-dashboard-BxjkV15J.js").then((e) => ({ default: e.DashboardPage })))
|
|
129
132
|
},
|
|
130
133
|
{
|
|
131
134
|
path: "/customers/:customerId",
|
|
132
|
-
Component:
|
|
135
|
+
Component: j(() => import("./admin-detail-P-UnNvXJ.js").then((e) => ({ default: e.CustomerDetailPage })))
|
|
133
136
|
},
|
|
134
137
|
{
|
|
135
138
|
path: "/payments/attempts/:id",
|
|
136
|
-
Component:
|
|
139
|
+
Component: j(() => import("./admin-attempts-CP5CWyNR.js").then((e) => ({ default: e.AttemptDetailPage })))
|
|
137
140
|
},
|
|
138
141
|
{
|
|
139
142
|
path: "/catalog/metering/:key",
|
|
140
|
-
Component:
|
|
143
|
+
Component: j(() => import("./admin-metering-CDqueHUh.js").then((e) => ({ default: e.MeterDetailPage })))
|
|
141
144
|
},
|
|
142
145
|
{
|
|
143
146
|
path: "/payments/cycles/:id",
|
|
144
|
-
Component:
|
|
147
|
+
Component: j(() => import("./admin-attempts-CP5CWyNR.js").then((e) => ({ default: e.CycleDetailPage })))
|
|
145
148
|
},
|
|
146
149
|
{
|
|
147
150
|
path: "/catalog/prices/:id",
|
|
148
|
-
Component:
|
|
151
|
+
Component: j(() => import("./admin-price-detail-BOmeWw15.js").then((e) => ({ default: e.PriceDetailPage })))
|
|
149
152
|
},
|
|
150
153
|
{
|
|
151
154
|
path: "/subscriptions/:id",
|
|
152
|
-
Component:
|
|
155
|
+
Component: j(() => import("./admin-detail-C8lD7U2t.js").then((e) => ({ default: e.SubscriptionDetailPage })))
|
|
153
156
|
},
|
|
154
157
|
{
|
|
155
158
|
path: "/payments/:id",
|
|
156
|
-
Component:
|
|
159
|
+
Component: j(() => import("./admin-detail-BKe9xqPd.js").then((e) => ({ default: e.PaymentDetailPage })))
|
|
157
160
|
},
|
|
158
161
|
{
|
|
159
162
|
path: "/orders/:id",
|
|
160
|
-
Component:
|
|
163
|
+
Component: j(() => import("./admin-detail-D6zD085K.js").then((e) => ({ default: e.OrderDetailPage })))
|
|
161
164
|
}
|
|
162
165
|
];
|
|
163
|
-
function
|
|
164
|
-
for (let { path: t, Component: n } of
|
|
166
|
+
function $e(e) {
|
|
167
|
+
for (let { path: t, Component: n } of Qe) {
|
|
165
168
|
let r = e.replace(/\/$/, "").split("/"), i = t === "/" ? [""] : t.split("/"), a = {};
|
|
166
169
|
if (r.length === i.length && i.every((e, t) => {
|
|
167
170
|
if (e.startsWith(":")) try {
|
|
@@ -176,35 +179,35 @@ function We(e) {
|
|
|
176
179
|
};
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
|
-
function
|
|
180
|
-
let e =
|
|
181
|
-
return e ? /* @__PURE__ */
|
|
182
|
+
function et() {
|
|
183
|
+
let e = $e(d().pathname);
|
|
184
|
+
return e ? /* @__PURE__ */ R(a, {
|
|
182
185
|
params: e.params,
|
|
183
|
-
children: /* @__PURE__ */
|
|
184
|
-
fallback: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ R(ce, {
|
|
187
|
+
fallback: /* @__PURE__ */ R("p", {
|
|
185
188
|
role: "status",
|
|
186
|
-
children: /* @__PURE__ */
|
|
189
|
+
children: /* @__PURE__ */ R(t, { id: "Loading…" })
|
|
187
190
|
}),
|
|
188
|
-
children: /* @__PURE__ */
|
|
191
|
+
children: /* @__PURE__ */ R(e.Component, {})
|
|
189
192
|
})
|
|
190
|
-
}) : /* @__PURE__ */
|
|
193
|
+
}) : /* @__PURE__ */ R("p", {
|
|
191
194
|
role: "status",
|
|
192
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ R(t, { id: "This billing page does not exist." })
|
|
193
196
|
});
|
|
194
197
|
}
|
|
195
198
|
//#endregion
|
|
196
199
|
//#region src/admin/hooks/use-mobile.ts
|
|
197
|
-
var
|
|
198
|
-
let t = window.matchMedia(
|
|
200
|
+
var tt = "(max-width: 767px)", nt = (e) => {
|
|
201
|
+
let t = window.matchMedia(tt);
|
|
199
202
|
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
200
203
|
};
|
|
201
|
-
function
|
|
202
|
-
return
|
|
204
|
+
function rt() {
|
|
205
|
+
return pe(nt, () => window.matchMedia(tt).matches, () => !1);
|
|
203
206
|
}
|
|
204
207
|
//#endregion
|
|
205
208
|
//#region src/admin/components/ui/separator.tsx
|
|
206
|
-
function
|
|
207
|
-
return /* @__PURE__ */
|
|
209
|
+
function it({ className: e, orientation: t = "horizontal", ...n }) {
|
|
210
|
+
return /* @__PURE__ */ R(Ve, {
|
|
208
211
|
"data-slot": "separator",
|
|
209
212
|
orientation: t,
|
|
210
213
|
className: h("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", e),
|
|
@@ -213,62 +216,62 @@ function Je({ className: e, orientation: t = "horizontal", ...n }) {
|
|
|
213
216
|
}
|
|
214
217
|
//#endregion
|
|
215
218
|
//#region src/admin/components/ui/sheet.tsx
|
|
216
|
-
function
|
|
217
|
-
return /* @__PURE__ */
|
|
219
|
+
function at({ ...e }) {
|
|
220
|
+
return /* @__PURE__ */ R(U.Root, {
|
|
218
221
|
"data-slot": "sheet",
|
|
219
222
|
...e
|
|
220
223
|
});
|
|
221
224
|
}
|
|
222
|
-
function
|
|
223
|
-
return /* @__PURE__ */
|
|
225
|
+
function ot({ ...e }) {
|
|
226
|
+
return /* @__PURE__ */ R(U.Portal, {
|
|
224
227
|
container: s().portal,
|
|
225
228
|
"data-slot": "sheet-portal",
|
|
226
229
|
...e
|
|
227
230
|
});
|
|
228
231
|
}
|
|
229
|
-
function
|
|
230
|
-
return /* @__PURE__ */
|
|
232
|
+
function st({ className: e, ...t }) {
|
|
233
|
+
return /* @__PURE__ */ R(U.Backdrop, {
|
|
231
234
|
"data-slot": "sheet-overlay",
|
|
232
235
|
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),
|
|
233
236
|
...t
|
|
234
237
|
});
|
|
235
238
|
}
|
|
236
|
-
function
|
|
237
|
-
return /* @__PURE__ */
|
|
239
|
+
function ct({ className: e, children: n, side: r = "right", showCloseButton: i = !0, ...a }) {
|
|
240
|
+
return /* @__PURE__ */ z(ot, { children: [/* @__PURE__ */ R(st, {}), /* @__PURE__ */ z(U.Popup, {
|
|
238
241
|
"data-slot": "sheet-content",
|
|
239
242
|
"data-side": r,
|
|
240
243
|
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),
|
|
241
244
|
...a,
|
|
242
|
-
children: [n, i && /* @__PURE__ */
|
|
245
|
+
children: [n, i && /* @__PURE__ */ z(U.Close, {
|
|
243
246
|
"data-slot": "sheet-close",
|
|
244
|
-
render: /* @__PURE__ */
|
|
247
|
+
render: /* @__PURE__ */ R(T, {
|
|
245
248
|
variant: "ghost",
|
|
246
249
|
className: "absolute top-3 right-3",
|
|
247
250
|
size: "icon-sm"
|
|
248
251
|
}),
|
|
249
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ R(ze, {}), /* @__PURE__ */ R("span", {
|
|
250
253
|
className: "sr-only",
|
|
251
|
-
children: /* @__PURE__ */
|
|
254
|
+
children: /* @__PURE__ */ R(t, { id: "Close" })
|
|
252
255
|
})]
|
|
253
256
|
})]
|
|
254
257
|
})] });
|
|
255
258
|
}
|
|
256
|
-
function
|
|
257
|
-
return /* @__PURE__ */
|
|
259
|
+
function lt({ className: e, ...t }) {
|
|
260
|
+
return /* @__PURE__ */ R("div", {
|
|
258
261
|
"data-slot": "sheet-header",
|
|
259
262
|
className: h("flex flex-col gap-0.5 p-4", e),
|
|
260
263
|
...t
|
|
261
264
|
});
|
|
262
265
|
}
|
|
263
|
-
function
|
|
264
|
-
return /* @__PURE__ */
|
|
266
|
+
function ut({ className: e, ...t }) {
|
|
267
|
+
return /* @__PURE__ */ R(U.Title, {
|
|
265
268
|
"data-slot": "sheet-title",
|
|
266
269
|
className: h("font-heading text-base font-medium text-foreground", e),
|
|
267
270
|
...t
|
|
268
271
|
});
|
|
269
272
|
}
|
|
270
|
-
function
|
|
271
|
-
return /* @__PURE__ */
|
|
273
|
+
function dt({ className: e, ...t }) {
|
|
274
|
+
return /* @__PURE__ */ R(U.Description, {
|
|
272
275
|
"data-slot": "sheet-description",
|
|
273
276
|
className: h("text-sm text-muted-foreground", e),
|
|
274
277
|
...t
|
|
@@ -276,60 +279,60 @@ function tt({ className: e, ...t }) {
|
|
|
276
279
|
}
|
|
277
280
|
//#endregion
|
|
278
281
|
//#region src/admin/components/ui/tooltip.tsx
|
|
279
|
-
function
|
|
280
|
-
return /* @__PURE__ */
|
|
282
|
+
function ft({ delay: e = 0, ...t }) {
|
|
283
|
+
return /* @__PURE__ */ R(W.Provider, {
|
|
281
284
|
"data-slot": "tooltip-provider",
|
|
282
285
|
delay: e,
|
|
283
286
|
...t
|
|
284
287
|
});
|
|
285
288
|
}
|
|
286
|
-
function
|
|
287
|
-
return /* @__PURE__ */
|
|
289
|
+
function pt({ ...e }) {
|
|
290
|
+
return /* @__PURE__ */ R(W.Root, {
|
|
288
291
|
"data-slot": "tooltip",
|
|
289
292
|
...e
|
|
290
293
|
});
|
|
291
294
|
}
|
|
292
|
-
function
|
|
293
|
-
return /* @__PURE__ */
|
|
295
|
+
function mt({ ...e }) {
|
|
296
|
+
return /* @__PURE__ */ R(W.Trigger, {
|
|
294
297
|
"data-slot": "tooltip-trigger",
|
|
295
298
|
...e
|
|
296
299
|
});
|
|
297
300
|
}
|
|
298
|
-
function
|
|
299
|
-
return /* @__PURE__ */
|
|
301
|
+
function ht({ className: e, side: t = "top", sideOffset: n = 4, align: r = "center", alignOffset: i = 0, children: a, ...o }) {
|
|
302
|
+
return /* @__PURE__ */ R(W.Portal, {
|
|
300
303
|
container: s().portal,
|
|
301
|
-
children: /* @__PURE__ */
|
|
304
|
+
children: /* @__PURE__ */ R(W.Positioner, {
|
|
302
305
|
align: r,
|
|
303
306
|
alignOffset: i,
|
|
304
307
|
side: t,
|
|
305
308
|
sideOffset: n,
|
|
306
309
|
className: "isolate z-50",
|
|
307
|
-
children: /* @__PURE__ */
|
|
310
|
+
children: /* @__PURE__ */ z(W.Popup, {
|
|
308
311
|
"data-slot": "tooltip-content",
|
|
309
312
|
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),
|
|
310
313
|
...o,
|
|
311
|
-
children: [a, /* @__PURE__ */
|
|
314
|
+
children: [a, /* @__PURE__ */ R(W.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" })]
|
|
312
315
|
})
|
|
313
316
|
})
|
|
314
317
|
});
|
|
315
318
|
}
|
|
316
319
|
//#endregion
|
|
317
320
|
//#region src/admin/components/ui/sidebar.tsx
|
|
318
|
-
var
|
|
321
|
+
var gt = "16rem", _t = "18rem", vt = "3rem", yt = "b", q = A.createContext(null);
|
|
319
322
|
function J() {
|
|
320
|
-
let e =
|
|
323
|
+
let e = A.useContext(q);
|
|
321
324
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
322
325
|
return e;
|
|
323
326
|
}
|
|
324
|
-
function
|
|
325
|
-
let s =
|
|
327
|
+
function bt({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...o }) {
|
|
328
|
+
let s = rt(), [c, l] = A.useState(!1), [u, d] = A.useState(e), f = t ?? u, p = A.useCallback((e) => {
|
|
326
329
|
let t = typeof e == "function" ? e(f) : e;
|
|
327
330
|
n ? n(t) : d(t);
|
|
328
|
-
}, [n, f]), m =
|
|
331
|
+
}, [n, f]), m = A.useCallback(() => s ? l((e) => !e) : p((e) => !e), [
|
|
329
332
|
s,
|
|
330
333
|
p,
|
|
331
334
|
l
|
|
332
|
-
]), g = f ? "expanded" : "collapsed", _ =
|
|
335
|
+
]), g = f ? "expanded" : "collapsed", _ = A.useMemo(() => ({
|
|
333
336
|
state: g,
|
|
334
337
|
open: f,
|
|
335
338
|
setOpen: p,
|
|
@@ -346,16 +349,16 @@ function ut({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
346
349
|
l,
|
|
347
350
|
m
|
|
348
351
|
]);
|
|
349
|
-
return /* @__PURE__ */
|
|
352
|
+
return /* @__PURE__ */ R(q.Provider, {
|
|
350
353
|
value: _,
|
|
351
|
-
children: /* @__PURE__ */
|
|
354
|
+
children: /* @__PURE__ */ R("div", {
|
|
352
355
|
"data-slot": "sidebar-wrapper",
|
|
353
356
|
onKeyDown: (e) => {
|
|
354
|
-
e.key ===
|
|
357
|
+
e.key === yt && (e.metaKey || e.ctrlKey) && (e.preventDefault(), m());
|
|
355
358
|
},
|
|
356
359
|
style: {
|
|
357
|
-
"--sidebar-width":
|
|
358
|
-
"--sidebar-width-icon":
|
|
360
|
+
"--sidebar-width": gt,
|
|
361
|
+
"--sidebar-width-icon": vt,
|
|
359
362
|
...i
|
|
360
363
|
},
|
|
361
364
|
className: h("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar relative flex min-h-[30rem] w-full", r),
|
|
@@ -364,49 +367,49 @@ function ut({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
364
367
|
})
|
|
365
368
|
});
|
|
366
369
|
}
|
|
367
|
-
function
|
|
370
|
+
function xt({ side: e = "left", variant: n = "sidebar", collapsible: r = "offcanvas", className: i, children: a, dir: o, ...s }) {
|
|
368
371
|
let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = J();
|
|
369
|
-
return r === "none" ? /* @__PURE__ */
|
|
372
|
+
return r === "none" ? /* @__PURE__ */ R("div", {
|
|
370
373
|
"data-slot": "sidebar",
|
|
371
374
|
className: h("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", i),
|
|
372
375
|
...s,
|
|
373
376
|
children: a
|
|
374
|
-
}) : c ? /* @__PURE__ */
|
|
377
|
+
}) : c ? /* @__PURE__ */ R(at, {
|
|
375
378
|
open: u,
|
|
376
379
|
onOpenChange: d,
|
|
377
380
|
...s,
|
|
378
|
-
children: /* @__PURE__ */
|
|
381
|
+
children: /* @__PURE__ */ z(ct, {
|
|
379
382
|
dir: o,
|
|
380
383
|
"data-sidebar": "sidebar",
|
|
381
384
|
"data-slot": "sidebar",
|
|
382
385
|
"data-mobile": "true",
|
|
383
386
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
384
|
-
style: { "--sidebar-width":
|
|
387
|
+
style: { "--sidebar-width": _t },
|
|
385
388
|
side: e,
|
|
386
|
-
children: [/* @__PURE__ */
|
|
389
|
+
children: [/* @__PURE__ */ z(lt, {
|
|
387
390
|
className: "sr-only",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
389
|
-
}), /* @__PURE__ */
|
|
391
|
+
children: [/* @__PURE__ */ R(ut, { children: /* @__PURE__ */ R(t, { id: "Sidebar" }) }), /* @__PURE__ */ R(dt, { children: /* @__PURE__ */ R(t, { id: "Displays the mobile sidebar." }) })]
|
|
392
|
+
}), /* @__PURE__ */ R("div", {
|
|
390
393
|
className: "flex h-full w-full flex-col",
|
|
391
394
|
children: a
|
|
392
395
|
})]
|
|
393
396
|
})
|
|
394
|
-
}) : /* @__PURE__ */
|
|
397
|
+
}) : /* @__PURE__ */ z("div", {
|
|
395
398
|
className: "group peer text-sidebar-foreground relative hidden md:block",
|
|
396
399
|
"data-state": l,
|
|
397
400
|
"data-collapsible": l === "collapsed" ? r : "",
|
|
398
401
|
"data-variant": n,
|
|
399
402
|
"data-side": e,
|
|
400
403
|
"data-slot": "sidebar",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
404
|
+
children: [/* @__PURE__ */ R("div", {
|
|
402
405
|
"data-slot": "sidebar-gap",
|
|
403
406
|
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)")
|
|
404
|
-
}), /* @__PURE__ */
|
|
407
|
+
}), /* @__PURE__ */ R("div", {
|
|
405
408
|
"data-slot": "sidebar-container",
|
|
406
409
|
"data-side": e,
|
|
407
410
|
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),
|
|
408
411
|
...s,
|
|
409
|
-
children: /* @__PURE__ */
|
|
412
|
+
children: /* @__PURE__ */ R("div", {
|
|
410
413
|
"data-sidebar": "sidebar",
|
|
411
414
|
"data-slot": "sidebar-inner",
|
|
412
415
|
className: "bg-sidebar group-data-[variant=floating]:ring-sidebar-border flex size-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1",
|
|
@@ -415,9 +418,9 @@ function dt({ side: e = "left", variant: n = "sidebar", collapsible: r = "offcan
|
|
|
415
418
|
})]
|
|
416
419
|
});
|
|
417
420
|
}
|
|
418
|
-
function
|
|
421
|
+
function St({ className: e, onClick: n, ...r }) {
|
|
419
422
|
let { toggleSidebar: i } = J();
|
|
420
|
-
return /* @__PURE__ */
|
|
423
|
+
return /* @__PURE__ */ z(T, {
|
|
421
424
|
"data-sidebar": "trigger",
|
|
422
425
|
"data-slot": "sidebar-trigger",
|
|
423
426
|
variant: "ghost",
|
|
@@ -427,15 +430,15 @@ function ft({ className: e, onClick: n, ...r }) {
|
|
|
427
430
|
n?.(e), i();
|
|
428
431
|
},
|
|
429
432
|
...r,
|
|
430
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ R(Le, {}), /* @__PURE__ */ R("span", {
|
|
431
434
|
className: "sr-only",
|
|
432
|
-
children: /* @__PURE__ */
|
|
435
|
+
children: /* @__PURE__ */ R(t, { id: "Toggle Sidebar" })
|
|
433
436
|
})]
|
|
434
437
|
});
|
|
435
438
|
}
|
|
436
|
-
function
|
|
439
|
+
function Ct({ className: e, ...t }) {
|
|
437
440
|
let { text: r } = n(), { toggleSidebar: i } = J();
|
|
438
|
-
return /* @__PURE__ */
|
|
441
|
+
return /* @__PURE__ */ R("button", {
|
|
439
442
|
"data-sidebar": "rail",
|
|
440
443
|
"data-slot": "sidebar-rail",
|
|
441
444
|
"aria-label": r("Toggle Sidebar"),
|
|
@@ -446,41 +449,41 @@ function pt({ className: e, ...t }) {
|
|
|
446
449
|
...t
|
|
447
450
|
});
|
|
448
451
|
}
|
|
449
|
-
function
|
|
450
|
-
return /* @__PURE__ */
|
|
452
|
+
function wt({ className: e, ...t }) {
|
|
453
|
+
return /* @__PURE__ */ R("main", {
|
|
451
454
|
"data-slot": "sidebar-inset",
|
|
452
455
|
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),
|
|
453
456
|
...t
|
|
454
457
|
});
|
|
455
458
|
}
|
|
456
|
-
function
|
|
457
|
-
return /* @__PURE__ */
|
|
459
|
+
function Tt({ className: e, ...t }) {
|
|
460
|
+
return /* @__PURE__ */ R("div", {
|
|
458
461
|
"data-slot": "sidebar-header",
|
|
459
462
|
"data-sidebar": "header",
|
|
460
463
|
className: h("flex flex-col gap-2 p-2", e),
|
|
461
464
|
...t
|
|
462
465
|
});
|
|
463
466
|
}
|
|
464
|
-
function
|
|
465
|
-
return /* @__PURE__ */
|
|
467
|
+
function Et({ className: e, ...t }) {
|
|
468
|
+
return /* @__PURE__ */ R("div", {
|
|
466
469
|
"data-slot": "sidebar-content",
|
|
467
470
|
"data-sidebar": "content",
|
|
468
471
|
className: h("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
469
472
|
...t
|
|
470
473
|
});
|
|
471
474
|
}
|
|
472
|
-
function
|
|
473
|
-
return /* @__PURE__ */
|
|
475
|
+
function Dt({ className: e, ...t }) {
|
|
476
|
+
return /* @__PURE__ */ R("div", {
|
|
474
477
|
"data-slot": "sidebar-group",
|
|
475
478
|
"data-sidebar": "group",
|
|
476
479
|
className: h("relative flex w-full min-w-0 flex-col p-2", e),
|
|
477
480
|
...t
|
|
478
481
|
});
|
|
479
482
|
}
|
|
480
|
-
function
|
|
481
|
-
return
|
|
483
|
+
function Ot({ className: e, render: t, ...n }) {
|
|
484
|
+
return H({
|
|
482
485
|
defaultTagName: "div",
|
|
483
|
-
props:
|
|
486
|
+
props: V({ 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),
|
|
484
487
|
render: t,
|
|
485
488
|
state: {
|
|
486
489
|
slot: "sidebar-group-label",
|
|
@@ -488,31 +491,31 @@ function vt({ className: e, render: t, ...n }) {
|
|
|
488
491
|
}
|
|
489
492
|
});
|
|
490
493
|
}
|
|
491
|
-
function
|
|
492
|
-
return /* @__PURE__ */
|
|
494
|
+
function kt({ className: e, ...t }) {
|
|
495
|
+
return /* @__PURE__ */ R("div", {
|
|
493
496
|
"data-slot": "sidebar-group-content",
|
|
494
497
|
"data-sidebar": "group-content",
|
|
495
498
|
className: h("w-full text-sm", e),
|
|
496
499
|
...t
|
|
497
500
|
});
|
|
498
501
|
}
|
|
499
|
-
function
|
|
500
|
-
return /* @__PURE__ */
|
|
502
|
+
function At({ className: e, ...t }) {
|
|
503
|
+
return /* @__PURE__ */ R("ul", {
|
|
501
504
|
"data-slot": "sidebar-menu",
|
|
502
505
|
"data-sidebar": "menu",
|
|
503
506
|
className: h("flex w-full min-w-0 flex-col gap-0", e),
|
|
504
507
|
...t
|
|
505
508
|
});
|
|
506
509
|
}
|
|
507
|
-
function
|
|
508
|
-
return /* @__PURE__ */
|
|
510
|
+
function jt({ className: e, ...t }) {
|
|
511
|
+
return /* @__PURE__ */ R("li", {
|
|
509
512
|
"data-slot": "sidebar-menu-item",
|
|
510
513
|
"data-sidebar": "menu-item",
|
|
511
514
|
className: h("group/menu-item relative", e),
|
|
512
515
|
...t
|
|
513
516
|
});
|
|
514
517
|
}
|
|
515
|
-
var
|
|
518
|
+
var Mt = 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", {
|
|
516
519
|
variants: {
|
|
517
520
|
variant: {
|
|
518
521
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -529,14 +532,14 @@ var bt = Be("peer/menu-button group/menu-button ring-sidebar-ring hover:bg-sideb
|
|
|
529
532
|
size: "default"
|
|
530
533
|
}
|
|
531
534
|
});
|
|
532
|
-
function
|
|
533
|
-
let { isMobile: s, state: c } = J(), l =
|
|
535
|
+
function Nt({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
536
|
+
let { isMobile: s, state: c } = J(), l = H({
|
|
534
537
|
defaultTagName: "button",
|
|
535
|
-
props:
|
|
538
|
+
props: V({ className: h(Mt({
|
|
536
539
|
variant: n,
|
|
537
540
|
size: r
|
|
538
541
|
}), a) }, o),
|
|
539
|
-
render: i ? /* @__PURE__ */
|
|
542
|
+
render: i ? /* @__PURE__ */ R(mt, { render: e }) : e,
|
|
540
543
|
state: {
|
|
541
544
|
slot: "sidebar-menu-button",
|
|
542
545
|
sidebar: "menu-button",
|
|
@@ -544,33 +547,33 @@ function Z({ render: e, isActive: t = !1, variant: n = "default", size: r = "def
|
|
|
544
547
|
active: t
|
|
545
548
|
}
|
|
546
549
|
});
|
|
547
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */
|
|
550
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ z(pt, { children: [l, /* @__PURE__ */ R(ht, {
|
|
548
551
|
side: "right",
|
|
549
552
|
align: "center",
|
|
550
553
|
hidden: c !== "collapsed" || s,
|
|
551
554
|
...i
|
|
552
555
|
})] })) : l;
|
|
553
556
|
}
|
|
554
|
-
function
|
|
555
|
-
return /* @__PURE__ */
|
|
557
|
+
function Pt({ className: e, ...t }) {
|
|
558
|
+
return /* @__PURE__ */ R("ul", {
|
|
556
559
|
"data-slot": "sidebar-menu-sub",
|
|
557
560
|
"data-sidebar": "menu-sub",
|
|
558
561
|
className: h("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden", e),
|
|
559
562
|
...t
|
|
560
563
|
});
|
|
561
564
|
}
|
|
562
|
-
function
|
|
563
|
-
return /* @__PURE__ */
|
|
565
|
+
function Ft({ className: e, ...t }) {
|
|
566
|
+
return /* @__PURE__ */ R("li", {
|
|
564
567
|
"data-slot": "sidebar-menu-sub-item",
|
|
565
568
|
"data-sidebar": "menu-sub-item",
|
|
566
569
|
className: h("group/menu-sub-item relative", e),
|
|
567
570
|
...t
|
|
568
571
|
});
|
|
569
572
|
}
|
|
570
|
-
function
|
|
571
|
-
return
|
|
573
|
+
function It({ render: e, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
574
|
+
return H({
|
|
572
575
|
defaultTagName: "a",
|
|
573
|
-
props:
|
|
576
|
+
props: V({ 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),
|
|
574
577
|
render: e,
|
|
575
578
|
state: {
|
|
576
579
|
slot: "sidebar-menu-sub-button",
|
|
@@ -582,13 +585,13 @@ function Ct({ render: e, size: t = "md", isActive: n = !1, className: r, ...i })
|
|
|
582
585
|
}
|
|
583
586
|
//#endregion
|
|
584
587
|
//#region src/admin/navigation.tsx
|
|
585
|
-
var
|
|
588
|
+
var Y = [
|
|
586
589
|
{
|
|
587
590
|
title: "Dashboard",
|
|
588
591
|
path: "/",
|
|
589
592
|
icon: Se,
|
|
590
593
|
order: 0,
|
|
591
|
-
useVisible:
|
|
594
|
+
useVisible: D,
|
|
592
595
|
items: [{
|
|
593
596
|
title: "Overview",
|
|
594
597
|
path: "/"
|
|
@@ -602,21 +605,21 @@ var wt = [
|
|
|
602
605
|
path: "/customers",
|
|
603
606
|
icon: Ae,
|
|
604
607
|
order: 10,
|
|
605
|
-
useVisible:
|
|
608
|
+
useVisible: E
|
|
606
609
|
},
|
|
607
610
|
{
|
|
608
611
|
title: "Subscriptions",
|
|
609
612
|
path: "/subscriptions",
|
|
610
613
|
icon: Ee,
|
|
611
614
|
order: 20,
|
|
612
|
-
useVisible:
|
|
615
|
+
useVisible: E
|
|
613
616
|
},
|
|
614
617
|
{
|
|
615
618
|
title: "Payments",
|
|
616
619
|
path: "/payments",
|
|
617
|
-
icon:
|
|
620
|
+
icon: xe,
|
|
618
621
|
order: 30,
|
|
619
|
-
useVisible:
|
|
622
|
+
useVisible: E,
|
|
620
623
|
items: [
|
|
621
624
|
{
|
|
622
625
|
title: "Payments",
|
|
@@ -625,7 +628,7 @@ var wt = [
|
|
|
625
628
|
{
|
|
626
629
|
title: "Health",
|
|
627
630
|
path: "/payments/health",
|
|
628
|
-
useVisible:
|
|
631
|
+
useVisible: D
|
|
629
632
|
},
|
|
630
633
|
{
|
|
631
634
|
title: "Attempts",
|
|
@@ -640,16 +643,16 @@ var wt = [
|
|
|
640
643
|
{
|
|
641
644
|
title: "Orders",
|
|
642
645
|
path: "/orders",
|
|
643
|
-
icon:
|
|
646
|
+
icon: xe,
|
|
644
647
|
order: 40,
|
|
645
|
-
useVisible:
|
|
648
|
+
useVisible: E
|
|
646
649
|
},
|
|
647
650
|
{
|
|
648
651
|
title: "Catalog",
|
|
649
652
|
path: "/catalog",
|
|
650
653
|
icon: we,
|
|
651
654
|
order: 50,
|
|
652
|
-
useVisible:
|
|
655
|
+
useVisible: te,
|
|
653
656
|
items: [
|
|
654
657
|
{
|
|
655
658
|
title: "Products",
|
|
@@ -670,7 +673,7 @@ var wt = [
|
|
|
670
673
|
path: "/ops",
|
|
671
674
|
icon: je,
|
|
672
675
|
order: 60,
|
|
673
|
-
useVisible:
|
|
676
|
+
useVisible: O,
|
|
674
677
|
items: [
|
|
675
678
|
{
|
|
676
679
|
title: "Findings",
|
|
@@ -703,236 +706,236 @@ var wt = [
|
|
|
703
706
|
].map((e) => ({ ...e }));
|
|
704
707
|
//#endregion
|
|
705
708
|
//#region src/admin/components/app-sidebar.tsx
|
|
706
|
-
function
|
|
709
|
+
function Lt(e, t, n) {
|
|
707
710
|
return t === n ? e === t : e.startsWith(t);
|
|
708
711
|
}
|
|
709
|
-
function
|
|
712
|
+
function Rt() {
|
|
710
713
|
let { pathname: e } = d(), n = [{
|
|
711
714
|
label: "Billing",
|
|
712
|
-
items:
|
|
713
|
-
}], r = [...
|
|
714
|
-
return /* @__PURE__ */
|
|
715
|
+
items: Y
|
|
716
|
+
}], r = [...Y].sort((e, t) => t.path.length - e.path.length).find((t) => e === t.path || t.path !== "/" && e.startsWith(t.path + "/"))?.path;
|
|
717
|
+
return /* @__PURE__ */ z(xt, {
|
|
715
718
|
variant: "inset",
|
|
716
719
|
collapsible: "icon",
|
|
717
720
|
children: [
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */
|
|
721
|
+
/* @__PURE__ */ R(Tt, { children: /* @__PURE__ */ R(Ht, {}) }),
|
|
722
|
+
/* @__PURE__ */ R(Et, { children: n.map((n) => /* @__PURE__ */ z(Dt, { children: [/* @__PURE__ */ R(Ot, { children: /* @__PURE__ */ R(t, { id: n.label }) }), /* @__PURE__ */ R(kt, { children: /* @__PURE__ */ R(At, { children: n.items.map((t) => /* @__PURE__ */ R(Bt, {
|
|
720
723
|
item: t,
|
|
721
724
|
active: t.path === r,
|
|
722
725
|
pathname: e
|
|
723
726
|
}, t.path)) }) })] }, n.label)) }),
|
|
724
|
-
/* @__PURE__ */
|
|
727
|
+
/* @__PURE__ */ R(Ct, {})
|
|
725
728
|
]
|
|
726
729
|
});
|
|
727
730
|
}
|
|
728
|
-
var
|
|
729
|
-
function
|
|
731
|
+
var zt = () => !0;
|
|
732
|
+
function Bt({ item: e, active: r, pathname: i }) {
|
|
730
733
|
let { text: a } = n();
|
|
731
|
-
return (e.useVisible ??
|
|
734
|
+
return (e.useVisible ?? zt)() ? /* @__PURE__ */ z(jt, { children: [/* @__PURE__ */ R(Nt, {
|
|
732
735
|
isActive: r,
|
|
733
736
|
tooltip: a(e.title),
|
|
734
|
-
render: /* @__PURE__ */
|
|
737
|
+
render: /* @__PURE__ */ z(p, {
|
|
735
738
|
to: e.path,
|
|
736
|
-
children: [e.icon && /* @__PURE__ */
|
|
739
|
+
children: [e.icon && /* @__PURE__ */ R(B, { icon: e.icon }), /* @__PURE__ */ R("span", { children: /* @__PURE__ */ R(t, { id: e.title }) })]
|
|
737
740
|
})
|
|
738
|
-
}), e.items && r && /* @__PURE__ */
|
|
741
|
+
}), e.items && r && /* @__PURE__ */ R(Pt, { children: e.items.map((t) => /* @__PURE__ */ R(Vt, {
|
|
739
742
|
sub: t,
|
|
740
|
-
active:
|
|
743
|
+
active: Lt(i, t.path, e.path)
|
|
741
744
|
}, t.path)) })] }) : null;
|
|
742
745
|
}
|
|
743
|
-
function
|
|
744
|
-
return (e.useVisible ??
|
|
746
|
+
function Vt({ sub: e, active: n }) {
|
|
747
|
+
return (e.useVisible ?? zt)() ? /* @__PURE__ */ R(Ft, { children: /* @__PURE__ */ R(It, {
|
|
745
748
|
isActive: n,
|
|
746
|
-
render: /* @__PURE__ */
|
|
749
|
+
render: /* @__PURE__ */ R(p, {
|
|
747
750
|
to: e.path,
|
|
748
|
-
children: /* @__PURE__ */
|
|
751
|
+
children: /* @__PURE__ */ R("span", { children: /* @__PURE__ */ R(t, { id: e.title }) })
|
|
749
752
|
})
|
|
750
753
|
}) }) : null;
|
|
751
754
|
}
|
|
752
|
-
function
|
|
753
|
-
let { activeMerchant: e, merchants: n, selectMerchant: r } =
|
|
754
|
-
return /* @__PURE__ */
|
|
755
|
+
function Ht() {
|
|
756
|
+
let { activeMerchant: e, merchants: n, selectMerchant: r } = k(), 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) ?? "µ";
|
|
757
|
+
return /* @__PURE__ */ R(At, { children: /* @__PURE__ */ R(jt, { children: /* @__PURE__ */ z(ee, { children: [/* @__PURE__ */ R(w, { render: /* @__PURE__ */ z(Nt, {
|
|
755
758
|
size: "lg",
|
|
756
759
|
tooltip: o,
|
|
757
760
|
className: "data-open:bg-sidebar-accent",
|
|
758
761
|
children: [
|
|
759
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ R("span", {
|
|
760
763
|
className: "flex aspect-square size-8 shrink-0 items-center justify-center rounded-lg bg-primary text-xs font-semibold text-primary-foreground uppercase",
|
|
761
764
|
children: l
|
|
762
765
|
}),
|
|
763
|
-
/* @__PURE__ */
|
|
766
|
+
/* @__PURE__ */ z("span", {
|
|
764
767
|
className: "grid min-w-0 flex-1 text-left leading-tight",
|
|
765
|
-
children: [/* @__PURE__ */
|
|
768
|
+
children: [/* @__PURE__ */ R("span", {
|
|
766
769
|
className: "truncate text-sm font-medium",
|
|
767
770
|
children: o
|
|
768
|
-
}), /* @__PURE__ */
|
|
771
|
+
}), /* @__PURE__ */ R("span", {
|
|
769
772
|
className: "truncate text-xs text-muted-foreground capitalize",
|
|
770
773
|
children: c
|
|
771
774
|
})]
|
|
772
775
|
}),
|
|
773
|
-
/* @__PURE__ */
|
|
776
|
+
/* @__PURE__ */ R(B, {
|
|
774
777
|
icon: ke,
|
|
775
778
|
className: "ml-auto size-4 shrink-0"
|
|
776
779
|
})
|
|
777
780
|
]
|
|
778
|
-
}) }), /* @__PURE__ */
|
|
781
|
+
}) }), /* @__PURE__ */ z(x, {
|
|
779
782
|
side: "bottom",
|
|
780
783
|
align: "start",
|
|
781
784
|
className: "min-w-60",
|
|
782
|
-
children: [/* @__PURE__ */
|
|
785
|
+
children: [/* @__PURE__ */ z(C, { children: [/* @__PURE__ */ R(y, {
|
|
783
786
|
className: "text-xs text-muted-foreground",
|
|
784
|
-
children: /* @__PURE__ */
|
|
787
|
+
children: /* @__PURE__ */ R(t, { id: "Merchants" })
|
|
785
788
|
}), n.map((t) => {
|
|
786
789
|
let n = t.slug === e?.slug;
|
|
787
|
-
return /* @__PURE__ */
|
|
790
|
+
return /* @__PURE__ */ z(b, {
|
|
788
791
|
onClick: () => r(t.slug),
|
|
789
792
|
className: "gap-2 py-2",
|
|
790
793
|
children: [
|
|
791
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ R("span", {
|
|
792
795
|
className: "flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-[10px] font-semibold uppercase",
|
|
793
796
|
children: t.slug.slice(0, 2)
|
|
794
797
|
}),
|
|
795
|
-
/* @__PURE__ */
|
|
798
|
+
/* @__PURE__ */ z("span", {
|
|
796
799
|
className: "grid min-w-0 flex-1 leading-tight",
|
|
797
|
-
children: [/* @__PURE__ */
|
|
800
|
+
children: [/* @__PURE__ */ R("span", {
|
|
798
801
|
className: "truncate text-sm",
|
|
799
802
|
children: t.display_name || t.slug
|
|
800
|
-
}), t.role && /* @__PURE__ */
|
|
803
|
+
}), t.role && /* @__PURE__ */ R("span", {
|
|
801
804
|
className: "truncate text-xs text-muted-foreground capitalize",
|
|
802
805
|
children: t.role
|
|
803
806
|
})]
|
|
804
807
|
}),
|
|
805
|
-
n && /* @__PURE__ */
|
|
808
|
+
n && /* @__PURE__ */ R(B, {
|
|
806
809
|
icon: Oe,
|
|
807
810
|
className: "ml-auto size-4 shrink-0 text-primary"
|
|
808
811
|
})
|
|
809
812
|
]
|
|
810
813
|
}, t.slug);
|
|
811
|
-
})] }), a && /* @__PURE__ */ L
|
|
814
|
+
})] }), a && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(S, {}), /* @__PURE__ */ z(b, {
|
|
812
815
|
onClick: () => void i(a),
|
|
813
816
|
className: "gap-2 py-2",
|
|
814
|
-
children: [/* @__PURE__ */
|
|
817
|
+
children: [/* @__PURE__ */ R("span", {
|
|
815
818
|
className: "flex size-7 shrink-0 items-center justify-center rounded-md border border-dashed border-border",
|
|
816
|
-
children: /* @__PURE__ */
|
|
817
|
-
icon:
|
|
819
|
+
children: /* @__PURE__ */ R(B, {
|
|
820
|
+
icon: ve,
|
|
818
821
|
className: "size-4"
|
|
819
822
|
})
|
|
820
|
-
}), /* @__PURE__ */
|
|
823
|
+
}), /* @__PURE__ */ R(t, { id: "New merchant" })]
|
|
821
824
|
})] })]
|
|
822
825
|
})] }) }) });
|
|
823
826
|
}
|
|
824
827
|
//#endregion
|
|
825
828
|
//#region src/admin/components/no-access.tsx
|
|
826
|
-
function
|
|
827
|
-
return /* @__PURE__ */
|
|
829
|
+
function Ut({ area: e }) {
|
|
830
|
+
return /* @__PURE__ */ R("div", {
|
|
828
831
|
className: "flex items-center justify-center py-16",
|
|
829
|
-
children: /* @__PURE__ */
|
|
832
|
+
children: /* @__PURE__ */ z("div", {
|
|
830
833
|
className: "w-full max-w-sm",
|
|
831
|
-
children: [/* @__PURE__ */
|
|
834
|
+
children: [/* @__PURE__ */ R("h1", {
|
|
832
835
|
className: "text-2xl font-semibold tracking-tight text-balance",
|
|
833
836
|
children: e ? `You don't have access to ${e}` : "You don't have access to this merchant's billing"
|
|
834
|
-
}), /* @__PURE__ */
|
|
837
|
+
}), /* @__PURE__ */ R("p", {
|
|
835
838
|
className: "mt-2 text-sm text-pretty text-muted-foreground",
|
|
836
|
-
children: /* @__PURE__ */
|
|
839
|
+
children: /* @__PURE__ */ R(t, { id: "Ask an administrator for a role that includes it." })
|
|
837
840
|
})]
|
|
838
841
|
})
|
|
839
842
|
});
|
|
840
843
|
}
|
|
841
844
|
//#endregion
|
|
842
845
|
//#region src/admin/components/no-merchants.tsx
|
|
843
|
-
function
|
|
846
|
+
function Wt() {
|
|
844
847
|
let { props: e } = s();
|
|
845
|
-
return /* @__PURE__ */
|
|
848
|
+
return /* @__PURE__ */ R("div", {
|
|
846
849
|
role: "status",
|
|
847
850
|
className: "p-8",
|
|
848
|
-
children: e.emptyState ?? /* @__PURE__ */ L
|
|
851
|
+
children: e.emptyState ?? /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("p", { children: /* @__PURE__ */ R(t, { id: "Select a merchant to view its billing." }) }), e.newMerchantHref && /* @__PURE__ */ R("a", {
|
|
849
852
|
href: e.newMerchantHref,
|
|
850
|
-
children: /* @__PURE__ */
|
|
853
|
+
children: /* @__PURE__ */ R(t, { id: "New merchant" })
|
|
851
854
|
})] })
|
|
852
855
|
});
|
|
853
856
|
}
|
|
854
857
|
//#endregion
|
|
855
858
|
//#region src/admin/components/notification-bell.tsx
|
|
856
|
-
function
|
|
857
|
-
let { text: e } = n(), { adminQueries: r } = f(), i = m(), [a, o] =
|
|
859
|
+
function Gt() {
|
|
860
|
+
let { text: e } = n(), { adminQueries: r } = f(), i = m(), [a, o] = A.useState(!1), s = D(), c = O(), { data: l = 0 } = I({
|
|
858
861
|
...r.unreadNotifications(),
|
|
859
862
|
enabled: c && s
|
|
860
|
-
}), { data: u, isFetching: d } =
|
|
863
|
+
}), { data: u, isFetching: d } = I(r.notifications(c && a)), p = u?.data ?? [];
|
|
861
864
|
if (!c) return null;
|
|
862
865
|
let h = (e) => {
|
|
863
866
|
o(!1), i(`/ops?finding=${encodeURIComponent(e.id)}`);
|
|
864
867
|
};
|
|
865
|
-
return /* @__PURE__ */
|
|
868
|
+
return /* @__PURE__ */ z(ee, {
|
|
866
869
|
open: a,
|
|
867
870
|
onOpenChange: o,
|
|
868
|
-
children: [/* @__PURE__ */
|
|
871
|
+
children: [/* @__PURE__ */ R(w, { render: /* @__PURE__ */ z(T, {
|
|
869
872
|
variant: "ghost",
|
|
870
873
|
size: "icon",
|
|
871
874
|
"aria-label": e("Notifications"),
|
|
872
875
|
className: "relative",
|
|
873
|
-
children: [/* @__PURE__ */
|
|
876
|
+
children: [/* @__PURE__ */ R(B, {
|
|
874
877
|
icon: Ce,
|
|
875
878
|
className: "size-4"
|
|
876
|
-
}), l > 0 && /* @__PURE__ */
|
|
879
|
+
}), l > 0 && /* @__PURE__ */ R("span", {
|
|
877
880
|
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",
|
|
878
881
|
children: l > 9 ? "9+" : l
|
|
879
882
|
})]
|
|
880
|
-
}) }), /* @__PURE__ */
|
|
883
|
+
}) }), /* @__PURE__ */ z(x, {
|
|
881
884
|
align: "end",
|
|
882
885
|
className: "w-80 p-0 sm:w-96",
|
|
883
|
-
children: [/* @__PURE__ */
|
|
886
|
+
children: [/* @__PURE__ */ z("div", {
|
|
884
887
|
className: "flex items-center justify-between border-b px-3 py-2",
|
|
885
|
-
children: [/* @__PURE__ */
|
|
888
|
+
children: [/* @__PURE__ */ R("span", {
|
|
886
889
|
className: "text-sm font-medium",
|
|
887
|
-
children: /* @__PURE__ */
|
|
888
|
-
}), l > p.length && /* @__PURE__ */
|
|
890
|
+
children: /* @__PURE__ */ R(t, { id: "Needs attention" })
|
|
891
|
+
}), l > p.length && /* @__PURE__ */ z(T, {
|
|
889
892
|
variant: "ghost",
|
|
890
893
|
size: "sm",
|
|
891
894
|
className: "h-6 px-2 text-xs",
|
|
892
895
|
onClick: () => {
|
|
893
896
|
o(!1), i("/ops");
|
|
894
897
|
},
|
|
895
|
-
children: [/* @__PURE__ */
|
|
898
|
+
children: [/* @__PURE__ */ R(t, { id: "View all " }), l]
|
|
896
899
|
})]
|
|
897
|
-
}), /* @__PURE__ */
|
|
900
|
+
}), /* @__PURE__ */ R("div", {
|
|
898
901
|
className: "max-h-96 overflow-y-auto",
|
|
899
|
-
children: d ? /* @__PURE__ */
|
|
902
|
+
children: d ? /* @__PURE__ */ R("p", {
|
|
900
903
|
className: "px-3 py-6 text-center text-sm text-muted-foreground",
|
|
901
|
-
children: /* @__PURE__ */
|
|
902
|
-
}) : p.length === 0 ? /* @__PURE__ */
|
|
904
|
+
children: /* @__PURE__ */ R(t, { id: "Loading…" })
|
|
905
|
+
}) : p.length === 0 ? /* @__PURE__ */ z("div", {
|
|
903
906
|
className: "flex flex-col items-center gap-1 px-3 py-8 text-center",
|
|
904
|
-
children: [/* @__PURE__ */
|
|
907
|
+
children: [/* @__PURE__ */ R(B, {
|
|
905
908
|
icon: Ce,
|
|
906
909
|
className: "size-5 text-muted-foreground"
|
|
907
|
-
}), /* @__PURE__ */
|
|
910
|
+
}), /* @__PURE__ */ R("p", {
|
|
908
911
|
className: "text-sm text-muted-foreground",
|
|
909
|
-
children: /* @__PURE__ */
|
|
912
|
+
children: /* @__PURE__ */ R(t, { id: "You're all caught up." })
|
|
910
913
|
})]
|
|
911
|
-
}) : p.map((e) => /* @__PURE__ */
|
|
914
|
+
}) : p.map((e) => /* @__PURE__ */ z("button", {
|
|
912
915
|
type: "button",
|
|
913
916
|
onClick: () => h(e),
|
|
914
917
|
className: "flex w-full items-start gap-2 border-b px-3 py-2 text-left last:border-b-0 hover:bg-muted/50",
|
|
915
|
-
children: [/* @__PURE__ */
|
|
918
|
+
children: [/* @__PURE__ */ R("span", {
|
|
916
919
|
className: "mt-0.5 shrink-0",
|
|
917
|
-
children: e.severity === "critical" || e.severity === "high" ? /* @__PURE__ */
|
|
918
|
-
icon: xe,
|
|
919
|
-
className: "text-failed size-4"
|
|
920
|
-
}) : /* @__PURE__ */ I(R, {
|
|
920
|
+
children: e.severity === "critical" || e.severity === "high" ? /* @__PURE__ */ R(B, {
|
|
921
921
|
icon: be,
|
|
922
|
+
className: "text-failed size-4"
|
|
923
|
+
}) : /* @__PURE__ */ R(B, {
|
|
924
|
+
icon: ye,
|
|
922
925
|
className: "text-held size-4"
|
|
923
926
|
})
|
|
924
|
-
}), /* @__PURE__ */
|
|
927
|
+
}), /* @__PURE__ */ z("span", {
|
|
925
928
|
className: "min-w-0 flex-1",
|
|
926
|
-
children: [/* @__PURE__ */
|
|
929
|
+
children: [/* @__PURE__ */ z("span", {
|
|
927
930
|
className: "flex items-center justify-between gap-2",
|
|
928
|
-
children: [/* @__PURE__ */
|
|
931
|
+
children: [/* @__PURE__ */ R("span", {
|
|
929
932
|
className: "truncate text-sm font-medium",
|
|
930
933
|
children: e.finding_type
|
|
931
|
-
}), /* @__PURE__ */
|
|
934
|
+
}), /* @__PURE__ */ R("span", {
|
|
932
935
|
className: "shrink-0 text-[11px] text-muted-foreground",
|
|
933
|
-
children:
|
|
936
|
+
children: re(e.created_at)
|
|
934
937
|
})]
|
|
935
|
-
}), e.recommended_action && /* @__PURE__ */
|
|
938
|
+
}), e.recommended_action && /* @__PURE__ */ R("span", {
|
|
936
939
|
className: "mt-0.5 line-clamp-2 block text-xs text-muted-foreground",
|
|
937
940
|
children: e.recommended_action
|
|
938
941
|
})]
|
|
@@ -944,39 +947,39 @@ function Nt() {
|
|
|
944
947
|
}
|
|
945
948
|
//#endregion
|
|
946
949
|
//#region src/admin/components/ui/breadcrumb.tsx
|
|
947
|
-
function
|
|
950
|
+
function Kt({ className: e, ...t }) {
|
|
948
951
|
let { text: r } = n();
|
|
949
|
-
return /* @__PURE__ */
|
|
952
|
+
return /* @__PURE__ */ R("nav", {
|
|
950
953
|
"aria-label": r("breadcrumb"),
|
|
951
954
|
"data-slot": "breadcrumb",
|
|
952
955
|
className: h(e),
|
|
953
956
|
...t
|
|
954
957
|
});
|
|
955
958
|
}
|
|
956
|
-
function
|
|
957
|
-
return /* @__PURE__ */
|
|
959
|
+
function qt({ className: e, ...t }) {
|
|
960
|
+
return /* @__PURE__ */ R("ol", {
|
|
958
961
|
"data-slot": "breadcrumb-list",
|
|
959
962
|
className: h("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground", e),
|
|
960
963
|
...t
|
|
961
964
|
});
|
|
962
965
|
}
|
|
963
|
-
function
|
|
964
|
-
return /* @__PURE__ */
|
|
966
|
+
function X({ className: e, ...t }) {
|
|
967
|
+
return /* @__PURE__ */ R("li", {
|
|
965
968
|
"data-slot": "breadcrumb-item",
|
|
966
969
|
className: h("inline-flex items-center gap-1", e),
|
|
967
970
|
...t
|
|
968
971
|
});
|
|
969
972
|
}
|
|
970
|
-
function
|
|
971
|
-
return
|
|
973
|
+
function Jt({ className: e, render: t, ...n }) {
|
|
974
|
+
return H({
|
|
972
975
|
defaultTagName: "a",
|
|
973
|
-
props:
|
|
976
|
+
props: V({ className: h("transition-colors hover:text-foreground", e) }, n),
|
|
974
977
|
render: t,
|
|
975
978
|
state: { slot: "breadcrumb-link" }
|
|
976
979
|
});
|
|
977
980
|
}
|
|
978
|
-
function
|
|
979
|
-
return /* @__PURE__ */
|
|
981
|
+
function Yt({ className: e, ...t }) {
|
|
982
|
+
return /* @__PURE__ */ R("span", {
|
|
980
983
|
"data-slot": "breadcrumb-page",
|
|
981
984
|
role: "link",
|
|
982
985
|
"aria-disabled": "true",
|
|
@@ -985,45 +988,45 @@ function Lt({ className: e, ...t }) {
|
|
|
985
988
|
...t
|
|
986
989
|
});
|
|
987
990
|
}
|
|
988
|
-
function
|
|
989
|
-
return /* @__PURE__ */
|
|
991
|
+
function Xt({ children: e, className: t, ...n }) {
|
|
992
|
+
return /* @__PURE__ */ R("li", {
|
|
990
993
|
"data-slot": "breadcrumb-separator",
|
|
991
994
|
role: "presentation",
|
|
992
995
|
"aria-hidden": "true",
|
|
993
996
|
className: h("[&>svg]:size-3.5", t),
|
|
994
997
|
...n,
|
|
995
|
-
children: e ?? /* @__PURE__ */
|
|
998
|
+
children: e ?? /* @__PURE__ */ R(Me, {})
|
|
996
999
|
});
|
|
997
1000
|
}
|
|
998
1001
|
//#endregion
|
|
999
1002
|
//#region src/admin/components/site-header.tsx
|
|
1000
|
-
function
|
|
1001
|
-
let { activeMerchant: n } =
|
|
1002
|
-
return /* @__PURE__ */
|
|
1003
|
+
function Zt({ trail: e }) {
|
|
1004
|
+
let { activeMerchant: n } = k(), r = O();
|
|
1005
|
+
return /* @__PURE__ */ z("header", {
|
|
1003
1006
|
className: "flex h-14 shrink-0 items-center gap-2 border-b px-4",
|
|
1004
1007
|
children: [
|
|
1005
|
-
/* @__PURE__ */
|
|
1006
|
-
/* @__PURE__ */
|
|
1008
|
+
/* @__PURE__ */ R(St, { className: "-ml-1" }),
|
|
1009
|
+
/* @__PURE__ */ R(it, {
|
|
1007
1010
|
orientation: "vertical",
|
|
1008
1011
|
className: "mr-2 h-4"
|
|
1009
1012
|
}),
|
|
1010
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ R(Kt, { children: /* @__PURE__ */ R(qt, { children: e.length === 0 ? /* @__PURE__ */ R(X, { children: /* @__PURE__ */ R(Yt, { children: /* @__PURE__ */ R(t, { id: "Dashboard" }) }) }) : /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(X, { children: /* @__PURE__ */ R(Jt, { render: /* @__PURE__ */ R(p, {
|
|
1011
1014
|
to: "/",
|
|
1012
|
-
children: /* @__PURE__ */
|
|
1013
|
-
}) }) }), e.map((n, r) => /* @__PURE__ */
|
|
1015
|
+
children: /* @__PURE__ */ R(t, { id: "Dashboard" })
|
|
1016
|
+
}) }) }), e.map((n, r) => /* @__PURE__ */ z(A.Fragment, { children: [/* @__PURE__ */ R(Xt, {}), /* @__PURE__ */ R(X, { children: n.to && r < e.length - 1 ? /* @__PURE__ */ R(Jt, { render: /* @__PURE__ */ R(p, {
|
|
1014
1017
|
to: n.to,
|
|
1015
|
-
children: /* @__PURE__ */
|
|
1016
|
-
}) }) : /* @__PURE__ */
|
|
1017
|
-
/* @__PURE__ */
|
|
1018
|
+
children: /* @__PURE__ */ R(t, { id: n.label })
|
|
1019
|
+
}) }) : /* @__PURE__ */ R(Yt, { children: /* @__PURE__ */ R(t, { id: n.label }) }) })] }, n.label))] }) }) }),
|
|
1020
|
+
/* @__PURE__ */ R("div", {
|
|
1018
1021
|
className: "ml-auto flex items-center gap-2",
|
|
1019
|
-
children: n && r && /* @__PURE__ */
|
|
1022
|
+
children: n && r && /* @__PURE__ */ R(Gt, {})
|
|
1020
1023
|
})
|
|
1021
1024
|
]
|
|
1022
1025
|
});
|
|
1023
1026
|
}
|
|
1024
1027
|
//#endregion
|
|
1025
1028
|
//#region src/admin/layouts/app-layout.tsx
|
|
1026
|
-
var
|
|
1029
|
+
var Qt = [
|
|
1027
1030
|
["/customers", [{ label: "Customers" }]],
|
|
1028
1031
|
["/subscriptions", [{ label: "Subscriptions" }]],
|
|
1029
1032
|
["/payments", [{ label: "Payments" }]],
|
|
@@ -1065,7 +1068,7 @@ var Bt = [
|
|
|
1065
1068
|
}, { label: "Findings" }]],
|
|
1066
1069
|
["/settings", [{ label: "Settings" }]]
|
|
1067
1070
|
];
|
|
1068
|
-
function
|
|
1071
|
+
function $t(e, t) {
|
|
1069
1072
|
let n = (t) => e === t || e.startsWith(t + "/");
|
|
1070
1073
|
return n("/payments/health") ? {
|
|
1071
1074
|
name: "payment health",
|
|
@@ -1086,108 +1089,108 @@ function Vt(e, t) {
|
|
|
1086
1089
|
allowed: t.catalog === "read" || t.catalog === "update"
|
|
1087
1090
|
} : null;
|
|
1088
1091
|
}
|
|
1089
|
-
function
|
|
1090
|
-
let { activeMerchant: n } =
|
|
1091
|
-
return n ? c.isPending ? /* @__PURE__ */
|
|
1092
|
+
function en({ children: e }) {
|
|
1093
|
+
let { activeMerchant: n } = k(), { pathname: r } = d(), { props: a, services: o } = s(), c = I(o.adminQueries.access()), l = c.data, u = (a.settingsTabs?.length ?? 0) > 0 && (r === "/settings" || r === "/"), f = Qt.find(([e]) => r.startsWith(e))?.[1] ?? [];
|
|
1094
|
+
return n ? c.isPending ? /* @__PURE__ */ R("p", {
|
|
1092
1095
|
role: "status",
|
|
1093
1096
|
className: "p-6",
|
|
1094
|
-
children: /* @__PURE__ */
|
|
1095
|
-
}) : c.error ? /* @__PURE__ */
|
|
1097
|
+
children: /* @__PURE__ */ R(t, { id: "Loading billing permissions…" })
|
|
1098
|
+
}) : c.error ? /* @__PURE__ */ z("div", {
|
|
1096
1099
|
role: "alert",
|
|
1097
1100
|
className: "p-6",
|
|
1098
|
-
children: [/* @__PURE__ */
|
|
1101
|
+
children: [/* @__PURE__ */ R("p", { children: i(c.error).text }), /* @__PURE__ */ R("button", {
|
|
1099
1102
|
type: "button",
|
|
1100
1103
|
onClick: () => void c.refetch(),
|
|
1101
|
-
children: /* @__PURE__ */
|
|
1104
|
+
children: /* @__PURE__ */ R(t, { id: "Try again" })
|
|
1102
1105
|
})]
|
|
1103
|
-
}) : n.id && l?.scope_id && n.id !== l.scope_id ? /* @__PURE__ */
|
|
1106
|
+
}) : n.id && l?.scope_id && n.id !== l.scope_id ? /* @__PURE__ */ R("p", {
|
|
1104
1107
|
role: "alert",
|
|
1105
1108
|
className: "p-6",
|
|
1106
|
-
children: /* @__PURE__ */
|
|
1107
|
-
}) : /* @__PURE__ */
|
|
1109
|
+
children: /* @__PURE__ */ R(t, { id: "The authenticated connection is bound to another merchant. Update the host connection before opening this merchant." })
|
|
1110
|
+
}) : /* @__PURE__ */ R(ft, { children: /* @__PURE__ */ z(bt, {
|
|
1108
1111
|
defaultOpen: window.matchMedia?.("(min-width: 64rem)").matches ?? !0,
|
|
1109
|
-
children: [/* @__PURE__ */
|
|
1112
|
+
children: [/* @__PURE__ */ R(Rt, {}), /* @__PURE__ */ z(wt, {
|
|
1110
1113
|
className: "min-w-0",
|
|
1111
|
-
children: [/* @__PURE__ */
|
|
1114
|
+
children: [/* @__PURE__ */ R(Zt, { trail: f }), /* @__PURE__ */ R("main", {
|
|
1112
1115
|
className: "flex min-w-0 flex-1 flex-col p-4 md:p-8",
|
|
1113
|
-
children: /* @__PURE__ */
|
|
1116
|
+
children: /* @__PURE__ */ R("div", {
|
|
1114
1117
|
className: "@container/page mx-auto w-full max-w-7xl min-w-0",
|
|
1115
|
-
children: l && (!
|
|
1118
|
+
children: l && (!ne(l) && !u || $t(r, l)?.allowed === !1) ? /* @__PURE__ */ R(Ut, { area: $t(r, l)?.name }) : e
|
|
1116
1119
|
})
|
|
1117
1120
|
}, n?.id || n?.slug || "")]
|
|
1118
1121
|
})]
|
|
1119
|
-
}) }) : /* @__PURE__ */
|
|
1122
|
+
}) }) : /* @__PURE__ */ R(Wt, {});
|
|
1120
1123
|
}
|
|
1121
1124
|
//#endregion
|
|
1122
1125
|
//#region src/admin/components/ui/alert-dialog.tsx
|
|
1123
|
-
function
|
|
1124
|
-
return /* @__PURE__ */
|
|
1126
|
+
function tn({ ...e }) {
|
|
1127
|
+
return /* @__PURE__ */ R(G.Root, {
|
|
1125
1128
|
"data-slot": "alert-dialog",
|
|
1126
1129
|
...e
|
|
1127
1130
|
});
|
|
1128
1131
|
}
|
|
1129
|
-
function
|
|
1130
|
-
return /* @__PURE__ */
|
|
1132
|
+
function nn({ ...e }) {
|
|
1133
|
+
return /* @__PURE__ */ R(G.Portal, {
|
|
1131
1134
|
container: s().portal,
|
|
1132
1135
|
"data-slot": "alert-dialog-portal",
|
|
1133
1136
|
...e
|
|
1134
1137
|
});
|
|
1135
1138
|
}
|
|
1136
|
-
function
|
|
1137
|
-
return /* @__PURE__ */
|
|
1139
|
+
function rn({ className: e, ...t }) {
|
|
1140
|
+
return /* @__PURE__ */ R(G.Backdrop, {
|
|
1138
1141
|
"data-slot": "alert-dialog-overlay",
|
|
1139
1142
|
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),
|
|
1140
1143
|
...t
|
|
1141
1144
|
});
|
|
1142
1145
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return /* @__PURE__ */
|
|
1146
|
+
function an({ className: e, size: t = "default", ...n }) {
|
|
1147
|
+
return /* @__PURE__ */ z(nn, { children: [/* @__PURE__ */ R(rn, {}), /* @__PURE__ */ R(G.Popup, {
|
|
1145
1148
|
"data-slot": "alert-dialog-content",
|
|
1146
1149
|
"data-size": t,
|
|
1147
1150
|
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),
|
|
1148
1151
|
...n
|
|
1149
1152
|
})] });
|
|
1150
1153
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return /* @__PURE__ */
|
|
1154
|
+
function on({ className: e, ...t }) {
|
|
1155
|
+
return /* @__PURE__ */ R("div", {
|
|
1153
1156
|
"data-slot": "alert-dialog-header",
|
|
1154
1157
|
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),
|
|
1155
1158
|
...t
|
|
1156
1159
|
});
|
|
1157
1160
|
}
|
|
1158
|
-
function
|
|
1159
|
-
return /* @__PURE__ */
|
|
1161
|
+
function sn({ className: e, ...t }) {
|
|
1162
|
+
return /* @__PURE__ */ R("div", {
|
|
1160
1163
|
"data-slot": "alert-dialog-footer",
|
|
1161
1164
|
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),
|
|
1162
1165
|
...t
|
|
1163
1166
|
});
|
|
1164
1167
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return /* @__PURE__ */
|
|
1168
|
+
function cn({ className: e, ...t }) {
|
|
1169
|
+
return /* @__PURE__ */ R(G.Title, {
|
|
1167
1170
|
"data-slot": "alert-dialog-title",
|
|
1168
1171
|
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),
|
|
1169
1172
|
...t
|
|
1170
1173
|
});
|
|
1171
1174
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return /* @__PURE__ */
|
|
1175
|
+
function ln({ className: e, ...t }) {
|
|
1176
|
+
return /* @__PURE__ */ R(G.Description, {
|
|
1174
1177
|
"data-slot": "alert-dialog-description",
|
|
1175
1178
|
className: h("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
1176
1179
|
...t
|
|
1177
1180
|
});
|
|
1178
1181
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return /* @__PURE__ */
|
|
1182
|
+
function un({ className: e, ...t }) {
|
|
1183
|
+
return /* @__PURE__ */ R(T, {
|
|
1181
1184
|
"data-slot": "alert-dialog-action",
|
|
1182
1185
|
className: h(e),
|
|
1183
1186
|
...t
|
|
1184
1187
|
});
|
|
1185
1188
|
}
|
|
1186
|
-
function
|
|
1187
|
-
return /* @__PURE__ */
|
|
1189
|
+
function dn({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
1190
|
+
return /* @__PURE__ */ R(G.Close, {
|
|
1188
1191
|
"data-slot": "alert-dialog-cancel",
|
|
1189
1192
|
className: h(e),
|
|
1190
|
-
render: /* @__PURE__ */
|
|
1193
|
+
render: /* @__PURE__ */ R(T, {
|
|
1191
1194
|
variant: t,
|
|
1192
1195
|
size: n
|
|
1193
1196
|
}),
|
|
@@ -1196,20 +1199,20 @@ function Qt({ className: e, variant: t = "outline", size: n = "default", ...r })
|
|
|
1196
1199
|
}
|
|
1197
1200
|
//#endregion
|
|
1198
1201
|
//#region src/admin/components/confirm.tsx
|
|
1199
|
-
function
|
|
1200
|
-
let [t, n] =
|
|
1202
|
+
function fn({ children: e }) {
|
|
1203
|
+
let [t, n] = A.useState(null), [r, i] = A.useState(!1), a = A.useRef(null), o = A.useCallback((e) => {
|
|
1201
1204
|
a.current?.(e), a.current = null, i(!1);
|
|
1202
|
-
}, []), s =
|
|
1205
|
+
}, []), s = A.useCallback((e) => new Promise((t) => {
|
|
1203
1206
|
a.current?.(!1), a.current = t, n(e), i(!0);
|
|
1204
1207
|
}), []);
|
|
1205
|
-
return
|
|
1208
|
+
return A.useEffect(() => () => a.current?.(!1), []), /* @__PURE__ */ z(ae.Provider, {
|
|
1206
1209
|
value: s,
|
|
1207
|
-
children: [e, /* @__PURE__ */
|
|
1210
|
+
children: [e, /* @__PURE__ */ R(tn, {
|
|
1208
1211
|
open: r,
|
|
1209
1212
|
onOpenChange: (e) => {
|
|
1210
1213
|
e || o(!1);
|
|
1211
1214
|
},
|
|
1212
|
-
children: /* @__PURE__ */
|
|
1215
|
+
children: /* @__PURE__ */ z(an, { children: [/* @__PURE__ */ z(on, { children: [/* @__PURE__ */ R(cn, { children: t?.title }), t?.description ? /* @__PURE__ */ R(ln, { children: t.description }) : null] }), /* @__PURE__ */ z(sn, { children: [/* @__PURE__ */ R(dn, { children: t?.cancelLabel ?? "Cancel" }), /* @__PURE__ */ R(un, {
|
|
1213
1216
|
variant: t?.tone === "destructive" ? "destructive" : "default",
|
|
1214
1217
|
onClick: () => o(!0),
|
|
1215
1218
|
children: t?.confirmLabel ?? "Confirm"
|
|
@@ -1219,18 +1222,18 @@ function $t({ children: e }) {
|
|
|
1219
1222
|
}
|
|
1220
1223
|
//#endregion
|
|
1221
1224
|
//#region src/admin/components/ui/sonner.tsx
|
|
1222
|
-
var
|
|
1225
|
+
var pn = ({ ...e }) => {
|
|
1223
1226
|
let t = s().props.appearance?.theme ?? "system";
|
|
1224
|
-
return /* @__PURE__ */
|
|
1227
|
+
return /* @__PURE__ */ R(_e, {
|
|
1225
1228
|
id: s().services.namespace,
|
|
1226
1229
|
theme: t === "inherit" ? "system" : t,
|
|
1227
1230
|
className: "toaster group",
|
|
1228
1231
|
icons: {
|
|
1229
|
-
success: /* @__PURE__ */
|
|
1230
|
-
info: /* @__PURE__ */
|
|
1231
|
-
warning: /* @__PURE__ */
|
|
1232
|
-
error: /* @__PURE__ */
|
|
1233
|
-
loading: /* @__PURE__ */
|
|
1232
|
+
success: /* @__PURE__ */ R(Ne, { className: "size-4" }),
|
|
1233
|
+
info: /* @__PURE__ */ R(Pe, { className: "size-4" }),
|
|
1234
|
+
warning: /* @__PURE__ */ R(Re, { className: "size-4" }),
|
|
1235
|
+
error: /* @__PURE__ */ R(Ie, { className: "size-4" }),
|
|
1236
|
+
loading: /* @__PURE__ */ R(Fe, { className: "size-4 animate-spin" })
|
|
1234
1237
|
},
|
|
1235
1238
|
style: {
|
|
1236
1239
|
"--normal-bg": "var(--popover)",
|
|
@@ -1241,58 +1244,58 @@ var en = ({ ...e }) => {
|
|
|
1241
1244
|
toastOptions: { classNames: { toast: "cn-toast" } },
|
|
1242
1245
|
...e
|
|
1243
1246
|
});
|
|
1244
|
-
},
|
|
1247
|
+
}, mn = [
|
|
1245
1248
|
/dynamically imported module/i,
|
|
1246
1249
|
/failed to load module script/i,
|
|
1247
1250
|
/importing a module script failed/i,
|
|
1248
1251
|
/loading (css )?chunk \S+ failed/i,
|
|
1249
1252
|
/unable to preload css/i
|
|
1250
1253
|
];
|
|
1251
|
-
function
|
|
1254
|
+
function hn(e) {
|
|
1252
1255
|
let t = e;
|
|
1253
|
-
return t?.name === "ChunkLoadError" ||
|
|
1256
|
+
return t?.name === "ChunkLoadError" || mn.some((e) => e.test(t?.message ?? ""));
|
|
1254
1257
|
}
|
|
1255
1258
|
//#endregion
|
|
1256
1259
|
//#region src/admin/components/route-error.tsx
|
|
1257
|
-
function
|
|
1258
|
-
let n =
|
|
1259
|
-
return /* @__PURE__ */
|
|
1260
|
+
function gn({ error: e }) {
|
|
1261
|
+
let n = hn(e), r = e instanceof Error ? e.message : "";
|
|
1262
|
+
return /* @__PURE__ */ z("div", {
|
|
1260
1263
|
role: "alert",
|
|
1261
1264
|
className: "flex min-h-[50vh] flex-col items-center justify-center gap-4 p-6 text-center",
|
|
1262
|
-
children: [/* @__PURE__ */
|
|
1265
|
+
children: [/* @__PURE__ */ z("div", {
|
|
1263
1266
|
className: "max-w-md",
|
|
1264
|
-
children: [/* @__PURE__ */
|
|
1267
|
+
children: [/* @__PURE__ */ R("p", {
|
|
1265
1268
|
className: "font-medium",
|
|
1266
1269
|
children: n ? "The console has been updated. Reload to use the new version." : "This page failed to load."
|
|
1267
|
-
}), !n && r ? /* @__PURE__ */
|
|
1270
|
+
}), !n && r ? /* @__PURE__ */ R("p", {
|
|
1268
1271
|
className: "mt-1 text-sm break-words text-muted-foreground",
|
|
1269
1272
|
children: r
|
|
1270
1273
|
}) : null]
|
|
1271
|
-
}), /* @__PURE__ */
|
|
1274
|
+
}), /* @__PURE__ */ z("div", {
|
|
1272
1275
|
className: "flex flex-wrap items-center justify-center gap-3",
|
|
1273
|
-
children: [/* @__PURE__ */
|
|
1276
|
+
children: [/* @__PURE__ */ z(T, {
|
|
1274
1277
|
onClick: () => window.location.reload(),
|
|
1275
|
-
children: [/* @__PURE__ */
|
|
1278
|
+
children: [/* @__PURE__ */ R(B, {
|
|
1276
1279
|
icon: Te,
|
|
1277
1280
|
className: "size-4"
|
|
1278
1281
|
}), n ? "Reload" : "Try again"]
|
|
1279
|
-
}), /* @__PURE__ */
|
|
1282
|
+
}), /* @__PURE__ */ R(p, {
|
|
1280
1283
|
to: "/",
|
|
1281
1284
|
className: "text-sm text-muted-foreground underline underline-offset-4",
|
|
1282
|
-
children: /* @__PURE__ */
|
|
1285
|
+
children: /* @__PURE__ */ R(t, { id: "Console home" })
|
|
1283
1286
|
})]
|
|
1284
1287
|
})]
|
|
1285
1288
|
});
|
|
1286
1289
|
}
|
|
1287
1290
|
//#endregion
|
|
1288
1291
|
//#region src/admin/lib/query-client.ts
|
|
1289
|
-
function
|
|
1292
|
+
function _n(e, t) {
|
|
1290
1293
|
return t instanceof v && t.status > 0 && t.status < 500 ? !1 : e < 2;
|
|
1291
1294
|
}
|
|
1292
|
-
var
|
|
1295
|
+
var vn = (e) => {
|
|
1293
1296
|
let { toastApiError: t } = c(l(e));
|
|
1294
|
-
return new
|
|
1295
|
-
queryCache: new
|
|
1297
|
+
return new he({
|
|
1298
|
+
queryCache: new me({ onError: (e, n) => {
|
|
1296
1299
|
let r = n.meta?.errorAction;
|
|
1297
1300
|
typeof r == "string" && t(e, r);
|
|
1298
1301
|
} }),
|
|
@@ -1300,27 +1303,27 @@ var on = (e) => {
|
|
|
1300
1303
|
queries: {
|
|
1301
1304
|
staleTime: 2e4,
|
|
1302
1305
|
gcTime: 3e5,
|
|
1303
|
-
retry:
|
|
1306
|
+
retry: _n
|
|
1304
1307
|
},
|
|
1305
1308
|
mutations: { retry: !1 }
|
|
1306
1309
|
}
|
|
1307
1310
|
});
|
|
1308
|
-
},
|
|
1309
|
-
let t =
|
|
1311
|
+
}, yn = () => window.matchMedia?.("(prefers-color-scheme: dark)"), bn = (e) => {
|
|
1312
|
+
let t = yn();
|
|
1310
1313
|
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
1311
|
-
},
|
|
1312
|
-
function
|
|
1313
|
-
let t =
|
|
1314
|
+
}, xn = () => yn()?.matches ? "dark" : "light", Sn = () => "light", Cn = () => () => {};
|
|
1315
|
+
function Z(e = "inherit") {
|
|
1316
|
+
let t = pe(e === "auto" ? bn : Cn, xn, Sn);
|
|
1314
1317
|
return e === "auto" ? t : e;
|
|
1315
1318
|
}
|
|
1316
1319
|
//#endregion
|
|
1317
1320
|
//#region src/admin/billing-admin.tsx
|
|
1318
|
-
var
|
|
1321
|
+
var wn = (e) => typeof e == "string" ? {
|
|
1319
1322
|
id: e,
|
|
1320
1323
|
slug: e
|
|
1321
1324
|
} : e;
|
|
1322
|
-
function
|
|
1323
|
-
let [t, n] =
|
|
1325
|
+
function Tn(e) {
|
|
1326
|
+
let [t, n] = F(), [r, i] = F({
|
|
1324
1327
|
auth: e.auth,
|
|
1325
1328
|
baseUrl: e.baseUrl,
|
|
1326
1329
|
generation: 0
|
|
@@ -1329,24 +1332,24 @@ function mn(e) {
|
|
|
1329
1332
|
auth: e.auth,
|
|
1330
1333
|
baseUrl: e.baseUrl,
|
|
1331
1334
|
generation: r.generation + 1
|
|
1332
|
-
}), /* @__PURE__ */
|
|
1335
|
+
}), /* @__PURE__ */ R(En, {
|
|
1333
1336
|
...e,
|
|
1334
1337
|
selected: t,
|
|
1335
1338
|
onSelected: n
|
|
1336
1339
|
}, r.generation);
|
|
1337
1340
|
}
|
|
1338
|
-
function
|
|
1339
|
-
let i =
|
|
1341
|
+
function En({ selected: t, onSelected: n, ...r }) {
|
|
1342
|
+
let i = Z(r.appearance?.theme), a = ue(), [s, c] = F(null), l = P(() => r.merchants ?? (r.merchant ? [wn(r.merchant)] : [{
|
|
1340
1343
|
id: "",
|
|
1341
1344
|
slug: "",
|
|
1342
1345
|
display_name: "Billing"
|
|
1343
|
-
}]), [r.merchants, r.merchant]), d = r.merchant ?
|
|
1344
|
-
|
|
1346
|
+
}]), [r.merchants, r.merchant]), d = r.merchant ? wn(r.merchant).id : t, f = l.find((e) => e.id === d || e.slug === d) ?? l[0], p = `${r.baseUrl}:${f?.id ?? ""}:${f?.slug ?? ""}`, m = fe(p);
|
|
1347
|
+
de(() => (m.current = p, () => {
|
|
1345
1348
|
m.current = void 0;
|
|
1346
1349
|
}), [p]);
|
|
1347
|
-
let h =
|
|
1350
|
+
let h = M(() => m.current === p, [p]), _ = P(() => r.queryClient ?? vn(a), [a, r.queryClient]), v = {
|
|
1348
1351
|
props: r,
|
|
1349
|
-
services:
|
|
1352
|
+
services: P(() => o({
|
|
1350
1353
|
namespace: a,
|
|
1351
1354
|
isCurrent: h,
|
|
1352
1355
|
baseUrl: r.baseUrl,
|
|
@@ -1369,51 +1372,51 @@ function hn({ selected: t, onSelected: n, ...r }) {
|
|
|
1369
1372
|
t && (n(t.id), r.onMerchantChange?.(t));
|
|
1370
1373
|
}
|
|
1371
1374
|
};
|
|
1372
|
-
return /* @__PURE__ */
|
|
1375
|
+
return /* @__PURE__ */ R("div", {
|
|
1373
1376
|
lang: r.language ?? "en",
|
|
1374
1377
|
className: ["orba", r.className].filter(Boolean).join(" "),
|
|
1375
1378
|
"data-orba-theme": i,
|
|
1376
1379
|
style: {
|
|
1377
|
-
...
|
|
1380
|
+
...K(r.appearance, "orba"),
|
|
1378
1381
|
...r.style
|
|
1379
1382
|
},
|
|
1380
|
-
children: /* @__PURE__ */
|
|
1383
|
+
children: /* @__PURE__ */ R(e.Provider, {
|
|
1381
1384
|
value: {
|
|
1382
1385
|
namespace: a,
|
|
1383
1386
|
messages: r.messages
|
|
1384
1387
|
},
|
|
1385
|
-
children: /* @__PURE__ */
|
|
1388
|
+
children: /* @__PURE__ */ z(g.Provider, {
|
|
1386
1389
|
value: v,
|
|
1387
|
-
children: [/* @__PURE__ */
|
|
1390
|
+
children: [/* @__PURE__ */ R(ge, {
|
|
1388
1391
|
client: _,
|
|
1389
|
-
children: /* @__PURE__ */
|
|
1392
|
+
children: /* @__PURE__ */ z(u, {
|
|
1390
1393
|
basePath: r.basePath,
|
|
1391
1394
|
navigation: r.navigation,
|
|
1392
|
-
children: [/* @__PURE__ */
|
|
1395
|
+
children: [/* @__PURE__ */ R(fn, { children: /* @__PURE__ */ R(en, { children: /* @__PURE__ */ R(On, { children: /* @__PURE__ */ R(et, {}) }) }) }), /* @__PURE__ */ R(pn, {})]
|
|
1393
1396
|
})
|
|
1394
|
-
}), /* @__PURE__ */
|
|
1397
|
+
}), /* @__PURE__ */ R("div", { ref: c })]
|
|
1395
1398
|
})
|
|
1396
1399
|
})
|
|
1397
1400
|
});
|
|
1398
1401
|
}
|
|
1399
|
-
var
|
|
1402
|
+
var Dn = class extends se {
|
|
1400
1403
|
state = {};
|
|
1401
1404
|
static getDerivedStateFromError(e) {
|
|
1402
1405
|
return { error: e };
|
|
1403
1406
|
}
|
|
1404
1407
|
render() {
|
|
1405
|
-
return this.state.error ? /* @__PURE__ */
|
|
1408
|
+
return this.state.error ? /* @__PURE__ */ R(gn, { error: this.state.error }) : this.props.children;
|
|
1406
1409
|
}
|
|
1407
1410
|
};
|
|
1408
|
-
function
|
|
1411
|
+
function On({ children: e }) {
|
|
1409
1412
|
let t = d();
|
|
1410
|
-
return /* @__PURE__ */
|
|
1413
|
+
return /* @__PURE__ */ R(Dn, { children: e }, t.pathname);
|
|
1411
1414
|
}
|
|
1412
1415
|
//#endregion
|
|
1413
1416
|
//#region src/admin/summary.tsx
|
|
1414
|
-
function
|
|
1417
|
+
function kn(e) {
|
|
1415
1418
|
let t = typeof e.merchant == "string" ? e.merchant : e.merchant?.id, n = typeof e.merchant == "string" ? e.merchant : e.merchant?.slug;
|
|
1416
|
-
return
|
|
1419
|
+
return P(() => _(r({
|
|
1417
1420
|
baseUrl: e.baseUrl,
|
|
1418
1421
|
auth: e.auth,
|
|
1419
1422
|
exchange: e.exchange,
|
|
@@ -1429,9 +1432,9 @@ function vn(e) {
|
|
|
1429
1432
|
n
|
|
1430
1433
|
]);
|
|
1431
1434
|
}
|
|
1432
|
-
function
|
|
1433
|
-
let [t, n] =
|
|
1434
|
-
|
|
1435
|
+
function An(e) {
|
|
1436
|
+
let [t, n] = F(0), [r, i] = F();
|
|
1437
|
+
N(() => {
|
|
1435
1438
|
let n = new AbortController();
|
|
1436
1439
|
return e(n.signal).then((r) => {
|
|
1437
1440
|
n.signal.aborted || i({
|
|
@@ -1455,13 +1458,13 @@ function yn(e) {
|
|
|
1455
1458
|
refetch: () => n((e) => e + 1)
|
|
1456
1459
|
};
|
|
1457
1460
|
}
|
|
1458
|
-
function
|
|
1459
|
-
let t =
|
|
1460
|
-
return
|
|
1461
|
+
function jn(e) {
|
|
1462
|
+
let t = kn(e);
|
|
1463
|
+
return An(M((e) => t.getAdminAccess(e), [t]));
|
|
1461
1464
|
}
|
|
1462
|
-
var
|
|
1463
|
-
function
|
|
1464
|
-
let n =
|
|
1465
|
+
var Mn = (e) => e instanceof v && e.code === "customer_not_found";
|
|
1466
|
+
function Nn(e) {
|
|
1467
|
+
let n = Z(e.appearance?.theme), r = kn(e), { data: a, error: o, isPending: s, refetch: c } = An(M(async (t) => {
|
|
1465
1468
|
let [n, i, a, o, s] = await Promise.all([
|
|
1466
1469
|
r.getCustomer(e.customer, t),
|
|
1467
1470
|
r.listSubscriptions({
|
|
@@ -1480,69 +1483,69 @@ function Sn(e) {
|
|
|
1480
1483
|
payments: s
|
|
1481
1484
|
};
|
|
1482
1485
|
}, [r, e.customer]));
|
|
1483
|
-
return /* @__PURE__ */
|
|
1486
|
+
return /* @__PURE__ */ R("section", {
|
|
1484
1487
|
className: ["orba", e.className].filter(Boolean).join(" "),
|
|
1485
1488
|
"data-orba-theme": n,
|
|
1486
|
-
style:
|
|
1487
|
-
children: /* @__PURE__ */
|
|
1489
|
+
style: K(e.appearance, "orba"),
|
|
1490
|
+
children: /* @__PURE__ */ z("div", {
|
|
1488
1491
|
className: "overflow-hidden rounded-xl bg-card text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10",
|
|
1489
|
-
children: [/* @__PURE__ */
|
|
1492
|
+
children: [/* @__PURE__ */ z("div", {
|
|
1490
1493
|
className: "flex flex-wrap items-center justify-between gap-3 border-b px-5 py-5 sm:px-6",
|
|
1491
|
-
children: [/* @__PURE__ */
|
|
1494
|
+
children: [/* @__PURE__ */ R("h2", {
|
|
1492
1495
|
className: "text-base leading-tight font-semibold",
|
|
1493
|
-
children: /* @__PURE__ */
|
|
1494
|
-
}), e.href && /* @__PURE__ */
|
|
1496
|
+
children: /* @__PURE__ */ R(t, { id: "Billing" })
|
|
1497
|
+
}), e.href && /* @__PURE__ */ R("a", {
|
|
1495
1498
|
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",
|
|
1496
1499
|
href: e.href,
|
|
1497
|
-
children: /* @__PURE__ */
|
|
1500
|
+
children: /* @__PURE__ */ R(t, { id: "View billing details" })
|
|
1498
1501
|
})]
|
|
1499
|
-
}), /* @__PURE__ */
|
|
1502
|
+
}), /* @__PURE__ */ z("div", {
|
|
1500
1503
|
className: "px-5 py-4 sm:px-6",
|
|
1501
1504
|
children: [
|
|
1502
|
-
s && /* @__PURE__ */
|
|
1505
|
+
s && /* @__PURE__ */ R("p", {
|
|
1503
1506
|
role: "status",
|
|
1504
1507
|
className: "text-muted-foreground",
|
|
1505
|
-
children: /* @__PURE__ */
|
|
1508
|
+
children: /* @__PURE__ */ R(t, { id: "Loading billing…" })
|
|
1506
1509
|
}),
|
|
1507
|
-
o &&
|
|
1510
|
+
o && Mn(o) && /* @__PURE__ */ R("p", {
|
|
1508
1511
|
className: "text-muted-foreground",
|
|
1509
|
-
children: /* @__PURE__ */
|
|
1512
|
+
children: /* @__PURE__ */ R(t, { id: "No billing activity yet." })
|
|
1510
1513
|
}),
|
|
1511
|
-
o && !
|
|
1514
|
+
o && !Mn(o) && /* @__PURE__ */ z("p", {
|
|
1512
1515
|
role: "alert",
|
|
1513
1516
|
children: [
|
|
1514
1517
|
i(o).text,
|
|
1515
1518
|
" ",
|
|
1516
|
-
/* @__PURE__ */
|
|
1519
|
+
/* @__PURE__ */ R("button", {
|
|
1517
1520
|
type: "button",
|
|
1518
1521
|
className: "underline underline-offset-4",
|
|
1519
1522
|
onClick: c,
|
|
1520
|
-
children: /* @__PURE__ */
|
|
1523
|
+
children: /* @__PURE__ */ R(t, { id: "Try again" })
|
|
1521
1524
|
})
|
|
1522
1525
|
]
|
|
1523
1526
|
}),
|
|
1524
|
-
a && /* @__PURE__ */
|
|
1527
|
+
a && /* @__PURE__ */ z("dl", {
|
|
1525
1528
|
className: "grid gap-x-6 gap-y-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-y-3",
|
|
1526
1529
|
children: [
|
|
1527
|
-
a.customer.balances.map((e) => /* @__PURE__ */
|
|
1530
|
+
a.customer.balances.map((e) => /* @__PURE__ */ R(Q, {
|
|
1528
1531
|
label: "Available balance",
|
|
1529
|
-
items: [
|
|
1532
|
+
items: [ie(e.available_amount, e.currency)]
|
|
1530
1533
|
}, e.currency)),
|
|
1531
|
-
/* @__PURE__ */
|
|
1534
|
+
/* @__PURE__ */ R(Q, {
|
|
1532
1535
|
label: "Active subscriptions",
|
|
1533
1536
|
items: a.subscriptions.data.map((e) => e.product?.display_name ?? e.id)
|
|
1534
1537
|
}),
|
|
1535
|
-
/* @__PURE__ */
|
|
1538
|
+
/* @__PURE__ */ R(Q, {
|
|
1536
1539
|
label: "Entitlements",
|
|
1537
1540
|
items: a.entitlements.data.map((e) => e.entitlement)
|
|
1538
1541
|
}),
|
|
1539
|
-
/* @__PURE__ */
|
|
1542
|
+
/* @__PURE__ */ R(Q, {
|
|
1540
1543
|
label: "Product access",
|
|
1541
|
-
items: a.access.data.map((e) => `${e.product_name} · ${
|
|
1544
|
+
items: a.access.data.map((e) => `${e.product_name} · ${oe(e.status)}`)
|
|
1542
1545
|
}),
|
|
1543
|
-
/* @__PURE__ */
|
|
1546
|
+
/* @__PURE__ */ R(Q, {
|
|
1544
1547
|
label: "Recent payments",
|
|
1545
|
-
items: a.payments.data.map((e) => `${
|
|
1548
|
+
items: a.payments.data.map((e) => `${ie(e.amount, e.currency)} · ${oe(e.status)}`)
|
|
1546
1549
|
})
|
|
1547
1550
|
]
|
|
1548
1551
|
})
|
|
@@ -1551,26 +1554,26 @@ function Sn(e) {
|
|
|
1551
1554
|
})
|
|
1552
1555
|
});
|
|
1553
1556
|
}
|
|
1554
|
-
function
|
|
1555
|
-
return /* @__PURE__ */ L
|
|
1557
|
+
function Q({ label: e, items: n }) {
|
|
1558
|
+
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("dt", {
|
|
1556
1559
|
className: "pt-2 text-muted-foreground first:pt-0 sm:pt-0",
|
|
1557
|
-
children: /* @__PURE__ */
|
|
1558
|
-
}), /* @__PURE__ */
|
|
1560
|
+
children: /* @__PURE__ */ R(t, { id: e })
|
|
1561
|
+
}), /* @__PURE__ */ R("dd", {
|
|
1559
1562
|
className: "min-w-0",
|
|
1560
|
-
children: n.length ? /* @__PURE__ */
|
|
1563
|
+
children: n.length ? /* @__PURE__ */ R("ul", {
|
|
1561
1564
|
className: "grid gap-0.5",
|
|
1562
|
-
children: n.map((e, t) => /* @__PURE__ */
|
|
1563
|
-
}) : /* @__PURE__ */
|
|
1565
|
+
children: n.map((e, t) => /* @__PURE__ */ R("li", { children: e }, t))
|
|
1566
|
+
}) : /* @__PURE__ */ R("span", {
|
|
1564
1567
|
className: "text-muted-foreground",
|
|
1565
|
-
children: /* @__PURE__ */
|
|
1568
|
+
children: /* @__PURE__ */ R(t, { id: "None" })
|
|
1566
1569
|
})
|
|
1567
1570
|
})] });
|
|
1568
1571
|
}
|
|
1569
|
-
function
|
|
1572
|
+
function Pn(e) {
|
|
1570
1573
|
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."] : [];
|
|
1571
1574
|
}
|
|
1572
|
-
var
|
|
1573
|
-
async function
|
|
1575
|
+
var Fn = "Subscription status could not be fully checked. Banning or deleting the account does not cancel subscriptions; review billing separately.";
|
|
1576
|
+
async function In(e) {
|
|
1574
1577
|
let t = typeof e.merchant == "string" ? {
|
|
1575
1578
|
id: e.merchant,
|
|
1576
1579
|
slug: e.merchant
|
|
@@ -1581,7 +1584,7 @@ async function Tn(e) {
|
|
|
1581
1584
|
try {
|
|
1582
1585
|
for (let t = 0; t < 10; t++) {
|
|
1583
1586
|
e.signal?.throwIfAborted();
|
|
1584
|
-
let t = await n.listSubscriptions({ customer_id: e.customer }, 100, i, e.signal), r =
|
|
1587
|
+
let t = await n.listSubscriptions({ customer_id: e.customer }, 100, i, e.signal), r = Pn({ subscriptions: t.data });
|
|
1585
1588
|
if (r.length) return r;
|
|
1586
1589
|
if (!t.next_cursor) return [];
|
|
1587
1590
|
if (a.has(t.next_cursor)) break;
|
|
@@ -1590,9 +1593,9 @@ async function Tn(e) {
|
|
|
1590
1593
|
} catch (t) {
|
|
1591
1594
|
if (e.signal?.throwIfAborted(), t instanceof Error && t.name === "AbortError") throw t;
|
|
1592
1595
|
}
|
|
1593
|
-
return [
|
|
1596
|
+
return [Fn];
|
|
1594
1597
|
}
|
|
1595
|
-
var
|
|
1598
|
+
var Ln = {
|
|
1596
1599
|
"customer:read": "Read customers, subscriptions, payments, and orders.",
|
|
1597
1600
|
"customer:manage": "Change customer billing, including refunds, cancellations, and credits.",
|
|
1598
1601
|
"catalog:manage": "Change products, prices, meters, and catalog migrations.",
|
|
@@ -1606,7 +1609,146 @@ var En = {
|
|
|
1606
1609
|
"events:read": "Read retained billing events through the application API.",
|
|
1607
1610
|
"orders:manage": "Preview, create, and withdraw merchant orders through the application API.",
|
|
1608
1611
|
"customers:read": "Read merchant customer identity and billing settings."
|
|
1609
|
-
},
|
|
1612
|
+
}, Rn = Object.fromEntries(["merchant", "root"].flatMap((e) => Object.entries(Ln).map(([t, n]) => [`${e}:${t}`, `${n} ${e === "root" ? "Applies across merchants." : "Applies within this merchant."}`])));
|
|
1613
|
+
//#endregion
|
|
1614
|
+
//#region src/admin/console.tsx
|
|
1615
|
+
function zn(e) {
|
|
1616
|
+
let t = Ke(), n = Ye(), r = e.navigation ?? n, i = Z(e.appearance?.theme), a;
|
|
1617
|
+
return a = t.status === "loading" ? /* @__PURE__ */ R($, { children: "Loading…" }) : t.status === "authenticated" ? /* @__PURE__ */ R(Ue, {
|
|
1618
|
+
acquireSolanaSigner: e.acquireSolanaSigner,
|
|
1619
|
+
children: /* @__PURE__ */ R(Hn, {
|
|
1620
|
+
...e,
|
|
1621
|
+
navigation: r,
|
|
1622
|
+
theme: i
|
|
1623
|
+
})
|
|
1624
|
+
}, t.userId) : e.signInPath ? /* @__PURE__ */ R(Bn, {
|
|
1625
|
+
path: e.signInPath,
|
|
1626
|
+
navigation: r
|
|
1627
|
+
}) : /* @__PURE__ */ R("div", {
|
|
1628
|
+
style: {
|
|
1629
|
+
display: "flex",
|
|
1630
|
+
justifyContent: "center",
|
|
1631
|
+
padding: "2.5rem 0"
|
|
1632
|
+
},
|
|
1633
|
+
children: /* @__PURE__ */ R(He, {})
|
|
1634
|
+
}), /* @__PURE__ */ R("div", {
|
|
1635
|
+
className: e.className,
|
|
1636
|
+
"data-openrails-admin-console": "",
|
|
1637
|
+
children: a
|
|
1638
|
+
});
|
|
1639
|
+
}
|
|
1640
|
+
function Bn({ path: e, navigation: t }) {
|
|
1641
|
+
let n = t.pathname + t.search;
|
|
1642
|
+
return N(() => {
|
|
1643
|
+
window.location.assign(`${e}?return_to=${encodeURIComponent(n)}`);
|
|
1644
|
+
}, [e, n]), /* @__PURE__ */ R($, { children: "Signing in…" });
|
|
1645
|
+
}
|
|
1646
|
+
var Vn = (e) => e.replace(/^\/+|\/+$/g, "");
|
|
1647
|
+
function Hn({ authBaseUrl: e, billingBaseUrl: t, merchant: n, basePath: r = "/admin", navigation: i, appearance: a, language: o, users: s = {}, theme: c }) {
|
|
1648
|
+
let l = Ge(), u = We(), d = Xe({
|
|
1649
|
+
auth: l,
|
|
1650
|
+
baseUrl: e,
|
|
1651
|
+
tenantId: s.tenantId
|
|
1652
|
+
}), f = Je({
|
|
1653
|
+
auth: l,
|
|
1654
|
+
baseUrl: e,
|
|
1655
|
+
group: "root"
|
|
1656
|
+
}), p = jn({
|
|
1657
|
+
baseUrl: t,
|
|
1658
|
+
auth: l,
|
|
1659
|
+
merchant: n
|
|
1660
|
+
}), m = `/${Vn(r)}`, h = i.pathname.startsWith(`${m}/`) ? Vn(i.pathname.slice(m.length)) : "", g = h === "billing" || h.startsWith("billing/"), _ = d.any || f.any, v = p.data, y = !!v && v.admin !== "none", b = !!v && (y || v.catalog !== "none" || v.merchant_config !== "none" || v.metrics), x = d.status === "loading" || f.status === "loading" || p.isPending, S = !x && !_ && b && !g;
|
|
1661
|
+
if (N(() => {
|
|
1662
|
+
S && i.navigate(`${m}/billing`, { replace: !0 });
|
|
1663
|
+
}, [
|
|
1664
|
+
S,
|
|
1665
|
+
i,
|
|
1666
|
+
m
|
|
1667
|
+
]), x) return /* @__PURE__ */ R($, { children: "Loading…" });
|
|
1668
|
+
if (!_ && !b) {
|
|
1669
|
+
let e = d.error ?? f.error ?? p.error;
|
|
1670
|
+
return /* @__PURE__ */ z($, { children: [e ? "Your access could not be checked." : "You have no administrative access.", e && /* @__PURE__ */ z(L, { children: [" ", /* @__PURE__ */ R("button", {
|
|
1671
|
+
type: "button",
|
|
1672
|
+
className: "underline underline-offset-4",
|
|
1673
|
+
onClick: () => {
|
|
1674
|
+
d.reload(), f.reload(), p.refetch();
|
|
1675
|
+
},
|
|
1676
|
+
children: "Try again"
|
|
1677
|
+
})] })] });
|
|
1678
|
+
}
|
|
1679
|
+
let C = {
|
|
1680
|
+
baseUrl: t,
|
|
1681
|
+
auth: l,
|
|
1682
|
+
merchant: n
|
|
1683
|
+
}, w = [_ && {
|
|
1684
|
+
href: m,
|
|
1685
|
+
label: "Accounts",
|
|
1686
|
+
current: !g
|
|
1687
|
+
}, b && {
|
|
1688
|
+
href: `${m}/billing`,
|
|
1689
|
+
label: "Billing",
|
|
1690
|
+
current: g
|
|
1691
|
+
}].filter((e) => !!e);
|
|
1692
|
+
return /* @__PURE__ */ z(L, { children: [w.length > 1 && /* @__PURE__ */ R("nav", {
|
|
1693
|
+
"aria-label": "Administration",
|
|
1694
|
+
className: "orba mb-6 flex gap-1 border-b px-4",
|
|
1695
|
+
"data-orba-theme": c,
|
|
1696
|
+
style: K(a, "orba"),
|
|
1697
|
+
children: w.map((e) => /* @__PURE__ */ R("a", {
|
|
1698
|
+
href: e.href,
|
|
1699
|
+
"aria-current": e.current ? "page" : void 0,
|
|
1700
|
+
onClick: (t) => {
|
|
1701
|
+
t.metaKey || t.ctrlKey || t.shiftKey || (t.preventDefault(), i.navigate(e.href));
|
|
1702
|
+
},
|
|
1703
|
+
className: ["-mb-px border-b-2 px-3 py-2 text-sm font-medium", e.current ? "border-primary text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"].join(" "),
|
|
1704
|
+
children: e.label
|
|
1705
|
+
}, e.href))
|
|
1706
|
+
}), g || !_ ? b && /* @__PURE__ */ R(Tn, {
|
|
1707
|
+
...C,
|
|
1708
|
+
basePath: `${m}/billing`,
|
|
1709
|
+
navigation: i,
|
|
1710
|
+
userHref: d.users.read ? (e) => `${m}/users/${encodeURIComponent(e)}` : void 0,
|
|
1711
|
+
appearance: a
|
|
1712
|
+
}) : /* @__PURE__ */ R("div", {
|
|
1713
|
+
style: { padding: "0 1.5rem 1.5rem" },
|
|
1714
|
+
children: /* @__PURE__ */ R(qe, {
|
|
1715
|
+
auth: l,
|
|
1716
|
+
baseUrl: e,
|
|
1717
|
+
basePath: m,
|
|
1718
|
+
navigation: i,
|
|
1719
|
+
guard: u,
|
|
1720
|
+
appearance: { theme: a?.theme ?? "inherit" },
|
|
1721
|
+
language: o,
|
|
1722
|
+
users: y ? {
|
|
1723
|
+
...s,
|
|
1724
|
+
userPanels: (e) => /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ le(Nn, {
|
|
1725
|
+
...C,
|
|
1726
|
+
key: e.id,
|
|
1727
|
+
customer: e.id,
|
|
1728
|
+
appearance: a,
|
|
1729
|
+
href: `${m}/billing/customers/${encodeURIComponent(e.id)}`
|
|
1730
|
+
}), s.userPanels?.(e)] }),
|
|
1731
|
+
confirmWarnings: async (e, t) => {
|
|
1732
|
+
let [n, r] = await Promise.all([In({
|
|
1733
|
+
...C,
|
|
1734
|
+
customer: e.id
|
|
1735
|
+
}), s.confirmWarnings?.(e, t)]);
|
|
1736
|
+
return [...n, ...r == null ? [] : [r].flat()];
|
|
1737
|
+
}
|
|
1738
|
+
} : s
|
|
1739
|
+
})
|
|
1740
|
+
})] });
|
|
1741
|
+
}
|
|
1742
|
+
function $({ children: e }) {
|
|
1743
|
+
return /* @__PURE__ */ R("p", {
|
|
1744
|
+
role: "status",
|
|
1745
|
+
style: { padding: "1.5rem" },
|
|
1746
|
+
children: e
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
//#endregion
|
|
1750
|
+
//#region src/admin/messages.ts
|
|
1751
|
+
var Un = {
|
|
1610
1752
|
"Sold by OpenRails": "Sold by OpenRails",
|
|
1611
1753
|
"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.",
|
|
1612
1754
|
"Sold via: ": "Sold via: ",
|
|
@@ -1665,6 +1807,7 @@ var En = {
|
|
|
1665
1807
|
", an edit set": ", an edit set",
|
|
1666
1808
|
", before another action.": ", before another action.",
|
|
1667
1809
|
", deleted: ": ", deleted: ",
|
|
1810
|
+
".": ".",
|
|
1668
1811
|
". Active holds may prevent revocation. Payment refunds are managed separately.": ". Active holds may prevent revocation. Payment refunds are managed separately.",
|
|
1669
1812
|
". Currency and interval stay locked to the current price.": ". Currency and interval stay locked to the current price.",
|
|
1670
1813
|
"/app/usage-events": "/app/usage-events",
|
|
@@ -1861,6 +2004,7 @@ var En = {
|
|
|
1861
2004
|
"Choose a method": "Choose a method",
|
|
1862
2005
|
Churn: "Churn",
|
|
1863
2006
|
"Clear all": "Clear all",
|
|
2007
|
+
"Clear customer": "Clear customer",
|
|
1864
2008
|
"Clear customer filter": "Clear customer filter",
|
|
1865
2009
|
"Clear filters": "Clear filters",
|
|
1866
2010
|
Close: "Close",
|
|
@@ -1894,7 +2038,6 @@ var En = {
|
|
|
1894
2038
|
"Custom range": "Custom range",
|
|
1895
2039
|
Customer: "Customer",
|
|
1896
2040
|
"Customer ID": "Customer ID",
|
|
1897
|
-
"Customer UUID": "Customer UUID",
|
|
1898
2041
|
"Customer controls": "Customer controls",
|
|
1899
2042
|
"Customer lookup": "Customer lookup",
|
|
1900
2043
|
"Customer not found.": "Customer not found.",
|
|
@@ -1962,7 +2105,7 @@ var En = {
|
|
|
1962
2105
|
Filter: "Filter",
|
|
1963
2106
|
"Filter meters on this page": "Filter meters on this page",
|
|
1964
2107
|
"Filter this page…": "Filter this page…",
|
|
1965
|
-
"Find a customer by
|
|
2108
|
+
"Find a customer by name or email, then pick a currency.": "Find a customer by name or email, then pick a currency.",
|
|
1966
2109
|
"First outcome": "First outcome",
|
|
1967
2110
|
"First page": "First page",
|
|
1968
2111
|
"Fixed included units": "Fixed included units",
|
|
@@ -2018,6 +2161,7 @@ var En = {
|
|
|
2018
2161
|
"Loading order…": "Loading order…",
|
|
2019
2162
|
"Loading products…": "Loading products…",
|
|
2020
2163
|
"Loading transactions…": "Loading transactions…",
|
|
2164
|
+
"Loading plans…": "Loading plans…",
|
|
2021
2165
|
"Loading…": "Loading…",
|
|
2022
2166
|
"Logo URL": "Logo URL",
|
|
2023
2167
|
"Manual remittance": "Manual remittance",
|
|
@@ -2043,7 +2187,7 @@ var En = {
|
|
|
2043
2187
|
"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.",
|
|
2044
2188
|
"Must be at least ": "Must be at least ",
|
|
2045
2189
|
"NMI history (before OpenRails recorded attempts)": "NMI history (before OpenRails recorded attempts)",
|
|
2046
|
-
"NMI
|
|
2190
|
+
"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.",
|
|
2047
2191
|
"NMI-owned": "NMI-owned",
|
|
2048
2192
|
"NMI-scheduled rebills": "NMI-scheduled rebills",
|
|
2049
2193
|
Name: "Name",
|
|
@@ -2072,7 +2216,7 @@ var En = {
|
|
|
2072
2216
|
"Next page": "Next page",
|
|
2073
2217
|
"No NMI history yet: it is read daily.": "No NMI history yet: it is read daily.",
|
|
2074
2218
|
"No PSPs configured.": "No PSPs configured.",
|
|
2075
|
-
"No actions are available for your permissions and this order
|
|
2219
|
+
"No actions are available for your permissions and this order's state.": "No actions are available for your permissions and this order's state.",
|
|
2076
2220
|
"No active products are available.": "No active products are available.",
|
|
2077
2221
|
"No active subscriptions.": "No active subscriptions.",
|
|
2078
2222
|
"No allowance": "No allowance",
|
|
@@ -2101,6 +2245,7 @@ var En = {
|
|
|
2101
2245
|
"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.",
|
|
2102
2246
|
"No subscriptions.": "No subscriptions.",
|
|
2103
2247
|
"No transactions in this currency.": "No transactions in this currency.",
|
|
2248
|
+
"No currency yet": "No currency yet",
|
|
2104
2249
|
"No usage meters yet": "No usage meters yet",
|
|
2105
2250
|
"No webhooks configured.": "No webhooks configured.",
|
|
2106
2251
|
"No widgets yet": "No widgets yet",
|
|
@@ -2162,6 +2307,7 @@ var En = {
|
|
|
2162
2307
|
"Period maximum": "Period maximum",
|
|
2163
2308
|
"Period: ": "Period: ",
|
|
2164
2309
|
"Pick a later date.": "Pick a later date.",
|
|
2310
|
+
"Pick a customer first": "Pick a customer first",
|
|
2165
2311
|
"Pick a product": "Pick a product",
|
|
2166
2312
|
"Pick a product…": "Pick a product…",
|
|
2167
2313
|
"Pick a rail…": "Pick a rail…",
|
|
@@ -2195,7 +2341,7 @@ var En = {
|
|
|
2195
2341
|
"Client subaccount": "Client subaccount",
|
|
2196
2342
|
"Pick a stored payment method": "Pick a stored payment method",
|
|
2197
2343
|
"Pinned to an archived (prior) version": "Pinned to an archived (prior) version",
|
|
2198
|
-
"Points future renewals of this subscription at another of the customer
|
|
2344
|
+
"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.",
|
|
2199
2345
|
Preview: "Preview",
|
|
2200
2346
|
"Previous page": "Previous page",
|
|
2201
2347
|
"Previous period": "Previous period",
|
|
@@ -2322,13 +2468,14 @@ var En = {
|
|
|
2322
2468
|
"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.",
|
|
2323
2469
|
"The accounts this merchant takes payments through, one or more per rail.": "The accounts this merchant takes payments through, one or more per rail.",
|
|
2324
2470
|
"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.",
|
|
2325
|
-
"The customer
|
|
2471
|
+
"The customer's default card": "The customer's default card",
|
|
2326
2472
|
"The daily report covers at most ": "The daily report covers at most ",
|
|
2327
2473
|
"The keys of the products this customer holds now.": "The keys of the products this customer holds now.",
|
|
2328
2474
|
"The payment provider calculates the final prorated amount.": "The payment provider calculates the final prorated amount.",
|
|
2475
|
+
"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 ",
|
|
2329
2476
|
"Their reference": "Their reference",
|
|
2330
2477
|
"There were no providers to consider.": "There were no providers to consider.",
|
|
2331
|
-
"These are the customer
|
|
2478
|
+
"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.",
|
|
2332
2479
|
"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.",
|
|
2333
2480
|
"This billing page does not exist.": "This billing page does not exist.",
|
|
2334
2481
|
"This is a price": "This is a price",
|
|
@@ -2385,7 +2532,7 @@ var En = {
|
|
|
2385
2532
|
"Why it was granted": "Why it was granted",
|
|
2386
2533
|
"Widget menu": "Widget menu",
|
|
2387
2534
|
"Widget title": "Widget title",
|
|
2388
|
-
"You
|
|
2535
|
+
"You're all caught up.": "You're all caught up.",
|
|
2389
2536
|
"Your directory holds no contact for this customer.": "Your directory holds no contact for this customer.",
|
|
2390
2537
|
"Your role does not have permission to read the merchant catalog.": "Your role does not have permission to read the merchant catalog.",
|
|
2391
2538
|
"access revocations": "access revocations",
|
|
@@ -2553,6 +2700,6 @@ var En = {
|
|
|
2553
2700
|
Imported: "Imported"
|
|
2554
2701
|
};
|
|
2555
2702
|
//#endregion
|
|
2556
|
-
export {
|
|
2703
|
+
export { zn as AdminConsole, Tn as BillingAdmin, Nn as BillingCustomerSummary, Un as billingAdminMessages, Pn as billingConfirmWarnings, Rn as billingPermissionHelp, In as loadBillingConfirmWarnings, jn as useBillingAdminAccess };
|
|
2557
2704
|
|
|
2558
2705
|
//# sourceMappingURL=admin.js.map
|