@realtek/core-theme 0.0.369 → 0.0.371
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/index.cjs +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +1204 -528
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -66775,7 +66775,35 @@ function pJ(e, t = /* @__PURE__ */ new Date()) {
|
|
|
66775
66775
|
toIso: i.toISOString()
|
|
66776
66776
|
};
|
|
66777
66777
|
}
|
|
66778
|
-
function mJ(e, t
|
|
66778
|
+
function mJ(e, t = /* @__PURE__ */ new Date()) {
|
|
66779
|
+
let n = Math.max(1, Math.round(Number(e) || 7)), r = new Date(t);
|
|
66780
|
+
r.setHours(0, 0, 0, 0), r.setDate(r.getDate() - (n - 1));
|
|
66781
|
+
let i = new Date(t);
|
|
66782
|
+
return i.setHours(23, 59, 59, 999), {
|
|
66783
|
+
key: `last${n}`,
|
|
66784
|
+
days: n,
|
|
66785
|
+
from: r,
|
|
66786
|
+
to: i,
|
|
66787
|
+
fromIso: r.toISOString(),
|
|
66788
|
+
toIso: i.toISOString()
|
|
66789
|
+
};
|
|
66790
|
+
}
|
|
66791
|
+
function hJ(e, t = /* @__PURE__ */ new Date()) {
|
|
66792
|
+
let n = e instanceof Date ? e : new Date(e);
|
|
66793
|
+
if (Number.isNaN(n.getTime())) return "";
|
|
66794
|
+
let r = Math.max(0, Math.round((t - n) / 1e3));
|
|
66795
|
+
if (r < 60) return "just now";
|
|
66796
|
+
let i = Math.round(r / 60);
|
|
66797
|
+
if (i < 60) return `${i} min${i === 1 ? "" : "s"} ago`;
|
|
66798
|
+
let a = Math.round(i / 60);
|
|
66799
|
+
if (a < 24) return `${a} hr${a === 1 ? "" : "s"} ago`;
|
|
66800
|
+
let o = Math.round(a / 24);
|
|
66801
|
+
return o < 7 ? `${o} day${o === 1 ? "" : "s"} ago` : n.toLocaleDateString([], {
|
|
66802
|
+
day: "numeric",
|
|
66803
|
+
month: "short"
|
|
66804
|
+
});
|
|
66805
|
+
}
|
|
66806
|
+
function gJ(e, t, n = (e) => e.count) {
|
|
66779
66807
|
let r = new Map(rq(e).map((e) => [String(e.key), Number(n(e)) || 0])), i = [], a = new Date(t.from);
|
|
66780
66808
|
for (let e = 0; e < t.days; e += 1) {
|
|
66781
66809
|
let e = fJ(a);
|
|
@@ -66794,7 +66822,7 @@ function mJ(e, t, n = (e) => e.count) {
|
|
|
66794
66822
|
}
|
|
66795
66823
|
return i;
|
|
66796
66824
|
}
|
|
66797
|
-
function
|
|
66825
|
+
function _J(e, { labels: t, pick: n = (e) => e.count, order: r } = {}) {
|
|
66798
66826
|
let i = (e) => e === "__other" ? "Other" : e === "" ? "Not set" : typeof t == "function" ? t(e) ?? e : t?.[e] ?? e, a = rq(e).map((e) => ({
|
|
66799
66827
|
key: String(e.key),
|
|
66800
66828
|
label: String(i(String(e.key))),
|
|
@@ -66809,16 +66837,523 @@ function hJ(e, { labels: t, pick: n = (e) => e.count, order: r } = {}) {
|
|
|
66809
66837
|
}
|
|
66810
66838
|
return a;
|
|
66811
66839
|
}
|
|
66812
|
-
function
|
|
66840
|
+
function vJ(e) {
|
|
66813
66841
|
let t = rq(e).map(Number).filter(Number.isFinite);
|
|
66814
66842
|
if (t.length < 2) return null;
|
|
66815
66843
|
let n = Math.floor(t.length / 2), r = t.slice(0, n).reduce((e, t) => e + t, 0), i = t.slice(t.length - n).reduce((e, t) => e + t, 0);
|
|
66816
66844
|
return r === 0 ? i === 0 ? 0 : null : Math.round((i - r) / r * 100);
|
|
66817
66845
|
}
|
|
66818
|
-
var
|
|
66846
|
+
var yJ = new Intl.NumberFormat(void 0, {
|
|
66819
66847
|
notation: "compact",
|
|
66820
66848
|
maximumFractionDigits: 1
|
|
66821
|
-
}),
|
|
66849
|
+
}), bJ = (e) => e == null || !Number.isFinite(Number(e)) ? "–" : yJ.format(Number(e)), xJ = (e) => e == null ? "" : String(e);
|
|
66850
|
+
function SJ(e, t, n) {
|
|
66851
|
+
return e.map((e) => {
|
|
66852
|
+
let r = new Set(rq(e.match ?? e.key).map(xJ)), i = {};
|
|
66853
|
+
return t.forEach((t, a) => {
|
|
66854
|
+
if (typeof t.value == "function") {
|
|
66855
|
+
i[t.key] = Number(t.value(e)) || 0;
|
|
66856
|
+
return;
|
|
66857
|
+
}
|
|
66858
|
+
i[t.key] = rq(n[a]).reduce((e, t) => r.has(xJ(t.key)) ? e + (Number(t.count) || 0) : e, 0);
|
|
66859
|
+
}), {
|
|
66860
|
+
...e,
|
|
66861
|
+
values: i
|
|
66862
|
+
};
|
|
66863
|
+
});
|
|
66864
|
+
}
|
|
66865
|
+
//#endregion
|
|
66866
|
+
//#region src/components/COMBAINED_COMPONENTS/helpers/dashboard/DashboardPanels.jsx
|
|
66867
|
+
var CJ = (e, t) => (typeof e == "function" ? e(t) : e) ?? {}, wJ = (e, t, n = {}) => sq(oq(e, n, t));
|
|
66868
|
+
function TJ({ spec: e, ctx: t, fallback: n }) {
|
|
66869
|
+
if (!e || typeof e != "object") return /* @__PURE__ */ X(Qo, {
|
|
66870
|
+
image: Qo.PRESENTED_IMAGE_SIMPLE,
|
|
66871
|
+
description: n
|
|
66872
|
+
});
|
|
66873
|
+
let r = e.button, [i] = r && $(r.key) && cq(r, {}, {
|
|
66874
|
+
...t,
|
|
66875
|
+
module: r.module
|
|
66876
|
+
}) ? lq([{
|
|
66877
|
+
...r,
|
|
66878
|
+
onClick: r.onClick ?? (() => t.navigate(typeof r.to == "function" ? r.to(t) : r.to))
|
|
66879
|
+
}], {}, t) : [];
|
|
66880
|
+
return /* @__PURE__ */ Z("div", {
|
|
66881
|
+
className: "cc-dash-empty",
|
|
66882
|
+
role: "status",
|
|
66883
|
+
style: {
|
|
66884
|
+
display: "flex",
|
|
66885
|
+
flexDirection: "column",
|
|
66886
|
+
alignItems: "center",
|
|
66887
|
+
justifyContent: "center",
|
|
66888
|
+
textAlign: "center",
|
|
66889
|
+
gap: 6,
|
|
66890
|
+
padding: "8px 12px",
|
|
66891
|
+
minHeight: 140
|
|
66892
|
+
},
|
|
66893
|
+
children: [
|
|
66894
|
+
/* @__PURE__ */ X("span", {
|
|
66895
|
+
className: "cc-dash-empty__art",
|
|
66896
|
+
"data-art": e.art,
|
|
66897
|
+
"aria-hidden": "true",
|
|
66898
|
+
style: {
|
|
66899
|
+
display: "grid",
|
|
66900
|
+
placeItems: "center"
|
|
66901
|
+
},
|
|
66902
|
+
children: nq(e.icon)
|
|
66903
|
+
}),
|
|
66904
|
+
/* @__PURE__ */ X("strong", {
|
|
66905
|
+
className: "cc-dash-empty__title",
|
|
66906
|
+
children: wJ(e.title, t) || n
|
|
66907
|
+
}),
|
|
66908
|
+
$(e.text) || typeof e.text == "function" ? /* @__PURE__ */ X("span", {
|
|
66909
|
+
className: "cc-dash-empty__text",
|
|
66910
|
+
style: { maxWidth: 380 },
|
|
66911
|
+
children: wJ(e.text, t)
|
|
66912
|
+
}) : null,
|
|
66913
|
+
i ? /* @__PURE__ */ Z(z, {
|
|
66914
|
+
className: "cc-dash-empty__btn",
|
|
66915
|
+
size: "small",
|
|
66916
|
+
disabled: i.disabled,
|
|
66917
|
+
onClick: i.onClick,
|
|
66918
|
+
children: [
|
|
66919
|
+
i.label,
|
|
66920
|
+
" ",
|
|
66921
|
+
i.icon ?? /* @__PURE__ */ X(Ns, {})
|
|
66922
|
+
]
|
|
66923
|
+
}) : null
|
|
66924
|
+
]
|
|
66925
|
+
});
|
|
66926
|
+
}
|
|
66927
|
+
function EJ({ onRetry: e, what: t = "data" }) {
|
|
66928
|
+
return /* @__PURE__ */ X(zo, {
|
|
66929
|
+
type: "warning",
|
|
66930
|
+
showIcon: !0,
|
|
66931
|
+
message: `This ${t} could not be loaded.`,
|
|
66932
|
+
action: /* @__PURE__ */ X(z, {
|
|
66933
|
+
size: "small",
|
|
66934
|
+
onClick: e,
|
|
66935
|
+
children: "Retry"
|
|
66936
|
+
})
|
|
66937
|
+
});
|
|
66938
|
+
}
|
|
66939
|
+
function DJ(e, t) {
|
|
66940
|
+
let [n, r] = R({
|
|
66941
|
+
signature: "",
|
|
66942
|
+
value: null,
|
|
66943
|
+
error: ""
|
|
66944
|
+
}), [i, a] = R(0);
|
|
66945
|
+
return I(() => {
|
|
66946
|
+
let n = !0;
|
|
66947
|
+
return Promise.resolve().then(t).then((t) => {
|
|
66948
|
+
n && r({
|
|
66949
|
+
signature: e,
|
|
66950
|
+
value: t,
|
|
66951
|
+
error: ""
|
|
66952
|
+
});
|
|
66953
|
+
}, (t) => {
|
|
66954
|
+
n && r({
|
|
66955
|
+
signature: e,
|
|
66956
|
+
value: null,
|
|
66957
|
+
error: t?.status === 403 ? "forbidden" : "error"
|
|
66958
|
+
});
|
|
66959
|
+
}), () => {
|
|
66960
|
+
n = !1;
|
|
66961
|
+
};
|
|
66962
|
+
}, [e, i]), {
|
|
66963
|
+
...n,
|
|
66964
|
+
loading: n.signature !== e,
|
|
66965
|
+
retry: () => a((e) => e + 1)
|
|
66966
|
+
};
|
|
66967
|
+
}
|
|
66968
|
+
var OJ = (e) => rq((e?.data?.groups ?? e?.groups)?.items), kJ = (e) => e == null ? "" : String(e);
|
|
66969
|
+
function AJ({ panel: e, ctx: t, refreshKey: n, choice: r }) {
|
|
66970
|
+
let i = {
|
|
66971
|
+
...e,
|
|
66972
|
+
...r ?? {}
|
|
66973
|
+
}, a = rq(i.columns).filter((e) => e && $(e.key)), o = a.map((e) => typeof e.value == "function" ? null : {
|
|
66974
|
+
module: e.module || i.module,
|
|
66975
|
+
groupBy: e.groupBy || i.groupBy,
|
|
66976
|
+
relation: CJ(e.relation, t)
|
|
66977
|
+
}), { value: s, error: c, loading: l, retry: u } = DJ(JSON.stringify([
|
|
66978
|
+
e.key,
|
|
66979
|
+
r?.key,
|
|
66980
|
+
o,
|
|
66981
|
+
t.range.key,
|
|
66982
|
+
n
|
|
66983
|
+
]), async () => {
|
|
66984
|
+
let [e, ...n] = await Promise.all([typeof i.rows == "function" ? i.rows(t) : rq(i.rows), ...o.map((e) => e && $(e.module) && $(e.groupBy) ? N(e.module, 1, 0, {
|
|
66985
|
+
scopeConditions: JG(e.relation),
|
|
66986
|
+
...typeof e.relation.scope == "string" ? { scope: e.relation.scope } : {},
|
|
66987
|
+
queryParams: {
|
|
66988
|
+
...e.relation.queryParams ?? {},
|
|
66989
|
+
groupBy: e.groupBy,
|
|
66990
|
+
groupDate: "",
|
|
66991
|
+
groupTz: "",
|
|
66992
|
+
groupSum: ""
|
|
66993
|
+
}
|
|
66994
|
+
}).then(OJ) : [])]), r = rq(e);
|
|
66995
|
+
return r.length || (r = (n.find((e) => e.length) ?? []).map((e) => ({
|
|
66996
|
+
key: kJ(e.key),
|
|
66997
|
+
label: kJ(e.key) || "Not set"
|
|
66998
|
+
}))), SJ(r, a, n);
|
|
66999
|
+
});
|
|
67000
|
+
if (l) return /* @__PURE__ */ X(ms, {
|
|
67001
|
+
active: !0,
|
|
67002
|
+
title: !1,
|
|
67003
|
+
paragraph: { rows: 4 }
|
|
67004
|
+
});
|
|
67005
|
+
if (c === "forbidden") return /* @__PURE__ */ X(ws.Text, {
|
|
67006
|
+
type: "secondary",
|
|
67007
|
+
children: "You don't have access to this data."
|
|
67008
|
+
});
|
|
67009
|
+
if (c) return /* @__PURE__ */ X(EJ, {
|
|
67010
|
+
onRetry: u,
|
|
67011
|
+
what: "table"
|
|
67012
|
+
});
|
|
67013
|
+
let d = rq(s), f = i.sortBy;
|
|
67014
|
+
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(TJ, {
|
|
67015
|
+
spec: e.emptyState,
|
|
67016
|
+
ctx: t,
|
|
67017
|
+
fallback: wJ(e.empty, t) || "Nothing here right now."
|
|
67018
|
+
});
|
|
67019
|
+
let p = Number(i.limit) || 0, m = p ? d.slice(0, p) : d, h = i.action, g = {};
|
|
67020
|
+
if (a.forEach((e) => {
|
|
67021
|
+
g[e.key] = d.reduce((t, n) => t + (n.values[e.key] || 0), 0);
|
|
67022
|
+
}), i.rank) {
|
|
67023
|
+
let e = a[0];
|
|
67024
|
+
return /* @__PURE__ */ X("ol", {
|
|
67025
|
+
className: "cc-dash-rank",
|
|
67026
|
+
style: {
|
|
67027
|
+
listStyle: "none",
|
|
67028
|
+
margin: 0,
|
|
67029
|
+
padding: 0,
|
|
67030
|
+
display: "grid",
|
|
67031
|
+
gap: 4
|
|
67032
|
+
},
|
|
67033
|
+
children: m.map((n, r) => /* @__PURE__ */ Z("li", {
|
|
67034
|
+
className: "cc-dash-rank__row",
|
|
67035
|
+
style: {
|
|
67036
|
+
display: "grid",
|
|
67037
|
+
gridTemplateColumns: "auto 1fr auto auto",
|
|
67038
|
+
alignItems: "center",
|
|
67039
|
+
gap: 12,
|
|
67040
|
+
minHeight: 44
|
|
67041
|
+
},
|
|
67042
|
+
children: [
|
|
67043
|
+
/* @__PURE__ */ X("span", {
|
|
67044
|
+
className: "cc-dash-rank__n",
|
|
67045
|
+
"aria-hidden": "true",
|
|
67046
|
+
children: r + 1
|
|
67047
|
+
}),
|
|
67048
|
+
/* @__PURE__ */ X("span", {
|
|
67049
|
+
className: "cc-dash-rank__name",
|
|
67050
|
+
style: {
|
|
67051
|
+
minWidth: 0,
|
|
67052
|
+
overflow: "hidden",
|
|
67053
|
+
textOverflow: "ellipsis",
|
|
67054
|
+
whiteSpace: "nowrap"
|
|
67055
|
+
},
|
|
67056
|
+
children: n.label
|
|
67057
|
+
}),
|
|
67058
|
+
/* @__PURE__ */ X("span", {
|
|
67059
|
+
className: "cc-dash-rank__sub",
|
|
67060
|
+
children: n.sub ?? ""
|
|
67061
|
+
}),
|
|
67062
|
+
/* @__PURE__ */ X("strong", {
|
|
67063
|
+
className: "cc-dash-rank__value",
|
|
67064
|
+
"aria-label": `${wJ(e?.label, t)}: ${lJ(n.values[e?.key])}`,
|
|
67065
|
+
children: lJ(n.values[e?.key])
|
|
67066
|
+
})
|
|
67067
|
+
]
|
|
67068
|
+
}, n.key))
|
|
67069
|
+
});
|
|
67070
|
+
}
|
|
67071
|
+
return /* @__PURE__ */ X("div", {
|
|
67072
|
+
className: "cc-dash-table",
|
|
67073
|
+
style: { overflowX: "auto" },
|
|
67074
|
+
children: /* @__PURE__ */ Z("table", {
|
|
67075
|
+
style: {
|
|
67076
|
+
width: "100%",
|
|
67077
|
+
borderCollapse: "separate",
|
|
67078
|
+
borderSpacing: 0
|
|
67079
|
+
},
|
|
67080
|
+
children: [/* @__PURE__ */ X("thead", { children: /* @__PURE__ */ Z("tr", { children: [
|
|
67081
|
+
/* @__PURE__ */ X("th", {
|
|
67082
|
+
scope: "col",
|
|
67083
|
+
style: { textAlign: "start" },
|
|
67084
|
+
children: wJ(i.rowLabel, t) || "Name"
|
|
67085
|
+
}),
|
|
67086
|
+
a.map((e) => /* @__PURE__ */ X("th", {
|
|
67087
|
+
scope: "col",
|
|
67088
|
+
children: wJ(e.label, t)
|
|
67089
|
+
}, e.key)),
|
|
67090
|
+
h ? /* @__PURE__ */ X("th", {
|
|
67091
|
+
scope: "col",
|
|
67092
|
+
children: wJ(h.title, t) || "Action"
|
|
67093
|
+
}) : null
|
|
67094
|
+
] }) }), /* @__PURE__ */ Z("tbody", { children: [m.map((e) => {
|
|
67095
|
+
let n = h ? typeof h.to == "function" ? h.to(e, t) : h.to : "";
|
|
67096
|
+
return /* @__PURE__ */ Z("tr", { children: [
|
|
67097
|
+
/* @__PURE__ */ X("th", {
|
|
67098
|
+
scope: "row",
|
|
67099
|
+
style: { textAlign: "start" },
|
|
67100
|
+
children: /* @__PURE__ */ Z("span", {
|
|
67101
|
+
className: "cc-dash-table__who",
|
|
67102
|
+
style: {
|
|
67103
|
+
display: "flex",
|
|
67104
|
+
alignItems: "center",
|
|
67105
|
+
gap: 10,
|
|
67106
|
+
minWidth: 0
|
|
67107
|
+
},
|
|
67108
|
+
children: [i.avatar === "initials" ? /* @__PURE__ */ X("span", {
|
|
67109
|
+
className: "cc-dash-table__avatar",
|
|
67110
|
+
"aria-hidden": "true",
|
|
67111
|
+
children: String(e.label ?? "").split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0].toUpperCase()).join("")
|
|
67112
|
+
}) : /* @__PURE__ */ X(Ul, {
|
|
67113
|
+
className: "cc-dash-table__icon",
|
|
67114
|
+
"aria-hidden": "true"
|
|
67115
|
+
}), /* @__PURE__ */ Z("span", {
|
|
67116
|
+
style: {
|
|
67117
|
+
minWidth: 0,
|
|
67118
|
+
display: "flex",
|
|
67119
|
+
flexDirection: "column"
|
|
67120
|
+
},
|
|
67121
|
+
children: [/* @__PURE__ */ X("span", {
|
|
67122
|
+
className: "cc-dash-table__name",
|
|
67123
|
+
children: e.label
|
|
67124
|
+
}), e.sub ? /* @__PURE__ */ X("span", {
|
|
67125
|
+
className: "cc-dash-table__sub",
|
|
67126
|
+
children: e.sub
|
|
67127
|
+
}) : null]
|
|
67128
|
+
})]
|
|
67129
|
+
})
|
|
67130
|
+
}),
|
|
67131
|
+
a.map((t) => /* @__PURE__ */ X("td", { children: lJ(e.values[t.key]) }, t.key)),
|
|
67132
|
+
h ? /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(z, {
|
|
67133
|
+
size: "small",
|
|
67134
|
+
className: "cc-dash-table__action",
|
|
67135
|
+
"data-tone": typeof h.tone == "function" ? h.tone(e) : h.tone,
|
|
67136
|
+
disabled: !$(n),
|
|
67137
|
+
onClick: () => t.navigate(n),
|
|
67138
|
+
children: typeof h.label == "function" ? h.label(e) : wJ(h.label, t) || "View"
|
|
67139
|
+
}) }) : null
|
|
67140
|
+
] }, e.key);
|
|
67141
|
+
}), i.overall ? /* @__PURE__ */ Z("tr", {
|
|
67142
|
+
className: "cc-dash-table__overall",
|
|
67143
|
+
children: [
|
|
67144
|
+
/* @__PURE__ */ X("th", {
|
|
67145
|
+
scope: "row",
|
|
67146
|
+
style: { textAlign: "start" },
|
|
67147
|
+
children: typeof i.overall == "string" ? i.overall : "Overall"
|
|
67148
|
+
}),
|
|
67149
|
+
a.map((e) => /* @__PURE__ */ X("td", { children: lJ(g[e.key]) }, e.key)),
|
|
67150
|
+
h ? /* @__PURE__ */ X("td", {}) : null
|
|
67151
|
+
]
|
|
67152
|
+
}) : null] })]
|
|
67153
|
+
})
|
|
67154
|
+
});
|
|
67155
|
+
}
|
|
67156
|
+
function jJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
67157
|
+
let { value: r, error: i, loading: a, retry: o } = DJ(JSON.stringify([
|
|
67158
|
+
e.key,
|
|
67159
|
+
t.range.key,
|
|
67160
|
+
n
|
|
67161
|
+
]), () => typeof e.load == "function" ? e.load(t) : []);
|
|
67162
|
+
if (a) return /* @__PURE__ */ X(ms, {
|
|
67163
|
+
active: !0,
|
|
67164
|
+
title: !1,
|
|
67165
|
+
paragraph: { rows: 4 }
|
|
67166
|
+
});
|
|
67167
|
+
if (i) return /* @__PURE__ */ X(EJ, {
|
|
67168
|
+
onRetry: o,
|
|
67169
|
+
what: "activity"
|
|
67170
|
+
});
|
|
67171
|
+
let s = rq(r).slice(0, Number(e.limit) || 6);
|
|
67172
|
+
return s.length ? /* @__PURE__ */ X("ul", {
|
|
67173
|
+
className: "cc-dash-feed",
|
|
67174
|
+
style: {
|
|
67175
|
+
listStyle: "none",
|
|
67176
|
+
margin: 0,
|
|
67177
|
+
padding: 0,
|
|
67178
|
+
display: "grid",
|
|
67179
|
+
gap: 2
|
|
67180
|
+
},
|
|
67181
|
+
children: s.map((e, t) => /* @__PURE__ */ Z("li", {
|
|
67182
|
+
className: "cc-dash-feed__row",
|
|
67183
|
+
style: {
|
|
67184
|
+
display: "grid",
|
|
67185
|
+
gridTemplateColumns: "auto 1fr auto",
|
|
67186
|
+
alignItems: "center",
|
|
67187
|
+
gap: 12,
|
|
67188
|
+
minHeight: 48
|
|
67189
|
+
},
|
|
67190
|
+
children: [
|
|
67191
|
+
/* @__PURE__ */ X("span", {
|
|
67192
|
+
className: "cc-dash-feed__icon",
|
|
67193
|
+
"data-tone": e.tone,
|
|
67194
|
+
"aria-hidden": "true",
|
|
67195
|
+
children: nq(e.icon)
|
|
67196
|
+
}),
|
|
67197
|
+
/* @__PURE__ */ X("span", {
|
|
67198
|
+
className: "cc-dash-feed__text",
|
|
67199
|
+
style: { minWidth: 0 },
|
|
67200
|
+
children: e.text
|
|
67201
|
+
}),
|
|
67202
|
+
/* @__PURE__ */ X("time", {
|
|
67203
|
+
className: "cc-dash-feed__time",
|
|
67204
|
+
dateTime: e.time ? new Date(e.time).toISOString() : void 0,
|
|
67205
|
+
children: e.time ? hJ(e.time) : ""
|
|
67206
|
+
})
|
|
67207
|
+
]
|
|
67208
|
+
}, e.key ?? t))
|
|
67209
|
+
}) : /* @__PURE__ */ X(TJ, {
|
|
67210
|
+
spec: e.emptyState,
|
|
67211
|
+
ctx: t,
|
|
67212
|
+
fallback: wJ(e.empty, t) || "No recent activity."
|
|
67213
|
+
});
|
|
67214
|
+
}
|
|
67215
|
+
function MJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
67216
|
+
let { value: r, error: i, loading: a, retry: o } = DJ(JSON.stringify([
|
|
67217
|
+
e.key,
|
|
67218
|
+
t.range.key,
|
|
67219
|
+
n
|
|
67220
|
+
]), () => typeof e.load == "function" ? e.load(t) : []);
|
|
67221
|
+
if (a) return /* @__PURE__ */ X(ms, {
|
|
67222
|
+
active: !0,
|
|
67223
|
+
title: !1,
|
|
67224
|
+
paragraph: { rows: 4 }
|
|
67225
|
+
});
|
|
67226
|
+
if (i) return /* @__PURE__ */ X(EJ, {
|
|
67227
|
+
onRetry: o,
|
|
67228
|
+
what: "data"
|
|
67229
|
+
});
|
|
67230
|
+
let s = rq(r);
|
|
67231
|
+
return !s.length || s.every((e) => !Number(e.value)) ? /* @__PURE__ */ X(TJ, {
|
|
67232
|
+
spec: e.emptyState,
|
|
67233
|
+
ctx: t,
|
|
67234
|
+
fallback: wJ(e.empty, t) || "Nothing yet."
|
|
67235
|
+
}) : /* @__PURE__ */ X("ul", {
|
|
67236
|
+
className: "cc-dash-metrics",
|
|
67237
|
+
style: {
|
|
67238
|
+
listStyle: "none",
|
|
67239
|
+
margin: 0,
|
|
67240
|
+
padding: 0,
|
|
67241
|
+
display: "grid",
|
|
67242
|
+
gap: 2
|
|
67243
|
+
},
|
|
67244
|
+
children: s.map((e) => {
|
|
67245
|
+
let n = typeof e.to == "function" ? e.to(t) : e.to;
|
|
67246
|
+
return /* @__PURE__ */ X("li", {
|
|
67247
|
+
className: "cc-dash-metrics__row",
|
|
67248
|
+
children: /* @__PURE__ */ Z("button", {
|
|
67249
|
+
type: "button",
|
|
67250
|
+
disabled: !$(n),
|
|
67251
|
+
onClick: () => t.navigate(n),
|
|
67252
|
+
"aria-label": `${e.label}: ${lJ(e.value)}`,
|
|
67253
|
+
style: {
|
|
67254
|
+
display: "grid",
|
|
67255
|
+
gridTemplateColumns: "auto 1fr auto",
|
|
67256
|
+
alignItems: "center",
|
|
67257
|
+
gap: 12,
|
|
67258
|
+
width: "100%",
|
|
67259
|
+
minHeight: 44,
|
|
67260
|
+
padding: "4px 0",
|
|
67261
|
+
font: "inherit",
|
|
67262
|
+
textAlign: "start",
|
|
67263
|
+
background: "none",
|
|
67264
|
+
border: 0,
|
|
67265
|
+
color: "inherit",
|
|
67266
|
+
cursor: $(n) ? "pointer" : "default"
|
|
67267
|
+
},
|
|
67268
|
+
children: [
|
|
67269
|
+
/* @__PURE__ */ X("span", {
|
|
67270
|
+
className: "cc-dash-metrics__icon",
|
|
67271
|
+
"data-tone": e.tone,
|
|
67272
|
+
"aria-hidden": "true",
|
|
67273
|
+
children: nq(e.icon)
|
|
67274
|
+
}),
|
|
67275
|
+
/* @__PURE__ */ X("span", {
|
|
67276
|
+
className: "cc-dash-metrics__label",
|
|
67277
|
+
children: e.label
|
|
67278
|
+
}),
|
|
67279
|
+
/* @__PURE__ */ X("strong", {
|
|
67280
|
+
className: "cc-dash-metrics__value",
|
|
67281
|
+
children: lJ(e.value)
|
|
67282
|
+
})
|
|
67283
|
+
]
|
|
67284
|
+
})
|
|
67285
|
+
}, e.key);
|
|
67286
|
+
})
|
|
67287
|
+
});
|
|
67288
|
+
}
|
|
67289
|
+
function NJ({ panel: e, rows: t, ctx: n }) {
|
|
67290
|
+
let r = rq(e.columns).filter((e) => e && $(e.key));
|
|
67291
|
+
return /* @__PURE__ */ X("div", {
|
|
67292
|
+
className: "cc-dash-table",
|
|
67293
|
+
style: { overflowX: "auto" },
|
|
67294
|
+
children: /* @__PURE__ */ Z("table", {
|
|
67295
|
+
style: {
|
|
67296
|
+
width: "100%",
|
|
67297
|
+
borderCollapse: "separate",
|
|
67298
|
+
borderSpacing: 0
|
|
67299
|
+
},
|
|
67300
|
+
children: [e.hideHeader ? null : /* @__PURE__ */ X("thead", { children: /* @__PURE__ */ X("tr", { children: r.map((e) => /* @__PURE__ */ X("th", {
|
|
67301
|
+
scope: "col",
|
|
67302
|
+
style: { textAlign: e.align ?? "start" },
|
|
67303
|
+
children: wJ(e.label, n)
|
|
67304
|
+
}, e.key)) }) }), /* @__PURE__ */ X("tbody", { children: t.map((e, t) => /* @__PURE__ */ X("tr", { children: r.map((t) => {
|
|
67305
|
+
let r = aq(t.value ?? t.key, e, n), i = sq(r), a = typeof t.tone == "function" ? t.tone(r, e) : void 0;
|
|
67306
|
+
if (t.kind === "action") {
|
|
67307
|
+
let r = typeof t.to == "function" ? t.to(e, n) : t.to, i = typeof t.actionLabel == "function" ? t.actionLabel(e) : wJ(t.actionLabel, n) || "View";
|
|
67308
|
+
return /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(z, {
|
|
67309
|
+
size: "small",
|
|
67310
|
+
className: "cc-dash-table__action",
|
|
67311
|
+
"data-tone": a,
|
|
67312
|
+
disabled: !$(r),
|
|
67313
|
+
onClick: () => n.navigate(r),
|
|
67314
|
+
children: i
|
|
67315
|
+
}) }, t.key);
|
|
67316
|
+
}
|
|
67317
|
+
return t.kind === "status" ? /* @__PURE__ */ X("td", {
|
|
67318
|
+
style: { textAlign: t.align ?? "start" },
|
|
67319
|
+
children: i ? /* @__PURE__ */ X(K, {
|
|
67320
|
+
className: "cc-dash-table__status",
|
|
67321
|
+
"data-tone": a,
|
|
67322
|
+
style: { marginInlineEnd: 0 },
|
|
67323
|
+
children: i
|
|
67324
|
+
}) : "–"
|
|
67325
|
+
}, t.key) : t.kind === "person" ? /* @__PURE__ */ X("td", { children: /* @__PURE__ */ Z("span", {
|
|
67326
|
+
className: "cc-dash-table__who",
|
|
67327
|
+
style: {
|
|
67328
|
+
display: "inline-flex",
|
|
67329
|
+
alignItems: "center",
|
|
67330
|
+
gap: 8
|
|
67331
|
+
},
|
|
67332
|
+
children: [/* @__PURE__ */ X(Ul, {
|
|
67333
|
+
className: "cc-dash-table__icon",
|
|
67334
|
+
"aria-hidden": "true"
|
|
67335
|
+
}), /* @__PURE__ */ X("span", {
|
|
67336
|
+
className: "cc-dash-table__name",
|
|
67337
|
+
children: i || "–"
|
|
67338
|
+
})]
|
|
67339
|
+
}) }, t.key) : t.kind === "count" ? /* @__PURE__ */ Z("td", {
|
|
67340
|
+
style: { textAlign: t.align ?? "start" },
|
|
67341
|
+
children: [
|
|
67342
|
+
nq(t.icon),
|
|
67343
|
+
" ",
|
|
67344
|
+
lJ(r)
|
|
67345
|
+
]
|
|
67346
|
+
}, t.key) : /* @__PURE__ */ X("td", {
|
|
67347
|
+
style: { textAlign: t.align ?? "start" },
|
|
67348
|
+
children: i || "–"
|
|
67349
|
+
}, t.key);
|
|
67350
|
+
}) }, e?._id ?? e?.id ?? t)) })]
|
|
67351
|
+
})
|
|
67352
|
+
});
|
|
67353
|
+
}
|
|
67354
|
+
//#endregion
|
|
67355
|
+
//#region src/components/COMBAINED_COMPONENTS/helpers/dashboard/DashboardCharts.jsx
|
|
67356
|
+
var PJ = [
|
|
66822
67357
|
"#4f6bed",
|
|
66823
67358
|
"#13a8a8",
|
|
66824
67359
|
"#f59f00",
|
|
@@ -66827,9 +67362,9 @@ var _J = new Intl.NumberFormat(void 0, {
|
|
|
66827
67362
|
"#2b8a3e",
|
|
66828
67363
|
"#d6336c",
|
|
66829
67364
|
"#868e96"
|
|
66830
|
-
],
|
|
66831
|
-
function
|
|
66832
|
-
let [
|
|
67365
|
+
], FJ = (e) => `var(--cc-dash-c${e % 8 + 1}, ${PJ[e % 8]})`, IJ = (e) => e.reduce((e, t) => e + (Number(t.value) || 0), 0);
|
|
67366
|
+
function LJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total", precise: i = !1 }) {
|
|
67367
|
+
let [a, o] = R(-1), s = IJ(e), c = 2 * Math.PI * 52, l = 0, u = a >= 0 ? e[a] : null;
|
|
66833
67368
|
return /* @__PURE__ */ Z("div", {
|
|
66834
67369
|
className: "cc-chart cc-chart--donut",
|
|
66835
67370
|
style: {
|
|
@@ -66854,27 +67389,27 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
|
|
|
66854
67389
|
stroke: "var(--cc-dash-track, #eef1f5)",
|
|
66855
67390
|
strokeWidth: "18"
|
|
66856
67391
|
}),
|
|
66857
|
-
|
|
66858
|
-
let
|
|
67392
|
+
s > 0 && e.map((e, r) => {
|
|
67393
|
+
let i = Math.max(Number(e.value) || 0, 0) / s * c, u = /* @__PURE__ */ X("circle", {
|
|
66859
67394
|
cx: "70",
|
|
66860
67395
|
cy: "70",
|
|
66861
67396
|
r: 52,
|
|
66862
67397
|
fill: "none",
|
|
66863
|
-
stroke:
|
|
66864
|
-
strokeWidth:
|
|
66865
|
-
strokeDasharray: `${Math.max(
|
|
66866
|
-
strokeDashoffset: -
|
|
67398
|
+
stroke: FJ(r),
|
|
67399
|
+
strokeWidth: a === r ? 22 : 18,
|
|
67400
|
+
strokeDasharray: `${Math.max(i - 1.5, 0)} ${c}`,
|
|
67401
|
+
strokeDashoffset: -l,
|
|
66867
67402
|
transform: "rotate(-90 70 70)",
|
|
66868
67403
|
style: {
|
|
66869
67404
|
cursor: t ? "pointer" : "default",
|
|
66870
67405
|
transition: "stroke-width 150ms ease"
|
|
66871
67406
|
},
|
|
66872
|
-
onMouseEnter: () =>
|
|
66873
|
-
onMouseLeave: () =>
|
|
67407
|
+
onMouseEnter: () => o(r),
|
|
67408
|
+
onMouseLeave: () => o(-1),
|
|
66874
67409
|
onClick: () => t?.(e),
|
|
66875
67410
|
children: /* @__PURE__ */ X("title", { children: `${e.label}: ${n(e.value)}` })
|
|
66876
67411
|
}, e.key);
|
|
66877
|
-
return
|
|
67412
|
+
return l += i, u;
|
|
66878
67413
|
}),
|
|
66879
67414
|
/* @__PURE__ */ X("text", {
|
|
66880
67415
|
x: "70",
|
|
@@ -66886,7 +67421,7 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
|
|
|
66886
67421
|
fontWeight: 700,
|
|
66887
67422
|
fill: "currentColor"
|
|
66888
67423
|
},
|
|
66889
|
-
children: n(
|
|
67424
|
+
children: n(u ? u.value : s)
|
|
66890
67425
|
}),
|
|
66891
67426
|
/* @__PURE__ */ X("text", {
|
|
66892
67427
|
x: "70",
|
|
@@ -66898,7 +67433,7 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
|
|
|
66898
67433
|
fill: "currentColor",
|
|
66899
67434
|
opacity: .65
|
|
66900
67435
|
},
|
|
66901
|
-
children: (
|
|
67436
|
+
children: (u ? u.label : r).slice(0, 18)
|
|
66902
67437
|
})
|
|
66903
67438
|
]
|
|
66904
67439
|
}), /* @__PURE__ */ X("ul", {
|
|
@@ -66917,8 +67452,8 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
|
|
|
66917
67452
|
className: "cc-chart__legend-item",
|
|
66918
67453
|
disabled: !t,
|
|
66919
67454
|
onClick: () => t?.(e),
|
|
66920
|
-
onMouseEnter: () =>
|
|
66921
|
-
onMouseLeave: () =>
|
|
67455
|
+
onMouseEnter: () => o(r),
|
|
67456
|
+
onMouseLeave: () => o(-1),
|
|
66922
67457
|
style: {
|
|
66923
67458
|
display: "flex",
|
|
66924
67459
|
alignItems: "center",
|
|
@@ -66939,7 +67474,7 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
|
|
|
66939
67474
|
width: 10,
|
|
66940
67475
|
height: 10,
|
|
66941
67476
|
borderRadius: 3,
|
|
66942
|
-
background:
|
|
67477
|
+
background: FJ(r),
|
|
66943
67478
|
flex: "none"
|
|
66944
67479
|
}
|
|
66945
67480
|
}),
|
|
@@ -66965,19 +67500,19 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
|
|
|
66965
67500
|
/* @__PURE__ */ X("span", {
|
|
66966
67501
|
className: "cc-chart__legend-share",
|
|
66967
67502
|
style: {
|
|
66968
|
-
width: 40,
|
|
67503
|
+
width: i ? 48 : 40,
|
|
66969
67504
|
textAlign: "end",
|
|
66970
67505
|
opacity: .6,
|
|
66971
67506
|
fontVariantNumeric: "tabular-nums"
|
|
66972
67507
|
},
|
|
66973
|
-
children:
|
|
67508
|
+
children: s > 0 ? `${i ? (e.value / s * 100).toFixed(1) : Math.round(e.value / s * 100)}%` : ""
|
|
66974
67509
|
})
|
|
66975
67510
|
]
|
|
66976
67511
|
}) }, e.key))
|
|
66977
67512
|
})]
|
|
66978
67513
|
});
|
|
66979
67514
|
}
|
|
66980
|
-
function
|
|
67515
|
+
function RJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
66981
67516
|
let r = Math.max(1, ...e.map((e) => Number(e.value) || 0));
|
|
66982
67517
|
return /* @__PURE__ */ X("ul", {
|
|
66983
67518
|
className: "cc-chart cc-chart--bar",
|
|
@@ -67010,14 +67545,34 @@ function CJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
|
67010
67545
|
color: "inherit"
|
|
67011
67546
|
},
|
|
67012
67547
|
children: [
|
|
67013
|
-
/* @__PURE__ */
|
|
67548
|
+
/* @__PURE__ */ Z("span", {
|
|
67014
67549
|
className: "cc-chart__bar-label",
|
|
67015
67550
|
style: {
|
|
67551
|
+
display: "flex",
|
|
67552
|
+
alignItems: "center",
|
|
67553
|
+
gap: 8,
|
|
67554
|
+
minWidth: 0,
|
|
67016
67555
|
overflow: "hidden",
|
|
67017
67556
|
textOverflow: "ellipsis",
|
|
67018
67557
|
whiteSpace: "nowrap"
|
|
67019
67558
|
},
|
|
67020
|
-
children: e.
|
|
67559
|
+
children: [e.icon ? /* @__PURE__ */ X("span", {
|
|
67560
|
+
className: "cc-chart__bar-icon",
|
|
67561
|
+
"data-key": e.key,
|
|
67562
|
+
"aria-hidden": "true",
|
|
67563
|
+
style: {
|
|
67564
|
+
flex: "none",
|
|
67565
|
+
display: "inline-flex"
|
|
67566
|
+
},
|
|
67567
|
+
children: e.icon
|
|
67568
|
+
}) : null, /* @__PURE__ */ X("span", {
|
|
67569
|
+
style: {
|
|
67570
|
+
minWidth: 0,
|
|
67571
|
+
overflow: "hidden",
|
|
67572
|
+
textOverflow: "ellipsis"
|
|
67573
|
+
},
|
|
67574
|
+
children: e.label
|
|
67575
|
+
})]
|
|
67021
67576
|
}),
|
|
67022
67577
|
/* @__PURE__ */ X("span", {
|
|
67023
67578
|
className: "cc-chart__bar-track",
|
|
@@ -67035,7 +67590,7 @@ function CJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
|
67035
67590
|
width: `${(Number(e.value) || 0) / r * 100}%`,
|
|
67036
67591
|
minWidth: e.value > 0 ? 4 : 0,
|
|
67037
67592
|
borderRadius: 5,
|
|
67038
|
-
background:
|
|
67593
|
+
background: FJ(i),
|
|
67039
67594
|
transition: "width 400ms ease"
|
|
67040
67595
|
}
|
|
67041
67596
|
})
|
|
@@ -67052,46 +67607,46 @@ function CJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
|
67052
67607
|
}) }, e.key))
|
|
67053
67608
|
});
|
|
67054
67609
|
}
|
|
67055
|
-
var
|
|
67056
|
-
function
|
|
67057
|
-
let [
|
|
67610
|
+
var zJ = (e) => e.map(([e, t], n) => `${n ? "L" : "M"}${e.toFixed(1)},${t.toFixed(1)}`).join(" ");
|
|
67611
|
+
function BJ({ items: e, height: t = 180, format: n = lJ, color: r = FJ(0), pointLabels: i = !1 }) {
|
|
67612
|
+
let [a, o] = R(-1), s = Lo(null), [c, l] = R(600);
|
|
67058
67613
|
I(() => {
|
|
67059
|
-
let e =
|
|
67614
|
+
let e = s.current;
|
|
67060
67615
|
if (!e || typeof ResizeObserver > "u") return;
|
|
67061
67616
|
let t = new ResizeObserver(([e]) => {
|
|
67062
67617
|
let t = Math.round(e.contentRect.width);
|
|
67063
|
-
t > 0 &&
|
|
67618
|
+
t > 0 && l(t);
|
|
67064
67619
|
});
|
|
67065
67620
|
return t.observe(e), () => t.disconnect();
|
|
67066
67621
|
}, []);
|
|
67067
|
-
let
|
|
67622
|
+
let u = t, d = {
|
|
67068
67623
|
l: 36,
|
|
67069
|
-
r: 8,
|
|
67070
|
-
t: 12,
|
|
67624
|
+
r: i ? 16 : 8,
|
|
67625
|
+
t: i ? 26 : 12,
|
|
67071
67626
|
b: 22
|
|
67072
|
-
},
|
|
67627
|
+
}, 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 ? `${zJ(g)} L${m(e.length - 1)},${u - d.b} L${m(0)},${u - d.b} Z` : "", v = [
|
|
67073
67628
|
0,
|
|
67074
67629
|
.5,
|
|
67075
67630
|
1
|
|
67076
|
-
].map((e) => Math.round(
|
|
67631
|
+
].map((e) => Math.round(p * e)), y = Math.max(1, Math.ceil(e.length / Math.max(2, Math.floor(c / 80)))), b = IJ(e), x = a >= 0 ? e[a] : null, S = `cc-area-${String(e[0]?.key ?? "x").replace(/[^\w-]/g, "")}-${e.length}`;
|
|
67077
67632
|
return /* @__PURE__ */ Z("div", {
|
|
67078
|
-
ref:
|
|
67633
|
+
ref: s,
|
|
67079
67634
|
className: "cc-chart cc-chart--area",
|
|
67080
67635
|
style: { position: "relative" },
|
|
67081
67636
|
children: [/* @__PURE__ */ Z("svg", {
|
|
67082
|
-
viewBox: `0 0 ${
|
|
67637
|
+
viewBox: `0 0 ${c} ${u}`,
|
|
67083
67638
|
width: "100%",
|
|
67084
|
-
height:
|
|
67639
|
+
height: u,
|
|
67085
67640
|
role: "img",
|
|
67086
|
-
"aria-label": `Trend, ${e.length} points, total ${n(
|
|
67087
|
-
onMouseLeave: () =>
|
|
67641
|
+
"aria-label": `Trend, ${e.length} points, total ${n(b)}, peak ${n(f)}`,
|
|
67642
|
+
onMouseLeave: () => o(-1),
|
|
67088
67643
|
onMouseMove: (t) => {
|
|
67089
|
-
let n = t.currentTarget.getBoundingClientRect(), r = (t.clientX - n.left) / n.width *
|
|
67090
|
-
|
|
67644
|
+
let n = t.currentTarget.getBoundingClientRect(), r = (t.clientX - n.left) / n.width * c, i = Math.round((r - d.l) / (c - d.l - d.r) * (e.length - 1));
|
|
67645
|
+
o(Math.min(e.length - 1, Math.max(0, i)));
|
|
67091
67646
|
},
|
|
67092
67647
|
children: [
|
|
67093
67648
|
/* @__PURE__ */ X("defs", { children: /* @__PURE__ */ Z("linearGradient", {
|
|
67094
|
-
id:
|
|
67649
|
+
id: S,
|
|
67095
67650
|
x1: "0",
|
|
67096
67651
|
x2: "0",
|
|
67097
67652
|
y1: "0",
|
|
@@ -67106,17 +67661,17 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
|
|
|
67106
67661
|
stopOpacity: "0.02"
|
|
67107
67662
|
})]
|
|
67108
67663
|
}) }),
|
|
67109
|
-
|
|
67110
|
-
x1:
|
|
67111
|
-
x2:
|
|
67112
|
-
y1:
|
|
67113
|
-
y2:
|
|
67664
|
+
v.map((e) => /* @__PURE__ */ Z("g", { children: [/* @__PURE__ */ X("line", {
|
|
67665
|
+
x1: d.l,
|
|
67666
|
+
x2: c - d.r,
|
|
67667
|
+
y1: h(e),
|
|
67668
|
+
y2: h(e),
|
|
67114
67669
|
stroke: "var(--cc-dash-grid, #e9edf2)",
|
|
67115
67670
|
strokeDasharray: e ? "3 4" : "",
|
|
67116
67671
|
vectorEffect: "non-scaling-stroke"
|
|
67117
67672
|
}), /* @__PURE__ */ X("text", {
|
|
67118
|
-
x:
|
|
67119
|
-
y:
|
|
67673
|
+
x: d.l - 6,
|
|
67674
|
+
y: h(e) + 3,
|
|
67120
67675
|
textAnchor: "end",
|
|
67121
67676
|
style: {
|
|
67122
67677
|
fontSize: 10,
|
|
@@ -67125,21 +67680,21 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
|
|
|
67125
67680
|
},
|
|
67126
67681
|
children: n(e)
|
|
67127
67682
|
})] }, e)),
|
|
67128
|
-
|
|
67129
|
-
d:
|
|
67130
|
-
fill: `url(#${
|
|
67683
|
+
_ ? /* @__PURE__ */ X("path", {
|
|
67684
|
+
d: _,
|
|
67685
|
+
fill: `url(#${S})`
|
|
67131
67686
|
}) : null,
|
|
67132
|
-
|
|
67133
|
-
d:
|
|
67687
|
+
g.length ? /* @__PURE__ */ X("path", {
|
|
67688
|
+
d: zJ(g),
|
|
67134
67689
|
fill: "none",
|
|
67135
67690
|
stroke: r,
|
|
67136
67691
|
strokeWidth: "2.25",
|
|
67137
67692
|
strokeLinejoin: "round",
|
|
67138
67693
|
vectorEffect: "non-scaling-stroke"
|
|
67139
67694
|
}) : null,
|
|
67140
|
-
e.map((t, n) => (n %
|
|
67141
|
-
x:
|
|
67142
|
-
y:
|
|
67695
|
+
e.map((t, n) => (n % y === 0 && e.length - 1 - n >= y / 2 || n === e.length - 1) && /* @__PURE__ */ X("text", {
|
|
67696
|
+
x: m(n),
|
|
67697
|
+
y: u - 6,
|
|
67143
67698
|
textAnchor: n === 0 ? "start" : n === e.length - 1 ? "end" : "middle",
|
|
67144
67699
|
style: {
|
|
67145
67700
|
fontSize: 10,
|
|
@@ -67148,17 +67703,40 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
|
|
|
67148
67703
|
},
|
|
67149
67704
|
children: t.short ?? t.label
|
|
67150
67705
|
}, t.key)),
|
|
67151
|
-
|
|
67152
|
-
|
|
67153
|
-
|
|
67154
|
-
|
|
67155
|
-
|
|
67706
|
+
i ? e.map((e, t) => /* @__PURE__ */ Z("g", {
|
|
67707
|
+
className: "cc-chart__point",
|
|
67708
|
+
children: [/* @__PURE__ */ X("circle", {
|
|
67709
|
+
cx: m(t),
|
|
67710
|
+
cy: h(e.value),
|
|
67711
|
+
r: "3.5",
|
|
67712
|
+
fill: "var(--cc-dash-surface, #fff)",
|
|
67713
|
+
stroke: r,
|
|
67714
|
+
strokeWidth: "2",
|
|
67715
|
+
vectorEffect: "non-scaling-stroke"
|
|
67716
|
+
}), /* @__PURE__ */ X("text", {
|
|
67717
|
+
x: m(t),
|
|
67718
|
+
y: h(e.value) - 10,
|
|
67719
|
+
textAnchor: "middle",
|
|
67720
|
+
className: "cc-chart__point-value",
|
|
67721
|
+
style: {
|
|
67722
|
+
fontSize: 11,
|
|
67723
|
+
fontWeight: 600,
|
|
67724
|
+
fill: "currentColor"
|
|
67725
|
+
},
|
|
67726
|
+
children: n(e.value)
|
|
67727
|
+
})]
|
|
67728
|
+
}, `p-${e.key}`)) : null,
|
|
67729
|
+
x ? /* @__PURE__ */ Z("g", { children: [/* @__PURE__ */ X("line", {
|
|
67730
|
+
x1: m(a),
|
|
67731
|
+
x2: m(a),
|
|
67732
|
+
y1: d.t,
|
|
67733
|
+
y2: u - d.b,
|
|
67156
67734
|
stroke: r,
|
|
67157
67735
|
strokeOpacity: "0.35",
|
|
67158
67736
|
vectorEffect: "non-scaling-stroke"
|
|
67159
67737
|
}), /* @__PURE__ */ X("circle", {
|
|
67160
|
-
cx:
|
|
67161
|
-
cy:
|
|
67738
|
+
cx: m(a),
|
|
67739
|
+
cy: h(x.value),
|
|
67162
67740
|
r: "4",
|
|
67163
67741
|
fill: "var(--cc-dash-surface, #fff)",
|
|
67164
67742
|
stroke: r,
|
|
@@ -67166,14 +67744,14 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
|
|
|
67166
67744
|
vectorEffect: "non-scaling-stroke"
|
|
67167
67745
|
})] }) : null
|
|
67168
67746
|
]
|
|
67169
|
-
}),
|
|
67747
|
+
}), x ? /* @__PURE__ */ Z("div", {
|
|
67170
67748
|
className: "cc-chart__tip",
|
|
67171
67749
|
role: "status",
|
|
67172
67750
|
style: {
|
|
67173
67751
|
position: "absolute",
|
|
67174
67752
|
top: 0,
|
|
67175
|
-
left: `${
|
|
67176
|
-
transform: `translateX(${
|
|
67753
|
+
left: `${m(a) / c * 100}%`,
|
|
67754
|
+
transform: `translateX(${a > e.length / 2 ? "-105%" : "5%"})`,
|
|
67177
67755
|
pointerEvents: "none",
|
|
67178
67756
|
padding: "4px 8px",
|
|
67179
67757
|
borderRadius: 6,
|
|
@@ -67183,14 +67761,14 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
|
|
|
67183
67761
|
color: "#fff"
|
|
67184
67762
|
},
|
|
67185
67763
|
children: [
|
|
67186
|
-
|
|
67764
|
+
x.label,
|
|
67187
67765
|
": ",
|
|
67188
|
-
/* @__PURE__ */ X("strong", { children: n(
|
|
67766
|
+
/* @__PURE__ */ X("strong", { children: n(x.value) })
|
|
67189
67767
|
]
|
|
67190
67768
|
}) : null]
|
|
67191
67769
|
});
|
|
67192
67770
|
}
|
|
67193
|
-
function
|
|
67771
|
+
function VJ({ items: e, height: t = 180, format: n = lJ, onSelect: r }) {
|
|
67194
67772
|
let i = Math.max(1, ...e.map((e) => Number(e.value) || 0));
|
|
67195
67773
|
return /* @__PURE__ */ X("div", {
|
|
67196
67774
|
className: "cc-chart cc-chart--column",
|
|
@@ -67242,7 +67820,7 @@ function EJ({ items: e, height: t = 180, format: n = lJ, onSelect: r }) {
|
|
|
67242
67820
|
height: `${(Number(e.value) || 0) / i * 100}%`,
|
|
67243
67821
|
minHeight: e.value > 0 ? 3 : 1,
|
|
67244
67822
|
borderRadius: "6px 6px 2px 2px",
|
|
67245
|
-
background:
|
|
67823
|
+
background: FJ(t),
|
|
67246
67824
|
transition: "height 400ms ease"
|
|
67247
67825
|
}
|
|
67248
67826
|
}),
|
|
@@ -67262,8 +67840,8 @@ function EJ({ items: e, height: t = 180, format: n = lJ, onSelect: r }) {
|
|
|
67262
67840
|
}, e.key))
|
|
67263
67841
|
});
|
|
67264
67842
|
}
|
|
67265
|
-
function
|
|
67266
|
-
let
|
|
67843
|
+
function HJ({ items: e, onSelect: t, format: n = lJ, precise: r = !1 }) {
|
|
67844
|
+
let i = Math.max(1, ...e.map((e) => Number(e.value) || 0));
|
|
67267
67845
|
return /* @__PURE__ */ X("ol", {
|
|
67268
67846
|
className: "cc-chart cc-chart--funnel",
|
|
67269
67847
|
style: {
|
|
@@ -67273,14 +67851,14 @@ function DJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
|
67273
67851
|
display: "grid",
|
|
67274
67852
|
gap: 14
|
|
67275
67853
|
},
|
|
67276
|
-
children: e.map((
|
|
67277
|
-
let
|
|
67854
|
+
children: e.map((a, o) => {
|
|
67855
|
+
let s = Number(a.value), c = o > 0 ? Number(e[o - 1].value) : null, l = c > 0 && Number.isFinite(s) ? r ? Number((s / c * 100).toFixed(1)) : Math.round(s / c * 100) : null, u = l !== null && l <= 100 ? l : null, d = Number.isFinite(s) && s > 0 ? Math.max(2, s / i * 100) : 0;
|
|
67278
67856
|
return /* @__PURE__ */ X("li", { children: /* @__PURE__ */ Z("button", {
|
|
67279
67857
|
type: "button",
|
|
67280
67858
|
className: "cc-chart__funnel-row",
|
|
67281
67859
|
disabled: !t,
|
|
67282
|
-
onClick: () => t?.(
|
|
67283
|
-
"aria-label": `${
|
|
67860
|
+
onClick: () => t?.(a),
|
|
67861
|
+
"aria-label": `${a.label}: ${n(a.value)}${u === null ? "" : `, ${u}% of ${e[o - 1].label}`}`,
|
|
67284
67862
|
style: {
|
|
67285
67863
|
display: "grid",
|
|
67286
67864
|
gap: 6,
|
|
@@ -67310,7 +67888,7 @@ function DJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
|
67310
67888
|
width: 8,
|
|
67311
67889
|
height: 8,
|
|
67312
67890
|
borderRadius: "50%",
|
|
67313
|
-
background:
|
|
67891
|
+
background: FJ(o),
|
|
67314
67892
|
alignSelf: "center"
|
|
67315
67893
|
}
|
|
67316
67894
|
}),
|
|
@@ -67324,9 +67902,9 @@ function DJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
|
67324
67902
|
whiteSpace: "nowrap",
|
|
67325
67903
|
fontWeight: 500
|
|
67326
67904
|
},
|
|
67327
|
-
children:
|
|
67905
|
+
children: a.label
|
|
67328
67906
|
}),
|
|
67329
|
-
|
|
67907
|
+
u === null ? null : /* @__PURE__ */ Z("span", {
|
|
67330
67908
|
className: "cc-chart__funnel-conv",
|
|
67331
67909
|
style: {
|
|
67332
67910
|
fontSize: 12,
|
|
@@ -67335,9 +67913,9 @@ function DJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
|
67335
67913
|
fontVariantNumeric: "tabular-nums"
|
|
67336
67914
|
},
|
|
67337
67915
|
children: [
|
|
67338
|
-
|
|
67916
|
+
r ? u.toFixed(1) : u,
|
|
67339
67917
|
"% of ",
|
|
67340
|
-
e[
|
|
67918
|
+
e[o - 1].label
|
|
67341
67919
|
]
|
|
67342
67920
|
}),
|
|
67343
67921
|
/* @__PURE__ */ X("strong", {
|
|
@@ -67347,7 +67925,7 @@ function DJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
|
67347
67925
|
minWidth: 48,
|
|
67348
67926
|
textAlign: "end"
|
|
67349
67927
|
},
|
|
67350
|
-
children: n(
|
|
67928
|
+
children: n(a.value)
|
|
67351
67929
|
})
|
|
67352
67930
|
]
|
|
67353
67931
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -67364,19 +67942,19 @@ function DJ({ items: e, onSelect: t, format: n = lJ }) {
|
|
|
67364
67942
|
className: "cc-chart__funnel-bar",
|
|
67365
67943
|
style: {
|
|
67366
67944
|
display: "block",
|
|
67367
|
-
width: `${
|
|
67945
|
+
width: `${d}%`,
|
|
67368
67946
|
height: "100%",
|
|
67369
67947
|
borderRadius: 999,
|
|
67370
|
-
background:
|
|
67948
|
+
background: FJ(o),
|
|
67371
67949
|
transition: "width 400ms cubic-bezier(0.2, 0, 0, 1)"
|
|
67372
67950
|
}
|
|
67373
67951
|
})
|
|
67374
67952
|
})]
|
|
67375
|
-
}) },
|
|
67953
|
+
}) }, a.key);
|
|
67376
67954
|
})
|
|
67377
67955
|
});
|
|
67378
67956
|
}
|
|
67379
|
-
function
|
|
67957
|
+
function UJ({ values: e, color: t = FJ(0), width: n = 72, height: r = 26 }) {
|
|
67380
67958
|
if (!e?.length) return null;
|
|
67381
67959
|
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)]);
|
|
67382
67960
|
return /* @__PURE__ */ Z("svg", {
|
|
@@ -67390,11 +67968,11 @@ function OJ({ values: e, color: t = bJ(0), width: n = 72, height: r = 26 }) {
|
|
|
67390
67968
|
overflow: "visible"
|
|
67391
67969
|
},
|
|
67392
67970
|
children: [/* @__PURE__ */ X("path", {
|
|
67393
|
-
d: `${
|
|
67971
|
+
d: `${zJ(a)} L${n},${r} L0,${r} Z`,
|
|
67394
67972
|
fill: t,
|
|
67395
67973
|
fillOpacity: "0.12"
|
|
67396
67974
|
}), /* @__PURE__ */ X("path", {
|
|
67397
|
-
d:
|
|
67975
|
+
d: zJ(a),
|
|
67398
67976
|
fill: "none",
|
|
67399
67977
|
stroke: t,
|
|
67400
67978
|
strokeWidth: "1.75",
|
|
@@ -67405,7 +67983,7 @@ function OJ({ values: e, color: t = bJ(0), width: n = 72, height: r = 26 }) {
|
|
|
67405
67983
|
}
|
|
67406
67984
|
//#endregion
|
|
67407
67985
|
//#region src/components/COMBAINED_COMPONENTS/DASHBOARDPAGE.jsx
|
|
67408
|
-
var
|
|
67986
|
+
var WJ = [
|
|
67409
67987
|
{
|
|
67410
67988
|
key: "today",
|
|
67411
67989
|
label: "Today"
|
|
@@ -67420,18 +67998,18 @@ var kJ = [
|
|
|
67420
67998
|
label: "Month",
|
|
67421
67999
|
title: "This month"
|
|
67422
68000
|
}
|
|
67423
|
-
],
|
|
68001
|
+
], GJ = {
|
|
67424
68002
|
today: "Today",
|
|
67425
68003
|
week: "This week",
|
|
67426
68004
|
month: "This month"
|
|
67427
|
-
},
|
|
68005
|
+
}, KJ = (e, t) => (typeof e == "function" ? e(t) : e) ?? {}, qJ = (e, t, n) => typeof e == "function" ? e(n ?? t, t) : e, JJ = (() => {
|
|
67428
68006
|
try {
|
|
67429
68007
|
return Intl.DateTimeFormat().resolvedOptions().timeZone || "";
|
|
67430
68008
|
} catch {
|
|
67431
68009
|
return "";
|
|
67432
68010
|
}
|
|
67433
68011
|
})();
|
|
67434
|
-
function
|
|
68012
|
+
function YJ(e, t) {
|
|
67435
68013
|
let n = e ? JSON.stringify([e, t]) : "", [r, i] = R({
|
|
67436
68014
|
signature: "",
|
|
67437
68015
|
groups: null,
|
|
@@ -67447,7 +68025,7 @@ function PJ(e, t) {
|
|
|
67447
68025
|
...a.queryParams ?? {},
|
|
67448
68026
|
groupBy: o,
|
|
67449
68027
|
groupDate: s || "",
|
|
67450
|
-
groupTz: s ?
|
|
68028
|
+
groupTz: s ? JJ : "",
|
|
67451
68029
|
groupSum: c || ""
|
|
67452
68030
|
}
|
|
67453
68031
|
}).then((e) => {
|
|
@@ -67473,20 +68051,20 @@ function PJ(e, t) {
|
|
|
67473
68051
|
retry: () => o((e) => e + 1)
|
|
67474
68052
|
};
|
|
67475
68053
|
}
|
|
67476
|
-
var
|
|
67477
|
-
function
|
|
67478
|
-
let
|
|
68054
|
+
var XJ = (e) => typeof e == "function" ? e : e === "compact" ? bJ : lJ;
|
|
68055
|
+
function ZJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a, choice: o }) {
|
|
68056
|
+
let s = Array.isArray(e.stages), c = e.chart === "area", l = Number(o?.days) > 0 ? mJ(o.days) : pJ(i.range.key), u = c ? {
|
|
67479
68057
|
...i,
|
|
67480
|
-
range:
|
|
67481
|
-
} : i,
|
|
68058
|
+
range: l
|
|
68059
|
+
} : i, d = s || !$(e.module) || !$(e.groupBy) ? null : {
|
|
67482
68060
|
module: e.module,
|
|
67483
|
-
relation:
|
|
68061
|
+
relation: KJ(e.relation, u),
|
|
67484
68062
|
groupBy: e.groupBy,
|
|
67485
|
-
groupDate:
|
|
68063
|
+
groupDate: c ? "day" : e.groupDate,
|
|
67486
68064
|
sum: e.sum,
|
|
67487
|
-
range:
|
|
67488
|
-
},
|
|
67489
|
-
if (
|
|
68065
|
+
range: u.range.key
|
|
68066
|
+
}, f = YJ(d, a), p = XJ(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;
|
|
68067
|
+
if (s) {
|
|
67490
68068
|
if (r) return /* @__PURE__ */ X(ms, {
|
|
67491
68069
|
active: !0,
|
|
67492
68070
|
paragraph: { rows: 3 }
|
|
@@ -67497,57 +68075,69 @@ function IJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a })
|
|
|
67497
68075
|
key: e.kpi,
|
|
67498
68076
|
label: sq(oq(e.label ?? r.label, {}, i)),
|
|
67499
68077
|
value: t[e.kpi],
|
|
67500
|
-
to:
|
|
68078
|
+
to: qJ(r.to, i)
|
|
67501
68079
|
} : null;
|
|
67502
68080
|
}).filter(Boolean), o = (e) => i.navigate(e.to);
|
|
67503
|
-
return e.
|
|
68081
|
+
return e.emptyState && a.every((e) => !Number(e.value)) ? /* @__PURE__ */ X(TJ, {
|
|
68082
|
+
spec: e.emptyState,
|
|
68083
|
+
ctx: i
|
|
68084
|
+
}) : e.chart === "donut" ? /* @__PURE__ */ X(LJ, {
|
|
67504
68085
|
items: a,
|
|
67505
|
-
format:
|
|
67506
|
-
onSelect: o
|
|
67507
|
-
|
|
68086
|
+
format: p,
|
|
68087
|
+
onSelect: o,
|
|
68088
|
+
precise: !!e.precise,
|
|
68089
|
+
centerLabel: sq(oq(e.centerLabel, {}, i)) || void 0
|
|
68090
|
+
}) : e.chart === "column" ? /* @__PURE__ */ X(VJ, {
|
|
67508
68091
|
items: a,
|
|
67509
|
-
format:
|
|
68092
|
+
format: p,
|
|
67510
68093
|
onSelect: o
|
|
67511
|
-
}) : e.chart === "bar" ? /* @__PURE__ */ X(
|
|
68094
|
+
}) : e.chart === "bar" ? /* @__PURE__ */ X(RJ, {
|
|
67512
68095
|
items: a,
|
|
67513
|
-
format:
|
|
68096
|
+
format: p,
|
|
67514
68097
|
onSelect: o
|
|
67515
|
-
}) : /* @__PURE__ */ X(
|
|
68098
|
+
}) : /* @__PURE__ */ X(HJ, {
|
|
67516
68099
|
items: a,
|
|
67517
|
-
format:
|
|
67518
|
-
onSelect: o
|
|
68100
|
+
format: p,
|
|
68101
|
+
onSelect: o,
|
|
68102
|
+
precise: !!e.precise
|
|
67519
68103
|
});
|
|
67520
68104
|
}
|
|
67521
|
-
if (!
|
|
68105
|
+
if (!d) return /* @__PURE__ */ X(zo, {
|
|
67522
68106
|
type: "info",
|
|
67523
68107
|
showIcon: !0,
|
|
67524
68108
|
message: "This chart needs a module and a groupBy field."
|
|
67525
68109
|
});
|
|
67526
|
-
if (
|
|
68110
|
+
if (f.loading) return /* @__PURE__ */ X(ms, {
|
|
67527
68111
|
active: !0,
|
|
67528
68112
|
paragraph: { rows: 4 }
|
|
67529
68113
|
});
|
|
67530
|
-
if (
|
|
68114
|
+
if (f.error === "forbidden") return /* @__PURE__ */ X(ws.Text, {
|
|
67531
68115
|
type: "secondary",
|
|
67532
68116
|
children: "You don't have access to this data."
|
|
67533
68117
|
});
|
|
67534
|
-
if (
|
|
68118
|
+
if (f.error === "error") return /* @__PURE__ */ X(zo, {
|
|
67535
68119
|
type: "warning",
|
|
67536
68120
|
showIcon: !0,
|
|
67537
68121
|
message: "This chart could not be loaded.",
|
|
67538
68122
|
action: /* @__PURE__ */ X(z, {
|
|
67539
68123
|
size: "small",
|
|
67540
|
-
onClick:
|
|
68124
|
+
onClick: f.retry,
|
|
67541
68125
|
children: "Retry"
|
|
67542
68126
|
})
|
|
67543
68127
|
});
|
|
67544
|
-
if (!
|
|
68128
|
+
if (!f.groups) return /* @__PURE__ */ X(ws.Text, {
|
|
67545
68129
|
type: "secondary",
|
|
67546
|
-
children:
|
|
68130
|
+
children: f.error === "unsupported" ? "Chart data is not available from the server yet." : "This field cannot be charted for your list."
|
|
67547
68131
|
});
|
|
67548
|
-
if (
|
|
67549
|
-
let
|
|
67550
|
-
|
|
68132
|
+
if (c) {
|
|
68133
|
+
let t = gJ(f.groups, l, m).map((e) => o?.days ? {
|
|
68134
|
+
...e,
|
|
68135
|
+
short: (/* @__PURE__ */ new Date(`${e.key}T00:00:00`)).toLocaleDateString([], { weekday: "short" })
|
|
68136
|
+
} : e), n = t.reduce((e, t) => e + t.value, 0);
|
|
68137
|
+
return e.emptyState && n === 0 ? /* @__PURE__ */ X(TJ, {
|
|
68138
|
+
spec: e.emptyState,
|
|
68139
|
+
ctx: i
|
|
68140
|
+
}) : /* @__PURE__ */ Z(Y, { children: [e.summary === !1 ? null : /* @__PURE__ */ Z("div", {
|
|
67551
68141
|
className: "cc-dash-chart__summary",
|
|
67552
68142
|
style: {
|
|
67553
68143
|
display: "flex",
|
|
@@ -67561,56 +68151,65 @@ function IJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a })
|
|
|
67561
68151
|
fontSize: 22,
|
|
67562
68152
|
fontWeight: 700
|
|
67563
68153
|
},
|
|
67564
|
-
children:
|
|
68154
|
+
children: p(n)
|
|
67565
68155
|
}), /* @__PURE__ */ Z("span", {
|
|
67566
68156
|
className: "cc-dash-chart__window",
|
|
67567
68157
|
style: { opacity: .65 },
|
|
67568
68158
|
children: [
|
|
67569
68159
|
"in the last ",
|
|
67570
|
-
|
|
68160
|
+
l.days,
|
|
67571
68161
|
" days"
|
|
67572
68162
|
]
|
|
67573
68163
|
})]
|
|
67574
|
-
}), /* @__PURE__ */ X(
|
|
67575
|
-
items:
|
|
67576
|
-
format:
|
|
68164
|
+
}), /* @__PURE__ */ X(BJ, {
|
|
68165
|
+
items: t,
|
|
68166
|
+
format: p,
|
|
68167
|
+
pointLabels: !!e.pointLabels
|
|
67577
68168
|
})] });
|
|
67578
68169
|
}
|
|
67579
|
-
let
|
|
68170
|
+
let g = _J(f.groups, {
|
|
67580
68171
|
labels: e.labels,
|
|
67581
|
-
pick:
|
|
68172
|
+
pick: m,
|
|
67582
68173
|
order: e.order
|
|
68174
|
+
}).map((t) => e.icons ? {
|
|
68175
|
+
...t,
|
|
68176
|
+
icon: nq(typeof e.icons == "function" ? e.icons(t.key) : e.icons[t.key])
|
|
68177
|
+
} : t);
|
|
68178
|
+
if (!g.length || g.every((e) => !e.value)) return /* @__PURE__ */ X(TJ, {
|
|
68179
|
+
spec: e.emptyState,
|
|
68180
|
+
ctx: i,
|
|
68181
|
+
fallback: sq(oq(e.empty, {}, i)) || "No data for this period."
|
|
67583
68182
|
});
|
|
67584
|
-
|
|
67585
|
-
|
|
67586
|
-
|
|
67587
|
-
|
|
67588
|
-
|
|
67589
|
-
|
|
67590
|
-
|
|
67591
|
-
}) : e.chart === "column" ? /* @__PURE__ */ X(
|
|
67592
|
-
items:
|
|
67593
|
-
format:
|
|
67594
|
-
onSelect:
|
|
67595
|
-
}) : /* @__PURE__ */ X(
|
|
67596
|
-
items:
|
|
67597
|
-
format:
|
|
67598
|
-
onSelect:
|
|
68183
|
+
let _ = Number(e.max) > 0 ? g.slice(0, Number(e.max)) : g;
|
|
68184
|
+
return e.chart === "donut" ? /* @__PURE__ */ X(LJ, {
|
|
68185
|
+
items: _,
|
|
68186
|
+
format: p,
|
|
68187
|
+
onSelect: h,
|
|
68188
|
+
precise: !!e.precise,
|
|
68189
|
+
centerLabel: sq(oq(e.centerLabel, {}, i)) || void 0
|
|
68190
|
+
}) : e.chart === "column" ? /* @__PURE__ */ X(VJ, {
|
|
68191
|
+
items: _,
|
|
68192
|
+
format: p,
|
|
68193
|
+
onSelect: h
|
|
68194
|
+
}) : /* @__PURE__ */ X(RJ, {
|
|
68195
|
+
items: g.slice(0, Number(e.max) || 8),
|
|
68196
|
+
format: p,
|
|
68197
|
+
onSelect: h
|
|
67599
68198
|
});
|
|
67600
68199
|
}
|
|
67601
|
-
function
|
|
68200
|
+
function QJ({ kpi: e, ctx: t, refreshKey: n }) {
|
|
67602
68201
|
let r = pJ("week"), i = {
|
|
67603
68202
|
...t,
|
|
67604
68203
|
range: r
|
|
67605
|
-
}, a =
|
|
68204
|
+
}, a = YJ({
|
|
67606
68205
|
module: e.module,
|
|
67607
|
-
relation:
|
|
68206
|
+
relation: KJ(e.relation, i),
|
|
67608
68207
|
groupBy: e.trend.field || "createdAt",
|
|
67609
68208
|
groupDate: "day",
|
|
67610
68209
|
range: "trend"
|
|
67611
68210
|
}, n);
|
|
67612
68211
|
if (a.loading || !a.groups) return null;
|
|
67613
|
-
let o =
|
|
68212
|
+
let o = gJ(a.groups, r).map((e) => e.value), s = vJ(o), c = s > 0, l = s === null || s === 0 ? "flat" : (e.trend.goodWhen === "down" ? !c : c) ? "good" : "bad";
|
|
67614
68213
|
return /* @__PURE__ */ Z("span", {
|
|
67615
68214
|
className: "cc-dash-kpi__trend",
|
|
67616
68215
|
style: {
|
|
@@ -67642,10 +68241,10 @@ function LJ({ kpi: e, ctx: t, refreshKey: n }) {
|
|
|
67642
68241
|
},
|
|
67643
68242
|
children: " vs prior 2 wks"
|
|
67644
68243
|
})]
|
|
67645
|
-
}), /* @__PURE__ */ X(
|
|
68244
|
+
}), /* @__PURE__ */ X(UJ, { values: o })]
|
|
67646
68245
|
});
|
|
67647
68246
|
}
|
|
67648
|
-
function
|
|
68247
|
+
function $J() {
|
|
67649
68248
|
return /* @__PURE__ */ Z("svg", {
|
|
67650
68249
|
className: "cc-dash-hero__art",
|
|
67651
68250
|
viewBox: "0 0 320 160",
|
|
@@ -67709,7 +68308,7 @@ function RJ() {
|
|
|
67709
68308
|
]
|
|
67710
68309
|
});
|
|
67711
68310
|
}
|
|
67712
|
-
function
|
|
68311
|
+
function eY(e, t, n) {
|
|
67713
68312
|
let r = e.filter((e) => typeof e.count == "function"), i = JSON.stringify([
|
|
67714
68313
|
r.map((e) => e.key),
|
|
67715
68314
|
t.range.key,
|
|
@@ -67739,8 +68338,13 @@ function zJ(e, t, n) {
|
|
|
67739
68338
|
loading: r.length > 0 && a.signature !== i
|
|
67740
68339
|
};
|
|
67741
68340
|
}
|
|
67742
|
-
function
|
|
67743
|
-
let a = sq(oq(e.label, {}, r)), o = sq(oq(e.help, {}, r)), s =
|
|
68341
|
+
function tY({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
68342
|
+
let a = sq(oq(e.label, {}, r)), o = sq(oq(e.help, {}, r)), s = qJ(e.to, r), c = /* @__PURE__ */ Z(Y, { children: [
|
|
68343
|
+
e.icon ? /* @__PURE__ */ X("span", {
|
|
68344
|
+
className: "cc-dash-kpi__icon",
|
|
68345
|
+
"aria-hidden": "true",
|
|
68346
|
+
children: nq(e.icon)
|
|
68347
|
+
}) : null,
|
|
67744
68348
|
/* @__PURE__ */ Z("span", {
|
|
67745
68349
|
className: "cc-dash-kpi__label",
|
|
67746
68350
|
children: [a, o ? /* @__PURE__ */ X(q, {
|
|
@@ -67760,7 +68364,14 @@ function BJ({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
|
67760
68364
|
className: "cc-dash-kpi__value",
|
|
67761
68365
|
children: lJ(t)
|
|
67762
68366
|
}),
|
|
67763
|
-
|
|
68367
|
+
$(e.caption) || typeof e.caption == "function" ? /* @__PURE__ */ X("span", {
|
|
68368
|
+
className: "cc-dash-kpi__period",
|
|
68369
|
+
style: {
|
|
68370
|
+
fontSize: 12,
|
|
68371
|
+
opacity: .65
|
|
68372
|
+
},
|
|
68373
|
+
children: sq(oq(e.caption, {}, r))
|
|
68374
|
+
}) : r.rangeLabel ? /* @__PURE__ */ X("span", {
|
|
67764
68375
|
className: "cc-dash-kpi__period",
|
|
67765
68376
|
style: {
|
|
67766
68377
|
fontSize: 12,
|
|
@@ -67768,7 +68379,7 @@ function BJ({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
|
67768
68379
|
},
|
|
67769
68380
|
children: (e.period ? e.period === "range" : typeof e.relation == "function") ? r.rangeLabel : "Right now"
|
|
67770
68381
|
}) : null,
|
|
67771
|
-
e.trend && $(e.module) ? /* @__PURE__ */ X(
|
|
68382
|
+
e.trend && $(e.module) ? /* @__PURE__ */ X(QJ, {
|
|
67772
68383
|
kpi: e,
|
|
67773
68384
|
ctx: r,
|
|
67774
68385
|
refreshKey: i
|
|
@@ -67784,6 +68395,7 @@ function BJ({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
|
67784
68395
|
};
|
|
67785
68396
|
return $(s) ? /* @__PURE__ */ X("button", {
|
|
67786
68397
|
type: "button",
|
|
68398
|
+
"data-tone": e.tone,
|
|
67787
68399
|
className: "cc-dash-kpi is-link",
|
|
67788
68400
|
style: {
|
|
67789
68401
|
...l,
|
|
@@ -67798,11 +68410,12 @@ function BJ({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
|
|
|
67798
68410
|
children: c
|
|
67799
68411
|
}) : /* @__PURE__ */ X("div", {
|
|
67800
68412
|
className: "cc-dash-kpi",
|
|
68413
|
+
"data-tone": e.tone,
|
|
67801
68414
|
style: l,
|
|
67802
68415
|
children: c
|
|
67803
68416
|
});
|
|
67804
68417
|
}
|
|
67805
|
-
function
|
|
68418
|
+
function nY({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
|
|
67806
68419
|
let a = rq(e.stages).map((e) => ({
|
|
67807
68420
|
...e,
|
|
67808
68421
|
kpiDef: n.find((t) => t.key === e.kpi)
|
|
@@ -67845,7 +68458,7 @@ function VJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
|
|
|
67845
68458
|
gap: 12
|
|
67846
68459
|
},
|
|
67847
68460
|
children: a.map((e, n) => {
|
|
67848
|
-
let r = sq(oq(e.label ?? e.kpiDef.label, {}, i)), a =
|
|
68461
|
+
let r = sq(oq(e.label ?? e.kpiDef.label, {}, i)), a = qJ(e.kpiDef.to, i);
|
|
67849
68462
|
return /* @__PURE__ */ X("li", {
|
|
67850
68463
|
className: "cc-dash-stages__item",
|
|
67851
68464
|
"data-i": n,
|
|
@@ -67874,8 +68487,8 @@ function VJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
|
|
|
67874
68487
|
})]
|
|
67875
68488
|
});
|
|
67876
68489
|
}
|
|
67877
|
-
function
|
|
67878
|
-
let r =
|
|
68490
|
+
function rY({ panel: e, ctx: t, refreshKey: n }) {
|
|
68491
|
+
let r = KJ(e.relation, t), i = JSON.stringify([
|
|
67879
68492
|
e.module,
|
|
67880
68493
|
r,
|
|
67881
68494
|
e.limit,
|
|
@@ -67935,12 +68548,17 @@ function HJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
67935
68548
|
children: "Retry"
|
|
67936
68549
|
})
|
|
67937
68550
|
});
|
|
67938
|
-
if (!a.rows.length) return /* @__PURE__ */ X(
|
|
67939
|
-
|
|
67940
|
-
|
|
68551
|
+
if (!a.rows.length) return /* @__PURE__ */ X(TJ, {
|
|
68552
|
+
spec: e.emptyState,
|
|
68553
|
+
ctx: t,
|
|
68554
|
+
fallback: sq(oq(e.empty, {}, t)) || "Nothing here right now."
|
|
67941
68555
|
});
|
|
67942
|
-
let l =
|
|
67943
|
-
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
68556
|
+
let l = qJ(e.viewAll, t);
|
|
68557
|
+
return /* @__PURE__ */ Z(Y, { children: [Array.isArray(e.columns) ? /* @__PURE__ */ X(NJ, {
|
|
68558
|
+
panel: e,
|
|
68559
|
+
rows: a.rows,
|
|
68560
|
+
ctx: t
|
|
68561
|
+
}) : /* @__PURE__ */ X("ul", {
|
|
67944
68562
|
className: "cc-dash-list",
|
|
67945
68563
|
style: {
|
|
67946
68564
|
listStyle: "none",
|
|
@@ -67948,7 +68566,7 @@ function HJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
67948
68566
|
padding: 0
|
|
67949
68567
|
},
|
|
67950
68568
|
children: a.rows.map((n, r) => {
|
|
67951
|
-
let i = sq(aq(e.row?.title, n, t)) || "—", a = sq(aq(e.row?.meta, n, t)), o = sq(aq(e.row?.status, n, t)), s =
|
|
68569
|
+
let i = sq(aq(e.row?.title, n, t)) || "—", a = sq(aq(e.row?.meta, n, t)), o = sq(aq(e.row?.status, n, t)), s = qJ(e.to, t, n);
|
|
67952
68570
|
return /* @__PURE__ */ X("li", {
|
|
67953
68571
|
className: "cc-dash-list__row",
|
|
67954
68572
|
children: /* @__PURE__ */ Z("button", {
|
|
@@ -68004,7 +68622,7 @@ function HJ({ panel: e, ctx: t, refreshKey: n }) {
|
|
|
68004
68622
|
]
|
|
68005
68623
|
}) : null] });
|
|
68006
68624
|
}
|
|
68007
|
-
function
|
|
68625
|
+
function iY({ panel: e, ctx: t }) {
|
|
68008
68626
|
let n = rq(e.items).filter((e) => e && $(e.key) && cq(e, {}, t));
|
|
68009
68627
|
return /* @__PURE__ */ X("div", {
|
|
68010
68628
|
className: "cc-dash-links",
|
|
@@ -68014,7 +68632,7 @@ function UJ({ panel: e, ctx: t }) {
|
|
|
68014
68632
|
gap: 8
|
|
68015
68633
|
},
|
|
68016
68634
|
children: n.map((e) => {
|
|
68017
|
-
let n = nq(e.icon), r =
|
|
68635
|
+
let n = nq(e.icon), r = qJ(e.to, t);
|
|
68018
68636
|
return /* @__PURE__ */ X(z, {
|
|
68019
68637
|
className: "cc-dash-link",
|
|
68020
68638
|
onClick: () => t.navigate(r),
|
|
@@ -68036,38 +68654,61 @@ function UJ({ panel: e, ctx: t }) {
|
|
|
68036
68654
|
})
|
|
68037
68655
|
});
|
|
68038
68656
|
}
|
|
68039
|
-
function
|
|
68040
|
-
let n = sq(oq(e.title, {}, t.ctx)), r;
|
|
68657
|
+
function aY({ panel: e, ...t }) {
|
|
68658
|
+
let n = sq(oq(e.title, {}, t.ctx)), r = rq(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;
|
|
68041
68659
|
switch (e.type) {
|
|
68042
68660
|
case "stages":
|
|
68043
|
-
|
|
68661
|
+
s = /* @__PURE__ */ X(nY, {
|
|
68044
68662
|
panel: e,
|
|
68045
68663
|
...t
|
|
68046
68664
|
});
|
|
68047
68665
|
break;
|
|
68048
68666
|
case "list":
|
|
68049
|
-
|
|
68667
|
+
s = /* @__PURE__ */ X(rY, {
|
|
68050
68668
|
panel: e,
|
|
68051
68669
|
ctx: t.ctx,
|
|
68052
68670
|
refreshKey: t.refreshKey
|
|
68053
68671
|
});
|
|
68054
68672
|
break;
|
|
68055
68673
|
case "links":
|
|
68056
|
-
|
|
68674
|
+
s = /* @__PURE__ */ X(iY, {
|
|
68057
68675
|
panel: e,
|
|
68058
68676
|
ctx: t.ctx
|
|
68059
68677
|
});
|
|
68060
68678
|
break;
|
|
68061
68679
|
case "chart":
|
|
68062
|
-
|
|
68680
|
+
s = /* @__PURE__ */ X(ZJ, {
|
|
68063
68681
|
panel: e,
|
|
68064
|
-
...t
|
|
68682
|
+
...t,
|
|
68683
|
+
choice: o
|
|
68684
|
+
});
|
|
68685
|
+
break;
|
|
68686
|
+
case "table":
|
|
68687
|
+
s = /* @__PURE__ */ X(AJ, {
|
|
68688
|
+
panel: e,
|
|
68689
|
+
ctx: t.ctx,
|
|
68690
|
+
refreshKey: t.refreshKey,
|
|
68691
|
+
choice: o
|
|
68692
|
+
});
|
|
68693
|
+
break;
|
|
68694
|
+
case "feed":
|
|
68695
|
+
s = /* @__PURE__ */ X(jJ, {
|
|
68696
|
+
panel: e,
|
|
68697
|
+
ctx: t.ctx,
|
|
68698
|
+
refreshKey: t.refreshKey
|
|
68699
|
+
});
|
|
68700
|
+
break;
|
|
68701
|
+
case "metrics":
|
|
68702
|
+
s = /* @__PURE__ */ X(MJ, {
|
|
68703
|
+
panel: e,
|
|
68704
|
+
ctx: t.ctx,
|
|
68705
|
+
refreshKey: t.refreshKey
|
|
68065
68706
|
});
|
|
68066
68707
|
break;
|
|
68067
68708
|
case "custom":
|
|
68068
|
-
|
|
68709
|
+
s = typeof e.render == "function" ? e.render(t.ctx) : null;
|
|
68069
68710
|
break;
|
|
68070
|
-
default:
|
|
68711
|
+
default: s = /* @__PURE__ */ X(zo, {
|
|
68071
68712
|
type: "info",
|
|
68072
68713
|
showIcon: !0,
|
|
68073
68714
|
message: `Unknown panel type "${String(e.type)}"`
|
|
@@ -68079,32 +68720,67 @@ function WJ({ panel: e, ...t }) {
|
|
|
68079
68720
|
"data-chart": e.chart,
|
|
68080
68721
|
"aria-label": n || void 0,
|
|
68081
68722
|
style: { minWidth: 0 },
|
|
68082
|
-
children: [n ? /* @__PURE__ */
|
|
68083
|
-
|
|
68084
|
-
|
|
68085
|
-
|
|
68086
|
-
|
|
68087
|
-
|
|
68723
|
+
children: [n || r.length ? /* @__PURE__ */ Z("div", {
|
|
68724
|
+
className: "cc-dash-panel__head",
|
|
68725
|
+
style: {
|
|
68726
|
+
display: "flex",
|
|
68727
|
+
alignItems: "center",
|
|
68728
|
+
justifyContent: "space-between",
|
|
68729
|
+
gap: 12,
|
|
68730
|
+
flexWrap: "wrap"
|
|
68731
|
+
},
|
|
68732
|
+
children: [n ? /* @__PURE__ */ Z(ws.Title, {
|
|
68733
|
+
level: 5,
|
|
68734
|
+
className: "cc-dash-panel__title",
|
|
68735
|
+
style: { marginTop: 0 },
|
|
68736
|
+
children: [n, e.titleNote ? /* @__PURE__ */ Z("span", {
|
|
68737
|
+
className: "cc-dash-panel__note",
|
|
68738
|
+
children: [" ", sq(oq(e.titleNote, {}, t.ctx))]
|
|
68739
|
+
}) : null]
|
|
68740
|
+
}) : /* @__PURE__ */ X("span", {}), r.length ? /* @__PURE__ */ Z("span", {
|
|
68741
|
+
className: "cc-dash-panel__choice",
|
|
68742
|
+
style: {
|
|
68743
|
+
display: "inline-flex",
|
|
68744
|
+
alignItems: "center",
|
|
68745
|
+
gap: 8
|
|
68746
|
+
},
|
|
68747
|
+
children: [e.choices.label ? /* @__PURE__ */ X("span", {
|
|
68748
|
+
className: "cc-dash-panel__choice-label",
|
|
68749
|
+
children: sq(oq(e.choices.label, {}, t.ctx))
|
|
68750
|
+
}) : null, /* @__PURE__ */ X(U, {
|
|
68751
|
+
size: "small",
|
|
68752
|
+
className: "cc-dash-panel__select",
|
|
68753
|
+
value: o?.key,
|
|
68754
|
+
onChange: a,
|
|
68755
|
+
popupMatchSelectWidth: !1,
|
|
68756
|
+
"aria-label": `${n}: ${sq(oq(e.choices.label, {}, t.ctx)) || "view"}`,
|
|
68757
|
+
options: r.map((e) => ({
|
|
68758
|
+
value: e.key,
|
|
68759
|
+
label: sq(oq(e.label, {}, t.ctx))
|
|
68760
|
+
}))
|
|
68761
|
+
})]
|
|
68762
|
+
}) : null]
|
|
68763
|
+
}) : null, s]
|
|
68088
68764
|
});
|
|
68089
68765
|
}
|
|
68090
|
-
function
|
|
68766
|
+
function oY({ config: e, refreshKey: t = 0 }) {
|
|
68091
68767
|
let n = au(), r = iu();
|
|
68092
68768
|
Ey();
|
|
68093
|
-
let i = rq(e?.ranges).length ? rq(e.ranges) :
|
|
68769
|
+
let i = rq(e?.ranges).length ? rq(e.ranges) : WJ, [a, o] = R(e?.defaultRange || i[0].key), [s, c] = R(0), [l, u] = R(() => /* @__PURE__ */ new Date()), d = `${t}|${s}`, f = {
|
|
68094
68770
|
...e?.context ?? {},
|
|
68095
68771
|
navigate: (e) => $(e) && n(e),
|
|
68096
68772
|
location: r,
|
|
68097
68773
|
range: sJ(a),
|
|
68098
|
-
rangeLabel: i.length > 1 ?
|
|
68774
|
+
rangeLabel: i.length > 1 ? GJ[a] ?? sq(oq(i.find((e) => e.key === a)?.label, {}, {})) : "",
|
|
68099
68775
|
refresh: () => {
|
|
68100
68776
|
c((e) => e + 1), u(/* @__PURE__ */ new Date());
|
|
68101
68777
|
}
|
|
68102
68778
|
}, p = rq(e?.kpis).filter((e) => e && $(e.key) && cq(e, {}, f)), m = gK(p.filter((e) => typeof e.count != "function" && $(e.module)).map((e) => ({
|
|
68103
68779
|
key: e.key,
|
|
68104
68780
|
module: e.module,
|
|
68105
|
-
relation:
|
|
68781
|
+
relation: KJ(e.relation, f),
|
|
68106
68782
|
unscoped: !0
|
|
68107
|
-
})), "", d, { cacheMs: 3e4 }), h =
|
|
68783
|
+
})), "", d, { cacheMs: 3e4 }), h = eY(p, f, d), g = {
|
|
68108
68784
|
...m.counts,
|
|
68109
68785
|
...h.counts
|
|
68110
68786
|
}, _ = m.loading || h.loading, v = _ ? [] : uJ(p, g, f), y = rq(e?.panels).filter((e) => e && $(e.key) && cq(e, {}, f)), b = y.filter((e) => e.area === "grid"), x = y.filter((e) => e.area !== "side" && e.area !== "grid"), S = y.filter((e) => e.area === "side"), C = lq(e?.buttons, {}, f), w = sq(oq(e?.title, {}, f)) || "Dashboard", T = sq(oq(e?.greeting, {}, f)), E = sq(oq(e?.subtitle, {}, f)), D = {
|
|
@@ -68132,7 +68808,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
|
|
|
68132
68808
|
gap: 16
|
|
68133
68809
|
},
|
|
68134
68810
|
children: [
|
|
68135
|
-
/* @__PURE__ */ X(
|
|
68811
|
+
/* @__PURE__ */ X($J, {}),
|
|
68136
68812
|
/* @__PURE__ */ Z("div", {
|
|
68137
68813
|
className: "cc-dash-hero__top",
|
|
68138
68814
|
style: {
|
|
@@ -68271,14 +68947,14 @@ function GJ({ config: e, refreshKey: t = 0 }) {
|
|
|
68271
68947
|
children: j.map((e) => /* @__PURE__ */ X(z, {
|
|
68272
68948
|
className: "cc-dash-hero__link",
|
|
68273
68949
|
icon: nq(e.icon),
|
|
68274
|
-
onClick: () => f.navigate(
|
|
68950
|
+
onClick: () => f.navigate(qJ(e.to, f)),
|
|
68275
68951
|
children: sq(oq(e.label, {}, f))
|
|
68276
68952
|
}, e.key))
|
|
68277
68953
|
}) : null]
|
|
68278
68954
|
})
|
|
68279
68955
|
]
|
|
68280
68956
|
}),
|
|
68281
|
-
p.some((e) => e.attention) && (_ || v.length > 0) ? /* @__PURE__ */ X("section", {
|
|
68957
|
+
e?.attentionBar !== !1 && p.some((e) => e.attention) && (_ || v.length > 0) ? /* @__PURE__ */ X("section", {
|
|
68282
68958
|
className: `cc-dash-attention${v.length ? "" : " is-clear"}`,
|
|
68283
68959
|
"aria-label": "Needs attention",
|
|
68284
68960
|
"aria-live": "polite",
|
|
@@ -68341,7 +69017,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
|
|
|
68341
69017
|
gap: 12,
|
|
68342
69018
|
gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 150px), 1fr))"
|
|
68343
69019
|
},
|
|
68344
|
-
children: p.filter((e) => e.show !== !1).map((e) => /* @__PURE__ */ X(
|
|
69020
|
+
children: p.filter((e) => e.show !== !1).map((e) => /* @__PURE__ */ X(tY, {
|
|
68345
69021
|
kpi: e,
|
|
68346
69022
|
value: g[e.key],
|
|
68347
69023
|
loading: _ && g[e.key] === void 0,
|
|
@@ -68357,7 +69033,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
|
|
|
68357
69033
|
gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 320px), 1fr))",
|
|
68358
69034
|
alignItems: "stretch"
|
|
68359
69035
|
},
|
|
68360
|
-
children: b.map((e) => /* @__PURE__ */ X(
|
|
69036
|
+
children: b.map((e) => /* @__PURE__ */ X(aY, {
|
|
68361
69037
|
panel: e,
|
|
68362
69038
|
...D
|
|
68363
69039
|
}, e.key))
|
|
@@ -68377,7 +69053,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
|
|
|
68377
69053
|
gap: 16,
|
|
68378
69054
|
minWidth: 0
|
|
68379
69055
|
},
|
|
68380
|
-
children: x.map((e) => /* @__PURE__ */ X(
|
|
69056
|
+
children: x.map((e) => /* @__PURE__ */ X(aY, {
|
|
68381
69057
|
panel: e,
|
|
68382
69058
|
...D
|
|
68383
69059
|
}, e.key))
|
|
@@ -68388,7 +69064,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
|
|
|
68388
69064
|
gap: 16,
|
|
68389
69065
|
minWidth: 0
|
|
68390
69066
|
},
|
|
68391
|
-
children: S.map((e) => /* @__PURE__ */ X(
|
|
69067
|
+
children: S.map((e) => /* @__PURE__ */ X(aY, {
|
|
68392
69068
|
panel: e,
|
|
68393
69069
|
...D
|
|
68394
69070
|
}, e.key))
|
|
@@ -68399,7 +69075,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
|
|
|
68399
69075
|
}
|
|
68400
69076
|
//#endregion
|
|
68401
69077
|
//#region src/components/COMBAINED_COMPONENTS/helpers/details/detailsUtils.js
|
|
68402
|
-
var
|
|
69078
|
+
var sY = {
|
|
68403
69079
|
...tq,
|
|
68404
69080
|
assessment: Fc,
|
|
68405
69081
|
audit: Fs,
|
|
@@ -68417,13 +69093,13 @@ var KJ = {
|
|
|
68417
69093
|
video: Kl,
|
|
68418
69094
|
wallet: ql
|
|
68419
69095
|
};
|
|
68420
|
-
function
|
|
69096
|
+
function cY(e) {
|
|
68421
69097
|
if (!e) return null;
|
|
68422
69098
|
if (typeof e != "string") return e;
|
|
68423
|
-
let t =
|
|
69099
|
+
let t = sY[e.trim().toLowerCase()];
|
|
68424
69100
|
return t ? Ao(t) : null;
|
|
68425
69101
|
}
|
|
68426
|
-
var
|
|
69102
|
+
var lY = (e) => `calc(${e} * var(--cc-ds-u, 1.5px))`, uY = (e, t) => `max(${t}px, ${lY(e)})`, dY = {
|
|
68427
69103
|
neutral: ["#5b6475", "#f1f3f7"],
|
|
68428
69104
|
brand: ["var(--ant-color-primary, #1677ff)", "var(--ant-color-primary-bg, #e6f4ff)"],
|
|
68429
69105
|
green: ["#00c26b", "#e6f9f0"],
|
|
@@ -68434,15 +69110,15 @@ var JJ = (e) => `calc(${e} * var(--cc-ds-u, 1.5px))`, YJ = (e, t) => `max(${t}px
|
|
|
68434
69110
|
pink: ["#d6338a", "#fde8f2"],
|
|
68435
69111
|
red: ["#e5484d", "#fdecec"]
|
|
68436
69112
|
};
|
|
68437
|
-
Object.keys(
|
|
68438
|
-
function
|
|
68439
|
-
let t =
|
|
69113
|
+
Object.keys(dY);
|
|
69114
|
+
function fY(e) {
|
|
69115
|
+
let t = dY[e] ? e : "neutral", [n, r] = dY[t];
|
|
68440
69116
|
return {
|
|
68441
69117
|
fg: `var(--cc-ds-tone-${t}-fg, ${n})`,
|
|
68442
69118
|
bg: `var(--cc-ds-tone-${t}-bg, ${r})`
|
|
68443
69119
|
};
|
|
68444
69120
|
}
|
|
68445
|
-
var
|
|
69121
|
+
var pY = {
|
|
68446
69122
|
ink: "var(--cc-ds-ink, #252744)",
|
|
68447
69123
|
value: "var(--cc-ds-value, #17202c)",
|
|
68448
69124
|
muted: "var(--cc-ds-muted, #8590aa)",
|
|
@@ -68451,7 +69127,7 @@ var QJ = {
|
|
|
68451
69127
|
link: "var(--cc-ds-link, var(--ant-color-primary, #1677ff))",
|
|
68452
69128
|
track: "var(--cc-ds-track, #eef0f6)"
|
|
68453
69129
|
};
|
|
68454
|
-
function
|
|
69130
|
+
function mY(e, t) {
|
|
68455
69131
|
if (typeof e == "number" && Number.isFinite(e)) try {
|
|
68456
69132
|
return new Intl.NumberFormat(t).format(e);
|
|
68457
69133
|
} catch {
|
|
@@ -68459,11 +69135,11 @@ function $J(e, t) {
|
|
|
68459
69135
|
}
|
|
68460
69136
|
return typeof e == "boolean" ? e ? "Yes" : "No" : sq(e);
|
|
68461
69137
|
}
|
|
68462
|
-
function
|
|
68463
|
-
let a =
|
|
69138
|
+
function hY(e, t, n, { locale: r, placeholder: i = "–" } = {}) {
|
|
69139
|
+
let a = mY(aq(e, t, n), r);
|
|
68464
69140
|
return $(a) ? a : i;
|
|
68465
69141
|
}
|
|
68466
|
-
function
|
|
69142
|
+
function gY(e, t, n) {
|
|
68467
69143
|
let r = aq(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;
|
|
68468
69144
|
return a ? o.map((e) => {
|
|
68469
69145
|
if (!e || typeof e != "object") return e;
|
|
@@ -68473,83 +69149,83 @@ function tY(e, t, n) {
|
|
|
68473
69149
|
}), t;
|
|
68474
69150
|
}) : o;
|
|
68475
69151
|
}
|
|
68476
|
-
var
|
|
68477
|
-
text: (e, t, n, r) => !$(
|
|
69152
|
+
var _Y = (e, t) => mY(e && typeof e == "object" ? e.text ?? e.label ?? e.title : e, t), vY = (e) => (t, n, r, i) => !gY(t, n, r).some((t) => t && typeof t == "object" && $(mY(t[e], i))), yY = (e, t, n) => (Array.isArray(e.items) ? e.items : []).filter((e) => e && cq(e, t, n)), bY = {
|
|
69153
|
+
text: (e, t, n, r) => !$(hY(e.value, t, n, {
|
|
68478
69154
|
locale: r,
|
|
68479
69155
|
placeholder: ""
|
|
68480
69156
|
})),
|
|
68481
|
-
fields: (e, t, n) =>
|
|
68482
|
-
stats: (e, t, n) =>
|
|
68483
|
-
list: (e, t, n, r) => !
|
|
68484
|
-
tags: (e, t, n, r) => !
|
|
68485
|
-
callout: (e, t, n, r) => !$(oq(e.title, t, n)) && !$(
|
|
69157
|
+
fields: (e, t, n) => yY(e, t, n).length === 0,
|
|
69158
|
+
stats: (e, t, n) => yY(e, t, n).length === 0,
|
|
69159
|
+
list: (e, t, n, r) => !gY(e, t, n).some((e) => $(_Y(e, r))),
|
|
69160
|
+
tags: (e, t, n, r) => !gY(e, t, n).some((e) => $(mY(e && typeof e == "object" ? e.label : e, r))),
|
|
69161
|
+
callout: (e, t, n, r) => !$(oq(e.title, t, n)) && !$(hY(e.text, t, n, {
|
|
68486
69162
|
locale: r,
|
|
68487
69163
|
placeholder: ""
|
|
68488
69164
|
})),
|
|
68489
|
-
timeline:
|
|
68490
|
-
people:
|
|
68491
|
-
files:
|
|
69165
|
+
timeline: vY("title"),
|
|
69166
|
+
people: vY("name"),
|
|
69167
|
+
files: vY("name"),
|
|
68492
69168
|
progress: (e, t, n) => !Number.isFinite(Number(aq(e.percent, t, n)))
|
|
68493
69169
|
};
|
|
68494
|
-
function
|
|
68495
|
-
return
|
|
69170
|
+
function xY(e, t, n, r) {
|
|
69171
|
+
return bY[e?.type]?.(e, t, n, r) ?? !1;
|
|
68496
69172
|
}
|
|
68497
69173
|
//#endregion
|
|
68498
69174
|
//#region src/components/COMBAINED_COMPONENTS/helpers/details/detailsBlocks.jsx
|
|
68499
|
-
var
|
|
69175
|
+
var SY = (e) => ({
|
|
68500
69176
|
display: "flex",
|
|
68501
69177
|
flexDirection: "column",
|
|
68502
|
-
gap:
|
|
69178
|
+
gap: lY(e),
|
|
68503
69179
|
minWidth: 0
|
|
68504
|
-
}),
|
|
69180
|
+
}), CY = {
|
|
68505
69181
|
body: {
|
|
68506
|
-
fontSize:
|
|
69182
|
+
fontSize: uY(7.16, 11),
|
|
68507
69183
|
fontWeight: 600,
|
|
68508
69184
|
lineHeight: 1.5,
|
|
68509
|
-
color:
|
|
69185
|
+
color: pY.muted
|
|
68510
69186
|
},
|
|
68511
69187
|
label: {
|
|
68512
|
-
fontSize:
|
|
69188
|
+
fontSize: uY(6.6, 11),
|
|
68513
69189
|
fontWeight: 600,
|
|
68514
69190
|
lineHeight: 1.5,
|
|
68515
|
-
color:
|
|
69191
|
+
color: pY.muted
|
|
68516
69192
|
},
|
|
68517
69193
|
value: {
|
|
68518
|
-
fontSize:
|
|
69194
|
+
fontSize: uY(6.6, 11),
|
|
68519
69195
|
fontWeight: 400,
|
|
68520
69196
|
lineHeight: 1.5,
|
|
68521
|
-
color:
|
|
69197
|
+
color: pY.value
|
|
68522
69198
|
},
|
|
68523
69199
|
small: {
|
|
68524
|
-
fontSize:
|
|
69200
|
+
fontSize: uY(5.5, 10),
|
|
68525
69201
|
fontWeight: 600,
|
|
68526
69202
|
lineHeight: 1.5,
|
|
68527
|
-
color:
|
|
69203
|
+
color: pY.muted
|
|
68528
69204
|
},
|
|
68529
69205
|
strong: {
|
|
68530
|
-
fontSize:
|
|
69206
|
+
fontSize: uY(7.16, 11),
|
|
68531
69207
|
fontWeight: 700,
|
|
68532
69208
|
lineHeight: 1.5,
|
|
68533
|
-
color:
|
|
69209
|
+
color: pY.ink
|
|
68534
69210
|
},
|
|
68535
69211
|
stat: {
|
|
68536
|
-
fontSize:
|
|
69212
|
+
fontSize: uY(9.36, 13),
|
|
68537
69213
|
fontWeight: 600,
|
|
68538
69214
|
lineHeight: 1.5,
|
|
68539
|
-
color:
|
|
69215
|
+
color: pY.ink
|
|
68540
69216
|
},
|
|
68541
69217
|
sub: {
|
|
68542
|
-
fontSize:
|
|
69218
|
+
fontSize: uY(6.6, 11),
|
|
68543
69219
|
fontWeight: 600,
|
|
68544
69220
|
lineHeight: 1.5,
|
|
68545
|
-
color:
|
|
69221
|
+
color: pY.ink,
|
|
68546
69222
|
margin: 0
|
|
68547
69223
|
}
|
|
68548
69224
|
};
|
|
68549
|
-
function
|
|
68550
|
-
let r =
|
|
69225
|
+
function wY({ icon: e, tone: t, size: n = 13 }) {
|
|
69226
|
+
let r = cY(e);
|
|
68551
69227
|
if (!r) return null;
|
|
68552
|
-
let i =
|
|
69228
|
+
let i = fY(t);
|
|
68553
69229
|
return /* @__PURE__ */ X("span", {
|
|
68554
69230
|
className: "cc-details__badge",
|
|
68555
69231
|
"data-tone": t || "neutral",
|
|
@@ -68559,18 +69235,18 @@ function lY({ icon: e, tone: t, size: n = 13 }) {
|
|
|
68559
69235
|
alignItems: "center",
|
|
68560
69236
|
justifyContent: "center",
|
|
68561
69237
|
flex: "none",
|
|
68562
|
-
width:
|
|
68563
|
-
height:
|
|
68564
|
-
borderRadius:
|
|
69238
|
+
width: lY(n),
|
|
69239
|
+
height: lY(n),
|
|
69240
|
+
borderRadius: lY(n * .28),
|
|
68565
69241
|
background: i.bg,
|
|
68566
69242
|
color: i.fg,
|
|
68567
|
-
fontSize:
|
|
69243
|
+
fontSize: lY(n * .58)
|
|
68568
69244
|
},
|
|
68569
69245
|
children: r
|
|
68570
69246
|
});
|
|
68571
69247
|
}
|
|
68572
|
-
function
|
|
68573
|
-
let i =
|
|
69248
|
+
function TY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69249
|
+
let i = hY(e.value, t, n, {
|
|
68574
69250
|
locale: r,
|
|
68575
69251
|
placeholder: ""
|
|
68576
69252
|
}), a = Number.isFinite(e.lines) && e.lines > 0 ? e.lines : 0, [o, s] = R(!1), [c, l] = R(!1), u = Lo(null);
|
|
@@ -68589,12 +69265,12 @@ function uY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68589
69265
|
overflow: "hidden"
|
|
68590
69266
|
} : {}, f = oq(e.more ?? "Show More", t, n), p = oq(e.less ?? "Show Less", t, n);
|
|
68591
69267
|
return /* @__PURE__ */ Z("div", {
|
|
68592
|
-
style:
|
|
69268
|
+
style: SY(3),
|
|
68593
69269
|
children: [/* @__PURE__ */ X("p", {
|
|
68594
69270
|
ref: u,
|
|
68595
69271
|
className: "cc-details__text",
|
|
68596
69272
|
style: {
|
|
68597
|
-
...
|
|
69273
|
+
...CY.body,
|
|
68598
69274
|
margin: 0,
|
|
68599
69275
|
whiteSpace: "pre-line",
|
|
68600
69276
|
...d
|
|
@@ -68611,28 +69287,28 @@ function uY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68611
69287
|
border: 0,
|
|
68612
69288
|
background: "none",
|
|
68613
69289
|
cursor: "pointer",
|
|
68614
|
-
color:
|
|
68615
|
-
fontSize:
|
|
69290
|
+
color: pY.link,
|
|
69291
|
+
fontSize: uY(6.05, 11),
|
|
68616
69292
|
fontWeight: 600,
|
|
68617
69293
|
display: "inline-flex",
|
|
68618
69294
|
alignItems: "center",
|
|
68619
|
-
gap:
|
|
69295
|
+
gap: lY(2)
|
|
68620
69296
|
},
|
|
68621
|
-
children: [o ? p : f, X(o ? Bl : fc, { style: { fontSize:
|
|
69297
|
+
children: [o ? p : f, X(o ? Bl : fc, { style: { fontSize: lY(4.5) } })]
|
|
68622
69298
|
})]
|
|
68623
69299
|
});
|
|
68624
69300
|
}
|
|
68625
|
-
function
|
|
69301
|
+
function EY({ block: e, data: t, ctx: n, locale: r }) {
|
|
68626
69302
|
let i = (Array.isArray(e.items) ? e.items : []).filter((e) => e && cq(e, t, n));
|
|
68627
69303
|
if (!i.length) return null;
|
|
68628
|
-
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} * ${
|
|
69304
|
+
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} * ${lY(o)}) / ${a})`, l = Number.isFinite(e.labelWidth) ? lY(e.labelWidth) : "minmax(0, 1fr)";
|
|
68629
69305
|
return /* @__PURE__ */ X("dl", {
|
|
68630
69306
|
className: "cc-details__fields",
|
|
68631
69307
|
style: {
|
|
68632
69308
|
display: "grid",
|
|
68633
|
-
gridTemplateColumns: `repeat(auto-fit, minmax(max(${
|
|
68634
|
-
columnGap:
|
|
68635
|
-
rowGap:
|
|
69309
|
+
gridTemplateColumns: `repeat(auto-fit, minmax(max(${lY(s)}, ${c}), 1fr))`,
|
|
69310
|
+
columnGap: lY(o),
|
|
69311
|
+
rowGap: lY(2.2),
|
|
68636
69312
|
margin: 0
|
|
68637
69313
|
},
|
|
68638
69314
|
children: i.map((e) => /* @__PURE__ */ Z("div", {
|
|
@@ -68640,56 +69316,56 @@ function dY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68640
69316
|
style: {
|
|
68641
69317
|
display: "grid",
|
|
68642
69318
|
gridTemplateColumns: `${l} minmax(0, 1fr)`,
|
|
68643
|
-
columnGap:
|
|
69319
|
+
columnGap: lY(4),
|
|
68644
69320
|
minWidth: 0
|
|
68645
69321
|
},
|
|
68646
69322
|
children: [/* @__PURE__ */ X("dt", {
|
|
68647
69323
|
style: {
|
|
68648
|
-
...
|
|
69324
|
+
...CY.label,
|
|
68649
69325
|
margin: 0
|
|
68650
69326
|
},
|
|
68651
69327
|
children: oq(e.label, t, n)
|
|
68652
69328
|
}), /* @__PURE__ */ X("dd", {
|
|
68653
69329
|
style: {
|
|
68654
|
-
...
|
|
69330
|
+
...CY.value,
|
|
68655
69331
|
margin: 0,
|
|
68656
69332
|
overflowWrap: "anywhere"
|
|
68657
69333
|
},
|
|
68658
|
-
children:
|
|
69334
|
+
children: hY(e.value, t, n, { locale: r })
|
|
68659
69335
|
})]
|
|
68660
69336
|
}, e.key ?? oq(e.label, t, n)))
|
|
68661
69337
|
});
|
|
68662
69338
|
}
|
|
68663
|
-
function
|
|
68664
|
-
let i =
|
|
69339
|
+
function DY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69340
|
+
let i = gY(e, t, n).map((e) => e && typeof e == "object" ? e : { text: e }), a = e.variant || "bullet", o = fY(e.tone || (a === "check" ? "green" : "neutral")), s = i.filter((e) => $(mY(e.text ?? e.label ?? e.title, r)));
|
|
68665
69341
|
return s.length ? /* @__PURE__ */ X("ul", {
|
|
68666
69342
|
className: `cc-details__list cc-details__list--${a}`,
|
|
68667
69343
|
style: {
|
|
68668
|
-
...
|
|
69344
|
+
...SY(a === "check" ? 3.3 : 1.6),
|
|
68669
69345
|
listStyle: "none",
|
|
68670
69346
|
margin: 0,
|
|
68671
69347
|
padding: 0
|
|
68672
69348
|
},
|
|
68673
69349
|
children: s.map((e, t) => {
|
|
68674
|
-
let n =
|
|
69350
|
+
let n = mY(e.text ?? e.label ?? e.title, r), i = mY(e.meta, r);
|
|
68675
69351
|
return /* @__PURE__ */ Z("li", {
|
|
68676
69352
|
style: {
|
|
68677
69353
|
display: "flex",
|
|
68678
69354
|
alignItems: "flex-start",
|
|
68679
|
-
gap:
|
|
68680
|
-
...a === "plain" ?
|
|
68681
|
-
color:
|
|
69355
|
+
gap: lY(a === "check" ? 3.3 : 2.4),
|
|
69356
|
+
...a === "plain" ? CY.value : CY.label,
|
|
69357
|
+
color: pY.muted
|
|
68682
69358
|
},
|
|
68683
69359
|
children: [
|
|
68684
69360
|
a === "bullet" && /* @__PURE__ */ X("span", {
|
|
68685
69361
|
"aria-hidden": "true",
|
|
68686
69362
|
style: {
|
|
68687
69363
|
flex: "none",
|
|
68688
|
-
width:
|
|
68689
|
-
height:
|
|
68690
|
-
marginTop:
|
|
69364
|
+
width: lY(1.8),
|
|
69365
|
+
height: lY(1.8),
|
|
69366
|
+
marginTop: lY(3.2),
|
|
68691
69367
|
borderRadius: "50%",
|
|
68692
|
-
background:
|
|
69368
|
+
background: pY.muted
|
|
68693
69369
|
}
|
|
68694
69370
|
}),
|
|
68695
69371
|
a === "check" && /* @__PURE__ */ X("span", {
|
|
@@ -68697,11 +69373,11 @@ function fY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68697
69373
|
style: {
|
|
68698
69374
|
flex: "none",
|
|
68699
69375
|
color: o.fg,
|
|
68700
|
-
fontSize:
|
|
69376
|
+
fontSize: lY(7),
|
|
68701
69377
|
lineHeight: 1,
|
|
68702
|
-
marginTop:
|
|
69378
|
+
marginTop: lY(1.2)
|
|
68703
69379
|
},
|
|
68704
|
-
children:
|
|
69380
|
+
children: cY("check")
|
|
68705
69381
|
}),
|
|
68706
69382
|
/* @__PURE__ */ Z("span", {
|
|
68707
69383
|
style: { minWidth: 0 },
|
|
@@ -68712,7 +69388,7 @@ function fY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68712
69388
|
}),
|
|
68713
69389
|
$(i) && /* @__PURE__ */ X("span", {
|
|
68714
69390
|
className: "cc-details__item-sep",
|
|
68715
|
-
style: { margin: `0 ${
|
|
69391
|
+
style: { margin: `0 ${lY(4)}` },
|
|
68716
69392
|
"aria-hidden": "true",
|
|
68717
69393
|
children: "•"
|
|
68718
69394
|
}),
|
|
@@ -68727,8 +69403,8 @@ function fY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68727
69403
|
})
|
|
68728
69404
|
}) : null;
|
|
68729
69405
|
}
|
|
68730
|
-
function
|
|
68731
|
-
let i = oq(e.title, t, n), a =
|
|
69406
|
+
function OY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69407
|
+
let i = oq(e.title, t, n), a = hY(e.text, t, n, {
|
|
68732
69408
|
locale: r,
|
|
68733
69409
|
placeholder: ""
|
|
68734
69410
|
});
|
|
@@ -68736,27 +69412,27 @@ function pY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68736
69412
|
className: "cc-details__callout",
|
|
68737
69413
|
style: {
|
|
68738
69414
|
display: "flex",
|
|
68739
|
-
gap:
|
|
69415
|
+
gap: lY(6.6),
|
|
68740
69416
|
alignItems: "flex-start"
|
|
68741
69417
|
},
|
|
68742
|
-
children: [/* @__PURE__ */ X(
|
|
69418
|
+
children: [/* @__PURE__ */ X(wY, {
|
|
68743
69419
|
icon: e.icon,
|
|
68744
69420
|
tone: e.tone,
|
|
68745
69421
|
size: 15.4
|
|
68746
69422
|
}), /* @__PURE__ */ Z("div", {
|
|
68747
|
-
style:
|
|
69423
|
+
style: SY(1.1),
|
|
68748
69424
|
children: [$(i) && /* @__PURE__ */ X("span", {
|
|
68749
|
-
style:
|
|
69425
|
+
style: CY.strong,
|
|
68750
69426
|
children: i
|
|
68751
69427
|
}), $(a) && /* @__PURE__ */ X("span", {
|
|
68752
|
-
style:
|
|
69428
|
+
style: CY.small,
|
|
68753
69429
|
children: a
|
|
68754
69430
|
})]
|
|
68755
69431
|
})]
|
|
68756
69432
|
});
|
|
68757
69433
|
}
|
|
68758
|
-
function
|
|
68759
|
-
let i =
|
|
69434
|
+
function kY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69435
|
+
let i = gY(e, t, n).filter((e) => e && typeof e == "object");
|
|
68760
69436
|
return i.length ? /* @__PURE__ */ X("ol", {
|
|
68761
69437
|
className: "cc-details__timeline",
|
|
68762
69438
|
style: {
|
|
@@ -68769,8 +69445,8 @@ function mY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68769
69445
|
children: i.map((e, t) => /* @__PURE__ */ Z("li", {
|
|
68770
69446
|
style: {
|
|
68771
69447
|
display: "flex",
|
|
68772
|
-
gap:
|
|
68773
|
-
minHeight:
|
|
69448
|
+
gap: lY(6.6),
|
|
69449
|
+
minHeight: lY(e === i[i.length - 1] ? 13 : 34.6)
|
|
68774
69450
|
},
|
|
68775
69451
|
children: [/* @__PURE__ */ Z("span", {
|
|
68776
69452
|
style: {
|
|
@@ -68779,7 +69455,7 @@ function mY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68779
69455
|
alignItems: "center",
|
|
68780
69456
|
flex: "none"
|
|
68781
69457
|
},
|
|
68782
|
-
children: [/* @__PURE__ */ X(
|
|
69458
|
+
children: [/* @__PURE__ */ X(wY, {
|
|
68783
69459
|
icon: e.icon,
|
|
68784
69460
|
tone: e.tone,
|
|
68785
69461
|
size: 13.2
|
|
@@ -68787,28 +69463,28 @@ function mY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68787
69463
|
"aria-hidden": "true",
|
|
68788
69464
|
style: {
|
|
68789
69465
|
flex: 1,
|
|
68790
|
-
width:
|
|
68791
|
-
background:
|
|
68792
|
-
margin: `${
|
|
69466
|
+
width: lY(.55),
|
|
69467
|
+
background: pY.border,
|
|
69468
|
+
margin: `${lY(2)} 0`
|
|
68793
69469
|
}
|
|
68794
69470
|
})]
|
|
68795
69471
|
}), /* @__PURE__ */ Z("span", {
|
|
68796
69472
|
style: {
|
|
68797
|
-
...
|
|
68798
|
-
paddingTop:
|
|
69473
|
+
...SY(.5),
|
|
69474
|
+
paddingTop: lY(.6)
|
|
68799
69475
|
},
|
|
68800
69476
|
children: [/* @__PURE__ */ X("span", {
|
|
68801
|
-
style:
|
|
68802
|
-
children:
|
|
68803
|
-
}), $(
|
|
68804
|
-
style:
|
|
68805
|
-
children:
|
|
69477
|
+
style: CY.strong,
|
|
69478
|
+
children: mY(e.title, r)
|
|
69479
|
+
}), $(mY(e.text, r)) && /* @__PURE__ */ X("span", {
|
|
69480
|
+
style: CY.small,
|
|
69481
|
+
children: mY(e.text, r)
|
|
68806
69482
|
})]
|
|
68807
69483
|
})]
|
|
68808
|
-
}, `${t}-${
|
|
69484
|
+
}, `${t}-${mY(e.title, r)}`))
|
|
68809
69485
|
}) : null;
|
|
68810
69486
|
}
|
|
68811
|
-
function
|
|
69487
|
+
function AY({ block: e, data: t, ctx: n, locale: r }) {
|
|
68812
69488
|
let i = (Array.isArray(e.items) ? e.items : []).filter((e) => e && cq(e, t, n));
|
|
68813
69489
|
if (!i.length) return null;
|
|
68814
69490
|
let a = e.variant === "tiles";
|
|
@@ -68817,34 +69493,34 @@ function hY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68817
69493
|
style: {
|
|
68818
69494
|
display: "flex",
|
|
68819
69495
|
flexWrap: "wrap",
|
|
68820
|
-
columnGap:
|
|
68821
|
-
rowGap:
|
|
69496
|
+
columnGap: lY(a ? 13 : 8.8),
|
|
69497
|
+
rowGap: lY(6.6),
|
|
68822
69498
|
justifyContent: "space-between"
|
|
68823
69499
|
},
|
|
68824
69500
|
children: i.map((e) => {
|
|
68825
|
-
let i =
|
|
69501
|
+
let i = hY(e.value, t, n, { locale: r }), o = e.valueTone ? fY(e.valueTone).fg : pY.ink;
|
|
68826
69502
|
return /* @__PURE__ */ Z("div", {
|
|
68827
69503
|
style: {
|
|
68828
69504
|
display: "flex",
|
|
68829
69505
|
alignItems: "center",
|
|
68830
|
-
gap:
|
|
69506
|
+
gap: lY(6.6),
|
|
68831
69507
|
flex: a ? "0 1 auto" : "1 0 auto"
|
|
68832
69508
|
},
|
|
68833
|
-
children: [a && /* @__PURE__ */ X(
|
|
69509
|
+
children: [a && /* @__PURE__ */ X(wY, {
|
|
68834
69510
|
icon: e.icon,
|
|
68835
69511
|
tone: e.tone,
|
|
68836
69512
|
size: 17.6
|
|
68837
69513
|
}), /* @__PURE__ */ Z("span", {
|
|
68838
|
-
style:
|
|
69514
|
+
style: SY(0),
|
|
68839
69515
|
children: [/* @__PURE__ */ X("span", {
|
|
68840
69516
|
style: {
|
|
68841
|
-
...
|
|
69517
|
+
...CY.stat,
|
|
68842
69518
|
color: o,
|
|
68843
69519
|
whiteSpace: "nowrap"
|
|
68844
69520
|
},
|
|
68845
69521
|
children: i
|
|
68846
69522
|
}), /* @__PURE__ */ X("span", {
|
|
68847
|
-
style:
|
|
69523
|
+
style: CY.small,
|
|
68848
69524
|
children: oq(e.label, t, n)
|
|
68849
69525
|
})]
|
|
68850
69526
|
})]
|
|
@@ -68852,71 +69528,71 @@ function hY({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68852
69528
|
})
|
|
68853
69529
|
});
|
|
68854
69530
|
}
|
|
68855
|
-
function
|
|
68856
|
-
let i =
|
|
69531
|
+
function jY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69532
|
+
let i = gY(e, t, n).filter((e) => e && typeof e == "object" && $(mY(e.name, r)));
|
|
68857
69533
|
return i.length ? /* @__PURE__ */ X("ul", {
|
|
68858
69534
|
className: "cc-details__people",
|
|
68859
69535
|
style: {
|
|
68860
|
-
...
|
|
69536
|
+
...SY(2.2),
|
|
68861
69537
|
listStyle: "none",
|
|
68862
69538
|
margin: 0,
|
|
68863
69539
|
padding: 0
|
|
68864
69540
|
},
|
|
68865
69541
|
children: i.map((e, t) => {
|
|
68866
|
-
let n =
|
|
69542
|
+
let n = mY(e.name, r);
|
|
68867
69543
|
return /* @__PURE__ */ Z("li", {
|
|
68868
69544
|
style: {
|
|
68869
69545
|
display: "flex",
|
|
68870
69546
|
alignItems: "center",
|
|
68871
|
-
gap:
|
|
69547
|
+
gap: lY(4.4)
|
|
68872
69548
|
},
|
|
68873
69549
|
children: [/* @__PURE__ */ X(Vo, {
|
|
68874
69550
|
src: $(e.avatar) ? e.avatar : void 0,
|
|
68875
69551
|
alt: "",
|
|
68876
69552
|
style: {
|
|
68877
|
-
width:
|
|
68878
|
-
height:
|
|
68879
|
-
lineHeight:
|
|
68880
|
-
fontSize:
|
|
69553
|
+
width: lY(15.4),
|
|
69554
|
+
height: lY(15.4),
|
|
69555
|
+
lineHeight: lY(15.4),
|
|
69556
|
+
fontSize: lY(6),
|
|
68881
69557
|
flex: "none"
|
|
68882
69558
|
},
|
|
68883
69559
|
children: mq(n)
|
|
68884
69560
|
}), /* @__PURE__ */ Z("span", {
|
|
68885
|
-
style:
|
|
69561
|
+
style: SY(0),
|
|
68886
69562
|
children: [/* @__PURE__ */ X("span", {
|
|
68887
69563
|
style: {
|
|
68888
|
-
...
|
|
68889
|
-
fontSize:
|
|
69564
|
+
...CY.strong,
|
|
69565
|
+
fontSize: uY(6.6, 11)
|
|
68890
69566
|
},
|
|
68891
69567
|
children: n
|
|
68892
|
-
}), $(
|
|
68893
|
-
style:
|
|
68894
|
-
children:
|
|
69568
|
+
}), $(mY(e.subtitle, r)) && /* @__PURE__ */ X("span", {
|
|
69569
|
+
style: CY.small,
|
|
69570
|
+
children: mY(e.subtitle, r)
|
|
68895
69571
|
})]
|
|
68896
69572
|
})]
|
|
68897
69573
|
}, `${t}-${n}`);
|
|
68898
69574
|
})
|
|
68899
69575
|
}) : null;
|
|
68900
69576
|
}
|
|
68901
|
-
function
|
|
69577
|
+
function MY({ block: e, data: t, ctx: n, locale: r }) {
|
|
68902
69578
|
let i = Number(aq(e.percent, t, n));
|
|
68903
69579
|
if (!Number.isFinite(i)) return null;
|
|
68904
|
-
let a = Math.max(0, Math.min(100, i)), o =
|
|
69580
|
+
let a = Math.max(0, Math.min(100, i)), o = hY(e.caption, t, n, {
|
|
68905
69581
|
locale: r,
|
|
68906
69582
|
placeholder: ""
|
|
68907
|
-
}), s =
|
|
69583
|
+
}), s = fY(e.tone || "brand");
|
|
68908
69584
|
return /* @__PURE__ */ Z("div", {
|
|
68909
69585
|
className: "cc-details__progress",
|
|
68910
|
-
style:
|
|
69586
|
+
style: SY(3.3),
|
|
68911
69587
|
children: [/* @__PURE__ */ X("div", {
|
|
68912
69588
|
role: "progressbar",
|
|
68913
69589
|
"aria-valuemin": 0,
|
|
68914
69590
|
"aria-valuemax": 100,
|
|
68915
69591
|
"aria-valuenow": a,
|
|
68916
69592
|
style: {
|
|
68917
|
-
height:
|
|
68918
|
-
borderRadius:
|
|
68919
|
-
background:
|
|
69593
|
+
height: lY(2.2),
|
|
69594
|
+
borderRadius: lY(2),
|
|
69595
|
+
background: pY.track,
|
|
68920
69596
|
overflow: "hidden"
|
|
68921
69597
|
},
|
|
68922
69598
|
children: /* @__PURE__ */ X("div", { style: {
|
|
@@ -68926,100 +69602,100 @@ function _Y({ block: e, data: t, ctx: n, locale: r }) {
|
|
|
68926
69602
|
background: s.fg
|
|
68927
69603
|
} })
|
|
68928
69604
|
}), $(o) && /* @__PURE__ */ X("span", {
|
|
68929
|
-
style:
|
|
69605
|
+
style: CY.small,
|
|
68930
69606
|
children: o
|
|
68931
69607
|
})]
|
|
68932
69608
|
});
|
|
68933
69609
|
}
|
|
68934
|
-
function
|
|
68935
|
-
let i =
|
|
69610
|
+
function NY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69611
|
+
let i = gY(e, t, n).map((e) => e && typeof e == "object" ? e : { label: e }).filter((e) => $(mY(e.label, r)));
|
|
68936
69612
|
return i.length ? /* @__PURE__ */ X("div", {
|
|
68937
69613
|
className: "cc-details__tags",
|
|
68938
69614
|
style: {
|
|
68939
69615
|
display: "flex",
|
|
68940
69616
|
flexWrap: "wrap",
|
|
68941
|
-
gap:
|
|
69617
|
+
gap: lY(3.3)
|
|
68942
69618
|
},
|
|
68943
69619
|
children: i.map((t, n) => {
|
|
68944
|
-
let i =
|
|
69620
|
+
let i = fY(t.tone || e.tone || "neutral");
|
|
68945
69621
|
return /* @__PURE__ */ X("span", {
|
|
68946
69622
|
"data-tone": t.tone || e.tone || "neutral",
|
|
68947
69623
|
style: {
|
|
68948
69624
|
display: "inline-flex",
|
|
68949
69625
|
alignItems: "center",
|
|
68950
|
-
padding: `${
|
|
68951
|
-
borderRadius:
|
|
69626
|
+
padding: `${lY(1.6)} ${lY(4.4)}`,
|
|
69627
|
+
borderRadius: lY(3),
|
|
68952
69628
|
background: i.bg,
|
|
68953
|
-
color: e.tone || t.tone ? i.fg :
|
|
68954
|
-
fontSize:
|
|
69629
|
+
color: e.tone || t.tone ? i.fg : pY.muted,
|
|
69630
|
+
fontSize: uY(5.5, 10),
|
|
68955
69631
|
fontWeight: 400,
|
|
68956
69632
|
lineHeight: 1.5
|
|
68957
69633
|
},
|
|
68958
|
-
children:
|
|
68959
|
-
}, `${n}-${
|
|
69634
|
+
children: mY(t.label, r)
|
|
69635
|
+
}, `${n}-${mY(t.label, r)}`);
|
|
68960
69636
|
})
|
|
68961
69637
|
}) : null;
|
|
68962
69638
|
}
|
|
68963
|
-
function
|
|
68964
|
-
let i =
|
|
69639
|
+
function PY({ block: e, data: t, ctx: n, locale: r }) {
|
|
69640
|
+
let i = gY(e, t, n).filter((e) => e && typeof e == "object" && $(mY(e.name, r)));
|
|
68965
69641
|
return i.length ? /* @__PURE__ */ X("ul", {
|
|
68966
69642
|
className: "cc-details__files",
|
|
68967
69643
|
style: {
|
|
68968
|
-
...
|
|
69644
|
+
...SY(5.5),
|
|
68969
69645
|
listStyle: "none",
|
|
68970
69646
|
margin: 0,
|
|
68971
69647
|
padding: 0
|
|
68972
69648
|
},
|
|
68973
69649
|
children: i.map((t, n) => {
|
|
68974
|
-
let i =
|
|
69650
|
+
let i = mY(t.name, r), a = $(t.href) && /^(https?:|\/|blob:)/i.test(String(t.href)) ? String(t.href) : "";
|
|
68975
69651
|
return /* @__PURE__ */ Z("li", {
|
|
68976
69652
|
style: {
|
|
68977
69653
|
display: "flex",
|
|
68978
69654
|
alignItems: "center",
|
|
68979
|
-
gap:
|
|
69655
|
+
gap: lY(5.5)
|
|
68980
69656
|
},
|
|
68981
|
-
children: [/* @__PURE__ */ X(
|
|
69657
|
+
children: [/* @__PURE__ */ X(wY, {
|
|
68982
69658
|
icon: t.icon || "pdf",
|
|
68983
69659
|
tone: t.tone || e.tone || "pink",
|
|
68984
69660
|
size: 13.2
|
|
68985
69661
|
}), /* @__PURE__ */ Z("span", {
|
|
68986
|
-
style:
|
|
69662
|
+
style: SY(0),
|
|
68987
69663
|
children: [a ? /* @__PURE__ */ X("a", {
|
|
68988
69664
|
href: a,
|
|
68989
69665
|
target: "_blank",
|
|
68990
69666
|
rel: "noopener noreferrer",
|
|
68991
69667
|
style: {
|
|
68992
|
-
...
|
|
68993
|
-
fontSize:
|
|
69668
|
+
...CY.strong,
|
|
69669
|
+
fontSize: uY(6.6, 11)
|
|
68994
69670
|
},
|
|
68995
69671
|
children: i
|
|
68996
69672
|
}) : /* @__PURE__ */ X("span", {
|
|
68997
69673
|
style: {
|
|
68998
|
-
...
|
|
68999
|
-
fontSize:
|
|
69674
|
+
...CY.strong,
|
|
69675
|
+
fontSize: uY(6.6, 11)
|
|
69000
69676
|
},
|
|
69001
69677
|
children: i
|
|
69002
|
-
}), $(
|
|
69003
|
-
style:
|
|
69004
|
-
children:
|
|
69678
|
+
}), $(mY(t.meta, r)) && /* @__PURE__ */ X("span", {
|
|
69679
|
+
style: CY.small,
|
|
69680
|
+
children: mY(t.meta, r)
|
|
69005
69681
|
})]
|
|
69006
69682
|
})]
|
|
69007
69683
|
}, `${n}-${i}`);
|
|
69008
69684
|
})
|
|
69009
69685
|
}) : null;
|
|
69010
69686
|
}
|
|
69011
|
-
function
|
|
69687
|
+
function FY() {
|
|
69012
69688
|
return /* @__PURE__ */ X("hr", {
|
|
69013
69689
|
"aria-hidden": "true",
|
|
69014
69690
|
style: {
|
|
69015
69691
|
border: 0,
|
|
69016
|
-
borderTop: `0.55px solid ${
|
|
69017
|
-
margin: `${
|
|
69692
|
+
borderTop: `0.55px solid ${pY.border}`,
|
|
69693
|
+
margin: `${lY(2)} 0`,
|
|
69018
69694
|
width: "100%"
|
|
69019
69695
|
}
|
|
69020
69696
|
});
|
|
69021
69697
|
}
|
|
69022
|
-
function
|
|
69698
|
+
function IY({ block: e, data: t, ctx: n }) {
|
|
69023
69699
|
if (typeof e.render != "function") return null;
|
|
69024
69700
|
try {
|
|
69025
69701
|
return e.render(t, n) ?? null;
|
|
@@ -69027,15 +69703,15 @@ function xY({ block: e, data: t, ctx: n }) {
|
|
|
69027
69703
|
return console.warn("[DETAILSSECTION] custom block failed:", e), null;
|
|
69028
69704
|
}
|
|
69029
69705
|
}
|
|
69030
|
-
function
|
|
69706
|
+
function LY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
|
|
69031
69707
|
if (!e || !cq(e, t, n)) return null;
|
|
69032
69708
|
let a = i[e.type];
|
|
69033
69709
|
if (!a) return console.warn(`[DETAILSSECTION] unknown block type "${e.type}"`), /* @__PURE__ */ Z("div", {
|
|
69034
69710
|
role: "alert",
|
|
69035
69711
|
className: "cc-details__unknown",
|
|
69036
69712
|
style: {
|
|
69037
|
-
...
|
|
69038
|
-
color:
|
|
69713
|
+
...CY.small,
|
|
69714
|
+
color: fY("red").fg
|
|
69039
69715
|
},
|
|
69040
69716
|
children: [
|
|
69041
69717
|
"Unknown block type “",
|
|
@@ -69043,17 +69719,17 @@ function SY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
|
|
|
69043
69719
|
"”"
|
|
69044
69720
|
]
|
|
69045
69721
|
});
|
|
69046
|
-
let o = e.type === "callout" ? "" : oq(e.title, t, n), s =
|
|
69722
|
+
let o = e.type === "callout" ? "" : oq(e.title, t, n), s = xY(e, t, n, r), c = oq(e.empty, t, n);
|
|
69047
69723
|
return s && !$(c) ? null : /* @__PURE__ */ Z("div", {
|
|
69048
69724
|
className: `cc-details__block cc-details__block--${e.type}`,
|
|
69049
|
-
style:
|
|
69725
|
+
style: SY(3.3),
|
|
69050
69726
|
children: [$(o) && /* @__PURE__ */ X("h4", {
|
|
69051
69727
|
className: "cc-details__subtitle",
|
|
69052
|
-
style:
|
|
69728
|
+
style: CY.sub,
|
|
69053
69729
|
children: o
|
|
69054
69730
|
}), s ? /* @__PURE__ */ X("span", {
|
|
69055
69731
|
className: "cc-details__empty",
|
|
69056
|
-
style:
|
|
69732
|
+
style: CY.small,
|
|
69057
69733
|
children: c
|
|
69058
69734
|
}) : /* @__PURE__ */ X(a, {
|
|
69059
69735
|
block: e,
|
|
@@ -69065,32 +69741,32 @@ function SY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
|
|
|
69065
69741
|
}
|
|
69066
69742
|
//#endregion
|
|
69067
69743
|
//#region src/components/COMBAINED_COMPONENTS/helpers/details/detailsRegistry.js
|
|
69068
|
-
var
|
|
69069
|
-
text:
|
|
69070
|
-
fields:
|
|
69071
|
-
list:
|
|
69072
|
-
callout:
|
|
69073
|
-
timeline:
|
|
69074
|
-
stats:
|
|
69075
|
-
people:
|
|
69076
|
-
progress:
|
|
69077
|
-
tags:
|
|
69078
|
-
files:
|
|
69079
|
-
divider:
|
|
69080
|
-
custom:
|
|
69744
|
+
var RY = {
|
|
69745
|
+
text: TY,
|
|
69746
|
+
fields: EY,
|
|
69747
|
+
list: DY,
|
|
69748
|
+
callout: OY,
|
|
69749
|
+
timeline: kY,
|
|
69750
|
+
stats: AY,
|
|
69751
|
+
people: jY,
|
|
69752
|
+
progress: MY,
|
|
69753
|
+
tags: NY,
|
|
69754
|
+
files: PY,
|
|
69755
|
+
divider: FY,
|
|
69756
|
+
custom: IY
|
|
69081
69757
|
};
|
|
69082
|
-
function
|
|
69083
|
-
return !e || !cq(e, t, n) ? !1 : !i[e.type] || !
|
|
69758
|
+
function zY(e, t, n, r, i = RY) {
|
|
69759
|
+
return !e || !cq(e, t, n) ? !1 : !i[e.type] || !xY(e, t, n, r) || $(oq(e.empty, t, n));
|
|
69084
69760
|
}
|
|
69085
69761
|
//#endregion
|
|
69086
69762
|
//#region src/components/COMBAINED_COMPONENTS/helpers/details/DetailsSection.jsx
|
|
69087
|
-
var
|
|
69763
|
+
var BY = {
|
|
69088
69764
|
gap: 6,
|
|
69089
69765
|
asideWidth: 154,
|
|
69090
69766
|
stackBelow: 900,
|
|
69091
69767
|
wrapBelow: 640
|
|
69092
69768
|
};
|
|
69093
|
-
function
|
|
69769
|
+
function VY(e) {
|
|
69094
69770
|
let [t, n] = R(0);
|
|
69095
69771
|
return Io(() => {
|
|
69096
69772
|
let t = e.current;
|
|
@@ -69101,7 +69777,7 @@ function EY(e) {
|
|
|
69101
69777
|
return i.observe(t), () => i.disconnect();
|
|
69102
69778
|
}, [e]), t;
|
|
69103
69779
|
}
|
|
69104
|
-
function
|
|
69780
|
+
function HY(e, t, n) {
|
|
69105
69781
|
if (typeof e.onClick == "function") return e.onClick(t, n);
|
|
69106
69782
|
if ($(e.tab) && typeof n?.openTab == "function") return n.openTab(String(e.tab));
|
|
69107
69783
|
if ($(e.href)) {
|
|
@@ -69110,7 +69786,7 @@ function DY(e, t, n) {
|
|
|
69110
69786
|
if (typeof n?.navigate == "function") return n.navigate(t);
|
|
69111
69787
|
}
|
|
69112
69788
|
}
|
|
69113
|
-
function
|
|
69789
|
+
function UY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
69114
69790
|
let o = oq(e.title, t, n), s = e.action && cq(e.action, t, n) ? e.action : null, c = s ? oq(s.label, t, n) : "", l = `cc-details-${e.key}`;
|
|
69115
69791
|
return /* @__PURE__ */ Z("section", {
|
|
69116
69792
|
className: `cc-details__card ${e.className ?? ""}`.trim(),
|
|
@@ -69119,13 +69795,13 @@ function OY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
|
69119
69795
|
style: {
|
|
69120
69796
|
display: "flex",
|
|
69121
69797
|
flexDirection: "column",
|
|
69122
|
-
gap:
|
|
69798
|
+
gap: lY(6.6),
|
|
69123
69799
|
minWidth: 0,
|
|
69124
69800
|
boxSizing: "border-box",
|
|
69125
|
-
padding:
|
|
69126
|
-
borderRadius:
|
|
69127
|
-
border: `0.55px solid ${
|
|
69128
|
-
background:
|
|
69801
|
+
padding: lY(8.81),
|
|
69802
|
+
borderRadius: lY(5.5),
|
|
69803
|
+
border: `0.55px solid ${pY.border}`,
|
|
69804
|
+
background: pY.surface,
|
|
69129
69805
|
...a
|
|
69130
69806
|
},
|
|
69131
69807
|
children: [($(o) || $(c)) && /* @__PURE__ */ Z("header", {
|
|
@@ -69133,16 +69809,16 @@ function OY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
|
69133
69809
|
display: "flex",
|
|
69134
69810
|
alignItems: "center",
|
|
69135
69811
|
justifyContent: "space-between",
|
|
69136
|
-
gap:
|
|
69812
|
+
gap: lY(4)
|
|
69137
69813
|
},
|
|
69138
69814
|
children: [$(o) && /* @__PURE__ */ Z("span", {
|
|
69139
69815
|
style: {
|
|
69140
69816
|
display: "inline-flex",
|
|
69141
69817
|
alignItems: "center",
|
|
69142
|
-
gap:
|
|
69818
|
+
gap: lY(5.5),
|
|
69143
69819
|
minWidth: 0
|
|
69144
69820
|
},
|
|
69145
|
-
children: [e.icon ? /* @__PURE__ */ X(
|
|
69821
|
+
children: [e.icon ? /* @__PURE__ */ X(wY, {
|
|
69146
69822
|
icon: e.icon,
|
|
69147
69823
|
tone: e.tone,
|
|
69148
69824
|
size: Number(e.iconSize) > 0 ? Number(e.iconSize) : 17.6
|
|
@@ -69151,40 +69827,40 @@ function OY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
|
69151
69827
|
className: "cc-details__title",
|
|
69152
69828
|
style: {
|
|
69153
69829
|
margin: 0,
|
|
69154
|
-
fontSize:
|
|
69830
|
+
fontSize: uY(8.81, 12),
|
|
69155
69831
|
fontWeight: 600,
|
|
69156
69832
|
lineHeight: 1.5,
|
|
69157
|
-
color:
|
|
69833
|
+
color: pY.ink
|
|
69158
69834
|
},
|
|
69159
69835
|
children: o
|
|
69160
69836
|
})]
|
|
69161
69837
|
}), $(c) && /* @__PURE__ */ Z("button", {
|
|
69162
69838
|
type: "button",
|
|
69163
69839
|
className: "cc-details__action",
|
|
69164
|
-
onClick: () =>
|
|
69840
|
+
onClick: () => HY(s, t, n),
|
|
69165
69841
|
style: {
|
|
69166
69842
|
marginLeft: "auto",
|
|
69167
69843
|
padding: 0,
|
|
69168
69844
|
border: 0,
|
|
69169
69845
|
background: "none",
|
|
69170
69846
|
cursor: "pointer",
|
|
69171
|
-
color:
|
|
69172
|
-
fontSize:
|
|
69847
|
+
color: pY.link,
|
|
69848
|
+
fontSize: uY(6.05, 11),
|
|
69173
69849
|
fontWeight: 400,
|
|
69174
69850
|
lineHeight: 1.5,
|
|
69175
69851
|
whiteSpace: "nowrap",
|
|
69176
69852
|
display: "inline-flex",
|
|
69177
69853
|
alignItems: "center",
|
|
69178
|
-
gap:
|
|
69854
|
+
gap: lY(3)
|
|
69179
69855
|
},
|
|
69180
69856
|
children: [s.icon ? /* @__PURE__ */ X("span", {
|
|
69181
69857
|
className: "cc-details__action-icon",
|
|
69182
69858
|
"aria-hidden": "true",
|
|
69183
69859
|
style: { display: "inline-flex" },
|
|
69184
|
-
children:
|
|
69860
|
+
children: cY(s.icon)
|
|
69185
69861
|
}) : null, c]
|
|
69186
69862
|
})]
|
|
69187
|
-
}), (Array.isArray(e.blocks) ? e.blocks : []).map((e, a) => /* @__PURE__ */ X(
|
|
69863
|
+
}), (Array.isArray(e.blocks) ? e.blocks : []).map((e, a) => /* @__PURE__ */ X(LY, {
|
|
69188
69864
|
block: e,
|
|
69189
69865
|
data: t,
|
|
69190
69866
|
ctx: n,
|
|
@@ -69193,16 +69869,16 @@ function OY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
|
|
|
69193
69869
|
}, e?.key ?? `${e?.type}-${a}`))]
|
|
69194
69870
|
});
|
|
69195
69871
|
}
|
|
69196
|
-
var
|
|
69197
|
-
function
|
|
69872
|
+
var WY = (e, t, n, r, i) => !!e?.key && cq(e, t, n) && (Array.isArray(e.blocks) ? e.blocks : []).some((e) => zY(e, t, n, r, i));
|
|
69873
|
+
function GY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
|
|
69198
69874
|
Ey();
|
|
69199
|
-
let i = Lo(null), a =
|
|
69200
|
-
...
|
|
69875
|
+
let i = Lo(null), a = VY(i), o = e && typeof e == "object" ? e : {}, s = {
|
|
69876
|
+
...BY,
|
|
69201
69877
|
...o.layout ?? {}
|
|
69202
69878
|
}, c = o.locale, l = {
|
|
69203
|
-
...
|
|
69879
|
+
...RY,
|
|
69204
69880
|
...o.blocks && typeof o.blocks == "object" ? o.blocks : {}
|
|
69205
|
-
}, u =
|
|
69881
|
+
}, u = lY(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) => WY(e, t, n, c, l))).filter((e) => e.length > 0), h = (Array.isArray(o.aside) ? o.aside : []).filter((e) => WY(e, t, n, c, l));
|
|
69206
69882
|
if (!m.length && !h.length) return null;
|
|
69207
69883
|
let g = (e) => Number.isFinite(e.width) && e.width > 0 ? e.width : 1;
|
|
69208
69884
|
return /* @__PURE__ */ Z("div", {
|
|
@@ -69238,7 +69914,7 @@ function AY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
|
|
|
69238
69914
|
alignItems: "stretch",
|
|
69239
69915
|
gap: u
|
|
69240
69916
|
},
|
|
69241
|
-
children: e.map((e) => /* @__PURE__ */ X(
|
|
69917
|
+
children: e.map((e) => /* @__PURE__ */ X(UY, {
|
|
69242
69918
|
card: e,
|
|
69243
69919
|
data: t,
|
|
69244
69920
|
ctx: n,
|
|
@@ -69255,11 +69931,11 @@ function AY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
|
|
|
69255
69931
|
gap: u,
|
|
69256
69932
|
minWidth: 0,
|
|
69257
69933
|
gridTemplateColumns: f && !p ? `repeat(${Math.min(h.length, 3)}, minmax(0, 1fr))` : void 0,
|
|
69258
|
-
width: f ? "100%" :
|
|
69934
|
+
width: f ? "100%" : lY(s.asideWidth),
|
|
69259
69935
|
flex: "none",
|
|
69260
69936
|
alignItems: f && !p ? "start" : "stretch"
|
|
69261
69937
|
},
|
|
69262
|
-
children: h.map((e) => /* @__PURE__ */ X(
|
|
69938
|
+
children: h.map((e) => /* @__PURE__ */ X(UY, {
|
|
69263
69939
|
card: e,
|
|
69264
69940
|
data: t,
|
|
69265
69941
|
ctx: n,
|
|
@@ -69271,8 +69947,8 @@ function AY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
|
|
|
69271
69947
|
}
|
|
69272
69948
|
//#endregion
|
|
69273
69949
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/MasterDetailWorkspace.jsx
|
|
69274
|
-
var
|
|
69275
|
-
function
|
|
69950
|
+
var KY = ".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)", qY = "cc-mdw-detail-window-width", JY = 32;
|
|
69951
|
+
function YY(e) {
|
|
69276
69952
|
try {
|
|
69277
69953
|
let t = Number(localStorage.getItem(e));
|
|
69278
69954
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
@@ -69280,13 +69956,13 @@ function PY(e) {
|
|
|
69280
69956
|
return null;
|
|
69281
69957
|
}
|
|
69282
69958
|
}
|
|
69283
|
-
function
|
|
69959
|
+
function XY(e, t) {
|
|
69284
69960
|
try {
|
|
69285
69961
|
localStorage.setItem(e, String(Math.round(t)));
|
|
69286
69962
|
} catch {}
|
|
69287
69963
|
}
|
|
69288
|
-
function
|
|
69289
|
-
let C = s === "window", w = Lo(null), T = Lo(null), E = Lo(null), [D, O] = R(() =>
|
|
69964
|
+
function ZY({ 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 = qY, railCollapsed: m = !1, railOverlay: h = !1, onCloseRailOverlay: g, onCloseDetail: _, railWidth: v = 264, collapsedRailWidth: y = 52, compactListWidth: b = 340, className: x = "", ariaLabel: S = "Workspace" }) {
|
|
69965
|
+
let C = s === "window", w = Lo(null), T = Lo(null), E = Lo(null), [D, O] = R(() => YY(p) ?? u), k = c ?? D;
|
|
69290
69966
|
I(() => {
|
|
69291
69967
|
if (a) {
|
|
69292
69968
|
!E.current && typeof document < "u" && (E.current = document.activeElement), T.current?.focus({ preventScroll: !0 });
|
|
@@ -69297,7 +69973,7 @@ function IY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69297
69973
|
}, [a]), I(() => {
|
|
69298
69974
|
if (!a || typeof document > "u") return;
|
|
69299
69975
|
let e = (e) => {
|
|
69300
|
-
e.key !== "Escape" || e.defaultPrevented || document.querySelector(
|
|
69976
|
+
e.key !== "Escape" || e.defaultPrevented || document.querySelector(KY) || _?.();
|
|
69301
69977
|
};
|
|
69302
69978
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
69303
69979
|
}, [a, _]);
|
|
@@ -69306,7 +69982,7 @@ function IY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69306
69982
|
return Math.round(Math.min(Math.max(e, d), n));
|
|
69307
69983
|
}, [d, f]), j = No((e) => {
|
|
69308
69984
|
let t = A(e);
|
|
69309
|
-
return l && l(t), c ?? (O(t),
|
|
69985
|
+
return l && l(t), c ?? (O(t), XY(p, t)), t;
|
|
69310
69986
|
}, [
|
|
69311
69987
|
A,
|
|
69312
69988
|
c,
|
|
@@ -69324,7 +70000,7 @@ function IY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69324
70000
|
};
|
|
69325
70001
|
t.classList.add("cc-mdw--resizing"), window.addEventListener("pointermove", a), window.addEventListener("pointerup", o);
|
|
69326
70002
|
}, N = (e) => {
|
|
69327
|
-
e.key === "ArrowLeft" ? (e.preventDefault(), j(k +
|
|
70003
|
+
e.key === "ArrowLeft" ? (e.preventDefault(), j(k + JY)) : e.key === "ArrowRight" && (e.preventDefault(), j(k - JY));
|
|
69328
70004
|
}, ee = a ? o ? "expanded" : "open" : "closed", P = C ? m : a || m, F = !C && a && h, te = !C && a && !!r, ne = {
|
|
69329
70005
|
"--cc-rail-w": `${v}px`,
|
|
69330
70006
|
"--cc-rail-collapsed-w": `${y}px`,
|
|
@@ -69395,7 +70071,7 @@ function IY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69395
70071
|
}
|
|
69396
70072
|
//#endregion
|
|
69397
70073
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/CreateActionButton.jsx
|
|
69398
|
-
function
|
|
70074
|
+
function QY({ primaryAction: e, menuActions: t = [], onAction: n, size: r = "large", className: i = "" }) {
|
|
69399
70075
|
if (!e) return null;
|
|
69400
70076
|
let a = t.map((e) => ({
|
|
69401
70077
|
key: e.key,
|
|
@@ -69432,7 +70108,7 @@ function LY({ primaryAction: e, menuActions: t = [], onAction: n, size: r = "lar
|
|
|
69432
70108
|
}
|
|
69433
70109
|
//#endregion
|
|
69434
70110
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/WorkspaceTopBar.jsx
|
|
69435
|
-
function
|
|
70111
|
+
function $Y({ 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 }) {
|
|
69436
70112
|
let [f, p] = R(t ?? ""), [m, h] = R(t ?? ""), g = Lo(t ?? ""), _ = Lo(null);
|
|
69437
70113
|
(t ?? "") !== m && (h(t ?? ""), p(t ?? "")), I(() => {
|
|
69438
70114
|
g.current = t ?? "";
|
|
@@ -69480,7 +70156,7 @@ function RY({ title: e = null, searchValue: t = "", onSearch: n, searchPlacehold
|
|
|
69480
70156
|
}),
|
|
69481
70157
|
/* @__PURE__ */ Z("div", {
|
|
69482
70158
|
className: "cc-topbar__actions",
|
|
69483
|
-
children: [l, /* @__PURE__ */ X(
|
|
70159
|
+
children: [l, /* @__PURE__ */ X(QY, {
|
|
69484
70160
|
primaryAction: o,
|
|
69485
70161
|
menuActions: s,
|
|
69486
70162
|
onAction: c
|
|
@@ -69491,37 +70167,37 @@ function RY({ title: e = null, searchValue: t = "", onSearch: n, searchPlacehold
|
|
|
69491
70167
|
}
|
|
69492
70168
|
//#endregion
|
|
69493
70169
|
//#region src/components/COMBAINED_COMPONENTS/helpers/list/compactListUtils.js
|
|
69494
|
-
function
|
|
70170
|
+
function eX(e) {
|
|
69495
70171
|
return e === !0 || e === 1 || e === "1" || String(e).toLowerCase() === "true";
|
|
69496
70172
|
}
|
|
69497
|
-
function
|
|
70173
|
+
function tX(e, t) {
|
|
69498
70174
|
if (!(!e || !t)) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : String(t).split(".").reduce((e, t) => e?.[t], e);
|
|
69499
70175
|
}
|
|
69500
|
-
function
|
|
69501
|
-
return e == null || e === "" ? "" : Array.isArray(e) ? e.map(
|
|
70176
|
+
function nX(e) {
|
|
70177
|
+
return e == null || e === "" ? "" : Array.isArray(e) ? e.map(nX).filter(Boolean).join(", ") : typeof e == "object" ? nX(e.label ?? e.value ?? e.name ?? e.title ?? "") : String(e);
|
|
69502
70178
|
}
|
|
69503
|
-
function
|
|
70179
|
+
function rX(e) {
|
|
69504
70180
|
return e?.field ?? e?.value ?? e?.fieldName ?? e?.key ?? "";
|
|
69505
70181
|
}
|
|
69506
|
-
function
|
|
69507
|
-
return (Array.isArray(e) ? e : []).filter((e) =>
|
|
70182
|
+
function iX(e) {
|
|
70183
|
+
return (Array.isArray(e) ? e : []).filter((e) => rX(e) && e.isVisible !== !1 && e.isVisible !== 0 && e.isVisible !== "0").slice().sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0));
|
|
69508
70184
|
}
|
|
69509
|
-
function
|
|
69510
|
-
let t =
|
|
70185
|
+
function aX(e) {
|
|
70186
|
+
let t = iX(e), n = t.find((e) => eX(e.isLink)) ?? t[0] ?? null, r = t.find((e) => String(e.renderType ?? "").toLowerCase() === "badge" && e !== n) ?? null;
|
|
69511
70187
|
return {
|
|
69512
70188
|
title: n,
|
|
69513
70189
|
status: r,
|
|
69514
70190
|
meta: t.filter((e) => e !== n && e !== r).slice(0, 2)
|
|
69515
70191
|
};
|
|
69516
70192
|
}
|
|
69517
|
-
function
|
|
70193
|
+
function oX(e) {
|
|
69518
70194
|
let t = e?._id ?? e?.id;
|
|
69519
70195
|
return t && typeof t == "object" ? String(t.$oid ?? "") : t == null ? "" : String(t);
|
|
69520
70196
|
}
|
|
69521
70197
|
//#endregion
|
|
69522
70198
|
//#region src/components/COMBAINED_COMPONENTS/helpers/list/CompactRecordList.jsx
|
|
69523
|
-
function
|
|
69524
|
-
let s = Lo(null), c = e?.rows ?? [], { title: l, status: u, meta: d } = L(() =>
|
|
70199
|
+
function sX({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage: i, ariaLabel: a = "Records", emptyText: o = "No records" }) {
|
|
70200
|
+
let s = Lo(null), c = e?.rows ?? [], { title: l, status: u, meta: d } = L(() => aX(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)));
|
|
69525
70201
|
return /* @__PURE__ */ Z("div", {
|
|
69526
70202
|
className: "cc-compact-list",
|
|
69527
70203
|
children: [
|
|
@@ -69550,7 +70226,7 @@ function KY({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage:
|
|
|
69550
70226
|
t[r] && (e.preventDefault(), t[r].focus());
|
|
69551
70227
|
},
|
|
69552
70228
|
children: c.map((e, t) => {
|
|
69553
|
-
let i =
|
|
70229
|
+
let i = oX(e), a = nX(tX(e, rX(l))) || "—", o = u ? nX(tX(e, rX(u))) : "", s = d.map((t) => nX(tX(e, rX(t)))).filter(Boolean).join(" · "), c = i && String(i) === String(n ?? "");
|
|
69554
70230
|
return /* @__PURE__ */ Z("li", {
|
|
69555
70231
|
"data-record-id": i,
|
|
69556
70232
|
role: "option",
|
|
@@ -69610,8 +70286,8 @@ function KY({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage:
|
|
|
69610
70286
|
}
|
|
69611
70287
|
//#endregion
|
|
69612
70288
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/RecordDetailPanel.jsx
|
|
69613
|
-
var
|
|
69614
|
-
function
|
|
70289
|
+
var cX = [];
|
|
70290
|
+
function lX({ component: e, id: t, moduleName: n, onDescriptionSaved: r, record: i }) {
|
|
69615
70291
|
return e ? /* @__PURE__ */ X(e, {
|
|
69616
70292
|
id: t,
|
|
69617
70293
|
moduleName: n,
|
|
@@ -69619,8 +70295,8 @@ function JY({ component: e, id: t, moduleName: n, onDescriptionSaved: r, record:
|
|
|
69619
70295
|
record: i
|
|
69620
70296
|
}) : null;
|
|
69621
70297
|
}
|
|
69622
|
-
function
|
|
69623
|
-
let o = e.length > r ? e.slice(0, r) : e, s = e.length > r ? e.slice(r) :
|
|
70298
|
+
function uX({ tabs: e = [], activeKey: t, onChange: n, max: r = 11, alwaysShowMore: i = !1, moreEmptyLabel: a = "Nothing more" }) {
|
|
70299
|
+
let o = e.length > r ? e.slice(0, r) : e, s = e.length > r ? e.slice(r) : cX, c = s.some((e) => e.key === t);
|
|
69624
70300
|
return /* @__PURE__ */ Z("div", {
|
|
69625
70301
|
className: "cc-detail__tabs",
|
|
69626
70302
|
role: "tablist",
|
|
@@ -69661,7 +70337,7 @@ function YY({ tabs: e = [], activeKey: t, onChange: n, max: r = 11, alwaysShowMo
|
|
|
69661
70337
|
})]
|
|
69662
70338
|
});
|
|
69663
70339
|
}
|
|
69664
|
-
function
|
|
70340
|
+
function dX({ 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 = cX, defaultTab: O = "details" }) {
|
|
69665
70341
|
let k = Lo(null), A = b != null || x != null, [j, M] = R(null);
|
|
69666
70342
|
I(() => {
|
|
69667
70343
|
let e = k.current;
|
|
@@ -69689,7 +70365,7 @@ function XY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
69689
70365
|
}, [v, y]);
|
|
69690
70366
|
let P = v === "stacked" || v === "auto" && N === !0, [F, te] = su(), ne = F.get("tab") || O, re = G_(), [ie, ae] = R(0), [oe, se] = R(null), [ce, le] = R(() => /* @__PURE__ */ new Set([ne]));
|
|
69691
70367
|
ce.has(ne) || le(/* @__PURE__ */ new Set([...ce, ne]));
|
|
69692
|
-
let ue = L(() => mg(e)?.tabs ??
|
|
70368
|
+
let ue = L(() => mg(e)?.tabs ?? cX, [e]), de = L(() => D.length ? [...ue, ...D] : ue, [ue, D]), fe = xp(de, {
|
|
69693
70369
|
id: t,
|
|
69694
70370
|
moduleName: e,
|
|
69695
70371
|
record: oe
|
|
@@ -69757,7 +70433,7 @@ function XY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
69757
70433
|
className: "cc-detail__header-end",
|
|
69758
70434
|
children: x
|
|
69759
70435
|
}), j) : null,
|
|
69760
|
-
be && fe.length > 0 && /* @__PURE__ */ X(
|
|
70436
|
+
be && fe.length > 0 && /* @__PURE__ */ X(uX, {
|
|
69761
70437
|
tabs: fe,
|
|
69762
70438
|
activeKey: ye ? "details" : ne,
|
|
69763
70439
|
onChange: (e) => he(e),
|
|
@@ -69803,7 +70479,7 @@ function XY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
69803
70479
|
return r ? /* @__PURE__ */ X("div", {
|
|
69804
70480
|
className: "cc-detail__tab",
|
|
69805
70481
|
hidden: n !== ne,
|
|
69806
|
-
children: /* @__PURE__ */ X(
|
|
70482
|
+
children: /* @__PURE__ */ X(lX, {
|
|
69807
70483
|
component: r,
|
|
69808
70484
|
id: t,
|
|
69809
70485
|
moduleName: e,
|
|
@@ -69816,7 +70492,7 @@ function XY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
69816
70492
|
})]
|
|
69817
70493
|
});
|
|
69818
70494
|
}
|
|
69819
|
-
function
|
|
70495
|
+
function fX({ items: e = [] }) {
|
|
69820
70496
|
return /* @__PURE__ */ X("ol", {
|
|
69821
70497
|
className: "cc-crumbs",
|
|
69822
70498
|
children: e.map((t, n) => /* @__PURE__ */ Z("li", {
|
|
@@ -69838,7 +70514,7 @@ function ZY({ items: e = [] }) {
|
|
|
69838
70514
|
}
|
|
69839
70515
|
//#endregion
|
|
69840
70516
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/useRecordFields.js
|
|
69841
|
-
function
|
|
70517
|
+
function pX(e, t, { max: n = 12, refreshKey: r = 0 } = {}) {
|
|
69842
70518
|
let i = `${e}|${t}|${r}`, [a, o] = R({
|
|
69843
70519
|
key: "",
|
|
69844
70520
|
groups: null,
|
|
@@ -69878,7 +70554,7 @@ function QY(e, t, { max: n = 12, refreshKey: r = 0 } = {}) {
|
|
|
69878
70554
|
}
|
|
69879
70555
|
//#endregion
|
|
69880
70556
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/RecordSidePanel.jsx
|
|
69881
|
-
function
|
|
70557
|
+
function mX({ open: e, title: t, extra: n = null, footer: r = null, onClose: i, width: a = 320, className: o = "", children: s }) {
|
|
69882
70558
|
let c = Lo(null);
|
|
69883
70559
|
return I(() => {
|
|
69884
70560
|
e && c.current?.focus({ preventScroll: !0 });
|
|
@@ -69921,7 +70597,7 @@ function $Y({ open: e, title: t, extra: n = null, footer: r = null, onClose: i,
|
|
|
69921
70597
|
}
|
|
69922
70598
|
//#endregion
|
|
69923
70599
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/AddRecordDrawer.jsx
|
|
69924
|
-
function
|
|
70600
|
+
function hX({ open: e, moduleName: t, title: n, width: r = 760, onClose: i, onCreated: a, formProps: o = {} }) {
|
|
69925
70601
|
return /* @__PURE__ */ X(Xo, {
|
|
69926
70602
|
open: e,
|
|
69927
70603
|
title: n ?? "Add",
|
|
@@ -69946,41 +70622,41 @@ function eX({ open: e, moduleName: t, title: n, width: r = 760, onClose: i, onCr
|
|
|
69946
70622
|
}
|
|
69947
70623
|
//#endregion
|
|
69948
70624
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/ModuleWorkspace.jsx
|
|
69949
|
-
var
|
|
69950
|
-
function
|
|
69951
|
-
if (e.get(
|
|
70625
|
+
var gX = "q", _X = "f", vX = "view", yX = "lp", bX = "full", xX = [];
|
|
70626
|
+
function SX(e) {
|
|
70627
|
+
if (e.get(vX) === bX) return;
|
|
69952
70628
|
let t = EG(e);
|
|
69953
|
-
t > 1 && e.set(
|
|
70629
|
+
t > 1 && e.set(yX, String(t)), [...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t));
|
|
69954
70630
|
}
|
|
69955
|
-
var
|
|
70631
|
+
var CX = {
|
|
69956
70632
|
open: "Live",
|
|
69957
70633
|
connecting: "Connecting…",
|
|
69958
70634
|
reconnecting: "Reconnecting…",
|
|
69959
70635
|
unauthorized: "Live updates paused",
|
|
69960
70636
|
idle: "Live"
|
|
69961
70637
|
};
|
|
69962
|
-
function
|
|
70638
|
+
function wX(e) {
|
|
69963
70639
|
return e === "open" ? "is-open" : e === "reconnecting" || e === "connecting" ? "is-reconnecting" : "";
|
|
69964
70640
|
}
|
|
69965
|
-
function
|
|
70641
|
+
function TX() {
|
|
69966
70642
|
try {
|
|
69967
70643
|
return Number(localStorage.getItem("userId")) || 0;
|
|
69968
70644
|
} catch {
|
|
69969
70645
|
return 0;
|
|
69970
70646
|
}
|
|
69971
70647
|
}
|
|
69972
|
-
function
|
|
69973
|
-
let { tab: D } = ou(), O = au(), [k, A] = su(), 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(
|
|
69974
|
-
topics: N ? [MK(e, N)] :
|
|
70648
|
+
function EX({ listModule: e, detailModule: t, detailConfigName: n, title: r, basePath: i, listTabs: a, recordParam: o = "id", searchPlaceholder: s = "Search…", searchFields: c, createActions: l, relatedTopics: u = xX, 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 }) {
|
|
70649
|
+
let { tab: D } = ou(), O = au(), [k, A] = su(), 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(vX) === bX), F = S === "overlay", [te, ne] = R(C), re = k.get(gX) || "", ie = k.get(_X) || "", ae = L(() => mG(ie), [ie]), [oe, se] = R(null), [ce, le] = R(0), ue = G_(), de = eq({ topics: [jK(e)] }), fe = eq({
|
|
70650
|
+
topics: N ? [MK(e, N)] : xX,
|
|
69975
70651
|
enabled: !!N
|
|
69976
70652
|
}), pe = eq({
|
|
69977
|
-
topics: N ? [...u, MK(e, N)] :
|
|
70653
|
+
topics: N ? [...u, MK(e, N)] : xX,
|
|
69978
70654
|
enabled: !!N
|
|
69979
70655
|
}), me = XK(), { fetchData: he, loading: ge } = wG({
|
|
69980
70656
|
filters: ae,
|
|
69981
70657
|
search: re,
|
|
69982
70658
|
refreshTick: de.tick + ce
|
|
69983
|
-
}), _e =
|
|
70659
|
+
}), _e = TX(), ve = fe.lastEvent, ye = ve && ve.actorId && ve.actorId !== _e ? ve.eventId : null, [be, xe] = R(null), Se = ye && ye !== be ? ye : null;
|
|
69984
70660
|
I(() => {
|
|
69985
70661
|
if (!Se) return;
|
|
69986
70662
|
let e = setTimeout(() => xe(Se), 6e3);
|
|
@@ -69991,7 +70667,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
69991
70667
|
e(r), n && (r = DG(r, 1)), r.toString() !== k.toString() && A(r, { replace: t });
|
|
69992
70668
|
}, [k, A]), we = No((e) => {
|
|
69993
70669
|
e && Ce((t) => {
|
|
69994
|
-
t.get(o) !== e && (t.set(o, e), t.delete("tab"), t.delete("subTab")), ee ? (
|
|
70670
|
+
t.get(o) !== e && (t.set(o, e), t.delete("tab"), t.delete("subTab")), ee ? (SX(t), t.set(vX, bX)) : t.delete(vX);
|
|
69995
70671
|
});
|
|
69996
70672
|
}, [
|
|
69997
70673
|
ee,
|
|
@@ -70000,23 +70676,23 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70000
70676
|
]), Te = No((e) => {
|
|
70001
70677
|
let t = e && typeof e == "object" && typeof e.tab == "string" ? e.tab : "";
|
|
70002
70678
|
Ce((e) => {
|
|
70003
|
-
|
|
70679
|
+
SX(e), e.set(vX, bX), t && (e.set("tab", t), e.delete("subTab"));
|
|
70004
70680
|
});
|
|
70005
70681
|
}, [Ce]), Ee = (e) => {
|
|
70006
|
-
if (e.get(
|
|
70007
|
-
let t = Number(e.get(
|
|
70008
|
-
[...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t)), e.delete(
|
|
70682
|
+
if (e.get(vX) !== bX && !e.has(yX)) return;
|
|
70683
|
+
let t = Number(e.get(yX)) || 1;
|
|
70684
|
+
[...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t)), e.delete(yX), t > 1 && e.set(`p${t}`, "");
|
|
70009
70685
|
}, De = No(() => {
|
|
70010
70686
|
Ce((e) => {
|
|
70011
|
-
Ee(e), e.delete(
|
|
70687
|
+
Ee(e), e.delete(vX), e.delete("tab"), e.delete("subTab");
|
|
70012
70688
|
});
|
|
70013
70689
|
}, [Ce]), Oe = No(() => {
|
|
70014
70690
|
Ce((e) => {
|
|
70015
|
-
Ee(e), e.delete(o), e.delete(
|
|
70691
|
+
Ee(e), e.delete(o), e.delete(vX), e.delete("tab"), e.delete("subTab");
|
|
70016
70692
|
});
|
|
70017
70693
|
}, [o, Ce]), ke = No((e) => {
|
|
70018
70694
|
Ce((t) => {
|
|
70019
|
-
e ? t.set(
|
|
70695
|
+
e ? t.set(gX, e) : t.delete(gX);
|
|
70020
70696
|
}, {
|
|
70021
70697
|
replace: !0,
|
|
70022
70698
|
resetPage: !0
|
|
@@ -70024,7 +70700,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70024
70700
|
}, [Ce]), Ae = No((e) => {
|
|
70025
70701
|
uG(e) !== uG(ae) && Ce((t) => {
|
|
70026
70702
|
let n = pG(e);
|
|
70027
|
-
n ? t.set(
|
|
70703
|
+
n ? t.set(_X, n) : t.delete(_X);
|
|
70028
70704
|
}, { resetPage: !0 });
|
|
70029
70705
|
}, [ae, Ce]), je = No((e) => {
|
|
70030
70706
|
if (!j) return;
|
|
@@ -70088,8 +70764,8 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70088
70764
|
children: [me !== "disabled" && /* @__PURE__ */ Z("span", {
|
|
70089
70765
|
className: "cc-live-pill",
|
|
70090
70766
|
"aria-live": "polite",
|
|
70091
|
-
children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${
|
|
70092
|
-
}), /* @__PURE__ */ X(
|
|
70767
|
+
children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${wX(me)}` }), CX[me] ?? "Offline"]
|
|
70768
|
+
}), /* @__PURE__ */ X(QY, {
|
|
70093
70769
|
primaryAction: l?.primary ?? null,
|
|
70094
70770
|
menuActions: l?.menu ?? [],
|
|
70095
70771
|
onAction: Ne,
|
|
@@ -70129,7 +70805,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70129
70805
|
onBackToQuick: ee ? null : De,
|
|
70130
70806
|
onClose: Oe,
|
|
70131
70807
|
updatedBanner: Re,
|
|
70132
|
-
renderCreateButton: (e = {}) => /* @__PURE__ */ X(
|
|
70808
|
+
renderCreateButton: (e = {}) => /* @__PURE__ */ X(QY, {
|
|
70133
70809
|
primaryAction: l?.primary ?? null,
|
|
70134
70810
|
menuActions: l?.menu ?? [],
|
|
70135
70811
|
onAction: Ne,
|
|
@@ -70145,7 +70821,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70145
70821
|
onOpenFull: Te,
|
|
70146
70822
|
onClose: Oe,
|
|
70147
70823
|
extra: p ? p(ze) : null
|
|
70148
|
-
}, N) : N && P && (Be = h ? h(ze) : /* @__PURE__ */ X(
|
|
70824
|
+
}, N) : N && P && (Be = h ? h(ze) : /* @__PURE__ */ X(dX, {
|
|
70149
70825
|
moduleName: t,
|
|
70150
70826
|
customConfigName: n,
|
|
70151
70827
|
id: N,
|
|
@@ -70157,16 +70833,16 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70157
70833
|
banner: Re,
|
|
70158
70834
|
headerEndSlot: y ? null : ze.renderCreateButton({ size: "middle" }),
|
|
70159
70835
|
stats: g ? g(ze) : null,
|
|
70160
|
-
breadcrumb: /* @__PURE__ */ X(
|
|
70836
|
+
breadcrumb: /* @__PURE__ */ X(fX, { items: [{
|
|
70161
70837
|
label: r,
|
|
70162
70838
|
onClick: Oe
|
|
70163
70839
|
}, { label: _ }] })
|
|
70164
70840
|
}, N));
|
|
70165
|
-
let Ve =
|
|
70841
|
+
let Ve = wX(me);
|
|
70166
70842
|
return /* @__PURE__ */ Z("div", {
|
|
70167
70843
|
className: `cc-module-workspace${T ? " cc-module-workspace--host-list" : ""}`,
|
|
70168
70844
|
children: [
|
|
70169
|
-
/* @__PURE__ */ X(
|
|
70845
|
+
/* @__PURE__ */ X(ZY, {
|
|
70170
70846
|
ariaLabel: r,
|
|
70171
70847
|
detailMode: "window",
|
|
70172
70848
|
defaultDetailWidth: f,
|
|
@@ -70177,7 +70853,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70177
70853
|
detailExpanded: P,
|
|
70178
70854
|
onCloseDetail: P && !ee ? De : Oe,
|
|
70179
70855
|
railCollapsed: te,
|
|
70180
|
-
topBar: P && !y || !P && E ? null : /* @__PURE__ */ X(
|
|
70856
|
+
topBar: P && !y || !P && E ? null : /* @__PURE__ */ X($Y, {
|
|
70181
70857
|
title: r,
|
|
70182
70858
|
searchValue: re,
|
|
70183
70859
|
onSearch: ke,
|
|
@@ -70191,7 +70867,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70191
70867
|
children: /* @__PURE__ */ Z("span", {
|
|
70192
70868
|
className: "cc-live-pill",
|
|
70193
70869
|
"aria-live": "polite",
|
|
70194
|
-
children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${Ve}` }),
|
|
70870
|
+
children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${Ve}` }), CX[me] ?? "Offline"]
|
|
70195
70871
|
})
|
|
70196
70872
|
})
|
|
70197
70873
|
}),
|
|
@@ -70220,7 +70896,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70220
70896
|
ariaLabel: d,
|
|
70221
70897
|
children: P ? null : Be
|
|
70222
70898
|
}),
|
|
70223
|
-
/* @__PURE__ */ X(
|
|
70899
|
+
/* @__PURE__ */ X(hX, {
|
|
70224
70900
|
open: !!oe,
|
|
70225
70901
|
moduleName: oe?.moduleName,
|
|
70226
70902
|
title: oe?.title,
|
|
@@ -70233,23 +70909,23 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
70233
70909
|
}
|
|
70234
70910
|
//#endregion
|
|
70235
70911
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/SearchResultsWorkspace.jsx
|
|
70236
|
-
var
|
|
70237
|
-
function
|
|
70912
|
+
var DX = [];
|
|
70913
|
+
function OX(e) {
|
|
70238
70914
|
let t = [
|
|
70239
70915
|
e,
|
|
70240
70916
|
e?.data,
|
|
70241
70917
|
e?.data?.data
|
|
70242
|
-
], 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) ??
|
|
70918
|
+
], 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) ?? DX;
|
|
70243
70919
|
return {
|
|
70244
70920
|
total: n === void 0 ? null : Number(n),
|
|
70245
70921
|
tabs: r
|
|
70246
70922
|
};
|
|
70247
70923
|
}
|
|
70248
|
-
var
|
|
70249
|
-
function
|
|
70250
|
-
let [_, v] = R(m), [y, b] = R(
|
|
70924
|
+
var kX = ["module:candidates", "module:submissions"];
|
|
70925
|
+
function AX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r, quickViewWidth: i = 340, railWidth: a = 240, liveTopics: o = kX, 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 }) {
|
|
70926
|
+
let [_, v] = R(m), [y, b] = R(DX), [x, S] = R(""), [C, w] = R(null), [T, E] = R({
|
|
70251
70927
|
total: null,
|
|
70252
|
-
tabs:
|
|
70928
|
+
tabs: DX,
|
|
70253
70929
|
durationMs: null
|
|
70254
70930
|
}), D = eq({
|
|
70255
70931
|
topics: o,
|
|
@@ -70260,7 +70936,7 @@ function hX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
|
|
|
70260
70936
|
baseFetch: L(() => typeof O == "function" ? async (...e) => {
|
|
70261
70937
|
let t = typeof performance < "u" ? performance.now() : Date.now(), n = await O(...e), r = typeof performance < "u" ? performance.now() : Date.now();
|
|
70262
70938
|
return E({
|
|
70263
|
-
...
|
|
70939
|
+
...OX(n),
|
|
70264
70940
|
durationMs: Math.max(0, r - t)
|
|
70265
70941
|
}), n;
|
|
70266
70942
|
} : O, [O]),
|
|
@@ -70355,11 +71031,11 @@ function hX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
|
|
|
70355
71031
|
}
|
|
70356
71032
|
//#endregion
|
|
70357
71033
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/SearchSummaryBanner.jsx
|
|
70358
|
-
function
|
|
71034
|
+
function jX(e) {
|
|
70359
71035
|
return (e ?? []).filter((e) => e != null && String(e).trim() !== "");
|
|
70360
71036
|
}
|
|
70361
|
-
function
|
|
70362
|
-
let u =
|
|
71037
|
+
function MX({ icon: e = /* @__PURE__ */ X(xl, {}), title: t = "Search", criteria: n = [], details: r = [], badge: i = null, onEdit: a, editLabel: o = "Edit Search", expanded: s = !1, onToggle: c, className: l = "" }) {
|
|
71038
|
+
let u = jX(n), d = jX(r);
|
|
70363
71039
|
return /* @__PURE__ */ Z("section", {
|
|
70364
71040
|
className: `cc-search-summary ${l}`.trim(),
|
|
70365
71041
|
"aria-label": `${t} summary`,
|
|
@@ -70414,7 +71090,7 @@ function _X({ icon: e = /* @__PURE__ */ X(xl, {}), title: t = "Search", criteria
|
|
|
70414
71090
|
}
|
|
70415
71091
|
//#endregion
|
|
70416
71092
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/WorkspaceAppFrame.jsx
|
|
70417
|
-
function
|
|
71093
|
+
function NX(...e) {
|
|
70418
71094
|
try {
|
|
70419
71095
|
for (let t of e) {
|
|
70420
71096
|
let e = (localStorage.getItem(t) || "").trim();
|
|
@@ -70423,34 +71099,34 @@ function vX(...e) {
|
|
|
70423
71099
|
} catch {}
|
|
70424
71100
|
return "";
|
|
70425
71101
|
}
|
|
70426
|
-
function
|
|
71102
|
+
function PX(e) {
|
|
70427
71103
|
return String(e || "").split(" ").filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
70428
71104
|
}
|
|
70429
|
-
function
|
|
71105
|
+
function FX(e) {
|
|
70430
71106
|
let t = String(e || "").split(" ").filter(Boolean);
|
|
70431
71107
|
return t.length ? `${t[0].charAt(0)}${t.length > 1 ? t.at(-1).charAt(0) : ""}`.toUpperCase() : "U";
|
|
70432
71108
|
}
|
|
70433
|
-
function
|
|
71109
|
+
function IX(e) {
|
|
70434
71110
|
let t = `url("${String(e).replace(/"/g, "%22")}")`;
|
|
70435
71111
|
return {
|
|
70436
71112
|
WebkitMaskImage: t,
|
|
70437
71113
|
maskImage: t
|
|
70438
71114
|
};
|
|
70439
71115
|
}
|
|
70440
|
-
function
|
|
71116
|
+
function LX() {
|
|
70441
71117
|
return /* @__PURE__ */ Z("span", {
|
|
70442
71118
|
className: "cc-frame__logo",
|
|
70443
71119
|
"aria-label": "Zinnext",
|
|
70444
71120
|
children: [/* @__PURE__ */ X("span", {
|
|
70445
71121
|
className: "cc-frame__logo-icon",
|
|
70446
|
-
style:
|
|
71122
|
+
style: IX(lw)
|
|
70447
71123
|
}), /* @__PURE__ */ X("span", {
|
|
70448
71124
|
className: "cc-frame__logo-text",
|
|
70449
|
-
style:
|
|
71125
|
+
style: IX(uw)
|
|
70450
71126
|
})]
|
|
70451
71127
|
});
|
|
70452
71128
|
}
|
|
70453
|
-
function
|
|
71129
|
+
function RX({ value: e = "", placeholder: t, onSearch: n }) {
|
|
70454
71130
|
let [r, i] = R(e), [a, o] = R(e);
|
|
70455
71131
|
return e !== a && (o(e), i(e)), /* @__PURE__ */ X(H, {
|
|
70456
71132
|
className: "cc-frame__search-input",
|
|
@@ -70465,10 +71141,10 @@ function CX({ value: e = "", placeholder: t, onSearch: n }) {
|
|
|
70465
71141
|
onPressEnter: () => n?.(r.trim())
|
|
70466
71142
|
});
|
|
70467
71143
|
}
|
|
70468
|
-
function
|
|
71144
|
+
function zX({ navItems: e = [], brand: t = null, search: n = null, headerExtra: r = null, user: i = null, userMenuItems: a = [], loginPath: o = "/login", children: s }) {
|
|
70469
71145
|
let c = iu(), l = au(), [u, d] = R(!1), [p, m] = R(c.pathname);
|
|
70470
71146
|
p !== c.pathname && (m(c.pathname), d(!1));
|
|
70471
|
-
let h =
|
|
71147
|
+
let h = PX(i?.name || NX("userName", "preferred_Username") || "User"), g = i?.subtitle ?? NX("roleName", "userRoleName"), _ = [
|
|
70472
71148
|
...a,
|
|
70473
71149
|
...a.length ? [{ type: "divider" }] : [],
|
|
70474
71150
|
{
|
|
@@ -70497,11 +71173,11 @@ function wX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
|
|
|
70497
71173
|
}),
|
|
70498
71174
|
/* @__PURE__ */ X("div", {
|
|
70499
71175
|
className: "cc-frame__brand",
|
|
70500
|
-
children: t ?? /* @__PURE__ */ X(
|
|
71176
|
+
children: t ?? /* @__PURE__ */ X(LX, {})
|
|
70501
71177
|
}),
|
|
70502
71178
|
n && /* @__PURE__ */ X("div", {
|
|
70503
71179
|
className: "cc-frame__search",
|
|
70504
|
-
children: /* @__PURE__ */ X(
|
|
71180
|
+
children: /* @__PURE__ */ X(RX, {
|
|
70505
71181
|
value: n.value ?? "",
|
|
70506
71182
|
placeholder: n.placeholder ?? "Search…",
|
|
70507
71183
|
onSearch: n.onSearch
|
|
@@ -70521,7 +71197,7 @@ function wX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
|
|
|
70521
71197
|
/* @__PURE__ */ X(Vo, {
|
|
70522
71198
|
size: 40,
|
|
70523
71199
|
className: "cc-frame__avatar",
|
|
70524
|
-
children:
|
|
71200
|
+
children: FX(h)
|
|
70525
71201
|
}),
|
|
70526
71202
|
/* @__PURE__ */ Z("span", {
|
|
70527
71203
|
className: "cc-frame__user-text",
|
|
@@ -70548,7 +71224,7 @@ function wX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
|
|
|
70548
71224
|
"aria-label": "Main",
|
|
70549
71225
|
children: [/* @__PURE__ */ X("div", {
|
|
70550
71226
|
className: "cc-frame__nav-brand",
|
|
70551
|
-
children: t ?? /* @__PURE__ */ X(
|
|
71227
|
+
children: t ?? /* @__PURE__ */ X(LX, {})
|
|
70552
71228
|
}), /* @__PURE__ */ X("ul", {
|
|
70553
71229
|
className: "cc-frame__nav-list",
|
|
70554
71230
|
children: e.map((e) => {
|
|
@@ -70590,53 +71266,53 @@ function wX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
|
|
|
70590
71266
|
}
|
|
70591
71267
|
//#endregion
|
|
70592
71268
|
//#region src/components/COMBAINED_COMPONENTS/helpers/workspace/searchSummary.js
|
|
70593
|
-
var
|
|
70594
|
-
function
|
|
71269
|
+
var BX = new Intl.NumberFormat();
|
|
71270
|
+
function VX(e) {
|
|
70595
71271
|
return e == null || typeof e == "string" && e.trim() === "";
|
|
70596
71272
|
}
|
|
70597
|
-
function
|
|
71273
|
+
function HX(e, t) {
|
|
70598
71274
|
let n = (Array.isArray(e?.options) ? e.options : []).find((e) => String(e?.value ?? e) === String(t));
|
|
70599
71275
|
return String(n && typeof n == "object" ? n.label ?? n.value ?? t : t);
|
|
70600
71276
|
}
|
|
70601
|
-
function
|
|
70602
|
-
if (
|
|
71277
|
+
function UX(e, t) {
|
|
71278
|
+
if (VX(t)) return "";
|
|
70603
71279
|
if (typeof t == "boolean") return t ? String(e?.label ?? e?.field ?? "") : "";
|
|
70604
71280
|
if (typeof t == "object") {
|
|
70605
71281
|
if (typeof t.format == "function") return t.format("DD MMM YYYY");
|
|
70606
71282
|
if ("label" in t || "value" in t) return String(t.label ?? t.value ?? "");
|
|
70607
71283
|
let e = t.from ?? t.min ?? t.start, n = t.to ?? t.max ?? t.end;
|
|
70608
|
-
return !
|
|
71284
|
+
return !VX(e) || !VX(n) ? [e, n].filter((e) => !VX(e)).join("–") : "";
|
|
70609
71285
|
}
|
|
70610
|
-
return
|
|
71286
|
+
return HX(e, t).trim();
|
|
70611
71287
|
}
|
|
70612
|
-
function
|
|
71288
|
+
function WX(e = {}, t = [], { skip: n = [] } = {}) {
|
|
70613
71289
|
let r = new Set(n);
|
|
70614
71290
|
return (t ?? []).flatMap((t) => {
|
|
70615
71291
|
let n = t?.field;
|
|
70616
71292
|
if (!n || r.has(n)) return [];
|
|
70617
71293
|
let i = e?.[n];
|
|
70618
|
-
if (
|
|
71294
|
+
if (VX(i)) return [];
|
|
70619
71295
|
if (db(t)) {
|
|
70620
71296
|
let { terms: e, expression: t } = ub(i), n = e.map((e) => e.value).filter(Boolean);
|
|
70621
71297
|
return n.length ? [n.join(", ")] : t.trim() ? [t.trim()] : [];
|
|
70622
71298
|
}
|
|
70623
71299
|
if (Array.isArray(i)) {
|
|
70624
|
-
let e = i.map((e) =>
|
|
71300
|
+
let e = i.map((e) => UX(t, e)).filter(Boolean);
|
|
70625
71301
|
return e.length ? [e.join(", ")] : [];
|
|
70626
71302
|
}
|
|
70627
|
-
let a =
|
|
71303
|
+
let a = UX(t, i);
|
|
70628
71304
|
return a ? [a] : [];
|
|
70629
71305
|
});
|
|
70630
71306
|
}
|
|
70631
|
-
function
|
|
71307
|
+
function GX(e) {
|
|
70632
71308
|
return !Number.isFinite(e) || e < 0 ? "" : e < 1e4 ? `${(e / 1e3).toFixed(1)} seconds` : `${Math.round(e / 1e3)} seconds`;
|
|
70633
71309
|
}
|
|
70634
|
-
function
|
|
70635
|
-
return Number.isFinite(e) ?
|
|
71310
|
+
function KX(e) {
|
|
71311
|
+
return Number.isFinite(e) ? BX.format(e) : "";
|
|
70636
71312
|
}
|
|
70637
71313
|
//#endregion
|
|
70638
71314
|
//#region src/components/COMBAINED_COMPONENTS/helpers/realtime/RealtimeProvider.jsx
|
|
70639
|
-
function
|
|
71315
|
+
function qX({ enabled: e = !0, children: t }) {
|
|
70640
71316
|
let [n] = R(() => e ? HK() : null);
|
|
70641
71317
|
return I(() => {
|
|
70642
71318
|
if (!n) return;
|
|
@@ -70654,10 +71330,10 @@ function MX({ enabled: e = !0, children: t }) {
|
|
|
70654
71330
|
}
|
|
70655
71331
|
//#endregion
|
|
70656
71332
|
//#region src/components/COMBAINED_COMPONENTS/helpers/hub/fetchRelatedRecords.js
|
|
70657
|
-
async function
|
|
70658
|
-
return
|
|
71333
|
+
async function JX(e, t, n, r = {}) {
|
|
71334
|
+
return YX(e, qG(t, n), r);
|
|
70659
71335
|
}
|
|
70660
|
-
async function
|
|
71336
|
+
async function YX(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a = "" } = {}) {
|
|
70661
71337
|
let o = Array.isArray(t) ? t.filter((e) => e?.field) : [];
|
|
70662
71338
|
if (!e || o.length === 0) return {
|
|
70663
71339
|
rows: [],
|
|
@@ -70675,9 +71351,9 @@ async function PX(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a
|
|
|
70675
71351
|
}
|
|
70676
71352
|
//#endregion
|
|
70677
71353
|
//#region src/index.js
|
|
70678
|
-
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-
|
|
70679
|
-
var
|
|
71354
|
+
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-12T12:07:14.264Z");
|
|
71355
|
+
var XX = qz, ZX = $T(cU), QX = $T(uU), $X = $T(TU), eZ = $T(LU), tZ = $T(KU), nZ = $T(YU), rZ = $T(QU), iZ = $T(tW), aZ = $T(rW), oZ = $T(gW), sZ = $T(vW);
|
|
70680
71356
|
//#endregion
|
|
70681
|
-
export { re as ACTION_RULE_SURFACES, D as ADMIN_API_URL, c as ADMIN_APP_ID, E as APP_ID, a as AUTH_URL, Aq as ActionInputBox, Yf as ActivityNotesCard, Wf as ActivityTab, Sz as AddBatchCandidatePopup, po as AddFormV1,
|
|
71357
|
+
export { re as ACTION_RULE_SURFACES, D as ADMIN_API_URL, c as ADMIN_APP_ID, E as APP_ID, a as AUTH_URL, Aq as ActionInputBox, Yf as ActivityNotesCard, Wf as ActivityTab, Sz as AddBatchCandidatePopup, po as AddFormV1, hX as AddRecordDrawer, qz as AdminDashboard, yP as AdminDashboardContent, XX as AdminPage, vo as AppAlert, ot as AppButton, ST as AppShell, AS as ApprovalActionBar, Xf as AssigneeAvatars, hT as AuthGuard, Rg as BILLING_STATUS_FLOW, gx as BOOLEAN_API_KEYS, tb as BOOLEAN_PARSEABLE_API_KEYS, Or as BUILT_IN_WIZARD_STEP_TYPES, Zf as BULK_UPLOAD_DEFAULT_ACCEPT, Qf as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, be as Breadcrumb, $X as BulkUploadPage, op as BulkUploadPanel, t as CANDIDATES_URL, eC as CONTRACT_C2C, $S as CONTRACT_W2, km as CURRENCY_SYMBOLS, Su as CalendarCard, oY as CombinedDashboardPage, oY as DASHBOARDPAGE, oJ as CombinedDetailViewPage, oJ as DETAILVIEWPAGE, Kq as CombinedHomePage, Kq as HOMEPAGE, sX as CompactRecordList, CP as CoreThemeAdminApp, SP as CoreThemeAdminRoutes, QY as CreateActionButton, fr as CustomPagination, Qx as DEFAULT_HOURS_POLICY, fx as DEFAULT_RESULTS_VIEW, GY as DETAILSSECTION, GY as DetailsSection, RY as DETAILS_BLOCKS, sY as DETAILS_ICONS, SS as DayLogModal, yp as DescriptionBlock, V_ as DetailHeaderCard, J_ as DetailViewPage, Ih as DetailViewV1, eo as DocumentViewer, Cf as DynamicCards, WI as DynamicPopup, Dz as DynamicPopupRoute, yr as DynamicTabs, Yv as DynamicWizard, Uv as EditFormV1, Ib as FIELD_TYPE_REGISTRY, GS as FINANCE_APPROVAL_CONFIG, RS as FINANCE_TYPE_CFO, LS as FINANCE_TYPE_ONBOARDING_MANAGER, VS as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, zS as FINANCE_TYPE_ONLY_FINANCE, IS as FINANCE_TYPE_SUBMISSION_MANAGER, BS as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, aw as FileListCard, _G as FilterRail, RC as FinanceApprovalPanel, y_ as FinanceAvatar, C_ as FinanceBadge, MS as FinanceDayCell, d_ as FinanceDivider, b_ as FinanceEmployeeCell, c_ as FinanceEmptyState, f_ as FinanceEquation, g_ as FinanceHistoryTimeline, s_ as FinanceHoursGrid, o_ as FinanceKpiRow, u_ as FinanceLine, Zx as FinanceListToolbar, w_ as FinanceMarginBadge, S_ as FinanceMoneyCell, D_ as FinanceRecordsTable, T_ as FinanceRowChevron, l_ as FinanceSection, a_ as FinanceStatusPill, x_ as FinanceTextCell, PS as FinanceTimesheetAnalysis, p_ as FinanceWorkflowSteps, $x as HOURS_MESSAGES, Pw as Header, Of as HierarchyUserFilter, qq as HubOverview, T as JOBS_URL, ZX as LegacyAdminPage, na as ListView, jG as ListWithQuickView, sZ as LmsHomePage, oZ as LmsTestForm, CT as Login, UG as MATCH_NOTHING, eF as MailPopup, nZ as ManageModules, rZ as ManageSubmodules, ZY as MasterDetailWorkspace, uy as ModuleRowActions, EX as ModuleWorkspace, kS as NotesPanel, Jf as NotesTab, rx as OPEN_AS_OPTIONS, tq as PAGE_ICONS, zg as PAYROLL_STATUS_FLOW, pz as POPUP_CONFIGS, fX as PanelBreadcrumb, uX as PanelTabs, Py as ParamCardView, By as ParamListView, Lz as PaymentInvoicePopup, dS as PeriodBadgeTag, jF as PreviewPopup, QT as ProjectSelect, OS as ProofUploadPreview, TS as QuickLogBar, CS as QuickLogSelectionBar, Gq as QuickViewCard, Mq as QuickViewModuleActions, AG as QuickViewPopover, JW as RAIL_KIND, kK as REALTIME_STATUS, dx as RESULTS_VIEW_OPTIONS, qX as RealtimeProvider, dX as RecordDetailPanel, eJ as RecordHub, HG as RecordQuickView, mX as RecordSidePanel, wS as RejectionReasonModal, yK as RelatedModuleTab, r as SUBMISSIONS_URL, Hx as SearchBuilderV1, AX as SearchResultsWorkspace, MX as SearchSummaryBanner, uH as SettingsPage, dT as Sidebar, yo as StatStrip, Wx as StatusBadge, uS as StatusBadgeTag, QX as StickyNotesFullPage, Kx as StylishDynamicTabs, Jx as TemplateEditor, eZ as TestForm, aZ as TestingHomePage, If as TimelineGroups, yS as TimesheetDayCell, aa as TipTapEditor, Kz as UserForm, jz as VendorShareDrawer, Ee as ViewSummaryWidget, xt as WIZARD_ACTIONS_CONTRACT_VERSION, Nt as WIZARD_ACTIONS_PATH, lt as WIZARD_CONTENT_TYPES, Gt as WizardAccessMatrixStep, De as WizardActionError, qa as WizardActivityStep, ie as WizardChoiceCardsStep, gn as WizardDeclarationStep, ze as WizardListStep, Wi as WizardPermissionMatrixStep, LF as WizardPopup, un as WizardPreview, Ze as WizardPreviewStep, Sn as WizardStepContent, Ne as WizardSuccessStep, rt as WizardUnknownContentStep, zX as WorkspaceAppFrame, kG as WorkspaceListView, $Y as WorkspaceTopBar, iZ as ZinnextTableView, tZ as ZinnextTestForm, $r as actedRecently, bt as actionRuleConditionMatches, Ty as adminActionAllowed, jr as appNow, kt as applyIntegrationStatus, ed as approveSubmission, uJ as attentionItems, rp as buildAcceptAttr, xx as buildBooleanRequest, $g as buildCsv, qg as buildDailyRows, _S as buildDayGradient, Xr as buildFormWizardSteps, TC as buildRateHistoryEntries, qG as buildRelationConditions, Ex as buildSearchRequest, Xg as buildWeeklyRollup, AK as canonicalModule, rr as clearNewRecord, m as clearSelectedProject, ya as colors, _C as computeFinance, aS as computeHoursPolicy, Zg as computeMarginBand, Xi as conditionMatches, n as configureCoreTheme, qr as configuredFieldLabel, Kv as configuredWizardSteps, Ui as confirmAction, lG as countActiveRows, GW as createAllWorkflowsListFetcher, zW as createMergedListFetcher, MW as createModuleListFetchAdapter, IK as createRealtimeClient, BW as createWorkflowStageListFetcher, Am as currencySymbol, sJ as dashboardRange, wW as defaultMergeRow, Ya as deleteIntegrationConfig, Kg as deriveDayStats, sS as describeCapacity, nX as displayText, r_ as downloadCsv, sG as draftToRows, Zn as evaluateShowIfWith, v as fetchJsonWithAuth, JX as fetchRelatedRecords, YX as fetchScopedRecords, Kr as fillConfirmText, dC as findEmployerRow, lC as flattenGroups, Im as formatAmount, Bi as formatApp, bi as formatAppDateTime, np as formatFileSize, EC as formatFinanceMoney, kg as formatHours, Lm as formatMoney, jg as formatPercent, Rm as formatRate, KX as formatSearchCount, GX as formatSearchDuration, Mn as getActivity, KW as getAllWorkflowsModuleList, Ur as getAppTimeZone, Fg as getApprovalDate, Zi as getBgcIntegrationConfig, Jr as getBgcIntegrationSummary, Bg as getBillingActionStates, Hb as getBooleanEligibleTypes, l as getCurrentRoleName, t_ as getFieldLabel, Rb as getFieldType, tp as getFileExtension, XS as getFinanceApprovalConfig, _o as getFormGroups, JC as getFormGroupsRaw, vr as getIntegrationConfig, Ar as getIntegrationConfigs, zi as getIntegrationSummary, bd as getModuleConfig, Ut as getModuleDataDetail, Vg as getPayrollActionStates, Sd as getPeriodBadgeConfig, ex as getSearchPopup, g as getSelectedProject, C as getStoredToken, u as getStoredUser, d as getUserRoles, td as getVMSApprove, n_ as getValueStyle, qW as getWorkflowStageModuleList, Hg as getWorkflowSteps, Pg as humanizeEvent, e_ as indexFieldConfig, Mg as initialsOf, Rj as inputPayload, ab as insertTokenAtCursor, y as invalidateGetCache, zb as isBooleanEligible, rb as isBooleanParsable, _ as isTester, er as isWizardConfigEnabled, Pi as isWizardConfigReady, gq as listPropsForColumns, f as logout, kx as makeSearchFetcher, ui as mapListResponse, QS as marginIncludesReferral, Li as markNewRecord, gC as matchLocationTax, oa as mergeWizardSubmitValues, jK as moduleTopic, Xt as moduleViewAllowed, Z_ as n, gr as newRecordMarks, Ka as normalizeConfirm, pC as normalizeContract, Fj as normalizeInputPrompt, uq as normalizePageLayout, mG as parseRows, aX as pickCompactFields, zG as quickViewFields, RG as quickViewValueText, sp as r, Mm as rateUnitLabel, Pm as rateUnitShort, sx as readActionButtons, EG as readPageParam, oS as reconcileHours, _i as recordActionRun, oX as recordIdOf, MK as recordTopic, Lb as registerFieldType, $b as registerSearchPopup, ga as registerWizardPreview, Ai as registerWizardStepType, rd as rejectSubmission, YG as relationSignature, Vf as resolveActivityMeta, vC as resolveAndCompute, rS as resolveDayKind, hC as resolveFinanceInputs, SW as resolveMergeKey, SW as resolveMergedListKey, ax as resolveOpenAs, lq as resolvePageButtons, nq as resolvePageIcon, aq as resolvePageValue, kq as resolveQuickViewActions, ZS as resolveRejectionReason, hx as resolveResultsSearchPlaceholder, mx as resolveResultsView, YC as resolveSubmissionFinance, uG as rowsSignature, cG as rowsToDraft, Me as ruleAppliesToSurface, Xe as rulePrimaryAction, ay as runModuleAction, Ge as runWizardAction, Pn as safeWizardActionRoute, ut as saveBgcIntegrationConfig, ae as saveIntegrationConfig, nK as scopeConditionsFor, WX as searchCriteriaParts, pG as serializeRows, w as setSelectedProject, ra as showIfConditions, VW as stageCountKey, tK as supportsAnyOf, wT as t, Qe as testIntegrationConnection, qn as toApp, Fm as toNumber, nG as toRailFields, PK as topicsForEvent, Ea as tzLabel, Ua as tzShortLabel, tx as unregisterSearchPopup, JG as unscopedConditions, Dy as useAdminAction, Ey as useAdminActionsVersion, Jv as useConfiguredWizardSteps, We as useDropdownFields, ln as useDropdownValues, ow as useEditForm, hn as useFieldConfig, Dn as useFilterFields, OG as useInPlaceRecordLinks, eq as useLiveRefresh, Qa as useMenuPermission, ty as useModuleActions, le as useModuleViewAccess, Ca as useNewRecordMarks, YK as useRealtimeClient, $K as useRealtimeReconnect, XK as useRealtimeStatus, QK as useRealtimeTopics, pX as useRecordFields, Qq as useRecordHub, G_ as useRecordRefresh, gK as useRelatedCounts, wG as useWorkspaceList, ib as validateBooleanQuery, ip as validateBulkFile, Lj as validateInputValue, i as withAdminAppId, h as withAppId, $T as withAuthGuard, DG as withPageParam, XG as withSubTab };
|
|
70682
71358
|
|
|
70683
71359
|
//# sourceMappingURL=index.js.map
|