@openrails/billing-ui 0.282.0 → 0.283.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 +108 -364
- package/dist/account/format.d.ts +5 -1
- package/dist/admin/context.d.ts +38 -46
- package/dist/admin/lib/api/endpoints.d.ts +4 -4
- package/dist/admin/lib/api/index.d.ts +4 -4
- package/dist/admin/lib/api/metrics.d.ts +15 -6
- package/dist/admin/lib/capabilities.d.ts +2 -0
- package/dist/admin/lib/format.d.ts +29 -1
- package/dist/admin/lib/mutations.d.ts +0 -10
- package/dist/admin/lib/queries.d.ts +16 -10
- package/dist/admin/messages.d.ts +61 -20
- package/dist/admin/pages/catalog/price-wizard-logic.d.ts +2 -0
- package/dist/admin/pages/catalog/price-wizard.d.ts +1 -3
- package/dist/admin/pages/customers/credits.d.ts +4 -1
- package/dist/admin/pages/dashboard/levels.d.ts +8 -0
- package/dist/admin/pages/dashboard/lib.d.ts +16 -7
- package/dist/admin/pages/dashboard/programs.d.ts +3 -0
- package/dist/admin/pages/dashboard/query-builder.d.ts +20 -0
- package/dist/admin/pages/dashboard/range.d.ts +8 -2
- package/dist/admin/pages/dashboard/registry.d.ts +14 -0
- package/dist/admin/pages/dashboard/reports-model.d.ts +8 -4
- package/dist/admin/pages/dashboard/reports.d.ts +1 -1
- package/dist/admin/pages/dashboard/units.d.ts +5 -0
- package/dist/admin/pages/dashboard/use-range.d.ts +5 -1
- package/dist/admin/pages/dashboard/widget-editor.d.ts +7 -2
- package/dist/admin/pages/dashboard/widget-tile.d.ts +10 -4
- package/dist/admin/pages/dashboard/widget-viz.d.ts +10 -5
- package/dist/admin/pages/ops/signals.d.ts +4 -0
- package/dist/admin/pages/payments/attempts.d.ts +2 -2
- package/dist/admin/pages/payments/health-model.d.ts +20 -20
- package/dist/admin/pages/subscriptions/views.d.ts +4 -0
- package/dist/admin-attempts-CRkxeVfQ.js +417 -0
- package/dist/admin-attempts-CRkxeVfQ.js.map +1 -0
- package/dist/{admin-auth-CTLBqp7N.js → admin-auth-C0pBH3kp.js} +2 -2
- package/dist/{admin-auth-CTLBqp7N.js.map → admin-auth-C0pBH3kp.js.map} +1 -1
- package/dist/{admin-badge-3zABrSBc.js → admin-badge-C_-j7ANF.js} +2 -2
- package/dist/{admin-badge-3zABrSBc.js.map → admin-badge-C_-j7ANF.js.map} +1 -1
- package/dist/{admin-button-FRNl7_Yf.js → admin-button-BV5MAL2H.js} +2 -2
- package/dist/{admin-button-FRNl7_Yf.js.map → admin-button-BV5MAL2H.js.map} +1 -1
- package/dist/{admin-capabilities-uSi2Pb2h.js → admin-capabilities-B3ZfkA49.js} +21 -13
- package/dist/admin-capabilities-B3ZfkA49.js.map +1 -0
- package/dist/{admin-card-YKPGmx5w.js → admin-card-DQ61c-kV.js} +2 -2
- package/dist/{admin-card-YKPGmx5w.js.map → admin-card-DQ61c-kV.js.map} +1 -1
- package/dist/admin-catalog-DAnsClai.js +867 -0
- package/dist/admin-catalog-DAnsClai.js.map +1 -0
- package/dist/{admin-cursor-pager-BGgOOq7s.js → admin-cursor-pager-dkNj-gb6.js} +22 -22
- package/dist/{admin-cursor-pager-BGgOOq7s.js.map → admin-cursor-pager-dkNj-gb6.js.map} +1 -1
- package/dist/admin-customer-search-DDMn_5Us.js +115 -0
- package/dist/admin-customer-search-DDMn_5Us.js.map +1 -0
- package/dist/{admin-customers-DFQ75ZBi.js → admin-customers-BMaugwpg.js} +24 -25
- package/dist/admin-customers-BMaugwpg.js.map +1 -0
- package/dist/admin-dashboard-DbbfrIOq.js +510 -0
- package/dist/admin-dashboard-DbbfrIOq.js.map +1 -0
- package/dist/{admin-data-table-DyYm4h_Y.js → admin-data-table-BjA8cBsr.js} +5 -5
- package/dist/{admin-data-table-DyYm4h_Y.js.map → admin-data-table-BjA8cBsr.js.map} +1 -1
- package/dist/admin-detail-BVJcnTO-.js +1361 -0
- package/dist/admin-detail-BVJcnTO-.js.map +1 -0
- package/dist/{admin-detail-CG3kLIDS.js → admin-detail-DO9wd12I.js} +130 -107
- package/dist/admin-detail-DO9wd12I.js.map +1 -0
- package/dist/{admin-detail-SLijWf4F.js → admin-detail-M7YFYOGN.js} +211 -210
- package/dist/{admin-detail-SLijWf4F.js.map → admin-detail-M7YFYOGN.js.map} +1 -1
- package/dist/admin-detail-sOLj-K-Y.js +336 -0
- package/dist/{admin-detail-wttCvrxI.js.map → admin-detail-sOLj-K-Y.js.map} +1 -1
- package/dist/admin-detail-uZ-eR2TT.js +292 -0
- package/dist/{admin-detail-BytmF-e3.js.map → admin-detail-uZ-eR2TT.js.map} +1 -1
- package/dist/{admin-dialog-BVx92baz.js → admin-dialog-BxRcYcQM.js} +3 -3
- package/dist/{admin-dialog-BVx92baz.js.map → admin-dialog-BxRcYcQM.js.map} +1 -1
- package/dist/{admin-dropdown-menu-BV7vxYr9.js → admin-dropdown-menu-DlyaKwyU.js} +2 -2
- package/dist/{admin-dropdown-menu-BV7vxYr9.js.map → admin-dropdown-menu-DlyaKwyU.js.map} +1 -1
- package/dist/{admin-dunning-D8lAP7OA.js → admin-dunning-CDy6aMAj.js} +2 -2
- package/dist/{admin-dunning-D8lAP7OA.js.map → admin-dunning-CDy6aMAj.js.map} +1 -1
- package/dist/{admin-fact-card-CTQyFmQY.js → admin-fact-card-2DujC_r3.js} +2 -2
- package/dist/{admin-fact-card-CTQyFmQY.js.map → admin-fact-card-2DujC_r3.js.map} +1 -1
- package/dist/{admin-utils-CuwG3SAt.js → admin-format-Bc4NWK0F.js} +491 -328
- package/dist/admin-format-Bc4NWK0F.js.map +1 -0
- package/dist/{admin-health-DWpONa-7.js → admin-health-DePsyIlc.js} +217 -196
- package/dist/admin-health-DePsyIlc.js.map +1 -0
- package/dist/{admin-imports-Dsd5QmAe.js → admin-imports-BrQH3u9M.js} +85 -86
- package/dist/{admin-imports-Dsd5QmAe.js.map → admin-imports-BrQH3u9M.js.map} +1 -1
- package/dist/{admin-input-DhYEd7Yp.js → admin-input-BZ2ExV_5.js} +2 -2
- package/dist/{admin-input-DhYEd7Yp.js.map → admin-input-BZ2ExV_5.js.map} +1 -1
- package/dist/{admin-label-DwUfUVm6.js → admin-label-DecDO0oV.js} +2 -2
- package/dist/{admin-label-DwUfUVm6.js.map → admin-label-DecDO0oV.js.map} +1 -1
- package/dist/{admin-linked-table-row-CqG_aCwd.js → admin-linked-table-row-ChxhVptQ.js} +3 -3
- package/dist/{admin-linked-table-row-CqG_aCwd.js.map → admin-linked-table-row-ChxhVptQ.js.map} +1 -1
- package/dist/{admin-map-dialog-DZuPq4UA.js → admin-map-dialog-CQmGOBMw.js} +12 -12
- package/dist/{admin-map-dialog-DZuPq4UA.js.map → admin-map-dialog-CQmGOBMw.js.map} +1 -1
- package/dist/admin-metering-OXGOVQ7e.js +1716 -0
- package/dist/{admin-metering-kGrQIiEX.js.map → admin-metering-OXGOVQ7e.js.map} +1 -1
- package/dist/{admin-missing-record-CjIQEv9L.js → admin-missing-record-B_9LpSIW.js} +4 -4
- package/dist/{admin-missing-record-CjIQEv9L.js.map → admin-missing-record-B_9LpSIW.js.map} +1 -1
- package/dist/admin-ops-BTSunx1i.js +357 -0
- package/dist/{admin-ops-B1Gwrsq6.js.map → admin-ops-BTSunx1i.js.map} +1 -1
- package/dist/{admin-orders-DRpUMK7N.js → admin-orders-LqlpQVFo.js} +59 -60
- package/dist/{admin-orders-DRpUMK7N.js.map → admin-orders-LqlpQVFo.js.map} +1 -1
- package/dist/{admin-parked-uH5dSPjL.js → admin-parked-Ch6mlS5f.js} +61 -62
- package/dist/{admin-parked-uH5dSPjL.js.map → admin-parked-Ch6mlS5f.js.map} +1 -1
- package/dist/{admin-payments-DFW5O19Q.js → admin-payments-yNntF4i4.js} +42 -42
- package/dist/{admin-payments-DFW5O19Q.js.map → admin-payments-yNntF4i4.js.map} +1 -1
- package/dist/{admin-price-detail-CaUekDWP.js → admin-price-detail-DvmcYr8B.js} +131 -132
- package/dist/admin-price-detail-DvmcYr8B.js.map +1 -0
- package/dist/{admin-price-format-BrXm8J1w.js → admin-price-format-Btdg11-J.js} +2 -2
- package/dist/{admin-price-format-BrXm8J1w.js.map → admin-price-format-Btdg11-J.js.map} +1 -1
- package/dist/admin-price-wizard-EFO3nBV8.js +376 -0
- package/dist/admin-price-wizard-EFO3nBV8.js.map +1 -0
- package/dist/{admin-proposals-BuPBTbX7.js → admin-proposals-CO0LKHM8.js} +119 -120
- package/dist/{admin-proposals-BuPBTbX7.js.map → admin-proposals-CO0LKHM8.js.map} +1 -1
- package/dist/admin-provider-prices-ZjQeEV1n.js +239 -0
- package/dist/{admin-provider-prices-BtyrGlSd.js.map → admin-provider-prices-ZjQeEV1n.js.map} +1 -1
- package/dist/admin-query-builder-DedekYUU.js +252 -0
- package/dist/admin-query-builder-DedekYUU.js.map +1 -0
- package/dist/{admin-range-picker-B1C1R9Yh.js → admin-range-picker-1WGFlYYw.js} +46 -24
- package/dist/admin-range-picker-1WGFlYYw.js.map +1 -0
- package/dist/admin-records-A2R52prt.js +389 -0
- package/dist/{admin-records-CZ_Q1j7i.js.map → admin-records-A2R52prt.js.map} +1 -1
- package/dist/admin-reports-ySY9v463.js +420 -0
- package/dist/admin-reports-ySY9v463.js.map +1 -0
- package/dist/{admin-select-CCliJ9d-.js → admin-select-CgZq2j0G.js} +2 -2
- package/dist/{admin-select-CCliJ9d-.js.map → admin-select-CgZq2j0G.js.map} +1 -1
- package/dist/admin-settings-kOW1nPGB.js +1818 -0
- package/dist/admin-settings-kOW1nPGB.js.map +1 -0
- package/dist/{admin-shared-Bozlh9cy.js → admin-shared-DoBOSwkv.js} +33 -34
- package/dist/{admin-shared-Bozlh9cy.js.map → admin-shared-DoBOSwkv.js.map} +1 -1
- package/dist/admin-signals-D_iWk2r5.js +124 -0
- package/dist/admin-signals-D_iWk2r5.js.map +1 -0
- package/dist/{admin-skeleton-CKxohm-g.js → admin-skeleton-DdqwXcr4.js} +2 -2
- package/dist/{admin-skeleton-CKxohm-g.js.map → admin-skeleton-DdqwXcr4.js.map} +1 -1
- package/dist/{admin-status-badge-BhHyBG8J.js → admin-status-badge-B8rjk6QR.js} +5 -3
- package/dist/admin-status-badge-B8rjk6QR.js.map +1 -0
- package/dist/{admin-subscriptions-VwEbVACW.js → admin-subscriptions-CjYPSPs-.js} +43 -38
- package/dist/admin-subscriptions-CjYPSPs-.js.map +1 -0
- package/dist/{admin-switch-CE0N-HwZ.js → admin-switch-CyYmt8wi.js} +2 -2
- package/dist/{admin-switch-CE0N-HwZ.js.map → admin-switch-CyYmt8wi.js.map} +1 -1
- package/dist/{admin-table-Ce6xyiwJ.js → admin-table-ByPfWNq8.js} +2 -2
- package/dist/{admin-table-Ce6xyiwJ.js.map → admin-table-ByPfWNq8.js.map} +1 -1
- package/dist/admin-tabs-DKa6QljL.js +45 -0
- package/dist/admin-tabs-DKa6QljL.js.map +1 -0
- package/dist/{admin-textarea-CBAshts8.js → admin-textarea-CQg__KGc.js} +2 -2
- package/dist/{admin-textarea-CBAshts8.js.map → admin-textarea-CQg__KGc.js.map} +1 -1
- package/dist/{admin-typed-confirm-dialog-C1kHdYgH.js → admin-typed-confirm-dialog-BvAYEh3H.js} +6 -6
- package/dist/{admin-typed-confirm-dialog-C1kHdYgH.js.map → admin-typed-confirm-dialog-BvAYEh3H.js.map} +1 -1
- package/dist/admin-widget-tile-DDI3eaRy.js +290 -0
- package/dist/admin-widget-tile-DDI3eaRy.js.map +1 -0
- package/dist/admin-widget-viz-Db9CQ2Sx.js +1084 -0
- package/dist/admin-widget-viz-Db9CQ2Sx.js.map +1 -0
- package/dist/admin.css +1 -1
- package/dist/admin.js +660 -609
- package/dist/admin.js.map +1 -1
- package/dist/buy-button.d.ts +4 -2
- package/dist/cart.d.ts +4 -2
- package/dist/client/client.d.ts +16 -3
- package/dist/client/generated/error-codes.d.ts +1 -1
- package/dist/client/generated/routes.d.ts +296 -181
- package/dist/client/generated/wire.d.ts +509 -277
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.d.ts +70 -6
- package/dist/{client-BrURpRWz.js → client-D8qT6xjo.js} +84 -44
- package/dist/client-D8qT6xjo.js.map +1 -0
- package/dist/client.js +1 -1
- package/dist/components/billing-fields.d.ts +5 -3
- package/dist/components/platform-card-form.d.ts +3 -1
- package/dist/{hooks-Bbp1RWgw.js → hooks-CX09fAJA.js} +86 -60
- package/dist/hooks-CX09fAJA.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +842 -779
- package/dist/index.js.map +1 -1
- package/dist/lib/billing-fields.d.ts +15 -0
- package/dist/lib/billing.d.ts +23 -5
- package/dist/product-list.d.ts +4 -2
- package/dist/react/config.d.ts +10 -2
- package/dist/react/index.d.ts +1 -1
- package/dist/react.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tokenized-card-form.d.ts +10 -2
- package/docs/payment-form-contract.md +6 -15
- package/package.json +6 -6
- package/dist/admin/lib/api/copilot.d.ts +0 -6
- package/dist/admin/pages/catalog/copilot-panel.d.ts +0 -4
- package/dist/admin-attempts-Cs2u-BLY.js +0 -418
- package/dist/admin-attempts-Cs2u-BLY.js.map +0 -1
- package/dist/admin-capabilities-uSi2Pb2h.js.map +0 -1
- package/dist/admin-catalog-DB5lr46V.js +0 -1096
- package/dist/admin-catalog-DB5lr46V.js.map +0 -1
- package/dist/admin-customers-DFQ75ZBi.js.map +0 -1
- package/dist/admin-dashboard-Q_4-OFsE.js +0 -461
- package/dist/admin-dashboard-Q_4-OFsE.js.map +0 -1
- package/dist/admin-detail-BytmF-e3.js +0 -293
- package/dist/admin-detail-CG3kLIDS.js.map +0 -1
- package/dist/admin-detail-RS0o4-Cq.js +0 -1351
- package/dist/admin-detail-RS0o4-Cq.js.map +0 -1
- package/dist/admin-detail-wttCvrxI.js +0 -337
- package/dist/admin-format-D9Ablh0P.js +0 -169
- package/dist/admin-format-D9Ablh0P.js.map +0 -1
- package/dist/admin-health-DWpONa-7.js.map +0 -1
- package/dist/admin-metering-kGrQIiEX.js +0 -1717
- package/dist/admin-ops-B1Gwrsq6.js +0 -358
- package/dist/admin-price-detail-CaUekDWP.js.map +0 -1
- package/dist/admin-price-wizard-CCejN6lZ.js +0 -355
- package/dist/admin-price-wizard-CCejN6lZ.js.map +0 -1
- package/dist/admin-provider-prices-BtyrGlSd.js +0 -240
- package/dist/admin-range-picker-B1C1R9Yh.js.map +0 -1
- package/dist/admin-records-CZ_Q1j7i.js +0 -390
- package/dist/admin-reports-ZDEVF7aC.js +0 -319
- package/dist/admin-reports-ZDEVF7aC.js.map +0 -1
- package/dist/admin-settings-HBiilJTI.js +0 -1818
- package/dist/admin-settings-HBiilJTI.js.map +0 -1
- package/dist/admin-status-badge-BhHyBG8J.js.map +0 -1
- package/dist/admin-subscriptions-VwEbVACW.js.map +0 -1
- package/dist/admin-tabs-BPfOyBa6.js +0 -156
- package/dist/admin-tabs-BPfOyBa6.js.map +0 -1
- package/dist/admin-utils-CuwG3SAt.js.map +0 -1
- package/dist/admin-widget-viz-Dd1Fjd_j.js +0 -643
- package/dist/admin-widget-viz-Dd1Fjd_j.js.map +0 -1
- package/dist/client-BrURpRWz.js.map +0 -1
- package/dist/hooks-Bbp1RWgw.js.map +0 -1
package/dist/admin.js
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as
|
|
4
|
-
import { i as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { AuthAdmin as qe, useGroupAdminAccess as Je, useHistoryNavigation as Ye, useUsersAdminAccess as Xe } from "@openrails/auth-ui/admin";
|
|
1
|
+
import { C as e, D as t, E as n, I as r, J as i, K as a, L as o, M as s, N as c, O as l, P as u, R as d, S as f, X as p, Y as m, a as h, j as g, l as _, q as v, v as y, w as b, z as x } from "./admin-format-Bc4NWK0F.js";
|
|
2
|
+
import { a as S, i as C, n as w, o as ee, r as te, s as ne, t as T } from "./admin-dropdown-menu-DlyaKwyU.js";
|
|
3
|
+
import { t as E } from "./admin-button-BV5MAL2H.js";
|
|
4
|
+
import { i as D, m as O, o as re, p as ie, t as ae, u as k } from "./admin-capabilities-B3ZfkA49.js";
|
|
5
|
+
import { t as A } from "./admin-auth-C0pBH3kp.js";
|
|
6
|
+
import { t as oe } from "./admin-confirm-DWq-edDC.js";
|
|
7
|
+
import { n as se } from "./admin-status-badge-B8rjk6QR.js";
|
|
8
|
+
import * as j from "react";
|
|
9
|
+
import { Component as ce, Suspense as le, createElement as ue, lazy as M, useCallback as N, useEffect as P, useId as de, useLayoutEffect as fe, useMemo as F, useRef as pe, useState as I, useSyncExternalStore as me } from "react";
|
|
10
|
+
import { QueryCache as he, QueryClient as ge, QueryClientProvider as _e, useQuery as L } from "@tanstack/react-query";
|
|
11
|
+
import { Toaster as ve } from "sonner";
|
|
12
|
+
import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
|
|
13
|
+
import { HugeiconsIcon as V } from "@hugeicons/react";
|
|
14
|
+
import { Add01Icon as ye, Alert01Icon as be, AlertCircleIcon as xe, CreditCardIcon as Se, DashboardCircleIcon as Ce, Notification01Icon as we, PackageIcon as Te, Refresh01Icon as Ee, RepeatIcon as De, Settings01Icon as Oe, Tick02Icon as ke, UnfoldMoreIcon as Ae, UserGroupIcon as je, Wrench01Icon as Me } from "@hugeicons/core-free-icons";
|
|
15
|
+
import { ChevronRightIcon as Ne, CircleCheckIcon as Pe, InfoIcon as Fe, Loader2Icon as Ie, OctagonXIcon as Le, PanelLeftIcon as Re, TriangleAlertIcon as ze, XIcon as Be } from "lucide-react";
|
|
16
|
+
import { mergeProps as H } from "@base-ui/react/merge-props";
|
|
17
|
+
import { useRender as U } from "@base-ui/react/use-render";
|
|
18
|
+
import { cva as Ve } from "class-variance-authority";
|
|
19
|
+
import { Separator as He } from "@base-ui/react/separator";
|
|
20
|
+
import { Dialog as W } from "@base-ui/react/dialog";
|
|
21
|
+
import { Tooltip as G } from "@base-ui/react/tooltip";
|
|
22
|
+
import { AlertDialog as K } from "@base-ui/react/alert-dialog";
|
|
23
|
+
import { SignInPanel as Ue, StepUpProvider as We, useStepUpGuard as Ge } from "@openrails/auth-ui";
|
|
24
|
+
import { useAuthClient as Ke, useSession as qe } from "@openrails/auth-ui/react";
|
|
25
|
+
import { AuthAdmin as Je, useGroupAdminAccess as Ye, useHistoryNavigation as Xe, useUsersAdminAccess as Ze } from "@openrails/auth-ui/admin";
|
|
27
26
|
// src/appearance.ts
|
|
28
|
-
var
|
|
27
|
+
var Qe = {
|
|
29
28
|
background: "--background",
|
|
30
29
|
foreground: "--foreground",
|
|
31
30
|
card: "--card",
|
|
@@ -40,130 +39,134 @@ var Ze = {
|
|
|
40
39
|
radius: "--radius",
|
|
41
40
|
fontFamily: "--orck-font"
|
|
42
41
|
};
|
|
43
|
-
function
|
|
42
|
+
function q(e, t = "orck") {
|
|
44
43
|
let n = e?.variables;
|
|
45
44
|
if (!n) return;
|
|
46
45
|
let r = {};
|
|
47
|
-
for (let [e, i] of Object.entries(n)) i && (r[
|
|
46
|
+
for (let [e, i] of Object.entries(n)) i && (r[Qe[e].replace("--orck-", `--${t}-`)] = i);
|
|
48
47
|
return r;
|
|
49
48
|
}
|
|
50
49
|
// src/admin/routes.tsx
|
|
51
|
-
var
|
|
50
|
+
var $e = [
|
|
52
51
|
{
|
|
53
52
|
path: "/payments/attempts",
|
|
54
|
-
Component:
|
|
53
|
+
Component: M(() => import("./admin-attempts-CRkxeVfQ.js").then((e) => ({ default: e.AttemptsPage })))
|
|
55
54
|
},
|
|
56
55
|
{
|
|
57
56
|
path: "/catalog/metering",
|
|
58
|
-
Component:
|
|
57
|
+
Component: M(() => import("./admin-metering-OXGOVQ7e.js").then((e) => ({ default: e.CatalogMeteringPage })))
|
|
59
58
|
},
|
|
60
59
|
{
|
|
61
60
|
path: "/payments/health",
|
|
62
|
-
Component:
|
|
61
|
+
Component: M(() => import("./admin-health-DePsyIlc.js").then((e) => ({ default: e.PaymentHealthPage })))
|
|
63
62
|
},
|
|
64
63
|
{
|
|
65
64
|
path: "/payments/cycles",
|
|
66
|
-
Component:
|
|
65
|
+
Component: M(() => import("./admin-attempts-CRkxeVfQ.js").then((e) => ({ default: e.CyclesPage })))
|
|
67
66
|
},
|
|
68
67
|
{
|
|
69
68
|
path: "/catalog/prices",
|
|
70
|
-
Component:
|
|
69
|
+
Component: M(() => import("./admin-catalog-DAnsClai.js").then((e) => ({ default: e.CatalogPricesPage })))
|
|
71
70
|
},
|
|
72
71
|
{
|
|
73
72
|
path: "/subscriptions",
|
|
74
|
-
Component:
|
|
73
|
+
Component: M(() => import("./admin-subscriptions-CjYPSPs-.js").then((e) => ({ default: e.SubscriptionsPage })))
|
|
75
74
|
},
|
|
76
75
|
{
|
|
77
76
|
path: "/customers",
|
|
78
|
-
Component:
|
|
77
|
+
Component: M(() => import("./admin-customers-BMaugwpg.js").then((e) => ({ default: e.CustomersPage })))
|
|
79
78
|
},
|
|
80
79
|
{
|
|
81
80
|
path: "/payments",
|
|
82
|
-
Component:
|
|
81
|
+
Component: M(() => import("./admin-payments-yNntF4i4.js").then((e) => ({ default: e.PaymentsPage })))
|
|
83
82
|
},
|
|
84
83
|
{
|
|
85
84
|
path: "/settings",
|
|
86
|
-
Component:
|
|
85
|
+
Component: M(() => import("./admin-settings-kOW1nPGB.js").then((e) => ({ default: e.SettingsPage })))
|
|
87
86
|
},
|
|
88
87
|
{
|
|
89
88
|
path: "/reports",
|
|
90
|
-
Component:
|
|
89
|
+
Component: M(() => import("./admin-reports-ySY9v463.js").then((e) => ({ default: e.ReportsPage })))
|
|
91
90
|
},
|
|
92
91
|
{
|
|
93
92
|
path: "/catalog",
|
|
94
|
-
Component:
|
|
93
|
+
Component: M(() => import("./admin-catalog-DAnsClai.js").then((e) => ({ default: e.CatalogProductsPage })))
|
|
95
94
|
},
|
|
96
95
|
{
|
|
97
96
|
path: "/orders",
|
|
98
|
-
Component:
|
|
97
|
+
Component: M(() => import("./admin-orders-LqlpQVFo.js").then((e) => ({ default: e.OrdersPage })))
|
|
99
98
|
},
|
|
100
99
|
{
|
|
101
100
|
path: "/ops/imports",
|
|
102
|
-
Component:
|
|
101
|
+
Component: M(() => import("./admin-imports-BrQH3u9M.js").then((e) => ({ default: e.ImportsPage })))
|
|
103
102
|
},
|
|
104
103
|
{
|
|
105
104
|
path: "/ops/imports/:id",
|
|
106
|
-
Component:
|
|
105
|
+
Component: M(() => import("./admin-detail-uZ-eR2TT.js").then((e) => ({ default: e.ImportDetailPage })))
|
|
107
106
|
},
|
|
108
107
|
{
|
|
109
108
|
path: "/ops/imports/:id/records",
|
|
110
|
-
Component:
|
|
109
|
+
Component: M(() => import("./admin-records-A2R52prt.js").then((e) => ({ default: e.ImportRecordsPage })))
|
|
111
110
|
},
|
|
112
111
|
{
|
|
113
112
|
path: "/ops/provider-prices",
|
|
114
|
-
Component:
|
|
113
|
+
Component: M(() => import("./admin-provider-prices-ZjQeEV1n.js").then((e) => ({ default: e.ProviderPricesPage })))
|
|
115
114
|
},
|
|
116
115
|
{
|
|
117
116
|
path: "/ops/proposals",
|
|
118
|
-
Component:
|
|
117
|
+
Component: M(() => import("./admin-proposals-CO0LKHM8.js").then((e) => ({ default: e.ProposalsPage })))
|
|
119
118
|
},
|
|
120
119
|
{
|
|
121
120
|
path: "/ops/parked",
|
|
122
|
-
Component:
|
|
121
|
+
Component: M(() => import("./admin-parked-Ch6mlS5f.js").then((e) => ({ default: e.ParkedPage })))
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
path: "/ops/signals",
|
|
125
|
+
Component: M(() => import("./admin-signals-D_iWk2r5.js").then((e) => ({ default: e.SignalsPage })))
|
|
123
126
|
},
|
|
124
127
|
{
|
|
125
128
|
path: "/ops",
|
|
126
|
-
Component:
|
|
129
|
+
Component: M(() => import("./admin-ops-BTSunx1i.js").then((e) => ({ default: e.OpsPage })))
|
|
127
130
|
},
|
|
128
131
|
{
|
|
129
132
|
path: "/",
|
|
130
|
-
Component:
|
|
133
|
+
Component: M(() => import("./admin-dashboard-DbbfrIOq.js").then((e) => ({ default: e.DashboardPage })))
|
|
131
134
|
},
|
|
132
135
|
{
|
|
133
136
|
path: "/customers/:customerId",
|
|
134
|
-
Component:
|
|
137
|
+
Component: M(() => import("./admin-detail-BVJcnTO-.js").then((e) => ({ default: e.CustomerDetailPage })))
|
|
135
138
|
},
|
|
136
139
|
{
|
|
137
140
|
path: "/payments/attempts/:id",
|
|
138
|
-
Component:
|
|
141
|
+
Component: M(() => import("./admin-attempts-CRkxeVfQ.js").then((e) => ({ default: e.AttemptDetailPage })))
|
|
139
142
|
},
|
|
140
143
|
{
|
|
141
144
|
path: "/catalog/metering/:key",
|
|
142
|
-
Component:
|
|
145
|
+
Component: M(() => import("./admin-metering-OXGOVQ7e.js").then((e) => ({ default: e.MeterDetailPage })))
|
|
143
146
|
},
|
|
144
147
|
{
|
|
145
148
|
path: "/payments/cycles/:id",
|
|
146
|
-
Component:
|
|
149
|
+
Component: M(() => import("./admin-attempts-CRkxeVfQ.js").then((e) => ({ default: e.CycleDetailPage })))
|
|
147
150
|
},
|
|
148
151
|
{
|
|
149
152
|
path: "/catalog/prices/:id",
|
|
150
|
-
Component:
|
|
153
|
+
Component: M(() => import("./admin-price-detail-DvmcYr8B.js").then((e) => ({ default: e.PriceDetailPage })))
|
|
151
154
|
},
|
|
152
155
|
{
|
|
153
156
|
path: "/subscriptions/:id",
|
|
154
|
-
Component:
|
|
157
|
+
Component: M(() => import("./admin-detail-M7YFYOGN.js").then((e) => ({ default: e.SubscriptionDetailPage })))
|
|
155
158
|
},
|
|
156
159
|
{
|
|
157
160
|
path: "/payments/:id",
|
|
158
|
-
Component:
|
|
161
|
+
Component: M(() => import("./admin-detail-sOLj-K-Y.js").then((e) => ({ default: e.PaymentDetailPage })))
|
|
159
162
|
},
|
|
160
163
|
{
|
|
161
164
|
path: "/orders/:id",
|
|
162
|
-
Component:
|
|
165
|
+
Component: M(() => import("./admin-detail-DO9wd12I.js").then((e) => ({ default: e.OrderDetailPage })))
|
|
163
166
|
}
|
|
164
167
|
];
|
|
165
|
-
function
|
|
166
|
-
for (let { path: t, Component: n } of
|
|
168
|
+
function et(e) {
|
|
169
|
+
for (let { path: t, Component: n } of $e) {
|
|
167
170
|
let r = e.replace(/\/$/, "").split("/"), i = t === "/" ? [""] : t.split("/"), a = {};
|
|
168
171
|
if (r.length === i.length && i.every((e, t) => {
|
|
169
172
|
if (e.startsWith(":")) try {
|
|
@@ -178,232 +181,232 @@ function $e(e) {
|
|
|
178
181
|
};
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
|
-
function
|
|
182
|
-
let e =
|
|
183
|
-
return e ? /* @__PURE__ */
|
|
184
|
+
function tt() {
|
|
185
|
+
let e = et(t().pathname);
|
|
186
|
+
return e ? /* @__PURE__ */ z(n, {
|
|
184
187
|
params: e.params,
|
|
185
|
-
children: /* @__PURE__ */
|
|
186
|
-
fallback: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ z(le, {
|
|
189
|
+
fallback: /* @__PURE__ */ z("p", {
|
|
187
190
|
role: "status",
|
|
188
|
-
children: /* @__PURE__ */
|
|
191
|
+
children: /* @__PURE__ */ z(i, { id: "Loading…" })
|
|
189
192
|
}),
|
|
190
|
-
children: /* @__PURE__ */
|
|
193
|
+
children: /* @__PURE__ */ z(e.Component, {})
|
|
191
194
|
})
|
|
192
|
-
}) : /* @__PURE__ */
|
|
195
|
+
}) : /* @__PURE__ */ z("p", {
|
|
193
196
|
role: "status",
|
|
194
|
-
children: /* @__PURE__ */
|
|
197
|
+
children: /* @__PURE__ */ z(i, { id: "This billing page does not exist." })
|
|
195
198
|
});
|
|
196
199
|
}
|
|
197
200
|
// src/admin/hooks/use-mobile.ts
|
|
198
|
-
var
|
|
199
|
-
let t = window.matchMedia(
|
|
201
|
+
var nt = "(max-width: 767px)", rt = (e) => {
|
|
202
|
+
let t = window.matchMedia(nt);
|
|
200
203
|
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
201
204
|
};
|
|
202
|
-
function
|
|
203
|
-
return
|
|
205
|
+
function it() {
|
|
206
|
+
return me(rt, () => window.matchMedia(nt).matches, () => !1);
|
|
204
207
|
}
|
|
205
208
|
// src/admin/components/ui/separator.tsx
|
|
206
|
-
function
|
|
207
|
-
return /* @__PURE__ */
|
|
209
|
+
function at({ className: e, orientation: t = "horizontal", ...n }) {
|
|
210
|
+
return /* @__PURE__ */ z(He, {
|
|
208
211
|
"data-slot": "separator",
|
|
209
212
|
orientation: t,
|
|
210
|
-
className:
|
|
213
|
+
className: f("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", e),
|
|
211
214
|
...n
|
|
212
215
|
});
|
|
213
216
|
}
|
|
214
217
|
// src/admin/components/ui/sheet.tsx
|
|
215
|
-
function
|
|
216
|
-
return /* @__PURE__ */
|
|
218
|
+
function ot({ ...e }) {
|
|
219
|
+
return /* @__PURE__ */ z(W.Root, {
|
|
217
220
|
"data-slot": "sheet",
|
|
218
221
|
...e
|
|
219
222
|
});
|
|
220
223
|
}
|
|
221
|
-
function
|
|
222
|
-
return /* @__PURE__ */
|
|
223
|
-
container:
|
|
224
|
+
function st({ ...e }) {
|
|
225
|
+
return /* @__PURE__ */ z(W.Portal, {
|
|
226
|
+
container: c().portal,
|
|
224
227
|
"data-slot": "sheet-portal",
|
|
225
228
|
...e
|
|
226
229
|
});
|
|
227
230
|
}
|
|
228
|
-
function
|
|
229
|
-
return /* @__PURE__ */
|
|
231
|
+
function ct({ className: e, ...t }) {
|
|
232
|
+
return /* @__PURE__ */ z(W.Backdrop, {
|
|
230
233
|
"data-slot": "sheet-overlay",
|
|
231
|
-
className:
|
|
234
|
+
className: f("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs", e),
|
|
232
235
|
...t
|
|
233
236
|
});
|
|
234
237
|
}
|
|
235
|
-
function
|
|
236
|
-
return /* @__PURE__ */
|
|
238
|
+
function lt({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...a }) {
|
|
239
|
+
return /* @__PURE__ */ B(st, { children: [/* @__PURE__ */ z(ct, {}), /* @__PURE__ */ B(W.Popup, {
|
|
237
240
|
"data-slot": "sheet-content",
|
|
238
|
-
"data-side":
|
|
239
|
-
className:
|
|
241
|
+
"data-side": n,
|
|
242
|
+
className: f("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", e),
|
|
240
243
|
...a,
|
|
241
|
-
children: [
|
|
244
|
+
children: [t, r && /* @__PURE__ */ B(W.Close, {
|
|
242
245
|
"data-slot": "sheet-close",
|
|
243
|
-
render: /* @__PURE__ */
|
|
246
|
+
render: /* @__PURE__ */ z(E, {
|
|
244
247
|
variant: "ghost",
|
|
245
248
|
className: "absolute top-3 right-3",
|
|
246
249
|
size: "icon-sm"
|
|
247
250
|
}),
|
|
248
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ z(Be, {}), /* @__PURE__ */ z("span", {
|
|
249
252
|
className: "sr-only",
|
|
250
|
-
children: /* @__PURE__ */
|
|
253
|
+
children: /* @__PURE__ */ z(i, { id: "Close" })
|
|
251
254
|
})]
|
|
252
255
|
})]
|
|
253
256
|
})] });
|
|
254
257
|
}
|
|
255
|
-
function
|
|
256
|
-
return /* @__PURE__ */
|
|
258
|
+
function ut({ className: e, ...t }) {
|
|
259
|
+
return /* @__PURE__ */ z("div", {
|
|
257
260
|
"data-slot": "sheet-header",
|
|
258
|
-
className:
|
|
261
|
+
className: f("flex flex-col gap-0.5 p-4", e),
|
|
259
262
|
...t
|
|
260
263
|
});
|
|
261
264
|
}
|
|
262
|
-
function
|
|
263
|
-
return /* @__PURE__ */
|
|
265
|
+
function dt({ className: e, ...t }) {
|
|
266
|
+
return /* @__PURE__ */ z(W.Title, {
|
|
264
267
|
"data-slot": "sheet-title",
|
|
265
|
-
className:
|
|
268
|
+
className: f("font-heading text-base font-medium text-foreground", e),
|
|
266
269
|
...t
|
|
267
270
|
});
|
|
268
271
|
}
|
|
269
|
-
function
|
|
270
|
-
return /* @__PURE__ */
|
|
272
|
+
function ft({ className: e, ...t }) {
|
|
273
|
+
return /* @__PURE__ */ z(W.Description, {
|
|
271
274
|
"data-slot": "sheet-description",
|
|
272
|
-
className:
|
|
275
|
+
className: f("text-sm text-muted-foreground", e),
|
|
273
276
|
...t
|
|
274
277
|
});
|
|
275
278
|
}
|
|
276
279
|
// src/admin/components/ui/tooltip.tsx
|
|
277
|
-
function
|
|
278
|
-
return /* @__PURE__ */
|
|
280
|
+
function pt({ delay: e = 0, ...t }) {
|
|
281
|
+
return /* @__PURE__ */ z(G.Provider, {
|
|
279
282
|
"data-slot": "tooltip-provider",
|
|
280
283
|
delay: e,
|
|
281
284
|
...t
|
|
282
285
|
});
|
|
283
286
|
}
|
|
284
|
-
function
|
|
285
|
-
return /* @__PURE__ */
|
|
287
|
+
function mt({ ...e }) {
|
|
288
|
+
return /* @__PURE__ */ z(G.Root, {
|
|
286
289
|
"data-slot": "tooltip",
|
|
287
290
|
...e
|
|
288
291
|
});
|
|
289
292
|
}
|
|
290
|
-
function
|
|
291
|
-
return /* @__PURE__ */
|
|
293
|
+
function ht({ ...e }) {
|
|
294
|
+
return /* @__PURE__ */ z(G.Trigger, {
|
|
292
295
|
"data-slot": "tooltip-trigger",
|
|
293
296
|
...e
|
|
294
297
|
});
|
|
295
298
|
}
|
|
296
|
-
function
|
|
297
|
-
return /* @__PURE__ */
|
|
298
|
-
container:
|
|
299
|
-
children: /* @__PURE__ */
|
|
299
|
+
function gt({ className: e, side: t = "top", sideOffset: n = 4, align: r = "center", alignOffset: i = 0, children: a, ...o }) {
|
|
300
|
+
return /* @__PURE__ */ z(G.Portal, {
|
|
301
|
+
container: c().portal,
|
|
302
|
+
children: /* @__PURE__ */ z(G.Positioner, {
|
|
300
303
|
align: r,
|
|
301
304
|
alignOffset: i,
|
|
302
305
|
side: t,
|
|
303
306
|
sideOffset: n,
|
|
304
307
|
className: "isolate z-50",
|
|
305
|
-
children: /* @__PURE__ */
|
|
308
|
+
children: /* @__PURE__ */ B(G.Popup, {
|
|
306
309
|
"data-slot": "tooltip-content",
|
|
307
|
-
className:
|
|
310
|
+
className: f("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),
|
|
308
311
|
...o,
|
|
309
|
-
children: [a, /* @__PURE__ */
|
|
312
|
+
children: [a, /* @__PURE__ */ z(G.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })]
|
|
310
313
|
})
|
|
311
314
|
})
|
|
312
315
|
});
|
|
313
316
|
}
|
|
314
317
|
// src/admin/components/ui/sidebar.tsx
|
|
315
|
-
var
|
|
318
|
+
var _t = "16rem", vt = "18rem", yt = "3rem", bt = "b", xt = j.createContext(null);
|
|
316
319
|
function J() {
|
|
317
|
-
let e =
|
|
320
|
+
let e = j.useContext(xt);
|
|
318
321
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
319
322
|
return e;
|
|
320
323
|
}
|
|
321
|
-
function
|
|
322
|
-
let s =
|
|
323
|
-
let t = typeof e == "function" ? e(
|
|
324
|
+
function St({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...o }) {
|
|
325
|
+
let s = it(), [c, l] = j.useState(!1), [u, d] = j.useState(e), p = t ?? u, m = j.useCallback((e) => {
|
|
326
|
+
let t = typeof e == "function" ? e(p) : e;
|
|
324
327
|
n ? n(t) : d(t);
|
|
325
|
-
}, [n,
|
|
328
|
+
}, [n, p]), h = j.useCallback(() => s ? l((e) => !e) : m((e) => !e), [
|
|
326
329
|
s,
|
|
327
|
-
|
|
330
|
+
m,
|
|
328
331
|
l
|
|
329
|
-
]), g =
|
|
332
|
+
]), g = p ? "expanded" : "collapsed", _ = j.useMemo(() => ({
|
|
330
333
|
state: g,
|
|
331
|
-
open:
|
|
332
|
-
setOpen:
|
|
334
|
+
open: p,
|
|
335
|
+
setOpen: m,
|
|
333
336
|
isMobile: s,
|
|
334
337
|
openMobile: c,
|
|
335
338
|
setOpenMobile: l,
|
|
336
|
-
toggleSidebar:
|
|
339
|
+
toggleSidebar: h
|
|
337
340
|
}), [
|
|
338
341
|
g,
|
|
339
|
-
f,
|
|
340
342
|
p,
|
|
343
|
+
m,
|
|
341
344
|
s,
|
|
342
345
|
c,
|
|
343
346
|
l,
|
|
344
|
-
|
|
347
|
+
h
|
|
345
348
|
]);
|
|
346
|
-
return /* @__PURE__ */
|
|
349
|
+
return /* @__PURE__ */ z(xt.Provider, {
|
|
347
350
|
value: _,
|
|
348
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ z("div", {
|
|
349
352
|
"data-slot": "sidebar-wrapper",
|
|
350
353
|
onKeyDown: (e) => {
|
|
351
|
-
e.key ===
|
|
354
|
+
e.key === bt && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
|
|
352
355
|
},
|
|
353
356
|
style: {
|
|
354
|
-
"--sidebar-width":
|
|
355
|
-
"--sidebar-width-icon":
|
|
357
|
+
"--sidebar-width": _t,
|
|
358
|
+
"--sidebar-width-icon": yt,
|
|
356
359
|
...i
|
|
357
360
|
},
|
|
358
|
-
className:
|
|
361
|
+
className: f("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar relative flex min-h-[30rem] w-full", r),
|
|
359
362
|
...o,
|
|
360
363
|
children: a
|
|
361
364
|
})
|
|
362
365
|
});
|
|
363
366
|
}
|
|
364
|
-
function
|
|
367
|
+
function Ct({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: a, dir: o, ...s }) {
|
|
365
368
|
let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = J();
|
|
366
|
-
return
|
|
369
|
+
return n === "none" ? /* @__PURE__ */ z("div", {
|
|
367
370
|
"data-slot": "sidebar",
|
|
368
|
-
className:
|
|
371
|
+
className: f("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
369
372
|
...s,
|
|
370
373
|
children: a
|
|
371
|
-
}) : c ? /* @__PURE__ */
|
|
374
|
+
}) : c ? /* @__PURE__ */ z(ot, {
|
|
372
375
|
open: u,
|
|
373
376
|
onOpenChange: d,
|
|
374
377
|
...s,
|
|
375
|
-
children: /* @__PURE__ */
|
|
378
|
+
children: /* @__PURE__ */ B(lt, {
|
|
376
379
|
dir: o,
|
|
377
380
|
"data-sidebar": "sidebar",
|
|
378
381
|
"data-slot": "sidebar",
|
|
379
382
|
"data-mobile": "true",
|
|
380
383
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
381
|
-
style: { "--sidebar-width":
|
|
384
|
+
style: { "--sidebar-width": vt },
|
|
382
385
|
side: e,
|
|
383
|
-
children: [/* @__PURE__ */
|
|
386
|
+
children: [/* @__PURE__ */ B(ut, {
|
|
384
387
|
className: "sr-only",
|
|
385
|
-
children: [/* @__PURE__ */
|
|
386
|
-
}), /* @__PURE__ */
|
|
388
|
+
children: [/* @__PURE__ */ z(dt, { children: /* @__PURE__ */ z(i, { id: "Sidebar" }) }), /* @__PURE__ */ z(ft, { children: /* @__PURE__ */ z(i, { id: "Displays the mobile sidebar." }) })]
|
|
389
|
+
}), /* @__PURE__ */ z("div", {
|
|
387
390
|
className: "flex h-full w-full flex-col",
|
|
388
391
|
children: a
|
|
389
392
|
})]
|
|
390
393
|
})
|
|
391
|
-
}) : /* @__PURE__ */
|
|
394
|
+
}) : /* @__PURE__ */ B("div", {
|
|
392
395
|
className: "group peer text-sidebar-foreground relative hidden md:block",
|
|
393
396
|
"data-state": l,
|
|
394
|
-
"data-collapsible": l === "collapsed" ?
|
|
395
|
-
"data-variant":
|
|
397
|
+
"data-collapsible": l === "collapsed" ? n : "",
|
|
398
|
+
"data-variant": t,
|
|
396
399
|
"data-side": e,
|
|
397
400
|
"data-slot": "sidebar",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
401
|
+
children: [/* @__PURE__ */ z("div", {
|
|
399
402
|
"data-slot": "sidebar-gap",
|
|
400
|
-
className:
|
|
401
|
-
}), /* @__PURE__ */
|
|
403
|
+
className: f("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
404
|
+
}), /* @__PURE__ */ z("div", {
|
|
402
405
|
"data-slot": "sidebar-container",
|
|
403
406
|
"data-side": e,
|
|
404
|
-
className:
|
|
407
|
+
className: f("absolute inset-y-0 z-10 hidden h-full w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", r),
|
|
405
408
|
...s,
|
|
406
|
-
children: /* @__PURE__ */
|
|
409
|
+
children: /* @__PURE__ */ z("div", {
|
|
407
410
|
"data-sidebar": "sidebar",
|
|
408
411
|
"data-slot": "sidebar-inner",
|
|
409
412
|
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",
|
|
@@ -412,72 +415,72 @@ function xt({ side: e = "left", variant: n = "sidebar", collapsible: r = "offcan
|
|
|
412
415
|
})]
|
|
413
416
|
});
|
|
414
417
|
}
|
|
415
|
-
function
|
|
416
|
-
let { toggleSidebar:
|
|
417
|
-
return /* @__PURE__ */
|
|
418
|
+
function wt({ className: e, onClick: t, ...n }) {
|
|
419
|
+
let { toggleSidebar: r } = J();
|
|
420
|
+
return /* @__PURE__ */ B(E, {
|
|
418
421
|
"data-sidebar": "trigger",
|
|
419
422
|
"data-slot": "sidebar-trigger",
|
|
420
423
|
variant: "ghost",
|
|
421
424
|
size: "icon-sm",
|
|
422
|
-
className:
|
|
425
|
+
className: f(e),
|
|
423
426
|
onClick: (e) => {
|
|
424
|
-
|
|
427
|
+
t?.(e), r();
|
|
425
428
|
},
|
|
426
|
-
...
|
|
427
|
-
children: [/* @__PURE__ */
|
|
429
|
+
...n,
|
|
430
|
+
children: [/* @__PURE__ */ z(Re, {}), /* @__PURE__ */ z("span", {
|
|
428
431
|
className: "sr-only",
|
|
429
|
-
children: /* @__PURE__ */
|
|
432
|
+
children: /* @__PURE__ */ z(i, { id: "Toggle Sidebar" })
|
|
430
433
|
})]
|
|
431
434
|
});
|
|
432
435
|
}
|
|
433
|
-
function
|
|
434
|
-
let { text:
|
|
435
|
-
return /* @__PURE__ */
|
|
436
|
+
function Tt({ className: e, ...t }) {
|
|
437
|
+
let { text: n } = p(), { toggleSidebar: r } = J();
|
|
438
|
+
return /* @__PURE__ */ z("button", {
|
|
436
439
|
"data-sidebar": "rail",
|
|
437
440
|
"data-slot": "sidebar-rail",
|
|
438
|
-
"aria-label":
|
|
441
|
+
"aria-label": n("Toggle Sidebar"),
|
|
439
442
|
tabIndex: -1,
|
|
440
|
-
onClick:
|
|
441
|
-
title:
|
|
442
|
-
className:
|
|
443
|
+
onClick: r,
|
|
444
|
+
title: n("Toggle Sidebar"),
|
|
445
|
+
className: f("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", e),
|
|
443
446
|
...t
|
|
444
447
|
});
|
|
445
448
|
}
|
|
446
|
-
function
|
|
447
|
-
return /* @__PURE__ */
|
|
449
|
+
function Et({ className: e, ...t }) {
|
|
450
|
+
return /* @__PURE__ */ z("main", {
|
|
448
451
|
"data-slot": "sidebar-inset",
|
|
449
|
-
className:
|
|
452
|
+
className: f("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),
|
|
450
453
|
...t
|
|
451
454
|
});
|
|
452
455
|
}
|
|
453
|
-
function
|
|
454
|
-
return /* @__PURE__ */
|
|
456
|
+
function Dt({ className: e, ...t }) {
|
|
457
|
+
return /* @__PURE__ */ z("div", {
|
|
455
458
|
"data-slot": "sidebar-header",
|
|
456
459
|
"data-sidebar": "header",
|
|
457
|
-
className:
|
|
460
|
+
className: f("flex flex-col gap-2 p-2", e),
|
|
458
461
|
...t
|
|
459
462
|
});
|
|
460
463
|
}
|
|
461
|
-
function
|
|
462
|
-
return /* @__PURE__ */
|
|
464
|
+
function Ot({ className: e, ...t }) {
|
|
465
|
+
return /* @__PURE__ */ z("div", {
|
|
463
466
|
"data-slot": "sidebar-content",
|
|
464
467
|
"data-sidebar": "content",
|
|
465
|
-
className:
|
|
468
|
+
className: f("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
466
469
|
...t
|
|
467
470
|
});
|
|
468
471
|
}
|
|
469
|
-
function
|
|
470
|
-
return /* @__PURE__ */
|
|
472
|
+
function kt({ className: e, ...t }) {
|
|
473
|
+
return /* @__PURE__ */ z("div", {
|
|
471
474
|
"data-slot": "sidebar-group",
|
|
472
475
|
"data-sidebar": "group",
|
|
473
|
-
className:
|
|
476
|
+
className: f("relative flex w-full min-w-0 flex-col p-2", e),
|
|
474
477
|
...t
|
|
475
478
|
});
|
|
476
479
|
}
|
|
477
|
-
function
|
|
478
|
-
return
|
|
480
|
+
function At({ className: e, render: t, ...n }) {
|
|
481
|
+
return U({
|
|
479
482
|
defaultTagName: "div",
|
|
480
|
-
props:
|
|
483
|
+
props: H({ className: f("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),
|
|
481
484
|
render: t,
|
|
482
485
|
state: {
|
|
483
486
|
slot: "sidebar-group-label",
|
|
@@ -485,31 +488,31 @@ function Ot({ className: e, render: t, ...n }) {
|
|
|
485
488
|
}
|
|
486
489
|
});
|
|
487
490
|
}
|
|
488
|
-
function
|
|
489
|
-
return /* @__PURE__ */
|
|
491
|
+
function jt({ className: e, ...t }) {
|
|
492
|
+
return /* @__PURE__ */ z("div", {
|
|
490
493
|
"data-slot": "sidebar-group-content",
|
|
491
494
|
"data-sidebar": "group-content",
|
|
492
|
-
className:
|
|
495
|
+
className: f("w-full text-sm", e),
|
|
493
496
|
...t
|
|
494
497
|
});
|
|
495
498
|
}
|
|
496
|
-
function
|
|
497
|
-
return /* @__PURE__ */
|
|
499
|
+
function Mt({ className: e, ...t }) {
|
|
500
|
+
return /* @__PURE__ */ z("ul", {
|
|
498
501
|
"data-slot": "sidebar-menu",
|
|
499
502
|
"data-sidebar": "menu",
|
|
500
|
-
className:
|
|
503
|
+
className: f("flex w-full min-w-0 flex-col gap-0", e),
|
|
501
504
|
...t
|
|
502
505
|
});
|
|
503
506
|
}
|
|
504
|
-
function
|
|
505
|
-
return /* @__PURE__ */
|
|
507
|
+
function Nt({ className: e, ...t }) {
|
|
508
|
+
return /* @__PURE__ */ z("li", {
|
|
506
509
|
"data-slot": "sidebar-menu-item",
|
|
507
510
|
"data-sidebar": "menu-item",
|
|
508
|
-
className:
|
|
511
|
+
className: f("group/menu-item relative", e),
|
|
509
512
|
...t
|
|
510
513
|
});
|
|
511
514
|
}
|
|
512
|
-
var
|
|
515
|
+
var Pt = Ve("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", {
|
|
513
516
|
variants: {
|
|
514
517
|
variant: {
|
|
515
518
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -526,14 +529,14 @@ var Mt = Be("peer/menu-button group/menu-button ring-sidebar-ring hover:bg-sideb
|
|
|
526
529
|
size: "default"
|
|
527
530
|
}
|
|
528
531
|
});
|
|
529
|
-
function
|
|
530
|
-
let { isMobile: s, state: c } = J(), l =
|
|
532
|
+
function Ft({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
533
|
+
let { isMobile: s, state: c } = J(), l = U({
|
|
531
534
|
defaultTagName: "button",
|
|
532
|
-
props:
|
|
535
|
+
props: H({ className: f(Pt({
|
|
533
536
|
variant: n,
|
|
534
537
|
size: r
|
|
535
538
|
}), a) }, o),
|
|
536
|
-
render: i ? /* @__PURE__ */
|
|
539
|
+
render: i ? /* @__PURE__ */ z(ht, { render: e }) : e,
|
|
537
540
|
state: {
|
|
538
541
|
slot: "sidebar-menu-button",
|
|
539
542
|
sidebar: "menu-button",
|
|
@@ -541,33 +544,33 @@ function Nt({ render: e, isActive: t = !1, variant: n = "default", size: r = "de
|
|
|
541
544
|
active: t
|
|
542
545
|
}
|
|
543
546
|
});
|
|
544
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */
|
|
547
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ B(mt, { children: [l, /* @__PURE__ */ z(gt, {
|
|
545
548
|
side: "right",
|
|
546
549
|
align: "center",
|
|
547
550
|
hidden: c !== "collapsed" || s,
|
|
548
551
|
...i
|
|
549
552
|
})] })) : l;
|
|
550
553
|
}
|
|
551
|
-
function
|
|
552
|
-
return /* @__PURE__ */
|
|
554
|
+
function It({ className: e, ...t }) {
|
|
555
|
+
return /* @__PURE__ */ z("ul", {
|
|
553
556
|
"data-slot": "sidebar-menu-sub",
|
|
554
557
|
"data-sidebar": "menu-sub",
|
|
555
|
-
className:
|
|
558
|
+
className: f("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),
|
|
556
559
|
...t
|
|
557
560
|
});
|
|
558
561
|
}
|
|
559
|
-
function
|
|
560
|
-
return /* @__PURE__ */
|
|
562
|
+
function Lt({ className: e, ...t }) {
|
|
563
|
+
return /* @__PURE__ */ z("li", {
|
|
561
564
|
"data-slot": "sidebar-menu-sub-item",
|
|
562
565
|
"data-sidebar": "menu-sub-item",
|
|
563
|
-
className:
|
|
566
|
+
className: f("group/menu-sub-item relative", e),
|
|
564
567
|
...t
|
|
565
568
|
});
|
|
566
569
|
}
|
|
567
|
-
function
|
|
568
|
-
return
|
|
570
|
+
function Rt({ render: e, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
571
|
+
return U({
|
|
569
572
|
defaultTagName: "a",
|
|
570
|
-
props:
|
|
573
|
+
props: H({ className: f("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),
|
|
571
574
|
render: e,
|
|
572
575
|
state: {
|
|
573
576
|
slot: "sidebar-menu-sub-button",
|
|
@@ -578,13 +581,13 @@ function It({ render: e, size: t = "md", isActive: n = !1, className: r, ...i })
|
|
|
578
581
|
});
|
|
579
582
|
}
|
|
580
583
|
// src/admin/navigation.tsx
|
|
581
|
-
var
|
|
584
|
+
var zt = [
|
|
582
585
|
{
|
|
583
586
|
title: "Dashboard",
|
|
584
587
|
path: "/",
|
|
585
|
-
icon:
|
|
588
|
+
icon: Ce,
|
|
586
589
|
order: 0,
|
|
587
|
-
useVisible:
|
|
590
|
+
useVisible: O,
|
|
588
591
|
items: [{
|
|
589
592
|
title: "Overview",
|
|
590
593
|
path: "/"
|
|
@@ -596,23 +599,23 @@ var Y = [
|
|
|
596
599
|
{
|
|
597
600
|
title: "Customers",
|
|
598
601
|
path: "/customers",
|
|
599
|
-
icon:
|
|
602
|
+
icon: je,
|
|
600
603
|
order: 10,
|
|
601
|
-
useVisible:
|
|
604
|
+
useVisible: D
|
|
602
605
|
},
|
|
603
606
|
{
|
|
604
607
|
title: "Subscriptions",
|
|
605
608
|
path: "/subscriptions",
|
|
606
|
-
icon:
|
|
609
|
+
icon: De,
|
|
607
610
|
order: 20,
|
|
608
|
-
useVisible:
|
|
611
|
+
useVisible: D
|
|
609
612
|
},
|
|
610
613
|
{
|
|
611
614
|
title: "Payments",
|
|
612
615
|
path: "/payments",
|
|
613
|
-
icon:
|
|
616
|
+
icon: Se,
|
|
614
617
|
order: 30,
|
|
615
|
-
useVisible:
|
|
618
|
+
useVisible: D,
|
|
616
619
|
items: [
|
|
617
620
|
{
|
|
618
621
|
title: "Payments",
|
|
@@ -621,7 +624,7 @@ var Y = [
|
|
|
621
624
|
{
|
|
622
625
|
title: "Health",
|
|
623
626
|
path: "/payments/health",
|
|
624
|
-
useVisible:
|
|
627
|
+
useVisible: O
|
|
625
628
|
},
|
|
626
629
|
{
|
|
627
630
|
title: "Attempts",
|
|
@@ -636,16 +639,16 @@ var Y = [
|
|
|
636
639
|
{
|
|
637
640
|
title: "Orders",
|
|
638
641
|
path: "/orders",
|
|
639
|
-
icon:
|
|
642
|
+
icon: Se,
|
|
640
643
|
order: 40,
|
|
641
|
-
useVisible:
|
|
644
|
+
useVisible: D
|
|
642
645
|
},
|
|
643
646
|
{
|
|
644
647
|
title: "Catalog",
|
|
645
648
|
path: "/catalog",
|
|
646
|
-
icon:
|
|
649
|
+
icon: Te,
|
|
647
650
|
order: 50,
|
|
648
|
-
useVisible:
|
|
651
|
+
useVisible: re,
|
|
649
652
|
items: [
|
|
650
653
|
{
|
|
651
654
|
title: "Products",
|
|
@@ -657,21 +660,27 @@ var Y = [
|
|
|
657
660
|
},
|
|
658
661
|
{
|
|
659
662
|
title: "Metering",
|
|
660
|
-
path: "/catalog/metering"
|
|
663
|
+
path: "/catalog/metering",
|
|
664
|
+
useVisible: ie
|
|
661
665
|
}
|
|
662
666
|
]
|
|
663
667
|
},
|
|
664
668
|
{
|
|
665
669
|
title: "Ops",
|
|
666
670
|
path: "/ops",
|
|
667
|
-
icon:
|
|
671
|
+
icon: Me,
|
|
668
672
|
order: 60,
|
|
669
|
-
useVisible:
|
|
673
|
+
useVisible: k,
|
|
670
674
|
items: [
|
|
671
675
|
{
|
|
672
676
|
title: "Findings",
|
|
673
677
|
path: "/ops"
|
|
674
678
|
},
|
|
679
|
+
{
|
|
680
|
+
title: "Signals",
|
|
681
|
+
path: "/ops/signals",
|
|
682
|
+
useVisible: O
|
|
683
|
+
},
|
|
675
684
|
{
|
|
676
685
|
title: "Proposals",
|
|
677
686
|
path: "/ops/proposals"
|
|
@@ -693,238 +702,238 @@ var Y = [
|
|
|
693
702
|
{
|
|
694
703
|
title: "Settings",
|
|
695
704
|
path: "/settings",
|
|
696
|
-
icon:
|
|
705
|
+
icon: Oe,
|
|
697
706
|
order: 70
|
|
698
707
|
}
|
|
699
708
|
].map((e) => ({ ...e }));
|
|
700
709
|
// src/admin/components/app-sidebar.tsx
|
|
701
|
-
function
|
|
710
|
+
function Bt(e, t, n) {
|
|
702
711
|
return t === n ? e === t : e.startsWith(t);
|
|
703
712
|
}
|
|
704
|
-
function
|
|
705
|
-
let { pathname: e } =
|
|
713
|
+
function Vt() {
|
|
714
|
+
let { pathname: e } = t(), n = [{
|
|
706
715
|
label: "Billing",
|
|
707
|
-
items:
|
|
708
|
-
}], r = [...
|
|
709
|
-
return /* @__PURE__ */
|
|
716
|
+
items: zt
|
|
717
|
+
}], r = [...zt].sort((e, t) => t.path.length - e.path.length).find((t) => e === t.path || t.path !== "/" && e.startsWith(t.path + "/"))?.path;
|
|
718
|
+
return /* @__PURE__ */ B(Ct, {
|
|
710
719
|
variant: "inset",
|
|
711
720
|
collapsible: "icon",
|
|
712
721
|
children: [
|
|
713
|
-
/* @__PURE__ */
|
|
714
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ z(Dt, { children: /* @__PURE__ */ z(Gt, {}) }),
|
|
723
|
+
/* @__PURE__ */ z(Ot, { children: n.map((t) => /* @__PURE__ */ B(kt, { children: [/* @__PURE__ */ z(At, { children: /* @__PURE__ */ z(i, { id: t.label }) }), /* @__PURE__ */ z(jt, { children: /* @__PURE__ */ z(Mt, { children: t.items.map((t) => /* @__PURE__ */ z(Ut, {
|
|
715
724
|
item: t,
|
|
716
725
|
active: t.path === r,
|
|
717
726
|
pathname: e
|
|
718
|
-
}, t.path)) }) })] },
|
|
719
|
-
/* @__PURE__ */
|
|
727
|
+
}, t.path)) }) })] }, t.label)) }),
|
|
728
|
+
/* @__PURE__ */ z(Tt, {})
|
|
720
729
|
]
|
|
721
730
|
});
|
|
722
731
|
}
|
|
723
|
-
var
|
|
724
|
-
function
|
|
725
|
-
let { text:
|
|
726
|
-
return (e.useVisible ??
|
|
727
|
-
isActive:
|
|
728
|
-
tooltip:
|
|
729
|
-
render: /* @__PURE__ */
|
|
732
|
+
var Ht = () => !0;
|
|
733
|
+
function Ut({ item: e, active: t, pathname: n }) {
|
|
734
|
+
let { text: r } = p();
|
|
735
|
+
return (e.useVisible ?? Ht)() ? /* @__PURE__ */ B(Nt, { children: [/* @__PURE__ */ z(Ft, {
|
|
736
|
+
isActive: t,
|
|
737
|
+
tooltip: r(e.title),
|
|
738
|
+
render: /* @__PURE__ */ B(b, {
|
|
730
739
|
to: e.path,
|
|
731
|
-
children: [e.icon && /* @__PURE__ */
|
|
740
|
+
children: [e.icon && /* @__PURE__ */ z(V, { icon: e.icon }), /* @__PURE__ */ z("span", { children: /* @__PURE__ */ z(i, { id: e.title }) })]
|
|
732
741
|
})
|
|
733
|
-
}), e.items &&
|
|
742
|
+
}), e.items && t && /* @__PURE__ */ z(It, { children: e.items.map((t) => /* @__PURE__ */ z(Wt, {
|
|
734
743
|
sub: t,
|
|
735
|
-
active:
|
|
744
|
+
active: Bt(n, t.path, e.path)
|
|
736
745
|
}, t.path)) })] }) : null;
|
|
737
746
|
}
|
|
738
|
-
function
|
|
739
|
-
return (e.useVisible ??
|
|
740
|
-
isActive:
|
|
741
|
-
render: /* @__PURE__ */
|
|
747
|
+
function Wt({ sub: e, active: t }) {
|
|
748
|
+
return (e.useVisible ?? Ht)() ? /* @__PURE__ */ z(Lt, { children: /* @__PURE__ */ z(Rt, {
|
|
749
|
+
isActive: t,
|
|
750
|
+
render: /* @__PURE__ */ z(b, {
|
|
742
751
|
to: e.path,
|
|
743
|
-
children: /* @__PURE__ */
|
|
752
|
+
children: /* @__PURE__ */ z("span", { children: /* @__PURE__ */ z(i, { id: e.title }) })
|
|
744
753
|
})
|
|
745
754
|
}) }) : null;
|
|
746
755
|
}
|
|
747
|
-
function
|
|
748
|
-
let { activeMerchant: e, merchants:
|
|
749
|
-
return /* @__PURE__ */
|
|
756
|
+
function Gt() {
|
|
757
|
+
let { activeMerchant: e, merchants: t, selectMerchant: n } = A(), r = l(), a = c().props.newMerchantHref, o = e?.display_name || e?.slug || "Select merchant", s = e?.role || "Merchant console", u = e?.slug.slice(0, 2) ?? "µ";
|
|
758
|
+
return /* @__PURE__ */ z(Mt, { children: /* @__PURE__ */ z(Nt, { children: /* @__PURE__ */ B(T, { children: [/* @__PURE__ */ z(ne, { render: /* @__PURE__ */ B(Ft, {
|
|
750
759
|
size: "lg",
|
|
751
760
|
tooltip: o,
|
|
752
761
|
className: "data-open:bg-sidebar-accent",
|
|
753
762
|
children: [
|
|
754
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ z("span", {
|
|
755
764
|
className: "flex aspect-square size-8 shrink-0 items-center justify-center rounded-lg bg-primary text-xs font-semibold text-primary-foreground uppercase",
|
|
756
|
-
children:
|
|
765
|
+
children: u
|
|
757
766
|
}),
|
|
758
|
-
/* @__PURE__ */
|
|
767
|
+
/* @__PURE__ */ B("span", {
|
|
759
768
|
className: "grid min-w-0 flex-1 text-left leading-tight",
|
|
760
|
-
children: [/* @__PURE__ */
|
|
769
|
+
children: [/* @__PURE__ */ z("span", {
|
|
761
770
|
className: "truncate text-sm font-medium",
|
|
762
771
|
children: o
|
|
763
|
-
}), /* @__PURE__ */
|
|
772
|
+
}), /* @__PURE__ */ z("span", {
|
|
764
773
|
className: "truncate text-xs text-muted-foreground capitalize",
|
|
765
|
-
children:
|
|
774
|
+
children: s
|
|
766
775
|
})]
|
|
767
776
|
}),
|
|
768
|
-
/* @__PURE__ */
|
|
769
|
-
icon:
|
|
777
|
+
/* @__PURE__ */ z(V, {
|
|
778
|
+
icon: Ae,
|
|
770
779
|
className: "ml-auto size-4 shrink-0"
|
|
771
780
|
})
|
|
772
781
|
]
|
|
773
|
-
}) }), /* @__PURE__ */
|
|
782
|
+
}) }), /* @__PURE__ */ B(w, {
|
|
774
783
|
side: "bottom",
|
|
775
784
|
align: "start",
|
|
776
785
|
className: "min-w-60",
|
|
777
|
-
children: [/* @__PURE__ */
|
|
786
|
+
children: [/* @__PURE__ */ B(te, { children: [/* @__PURE__ */ z(S, {
|
|
778
787
|
className: "text-xs text-muted-foreground",
|
|
779
|
-
children: /* @__PURE__ */
|
|
780
|
-
}),
|
|
781
|
-
let
|
|
782
|
-
return /* @__PURE__ */
|
|
783
|
-
onClick: () =>
|
|
788
|
+
children: /* @__PURE__ */ z(i, { id: "Merchants" })
|
|
789
|
+
}), t.map((t) => {
|
|
790
|
+
let r = t.slug === e?.slug;
|
|
791
|
+
return /* @__PURE__ */ B(C, {
|
|
792
|
+
onClick: () => n(t.slug),
|
|
784
793
|
className: "gap-2 py-2",
|
|
785
794
|
children: [
|
|
786
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ z("span", {
|
|
787
796
|
className: "flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-[10px] font-semibold uppercase",
|
|
788
797
|
children: t.slug.slice(0, 2)
|
|
789
798
|
}),
|
|
790
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ B("span", {
|
|
791
800
|
className: "grid min-w-0 flex-1 leading-tight",
|
|
792
|
-
children: [/* @__PURE__ */
|
|
801
|
+
children: [/* @__PURE__ */ z("span", {
|
|
793
802
|
className: "truncate text-sm",
|
|
794
803
|
children: t.display_name || t.slug
|
|
795
|
-
}), t.role && /* @__PURE__ */
|
|
804
|
+
}), t.role && /* @__PURE__ */ z("span", {
|
|
796
805
|
className: "truncate text-xs text-muted-foreground capitalize",
|
|
797
806
|
children: t.role
|
|
798
807
|
})]
|
|
799
808
|
}),
|
|
800
|
-
|
|
801
|
-
icon:
|
|
809
|
+
r && /* @__PURE__ */ z(V, {
|
|
810
|
+
icon: ke,
|
|
802
811
|
className: "ml-auto size-4 shrink-0 text-primary"
|
|
803
812
|
})
|
|
804
813
|
]
|
|
805
814
|
}, t.slug);
|
|
806
|
-
})] }), a && /* @__PURE__ */
|
|
807
|
-
onClick: () => void
|
|
815
|
+
})] }), a && /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(ee, {}), /* @__PURE__ */ B(C, {
|
|
816
|
+
onClick: () => void r(a),
|
|
808
817
|
className: "gap-2 py-2",
|
|
809
|
-
children: [/* @__PURE__ */
|
|
818
|
+
children: [/* @__PURE__ */ z("span", {
|
|
810
819
|
className: "flex size-7 shrink-0 items-center justify-center rounded-md border border-dashed border-border",
|
|
811
|
-
children: /* @__PURE__ */
|
|
812
|
-
icon:
|
|
820
|
+
children: /* @__PURE__ */ z(V, {
|
|
821
|
+
icon: ye,
|
|
813
822
|
className: "size-4"
|
|
814
823
|
})
|
|
815
|
-
}), /* @__PURE__ */
|
|
824
|
+
}), /* @__PURE__ */ z(i, { id: "New merchant" })]
|
|
816
825
|
})] })]
|
|
817
826
|
})] }) }) });
|
|
818
827
|
}
|
|
819
828
|
// src/admin/components/no-access.tsx
|
|
820
|
-
function
|
|
821
|
-
return /* @__PURE__ */
|
|
829
|
+
function Kt({ area: e }) {
|
|
830
|
+
return /* @__PURE__ */ z("div", {
|
|
822
831
|
className: "flex items-center justify-center py-16",
|
|
823
|
-
children: /* @__PURE__ */
|
|
832
|
+
children: /* @__PURE__ */ B("div", {
|
|
824
833
|
className: "w-full max-w-sm",
|
|
825
|
-
children: [/* @__PURE__ */
|
|
834
|
+
children: [/* @__PURE__ */ z("h1", {
|
|
826
835
|
className: "text-2xl font-semibold tracking-tight text-balance",
|
|
827
836
|
children: e ? `You don't have access to ${e}` : "You don't have access to this merchant's billing"
|
|
828
|
-
}), /* @__PURE__ */
|
|
837
|
+
}), /* @__PURE__ */ z("p", {
|
|
829
838
|
className: "mt-2 text-sm text-pretty text-muted-foreground",
|
|
830
|
-
children: /* @__PURE__ */
|
|
839
|
+
children: /* @__PURE__ */ z(i, { id: "Ask an administrator for a role that includes it." })
|
|
831
840
|
})]
|
|
832
841
|
})
|
|
833
842
|
});
|
|
834
843
|
}
|
|
835
844
|
// src/admin/components/no-merchants.tsx
|
|
836
|
-
function
|
|
837
|
-
let { props: e } =
|
|
838
|
-
return /* @__PURE__ */
|
|
845
|
+
function qt() {
|
|
846
|
+
let { props: e } = c();
|
|
847
|
+
return /* @__PURE__ */ z("div", {
|
|
839
848
|
role: "status",
|
|
840
849
|
className: "p-8",
|
|
841
|
-
children: e.emptyState ?? /* @__PURE__ */
|
|
850
|
+
children: e.emptyState ?? /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("p", { children: /* @__PURE__ */ z(i, { id: "Select a merchant to view its billing." }) }), e.newMerchantHref && /* @__PURE__ */ z("a", {
|
|
842
851
|
href: e.newMerchantHref,
|
|
843
|
-
children: /* @__PURE__ */
|
|
852
|
+
children: /* @__PURE__ */ z(i, { id: "New merchant" })
|
|
844
853
|
})] })
|
|
845
854
|
});
|
|
846
855
|
}
|
|
847
856
|
// src/admin/components/notification-bell.tsx
|
|
848
|
-
function
|
|
849
|
-
let { text: e } =
|
|
850
|
-
...
|
|
851
|
-
enabled:
|
|
852
|
-
}), { data:
|
|
853
|
-
if (!
|
|
857
|
+
function Jt() {
|
|
858
|
+
let { text: e } = p(), { adminQueries: t } = u(), n = l(), [r, a] = j.useState(!1), o = O(), s = k(), { data: c = 0 } = L({
|
|
859
|
+
...t.unreadNotifications(),
|
|
860
|
+
enabled: s && o
|
|
861
|
+
}), { data: d, isFetching: f } = L(t.notifications(s && r)), m = d?.data ?? [];
|
|
862
|
+
if (!s) return null;
|
|
854
863
|
let h = (e) => {
|
|
855
|
-
|
|
864
|
+
a(!1), n(`/ops?finding=${encodeURIComponent(e.id)}`);
|
|
856
865
|
};
|
|
857
|
-
return /* @__PURE__ */
|
|
858
|
-
open:
|
|
859
|
-
onOpenChange:
|
|
860
|
-
children: [/* @__PURE__ */
|
|
866
|
+
return /* @__PURE__ */ B(T, {
|
|
867
|
+
open: r,
|
|
868
|
+
onOpenChange: a,
|
|
869
|
+
children: [/* @__PURE__ */ z(ne, { render: /* @__PURE__ */ B(E, {
|
|
861
870
|
variant: "ghost",
|
|
862
871
|
size: "icon",
|
|
863
872
|
"aria-label": e("Notifications"),
|
|
864
873
|
className: "relative",
|
|
865
|
-
children: [/* @__PURE__ */
|
|
866
|
-
icon:
|
|
874
|
+
children: [/* @__PURE__ */ z(V, {
|
|
875
|
+
icon: we,
|
|
867
876
|
className: "size-4"
|
|
868
|
-
}),
|
|
877
|
+
}), c > 0 && /* @__PURE__ */ z("span", {
|
|
869
878
|
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",
|
|
870
|
-
children:
|
|
879
|
+
children: c > 9 ? "9+" : c
|
|
871
880
|
})]
|
|
872
|
-
}) }), /* @__PURE__ */
|
|
881
|
+
}) }), /* @__PURE__ */ B(w, {
|
|
873
882
|
align: "end",
|
|
874
883
|
className: "w-80 p-0 sm:w-96",
|
|
875
|
-
children: [/* @__PURE__ */
|
|
884
|
+
children: [/* @__PURE__ */ B("div", {
|
|
876
885
|
className: "flex items-center justify-between border-b px-3 py-2",
|
|
877
|
-
children: [/* @__PURE__ */
|
|
886
|
+
children: [/* @__PURE__ */ z("span", {
|
|
878
887
|
className: "text-sm font-medium",
|
|
879
|
-
children: /* @__PURE__ */
|
|
880
|
-
}),
|
|
888
|
+
children: /* @__PURE__ */ z(i, { id: "Needs attention" })
|
|
889
|
+
}), c > m.length && /* @__PURE__ */ B(E, {
|
|
881
890
|
variant: "ghost",
|
|
882
891
|
size: "sm",
|
|
883
892
|
className: "h-6 px-2 text-xs",
|
|
884
893
|
onClick: () => {
|
|
885
|
-
|
|
894
|
+
a(!1), n("/ops");
|
|
886
895
|
},
|
|
887
|
-
children: [/* @__PURE__ */
|
|
896
|
+
children: [/* @__PURE__ */ z(i, { id: "View all " }), c]
|
|
888
897
|
})]
|
|
889
|
-
}), /* @__PURE__ */
|
|
898
|
+
}), /* @__PURE__ */ z("div", {
|
|
890
899
|
className: "max-h-96 overflow-y-auto",
|
|
891
|
-
children:
|
|
900
|
+
children: f ? /* @__PURE__ */ z("p", {
|
|
892
901
|
className: "px-3 py-6 text-center text-sm text-muted-foreground",
|
|
893
|
-
children: /* @__PURE__ */
|
|
894
|
-
}) :
|
|
902
|
+
children: /* @__PURE__ */ z(i, { id: "Loading…" })
|
|
903
|
+
}) : m.length === 0 ? /* @__PURE__ */ B("div", {
|
|
895
904
|
className: "flex flex-col items-center gap-1 px-3 py-8 text-center",
|
|
896
|
-
children: [/* @__PURE__ */
|
|
897
|
-
icon:
|
|
905
|
+
children: [/* @__PURE__ */ z(V, {
|
|
906
|
+
icon: we,
|
|
898
907
|
className: "size-5 text-muted-foreground"
|
|
899
|
-
}), /* @__PURE__ */
|
|
908
|
+
}), /* @__PURE__ */ z("p", {
|
|
900
909
|
className: "text-sm text-muted-foreground",
|
|
901
|
-
children: /* @__PURE__ */
|
|
910
|
+
children: /* @__PURE__ */ z(i, { id: "You're all caught up." })
|
|
902
911
|
})]
|
|
903
|
-
}) :
|
|
912
|
+
}) : m.map((e) => /* @__PURE__ */ B("button", {
|
|
904
913
|
type: "button",
|
|
905
914
|
onClick: () => h(e),
|
|
906
915
|
className: "flex w-full items-start gap-2 border-b px-3 py-2 text-left last:border-b-0 hover:bg-muted/50",
|
|
907
|
-
children: [/* @__PURE__ */
|
|
916
|
+
children: [/* @__PURE__ */ z("span", {
|
|
908
917
|
className: "mt-0.5 shrink-0",
|
|
909
|
-
children: e.severity === "critical" || e.severity === "high" ? /* @__PURE__ */
|
|
910
|
-
icon:
|
|
918
|
+
children: e.severity === "critical" || e.severity === "high" ? /* @__PURE__ */ z(V, {
|
|
919
|
+
icon: xe,
|
|
911
920
|
className: "text-failed size-4"
|
|
912
|
-
}) : /* @__PURE__ */
|
|
913
|
-
icon:
|
|
921
|
+
}) : /* @__PURE__ */ z(V, {
|
|
922
|
+
icon: be,
|
|
914
923
|
className: "text-held size-4"
|
|
915
924
|
})
|
|
916
|
-
}), /* @__PURE__ */
|
|
925
|
+
}), /* @__PURE__ */ B("span", {
|
|
917
926
|
className: "min-w-0 flex-1",
|
|
918
|
-
children: [/* @__PURE__ */
|
|
927
|
+
children: [/* @__PURE__ */ B("span", {
|
|
919
928
|
className: "flex items-center justify-between gap-2",
|
|
920
|
-
children: [/* @__PURE__ */
|
|
929
|
+
children: [/* @__PURE__ */ z("span", {
|
|
921
930
|
className: "truncate text-sm font-medium",
|
|
922
931
|
children: e.finding_type
|
|
923
|
-
}), /* @__PURE__ */
|
|
932
|
+
}), /* @__PURE__ */ z("span", {
|
|
924
933
|
className: "shrink-0 text-[11px] text-muted-foreground",
|
|
925
|
-
children:
|
|
934
|
+
children: y(e.created_at)
|
|
926
935
|
})]
|
|
927
|
-
}), e.recommended_action && /* @__PURE__ */
|
|
936
|
+
}), e.recommended_action && /* @__PURE__ */ z("span", {
|
|
928
937
|
className: "mt-0.5 line-clamp-2 block text-xs text-muted-foreground",
|
|
929
938
|
children: e.recommended_action
|
|
930
939
|
})]
|
|
@@ -935,84 +944,84 @@ function Gt() {
|
|
|
935
944
|
});
|
|
936
945
|
}
|
|
937
946
|
// src/admin/components/ui/breadcrumb.tsx
|
|
938
|
-
function
|
|
939
|
-
let { text:
|
|
940
|
-
return /* @__PURE__ */
|
|
941
|
-
"aria-label":
|
|
947
|
+
function Yt({ className: e, ...t }) {
|
|
948
|
+
let { text: n } = p();
|
|
949
|
+
return /* @__PURE__ */ z("nav", {
|
|
950
|
+
"aria-label": n("breadcrumb"),
|
|
942
951
|
"data-slot": "breadcrumb",
|
|
943
|
-
className:
|
|
952
|
+
className: f(e),
|
|
944
953
|
...t
|
|
945
954
|
});
|
|
946
955
|
}
|
|
947
|
-
function
|
|
948
|
-
return /* @__PURE__ */
|
|
956
|
+
function Xt({ className: e, ...t }) {
|
|
957
|
+
return /* @__PURE__ */ z("ol", {
|
|
949
958
|
"data-slot": "breadcrumb-list",
|
|
950
|
-
className:
|
|
959
|
+
className: f("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground", e),
|
|
951
960
|
...t
|
|
952
961
|
});
|
|
953
962
|
}
|
|
954
|
-
function
|
|
955
|
-
return /* @__PURE__ */
|
|
963
|
+
function Y({ className: e, ...t }) {
|
|
964
|
+
return /* @__PURE__ */ z("li", {
|
|
956
965
|
"data-slot": "breadcrumb-item",
|
|
957
|
-
className:
|
|
966
|
+
className: f("inline-flex items-center gap-1", e),
|
|
958
967
|
...t
|
|
959
968
|
});
|
|
960
969
|
}
|
|
961
|
-
function
|
|
962
|
-
return
|
|
970
|
+
function Zt({ className: e, render: t, ...n }) {
|
|
971
|
+
return U({
|
|
963
972
|
defaultTagName: "a",
|
|
964
|
-
props:
|
|
973
|
+
props: H({ className: f("transition-colors hover:text-foreground", e) }, n),
|
|
965
974
|
render: t,
|
|
966
975
|
state: { slot: "breadcrumb-link" }
|
|
967
976
|
});
|
|
968
977
|
}
|
|
969
|
-
function
|
|
970
|
-
return /* @__PURE__ */
|
|
978
|
+
function Qt({ className: e, ...t }) {
|
|
979
|
+
return /* @__PURE__ */ z("span", {
|
|
971
980
|
"data-slot": "breadcrumb-page",
|
|
972
981
|
role: "link",
|
|
973
982
|
"aria-disabled": "true",
|
|
974
983
|
"aria-current": "page",
|
|
975
|
-
className:
|
|
984
|
+
className: f("font-normal text-foreground", e),
|
|
976
985
|
...t
|
|
977
986
|
});
|
|
978
987
|
}
|
|
979
|
-
function
|
|
980
|
-
return /* @__PURE__ */
|
|
988
|
+
function $t({ children: e, className: t, ...n }) {
|
|
989
|
+
return /* @__PURE__ */ z("li", {
|
|
981
990
|
"data-slot": "breadcrumb-separator",
|
|
982
991
|
role: "presentation",
|
|
983
992
|
"aria-hidden": "true",
|
|
984
|
-
className:
|
|
993
|
+
className: f("[&>svg]:size-3.5", t),
|
|
985
994
|
...n,
|
|
986
|
-
children: e ?? /* @__PURE__ */
|
|
995
|
+
children: e ?? /* @__PURE__ */ z(Ne, {})
|
|
987
996
|
});
|
|
988
997
|
}
|
|
989
998
|
// src/admin/components/site-header.tsx
|
|
990
|
-
function
|
|
991
|
-
let { activeMerchant:
|
|
992
|
-
return /* @__PURE__ */
|
|
999
|
+
function en({ trail: e }) {
|
|
1000
|
+
let { activeMerchant: t } = A(), n = k();
|
|
1001
|
+
return /* @__PURE__ */ B("header", {
|
|
993
1002
|
className: "flex h-14 shrink-0 items-center gap-2 border-b px-4",
|
|
994
1003
|
children: [
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
1004
|
+
/* @__PURE__ */ z(wt, { className: "-ml-1" }),
|
|
1005
|
+
/* @__PURE__ */ z(at, {
|
|
997
1006
|
orientation: "vertical",
|
|
998
1007
|
className: "mr-2 h-4"
|
|
999
1008
|
}),
|
|
1000
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ z(Yt, { children: /* @__PURE__ */ z(Xt, { children: e.length === 0 ? /* @__PURE__ */ z(Y, { children: /* @__PURE__ */ z(Qt, { children: /* @__PURE__ */ z(i, { id: "Dashboard" }) }) }) : /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(Y, { children: /* @__PURE__ */ z(Zt, { render: /* @__PURE__ */ z(b, {
|
|
1001
1010
|
to: "/",
|
|
1002
|
-
children: /* @__PURE__ */
|
|
1003
|
-
}) }) }), e.map((
|
|
1004
|
-
to:
|
|
1005
|
-
children: /* @__PURE__ */
|
|
1006
|
-
}) }) : /* @__PURE__ */
|
|
1007
|
-
/* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ z(i, { id: "Dashboard" })
|
|
1012
|
+
}) }) }), e.map((t, n) => /* @__PURE__ */ B(j.Fragment, { children: [/* @__PURE__ */ z($t, {}), /* @__PURE__ */ z(Y, { children: t.to && n < e.length - 1 ? /* @__PURE__ */ z(Zt, { render: /* @__PURE__ */ z(b, {
|
|
1013
|
+
to: t.to,
|
|
1014
|
+
children: /* @__PURE__ */ z(i, { id: t.label })
|
|
1015
|
+
}) }) : /* @__PURE__ */ z(Qt, { children: /* @__PURE__ */ z(i, { id: t.label }) }) })] }, t.label))] }) }) }),
|
|
1016
|
+
/* @__PURE__ */ z("div", {
|
|
1008
1017
|
className: "ml-auto flex items-center gap-2",
|
|
1009
|
-
children:
|
|
1018
|
+
children: t && n && /* @__PURE__ */ z(Jt, {})
|
|
1010
1019
|
})
|
|
1011
1020
|
]
|
|
1012
1021
|
});
|
|
1013
1022
|
}
|
|
1014
1023
|
// src/admin/layouts/app-layout.tsx
|
|
1015
|
-
var
|
|
1024
|
+
var tn = [
|
|
1016
1025
|
["/customers", [{ label: "Customers" }]],
|
|
1017
1026
|
["/subscriptions", [{ label: "Subscriptions" }]],
|
|
1018
1027
|
["/payments", [{ label: "Payments" }]],
|
|
@@ -1054,7 +1063,7 @@ var Qt = [
|
|
|
1054
1063
|
}, { label: "Findings" }]],
|
|
1055
1064
|
["/settings", [{ label: "Settings" }]]
|
|
1056
1065
|
];
|
|
1057
|
-
function
|
|
1066
|
+
function nn(e, t) {
|
|
1058
1067
|
let n = (t) => e === t || e.startsWith(t + "/");
|
|
1059
1068
|
return n("/payments/health") ? {
|
|
1060
1069
|
name: "payment health",
|
|
@@ -1075,107 +1084,107 @@ function $t(e, t) {
|
|
|
1075
1084
|
allowed: t.catalog === "read" || t.catalog === "update"
|
|
1076
1085
|
} : null;
|
|
1077
1086
|
}
|
|
1078
|
-
function
|
|
1079
|
-
let { activeMerchant: n } =
|
|
1080
|
-
return n ?
|
|
1087
|
+
function rn({ children: e }) {
|
|
1088
|
+
let { activeMerchant: n } = A(), { pathname: r } = t(), { props: a, services: o } = c(), s = L(o.adminQueries.access()), l = s.data, u = (a.settingsTabs?.length ?? 0) > 0 && (r === "/settings" || r === "/"), f = tn.find(([e]) => r.startsWith(e))?.[1] ?? [];
|
|
1089
|
+
return n ? s.isPending ? /* @__PURE__ */ z("p", {
|
|
1081
1090
|
role: "status",
|
|
1082
1091
|
className: "p-6",
|
|
1083
|
-
children: /* @__PURE__ */
|
|
1084
|
-
}) :
|
|
1092
|
+
children: /* @__PURE__ */ z(i, { id: "Loading billing permissions…" })
|
|
1093
|
+
}) : s.error ? /* @__PURE__ */ B("div", {
|
|
1085
1094
|
role: "alert",
|
|
1086
1095
|
className: "p-6",
|
|
1087
|
-
children: [/* @__PURE__ */
|
|
1096
|
+
children: [/* @__PURE__ */ z("p", { children: d(s.error).text }), /* @__PURE__ */ z("button", {
|
|
1088
1097
|
type: "button",
|
|
1089
|
-
onClick: () => void
|
|
1090
|
-
children: /* @__PURE__ */
|
|
1098
|
+
onClick: () => void s.refetch(),
|
|
1099
|
+
children: /* @__PURE__ */ z(i, { id: "Try again" })
|
|
1091
1100
|
})]
|
|
1092
|
-
}) : n.id && l?.scope_id && n.id !== l.scope_id ? /* @__PURE__ */
|
|
1101
|
+
}) : n.id && l?.scope_id && n.id !== l.scope_id ? /* @__PURE__ */ z("p", {
|
|
1093
1102
|
role: "alert",
|
|
1094
1103
|
className: "p-6",
|
|
1095
|
-
children: /* @__PURE__ */
|
|
1096
|
-
}) : /* @__PURE__ */
|
|
1104
|
+
children: /* @__PURE__ */ z(i, { id: "The authenticated connection is bound to another merchant. Update the host connection before opening this merchant." })
|
|
1105
|
+
}) : /* @__PURE__ */ z(pt, { children: /* @__PURE__ */ B(St, {
|
|
1097
1106
|
defaultOpen: window.matchMedia?.("(min-width: 64rem)").matches ?? !0,
|
|
1098
|
-
children: [/* @__PURE__ */
|
|
1107
|
+
children: [/* @__PURE__ */ z(Vt, {}), /* @__PURE__ */ B(Et, {
|
|
1099
1108
|
className: "min-w-0",
|
|
1100
|
-
children: [/* @__PURE__ */
|
|
1109
|
+
children: [/* @__PURE__ */ z(en, { trail: f }), /* @__PURE__ */ z("main", {
|
|
1101
1110
|
className: "flex min-w-0 flex-1 flex-col p-4 md:p-8",
|
|
1102
|
-
children: /* @__PURE__ */
|
|
1111
|
+
children: /* @__PURE__ */ z("div", {
|
|
1103
1112
|
className: "@container/page mx-auto w-full max-w-7xl min-w-0",
|
|
1104
|
-
children: l && (!
|
|
1113
|
+
children: l && (!ae(l) && !u || nn(r, l)?.allowed === !1) ? /* @__PURE__ */ z(Kt, { area: nn(r, l)?.name }) : e
|
|
1105
1114
|
})
|
|
1106
1115
|
}, n?.id || n?.slug || "")]
|
|
1107
1116
|
})]
|
|
1108
|
-
}) }) : /* @__PURE__ */
|
|
1117
|
+
}) }) : /* @__PURE__ */ z(qt, {});
|
|
1109
1118
|
}
|
|
1110
1119
|
// src/admin/components/ui/alert-dialog.tsx
|
|
1111
|
-
function
|
|
1112
|
-
return /* @__PURE__ */
|
|
1120
|
+
function an({ ...e }) {
|
|
1121
|
+
return /* @__PURE__ */ z(K.Root, {
|
|
1113
1122
|
"data-slot": "alert-dialog",
|
|
1114
1123
|
...e
|
|
1115
1124
|
});
|
|
1116
1125
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return /* @__PURE__ */
|
|
1119
|
-
container:
|
|
1126
|
+
function on({ ...e }) {
|
|
1127
|
+
return /* @__PURE__ */ z(K.Portal, {
|
|
1128
|
+
container: c().portal,
|
|
1120
1129
|
"data-slot": "alert-dialog-portal",
|
|
1121
1130
|
...e
|
|
1122
1131
|
});
|
|
1123
1132
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return /* @__PURE__ */
|
|
1133
|
+
function sn({ className: e, ...t }) {
|
|
1134
|
+
return /* @__PURE__ */ z(K.Backdrop, {
|
|
1126
1135
|
"data-slot": "alert-dialog-overlay",
|
|
1127
|
-
className:
|
|
1136
|
+
className: f("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),
|
|
1128
1137
|
...t
|
|
1129
1138
|
});
|
|
1130
1139
|
}
|
|
1131
|
-
function
|
|
1132
|
-
return /* @__PURE__ */
|
|
1140
|
+
function cn({ className: e, size: t = "default", ...n }) {
|
|
1141
|
+
return /* @__PURE__ */ B(on, { children: [/* @__PURE__ */ z(sn, {}), /* @__PURE__ */ z(K.Popup, {
|
|
1133
1142
|
"data-slot": "alert-dialog-content",
|
|
1134
1143
|
"data-size": t,
|
|
1135
|
-
className:
|
|
1144
|
+
className: f("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),
|
|
1136
1145
|
...n
|
|
1137
1146
|
})] });
|
|
1138
1147
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return /* @__PURE__ */
|
|
1148
|
+
function ln({ className: e, ...t }) {
|
|
1149
|
+
return /* @__PURE__ */ z("div", {
|
|
1141
1150
|
"data-slot": "alert-dialog-header",
|
|
1142
|
-
className:
|
|
1151
|
+
className: f("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),
|
|
1143
1152
|
...t
|
|
1144
1153
|
});
|
|
1145
1154
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return /* @__PURE__ */
|
|
1155
|
+
function un({ className: e, ...t }) {
|
|
1156
|
+
return /* @__PURE__ */ z("div", {
|
|
1148
1157
|
"data-slot": "alert-dialog-footer",
|
|
1149
|
-
className:
|
|
1158
|
+
className: f("-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),
|
|
1150
1159
|
...t
|
|
1151
1160
|
});
|
|
1152
1161
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return /* @__PURE__ */
|
|
1162
|
+
function dn({ className: e, ...t }) {
|
|
1163
|
+
return /* @__PURE__ */ z(K.Title, {
|
|
1155
1164
|
"data-slot": "alert-dialog-title",
|
|
1156
|
-
className:
|
|
1165
|
+
className: f("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),
|
|
1157
1166
|
...t
|
|
1158
1167
|
});
|
|
1159
1168
|
}
|
|
1160
|
-
function
|
|
1161
|
-
return /* @__PURE__ */
|
|
1169
|
+
function fn({ className: e, ...t }) {
|
|
1170
|
+
return /* @__PURE__ */ z(K.Description, {
|
|
1162
1171
|
"data-slot": "alert-dialog-description",
|
|
1163
|
-
className:
|
|
1172
|
+
className: f("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
1164
1173
|
...t
|
|
1165
1174
|
});
|
|
1166
1175
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return /* @__PURE__ */
|
|
1176
|
+
function pn({ className: e, ...t }) {
|
|
1177
|
+
return /* @__PURE__ */ z(E, {
|
|
1169
1178
|
"data-slot": "alert-dialog-action",
|
|
1170
|
-
className:
|
|
1179
|
+
className: f(e),
|
|
1171
1180
|
...t
|
|
1172
1181
|
});
|
|
1173
1182
|
}
|
|
1174
|
-
function
|
|
1175
|
-
return /* @__PURE__ */
|
|
1183
|
+
function mn({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
1184
|
+
return /* @__PURE__ */ z(K.Close, {
|
|
1176
1185
|
"data-slot": "alert-dialog-cancel",
|
|
1177
|
-
className:
|
|
1178
|
-
render: /* @__PURE__ */
|
|
1186
|
+
className: f(e),
|
|
1187
|
+
render: /* @__PURE__ */ z(E, {
|
|
1179
1188
|
variant: t,
|
|
1180
1189
|
size: n
|
|
1181
1190
|
}),
|
|
@@ -1183,20 +1192,20 @@ function dn({ className: e, variant: t = "outline", size: n = "default", ...r })
|
|
|
1183
1192
|
});
|
|
1184
1193
|
}
|
|
1185
1194
|
// src/admin/components/confirm.tsx
|
|
1186
|
-
function
|
|
1187
|
-
let [t, n] =
|
|
1195
|
+
function hn({ children: e }) {
|
|
1196
|
+
let [t, n] = j.useState(null), [r, i] = j.useState(!1), a = j.useRef(null), o = j.useCallback((e) => {
|
|
1188
1197
|
a.current?.(e), a.current = null, i(!1);
|
|
1189
|
-
}, []), s =
|
|
1198
|
+
}, []), s = j.useCallback((e) => new Promise((t) => {
|
|
1190
1199
|
a.current?.(!1), a.current = t, n(e), i(!0);
|
|
1191
1200
|
}), []);
|
|
1192
|
-
return
|
|
1201
|
+
return j.useEffect(() => () => a.current?.(!1), []), /* @__PURE__ */ B(oe.Provider, {
|
|
1193
1202
|
value: s,
|
|
1194
|
-
children: [e, /* @__PURE__ */
|
|
1203
|
+
children: [e, /* @__PURE__ */ z(an, {
|
|
1195
1204
|
open: r,
|
|
1196
1205
|
onOpenChange: (e) => {
|
|
1197
1206
|
e || o(!1);
|
|
1198
1207
|
},
|
|
1199
|
-
children: /* @__PURE__ */
|
|
1208
|
+
children: /* @__PURE__ */ B(cn, { children: [/* @__PURE__ */ B(ln, { children: [/* @__PURE__ */ z(dn, { children: t?.title }), t?.description ? /* @__PURE__ */ z(fn, { children: t.description }) : null] }), /* @__PURE__ */ B(un, { children: [/* @__PURE__ */ z(mn, { children: t?.cancelLabel ?? "Cancel" }), /* @__PURE__ */ z(pn, {
|
|
1200
1209
|
variant: t?.tone === "destructive" ? "destructive" : "default",
|
|
1201
1210
|
onClick: () => o(!0),
|
|
1202
1211
|
children: t?.confirmLabel ?? "Confirm"
|
|
@@ -1205,18 +1214,18 @@ function fn({ children: e }) {
|
|
|
1205
1214
|
});
|
|
1206
1215
|
}
|
|
1207
1216
|
// src/admin/components/ui/sonner.tsx
|
|
1208
|
-
var
|
|
1209
|
-
let t =
|
|
1210
|
-
return /* @__PURE__ */
|
|
1211
|
-
id:
|
|
1217
|
+
var gn = ({ ...e }) => {
|
|
1218
|
+
let t = c().props.appearance?.theme ?? "system";
|
|
1219
|
+
return /* @__PURE__ */ z(ve, {
|
|
1220
|
+
id: c().services.namespace,
|
|
1212
1221
|
theme: t === "inherit" ? "system" : t,
|
|
1213
1222
|
className: "toaster group",
|
|
1214
1223
|
icons: {
|
|
1215
|
-
success: /* @__PURE__ */
|
|
1216
|
-
info: /* @__PURE__ */
|
|
1217
|
-
warning: /* @__PURE__ */
|
|
1218
|
-
error: /* @__PURE__ */
|
|
1219
|
-
loading: /* @__PURE__ */
|
|
1224
|
+
success: /* @__PURE__ */ z(Pe, { className: "size-4" }),
|
|
1225
|
+
info: /* @__PURE__ */ z(Fe, { className: "size-4" }),
|
|
1226
|
+
warning: /* @__PURE__ */ z(ze, { className: "size-4" }),
|
|
1227
|
+
error: /* @__PURE__ */ z(Le, { className: "size-4" }),
|
|
1228
|
+
loading: /* @__PURE__ */ z(Ie, { className: "size-4 animate-spin" })
|
|
1220
1229
|
},
|
|
1221
1230
|
style: {
|
|
1222
1231
|
"--normal-bg": "var(--popover)",
|
|
@@ -1227,56 +1236,56 @@ var pn = ({ ...e }) => {
|
|
|
1227
1236
|
toastOptions: { classNames: { toast: "cn-toast" } },
|
|
1228
1237
|
...e
|
|
1229
1238
|
});
|
|
1230
|
-
},
|
|
1239
|
+
}, _n = [
|
|
1231
1240
|
/dynamically imported module/i,
|
|
1232
1241
|
/failed to load module script/i,
|
|
1233
1242
|
/importing a module script failed/i,
|
|
1234
1243
|
/loading (css )?chunk \S+ failed/i,
|
|
1235
1244
|
/unable to preload css/i
|
|
1236
1245
|
];
|
|
1237
|
-
function
|
|
1246
|
+
function vn(e) {
|
|
1238
1247
|
let t = e;
|
|
1239
|
-
return t?.name === "ChunkLoadError" ||
|
|
1248
|
+
return t?.name === "ChunkLoadError" || _n.some((e) => e.test(t?.message ?? ""));
|
|
1240
1249
|
}
|
|
1241
1250
|
// src/admin/components/route-error.tsx
|
|
1242
|
-
function
|
|
1243
|
-
let
|
|
1244
|
-
return /* @__PURE__ */
|
|
1251
|
+
function yn({ error: e }) {
|
|
1252
|
+
let t = vn(e), n = e instanceof Error ? e.message : "";
|
|
1253
|
+
return /* @__PURE__ */ B("div", {
|
|
1245
1254
|
role: "alert",
|
|
1246
1255
|
className: "flex min-h-[50vh] flex-col items-center justify-center gap-4 p-6 text-center",
|
|
1247
|
-
children: [/* @__PURE__ */
|
|
1256
|
+
children: [/* @__PURE__ */ B("div", {
|
|
1248
1257
|
className: "max-w-md",
|
|
1249
|
-
children: [/* @__PURE__ */
|
|
1258
|
+
children: [/* @__PURE__ */ z("p", {
|
|
1250
1259
|
className: "font-medium",
|
|
1251
|
-
children:
|
|
1252
|
-
}), !
|
|
1260
|
+
children: t ? "The console has been updated. Reload to use the new version." : "This page failed to load."
|
|
1261
|
+
}), !t && n ? /* @__PURE__ */ z("p", {
|
|
1253
1262
|
className: "mt-1 text-sm break-words text-muted-foreground",
|
|
1254
|
-
children:
|
|
1263
|
+
children: n
|
|
1255
1264
|
}) : null]
|
|
1256
|
-
}), /* @__PURE__ */
|
|
1265
|
+
}), /* @__PURE__ */ B("div", {
|
|
1257
1266
|
className: "flex flex-wrap items-center justify-center gap-3",
|
|
1258
|
-
children: [/* @__PURE__ */
|
|
1267
|
+
children: [/* @__PURE__ */ B(E, {
|
|
1259
1268
|
onClick: () => window.location.reload(),
|
|
1260
|
-
children: [/* @__PURE__ */
|
|
1261
|
-
icon:
|
|
1269
|
+
children: [/* @__PURE__ */ z(V, {
|
|
1270
|
+
icon: Ee,
|
|
1262
1271
|
className: "size-4"
|
|
1263
|
-
}),
|
|
1264
|
-
}), /* @__PURE__ */
|
|
1272
|
+
}), t ? "Reload" : "Try again"]
|
|
1273
|
+
}), /* @__PURE__ */ z(b, {
|
|
1265
1274
|
to: "/",
|
|
1266
1275
|
className: "text-sm text-muted-foreground underline underline-offset-4",
|
|
1267
|
-
children: /* @__PURE__ */
|
|
1276
|
+
children: /* @__PURE__ */ z(i, { id: "Console home" })
|
|
1268
1277
|
})]
|
|
1269
1278
|
})]
|
|
1270
1279
|
});
|
|
1271
1280
|
}
|
|
1272
1281
|
// src/admin/lib/query-client.ts
|
|
1273
|
-
function
|
|
1274
|
-
return t instanceof
|
|
1282
|
+
function bn(e, t) {
|
|
1283
|
+
return t instanceof a && t.status > 0 && t.status < 500 ? !1 : e < 2;
|
|
1275
1284
|
}
|
|
1276
|
-
var
|
|
1277
|
-
let { toastApiError: t } =
|
|
1278
|
-
return new
|
|
1279
|
-
queryCache: new
|
|
1285
|
+
var xn = (e) => {
|
|
1286
|
+
let { toastApiError: t } = o(r(e));
|
|
1287
|
+
return new ge({
|
|
1288
|
+
queryCache: new he({ onError: (e, n) => {
|
|
1280
1289
|
let r = n.meta?.errorAction;
|
|
1281
1290
|
typeof r == "string" && t(e, r);
|
|
1282
1291
|
} }),
|
|
@@ -1284,26 +1293,26 @@ var vn = (e) => {
|
|
|
1284
1293
|
queries: {
|
|
1285
1294
|
staleTime: 2e4,
|
|
1286
1295
|
gcTime: 3e5,
|
|
1287
|
-
retry:
|
|
1296
|
+
retry: bn
|
|
1288
1297
|
},
|
|
1289
1298
|
mutations: { retry: !1 }
|
|
1290
1299
|
}
|
|
1291
1300
|
});
|
|
1292
|
-
},
|
|
1293
|
-
let t =
|
|
1301
|
+
}, Sn = () => window.matchMedia?.("(prefers-color-scheme: dark)"), Cn = (e) => {
|
|
1302
|
+
let t = Sn();
|
|
1294
1303
|
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
1295
|
-
},
|
|
1296
|
-
function
|
|
1297
|
-
let t =
|
|
1304
|
+
}, wn = () => Sn()?.matches ? "dark" : "light", Tn = () => "light", En = () => () => {};
|
|
1305
|
+
function X(e = "inherit") {
|
|
1306
|
+
let t = me(e === "auto" ? Cn : En, wn, Tn);
|
|
1298
1307
|
return e === "auto" ? t : e;
|
|
1299
1308
|
}
|
|
1300
1309
|
// src/admin/billing-admin.tsx
|
|
1301
|
-
var
|
|
1310
|
+
var Z = (e) => typeof e == "string" ? {
|
|
1302
1311
|
id: e,
|
|
1303
1312
|
slug: e
|
|
1304
1313
|
} : e;
|
|
1305
|
-
function
|
|
1306
|
-
let [t, n] =
|
|
1314
|
+
function Dn(e) {
|
|
1315
|
+
let [t, n] = I(), [r, i] = I({
|
|
1307
1316
|
auth: e.auth,
|
|
1308
1317
|
baseUrl: e.baseUrl,
|
|
1309
1318
|
generation: 0
|
|
@@ -1312,29 +1321,29 @@ function Tn(e) {
|
|
|
1312
1321
|
auth: e.auth,
|
|
1313
1322
|
baseUrl: e.baseUrl,
|
|
1314
1323
|
generation: r.generation + 1
|
|
1315
|
-
}), /* @__PURE__ */
|
|
1324
|
+
}), /* @__PURE__ */ z(On, {
|
|
1316
1325
|
...e,
|
|
1317
1326
|
selected: t,
|
|
1318
1327
|
onSelected: n
|
|
1319
1328
|
}, r.generation);
|
|
1320
1329
|
}
|
|
1321
|
-
function
|
|
1322
|
-
let i =
|
|
1330
|
+
function On({ selected: t, onSelected: n, ...r }) {
|
|
1331
|
+
let i = X(r.appearance?.theme), a = de(), [o, c] = I(null), l = F(() => r.merchants ?? (r.merchant ? [Z(r.merchant)] : [{
|
|
1323
1332
|
id: "",
|
|
1324
1333
|
slug: "",
|
|
1325
1334
|
display_name: "Billing"
|
|
1326
|
-
}]), [r.merchants, r.merchant]),
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
}), [
|
|
1330
|
-
let h =
|
|
1335
|
+
}]), [r.merchants, r.merchant]), u = r.merchant ? Z(r.merchant).id : t, d = l.find((e) => e.id === u || e.slug === u) ?? l[0], f = `${r.baseUrl}:${d?.id ?? ""}:${d?.slug ?? ""}`, p = pe(f);
|
|
1336
|
+
fe(() => (p.current = f, () => {
|
|
1337
|
+
p.current = void 0;
|
|
1338
|
+
}), [f]);
|
|
1339
|
+
let h = N(() => p.current === f, [f]), _ = F(() => r.queryClient ?? xn(a), [a, r.queryClient]), v = {
|
|
1331
1340
|
props: r,
|
|
1332
|
-
services:
|
|
1341
|
+
services: F(() => s({
|
|
1333
1342
|
namespace: a,
|
|
1334
1343
|
isCurrent: h,
|
|
1335
1344
|
baseUrl: r.baseUrl,
|
|
1336
1345
|
auth: r.auth,
|
|
1337
|
-
merchant:
|
|
1346
|
+
merchant: d,
|
|
1338
1347
|
exchange: r.exchange
|
|
1339
1348
|
}), [
|
|
1340
1349
|
h,
|
|
@@ -1342,60 +1351,60 @@ function En({ selected: t, onSelected: n, ...r }) {
|
|
|
1342
1351
|
r.baseUrl,
|
|
1343
1352
|
r.auth,
|
|
1344
1353
|
r.exchange,
|
|
1345
|
-
|
|
1354
|
+
d
|
|
1346
1355
|
]),
|
|
1347
1356
|
merchants: l,
|
|
1348
|
-
activeMerchant:
|
|
1349
|
-
portal:
|
|
1357
|
+
activeMerchant: d,
|
|
1358
|
+
portal: o,
|
|
1350
1359
|
selectMerchant(e) {
|
|
1351
1360
|
let t = l.find((t) => t.slug === e || t.id === e);
|
|
1352
1361
|
t && (n(t.id), r.onMerchantChange?.(t));
|
|
1353
1362
|
}
|
|
1354
1363
|
};
|
|
1355
|
-
return /* @__PURE__ */
|
|
1364
|
+
return /* @__PURE__ */ z("div", {
|
|
1356
1365
|
lang: r.language ?? "en",
|
|
1357
1366
|
className: ["orba", r.className].filter(Boolean).join(" "),
|
|
1358
1367
|
"data-orba-theme": i,
|
|
1359
1368
|
style: {
|
|
1360
|
-
...
|
|
1369
|
+
...q(r.appearance, "orba"),
|
|
1361
1370
|
...r.style
|
|
1362
1371
|
},
|
|
1363
|
-
children: /* @__PURE__ */
|
|
1372
|
+
children: /* @__PURE__ */ z(m.Provider, {
|
|
1364
1373
|
value: {
|
|
1365
1374
|
namespace: a,
|
|
1366
1375
|
messages: r.messages
|
|
1367
1376
|
},
|
|
1368
|
-
children: /* @__PURE__ */
|
|
1377
|
+
children: /* @__PURE__ */ B(g.Provider, {
|
|
1369
1378
|
value: v,
|
|
1370
|
-
children: [/* @__PURE__ */
|
|
1379
|
+
children: [/* @__PURE__ */ z(_e, {
|
|
1371
1380
|
client: _,
|
|
1372
|
-
children: /* @__PURE__ */
|
|
1381
|
+
children: /* @__PURE__ */ B(e, {
|
|
1373
1382
|
basePath: r.basePath,
|
|
1374
1383
|
navigation: r.navigation,
|
|
1375
|
-
children: [/* @__PURE__ */
|
|
1384
|
+
children: [/* @__PURE__ */ z(hn, { children: /* @__PURE__ */ z(rn, { children: /* @__PURE__ */ z(An, { children: /* @__PURE__ */ z(tt, {}) }) }) }), /* @__PURE__ */ z(gn, {})]
|
|
1376
1385
|
})
|
|
1377
|
-
}), /* @__PURE__ */
|
|
1386
|
+
}), /* @__PURE__ */ z("div", { ref: c })]
|
|
1378
1387
|
})
|
|
1379
1388
|
})
|
|
1380
1389
|
});
|
|
1381
1390
|
}
|
|
1382
|
-
var
|
|
1391
|
+
var kn = class extends ce {
|
|
1383
1392
|
state = {};
|
|
1384
1393
|
static getDerivedStateFromError(e) {
|
|
1385
1394
|
return { error: e };
|
|
1386
1395
|
}
|
|
1387
1396
|
render() {
|
|
1388
|
-
return this.state.error ? /* @__PURE__ */
|
|
1397
|
+
return this.state.error ? /* @__PURE__ */ z(yn, { error: this.state.error }) : this.props.children;
|
|
1389
1398
|
}
|
|
1390
1399
|
};
|
|
1391
|
-
function
|
|
1392
|
-
let
|
|
1393
|
-
return /* @__PURE__ */
|
|
1400
|
+
function An({ children: e }) {
|
|
1401
|
+
let n = t();
|
|
1402
|
+
return /* @__PURE__ */ z(kn, { children: e }, n.pathname);
|
|
1394
1403
|
}
|
|
1395
1404
|
// src/admin/summary.tsx
|
|
1396
|
-
function
|
|
1405
|
+
function jn(e) {
|
|
1397
1406
|
let t = typeof e.merchant == "string" ? e.merchant : e.merchant?.id, n = typeof e.merchant == "string" ? e.merchant : e.merchant?.slug;
|
|
1398
|
-
return
|
|
1407
|
+
return F(() => x(v({
|
|
1399
1408
|
baseUrl: e.baseUrl,
|
|
1400
1409
|
auth: e.auth,
|
|
1401
1410
|
exchange: e.exchange,
|
|
@@ -1411,9 +1420,9 @@ function kn(e) {
|
|
|
1411
1420
|
n
|
|
1412
1421
|
]);
|
|
1413
1422
|
}
|
|
1414
|
-
function
|
|
1415
|
-
let [t, n] =
|
|
1416
|
-
|
|
1423
|
+
function Mn(e) {
|
|
1424
|
+
let [t, n] = I(0), [r, i] = I();
|
|
1425
|
+
P(() => {
|
|
1417
1426
|
let n = new AbortController();
|
|
1418
1427
|
return e(n.signal).then((r) => {
|
|
1419
1428
|
n.signal.aborted || i({
|
|
@@ -1437,94 +1446,94 @@ function An(e) {
|
|
|
1437
1446
|
refetch: () => n((e) => e + 1)
|
|
1438
1447
|
};
|
|
1439
1448
|
}
|
|
1440
|
-
function jn(e) {
|
|
1441
|
-
let t = kn(e);
|
|
1442
|
-
return An(M((e) => t.getAdminAccess(e), [t]));
|
|
1443
|
-
}
|
|
1444
|
-
var Mn = (e) => e instanceof v && e.code === "customer_not_found";
|
|
1445
1449
|
function Nn(e) {
|
|
1446
|
-
let
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
+
let t = jn(e);
|
|
1451
|
+
return Mn(N((e) => t.getAdminAccess(e), [t]));
|
|
1452
|
+
}
|
|
1453
|
+
var Pn = (e) => e instanceof a && e.code === "customer_not_found";
|
|
1454
|
+
function Fn(e) {
|
|
1455
|
+
let t = X(e.appearance?.theme), n = jn(e), { data: r, error: a, isPending: o, refetch: s } = Mn(N(async (t) => {
|
|
1456
|
+
let [r, i, a, o, s] = await Promise.all([
|
|
1457
|
+
n.getCustomer(e.customer, t),
|
|
1458
|
+
n.listSubscriptions({
|
|
1450
1459
|
customer_id: e.customer,
|
|
1451
1460
|
status: "active"
|
|
1452
1461
|
}, 5, void 0, t),
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1462
|
+
n.listCustomerEntitlements(e.customer, { limit: 5 }, t),
|
|
1463
|
+
n.listCustomerProductAccess(e.customer, { limit: 5 }, t),
|
|
1464
|
+
n.listPayments({ customer_id: e.customer }, { limit: 5 }, t)
|
|
1456
1465
|
]);
|
|
1457
1466
|
return {
|
|
1458
|
-
customer:
|
|
1467
|
+
customer: r,
|
|
1459
1468
|
subscriptions: i,
|
|
1460
1469
|
entitlements: a,
|
|
1461
1470
|
access: o,
|
|
1462
1471
|
payments: s
|
|
1463
1472
|
};
|
|
1464
|
-
}, [
|
|
1465
|
-
return /* @__PURE__ */
|
|
1473
|
+
}, [n, e.customer]));
|
|
1474
|
+
return /* @__PURE__ */ z("section", {
|
|
1466
1475
|
className: ["orba", e.className].filter(Boolean).join(" "),
|
|
1467
|
-
"data-orba-theme":
|
|
1468
|
-
style:
|
|
1469
|
-
children: /* @__PURE__ */
|
|
1476
|
+
"data-orba-theme": t,
|
|
1477
|
+
style: q(e.appearance, "orba"),
|
|
1478
|
+
children: /* @__PURE__ */ B("div", {
|
|
1470
1479
|
className: "overflow-hidden rounded-xl bg-card text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10",
|
|
1471
|
-
children: [/* @__PURE__ */
|
|
1480
|
+
children: [/* @__PURE__ */ B("div", {
|
|
1472
1481
|
className: "flex flex-wrap items-center justify-between gap-3 border-b px-5 py-5 sm:px-6",
|
|
1473
|
-
children: [/* @__PURE__ */
|
|
1482
|
+
children: [/* @__PURE__ */ z("h2", {
|
|
1474
1483
|
className: "text-base leading-tight font-semibold",
|
|
1475
|
-
children: /* @__PURE__ */
|
|
1476
|
-
}), e.href && /* @__PURE__ */
|
|
1484
|
+
children: /* @__PURE__ */ z(i, { id: "Billing" })
|
|
1485
|
+
}), e.href && /* @__PURE__ */ z("a", {
|
|
1477
1486
|
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",
|
|
1478
1487
|
href: e.href,
|
|
1479
|
-
children: /* @__PURE__ */
|
|
1488
|
+
children: /* @__PURE__ */ z(i, { id: "View billing details" })
|
|
1480
1489
|
})]
|
|
1481
|
-
}), /* @__PURE__ */
|
|
1490
|
+
}), /* @__PURE__ */ B("div", {
|
|
1482
1491
|
className: "px-5 py-4 sm:px-6",
|
|
1483
1492
|
children: [
|
|
1484
|
-
|
|
1493
|
+
o && /* @__PURE__ */ z("p", {
|
|
1485
1494
|
role: "status",
|
|
1486
1495
|
className: "text-muted-foreground",
|
|
1487
|
-
children: /* @__PURE__ */
|
|
1496
|
+
children: /* @__PURE__ */ z(i, { id: "Loading billing…" })
|
|
1488
1497
|
}),
|
|
1489
|
-
|
|
1498
|
+
a && Pn(a) && /* @__PURE__ */ z("p", {
|
|
1490
1499
|
className: "text-muted-foreground",
|
|
1491
|
-
children: /* @__PURE__ */
|
|
1500
|
+
children: /* @__PURE__ */ z(i, { id: "No billing activity yet." })
|
|
1492
1501
|
}),
|
|
1493
|
-
|
|
1502
|
+
a && !Pn(a) && /* @__PURE__ */ B("p", {
|
|
1494
1503
|
role: "alert",
|
|
1495
1504
|
children: [
|
|
1496
|
-
|
|
1505
|
+
d(a).text,
|
|
1497
1506
|
" ",
|
|
1498
|
-
/* @__PURE__ */
|
|
1507
|
+
/* @__PURE__ */ z("button", {
|
|
1499
1508
|
type: "button",
|
|
1500
1509
|
className: "underline underline-offset-4",
|
|
1501
|
-
onClick:
|
|
1502
|
-
children: /* @__PURE__ */
|
|
1510
|
+
onClick: s,
|
|
1511
|
+
children: /* @__PURE__ */ z(i, { id: "Try again" })
|
|
1503
1512
|
})
|
|
1504
1513
|
]
|
|
1505
1514
|
}),
|
|
1506
|
-
|
|
1515
|
+
r && /* @__PURE__ */ B("dl", {
|
|
1507
1516
|
className: "grid gap-x-6 gap-y-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-y-3",
|
|
1508
1517
|
children: [
|
|
1509
|
-
|
|
1518
|
+
r.customer.balances.map((e) => /* @__PURE__ */ z(Q, {
|
|
1510
1519
|
label: "Available balance",
|
|
1511
|
-
items: [
|
|
1520
|
+
items: [h(e.available_amount, e)]
|
|
1512
1521
|
}, e.currency)),
|
|
1513
|
-
/* @__PURE__ */
|
|
1522
|
+
/* @__PURE__ */ z(Q, {
|
|
1514
1523
|
label: "Active subscriptions",
|
|
1515
|
-
items:
|
|
1524
|
+
items: r.subscriptions.data.map((e) => e.product?.display_name ?? e.id)
|
|
1516
1525
|
}),
|
|
1517
|
-
/* @__PURE__ */
|
|
1526
|
+
/* @__PURE__ */ z(Q, {
|
|
1518
1527
|
label: "Entitlements",
|
|
1519
|
-
items:
|
|
1528
|
+
items: r.entitlements.data.map((e) => e.entitlement)
|
|
1520
1529
|
}),
|
|
1521
|
-
/* @__PURE__ */
|
|
1530
|
+
/* @__PURE__ */ z(Q, {
|
|
1522
1531
|
label: "Product access",
|
|
1523
|
-
items:
|
|
1532
|
+
items: r.access.data.map((e) => `${e.product_name} · ${se(e.status)}`)
|
|
1524
1533
|
}),
|
|
1525
|
-
/* @__PURE__ */
|
|
1534
|
+
/* @__PURE__ */ z(Q, {
|
|
1526
1535
|
label: "Recent payments",
|
|
1527
|
-
items:
|
|
1536
|
+
items: r.payments.data.map((e) => `${_(e.amount, e.currency)} · ${se(e.status)}`)
|
|
1528
1537
|
})
|
|
1529
1538
|
]
|
|
1530
1539
|
})
|
|
@@ -1533,48 +1542,48 @@ function Nn(e) {
|
|
|
1533
1542
|
})
|
|
1534
1543
|
});
|
|
1535
1544
|
}
|
|
1536
|
-
function Q({ label: e, items:
|
|
1537
|
-
return /* @__PURE__ */
|
|
1545
|
+
function Q({ label: e, items: t }) {
|
|
1546
|
+
return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("dt", {
|
|
1538
1547
|
className: "pt-2 text-muted-foreground first:pt-0 sm:pt-0",
|
|
1539
|
-
children: /* @__PURE__ */
|
|
1540
|
-
}), /* @__PURE__ */
|
|
1548
|
+
children: /* @__PURE__ */ z(i, { id: e })
|
|
1549
|
+
}), /* @__PURE__ */ z("dd", {
|
|
1541
1550
|
className: "min-w-0",
|
|
1542
|
-
children:
|
|
1551
|
+
children: t.length ? /* @__PURE__ */ z("ul", {
|
|
1543
1552
|
className: "grid gap-0.5",
|
|
1544
|
-
children:
|
|
1545
|
-
}) : /* @__PURE__ */
|
|
1553
|
+
children: t.map((e, t) => /* @__PURE__ */ z("li", { children: e }, t))
|
|
1554
|
+
}) : /* @__PURE__ */ z("span", {
|
|
1546
1555
|
className: "text-muted-foreground",
|
|
1547
|
-
children: /* @__PURE__ */
|
|
1556
|
+
children: /* @__PURE__ */ z(i, { id: "None" })
|
|
1548
1557
|
})
|
|
1549
1558
|
})] });
|
|
1550
1559
|
}
|
|
1551
|
-
function
|
|
1560
|
+
function In(e) {
|
|
1552
1561
|
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."] : [];
|
|
1553
1562
|
}
|
|
1554
|
-
var
|
|
1555
|
-
async function
|
|
1563
|
+
var Ln = "Subscription status could not be fully checked. Banning or deleting the account does not cancel subscriptions; review billing separately.";
|
|
1564
|
+
async function Rn(e) {
|
|
1556
1565
|
let t = typeof e.merchant == "string" ? {
|
|
1557
1566
|
id: e.merchant,
|
|
1558
1567
|
slug: e.merchant
|
|
1559
|
-
} : e.merchant, n =
|
|
1568
|
+
} : e.merchant, n = x(v({
|
|
1560
1569
|
...e,
|
|
1561
1570
|
merchant: t
|
|
1562
|
-
})),
|
|
1571
|
+
})), r, i = /* @__PURE__ */ new Set();
|
|
1563
1572
|
try {
|
|
1564
1573
|
for (let t = 0; t < 10; t++) {
|
|
1565
1574
|
e.signal?.throwIfAborted();
|
|
1566
|
-
let t = await n.listSubscriptions({ customer_id: e.customer }, 100,
|
|
1567
|
-
if (
|
|
1575
|
+
let t = await n.listSubscriptions({ customer_id: e.customer }, 100, r, e.signal), a = In({ subscriptions: t.data });
|
|
1576
|
+
if (a.length) return a;
|
|
1568
1577
|
if (!t.next_cursor) return [];
|
|
1569
|
-
if (
|
|
1570
|
-
|
|
1578
|
+
if (i.has(t.next_cursor)) break;
|
|
1579
|
+
i.add(t.next_cursor), r = t.next_cursor;
|
|
1571
1580
|
}
|
|
1572
1581
|
} catch (t) {
|
|
1573
1582
|
if (e.signal?.throwIfAborted(), t instanceof Error && t.name === "AbortError") throw t;
|
|
1574
1583
|
}
|
|
1575
|
-
return [
|
|
1584
|
+
return [Ln];
|
|
1576
1585
|
}
|
|
1577
|
-
var
|
|
1586
|
+
var zn = {
|
|
1578
1587
|
"customer:read": "Read customers, subscriptions, payments, and orders.",
|
|
1579
1588
|
"customer:manage": "Change customer billing, including refunds, cancellations, and credits.",
|
|
1580
1589
|
"catalog:manage": "Change products, prices, meters, and catalog migrations.",
|
|
@@ -1583,69 +1592,70 @@ var Ln = {
|
|
|
1583
1592
|
"config:manage": "Change merchant configuration, PSPs, findings, and notifications.",
|
|
1584
1593
|
"metrics:read": "Read revenue metrics, reports, and dashboards.",
|
|
1585
1594
|
"entitlements:read": "Read customer entitlements through the application API.",
|
|
1586
|
-
"usage:read": "Read usage,
|
|
1595
|
+
"usage:read": "Read usage, limits, and running charges through the application API.",
|
|
1587
1596
|
"usage:manage": "Admit and charge usage through the application API.",
|
|
1588
1597
|
"events:read": "Read retained billing events through the application API.",
|
|
1589
1598
|
"orders:manage": "Preview, create, and withdraw merchant orders through the application API.",
|
|
1590
|
-
"
|
|
1591
|
-
|
|
1599
|
+
"provisioning:read": "Read the customer directory over SCIM.",
|
|
1600
|
+
"provisioning:manage": "Push and erase the customer directory over SCIM; an erasure spends the destructive budget."
|
|
1601
|
+
}, Bn = Object.fromEntries(["merchant", "root"].flatMap((e) => Object.entries(zn).map(([t, n]) => [`${e}:${t}`, `${n} ${e === "root" ? "Applies across merchants." : "Applies within this merchant."}`])));
|
|
1592
1602
|
// src/admin/console.tsx
|
|
1593
|
-
function
|
|
1594
|
-
let t =
|
|
1595
|
-
return a = t.status === "loading" ? /* @__PURE__ */
|
|
1603
|
+
function Vn(e) {
|
|
1604
|
+
let t = qe(), n = Xe(), r = e.navigation ?? n, i = X(e.appearance?.theme), a;
|
|
1605
|
+
return a = t.status === "loading" ? /* @__PURE__ */ z($, { children: "Loading…" }) : t.status === "authenticated" ? /* @__PURE__ */ z(We, {
|
|
1596
1606
|
acquireSolanaSigner: e.acquireSolanaSigner,
|
|
1597
|
-
children: /* @__PURE__ */
|
|
1607
|
+
children: /* @__PURE__ */ z(Wn, {
|
|
1598
1608
|
...e,
|
|
1599
1609
|
navigation: r,
|
|
1600
1610
|
theme: i
|
|
1601
1611
|
})
|
|
1602
|
-
}, t.userId) : e.signInPath ? /* @__PURE__ */
|
|
1612
|
+
}, t.userId) : e.signInPath ? /* @__PURE__ */ z(Hn, {
|
|
1603
1613
|
path: e.signInPath,
|
|
1604
1614
|
navigation: r
|
|
1605
|
-
}) : /* @__PURE__ */
|
|
1615
|
+
}) : /* @__PURE__ */ z("div", {
|
|
1606
1616
|
style: {
|
|
1607
1617
|
display: "flex",
|
|
1608
1618
|
justifyContent: "center",
|
|
1609
1619
|
padding: "2.5rem 0"
|
|
1610
1620
|
},
|
|
1611
|
-
children: /* @__PURE__ */
|
|
1612
|
-
}), /* @__PURE__ */
|
|
1621
|
+
children: /* @__PURE__ */ z(Ue, {})
|
|
1622
|
+
}), /* @__PURE__ */ z("div", {
|
|
1613
1623
|
className: e.className,
|
|
1614
1624
|
"data-openrails-admin-console": "",
|
|
1615
1625
|
children: a
|
|
1616
1626
|
});
|
|
1617
1627
|
}
|
|
1618
|
-
function
|
|
1628
|
+
function Hn({ path: e, navigation: t }) {
|
|
1619
1629
|
let n = t.pathname + t.search;
|
|
1620
|
-
return
|
|
1630
|
+
return P(() => {
|
|
1621
1631
|
window.location.assign(`${e}?return_to=${encodeURIComponent(n)}`);
|
|
1622
|
-
}, [e, n]), /* @__PURE__ */
|
|
1632
|
+
}, [e, n]), /* @__PURE__ */ z($, { children: "Signing in…" });
|
|
1623
1633
|
}
|
|
1624
|
-
var
|
|
1625
|
-
function
|
|
1626
|
-
let l =
|
|
1634
|
+
var Un = (e) => e.replace(/^\/+|\/+$/g, "");
|
|
1635
|
+
function Wn({ authBaseUrl: e, billingBaseUrl: t, merchant: n, basePath: r = "/admin", navigation: i, appearance: a, language: o, users: s = {}, theme: c }) {
|
|
1636
|
+
let l = Ke(), u = Ge(), d = Ze({
|
|
1627
1637
|
auth: l,
|
|
1628
1638
|
baseUrl: e,
|
|
1629
1639
|
tenantId: s.tenantId
|
|
1630
|
-
}), f =
|
|
1640
|
+
}), f = Ye({
|
|
1631
1641
|
auth: l,
|
|
1632
1642
|
baseUrl: e,
|
|
1633
1643
|
group: "root"
|
|
1634
|
-
}), p =
|
|
1644
|
+
}), p = Nn({
|
|
1635
1645
|
baseUrl: t,
|
|
1636
1646
|
auth: l,
|
|
1637
1647
|
merchant: n
|
|
1638
|
-
}), m = `/${
|
|
1639
|
-
if (
|
|
1648
|
+
}), m = `/${Un(r)}`, h = i.pathname.startsWith(`${m}/`) ? Un(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;
|
|
1649
|
+
if (P(() => {
|
|
1640
1650
|
S && i.navigate(`${m}/billing`, { replace: !0 });
|
|
1641
1651
|
}, [
|
|
1642
1652
|
S,
|
|
1643
1653
|
i,
|
|
1644
1654
|
m
|
|
1645
|
-
]), x) return /* @__PURE__ */
|
|
1655
|
+
]), x) return /* @__PURE__ */ z($, { children: "Loading…" });
|
|
1646
1656
|
if (!_ && !b) {
|
|
1647
1657
|
let e = d.error ?? f.error ?? p.error;
|
|
1648
|
-
return /* @__PURE__ */
|
|
1658
|
+
return /* @__PURE__ */ B($, { children: [e ? "Your access could not be checked." : "You have no administrative access.", e && /* @__PURE__ */ B(R, { children: [" ", /* @__PURE__ */ z("button", {
|
|
1649
1659
|
type: "button",
|
|
1650
1660
|
className: "underline underline-offset-4",
|
|
1651
1661
|
onClick: () => {
|
|
@@ -1667,12 +1677,12 @@ function Hn({ authBaseUrl: e, billingBaseUrl: t, merchant: n, basePath: r = "/ad
|
|
|
1667
1677
|
label: "Billing",
|
|
1668
1678
|
current: g
|
|
1669
1679
|
}].filter((e) => !!e);
|
|
1670
|
-
return /* @__PURE__ */
|
|
1680
|
+
return /* @__PURE__ */ B(R, { children: [w.length > 1 && /* @__PURE__ */ z("nav", {
|
|
1671
1681
|
"aria-label": "Administration",
|
|
1672
1682
|
className: "orba mb-6 flex gap-1 border-b px-4",
|
|
1673
1683
|
"data-orba-theme": c,
|
|
1674
|
-
style:
|
|
1675
|
-
children: w.map((e) => /* @__PURE__ */
|
|
1684
|
+
style: q(a, "orba"),
|
|
1685
|
+
children: w.map((e) => /* @__PURE__ */ z("a", {
|
|
1676
1686
|
href: e.href,
|
|
1677
1687
|
"aria-current": e.current ? "page" : void 0,
|
|
1678
1688
|
onClick: (t) => {
|
|
@@ -1681,15 +1691,15 @@ function Hn({ authBaseUrl: e, billingBaseUrl: t, merchant: n, basePath: r = "/ad
|
|
|
1681
1691
|
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(" "),
|
|
1682
1692
|
children: e.label
|
|
1683
1693
|
}, e.href))
|
|
1684
|
-
}), g || !_ ? b && /* @__PURE__ */
|
|
1694
|
+
}), g || !_ ? b && /* @__PURE__ */ z(Dn, {
|
|
1685
1695
|
...C,
|
|
1686
1696
|
basePath: `${m}/billing`,
|
|
1687
1697
|
navigation: i,
|
|
1688
1698
|
userHref: d.users.read ? (e) => `${m}/users/${encodeURIComponent(e)}` : void 0,
|
|
1689
1699
|
appearance: a
|
|
1690
|
-
}) : /* @__PURE__ */
|
|
1700
|
+
}) : /* @__PURE__ */ z("div", {
|
|
1691
1701
|
style: { padding: "0 1.5rem 1.5rem" },
|
|
1692
|
-
children: /* @__PURE__ */
|
|
1702
|
+
children: /* @__PURE__ */ z(Je, {
|
|
1693
1703
|
auth: l,
|
|
1694
1704
|
baseUrl: e,
|
|
1695
1705
|
basePath: m,
|
|
@@ -1699,7 +1709,7 @@ function Hn({ authBaseUrl: e, billingBaseUrl: t, merchant: n, basePath: r = "/ad
|
|
|
1699
1709
|
language: o,
|
|
1700
1710
|
users: y ? {
|
|
1701
1711
|
...s,
|
|
1702
|
-
userPanels: (e) => /* @__PURE__ */
|
|
1712
|
+
userPanels: (e) => /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ ue(Fn, {
|
|
1703
1713
|
...C,
|
|
1704
1714
|
key: e.id,
|
|
1705
1715
|
customer: e.id,
|
|
@@ -1707,7 +1717,7 @@ function Hn({ authBaseUrl: e, billingBaseUrl: t, merchant: n, basePath: r = "/ad
|
|
|
1707
1717
|
href: `${m}/billing/customers/${encodeURIComponent(e.id)}`
|
|
1708
1718
|
}), s.userPanels?.(e)] }),
|
|
1709
1719
|
confirmWarnings: async (e, t) => {
|
|
1710
|
-
let [n, r] = await Promise.all([
|
|
1720
|
+
let [n, r] = await Promise.all([Rn({
|
|
1711
1721
|
...C,
|
|
1712
1722
|
customer: e.id
|
|
1713
1723
|
}), s.confirmWarnings?.(e, t)]);
|
|
@@ -1718,14 +1728,14 @@ function Hn({ authBaseUrl: e, billingBaseUrl: t, merchant: n, basePath: r = "/ad
|
|
|
1718
1728
|
})] });
|
|
1719
1729
|
}
|
|
1720
1730
|
function $({ children: e }) {
|
|
1721
|
-
return /* @__PURE__ */
|
|
1731
|
+
return /* @__PURE__ */ z("p", {
|
|
1722
1732
|
role: "status",
|
|
1723
1733
|
style: { padding: "1.5rem" },
|
|
1724
1734
|
children: e
|
|
1725
1735
|
});
|
|
1726
1736
|
}
|
|
1727
1737
|
// src/admin/messages.ts
|
|
1728
|
-
var
|
|
1738
|
+
var Gn = {
|
|
1729
1739
|
"Sold by OpenRails": "Sold by OpenRails",
|
|
1730
1740
|
"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.",
|
|
1731
1741
|
"Sold via: ": "Sold via: ",
|
|
@@ -1739,7 +1749,6 @@ var Un = {
|
|
|
1739
1749
|
" Product": " Product",
|
|
1740
1750
|
" Product access": " Product access",
|
|
1741
1751
|
" Refund": " Refund",
|
|
1742
|
-
" affected · requires human confirm": " affected · requires human confirm",
|
|
1743
1752
|
" approved": " approved",
|
|
1744
1753
|
" balance": " balance",
|
|
1745
1754
|
" blocked and ": " blocked and ",
|
|
@@ -1784,10 +1793,13 @@ var Un = {
|
|
|
1784
1793
|
", an edit set": ", an edit set",
|
|
1785
1794
|
", before another action.": ", before another action.",
|
|
1786
1795
|
", deleted: ": ", deleted: ",
|
|
1796
|
+
"; minimums not met": "; minimums not met",
|
|
1797
|
+
"Levels in force at the range's end: ": "Levels in force at the range's end: ",
|
|
1798
|
+
"Past ": "Past ",
|
|
1787
1799
|
".": ".",
|
|
1788
1800
|
". Active holds may prevent revocation. Payment refunds are managed separately.": ". Active holds may prevent revocation. Payment refunds are managed separately.",
|
|
1789
1801
|
". Currency and interval stay locked to the current price.": ". Currency and interval stay locked to the current price.",
|
|
1790
|
-
"/app/
|
|
1802
|
+
"/app/leases/sync": "/app/leases/sync",
|
|
1791
1803
|
"1 day": "1 day",
|
|
1792
1804
|
"30 days": "30 days",
|
|
1793
1805
|
"365 days": "365 days",
|
|
@@ -1802,6 +1814,7 @@ var Un = {
|
|
|
1802
1814
|
"A price going down needs no notice, so today is fine.": "A price going down needs no notice, so today is fine.",
|
|
1803
1815
|
"A product is the thing a customer gets. You set what it costs afterwards, by adding a price to it.": "A product is the thing a customer gets. You set what it costs afterwards, by adding a price to it.",
|
|
1804
1816
|
"A reprice_scheduled notice is queued for every affected subscriber as soon as you confirm.": "A reprice_scheduled notice is queued for every affected subscriber as soon as you confirm.",
|
|
1817
|
+
"Above ": "Above ",
|
|
1805
1818
|
"Access duration": "Access duration",
|
|
1806
1819
|
"Access, not paying": "Access, not paying",
|
|
1807
1820
|
"Account ID": "Account ID",
|
|
@@ -1849,7 +1862,6 @@ var Un = {
|
|
|
1849
1862
|
Approve: "Approve",
|
|
1850
1863
|
"Approve ": "Approve ",
|
|
1851
1864
|
Archive: "Archive",
|
|
1852
|
-
Ask: "Ask",
|
|
1853
1865
|
"Ask an administrator for a role that includes it.": "Ask an administrator for a role that includes it.",
|
|
1854
1866
|
"Attempt not found.": "Attempt not found.",
|
|
1855
1867
|
Attempted: "Attempted",
|
|
@@ -1860,6 +1872,7 @@ var Un = {
|
|
|
1860
1872
|
Balance: "Balance",
|
|
1861
1873
|
"Batch receipt": "Batch receipt",
|
|
1862
1874
|
Billing: "Billing",
|
|
1875
|
+
"Below ": "Below ",
|
|
1863
1876
|
"Billing contacts": "Billing contacts",
|
|
1864
1877
|
"Billing interval": "Billing interval",
|
|
1865
1878
|
"Billing support": "Billing support",
|
|
@@ -1881,7 +1894,10 @@ var Un = {
|
|
|
1881
1894
|
"Choose a price": "Choose a price",
|
|
1882
1895
|
"Choose a product": "Choose a product",
|
|
1883
1896
|
Clear: "Clear",
|
|
1897
|
+
Cohort: "Cohort",
|
|
1884
1898
|
"Customer id": "Customer id",
|
|
1899
|
+
"Customers who gained recurring revenue (new or back) and who lost all of it each day in the accounting timezone, newest first.": "Customers who gained recurring revenue (new or back) and who lost all of it each day in the accounting timezone, newest first.",
|
|
1900
|
+
"Daily subscribers": "Daily subscribers",
|
|
1885
1901
|
"Differences a PSP pull found in what OpenRails holds. Nothing changes until a person approves it.": "Differences a PSP pull found in what OpenRails holds. Nothing changes until a person approves it.",
|
|
1886
1902
|
Dismiss: "Dismiss",
|
|
1887
1903
|
"Dismiss ": "Dismiss ",
|
|
@@ -1893,11 +1909,15 @@ var Un = {
|
|
|
1893
1909
|
Evidence: "Evidence",
|
|
1894
1910
|
Facts: "Facts",
|
|
1895
1911
|
Failed: "Failed",
|
|
1912
|
+
"Failed new-card purchases": "Failed new-card purchases",
|
|
1896
1913
|
"Find a customer with billing": "Find a customer with billing",
|
|
1897
1914
|
Findings: "Findings",
|
|
1915
|
+
"First-try rebill approval by week": "First-try rebill approval by week",
|
|
1898
1916
|
"From import ": "From import ",
|
|
1899
1917
|
"Full history": "Full history",
|
|
1918
|
+
Gained: "Gained",
|
|
1900
1919
|
"Grants: ": "Grants: ",
|
|
1920
|
+
"group by cohort and months since start": "group by cohort and months since start",
|
|
1901
1921
|
"History since": "History since",
|
|
1902
1922
|
"History start date": "History start date",
|
|
1903
1923
|
"History through ": "History through ",
|
|
@@ -1924,7 +1944,10 @@ var Un = {
|
|
|
1924
1944
|
"Mapping a price edits the catalog: it needs ": "Mapping a price edits the catalog: it needs ",
|
|
1925
1945
|
"Mappings file": "Mappings file",
|
|
1926
1946
|
"Mappings set: ": "Mappings set: ",
|
|
1947
|
+
"Month 0": "Month 0",
|
|
1927
1948
|
"Needs ": "Needs ",
|
|
1949
|
+
"New-card authorization rate": "New-card authorization rate",
|
|
1950
|
+
"New-card authorization rate by week": "New-card authorization rate by week",
|
|
1928
1951
|
"No PSP has been pulled yet.": "No PSP has been pulled yet.",
|
|
1929
1952
|
"No PSP here has a catalog OpenRails observes.": "No PSP here has a catalog OpenRails observes.",
|
|
1930
1953
|
"No proposals are open.": "No proposals are open.",
|
|
@@ -1958,6 +1981,7 @@ var Un = {
|
|
|
1958
1981
|
"Re-link": "Re-link",
|
|
1959
1982
|
"Re-link an import to apply them:": "Re-link an import to apply them:",
|
|
1960
1983
|
"Re-link requested": "Re-link requested",
|
|
1984
|
+
"Reached ": "Reached ",
|
|
1961
1985
|
"Reading catalog and roster": "Reading catalog and roster",
|
|
1962
1986
|
"Reads the PSP's catalog, customers, subscriptions and history, read-only. Nothing lands before you apply it.": "Reads the PSP's catalog, customers, subscriptions and history, read-only. Nothing lands before you apply it.",
|
|
1963
1987
|
"Pull PSP": "Pull PSP",
|
|
@@ -1967,17 +1991,17 @@ var Un = {
|
|
|
1967
1991
|
Records: "Records",
|
|
1968
1992
|
Reload: "Reload",
|
|
1969
1993
|
Retired: "Retired",
|
|
1994
|
+
"Renewal payments, cancellations and subscriber churn each calendar month in the accounting timezone; churn is the customers who lost all recurring revenue in the month over those who had some when it began.": "Renewal payments, cancellations and subscriber churn each calendar month in the accounting timezone; churn is the customers who lost all recurring revenue in the month over those who had some when it began.",
|
|
1970
1995
|
"Review records": "Review records",
|
|
1971
1996
|
"Schedule the customer's plan or seats for the next renewal. No card is charged now. Choosing the current plan and seats clears a pending change. The customer is told.": "Schedule the customer's plan or seats for the next renewal. No card is charged now. Choosing the current plan and seats clears a pending change. The customer is told.",
|
|
1972
1997
|
"Change payment method": "Change payment method",
|
|
1973
1998
|
"Change price": "Change price",
|
|
1974
1999
|
"Change price for ": "Change price for ",
|
|
1975
2000
|
"Change subscription": "Change subscription",
|
|
1976
|
-
"
|
|
2001
|
+
"Pick what it measures, how it is split and how it is drawn.": "Pick what it measures, how it is split and how it is drawn.",
|
|
1977
2002
|
Channel: "Channel",
|
|
1978
2003
|
"Charged twice": "Charged twice",
|
|
1979
2004
|
"Chart type": "Chart type",
|
|
1980
|
-
"Checking your catalog…": "Checking your catalog…",
|
|
1981
2005
|
"Choose a method": "Choose a method",
|
|
1982
2006
|
Churn: "Churn",
|
|
1983
2007
|
"Clear all": "Clear all",
|
|
@@ -2021,11 +2045,11 @@ var Un = {
|
|
|
2021
2045
|
"Customer-facing merchant details used on invoices and emails.": "Customer-facing merchant details used on invoices and emails.",
|
|
2022
2046
|
Customers: "Customers",
|
|
2023
2047
|
Cycles: "Cycles",
|
|
2024
|
-
"Daily subscriptions": "Daily subscriptions",
|
|
2025
2048
|
Dashboard: "Dashboard",
|
|
2026
2049
|
Date: "Date",
|
|
2027
2050
|
"Date range": "Date range",
|
|
2028
2051
|
"Days are added after any access they already have.": "Days are added after any access they already have.",
|
|
2052
|
+
"Days are UTC dates.": "Days are UTC dates.",
|
|
2029
2053
|
"Decline reasons": "Decline reasons",
|
|
2030
2054
|
Declined: "Declined",
|
|
2031
2055
|
Declines: "Declines",
|
|
@@ -2041,14 +2065,11 @@ var Un = {
|
|
|
2041
2065
|
Dimensions: "Dimensions",
|
|
2042
2066
|
Directory: "Directory",
|
|
2043
2067
|
Discord: "Discord",
|
|
2044
|
-
"Dismiss answer": "Dismiss answer",
|
|
2045
2068
|
"Display name": "Display name",
|
|
2046
2069
|
"Displays the mobile sidebar.": "Displays the mobile sidebar.",
|
|
2047
2070
|
Divisor: "Divisor",
|
|
2048
2071
|
Down: "Down",
|
|
2049
2072
|
"Download CSV": "Download CSV",
|
|
2050
|
-
"Draft: new price": "Draft: new price",
|
|
2051
|
-
"Draft: price change": "Draft: price change",
|
|
2052
2073
|
Due: "Due",
|
|
2053
2074
|
"Due now": "Due now",
|
|
2054
2075
|
"Due: ": "Due: ",
|
|
@@ -2183,9 +2204,6 @@ var Un = {
|
|
|
2183
2204
|
"New merchant": "New merchant",
|
|
2184
2205
|
"New plan": "New plan",
|
|
2185
2206
|
"New price": "New price",
|
|
2186
|
-
"New-card purchase failure rate": "New-card purchase failure rate",
|
|
2187
|
-
"New-card decline rate": "New-card decline rate",
|
|
2188
|
-
"New-card decline rate by week": "New-card decline rate by week",
|
|
2189
2207
|
Next: "Next",
|
|
2190
2208
|
"Next attempt: ": "Next attempt: ",
|
|
2191
2209
|
"Next billing date": "Next billing date",
|
|
@@ -2351,8 +2369,6 @@ var Un = {
|
|
|
2351
2369
|
Reason: "Reason",
|
|
2352
2370
|
"Reason (optional)": "Reason (optional)",
|
|
2353
2371
|
"Rebill collection rate": "Rebill collection rate",
|
|
2354
|
-
"Rebill first-attempt failure rate": "Rebill first-attempt failure rate",
|
|
2355
|
-
"Rebill first-attempt failure rate by week": "Rebill first-attempt failure rate by week",
|
|
2356
2372
|
"Recent payments": "Recent payments",
|
|
2357
2373
|
"Recently canceled": "Recently canceled",
|
|
2358
2374
|
Recommendation: "Recommendation",
|
|
@@ -2375,7 +2391,6 @@ var Un = {
|
|
|
2375
2391
|
"Remove the default rate?": "Remove the default rate?",
|
|
2376
2392
|
Renewal: "Renewal",
|
|
2377
2393
|
"Renewal not found.": "Renewal not found.",
|
|
2378
|
-
"Renewal payments, cancellations and churn each calendar month (UTC); churn is the month's cancellations over the subscriptions it began with.": "Renewal payments, cancellations and churn each calendar month (UTC); churn is the month's cancellations over the subscriptions it began with.",
|
|
2379
2394
|
Renewals: "Renewals",
|
|
2380
2395
|
"Renewing soon": "Renewing soon",
|
|
2381
2396
|
Renews: "Renews",
|
|
@@ -2390,6 +2405,7 @@ var Un = {
|
|
|
2390
2405
|
Review: "Review",
|
|
2391
2406
|
"Review batch": "Review batch",
|
|
2392
2407
|
"Review complete. Applying sends this exact document; this is not a database diff.": "Review complete. Applying sends this exact document; this is not a database diff.",
|
|
2408
|
+
Revision: "Revision",
|
|
2393
2409
|
Revoke: "Revoke",
|
|
2394
2410
|
"Revoke product access": "Revoke product access",
|
|
2395
2411
|
"Revoke remaining credit": "Revoke remaining credit",
|
|
@@ -2434,7 +2450,6 @@ var Un = {
|
|
|
2434
2450
|
"Subscription not found.": "Subscription not found.",
|
|
2435
2451
|
"Subscription:": "Subscription:",
|
|
2436
2452
|
Subscriptions: "Subscriptions",
|
|
2437
|
-
"Subscriptions started and canceled each day (UTC), newest first.": "Subscriptions started and canceled each day (UTC), newest first.",
|
|
2438
2453
|
"Sum a numeric field": "Sum a numeric field",
|
|
2439
2454
|
"Subscribe URL": "Subscribe URL",
|
|
2440
2455
|
"Support URL": "Support URL",
|
|
@@ -2527,7 +2542,6 @@ var Un = {
|
|
|
2527
2542
|
default: "default",
|
|
2528
2543
|
deleted: "deleted",
|
|
2529
2544
|
disabled: "disabled",
|
|
2530
|
-
"drafted by copilot": "drafted by copilot",
|
|
2531
2545
|
"draining (": "draining (",
|
|
2532
2546
|
"e.g. #billing-alerts": "e.g. #billing-alerts",
|
|
2533
2547
|
"ends access": "ends access",
|
|
@@ -2543,7 +2557,6 @@ var Un = {
|
|
|
2543
2557
|
imported: "imported",
|
|
2544
2558
|
inactive: "inactive",
|
|
2545
2559
|
"its finding is ignored; subscriptions on it stay parked.": "its finding is ignored; subscriptions on it stay parked.",
|
|
2546
|
-
"key: ": "key: ",
|
|
2547
2560
|
linked: "linked",
|
|
2548
2561
|
"metadata.model": "metadata.model",
|
|
2549
2562
|
"missed charges": "missed charges",
|
|
@@ -2565,7 +2578,6 @@ var Un = {
|
|
|
2565
2578
|
"provider write": "provider write",
|
|
2566
2579
|
"read-only": "read-only",
|
|
2567
2580
|
"refunds after a cancel": "refunds after a cancel",
|
|
2568
|
-
"refused: ": "refused: ",
|
|
2569
2581
|
"renewals to adopt": "renewals to adopt",
|
|
2570
2582
|
retired: "retired",
|
|
2571
2583
|
"review only": "review only",
|
|
@@ -2618,9 +2630,11 @@ var Un = {
|
|
|
2618
2630
|
"End access now instead (no refund is made)": "End access now instead (no refund is made)",
|
|
2619
2631
|
"By the customer": "By the customer",
|
|
2620
2632
|
"By staff": "By staff",
|
|
2621
|
-
"
|
|
2633
|
+
"Not renewed": "Not renewed",
|
|
2622
2634
|
"After a chargeback": "After a chargeback",
|
|
2623
2635
|
"Replaced by an upgrade": "Replaced by an upgrade",
|
|
2636
|
+
"Ended by the provider": "Ended by the provider",
|
|
2637
|
+
"First payment never completed": "First payment never completed",
|
|
2624
2638
|
"This page couldn't be loaded": "This page couldn't be loaded",
|
|
2625
2639
|
"It may have been removed, or the link may be wrong.": "It may have been removed, or the link may be wrong.",
|
|
2626
2640
|
"Code:": "Code:",
|
|
@@ -2674,8 +2688,45 @@ var Un = {
|
|
|
2674
2688
|
Converged: "Converged",
|
|
2675
2689
|
Gone: "Gone",
|
|
2676
2690
|
Ignored: "Ignored",
|
|
2677
|
-
Imported: "Imported"
|
|
2691
|
+
Imported: "Imported",
|
|
2692
|
+
"Add widget": "Add widget",
|
|
2693
|
+
"Compare with": "Compare with",
|
|
2694
|
+
"Nothing to show yet. Add products in ": "Nothing to show yet. Add products in ",
|
|
2695
|
+
" and connect a PSP in ": " and connect a PSP in ",
|
|
2696
|
+
" to start taking payments.": " to start taking payments.",
|
|
2697
|
+
Nothing: "Nothing",
|
|
2698
|
+
Measure: "Measure",
|
|
2699
|
+
And: "And",
|
|
2700
|
+
"Add a measure": "Add a measure",
|
|
2701
|
+
"Over time": "Over time",
|
|
2702
|
+
Grain: "Grain",
|
|
2703
|
+
Auto: "Auto",
|
|
2704
|
+
"Split by": "Split by",
|
|
2705
|
+
"Then by": "Then by",
|
|
2706
|
+
"Only where": "Only where",
|
|
2707
|
+
"(none)": "(none)",
|
|
2708
|
+
"Values, comma separated": "Values, comma separated",
|
|
2709
|
+
Explore: "Explore",
|
|
2710
|
+
"Chart any measure, split by its dimensions, over the range picked.": "Chart any measure, split by its dimensions, over the range picked.",
|
|
2711
|
+
Signals: "Signals",
|
|
2712
|
+
Checkout: "Checkout",
|
|
2713
|
+
"Customer type: ": "Customer type: ",
|
|
2714
|
+
"Purchase number: ": "Purchase number: ",
|
|
2715
|
+
"Opened: ": "Opened: ",
|
|
2716
|
+
"Submitted: ": "Submitted: ",
|
|
2717
|
+
"Country: ": "Country: ",
|
|
2718
|
+
"Language: ": "Language: ",
|
|
2719
|
+
"Attribution: ": "Attribution: ",
|
|
2720
|
+
"no card PSP": "no card PSP",
|
|
2721
|
+
Program: "Program",
|
|
2722
|
+
"So far": "So far",
|
|
2723
|
+
Projected: "Projected",
|
|
2724
|
+
Level: "Level",
|
|
2725
|
+
Below: "Below",
|
|
2726
|
+
Warning: "Warning",
|
|
2727
|
+
Excessive: "Excessive",
|
|
2728
|
+
"High excessive": "High excessive"
|
|
2678
2729
|
};
|
|
2679
|
-
export {
|
|
2730
|
+
export { Vn as AdminConsole, Dn as BillingAdmin, Fn as BillingCustomerSummary, Gn as billingAdminMessages, In as billingConfirmWarnings, Bn as billingPermissionHelp, Rn as loadBillingConfirmWarnings, Nn as useBillingAdminAccess };
|
|
2680
2731
|
|
|
2681
2732
|
//# sourceMappingURL=admin.js.map
|