@realtek/core-theme 0.0.369 → 0.0.370

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.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, n = (e) => e.count) {
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 hJ(e, { labels: t, pick: n = (e) => e.count, order: r } = {}) {
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,520 @@ function hJ(e, { labels: t, pick: n = (e) => e.count, order: r } = {}) {
66809
66837
  }
66810
66838
  return a;
66811
66839
  }
66812
- function gJ(e) {
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 _J = new Intl.NumberFormat(void 0, {
66846
+ var yJ = new Intl.NumberFormat(void 0, {
66819
66847
  notation: "compact",
66820
66848
  maximumFractionDigits: 1
66821
- }), vJ = (e) => e == null || !Number.isFinite(Number(e)) ? "–" : _J.format(Number(e)), yJ = [
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: [/* @__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", { children: i ? /* @__PURE__ */ X(K, {
67318
+ className: "cc-dash-table__status",
67319
+ "data-tone": a,
67320
+ style: { marginInlineEnd: 0 },
67321
+ children: i
67322
+ }) : "–" }, t.key) : t.kind === "person" ? /* @__PURE__ */ X("td", { children: /* @__PURE__ */ Z("span", {
67323
+ className: "cc-dash-table__who",
67324
+ style: {
67325
+ display: "inline-flex",
67326
+ alignItems: "center",
67327
+ gap: 8
67328
+ },
67329
+ children: [/* @__PURE__ */ X(Ul, {
67330
+ className: "cc-dash-table__icon",
67331
+ "aria-hidden": "true"
67332
+ }), /* @__PURE__ */ X("span", {
67333
+ className: "cc-dash-table__name",
67334
+ children: i || "–"
67335
+ })]
67336
+ }) }, t.key) : t.kind === "count" ? /* @__PURE__ */ Z("td", {
67337
+ style: { textAlign: t.align ?? "start" },
67338
+ children: [
67339
+ nq(t.icon),
67340
+ " ",
67341
+ lJ(r)
67342
+ ]
67343
+ }, t.key) : /* @__PURE__ */ X("td", {
67344
+ style: { textAlign: t.align ?? "start" },
67345
+ children: i || "–"
67346
+ }, t.key);
67347
+ }) }, e?._id ?? e?.id ?? t)) })]
67348
+ })
67349
+ });
67350
+ }
67351
+ //#endregion
67352
+ //#region src/components/COMBAINED_COMPONENTS/helpers/dashboard/DashboardCharts.jsx
67353
+ var PJ = [
66822
67354
  "#4f6bed",
66823
67355
  "#13a8a8",
66824
67356
  "#f59f00",
@@ -66827,9 +67359,9 @@ var _J = new Intl.NumberFormat(void 0, {
66827
67359
  "#2b8a3e",
66828
67360
  "#d6336c",
66829
67361
  "#868e96"
66830
- ], bJ = (e) => `var(--cc-dash-c${e % 8 + 1}, ${yJ[e % 8]})`, xJ = (e) => e.reduce((e, t) => e + (Number(t.value) || 0), 0);
66831
- function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" }) {
66832
- let [i, a] = R(-1), o = xJ(e), s = 2 * Math.PI * 52, c = 0, l = i >= 0 ? e[i] : null;
67362
+ ], FJ = (e) => `var(--cc-dash-c${e % 8 + 1}, ${PJ[e % 8]})`, IJ = (e) => e.reduce((e, t) => e + (Number(t.value) || 0), 0);
67363
+ function LJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total", precise: i = !1 }) {
67364
+ let [a, o] = R(-1), s = IJ(e), c = 2 * Math.PI * 52, l = 0, u = a >= 0 ? e[a] : null;
66833
67365
  return /* @__PURE__ */ Z("div", {
66834
67366
  className: "cc-chart cc-chart--donut",
66835
67367
  style: {
@@ -66854,27 +67386,27 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
66854
67386
  stroke: "var(--cc-dash-track, #eef1f5)",
66855
67387
  strokeWidth: "18"
66856
67388
  }),
66857
- o > 0 && e.map((e, r) => {
66858
- let l = Math.max(Number(e.value) || 0, 0) / o * s, u = /* @__PURE__ */ X("circle", {
67389
+ s > 0 && e.map((e, r) => {
67390
+ let i = Math.max(Number(e.value) || 0, 0) / s * c, u = /* @__PURE__ */ X("circle", {
66859
67391
  cx: "70",
66860
67392
  cy: "70",
66861
67393
  r: 52,
66862
67394
  fill: "none",
66863
- stroke: bJ(r),
66864
- strokeWidth: i === r ? 22 : 18,
66865
- strokeDasharray: `${Math.max(l - 1.5, 0)} ${s}`,
66866
- strokeDashoffset: -c,
67395
+ stroke: FJ(r),
67396
+ strokeWidth: a === r ? 22 : 18,
67397
+ strokeDasharray: `${Math.max(i - 1.5, 0)} ${c}`,
67398
+ strokeDashoffset: -l,
66867
67399
  transform: "rotate(-90 70 70)",
66868
67400
  style: {
66869
67401
  cursor: t ? "pointer" : "default",
66870
67402
  transition: "stroke-width 150ms ease"
66871
67403
  },
66872
- onMouseEnter: () => a(r),
66873
- onMouseLeave: () => a(-1),
67404
+ onMouseEnter: () => o(r),
67405
+ onMouseLeave: () => o(-1),
66874
67406
  onClick: () => t?.(e),
66875
67407
  children: /* @__PURE__ */ X("title", { children: `${e.label}: ${n(e.value)}` })
66876
67408
  }, e.key);
66877
- return c += l, u;
67409
+ return l += i, u;
66878
67410
  }),
66879
67411
  /* @__PURE__ */ X("text", {
66880
67412
  x: "70",
@@ -66886,7 +67418,7 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
66886
67418
  fontWeight: 700,
66887
67419
  fill: "currentColor"
66888
67420
  },
66889
- children: n(l ? l.value : o)
67421
+ children: n(u ? u.value : s)
66890
67422
  }),
66891
67423
  /* @__PURE__ */ X("text", {
66892
67424
  x: "70",
@@ -66898,7 +67430,7 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
66898
67430
  fill: "currentColor",
66899
67431
  opacity: .65
66900
67432
  },
66901
- children: (l ? l.label : r).slice(0, 18)
67433
+ children: (u ? u.label : r).slice(0, 18)
66902
67434
  })
66903
67435
  ]
66904
67436
  }), /* @__PURE__ */ X("ul", {
@@ -66917,8 +67449,8 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
66917
67449
  className: "cc-chart__legend-item",
66918
67450
  disabled: !t,
66919
67451
  onClick: () => t?.(e),
66920
- onMouseEnter: () => a(r),
66921
- onMouseLeave: () => a(-1),
67452
+ onMouseEnter: () => o(r),
67453
+ onMouseLeave: () => o(-1),
66922
67454
  style: {
66923
67455
  display: "flex",
66924
67456
  alignItems: "center",
@@ -66939,7 +67471,7 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
66939
67471
  width: 10,
66940
67472
  height: 10,
66941
67473
  borderRadius: 3,
66942
- background: bJ(r),
67474
+ background: FJ(r),
66943
67475
  flex: "none"
66944
67476
  }
66945
67477
  }),
@@ -66965,19 +67497,19 @@ function SJ({ items: e, onSelect: t, format: n = lJ, centerLabel: r = "Total" })
66965
67497
  /* @__PURE__ */ X("span", {
66966
67498
  className: "cc-chart__legend-share",
66967
67499
  style: {
66968
- width: 40,
67500
+ width: i ? 48 : 40,
66969
67501
  textAlign: "end",
66970
67502
  opacity: .6,
66971
67503
  fontVariantNumeric: "tabular-nums"
66972
67504
  },
66973
- children: o > 0 ? `${Math.round(e.value / o * 100)}%` : ""
67505
+ children: s > 0 ? `${i ? (e.value / s * 100).toFixed(1) : Math.round(e.value / s * 100)}%` : ""
66974
67506
  })
66975
67507
  ]
66976
67508
  }) }, e.key))
66977
67509
  })]
66978
67510
  });
66979
67511
  }
66980
- function CJ({ items: e, onSelect: t, format: n = lJ }) {
67512
+ function RJ({ items: e, onSelect: t, format: n = lJ }) {
66981
67513
  let r = Math.max(1, ...e.map((e) => Number(e.value) || 0));
66982
67514
  return /* @__PURE__ */ X("ul", {
66983
67515
  className: "cc-chart cc-chart--bar",
@@ -67010,14 +67542,34 @@ function CJ({ items: e, onSelect: t, format: n = lJ }) {
67010
67542
  color: "inherit"
67011
67543
  },
67012
67544
  children: [
67013
- /* @__PURE__ */ X("span", {
67545
+ /* @__PURE__ */ Z("span", {
67014
67546
  className: "cc-chart__bar-label",
67015
67547
  style: {
67548
+ display: "flex",
67549
+ alignItems: "center",
67550
+ gap: 8,
67551
+ minWidth: 0,
67016
67552
  overflow: "hidden",
67017
67553
  textOverflow: "ellipsis",
67018
67554
  whiteSpace: "nowrap"
67019
67555
  },
67020
- children: e.label
67556
+ children: [e.icon ? /* @__PURE__ */ X("span", {
67557
+ className: "cc-chart__bar-icon",
67558
+ "data-key": e.key,
67559
+ "aria-hidden": "true",
67560
+ style: {
67561
+ flex: "none",
67562
+ display: "inline-flex"
67563
+ },
67564
+ children: e.icon
67565
+ }) : null, /* @__PURE__ */ X("span", {
67566
+ style: {
67567
+ minWidth: 0,
67568
+ overflow: "hidden",
67569
+ textOverflow: "ellipsis"
67570
+ },
67571
+ children: e.label
67572
+ })]
67021
67573
  }),
67022
67574
  /* @__PURE__ */ X("span", {
67023
67575
  className: "cc-chart__bar-track",
@@ -67035,7 +67587,7 @@ function CJ({ items: e, onSelect: t, format: n = lJ }) {
67035
67587
  width: `${(Number(e.value) || 0) / r * 100}%`,
67036
67588
  minWidth: e.value > 0 ? 4 : 0,
67037
67589
  borderRadius: 5,
67038
- background: bJ(i),
67590
+ background: FJ(i),
67039
67591
  transition: "width 400ms ease"
67040
67592
  }
67041
67593
  })
@@ -67052,46 +67604,46 @@ function CJ({ items: e, onSelect: t, format: n = lJ }) {
67052
67604
  }) }, e.key))
67053
67605
  });
67054
67606
  }
67055
- var wJ = (e) => e.map(([e, t], n) => `${n ? "L" : "M"}${e.toFixed(1)},${t.toFixed(1)}`).join(" ");
67056
- function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
67057
- let [i, a] = R(-1), o = Lo(null), [s, c] = R(600);
67607
+ var zJ = (e) => e.map(([e, t], n) => `${n ? "L" : "M"}${e.toFixed(1)},${t.toFixed(1)}`).join(" ");
67608
+ function BJ({ items: e, height: t = 180, format: n = lJ, color: r = FJ(0), pointLabels: i = !1 }) {
67609
+ let [a, o] = R(-1), s = Lo(null), [c, l] = R(600);
67058
67610
  I(() => {
67059
- let e = o.current;
67611
+ let e = s.current;
67060
67612
  if (!e || typeof ResizeObserver > "u") return;
67061
67613
  let t = new ResizeObserver(([e]) => {
67062
67614
  let t = Math.round(e.contentRect.width);
67063
- t > 0 && c(t);
67615
+ t > 0 && l(t);
67064
67616
  });
67065
67617
  return t.observe(e), () => t.disconnect();
67066
67618
  }, []);
67067
- let l = t, u = {
67619
+ let u = t, d = {
67068
67620
  l: 36,
67069
- r: 8,
67070
- t: 12,
67621
+ r: i ? 16 : 8,
67622
+ t: i ? 26 : 12,
67071
67623
  b: 22
67072
- }, d = Math.max(1, ...e.map((e) => Number(e.value) || 0)), f = d <= 4 ? d : Math.ceil(d / 4) * 4, p = (t) => u.l + (e.length > 1 ? t / (e.length - 1) * (s - u.l - u.r) : (s - u.l - u.r) / 2), m = (e) => u.t + (1 - (Number(e) || 0) / f) * (l - u.t - u.b), h = e.map((e, t) => [p(t), m(e.value)]), g = h.length ? `${wJ(h)} L${p(e.length - 1)},${l - u.b} L${p(0)},${l - u.b} Z` : "", _ = [
67624
+ }, 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
67625
  0,
67074
67626
  .5,
67075
67627
  1
67076
- ].map((e) => Math.round(f * e)), v = Math.max(1, Math.ceil(e.length / Math.max(2, Math.floor(s / 80)))), y = xJ(e), b = i >= 0 ? e[i] : null, x = `cc-area-${String(e[0]?.key ?? "x").replace(/[^\w-]/g, "")}-${e.length}`;
67628
+ ].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
67629
  return /* @__PURE__ */ Z("div", {
67078
- ref: o,
67630
+ ref: s,
67079
67631
  className: "cc-chart cc-chart--area",
67080
67632
  style: { position: "relative" },
67081
67633
  children: [/* @__PURE__ */ Z("svg", {
67082
- viewBox: `0 0 ${s} ${l}`,
67634
+ viewBox: `0 0 ${c} ${u}`,
67083
67635
  width: "100%",
67084
- height: l,
67636
+ height: u,
67085
67637
  role: "img",
67086
- "aria-label": `Trend, ${e.length} points, total ${n(y)}, peak ${n(d)}`,
67087
- onMouseLeave: () => a(-1),
67638
+ "aria-label": `Trend, ${e.length} points, total ${n(b)}, peak ${n(f)}`,
67639
+ onMouseLeave: () => o(-1),
67088
67640
  onMouseMove: (t) => {
67089
- let n = t.currentTarget.getBoundingClientRect(), r = (t.clientX - n.left) / n.width * s, i = Math.round((r - u.l) / (s - u.l - u.r) * (e.length - 1));
67090
- a(Math.min(e.length - 1, Math.max(0, i)));
67641
+ 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));
67642
+ o(Math.min(e.length - 1, Math.max(0, i)));
67091
67643
  },
67092
67644
  children: [
67093
67645
  /* @__PURE__ */ X("defs", { children: /* @__PURE__ */ Z("linearGradient", {
67094
- id: x,
67646
+ id: S,
67095
67647
  x1: "0",
67096
67648
  x2: "0",
67097
67649
  y1: "0",
@@ -67106,17 +67658,17 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
67106
67658
  stopOpacity: "0.02"
67107
67659
  })]
67108
67660
  }) }),
67109
- _.map((e) => /* @__PURE__ */ Z("g", { children: [/* @__PURE__ */ X("line", {
67110
- x1: u.l,
67111
- x2: s - u.r,
67112
- y1: m(e),
67113
- y2: m(e),
67661
+ v.map((e) => /* @__PURE__ */ Z("g", { children: [/* @__PURE__ */ X("line", {
67662
+ x1: d.l,
67663
+ x2: c - d.r,
67664
+ y1: h(e),
67665
+ y2: h(e),
67114
67666
  stroke: "var(--cc-dash-grid, #e9edf2)",
67115
67667
  strokeDasharray: e ? "3 4" : "",
67116
67668
  vectorEffect: "non-scaling-stroke"
67117
67669
  }), /* @__PURE__ */ X("text", {
67118
- x: u.l - 6,
67119
- y: m(e) + 3,
67670
+ x: d.l - 6,
67671
+ y: h(e) + 3,
67120
67672
  textAnchor: "end",
67121
67673
  style: {
67122
67674
  fontSize: 10,
@@ -67125,21 +67677,21 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
67125
67677
  },
67126
67678
  children: n(e)
67127
67679
  })] }, e)),
67128
- g ? /* @__PURE__ */ X("path", {
67129
- d: g,
67130
- fill: `url(#${x})`
67680
+ _ ? /* @__PURE__ */ X("path", {
67681
+ d: _,
67682
+ fill: `url(#${S})`
67131
67683
  }) : null,
67132
- h.length ? /* @__PURE__ */ X("path", {
67133
- d: wJ(h),
67684
+ g.length ? /* @__PURE__ */ X("path", {
67685
+ d: zJ(g),
67134
67686
  fill: "none",
67135
67687
  stroke: r,
67136
67688
  strokeWidth: "2.25",
67137
67689
  strokeLinejoin: "round",
67138
67690
  vectorEffect: "non-scaling-stroke"
67139
67691
  }) : null,
67140
- e.map((t, n) => (n % v === 0 && e.length - 1 - n >= v / 2 || n === e.length - 1) && /* @__PURE__ */ X("text", {
67141
- x: p(n),
67142
- y: l - 6,
67692
+ e.map((t, n) => (n % y === 0 && e.length - 1 - n >= y / 2 || n === e.length - 1) && /* @__PURE__ */ X("text", {
67693
+ x: m(n),
67694
+ y: u - 6,
67143
67695
  textAnchor: n === 0 ? "start" : n === e.length - 1 ? "end" : "middle",
67144
67696
  style: {
67145
67697
  fontSize: 10,
@@ -67148,17 +67700,40 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
67148
67700
  },
67149
67701
  children: t.short ?? t.label
67150
67702
  }, t.key)),
67151
- b ? /* @__PURE__ */ Z("g", { children: [/* @__PURE__ */ X("line", {
67152
- x1: p(i),
67153
- x2: p(i),
67154
- y1: u.t,
67155
- y2: l - u.b,
67703
+ i ? e.map((e, t) => /* @__PURE__ */ Z("g", {
67704
+ className: "cc-chart__point",
67705
+ children: [/* @__PURE__ */ X("circle", {
67706
+ cx: m(t),
67707
+ cy: h(e.value),
67708
+ r: "3.5",
67709
+ fill: "var(--cc-dash-surface, #fff)",
67710
+ stroke: r,
67711
+ strokeWidth: "2",
67712
+ vectorEffect: "non-scaling-stroke"
67713
+ }), /* @__PURE__ */ X("text", {
67714
+ x: m(t),
67715
+ y: h(e.value) - 10,
67716
+ textAnchor: "middle",
67717
+ className: "cc-chart__point-value",
67718
+ style: {
67719
+ fontSize: 11,
67720
+ fontWeight: 600,
67721
+ fill: "currentColor"
67722
+ },
67723
+ children: n(e.value)
67724
+ })]
67725
+ }, `p-${e.key}`)) : null,
67726
+ x ? /* @__PURE__ */ Z("g", { children: [/* @__PURE__ */ X("line", {
67727
+ x1: m(a),
67728
+ x2: m(a),
67729
+ y1: d.t,
67730
+ y2: u - d.b,
67156
67731
  stroke: r,
67157
67732
  strokeOpacity: "0.35",
67158
67733
  vectorEffect: "non-scaling-stroke"
67159
67734
  }), /* @__PURE__ */ X("circle", {
67160
- cx: p(i),
67161
- cy: m(b.value),
67735
+ cx: m(a),
67736
+ cy: h(x.value),
67162
67737
  r: "4",
67163
67738
  fill: "var(--cc-dash-surface, #fff)",
67164
67739
  stroke: r,
@@ -67166,14 +67741,14 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
67166
67741
  vectorEffect: "non-scaling-stroke"
67167
67742
  })] }) : null
67168
67743
  ]
67169
- }), b ? /* @__PURE__ */ Z("div", {
67744
+ }), x ? /* @__PURE__ */ Z("div", {
67170
67745
  className: "cc-chart__tip",
67171
67746
  role: "status",
67172
67747
  style: {
67173
67748
  position: "absolute",
67174
67749
  top: 0,
67175
- left: `${p(i) / s * 100}%`,
67176
- transform: `translateX(${i > e.length / 2 ? "-105%" : "5%"})`,
67750
+ left: `${m(a) / c * 100}%`,
67751
+ transform: `translateX(${a > e.length / 2 ? "-105%" : "5%"})`,
67177
67752
  pointerEvents: "none",
67178
67753
  padding: "4px 8px",
67179
67754
  borderRadius: 6,
@@ -67183,14 +67758,14 @@ function TJ({ items: e, height: t = 180, format: n = lJ, color: r = bJ(0) }) {
67183
67758
  color: "#fff"
67184
67759
  },
67185
67760
  children: [
67186
- b.label,
67761
+ x.label,
67187
67762
  ": ",
67188
- /* @__PURE__ */ X("strong", { children: n(b.value) })
67763
+ /* @__PURE__ */ X("strong", { children: n(x.value) })
67189
67764
  ]
67190
67765
  }) : null]
67191
67766
  });
67192
67767
  }
67193
- function EJ({ items: e, height: t = 180, format: n = lJ, onSelect: r }) {
67768
+ function VJ({ items: e, height: t = 180, format: n = lJ, onSelect: r }) {
67194
67769
  let i = Math.max(1, ...e.map((e) => Number(e.value) || 0));
67195
67770
  return /* @__PURE__ */ X("div", {
67196
67771
  className: "cc-chart cc-chart--column",
@@ -67242,7 +67817,7 @@ function EJ({ items: e, height: t = 180, format: n = lJ, onSelect: r }) {
67242
67817
  height: `${(Number(e.value) || 0) / i * 100}%`,
67243
67818
  minHeight: e.value > 0 ? 3 : 1,
67244
67819
  borderRadius: "6px 6px 2px 2px",
67245
- background: bJ(t),
67820
+ background: FJ(t),
67246
67821
  transition: "height 400ms ease"
67247
67822
  }
67248
67823
  }),
@@ -67262,7 +67837,7 @@ function EJ({ items: e, height: t = 180, format: n = lJ, onSelect: r }) {
67262
67837
  }, e.key))
67263
67838
  });
67264
67839
  }
67265
- function DJ({ items: e, onSelect: t, format: n = lJ }) {
67840
+ function HJ({ items: e, onSelect: t, format: n = lJ }) {
67266
67841
  let r = Math.max(1, ...e.map((e) => Number(e.value) || 0));
67267
67842
  return /* @__PURE__ */ X("ol", {
67268
67843
  className: "cc-chart cc-chart--funnel",
@@ -67310,7 +67885,7 @@ function DJ({ items: e, onSelect: t, format: n = lJ }) {
67310
67885
  width: 8,
67311
67886
  height: 8,
67312
67887
  borderRadius: "50%",
67313
- background: bJ(a),
67888
+ background: FJ(a),
67314
67889
  alignSelf: "center"
67315
67890
  }
67316
67891
  }),
@@ -67367,7 +67942,7 @@ function DJ({ items: e, onSelect: t, format: n = lJ }) {
67367
67942
  width: `${u}%`,
67368
67943
  height: "100%",
67369
67944
  borderRadius: 999,
67370
- background: bJ(a),
67945
+ background: FJ(a),
67371
67946
  transition: "width 400ms cubic-bezier(0.2, 0, 0, 1)"
67372
67947
  }
67373
67948
  })
@@ -67376,7 +67951,7 @@ function DJ({ items: e, onSelect: t, format: n = lJ }) {
67376
67951
  })
67377
67952
  });
67378
67953
  }
67379
- function OJ({ values: e, color: t = bJ(0), width: n = 72, height: r = 26 }) {
67954
+ function UJ({ values: e, color: t = FJ(0), width: n = 72, height: r = 26 }) {
67380
67955
  if (!e?.length) return null;
67381
67956
  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
67957
  return /* @__PURE__ */ Z("svg", {
@@ -67390,11 +67965,11 @@ function OJ({ values: e, color: t = bJ(0), width: n = 72, height: r = 26 }) {
67390
67965
  overflow: "visible"
67391
67966
  },
67392
67967
  children: [/* @__PURE__ */ X("path", {
67393
- d: `${wJ(a)} L${n},${r} L0,${r} Z`,
67968
+ d: `${zJ(a)} L${n},${r} L0,${r} Z`,
67394
67969
  fill: t,
67395
67970
  fillOpacity: "0.12"
67396
67971
  }), /* @__PURE__ */ X("path", {
67397
- d: wJ(a),
67972
+ d: zJ(a),
67398
67973
  fill: "none",
67399
67974
  stroke: t,
67400
67975
  strokeWidth: "1.75",
@@ -67405,7 +67980,7 @@ function OJ({ values: e, color: t = bJ(0), width: n = 72, height: r = 26 }) {
67405
67980
  }
67406
67981
  //#endregion
67407
67982
  //#region src/components/COMBAINED_COMPONENTS/DASHBOARDPAGE.jsx
67408
- var kJ = [
67983
+ var WJ = [
67409
67984
  {
67410
67985
  key: "today",
67411
67986
  label: "Today"
@@ -67420,18 +67995,18 @@ var kJ = [
67420
67995
  label: "Month",
67421
67996
  title: "This month"
67422
67997
  }
67423
- ], AJ = {
67998
+ ], GJ = {
67424
67999
  today: "Today",
67425
68000
  week: "This week",
67426
68001
  month: "This month"
67427
- }, jJ = (e, t) => (typeof e == "function" ? e(t) : e) ?? {}, MJ = (e, t, n) => typeof e == "function" ? e(n ?? t, t) : e, NJ = (() => {
68002
+ }, KJ = (e, t) => (typeof e == "function" ? e(t) : e) ?? {}, qJ = (e, t, n) => typeof e == "function" ? e(n ?? t, t) : e, JJ = (() => {
67428
68003
  try {
67429
68004
  return Intl.DateTimeFormat().resolvedOptions().timeZone || "";
67430
68005
  } catch {
67431
68006
  return "";
67432
68007
  }
67433
68008
  })();
67434
- function PJ(e, t) {
68009
+ function YJ(e, t) {
67435
68010
  let n = e ? JSON.stringify([e, t]) : "", [r, i] = R({
67436
68011
  signature: "",
67437
68012
  groups: null,
@@ -67447,7 +68022,7 @@ function PJ(e, t) {
67447
68022
  ...a.queryParams ?? {},
67448
68023
  groupBy: o,
67449
68024
  groupDate: s || "",
67450
- groupTz: s ? NJ : "",
68025
+ groupTz: s ? JJ : "",
67451
68026
  groupSum: c || ""
67452
68027
  }
67453
68028
  }).then((e) => {
@@ -67473,20 +68048,20 @@ function PJ(e, t) {
67473
68048
  retry: () => o((e) => e + 1)
67474
68049
  };
67475
68050
  }
67476
- var FJ = (e) => typeof e == "function" ? e : e === "compact" ? vJ : lJ;
67477
- function IJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a }) {
67478
- let o = Array.isArray(e.stages), s = e.chart === "area", c = pJ(i.range.key), l = s ? {
68051
+ var XJ = (e) => typeof e == "function" ? e : e === "compact" ? bJ : lJ;
68052
+ function ZJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a, choice: o }) {
68053
+ 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
68054
  ...i,
67480
- range: c
67481
- } : i, u = o || !$(e.module) || !$(e.groupBy) ? null : {
68055
+ range: l
68056
+ } : i, d = s || !$(e.module) || !$(e.groupBy) ? null : {
67482
68057
  module: e.module,
67483
- relation: jJ(e.relation, l),
68058
+ relation: KJ(e.relation, u),
67484
68059
  groupBy: e.groupBy,
67485
- groupDate: s ? "day" : e.groupDate,
68060
+ groupDate: c ? "day" : e.groupDate,
67486
68061
  sum: e.sum,
67487
- range: l.range.key
67488
- }, d = PJ(u, a), f = FJ(e.format), p = e.sum ? (e) => e.sum : (e) => e.count, m = typeof e.to == "function" ? (t) => i.navigate(e.to(t, i)) : $(e.to) ? () => i.navigate(e.to) : void 0;
67489
- if (o) {
68062
+ range: u.range.key
68063
+ }, 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;
68064
+ if (s) {
67490
68065
  if (r) return /* @__PURE__ */ X(ms, {
67491
68066
  active: !0,
67492
68067
  paragraph: { rows: 3 }
@@ -67497,57 +68072,68 @@ function IJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a })
67497
68072
  key: e.kpi,
67498
68073
  label: sq(oq(e.label ?? r.label, {}, i)),
67499
68074
  value: t[e.kpi],
67500
- to: MJ(r.to, i)
68075
+ to: qJ(r.to, i)
67501
68076
  } : null;
67502
68077
  }).filter(Boolean), o = (e) => i.navigate(e.to);
67503
- return e.chart === "donut" ? /* @__PURE__ */ X(SJ, {
68078
+ return e.emptyState && a.every((e) => !Number(e.value)) ? /* @__PURE__ */ X(TJ, {
68079
+ spec: e.emptyState,
68080
+ ctx: i
68081
+ }) : e.chart === "donut" ? /* @__PURE__ */ X(LJ, {
67504
68082
  items: a,
67505
- format: f,
67506
- onSelect: o
67507
- }) : e.chart === "column" ? /* @__PURE__ */ X(EJ, {
68083
+ format: p,
68084
+ onSelect: o,
68085
+ precise: !!e.precise,
68086
+ centerLabel: sq(oq(e.centerLabel, {}, i)) || void 0
68087
+ }) : e.chart === "column" ? /* @__PURE__ */ X(VJ, {
67508
68088
  items: a,
67509
- format: f,
68089
+ format: p,
67510
68090
  onSelect: o
67511
- }) : e.chart === "bar" ? /* @__PURE__ */ X(CJ, {
68091
+ }) : e.chart === "bar" ? /* @__PURE__ */ X(RJ, {
67512
68092
  items: a,
67513
- format: f,
68093
+ format: p,
67514
68094
  onSelect: o
67515
- }) : /* @__PURE__ */ X(DJ, {
68095
+ }) : /* @__PURE__ */ X(HJ, {
67516
68096
  items: a,
67517
- format: f,
68097
+ format: p,
67518
68098
  onSelect: o
67519
68099
  });
67520
68100
  }
67521
- if (!u) return /* @__PURE__ */ X(zo, {
68101
+ if (!d) return /* @__PURE__ */ X(zo, {
67522
68102
  type: "info",
67523
68103
  showIcon: !0,
67524
68104
  message: "This chart needs a module and a groupBy field."
67525
68105
  });
67526
- if (d.loading) return /* @__PURE__ */ X(ms, {
68106
+ if (f.loading) return /* @__PURE__ */ X(ms, {
67527
68107
  active: !0,
67528
68108
  paragraph: { rows: 4 }
67529
68109
  });
67530
- if (d.error === "forbidden") return /* @__PURE__ */ X(ws.Text, {
68110
+ if (f.error === "forbidden") return /* @__PURE__ */ X(ws.Text, {
67531
68111
  type: "secondary",
67532
68112
  children: "You don't have access to this data."
67533
68113
  });
67534
- if (d.error === "error") return /* @__PURE__ */ X(zo, {
68114
+ if (f.error === "error") return /* @__PURE__ */ X(zo, {
67535
68115
  type: "warning",
67536
68116
  showIcon: !0,
67537
68117
  message: "This chart could not be loaded.",
67538
68118
  action: /* @__PURE__ */ X(z, {
67539
68119
  size: "small",
67540
- onClick: d.retry,
68120
+ onClick: f.retry,
67541
68121
  children: "Retry"
67542
68122
  })
67543
68123
  });
67544
- if (!d.groups) return /* @__PURE__ */ X(ws.Text, {
68124
+ if (!f.groups) return /* @__PURE__ */ X(ws.Text, {
67545
68125
  type: "secondary",
67546
- children: d.error === "unsupported" ? "Chart data is not available from the server yet." : "This field cannot be charted for your list."
68126
+ children: f.error === "unsupported" ? "Chart data is not available from the server yet." : "This field cannot be charted for your list."
67547
68127
  });
67548
- if (s) {
67549
- let e = mJ(d.groups, c, p), t = e.reduce((e, t) => e + t.value, 0);
67550
- return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z("div", {
68128
+ if (c) {
68129
+ let t = gJ(f.groups, l, m).map((e) => o?.days ? {
68130
+ ...e,
68131
+ short: (/* @__PURE__ */ new Date(`${e.key}T00:00:00`)).toLocaleDateString([], { weekday: "short" })
68132
+ } : e), n = t.reduce((e, t) => e + t.value, 0);
68133
+ return e.emptyState && n === 0 ? /* @__PURE__ */ X(TJ, {
68134
+ spec: e.emptyState,
68135
+ ctx: i
68136
+ }) : /* @__PURE__ */ Z(Y, { children: [e.summary === !1 ? null : /* @__PURE__ */ Z("div", {
67551
68137
  className: "cc-dash-chart__summary",
67552
68138
  style: {
67553
68139
  display: "flex",
@@ -67561,56 +68147,63 @@ function IJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a })
67561
68147
  fontSize: 22,
67562
68148
  fontWeight: 700
67563
68149
  },
67564
- children: f(t)
68150
+ children: p(n)
67565
68151
  }), /* @__PURE__ */ Z("span", {
67566
68152
  className: "cc-dash-chart__window",
67567
68153
  style: { opacity: .65 },
67568
68154
  children: [
67569
68155
  "in the last ",
67570
- c.days,
68156
+ l.days,
67571
68157
  " days"
67572
68158
  ]
67573
68159
  })]
67574
- }), /* @__PURE__ */ X(TJ, {
67575
- items: e,
67576
- format: f
68160
+ }), /* @__PURE__ */ X(BJ, {
68161
+ items: t,
68162
+ format: p,
68163
+ pointLabels: !!e.pointLabels
67577
68164
  })] });
67578
68165
  }
67579
- let h = hJ(d.groups, {
68166
+ let g = _J(f.groups, {
67580
68167
  labels: e.labels,
67581
- pick: p,
68168
+ pick: m,
67582
68169
  order: e.order
67583
- });
67584
- return !h.length || h.every((e) => !e.value) ? /* @__PURE__ */ X(Qo, {
67585
- image: Qo.PRESENTED_IMAGE_SIMPLE,
67586
- description: sq(oq(e.empty, {}, i)) || "No data for this period."
67587
- }) : e.chart === "donut" ? /* @__PURE__ */ X(SJ, {
67588
- items: h,
67589
- format: f,
67590
- onSelect: m
67591
- }) : e.chart === "column" ? /* @__PURE__ */ X(EJ, {
67592
- items: h,
67593
- format: f,
67594
- onSelect: m
67595
- }) : /* @__PURE__ */ X(CJ, {
67596
- items: h.slice(0, Number(e.max) || 8),
67597
- format: f,
67598
- onSelect: m
68170
+ }).map((t) => e.icons ? {
68171
+ ...t,
68172
+ icon: nq(typeof e.icons == "function" ? e.icons(t.key) : e.icons[t.key])
68173
+ } : t);
68174
+ return !g.length || g.every((e) => !e.value) ? /* @__PURE__ */ X(TJ, {
68175
+ spec: e.emptyState,
68176
+ ctx: i,
68177
+ fallback: sq(oq(e.empty, {}, i)) || "No data for this period."
68178
+ }) : e.chart === "donut" ? /* @__PURE__ */ X(LJ, {
68179
+ items: g,
68180
+ format: p,
68181
+ onSelect: h,
68182
+ precise: !!e.precise,
68183
+ centerLabel: sq(oq(e.centerLabel, {}, i)) || void 0
68184
+ }) : e.chart === "column" ? /* @__PURE__ */ X(VJ, {
68185
+ items: g,
68186
+ format: p,
68187
+ onSelect: h
68188
+ }) : /* @__PURE__ */ X(RJ, {
68189
+ items: g.slice(0, Number(e.max) || 8),
68190
+ format: p,
68191
+ onSelect: h
67599
68192
  });
67600
68193
  }
67601
- function LJ({ kpi: e, ctx: t, refreshKey: n }) {
68194
+ function QJ({ kpi: e, ctx: t, refreshKey: n }) {
67602
68195
  let r = pJ("week"), i = {
67603
68196
  ...t,
67604
68197
  range: r
67605
- }, a = PJ({
68198
+ }, a = YJ({
67606
68199
  module: e.module,
67607
- relation: jJ(e.relation, i),
68200
+ relation: KJ(e.relation, i),
67608
68201
  groupBy: e.trend.field || "createdAt",
67609
68202
  groupDate: "day",
67610
68203
  range: "trend"
67611
68204
  }, n);
67612
68205
  if (a.loading || !a.groups) return null;
67613
- let o = mJ(a.groups, r).map((e) => e.value), s = gJ(o), c = s > 0, l = s === null || s === 0 ? "flat" : (e.trend.goodWhen === "down" ? !c : c) ? "good" : "bad";
68206
+ 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
68207
  return /* @__PURE__ */ Z("span", {
67615
68208
  className: "cc-dash-kpi__trend",
67616
68209
  style: {
@@ -67642,10 +68235,10 @@ function LJ({ kpi: e, ctx: t, refreshKey: n }) {
67642
68235
  },
67643
68236
  children: " vs prior 2 wks"
67644
68237
  })]
67645
- }), /* @__PURE__ */ X(OJ, { values: o })]
68238
+ }), /* @__PURE__ */ X(UJ, { values: o })]
67646
68239
  });
67647
68240
  }
67648
- function RJ() {
68241
+ function $J() {
67649
68242
  return /* @__PURE__ */ Z("svg", {
67650
68243
  className: "cc-dash-hero__art",
67651
68244
  viewBox: "0 0 320 160",
@@ -67709,7 +68302,7 @@ function RJ() {
67709
68302
  ]
67710
68303
  });
67711
68304
  }
67712
- function zJ(e, t, n) {
68305
+ function eY(e, t, n) {
67713
68306
  let r = e.filter((e) => typeof e.count == "function"), i = JSON.stringify([
67714
68307
  r.map((e) => e.key),
67715
68308
  t.range.key,
@@ -67739,8 +68332,13 @@ function zJ(e, t, n) {
67739
68332
  loading: r.length > 0 && a.signature !== i
67740
68333
  };
67741
68334
  }
67742
- function BJ({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
67743
- let a = sq(oq(e.label, {}, r)), o = sq(oq(e.help, {}, r)), s = MJ(e.to, r), c = /* @__PURE__ */ Z(Y, { children: [
68335
+ function tY({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
68336
+ let a = sq(oq(e.label, {}, r)), o = sq(oq(e.help, {}, r)), s = qJ(e.to, r), c = /* @__PURE__ */ Z(Y, { children: [
68337
+ e.icon ? /* @__PURE__ */ X("span", {
68338
+ className: "cc-dash-kpi__icon",
68339
+ "aria-hidden": "true",
68340
+ children: nq(e.icon)
68341
+ }) : null,
67744
68342
  /* @__PURE__ */ Z("span", {
67745
68343
  className: "cc-dash-kpi__label",
67746
68344
  children: [a, o ? /* @__PURE__ */ X(q, {
@@ -67760,7 +68358,14 @@ function BJ({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
67760
68358
  className: "cc-dash-kpi__value",
67761
68359
  children: lJ(t)
67762
68360
  }),
67763
- r.rangeLabel ? /* @__PURE__ */ X("span", {
68361
+ $(e.caption) || typeof e.caption == "function" ? /* @__PURE__ */ X("span", {
68362
+ className: "cc-dash-kpi__period",
68363
+ style: {
68364
+ fontSize: 12,
68365
+ opacity: .65
68366
+ },
68367
+ children: sq(oq(e.caption, {}, r))
68368
+ }) : r.rangeLabel ? /* @__PURE__ */ X("span", {
67764
68369
  className: "cc-dash-kpi__period",
67765
68370
  style: {
67766
68371
  fontSize: 12,
@@ -67768,7 +68373,7 @@ function BJ({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
67768
68373
  },
67769
68374
  children: (e.period ? e.period === "range" : typeof e.relation == "function") ? r.rangeLabel : "Right now"
67770
68375
  }) : null,
67771
- e.trend && $(e.module) ? /* @__PURE__ */ X(LJ, {
68376
+ e.trend && $(e.module) ? /* @__PURE__ */ X(QJ, {
67772
68377
  kpi: e,
67773
68378
  ctx: r,
67774
68379
  refreshKey: i
@@ -67784,6 +68389,7 @@ function BJ({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
67784
68389
  };
67785
68390
  return $(s) ? /* @__PURE__ */ X("button", {
67786
68391
  type: "button",
68392
+ "data-tone": e.tone,
67787
68393
  className: "cc-dash-kpi is-link",
67788
68394
  style: {
67789
68395
  ...l,
@@ -67798,11 +68404,12 @@ function BJ({ kpi: e, value: t, loading: n, ctx: r, refreshKey: i }) {
67798
68404
  children: c
67799
68405
  }) : /* @__PURE__ */ X("div", {
67800
68406
  className: "cc-dash-kpi",
68407
+ "data-tone": e.tone,
67801
68408
  style: l,
67802
68409
  children: c
67803
68410
  });
67804
68411
  }
67805
- function VJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
68412
+ function nY({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
67806
68413
  let a = rq(e.stages).map((e) => ({
67807
68414
  ...e,
67808
68415
  kpiDef: n.find((t) => t.key === e.kpi)
@@ -67845,7 +68452,7 @@ function VJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
67845
68452
  gap: 12
67846
68453
  },
67847
68454
  children: a.map((e, n) => {
67848
- let r = sq(oq(e.label ?? e.kpiDef.label, {}, i)), a = MJ(e.kpiDef.to, i);
68455
+ let r = sq(oq(e.label ?? e.kpiDef.label, {}, i)), a = qJ(e.kpiDef.to, i);
67849
68456
  return /* @__PURE__ */ X("li", {
67850
68457
  className: "cc-dash-stages__item",
67851
68458
  "data-i": n,
@@ -67874,8 +68481,8 @@ function VJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i }) {
67874
68481
  })]
67875
68482
  });
67876
68483
  }
67877
- function HJ({ panel: e, ctx: t, refreshKey: n }) {
67878
- let r = jJ(e.relation, t), i = JSON.stringify([
68484
+ function rY({ panel: e, ctx: t, refreshKey: n }) {
68485
+ let r = KJ(e.relation, t), i = JSON.stringify([
67879
68486
  e.module,
67880
68487
  r,
67881
68488
  e.limit,
@@ -67935,12 +68542,17 @@ function HJ({ panel: e, ctx: t, refreshKey: n }) {
67935
68542
  children: "Retry"
67936
68543
  })
67937
68544
  });
67938
- if (!a.rows.length) return /* @__PURE__ */ X(Qo, {
67939
- image: Qo.PRESENTED_IMAGE_SIMPLE,
67940
- description: sq(oq(e.empty, {}, t)) || "Nothing here right now."
68545
+ if (!a.rows.length) return /* @__PURE__ */ X(TJ, {
68546
+ spec: e.emptyState,
68547
+ ctx: t,
68548
+ fallback: sq(oq(e.empty, {}, t)) || "Nothing here right now."
67941
68549
  });
67942
- let l = MJ(e.viewAll, t);
67943
- return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("ul", {
68550
+ let l = qJ(e.viewAll, t);
68551
+ return /* @__PURE__ */ Z(Y, { children: [Array.isArray(e.columns) ? /* @__PURE__ */ X(NJ, {
68552
+ panel: e,
68553
+ rows: a.rows,
68554
+ ctx: t
68555
+ }) : /* @__PURE__ */ X("ul", {
67944
68556
  className: "cc-dash-list",
67945
68557
  style: {
67946
68558
  listStyle: "none",
@@ -67948,7 +68560,7 @@ function HJ({ panel: e, ctx: t, refreshKey: n }) {
67948
68560
  padding: 0
67949
68561
  },
67950
68562
  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 = MJ(e.to, t, n);
68563
+ 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
68564
  return /* @__PURE__ */ X("li", {
67953
68565
  className: "cc-dash-list__row",
67954
68566
  children: /* @__PURE__ */ Z("button", {
@@ -68004,7 +68616,7 @@ function HJ({ panel: e, ctx: t, refreshKey: n }) {
68004
68616
  ]
68005
68617
  }) : null] });
68006
68618
  }
68007
- function UJ({ panel: e, ctx: t }) {
68619
+ function iY({ panel: e, ctx: t }) {
68008
68620
  let n = rq(e.items).filter((e) => e && $(e.key) && cq(e, {}, t));
68009
68621
  return /* @__PURE__ */ X("div", {
68010
68622
  className: "cc-dash-links",
@@ -68014,7 +68626,7 @@ function UJ({ panel: e, ctx: t }) {
68014
68626
  gap: 8
68015
68627
  },
68016
68628
  children: n.map((e) => {
68017
- let n = nq(e.icon), r = MJ(e.to, t);
68629
+ let n = nq(e.icon), r = qJ(e.to, t);
68018
68630
  return /* @__PURE__ */ X(z, {
68019
68631
  className: "cc-dash-link",
68020
68632
  onClick: () => t.navigate(r),
@@ -68036,38 +68648,61 @@ function UJ({ panel: e, ctx: t }) {
68036
68648
  })
68037
68649
  });
68038
68650
  }
68039
- function WJ({ panel: e, ...t }) {
68040
- let n = sq(oq(e.title, {}, t.ctx)), r;
68651
+ function aY({ panel: e, ...t }) {
68652
+ 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
68653
  switch (e.type) {
68042
68654
  case "stages":
68043
- r = /* @__PURE__ */ X(VJ, {
68655
+ s = /* @__PURE__ */ X(nY, {
68044
68656
  panel: e,
68045
68657
  ...t
68046
68658
  });
68047
68659
  break;
68048
68660
  case "list":
68049
- r = /* @__PURE__ */ X(HJ, {
68661
+ s = /* @__PURE__ */ X(rY, {
68050
68662
  panel: e,
68051
68663
  ctx: t.ctx,
68052
68664
  refreshKey: t.refreshKey
68053
68665
  });
68054
68666
  break;
68055
68667
  case "links":
68056
- r = /* @__PURE__ */ X(UJ, {
68668
+ s = /* @__PURE__ */ X(iY, {
68057
68669
  panel: e,
68058
68670
  ctx: t.ctx
68059
68671
  });
68060
68672
  break;
68061
68673
  case "chart":
68062
- r = /* @__PURE__ */ X(IJ, {
68674
+ s = /* @__PURE__ */ X(ZJ, {
68063
68675
  panel: e,
68064
- ...t
68676
+ ...t,
68677
+ choice: o
68678
+ });
68679
+ break;
68680
+ case "table":
68681
+ s = /* @__PURE__ */ X(AJ, {
68682
+ panel: e,
68683
+ ctx: t.ctx,
68684
+ refreshKey: t.refreshKey,
68685
+ choice: o
68686
+ });
68687
+ break;
68688
+ case "feed":
68689
+ s = /* @__PURE__ */ X(jJ, {
68690
+ panel: e,
68691
+ ctx: t.ctx,
68692
+ refreshKey: t.refreshKey
68693
+ });
68694
+ break;
68695
+ case "metrics":
68696
+ s = /* @__PURE__ */ X(MJ, {
68697
+ panel: e,
68698
+ ctx: t.ctx,
68699
+ refreshKey: t.refreshKey
68065
68700
  });
68066
68701
  break;
68067
68702
  case "custom":
68068
- r = typeof e.render == "function" ? e.render(t.ctx) : null;
68703
+ s = typeof e.render == "function" ? e.render(t.ctx) : null;
68069
68704
  break;
68070
- default: r = /* @__PURE__ */ X(zo, {
68705
+ default: s = /* @__PURE__ */ X(zo, {
68071
68706
  type: "info",
68072
68707
  showIcon: !0,
68073
68708
  message: `Unknown panel type "${String(e.type)}"`
@@ -68079,32 +68714,67 @@ function WJ({ panel: e, ...t }) {
68079
68714
  "data-chart": e.chart,
68080
68715
  "aria-label": n || void 0,
68081
68716
  style: { minWidth: 0 },
68082
- children: [n ? /* @__PURE__ */ X(ws.Title, {
68083
- level: 5,
68084
- className: "cc-dash-panel__title",
68085
- style: { marginTop: 0 },
68086
- children: n
68087
- }) : null, r]
68717
+ children: [n || r.length ? /* @__PURE__ */ Z("div", {
68718
+ className: "cc-dash-panel__head",
68719
+ style: {
68720
+ display: "flex",
68721
+ alignItems: "center",
68722
+ justifyContent: "space-between",
68723
+ gap: 12,
68724
+ flexWrap: "wrap"
68725
+ },
68726
+ children: [n ? /* @__PURE__ */ Z(ws.Title, {
68727
+ level: 5,
68728
+ className: "cc-dash-panel__title",
68729
+ style: { marginTop: 0 },
68730
+ children: [n, e.titleNote ? /* @__PURE__ */ Z("span", {
68731
+ className: "cc-dash-panel__note",
68732
+ children: [" ", sq(oq(e.titleNote, {}, t.ctx))]
68733
+ }) : null]
68734
+ }) : /* @__PURE__ */ X("span", {}), r.length ? /* @__PURE__ */ Z("span", {
68735
+ className: "cc-dash-panel__choice",
68736
+ style: {
68737
+ display: "inline-flex",
68738
+ alignItems: "center",
68739
+ gap: 8
68740
+ },
68741
+ children: [e.choices.label ? /* @__PURE__ */ X("span", {
68742
+ className: "cc-dash-panel__choice-label",
68743
+ children: sq(oq(e.choices.label, {}, t.ctx))
68744
+ }) : null, /* @__PURE__ */ X(U, {
68745
+ size: "small",
68746
+ className: "cc-dash-panel__select",
68747
+ value: o?.key,
68748
+ onChange: a,
68749
+ popupMatchSelectWidth: !1,
68750
+ "aria-label": `${n}: ${sq(oq(e.choices.label, {}, t.ctx)) || "view"}`,
68751
+ options: r.map((e) => ({
68752
+ value: e.key,
68753
+ label: sq(oq(e.label, {}, t.ctx))
68754
+ }))
68755
+ })]
68756
+ }) : null]
68757
+ }) : null, s]
68088
68758
  });
68089
68759
  }
68090
- function GJ({ config: e, refreshKey: t = 0 }) {
68760
+ function oY({ config: e, refreshKey: t = 0 }) {
68091
68761
  let n = au(), r = iu();
68092
68762
  Ey();
68093
- let i = rq(e?.ranges).length ? rq(e.ranges) : kJ, [a, o] = R(e?.defaultRange || i[0].key), [s, c] = R(0), [l, u] = R(() => /* @__PURE__ */ new Date()), d = `${t}|${s}`, f = {
68763
+ 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
68764
  ...e?.context ?? {},
68095
68765
  navigate: (e) => $(e) && n(e),
68096
68766
  location: r,
68097
68767
  range: sJ(a),
68098
- rangeLabel: i.length > 1 ? AJ[a] ?? sq(oq(i.find((e) => e.key === a)?.label, {}, {})) : "",
68768
+ rangeLabel: i.length > 1 ? GJ[a] ?? sq(oq(i.find((e) => e.key === a)?.label, {}, {})) : "",
68099
68769
  refresh: () => {
68100
68770
  c((e) => e + 1), u(/* @__PURE__ */ new Date());
68101
68771
  }
68102
68772
  }, 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
68773
  key: e.key,
68104
68774
  module: e.module,
68105
- relation: jJ(e.relation, f),
68775
+ relation: KJ(e.relation, f),
68106
68776
  unscoped: !0
68107
- })), "", d, { cacheMs: 3e4 }), h = zJ(p, f, d), g = {
68777
+ })), "", d, { cacheMs: 3e4 }), h = eY(p, f, d), g = {
68108
68778
  ...m.counts,
68109
68779
  ...h.counts
68110
68780
  }, _ = 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 +68802,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
68132
68802
  gap: 16
68133
68803
  },
68134
68804
  children: [
68135
- /* @__PURE__ */ X(RJ, {}),
68805
+ /* @__PURE__ */ X($J, {}),
68136
68806
  /* @__PURE__ */ Z("div", {
68137
68807
  className: "cc-dash-hero__top",
68138
68808
  style: {
@@ -68271,14 +68941,14 @@ function GJ({ config: e, refreshKey: t = 0 }) {
68271
68941
  children: j.map((e) => /* @__PURE__ */ X(z, {
68272
68942
  className: "cc-dash-hero__link",
68273
68943
  icon: nq(e.icon),
68274
- onClick: () => f.navigate(MJ(e.to, f)),
68944
+ onClick: () => f.navigate(qJ(e.to, f)),
68275
68945
  children: sq(oq(e.label, {}, f))
68276
68946
  }, e.key))
68277
68947
  }) : null]
68278
68948
  })
68279
68949
  ]
68280
68950
  }),
68281
- p.some((e) => e.attention) && (_ || v.length > 0) ? /* @__PURE__ */ X("section", {
68951
+ e?.attentionBar !== !1 && p.some((e) => e.attention) && (_ || v.length > 0) ? /* @__PURE__ */ X("section", {
68282
68952
  className: `cc-dash-attention${v.length ? "" : " is-clear"}`,
68283
68953
  "aria-label": "Needs attention",
68284
68954
  "aria-live": "polite",
@@ -68341,7 +69011,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
68341
69011
  gap: 12,
68342
69012
  gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 150px), 1fr))"
68343
69013
  },
68344
- children: p.filter((e) => e.show !== !1).map((e) => /* @__PURE__ */ X(BJ, {
69014
+ children: p.filter((e) => e.show !== !1).map((e) => /* @__PURE__ */ X(tY, {
68345
69015
  kpi: e,
68346
69016
  value: g[e.key],
68347
69017
  loading: _ && g[e.key] === void 0,
@@ -68357,7 +69027,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
68357
69027
  gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 320px), 1fr))",
68358
69028
  alignItems: "stretch"
68359
69029
  },
68360
- children: b.map((e) => /* @__PURE__ */ X(WJ, {
69030
+ children: b.map((e) => /* @__PURE__ */ X(aY, {
68361
69031
  panel: e,
68362
69032
  ...D
68363
69033
  }, e.key))
@@ -68377,7 +69047,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
68377
69047
  gap: 16,
68378
69048
  minWidth: 0
68379
69049
  },
68380
- children: x.map((e) => /* @__PURE__ */ X(WJ, {
69050
+ children: x.map((e) => /* @__PURE__ */ X(aY, {
68381
69051
  panel: e,
68382
69052
  ...D
68383
69053
  }, e.key))
@@ -68388,7 +69058,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
68388
69058
  gap: 16,
68389
69059
  minWidth: 0
68390
69060
  },
68391
- children: S.map((e) => /* @__PURE__ */ X(WJ, {
69061
+ children: S.map((e) => /* @__PURE__ */ X(aY, {
68392
69062
  panel: e,
68393
69063
  ...D
68394
69064
  }, e.key))
@@ -68399,7 +69069,7 @@ function GJ({ config: e, refreshKey: t = 0 }) {
68399
69069
  }
68400
69070
  //#endregion
68401
69071
  //#region src/components/COMBAINED_COMPONENTS/helpers/details/detailsUtils.js
68402
- var KJ = {
69072
+ var sY = {
68403
69073
  ...tq,
68404
69074
  assessment: Fc,
68405
69075
  audit: Fs,
@@ -68417,13 +69087,13 @@ var KJ = {
68417
69087
  video: Kl,
68418
69088
  wallet: ql
68419
69089
  };
68420
- function qJ(e) {
69090
+ function cY(e) {
68421
69091
  if (!e) return null;
68422
69092
  if (typeof e != "string") return e;
68423
- let t = KJ[e.trim().toLowerCase()];
69093
+ let t = sY[e.trim().toLowerCase()];
68424
69094
  return t ? Ao(t) : null;
68425
69095
  }
68426
- var JJ = (e) => `calc(${e} * var(--cc-ds-u, 1.5px))`, YJ = (e, t) => `max(${t}px, ${JJ(e)})`, XJ = {
69096
+ var lY = (e) => `calc(${e} * var(--cc-ds-u, 1.5px))`, uY = (e, t) => `max(${t}px, ${lY(e)})`, dY = {
68427
69097
  neutral: ["#5b6475", "#f1f3f7"],
68428
69098
  brand: ["var(--ant-color-primary, #1677ff)", "var(--ant-color-primary-bg, #e6f4ff)"],
68429
69099
  green: ["#00c26b", "#e6f9f0"],
@@ -68434,15 +69104,15 @@ var JJ = (e) => `calc(${e} * var(--cc-ds-u, 1.5px))`, YJ = (e, t) => `max(${t}px
68434
69104
  pink: ["#d6338a", "#fde8f2"],
68435
69105
  red: ["#e5484d", "#fdecec"]
68436
69106
  };
68437
- Object.keys(XJ);
68438
- function ZJ(e) {
68439
- let t = XJ[e] ? e : "neutral", [n, r] = XJ[t];
69107
+ Object.keys(dY);
69108
+ function fY(e) {
69109
+ let t = dY[e] ? e : "neutral", [n, r] = dY[t];
68440
69110
  return {
68441
69111
  fg: `var(--cc-ds-tone-${t}-fg, ${n})`,
68442
69112
  bg: `var(--cc-ds-tone-${t}-bg, ${r})`
68443
69113
  };
68444
69114
  }
68445
- var QJ = {
69115
+ var pY = {
68446
69116
  ink: "var(--cc-ds-ink, #252744)",
68447
69117
  value: "var(--cc-ds-value, #17202c)",
68448
69118
  muted: "var(--cc-ds-muted, #8590aa)",
@@ -68451,7 +69121,7 @@ var QJ = {
68451
69121
  link: "var(--cc-ds-link, var(--ant-color-primary, #1677ff))",
68452
69122
  track: "var(--cc-ds-track, #eef0f6)"
68453
69123
  };
68454
- function $J(e, t) {
69124
+ function mY(e, t) {
68455
69125
  if (typeof e == "number" && Number.isFinite(e)) try {
68456
69126
  return new Intl.NumberFormat(t).format(e);
68457
69127
  } catch {
@@ -68459,11 +69129,11 @@ function $J(e, t) {
68459
69129
  }
68460
69130
  return typeof e == "boolean" ? e ? "Yes" : "No" : sq(e);
68461
69131
  }
68462
- function eY(e, t, n, { locale: r, placeholder: i = "–" } = {}) {
68463
- let a = $J(aq(e, t, n), r);
69132
+ function hY(e, t, n, { locale: r, placeholder: i = "–" } = {}) {
69133
+ let a = mY(aq(e, t, n), r);
68464
69134
  return $(a) ? a : i;
68465
69135
  }
68466
- function tY(e, t, n) {
69136
+ function gY(e, t, n) {
68467
69137
  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
69138
  return a ? o.map((e) => {
68469
69139
  if (!e || typeof e != "object") return e;
@@ -68473,83 +69143,83 @@ function tY(e, t, n) {
68473
69143
  }), t;
68474
69144
  }) : o;
68475
69145
  }
68476
- var nY = (e, t) => $J(e && typeof e == "object" ? e.text ?? e.label ?? e.title : e, t), rY = (e) => (t, n, r, i) => !tY(t, n, r).some((t) => t && typeof t == "object" && $($J(t[e], i))), iY = (e, t, n) => (Array.isArray(e.items) ? e.items : []).filter((e) => e && cq(e, t, n)), aY = {
68477
- text: (e, t, n, r) => !$(eY(e.value, t, n, {
69146
+ 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 = {
69147
+ text: (e, t, n, r) => !$(hY(e.value, t, n, {
68478
69148
  locale: r,
68479
69149
  placeholder: ""
68480
69150
  })),
68481
- fields: (e, t, n) => iY(e, t, n).length === 0,
68482
- stats: (e, t, n) => iY(e, t, n).length === 0,
68483
- list: (e, t, n, r) => !tY(e, t, n).some((e) => $(nY(e, r))),
68484
- tags: (e, t, n, r) => !tY(e, t, n).some((e) => $($J(e && typeof e == "object" ? e.label : e, r))),
68485
- callout: (e, t, n, r) => !$(oq(e.title, t, n)) && !$(eY(e.text, t, n, {
69151
+ fields: (e, t, n) => yY(e, t, n).length === 0,
69152
+ stats: (e, t, n) => yY(e, t, n).length === 0,
69153
+ list: (e, t, n, r) => !gY(e, t, n).some((e) => $(_Y(e, r))),
69154
+ tags: (e, t, n, r) => !gY(e, t, n).some((e) => $(mY(e && typeof e == "object" ? e.label : e, r))),
69155
+ callout: (e, t, n, r) => !$(oq(e.title, t, n)) && !$(hY(e.text, t, n, {
68486
69156
  locale: r,
68487
69157
  placeholder: ""
68488
69158
  })),
68489
- timeline: rY("title"),
68490
- people: rY("name"),
68491
- files: rY("name"),
69159
+ timeline: vY("title"),
69160
+ people: vY("name"),
69161
+ files: vY("name"),
68492
69162
  progress: (e, t, n) => !Number.isFinite(Number(aq(e.percent, t, n)))
68493
69163
  };
68494
- function oY(e, t, n, r) {
68495
- return aY[e?.type]?.(e, t, n, r) ?? !1;
69164
+ function xY(e, t, n, r) {
69165
+ return bY[e?.type]?.(e, t, n, r) ?? !1;
68496
69166
  }
68497
69167
  //#endregion
68498
69168
  //#region src/components/COMBAINED_COMPONENTS/helpers/details/detailsBlocks.jsx
68499
- var sY = (e) => ({
69169
+ var SY = (e) => ({
68500
69170
  display: "flex",
68501
69171
  flexDirection: "column",
68502
- gap: JJ(e),
69172
+ gap: lY(e),
68503
69173
  minWidth: 0
68504
- }), cY = {
69174
+ }), CY = {
68505
69175
  body: {
68506
- fontSize: YJ(7.16, 11),
69176
+ fontSize: uY(7.16, 11),
68507
69177
  fontWeight: 600,
68508
69178
  lineHeight: 1.5,
68509
- color: QJ.muted
69179
+ color: pY.muted
68510
69180
  },
68511
69181
  label: {
68512
- fontSize: YJ(6.6, 11),
69182
+ fontSize: uY(6.6, 11),
68513
69183
  fontWeight: 600,
68514
69184
  lineHeight: 1.5,
68515
- color: QJ.muted
69185
+ color: pY.muted
68516
69186
  },
68517
69187
  value: {
68518
- fontSize: YJ(6.6, 11),
69188
+ fontSize: uY(6.6, 11),
68519
69189
  fontWeight: 400,
68520
69190
  lineHeight: 1.5,
68521
- color: QJ.value
69191
+ color: pY.value
68522
69192
  },
68523
69193
  small: {
68524
- fontSize: YJ(5.5, 10),
69194
+ fontSize: uY(5.5, 10),
68525
69195
  fontWeight: 600,
68526
69196
  lineHeight: 1.5,
68527
- color: QJ.muted
69197
+ color: pY.muted
68528
69198
  },
68529
69199
  strong: {
68530
- fontSize: YJ(7.16, 11),
69200
+ fontSize: uY(7.16, 11),
68531
69201
  fontWeight: 700,
68532
69202
  lineHeight: 1.5,
68533
- color: QJ.ink
69203
+ color: pY.ink
68534
69204
  },
68535
69205
  stat: {
68536
- fontSize: YJ(9.36, 13),
69206
+ fontSize: uY(9.36, 13),
68537
69207
  fontWeight: 600,
68538
69208
  lineHeight: 1.5,
68539
- color: QJ.ink
69209
+ color: pY.ink
68540
69210
  },
68541
69211
  sub: {
68542
- fontSize: YJ(6.6, 11),
69212
+ fontSize: uY(6.6, 11),
68543
69213
  fontWeight: 600,
68544
69214
  lineHeight: 1.5,
68545
- color: QJ.ink,
69215
+ color: pY.ink,
68546
69216
  margin: 0
68547
69217
  }
68548
69218
  };
68549
- function lY({ icon: e, tone: t, size: n = 13 }) {
68550
- let r = qJ(e);
69219
+ function wY({ icon: e, tone: t, size: n = 13 }) {
69220
+ let r = cY(e);
68551
69221
  if (!r) return null;
68552
- let i = ZJ(t);
69222
+ let i = fY(t);
68553
69223
  return /* @__PURE__ */ X("span", {
68554
69224
  className: "cc-details__badge",
68555
69225
  "data-tone": t || "neutral",
@@ -68559,18 +69229,18 @@ function lY({ icon: e, tone: t, size: n = 13 }) {
68559
69229
  alignItems: "center",
68560
69230
  justifyContent: "center",
68561
69231
  flex: "none",
68562
- width: JJ(n),
68563
- height: JJ(n),
68564
- borderRadius: JJ(n * .28),
69232
+ width: lY(n),
69233
+ height: lY(n),
69234
+ borderRadius: lY(n * .28),
68565
69235
  background: i.bg,
68566
69236
  color: i.fg,
68567
- fontSize: JJ(n * .58)
69237
+ fontSize: lY(n * .58)
68568
69238
  },
68569
69239
  children: r
68570
69240
  });
68571
69241
  }
68572
- function uY({ block: e, data: t, ctx: n, locale: r }) {
68573
- let i = eY(e.value, t, n, {
69242
+ function TY({ block: e, data: t, ctx: n, locale: r }) {
69243
+ let i = hY(e.value, t, n, {
68574
69244
  locale: r,
68575
69245
  placeholder: ""
68576
69246
  }), a = Number.isFinite(e.lines) && e.lines > 0 ? e.lines : 0, [o, s] = R(!1), [c, l] = R(!1), u = Lo(null);
@@ -68589,12 +69259,12 @@ function uY({ block: e, data: t, ctx: n, locale: r }) {
68589
69259
  overflow: "hidden"
68590
69260
  } : {}, f = oq(e.more ?? "Show More", t, n), p = oq(e.less ?? "Show Less", t, n);
68591
69261
  return /* @__PURE__ */ Z("div", {
68592
- style: sY(3),
69262
+ style: SY(3),
68593
69263
  children: [/* @__PURE__ */ X("p", {
68594
69264
  ref: u,
68595
69265
  className: "cc-details__text",
68596
69266
  style: {
68597
- ...cY.body,
69267
+ ...CY.body,
68598
69268
  margin: 0,
68599
69269
  whiteSpace: "pre-line",
68600
69270
  ...d
@@ -68611,28 +69281,28 @@ function uY({ block: e, data: t, ctx: n, locale: r }) {
68611
69281
  border: 0,
68612
69282
  background: "none",
68613
69283
  cursor: "pointer",
68614
- color: QJ.link,
68615
- fontSize: YJ(6.05, 11),
69284
+ color: pY.link,
69285
+ fontSize: uY(6.05, 11),
68616
69286
  fontWeight: 600,
68617
69287
  display: "inline-flex",
68618
69288
  alignItems: "center",
68619
- gap: JJ(2)
69289
+ gap: lY(2)
68620
69290
  },
68621
- children: [o ? p : f, X(o ? Bl : fc, { style: { fontSize: JJ(4.5) } })]
69291
+ children: [o ? p : f, X(o ? Bl : fc, { style: { fontSize: lY(4.5) } })]
68622
69292
  })]
68623
69293
  });
68624
69294
  }
68625
- function dY({ block: e, data: t, ctx: n, locale: r }) {
69295
+ function EY({ block: e, data: t, ctx: n, locale: r }) {
68626
69296
  let i = (Array.isArray(e.items) ? e.items : []).filter((e) => e && cq(e, t, n));
68627
69297
  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} * ${JJ(o)}) / ${a})`, l = Number.isFinite(e.labelWidth) ? JJ(e.labelWidth) : "minmax(0, 1fr)";
69298
+ 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
69299
  return /* @__PURE__ */ X("dl", {
68630
69300
  className: "cc-details__fields",
68631
69301
  style: {
68632
69302
  display: "grid",
68633
- gridTemplateColumns: `repeat(auto-fit, minmax(max(${JJ(s)}, ${c}), 1fr))`,
68634
- columnGap: JJ(o),
68635
- rowGap: JJ(2.2),
69303
+ gridTemplateColumns: `repeat(auto-fit, minmax(max(${lY(s)}, ${c}), 1fr))`,
69304
+ columnGap: lY(o),
69305
+ rowGap: lY(2.2),
68636
69306
  margin: 0
68637
69307
  },
68638
69308
  children: i.map((e) => /* @__PURE__ */ Z("div", {
@@ -68640,56 +69310,56 @@ function dY({ block: e, data: t, ctx: n, locale: r }) {
68640
69310
  style: {
68641
69311
  display: "grid",
68642
69312
  gridTemplateColumns: `${l} minmax(0, 1fr)`,
68643
- columnGap: JJ(4),
69313
+ columnGap: lY(4),
68644
69314
  minWidth: 0
68645
69315
  },
68646
69316
  children: [/* @__PURE__ */ X("dt", {
68647
69317
  style: {
68648
- ...cY.label,
69318
+ ...CY.label,
68649
69319
  margin: 0
68650
69320
  },
68651
69321
  children: oq(e.label, t, n)
68652
69322
  }), /* @__PURE__ */ X("dd", {
68653
69323
  style: {
68654
- ...cY.value,
69324
+ ...CY.value,
68655
69325
  margin: 0,
68656
69326
  overflowWrap: "anywhere"
68657
69327
  },
68658
- children: eY(e.value, t, n, { locale: r })
69328
+ children: hY(e.value, t, n, { locale: r })
68659
69329
  })]
68660
69330
  }, e.key ?? oq(e.label, t, n)))
68661
69331
  });
68662
69332
  }
68663
- function fY({ block: e, data: t, ctx: n, locale: r }) {
68664
- let i = tY(e, t, n).map((e) => e && typeof e == "object" ? e : { text: e }), a = e.variant || "bullet", o = ZJ(e.tone || (a === "check" ? "green" : "neutral")), s = i.filter((e) => $($J(e.text ?? e.label ?? e.title, r)));
69333
+ function DY({ block: e, data: t, ctx: n, locale: r }) {
69334
+ 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
69335
  return s.length ? /* @__PURE__ */ X("ul", {
68666
69336
  className: `cc-details__list cc-details__list--${a}`,
68667
69337
  style: {
68668
- ...sY(a === "check" ? 3.3 : 1.6),
69338
+ ...SY(a === "check" ? 3.3 : 1.6),
68669
69339
  listStyle: "none",
68670
69340
  margin: 0,
68671
69341
  padding: 0
68672
69342
  },
68673
69343
  children: s.map((e, t) => {
68674
- let n = $J(e.text ?? e.label ?? e.title, r), i = $J(e.meta, r);
69344
+ let n = mY(e.text ?? e.label ?? e.title, r), i = mY(e.meta, r);
68675
69345
  return /* @__PURE__ */ Z("li", {
68676
69346
  style: {
68677
69347
  display: "flex",
68678
69348
  alignItems: "flex-start",
68679
- gap: JJ(a === "check" ? 3.3 : 2.4),
68680
- ...a === "plain" ? cY.value : cY.label,
68681
- color: QJ.muted
69349
+ gap: lY(a === "check" ? 3.3 : 2.4),
69350
+ ...a === "plain" ? CY.value : CY.label,
69351
+ color: pY.muted
68682
69352
  },
68683
69353
  children: [
68684
69354
  a === "bullet" && /* @__PURE__ */ X("span", {
68685
69355
  "aria-hidden": "true",
68686
69356
  style: {
68687
69357
  flex: "none",
68688
- width: JJ(1.8),
68689
- height: JJ(1.8),
68690
- marginTop: JJ(3.2),
69358
+ width: lY(1.8),
69359
+ height: lY(1.8),
69360
+ marginTop: lY(3.2),
68691
69361
  borderRadius: "50%",
68692
- background: QJ.muted
69362
+ background: pY.muted
68693
69363
  }
68694
69364
  }),
68695
69365
  a === "check" && /* @__PURE__ */ X("span", {
@@ -68697,11 +69367,11 @@ function fY({ block: e, data: t, ctx: n, locale: r }) {
68697
69367
  style: {
68698
69368
  flex: "none",
68699
69369
  color: o.fg,
68700
- fontSize: JJ(7),
69370
+ fontSize: lY(7),
68701
69371
  lineHeight: 1,
68702
- marginTop: JJ(1.2)
69372
+ marginTop: lY(1.2)
68703
69373
  },
68704
- children: qJ("check")
69374
+ children: cY("check")
68705
69375
  }),
68706
69376
  /* @__PURE__ */ Z("span", {
68707
69377
  style: { minWidth: 0 },
@@ -68712,7 +69382,7 @@ function fY({ block: e, data: t, ctx: n, locale: r }) {
68712
69382
  }),
68713
69383
  $(i) && /* @__PURE__ */ X("span", {
68714
69384
  className: "cc-details__item-sep",
68715
- style: { margin: `0 ${JJ(4)}` },
69385
+ style: { margin: `0 ${lY(4)}` },
68716
69386
  "aria-hidden": "true",
68717
69387
  children: "•"
68718
69388
  }),
@@ -68727,8 +69397,8 @@ function fY({ block: e, data: t, ctx: n, locale: r }) {
68727
69397
  })
68728
69398
  }) : null;
68729
69399
  }
68730
- function pY({ block: e, data: t, ctx: n, locale: r }) {
68731
- let i = oq(e.title, t, n), a = eY(e.text, t, n, {
69400
+ function OY({ block: e, data: t, ctx: n, locale: r }) {
69401
+ let i = oq(e.title, t, n), a = hY(e.text, t, n, {
68732
69402
  locale: r,
68733
69403
  placeholder: ""
68734
69404
  });
@@ -68736,27 +69406,27 @@ function pY({ block: e, data: t, ctx: n, locale: r }) {
68736
69406
  className: "cc-details__callout",
68737
69407
  style: {
68738
69408
  display: "flex",
68739
- gap: JJ(6.6),
69409
+ gap: lY(6.6),
68740
69410
  alignItems: "flex-start"
68741
69411
  },
68742
- children: [/* @__PURE__ */ X(lY, {
69412
+ children: [/* @__PURE__ */ X(wY, {
68743
69413
  icon: e.icon,
68744
69414
  tone: e.tone,
68745
69415
  size: 15.4
68746
69416
  }), /* @__PURE__ */ Z("div", {
68747
- style: sY(1.1),
69417
+ style: SY(1.1),
68748
69418
  children: [$(i) && /* @__PURE__ */ X("span", {
68749
- style: cY.strong,
69419
+ style: CY.strong,
68750
69420
  children: i
68751
69421
  }), $(a) && /* @__PURE__ */ X("span", {
68752
- style: cY.small,
69422
+ style: CY.small,
68753
69423
  children: a
68754
69424
  })]
68755
69425
  })]
68756
69426
  });
68757
69427
  }
68758
- function mY({ block: e, data: t, ctx: n, locale: r }) {
68759
- let i = tY(e, t, n).filter((e) => e && typeof e == "object");
69428
+ function kY({ block: e, data: t, ctx: n, locale: r }) {
69429
+ let i = gY(e, t, n).filter((e) => e && typeof e == "object");
68760
69430
  return i.length ? /* @__PURE__ */ X("ol", {
68761
69431
  className: "cc-details__timeline",
68762
69432
  style: {
@@ -68769,8 +69439,8 @@ function mY({ block: e, data: t, ctx: n, locale: r }) {
68769
69439
  children: i.map((e, t) => /* @__PURE__ */ Z("li", {
68770
69440
  style: {
68771
69441
  display: "flex",
68772
- gap: JJ(6.6),
68773
- minHeight: JJ(e === i[i.length - 1] ? 13 : 34.6)
69442
+ gap: lY(6.6),
69443
+ minHeight: lY(e === i[i.length - 1] ? 13 : 34.6)
68774
69444
  },
68775
69445
  children: [/* @__PURE__ */ Z("span", {
68776
69446
  style: {
@@ -68779,7 +69449,7 @@ function mY({ block: e, data: t, ctx: n, locale: r }) {
68779
69449
  alignItems: "center",
68780
69450
  flex: "none"
68781
69451
  },
68782
- children: [/* @__PURE__ */ X(lY, {
69452
+ children: [/* @__PURE__ */ X(wY, {
68783
69453
  icon: e.icon,
68784
69454
  tone: e.tone,
68785
69455
  size: 13.2
@@ -68787,28 +69457,28 @@ function mY({ block: e, data: t, ctx: n, locale: r }) {
68787
69457
  "aria-hidden": "true",
68788
69458
  style: {
68789
69459
  flex: 1,
68790
- width: JJ(.55),
68791
- background: QJ.border,
68792
- margin: `${JJ(2)} 0`
69460
+ width: lY(.55),
69461
+ background: pY.border,
69462
+ margin: `${lY(2)} 0`
68793
69463
  }
68794
69464
  })]
68795
69465
  }), /* @__PURE__ */ Z("span", {
68796
69466
  style: {
68797
- ...sY(.5),
68798
- paddingTop: JJ(.6)
69467
+ ...SY(.5),
69468
+ paddingTop: lY(.6)
68799
69469
  },
68800
69470
  children: [/* @__PURE__ */ X("span", {
68801
- style: cY.strong,
68802
- children: $J(e.title, r)
68803
- }), $($J(e.text, r)) && /* @__PURE__ */ X("span", {
68804
- style: cY.small,
68805
- children: $J(e.text, r)
69471
+ style: CY.strong,
69472
+ children: mY(e.title, r)
69473
+ }), $(mY(e.text, r)) && /* @__PURE__ */ X("span", {
69474
+ style: CY.small,
69475
+ children: mY(e.text, r)
68806
69476
  })]
68807
69477
  })]
68808
- }, `${t}-${$J(e.title, r)}`))
69478
+ }, `${t}-${mY(e.title, r)}`))
68809
69479
  }) : null;
68810
69480
  }
68811
- function hY({ block: e, data: t, ctx: n, locale: r }) {
69481
+ function AY({ block: e, data: t, ctx: n, locale: r }) {
68812
69482
  let i = (Array.isArray(e.items) ? e.items : []).filter((e) => e && cq(e, t, n));
68813
69483
  if (!i.length) return null;
68814
69484
  let a = e.variant === "tiles";
@@ -68817,34 +69487,34 @@ function hY({ block: e, data: t, ctx: n, locale: r }) {
68817
69487
  style: {
68818
69488
  display: "flex",
68819
69489
  flexWrap: "wrap",
68820
- columnGap: JJ(a ? 13 : 8.8),
68821
- rowGap: JJ(6.6),
69490
+ columnGap: lY(a ? 13 : 8.8),
69491
+ rowGap: lY(6.6),
68822
69492
  justifyContent: "space-between"
68823
69493
  },
68824
69494
  children: i.map((e) => {
68825
- let i = eY(e.value, t, n, { locale: r }), o = e.valueTone ? ZJ(e.valueTone).fg : QJ.ink;
69495
+ let i = hY(e.value, t, n, { locale: r }), o = e.valueTone ? fY(e.valueTone).fg : pY.ink;
68826
69496
  return /* @__PURE__ */ Z("div", {
68827
69497
  style: {
68828
69498
  display: "flex",
68829
69499
  alignItems: "center",
68830
- gap: JJ(6.6),
69500
+ gap: lY(6.6),
68831
69501
  flex: a ? "0 1 auto" : "1 0 auto"
68832
69502
  },
68833
- children: [a && /* @__PURE__ */ X(lY, {
69503
+ children: [a && /* @__PURE__ */ X(wY, {
68834
69504
  icon: e.icon,
68835
69505
  tone: e.tone,
68836
69506
  size: 17.6
68837
69507
  }), /* @__PURE__ */ Z("span", {
68838
- style: sY(0),
69508
+ style: SY(0),
68839
69509
  children: [/* @__PURE__ */ X("span", {
68840
69510
  style: {
68841
- ...cY.stat,
69511
+ ...CY.stat,
68842
69512
  color: o,
68843
69513
  whiteSpace: "nowrap"
68844
69514
  },
68845
69515
  children: i
68846
69516
  }), /* @__PURE__ */ X("span", {
68847
- style: cY.small,
69517
+ style: CY.small,
68848
69518
  children: oq(e.label, t, n)
68849
69519
  })]
68850
69520
  })]
@@ -68852,71 +69522,71 @@ function hY({ block: e, data: t, ctx: n, locale: r }) {
68852
69522
  })
68853
69523
  });
68854
69524
  }
68855
- function gY({ block: e, data: t, ctx: n, locale: r }) {
68856
- let i = tY(e, t, n).filter((e) => e && typeof e == "object" && $($J(e.name, r)));
69525
+ function jY({ block: e, data: t, ctx: n, locale: r }) {
69526
+ let i = gY(e, t, n).filter((e) => e && typeof e == "object" && $(mY(e.name, r)));
68857
69527
  return i.length ? /* @__PURE__ */ X("ul", {
68858
69528
  className: "cc-details__people",
68859
69529
  style: {
68860
- ...sY(2.2),
69530
+ ...SY(2.2),
68861
69531
  listStyle: "none",
68862
69532
  margin: 0,
68863
69533
  padding: 0
68864
69534
  },
68865
69535
  children: i.map((e, t) => {
68866
- let n = $J(e.name, r);
69536
+ let n = mY(e.name, r);
68867
69537
  return /* @__PURE__ */ Z("li", {
68868
69538
  style: {
68869
69539
  display: "flex",
68870
69540
  alignItems: "center",
68871
- gap: JJ(4.4)
69541
+ gap: lY(4.4)
68872
69542
  },
68873
69543
  children: [/* @__PURE__ */ X(Vo, {
68874
69544
  src: $(e.avatar) ? e.avatar : void 0,
68875
69545
  alt: "",
68876
69546
  style: {
68877
- width: JJ(15.4),
68878
- height: JJ(15.4),
68879
- lineHeight: JJ(15.4),
68880
- fontSize: JJ(6),
69547
+ width: lY(15.4),
69548
+ height: lY(15.4),
69549
+ lineHeight: lY(15.4),
69550
+ fontSize: lY(6),
68881
69551
  flex: "none"
68882
69552
  },
68883
69553
  children: mq(n)
68884
69554
  }), /* @__PURE__ */ Z("span", {
68885
- style: sY(0),
69555
+ style: SY(0),
68886
69556
  children: [/* @__PURE__ */ X("span", {
68887
69557
  style: {
68888
- ...cY.strong,
68889
- fontSize: YJ(6.6, 11)
69558
+ ...CY.strong,
69559
+ fontSize: uY(6.6, 11)
68890
69560
  },
68891
69561
  children: n
68892
- }), $($J(e.subtitle, r)) && /* @__PURE__ */ X("span", {
68893
- style: cY.small,
68894
- children: $J(e.subtitle, r)
69562
+ }), $(mY(e.subtitle, r)) && /* @__PURE__ */ X("span", {
69563
+ style: CY.small,
69564
+ children: mY(e.subtitle, r)
68895
69565
  })]
68896
69566
  })]
68897
69567
  }, `${t}-${n}`);
68898
69568
  })
68899
69569
  }) : null;
68900
69570
  }
68901
- function _Y({ block: e, data: t, ctx: n, locale: r }) {
69571
+ function MY({ block: e, data: t, ctx: n, locale: r }) {
68902
69572
  let i = Number(aq(e.percent, t, n));
68903
69573
  if (!Number.isFinite(i)) return null;
68904
- let a = Math.max(0, Math.min(100, i)), o = eY(e.caption, t, n, {
69574
+ let a = Math.max(0, Math.min(100, i)), o = hY(e.caption, t, n, {
68905
69575
  locale: r,
68906
69576
  placeholder: ""
68907
- }), s = ZJ(e.tone || "brand");
69577
+ }), s = fY(e.tone || "brand");
68908
69578
  return /* @__PURE__ */ Z("div", {
68909
69579
  className: "cc-details__progress",
68910
- style: sY(3.3),
69580
+ style: SY(3.3),
68911
69581
  children: [/* @__PURE__ */ X("div", {
68912
69582
  role: "progressbar",
68913
69583
  "aria-valuemin": 0,
68914
69584
  "aria-valuemax": 100,
68915
69585
  "aria-valuenow": a,
68916
69586
  style: {
68917
- height: JJ(2.2),
68918
- borderRadius: JJ(2),
68919
- background: QJ.track,
69587
+ height: lY(2.2),
69588
+ borderRadius: lY(2),
69589
+ background: pY.track,
68920
69590
  overflow: "hidden"
68921
69591
  },
68922
69592
  children: /* @__PURE__ */ X("div", { style: {
@@ -68926,100 +69596,100 @@ function _Y({ block: e, data: t, ctx: n, locale: r }) {
68926
69596
  background: s.fg
68927
69597
  } })
68928
69598
  }), $(o) && /* @__PURE__ */ X("span", {
68929
- style: cY.small,
69599
+ style: CY.small,
68930
69600
  children: o
68931
69601
  })]
68932
69602
  });
68933
69603
  }
68934
- function vY({ block: e, data: t, ctx: n, locale: r }) {
68935
- let i = tY(e, t, n).map((e) => e && typeof e == "object" ? e : { label: e }).filter((e) => $($J(e.label, r)));
69604
+ function NY({ block: e, data: t, ctx: n, locale: r }) {
69605
+ let i = gY(e, t, n).map((e) => e && typeof e == "object" ? e : { label: e }).filter((e) => $(mY(e.label, r)));
68936
69606
  return i.length ? /* @__PURE__ */ X("div", {
68937
69607
  className: "cc-details__tags",
68938
69608
  style: {
68939
69609
  display: "flex",
68940
69610
  flexWrap: "wrap",
68941
- gap: JJ(3.3)
69611
+ gap: lY(3.3)
68942
69612
  },
68943
69613
  children: i.map((t, n) => {
68944
- let i = ZJ(t.tone || e.tone || "neutral");
69614
+ let i = fY(t.tone || e.tone || "neutral");
68945
69615
  return /* @__PURE__ */ X("span", {
68946
69616
  "data-tone": t.tone || e.tone || "neutral",
68947
69617
  style: {
68948
69618
  display: "inline-flex",
68949
69619
  alignItems: "center",
68950
- padding: `${JJ(1.6)} ${JJ(4.4)}`,
68951
- borderRadius: JJ(3),
69620
+ padding: `${lY(1.6)} ${lY(4.4)}`,
69621
+ borderRadius: lY(3),
68952
69622
  background: i.bg,
68953
- color: e.tone || t.tone ? i.fg : QJ.muted,
68954
- fontSize: YJ(5.5, 10),
69623
+ color: e.tone || t.tone ? i.fg : pY.muted,
69624
+ fontSize: uY(5.5, 10),
68955
69625
  fontWeight: 400,
68956
69626
  lineHeight: 1.5
68957
69627
  },
68958
- children: $J(t.label, r)
68959
- }, `${n}-${$J(t.label, r)}`);
69628
+ children: mY(t.label, r)
69629
+ }, `${n}-${mY(t.label, r)}`);
68960
69630
  })
68961
69631
  }) : null;
68962
69632
  }
68963
- function yY({ block: e, data: t, ctx: n, locale: r }) {
68964
- let i = tY(e, t, n).filter((e) => e && typeof e == "object" && $($J(e.name, r)));
69633
+ function PY({ block: e, data: t, ctx: n, locale: r }) {
69634
+ let i = gY(e, t, n).filter((e) => e && typeof e == "object" && $(mY(e.name, r)));
68965
69635
  return i.length ? /* @__PURE__ */ X("ul", {
68966
69636
  className: "cc-details__files",
68967
69637
  style: {
68968
- ...sY(5.5),
69638
+ ...SY(5.5),
68969
69639
  listStyle: "none",
68970
69640
  margin: 0,
68971
69641
  padding: 0
68972
69642
  },
68973
69643
  children: i.map((t, n) => {
68974
- let i = $J(t.name, r), a = $(t.href) && /^(https?:|\/|blob:)/i.test(String(t.href)) ? String(t.href) : "";
69644
+ let i = mY(t.name, r), a = $(t.href) && /^(https?:|\/|blob:)/i.test(String(t.href)) ? String(t.href) : "";
68975
69645
  return /* @__PURE__ */ Z("li", {
68976
69646
  style: {
68977
69647
  display: "flex",
68978
69648
  alignItems: "center",
68979
- gap: JJ(5.5)
69649
+ gap: lY(5.5)
68980
69650
  },
68981
- children: [/* @__PURE__ */ X(lY, {
69651
+ children: [/* @__PURE__ */ X(wY, {
68982
69652
  icon: t.icon || "pdf",
68983
69653
  tone: t.tone || e.tone || "pink",
68984
69654
  size: 13.2
68985
69655
  }), /* @__PURE__ */ Z("span", {
68986
- style: sY(0),
69656
+ style: SY(0),
68987
69657
  children: [a ? /* @__PURE__ */ X("a", {
68988
69658
  href: a,
68989
69659
  target: "_blank",
68990
69660
  rel: "noopener noreferrer",
68991
69661
  style: {
68992
- ...cY.strong,
68993
- fontSize: YJ(6.6, 11)
69662
+ ...CY.strong,
69663
+ fontSize: uY(6.6, 11)
68994
69664
  },
68995
69665
  children: i
68996
69666
  }) : /* @__PURE__ */ X("span", {
68997
69667
  style: {
68998
- ...cY.strong,
68999
- fontSize: YJ(6.6, 11)
69668
+ ...CY.strong,
69669
+ fontSize: uY(6.6, 11)
69000
69670
  },
69001
69671
  children: i
69002
- }), $($J(t.meta, r)) && /* @__PURE__ */ X("span", {
69003
- style: cY.small,
69004
- children: $J(t.meta, r)
69672
+ }), $(mY(t.meta, r)) && /* @__PURE__ */ X("span", {
69673
+ style: CY.small,
69674
+ children: mY(t.meta, r)
69005
69675
  })]
69006
69676
  })]
69007
69677
  }, `${n}-${i}`);
69008
69678
  })
69009
69679
  }) : null;
69010
69680
  }
69011
- function bY() {
69681
+ function FY() {
69012
69682
  return /* @__PURE__ */ X("hr", {
69013
69683
  "aria-hidden": "true",
69014
69684
  style: {
69015
69685
  border: 0,
69016
- borderTop: `0.55px solid ${QJ.border}`,
69017
- margin: `${JJ(2)} 0`,
69686
+ borderTop: `0.55px solid ${pY.border}`,
69687
+ margin: `${lY(2)} 0`,
69018
69688
  width: "100%"
69019
69689
  }
69020
69690
  });
69021
69691
  }
69022
- function xY({ block: e, data: t, ctx: n }) {
69692
+ function IY({ block: e, data: t, ctx: n }) {
69023
69693
  if (typeof e.render != "function") return null;
69024
69694
  try {
69025
69695
  return e.render(t, n) ?? null;
@@ -69027,15 +69697,15 @@ function xY({ block: e, data: t, ctx: n }) {
69027
69697
  return console.warn("[DETAILSSECTION] custom block failed:", e), null;
69028
69698
  }
69029
69699
  }
69030
- function SY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
69700
+ function LY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
69031
69701
  if (!e || !cq(e, t, n)) return null;
69032
69702
  let a = i[e.type];
69033
69703
  if (!a) return console.warn(`[DETAILSSECTION] unknown block type "${e.type}"`), /* @__PURE__ */ Z("div", {
69034
69704
  role: "alert",
69035
69705
  className: "cc-details__unknown",
69036
69706
  style: {
69037
- ...cY.small,
69038
- color: ZJ("red").fg
69707
+ ...CY.small,
69708
+ color: fY("red").fg
69039
69709
  },
69040
69710
  children: [
69041
69711
  "Unknown block type “",
@@ -69043,17 +69713,17 @@ function SY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
69043
69713
  "”"
69044
69714
  ]
69045
69715
  });
69046
- let o = e.type === "callout" ? "" : oq(e.title, t, n), s = oY(e, t, n, r), c = oq(e.empty, t, n);
69716
+ let o = e.type === "callout" ? "" : oq(e.title, t, n), s = xY(e, t, n, r), c = oq(e.empty, t, n);
69047
69717
  return s && !$(c) ? null : /* @__PURE__ */ Z("div", {
69048
69718
  className: `cc-details__block cc-details__block--${e.type}`,
69049
- style: sY(3.3),
69719
+ style: SY(3.3),
69050
69720
  children: [$(o) && /* @__PURE__ */ X("h4", {
69051
69721
  className: "cc-details__subtitle",
69052
- style: cY.sub,
69722
+ style: CY.sub,
69053
69723
  children: o
69054
69724
  }), s ? /* @__PURE__ */ X("span", {
69055
69725
  className: "cc-details__empty",
69056
- style: cY.small,
69726
+ style: CY.small,
69057
69727
  children: c
69058
69728
  }) : /* @__PURE__ */ X(a, {
69059
69729
  block: e,
@@ -69065,32 +69735,32 @@ function SY({ block: e, data: t, ctx: n, locale: r, registry: i }) {
69065
69735
  }
69066
69736
  //#endregion
69067
69737
  //#region src/components/COMBAINED_COMPONENTS/helpers/details/detailsRegistry.js
69068
- var CY = {
69069
- text: uY,
69070
- fields: dY,
69071
- list: fY,
69072
- callout: pY,
69073
- timeline: mY,
69074
- stats: hY,
69075
- people: gY,
69076
- progress: _Y,
69077
- tags: vY,
69078
- files: yY,
69079
- divider: bY,
69080
- custom: xY
69738
+ var RY = {
69739
+ text: TY,
69740
+ fields: EY,
69741
+ list: DY,
69742
+ callout: OY,
69743
+ timeline: kY,
69744
+ stats: AY,
69745
+ people: jY,
69746
+ progress: MY,
69747
+ tags: NY,
69748
+ files: PY,
69749
+ divider: FY,
69750
+ custom: IY
69081
69751
  };
69082
- function wY(e, t, n, r, i = CY) {
69083
- return !e || !cq(e, t, n) ? !1 : !i[e.type] || !oY(e, t, n, r) || $(oq(e.empty, t, n));
69752
+ function zY(e, t, n, r, i = RY) {
69753
+ return !e || !cq(e, t, n) ? !1 : !i[e.type] || !xY(e, t, n, r) || $(oq(e.empty, t, n));
69084
69754
  }
69085
69755
  //#endregion
69086
69756
  //#region src/components/COMBAINED_COMPONENTS/helpers/details/DetailsSection.jsx
69087
- var TY = {
69757
+ var BY = {
69088
69758
  gap: 6,
69089
69759
  asideWidth: 154,
69090
69760
  stackBelow: 900,
69091
69761
  wrapBelow: 640
69092
69762
  };
69093
- function EY(e) {
69763
+ function VY(e) {
69094
69764
  let [t, n] = R(0);
69095
69765
  return Io(() => {
69096
69766
  let t = e.current;
@@ -69101,7 +69771,7 @@ function EY(e) {
69101
69771
  return i.observe(t), () => i.disconnect();
69102
69772
  }, [e]), t;
69103
69773
  }
69104
- function DY(e, t, n) {
69774
+ function HY(e, t, n) {
69105
69775
  if (typeof e.onClick == "function") return e.onClick(t, n);
69106
69776
  if ($(e.tab) && typeof n?.openTab == "function") return n.openTab(String(e.tab));
69107
69777
  if ($(e.href)) {
@@ -69110,7 +69780,7 @@ function DY(e, t, n) {
69110
69780
  if (typeof n?.navigate == "function") return n.navigate(t);
69111
69781
  }
69112
69782
  }
69113
- function OY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
69783
+ function UY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
69114
69784
  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
69785
  return /* @__PURE__ */ Z("section", {
69116
69786
  className: `cc-details__card ${e.className ?? ""}`.trim(),
@@ -69119,13 +69789,13 @@ function OY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
69119
69789
  style: {
69120
69790
  display: "flex",
69121
69791
  flexDirection: "column",
69122
- gap: JJ(6.6),
69792
+ gap: lY(6.6),
69123
69793
  minWidth: 0,
69124
69794
  boxSizing: "border-box",
69125
- padding: JJ(8.81),
69126
- borderRadius: JJ(5.5),
69127
- border: `0.55px solid ${QJ.border}`,
69128
- background: QJ.surface,
69795
+ padding: lY(8.81),
69796
+ borderRadius: lY(5.5),
69797
+ border: `0.55px solid ${pY.border}`,
69798
+ background: pY.surface,
69129
69799
  ...a
69130
69800
  },
69131
69801
  children: [($(o) || $(c)) && /* @__PURE__ */ Z("header", {
@@ -69133,16 +69803,16 @@ function OY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
69133
69803
  display: "flex",
69134
69804
  alignItems: "center",
69135
69805
  justifyContent: "space-between",
69136
- gap: JJ(4)
69806
+ gap: lY(4)
69137
69807
  },
69138
69808
  children: [$(o) && /* @__PURE__ */ Z("span", {
69139
69809
  style: {
69140
69810
  display: "inline-flex",
69141
69811
  alignItems: "center",
69142
- gap: JJ(5.5),
69812
+ gap: lY(5.5),
69143
69813
  minWidth: 0
69144
69814
  },
69145
- children: [e.icon ? /* @__PURE__ */ X(lY, {
69815
+ children: [e.icon ? /* @__PURE__ */ X(wY, {
69146
69816
  icon: e.icon,
69147
69817
  tone: e.tone,
69148
69818
  size: Number(e.iconSize) > 0 ? Number(e.iconSize) : 17.6
@@ -69151,40 +69821,40 @@ function OY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
69151
69821
  className: "cc-details__title",
69152
69822
  style: {
69153
69823
  margin: 0,
69154
- fontSize: YJ(8.81, 12),
69824
+ fontSize: uY(8.81, 12),
69155
69825
  fontWeight: 600,
69156
69826
  lineHeight: 1.5,
69157
- color: QJ.ink
69827
+ color: pY.ink
69158
69828
  },
69159
69829
  children: o
69160
69830
  })]
69161
69831
  }), $(c) && /* @__PURE__ */ Z("button", {
69162
69832
  type: "button",
69163
69833
  className: "cc-details__action",
69164
- onClick: () => DY(s, t, n),
69834
+ onClick: () => HY(s, t, n),
69165
69835
  style: {
69166
69836
  marginLeft: "auto",
69167
69837
  padding: 0,
69168
69838
  border: 0,
69169
69839
  background: "none",
69170
69840
  cursor: "pointer",
69171
- color: QJ.link,
69172
- fontSize: YJ(6.05, 11),
69841
+ color: pY.link,
69842
+ fontSize: uY(6.05, 11),
69173
69843
  fontWeight: 400,
69174
69844
  lineHeight: 1.5,
69175
69845
  whiteSpace: "nowrap",
69176
69846
  display: "inline-flex",
69177
69847
  alignItems: "center",
69178
- gap: JJ(3)
69848
+ gap: lY(3)
69179
69849
  },
69180
69850
  children: [s.icon ? /* @__PURE__ */ X("span", {
69181
69851
  className: "cc-details__action-icon",
69182
69852
  "aria-hidden": "true",
69183
69853
  style: { display: "inline-flex" },
69184
- children: qJ(s.icon)
69854
+ children: cY(s.icon)
69185
69855
  }) : null, c]
69186
69856
  })]
69187
- }), (Array.isArray(e.blocks) ? e.blocks : []).map((e, a) => /* @__PURE__ */ X(SY, {
69857
+ }), (Array.isArray(e.blocks) ? e.blocks : []).map((e, a) => /* @__PURE__ */ X(LY, {
69188
69858
  block: e,
69189
69859
  data: t,
69190
69860
  ctx: n,
@@ -69193,16 +69863,16 @@ function OY({ card: e, data: t, ctx: n, locale: r, registry: i, style: a }) {
69193
69863
  }, e?.key ?? `${e?.type}-${a}`))]
69194
69864
  });
69195
69865
  }
69196
- var kY = (e, t, n, r, i) => !!e?.key && cq(e, t, n) && (Array.isArray(e.blocks) ? e.blocks : []).some((e) => wY(e, t, n, r, i));
69197
- function AY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
69866
+ 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));
69867
+ function GY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
69198
69868
  Ey();
69199
- let i = Lo(null), a = EY(i), o = e && typeof e == "object" ? e : {}, s = {
69200
- ...TY,
69869
+ let i = Lo(null), a = VY(i), o = e && typeof e == "object" ? e : {}, s = {
69870
+ ...BY,
69201
69871
  ...o.layout ?? {}
69202
69872
  }, c = o.locale, l = {
69203
- ...CY,
69873
+ ...RY,
69204
69874
  ...o.blocks && typeof o.blocks == "object" ? o.blocks : {}
69205
- }, u = JJ(s.gap), d = a > 0, f = d && a < s.stackBelow, p = d && a < s.wrapBelow, m = (Array.isArray(o.main) ? o.main : []).map((e) => (Array.isArray(e) ? e : [e]).filter((e) => kY(e, t, n, c, l))).filter((e) => e.length > 0), h = (Array.isArray(o.aside) ? o.aside : []).filter((e) => kY(e, t, n, c, l));
69875
+ }, 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
69876
  if (!m.length && !h.length) return null;
69207
69877
  let g = (e) => Number.isFinite(e.width) && e.width > 0 ? e.width : 1;
69208
69878
  return /* @__PURE__ */ Z("div", {
@@ -69238,7 +69908,7 @@ function AY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
69238
69908
  alignItems: "stretch",
69239
69909
  gap: u
69240
69910
  },
69241
- children: e.map((e) => /* @__PURE__ */ X(OY, {
69911
+ children: e.map((e) => /* @__PURE__ */ X(UY, {
69242
69912
  card: e,
69243
69913
  data: t,
69244
69914
  ctx: n,
@@ -69255,11 +69925,11 @@ function AY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
69255
69925
  gap: u,
69256
69926
  minWidth: 0,
69257
69927
  gridTemplateColumns: f && !p ? `repeat(${Math.min(h.length, 3)}, minmax(0, 1fr))` : void 0,
69258
- width: f ? "100%" : JJ(s.asideWidth),
69928
+ width: f ? "100%" : lY(s.asideWidth),
69259
69929
  flex: "none",
69260
69930
  alignItems: f && !p ? "start" : "stretch"
69261
69931
  },
69262
- children: h.map((e) => /* @__PURE__ */ X(OY, {
69932
+ children: h.map((e) => /* @__PURE__ */ X(UY, {
69263
69933
  card: e,
69264
69934
  data: t,
69265
69935
  ctx: n,
@@ -69271,8 +69941,8 @@ function AY({ config: e, data: t = {}, ctx: n = {}, className: r = "" }) {
69271
69941
  }
69272
69942
  //#endregion
69273
69943
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/MasterDetailWorkspace.jsx
69274
- var jY = ".ant-modal-wrap:not([style*=\"display: none\"]), .ant-drawer-open, .ant-picker-dropdown:not(.ant-picker-dropdown-hidden), .ant-select-dropdown:not(.ant-select-dropdown-hidden), .ant-dropdown:not(.ant-dropdown-hidden)", MY = "cc-mdw-detail-window-width", NY = 32;
69275
- function PY(e) {
69944
+ 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;
69945
+ function YY(e) {
69276
69946
  try {
69277
69947
  let t = Number(localStorage.getItem(e));
69278
69948
  return Number.isFinite(t) && t > 0 ? t : null;
@@ -69280,13 +69950,13 @@ function PY(e) {
69280
69950
  return null;
69281
69951
  }
69282
69952
  }
69283
- function FY(e, t) {
69953
+ function XY(e, t) {
69284
69954
  try {
69285
69955
  localStorage.setItem(e, String(Math.round(t)));
69286
69956
  } catch {}
69287
69957
  }
69288
- function IY({ 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 = MY, railCollapsed: m = !1, railOverlay: h = !1, onCloseRailOverlay: g, onCloseDetail: _, railWidth: v = 264, collapsedRailWidth: y = 52, compactListWidth: b = 340, className: x = "", ariaLabel: S = "Workspace" }) {
69289
- let C = s === "window", w = Lo(null), T = Lo(null), E = Lo(null), [D, O] = R(() => PY(p) ?? u), k = c ?? D;
69958
+ 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" }) {
69959
+ let C = s === "window", w = Lo(null), T = Lo(null), E = Lo(null), [D, O] = R(() => YY(p) ?? u), k = c ?? D;
69290
69960
  I(() => {
69291
69961
  if (a) {
69292
69962
  !E.current && typeof document < "u" && (E.current = document.activeElement), T.current?.focus({ preventScroll: !0 });
@@ -69297,7 +69967,7 @@ function IY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
69297
69967
  }, [a]), I(() => {
69298
69968
  if (!a || typeof document > "u") return;
69299
69969
  let e = (e) => {
69300
- e.key !== "Escape" || e.defaultPrevented || document.querySelector(jY) || _?.();
69970
+ e.key !== "Escape" || e.defaultPrevented || document.querySelector(KY) || _?.();
69301
69971
  };
69302
69972
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
69303
69973
  }, [a, _]);
@@ -69306,7 +69976,7 @@ function IY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
69306
69976
  return Math.round(Math.min(Math.max(e, d), n));
69307
69977
  }, [d, f]), j = No((e) => {
69308
69978
  let t = A(e);
69309
- return l && l(t), c ?? (O(t), FY(p, t)), t;
69979
+ return l && l(t), c ?? (O(t), XY(p, t)), t;
69310
69980
  }, [
69311
69981
  A,
69312
69982
  c,
@@ -69324,7 +69994,7 @@ function IY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
69324
69994
  };
69325
69995
  t.classList.add("cc-mdw--resizing"), window.addEventListener("pointermove", a), window.addEventListener("pointerup", o);
69326
69996
  }, N = (e) => {
69327
- e.key === "ArrowLeft" ? (e.preventDefault(), j(k + NY)) : e.key === "ArrowRight" && (e.preventDefault(), j(k - NY));
69997
+ e.key === "ArrowLeft" ? (e.preventDefault(), j(k + JY)) : e.key === "ArrowRight" && (e.preventDefault(), j(k - JY));
69328
69998
  }, ee = a ? o ? "expanded" : "open" : "closed", P = C ? m : a || m, F = !C && a && h, te = !C && a && !!r, ne = {
69329
69999
  "--cc-rail-w": `${v}px`,
69330
70000
  "--cc-rail-collapsed-w": `${y}px`,
@@ -69395,7 +70065,7 @@ function IY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
69395
70065
  }
69396
70066
  //#endregion
69397
70067
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/CreateActionButton.jsx
69398
- function LY({ primaryAction: e, menuActions: t = [], onAction: n, size: r = "large", className: i = "" }) {
70068
+ function QY({ primaryAction: e, menuActions: t = [], onAction: n, size: r = "large", className: i = "" }) {
69399
70069
  if (!e) return null;
69400
70070
  let a = t.map((e) => ({
69401
70071
  key: e.key,
@@ -69432,7 +70102,7 @@ function LY({ primaryAction: e, menuActions: t = [], onAction: n, size: r = "lar
69432
70102
  }
69433
70103
  //#endregion
69434
70104
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/WorkspaceTopBar.jsx
69435
- function RY({ 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 }) {
70105
+ 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
70106
  let [f, p] = R(t ?? ""), [m, h] = R(t ?? ""), g = Lo(t ?? ""), _ = Lo(null);
69437
70107
  (t ?? "") !== m && (h(t ?? ""), p(t ?? "")), I(() => {
69438
70108
  g.current = t ?? "";
@@ -69480,7 +70150,7 @@ function RY({ title: e = null, searchValue: t = "", onSearch: n, searchPlacehold
69480
70150
  }),
69481
70151
  /* @__PURE__ */ Z("div", {
69482
70152
  className: "cc-topbar__actions",
69483
- children: [l, /* @__PURE__ */ X(LY, {
70153
+ children: [l, /* @__PURE__ */ X(QY, {
69484
70154
  primaryAction: o,
69485
70155
  menuActions: s,
69486
70156
  onAction: c
@@ -69491,37 +70161,37 @@ function RY({ title: e = null, searchValue: t = "", onSearch: n, searchPlacehold
69491
70161
  }
69492
70162
  //#endregion
69493
70163
  //#region src/components/COMBAINED_COMPONENTS/helpers/list/compactListUtils.js
69494
- function zY(e) {
70164
+ function eX(e) {
69495
70165
  return e === !0 || e === 1 || e === "1" || String(e).toLowerCase() === "true";
69496
70166
  }
69497
- function BY(e, t) {
70167
+ function tX(e, t) {
69498
70168
  if (!(!e || !t)) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : String(t).split(".").reduce((e, t) => e?.[t], e);
69499
70169
  }
69500
- function VY(e) {
69501
- return e == null || e === "" ? "" : Array.isArray(e) ? e.map(VY).filter(Boolean).join(", ") : typeof e == "object" ? VY(e.label ?? e.value ?? e.name ?? e.title ?? "") : String(e);
70170
+ function nX(e) {
70171
+ 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
70172
  }
69503
- function HY(e) {
70173
+ function rX(e) {
69504
70174
  return e?.field ?? e?.value ?? e?.fieldName ?? e?.key ?? "";
69505
70175
  }
69506
- function UY(e) {
69507
- return (Array.isArray(e) ? e : []).filter((e) => HY(e) && e.isVisible !== !1 && e.isVisible !== 0 && e.isVisible !== "0").slice().sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0));
70176
+ function iX(e) {
70177
+ 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
70178
  }
69509
- function WY(e) {
69510
- let t = UY(e), n = t.find((e) => zY(e.isLink)) ?? t[0] ?? null, r = t.find((e) => String(e.renderType ?? "").toLowerCase() === "badge" && e !== n) ?? null;
70179
+ function aX(e) {
70180
+ 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
70181
  return {
69512
70182
  title: n,
69513
70183
  status: r,
69514
70184
  meta: t.filter((e) => e !== n && e !== r).slice(0, 2)
69515
70185
  };
69516
70186
  }
69517
- function GY(e) {
70187
+ function oX(e) {
69518
70188
  let t = e?._id ?? e?.id;
69519
70189
  return t && typeof t == "object" ? String(t.$oid ?? "") : t == null ? "" : String(t);
69520
70190
  }
69521
70191
  //#endregion
69522
70192
  //#region src/components/COMBAINED_COMPONENTS/helpers/list/CompactRecordList.jsx
69523
- function KY({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage: i, ariaLabel: a = "Records", emptyText: o = "No records" }) {
69524
- let s = Lo(null), c = e?.rows ?? [], { title: l, status: u, meta: d } = L(() => WY(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)));
70193
+ function sX({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage: i, ariaLabel: a = "Records", emptyText: o = "No records" }) {
70194
+ 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
70195
  return /* @__PURE__ */ Z("div", {
69526
70196
  className: "cc-compact-list",
69527
70197
  children: [
@@ -69550,7 +70220,7 @@ function KY({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage:
69550
70220
  t[r] && (e.preventDefault(), t[r].focus());
69551
70221
  },
69552
70222
  children: c.map((e, t) => {
69553
- let i = GY(e), a = VY(BY(e, HY(l))) || "—", o = u ? VY(BY(e, HY(u))) : "", s = d.map((t) => VY(BY(e, HY(t)))).filter(Boolean).join(" · "), c = i && String(i) === String(n ?? "");
70223
+ 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
70224
  return /* @__PURE__ */ Z("li", {
69555
70225
  "data-record-id": i,
69556
70226
  role: "option",
@@ -69610,8 +70280,8 @@ function KY({ snapshot: e, loading: t = !1, selectedId: n, onSelect: r, onPage:
69610
70280
  }
69611
70281
  //#endregion
69612
70282
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/RecordDetailPanel.jsx
69613
- var qY = [];
69614
- function JY({ component: e, id: t, moduleName: n, onDescriptionSaved: r, record: i }) {
70283
+ var cX = [];
70284
+ function lX({ component: e, id: t, moduleName: n, onDescriptionSaved: r, record: i }) {
69615
70285
  return e ? /* @__PURE__ */ X(e, {
69616
70286
  id: t,
69617
70287
  moduleName: n,
@@ -69619,8 +70289,8 @@ function JY({ component: e, id: t, moduleName: n, onDescriptionSaved: r, record:
69619
70289
  record: i
69620
70290
  }) : null;
69621
70291
  }
69622
- function YY({ tabs: e = [], activeKey: t, onChange: n, max: r = 11, alwaysShowMore: i = !1, moreEmptyLabel: a = "Nothing more" }) {
69623
- let o = e.length > r ? e.slice(0, r) : e, s = e.length > r ? e.slice(r) : qY, c = s.some((e) => e.key === t);
70292
+ function uX({ tabs: e = [], activeKey: t, onChange: n, max: r = 11, alwaysShowMore: i = !1, moreEmptyLabel: a = "Nothing more" }) {
70293
+ 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
70294
  return /* @__PURE__ */ Z("div", {
69625
70295
  className: "cc-detail__tabs",
69626
70296
  role: "tablist",
@@ -69661,7 +70331,7 @@ function YY({ tabs: e = [], activeKey: t, onChange: n, max: r = 11, alwaysShowMo
69661
70331
  })]
69662
70332
  });
69663
70333
  }
69664
- function XY({ 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 = qY, defaultTab: O = "details" }) {
70334
+ 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
70335
  let k = Lo(null), A = b != null || x != null, [j, M] = R(null);
69666
70336
  I(() => {
69667
70337
  let e = k.current;
@@ -69689,7 +70359,7 @@ function XY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
69689
70359
  }, [v, y]);
69690
70360
  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
70361
  ce.has(ne) || le(/* @__PURE__ */ new Set([...ce, ne]));
69692
- let ue = L(() => mg(e)?.tabs ?? qY, [e]), de = L(() => D.length ? [...ue, ...D] : ue, [ue, D]), fe = xp(de, {
70362
+ let ue = L(() => mg(e)?.tabs ?? cX, [e]), de = L(() => D.length ? [...ue, ...D] : ue, [ue, D]), fe = xp(de, {
69693
70363
  id: t,
69694
70364
  moduleName: e,
69695
70365
  record: oe
@@ -69757,7 +70427,7 @@ function XY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
69757
70427
  className: "cc-detail__header-end",
69758
70428
  children: x
69759
70429
  }), j) : null,
69760
- be && fe.length > 0 && /* @__PURE__ */ X(YY, {
70430
+ be && fe.length > 0 && /* @__PURE__ */ X(uX, {
69761
70431
  tabs: fe,
69762
70432
  activeKey: ye ? "details" : ne,
69763
70433
  onChange: (e) => he(e),
@@ -69803,7 +70473,7 @@ function XY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
69803
70473
  return r ? /* @__PURE__ */ X("div", {
69804
70474
  className: "cc-detail__tab",
69805
70475
  hidden: n !== ne,
69806
- children: /* @__PURE__ */ X(JY, {
70476
+ children: /* @__PURE__ */ X(lX, {
69807
70477
  component: r,
69808
70478
  id: t,
69809
70479
  moduleName: e,
@@ -69816,7 +70486,7 @@ function XY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
69816
70486
  })]
69817
70487
  });
69818
70488
  }
69819
- function ZY({ items: e = [] }) {
70489
+ function fX({ items: e = [] }) {
69820
70490
  return /* @__PURE__ */ X("ol", {
69821
70491
  className: "cc-crumbs",
69822
70492
  children: e.map((t, n) => /* @__PURE__ */ Z("li", {
@@ -69838,7 +70508,7 @@ function ZY({ items: e = [] }) {
69838
70508
  }
69839
70509
  //#endregion
69840
70510
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/useRecordFields.js
69841
- function QY(e, t, { max: n = 12, refreshKey: r = 0 } = {}) {
70511
+ function pX(e, t, { max: n = 12, refreshKey: r = 0 } = {}) {
69842
70512
  let i = `${e}|${t}|${r}`, [a, o] = R({
69843
70513
  key: "",
69844
70514
  groups: null,
@@ -69878,7 +70548,7 @@ function QY(e, t, { max: n = 12, refreshKey: r = 0 } = {}) {
69878
70548
  }
69879
70549
  //#endregion
69880
70550
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/RecordSidePanel.jsx
69881
- function $Y({ open: e, title: t, extra: n = null, footer: r = null, onClose: i, width: a = 320, className: o = "", children: s }) {
70551
+ function mX({ open: e, title: t, extra: n = null, footer: r = null, onClose: i, width: a = 320, className: o = "", children: s }) {
69882
70552
  let c = Lo(null);
69883
70553
  return I(() => {
69884
70554
  e && c.current?.focus({ preventScroll: !0 });
@@ -69921,7 +70591,7 @@ function $Y({ open: e, title: t, extra: n = null, footer: r = null, onClose: i,
69921
70591
  }
69922
70592
  //#endregion
69923
70593
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/AddRecordDrawer.jsx
69924
- function eX({ open: e, moduleName: t, title: n, width: r = 760, onClose: i, onCreated: a, formProps: o = {} }) {
70594
+ function hX({ open: e, moduleName: t, title: n, width: r = 760, onClose: i, onCreated: a, formProps: o = {} }) {
69925
70595
  return /* @__PURE__ */ X(Xo, {
69926
70596
  open: e,
69927
70597
  title: n ?? "Add",
@@ -69946,41 +70616,41 @@ function eX({ open: e, moduleName: t, title: n, width: r = 760, onClose: i, onCr
69946
70616
  }
69947
70617
  //#endregion
69948
70618
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/ModuleWorkspace.jsx
69949
- var tX = "q", nX = "f", rX = "view", iX = "lp", aX = "full", oX = [];
69950
- function sX(e) {
69951
- if (e.get(rX) === aX) return;
70619
+ var gX = "q", _X = "f", vX = "view", yX = "lp", bX = "full", xX = [];
70620
+ function SX(e) {
70621
+ if (e.get(vX) === bX) return;
69952
70622
  let t = EG(e);
69953
- t > 1 && e.set(iX, String(t)), [...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t));
70623
+ t > 1 && e.set(yX, String(t)), [...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t));
69954
70624
  }
69955
- var cX = {
70625
+ var CX = {
69956
70626
  open: "Live",
69957
70627
  connecting: "Connecting…",
69958
70628
  reconnecting: "Reconnecting…",
69959
70629
  unauthorized: "Live updates paused",
69960
70630
  idle: "Live"
69961
70631
  };
69962
- function lX(e) {
70632
+ function wX(e) {
69963
70633
  return e === "open" ? "is-open" : e === "reconnecting" || e === "connecting" ? "is-reconnecting" : "";
69964
70634
  }
69965
- function uX() {
70635
+ function TX() {
69966
70636
  try {
69967
70637
  return Number(localStorage.getItem("userId")) || 0;
69968
70638
  } catch {
69969
70639
  return 0;
69970
70640
  }
69971
70641
  }
69972
- function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, basePath: i, listTabs: a, recordParam: o = "id", searchPlaceholder: s = "Search…", searchFields: c, createActions: l, relatedTopics: u = oX, 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 }) {
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(rX) === aX), F = S === "overlay", [te, ne] = R(C), re = k.get(tX) || "", ie = k.get(nX) || "", ae = L(() => mG(ie), [ie]), [oe, se] = R(null), [ce, le] = R(0), ue = G_(), de = eq({ topics: [jK(e)] }), fe = eq({
69974
- topics: N ? [MK(e, N)] : oX,
70642
+ 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 }) {
70643
+ 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({
70644
+ topics: N ? [MK(e, N)] : xX,
69975
70645
  enabled: !!N
69976
70646
  }), pe = eq({
69977
- topics: N ? [...u, MK(e, N)] : oX,
70647
+ topics: N ? [...u, MK(e, N)] : xX,
69978
70648
  enabled: !!N
69979
70649
  }), me = XK(), { fetchData: he, loading: ge } = wG({
69980
70650
  filters: ae,
69981
70651
  search: re,
69982
70652
  refreshTick: de.tick + ce
69983
- }), _e = uX(), ve = fe.lastEvent, ye = ve && ve.actorId && ve.actorId !== _e ? ve.eventId : null, [be, xe] = R(null), Se = ye && ye !== be ? ye : null;
70653
+ }), _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
70654
  I(() => {
69985
70655
  if (!Se) return;
69986
70656
  let e = setTimeout(() => xe(Se), 6e3);
@@ -69991,7 +70661,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
69991
70661
  e(r), n && (r = DG(r, 1)), r.toString() !== k.toString() && A(r, { replace: t });
69992
70662
  }, [k, A]), we = No((e) => {
69993
70663
  e && Ce((t) => {
69994
- t.get(o) !== e && (t.set(o, e), t.delete("tab"), t.delete("subTab")), ee ? (sX(t), t.set(rX, aX)) : t.delete(rX);
70664
+ 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
70665
  });
69996
70666
  }, [
69997
70667
  ee,
@@ -70000,23 +70670,23 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70000
70670
  ]), Te = No((e) => {
70001
70671
  let t = e && typeof e == "object" && typeof e.tab == "string" ? e.tab : "";
70002
70672
  Ce((e) => {
70003
- sX(e), e.set(rX, aX), t && (e.set("tab", t), e.delete("subTab"));
70673
+ SX(e), e.set(vX, bX), t && (e.set("tab", t), e.delete("subTab"));
70004
70674
  });
70005
70675
  }, [Ce]), Ee = (e) => {
70006
- if (e.get(rX) !== aX && !e.has(iX)) return;
70007
- let t = Number(e.get(iX)) || 1;
70008
- [...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t)), e.delete(iX), t > 1 && e.set(`p${t}`, "");
70676
+ if (e.get(vX) !== bX && !e.has(yX)) return;
70677
+ let t = Number(e.get(yX)) || 1;
70678
+ [...e.keys()].filter((e) => /^p\d+$/.test(e)).forEach((t) => e.delete(t)), e.delete(yX), t > 1 && e.set(`p${t}`, "");
70009
70679
  }, De = No(() => {
70010
70680
  Ce((e) => {
70011
- Ee(e), e.delete(rX), e.delete("tab"), e.delete("subTab");
70681
+ Ee(e), e.delete(vX), e.delete("tab"), e.delete("subTab");
70012
70682
  });
70013
70683
  }, [Ce]), Oe = No(() => {
70014
70684
  Ce((e) => {
70015
- Ee(e), e.delete(o), e.delete(rX), e.delete("tab"), e.delete("subTab");
70685
+ Ee(e), e.delete(o), e.delete(vX), e.delete("tab"), e.delete("subTab");
70016
70686
  });
70017
70687
  }, [o, Ce]), ke = No((e) => {
70018
70688
  Ce((t) => {
70019
- e ? t.set(tX, e) : t.delete(tX);
70689
+ e ? t.set(gX, e) : t.delete(gX);
70020
70690
  }, {
70021
70691
  replace: !0,
70022
70692
  resetPage: !0
@@ -70024,7 +70694,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70024
70694
  }, [Ce]), Ae = No((e) => {
70025
70695
  uG(e) !== uG(ae) && Ce((t) => {
70026
70696
  let n = pG(e);
70027
- n ? t.set(nX, n) : t.delete(nX);
70697
+ n ? t.set(_X, n) : t.delete(_X);
70028
70698
  }, { resetPage: !0 });
70029
70699
  }, [ae, Ce]), je = No((e) => {
70030
70700
  if (!j) return;
@@ -70088,8 +70758,8 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70088
70758
  children: [me !== "disabled" && /* @__PURE__ */ Z("span", {
70089
70759
  className: "cc-live-pill",
70090
70760
  "aria-live": "polite",
70091
- children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${lX(me)}` }), cX[me] ?? "Offline"]
70092
- }), /* @__PURE__ */ X(LY, {
70761
+ children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${wX(me)}` }), CX[me] ?? "Offline"]
70762
+ }), /* @__PURE__ */ X(QY, {
70093
70763
  primaryAction: l?.primary ?? null,
70094
70764
  menuActions: l?.menu ?? [],
70095
70765
  onAction: Ne,
@@ -70129,7 +70799,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70129
70799
  onBackToQuick: ee ? null : De,
70130
70800
  onClose: Oe,
70131
70801
  updatedBanner: Re,
70132
- renderCreateButton: (e = {}) => /* @__PURE__ */ X(LY, {
70802
+ renderCreateButton: (e = {}) => /* @__PURE__ */ X(QY, {
70133
70803
  primaryAction: l?.primary ?? null,
70134
70804
  menuActions: l?.menu ?? [],
70135
70805
  onAction: Ne,
@@ -70145,7 +70815,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70145
70815
  onOpenFull: Te,
70146
70816
  onClose: Oe,
70147
70817
  extra: p ? p(ze) : null
70148
- }, N) : N && P && (Be = h ? h(ze) : /* @__PURE__ */ X(XY, {
70818
+ }, N) : N && P && (Be = h ? h(ze) : /* @__PURE__ */ X(dX, {
70149
70819
  moduleName: t,
70150
70820
  customConfigName: n,
70151
70821
  id: N,
@@ -70157,16 +70827,16 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70157
70827
  banner: Re,
70158
70828
  headerEndSlot: y ? null : ze.renderCreateButton({ size: "middle" }),
70159
70829
  stats: g ? g(ze) : null,
70160
- breadcrumb: /* @__PURE__ */ X(ZY, { items: [{
70830
+ breadcrumb: /* @__PURE__ */ X(fX, { items: [{
70161
70831
  label: r,
70162
70832
  onClick: Oe
70163
70833
  }, { label: _ }] })
70164
70834
  }, N));
70165
- let Ve = lX(me);
70835
+ let Ve = wX(me);
70166
70836
  return /* @__PURE__ */ Z("div", {
70167
70837
  className: `cc-module-workspace${T ? " cc-module-workspace--host-list" : ""}`,
70168
70838
  children: [
70169
- /* @__PURE__ */ X(IY, {
70839
+ /* @__PURE__ */ X(ZY, {
70170
70840
  ariaLabel: r,
70171
70841
  detailMode: "window",
70172
70842
  defaultDetailWidth: f,
@@ -70177,7 +70847,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70177
70847
  detailExpanded: P,
70178
70848
  onCloseDetail: P && !ee ? De : Oe,
70179
70849
  railCollapsed: te,
70180
- topBar: P && !y || !P && E ? null : /* @__PURE__ */ X(RY, {
70850
+ topBar: P && !y || !P && E ? null : /* @__PURE__ */ X($Y, {
70181
70851
  title: r,
70182
70852
  searchValue: re,
70183
70853
  onSearch: ke,
@@ -70191,7 +70861,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70191
70861
  children: /* @__PURE__ */ Z("span", {
70192
70862
  className: "cc-live-pill",
70193
70863
  "aria-live": "polite",
70194
- children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${Ve}` }), cX[me] ?? "Offline"]
70864
+ children: [/* @__PURE__ */ X("span", { className: `cc-live-dot ${Ve}` }), CX[me] ?? "Offline"]
70195
70865
  })
70196
70866
  })
70197
70867
  }),
@@ -70220,7 +70890,7 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70220
70890
  ariaLabel: d,
70221
70891
  children: P ? null : Be
70222
70892
  }),
70223
- /* @__PURE__ */ X(eX, {
70893
+ /* @__PURE__ */ X(hX, {
70224
70894
  open: !!oe,
70225
70895
  moduleName: oe?.moduleName,
70226
70896
  title: oe?.title,
@@ -70233,23 +70903,23 @@ function dX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
70233
70903
  }
70234
70904
  //#endregion
70235
70905
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/SearchResultsWorkspace.jsx
70236
- var fX = [];
70237
- function pX(e) {
70906
+ var DX = [];
70907
+ function OX(e) {
70238
70908
  let t = [
70239
70909
  e,
70240
70910
  e?.data,
70241
70911
  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) ?? fX;
70912
+ ], 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
70913
  return {
70244
70914
  total: n === void 0 ? null : Number(n),
70245
70915
  tabs: r
70246
70916
  };
70247
70917
  }
70248
- var mX = ["module:candidates", "module:submissions"];
70249
- function hX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r, quickViewWidth: i = 340, railWidth: a = 240, liveTopics: o = mX, 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 }) {
70250
- let [_, v] = R(m), [y, b] = R(fX), [x, S] = R(""), [C, w] = R(null), [T, E] = R({
70918
+ var kX = ["module:candidates", "module:submissions"];
70919
+ 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 }) {
70920
+ let [_, v] = R(m), [y, b] = R(DX), [x, S] = R(""), [C, w] = R(null), [T, E] = R({
70251
70921
  total: null,
70252
- tabs: fX,
70922
+ tabs: DX,
70253
70923
  durationMs: null
70254
70924
  }), D = eq({
70255
70925
  topics: o,
@@ -70260,7 +70930,7 @@ function hX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
70260
70930
  baseFetch: L(() => typeof O == "function" ? async (...e) => {
70261
70931
  let t = typeof performance < "u" ? performance.now() : Date.now(), n = await O(...e), r = typeof performance < "u" ? performance.now() : Date.now();
70262
70932
  return E({
70263
- ...pX(n),
70933
+ ...OX(n),
70264
70934
  durationMs: Math.max(0, r - t)
70265
70935
  }), n;
70266
70936
  } : O, [O]),
@@ -70355,11 +71025,11 @@ function hX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
70355
71025
  }
70356
71026
  //#endregion
70357
71027
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/SearchSummaryBanner.jsx
70358
- function gX(e) {
71028
+ function jX(e) {
70359
71029
  return (e ?? []).filter((e) => e != null && String(e).trim() !== "");
70360
71030
  }
70361
- function _X({ 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 = "" }) {
70362
- let u = gX(n), d = gX(r);
71031
+ 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 = "" }) {
71032
+ let u = jX(n), d = jX(r);
70363
71033
  return /* @__PURE__ */ Z("section", {
70364
71034
  className: `cc-search-summary ${l}`.trim(),
70365
71035
  "aria-label": `${t} summary`,
@@ -70414,7 +71084,7 @@ function _X({ icon: e = /* @__PURE__ */ X(xl, {}), title: t = "Search", criteria
70414
71084
  }
70415
71085
  //#endregion
70416
71086
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/WorkspaceAppFrame.jsx
70417
- function vX(...e) {
71087
+ function NX(...e) {
70418
71088
  try {
70419
71089
  for (let t of e) {
70420
71090
  let e = (localStorage.getItem(t) || "").trim();
@@ -70423,34 +71093,34 @@ function vX(...e) {
70423
71093
  } catch {}
70424
71094
  return "";
70425
71095
  }
70426
- function yX(e) {
71096
+ function PX(e) {
70427
71097
  return String(e || "").split(" ").filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
70428
71098
  }
70429
- function bX(e) {
71099
+ function FX(e) {
70430
71100
  let t = String(e || "").split(" ").filter(Boolean);
70431
71101
  return t.length ? `${t[0].charAt(0)}${t.length > 1 ? t.at(-1).charAt(0) : ""}`.toUpperCase() : "U";
70432
71102
  }
70433
- function xX(e) {
71103
+ function IX(e) {
70434
71104
  let t = `url("${String(e).replace(/"/g, "%22")}")`;
70435
71105
  return {
70436
71106
  WebkitMaskImage: t,
70437
71107
  maskImage: t
70438
71108
  };
70439
71109
  }
70440
- function SX() {
71110
+ function LX() {
70441
71111
  return /* @__PURE__ */ Z("span", {
70442
71112
  className: "cc-frame__logo",
70443
71113
  "aria-label": "Zinnext",
70444
71114
  children: [/* @__PURE__ */ X("span", {
70445
71115
  className: "cc-frame__logo-icon",
70446
- style: xX(lw)
71116
+ style: IX(lw)
70447
71117
  }), /* @__PURE__ */ X("span", {
70448
71118
  className: "cc-frame__logo-text",
70449
- style: xX(uw)
71119
+ style: IX(uw)
70450
71120
  })]
70451
71121
  });
70452
71122
  }
70453
- function CX({ value: e = "", placeholder: t, onSearch: n }) {
71123
+ function RX({ value: e = "", placeholder: t, onSearch: n }) {
70454
71124
  let [r, i] = R(e), [a, o] = R(e);
70455
71125
  return e !== a && (o(e), i(e)), /* @__PURE__ */ X(H, {
70456
71126
  className: "cc-frame__search-input",
@@ -70465,10 +71135,10 @@ function CX({ value: e = "", placeholder: t, onSearch: n }) {
70465
71135
  onPressEnter: () => n?.(r.trim())
70466
71136
  });
70467
71137
  }
70468
- function wX({ navItems: e = [], brand: t = null, search: n = null, headerExtra: r = null, user: i = null, userMenuItems: a = [], loginPath: o = "/login", children: s }) {
71138
+ function zX({ navItems: e = [], brand: t = null, search: n = null, headerExtra: r = null, user: i = null, userMenuItems: a = [], loginPath: o = "/login", children: s }) {
70469
71139
  let c = iu(), l = au(), [u, d] = R(!1), [p, m] = R(c.pathname);
70470
71140
  p !== c.pathname && (m(c.pathname), d(!1));
70471
- let h = yX(i?.name || vX("userName", "preferred_Username") || "User"), g = i?.subtitle ?? vX("roleName", "userRoleName"), _ = [
71141
+ let h = PX(i?.name || NX("userName", "preferred_Username") || "User"), g = i?.subtitle ?? NX("roleName", "userRoleName"), _ = [
70472
71142
  ...a,
70473
71143
  ...a.length ? [{ type: "divider" }] : [],
70474
71144
  {
@@ -70497,11 +71167,11 @@ function wX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
70497
71167
  }),
70498
71168
  /* @__PURE__ */ X("div", {
70499
71169
  className: "cc-frame__brand",
70500
- children: t ?? /* @__PURE__ */ X(SX, {})
71170
+ children: t ?? /* @__PURE__ */ X(LX, {})
70501
71171
  }),
70502
71172
  n && /* @__PURE__ */ X("div", {
70503
71173
  className: "cc-frame__search",
70504
- children: /* @__PURE__ */ X(CX, {
71174
+ children: /* @__PURE__ */ X(RX, {
70505
71175
  value: n.value ?? "",
70506
71176
  placeholder: n.placeholder ?? "Search…",
70507
71177
  onSearch: n.onSearch
@@ -70521,7 +71191,7 @@ function wX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
70521
71191
  /* @__PURE__ */ X(Vo, {
70522
71192
  size: 40,
70523
71193
  className: "cc-frame__avatar",
70524
- children: bX(h)
71194
+ children: FX(h)
70525
71195
  }),
70526
71196
  /* @__PURE__ */ Z("span", {
70527
71197
  className: "cc-frame__user-text",
@@ -70548,7 +71218,7 @@ function wX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
70548
71218
  "aria-label": "Main",
70549
71219
  children: [/* @__PURE__ */ X("div", {
70550
71220
  className: "cc-frame__nav-brand",
70551
- children: t ?? /* @__PURE__ */ X(SX, {})
71221
+ children: t ?? /* @__PURE__ */ X(LX, {})
70552
71222
  }), /* @__PURE__ */ X("ul", {
70553
71223
  className: "cc-frame__nav-list",
70554
71224
  children: e.map((e) => {
@@ -70590,53 +71260,53 @@ function wX({ navItems: e = [], brand: t = null, search: n = null, headerExtra:
70590
71260
  }
70591
71261
  //#endregion
70592
71262
  //#region src/components/COMBAINED_COMPONENTS/helpers/workspace/searchSummary.js
70593
- var TX = new Intl.NumberFormat();
70594
- function EX(e) {
71263
+ var BX = new Intl.NumberFormat();
71264
+ function VX(e) {
70595
71265
  return e == null || typeof e == "string" && e.trim() === "";
70596
71266
  }
70597
- function DX(e, t) {
71267
+ function HX(e, t) {
70598
71268
  let n = (Array.isArray(e?.options) ? e.options : []).find((e) => String(e?.value ?? e) === String(t));
70599
71269
  return String(n && typeof n == "object" ? n.label ?? n.value ?? t : t);
70600
71270
  }
70601
- function OX(e, t) {
70602
- if (EX(t)) return "";
71271
+ function UX(e, t) {
71272
+ if (VX(t)) return "";
70603
71273
  if (typeof t == "boolean") return t ? String(e?.label ?? e?.field ?? "") : "";
70604
71274
  if (typeof t == "object") {
70605
71275
  if (typeof t.format == "function") return t.format("DD MMM YYYY");
70606
71276
  if ("label" in t || "value" in t) return String(t.label ?? t.value ?? "");
70607
71277
  let e = t.from ?? t.min ?? t.start, n = t.to ?? t.max ?? t.end;
70608
- return !EX(e) || !EX(n) ? [e, n].filter((e) => !EX(e)).join("–") : "";
71278
+ return !VX(e) || !VX(n) ? [e, n].filter((e) => !VX(e)).join("–") : "";
70609
71279
  }
70610
- return DX(e, t).trim();
71280
+ return HX(e, t).trim();
70611
71281
  }
70612
- function kX(e = {}, t = [], { skip: n = [] } = {}) {
71282
+ function WX(e = {}, t = [], { skip: n = [] } = {}) {
70613
71283
  let r = new Set(n);
70614
71284
  return (t ?? []).flatMap((t) => {
70615
71285
  let n = t?.field;
70616
71286
  if (!n || r.has(n)) return [];
70617
71287
  let i = e?.[n];
70618
- if (EX(i)) return [];
71288
+ if (VX(i)) return [];
70619
71289
  if (db(t)) {
70620
71290
  let { terms: e, expression: t } = ub(i), n = e.map((e) => e.value).filter(Boolean);
70621
71291
  return n.length ? [n.join(", ")] : t.trim() ? [t.trim()] : [];
70622
71292
  }
70623
71293
  if (Array.isArray(i)) {
70624
- let e = i.map((e) => OX(t, e)).filter(Boolean);
71294
+ let e = i.map((e) => UX(t, e)).filter(Boolean);
70625
71295
  return e.length ? [e.join(", ")] : [];
70626
71296
  }
70627
- let a = OX(t, i);
71297
+ let a = UX(t, i);
70628
71298
  return a ? [a] : [];
70629
71299
  });
70630
71300
  }
70631
- function AX(e) {
71301
+ function GX(e) {
70632
71302
  return !Number.isFinite(e) || e < 0 ? "" : e < 1e4 ? `${(e / 1e3).toFixed(1)} seconds` : `${Math.round(e / 1e3)} seconds`;
70633
71303
  }
70634
- function jX(e) {
70635
- return Number.isFinite(e) ? TX.format(e) : "";
71304
+ function KX(e) {
71305
+ return Number.isFinite(e) ? BX.format(e) : "";
70636
71306
  }
70637
71307
  //#endregion
70638
71308
  //#region src/components/COMBAINED_COMPONENTS/helpers/realtime/RealtimeProvider.jsx
70639
- function MX({ enabled: e = !0, children: t }) {
71309
+ function qX({ enabled: e = !0, children: t }) {
70640
71310
  let [n] = R(() => e ? HK() : null);
70641
71311
  return I(() => {
70642
71312
  if (!n) return;
@@ -70654,10 +71324,10 @@ function MX({ enabled: e = !0, children: t }) {
70654
71324
  }
70655
71325
  //#endregion
70656
71326
  //#region src/components/COMBAINED_COMPONENTS/helpers/hub/fetchRelatedRecords.js
70657
- async function NX(e, t, n, r = {}) {
70658
- return PX(e, qG(t, n), r);
71327
+ async function JX(e, t, n, r = {}) {
71328
+ return YX(e, qG(t, n), r);
70659
71329
  }
70660
- async function PX(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a = "" } = {}) {
71330
+ async function YX(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a = "" } = {}) {
70661
71331
  let o = Array.isArray(t) ? t.filter((e) => e?.field) : [];
70662
71332
  if (!e || o.length === 0) return {
70663
71333
  rows: [],
@@ -70675,9 +71345,9 @@ async function PX(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a
70675
71345
  }
70676
71346
  //#endregion
70677
71347
  //#region src/index.js
70678
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-11T09:54:09.835Z");
70679
- var FX = qz, IX = $T(cU), LX = $T(uU), RX = $T(TU), zX = $T(LU), BX = $T(KU), VX = $T(YU), HX = $T(QU), UX = $T(tW), WX = $T(rW), GX = $T(gW), KX = $T(vW);
71348
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-12T07:42:24.150Z");
71349
+ 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
71350
  //#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, eX as AddRecordDrawer, qz as AdminDashboard, yP as AdminDashboardContent, FX 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, RX as BulkUploadPage, op as BulkUploadPanel, t as CANDIDATES_URL, eC as CONTRACT_C2C, $S as CONTRACT_W2, km as CURRENCY_SYMBOLS, Su as CalendarCard, GJ as CombinedDashboardPage, GJ as DASHBOARDPAGE, oJ as CombinedDetailViewPage, oJ as DETAILVIEWPAGE, Kq as CombinedHomePage, Kq as HOMEPAGE, KY as CompactRecordList, CP as CoreThemeAdminApp, SP as CoreThemeAdminRoutes, LY as CreateActionButton, fr as CustomPagination, Qx as DEFAULT_HOURS_POLICY, fx as DEFAULT_RESULTS_VIEW, AY as DETAILSSECTION, AY as DetailsSection, CY as DETAILS_BLOCKS, KJ 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, IX as LegacyAdminPage, na as ListView, jG as ListWithQuickView, KX as LmsHomePage, GX as LmsTestForm, CT as Login, UG as MATCH_NOTHING, eF as MailPopup, VX as ManageModules, HX as ManageSubmodules, IY as MasterDetailWorkspace, uy as ModuleRowActions, dX 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, ZY as PanelBreadcrumb, YY 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, MX as RealtimeProvider, XY as RecordDetailPanel, eJ as RecordHub, HG as RecordQuickView, $Y as RecordSidePanel, wS as RejectionReasonModal, yK as RelatedModuleTab, r as SUBMISSIONS_URL, Hx as SearchBuilderV1, hX as SearchResultsWorkspace, _X as SearchSummaryBanner, uH as SettingsPage, dT as Sidebar, yo as StatStrip, Wx as StatusBadge, uS as StatusBadgeTag, LX as StickyNotesFullPage, Kx as StylishDynamicTabs, Jx as TemplateEditor, zX as TestForm, WX 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, wX as WorkspaceAppFrame, kG as WorkspaceListView, RY as WorkspaceTopBar, UX as ZinnextTableView, BX 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, VY as displayText, r_ as downloadCsv, sG as draftToRows, Zn as evaluateShowIfWith, v as fetchJsonWithAuth, NX as fetchRelatedRecords, PX 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, jX as formatSearchCount, AX 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, WY 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, GY 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, kX 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, QY 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 };
71351
+ 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
71352
 
70683
71353
  //# sourceMappingURL=index.js.map