@realtek/core-theme 0.0.372 → 0.0.373
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/FacebookCourseMappingsSection-7b-UVe60.cjs +3 -0
- package/dist-lib/FacebookCourseMappingsSection-7b-UVe60.cjs.map +1 -0
- package/dist-lib/{FacebookCourseMappingsSection-Bz02KuSg.js → FacebookCourseMappingsSection-rwzWu8Z5.js} +812 -618
- package/dist-lib/FacebookCourseMappingsSection-rwzWu8Z5.js.map +1 -0
- package/dist-lib/index.cjs +3 -3
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +656 -531
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
- package/dist-lib/FacebookCourseMappingsSection-Bz02KuSg.js.map +0 -1
- package/dist-lib/FacebookCourseMappingsSection-tY0WM5Yl.cjs +0 -3
- package/dist-lib/FacebookCourseMappingsSection-tY0WM5Yl.cjs.map +0 -1
package/dist-lib/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { a as to, c as no, d as ro, f as io, i as ao, l as oo, m as so, o as co,
|
|
|
7
7
|
import { r as ho } from "./diceCandidateMapper-DqBO4EhL.js";
|
|
8
8
|
import { r as go } from "./formGroupsCache-JeC59oNe.js";
|
|
9
9
|
import { r as _o } from "./addFormApi-TMxokB57.js";
|
|
10
|
-
import { a as vo, c as yo, i as bo, l as xo, o as So, r as Co, s as wo, t as To } from "./FacebookCourseMappingsSection-
|
|
10
|
+
import { a as vo, c as yo, i as bo, l as xo, o as So, r as Co, s as wo, t as To } from "./FacebookCourseMappingsSection-rwzWu8Z5.js";
|
|
11
11
|
import { n as Eo, r as Do, t as Oo } from "./verifyLockState-DOdNAY3j.js";
|
|
12
12
|
import ko, { Fragment as Ao, Suspense as jo, cloneElement as Mo, createContext as No, createElement as Po, isValidElement as Fo, lazy as Io, useCallback as Lo, useContext as Ro, useEffect as I, useId as zo, useLayoutEffect as Bo, useMemo as L, useRef as Vo, useState as R, useSyncExternalStore as Ho } from "react";
|
|
13
13
|
import { Alert as Uo, AutoComplete as Wo, Avatar as Go, Badge as Ko, Breadcrumb as qo, Button as z, Card as Jo, Checkbox as Yo, Col as B, Collapse as Xo, DatePicker as Zo, Descriptions as Qo, Divider as $o, Drawer as es, Dropdown as ts, Empty as ns, Flex as rs, Form as V, Grid as is, Input as H, InputNumber as as, Layout as os, List as ss, Mentions as cs, Menu as ls, Modal as us, Popconfirm as ds, Popover as fs, Progress as ps, Radio as ms, Result as hs, Row as gs, Segmented as _s, Select as U, Skeleton as vs, Slider as ys, Space as W, Spin as bs, Statistic as xs, Steps as Ss, Switch as G, Table as Cs, Tabs as ws, Tag as K, TimePicker as Ts, Timeline as Es, Tooltip as q, Tree as Ds, Typography as Os, Upload as ks, message as J } from "antd";
|
|
@@ -56835,7 +56835,7 @@ function rH({ sections: e, onOpen: t }) {
|
|
|
56835
56835
|
}
|
|
56836
56836
|
//#endregion
|
|
56837
56837
|
//#region src/pages/Modules/Admin/settings/SettingsPage.jsx
|
|
56838
|
-
var iH = Io(() => import("./FacebookCourseMappingsSection-
|
|
56838
|
+
var iH = Io(() => import("./FacebookCourseMappingsSection-rwzWu8Z5.js").then((e) => e.n)), aH = Io(() => Promise.resolve().then(() => aP)), { Title: oH } = Os, sH = [
|
|
56839
56839
|
{
|
|
56840
56840
|
key: "mappings",
|
|
56841
56841
|
label: "Mapping & Distributions",
|
|
@@ -66775,7 +66775,12 @@ function xJ(e, t, n) {
|
|
|
66775
66775
|
let r = new Set(nq(e.match ?? e.key).map(bJ)), i = {};
|
|
66776
66776
|
return t.forEach((t, a) => {
|
|
66777
66777
|
if (typeof t.value == "function") {
|
|
66778
|
-
|
|
66778
|
+
let n = t.value(e);
|
|
66779
|
+
i[t.key] = t.format ? n : Number(n) || 0;
|
|
66780
|
+
return;
|
|
66781
|
+
}
|
|
66782
|
+
if (t.format && e.values && t.key in e.values) {
|
|
66783
|
+
i[t.key] = e.values[t.key];
|
|
66779
66784
|
return;
|
|
66780
66785
|
}
|
|
66781
66786
|
i[t.key] = nq(n[a]).reduce((e, t) => r.has(bJ(t.key)) ? e + (Number(t.count) || 0) : e, 0);
|
|
@@ -66785,10 +66790,44 @@ function xJ(e, t, n) {
|
|
|
66785
66790
|
};
|
|
66786
66791
|
});
|
|
66787
66792
|
}
|
|
66793
|
+
function SJ(e, t) {
|
|
66794
|
+
return t == null || t === "" ? cJ(t) : typeof e?.format == "function" ? String(e.format(t) ?? "").trim() || cJ(null) : e?.format === "percent" ? Number.isFinite(Number(t)) ? `${Math.round(Number(t))}%` : cJ(null) : e?.format === "text" ? String(t) : typeof t == "string" ? t : cJ(t);
|
|
66795
|
+
}
|
|
66796
|
+
//#endregion
|
|
66797
|
+
//#region src/components/COMBAINED_COMPONENTS/helpers/dashboard/useLoad.js
|
|
66798
|
+
function CJ(e, t) {
|
|
66799
|
+
let [n, r] = R({
|
|
66800
|
+
signature: "",
|
|
66801
|
+
value: null,
|
|
66802
|
+
error: ""
|
|
66803
|
+
}), [i, a] = R(0);
|
|
66804
|
+
return I(() => {
|
|
66805
|
+
let n = !0;
|
|
66806
|
+
return Promise.resolve().then(t).then((t) => {
|
|
66807
|
+
n && r({
|
|
66808
|
+
signature: e,
|
|
66809
|
+
value: t,
|
|
66810
|
+
error: ""
|
|
66811
|
+
});
|
|
66812
|
+
}, (t) => {
|
|
66813
|
+
n && r({
|
|
66814
|
+
signature: e,
|
|
66815
|
+
value: null,
|
|
66816
|
+
error: t?.status === 403 ? "forbidden" : "error"
|
|
66817
|
+
});
|
|
66818
|
+
}), () => {
|
|
66819
|
+
n = !1;
|
|
66820
|
+
};
|
|
66821
|
+
}, [e, i]), {
|
|
66822
|
+
...n,
|
|
66823
|
+
loading: n.signature !== e,
|
|
66824
|
+
retry: () => a((e) => e + 1)
|
|
66825
|
+
};
|
|
66826
|
+
}
|
|
66788
66827
|
//#endregion
|
|
66789
66828
|
//#region src/components/COMBAINED_COMPONENTS/helpers/dashboard/DashboardPanels.jsx
|
|
66790
|
-
var
|
|
66791
|
-
function
|
|
66829
|
+
var wJ = (e, t) => (typeof e == "function" ? e(t) : e) ?? {}, TJ = (e, t, n = {}) => oq(aq(e, n, t));
|
|
66830
|
+
function EJ({ spec: e, ctx: t, fallback: n }) {
|
|
66792
66831
|
if (!e || typeof e != "object") return /* @__PURE__ */ X(ns, {
|
|
66793
66832
|
image: ns.PRESENTED_IMAGE_SIMPLE,
|
|
66794
66833
|
description: n
|
|
@@ -66826,12 +66865,12 @@ function wJ({ spec: e, ctx: t, fallback: n }) {
|
|
|
66826
66865
|
}),
|
|
66827
66866
|
/* @__PURE__ */ X("strong", {
|
|
66828
66867
|
className: "cc-dash-empty__title",
|
|
66829
|
-
children:
|
|
66868
|
+
children: TJ(e.title, t) || n
|
|
66830
66869
|
}),
|
|
66831
66870
|
$(e.text) || typeof e.text == "function" ? /* @__PURE__ */ X("span", {
|
|
66832
66871
|
className: "cc-dash-empty__text",
|
|
66833
66872
|
style: { maxWidth: 380 },
|
|
66834
|
-
children:
|
|
66873
|
+
children: TJ(e.text, t)
|
|
66835
66874
|
}) : null,
|
|
66836
66875
|
i ? /* @__PURE__ */ Z(z, {
|
|
66837
66876
|
className: "cc-dash-empty__btn",
|
|
@@ -66847,7 +66886,7 @@ function wJ({ spec: e, ctx: t, fallback: n }) {
|
|
|
66847
66886
|
]
|
|
66848
66887
|
});
|
|
66849
66888
|
}
|
|
66850
|
-
function
|
|
66889
|
+
function DJ({ onRetry: e, what: t = "data" }) {
|
|
66851
66890
|
return /* @__PURE__ */ X(Uo, {
|
|
66852
66891
|
type: "warning",
|
|
66853
66892
|
showIcon: !0,
|
|
@@ -66859,45 +66898,16 @@ function TJ({ onRetry: e, what: t = "data" }) {
|
|
|
66859
66898
|
})
|
|
66860
66899
|
});
|
|
66861
66900
|
}
|
|
66862
|
-
|
|
66863
|
-
|
|
66864
|
-
signature: "",
|
|
66865
|
-
value: null,
|
|
66866
|
-
error: ""
|
|
66867
|
-
}), [i, a] = R(0);
|
|
66868
|
-
return I(() => {
|
|
66869
|
-
let n = !0;
|
|
66870
|
-
return Promise.resolve().then(t).then((t) => {
|
|
66871
|
-
n && r({
|
|
66872
|
-
signature: e,
|
|
66873
|
-
value: t,
|
|
66874
|
-
error: ""
|
|
66875
|
-
});
|
|
66876
|
-
}, (t) => {
|
|
66877
|
-
n && r({
|
|
66878
|
-
signature: e,
|
|
66879
|
-
value: null,
|
|
66880
|
-
error: t?.status === 403 ? "forbidden" : "error"
|
|
66881
|
-
});
|
|
66882
|
-
}), () => {
|
|
66883
|
-
n = !1;
|
|
66884
|
-
};
|
|
66885
|
-
}, [e, i]), {
|
|
66886
|
-
...n,
|
|
66887
|
-
loading: n.signature !== e,
|
|
66888
|
-
retry: () => a((e) => e + 1)
|
|
66889
|
-
};
|
|
66890
|
-
}
|
|
66891
|
-
var DJ = (e) => nq((e?.data?.groups ?? e?.groups)?.items), OJ = (e) => e == null ? "" : String(e);
|
|
66892
|
-
function kJ({ panel: e, ctx: t, refreshKey: n, choice: r }) {
|
|
66901
|
+
var OJ = (e) => nq((e?.data?.groups ?? e?.groups)?.items), kJ = (e) => e == null ? "" : String(e);
|
|
66902
|
+
function AJ({ panel: e, ctx: t, refreshKey: n, choice: r }) {
|
|
66893
66903
|
let i = {
|
|
66894
66904
|
...e,
|
|
66895
66905
|
...r ?? {}
|
|
66896
66906
|
}, a = nq(i.columns).filter((e) => e && $(e.key)), o = a.map((e) => typeof e.value == "function" ? null : {
|
|
66897
66907
|
module: e.module || i.module,
|
|
66898
66908
|
groupBy: e.groupBy || i.groupBy,
|
|
66899
|
-
relation:
|
|
66900
|
-
}), { value: s, error: c, loading: l, retry: u } =
|
|
66909
|
+
relation: wJ(e.relation, t)
|
|
66910
|
+
}), { value: s, error: c, loading: l, retry: u } = CJ(JSON.stringify([
|
|
66901
66911
|
e.key,
|
|
66902
66912
|
r?.key,
|
|
66903
66913
|
o,
|
|
@@ -66914,10 +66924,10 @@ function kJ({ panel: e, ctx: t, refreshKey: n, choice: r }) {
|
|
|
66914
66924
|
groupTz: "",
|
|
66915
66925
|
groupSum: ""
|
|
66916
66926
|
}
|
|
66917
|
-
}).then(
|
|
66927
|
+
}).then(OJ) : [])]), r = nq(e);
|
|
66918
66928
|
return r.length || (r = (n.find((e) => e.length) ?? []).map((e) => ({
|
|
66919
|
-
key:
|
|
66920
|
-
label:
|
|
66929
|
+
key: kJ(e.key),
|
|
66930
|
+
label: kJ(e.key) || "Not set"
|
|
66921
66931
|
}))), xJ(r, a, n);
|
|
66922
66932
|
});
|
|
66923
66933
|
if (l) return /* @__PURE__ */ X(vs, {
|
|
@@ -66929,15 +66939,15 @@ function kJ({ panel: e, ctx: t, refreshKey: n, choice: r }) {
|
|
|
66929
66939
|
type: "secondary",
|
|
66930
66940
|
children: "You don't have access to this data."
|
|
66931
66941
|
});
|
|
66932
|
-
if (c) return /* @__PURE__ */ X(
|
|
66942
|
+
if (c) return /* @__PURE__ */ X(DJ, {
|
|
66933
66943
|
onRetry: u,
|
|
66934
66944
|
what: "table"
|
|
66935
66945
|
});
|
|
66936
66946
|
let d = nq(s), f = i.sortBy;
|
|
66937
|
-
if ($(f) && (d = [...d].sort((e, t) => (t.values[f] ?? 0) - (e.values[f] ?? 0))), i.hideZero && (d = d.filter((e) => a.some((t) => e.values[t.key]))), !d.length || d.every((e) => a.every((t) => !e.values[t.key]))) return /* @__PURE__ */ X(
|
|
66947
|
+
if ($(f) && (d = [...d].sort((e, t) => (t.values[f] ?? 0) - (e.values[f] ?? 0))), i.hideZero && (d = d.filter((e) => a.some((t) => e.values[t.key]))), !d.length || d.every((e) => a.every((t) => !e.values[t.key]))) return /* @__PURE__ */ X(EJ, {
|
|
66938
66948
|
spec: e.emptyState,
|
|
66939
66949
|
ctx: t,
|
|
66940
|
-
fallback:
|
|
66950
|
+
fallback: TJ(e.empty, t) || "Nothing here right now."
|
|
66941
66951
|
});
|
|
66942
66952
|
let p = Number(i.limit) || 0, m = p ? d.slice(0, p) : d, h = i.action, g = {};
|
|
66943
66953
|
if (a.forEach((e) => {
|
|
@@ -66984,7 +66994,7 @@ function kJ({ panel: e, ctx: t, refreshKey: n, choice: r }) {
|
|
|
66984
66994
|
}),
|
|
66985
66995
|
/* @__PURE__ */ X("strong", {
|
|
66986
66996
|
className: "cc-dash-rank__value",
|
|
66987
|
-
"aria-label": `${
|
|
66997
|
+
"aria-label": `${TJ(e?.label, t)}: ${cJ(n.values[e?.key])}`,
|
|
66988
66998
|
children: cJ(n.values[e?.key])
|
|
66989
66999
|
})
|
|
66990
67000
|
]
|
|
@@ -67004,15 +67014,15 @@ function kJ({ panel: e, ctx: t, refreshKey: n, choice: r }) {
|
|
|
67004
67014
|
/* @__PURE__ */ X("th", {
|
|
67005
67015
|
scope: "col",
|
|
67006
67016
|
style: { textAlign: "start" },
|
|
67007
|
-
children:
|
|
67017
|
+
children: TJ(i.rowLabel, t) || "Name"
|
|
67008
67018
|
}),
|
|
67009
67019
|
a.map((e) => /* @__PURE__ */ X("th", {
|
|
67010
67020
|
scope: "col",
|
|
67011
|
-
children:
|
|
67021
|
+
children: TJ(e.label, t)
|
|
67012
67022
|
}, e.key)),
|
|
67013
67023
|
h ? /* @__PURE__ */ X("th", {
|
|
67014
67024
|
scope: "col",
|
|
67015
|
-
children:
|
|
67025
|
+
children: TJ(h.title, t) || "Action"
|
|
67016
67026
|
}) : null
|
|
67017
67027
|
] }) }), /* @__PURE__ */ Z("tbody", { children: [m.map((e) => {
|
|
67018
67028
|
let n = h ? typeof h.to == "function" ? h.to(e, t) : h.to : "";
|
|
@@ -67051,14 +67061,14 @@ function kJ({ panel: e, ctx: t, refreshKey: n, choice: r }) {
|
|
|
67051
67061
|
})]
|
|
67052
67062
|
})
|
|
67053
67063
|
}),
|
|
67054
|
-
a.map((t) => /* @__PURE__ */ X("td", { children:
|
|
67064
|
+
a.map((t) => /* @__PURE__ */ X("td", { children: NJ(t, e) }, t.key)),
|
|
67055
67065
|
h ? /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(z, {
|
|
67056
67066
|
size: "small",
|
|
67057
67067
|
className: "cc-dash-table__action",
|
|
67058
67068
|
"data-tone": typeof h.tone == "function" ? h.tone(e) : h.tone,
|
|
67059
67069
|
disabled: !$(n),
|
|
67060
67070
|
onClick: () => t.navigate(n),
|
|
67061
|
-
children: typeof h.label == "function" ? h.label(e) :
|
|
67071
|
+
children: typeof h.label == "function" ? h.label(e) : TJ(h.label, t) || "View"
|
|
67062
67072
|
}) }) : null
|
|
67063
67073
|
] }, e.key);
|
|
67064
67074
|
}), i.overall ? /* @__PURE__ */ Z("tr", {
|
|
@@ -67076,8 +67086,8 @@ function kJ({ panel: e, ctx: t, refreshKey: n, choice: r }) {
|
|
|
67076
67086
|
})
|
|
67077
67087
|
});
|
|
67078
67088
|
}
|
|
67079
|
-
function
|
|
67080
|
-
let { value: r, error: i, loading: a, retry: o } =
|
|
67089
|
+
function jJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
67090
|
+
let { value: r, error: i, loading: a, retry: o } = CJ(JSON.stringify([
|
|
67081
67091
|
e.key,
|
|
67082
67092
|
t.range.key,
|
|
67083
67093
|
n
|
|
@@ -67087,7 +67097,7 @@ function AJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
67087
67097
|
title: !1,
|
|
67088
67098
|
paragraph: { rows: 4 }
|
|
67089
67099
|
});
|
|
67090
|
-
if (i) return /* @__PURE__ */ X(
|
|
67100
|
+
if (i) return /* @__PURE__ */ X(DJ, {
|
|
67091
67101
|
onRetry: o,
|
|
67092
67102
|
what: "activity"
|
|
67093
67103
|
});
|
|
@@ -67129,14 +67139,14 @@ function AJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
67129
67139
|
})
|
|
67130
67140
|
]
|
|
67131
67141
|
}, e.key ?? t))
|
|
67132
|
-
}) : /* @__PURE__ */ X(
|
|
67142
|
+
}) : /* @__PURE__ */ X(EJ, {
|
|
67133
67143
|
spec: e.emptyState,
|
|
67134
67144
|
ctx: t,
|
|
67135
|
-
fallback:
|
|
67145
|
+
fallback: TJ(e.empty, t) || "No recent activity."
|
|
67136
67146
|
});
|
|
67137
67147
|
}
|
|
67138
|
-
function
|
|
67139
|
-
let { value: r, error: i, loading: a, retry: o } =
|
|
67148
|
+
function MJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
67149
|
+
let { value: r, error: i, loading: a, retry: o } = CJ(JSON.stringify([
|
|
67140
67150
|
e.key,
|
|
67141
67151
|
t.range.key,
|
|
67142
67152
|
n
|
|
@@ -67146,15 +67156,15 @@ function jJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
67146
67156
|
title: !1,
|
|
67147
67157
|
paragraph: { rows: 4 }
|
|
67148
67158
|
});
|
|
67149
|
-
if (i) return /* @__PURE__ */ X(
|
|
67159
|
+
if (i) return /* @__PURE__ */ X(DJ, {
|
|
67150
67160
|
onRetry: o,
|
|
67151
67161
|
what: "data"
|
|
67152
67162
|
});
|
|
67153
67163
|
let s = nq(r);
|
|
67154
|
-
return !s.length || s.every((e) => !Number(e.value)) ? /* @__PURE__ */ X(
|
|
67164
|
+
return !s.length || s.every((e) => !Number(e.value)) ? /* @__PURE__ */ X(EJ, {
|
|
67155
67165
|
spec: e.emptyState,
|
|
67156
67166
|
ctx: t,
|
|
67157
|
-
fallback:
|
|
67167
|
+
fallback: TJ(e.empty, t) || "Nothing yet."
|
|
67158
67168
|
}) : /* @__PURE__ */ X("ul", {
|
|
67159
67169
|
className: "cc-dash-metrics",
|
|
67160
67170
|
style: {
|
|
@@ -67209,7 +67219,16 @@ function jJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
67209
67219
|
})
|
|
67210
67220
|
});
|
|
67211
67221
|
}
|
|
67212
|
-
function
|
|
67222
|
+
function NJ(e, t) {
|
|
67223
|
+
let n = t.values?.[e.key], r = e.format ? SJ({ format: e.format }, n) : cJ(n), i = typeof e.tone == "function" ? e.tone(n, t) : e.tone;
|
|
67224
|
+
return i && n != null && n !== "" ? /* @__PURE__ */ X(K, {
|
|
67225
|
+
className: "cc-dash-table__pill",
|
|
67226
|
+
"data-tone": i,
|
|
67227
|
+
style: { marginInlineEnd: 0 },
|
|
67228
|
+
children: r
|
|
67229
|
+
}) : r;
|
|
67230
|
+
}
|
|
67231
|
+
function PJ({ panel: e, rows: t, ctx: n }) {
|
|
67213
67232
|
let r = nq(e.columns).filter((e) => e && $(e.key));
|
|
67214
67233
|
return /* @__PURE__ */ X("div", {
|
|
67215
67234
|
className: "cc-dash-table",
|
|
@@ -67223,11 +67242,11 @@ function MJ({ panel: e, rows: t, ctx: n }) {
|
|
|
67223
67242
|
children: [e.hideHeader ? null : /* @__PURE__ */ X("thead", { children: /* @__PURE__ */ X("tr", { children: r.map((e) => /* @__PURE__ */ X("th", {
|
|
67224
67243
|
scope: "col",
|
|
67225
67244
|
style: { textAlign: e.align ?? "start" },
|
|
67226
|
-
children:
|
|
67245
|
+
children: TJ(e.label, n)
|
|
67227
67246
|
}, e.key)) }) }), /* @__PURE__ */ X("tbody", { children: t.map((e, t) => /* @__PURE__ */ X("tr", { children: r.map((t) => {
|
|
67228
67247
|
let r = iq(t.value ?? t.key, e, n), i = oq(r), a = typeof t.tone == "function" ? t.tone(r, e) : void 0;
|
|
67229
67248
|
if (t.kind === "action") {
|
|
67230
|
-
let r = typeof t.to == "function" ? t.to(e, n) : t.to, i = typeof t.actionLabel == "function" ? t.actionLabel(e) :
|
|
67249
|
+
let r = typeof t.to == "function" ? t.to(e, n) : t.to, i = typeof t.actionLabel == "function" ? t.actionLabel(e) : TJ(t.actionLabel, n) || "View";
|
|
67231
67250
|
return /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(z, {
|
|
67232
67251
|
size: "small",
|
|
67233
67252
|
className: "cc-dash-table__action",
|
|
@@ -67276,7 +67295,7 @@ function MJ({ panel: e, rows: t, ctx: n }) {
|
|
|
67276
67295
|
}
|
|
67277
67296
|
//#endregion
|
|
67278
67297
|
//#region src/components/COMBAINED_COMPONENTS/helpers/dashboard/DashboardCharts.jsx
|
|
67279
|
-
var
|
|
67298
|
+
var FJ = [
|
|
67280
67299
|
"#4f6bed",
|
|
67281
67300
|
"#13a8a8",
|
|
67282
67301
|
"#f59f00",
|
|
@@ -67285,9 +67304,9 @@ var NJ = [
|
|
|
67285
67304
|
"#2b8a3e",
|
|
67286
67305
|
"#d6336c",
|
|
67287
67306
|
"#868e96"
|
|
67288
|
-
],
|
|
67289
|
-
function
|
|
67290
|
-
let [a, o] = R(-1), s =
|
|
67307
|
+
], IJ = (e) => `var(--cc-dash-c${e % 8 + 1}, ${FJ[e % 8]})`, LJ = (e) => e.reduce((e, t) => e + (Number(t.value) || 0), 0);
|
|
67308
|
+
function RJ({ items: e, onSelect: t, format: n = cJ, centerLabel: r = "Total", precise: i = !1 }) {
|
|
67309
|
+
let [a, o] = R(-1), s = LJ(e), c = 2 * Math.PI * 52, l = 0, u = a >= 0 ? e[a] : null;
|
|
67291
67310
|
return /* @__PURE__ */ Z("div", {
|
|
67292
67311
|
className: "cc-chart cc-chart--donut",
|
|
67293
67312
|
style: {
|
|
@@ -67318,7 +67337,7 @@ function IJ({ items: e, onSelect: t, format: n = cJ, centerLabel: r = "Total", p
|
|
|
67318
67337
|
cy: "70",
|
|
67319
67338
|
r: 52,
|
|
67320
67339
|
fill: "none",
|
|
67321
|
-
stroke:
|
|
67340
|
+
stroke: IJ(r),
|
|
67322
67341
|
strokeWidth: a === r ? 22 : 18,
|
|
67323
67342
|
strokeDasharray: `${Math.max(i - 1.5, 0)} ${c}`,
|
|
67324
67343
|
strokeDashoffset: -l,
|
|
@@ -67397,7 +67416,7 @@ function IJ({ items: e, onSelect: t, format: n = cJ, centerLabel: r = "Total", p
|
|
|
67397
67416
|
width: 10,
|
|
67398
67417
|
height: 10,
|
|
67399
67418
|
borderRadius: 3,
|
|
67400
|
-
background:
|
|
67419
|
+
background: IJ(r),
|
|
67401
67420
|
flex: "none"
|
|
67402
67421
|
}
|
|
67403
67422
|
}),
|
|
@@ -67435,7 +67454,7 @@ function IJ({ items: e, onSelect: t, format: n = cJ, centerLabel: r = "Total", p
|
|
|
67435
67454
|
})]
|
|
67436
67455
|
});
|
|
67437
67456
|
}
|
|
67438
|
-
function
|
|
67457
|
+
function zJ({ items: e, onSelect: t, format: n = cJ }) {
|
|
67439
67458
|
let r = Math.max(1, ...e.map((e) => Number(e.value) || 0));
|
|
67440
67459
|
return /* @__PURE__ */ X("ul", {
|
|
67441
67460
|
className: "cc-chart cc-chart--bar",
|
|
@@ -67513,7 +67532,7 @@ function LJ({ items: e, onSelect: t, format: n = cJ }) {
|
|
|
67513
67532
|
width: `${(Number(e.value) || 0) / r * 100}%`,
|
|
67514
67533
|
minWidth: e.value > 0 ? 4 : 0,
|
|
67515
67534
|
borderRadius: 5,
|
|
67516
|
-
background:
|
|
67535
|
+
background: IJ(i),
|
|
67517
67536
|
transition: "width 400ms ease"
|
|
67518
67537
|
}
|
|
67519
67538
|
})
|
|
@@ -67530,8 +67549,8 @@ function LJ({ items: e, onSelect: t, format: n = cJ }) {
|
|
|
67530
67549
|
}) }, e.key))
|
|
67531
67550
|
});
|
|
67532
67551
|
}
|
|
67533
|
-
var
|
|
67534
|
-
function
|
|
67552
|
+
var BJ = (e) => e.map(([e, t], n) => `${n ? "L" : "M"}${e.toFixed(1)},${t.toFixed(1)}`).join(" ");
|
|
67553
|
+
function VJ({ items: e, height: t = 180, format: n = cJ, color: r = IJ(0), pointLabels: i = !1 }) {
|
|
67535
67554
|
let [a, o] = R(-1), s = Vo(null), [c, l] = R(600);
|
|
67536
67555
|
I(() => {
|
|
67537
67556
|
let e = s.current;
|
|
@@ -67547,11 +67566,11 @@ function zJ({ items: e, height: t = 180, format: n = cJ, color: r = PJ(0), point
|
|
|
67547
67566
|
r: i ? 16 : 8,
|
|
67548
67567
|
t: i ? 26 : 12,
|
|
67549
67568
|
b: 22
|
|
67550
|
-
}, f = Math.max(1, ...e.map((e) => Number(e.value) || 0)), p = f <= 4 ? f : Math.ceil(f / 4) * 4, m = (t) => d.l + (e.length > 1 ? t / (e.length - 1) * (c - d.l - d.r) : (c - d.l - d.r) / 2), h = (e) => d.t + (1 - (Number(e) || 0) / p) * (u - d.t - d.b), g = e.map((e, t) => [m(t), h(e.value)]), _ = g.length ? `${
|
|
67569
|
+
}, f = Math.max(1, ...e.map((e) => Number(e.value) || 0)), p = f <= 4 ? f : Math.ceil(f / 4) * 4, m = (t) => d.l + (e.length > 1 ? t / (e.length - 1) * (c - d.l - d.r) : (c - d.l - d.r) / 2), h = (e) => d.t + (1 - (Number(e) || 0) / p) * (u - d.t - d.b), g = e.map((e, t) => [m(t), h(e.value)]), _ = g.length ? `${BJ(g)} L${m(e.length - 1)},${u - d.b} L${m(0)},${u - d.b} Z` : "", v = [
|
|
67551
67570
|
0,
|
|
67552
67571
|
.5,
|
|
67553
67572
|
1
|
|
67554
|
-
].map((e) => Math.round(p * e)), y = Math.max(1, Math.ceil(e.length / Math.max(2, Math.floor(c / 80)))), b =
|
|
67573
|
+
].map((e) => Math.round(p * e)), y = Math.max(1, Math.ceil(e.length / Math.max(2, Math.floor(c / 80)))), b = LJ(e), x = a >= 0 ? e[a] : null, S = `cc-area-${String(e[0]?.key ?? "x").replace(/[^\w-]/g, "")}-${e.length}`;
|
|
67555
67574
|
return /* @__PURE__ */ Z("div", {
|
|
67556
67575
|
ref: s,
|
|
67557
67576
|
className: "cc-chart cc-chart--area",
|
|
@@ -67608,7 +67627,7 @@ function zJ({ items: e, height: t = 180, format: n = cJ, color: r = PJ(0), point
|
|
|
67608
67627
|
fill: `url(#${S})`
|
|
67609
67628
|
}) : null,
|
|
67610
67629
|
g.length ? /* @__PURE__ */ X("path", {
|
|
67611
|
-
d:
|
|
67630
|
+
d: BJ(g),
|
|
67612
67631
|
fill: "none",
|
|
67613
67632
|
stroke: r,
|
|
67614
67633
|
strokeWidth: "2.25",
|
|
@@ -67691,7 +67710,7 @@ function zJ({ items: e, height: t = 180, format: n = cJ, color: r = PJ(0), point
|
|
|
67691
67710
|
}) : null]
|
|
67692
67711
|
});
|
|
67693
67712
|
}
|
|
67694
|
-
function
|
|
67713
|
+
function HJ({ items: e, height: t = 180, format: n = cJ, onSelect: r }) {
|
|
67695
67714
|
let i = Math.max(1, ...e.map((e) => Number(e.value) || 0));
|
|
67696
67715
|
return /* @__PURE__ */ X("div", {
|
|
67697
67716
|
className: "cc-chart cc-chart--column",
|
|
@@ -67743,7 +67762,7 @@ function BJ({ items: e, height: t = 180, format: n = cJ, onSelect: r }) {
|
|
|
67743
67762
|
height: `${(Number(e.value) || 0) / i * 100}%`,
|
|
67744
67763
|
minHeight: e.value > 0 ? 3 : 1,
|
|
67745
67764
|
borderRadius: "6px 6px 2px 2px",
|
|
67746
|
-
background:
|
|
67765
|
+
background: IJ(t),
|
|
67747
67766
|
transition: "height 400ms ease"
|
|
67748
67767
|
}
|
|
67749
67768
|
}),
|
|
@@ -67763,7 +67782,7 @@ function BJ({ items: e, height: t = 180, format: n = cJ, onSelect: r }) {
|
|
|
67763
67782
|
}, e.key))
|
|
67764
67783
|
});
|
|
67765
67784
|
}
|
|
67766
|
-
function
|
|
67785
|
+
function UJ({ items: e, onSelect: t, format: n = cJ, precise: r = !1 }) {
|
|
67767
67786
|
let i = Math.max(1, ...e.map((e) => Number(e.value) || 0));
|
|
67768
67787
|
return /* @__PURE__ */ X("ol", {
|
|
67769
67788
|
className: "cc-chart cc-chart--funnel",
|
|
@@ -67811,7 +67830,7 @@ function VJ({ items: e, onSelect: t, format: n = cJ, precise: r = !1 }) {
|
|
|
67811
67830
|
width: 8,
|
|
67812
67831
|
height: 8,
|
|
67813
67832
|
borderRadius: "50%",
|
|
67814
|
-
background:
|
|
67833
|
+
background: IJ(o),
|
|
67815
67834
|
alignSelf: "center"
|
|
67816
67835
|
}
|
|
67817
67836
|
}),
|
|
@@ -67868,7 +67887,7 @@ function VJ({ items: e, onSelect: t, format: n = cJ, precise: r = !1 }) {
|
|
|
67868
67887
|
width: `${d}%`,
|
|
67869
67888
|
height: "100%",
|
|
67870
67889
|
borderRadius: 999,
|
|
67871
|
-
background:
|
|
67890
|
+
background: IJ(o),
|
|
67872
67891
|
transition: "width 400ms cubic-bezier(0.2, 0, 0, 1)"
|
|
67873
67892
|
}
|
|
67874
67893
|
})
|
|
@@ -67877,7 +67896,7 @@ function VJ({ items: e, onSelect: t, format: n = cJ, precise: r = !1 }) {
|
|
|
67877
67896
|
})
|
|
67878
67897
|
});
|
|
67879
67898
|
}
|
|
67880
|
-
function
|
|
67899
|
+
function WJ({ values: e, color: t = IJ(0), width: n = 72, height: r = 26 }) {
|
|
67881
67900
|
if (!e?.length) return null;
|
|
67882
67901
|
let i = Math.max(1, ...e), a = e.map((t, a) => [e.length > 1 ? a / (e.length - 1) * n : n / 2, r - 2 - t / i * (r - 4)]);
|
|
67883
67902
|
return /* @__PURE__ */ Z("svg", {
|
|
@@ -67891,11 +67910,11 @@ function HJ({ values: e, color: t = PJ(0), width: n = 72, height: r = 26 }) {
|
|
|
67891
67910
|
overflow: "visible"
|
|
67892
67911
|
},
|
|
67893
67912
|
children: [/* @__PURE__ */ X("path", {
|
|
67894
|
-
d: `${
|
|
67913
|
+
d: `${BJ(a)} L${n},${r} L0,${r} Z`,
|
|
67895
67914
|
fill: t,
|
|
67896
67915
|
fillOpacity: "0.12"
|
|
67897
67916
|
}), /* @__PURE__ */ X("path", {
|
|
67898
|
-
d:
|
|
67917
|
+
d: BJ(a),
|
|
67899
67918
|
fill: "none",
|
|
67900
67919
|
stroke: t,
|
|
67901
67920
|
strokeWidth: "1.75",
|
|
@@ -67906,7 +67925,7 @@ function HJ({ values: e, color: t = PJ(0), width: n = 72, height: r = 26 }) {
|
|
|
67906
67925
|
}
|
|
67907
67926
|
//#endregion
|
|
67908
67927
|
//#region src/components/COMBAINED_COMPONENTS/DASHBOARDPAGE.jsx
|
|
67909
|
-
var
|
|
67928
|
+
var GJ = [
|
|
67910
67929
|
{
|
|
67911
67930
|
key: "today",
|
|
67912
67931
|
label: "Today"
|
|
@@ -67921,18 +67940,18 @@ var UJ = [
|
|
|
67921
67940
|
label: "Month",
|
|
67922
67941
|
title: "This month"
|
|
67923
67942
|
}
|
|
67924
|
-
],
|
|
67943
|
+
], KJ = {
|
|
67925
67944
|
today: "Today",
|
|
67926
67945
|
week: "This week",
|
|
67927
67946
|
month: "This month"
|
|
67928
|
-
},
|
|
67947
|
+
}, qJ = (e, t) => (typeof e == "function" ? e(t) : e) ?? {}, JJ = (e, t, n) => typeof e == "function" ? e(n ?? t, t) : e, YJ = (() => {
|
|
67929
67948
|
try {
|
|
67930
67949
|
return Intl.DateTimeFormat().resolvedOptions().timeZone || "";
|
|
67931
67950
|
} catch {
|
|
67932
67951
|
return "";
|
|
67933
67952
|
}
|
|
67934
67953
|
})();
|
|
67935
|
-
function
|
|
67954
|
+
function XJ(e, t) {
|
|
67936
67955
|
let n = e ? JSON.stringify([e, t]) : "", [r, i] = R({
|
|
67937
67956
|
signature: "",
|
|
67938
67957
|
groups: null,
|
|
@@ -67948,7 +67967,7 @@ function JJ(e, t) {
|
|
|
67948
67967
|
...a.queryParams ?? {},
|
|
67949
67968
|
groupBy: o,
|
|
67950
67969
|
groupDate: s || "",
|
|
67951
|
-
groupTz: s ?
|
|
67970
|
+
groupTz: s ? YJ : "",
|
|
67952
67971
|
groupSum: c || ""
|
|
67953
67972
|
}
|
|
67954
67973
|
}).then((e) => {
|
|
@@ -67974,19 +67993,19 @@ function JJ(e, t) {
|
|
|
67974
67993
|
retry: () => o((e) => e + 1)
|
|
67975
67994
|
};
|
|
67976
67995
|
}
|
|
67977
|
-
var
|
|
67978
|
-
function
|
|
67996
|
+
var ZJ = (e) => typeof e == "function" ? e : e === "compact" ? yJ : cJ;
|
|
67997
|
+
function QJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a, choice: o }) {
|
|
67979
67998
|
let s = Array.isArray(e.stages), c = e.chart === "area", l = Number(o?.days) > 0 ? pJ(o.days) : fJ(i.range.key), u = c ? {
|
|
67980
67999
|
...i,
|
|
67981
68000
|
range: l
|
|
67982
68001
|
} : i, d = s || !$(e.module) || !$(e.groupBy) ? null : {
|
|
67983
68002
|
module: e.module,
|
|
67984
|
-
relation:
|
|
68003
|
+
relation: qJ(e.relation, u),
|
|
67985
68004
|
groupBy: e.groupBy,
|
|
67986
68005
|
groupDate: c ? "day" : e.groupDate,
|
|
67987
68006
|
sum: e.sum,
|
|
67988
68007
|
range: u.range.key
|
|
67989
|
-
}, f =
|
|
68008
|
+
}, f = XJ(d, a), p = ZJ(e.format), m = e.sum ? (e) => e.sum : (e) => e.count, h = typeof e.to == "function" ? (t) => i.navigate(e.to(t, i)) : $(e.to) ? () => i.navigate(e.to) : void 0;
|
|
67990
68009
|
if (s) {
|
|
67991
68010
|
if (r) return /* @__PURE__ */ X(vs, {
|
|
67992
68011
|
active: !0,
|
|
@@ -67998,27 +68017,27 @@ function XJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a, c
|
|
|
67998
68017
|
key: e.kpi,
|
|
67999
68018
|
label: oq(aq(e.label ?? r.label, {}, i)),
|
|
68000
68019
|
value: t[e.kpi],
|
|
68001
|
-
to:
|
|
68020
|
+
to: JJ(r.to, i)
|
|
68002
68021
|
} : null;
|
|
68003
68022
|
}).filter(Boolean), o = (e) => i.navigate(e.to);
|
|
68004
|
-
return e.emptyState && a.every((e) => !Number(e.value)) ? /* @__PURE__ */ X(
|
|
68023
|
+
return e.emptyState && a.every((e) => !Number(e.value)) ? /* @__PURE__ */ X(EJ, {
|
|
68005
68024
|
spec: e.emptyState,
|
|
68006
68025
|
ctx: i
|
|
68007
|
-
}) : e.chart === "donut" ? /* @__PURE__ */ X(
|
|
68026
|
+
}) : e.chart === "donut" ? /* @__PURE__ */ X(RJ, {
|
|
68008
68027
|
items: a,
|
|
68009
68028
|
format: p,
|
|
68010
68029
|
onSelect: o,
|
|
68011
68030
|
precise: !!e.precise,
|
|
68012
68031
|
centerLabel: oq(aq(e.centerLabel, {}, i)) || void 0
|
|
68013
|
-
}) : e.chart === "column" ? /* @__PURE__ */ X(
|
|
68032
|
+
}) : e.chart === "column" ? /* @__PURE__ */ X(HJ, {
|
|
68014
68033
|
items: a,
|
|
68015
68034
|
format: p,
|
|
68016
68035
|
onSelect: o
|
|
68017
|
-
}) : e.chart === "bar" ? /* @__PURE__ */ X(
|
|
68036
|
+
}) : e.chart === "bar" ? /* @__PURE__ */ X(zJ, {
|
|
68018
68037
|
items: a,
|
|
68019
68038
|
format: p,
|
|
68020
68039
|
onSelect: o
|
|
68021
|
-
}) : /* @__PURE__ */ X(
|
|
68040
|
+
}) : /* @__PURE__ */ X(UJ, {
|
|
68022
68041
|
items: a,
|
|
68023
68042
|
format: p,
|
|
68024
68043
|
onSelect: o,
|
|
@@ -68057,7 +68076,7 @@ function XJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a, c
|
|
|
68057
68076
|
...e,
|
|
68058
68077
|
short: (/* @__PURE__ */ new Date(`${e.key}T00:00:00`)).toLocaleDateString([], { weekday: "short" })
|
|
68059
68078
|
} : e), n = t.reduce((e, t) => e + t.value, 0);
|
|
68060
|
-
return e.emptyState && n === 0 ? /* @__PURE__ */ X(
|
|
68079
|
+
return e.emptyState && n === 0 ? /* @__PURE__ */ X(EJ, {
|
|
68061
68080
|
spec: e.emptyState,
|
|
68062
68081
|
ctx: i
|
|
68063
68082
|
}) : /* @__PURE__ */ Z(Y, { children: [e.summary === !1 ? null : /* @__PURE__ */ Z("div", {
|
|
@@ -68084,7 +68103,7 @@ function XJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a, c
|
|
|
68084
68103
|
" days"
|
|
68085
68104
|
]
|
|
68086
68105
|
})]
|
|
68087
|
-
}), /* @__PURE__ */ X(
|
|
68106
|
+
}), /* @__PURE__ */ X(VJ, {
|
|
68088
68107
|
items: t,
|
|
68089
68108
|
format: p,
|
|
68090
68109
|
pointLabels: !!e.pointLabels
|
|
@@ -68098,35 +68117,99 @@ function XJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a, c
|
|
|
68098
68117
|
...t,
|
|
68099
68118
|
icon: tq(typeof e.icons == "function" ? e.icons(t.key) : e.icons[t.key])
|
|
68100
68119
|
} : t);
|
|
68101
|
-
if (!g.length || g.every((e) => !e.value)) return /* @__PURE__ */ X(
|
|
68120
|
+
if (!g.length || g.every((e) => !e.value)) return /* @__PURE__ */ X(EJ, {
|
|
68102
68121
|
spec: e.emptyState,
|
|
68103
68122
|
ctx: i,
|
|
68104
68123
|
fallback: oq(aq(e.empty, {}, i)) || "No data for this period."
|
|
68105
68124
|
});
|
|
68106
68125
|
let _ = Number(e.max) > 0 ? g.slice(0, Number(e.max)) : g;
|
|
68107
|
-
return e.chart === "donut" ? /* @__PURE__ */ X(
|
|
68126
|
+
return e.chart === "donut" ? /* @__PURE__ */ X(RJ, {
|
|
68108
68127
|
items: _,
|
|
68109
68128
|
format: p,
|
|
68110
68129
|
onSelect: h,
|
|
68111
68130
|
precise: !!e.precise,
|
|
68112
68131
|
centerLabel: oq(aq(e.centerLabel, {}, i)) || void 0
|
|
68113
|
-
}) : e.chart === "column" ? /* @__PURE__ */ X(
|
|
68132
|
+
}) : e.chart === "column" ? /* @__PURE__ */ X(HJ, {
|
|
68114
68133
|
items: _,
|
|
68115
68134
|
format: p,
|
|
68116
68135
|
onSelect: h
|
|
68117
|
-
}) : /* @__PURE__ */ X(
|
|
68136
|
+
}) : /* @__PURE__ */ X(zJ, {
|
|
68118
68137
|
items: g.slice(0, Number(e.max) || 8),
|
|
68119
68138
|
format: p,
|
|
68120
68139
|
onSelect: h
|
|
68121
68140
|
});
|
|
68122
68141
|
}
|
|
68123
|
-
function
|
|
68142
|
+
function $J({ panel: e, ctx: t, refreshKey: n }) {
|
|
68143
|
+
let { value: r, error: i, loading: a, retry: o } = CJ(JSON.stringify([
|
|
68144
|
+
e.key,
|
|
68145
|
+
t.range.key,
|
|
68146
|
+
n
|
|
68147
|
+
]), () => e.load(t)), s = ZJ(e.format);
|
|
68148
|
+
if (a) return /* @__PURE__ */ X(vs, {
|
|
68149
|
+
active: !0,
|
|
68150
|
+
paragraph: { rows: 4 }
|
|
68151
|
+
});
|
|
68152
|
+
if (i === "forbidden") return /* @__PURE__ */ X(Os.Text, {
|
|
68153
|
+
type: "secondary",
|
|
68154
|
+
children: "You don't have access to this data."
|
|
68155
|
+
});
|
|
68156
|
+
if (i) return /* @__PURE__ */ X(Uo, {
|
|
68157
|
+
type: "warning",
|
|
68158
|
+
showIcon: !0,
|
|
68159
|
+
message: "This chart could not be loaded.",
|
|
68160
|
+
action: /* @__PURE__ */ X(z, {
|
|
68161
|
+
size: "small",
|
|
68162
|
+
onClick: o,
|
|
68163
|
+
children: "Retry"
|
|
68164
|
+
})
|
|
68165
|
+
});
|
|
68166
|
+
let c = nq(r).filter((e) => e && $(String(e.key ?? ""))).map((e) => ({
|
|
68167
|
+
...e,
|
|
68168
|
+
label: oq(e.label ?? e.key),
|
|
68169
|
+
value: Number(e.value) || 0,
|
|
68170
|
+
icon: e.icon ? tq(e.icon) : void 0
|
|
68171
|
+
}));
|
|
68172
|
+
if (!c.length || c.every((e) => !e.value)) return /* @__PURE__ */ X(EJ, {
|
|
68173
|
+
spec: e.emptyState,
|
|
68174
|
+
ctx: t,
|
|
68175
|
+
fallback: oq(aq(e.empty, {}, t)) || "No data yet."
|
|
68176
|
+
});
|
|
68177
|
+
let l = (n) => {
|
|
68178
|
+
let r = JJ(n.to ?? e.to, t, n);
|
|
68179
|
+
$(r) && t.navigate(r);
|
|
68180
|
+
};
|
|
68181
|
+
return e.chart === "area" || e.chart === "line" ? /* @__PURE__ */ X(VJ, {
|
|
68182
|
+
items: c,
|
|
68183
|
+
format: s,
|
|
68184
|
+
pointLabels: e.pointLabels !== !1
|
|
68185
|
+
}) : e.chart === "donut" ? /* @__PURE__ */ X(RJ, {
|
|
68186
|
+
items: c,
|
|
68187
|
+
format: s,
|
|
68188
|
+
onSelect: l,
|
|
68189
|
+
precise: !!e.precise,
|
|
68190
|
+
centerLabel: oq(aq(e.centerLabel, {}, t)) || void 0
|
|
68191
|
+
}) : e.chart === "column" ? /* @__PURE__ */ X(HJ, {
|
|
68192
|
+
items: c,
|
|
68193
|
+
format: s,
|
|
68194
|
+
onSelect: l
|
|
68195
|
+
}) : e.chart === "funnel" ? /* @__PURE__ */ X(UJ, {
|
|
68196
|
+
items: c,
|
|
68197
|
+
format: s,
|
|
68198
|
+
onSelect: l,
|
|
68199
|
+
precise: !!e.precise
|
|
68200
|
+
}) : /* @__PURE__ */ X(zJ, {
|
|
68201
|
+
items: c,
|
|
68202
|
+
format: s,
|
|
68203
|
+
onSelect: l
|
|
68204
|
+
});
|
|
68205
|
+
}
|
|
68206
|
+
function eY({ kpi: e, ctx: t, refreshKey: n }) {
|
|
68124
68207
|
let r = fJ("week"), i = {
|
|
68125
68208
|
...t,
|
|
68126
68209
|
range: r
|
|
68127
|
-
}, a =
|
|
68210
|
+
}, a = XJ({
|
|
68128
68211
|
module: e.module,
|
|
68129
|
-
relation:
|
|
68212
|
+
relation: qJ(e.relation, i),
|
|
68130
68213
|
groupBy: e.trend.field || "createdAt",
|
|
68131
68214
|
groupDate: "day",
|
|
68132
68215
|
range: "trend"
|
|
@@ -68164,10 +68247,10 @@ function ZJ({ kpi: e, ctx: t, refreshKey: n }) {
|
|
|
68164
68247
|
},
|
|
68165
68248
|
children: " vs prior 2 wks"
|
|
68166
68249
|
})]
|
|
68167
|
-
}), /* @__PURE__ */ X(
|
|
68250
|
+
}), /* @__PURE__ */ X(WJ, { values: o })]
|
|
68168
68251
|
});
|
|
68169
68252
|
}
|
|
68170
|
-
function
|
|
68253
|
+
function tY() {
|
|
68171
68254
|
return /* @__PURE__ */ Z("svg", {
|
|
68172
68255
|
className: "cc-dash-hero__art",
|
|
68173
68256
|
viewBox: "0 0 320 160",
|
|
@@ -68231,7 +68314,7 @@ function QJ() {
|
|
|
68231
68314
|
]
|
|
68232
68315
|
});
|
|
68233
68316
|
}
|
|
68234
|
-
function
|
|
68317
|
+
function nY(e, t, n) {
|
|
68235
68318
|
let r = e.filter((e) => typeof e.count == "function"), i = JSON.stringify([
|
|
68236
68319
|
r.map((e) => e.key),
|
|
68237
68320
|
t.range.key,
|
|
@@ -68247,6 +68330,10 @@ function $J(e, t, n) {
|
|
|
68247
68330
|
if (!e) return;
|
|
68248
68331
|
let n = {};
|
|
68249
68332
|
t.forEach((e, t) => {
|
|
68333
|
+
if (r[t].format && e.status === "fulfilled" && typeof e.value == "string" && e.value.trim()) {
|
|
68334
|
+
n[r[t].key] = e.value;
|
|
68335
|
+
return;
|
|
68336
|
+
}
|
|
68250
68337
|
let i = e.status === "fulfilled" ? Number(e.value) : NaN;
|
|
68251
68338
|
n[r[t].key] = Number.isFinite(i) ? i : null;
|
|
68252
68339
|
}), o({
|
|
@@ -68261,8 +68348,8 @@ function $J(e, t, n) {
|
|
|
68261
68348
|
loading: r.length > 0 && a.signature !== i
|
|
68262
68349
|
};
|
|
68263
68350
|
}
|
|
68264
|
-
function
|
|
68265
|
-
let a = oq(aq(e.label, {}, r)), o = oq(aq(e.help, {}, r)),
|
|
68351
|
+
function rY({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
68352
|
+
let a = oq(aq(e.label, {}, r)), o = SJ(e, t), s = oq(aq(e.help, {}, r)), c = JJ(e.to, r), l = /* @__PURE__ */ Z(Y, { children: [
|
|
68266
68353
|
e.icon ? /* @__PURE__ */ X("span", {
|
|
68267
68354
|
className: "cc-dash-kpi__icon",
|
|
68268
68355
|
"aria-hidden": "true",
|
|
@@ -68270,8 +68357,8 @@ function eY({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
|
68270
68357
|
}) : null,
|
|
68271
68358
|
/* @__PURE__ */ Z("span", {
|
|
68272
68359
|
className: "cc-dash-kpi__label",
|
|
68273
|
-
children: [a,
|
|
68274
|
-
title:
|
|
68360
|
+
children: [a, s ? /* @__PURE__ */ X(q, {
|
|
68361
|
+
title: s,
|
|
68275
68362
|
children: /* @__PURE__ */ X(Kc, {
|
|
68276
68363
|
className: "cc-dash-kpi__help",
|
|
68277
68364
|
"aria-label": `About ${a}`,
|
|
@@ -68285,7 +68372,7 @@ function eY({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
|
68285
68372
|
style: { width: 56 }
|
|
68286
68373
|
}) : /* @__PURE__ */ X("span", {
|
|
68287
68374
|
className: "cc-dash-kpi__value",
|
|
68288
|
-
children:
|
|
68375
|
+
children: o
|
|
68289
68376
|
}),
|
|
68290
68377
|
$(e.caption) || typeof e.caption == "function" ? /* @__PURE__ */ X("span", {
|
|
68291
68378
|
className: "cc-dash-kpi__period",
|
|
@@ -68302,12 +68389,12 @@ function eY({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
|
68302
68389
|
},
|
|
68303
68390
|
children: (e.period ? e.period === "range" : typeof e.relation == "function") ? r.rangeLabel : "Right now"
|
|
68304
68391
|
}) : null,
|
|
68305
|
-
e.trend && $(e.module) ? /* @__PURE__ */ X(
|
|
68392
|
+
e.trend && $(e.module) ? /* @__PURE__ */ X(eY, {
|
|
68306
68393
|
kpi: e,
|
|
68307
68394
|
ctx: r,
|
|
68308
68395
|
refreshKey: i
|
|
68309
68396
|
}) : null
|
|
68310
|
-
] }),
|
|
68397
|
+
] }), u = {
|
|
68311
68398
|
display: "flex",
|
|
68312
68399
|
flexDirection: "column",
|
|
68313
68400
|
gap: 8,
|
|
@@ -68316,29 +68403,29 @@ function eY({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
|
68316
68403
|
minWidth: 0,
|
|
68317
68404
|
width: "100%"
|
|
68318
68405
|
};
|
|
68319
|
-
return $(
|
|
68406
|
+
return $(c) ? /* @__PURE__ */ X("button", {
|
|
68320
68407
|
type: "button",
|
|
68321
68408
|
"data-tone": e.tone,
|
|
68322
68409
|
className: "cc-dash-kpi is-link",
|
|
68323
68410
|
style: {
|
|
68324
|
-
...
|
|
68411
|
+
...u,
|
|
68325
68412
|
cursor: "pointer",
|
|
68326
68413
|
font: "inherit",
|
|
68327
68414
|
background: "none",
|
|
68328
68415
|
border: 0,
|
|
68329
68416
|
padding: 0
|
|
68330
68417
|
},
|
|
68331
|
-
onClick: () => r.navigate(
|
|
68332
|
-
"aria-label": `${a}: ${
|
|
68333
|
-
children:
|
|
68418
|
+
onClick: () => r.navigate(c),
|
|
68419
|
+
"aria-label": `${a}: ${o}. Open the list`,
|
|
68420
|
+
children: l
|
|
68334
68421
|
}) : /* @__PURE__ */ X("div", {
|
|
68335
68422
|
className: "cc-dash-kpi",
|
|
68336
68423
|
"data-tone": e.tone,
|
|
68337
|
-
style:
|
|
68338
|
-
children:
|
|
68424
|
+
style: u,
|
|
68425
|
+
children: l
|
|
68339
68426
|
});
|
|
68340
68427
|
}
|
|
68341
|
-
function
|
|
68428
|
+
function iY({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
|
|
68342
68429
|
let a = nq(e.stages).map((e) => ({
|
|
68343
68430
|
...e,
|
|
68344
68431
|
kpiDef: n.find((t) => t.key === e.kpi)
|
|
@@ -68381,7 +68468,7 @@ function tY({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
|
|
|
68381
68468
|
gap: 12
|
|
68382
68469
|
},
|
|
68383
68470
|
children: a.map((e, n) => {
|
|
68384
|
-
let r = oq(aq(e.label ?? e.kpiDef.label, {}, i)), a =
|
|
68471
|
+
let r = oq(aq(e.label ?? e.kpiDef.label, {}, i)), a = JJ(e.kpiDef.to, i);
|
|
68385
68472
|
return /* @__PURE__ */ X("li", {
|
|
68386
68473
|
className: "cc-dash-stages__item",
|
|
68387
68474
|
"data-i": n,
|
|
@@ -68410,8 +68497,8 @@ function tY({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
|
|
|
68410
68497
|
})]
|
|
68411
68498
|
});
|
|
68412
68499
|
}
|
|
68413
|
-
function
|
|
68414
|
-
let r =
|
|
68500
|
+
function aY({ panel: e, ctx: t, refreshKey: n }) {
|
|
68501
|
+
let r = qJ(e.relation, t), i = JSON.stringify([
|
|
68415
68502
|
e.module,
|
|
68416
68503
|
r,
|
|
68417
68504
|
e.limit,
|
|
@@ -68471,13 +68558,13 @@ function nY({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
68471
68558
|
children: "Retry"
|
|
68472
68559
|
})
|
|
68473
68560
|
});
|
|
68474
|
-
if (!a.rows.length) return /* @__PURE__ */ X(
|
|
68561
|
+
if (!a.rows.length) return /* @__PURE__ */ X(EJ, {
|
|
68475
68562
|
spec: e.emptyState,
|
|
68476
68563
|
ctx: t,
|
|
68477
68564
|
fallback: oq(aq(e.empty, {}, t)) || "Nothing here right now."
|
|
68478
68565
|
});
|
|
68479
|
-
let l =
|
|
68480
|
-
return /* @__PURE__ */ Z(Y, { children: [Array.isArray(e.columns) ? /* @__PURE__ */ X(
|
|
68566
|
+
let l = JJ(e.viewAll, t);
|
|
68567
|
+
return /* @__PURE__ */ Z(Y, { children: [Array.isArray(e.columns) ? /* @__PURE__ */ X(PJ, {
|
|
68481
68568
|
panel: e,
|
|
68482
68569
|
rows: a.rows,
|
|
68483
68570
|
ctx: t
|
|
@@ -68489,7 +68576,7 @@ function nY({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
68489
68576
|
padding: 0
|
|
68490
68577
|
},
|
|
68491
68578
|
children: a.rows.map((n, r) => {
|
|
68492
|
-
let i = oq(iq(e.row?.title, n, t)) || "—", a = oq(iq(e.row?.meta, n, t)), o = oq(iq(e.row?.status, n, t)), s =
|
|
68579
|
+
let i = oq(iq(e.row?.title, n, t)) || "—", a = oq(iq(e.row?.meta, n, t)), o = oq(iq(e.row?.status, n, t)), s = JJ(e.to, t, n);
|
|
68493
68580
|
return /* @__PURE__ */ X("li", {
|
|
68494
68581
|
className: "cc-dash-list__row",
|
|
68495
68582
|
children: /* @__PURE__ */ Z("button", {
|
|
@@ -68545,7 +68632,7 @@ function nY({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
68545
68632
|
]
|
|
68546
68633
|
}) : null] });
|
|
68547
68634
|
}
|
|
68548
|
-
function
|
|
68635
|
+
function oY({ panel: e, ctx: t }) {
|
|
68549
68636
|
let n = nq(e.items).filter((e) => e && $(e.key) && sq(e, {}, t));
|
|
68550
68637
|
return /* @__PURE__ */ X("div", {
|
|
68551
68638
|
className: "cc-dash-links",
|
|
@@ -68555,7 +68642,7 @@ function rY({ panel: e, ctx: t }) {
|
|
|
68555
68642
|
gap: 8
|
|
68556
68643
|
},
|
|
68557
68644
|
children: n.map((e) => {
|
|
68558
|
-
let n = tq(e.icon), r =
|
|
68645
|
+
let n = tq(e.icon), r = JJ(e.to, t);
|
|
68559
68646
|
return /* @__PURE__ */ X(z, {
|
|
68560
68647
|
className: "cc-dash-link",
|
|
68561
68648
|
onClick: () => t.navigate(r),
|
|
@@ -68577,37 +68664,41 @@ function rY({ panel: e, ctx: t }) {
|
|
|
68577
68664
|
})
|
|
68578
68665
|
});
|
|
68579
68666
|
}
|
|
68580
|
-
function
|
|
68667
|
+
function sY({ panel: e, ...t }) {
|
|
68581
68668
|
let n = oq(aq(e.title, {}, t.ctx)), r = nq(e.choices?.options).filter((e) => e && $(e.key)), [i, a] = R(e.choices?.default ?? r[0]?.key), o = r.find((e) => e.key === i) ?? r[0], s;
|
|
68582
68669
|
switch (e.type) {
|
|
68583
68670
|
case "stages":
|
|
68584
|
-
s = /* @__PURE__ */ X(
|
|
68671
|
+
s = /* @__PURE__ */ X(iY, {
|
|
68585
68672
|
panel: e,
|
|
68586
68673
|
...t
|
|
68587
68674
|
});
|
|
68588
68675
|
break;
|
|
68589
68676
|
case "list":
|
|
68590
|
-
s = /* @__PURE__ */ X(
|
|
68677
|
+
s = /* @__PURE__ */ X(aY, {
|
|
68591
68678
|
panel: e,
|
|
68592
68679
|
ctx: t.ctx,
|
|
68593
68680
|
refreshKey: t.refreshKey
|
|
68594
68681
|
});
|
|
68595
68682
|
break;
|
|
68596
68683
|
case "links":
|
|
68597
|
-
s = /* @__PURE__ */ X(
|
|
68684
|
+
s = /* @__PURE__ */ X(oY, {
|
|
68598
68685
|
panel: e,
|
|
68599
68686
|
ctx: t.ctx
|
|
68600
68687
|
});
|
|
68601
68688
|
break;
|
|
68602
68689
|
case "chart":
|
|
68603
|
-
s = /* @__PURE__ */ X(
|
|
68690
|
+
s = typeof e.load == "function" ? /* @__PURE__ */ X($J, {
|
|
68691
|
+
panel: e,
|
|
68692
|
+
ctx: t.ctx,
|
|
68693
|
+
refreshKey: t.refreshKey
|
|
68694
|
+
}) : /* @__PURE__ */ X(QJ, {
|
|
68604
68695
|
panel: e,
|
|
68605
68696
|
...t,
|
|
68606
68697
|
choice: o
|
|
68607
68698
|
});
|
|
68608
68699
|
break;
|
|
68609
68700
|
case "table":
|
|
68610
|
-
s = /* @__PURE__ */ X(
|
|
68701
|
+
s = /* @__PURE__ */ X(AJ, {
|
|
68611
68702
|
panel: e,
|
|
68612
68703
|
ctx: t.ctx,
|
|
68613
68704
|
refreshKey: t.refreshKey,
|
|
@@ -68615,14 +68706,14 @@ function iY({ panel: e, ...t }) {
|
|
|
68615
68706
|
});
|
|
68616
68707
|
break;
|
|
68617
68708
|
case "feed":
|
|
68618
|
-
s = /* @__PURE__ */ X(
|
|
68709
|
+
s = /* @__PURE__ */ X(jJ, {
|
|
68619
68710
|
panel: e,
|
|
68620
68711
|
ctx: t.ctx,
|
|
68621
68712
|
refreshKey: t.refreshKey
|
|
68622
68713
|
});
|
|
68623
68714
|
break;
|
|
68624
68715
|
case "metrics":
|
|
68625
|
-
s = /* @__PURE__ */ X(
|
|
68716
|
+
s = /* @__PURE__ */ X(MJ, {
|
|
68626
68717
|
panel: e,
|
|
68627
68718
|
ctx: t.ctx,
|
|
68628
68719
|
refreshKey: t.refreshKey
|
|
@@ -68686,38 +68777,43 @@ function iY({ panel: e, ...t }) {
|
|
|
68686
68777
|
}) : null, s]
|
|
68687
68778
|
});
|
|
68688
68779
|
}
|
|
68689
|
-
function
|
|
68780
|
+
function cY({ config: e, refreshKey: t = 0 }) {
|
|
68690
68781
|
let n = lu(), r = cu();
|
|
68691
68782
|
Ay();
|
|
68692
|
-
let i = nq(e?.ranges).length ? nq(e.ranges) :
|
|
68783
|
+
let i = nq(e?.ranges).length ? nq(e.ranges) : GJ, [a, o] = R(e?.defaultRange || i[0].key), [s, c] = R(0), [l, u] = R(() => /* @__PURE__ */ new Date()), d = `${t}|${s}`, f = {
|
|
68693
68784
|
...e?.context ?? {},
|
|
68694
68785
|
navigate: (e) => $(e) && n(e),
|
|
68695
68786
|
location: r,
|
|
68696
68787
|
range: oJ(a),
|
|
68697
|
-
rangeLabel: i.length > 1 ?
|
|
68788
|
+
rangeLabel: i.length > 1 ? KJ[a] ?? oq(aq(i.find((e) => e.key === a)?.label, {}, {})) : "",
|
|
68698
68789
|
refresh: () => {
|
|
68699
68790
|
c((e) => e + 1), u(/* @__PURE__ */ new Date());
|
|
68700
68791
|
}
|
|
68701
|
-
}, p = nq(e?.kpis).filter((e) => e && $(e.key) && sq(e, {}, f)), m =
|
|
68792
|
+
}, p = nq(e?.kpis).filter((e) => e && $(e.key) && sq(e, {}, f)), m = p.filter((e) => typeof e.count != "function" && $(e.module)).map((e) => ({
|
|
68702
68793
|
key: e.key,
|
|
68703
68794
|
module: e.module,
|
|
68704
|
-
relation:
|
|
68795
|
+
relation: qJ(e.relation, f),
|
|
68705
68796
|
unscoped: !0
|
|
68706
|
-
})), "", d, { cacheMs: 3e4 }),
|
|
68707
|
-
...
|
|
68708
|
-
...
|
|
68709
|
-
},
|
|
68710
|
-
counts:
|
|
68797
|
+
})), h = hK(m, "", d, { cacheMs: 3e4 }), g = nY(p, f, d), _ = {
|
|
68798
|
+
...h.counts,
|
|
68799
|
+
...g.counts
|
|
68800
|
+
}, v = m.length > 0 && h.loading || g.loading, y = v ? [] : lJ(p, _, f), b = nq(e?.panels).filter((e) => e && $(e.key) && sq(e, {}, f)), x = b.filter((e) => e.area === "grid"), S = b.filter((e) => e.area !== "side" && e.area !== "grid"), C = b.filter((e) => e.area === "side"), w = cq(e?.buttons, {}, f), T = oq(aq(e?.title, {}, f)) || "Dashboard", E = oq(aq(e?.greeting, {}, f)), D = oq(aq(e?.subtitle, {}, f)), O = {
|
|
68801
|
+
counts: _,
|
|
68711
68802
|
kpis: p,
|
|
68712
|
-
loading:
|
|
68803
|
+
loading: v,
|
|
68713
68804
|
ctx: f,
|
|
68714
68805
|
refreshKey: d
|
|
68715
|
-
},
|
|
68806
|
+
}, k = oq(aq(e?.user?.name, {}, f)).split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0].toUpperCase()).join(""), A = oq(aq(e?.user?.role, {}, f)), j = (/* @__PURE__ */ new Date()).toLocaleDateString([], {
|
|
68716
68807
|
weekday: "long",
|
|
68717
68808
|
day: "numeric",
|
|
68718
68809
|
month: "long",
|
|
68719
68810
|
year: "numeric"
|
|
68720
|
-
}),
|
|
68811
|
+
}), M = nq(e?.links).filter((e) => e && $(e.key) && sq(e, {}, f)), N = v ? [] : nq(e?.chips).filter((e) => e && $(e.key) && sq(e, {}, f)).map((e) => ({
|
|
68812
|
+
key: e.key,
|
|
68813
|
+
to: JJ(e.to, f),
|
|
68814
|
+
icon: e.icon ? tq(e.icon) : null,
|
|
68815
|
+
text: oq(typeof e.text == "function" ? e.text(_, f) : aq(e.text, {}, f))
|
|
68816
|
+
})).filter((e) => $(e.text));
|
|
68721
68817
|
return /* @__PURE__ */ Z("div", {
|
|
68722
68818
|
className: "cc-dash",
|
|
68723
68819
|
"data-profile": e?.key,
|
|
@@ -68731,7 +68827,7 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68731
68827
|
gap: 16
|
|
68732
68828
|
},
|
|
68733
68829
|
children: [
|
|
68734
|
-
/* @__PURE__ */ X(
|
|
68830
|
+
/* @__PURE__ */ X(tY, {}),
|
|
68735
68831
|
/* @__PURE__ */ Z("div", {
|
|
68736
68832
|
className: "cc-dash-hero__top",
|
|
68737
68833
|
style: {
|
|
@@ -68751,7 +68847,7 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68751
68847
|
minWidth: 0,
|
|
68752
68848
|
flex: "1 1 320px"
|
|
68753
68849
|
},
|
|
68754
|
-
children: [
|
|
68850
|
+
children: [k ? /* @__PURE__ */ X("span", {
|
|
68755
68851
|
className: "cc-dash-hero__avatar",
|
|
68756
68852
|
"aria-hidden": "true",
|
|
68757
68853
|
style: {
|
|
@@ -68764,23 +68860,23 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68764
68860
|
fontWeight: 700,
|
|
68765
68861
|
fontSize: 20
|
|
68766
68862
|
},
|
|
68767
|
-
children:
|
|
68863
|
+
children: k
|
|
68768
68864
|
}) : null, /* @__PURE__ */ Z("div", {
|
|
68769
68865
|
style: { minWidth: 0 },
|
|
68770
68866
|
children: [
|
|
68771
68867
|
/* @__PURE__ */ X("div", {
|
|
68772
68868
|
className: "cc-dash-hero__eyebrow",
|
|
68773
|
-
children: [
|
|
68869
|
+
children: [j, A].filter(Boolean).join(" · ")
|
|
68774
68870
|
}),
|
|
68775
68871
|
/* @__PURE__ */ X(Os.Title, {
|
|
68776
68872
|
level: 2,
|
|
68777
68873
|
className: "cc-dash-hero__title",
|
|
68778
68874
|
style: { margin: 0 },
|
|
68779
|
-
children:
|
|
68875
|
+
children: E || T
|
|
68780
68876
|
}),
|
|
68781
|
-
|
|
68877
|
+
D ? /* @__PURE__ */ X("div", {
|
|
68782
68878
|
className: "cc-dash-hero__sub",
|
|
68783
|
-
children:
|
|
68879
|
+
children: D
|
|
68784
68880
|
}) : null
|
|
68785
68881
|
]
|
|
68786
68882
|
})]
|
|
@@ -68814,7 +68910,7 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68814
68910
|
"aria-label": "Refresh"
|
|
68815
68911
|
})
|
|
68816
68912
|
}),
|
|
68817
|
-
|
|
68913
|
+
w.map((e) => /* @__PURE__ */ X(z, {
|
|
68818
68914
|
type: e.type,
|
|
68819
68915
|
className: e.className,
|
|
68820
68916
|
danger: e.danger,
|
|
@@ -68844,22 +68940,51 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68844
68940
|
gap: 8
|
|
68845
68941
|
},
|
|
68846
68942
|
"aria-live": "polite",
|
|
68847
|
-
children: [
|
|
68848
|
-
|
|
68849
|
-
|
|
68850
|
-
|
|
68851
|
-
|
|
68852
|
-
|
|
68853
|
-
|
|
68854
|
-
|
|
68855
|
-
|
|
68856
|
-
|
|
68857
|
-
|
|
68858
|
-
|
|
68859
|
-
|
|
68860
|
-
|
|
68861
|
-
|
|
68862
|
-
|
|
68943
|
+
children: [
|
|
68944
|
+
N.map((e) => $(e.to) ? /* @__PURE__ */ Z("button", {
|
|
68945
|
+
type: "button",
|
|
68946
|
+
className: "cc-dash-hero__chip is-link",
|
|
68947
|
+
"data-chip": e.key,
|
|
68948
|
+
onClick: () => f.navigate(e.to),
|
|
68949
|
+
children: [
|
|
68950
|
+
e.icon,
|
|
68951
|
+
" ",
|
|
68952
|
+
e.text
|
|
68953
|
+
]
|
|
68954
|
+
}, e.key) : /* @__PURE__ */ Z("span", {
|
|
68955
|
+
className: "cc-dash-hero__chip",
|
|
68956
|
+
"data-chip": e.key,
|
|
68957
|
+
children: [
|
|
68958
|
+
e.icon,
|
|
68959
|
+
" ",
|
|
68960
|
+
e.text
|
|
68961
|
+
]
|
|
68962
|
+
}, e.key)),
|
|
68963
|
+
p.some((e) => e.attention) && !v && e?.attentionChip !== !1 ? /* @__PURE__ */ Z("span", {
|
|
68964
|
+
className: `cc-dash-hero__chip ${y.length ? "is-warn" : "is-ok"}`,
|
|
68965
|
+
children: [
|
|
68966
|
+
y.length ? /* @__PURE__ */ X($l, { "aria-hidden": "true" }) : /* @__PURE__ */ X(Ys, { "aria-hidden": "true" }),
|
|
68967
|
+
" ",
|
|
68968
|
+
y.length ? typeof e?.attentionChip == "function" ? oq(e.attentionChip(y.length, y)) : `${y.length} ${y.length === 1 ? "thing needs" : "things need"} your attention` : "All caught up"
|
|
68969
|
+
]
|
|
68970
|
+
}) : null,
|
|
68971
|
+
/* @__PURE__ */ Z("span", {
|
|
68972
|
+
className: "cc-dash-hero__chip",
|
|
68973
|
+
"data-chip": "updated",
|
|
68974
|
+
title: "When these numbers were last loaded. Press refresh to load them again.",
|
|
68975
|
+
children: [
|
|
68976
|
+
/* @__PURE__ */ X(Qs, { "aria-hidden": "true" }),
|
|
68977
|
+
" ",
|
|
68978
|
+
oq(aq(e?.updatedLabel, {}, f)) || "Updated",
|
|
68979
|
+
" ",
|
|
68980
|
+
l.toLocaleTimeString([], {
|
|
68981
|
+
hour: "2-digit",
|
|
68982
|
+
minute: "2-digit"
|
|
68983
|
+
})
|
|
68984
|
+
]
|
|
68985
|
+
})
|
|
68986
|
+
]
|
|
68987
|
+
}), M.length ? /* @__PURE__ */ X("nav", {
|
|
68863
68988
|
className: "cc-dash-hero__links",
|
|
68864
68989
|
"aria-label": "Quick links",
|
|
68865
68990
|
style: {
|
|
@@ -68867,25 +68992,25 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68867
68992
|
flexWrap: "wrap",
|
|
68868
68993
|
gap: 8
|
|
68869
68994
|
},
|
|
68870
|
-
children:
|
|
68995
|
+
children: M.map((e) => /* @__PURE__ */ X(z, {
|
|
68871
68996
|
className: "cc-dash-hero__link",
|
|
68872
68997
|
icon: tq(e.icon),
|
|
68873
|
-
onClick: () => f.navigate(
|
|
68998
|
+
onClick: () => f.navigate(JJ(e.to, f)),
|
|
68874
68999
|
children: oq(aq(e.label, {}, f))
|
|
68875
69000
|
}, e.key))
|
|
68876
69001
|
}) : null]
|
|
68877
69002
|
})
|
|
68878
69003
|
]
|
|
68879
69004
|
}),
|
|
68880
|
-
e?.attentionBar !== !1 && p.some((e) => e.attention) && (
|
|
68881
|
-
className: `cc-dash-attention${
|
|
69005
|
+
e?.attentionBar !== !1 && p.some((e) => e.attention) && (v || y.length > 0) ? /* @__PURE__ */ X("section", {
|
|
69006
|
+
className: `cc-dash-attention${y.length ? "" : " is-clear"}`,
|
|
68882
69007
|
"aria-label": "Needs attention",
|
|
68883
69008
|
"aria-live": "polite",
|
|
68884
|
-
children:
|
|
69009
|
+
children: v ? /* @__PURE__ */ X(vs.Input, {
|
|
68885
69010
|
active: !0,
|
|
68886
69011
|
size: "small",
|
|
68887
69012
|
style: { width: 240 }
|
|
68888
|
-
}) :
|
|
69013
|
+
}) : y.length ? /* @__PURE__ */ X("ul", {
|
|
68889
69014
|
style: {
|
|
68890
69015
|
listStyle: "none",
|
|
68891
69016
|
margin: 0,
|
|
@@ -68894,7 +69019,7 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68894
69019
|
gap: 8,
|
|
68895
69020
|
gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 260px), 1fr))"
|
|
68896
69021
|
},
|
|
68897
|
-
children:
|
|
69022
|
+
children: y.map((e) => /* @__PURE__ */ Z("li", {
|
|
68898
69023
|
className: "cc-dash-attention__item",
|
|
68899
69024
|
style: {
|
|
68900
69025
|
display: "flex",
|
|
@@ -68940,15 +69065,15 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68940
69065
|
gap: 12,
|
|
68941
69066
|
gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 150px), 1fr))"
|
|
68942
69067
|
},
|
|
68943
|
-
children: p.filter((e) => e.show !== !1).map((e) => /* @__PURE__ */ X(
|
|
69068
|
+
children: p.filter((e) => e.show !== !1).map((e) => /* @__PURE__ */ X(rY, {
|
|
68944
69069
|
kpi: e,
|
|
68945
|
-
value:
|
|
68946
|
-
loading:
|
|
69070
|
+
value: _[e.key],
|
|
69071
|
+
loading: v && _[e.key] === void 0,
|
|
68947
69072
|
ctx: f,
|
|
68948
69073
|
refreshKey: d
|
|
68949
69074
|
}, e.key))
|
|
68950
69075
|
}) : null,
|
|
68951
|
-
|
|
69076
|
+
x.length ? /* @__PURE__ */ X("div", {
|
|
68952
69077
|
className: "cc-dash-charts",
|
|
68953
69078
|
style: {
|
|
68954
69079
|
display: "grid",
|
|
@@ -68956,17 +69081,17 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68956
69081
|
gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 320px), 1fr))",
|
|
68957
69082
|
alignItems: "stretch"
|
|
68958
69083
|
},
|
|
68959
|
-
children:
|
|
69084
|
+
children: x.map((e) => /* @__PURE__ */ X(sY, {
|
|
68960
69085
|
panel: e,
|
|
68961
|
-
...
|
|
69086
|
+
...O
|
|
68962
69087
|
}, e.key))
|
|
68963
69088
|
}) : null,
|
|
68964
|
-
|
|
68965
|
-
className: `cc-dash-grid${
|
|
69089
|
+
S.length || C.length ? /* @__PURE__ */ Z("div", {
|
|
69090
|
+
className: `cc-dash-grid${C.length ? " has-side" : ""}`,
|
|
68966
69091
|
style: {
|
|
68967
69092
|
display: "grid",
|
|
68968
69093
|
gap: 16,
|
|
68969
|
-
gridTemplateColumns:
|
|
69094
|
+
gridTemplateColumns: C.length ? "repeat(auto-fit, minmax(min(100%, 340px), 1fr))" : "1fr",
|
|
68970
69095
|
alignItems: "start"
|
|
68971
69096
|
},
|
|
68972
69097
|
children: [/* @__PURE__ */ X("div", {
|
|
@@ -68976,20 +69101,20 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68976
69101
|
gap: 16,
|
|
68977
69102
|
minWidth: 0
|
|
68978
69103
|
},
|
|
68979
|
-
children:
|
|
69104
|
+
children: S.map((e) => /* @__PURE__ */ X(sY, {
|
|
68980
69105
|
panel: e,
|
|
68981
|
-
...
|
|
69106
|
+
...O
|
|
68982
69107
|
}, e.key))
|
|
68983
|
-
}),
|
|
69108
|
+
}), C.length ? /* @__PURE__ */ X("div", {
|
|
68984
69109
|
className: "cc-dash-side",
|
|
68985
69110
|
style: {
|
|
68986
69111
|
display: "grid",
|
|
68987
69112
|
gap: 16,
|
|
68988
69113
|
minWidth: 0
|
|
68989
69114
|
},
|
|
68990
|
-
children:
|
|
69115
|
+
children: C.map((e) => /* @__PURE__ */ X(sY, {
|
|
68991
69116
|
panel: e,
|
|
68992
|
-
...
|
|
69117
|
+
...O
|
|
68993
69118
|
}, e.key))
|
|
68994
69119
|
}) : null]
|
|
68995
69120
|
}) : null
|
|
@@ -68998,7 +69123,7 @@ function aY({ config: e, refreshKey: t = 0 }) {
|
|
|
68998
69123
|
}
|
|
68999
69124
|
//#endregion
|
|
69000
69125
|
//#region src/components/COMBAINED_COMPONENTS/helpers/details/detailsUtils.js
|
|
69001
|
-
var
|
|
69126
|
+
var lY = {
|
|
69002
69127
|
...eq,
|
|
69003
69128
|
assessment: zc,
|
|
69004
69129
|
audit: zs,
|
|
@@ -69016,13 +69141,13 @@ var oY = {
|
|
|
69016
69141
|
video: Xl,
|
|
69017
69142
|
wallet: Zl
|
|
69018
69143
|
};
|
|
69019
|
-
function
|
|
69144
|
+
function uY(e) {
|
|
69020
69145
|
if (!e) return null;
|
|
69021
69146
|
if (typeof e != "string") return e;
|
|
69022
|
-
let t =
|
|
69147
|
+
let t = lY[e.trim().toLowerCase()];
|
|
69023
69148
|
return t ? Po(t) : null;
|
|
69024
69149
|
}
|
|
69025
|
-
var
|
|
69150
|
+
var dY = (e) => `calc(${e} * var(--cc-ds-u, 1.5px))`, fY = (e, t) => `max(${t}px, ${dY(e)})`, pY = {
|
|
69026
69151
|
neutral: ["#5b6475", "#f1f3f7"],
|
|
69027
69152
|
brand: ["var(--ant-color-primary, #1677ff)", "var(--ant-color-primary-bg, #e6f4ff)"],
|
|
69028
69153
|
green: ["#00c26b", "#e6f9f0"],
|
|
@@ -69033,15 +69158,15 @@ var cY = (e) => `calc(${e} * var(--cc-ds-u, 1.5px))`, lY = (e, t) => `max(${t}px
|
|
|
69033
69158
|
pink: ["#d6338a", "#fde8f2"],
|
|
69034
69159
|
red: ["#e5484d", "#fdecec"]
|
|
69035
69160
|
};
|
|
69036
|
-
Object.keys(
|
|
69037
|
-
function
|
|
69038
|
-
let t =
|
|
69161
|
+
Object.keys(pY);
|
|
69162
|
+
function mY(e) {
|
|
69163
|
+
let t = pY[e] ? e : "neutral", [n, r] = pY[t];
|
|
69039
69164
|
return {
|
|
69040
69165
|
fg: `var(--cc-ds-tone-${t}-fg, ${n})`,
|
|
69041
69166
|
bg: `var(--cc-ds-tone-${t}-bg, ${r})`
|
|
69042
69167
|
};
|
|
69043
69168
|
}
|
|
69044
|
-
var
|
|
69169
|
+
var hY = {
|
|
69045
69170
|
ink: "var(--cc-ds-ink, #252744)",
|
|
69046
69171
|
value: "var(--cc-ds-value, #17202c)",
|
|
69047
69172
|
muted: "var(--cc-ds-muted, #8590aa)",
|
|
@@ -69050,7 +69175,7 @@ var fY = {
|
|
|
69050
69175
|
link: "var(--cc-ds-link, var(--ant-color-primary, #1677ff))",
|
|
69051
69176
|
track: "var(--cc-ds-track, #eef0f6)"
|
|
69052
69177
|
};
|
|
69053
|
-
function
|
|
69178
|
+
function gY(e, t) {
|
|
69054
69179
|
if (typeof e == "number" && Number.isFinite(e)) try {
|
|
69055
69180
|
return new Intl.NumberFormat(t).format(e);
|
|
69056
69181
|
} catch {
|
|
@@ -69058,11 +69183,11 @@ function pY(e, t) {
|
|
|
69058
69183
|
}
|
|
69059
69184
|
return typeof e == "boolean" ? e ? "Yes" : "No" : oq(e);
|
|
69060
69185
|
}
|
|
69061
|
-
function
|
|
69062
|
-
let a =
|
|
69186
|
+
function _Y(e, t, n, { locale: r, placeholder: i = "–" } = {}) {
|
|
69187
|
+
let a = gY(iq(e, t, n), r);
|
|
69063
69188
|
return $(a) ? a : i;
|
|
69064
69189
|
}
|
|
69065
|
-
function
|
|
69190
|
+
function vY(e, t, n) {
|
|
69066
69191
|
let r = iq(e.items, t, n), i = Array.isArray(r) ? r : [], a = e.map && typeof e.map == "object" ? e.map : null, o = Number.isFinite(e.limit) && e.limit >= 0 ? i.slice(0, e.limit) : i;
|
|
69067
69192
|
return a ? o.map((e) => {
|
|
69068
69193
|
if (!e || typeof e != "object") return e;
|
|
@@ -69072,83 +69197,83 @@ function hY(e, t, n) {
|
|
|
69072
69197
|
}), t;
|
|
69073
69198
|
}) : o;
|
|
69074
69199
|
}
|
|
69075
|
-
var
|
|
69076
|
-
text: (e, t, n, r) => !$(
|
|
69200
|
+
var yY = (e, t) => gY(e && typeof e == "object" ? e.text ?? e.label ?? e.title : e, t), bY = (e) => (t, n, r, i) => !vY(t, n, r).some((t) => t && typeof t == "object" && $(gY(t[e], i))), xY = (e, t, n) => (Array.isArray(e.items) ? e.items : []).filter((e) => e && sq(e, t, n)), SY = {
|
|
69201
|
+
text: (e, t, n, r) => !$(_Y(e.value, t, n, {
|
|
69077
69202
|
locale: r,
|
|
69078
69203
|
placeholder: ""
|
|
69079
69204
|
})),
|
|
69080
|
-
fields: (e, t, n) =>
|
|
69081
|
-
stats: (e, t, n) =>
|
|
69082
|
-
list: (e, t, n, r) => !
|
|
69083
|
-
tags: (e, t, n, r) => !
|
|
69084
|
-
callout: (e, t, n, r) => !$(aq(e.title, t, n)) && !$(
|
|
69205
|
+
fields: (e, t, n) => xY(e, t, n).length === 0,
|
|
69206
|
+
stats: (e, t, n) => xY(e, t, n).length === 0,
|
|
69207
|
+
list: (e, t, n, r) => !vY(e, t, n).some((e) => $(yY(e, r))),
|
|
69208
|
+
tags: (e, t, n, r) => !vY(e, t, n).some((e) => $(gY(e && typeof e == "object" ? e.label : e, r))),
|
|
69209
|
+
callout: (e, t, n, r) => !$(aq(e.title, t, n)) && !$(_Y(e.text, t, n, {
|
|
69085
69210
|
locale: r,
|
|
69086
69211
|
placeholder: ""
|
|
69087
69212
|
})),
|
|
69088
|
-
timeline:
|
|
69089
|
-
people:
|
|
69090
|
-
files:
|
|
69213
|
+
timeline: bY("title"),
|
|
69214
|
+
people: bY("name"),
|
|
69215
|
+
files: bY("name"),
|
|
69091
69216
|
progress: (e, t, n) => !Number.isFinite(Number(iq(e.percent, t, n)))
|
|
69092
69217
|
};
|
|
69093
|
-
function
|
|
69094
|
-
return
|
|
69218
|
+
function CY(e, t, n, r) {
|
|
69219
|
+
return SY[e?.type]?.(e, t, n, r) ?? !1;
|
|
69095
69220
|
}
|
|
69096
69221
|
//#endregion
|
|
69097
69222
|
//#region src/components/COMBAINED_COMPONENTS/helpers/details/detailsBlocks.jsx
|
|
69098
|
-
var
|
|
69223
|
+
var wY = (e) => ({
|
|
69099
69224
|
display: "flex",
|
|
69100
69225
|
flexDirection: "column",
|
|
69101
|
-
gap:
|
|
69226
|
+
gap: dY(e),
|
|
69102
69227
|
minWidth: 0
|
|
69103
|
-
}),
|
|
69228
|
+
}), TY = {
|
|
69104
69229
|
body: {
|
|
69105
|
-
fontSize:
|
|
69230
|
+
fontSize: fY(7.16, 11),
|
|
69106
69231
|
fontWeight: 600,
|
|
69107
69232
|
lineHeight: 1.5,
|
|
69108
|
-
color:
|
|
69233
|
+
color: hY.muted
|
|
69109
69234
|
},
|
|
69110
69235
|
label: {
|
|
69111
|
-
fontSize:
|
|
69236
|
+
fontSize: fY(6.6, 11),
|
|
69112
69237
|
fontWeight: 600,
|
|
69113
69238
|
lineHeight: 1.5,
|
|
69114
|
-
color:
|
|
69239
|
+
color: hY.muted
|
|
69115
69240
|
},
|
|
69116
69241
|
value: {
|
|
69117
|
-
fontSize:
|
|
69242
|
+
fontSize: fY(6.6, 11),
|
|
69118
69243
|
fontWeight: 400,
|
|
69119
69244
|
lineHeight: 1.5,
|
|
69120
|
-
color:
|
|
69245
|
+
color: hY.value
|
|
69121
69246
|
},
|
|
69122
69247
|
small: {
|
|
69123
|
-
fontSize:
|
|
69248
|
+
fontSize: fY(5.5, 10),
|
|
69124
69249
|
fontWeight: 600,
|
|
69125
69250
|
lineHeight: 1.5,
|
|
69126
|
-
color:
|
|
69251
|
+
color: hY.muted
|
|
69127
69252
|
},
|
|
69128
69253
|
strong: {
|
|
69129
|
-
fontSize:
|
|
69254
|
+
fontSize: fY(7.16, 11),
|
|
69130
69255
|
fontWeight: 700,
|
|
69131
69256
|
lineHeight: 1.5,
|
|
69132
|
-
color:
|
|
69257
|
+
color: hY.ink
|
|
69133
69258
|
},
|
|
69134
69259
|
stat: {
|
|
69135
|
-
fontSize:
|
|
69260
|
+
fontSize: fY(9.36, 13),
|
|
69136
69261
|
fontWeight: 600,
|
|
69137
69262
|
lineHeight: 1.5,
|
|
69138
|
-
color:
|
|
69263
|
+
color: hY.ink
|
|
69139
69264
|
},
|
|
69140
69265
|
sub: {
|
|
69141
|
-
fontSize:
|
|
69266
|
+
fontSize: fY(6.6, 11),
|
|
69142
69267
|
fontWeight: 600,
|
|
69143
69268
|
lineHeight: 1.5,
|
|
69144
|
-
color:
|
|
69269
|
+
color: hY.ink,
|
|
69145
69270
|
margin: 0
|
|
69146
69271
|
}
|
|
69147
69272
|
};
|
|
69148
|
-
function
|
|
69149
|
-
let r =
|
|
69273
|
+
function EY({ icon: e, tone: t, size: n = 13 }) {
|
|
69274
|
+
let r = uY(e);
|
|
69150
69275
|
if (!r) return null;
|
|
69151
|
-
let i =
|
|
69276
|
+
let i = mY(t);
|
|
69152
69277
|
return /* @__PURE__ */ X("span", {
|
|
69153
69278
|
className: "cc-details__badge",
|
|
69154
69279
|
"data-tone": t || "neutral",
|
|
@@ -69158,18 +69283,18 @@ function CY({ icon: e, tone: t, size: n = 13 }) {
|
|
|
69158
69283
|
alignItems: "center",
|
|
69159
69284
|
justifyContent: "center",
|
|
69160
69285
|
flex: "none",
|
|
69161
|
-
width:
|
|
69162
|
-
height:
|
|
69163
|
-
borderRadius:
|
|
69286
|
+
width: dY(n),
|
|
69287
|
+
height: dY(n),
|
|
69288
|
+
borderRadius: dY(n * .28),
|
|
69164
69289
|
background: i.bg,
|
|
69165
69290
|
color: i.fg,
|
|
69166
|
-
fontSize:
|
|
69291
|
+
fontSize: dY(n * .58)
|
|
69167
69292
|
},
|
|
69168
69293
|
children: r
|
|
69169
69294
|
});
|
|
69170
69295
|
}
|
|
69171
|
-
function
|
|
69172
|
-
let i =
|
|
69296
|
+
function DY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69297
|
+
let i = _Y(e.value, t, n, {
|
|
69173
69298
|
locale: r,
|
|
69174
69299
|
placeholder: ""
|
|
69175
69300
|
}), a = Number.isFinite(e.lines) && e.lines > 0 ? e.lines : 0, [o, s] = R(!1), [c, l] = R(!1), u = Vo(null);
|
|
@@ -69188,12 +69313,12 @@ function wY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69188
69313
|
overflow: "hidden"
|
|
69189
69314
|
} : {}, f = aq(e.more ?? "Show More", t, n), p = aq(e.less ?? "Show Less", t, n);
|
|
69190
69315
|
return /* @__PURE__ */ Z("div", {
|
|
69191
|
-
style:
|
|
69316
|
+
style: wY(3),
|
|
69192
69317
|
children: [/* @__PURE__ */ X("p", {
|
|
69193
69318
|
ref: u,
|
|
69194
69319
|
className: "cc-details__text",
|
|
69195
69320
|
style: {
|
|
69196
|
-
...
|
|
69321
|
+
...TY.body,
|
|
69197
69322
|
margin: 0,
|
|
69198
69323
|
whiteSpace: "pre-line",
|
|
69199
69324
|
...d
|
|
@@ -69210,28 +69335,28 @@ function wY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69210
69335
|
border: 0,
|
|
69211
69336
|
background: "none",
|
|
69212
69337
|
cursor: "pointer",
|
|
69213
|
-
color:
|
|
69214
|
-
fontSize:
|
|
69338
|
+
color: hY.link,
|
|
69339
|
+
fontSize: fY(6.05, 11),
|
|
69215
69340
|
fontWeight: 600,
|
|
69216
69341
|
display: "inline-flex",
|
|
69217
69342
|
alignItems: "center",
|
|
69218
|
-
gap:
|
|
69343
|
+
gap: dY(2)
|
|
69219
69344
|
},
|
|
69220
|
-
children: [o ? p : f, X(o ? Wl : gc, { style: { fontSize:
|
|
69345
|
+
children: [o ? p : f, X(o ? Wl : gc, { style: { fontSize: dY(4.5) } })]
|
|
69221
69346
|
})]
|
|
69222
69347
|
});
|
|
69223
69348
|
}
|
|
69224
|
-
function
|
|
69349
|
+
function OY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69225
69350
|
let i = (Array.isArray(e.items) ? e.items : []).filter((e) => e && sq(e, t, n));
|
|
69226
69351
|
if (!i.length) return null;
|
|
69227
|
-
let a = Number.isFinite(e.columns) && e.columns > 0 ? e.columns : 1, o = 6.6, s = Number.isFinite(e.minPairWidth) ? e.minPairWidth : 130, c = `calc((100% - ${a - 1} * ${
|
|
69352
|
+
let a = Number.isFinite(e.columns) && e.columns > 0 ? e.columns : 1, o = 6.6, s = Number.isFinite(e.minPairWidth) ? e.minPairWidth : 130, c = `calc((100% - ${a - 1} * ${dY(o)}) / ${a})`, l = Number.isFinite(e.labelWidth) ? dY(e.labelWidth) : "minmax(0, 1fr)";
|
|
69228
69353
|
return /* @__PURE__ */ X("dl", {
|
|
69229
69354
|
className: "cc-details__fields",
|
|
69230
69355
|
style: {
|
|
69231
69356
|
display: "grid",
|
|
69232
|
-
gridTemplateColumns: `repeat(auto-fit, minmax(max(${
|
|
69233
|
-
columnGap:
|
|
69234
|
-
rowGap:
|
|
69357
|
+
gridTemplateColumns: `repeat(auto-fit, minmax(max(${dY(s)}, ${c}), 1fr))`,
|
|
69358
|
+
columnGap: dY(o),
|
|
69359
|
+
rowGap: dY(2.2),
|
|
69235
69360
|
margin: 0
|
|
69236
69361
|
},
|
|
69237
69362
|
children: i.map((e) => /* @__PURE__ */ Z("div", {
|
|
@@ -69239,56 +69364,56 @@ function TY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69239
69364
|
style: {
|
|
69240
69365
|
display: "grid",
|
|
69241
69366
|
gridTemplateColumns: `${l} minmax(0, 1fr)`,
|
|
69242
|
-
columnGap:
|
|
69367
|
+
columnGap: dY(4),
|
|
69243
69368
|
minWidth: 0
|
|
69244
69369
|
},
|
|
69245
69370
|
children: [/* @__PURE__ */ X("dt", {
|
|
69246
69371
|
style: {
|
|
69247
|
-
...
|
|
69372
|
+
...TY.label,
|
|
69248
69373
|
margin: 0
|
|
69249
69374
|
},
|
|
69250
69375
|
children: aq(e.label, t, n)
|
|
69251
69376
|
}), /* @__PURE__ */ X("dd", {
|
|
69252
69377
|
style: {
|
|
69253
|
-
...
|
|
69378
|
+
...TY.value,
|
|
69254
69379
|
margin: 0,
|
|
69255
69380
|
overflowWrap: "anywhere"
|
|
69256
69381
|
},
|
|
69257
|
-
children:
|
|
69382
|
+
children: _Y(e.value, t, n, { locale: r })
|
|
69258
69383
|
})]
|
|
69259
69384
|
}, e.key ?? aq(e.label, t, n)))
|
|
69260
69385
|
});
|
|
69261
69386
|
}
|
|
69262
|
-
function
|
|
69263
|
-
let i =
|
|
69387
|
+
function kY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69388
|
+
let i = vY(e, t, n).map((e) => e && typeof e == "object" ? e : { text: e }), a = e.variant || "bullet", o = mY(e.tone || (a === "check" ? "green" : "neutral")), s = i.filter((e) => $(gY(e.text ?? e.label ?? e.title, r)));
|
|
69264
69389
|
return s.length ? /* @__PURE__ */ X("ul", {
|
|
69265
69390
|
className: `cc-details__list cc-details__list--${a}`,
|
|
69266
69391
|
style: {
|
|
69267
|
-
...
|
|
69392
|
+
...wY(a === "check" ? 3.3 : 1.6),
|
|
69268
69393
|
listStyle: "none",
|
|
69269
69394
|
margin: 0,
|
|
69270
69395
|
padding: 0
|
|
69271
69396
|
},
|
|
69272
69397
|
children: s.map((e, t) => {
|
|
69273
|
-
let n =
|
|
69398
|
+
let n = gY(e.text ?? e.label ?? e.title, r), i = gY(e.meta, r);
|
|
69274
69399
|
return /* @__PURE__ */ Z("li", {
|
|
69275
69400
|
style: {
|
|
69276
69401
|
display: "flex",
|
|
69277
69402
|
alignItems: "flex-start",
|
|
69278
|
-
gap:
|
|
69279
|
-
...a === "plain" ?
|
|
69280
|
-
color:
|
|
69403
|
+
gap: dY(a === "check" ? 3.3 : 2.4),
|
|
69404
|
+
...a === "plain" ? TY.value : TY.label,
|
|
69405
|
+
color: hY.muted
|
|
69281
69406
|
},
|
|
69282
69407
|
children: [
|
|
69283
69408
|
a === "bullet" && /* @__PURE__ */ X("span", {
|
|
69284
69409
|
"aria-hidden": "true",
|
|
69285
69410
|
style: {
|
|
69286
69411
|
flex: "none",
|
|
69287
|
-
width:
|
|
69288
|
-
height:
|
|
69289
|
-
marginTop:
|
|
69412
|
+
width: dY(1.8),
|
|
69413
|
+
height: dY(1.8),
|
|
69414
|
+
marginTop: dY(3.2),
|
|
69290
69415
|
borderRadius: "50%",
|
|
69291
|
-
background:
|
|
69416
|
+
background: hY.muted
|
|
69292
69417
|
}
|
|
69293
69418
|
}),
|
|
69294
69419
|
a === "check" && /* @__PURE__ */ X("span", {
|
|
@@ -69296,11 +69421,11 @@ function EY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69296
69421
|
style: {
|
|
69297
69422
|
flex: "none",
|
|
69298
69423
|
color: o.fg,
|
|
69299
|
-
fontSize:
|
|
69424
|
+
fontSize: dY(7),
|
|
69300
69425
|
lineHeight: 1,
|
|
69301
|
-
marginTop:
|
|
69426
|
+
marginTop: dY(1.2)
|
|
69302
69427
|
},
|
|
69303
|
-
children:
|
|
69428
|
+
children: uY("check")
|
|
69304
69429
|
}),
|
|
69305
69430
|
/* @__PURE__ */ Z("span", {
|
|
69306
69431
|
style: { minWidth: 0 },
|
|
@@ -69311,7 +69436,7 @@ function EY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69311
69436
|
}),
|
|
69312
69437
|
$(i) && /* @__PURE__ */ X("span", {
|
|
69313
69438
|
className: "cc-details__item-sep",
|
|
69314
|
-
style: { margin: `0 ${
|
|
69439
|
+
style: { margin: `0 ${dY(4)}` },
|
|
69315
69440
|
"aria-hidden": "true",
|
|
69316
69441
|
children: "•"
|
|
69317
69442
|
}),
|
|
@@ -69326,8 +69451,8 @@ function EY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69326
69451
|
})
|
|
69327
69452
|
}) : null;
|
|
69328
69453
|
}
|
|
69329
|
-
function
|
|
69330
|
-
let i = aq(e.title, t, n), a =
|
|
69454
|
+
function AY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69455
|
+
let i = aq(e.title, t, n), a = _Y(e.text, t, n, {
|
|
69331
69456
|
locale: r,
|
|
69332
69457
|
placeholder: ""
|
|
69333
69458
|
});
|
|
@@ -69335,27 +69460,27 @@ function DY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69335
69460
|
className: "cc-details__callout",
|
|
69336
69461
|
style: {
|
|
69337
69462
|
display: "flex",
|
|
69338
|
-
gap:
|
|
69463
|
+
gap: dY(6.6),
|
|
69339
69464
|
alignItems: "flex-start"
|
|
69340
69465
|
},
|
|
69341
|
-
children: [/* @__PURE__ */ X(
|
|
69466
|
+
children: [/* @__PURE__ */ X(EY, {
|
|
69342
69467
|
icon: e.icon,
|
|
69343
69468
|
tone: e.tone,
|
|
69344
69469
|
size: 15.4
|
|
69345
69470
|
}), /* @__PURE__ */ Z("div", {
|
|
69346
|
-
style:
|
|
69471
|
+
style: wY(1.1),
|
|
69347
69472
|
children: [$(i) && /* @__PURE__ */ X("span", {
|
|
69348
|
-
style:
|
|
69473
|
+
style: TY.strong,
|
|
69349
69474
|
children: i
|
|
69350
69475
|
}), $(a) && /* @__PURE__ */ X("span", {
|
|
69351
|
-
style:
|
|
69476
|
+
style: TY.small,
|
|
69352
69477
|
children: a
|
|
69353
69478
|
})]
|
|
69354
69479
|
})]
|
|
69355
69480
|
});
|
|
69356
69481
|
}
|
|
69357
|
-
function
|
|
69358
|
-
let i =
|
|
69482
|
+
function jY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69483
|
+
let i = vY(e, t, n).filter((e) => e && typeof e == "object");
|
|
69359
69484
|
return i.length ? /* @__PURE__ */ X("ol", {
|
|
69360
69485
|
className: "cc-details__timeline",
|
|
69361
69486
|
style: {
|
|
@@ -69368,8 +69493,8 @@ function OY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69368
69493
|
children: i.map((e, t) => /* @__PURE__ */ Z("li", {
|
|
69369
69494
|
style: {
|
|
69370
69495
|
display: "flex",
|
|
69371
|
-
gap:
|
|
69372
|
-
minHeight:
|
|
69496
|
+
gap: dY(6.6),
|
|
69497
|
+
minHeight: dY(e === i[i.length - 1] ? 13 : 34.6)
|
|
69373
69498
|
},
|
|
69374
69499
|
children: [/* @__PURE__ */ Z("span", {
|
|
69375
69500
|
style: {
|
|
@@ -69378,7 +69503,7 @@ function OY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69378
69503
|
alignItems: "center",
|
|
69379
69504
|
flex: "none"
|
|
69380
69505
|
},
|
|
69381
|
-
children: [/* @__PURE__ */ X(
|
|
69506
|
+
children: [/* @__PURE__ */ X(EY, {
|
|
69382
69507
|
icon: e.icon,
|
|
69383
69508
|
tone: e.tone,
|
|
69384
69509
|
size: 13.2
|
|
@@ -69386,28 +69511,28 @@ function OY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69386
69511
|
"aria-hidden": "true",
|
|
69387
69512
|
style: {
|
|
69388
69513
|
flex: 1,
|
|
69389
|
-
width:
|
|
69390
|
-
background:
|
|
69391
|
-
margin: `${
|
|
69514
|
+
width: dY(.55),
|
|
69515
|
+
background: hY.border,
|
|
69516
|
+
margin: `${dY(2)} 0`
|
|
69392
69517
|
}
|
|
69393
69518
|
})]
|
|
69394
69519
|
}), /* @__PURE__ */ Z("span", {
|
|
69395
69520
|
style: {
|
|
69396
|
-
...
|
|
69397
|
-
paddingTop:
|
|
69521
|
+
...wY(.5),
|
|
69522
|
+
paddingTop: dY(.6)
|
|
69398
69523
|
},
|
|
69399
69524
|
children: [/* @__PURE__ */ X("span", {
|
|
69400
|
-
style:
|
|
69401
|
-
children:
|
|
69402
|
-
}), $(
|
|
69403
|
-
style:
|
|
69404
|
-
children:
|
|
69525
|
+
style: TY.strong,
|
|
69526
|
+
children: gY(e.title, r)
|
|
69527
|
+
}), $(gY(e.text, r)) && /* @__PURE__ */ X("span", {
|
|
69528
|
+
style: TY.small,
|
|
69529
|
+
children: gY(e.text, r)
|
|
69405
69530
|
})]
|
|
69406
69531
|
})]
|
|
69407
|
-
}, `${t}-${
|
|
69532
|
+
}, `${t}-${gY(e.title, r)}`))
|
|
69408
69533
|
}) : null;
|
|
69409
69534
|
}
|
|
69410
|
-
function
|
|
69535
|
+
function MY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69411
69536
|
let i = (Array.isArray(e.items) ? e.items : []).filter((e) => e && sq(e, t, n));
|
|
69412
69537
|
if (!i.length) return null;
|
|
69413
69538
|
let a = e.variant === "tiles";
|
|
@@ -69416,34 +69541,34 @@ function kY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69416
69541
|
style: {
|
|
69417
69542
|
display: "flex",
|
|
69418
69543
|
flexWrap: "wrap",
|
|
69419
|
-
columnGap:
|
|
69420
|
-
rowGap:
|
|
69544
|
+
columnGap: dY(a ? 13 : 8.8),
|
|
69545
|
+
rowGap: dY(6.6),
|
|
69421
69546
|
justifyContent: "space-between"
|
|
69422
69547
|
},
|
|
69423
69548
|
children: i.map((e) => {
|
|
69424
|
-
let i =
|
|
69549
|
+
let i = _Y(e.value, t, n, { locale: r }), o = e.valueTone ? mY(e.valueTone).fg : hY.ink;
|
|
69425
69550
|
return /* @__PURE__ */ Z("div", {
|
|
69426
69551
|
style: {
|
|
69427
69552
|
display: "flex",
|
|
69428
69553
|
alignItems: "center",
|
|
69429
|
-
gap:
|
|
69554
|
+
gap: dY(6.6),
|
|
69430
69555
|
flex: a ? "0 1 auto" : "1 0 auto"
|
|
69431
69556
|
},
|
|
69432
|
-
children: [a && /* @__PURE__ */ X(
|
|
69557
|
+
children: [a && /* @__PURE__ */ X(EY, {
|
|
69433
69558
|
icon: e.icon,
|
|
69434
69559
|
tone: e.tone,
|
|
69435
69560
|
size: 17.6
|
|
69436
69561
|
}), /* @__PURE__ */ Z("span", {
|
|
69437
|
-
style:
|
|
69562
|
+
style: wY(0),
|
|
69438
69563
|
children: [/* @__PURE__ */ X("span", {
|
|
69439
69564
|
style: {
|
|
69440
|
-
...
|
|
69565
|
+
...TY.stat,
|
|
69441
69566
|
color: o,
|
|
69442
69567
|
whiteSpace: "nowrap"
|
|
69443
69568
|
},
|
|
69444
69569
|
children: i
|
|
69445
69570
|
}), /* @__PURE__ */ X("span", {
|
|
69446
|
-
style:
|
|
69571
|
+
style: TY.small,
|
|
69447
69572
|
children: aq(e.label, t, n)
|
|
69448
69573
|
})]
|
|
69449
69574
|
})]
|
|
@@ -69451,71 +69576,71 @@ function kY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69451
69576
|
})
|
|
69452
69577
|
});
|
|
69453
69578
|
}
|
|
69454
|
-
function
|
|
69455
|
-
let i =
|
|
69579
|
+
function NY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69580
|
+
let i = vY(e, t, n).filter((e) => e && typeof e == "object" && $(gY(e.name, r)));
|
|
69456
69581
|
return i.length ? /* @__PURE__ */ X("ul", {
|
|
69457
69582
|
className: "cc-details__people",
|
|
69458
69583
|
style: {
|
|
69459
|
-
...
|
|
69584
|
+
...wY(2.2),
|
|
69460
69585
|
listStyle: "none",
|
|
69461
69586
|
margin: 0,
|
|
69462
69587
|
padding: 0
|
|
69463
69588
|
},
|
|
69464
69589
|
children: i.map((e, t) => {
|
|
69465
|
-
let n =
|
|
69590
|
+
let n = gY(e.name, r);
|
|
69466
69591
|
return /* @__PURE__ */ Z("li", {
|
|
69467
69592
|
style: {
|
|
69468
69593
|
display: "flex",
|
|
69469
69594
|
alignItems: "center",
|
|
69470
|
-
gap:
|
|
69595
|
+
gap: dY(4.4)
|
|
69471
69596
|
},
|
|
69472
69597
|
children: [/* @__PURE__ */ X(Go, {
|
|
69473
69598
|
src: $(e.avatar) ? e.avatar : void 0,
|
|
69474
69599
|
alt: "",
|
|
69475
69600
|
style: {
|
|
69476
|
-
width:
|
|
69477
|
-
height:
|
|
69478
|
-
lineHeight:
|
|
69479
|
-
fontSize:
|
|
69601
|
+
width: dY(15.4),
|
|
69602
|
+
height: dY(15.4),
|
|
69603
|
+
lineHeight: dY(15.4),
|
|
69604
|
+
fontSize: dY(6),
|
|
69480
69605
|
flex: "none"
|
|
69481
69606
|
},
|
|
69482
69607
|
children: pq(n)
|
|
69483
69608
|
}), /* @__PURE__ */ Z("span", {
|
|
69484
|
-
style:
|
|
69609
|
+
style: wY(0),
|
|
69485
69610
|
children: [/* @__PURE__ */ X("span", {
|
|
69486
69611
|
style: {
|
|
69487
|
-
...
|
|
69488
|
-
fontSize:
|
|
69612
|
+
...TY.strong,
|
|
69613
|
+
fontSize: fY(6.6, 11)
|
|
69489
69614
|
},
|
|
69490
69615
|
children: n
|
|
69491
|
-
}), $(
|
|
69492
|
-
style:
|
|
69493
|
-
children:
|
|
69616
|
+
}), $(gY(e.subtitle, r)) && /* @__PURE__ */ X("span", {
|
|
69617
|
+
style: TY.small,
|
|
69618
|
+
children: gY(e.subtitle, r)
|
|
69494
69619
|
})]
|
|
69495
69620
|
})]
|
|
69496
69621
|
}, `${t}-${n}`);
|
|
69497
69622
|
})
|
|
69498
69623
|
}) : null;
|
|
69499
69624
|
}
|
|
69500
|
-
function
|
|
69625
|
+
function PY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69501
69626
|
let i = Number(iq(e.percent, t, n));
|
|
69502
69627
|
if (!Number.isFinite(i)) return null;
|
|
69503
|
-
let a = Math.max(0, Math.min(100, i)), o =
|
|
69628
|
+
let a = Math.max(0, Math.min(100, i)), o = _Y(e.caption, t, n, {
|
|
69504
69629
|
locale: r,
|
|
69505
69630
|
placeholder: ""
|
|
69506
|
-
}), s =
|
|
69631
|
+
}), s = mY(e.tone || "brand");
|
|
69507
69632
|
return /* @__PURE__ */ Z("div", {
|
|
69508
69633
|
className: "cc-details__progress",
|
|
69509
|
-
style:
|
|
69634
|
+
style: wY(3.3),
|
|
69510
69635
|
children: [/* @__PURE__ */ X("div", {
|
|
69511
69636
|
role: "progressbar",
|
|
69512
69637
|
"aria-valuemin": 0,
|
|
69513
69638
|
"aria-valuemax": 100,
|
|
69514
69639
|
"aria-valuenow": a,
|
|
69515
69640
|
style: {
|
|
69516
|
-
height:
|
|
69517
|
-
borderRadius:
|
|
69518
|
-
background:
|
|
69641
|
+
height: dY(2.2),
|
|
69642
|
+
borderRadius: dY(2),
|
|
69643
|
+
background: hY.track,
|
|
69519
69644
|
overflow: "hidden"
|
|
69520
69645
|
},
|
|
69521
69646
|
children: /* @__PURE__ */ X("div", { style: {
|
|
@@ -69525,100 +69650,100 @@ function jY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
69525
69650
|
background: s.fg
|
|
69526
69651
|
} })
|
|
69527
69652
|
}), $(o) && /* @__PURE__ */ X("span", {
|
|
69528
|
-
style:
|
|
69653
|
+
style: TY.small,
|
|
69529
69654
|
children: o
|
|
69530
69655
|
})]
|
|
69531
69656
|
});
|
|
69532
69657
|
}
|
|
69533
|
-
function
|
|
69534
|
-
let i =
|
|
69658
|
+
function FY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69659
|
+
let i = vY(e, t, n).map((e) => e && typeof e == "object" ? e : { label: e }).filter((e) => $(gY(e.label, r)));
|
|
69535
69660
|
return i.length ? /* @__PURE__ */ X("div", {
|
|
69536
69661
|
className: "cc-details__tags",
|
|
69537
69662
|
style: {
|
|
69538
69663
|
display: "flex",
|
|
69539
69664
|
flexWrap: "wrap",
|
|
69540
|
-
gap:
|
|
69665
|
+
gap: dY(3.3)
|
|
69541
69666
|
},
|
|
69542
69667
|
children: i.map((t, n) => {
|
|
69543
|
-
let i =
|
|
69668
|
+
let i = mY(t.tone || e.tone || "neutral");
|
|
69544
69669
|
return /* @__PURE__ */ X("span", {
|
|
69545
69670
|
"data-tone": t.tone || e.tone || "neutral",
|
|
69546
69671
|
style: {
|
|
69547
69672
|
display: "inline-flex",
|
|
69548
69673
|
alignItems: "center",
|
|
69549
|
-
padding: `${
|
|
69550
|
-
borderRadius:
|
|
69674
|
+
padding: `${dY(1.6)} ${dY(4.4)}`,
|
|
69675
|
+
borderRadius: dY(3),
|
|
69551
69676
|
background: i.bg,
|
|
69552
|
-
color: e.tone || t.tone ? i.fg :
|
|
69553
|
-
fontSize:
|
|
69677
|
+
color: e.tone || t.tone ? i.fg : hY.muted,
|
|
69678
|
+
fontSize: fY(5.5, 10),
|
|
69554
69679
|
fontWeight: 400,
|
|
69555
69680
|
lineHeight: 1.5
|
|
69556
69681
|
},
|
|
69557
|
-
children:
|
|
69558
|
-
}, `${n}-${
|
|
69682
|
+
children: gY(t.label, r)
|
|
69683
|
+
}, `${n}-${gY(t.label, r)}`);
|
|
69559
69684
|
})
|
|
69560
69685
|
}) : null;
|
|
69561
69686
|
}
|
|
69562
|
-
function
|
|
69563
|
-
let i =
|
|
69687
|
+
function IY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69688
|
+
let i = vY(e, t, n).filter((e) => e && typeof e == "object" && $(gY(e.name, r)));
|
|
69564
69689
|
return i.length ? /* @__PURE__ */ X("ul", {
|
|
69565
69690
|
className: "cc-details__files",
|
|
69566
69691
|
style: {
|
|
69567
|
-
...
|
|
69692
|
+
...wY(5.5),
|
|
69568
69693
|
listStyle: "none",
|
|
69569
69694
|
margin: 0,
|
|
69570
69695
|
padding: 0
|
|
69571
69696
|
},
|
|
69572
69697
|
children: i.map((t, n) => {
|
|
69573
|
-
let i =
|
|
69698
|
+
let i = gY(t.name, r), a = $(t.href) && /^(https?:|\/|blob:)/i.test(String(t.href)) ? String(t.href) : "";
|
|
69574
69699
|
return /* @__PURE__ */ Z("li", {
|
|
69575
69700
|
style: {
|
|
69576
69701
|
display: "flex",
|
|
69577
69702
|
alignItems: "center",
|
|
69578
|
-
gap:
|
|
69703
|
+
gap: dY(5.5)
|
|
69579
69704
|
},
|
|
69580
|
-
children: [/* @__PURE__ */ X(
|
|
69705
|
+
children: [/* @__PURE__ */ X(EY, {
|
|
69581
69706
|
icon: t.icon || "pdf",
|
|
69582
69707
|
tone: t.tone || e.tone || "pink",
|
|
69583
69708
|
size: 13.2
|
|
69584
69709
|
}), /* @__PURE__ */ Z("span", {
|
|
69585
|
-
style:
|
|
69710
|
+
style: wY(0),
|
|
69586
69711
|
children: [a ? /* @__PURE__ */ X("a", {
|
|
69587
69712
|
href: a,
|
|
69588
69713
|
target: "_blank",
|
|
69589
69714
|
rel: "noopener noreferrer",
|
|
69590
69715
|
style: {
|
|
69591
|
-
...
|
|
69592
|
-
fontSize:
|
|
69716
|
+
...TY.strong,
|
|
69717
|
+
fontSize: fY(6.6, 11)
|
|
69593
69718
|
},
|
|
69594
69719
|
children: i
|
|
69595
69720
|
}) : /* @__PURE__ */ X("span", {
|
|
69596
69721
|
style: {
|
|
69597
|
-
...
|
|
69598
|
-
fontSize:
|
|
69722
|
+
...TY.strong,
|
|
69723
|
+
fontSize: fY(6.6, 11)
|
|
69599
69724
|
},
|
|
69600
69725
|
children: i
|
|
69601
|
-
}), $(
|
|
69602
|
-
style:
|
|
69603
|
-
children:
|
|
69726
|
+
}), $(gY(t.meta, r)) && /* @__PURE__ */ X("span", {
|
|
69727
|
+
style: TY.small,
|
|
69728
|
+
children: gY(t.meta, r)
|
|
69604
69729
|
})]
|
|
69605
69730
|
})]
|
|
69606
69731
|
}, `${n}-${i}`);
|
|
69607
69732
|
})
|
|
69608
69733
|
}) : null;
|
|
69609
69734
|
}
|
|
69610
|
-
function
|
|
69735
|
+
function LY() {
|
|
69611
69736
|
return /* @__PURE__ */ X("hr", {
|
|
69612
69737
|
"aria-hidden": "true",
|
|
69613
69738
|
style: {
|
|
69614
69739
|
border: 0,
|
|
69615
|
-
borderTop: `0.55px solid ${
|
|
69616
|
-
margin: `${
|
|
69740
|
+
borderTop: `0.55px solid ${hY.border}`,
|
|
69741
|
+
margin: `${dY(2)} 0`,
|
|
69617
69742
|
width: "100%"
|
|
69618
69743
|
}
|
|
69619
69744
|
});
|
|
69620
69745
|
}
|
|
69621
|
-
function
|
|
69746
|
+
function RY({ block: e, data: t, ctx: n }) {
|
|
69622
69747
|
if (typeof e.render != "function") return null;
|
|
69623
69748
|
try {
|
|
69624
69749
|
return e.render(t, n) ?? null;
|
|
@@ -69626,15 +69751,15 @@ function FY({ block: e, data: t, ctx: n }) {
|
|
|
69626
69751
|
return console.warn("[DETAILSSECTION] custom block failed:", e), null;
|
|
69627
69752
|
}
|
|
69628
69753
|
}
|
|
69629
|
-
function
|
|
69754
|
+
function zY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
|
|
69630
69755
|
if (!e || !sq(e, t, n)) return null;
|
|
69631
69756
|
let a = i[e.type];
|
|
69632
69757
|
if (!a) return console.warn(`[DETAILSSECTION] unknown block type "${e.type}"`), /* @__PURE__ */ Z("div", {
|
|
69633
69758
|
role: "alert",
|
|
69634
69759
|
className: "cc-details__unknown",
|
|
69635
69760
|
style: {
|
|
69636
|
-
...
|
|
69637
|
-
color:
|
|
69761
|
+
...TY.small,
|
|
69762
|
+
color: mY("red").fg
|
|
69638
69763
|
},
|
|
69639
69764
|
children: [
|
|
69640
69765
|
"Unknown block type “",
|
|
@@ -69642,17 +69767,17 @@ function IY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
|
|
|
69642
69767
|
"”"
|
|
69643
69768
|
]
|
|
69644
69769
|
});
|
|
69645
|
-
let o = e.type === "callout" ? "" : aq(e.title, t, n), s =
|
|
69770
|
+
let o = e.type === "callout" ? "" : aq(e.title, t, n), s = CY(e, t, n, r), c = aq(e.empty, t, n);
|
|
69646
69771
|
return s && !$(c) ? null : /* @__PURE__ */ Z("div", {
|
|
69647
69772
|
className: `cc-details__block cc-details__block--${e.type}`,
|
|
69648
|
-
style:
|
|
69773
|
+
style: wY(3.3),
|
|
69649
69774
|
children: [$(o) && /* @__PURE__ */ X("h4", {
|
|
69650
69775
|
className: "cc-details__subtitle",
|
|
69651
|
-
style:
|
|
69776
|
+
style: TY.sub,
|
|
69652
69777
|
children: o
|
|
69653
69778
|
}), s ? /* @__PURE__ */ X("span", {
|
|
69654
69779
|
className: "cc-details__empty",
|
|
69655
|
-
style:
|
|
69780
|
+
style: TY.small,
|
|
69656
69781
|
children: c
|
|
69657
69782
|
}) : /* @__PURE__ */ X(a, {
|
|
69658
69783
|
block: e,
|
|
@@ -69664,32 +69789,32 @@ function IY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
|
|
|
69664
69789
|
}
|
|
69665
69790
|
//#endregion
|
|
69666
69791
|
//#region src/components/COMBAINED_COMPONENTS/helpers/details/detailsRegistry.js
|
|
69667
|
-
var
|
|
69668
|
-
text:
|
|
69669
|
-
fields:
|
|
69670
|
-
list:
|
|
69671
|
-
callout:
|
|
69672
|
-
timeline:
|
|
69673
|
-
stats:
|
|
69674
|
-
people:
|
|
69675
|
-
progress:
|
|
69676
|
-
tags:
|
|
69677
|
-
files:
|
|
69678
|
-
divider:
|
|
69679
|
-
custom:
|
|
69792
|
+
var BY = {
|
|
69793
|
+
text: DY,
|
|
69794
|
+
fields: OY,
|
|
69795
|
+
list: kY,
|
|
69796
|
+
callout: AY,
|
|
69797
|
+
timeline: jY,
|
|
69798
|
+
stats: MY,
|
|
69799
|
+
people: NY,
|
|
69800
|
+
progress: PY,
|
|
69801
|
+
tags: FY,
|
|
69802
|
+
files: IY,
|
|
69803
|
+
divider: LY,
|
|
69804
|
+
custom: RY
|
|
69680
69805
|
};
|
|
69681
|
-
function
|
|
69682
|
-
return !e || !sq(e, t, n) ? !1 : !i[e.type] || !
|
|
69806
|
+
function VY(e, t, n, r, i = BY) {
|
|
69807
|
+
return !e || !sq(e, t, n) ? !1 : !i[e.type] || !CY(e, t, n, r) || $(aq(e.empty, t, n));
|
|
69683
69808
|
}
|
|
69684
69809
|
//#endregion
|
|
69685
69810
|
//#region src/components/COMBAINED_COMPONENTS/helpers/details/DetailsSection.jsx
|
|
69686
|
-
var
|
|
69811
|
+
var HY = {
|
|
69687
69812
|
gap: 6,
|
|
69688
69813
|
asideWidth: 154,
|
|
69689
69814
|
stackBelow: 900,
|
|
69690
69815
|
wrapBelow: 640
|
|
69691
69816
|
};
|
|
69692
|
-
function
|
|
69817
|
+
function UY(e) {
|
|
69693
69818
|
let [t, n] = R(0);
|
|
69694
69819
|
return Bo(() => {
|
|
69695
69820
|
let t = e.current;
|
|
@@ -69700,7 +69825,7 @@ function BY(e) {
|
|
|
69700
69825
|
return i.observe(t), () => i.disconnect();
|
|
69701
69826
|
}, [e]), t;
|
|
69702
69827
|
}
|
|
69703
|
-
function
|
|
69828
|
+
function WY(e, t, n) {
|
|
69704
69829
|
if (typeof e.onClick == "function") return e.onClick(t, n);
|
|
69705
69830
|
if ($(e.tab) && typeof n?.openTab == "function") return n.openTab(String(e.tab));
|
|
69706
69831
|
if ($(e.href)) {
|
|
@@ -69709,7 +69834,7 @@ function VY(e, t, n) {
|
|
|
69709
69834
|
if (typeof n?.navigate == "function") return n.navigate(t);
|
|
69710
69835
|
}
|
|
69711
69836
|
}
|
|
69712
|
-
function
|
|
69837
|
+
function GY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
69713
69838
|
let o = aq(e.title, t, n), s = e.action && sq(e.action, t, n) ? e.action : null, c = s ? aq(s.label, t, n) : "", l = `cc-details-${e.key}`;
|
|
69714
69839
|
return /* @__PURE__ */ Z("section", {
|
|
69715
69840
|
className: `cc-details__card ${e.className ?? ""}`.trim(),
|
|
@@ -69718,13 +69843,13 @@ function HY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
|
69718
69843
|
style: {
|
|
69719
69844
|
display: "flex",
|
|
69720
69845
|
flexDirection: "column",
|
|
69721
|
-
gap:
|
|
69846
|
+
gap: dY(6.6),
|
|
69722
69847
|
minWidth: 0,
|
|
69723
69848
|
boxSizing: "border-box",
|
|
69724
|
-
padding:
|
|
69725
|
-
borderRadius:
|
|
69726
|
-
border: `0.55px solid ${
|
|
69727
|
-
background:
|
|
69849
|
+
padding: dY(8.81),
|
|
69850
|
+
borderRadius: dY(5.5),
|
|
69851
|
+
border: `0.55px solid ${hY.border}`,
|
|
69852
|
+
background: hY.surface,
|
|
69728
69853
|
...a
|
|
69729
69854
|
},
|
|
69730
69855
|
children: [($(o) || $(c)) && /* @__PURE__ */ Z("header", {
|
|
@@ -69732,16 +69857,16 @@ function HY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
|
69732
69857
|
display: "flex",
|
|
69733
69858
|
alignItems: "center",
|
|
69734
69859
|
justifyContent: "space-between",
|
|
69735
|
-
gap:
|
|
69860
|
+
gap: dY(4)
|
|
69736
69861
|
},
|
|
69737
69862
|
children: [$(o) && /* @__PURE__ */ Z("span", {
|
|
69738
69863
|
style: {
|
|
69739
69864
|
display: "inline-flex",
|
|
69740
69865
|
alignItems: "center",
|
|
69741
|
-
gap:
|
|
69866
|
+
gap: dY(5.5),
|
|
69742
69867
|
minWidth: 0
|
|
69743
69868
|
},
|
|
69744
|
-
children: [e.icon ? /* @__PURE__ */ X(
|
|
69869
|
+
children: [e.icon ? /* @__PURE__ */ X(EY, {
|
|
69745
69870
|
icon: e.icon,
|
|
69746
69871
|
tone: e.tone,
|
|
69747
69872
|
size: Number(e.iconSize) > 0 ? Number(e.iconSize) : 17.6
|
|
@@ -69750,40 +69875,40 @@ function HY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
|
69750
69875
|
className: "cc-details__title",
|
|
69751
69876
|
style: {
|
|
69752
69877
|
margin: 0,
|
|
69753
|
-
fontSize:
|
|
69878
|
+
fontSize: fY(8.81, 12),
|
|
69754
69879
|
fontWeight: 600,
|
|
69755
69880
|
lineHeight: 1.5,
|
|
69756
|
-
color:
|
|
69881
|
+
color: hY.ink
|
|
69757
69882
|
},
|
|
69758
69883
|
children: o
|
|
69759
69884
|
})]
|
|
69760
69885
|
}), $(c) && /* @__PURE__ */ Z("button", {
|
|
69761
69886
|
type: "button",
|
|
69762
69887
|
className: "cc-details__action",
|
|
69763
|
-
onClick: () =>
|
|
69888
|
+
onClick: () => WY(s, t, n),
|
|
69764
69889
|
style: {
|
|
69765
69890
|
marginLeft: "auto",
|
|
69766
69891
|
padding: 0,
|
|
69767
69892
|
border: 0,
|
|
69768
69893
|
background: "none",
|
|
69769
69894
|
cursor: "pointer",
|
|
69770
|
-
color:
|
|
69771
|
-
fontSize:
|
|
69895
|
+
color: hY.link,
|
|
69896
|
+
fontSize: fY(6.05, 11),
|
|
69772
69897
|
fontWeight: 400,
|
|
69773
69898
|
lineHeight: 1.5,
|
|
69774
69899
|
whiteSpace: "nowrap",
|
|
69775
69900
|
display: "inline-flex",
|
|
69776
69901
|
alignItems: "center",
|
|
69777
|
-
gap:
|
|
69902
|
+
gap: dY(3)
|
|
69778
69903
|
},
|
|
69779
69904
|
children: [s.icon ? /* @__PURE__ */ X("span", {
|
|
69780
69905
|
className: "cc-details__action-icon",
|
|
69781
69906
|
"aria-hidden": "true",
|
|
69782
69907
|
style: { display: "inline-flex" },
|
|
69783
|
-
children:
|
|
69908
|
+
children: uY(s.icon)
|
|
69784
69909
|
}) : null, c]
|
|
69785
69910
|
})]
|
|
69786
|
-
}), (Array.isArray(e.blocks) ? e.blocks : []).map((e, a) => /* @__PURE__ */ X(
|
|
69911
|
+
}), (Array.isArray(e.blocks) ? e.blocks : []).map((e, a) => /* @__PURE__ */ X(zY, {
|
|
69787
69912
|
block: e,
|
|
69788
69913
|
data: t,
|
|
69789
69914
|
ctx: n,
|
|
@@ -69792,16 +69917,16 @@ function HY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
|
69792
69917
|
}, e?.key ?? `${e?.type}-${a}`))]
|
|
69793
69918
|
});
|
|
69794
69919
|
}
|
|
69795
|
-
var
|
|
69796
|
-
function
|
|
69920
|
+
var KY = (e, t, n, r, i) => !!e?.key && sq(e, t, n) && (Array.isArray(e.blocks) ? e.blocks : []).some((e) => VY(e, t, n, r, i));
|
|
69921
|
+
function qY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
|
|
69797
69922
|
Ay();
|
|
69798
|
-
let i = Vo(null), a =
|
|
69799
|
-
...
|
|
69923
|
+
let i = Vo(null), a = UY(i), o = e && typeof e == "object" ? e : {}, s = {
|
|
69924
|
+
...HY,
|
|
69800
69925
|
...o.layout ?? {}
|
|
69801
69926
|
}, c = o.locale, l = {
|
|
69802
|
-
...
|
|
69927
|
+
...BY,
|
|
69803
69928
|
...o.blocks && typeof o.blocks == "object" ? o.blocks : {}
|
|
69804
|
-
}, u =
|
|
69929
|
+
}, u = dY(s.gap), d = a > 0, f = d && a < s.stackBelow, p = d && a < s.wrapBelow, m = (Array.isArray(o.main) ? o.main : []).map((e) => (Array.isArray(e) ? e : [e]).filter((e) => KY(e, t, n, c, l))).filter((e) => e.length > 0), h = (Array.isArray(o.aside) ? o.aside : []).filter((e) => KY(e, t, n, c, l));
|
|
69805
69930
|
if (!m.length && !h.length) return null;
|
|
69806
69931
|
let g = (e) => Number.isFinite(e.width) && e.width > 0 ? e.width : 1;
|
|
69807
69932
|
return /* @__PURE__ */ Z("div", {
|
|
@@ -69837,7 +69962,7 @@ function WY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
|
|
|
69837
69962
|
alignItems: "stretch",
|
|
69838
69963
|
gap: u
|
|
69839
69964
|
},
|
|
69840
|
-
children: e.map((e) => /* @__PURE__ */ X(
|
|
69965
|
+
children: e.map((e) => /* @__PURE__ */ X(GY, {
|
|
69841
69966
|
card: e,
|
|
69842
69967
|
data: t,
|
|
69843
69968
|
ctx: n,
|
|
@@ -69854,11 +69979,11 @@ function WY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
|
|
|
69854
69979
|
gap: u,
|
|
69855
69980
|
minWidth: 0,
|
|
69856
69981
|
gridTemplateColumns: f && !p ? `repeat(${Math.min(h.length, 3)}, minmax(0, 1fr))` : void 0,
|
|
69857
|
-
width: f ? "100%" :
|
|
69982
|
+
width: f ? "100%" : dY(s.asideWidth),
|
|
69858
69983
|
flex: "none",
|
|
69859
69984
|
alignItems: f && !p ? "start" : "stretch"
|
|
69860
69985
|
},
|
|
69861
|
-
children: h.map((e) => /* @__PURE__ */ X(
|
|
69986
|
+
children: h.map((e) => /* @__PURE__ */ X(GY, {
|
|
69862
69987
|
card: e,
|
|
69863
69988
|
data: t,
|
|
69864
69989
|
ctx: n,
|
|
@@ -69870,8 +69995,8 @@ function WY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
|
|
|
69870
69995
|
}
|
|
69871
69996
|
//#endregion
|
|
69872
69997
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/MasterDetailWorkspace.jsx
|
|
69873
|
-
var
|
|
69874
|
-
function
|
|
69998
|
+
var JY = ".ant-modal-wrap:not([style*=\"display: none\"]), .ant-drawer-open, .ant-picker-dropdown:not(.ant-picker-dropdown-hidden), .ant-select-dropdown:not(.ant-select-dropdown-hidden), .ant-dropdown:not(.ant-dropdown-hidden)", YY = "cc-mdw-detail-window-width", XY = 32;
|
|
69999
|
+
function ZY(e) {
|
|
69875
70000
|
try {
|
|
69876
70001
|
let t = Number(localStorage.getItem(e));
|
|
69877
70002
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
@@ -69879,13 +70004,13 @@ function JY(e) {
|
|
|
69879
70004
|
return null;
|
|
69880
70005
|
}
|
|
69881
70006
|
}
|
|
69882
|
-
function
|
|
70007
|
+
function QY(e, t) {
|
|
69883
70008
|
try {
|
|
69884
70009
|
localStorage.setItem(e, String(Math.round(t)));
|
|
69885
70010
|
} catch {}
|
|
69886
70011
|
}
|
|
69887
|
-
function
|
|
69888
|
-
let C = s === "window", w = Vo(null), T = Vo(null), E = Vo(null), [D, O] = R(() =>
|
|
70012
|
+
function $Y({ topBar: e = null, rail: t = null, list: n = null, compactList: r = null, detail: i = null, detailOpen: a = !1, detailExpanded: o = !1, detailMode: s = "split", detailWidth: c, onDetailWidthChange: l, defaultDetailWidth: u = 720, minDetailWidth: d = 480, maxDetailWidthRatio: f = .75, widthStorageKey: p = YY, railCollapsed: m = !1, railOverlay: h = !1, onCloseRailOverlay: g, onCloseDetail: _, railWidth: v = 264, collapsedRailWidth: y = 52, compactListWidth: b = 340, className: x = "", ariaLabel: S = "Workspace" }) {
|
|
70013
|
+
let C = s === "window", w = Vo(null), T = Vo(null), E = Vo(null), [D, O] = R(() => ZY(p) ?? u), k = c ?? D;
|
|
69889
70014
|
I(() => {
|
|
69890
70015
|
if (a) {
|
|
69891
70016
|
!E.current && typeof document < "u" && (E.current = document.activeElement), T.current?.focus({ preventScroll: !0 });
|
|
@@ -69896,7 +70021,7 @@ function XY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69896
70021
|
}, [a]), I(() => {
|
|
69897
70022
|
if (!a || typeof document > "u") return;
|
|
69898
70023
|
let e = (e) => {
|
|
69899
|
-
e.key !== "Escape" || e.defaultPrevented || document.querySelector(
|
|
70024
|
+
e.key !== "Escape" || e.defaultPrevented || document.querySelector(JY) || _?.();
|
|
69900
70025
|
};
|
|
69901
70026
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
69902
70027
|
}, [a, _]);
|
|
@@ -69905,7 +70030,7 @@ function XY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69905
70030
|
return Math.round(Math.min(Math.max(e, d), n));
|
|
69906
70031
|
}, [d, f]), j = Lo((e) => {
|
|
69907
70032
|
let t = A(e);
|
|
69908
|
-
return l && l(t), c ?? (O(t),
|
|
70033
|
+
return l && l(t), c ?? (O(t), QY(p, t)), t;
|
|
69909
70034
|
}, [
|
|
69910
70035
|
A,
|
|
69911
70036
|
c,
|
|
@@ -69923,7 +70048,7 @@ function XY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69923
70048
|
};
|
|
69924
70049
|
t.classList.add("cc-mdw--resizing"), window.addEventListener("pointermove", a), window.addEventListener("pointerup", o);
|
|
69925
70050
|
}, N = (e) => {
|
|
69926
|
-
e.key === "ArrowLeft" ? (e.preventDefault(), j(k +
|
|
70051
|
+
e.key === "ArrowLeft" ? (e.preventDefault(), j(k + XY)) : e.key === "ArrowRight" && (e.preventDefault(), j(k - XY));
|
|
69927
70052
|
}, ee = a ? o ? "expanded" : "open" : "closed", P = C ? m : a || m, F = !C && a && h, te = !C && a && !!r, ne = {
|
|
69928
70053
|
"--cc-rail-w": `${v}px`,
|
|
69929
70054
|
"--cc-rail-collapsed-w": `${y}px`,
|
|
@@ -69994,7 +70119,7 @@ function XY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69994
70119
|
}
|
|
69995
70120
|
//#endregion
|
|
69996
70121
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/CreateActionButton.jsx
|
|
69997
|
-
function
|
|
70122
|
+
function eX({ primaryAction: e, menuActions: t = [], onAction: n, size: r = "large", className: i = "" }) {
|
|
69998
70123
|
if (!e) return null;
|
|
69999
70124
|
let a = t.map((e) => ({
|
|
70000
70125
|
key: e.key,
|
|
@@ -70031,7 +70156,7 @@ function ZY({ primaryAction: e, menuActions: t = [], onAction: n, size: r = "lar
|
|
|
70031
70156
|
}
|
|
70032
70157
|
//#endregion
|
|
70033
70158
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/WorkspaceTopBar.jsx
|
|
70034
|
-
function
|
|
70159
|
+
function tX({ title: e = null, searchValue: t = "", onSearch: n, searchPlaceholder: r = "Search…", minChars: i = 3, debounceMs: a = 350, primaryAction: o = null, menuActions: s = [], onAction: c, extra: l = null, className: u = "", showSearch: d = !0 }) {
|
|
70035
70160
|
let [f, p] = R(t ?? ""), [m, h] = R(t ?? ""), g = Vo(t ?? ""), _ = Vo(null);
|
|
70036
70161
|
(t ?? "") !== m && (h(t ?? ""), p(t ?? "")), I(() => {
|
|
70037
70162
|
g.current = t ?? "";
|
|
@@ -70079,7 +70204,7 @@ function QY({ title: e = null, searchValue: t = "", onSearch: n, searchPlacehold
|
|
|
70079
70204
|
}),
|
|
70080
70205
|
/* @__PURE__ */ Z("div", {
|
|
70081
70206
|
className: "cc-topbar__actions",
|
|
70082
|
-
children: [l, /* @__PURE__ */ X(
|
|
70207
|
+
children: [l, /* @__PURE__ */ X(eX, {
|
|
70083
70208
|
primaryAction: o,
|
|
70084
70209
|
menuActions: s,
|
|
70085
70210
|
onAction: c
|
|
@@ -70090,37 +70215,37 @@ function QY({ title: e = null, searchValue: t = "", onSearch: n, searchPlacehold
|
|
|
70090
70215
|
}
|
|
70091
70216
|
//#endregion
|
|
70092
70217
|
//#region src/components/COMBAINED_COMPONENTS/helpers/list/compactListUtils.js
|
|
70093
|
-
function
|
|
70218
|
+
function nX(e) {
|
|
70094
70219
|
return e === !0 || e === 1 || e === "1" || String(e).toLowerCase() === "true";
|
|
70095
70220
|
}
|
|
70096
|
-
function
|
|
70221
|
+
function rX(e, t) {
|
|
70097
70222
|
if (!(!e || !t)) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : String(t).split(".").reduce((e, t) => e?.[t], e);
|
|
70098
70223
|
}
|
|
70099
|
-
function
|
|
70100
|
-
return e == null || e === "" ? "" : Array.isArray(e) ? e.map(
|
|
70224
|
+
function iX(e) {
|
|
70225
|
+
return e == null || e === "" ? "" : Array.isArray(e) ? e.map(iX).filter(Boolean).join(", ") : typeof e == "object" ? iX(e.label ?? e.value ?? e.name ?? e.title ?? "") : String(e);
|
|
70101
70226
|
}
|
|
70102
|
-
function
|
|
70227
|
+
function aX(e) {
|
|
70103
70228
|
return e?.field ?? e?.value ?? e?.fieldName ?? e?.key ?? "";
|
|
70104
70229
|
}
|
|
70105
|
-
function
|
|
70106
|
-
return (Array.isArray(e) ? e : []).filter((e) =>
|
|
70230
|
+
function oX(e) {
|
|
70231
|
+
return (Array.isArray(e) ? e : []).filter((e) => aX(e) && e.isVisible !== !1 && e.isVisible !== 0 && e.isVisible !== "0").slice().sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0));
|
|
70107
70232
|
}
|
|
70108
|
-
function
|
|
70109
|
-
let t =
|
|
70233
|
+
function sX(e) {
|
|
70234
|
+
let t = oX(e), n = t.find((e) => nX(e.isLink)) ?? t[0] ?? null, r = t.find((e) => String(e.renderType ?? "").toLowerCase() === "badge" && e !== n) ?? null;
|
|
70110
70235
|
return {
|
|
70111
70236
|
title: n,
|
|
70112
70237
|
status: r,
|
|
70113
70238
|
meta: t.filter((e) => e !== n && e !== r).slice(0, 2)
|
|
70114
70239
|
};
|
|
70115
70240
|
}
|
|
70116
|
-
function
|
|
70241
|
+
function cX(e) {
|
|
70117
70242
|
let t = e?._id ?? e?.id;
|
|
70118
70243
|
return t && typeof t == "object" ? String(t.$oid ?? "") : t == null ? "" : String(t);
|
|
70119
70244
|
}
|
|
70120
70245
|
//#endregion
|
|
70121
70246
|
//#region src/components/COMBAINED_COMPONENTS/helpers/list/CompactRecordList.jsx
|
|
70122
|
-
function
|
|
70123
|
-
let s = Vo(null), c = e?.rows ?? [], { title: l, status: u, meta: d } = L(() =>
|
|
70247
|
+
function lX({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage: i, ariaLabel: a = "Records", emptyText: o = "No records" }) {
|
|
70248
|
+
let s = Vo(null), c = e?.rows ?? [], { title: l, status: u, meta: d } = L(() => sX(e?.fields), [e?.fields]), f = e?.page ?? 1, p = e?.limit ?? 10, m = e?.total ?? 0, h = Math.max(1, Math.ceil(m / Math.max(1, p)));
|
|
70124
70249
|
return /* @__PURE__ */ Z("div", {
|
|
70125
70250
|
className: "cc-compact-list",
|
|
70126
70251
|
children: [
|
|
@@ -70149,7 +70274,7 @@ function oX({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage:
|
|
|
70149
70274
|
t[r] && (e.preventDefault(), t[r].focus());
|
|
70150
70275
|
},
|
|
70151
70276
|
children: c.map((e, t) => {
|
|
70152
|
-
let i =
|
|
70277
|
+
let i = cX(e), a = iX(rX(e, aX(l))) || "—", o = u ? iX(rX(e, aX(u))) : "", s = d.map((t) => iX(rX(e, aX(t)))).filter(Boolean).join(" · "), c = i && String(i) === String(n ?? "");
|
|
70153
70278
|
return /* @__PURE__ */ Z("li", {
|
|
70154
70279
|
"data-record-id": i,
|
|
70155
70280
|
role: "option",
|
|
@@ -70209,8 +70334,8 @@ function oX({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage:
|
|
|
70209
70334
|
}
|
|
70210
70335
|
//#endregion
|
|
70211
70336
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/RecordDetailPanel.jsx
|
|
70212
|
-
var
|
|
70213
|
-
function
|
|
70337
|
+
var uX = [];
|
|
70338
|
+
function dX({ component: e, id: t, moduleName: n, onDescriptionSaved: r, record: i }) {
|
|
70214
70339
|
return e ? /* @__PURE__ */ X(e, {
|
|
70215
70340
|
id: t,
|
|
70216
70341
|
moduleName: n,
|
|
@@ -70218,8 +70343,8 @@ function cX({ component: e, id: t, moduleName: n, onDescriptionSaved: r, record:
|
|
|
70218
70343
|
record: i
|
|
70219
70344
|
}) : null;
|
|
70220
70345
|
}
|
|
70221
|
-
function
|
|
70222
|
-
let o = e.length > r ? e.slice(0, r) : e, s = e.length > r ? e.slice(r) :
|
|
70346
|
+
function fX({ tabs: e = [], activeKey: t, onChange: n, max: r = 11, alwaysShowMore: i = !1, moreEmptyLabel: a = "Nothing more" }) {
|
|
70347
|
+
let o = e.length > r ? e.slice(0, r) : e, s = e.length > r ? e.slice(r) : uX, c = s.some((e) => e.key === t);
|
|
70223
70348
|
return /* @__PURE__ */ Z("div", {
|
|
70224
70349
|
className: "cc-detail__tabs",
|
|
70225
70350
|
role: "tablist",
|
|
@@ -70260,7 +70385,7 @@ function lX({ tabs: e = [], activeKey: t, onChange: n, max: r = 11, alwaysShowMo
|
|
|
70260
70385
|
})]
|
|
70261
70386
|
});
|
|
70262
70387
|
}
|
|
70263
|
-
function
|
|
70388
|
+
function pX({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, stats: i = null, toolbarExtra: a = null, banner: o = null, expanded: s = !1, onToggleExpand: c, onClose: l, refreshKey: u = 0, showActivity: d = !0, showNotes: f = !0, users: p = [], onHeaderData: m, onRecordLoaded: h, onHeaderAction: g, onTabChange: _, layout: v = "auto", stackBelow: y = 900, headerSlot: b = null, headerEndSlot: x = null, collapseLabel: S = "Show list", tabsPlacement: C = "header", maxVisibleTabs: w = 11, alwaysShowMore: T = !1, moreEmptyLabel: E, extraTabs: D = uX, defaultTab: O = "details" }) {
|
|
70264
70389
|
let k = Vo(null), A = b != null || x != null, [j, M] = R(null);
|
|
70265
70390
|
I(() => {
|
|
70266
70391
|
let e = k.current;
|
|
@@ -70288,7 +70413,7 @@ function uX({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
70288
70413
|
}, [v, y]);
|
|
70289
70414
|
let P = v === "stacked" || v === "auto" && N === !0, [F, te] = du(), ne = F.get("tab") || O, re = Y_(), [ie, ae] = R(0), [oe, se] = R(null), [ce, le] = R(() => /* @__PURE__ */ new Set([ne]));
|
|
70290
70415
|
ce.has(ne) || le(/* @__PURE__ */ new Set([...ce, ne]));
|
|
70291
|
-
let ue = L(() => vg(e)?.tabs ??
|
|
70416
|
+
let ue = L(() => vg(e)?.tabs ?? uX, [e]), de = L(() => D.length ? [...ue, ...D] : ue, [ue, D]), fe = Tp(de, {
|
|
70292
70417
|
id: t,
|
|
70293
70418
|
moduleName: e,
|
|
70294
70419
|
record: oe
|
|
@@ -70356,7 +70481,7 @@ function uX({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
70356
70481
|
className: "cc-detail__header-end",
|
|
70357
70482
|
children: x
|
|
70358
70483
|
}), j) : null,
|
|
70359
|
-
be && fe.length > 0 && /* @__PURE__ */ X(
|
|
70484
|
+
be && fe.length > 0 && /* @__PURE__ */ X(fX, {
|
|
70360
70485
|
tabs: fe,
|
|
70361
70486
|
activeKey: ye ? "details" : ne,
|
|
70362
70487
|
onChange: (e) => he(e),
|
|
@@ -70402,7 +70527,7 @@ function uX({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
70402
70527
|
return r ? /* @__PURE__ */ X("div", {
|
|
70403
70528
|
className: "cc-detail__tab",
|
|
70404
70529
|
hidden: n !== ne,
|
|
70405
|
-
children: /* @__PURE__ */ X(
|
|
70530
|
+
children: /* @__PURE__ */ X(dX, {
|
|
70406
70531
|
component: r,
|
|
70407
70532
|
id: t,
|
|
70408
70533
|
moduleName: e,
|
|
@@ -70415,7 +70540,7 @@ function uX({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
70415
70540
|
})]
|
|
70416
70541
|
});
|
|
70417
70542
|
}
|
|
70418
|
-
function
|
|
70543
|
+
function mX({ items: e = [] }) {
|
|
70419
70544
|
return /* @__PURE__ */ X("ol", {
|
|
70420
70545
|
className: "cc-crumbs",
|
|
70421
70546
|
children: e.map((t, n) => /* @__PURE__ */ Z("li", {
|
|
@@ -70437,7 +70562,7 @@ function dX({ items: e = [] }) {
|
|
|
70437
70562
|
}
|
|
70438
70563
|
//#endregion
|
|
70439
70564
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/useRecordFields.js
|
|
70440
|
-
function
|
|
70565
|
+
function hX(e, t, { max: n = 12, refreshKey: r = 0 } = {}) {
|
|
70441
70566
|
let i = `${e}|${t}|${r}`, [a, o] = R({
|
|
70442
70567
|
key: "",
|
|
70443
70568
|
groups: null,
|
|
@@ -70477,7 +70602,7 @@ function fX(e, t, { max: n = 12, refreshKey: r = 0 } = {}) {
|
|
|
70477
70602
|
}
|
|
70478
70603
|
//#endregion
|
|
70479
70604
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/RecordSidePanel.jsx
|
|
70480
|
-
function
|
|
70605
|
+
function gX({ open: e, title: t, extra: n = null, footer: r = null, onClose: i, width: a = 320, className: o = "", children: s }) {
|
|
70481
70606
|
let c = Vo(null);
|
|
70482
70607
|
return I(() => {
|
|
70483
70608
|
e && c.current?.focus({ preventScroll: !0 });
|
|
@@ -70520,7 +70645,7 @@ function pX({ open: e, title: t, extra: n = null, footer: r = null, onClose: i,
|
|
|
70520
70645
|
}
|
|
70521
70646
|
//#endregion
|
|
70522
70647
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/AddRecordDrawer.jsx
|
|
70523
|
-
function
|
|
70648
|
+
function _X({ open: e, moduleName: t, title: n, width: r = 760, onClose: i, onCreated: a, formProps: o = {} }) {
|
|
70524
70649
|
return /* @__PURE__ */ X(es, {
|
|
70525
70650
|
open: e,
|
|
70526
70651
|
title: n ?? "Add",
|
|
@@ -70545,41 +70670,41 @@ function mX({ open: e, moduleName: t, title: n, width: r = 760, onClose: i, onCr
|
|
|
70545
70670
|
}
|
|
70546
70671
|
//#endregion
|
|
70547
70672
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/ModuleWorkspace.jsx
|
|
70548
|
-
var
|
|
70549
|
-
function
|
|
70550
|
-
if (e.get(
|
|
70673
|
+
var vX = "q", yX = "f", bX = "view", xX = "lp", SX = "full", CX = [];
|
|
70674
|
+
function wX(e) {
|
|
70675
|
+
if (e.get(bX) === SX) return;
|
|
70551
70676
|
let t = TG(e);
|
|
70552
|
-
t > 1 && e.set(
|
|
70677
|
+
t > 1 && e.set(xX, String(t)), [...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t));
|
|
70553
70678
|
}
|
|
70554
|
-
var
|
|
70679
|
+
var TX = {
|
|
70555
70680
|
open: "Live",
|
|
70556
70681
|
connecting: "Connecting…",
|
|
70557
70682
|
reconnecting: "Reconnecting…",
|
|
70558
70683
|
unauthorized: "Live updates paused",
|
|
70559
70684
|
idle: "Live"
|
|
70560
70685
|
};
|
|
70561
|
-
function
|
|
70686
|
+
function EX(e) {
|
|
70562
70687
|
return e === "open" ? "is-open" : e === "reconnecting" || e === "connecting" ? "is-reconnecting" : "";
|
|
70563
70688
|
}
|
|
70564
|
-
function
|
|
70689
|
+
function DX() {
|
|
70565
70690
|
try {
|
|
70566
70691
|
return Number(localStorage.getItem("userId")) || 0;
|
|
70567
70692
|
} catch {
|
|
70568
70693
|
return 0;
|
|
70569
70694
|
}
|
|
70570
70695
|
}
|
|
70571
|
-
function
|
|
70572
|
-
let { tab: D } = uu(), O = lu(), [k, A] = du(), j = Array.isArray(a) && a.length > 0, M = j ? a.find((e) => e.toLowerCase() === String(D ?? "").toLowerCase()) : void 0, N = k.get(o) || "", ee = x === "full", P = !!N && (ee || k.get(
|
|
70573
|
-
topics: N ? [jK(e, N)] :
|
|
70696
|
+
function OX({ listModule: e, detailModule: t, detailConfigName: n, title: r, basePath: i, listTabs: a, recordParam: o = "id", searchPlaceholder: s = "Search…", searchFields: c, createActions: l, relatedTopics: u = CX, quickViewTitle: d = "Quick View", quickViewWidth: f = 420, renderQuickViewExtra: p, renderQuickView: m, renderFullView: h, renderFullViewStats: g, fullViewBreadcrumbLabel: _ = "Details", listProps: v, topBarInFullView: y = !0, showTopBarSearch: b = !0, openRecordIn: x = "quick", quickViewMode: S = "docked", defaultRailCollapsed: C = !1, showRail: w = !0, listComponent: T, actionsInListToolbar: E = !1 }) {
|
|
70697
|
+
let { tab: D } = uu(), O = lu(), [k, A] = du(), j = Array.isArray(a) && a.length > 0, M = j ? a.find((e) => e.toLowerCase() === String(D ?? "").toLowerCase()) : void 0, N = k.get(o) || "", ee = x === "full", P = !!N && (ee || k.get(bX) === SX), F = S === "overlay", [te, ne] = R(C), re = k.get(vX) || "", ie = k.get(yX) || "", ae = L(() => pG(ie), [ie]), [oe, se] = R(null), [ce, le] = R(0), ue = Y_(), de = $K({ topics: [AK(e)] }), fe = $K({
|
|
70698
|
+
topics: N ? [jK(e, N)] : CX,
|
|
70574
70699
|
enabled: !!N
|
|
70575
70700
|
}), pe = $K({
|
|
70576
|
-
topics: N ? [...u, jK(e, N)] :
|
|
70701
|
+
topics: N ? [...u, jK(e, N)] : CX,
|
|
70577
70702
|
enabled: !!N
|
|
70578
70703
|
}), me = YK(), { fetchData: he, loading: ge } = CG({
|
|
70579
70704
|
filters: ae,
|
|
70580
70705
|
search: re,
|
|
70581
70706
|
refreshTick: de.tick + ce
|
|
70582
|
-
}), _e =
|
|
70707
|
+
}), _e = DX(), ve = fe.lastEvent, ye = ve && ve.actorId && ve.actorId !== _e ? ve.eventId : null, [be, xe] = R(null), Se = ye && ye !== be ? ye : null;
|
|
70583
70708
|
I(() => {
|
|
70584
70709
|
if (!Se) return;
|
|
70585
70710
|
let e = setTimeout(() => xe(Se), 6e3);
|
|
@@ -70590,7 +70715,7 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70590
70715
|
e(r), n && (r = EG(r, 1)), r.toString() !== k.toString() && A(r, { replace: t });
|
|
70591
70716
|
}, [k, A]), we = Lo((e) => {
|
|
70592
70717
|
e && Ce((t) => {
|
|
70593
|
-
t.get(o) !== e && (t.set(o, e), t.delete("tab"), t.delete("subTab")), ee ? (
|
|
70718
|
+
t.get(o) !== e && (t.set(o, e), t.delete("tab"), t.delete("subTab")), ee ? (wX(t), t.set(bX, SX)) : t.delete(bX);
|
|
70594
70719
|
});
|
|
70595
70720
|
}, [
|
|
70596
70721
|
ee,
|
|
@@ -70599,23 +70724,23 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70599
70724
|
]), Te = Lo((e) => {
|
|
70600
70725
|
let t = e && typeof e == "object" && typeof e.tab == "string" ? e.tab : "";
|
|
70601
70726
|
Ce((e) => {
|
|
70602
|
-
|
|
70727
|
+
wX(e), e.set(bX, SX), t && (e.set("tab", t), e.delete("subTab"));
|
|
70603
70728
|
});
|
|
70604
70729
|
}, [Ce]), Ee = (e) => {
|
|
70605
|
-
if (e.get(
|
|
70606
|
-
let t = Number(e.get(
|
|
70607
|
-
[...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t)), e.delete(
|
|
70730
|
+
if (e.get(bX) !== SX && !e.has(xX)) return;
|
|
70731
|
+
let t = Number(e.get(xX)) || 1;
|
|
70732
|
+
[...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t)), e.delete(xX), t > 1 && e.set(`p${t}`, "");
|
|
70608
70733
|
}, De = Lo(() => {
|
|
70609
70734
|
Ce((e) => {
|
|
70610
|
-
Ee(e), e.delete(
|
|
70735
|
+
Ee(e), e.delete(bX), e.delete("tab"), e.delete("subTab");
|
|
70611
70736
|
});
|
|
70612
70737
|
}, [Ce]), Oe = Lo(() => {
|
|
70613
70738
|
Ce((e) => {
|
|
70614
|
-
Ee(e), e.delete(o), e.delete(
|
|
70739
|
+
Ee(e), e.delete(o), e.delete(bX), e.delete("tab"), e.delete("subTab");
|
|
70615
70740
|
});
|
|
70616
70741
|
}, [o, Ce]), ke = Lo((e) => {
|
|
70617
70742
|
Ce((t) => {
|
|
70618
|
-
e ? t.set(
|
|
70743
|
+
e ? t.set(vX, e) : t.delete(vX);
|
|
70619
70744
|
}, {
|
|
70620
70745
|
replace: !0,
|
|
70621
70746
|
resetPage: !0
|
|
@@ -70623,7 +70748,7 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70623
70748
|
}, [Ce]), Ae = Lo((e) => {
|
|
70624
70749
|
lG(e) !== lG(ae) && Ce((t) => {
|
|
70625
70750
|
let n = fG(e);
|
|
70626
|
-
n ? t.set(
|
|
70751
|
+
n ? t.set(yX, n) : t.delete(yX);
|
|
70627
70752
|
}, { resetPage: !0 });
|
|
70628
70753
|
}, [ae, Ce]), je = Lo((e) => {
|
|
70629
70754
|
if (!j) return;
|
|
@@ -70687,8 +70812,8 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70687
70812
|
children: [me !== "disabled" && /* @__PURE__ */ Z("span", {
|
|
70688
70813
|
className: "cc-live-pill",
|
|
70689
70814
|
"aria-live": "polite",
|
|
70690
|
-
children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${
|
|
70691
|
-
}), /* @__PURE__ */ X(
|
|
70815
|
+
children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${EX(me)}` }), TX[me] ?? "Offline"]
|
|
70816
|
+
}), /* @__PURE__ */ X(eX, {
|
|
70692
70817
|
primaryAction: l?.primary ?? null,
|
|
70693
70818
|
menuActions: l?.menu ?? [],
|
|
70694
70819
|
onAction: Ne,
|
|
@@ -70728,7 +70853,7 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70728
70853
|
onBackToQuick: ee ? null : De,
|
|
70729
70854
|
onClose: Oe,
|
|
70730
70855
|
updatedBanner: Re,
|
|
70731
|
-
renderCreateButton: (e = {}) => /* @__PURE__ */ X(
|
|
70856
|
+
renderCreateButton: (e = {}) => /* @__PURE__ */ X(eX, {
|
|
70732
70857
|
primaryAction: l?.primary ?? null,
|
|
70733
70858
|
menuActions: l?.menu ?? [],
|
|
70734
70859
|
onAction: Ne,
|
|
@@ -70744,7 +70869,7 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70744
70869
|
onOpenFull: Te,
|
|
70745
70870
|
onClose: Oe,
|
|
70746
70871
|
extra: p ? p(ze) : null
|
|
70747
|
-
}, N) : N && P && (Be = h ? h(ze) : /* @__PURE__ */ X(
|
|
70872
|
+
}, N) : N && P && (Be = h ? h(ze) : /* @__PURE__ */ X(pX, {
|
|
70748
70873
|
moduleName: t,
|
|
70749
70874
|
customConfigName: n,
|
|
70750
70875
|
id: N,
|
|
@@ -70756,16 +70881,16 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70756
70881
|
banner: Re,
|
|
70757
70882
|
headerEndSlot: y ? null : ze.renderCreateButton({ size: "middle" }),
|
|
70758
70883
|
stats: g ? g(ze) : null,
|
|
70759
|
-
breadcrumb: /* @__PURE__ */ X(
|
|
70884
|
+
breadcrumb: /* @__PURE__ */ X(mX, { items: [{
|
|
70760
70885
|
label: r,
|
|
70761
70886
|
onClick: Oe
|
|
70762
70887
|
}, { label: _ }] })
|
|
70763
70888
|
}, N));
|
|
70764
|
-
let Ve =
|
|
70889
|
+
let Ve = EX(me);
|
|
70765
70890
|
return /* @__PURE__ */ Z("div", {
|
|
70766
70891
|
className: `cc-module-workspace${T ? " cc-module-workspace--host-list" : ""}`,
|
|
70767
70892
|
children: [
|
|
70768
|
-
/* @__PURE__ */ X(
|
|
70893
|
+
/* @__PURE__ */ X($Y, {
|
|
70769
70894
|
ariaLabel: r,
|
|
70770
70895
|
detailMode: "window",
|
|
70771
70896
|
defaultDetailWidth: f,
|
|
@@ -70776,7 +70901,7 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70776
70901
|
detailExpanded: P,
|
|
70777
70902
|
onCloseDetail: P && !ee ? De : Oe,
|
|
70778
70903
|
railCollapsed: te,
|
|
70779
|
-
topBar: P && !y || !P && E ? null : /* @__PURE__ */ X(
|
|
70904
|
+
topBar: P && !y || !P && E ? null : /* @__PURE__ */ X(tX, {
|
|
70780
70905
|
title: r,
|
|
70781
70906
|
searchValue: re,
|
|
70782
70907
|
onSearch: ke,
|
|
@@ -70790,7 +70915,7 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70790
70915
|
children: /* @__PURE__ */ Z("span", {
|
|
70791
70916
|
className: "cc-live-pill",
|
|
70792
70917
|
"aria-live": "polite",
|
|
70793
|
-
children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${Ve}` }),
|
|
70918
|
+
children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${Ve}` }), TX[me] ?? "Offline"]
|
|
70794
70919
|
})
|
|
70795
70920
|
})
|
|
70796
70921
|
}),
|
|
@@ -70819,7 +70944,7 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70819
70944
|
ariaLabel: d,
|
|
70820
70945
|
children: P ? null : Be
|
|
70821
70946
|
}),
|
|
70822
|
-
/* @__PURE__ */ X(
|
|
70947
|
+
/* @__PURE__ */ X(_X, {
|
|
70823
70948
|
open: !!oe,
|
|
70824
70949
|
moduleName: oe?.moduleName,
|
|
70825
70950
|
title: oe?.title,
|
|
@@ -70832,23 +70957,23 @@ function TX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70832
70957
|
}
|
|
70833
70958
|
//#endregion
|
|
70834
70959
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/SearchResultsWorkspace.jsx
|
|
70835
|
-
var
|
|
70836
|
-
function
|
|
70960
|
+
var kX = [];
|
|
70961
|
+
function AX(e) {
|
|
70837
70962
|
let t = [
|
|
70838
70963
|
e,
|
|
70839
70964
|
e?.data,
|
|
70840
70965
|
e?.data?.data
|
|
70841
|
-
], n = t.map((e) => e?.total ?? e?.pagination?.total).find((e) => Number.isFinite(Number(e)) && e !== null && e !== ""), r = t.map((e) => e?.tabs).find(Array.isArray) ??
|
|
70966
|
+
], n = t.map((e) => e?.total ?? e?.pagination?.total).find((e) => Number.isFinite(Number(e)) && e !== null && e !== ""), r = t.map((e) => e?.tabs).find(Array.isArray) ?? kX;
|
|
70842
70967
|
return {
|
|
70843
70968
|
total: n === void 0 ? null : Number(n),
|
|
70844
70969
|
tabs: r
|
|
70845
70970
|
};
|
|
70846
70971
|
}
|
|
70847
|
-
var
|
|
70848
|
-
function
|
|
70849
|
-
let [_, v] = R(m), [y, b] = R(
|
|
70972
|
+
var jX = ["module:candidates", "module:submissions"];
|
|
70973
|
+
function MX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r, quickViewWidth: i = 340, railWidth: a = 240, liveTopics: o = jX, renderHeader: s, resultsTitle: c, fallbackView: l, preferredView: u, viewSource: d = "default", fill: f = !1, quickViewMode: p = "docked", defaultRailCollapsed: m = !1, collapsedRailWidth: h = 44, showRail: g = !0 }) {
|
|
70974
|
+
let [_, v] = R(m), [y, b] = R(kX), [x, S] = R(""), [C, w] = R(null), [T, E] = R({
|
|
70850
70975
|
total: null,
|
|
70851
|
-
tabs:
|
|
70976
|
+
tabs: kX,
|
|
70852
70977
|
durationMs: null
|
|
70853
70978
|
}), D = $K({
|
|
70854
70979
|
topics: o,
|
|
@@ -70859,7 +70984,7 @@ function kX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
|
|
|
70859
70984
|
baseFetch: L(() => typeof O == "function" ? async (...e) => {
|
|
70860
70985
|
let t = typeof performance < "u" ? performance.now() : Date.now(), n = await O(...e), r = typeof performance < "u" ? performance.now() : Date.now();
|
|
70861
70986
|
return E({
|
|
70862
|
-
...
|
|
70987
|
+
...AX(n),
|
|
70863
70988
|
durationMs: Math.max(0, r - t)
|
|
70864
70989
|
}), n;
|
|
70865
70990
|
} : O, [O]),
|
|
@@ -70954,11 +71079,11 @@ function kX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
|
|
|
70954
71079
|
}
|
|
70955
71080
|
//#endregion
|
|
70956
71081
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/SearchSummaryBanner.jsx
|
|
70957
|
-
function
|
|
71082
|
+
function NX(e) {
|
|
70958
71083
|
return (e ?? []).filter((e) => e != null && String(e).trim() !== "");
|
|
70959
71084
|
}
|
|
70960
|
-
function
|
|
70961
|
-
let u =
|
|
71085
|
+
function PX({ icon: e = /* @__PURE__ */ X(Tl, {}), title: t = "Search", criteria: n = [], details: r = [], badge: i = null, onEdit: a, editLabel: o = "Edit Search", expanded: s = !1, onToggle: c, className: l = "" }) {
|
|
71086
|
+
let u = NX(n), d = NX(r);
|
|
70962
71087
|
return /* @__PURE__ */ Z("section", {
|
|
70963
71088
|
className: `cc-search-summary ${l}`.trim(),
|
|
70964
71089
|
"aria-label": `${t} summary`,
|
|
@@ -71013,7 +71138,7 @@ function jX({ icon: e = /* @__PURE__ */ X(Tl, {}), title: t = "Search", criteria
|
|
|
71013
71138
|
}
|
|
71014
71139
|
//#endregion
|
|
71015
71140
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/WorkspaceAppFrame.jsx
|
|
71016
|
-
function
|
|
71141
|
+
function FX(...e) {
|
|
71017
71142
|
try {
|
|
71018
71143
|
for (let t of e) {
|
|
71019
71144
|
let e = (localStorage.getItem(t) || "").trim();
|
|
@@ -71022,34 +71147,34 @@ function MX(...e) {
|
|
|
71022
71147
|
} catch {}
|
|
71023
71148
|
return "";
|
|
71024
71149
|
}
|
|
71025
|
-
function
|
|
71150
|
+
function IX(e) {
|
|
71026
71151
|
return String(e || "").split(" ").filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
71027
71152
|
}
|
|
71028
|
-
function
|
|
71153
|
+
function LX(e) {
|
|
71029
71154
|
let t = String(e || "").split(" ").filter(Boolean);
|
|
71030
71155
|
return t.length ? `${t[0].charAt(0)}${t.length > 1 ? t.at(-1).charAt(0) : ""}`.toUpperCase() : "U";
|
|
71031
71156
|
}
|
|
71032
|
-
function
|
|
71157
|
+
function RX(e) {
|
|
71033
71158
|
let t = `url("${String(e).replace(/"/g, "%22")}")`;
|
|
71034
71159
|
return {
|
|
71035
71160
|
WebkitMaskImage: t,
|
|
71036
71161
|
maskImage: t
|
|
71037
71162
|
};
|
|
71038
71163
|
}
|
|
71039
|
-
function
|
|
71164
|
+
function zX() {
|
|
71040
71165
|
return /* @__PURE__ */ Z("span", {
|
|
71041
71166
|
className: "cc-frame__logo",
|
|
71042
71167
|
"aria-label": "Zinnext",
|
|
71043
71168
|
children: [/* @__PURE__ */ X("span", {
|
|
71044
71169
|
className: "cc-frame__logo-icon",
|
|
71045
|
-
style:
|
|
71170
|
+
style: RX(pw)
|
|
71046
71171
|
}), /* @__PURE__ */ X("span", {
|
|
71047
71172
|
className: "cc-frame__logo-text",
|
|
71048
|
-
style:
|
|
71173
|
+
style: RX(mw)
|
|
71049
71174
|
})]
|
|
71050
71175
|
});
|
|
71051
71176
|
}
|
|
71052
|
-
function
|
|
71177
|
+
function BX({ value: e = "", placeholder: t, onSearch: n }) {
|
|
71053
71178
|
let [r, i] = R(e), [a, o] = R(e);
|
|
71054
71179
|
return e !== a && (o(e), i(e)), /* @__PURE__ */ X(H, {
|
|
71055
71180
|
className: "cc-frame__search-input",
|
|
@@ -71064,10 +71189,10 @@ function LX({ value: e = "", placeholder: t, onSearch: n }) {
|
|
|
71064
71189
|
onPressEnter: () => n?.(r.trim())
|
|
71065
71190
|
});
|
|
71066
71191
|
}
|
|
71067
|
-
function
|
|
71192
|
+
function VX({ navItems: e = [], brand: t = null, search: n = null, headerExtra: r = null, user: i = null, userMenuItems: a = [], loginPath: o = "/login", children: s }) {
|
|
71068
71193
|
let c = cu(), l = lu(), [u, d] = R(!1), [p, m] = R(c.pathname);
|
|
71069
71194
|
p !== c.pathname && (m(c.pathname), d(!1));
|
|
71070
|
-
let h =
|
|
71195
|
+
let h = IX(i?.name || FX("userName", "preferred_Username") || "User"), g = i?.subtitle ?? FX("roleName", "userRoleName"), _ = [
|
|
71071
71196
|
...a,
|
|
71072
71197
|
...a.length ? [{ type: "divider" }] : [],
|
|
71073
71198
|
{
|
|
@@ -71096,11 +71221,11 @@ function RX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
|
|
|
71096
71221
|
}),
|
|
71097
71222
|
/* @__PURE__ */ X("div", {
|
|
71098
71223
|
className: "cc-frame__brand",
|
|
71099
|
-
children: t ?? /* @__PURE__ */ X(
|
|
71224
|
+
children: t ?? /* @__PURE__ */ X(zX, {})
|
|
71100
71225
|
}),
|
|
71101
71226
|
n && /* @__PURE__ */ X("div", {
|
|
71102
71227
|
className: "cc-frame__search",
|
|
71103
|
-
children: /* @__PURE__ */ X(
|
|
71228
|
+
children: /* @__PURE__ */ X(BX, {
|
|
71104
71229
|
value: n.value ?? "",
|
|
71105
71230
|
placeholder: n.placeholder ?? "Search…",
|
|
71106
71231
|
onSearch: n.onSearch
|
|
@@ -71120,7 +71245,7 @@ function RX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
|
|
|
71120
71245
|
/* @__PURE__ */ X(Go, {
|
|
71121
71246
|
size: 40,
|
|
71122
71247
|
className: "cc-frame__avatar",
|
|
71123
|
-
children:
|
|
71248
|
+
children: LX(h)
|
|
71124
71249
|
}),
|
|
71125
71250
|
/* @__PURE__ */ Z("span", {
|
|
71126
71251
|
className: "cc-frame__user-text",
|
|
@@ -71147,7 +71272,7 @@ function RX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
|
|
|
71147
71272
|
"aria-label": "Main",
|
|
71148
71273
|
children: [/* @__PURE__ */ X("div", {
|
|
71149
71274
|
className: "cc-frame__nav-brand",
|
|
71150
|
-
children: t ?? /* @__PURE__ */ X(
|
|
71275
|
+
children: t ?? /* @__PURE__ */ X(zX, {})
|
|
71151
71276
|
}), /* @__PURE__ */ X("ul", {
|
|
71152
71277
|
className: "cc-frame__nav-list",
|
|
71153
71278
|
children: e.map((e) => {
|
|
@@ -71189,53 +71314,53 @@ function RX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
|
|
|
71189
71314
|
}
|
|
71190
71315
|
//#endregion
|
|
71191
71316
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/searchSummary.js
|
|
71192
|
-
var
|
|
71193
|
-
function
|
|
71317
|
+
var HX = new Intl.NumberFormat();
|
|
71318
|
+
function UX(e) {
|
|
71194
71319
|
return e == null || typeof e == "string" && e.trim() === "";
|
|
71195
71320
|
}
|
|
71196
|
-
function
|
|
71321
|
+
function WX(e, t) {
|
|
71197
71322
|
let n = (Array.isArray(e?.options) ? e.options : []).find((e) => String(e?.value ?? e) === String(t));
|
|
71198
71323
|
return String(n && typeof n == "object" ? n.label ?? n.value ?? t : t);
|
|
71199
71324
|
}
|
|
71200
|
-
function
|
|
71201
|
-
if (
|
|
71325
|
+
function GX(e, t) {
|
|
71326
|
+
if (UX(t)) return "";
|
|
71202
71327
|
if (typeof t == "boolean") return t ? String(e?.label ?? e?.field ?? "") : "";
|
|
71203
71328
|
if (typeof t == "object") {
|
|
71204
71329
|
if (typeof t.format == "function") return t.format("DD MMM YYYY");
|
|
71205
71330
|
if ("label" in t || "value" in t) return String(t.label ?? t.value ?? "");
|
|
71206
71331
|
let e = t.from ?? t.min ?? t.start, n = t.to ?? t.max ?? t.end;
|
|
71207
|
-
return !
|
|
71332
|
+
return !UX(e) || !UX(n) ? [e, n].filter((e) => !UX(e)).join("–") : "";
|
|
71208
71333
|
}
|
|
71209
|
-
return
|
|
71334
|
+
return WX(e, t).trim();
|
|
71210
71335
|
}
|
|
71211
|
-
function
|
|
71336
|
+
function KX(e = {}, t = [], { skip: n = [] } = {}) {
|
|
71212
71337
|
let r = new Set(n);
|
|
71213
71338
|
return (t ?? []).flatMap((t) => {
|
|
71214
71339
|
let n = t?.field;
|
|
71215
71340
|
if (!n || r.has(n)) return [];
|
|
71216
71341
|
let i = e?.[n];
|
|
71217
|
-
if (
|
|
71342
|
+
if (UX(i)) return [];
|
|
71218
71343
|
if (hb(t)) {
|
|
71219
71344
|
let { terms: e, expression: t } = mb(i), n = e.map((e) => e.value).filter(Boolean);
|
|
71220
71345
|
return n.length ? [n.join(", ")] : t.trim() ? [t.trim()] : [];
|
|
71221
71346
|
}
|
|
71222
71347
|
if (Array.isArray(i)) {
|
|
71223
|
-
let e = i.map((e) =>
|
|
71348
|
+
let e = i.map((e) => GX(t, e)).filter(Boolean);
|
|
71224
71349
|
return e.length ? [e.join(", ")] : [];
|
|
71225
71350
|
}
|
|
71226
|
-
let a =
|
|
71351
|
+
let a = GX(t, i);
|
|
71227
71352
|
return a ? [a] : [];
|
|
71228
71353
|
});
|
|
71229
71354
|
}
|
|
71230
|
-
function
|
|
71355
|
+
function qX(e) {
|
|
71231
71356
|
return !Number.isFinite(e) || e < 0 ? "" : e < 1e4 ? `${(e / 1e3).toFixed(1)} seconds` : `${Math.round(e / 1e3)} seconds`;
|
|
71232
71357
|
}
|
|
71233
|
-
function
|
|
71234
|
-
return Number.isFinite(e) ?
|
|
71358
|
+
function JX(e) {
|
|
71359
|
+
return Number.isFinite(e) ? HX.format(e) : "";
|
|
71235
71360
|
}
|
|
71236
71361
|
//#endregion
|
|
71237
71362
|
//#region src/components/COMBAINED_COMPONENTS/helpers/realtime/RealtimeProvider.jsx
|
|
71238
|
-
function
|
|
71363
|
+
function YX({ enabled: e = !0, children: t }) {
|
|
71239
71364
|
let [n] = R(() => e ? VK() : null);
|
|
71240
71365
|
return I(() => {
|
|
71241
71366
|
if (!n) return;
|
|
@@ -71253,10 +71378,10 @@ function KX({ enabled: e = !0, children: t }) {
|
|
|
71253
71378
|
}
|
|
71254
71379
|
//#endregion
|
|
71255
71380
|
//#region src/components/COMBAINED_COMPONENTS/helpers/hub/fetchRelatedRecords.js
|
|
71256
|
-
async function
|
|
71257
|
-
return
|
|
71381
|
+
async function XX(e, t, n, r = {}) {
|
|
71382
|
+
return ZX(e, KG(t, n), r);
|
|
71258
71383
|
}
|
|
71259
|
-
async function
|
|
71384
|
+
async function ZX(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a = "" } = {}) {
|
|
71260
71385
|
let o = Array.isArray(t) ? t.filter((e) => e?.field) : [];
|
|
71261
71386
|
if (!e || o.length === 0) return {
|
|
71262
71387
|
rows: [],
|
|
@@ -71274,9 +71399,9 @@ async function JX(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a
|
|
|
71274
71399
|
}
|
|
71275
71400
|
//#endregion
|
|
71276
71401
|
//#region src/index.js
|
|
71277
|
-
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-
|
|
71278
|
-
var
|
|
71402
|
+
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-13T06:53:37.326Z");
|
|
71403
|
+
var QX = Qz, $X = iE(sU), eZ = iE(lU), tZ = iE(wU), nZ = iE(IU), rZ = iE(GU), iZ = iE(JU), aZ = iE(ZU), oZ = iE(eW), sZ = iE(nW), cZ = iE(hW), lZ = iE(_W);
|
|
71279
71404
|
//#endregion
|
|
71280
|
-
export { F as ACTION_RULE_SURFACES, D as ADMIN_API_URL, c as ADMIN_APP_ID, E as APP_ID, a as AUTH_URL, kq as ActionInputBox, $f as ActivityNotesCard, Jf as ActivityTab, Dz as AddBatchCandidatePopup, po as AddFormV1,
|
|
71405
|
+
export { F as ACTION_RULE_SURFACES, D as ADMIN_API_URL, c as ADMIN_APP_ID, E as APP_ID, a as AUTH_URL, kq as ActionInputBox, $f as ActivityNotesCard, Jf as ActivityTab, Dz as AddBatchCandidatePopup, po as AddFormV1, _X as AddRecordDrawer, Qz as AdminDashboard, wP as AdminDashboardContent, QX as AdminPage, xo as AppAlert, Be as AppButton, DT as AppShell, PS as ApprovalActionBar, ep as AssigneeAvatars, bT as AuthGuard, Hg as BILLING_STATUS_FLOW, bx as BOOLEAN_API_KEYS, ab as BOOLEAN_PARSEABLE_API_KEYS, Tn as BUILT_IN_WIZARD_STEP_TYPES, tp as BULK_UPLOAD_DEFAULT_ACCEPT, np as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, pe as Breadcrumb, tZ as BulkUploadPage, up as BulkUploadPanel, t as CANDIDATES_URL, iC as CONTRACT_C2C, rC as CONTRACT_W2, Nm as CURRENCY_SYMBOLS, Eu as CalendarCard, cY as CombinedDashboardPage, cY as DASHBOARDPAGE, aJ as CombinedDetailViewPage, aJ as DETAILVIEWPAGE, Gq as CombinedHomePage, Gq as HOMEPAGE, lX as CompactRecordList, OP as CoreThemeAdminApp, DP as CoreThemeAdminRoutes, eX as CreateActionButton, mn as CustomPagination, nS as DEFAULT_HOURS_POLICY, gx as DEFAULT_RESULTS_VIEW, qY as DETAILSSECTION, qY as DetailsSection, BY as DETAILS_BLOCKS, lY as DETAILS_ICONS, ES as DayLogModal, Cp as DescriptionBlock, G_ as DetailHeaderCard, Q_ as DetailViewPage, Bh as DetailViewV1, eo as DocumentViewer, Df as DynamicCards, YI as DynamicPopup, Mz as DynamicPopupRoute, yn as DynamicTabs, $v as DynamicWizard, qv as EditFormV1, Bb as FIELD_TYPE_REGISTRY, YS as FINANCE_APPROVAL_CONFIG, HS as FINANCE_TYPE_CFO, VS as FINANCE_TYPE_ONBOARDING_MANAGER, GS as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, US as FINANCE_TYPE_ONLY_FINANCE, BS as FINANCE_TYPE_SUBMISSION_MANAGER, WS as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, lw as FileListCard, gG as FilterRail, HC as FinanceApprovalPanel, C_ as FinanceAvatar, D_ as FinanceBadge, IS as FinanceDayCell, h_ as FinanceDivider, w_ as FinanceEmployeeCell, f_ as FinanceEmptyState, g_ as FinanceEquation, b_ as FinanceHistoryTimeline, d_ as FinanceHoursGrid, u_ as FinanceKpiRow, m_ as FinanceLine, tS as FinanceListToolbar, O_ as FinanceMarginBadge, E_ as FinanceMoneyCell, j_ as FinanceRecordsTable, k_ as FinanceRowChevron, p_ as FinanceSection, l_ as FinanceStatusPill, T_ as FinanceTextCell, RS as FinanceTimesheetAnalysis, __ as FinanceWorkflowSteps, rS as HOURS_MESSAGES, Rw as Header, Mf as HierarchyUserFilter, Kq as HubOverview, T as JOBS_URL, $X as LegacyAdminPage, Nr as ListView, AG as ListWithQuickView, lZ as LmsHomePage, cZ as LmsTestForm, OT as Login, HG as MATCH_NOTHING, aF as MailPopup, iZ as ManageModules, aZ as ManageSubmodules, $Y as MasterDetailWorkspace, my as ModuleRowActions, OX as ModuleWorkspace, NS as NotesPanel, Qf as NotesTab, sx as OPEN_AS_OPTIONS, eq as PAGE_ICONS, Ug as PAYROLL_STATUS_FLOW, vz as POPUP_CONFIGS, mX as PanelBreadcrumb, fX as PanelTabs, Ry as ParamCardView, Wy as ParamListView, Hz as PaymentInvoicePopup, hS as PeriodBadgeTag, IF as PreviewPopup, rE as ProjectSelect, MS as ProofUploadPreview, kS as QuickLogBar, DS as QuickLogSelectionBar, Wq as QuickViewCard, jq as QuickViewModuleActions, kG as QuickViewPopover, qW as RAIL_KIND, OK as REALTIME_STATUS, hx as RESULTS_VIEW_OPTIONS, YX as RealtimeProvider, pX as RecordDetailPanel, $q as RecordHub, VG as RecordQuickView, gX as RecordSidePanel, OS as RejectionReasonModal, vK as RelatedModuleTab, r as SUBMISSIONS_URL, Kx as SearchBuilderV1, MX as SearchResultsWorkspace, PX as SearchSummaryBanner, lH as SettingsPage, gT as Sidebar, yo as StatStrip, Jx as StatusBadge, mS as StatusBadgeTag, eZ as StickyNotesFullPage, Xx as StylishDynamicTabs, Qx as TemplateEditor, nZ as TestForm, sZ as TestingHomePage, Bf as TimelineGroups, CS as TimesheetDayCell, Fr as TipTapEditor, Zz as UserForm, Iz as VendorShareDrawer, ve as ViewSummaryWidget, Ze as WIZARD_ACTIONS_CONTRACT_VERSION, ot as WIZARD_ACTIONS_PATH, Ue as WIZARD_CONTENT_TYPES, mt as WizardAccessMatrixStep, ye as WizardActionError, mi as WizardActivityStep, te as WizardChoiceCardsStep, Mt as WizardDeclarationStep, De as WizardListStep, Tr as WizardPermissionMatrixStep, HF as WizardPopup, Ot as WizardPreview, Fe as WizardPreviewStep, It as WizardStepContent, Ce as WizardSuccessStep, ze as WizardUnknownContentStep, VX as WorkspaceAppFrame, OG as WorkspaceListView, tX as WorkspaceTopBar, oZ as ZinnextTableView, rZ as ZinnextTestForm, Gn as actedRecently, Xe as actionRuleConditionMatches, ky as adminActionAllowed, Dn as appNow, ka as applyIntegrationStatus, id as approveSubmission, lJ as attentionItems, sp as buildAcceptAttr, Tx as buildBooleanRequest, r_ as buildCsv, Zg as buildDailyRows, xS as buildDayGradient, Un as buildFormWizardSteps, kC as buildRateHistoryEntries, KG as buildRelationConditions, Ax as buildSearchRequest, e_ as buildWeeklyRollup, kK as canonicalModule, sn as clearNewRecord, m as clearSelectedProject, Gr as colors, xC as computeFinance, lS as computeHoursPolicy, t_ as computeMarginBand, kr as conditionMatches, n as configureCoreTheme, Vn as configuredFieldLabel, Xv as configuredWizardSteps, wr as confirmAction, cG as countActiveRows, WW as createAllWorkflowsListFetcher, RW as createMergedListFetcher, jW as createModuleListFetchAdapter, FK as createRealtimeClient, zW as createWorkflowStageListFetcher, Pm as currencySymbol, oJ as dashboardRange, CW as defaultMergeRow, Na as deleteIntegrationConfig, Xg as deriveDayStats, dS as describeCapacity, iX as displayText, s_ as downloadCsv, oG as draftToRows, nn as evaluateShowIfWith, v as fetchJsonWithAuth, XX as fetchRelatedRecords, ZX as fetchScopedRecords, Bn as fillConfirmText, hC as findEmployerRow, pC as flattenGroups, Bm as formatAmount, xr as formatApp, or as formatAppDateTime, op as formatFileSize, AC as formatFinanceMoney, Ng as formatHours, Vm as formatMoney, Fg as formatPercent, Hm as formatRate, JX as formatSearchCount, qX as formatSearchDuration, Ht as getActivity, GW as getAllWorkflowsModuleList, Ln as getAppTimeZone, zg as getApprovalDate, Sa as getBgcIntegrationConfig, Li as getBgcIntegrationSummary, Wg as getBillingActionStates, Kb as getBooleanEligibleTypes, l as getCurrentRoleName, a_ as getFieldLabel, Hb as getFieldType, ap as getFileExtension, eC as getFinanceApprovalConfig, _o as getFormGroups, QC as getFormGroupsRaw, Qa as getIntegrationConfig, xi as getIntegrationConfigs, $i as getIntegrationSummary, wd as getModuleConfig, ft as getModuleDataDetail, Gg as getPayrollActionStates, Ed as getPeriodBadgeConfig, ix as getSearchPopup, g as getSelectedProject, C as getStoredToken, u as getStoredUser, d as getUserRoles, ad as getVMSApprove, o_ as getValueStyle, KW as getWorkflowStageModuleList, Kg as getWorkflowSteps, Rg as humanizeEvent, i_ as indexFieldConfig, Ig as initialsOf, Uj as inputPayload, lb as insertTokenAtCursor, y as invalidateGetCache, Ub as isBooleanEligible, sb as isBooleanParsable, _ as isTester, an as isWizardConfigEnabled, _r as isWizardConfigReady, hq as listPropsForColumns, f as logout, Nx as makeSearchFetcher, $n as mapListResponse, nC as marginIncludesReferral, yr as markNewRecord, bC as matchLocationTax, Ir as mergeWizardSubmitValues, AK as moduleTopic, _t as moduleViewAllowed, tv as n, _n as newRecordMarks, pi as normalizeConfirm, _C as normalizeContract, Bj as normalizeInputPrompt, lq as normalizePageLayout, pG as parseRows, sX as pickCompactFields, RG as quickViewFields, LG as quickViewValueText, dp as r, Im as rateUnitLabel, Rm as rateUnitShort, dx as readActionButtons, TG as readPageParam, uS as reconcileHours, ir as recordActionRun, cX as recordIdOf, jK as recordTopic, Vb as registerFieldType, rx as registerSearchPopup, Ur as registerWizardPreview, mr as registerWizardStepType, sd as rejectSubmission, JG as relationSignature, Gf as resolveActivityMeta, SC as resolveAndCompute, sS as resolveDayKind, yC as resolveFinanceInputs, xW as resolveMergeKey, xW as resolveMergedListKey, lx as resolveOpenAs, cq as resolvePageButtons, tq as resolvePageIcon, iq as resolvePageValue, Oq as resolveQuickViewActions, tC as resolveRejectionReason, yx as resolveResultsSearchPlaceholder, vx as resolveResultsView, $C as resolveSubmissionFinance, lG as rowsSignature, sG as rowsToDraft, Se as ruleAppliesToSurface, Pe as rulePrimaryAction, ly as runModuleAction, je as runWizardAction, Wt as safeWizardActionRoute, Oa as saveBgcIntegrationConfig, aa as saveIntegrationConfig, tK as scopeConditionsFor, KX as searchCriteriaParts, fG as serializeRows, w as setSelectedProject, Pr as showIfConditions, BW as stageCountKey, eK as supportsAnyOf, kT as t, Zi as testIntegrationConnection, Qt as toApp, zm as toNumber, tG as toRailFields, NK as topicsForEvent, Xr as tzLabel, ui as tzShortLabel, ax as unregisterSearchPopup, qG as unscopedConditions, jy as useAdminAction, Ay as useAdminActionsVersion, Qv as useConfiguredWizardSteps, Ae as useDropdownFields, Dt as useDropdownValues, uw as useEditForm, jt as useFieldConfig, zt as useFilterFields, DG as useInPlaceRecordLinks, $K as useLiveRefresh, _i as useMenuPermission, ay as useModuleActions, ie as useModuleViewAccess, Jr as useNewRecordMarks, JK as useRealtimeClient, QK as useRealtimeReconnect, YK as useRealtimeStatus, ZK as useRealtimeTopics, hX as useRecordFields, Zq as useRecordHub, Y_ as useRecordRefresh, hK as useRelatedCounts, CG as useWorkspaceList, cb as validateBooleanQuery, cp as validateBulkFile, Hj as validateInputValue, i as withAdminAppId, h as withAppId, iE as withAuthGuard, EG as withPageParam, YG as withSubTab };
|
|
71281
71406
|
|
|
71282
71407
|
//# sourceMappingURL=index.js.map
|