@realtek/core-theme 0.0.366 → 0.0.367
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/{AddFormV1-CI0IyNmL.cjs → AddFormV1-C8L2lNYb.cjs} +2 -2
- package/dist-lib/{AddFormV1-CI0IyNmL.cjs.map → AddFormV1-C8L2lNYb.cjs.map} +1 -1
- package/dist-lib/{AddFormV1-CRP2dpGK.js → AddFormV1-Crwu7zyB.js} +2 -2
- package/dist-lib/{AddFormV1-CRP2dpGK.js.map → AddFormV1-Crwu7zyB.js.map} +1 -1
- package/dist-lib/{conditionalFieldLabel-DOZto4Ei.cjs → conditionalFieldLabel-080sIUgv.cjs} +4 -4
- package/dist-lib/{conditionalFieldLabel-DOZto4Ei.cjs.map → conditionalFieldLabel-080sIUgv.cjs.map} +1 -1
- package/dist-lib/{conditionalFieldLabel-CLs7ls8w.js → conditionalFieldLabel-UV6rY1kI.js} +41 -41
- package/dist-lib/{conditionalFieldLabel-CLs7ls8w.js.map → conditionalFieldLabel-UV6rY1kI.js.map} +1 -1
- package/dist-lib/index.cjs +3 -3
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +412 -408
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { C as t, D as n, E as r, O as i, S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, k as h, l as g, m as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, w as T, x as E, y as D } from "./authApi-B0Y5f--u.js";
|
|
3
|
-
import { $ as O, $a as k, $i as A, $n as j, $r as M, $t as N, A as
|
|
3
|
+
import { $ as O, $a as k, $i as A, $n as j, $r as M, $t as N, A as ee, Aa as P, Ai as F, An as te, At as ne, B as re, Ba as ie, Bi as ae, Bn as oe, Br as se, Bt as ce, C as le, Ca as ue, Ci as de, Cn as fe, Cr as pe, Ct as me, Da as he, Di as ge, Dn as _e, Dr as ve, Dt as ye, E as be, Ea as xe, Ei as Se, En as Ce, Er as we, Et as Te, F as Ee, Fa as De, Fi as Oe, Fn as ke, Fr as Ae, Ft as je, G as Me, Ga as Ne, Gi as Pe, Gn as Fe, Gr as Ie, Gt as Le, H as Re, Ha as ze, Hi as Be, Hn as Ve, Hr as He, Ht as Ue, I as We, Ia as Ge, Ii as Ke, In as qe, Ir as Je, It as Ye, J as Xe, Ja as Ze, Ji as Qe, Jn as $e, Jr as et, Jt as tt, K as nt, Ka as rt, Ki as it, Kn as at, Kr as ot, Kt as st, L as ct, La as lt, Li as ut, Ln as dt, Lr as ft, Lt as pt, M as mt, Ma as ht, Mi as gt, Mn as _t, Mr as vt, Mt as yt, N as bt, Na as xt, Ni as St, Nn as Ct, Nr as wt, Nt as Tt, O as Et, Oa as Dt, Oi as Ot, On as kt, Or as At, Ot as jt, P as Mt, Pa as Nt, Pi as Pt, Pn as Ft, Pr as It, Pt as Lt, Q as Rt, Qa as zt, Qi as Bt, Qn as Vt, Qr as Ht, Qt as Ut, R as Wt, Ra as Gt, Ri as Kt, Rn as qt, Rr as Jt, Rt as Yt, S as Xt, Sa as Zt, Si as Qt, Sn as $t, Sr as en, St as tn, T as nn, Ta as rn, Ti as an, Tn as on, Tr as sn, Tt as cn, U as ln, Ua as un, Ui as dn, Un as fn, Ur as pn, Ut as mn, V as hn, Va as gn, Vi as _n, Vn as vn, Vr as yn, Vt as bn, W as xn, Wa as Sn, Wi as Cn, Wn as wn, Wr as Tn, Wt as En, X as Dn, Xa as On, Xi as kn, Xr as An, Xt as jn, Y as Mn, Ya as Nn, Yi as Pn, Yn as Fn, Yr as In, Yt as Ln, Z as Rn, Za as zn, Zi as Bn, Zn as Vn, Zr as Hn, Zt as Un, _ as Wn, _a as Gn, _i as Kn, _n as qn, _r as Jn, _t as Yn, a as Xn, aa as Zn, ai as Qn, an as $n, ao as er, ar as tr, at as nr, b as rr, ba as ir, bi as ar, bn as or, br as sr, bt as cr, c as lr, ca as ur, ci as dr, cn as fr, co as pr, cr as mr, ct as hr, d as gr, da as _r, di as vr, dn as yr, dr as br, dt as xr, ea as Sr, ei as Cr, en as wr, eo as Tr, er as Er, et as Dr, f as Or, fa as kr, fi as Ar, fn as jr, fr as Mr, ft as Nr, g as Pr, ga as Fr, gi as Ir, gn as Lr, gr as Rr, gt as zr, h as Br, ha as Vr, hi as Hr, hn as Ur, hr as Wr, ht as Gr, i as Kr, ia as qr, ii as Jr, in as Yr, io as Xr, ir as Zr, it as Qr, j as $r, ja as ei, ji as ti, jn as ni, jr as ri, jt as ii, k as ai, ka as oi, ki as si, kn as ci, kr as li, kt as ui, l as di, la as fi, li as pi, ln as mi, lo as hi, lr as gi, lt as _i, m as vi, ma as yi, mi as bi, mn as xi, mr as Si, mt as Ci, n as wi, na as Ti, ni as Ei, nn as Di, no as Oi, nr as ki, nt as Ai, o as ji, oa as Mi, oi as Ni, on as Pi, oo as Fi, or as Ii, ot as Li, p as Ri, pa as zi, pi as Bi, pn as Vi, pr as Hi, pt as Ui, q as Wi, qa as Gi, qi as Ki, qn as qi, qr as Ji, qt as Yi, r as Xi, ra as Zi, ri as Qi, rn as $i, ro as ea, rr as ta, rt as na, s as ra, sa as ia, si as aa, sn as oa, so as sa, sr as ca, st as la, t as ua, ta as da, ti as fa, tn as pa, to as ma, tr as ha, tt as ga, u as _a, ua as va, ui as ya, un as ba, uo as xa, ut as Sa, v as Ca, va as wa, vi as Ta, vn as Ea, vr as Da, vt as Oa, w as ka, wa as Aa, wi as ja, wn as Ma, wr as Na, x as Pa, xa as Fa, xi as Ia, xn as La, xr as Ra, xt as za, y as Ba, ya as Va, yi as Ha, yn as Ua, yr as Wa, yt as Ga, z as Ka, za as qa, zi as Ja, zn as Ya, zr as Xa, zt as Za } from "./conditionalFieldLabel-UV6rY1kI.js";
|
|
4
4
|
import { r as Qa, t as $a } from "./DocumentViewer-GIJm9bdf.js";
|
|
5
|
-
import { a as eo, c as to, d as no, f as ro, i as io, l as ao, m as oo, o as so, p as co, r as lo, s as uo, t as fo, u as po } from "./AddFormV1-
|
|
5
|
+
import { a as eo, c as to, d as no, f as ro, i as io, l as ao, m as oo, o as so, p as co, r as lo, s as uo, t as fo, u as po } from "./AddFormV1-Crwu7zyB.js";
|
|
6
6
|
import { r as mo } from "./diceCandidateMapper-DqBO4EhL.js";
|
|
7
7
|
import { r as ho } from "./formGroupsCache-JeC59oNe.js";
|
|
8
8
|
import { r as go } from "./addFormApi-TMxokB57.js";
|
|
@@ -196,9 +196,9 @@ function xu({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
|
|
|
196
196
|
} : {
|
|
197
197
|
...e,
|
|
198
198
|
month: e.month + 1
|
|
199
|
-
})),
|
|
199
|
+
})), ee = _u(gu(b.year, b.month, n), 7), P = {};
|
|
200
200
|
t !== void 0 && (t || []).forEach((e) => {
|
|
201
|
-
e?.date && (
|
|
201
|
+
e?.date && (P[e.date] = e);
|
|
202
202
|
});
|
|
203
203
|
let F = o ?? C, te = l ?? `${fu[b.month]} ${b.year}`;
|
|
204
204
|
return /* @__PURE__ */ X(Uo, {
|
|
@@ -256,7 +256,7 @@ function xu({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
|
|
|
256
256
|
}),
|
|
257
257
|
/* @__PURE__ */ X("div", {
|
|
258
258
|
className: "calendar-weeks",
|
|
259
|
-
children:
|
|
259
|
+
children: ee.map((e, t) => /* @__PURE__ */ X(ds, {
|
|
260
260
|
gutter: [6, 6],
|
|
261
261
|
align: "top",
|
|
262
262
|
className: "calendar-week-row",
|
|
@@ -267,7 +267,7 @@ function xu({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
|
|
|
267
267
|
}, t);
|
|
268
268
|
let n = `${b.year}-${hu(b.month + 1)}-${hu(e.day)}`, a = e.day === _.getDate() && b.month === _.getMonth() && b.year === _.getFullYear();
|
|
269
269
|
if (g) {
|
|
270
|
-
let o =
|
|
270
|
+
let o = P[n] ?? null;
|
|
271
271
|
return r ? /* @__PURE__ */ X(B, {
|
|
272
272
|
flex: "1",
|
|
273
273
|
children: r(n, o, {
|
|
@@ -2890,7 +2890,7 @@ function ap({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
|
|
|
2890
2890
|
y(!1);
|
|
2891
2891
|
}
|
|
2892
2892
|
}
|
|
2893
|
-
}, [d]),
|
|
2893
|
+
}, [d]), ee = Mo(async (e) => {
|
|
2894
2894
|
if (!e || b) return;
|
|
2895
2895
|
k((e) => e + 1);
|
|
2896
2896
|
let t = rp(e, {
|
|
@@ -2918,7 +2918,7 @@ function ap({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
|
|
|
2918
2918
|
u,
|
|
2919
2919
|
f,
|
|
2920
2920
|
b
|
|
2921
|
-
]),
|
|
2921
|
+
]), P = () => {
|
|
2922
2922
|
b || h.current?.click();
|
|
2923
2923
|
}, F = [
|
|
2924
2924
|
"bulk-upload-dropzone",
|
|
@@ -2985,16 +2985,16 @@ function ap({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
|
|
|
2985
2985
|
"aria-disabled": b,
|
|
2986
2986
|
"aria-label": "Upload the filled file — click to browse, or drop a file here",
|
|
2987
2987
|
className: F,
|
|
2988
|
-
onClick:
|
|
2988
|
+
onClick: P,
|
|
2989
2989
|
onKeyDown: (e) => {
|
|
2990
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
2990
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), P());
|
|
2991
2991
|
},
|
|
2992
2992
|
onDragOver: (e) => {
|
|
2993
2993
|
e.preventDefault(), b || _(!0);
|
|
2994
2994
|
},
|
|
2995
2995
|
onDragLeave: () => _(!1),
|
|
2996
2996
|
onDrop: (e) => {
|
|
2997
|
-
e.preventDefault(), _(!1),
|
|
2997
|
+
e.preventDefault(), _(!1), ee(e.dataTransfer.files?.[0]);
|
|
2998
2998
|
},
|
|
2999
2999
|
children: [
|
|
3000
3000
|
/* @__PURE__ */ X(ip, {}),
|
|
@@ -3037,7 +3037,7 @@ function ap({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
|
|
|
3037
3037
|
hidden: !0,
|
|
3038
3038
|
type: "file",
|
|
3039
3039
|
accept: j,
|
|
3040
|
-
onChange: (e) =>
|
|
3040
|
+
onChange: (e) => ee(e.target.files?.[0])
|
|
3041
3041
|
}, O),
|
|
3042
3042
|
S ? /* @__PURE__ */ Z("div", {
|
|
3043
3043
|
className: `bulk-upload-file ${w ? "is-error" : ""}`,
|
|
@@ -4672,16 +4672,16 @@ function Fh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
4672
4672
|
w,
|
|
4673
4673
|
T
|
|
4674
4674
|
]);
|
|
4675
|
-
let
|
|
4675
|
+
let ee = L(() => Eh(l).filter((e) => typeof o != "function" || o(e)), [l, o]), P = L(() => {
|
|
4676
4676
|
let e = /* @__PURE__ */ new Set();
|
|
4677
4677
|
return l.forEach((t) => {
|
|
4678
4678
|
Ch(t.appendHistory) && [t.historyField, ...t.historyFields || []].filter(Boolean).forEach((t) => e.add(t));
|
|
4679
4679
|
}), e;
|
|
4680
4680
|
}, [l]);
|
|
4681
4681
|
I(() => {
|
|
4682
|
-
if (!O || !
|
|
4682
|
+
if (!O || !P.size) return;
|
|
4683
4683
|
let e = /* @__PURE__ */ new Set();
|
|
4684
|
-
if (
|
|
4684
|
+
if (P.forEach((t) => {
|
|
4685
4685
|
let n = O[t];
|
|
4686
4686
|
Array.isArray(n) && n.forEach((t) => {
|
|
4687
4687
|
let n = t?.updatedBy ?? t?.changedBy;
|
|
@@ -4702,7 +4702,7 @@ function Fh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
4702
4702
|
};
|
|
4703
4703
|
}, [
|
|
4704
4704
|
O,
|
|
4705
|
-
|
|
4705
|
+
P,
|
|
4706
4706
|
A,
|
|
4707
4707
|
M
|
|
4708
4708
|
]);
|
|
@@ -4734,7 +4734,7 @@ function Fh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
4734
4734
|
}, re = L(() => {
|
|
4735
4735
|
if (!O) return [];
|
|
4736
4736
|
let e = um(l), t = [];
|
|
4737
|
-
return
|
|
4737
|
+
return P.forEach((n) => {
|
|
4738
4738
|
let r = O[n];
|
|
4739
4739
|
if (!Array.isArray(r) || r.length === 0) return;
|
|
4740
4740
|
let i = r.filter((e) => e && (e.timestamp || e.updatedAt || e.changedAt));
|
|
@@ -4747,20 +4747,20 @@ function Fh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
4747
4747
|
}, [
|
|
4748
4748
|
O,
|
|
4749
4749
|
l,
|
|
4750
|
-
|
|
4750
|
+
P,
|
|
4751
4751
|
A,
|
|
4752
4752
|
M
|
|
4753
4753
|
]), ie = L(() => {
|
|
4754
4754
|
let e = new Set(re.map((e) => e.key));
|
|
4755
|
-
return e.size ?
|
|
4755
|
+
return e.size ? ee.map((t) => {
|
|
4756
4756
|
if (!Ch(t.appendHistory)) return t;
|
|
4757
4757
|
let n = [t.historyField, ...t.historyFields || []].filter((t) => t && e.has(t));
|
|
4758
4758
|
return n.length ? {
|
|
4759
4759
|
...t,
|
|
4760
4760
|
fields: t.fields.filter((e) => !n.some((t) => String(e.field ?? "").startsWith(`${t}.`)))
|
|
4761
4761
|
} : t;
|
|
4762
|
-
}).filter((e) => e.fields.length) :
|
|
4763
|
-
}, [
|
|
4762
|
+
}).filter((e) => e.fields.length) : ee;
|
|
4763
|
+
}, [ee, re]), ae = L(() => {
|
|
4764
4764
|
let e = new Set(re.map((e) => e.key)), t = l.find((t) => Ch(t.appendHistory) && [t.historyField, ...t.historyFields || []].some((t) => t && e.has(t)));
|
|
4765
4765
|
return t?.label ?? t?.name ?? "Rate Details";
|
|
4766
4766
|
}, [l, re]), oe = e === "job", se = L(() => oe ? Th(l) : null, [oe, l]), ce = () => {
|
|
@@ -6688,7 +6688,7 @@ function B_({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
6688
6688
|
g,
|
|
6689
6689
|
j
|
|
6690
6690
|
]);
|
|
6691
|
-
let [
|
|
6691
|
+
let [ee, P] = R({
|
|
6692
6692
|
signature: "",
|
|
6693
6693
|
groups: {}
|
|
6694
6694
|
}), F = Cg(r);
|
|
@@ -6704,12 +6704,12 @@ function B_({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
6704
6704
|
}).catch(() => []);
|
|
6705
6705
|
return [e.key, Array.isArray(t) ? t : []];
|
|
6706
6706
|
})).then((e) => {
|
|
6707
|
-
t ||
|
|
6707
|
+
t || P({
|
|
6708
6708
|
signature: F,
|
|
6709
6709
|
groups: Object.fromEntries(e)
|
|
6710
6710
|
});
|
|
6711
6711
|
}).catch(() => {
|
|
6712
|
-
t ||
|
|
6712
|
+
t || P({
|
|
6713
6713
|
signature: F,
|
|
6714
6714
|
groups: {}
|
|
6715
6715
|
});
|
|
@@ -6717,7 +6717,7 @@ function B_({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
6717
6717
|
t = !0;
|
|
6718
6718
|
};
|
|
6719
6719
|
}, [F, g]);
|
|
6720
|
-
let te = L(() => Tg(
|
|
6720
|
+
let te = L(() => Tg(ee.signature === F ? ee.groups : {}), [ee, F]), re = L(() => hg(N, x, { aux: te }), [
|
|
6721
6721
|
N,
|
|
6722
6722
|
x,
|
|
6723
6723
|
te
|
|
@@ -7784,7 +7784,7 @@ function zv({ field: e, form: t, name: n, value: r, checked: i, fileList: o, mod
|
|
|
7784
7784
|
open: !1,
|
|
7785
7785
|
docs: [],
|
|
7786
7786
|
index: 0
|
|
7787
|
-
}), [j, M] = R(null), [N,
|
|
7787
|
+
}), [j, M] = R(null), [N, ee] = R(0), P = Io([]), F = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", te = e.lookupFilterValueFrom ? Rr(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], ne = e.lookupFilterValueFrom && F ? [...n.slice(0, 2), ...Rr(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], re = V.useWatch(te, t), ie = V.useWatch(ne, t), ae = cv(ie) ? re : ie, oe = e.lookupFilterValueFrom ? u[e.lookupFilterValueFrom] : void 0, ce = cv(oe) ? ae : oe, le = Io(Ur);
|
|
7788
7788
|
I(() => {
|
|
7789
7789
|
if (!e.lookupFilterField || !e.lookupFilterValueFrom) return;
|
|
7790
7790
|
let r = le.current;
|
|
@@ -7904,7 +7904,7 @@ function zv({ field: e, form: t, name: n, value: r, checked: i, fileList: o, mod
|
|
|
7904
7904
|
})) : [];
|
|
7905
7905
|
}
|
|
7906
7906
|
}
|
|
7907
|
-
n || (
|
|
7907
|
+
n || (P.current = Array.isArray(r) ? r : [], b(dv(P.current)));
|
|
7908
7908
|
} catch (t) {
|
|
7909
7909
|
console.error(`[EditFormV1] Failed to fetch options for "${e.field}":`, t), n || b([]);
|
|
7910
7910
|
} finally {
|
|
@@ -7978,7 +7978,7 @@ function zv({ field: e, form: t, name: n, value: r, checked: i, fileList: o, mod
|
|
|
7978
7978
|
scopeValues: u,
|
|
7979
7979
|
ownValue: r,
|
|
7980
7980
|
onDone: (r, i) => {
|
|
7981
|
-
|
|
7981
|
+
ee((e) => e + 1);
|
|
7982
7982
|
let a = It(e) !== "array" && !e.multiSelect && !e.multiple;
|
|
7983
7983
|
r === "create" && i != null && a && ((e.clearGroupOnChange || e.linkedClearField) && rr(t, e, n, h), st(se(e) ? { value: i } : i));
|
|
7984
7984
|
}
|
|
@@ -8065,8 +8065,8 @@ function zv({ field: e, form: t, name: n, value: r, checked: i, fileList: o, mod
|
|
|
8065
8065
|
let r = a ? [...n.slice(0, 2), ...Rr(e)] : Rr(e);
|
|
8066
8066
|
t.setFieldValue(r, null);
|
|
8067
8067
|
});
|
|
8068
|
-
else if (
|
|
8069
|
-
let i = e.valueField ?? "_id", o =
|
|
8068
|
+
else if (P.current.length > 0) {
|
|
8069
|
+
let i = e.valueField ?? "_id", o = P.current.find((e) => gv(e, i) === r || e._id === r || e.id === r || e.value === r);
|
|
8070
8070
|
o && e.autofillFrom.forEach(({ optionKey: e, targetField: r }) => {
|
|
8071
8071
|
let i = gv(o, e) ?? o.extraData?.[e] ?? null, s = a ? [...n.slice(0, 2), ...Rr(r)] : Rr(r);
|
|
8072
8072
|
t.setFieldValue(s, i);
|
|
@@ -8381,7 +8381,7 @@ function Vv(e) {
|
|
|
8381
8381
|
});
|
|
8382
8382
|
}
|
|
8383
8383
|
function Hv({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId: i, region: a, breadcrumbItems: s = [], submitText: c = "Update", cancelPath: l, onSuccess: u, wizardAdapter: d = null, wizardAdapterProps: f = null, fieldNameMap: p = {}, onFileUpload: m = null, onBeforeSubmit: h = null, extraPayload: g = null, embedded: _ = !1, onCancel: v = null, wizard: y, hideFooter: x = !1, uniqueCheckDebounceMs: S = 0, formGroups: C, initialValues: w = null, onSubmit: T = null }) {
|
|
8384
|
-
let E = Array.isArray(C) ? C : null, D = E ? null : e, k = iu(), A = ru(), [M] = V.useForm(), [N,
|
|
8384
|
+
let E = Array.isArray(C) ? C : null, D = E ? null : e, k = iu(), A = ru(), [M] = V.useForm(), [N, P] = R(0);
|
|
8385
8385
|
I(() => (r && o(r), () => {
|
|
8386
8386
|
r && b();
|
|
8387
8387
|
}), [r]);
|
|
@@ -8463,7 +8463,7 @@ function Hv({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
|
|
|
8463
8463
|
je,
|
|
8464
8464
|
xe
|
|
8465
8465
|
]), Ne = Yr(Me), Pe = typeof y == "boolean" ? y : Ne, Fe = V.useWatch(Pe ? [] : xv, M), Ie = L(() => Me.filter((e) => !e.showIf?.field || fv(e.showIf, gv(Fe ?? {}, e.showIf.field))), [Me, Fe]), Le = L(() => $i(Ie), [Ie]), Re = Math.min(N, Math.max(0, Le.length - 1)), ze = Pe && Le.at(-1)?.content?.type === "success" ? Le.length - 1 : -1, Be = Re === ze, Ve = Re + 1 === ze, Ue = (e) => {
|
|
8466
|
-
|
|
8466
|
+
P(e), ne({});
|
|
8467
8467
|
}, We = mt({
|
|
8468
8468
|
enabled: Pe && !d && !ce,
|
|
8469
8469
|
steps: Le,
|
|
@@ -8835,7 +8835,7 @@ function Hv({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
|
|
|
8835
8835
|
ne({});
|
|
8836
8836
|
let t = Pe ? fr(Le, e?.errorFields?.[0]?.name) : -1;
|
|
8837
8837
|
if (Pe && We.onSubmitFailed(e, t), t >= 0 && t !== Re) {
|
|
8838
|
-
|
|
8838
|
+
P(t), requestAnimationFrame(() => lr(e, M));
|
|
8839
8839
|
return;
|
|
8840
8840
|
}
|
|
8841
8841
|
lr(e, M);
|
|
@@ -8960,14 +8960,14 @@ function Hv({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
|
|
|
8960
8960
|
hidden: !0,
|
|
8961
8961
|
noStyle: !0,
|
|
8962
8962
|
children: /* @__PURE__ */ X(Wo, {})
|
|
8963
|
-
})] }) : j,
|
|
8963
|
+
})] }) : j, ee = t.prefillWhen?.length ? /* @__PURE__ */ X(rv, {
|
|
8964
8964
|
form: M,
|
|
8965
8965
|
rules: t.prefillWhen,
|
|
8966
8966
|
watchPaths: on(t.prefillWhen, u, vn, h),
|
|
8967
8967
|
targetPath: u,
|
|
8968
8968
|
resetOnNoMatch: t.prefillWhenReset !== !1
|
|
8969
|
-
}, `${t.field}-prefillWhen`) : null,
|
|
8970
|
-
return Rt(t.showIf) ||
|
|
8969
|
+
}, `${t.field}-prefillWhen`) : null, P = !o.inline && ua(t).length > 0, F = (e) => P ? ji(t, b, (t) => e(wi(t, h(t.field)))) : b;
|
|
8970
|
+
return Rt(t.showIf) || P ? /* @__PURE__ */ Z(wo.Fragment, { children: [ee, /* @__PURE__ */ X(V.Item, {
|
|
8971
8971
|
shouldUpdate: !0,
|
|
8972
8972
|
noStyle: !0,
|
|
8973
8973
|
children: ({ getFieldValue: e }) => !Rt(t.showIf) || Lt(t.showIf, e, h) ? /* @__PURE__ */ X(B, {
|
|
@@ -8977,7 +8977,7 @@ function Hv({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
|
|
|
8977
8977
|
className: o.inline ? "v1-combine-cell" : void 0,
|
|
8978
8978
|
children: N
|
|
8979
8979
|
}) : null
|
|
8980
|
-
})] }, t.field) : /* @__PURE__ */ Z(wo.Fragment, { children: [
|
|
8980
|
+
})] }, t.field) : /* @__PURE__ */ Z(wo.Fragment, { children: [ee, /* @__PURE__ */ X(B, {
|
|
8981
8981
|
xs: 24,
|
|
8982
8982
|
md: b,
|
|
8983
8983
|
style: C,
|
|
@@ -9439,7 +9439,7 @@ function Hv({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
|
|
|
9439
9439
|
form: M,
|
|
9440
9440
|
onGoToStep: Ue,
|
|
9441
9441
|
moduleName: e,
|
|
9442
|
-
notice: /* @__PURE__ */ X(
|
|
9442
|
+
notice: /* @__PURE__ */ X(ee, {
|
|
9443
9443
|
runtime: We,
|
|
9444
9444
|
current: Re
|
|
9445
9445
|
}),
|
|
@@ -10370,7 +10370,7 @@ function zy({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
10370
10370
|
} });
|
|
10371
10371
|
}
|
|
10372
10372
|
}
|
|
10373
|
-
})),
|
|
10373
|
+
})), ee = typeof o == "number" && typeof s == "number", P = ee ? {
|
|
10374
10374
|
current: o,
|
|
10375
10375
|
pageSize: s
|
|
10376
10376
|
} : E, F = L(() => t.map((e) => ({
|
|
@@ -10387,14 +10387,14 @@ function zy({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
10387
10387
|
u,
|
|
10388
10388
|
b
|
|
10389
10389
|
]), re = typeof a == "number" ? a : b.trim() ? ne.length : r.length, ie = L(() => {
|
|
10390
|
-
if (
|
|
10391
|
-
let e = (
|
|
10392
|
-
return ne.slice(e, e +
|
|
10390
|
+
if (ee) return ne;
|
|
10391
|
+
let e = (P.current - 1) * P.pageSize;
|
|
10392
|
+
return ne.slice(e, e + P.pageSize);
|
|
10393
10393
|
}, [
|
|
10394
|
-
|
|
10395
|
-
|
|
10394
|
+
P.current,
|
|
10395
|
+
P.pageSize,
|
|
10396
10396
|
ne,
|
|
10397
|
-
|
|
10397
|
+
ee
|
|
10398
10398
|
]), ae = L(() => F.filter((e) => te.includes(e.key)).map((e) => ({
|
|
10399
10399
|
title: e.label,
|
|
10400
10400
|
dataIndex: e.key,
|
|
@@ -10459,7 +10459,7 @@ function zy({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
10459
10459
|
let t = e.target.value;
|
|
10460
10460
|
x(t), u ? (clearTimeout(M.current), M.current = setTimeout(() => {
|
|
10461
10461
|
u(t), c?.(1);
|
|
10462
|
-
}, 350)) :
|
|
10462
|
+
}, 350)) : ee ? c?.(1) : D({
|
|
10463
10463
|
...E,
|
|
10464
10464
|
current: 1
|
|
10465
10465
|
});
|
|
@@ -10561,17 +10561,17 @@ function zy({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
10561
10561
|
})
|
|
10562
10562
|
}),
|
|
10563
10563
|
/* @__PURE__ */ X(aa, {
|
|
10564
|
-
current:
|
|
10565
|
-
pageSize:
|
|
10564
|
+
current: P.current,
|
|
10565
|
+
pageSize: P.pageSize,
|
|
10566
10566
|
total: re,
|
|
10567
10567
|
onChange: (e) => {
|
|
10568
|
-
|
|
10568
|
+
ee ? c?.(e) : D((t) => ({
|
|
10569
10569
|
...t,
|
|
10570
10570
|
current: e
|
|
10571
10571
|
}));
|
|
10572
10572
|
},
|
|
10573
10573
|
onPageSizeChange: (e) => {
|
|
10574
|
-
|
|
10574
|
+
ee ? l?.(e) : D({
|
|
10575
10575
|
current: 1,
|
|
10576
10576
|
pageSize: e
|
|
10577
10577
|
});
|
|
@@ -12058,7 +12058,7 @@ function Vx({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
12058
12058
|
let [l] = V.useForm(), u = iu(), [d, f] = R(null), [p, m] = R(!0), [h, g] = R(""), [_, y] = R(0), [b, x] = R("traditional"), [S, C] = R("internal"), [w, T] = R({}), [E, D] = R([]), [O, k] = R(Mx), [A, j] = R({
|
|
12059
12059
|
current: 1,
|
|
12060
12060
|
pageSize: 10
|
|
12061
|
-
}), [M, N] = R(null), [
|
|
12061
|
+
}), [M, N] = R(null), [ee, P] = R({}), [F, te] = R({}), [ne, re] = R(null), [ie, ae] = R(0), [oe, se] = R(null), [ce, le] = R(null), [ue, de] = R(!1), fe = Po(), [pe, me] = R(null), he = Io(!1), ge = Mo((e) => {
|
|
12062
12062
|
he.current && (he.current = !1, e && de(!0));
|
|
12063
12063
|
}, []);
|
|
12064
12064
|
I(() => {
|
|
@@ -12261,7 +12261,7 @@ function Vx({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
12261
12261
|
he.current = !1, de(!1), l.resetFields(), te({}), T({}), k(Mx), D([]), C("internal"), re(null), se(null);
|
|
12262
12262
|
}, Ie = Mo(async (e, t) => {
|
|
12263
12263
|
let n = uo(e, t);
|
|
12264
|
-
|
|
12264
|
+
P((e) => ({
|
|
12265
12265
|
...e,
|
|
12266
12266
|
[n]: {
|
|
12267
12267
|
...e[n],
|
|
@@ -12269,7 +12269,7 @@ function Vx({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
12269
12269
|
}
|
|
12270
12270
|
}));
|
|
12271
12271
|
try {
|
|
12272
|
-
await po(e, t),
|
|
12272
|
+
await po(e, t), P((e) => ({
|
|
12273
12273
|
...e,
|
|
12274
12274
|
[n]: {
|
|
12275
12275
|
loading: !1,
|
|
@@ -12277,7 +12277,7 @@ function Vx({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
12277
12277
|
}
|
|
12278
12278
|
})), J.success(e.successMessage);
|
|
12279
12279
|
} catch (t) {
|
|
12280
|
-
|
|
12280
|
+
P((e) => ({
|
|
12281
12281
|
...e,
|
|
12282
12282
|
[n]: { loading: !1 }
|
|
12283
12283
|
})), J.error(t?.message || e.errorMessage);
|
|
@@ -12306,7 +12306,7 @@ function Vx({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
12306
12306
|
sorter: !1,
|
|
12307
12307
|
render: (t, n) => {
|
|
12308
12308
|
if (!no(e, n, S)) return null;
|
|
12309
|
-
let r = uo(e, n), i =
|
|
12309
|
+
let r = uo(e, n), i = ee[r] ?? {};
|
|
12310
12310
|
return /* @__PURE__ */ X(z, {
|
|
12311
12311
|
type: "primary",
|
|
12312
12312
|
size: "small",
|
|
@@ -12322,7 +12322,7 @@ function Vx({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
12322
12322
|
O.fields,
|
|
12323
12323
|
O.rows,
|
|
12324
12324
|
S,
|
|
12325
|
-
|
|
12325
|
+
ee
|
|
12326
12326
|
]), Re = L(() => s ?? (i ? { jobId: i } : null), [s, i]), ze = L(() => {
|
|
12327
12327
|
if (!Re) return O.actions;
|
|
12328
12328
|
let e = (t) => ({
|
|
@@ -15013,7 +15013,7 @@ function LC({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
15013
15013
|
t,
|
|
15014
15014
|
n,
|
|
15015
15015
|
p
|
|
15016
|
-
]), h = ZS(f), [g, _] = R(m.proposedRate), [v, y] = R(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [b, x] = R(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [S, C] = R(t?.referral?.isNewReferral ? 0 : t?.referral?.referalRate ?? t?.referral?.referralRate ?? t?.engagement?.financeApproval?.referralRate ?? 0), [w, T] = R(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [E, D] = R(!1), [O, k] = R(!1), [A, j] = R(""), [M, N] = R(!1), [
|
|
15016
|
+
]), h = ZS(f), [g, _] = R(m.proposedRate), [v, y] = R(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [b, x] = R(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [S, C] = R(t?.referral?.isNewReferral ? 0 : t?.referral?.referalRate ?? t?.referral?.referralRate ?? t?.engagement?.financeApproval?.referralRate ?? 0), [w, T] = R(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [E, D] = R(!1), [O, k] = R(!1), [A, j] = R(""), [M, N] = R(!1), [ee, P] = R(""), [F, te] = R(!1), [ne, re] = R(""), ie = !!f.sections.rateBreakdown?.editToggle, [ae, oe] = R(!1), se = !ie || ae, [ce, le] = R(!1), [ue, de] = R(!1), [fe, pe] = R({
|
|
15017
15017
|
open: !1,
|
|
15018
15018
|
title: "",
|
|
15019
15019
|
rows: []
|
|
@@ -15163,7 +15163,7 @@ function LC({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
15163
15163
|
N(!0);
|
|
15164
15164
|
return;
|
|
15165
15165
|
}
|
|
15166
|
-
if (e.requireCategory && !
|
|
15166
|
+
if (e.requireCategory && !ee) {
|
|
15167
15167
|
te(!0);
|
|
15168
15168
|
return;
|
|
15169
15169
|
}
|
|
@@ -15188,7 +15188,7 @@ function LC({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
15188
15188
|
},
|
|
15189
15189
|
referralEnabled: ve,
|
|
15190
15190
|
reason: A.trim(),
|
|
15191
|
-
category:
|
|
15191
|
+
category: ee,
|
|
15192
15192
|
rateHistory: f.persist?.rateHistory ? wC(De, c) : void 0
|
|
15193
15193
|
});
|
|
15194
15194
|
} catch (e) {
|
|
@@ -15764,7 +15764,7 @@ function LC({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
15764
15764
|
/* @__PURE__ */ X(U, {
|
|
15765
15765
|
id: "fa-rejection-category",
|
|
15766
15766
|
placeholder: "Select where to return this rejection",
|
|
15767
|
-
value:
|
|
15767
|
+
value: ee || void 0,
|
|
15768
15768
|
status: F ? "error" : "",
|
|
15769
15769
|
options: [{
|
|
15770
15770
|
value: "submission",
|
|
@@ -15774,7 +15774,7 @@ function LC({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
15774
15774
|
label: "Onboarding"
|
|
15775
15775
|
}],
|
|
15776
15776
|
onChange: (e) => {
|
|
15777
|
-
|
|
15777
|
+
P(e), te(!1);
|
|
15778
15778
|
},
|
|
15779
15779
|
style: {
|
|
15780
15780
|
width: "100%",
|
|
@@ -19976,11 +19976,11 @@ function eD({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
|
|
|
19976
19976
|
y([]);
|
|
19977
19977
|
}
|
|
19978
19978
|
}
|
|
19979
|
-
function
|
|
19979
|
+
function ee(t) {
|
|
19980
19980
|
let n = e.secondaryFields ?? [];
|
|
19981
19981
|
!t || n.includes(t) || k({ secondaryFields: [...n, t] });
|
|
19982
19982
|
}
|
|
19983
|
-
function
|
|
19983
|
+
function P(t) {
|
|
19984
19984
|
k({ secondaryFields: (e.secondaryFields ?? []).filter((e) => e !== t) });
|
|
19985
19985
|
}
|
|
19986
19986
|
function F() {
|
|
@@ -20082,8 +20082,8 @@ function eD({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
|
|
|
20082
20082
|
subfields: v,
|
|
20083
20083
|
onCollectionChange: M,
|
|
20084
20084
|
onLookupFieldChange: N,
|
|
20085
|
-
addSecondaryField:
|
|
20086
|
-
removeSecondaryField:
|
|
20085
|
+
addSecondaryField: ee,
|
|
20086
|
+
removeSecondaryField: P,
|
|
20087
20087
|
addActionButton: F,
|
|
20088
20088
|
updateActionButton: te,
|
|
20089
20089
|
removeActionButton: ne,
|
|
@@ -20214,8 +20214,8 @@ function rD({ role: e, configType: t }) {
|
|
|
20214
20214
|
e = !0;
|
|
20215
20215
|
};
|
|
20216
20216
|
}, [M]);
|
|
20217
|
-
let N = !!S && O,
|
|
20218
|
-
function
|
|
20217
|
+
let N = !!S && O, ee = N ? E.key === M ? E.fields : [] : n[m] ?? [];
|
|
20218
|
+
function P(e, t) {
|
|
20219
20219
|
if (N) {
|
|
20220
20220
|
D((e) => ({
|
|
20221
20221
|
...e,
|
|
@@ -20229,13 +20229,13 @@ function rD({ role: e, configType: t }) {
|
|
|
20229
20229
|
}));
|
|
20230
20230
|
}
|
|
20231
20231
|
function F(e, t) {
|
|
20232
|
-
|
|
20232
|
+
P(m, (n) => n.map((n, r) => r === e ? {
|
|
20233
20233
|
...n,
|
|
20234
20234
|
...t
|
|
20235
20235
|
} : n));
|
|
20236
20236
|
}
|
|
20237
20237
|
function te(e, t) {
|
|
20238
|
-
|
|
20238
|
+
P(m, (n) => {
|
|
20239
20239
|
let r = [...n], [i] = r.splice(e, 1);
|
|
20240
20240
|
return r.splice(t, 0, i), r.map((e, t) => ({
|
|
20241
20241
|
...e,
|
|
@@ -20259,7 +20259,7 @@ function rD({ role: e, configType: t }) {
|
|
|
20259
20259
|
[n]: !0
|
|
20260
20260
|
})), N) {
|
|
20261
20261
|
try {
|
|
20262
|
-
await ie(A?.apiModule ?? n, S, j,
|
|
20262
|
+
await ie(A?.apiModule ?? n, S, j, ee), D((e) => ({
|
|
20263
20263
|
...e,
|
|
20264
20264
|
stored: !0
|
|
20265
20265
|
})), J.success(`Saved list view "${S}" (${j === 0 ? "all roles" : "this role"})`);
|
|
@@ -20274,7 +20274,7 @@ function rD({ role: e, configType: t }) {
|
|
|
20274
20274
|
return;
|
|
20275
20275
|
}
|
|
20276
20276
|
try {
|
|
20277
|
-
await Tr(e, n,
|
|
20277
|
+
await Tr(e, n, ee, t, c, i[n] ?? "all", o[n] ?? "createdBy"), J.success("Saved");
|
|
20278
20278
|
} catch {
|
|
20279
20279
|
J.error("Save failed");
|
|
20280
20280
|
} finally {
|
|
@@ -20443,10 +20443,10 @@ function rD({ role: e, configType: t }) {
|
|
|
20443
20443
|
}),
|
|
20444
20444
|
/* @__PURE__ */ Z("div", {
|
|
20445
20445
|
className: "uss-field-list",
|
|
20446
|
-
children: [
|
|
20446
|
+
children: [ee.length === 0 && !u && /* @__PURE__ */ X("div", {
|
|
20447
20447
|
className: "uss-empty",
|
|
20448
20448
|
children: "No fields found."
|
|
20449
|
-
}),
|
|
20449
|
+
}), ee.map((e, n) => /* @__PURE__ */ X(eD, {
|
|
20450
20450
|
field: e,
|
|
20451
20451
|
index: n,
|
|
20452
20452
|
configType: t,
|
|
@@ -20456,7 +20456,7 @@ function rD({ role: e, configType: t }) {
|
|
|
20456
20456
|
collections: g,
|
|
20457
20457
|
onFetchCollFields: ne,
|
|
20458
20458
|
dragFromRef: y,
|
|
20459
|
-
availableFields:
|
|
20459
|
+
availableFields: ee
|
|
20460
20460
|
}, `${e.fieldKey ?? n}-${m}`))]
|
|
20461
20461
|
}),
|
|
20462
20462
|
/* @__PURE__ */ X("div", {
|
|
@@ -20815,13 +20815,13 @@ function SD({ role: e }) {
|
|
|
20815
20815
|
it().then((e) => {
|
|
20816
20816
|
let t = lD(e).map((e) => e.value);
|
|
20817
20817
|
r(t), a((e) => e || t[0] || "");
|
|
20818
|
-
}).catch(() => r([])),
|
|
20818
|
+
}).catch(() => r([])), P().then((e) => _([...new Set((Array.isArray(e) ? e : []).map((e) => String(e?.module ?? "").trim()).filter(Boolean))])).catch(() => _([]));
|
|
20819
20819
|
}, []);
|
|
20820
20820
|
let y = Mo(async () => {
|
|
20821
20821
|
if (i) {
|
|
20822
20822
|
l(!0);
|
|
20823
20823
|
try {
|
|
20824
|
-
let e = await
|
|
20824
|
+
let e = await P(i);
|
|
20825
20825
|
s(Array.isArray(e) ? e : []);
|
|
20826
20826
|
} catch (e) {
|
|
20827
20827
|
J.error(e.message), s([]);
|
|
@@ -29117,10 +29117,10 @@ function hA({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
|
|
|
29117
29117
|
function N() {
|
|
29118
29118
|
S(/* @__PURE__ */ new Set()), w("settings"), E(!1), a();
|
|
29119
29119
|
}
|
|
29120
|
-
function
|
|
29120
|
+
function ee(e) {
|
|
29121
29121
|
w(e), e === "fields" && E(!0);
|
|
29122
29122
|
}
|
|
29123
|
-
function
|
|
29123
|
+
function P(e, t = !1) {
|
|
29124
29124
|
S((n) => {
|
|
29125
29125
|
let r = new Set(n);
|
|
29126
29126
|
return t ? r.add(e) : r.has(e) ? r.delete(e) : r.add(e), r;
|
|
@@ -29386,7 +29386,7 @@ function hA({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
|
|
|
29386
29386
|
role: "tab",
|
|
29387
29387
|
"aria-selected": C === "settings",
|
|
29388
29388
|
className: C === "settings" ? "is-active" : "",
|
|
29389
|
-
onClick: () =>
|
|
29389
|
+
onClick: () => ee("settings"),
|
|
29390
29390
|
children: [/* @__PURE__ */ X("span", {
|
|
29391
29391
|
className: "fg-editor-tab-number",
|
|
29392
29392
|
children: "1"
|
|
@@ -29396,7 +29396,7 @@ function hA({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
|
|
|
29396
29396
|
role: "tab",
|
|
29397
29397
|
"aria-selected": C === "fields",
|
|
29398
29398
|
className: C === "fields" ? "is-active" : "",
|
|
29399
|
-
onClick: () =>
|
|
29399
|
+
onClick: () => ee("fields"),
|
|
29400
29400
|
children: [/* @__PURE__ */ X("span", {
|
|
29401
29401
|
className: "fg-editor-tab-number",
|
|
29402
29402
|
children: "2"
|
|
@@ -30640,7 +30640,7 @@ function hA({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
|
|
|
30640
30640
|
children: "Next, review the fields included in this group."
|
|
30641
30641
|
}), /* @__PURE__ */ X(z, {
|
|
30642
30642
|
type: "primary",
|
|
30643
|
-
onClick: () =>
|
|
30643
|
+
onClick: () => ee("fields"),
|
|
30644
30644
|
children: "Continue to Fields"
|
|
30645
30645
|
})]
|
|
30646
30646
|
})]
|
|
@@ -30680,7 +30680,7 @@ function hA({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
|
|
|
30680
30680
|
setDragOverIndex: b,
|
|
30681
30681
|
onFieldKeySelect: (e, t) => te(e, t),
|
|
30682
30682
|
expandedFieldKeys: x,
|
|
30683
|
-
onToggleField:
|
|
30683
|
+
onToggleField: P,
|
|
30684
30684
|
defaultFieldSet: _,
|
|
30685
30685
|
uniqueTarget: {
|
|
30686
30686
|
primaryModule: c.getFieldValue("module") || n || "",
|
|
@@ -31938,10 +31938,10 @@ function yA() {
|
|
|
31938
31938
|
function N(e) {
|
|
31939
31939
|
M(e, null);
|
|
31940
31940
|
}
|
|
31941
|
-
function
|
|
31941
|
+
function ee(e) {
|
|
31942
31942
|
s(e), (!i[e]?.loaded || i[e]?.scopeKey !== j(e)) && N(e);
|
|
31943
31943
|
}
|
|
31944
|
-
function
|
|
31944
|
+
function P() {
|
|
31945
31945
|
d(null), l(!0);
|
|
31946
31946
|
}
|
|
31947
31947
|
function F(e) {
|
|
@@ -32097,7 +32097,7 @@ function yA() {
|
|
|
32097
32097
|
icon: /* @__PURE__ */ X(sl, {}),
|
|
32098
32098
|
disabled: e === "all",
|
|
32099
32099
|
onClick: () => {
|
|
32100
|
-
s(e),
|
|
32100
|
+
s(e), P();
|
|
32101
32101
|
},
|
|
32102
32102
|
children: "Add Group"
|
|
32103
32103
|
}), e !== "all" && /* @__PURE__ */ Z("div", {
|
|
@@ -32222,7 +32222,7 @@ function yA() {
|
|
|
32222
32222
|
spinning: n,
|
|
32223
32223
|
children: /* @__PURE__ */ X(ys, {
|
|
32224
32224
|
activeKey: o,
|
|
32225
|
-
onChange:
|
|
32225
|
+
onChange: ee,
|
|
32226
32226
|
items: fe,
|
|
32227
32227
|
size: "middle",
|
|
32228
32228
|
className: "fg-tabs"
|
|
@@ -32310,7 +32310,7 @@ function yA() {
|
|
|
32310
32310
|
type: "primary",
|
|
32311
32311
|
size: "small",
|
|
32312
32312
|
icon: /* @__PURE__ */ X(Os, {}),
|
|
32313
|
-
onClick:
|
|
32313
|
+
onClick: P,
|
|
32314
32314
|
children: "New Group"
|
|
32315
32315
|
})]
|
|
32316
32316
|
}) : null,
|
|
@@ -34883,7 +34883,7 @@ function fj({ open: e, onClose: t }) {
|
|
|
34883
34883
|
});
|
|
34884
34884
|
}
|
|
34885
34885
|
function pj() {
|
|
34886
|
-
let [e, t] = R([]), [n, r] = R(!0), [i, a] = R(""), [o, s] = R([]), [c, l] = R({}), [u, d] = R({}), [f, p] = R([]), [m, h] = R([]), [g, _] = R({}), [v, y] = R([]), [b, x] = R([]), [S, C] = R({}), [w, T] = R([]), [E, D] = R({}), [O, k] = R([]), [A, j] = R(!1), [M, N] = R(""), [
|
|
34886
|
+
let [e, t] = R([]), [n, r] = R(!0), [i, a] = R(""), [o, s] = R([]), [c, l] = R({}), [u, d] = R({}), [f, p] = R([]), [m, h] = R([]), [g, _] = R({}), [v, y] = R([]), [b, x] = R([]), [S, C] = R({}), [w, T] = R([]), [E, D] = R({}), [O, k] = R([]), [A, j] = R(!1), [M, N] = R(""), [ee, P] = R(!1), [F, te] = R(null), [ne, re] = R(null), [ie, ae] = R(!1), [oe, se] = R(!1), [ce, le] = R(null), [ue, de] = R(0), [fe, pe] = R(""), [me, he] = R([]), [ge, _e] = R(""), [ve, ye] = R(""), [be, xe] = R({});
|
|
34887
34887
|
function Se(e, t = {}) {
|
|
34888
34888
|
le({
|
|
34889
34889
|
...WA[e],
|
|
@@ -34997,7 +34997,7 @@ function pj() {
|
|
|
34997
34997
|
})), [f]);
|
|
34998
34998
|
async function Ae(e = {}) {
|
|
34999
34999
|
let t = e?.announce !== !1;
|
|
35000
|
-
|
|
35000
|
+
P(!0);
|
|
35001
35001
|
try {
|
|
35002
35002
|
let e = MA({
|
|
35003
35003
|
labels: c,
|
|
@@ -35020,7 +35020,7 @@ function pj() {
|
|
|
35020
35020
|
} catch (e) {
|
|
35021
35021
|
return J.error(e?.message || "Could not save configuration"), !1;
|
|
35022
35022
|
} finally {
|
|
35023
|
-
|
|
35023
|
+
P(!1);
|
|
35024
35024
|
}
|
|
35025
35025
|
}
|
|
35026
35026
|
function je(e, t) {
|
|
@@ -35552,7 +35552,7 @@ function pj() {
|
|
|
35552
35552
|
type: "primary",
|
|
35553
35553
|
size: "small",
|
|
35554
35554
|
icon: /* @__PURE__ */ X(yl, {}),
|
|
35555
|
-
loading:
|
|
35555
|
+
loading: ee,
|
|
35556
35556
|
disabled: !i,
|
|
35557
35557
|
onClick: Ae,
|
|
35558
35558
|
children: "Save Configuration"
|
|
@@ -37031,11 +37031,11 @@ function tM() {
|
|
|
37031
37031
|
j([...new Set(e.map((e) => e.MENUNAME ?? e.menuName).filter(Boolean))]), N([...new Set(t.map((e) => e.permissionKey ?? e.PERMISSIONKEY).filter(Boolean))]);
|
|
37032
37032
|
});
|
|
37033
37033
|
}, []);
|
|
37034
|
-
let
|
|
37034
|
+
let ee = Mo(async () => {
|
|
37035
37035
|
if (n) {
|
|
37036
37036
|
p(!0), _(null), a([]);
|
|
37037
37037
|
try {
|
|
37038
|
-
let e = await
|
|
37038
|
+
let e = await P(n);
|
|
37039
37039
|
a(e);
|
|
37040
37040
|
} catch (e) {
|
|
37041
37041
|
_(e.message);
|
|
@@ -37046,9 +37046,9 @@ function tM() {
|
|
|
37046
37046
|
}, [n]);
|
|
37047
37047
|
I(() => {
|
|
37048
37048
|
queueMicrotask(() => {
|
|
37049
|
-
|
|
37049
|
+
ee();
|
|
37050
37050
|
});
|
|
37051
|
-
}, [
|
|
37051
|
+
}, [ee]), I(() => {
|
|
37052
37052
|
Promise.all([Mi(n, "popup").catch(() => []), Sj({ module: n }).catch(() => [])]).then(([e, t]) => {
|
|
37053
37053
|
C(e), T(t.map((e) => ({
|
|
37054
37054
|
value: e._id ?? e.id,
|
|
@@ -37078,13 +37078,13 @@ function tM() {
|
|
|
37078
37078
|
}
|
|
37079
37079
|
d(!1);
|
|
37080
37080
|
} catch (e) {
|
|
37081
|
-
J.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") &&
|
|
37081
|
+
J.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && ee();
|
|
37082
37082
|
} finally {
|
|
37083
37083
|
h(!1);
|
|
37084
37084
|
}
|
|
37085
37085
|
}, te = async () => {
|
|
37086
37086
|
if (o) try {
|
|
37087
|
-
await Cn(o.id ?? o._id), J.success("Config deleted"), await
|
|
37087
|
+
await Cn(o.id ?? o._id), J.success("Config deleted"), await ee();
|
|
37088
37088
|
} catch (e) {
|
|
37089
37089
|
J.error(e.message);
|
|
37090
37090
|
}
|
|
@@ -37131,7 +37131,7 @@ function tM() {
|
|
|
37131
37131
|
}
|
|
37132
37132
|
l(t), d(!1), y(!1);
|
|
37133
37133
|
} catch (e) {
|
|
37134
|
-
J.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") &&
|
|
37134
|
+
J.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && ee();
|
|
37135
37135
|
}
|
|
37136
37136
|
}, se = (e, t = null) => {
|
|
37137
37137
|
l(t ? (n) => n.map((n) => n.key === t ? {
|
|
@@ -37148,7 +37148,7 @@ function tM() {
|
|
|
37148
37148
|
D(Hj[e]);
|
|
37149
37149
|
}
|
|
37150
37150
|
function ue() {
|
|
37151
|
-
D(null),
|
|
37151
|
+
D(null), ee();
|
|
37152
37152
|
}
|
|
37153
37153
|
let de = L(() => {
|
|
37154
37154
|
let e = O.trim().toLowerCase();
|
|
@@ -37471,7 +37471,7 @@ function tM() {
|
|
|
37471
37471
|
className: "admin-config-reload",
|
|
37472
37472
|
children: /* @__PURE__ */ X(z, {
|
|
37473
37473
|
icon: /* @__PURE__ */ X(pl, {}),
|
|
37474
|
-
onClick:
|
|
37474
|
+
onClick: ee,
|
|
37475
37475
|
loading: f,
|
|
37476
37476
|
children: "Reload"
|
|
37477
37477
|
})
|
|
@@ -37776,7 +37776,7 @@ function vM() {
|
|
|
37776
37776
|
}).catch(() => x([]));
|
|
37777
37777
|
}
|
|
37778
37778
|
function E(e) {
|
|
37779
|
-
|
|
37779
|
+
P(e).then((e) => {
|
|
37780
37780
|
let t = /* @__PURE__ */ new Set();
|
|
37781
37781
|
(Array.isArray(e) ? e : []).forEach((e) => {
|
|
37782
37782
|
(e.rowActions ?? []).forEach((e) => {
|
|
@@ -37865,7 +37865,7 @@ function vM() {
|
|
|
37865
37865
|
conditions: [...e.conditions, mM()]
|
|
37866
37866
|
}));
|
|
37867
37867
|
}
|
|
37868
|
-
function
|
|
37868
|
+
function ee(e) {
|
|
37869
37869
|
h((t) => ({
|
|
37870
37870
|
...t,
|
|
37871
37871
|
conditions: t.conditions.filter((t, n) => n !== e)
|
|
@@ -38289,7 +38289,7 @@ function vM() {
|
|
|
38289
38289
|
icon: /* @__PURE__ */ X(ac, {}),
|
|
38290
38290
|
size: "small",
|
|
38291
38291
|
type: "text",
|
|
38292
|
-
onClick: () =>
|
|
38292
|
+
onClick: () => ee(t)
|
|
38293
38293
|
})
|
|
38294
38294
|
})
|
|
38295
38295
|
]
|
|
@@ -38651,7 +38651,7 @@ function DM({ open: e, templateId: t, modules: n, clients: r, onClose: i, onSave
|
|
|
38651
38651
|
m([]);
|
|
38652
38652
|
return;
|
|
38653
38653
|
}
|
|
38654
|
-
let t = await
|
|
38654
|
+
let t = await P(e).catch(() => []), n = /* @__PURE__ */ new Map();
|
|
38655
38655
|
t.forEach((e) => (e.rowActions ?? []).forEach((e) => {
|
|
38656
38656
|
e.key && n.set(e.key, e.label || e.key);
|
|
38657
38657
|
})), m([...n].map(([e, t]) => ({
|
|
@@ -42082,7 +42082,7 @@ function pN() {
|
|
|
42082
42082
|
children: "optional"
|
|
42083
42083
|
})
|
|
42084
42084
|
}
|
|
42085
|
-
],
|
|
42085
|
+
], ee = [
|
|
42086
42086
|
{
|
|
42087
42087
|
title: "Source field",
|
|
42088
42088
|
dataIndex: "sourceField",
|
|
@@ -42115,7 +42115,7 @@ function pN() {
|
|
|
42115
42115
|
color: "var(--color-brand)"
|
|
42116
42116
|
})
|
|
42117
42117
|
}
|
|
42118
|
-
],
|
|
42118
|
+
], P = [
|
|
42119
42119
|
{
|
|
42120
42120
|
title: "Source field",
|
|
42121
42121
|
dataIndex: "sourceField",
|
|
@@ -43008,7 +43008,7 @@ function pN() {
|
|
|
43008
43008
|
title: "Array Enrichments",
|
|
43009
43009
|
description: "Enrich a payload array of ids (e.g. recruitersData) into objects carrying looked-up fields (name, email) before insert.",
|
|
43010
43010
|
rules: u.arrayEnrichments ?? [],
|
|
43011
|
-
columns:
|
|
43011
|
+
columns: ee,
|
|
43012
43012
|
onAdd: () => x({
|
|
43013
43013
|
index: null,
|
|
43014
43014
|
rule: null
|
|
@@ -43024,7 +43024,7 @@ function pN() {
|
|
|
43024
43024
|
title: "File Field Maps",
|
|
43025
43025
|
description: "Turn an uploaded file field into a nested object (location + filename + who/when) or an array of such objects, instead of a flat S3 path string — needed for schemas like resume/passport/visa.",
|
|
43026
43026
|
rules: u.fileFieldMaps ?? [],
|
|
43027
|
-
columns:
|
|
43027
|
+
columns: P,
|
|
43028
43028
|
onAdd: () => C({
|
|
43029
43029
|
index: null,
|
|
43030
43030
|
rule: null
|
|
@@ -45431,7 +45431,7 @@ function gP({ title: e, description: t, selectedName: n, loading: r, saving: i,
|
|
|
45431
45431
|
});
|
|
45432
45432
|
}
|
|
45433
45433
|
function _P({ onLogout: e, initialTab: t = "users", embedded: n = !1 }) {
|
|
45434
|
-
let [r] = V.useForm(), [i] = V.useForm(), [a, o] = R(t), [s, c] = R(!0), [l, d] = R(!1), [f, p] = R(!1), [m, h] = R([]), [g, _] = R(0), [v, y] = R(1), [b, x] = R(10), [S, C] = R(""), [w, T] = R(!1), [E, D] = R([]), [O, k] = R([]), [A, j] = R([]), [M, N] = R(null), [
|
|
45434
|
+
let [r] = V.useForm(), [i] = V.useForm(), [a, o] = R(t), [s, c] = R(!0), [l, d] = R(!1), [f, p] = R(!1), [m, h] = R([]), [g, _] = R(0), [v, y] = R(1), [b, x] = R(10), [S, C] = R(""), [w, T] = R(!1), [E, D] = R([]), [O, k] = R([]), [A, j] = R([]), [M, N] = R(null), [ee, P] = R([]), [F, te] = R(!1), [ne, re] = R(null), [ie, ae] = R(!1), [oe, se] = R(null), [ce, le] = R([]), [ue, de] = R(!1), [fe, pe] = R(!1), [me, he] = R(null), [ge, _e] = R(!1), [ve, ye] = R(null), [be, xe] = R("listView"), [Se, Ce] = R([]), [we, Te] = R([]), [Ee, De] = R(!1), [Oe, ke] = R(!1), Ae = u(), je = L(() => Se.filter((e) => !e.disabled), [Se]), Me = !Ee && je.length === 0, Ne = Mo(async () => {
|
|
45435
45435
|
De(!0);
|
|
45436
45436
|
try {
|
|
45437
45437
|
let [e, t] = await Promise.all([fi(), Sr()]), n = cP(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
|
|
@@ -45503,7 +45503,7 @@ function _P({ onLogout: e, initialTab: t = "users", embedded: n = !1 }) {
|
|
|
45503
45503
|
}, [Ie]), I(() => {
|
|
45504
45504
|
queueMicrotask(() => {
|
|
45505
45505
|
if (!M) {
|
|
45506
|
-
|
|
45506
|
+
P([]);
|
|
45507
45507
|
return;
|
|
45508
45508
|
}
|
|
45509
45509
|
d(!0), console.log("DEBUG requesting role permissions for selectedUserTypeId=", M, "localStorage scope=", {
|
|
@@ -45528,7 +45528,7 @@ function _P({ onLogout: e, initialTab: t = "users", embedded: n = !1 }) {
|
|
|
45528
45528
|
accessValue: n.get(`${r}:${i}`) ?? 0
|
|
45529
45529
|
};
|
|
45530
45530
|
}));
|
|
45531
|
-
console.log("DEBUG final rows (jobs only)", r.filter((e) => fP(e) === "jobs" || fP(e) === "job")),
|
|
45531
|
+
console.log("DEBUG final rows (jobs only)", r.filter((e) => fP(e) === "jobs" || fP(e) === "job")), P(r);
|
|
45532
45532
|
}).catch((e) => J.error(e.message || "Unable to load role permissions")).finally(() => d(!1));
|
|
45533
45533
|
});
|
|
45534
45534
|
}, [
|
|
@@ -45700,7 +45700,7 @@ function _P({ onLogout: e, initialTab: t = "users", embedded: n = !1 }) {
|
|
|
45700
45700
|
}
|
|
45701
45701
|
];
|
|
45702
45702
|
function Ke(e, t) {
|
|
45703
|
-
|
|
45703
|
+
P((n) => {
|
|
45704
45704
|
let r = n.filter((t) => t.key === e).length;
|
|
45705
45705
|
return console.log("DEBUG updateRolePermission", {
|
|
45706
45706
|
key: e,
|
|
@@ -45715,7 +45715,7 @@ function _P({ onLogout: e, initialTab: t = "users", embedded: n = !1 }) {
|
|
|
45715
45715
|
async function qe() {
|
|
45716
45716
|
p(!0);
|
|
45717
45717
|
try {
|
|
45718
|
-
console.log("DEBUG saveRolePermissions jobs rows",
|
|
45718
|
+
console.log("DEBUG saveRolePermissions jobs rows", ee.filter((e) => fP(e) === "jobs" || fP(e) === "job")), await ME(M, ee.map((e) => ({
|
|
45719
45719
|
menu_id: e.menuId,
|
|
45720
45720
|
menu_name: e.menuName,
|
|
45721
45721
|
menu_key: e.menuKey,
|
|
@@ -45783,7 +45783,7 @@ function _P({ onLogout: e, initialTab: t = "users", embedded: n = !1 }) {
|
|
|
45783
45783
|
}), e === "role" && N(t.user_type_id);
|
|
45784
45784
|
}
|
|
45785
45785
|
function $e(e, t) {
|
|
45786
|
-
|
|
45786
|
+
P((n) => {
|
|
45787
45787
|
let r = [...new Set(n.map(fP))], i = r.indexOf(e), a = i + t;
|
|
45788
45788
|
if (i < 0 || a < 0 || a >= r.length) return n;
|
|
45789
45789
|
[r[i], r[a]] = [r[a], r[i]];
|
|
@@ -46238,7 +46238,7 @@ function _P({ onLogout: e, initialTab: t = "users", embedded: n = !1 }) {
|
|
|
46238
46238
|
selectedName: Le?.user_type_name,
|
|
46239
46239
|
loading: l,
|
|
46240
46240
|
saving: f,
|
|
46241
|
-
rows:
|
|
46241
|
+
rows: ee,
|
|
46242
46242
|
onChange: Ke,
|
|
46243
46243
|
onMove: $e,
|
|
46244
46244
|
onSave: qe
|
|
@@ -46901,7 +46901,7 @@ function QP() {
|
|
|
46901
46901
|
attachments: s,
|
|
46902
46902
|
showCc: !1,
|
|
46903
46903
|
showBcc: !1
|
|
46904
|
-
}), [T, E] = R(!x), [D, O] = R(!1), [k, A] = R([]), [j, M] = R(!1), [
|
|
46904
|
+
}), [T, E] = R(!x), [D, O] = R(!1), [k, A] = R([]), [j, M] = R(!1), [ee, P] = R(!1), F = Io(!1), te = Io(""), ne = Io(0);
|
|
46905
46905
|
I(() => {
|
|
46906
46906
|
if (!WP(l) || F.current || SP(C.to).length > 0 || n.length === 0 || te.current === h) return;
|
|
46907
46907
|
let e = !1;
|
|
@@ -46994,8 +46994,8 @@ function QP() {
|
|
|
46994
46994
|
}
|
|
46995
46995
|
let oe = T && (!p || RP.test(x)) && (!d || RP.test(f)) && SP(C.to).length + SP(C.cc).length + SP(C.bcc).length > 0 && CP(C.to) && CP(C.cc) && CP(C.bcc) && C.subject.trim() && C.contents.trim();
|
|
46996
46996
|
async function se() {
|
|
46997
|
-
if (!(!oe ||
|
|
46998
|
-
|
|
46997
|
+
if (!(!oe || ee)) {
|
|
46998
|
+
P(!0);
|
|
46999
46999
|
try {
|
|
47000
47000
|
await N({
|
|
47001
47001
|
jobId: x,
|
|
@@ -47014,7 +47014,7 @@ function QP() {
|
|
|
47014
47014
|
} catch (e) {
|
|
47015
47015
|
J.error(e?.message || "Failed to send mail");
|
|
47016
47016
|
} finally {
|
|
47017
|
-
|
|
47017
|
+
P(!1);
|
|
47018
47018
|
}
|
|
47019
47019
|
}
|
|
47020
47020
|
}
|
|
@@ -47036,7 +47036,7 @@ function QP() {
|
|
|
47036
47036
|
children: "Cancel"
|
|
47037
47037
|
}), /* @__PURE__ */ X(z, {
|
|
47038
47038
|
type: "primary",
|
|
47039
|
-
loading:
|
|
47039
|
+
loading: ee,
|
|
47040
47040
|
disabled: !oe,
|
|
47041
47041
|
onClick: se,
|
|
47042
47042
|
children: "Send"
|
|
@@ -48886,7 +48886,7 @@ function HI({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
|
|
|
48886
48886
|
}), O = (f.removedIds ?? []).length, k = l.length > O, A = E.some((e) => {
|
|
48887
48887
|
let t = d[e.name];
|
|
48888
48888
|
return !(t == null || t === "" || Array.isArray(t) && t.length === 0);
|
|
48889
|
-
}), { handleOk: j, confirming: M, deleteError: N, resetSubmitState:
|
|
48889
|
+
}), { handleOk: j, confirming: M, deleteError: N, resetSubmitState: ee } = VI({
|
|
48890
48890
|
form: o,
|
|
48891
48891
|
config: t,
|
|
48892
48892
|
api: a,
|
|
@@ -48901,14 +48901,14 @@ function HI({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
|
|
|
48901
48901
|
onSubmit: i
|
|
48902
48902
|
});
|
|
48903
48903
|
I(() => {
|
|
48904
|
-
e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []),
|
|
48904
|
+
e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []), ee());
|
|
48905
48905
|
}, [e, v]);
|
|
48906
|
-
let
|
|
48906
|
+
let P = !!t?.autoSubmitWhenNoFields && _.length === 0;
|
|
48907
48907
|
I(() => {
|
|
48908
|
-
!e || !
|
|
48909
|
-
}, [e,
|
|
48908
|
+
!e || !P || j();
|
|
48909
|
+
}, [e, P]);
|
|
48910
48910
|
let F = p.length, te = String(h).replace(/s$/i, ""), ne = F === 1 ? te : h, re = m[0] ?? {}, ie = t?.getTitleText ? t.getTitleText(F, ne, re, f) : t?.title, ae = F === 1 ? re.jobTitle ?? re.title ?? re.name ?? re.fullName ?? re.candidateName ?? null : null, oe = t?.getBodyText ? t.getBodyText(F, te, ne, ae, f) : t?.bodyText ?? null, se = typeof t?.getNote == "function" ? t.getNote(f) : t?.note, ce = t?.disabledUntilFilled && !D && !k;
|
|
48911
|
-
if (!t || !e ||
|
|
48911
|
+
if (!t || !e || P) return null;
|
|
48912
48912
|
let le = t.component;
|
|
48913
48913
|
return le ? /* @__PURE__ */ X(as, {
|
|
48914
48914
|
open: e,
|
|
@@ -50404,7 +50404,7 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
50404
50404
|
S(!1);
|
|
50405
50405
|
}
|
|
50406
50406
|
}
|
|
50407
|
-
}, M = !T && SP(k.to).length > 0 && CP(k.to) && CP(k.cc) && CP(k.bcc) && k.subject.trim() && k.contents.trim(),
|
|
50407
|
+
}, M = !T && SP(k.to).length > 0 && CP(k.to) && CP(k.cc) && CP(k.bcc) && k.subject.trim() && k.contents.trim(), ee = async () => {
|
|
50408
50408
|
if (!_ || !M || D) return;
|
|
50409
50409
|
O(!0);
|
|
50410
50410
|
let e = {
|
|
@@ -50439,7 +50439,7 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
50439
50439
|
} finally {
|
|
50440
50440
|
O(!1);
|
|
50441
50441
|
}
|
|
50442
|
-
},
|
|
50442
|
+
}, P = L(() => ({
|
|
50443
50443
|
submissionApprove: async ({ computed: e, referral: t }) => {
|
|
50444
50444
|
v(e), b(t ?? null), g("vms"), m(!0);
|
|
50445
50445
|
},
|
|
@@ -50476,7 +50476,7 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
50476
50476
|
referralOptions: d,
|
|
50477
50477
|
onAddReferral: () => e?.navigate?.("/referrals-create"),
|
|
50478
50478
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
50479
|
-
actions:
|
|
50479
|
+
actions: P,
|
|
50480
50480
|
onClose: () => i?.(),
|
|
50481
50481
|
variant: "popup"
|
|
50482
50482
|
}),
|
|
@@ -50525,7 +50525,7 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
50525
50525
|
type: "primary",
|
|
50526
50526
|
loading: D,
|
|
50527
50527
|
disabled: !M,
|
|
50528
|
-
onClick:
|
|
50528
|
+
onClick: ee,
|
|
50529
50529
|
children: "Send"
|
|
50530
50530
|
})]
|
|
50531
50531
|
}),
|
|
@@ -51235,34 +51235,34 @@ function kz() {
|
|
|
51235
51235
|
cc: e.ccMail?.length ? Array.isArray(e.ccMail) ? e.ccMail.join(", ") : String(e.ccMail) : t.cc
|
|
51236
51236
|
}))).catch(() => {}).finally(() => p(!0));
|
|
51237
51237
|
}, [l]);
|
|
51238
|
-
let
|
|
51238
|
+
let ee = L(() => M.map((e) => v.find((t) => t.vendorId === e)?.vendorEmail ?? "").filter(Boolean), [M, v]), P = L(() => ({
|
|
51239
51239
|
...u,
|
|
51240
|
-
bcc: [.../* @__PURE__ */ new Set([...SP(u.bcc), ...
|
|
51241
|
-
showBcc: u.showBcc ||
|
|
51242
|
-
}), [u,
|
|
51240
|
+
bcc: [.../* @__PURE__ */ new Set([...SP(u.bcc), ...ee])].join(", "),
|
|
51241
|
+
showBcc: u.showBcc || ee.length > 0
|
|
51242
|
+
}), [u, ee]);
|
|
51243
51243
|
function F(e) {
|
|
51244
|
-
let t = new Set(
|
|
51244
|
+
let t = new Set(ee);
|
|
51245
51245
|
d({
|
|
51246
51246
|
...e,
|
|
51247
51247
|
bcc: SP(e.bcc).filter((e) => !t.has(e)).join(", ")
|
|
51248
51248
|
});
|
|
51249
51249
|
}
|
|
51250
|
-
let te = (SP(
|
|
51250
|
+
let te = (SP(P.to).length || SP(P.bcc).length) && CP(P.to) && CP(P.cc) && CP(P.bcc) && P.subject.trim(), ne = (e) => e === "myVendor" ? b : S;
|
|
51251
51251
|
function re() {
|
|
51252
51252
|
e(-1);
|
|
51253
51253
|
}
|
|
51254
51254
|
function ie() {
|
|
51255
51255
|
te && Dz.submit({
|
|
51256
51256
|
jobId: l,
|
|
51257
|
-
toMail: SP(
|
|
51258
|
-
ccMail: SP(
|
|
51259
|
-
bccMail: SP(
|
|
51260
|
-
subject:
|
|
51261
|
-
contents:
|
|
51257
|
+
toMail: SP(P.to),
|
|
51258
|
+
ccMail: SP(P.cc),
|
|
51259
|
+
bccMail: SP(P.bcc),
|
|
51260
|
+
subject: P.subject,
|
|
51261
|
+
contents: P.contents
|
|
51262
51262
|
}).then((t) => {
|
|
51263
51263
|
t?.status === !0 ? (J.success(t?.data || "Mail sent successfully."), typeof o == "function" && o({
|
|
51264
|
-
...
|
|
51265
|
-
message:
|
|
51264
|
+
...P,
|
|
51265
|
+
message: P.contents,
|
|
51266
51266
|
selectedIds: n
|
|
51267
51267
|
}), e(-1)) : J.error(t?.message || t?.data || "Failed to send mail. Please try again.");
|
|
51268
51268
|
}).catch((e) => {
|
|
@@ -51379,7 +51379,7 @@ function kz() {
|
|
|
51379
51379
|
}), /* @__PURE__ */ X("div", {
|
|
51380
51380
|
className: "vendor-share__right",
|
|
51381
51381
|
children: /* @__PURE__ */ X(IP, {
|
|
51382
|
-
value:
|
|
51382
|
+
value: P,
|
|
51383
51383
|
onChange: F,
|
|
51384
51384
|
moduleName: s,
|
|
51385
51385
|
defaultTemplateId: c.defaultTemplateId ?? t.state?.defaultTemplateId ?? "",
|
|
@@ -52474,7 +52474,7 @@ function XB() {
|
|
|
52474
52474
|
} catch (e) {
|
|
52475
52475
|
J.error(JB(e));
|
|
52476
52476
|
}
|
|
52477
|
-
}, E = !!a.canEditTerms, D = a.config ?? {}, O = NB[D.settlementCycle] ?? D.settlementCycle ?? "–", k = MB[D.paymentMode] ?? D.paymentMode ?? "–", A = Array.isArray(a.charges) ? a.charges : [], j = l.figures ?? {}, M = l.byStatus ?? {}, N = (e) => Number(M[e]?.count) || 0,
|
|
52477
|
+
}, E = !!a.canEditTerms, D = a.config ?? {}, O = NB[D.settlementCycle] ?? D.settlementCycle ?? "–", k = MB[D.paymentMode] ?? D.paymentMode ?? "–", A = Array.isArray(a.charges) ? a.charges : [], j = l.figures ?? {}, M = l.byStatus ?? {}, N = (e) => Number(M[e]?.count) || 0, ee = d.filter((e) => e.status === "PAID" && e.direction === "FRANCHISE_TO_PLATFORM").reduce((e, t) => e + (Number(t.amountDuePaise) || 0), 0), P = d.filter((e) => e.status === "PAID" && e.direction === "PLATFORM_TO_FRANCHISE").reduce((e, t) => e + (Number(t.amountDuePaise) || 0), 0), F = j.direction === "FRANCHISE_TO_PLATFORM", te = j.direction === "SETTLED_BY_GATEWAY" ? "Settled by the payment gateway" : F ? "Payable to the platform owner (B + C)" : "Payable to your organisation (A − B)", ne = {
|
|
52478
52478
|
PAID: "green",
|
|
52479
52479
|
PENDING: "amber",
|
|
52480
52480
|
INFO: "blue",
|
|
@@ -52771,12 +52771,12 @@ function XB() {
|
|
|
52771
52771
|
{
|
|
52772
52772
|
key: "o",
|
|
52773
52773
|
label: "Paid to the platform owner (all time)",
|
|
52774
|
-
children: WB(
|
|
52774
|
+
children: WB(ee)
|
|
52775
52775
|
},
|
|
52776
52776
|
{
|
|
52777
52777
|
key: "r",
|
|
52778
52778
|
label: "Received from the platform owner (all time)",
|
|
52779
|
-
children: WB(
|
|
52779
|
+
children: WB(P)
|
|
52780
52780
|
},
|
|
52781
52781
|
...D.notes ? [{
|
|
52782
52782
|
key: "n",
|
|
@@ -59454,7 +59454,7 @@ function bU() {
|
|
|
59454
59454
|
message: e.message || "Could not reach the server."
|
|
59455
59455
|
}), l("error");
|
|
59456
59456
|
}
|
|
59457
|
-
},
|
|
59457
|
+
}, ee = async () => {
|
|
59458
59458
|
try {
|
|
59459
59459
|
let e = await fetch(lU);
|
|
59460
59460
|
if (!e.ok) throw Error(`Template file not found (${e.status})`);
|
|
@@ -59465,7 +59465,7 @@ function bU() {
|
|
|
59465
59465
|
} catch (e) {
|
|
59466
59466
|
console.error(e), J.error("Unable to download sample template.");
|
|
59467
59467
|
}
|
|
59468
|
-
},
|
|
59468
|
+
}, P = async () => {
|
|
59469
59469
|
l("inserting"), b(null);
|
|
59470
59470
|
try {
|
|
59471
59471
|
let n = await NT({
|
|
@@ -59558,7 +59558,7 @@ function bU() {
|
|
|
59558
59558
|
title: "2. File upload",
|
|
59559
59559
|
extra: /* @__PURE__ */ X(z, {
|
|
59560
59560
|
icon: /* @__PURE__ */ X(fc, {}),
|
|
59561
|
-
onClick:
|
|
59561
|
+
onClick: ee,
|
|
59562
59562
|
children: "Download Sample Template"
|
|
59563
59563
|
}),
|
|
59564
59564
|
children: [
|
|
@@ -59631,7 +59631,7 @@ function bU() {
|
|
|
59631
59631
|
rows: m,
|
|
59632
59632
|
view: _,
|
|
59633
59633
|
onViewChange: v,
|
|
59634
|
-
onConfirm:
|
|
59634
|
+
onConfirm: P,
|
|
59635
59635
|
onReset: j,
|
|
59636
59636
|
saving: c === "inserting",
|
|
59637
59637
|
firstInvalidRowId: A,
|
|
@@ -59957,9 +59957,9 @@ function MU() {
|
|
|
59957
59957
|
} finally {
|
|
59958
59958
|
y(!1);
|
|
59959
59959
|
}
|
|
59960
|
-
},
|
|
59960
|
+
}, ee = (t, n) => {
|
|
59961
59961
|
e.setFieldsValue({ [t]: DU(n) });
|
|
59962
|
-
},
|
|
59962
|
+
}, P = (t) => {
|
|
59963
59963
|
e.setFieldsValue({
|
|
59964
59964
|
module: DU(t),
|
|
59965
59965
|
flow: void 0,
|
|
@@ -60074,7 +60074,7 @@ function MU() {
|
|
|
60074
60074
|
optionFilterProp: "label",
|
|
60075
60075
|
placeholder: "Select module",
|
|
60076
60076
|
options: S,
|
|
60077
|
-
onChange:
|
|
60077
|
+
onChange: P
|
|
60078
60078
|
})
|
|
60079
60079
|
}), /* @__PURE__ */ X(z, {
|
|
60080
60080
|
"aria-label": "Add module",
|
|
@@ -60143,7 +60143,7 @@ function MU() {
|
|
|
60143
60143
|
disabled: O,
|
|
60144
60144
|
placeholder: "Enter description",
|
|
60145
60145
|
showCount: !0,
|
|
60146
|
-
onBlur: (e) =>
|
|
60146
|
+
onBlur: (e) => ee("description", e.target.value)
|
|
60147
60147
|
})
|
|
60148
60148
|
})
|
|
60149
60149
|
}),
|
|
@@ -60157,7 +60157,7 @@ function MU() {
|
|
|
60157
60157
|
maxLength: 255,
|
|
60158
60158
|
disabled: O,
|
|
60159
60159
|
placeholder: "Enter target",
|
|
60160
|
-
onBlur: (e) =>
|
|
60160
|
+
onBlur: (e) => ee("target", e.target.value)
|
|
60161
60161
|
})
|
|
60162
60162
|
})
|
|
60163
60163
|
}),
|
|
@@ -60172,7 +60172,7 @@ function MU() {
|
|
|
60172
60172
|
disabled: O,
|
|
60173
60173
|
placeholder: "Enter tags",
|
|
60174
60174
|
prefix: /* @__PURE__ */ X(Ml, { className: "v1-input-icon" }),
|
|
60175
|
-
onBlur: (e) =>
|
|
60175
|
+
onBlur: (e) => ee("tags", e.target.value)
|
|
60176
60176
|
})
|
|
60177
60177
|
})
|
|
60178
60178
|
}),
|
|
@@ -60186,7 +60186,7 @@ function MU() {
|
|
|
60186
60186
|
rows: 4,
|
|
60187
60187
|
disabled: O,
|
|
60188
60188
|
placeholder: "Enter value",
|
|
60189
|
-
onBlur: (e) =>
|
|
60189
|
+
onBlur: (e) => ee("value", e.target.value)
|
|
60190
60190
|
})
|
|
60191
60191
|
})
|
|
60192
60192
|
}),
|
|
@@ -60200,7 +60200,7 @@ function MU() {
|
|
|
60200
60200
|
rows: 4,
|
|
60201
60201
|
disabled: O,
|
|
60202
60202
|
placeholder: "Enter expected result",
|
|
60203
|
-
onBlur: (e) =>
|
|
60203
|
+
onBlur: (e) => ee("expected", e.target.value)
|
|
60204
60204
|
})
|
|
60205
60205
|
})
|
|
60206
60206
|
})
|
|
@@ -60335,7 +60335,7 @@ function BU(e, t) {
|
|
|
60335
60335
|
})));
|
|
60336
60336
|
}
|
|
60337
60337
|
function VU() {
|
|
60338
|
-
let [e] = V.useForm(), t = iu(), [n] = ou(), r = n.get("edit"), i = !!r, a = L(() => g(), []), [o, s] = R([]), [c, l] = R([]), [u, d] = R([]), [f, p] = R(xU), [m, h] = R({}), [_, v] = R(!1), [y, b] = R(!1), [x, S] = R(!1), [C, w] = R(!1), [T, E] = R(!1), D = V.useWatch("module", e), O = V.useWatch("submodule", e), k = V.useWatch("actions", e), A = !!D, j = !!O, M = L(() => zU(m, k), [m, k]), N = L(() => IU(o, "modulename"), [o]),
|
|
60338
|
+
let [e] = V.useForm(), t = iu(), [n] = ou(), r = n.get("edit"), i = !!r, a = L(() => g(), []), [o, s] = R([]), [c, l] = R([]), [u, d] = R([]), [f, p] = R(xU), [m, h] = R({}), [_, v] = R(!1), [y, b] = R(!1), [x, S] = R(!1), [C, w] = R(!1), [T, E] = R(!1), D = V.useWatch("module", e), O = V.useWatch("submodule", e), k = V.useWatch("actions", e), A = !!D, j = !!O, M = L(() => zU(m, k), [m, k]), N = L(() => IU(o, "modulename"), [o]), ee = L(() => IU(c, "submodulename"), [c]), P = L(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), F = L(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), te = Mo(async () => {
|
|
60339
60339
|
try {
|
|
60340
60340
|
let e = await kT();
|
|
60341
60341
|
Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
|
|
@@ -60598,7 +60598,7 @@ function VU() {
|
|
|
60598
60598
|
disabled: !A,
|
|
60599
60599
|
loading: y,
|
|
60600
60600
|
placeholder: A ? "Select submodule" : "Select module first",
|
|
60601
|
-
options:
|
|
60601
|
+
options: ee,
|
|
60602
60602
|
onChange: (t) => {
|
|
60603
60603
|
e.setFieldsValue({
|
|
60604
60604
|
submodule: t,
|
|
@@ -60663,7 +60663,7 @@ function VU() {
|
|
|
60663
60663
|
extra: /* @__PURE__ */ Z(NU, {
|
|
60664
60664
|
type: "secondary",
|
|
60665
60665
|
children: [
|
|
60666
|
-
|
|
60666
|
+
P,
|
|
60667
60667
|
" / ",
|
|
60668
60668
|
F
|
|
60669
60669
|
]
|
|
@@ -61565,7 +61565,7 @@ function dW() {
|
|
|
61565
61565
|
let [e] = V.useForm(), [t] = V.useForm(), [n, r] = R([]), [i, a] = R([]), [o, s] = R([]), [c, l] = R(xU), [u, d] = R({}), [f, p] = R(!1), [m, h] = R(!1), [g, _] = R({
|
|
61566
61566
|
open: !1,
|
|
61567
61567
|
typeKey: "module"
|
|
61568
|
-
}), [v, y] = R(!1), [b, x] = R(!1), [S, C] = R(!1), w = iu(), T = nW[g.typeKey], E = L(() => oW(n), [n]), D = V.useWatch("module", e), O = V.useWatch("flow", e), k = V.useWatch("keyword", e), A = !!sW(D), j = !!sW(O), M = !A, N = !A || !j,
|
|
61568
|
+
}), [v, y] = R(!1), [b, x] = R(!1), [S, C] = R(!1), w = iu(), T = nW[g.typeKey], E = L(() => oW(n), [n]), D = V.useWatch("module", e), O = V.useWatch("flow", e), k = V.useWatch("keyword", e), A = !!sW(D), j = !!sW(O), M = !A, N = !A || !j, ee = L(() => iW(u, k), [u, k]), P = (e, t = []) => {
|
|
61569
61569
|
e === "module" && r(t);
|
|
61570
61570
|
}, F = async () => {
|
|
61571
61571
|
p(!0);
|
|
@@ -61716,7 +61716,7 @@ function dW() {
|
|
|
61716
61716
|
name: n,
|
|
61717
61717
|
type: T.dbName
|
|
61718
61718
|
});
|
|
61719
|
-
|
|
61719
|
+
P(g.typeKey, r?.items ?? []), e.setFieldsValue({ [T.formField]: n }), J.success(`${T.label} added successfully.`), ue();
|
|
61720
61720
|
} catch (e) {
|
|
61721
61721
|
if (e?.errorFields) return;
|
|
61722
61722
|
console.error("Unable to save testing option:", e), J.error(`Unable to add ${T.label.toLowerCase()}.`);
|
|
@@ -61874,13 +61874,13 @@ function dW() {
|
|
|
61874
61874
|
label: "Key",
|
|
61875
61875
|
name: "target",
|
|
61876
61876
|
rules: [{
|
|
61877
|
-
required:
|
|
61877
|
+
required: ee.key,
|
|
61878
61878
|
message: "Key is required for this action"
|
|
61879
61879
|
}],
|
|
61880
61880
|
children: /* @__PURE__ */ X(H, {
|
|
61881
61881
|
maxLength: 255,
|
|
61882
|
-
disabled: N || !!k && !
|
|
61883
|
-
placeholder: N ? "Select module and flow first" : k ?
|
|
61882
|
+
disabled: N || !!k && !ee.key,
|
|
61883
|
+
placeholder: N ? "Select module and flow first" : k ? ee.key ? "Required — Enter selector / locator" : "Not needed for this action" : "Select an action first",
|
|
61884
61884
|
onBlur: (e) => ae("target", e.target.value)
|
|
61885
61885
|
})
|
|
61886
61886
|
})
|
|
@@ -61907,13 +61907,13 @@ function dW() {
|
|
|
61907
61907
|
label: "Value",
|
|
61908
61908
|
name: "value",
|
|
61909
61909
|
rules: [{
|
|
61910
|
-
required:
|
|
61910
|
+
required: ee.value,
|
|
61911
61911
|
message: "Value is required for this action"
|
|
61912
61912
|
}],
|
|
61913
61913
|
children: /* @__PURE__ */ X(H.TextArea, {
|
|
61914
61914
|
rows: 4,
|
|
61915
|
-
disabled: N || !!k && !
|
|
61916
|
-
placeholder: N ? "Select module and flow first" : k ?
|
|
61915
|
+
disabled: N || !!k && !ee.value,
|
|
61916
|
+
placeholder: N ? "Select module and flow first" : k ? ee.value ? "Required — Enter value" : "Not needed for this action" : "Select an action first",
|
|
61917
61917
|
onBlur: (e) => ae("value", e.target.value)
|
|
61918
61918
|
})
|
|
61919
61919
|
})
|
|
@@ -61925,13 +61925,13 @@ function dW() {
|
|
|
61925
61925
|
label: "Expected",
|
|
61926
61926
|
name: "expected",
|
|
61927
61927
|
rules: [{
|
|
61928
|
-
required:
|
|
61928
|
+
required: ee.expected,
|
|
61929
61929
|
message: "Expected result is required for this action"
|
|
61930
61930
|
}],
|
|
61931
61931
|
children: /* @__PURE__ */ X(H.TextArea, {
|
|
61932
61932
|
rows: 4,
|
|
61933
|
-
disabled: N || !!k && !
|
|
61934
|
-
placeholder: N ? "Select module and flow first" : k ?
|
|
61933
|
+
disabled: N || !!k && !ee.expected,
|
|
61934
|
+
placeholder: N ? "Select module and flow first" : k ? ee.expected ? "Required — Enter expected result" : "Not needed for this action" : "Select an action first",
|
|
61935
61935
|
onBlur: (e) => ae("expected", e.target.value)
|
|
61936
61936
|
})
|
|
61937
61937
|
})
|
|
@@ -62643,8 +62643,8 @@ function fG({ moduleName: e, view: t = "", scope: n = "", scopeConditions: r = u
|
|
|
62643
62643
|
b,
|
|
62644
62644
|
_,
|
|
62645
62645
|
e
|
|
62646
|
-
]), S = !g && v, C = g ? null : y, w = x.map((e) => e.key).join("|"), { valuesByField: T, loadingFields: E, fetchValues: D } = cn(e), O = Array.isArray(r) && r.length ? JSON.stringify(r) : "", k = L(() => O ? { scopeConditions: JSON.parse(O) } : null, [O]), A = aG(i), [j, M] = R(() => rG(x, i)), [N,
|
|
62647
|
-
te !==
|
|
62646
|
+
]), S = !g && v, C = g ? null : y, w = x.map((e) => e.key).join("|"), { valuesByField: T, loadingFields: E, fetchValues: D } = cn(e), O = Array.isArray(r) && r.length ? JSON.stringify(r) : "", k = L(() => O ? { scopeConditions: JSON.parse(O) } : null, [O]), A = aG(i), [j, M] = R(() => rG(x, i)), [N, ee] = R(A), [P, F] = R(`${A}#${w}`), te = `${A}#${w}`;
|
|
62647
|
+
te !== P && (F(te), (P.split("#")[1] !== w || A !== N) && (M(rG(x, i)), ee(A)));
|
|
62648
62648
|
let ne = L(() => {
|
|
62649
62649
|
let e = {};
|
|
62650
62650
|
return (Array.isArray(i) ? i : []).forEach((t) => {
|
|
@@ -62676,7 +62676,7 @@ function fG({ moduleName: e, view: t = "", scope: n = "", scopeConditions: r = u
|
|
|
62676
62676
|
let ae = Mo((e) => {
|
|
62677
62677
|
clearTimeout(re.current), re.current = null;
|
|
62678
62678
|
let { labelsByField: t, railFields: n, onChange: r } = ie.current, i = nG(n, e ?? ie.current.draft, t);
|
|
62679
|
-
|
|
62679
|
+
ee(aG(i)), r?.(i);
|
|
62680
62680
|
}, []), oe = Mo((e, t, { immediate: n = !1, deferred: r = !1 } = {}) => {
|
|
62681
62681
|
let i = {
|
|
62682
62682
|
...ie.current.draft,
|
|
@@ -62690,7 +62690,7 @@ function fG({ moduleName: e, view: t = "", scope: n = "", scopeConditions: r = u
|
|
|
62690
62690
|
clearTimeout(re.current), M({}), ie.current = {
|
|
62691
62691
|
...ie.current,
|
|
62692
62692
|
draft: {}
|
|
62693
|
-
},
|
|
62693
|
+
}, ee(aG([])), ie.current.onChange?.([]);
|
|
62694
62694
|
}, []), [ce, le] = R(() => /* @__PURE__ */ new Set()), [ue, de] = R("");
|
|
62695
62695
|
if (w && ue !== w) {
|
|
62696
62696
|
de(w);
|
|
@@ -63065,44 +63065,46 @@ function vG(e) {
|
|
|
63065
63065
|
return e;
|
|
63066
63066
|
}
|
|
63067
63067
|
}
|
|
63068
|
-
function yG({ filters: e = gG, search: t = "", refreshTick: n = 0, baseFetch: r = Ut } = {}) {
|
|
63069
|
-
let
|
|
63070
|
-
lastQuerySig:
|
|
63068
|
+
function yG({ filters: e = gG, search: t = "", refreshTick: n = 0, baseFetch: r = Ut, keepResponse: i = !1 } = {}) {
|
|
63069
|
+
let a = `${aG(e)}|${String(t ?? "").trim()}`, [o] = R(() => ({
|
|
63070
|
+
lastQuerySig: a,
|
|
63071
63071
|
seq: 0,
|
|
63072
63072
|
inflight: 0
|
|
63073
|
-
})), [
|
|
63073
|
+
})), [s, c] = R(null), [l, u] = R(!1), [d, f] = R(null);
|
|
63074
63074
|
return {
|
|
63075
63075
|
fetchData: L(() => bG({
|
|
63076
|
-
querySig:
|
|
63076
|
+
querySig: a,
|
|
63077
63077
|
search: t,
|
|
63078
63078
|
filters: e,
|
|
63079
63079
|
baseFetch: r,
|
|
63080
|
-
store:
|
|
63081
|
-
setSnapshot:
|
|
63082
|
-
setLoading:
|
|
63083
|
-
setLastError:
|
|
63080
|
+
store: o,
|
|
63081
|
+
setSnapshot: c,
|
|
63082
|
+
setLoading: u,
|
|
63083
|
+
setLastError: f,
|
|
63084
|
+
keepResponse: i
|
|
63084
63085
|
}), [
|
|
63085
|
-
|
|
63086
|
+
a,
|
|
63086
63087
|
n,
|
|
63087
|
-
r
|
|
63088
|
+
r,
|
|
63089
|
+
i
|
|
63088
63090
|
]),
|
|
63089
|
-
snapshot:
|
|
63090
|
-
loading:
|
|
63091
|
-
error:
|
|
63091
|
+
snapshot: s,
|
|
63092
|
+
loading: l,
|
|
63093
|
+
error: d
|
|
63092
63094
|
};
|
|
63093
63095
|
}
|
|
63094
|
-
function bG({ querySig: e, search: t, filters: n, baseFetch: r, store: i, setSnapshot: a, setLoading: o, setLastError: s }) {
|
|
63095
|
-
let
|
|
63096
|
+
function bG({ querySig: e, search: t, filters: n, baseFetch: r, store: i, setSnapshot: a, setLoading: o, setLastError: s, keepResponse: c = !1 }) {
|
|
63097
|
+
let l = e, u = c ? (e) => e : vG, d = String(t ?? "").trim(), f = Array.isArray(n) ? n : gG, p = /* @__PURE__ */ new Map(), m = async (e, t, n, c) => {
|
|
63096
63098
|
i.seq += 1;
|
|
63097
|
-
let
|
|
63099
|
+
let l = i.seq;
|
|
63098
63100
|
i.inflight += 1, o(!0);
|
|
63099
63101
|
try {
|
|
63100
63102
|
let o = await r(e, t, n, {
|
|
63101
63103
|
...c,
|
|
63102
|
-
search:
|
|
63103
|
-
filters: [...Array.isArray(c.filters) ? c.filters : gG, ...
|
|
63104
|
+
search: d || c.search || "",
|
|
63105
|
+
filters: [...Array.isArray(c.filters) ? c.filters : gG, ...f]
|
|
63104
63106
|
});
|
|
63105
|
-
if (
|
|
63107
|
+
if (l === i.seq) {
|
|
63106
63108
|
let r = jt(o, e);
|
|
63107
63109
|
a({
|
|
63108
63110
|
rows: r.rows,
|
|
@@ -63115,14 +63117,14 @@ function bG({ querySig: e, search: t, filters: n, baseFetch: r, store: i, setSna
|
|
|
63115
63117
|
}
|
|
63116
63118
|
return o;
|
|
63117
63119
|
} catch (e) {
|
|
63118
|
-
throw
|
|
63120
|
+
throw l === i.seq && s(e), e;
|
|
63119
63121
|
} finally {
|
|
63120
63122
|
i.inflight = Math.max(0, i.inflight - 1), i.inflight === 0 && o(!1);
|
|
63121
63123
|
}
|
|
63122
63124
|
};
|
|
63123
63125
|
return async (e, t, n, r = {}) => {
|
|
63124
63126
|
let a = n;
|
|
63125
|
-
i.lastQuerySig !==
|
|
63127
|
+
i.lastQuerySig !== l && (a = 0, i.lastQuerySig = l);
|
|
63126
63128
|
let o = JSON.stringify([
|
|
63127
63129
|
e,
|
|
63128
63130
|
t,
|
|
@@ -63133,12 +63135,12 @@ function bG({ querySig: e, search: t, filters: n, baseFetch: r, store: i, setSna
|
|
|
63133
63135
|
r.search ?? "",
|
|
63134
63136
|
aG(r.filters),
|
|
63135
63137
|
r.queryParams ?? null
|
|
63136
|
-
]), s =
|
|
63137
|
-
if (s && (s.settledAt == null || Date.now() - s.settledAt < _G)) return
|
|
63138
|
-
let
|
|
63139
|
-
return
|
|
63140
|
-
throw
|
|
63141
|
-
}),
|
|
63138
|
+
]), s = p.get(o);
|
|
63139
|
+
if (s && (s.settledAt == null || Date.now() - s.settledAt < _G)) return u(await s.promise);
|
|
63140
|
+
let c = { settledAt: null };
|
|
63141
|
+
return c.promise = m(e, t, a, r).then((e) => (c.settledAt = Date.now(), e), (e) => {
|
|
63142
|
+
throw p.delete(o), e;
|
|
63143
|
+
}), p.set(o, c), u(await c.promise);
|
|
63142
63144
|
};
|
|
63143
63145
|
}
|
|
63144
63146
|
function xG(e) {
|
|
@@ -63743,33 +63745,33 @@ function pK(e, t, n) {
|
|
|
63743
63745
|
let r = (e, t) => typeof n == "function" ? n(e, t) : typeof n == "string" ? e?.[n] : e?.id ?? e?._id ?? e?.key;
|
|
63744
63746
|
return e.find((e, n) => e && typeof e == "object" && String(r(e, n) ?? "") === String(t)) ?? null;
|
|
63745
63747
|
}
|
|
63746
|
-
function mK({ tabKey: e, active: t, module: n, accessModule: r = "", relation: i, parentId: a, title: o, showRail: s = !0, railMode: c = "docked", railWidth: l = 300, quickViewMode: u = "docked", listComponent: d, listProps: f, renderQuickView: p, onOpenRecord: m, refreshKey: h = 0, quickViewWidth: g = 340, unscoped: _ = !1, fetchData: v = null,
|
|
63747
|
-
let [
|
|
63748
|
-
if (!
|
|
63749
|
-
|
|
63748
|
+
function mK({ tabKey: e, active: t, module: n, accessModule: r = "", relation: i, parentId: a, title: o, showRail: s = !0, railMode: c = "docked", railWidth: l = 300, quickViewMode: u = "docked", listComponent: d, listProps: f, renderQuickView: p, onOpenRecord: m, refreshKey: h = 0, quickViewWidth: g = 340, unscoped: _ = !1, fetchData: v = null, keepFetchResponse: y = !1, recordLinks: b = "inPlace", cacheMs: x = 0, preload: S = !1, onPreloaded: C, openInPlace: w = !0, selectedParam: T = "", keepPageInUrl: E = !1 }) {
|
|
63749
|
+
let [D, O] = ou(), k = t ?? (!e || D.get("tab") === e), { canView: A } = Yt(r || n), [j, M] = R(fK), [N, ee] = R(null), P = T ? D.get(T) || null : N, F = Mo((e) => {
|
|
63750
|
+
if (!T) {
|
|
63751
|
+
ee(e);
|
|
63750
63752
|
return;
|
|
63751
63753
|
}
|
|
63752
|
-
|
|
63754
|
+
O((t) => {
|
|
63753
63755
|
let n = new URLSearchParams(t);
|
|
63754
|
-
return e ? n.set(
|
|
63756
|
+
return e ? n.set(T, String(e)) : n.delete(T), n;
|
|
63755
63757
|
}, { replace: !0 });
|
|
63756
|
-
}, [
|
|
63758
|
+
}, [T, O]), [te, ne] = R({
|
|
63757
63759
|
id: "",
|
|
63758
63760
|
row: null
|
|
63759
|
-
}),
|
|
63761
|
+
}), re = Mo((e, t) => ne({
|
|
63760
63762
|
id: String(e ?? ""),
|
|
63761
63763
|
row: t && typeof t == "object" ? t : null
|
|
63762
|
-
}), []), [
|
|
63763
|
-
!
|
|
63764
|
-
|
|
63764
|
+
}), []), [ie, ae] = R(!1), oe = xG(D), [se, ce] = R(!1), [le, ue] = R(E && k);
|
|
63765
|
+
!k && le && ue(!1), !k && se && (ce(!1), ie && ae(!1)), k && !se && (oe === 1 || le) && ce(!0), I(() => {
|
|
63766
|
+
k && !se && oe > 1 && O((e) => SG(e, 1), { replace: !0 });
|
|
63765
63767
|
}, [
|
|
63766
|
-
|
|
63768
|
+
k,
|
|
63769
|
+
se,
|
|
63767
63770
|
oe,
|
|
63768
|
-
|
|
63769
|
-
D
|
|
63771
|
+
O
|
|
63770
63772
|
]);
|
|
63771
|
-
let
|
|
63772
|
-
let e = JSON.parse(
|
|
63773
|
+
let de = JSON.stringify(i ?? null), fe = D.get("sub") ?? "", { relation: pe, subTabs: me, activeSubKey: he, subRelations: ge } = L(() => {
|
|
63774
|
+
let e = JSON.parse(de), t = KG(e), r = t.find((e) => e.key === fe) ?? t[0] ?? null;
|
|
63773
63775
|
return {
|
|
63774
63776
|
relation: GG(e, r),
|
|
63775
63777
|
subTabs: t,
|
|
@@ -63782,26 +63784,26 @@ function mK({ tabKey: e, active: t, module: n, accessModule: r = "", relation: i
|
|
|
63782
63784
|
}))
|
|
63783
63785
|
};
|
|
63784
63786
|
}, [
|
|
63785
|
-
ue,
|
|
63786
63787
|
de,
|
|
63788
|
+
fe,
|
|
63787
63789
|
n,
|
|
63788
63790
|
_
|
|
63789
|
-
]), { counts:
|
|
63790
|
-
|
|
63791
|
-
let
|
|
63792
|
-
|
|
63791
|
+
]), { counts: _e } = dK(k && se || S && x > 0 ? ge : fK, a, h, { cacheMs: x }), [ve, ye] = R(null);
|
|
63792
|
+
ve !== null && ve === he && ye(null);
|
|
63793
|
+
let be = ve ?? he, xe = Mo((e) => {
|
|
63794
|
+
ye(e), ee(null), O((t) => {
|
|
63793
63795
|
let n = SG(t, 1);
|
|
63794
|
-
return n.set("sub", e),
|
|
63796
|
+
return n.set("sub", e), T && n.delete(T), n;
|
|
63795
63797
|
}, { replace: !0 });
|
|
63796
|
-
}, [
|
|
63798
|
+
}, [T, O]), Se = _ ? `unscoped:${JSON.stringify(UG(pe))}` : WG(pe, a), Ce = pe?.fallback ? WG(pe.fallback, a) : "", we = L(() => _ ? UG(pe) : HG(pe, a), [Se]), Te = L(() => Ce ? HG(pe.fallback, a) : null, [Ce]), Ee = YG(we), [De, Oe] = R({
|
|
63797
63799
|
module: "",
|
|
63798
63800
|
ok: null
|
|
63799
63801
|
});
|
|
63800
63802
|
I(() => {
|
|
63801
|
-
if (!
|
|
63803
|
+
if (!Ee || !k && !S) return;
|
|
63802
63804
|
let e = !1;
|
|
63803
63805
|
return XG(n).then((t) => {
|
|
63804
|
-
e ||
|
|
63806
|
+
e || Oe({
|
|
63805
63807
|
module: n,
|
|
63806
63808
|
ok: t
|
|
63807
63809
|
});
|
|
@@ -63809,107 +63811,108 @@ function mK({ tabKey: e, active: t, module: n, accessModule: r = "", relation: i
|
|
|
63809
63811
|
e = !0;
|
|
63810
63812
|
};
|
|
63811
63813
|
}, [
|
|
63812
|
-
|
|
63813
|
-
|
|
63814
|
-
|
|
63814
|
+
Ee,
|
|
63815
|
+
k,
|
|
63816
|
+
S,
|
|
63815
63817
|
n
|
|
63816
63818
|
]);
|
|
63817
|
-
let
|
|
63818
|
-
let e =
|
|
63819
|
+
let ke = De.module === n && De.ok !== null, Ae = Ee && ke && De.ok === !1 && Te && !YG(Te), je = !Ee || ke && (De.ok === !0 || !!Ae), Me = Ee && ke && De.ok === !1 && !Ae, Ne = Ae ? Te : we, Pe = typeof pe?.scope == "string" ? pe.scope.trim() : "", Fe = pe?.queryParams && typeof pe.queryParams == "object" ? JSON.stringify(Object.fromEntries(Object.entries(pe.queryParams).map(([e, t]) => [e, typeof t == "string" && t.includes("{id}") ? t.split("{id}").join(String(a ?? "")) : t]))) : "", Ie = Array.isArray(pe?.filterFields) ? JSON.stringify(pe.filterFields) : "", Le = L(() => Ie ? JSON.parse(Ie) : null, [Ie]), [Re, ze] = R(null), Be = typeof pe?.queryParams?.view == "string" ? pe.queryParams.view.trim() : "", Ve = L(() => {
|
|
63820
|
+
let e = Fe ? JSON.parse(Fe) : null, t = typeof v == "function" ? v : Ut;
|
|
63819
63821
|
return (n, r, i, a = {}) => t(n, r, i, {
|
|
63820
63822
|
...a,
|
|
63821
|
-
...
|
|
63823
|
+
...Pe ? { scope: Pe } : {},
|
|
63822
63824
|
...e ? { queryParams: {
|
|
63823
63825
|
...a.queryParams ?? {},
|
|
63824
63826
|
...e
|
|
63825
63827
|
} } : {},
|
|
63826
|
-
scopeConditions:
|
|
63828
|
+
scopeConditions: Ne
|
|
63827
63829
|
});
|
|
63828
63830
|
}, [
|
|
63829
|
-
Me,
|
|
63830
63831
|
Ne,
|
|
63831
63832
|
Pe,
|
|
63833
|
+
Fe,
|
|
63832
63834
|
v
|
|
63833
|
-
]),
|
|
63834
|
-
cacheMs:
|
|
63835
|
-
ns: `${e ?? ""}|${n}|${_ ? "" : a ?? ""}|${h}|${
|
|
63835
|
+
]), He = `${Pe}|${Fe}|${JSON.stringify(Ne ?? null)}`, Ue = L(() => cK(Ve, {
|
|
63836
|
+
cacheMs: x,
|
|
63837
|
+
ns: `${e ?? ""}|${n}|${_ ? "" : a ?? ""}|${h}|${He}`
|
|
63836
63838
|
}), [
|
|
63837
|
-
|
|
63838
|
-
|
|
63839
|
+
Ve,
|
|
63840
|
+
x,
|
|
63839
63841
|
e,
|
|
63840
63842
|
n,
|
|
63841
63843
|
_,
|
|
63842
63844
|
a,
|
|
63843
63845
|
h,
|
|
63844
|
-
|
|
63845
|
-
]),
|
|
63846
|
-
let t = await
|
|
63847
|
-
return n && typeof n == "object" &&
|
|
63848
|
-
} :
|
|
63849
|
-
filters:
|
|
63850
|
-
...
|
|
63846
|
+
He
|
|
63847
|
+
]), We = L(() => Le ? async (...e) => {
|
|
63848
|
+
let t = await Ue(...e), n = t?.data?.facets ?? t?.facets;
|
|
63849
|
+
return n && typeof n == "object" && ze(n), t;
|
|
63850
|
+
} : Ue, [Ue, Le]), Ge = L(() => tG(j), [j]), { fetchData: Ke, loading: qe } = yG({
|
|
63851
|
+
filters: Le ? Ge.filters : j,
|
|
63852
|
+
...Le && Ge.search ? { search: Ge.search } : {},
|
|
63851
63853
|
refreshTick: h,
|
|
63852
|
-
baseFetch:
|
|
63853
|
-
|
|
63854
|
+
baseFetch: We,
|
|
63855
|
+
keepResponse: y
|
|
63856
|
+
}), Je = Number(f?.initialPageSize) > 0 ? Number(f.initialPageSize) : 10, Ye = Me || !A;
|
|
63854
63857
|
I(() => {
|
|
63855
|
-
if (!
|
|
63856
|
-
if (!(
|
|
63857
|
-
|
|
63858
|
+
if (!S) return;
|
|
63859
|
+
if (!(x > 0) || Ye) {
|
|
63860
|
+
C?.(e);
|
|
63858
63861
|
return;
|
|
63859
63862
|
}
|
|
63860
|
-
if (!
|
|
63863
|
+
if (!je) return;
|
|
63861
63864
|
let t = !1;
|
|
63862
|
-
return Promise.resolve().then(() =>
|
|
63863
|
-
t ||
|
|
63865
|
+
return Promise.resolve().then(() => Ue(n, Je, 0, {})).catch(() => null).then(() => {
|
|
63866
|
+
t || C?.(e);
|
|
63864
63867
|
}), () => {
|
|
63865
63868
|
t = !0;
|
|
63866
63869
|
};
|
|
63867
63870
|
}, [
|
|
63871
|
+
S,
|
|
63868
63872
|
x,
|
|
63869
|
-
|
|
63870
|
-
|
|
63871
|
-
|
|
63872
|
-
He,
|
|
63873
|
+
Ye,
|
|
63874
|
+
je,
|
|
63875
|
+
Ue,
|
|
63873
63876
|
n,
|
|
63874
|
-
|
|
63875
|
-
|
|
63877
|
+
Je,
|
|
63878
|
+
C,
|
|
63876
63879
|
e
|
|
63877
63880
|
]);
|
|
63878
|
-
let
|
|
63879
|
-
title:
|
|
63881
|
+
let Xe = s && c === "popover", Ze = iG(j), Qe = f?.toolbarExtra ?? null, $e = L(() => Xe ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(q, {
|
|
63882
|
+
title: Ze ? `Filters (${Ze} active)` : "Filters",
|
|
63880
63883
|
children: /* @__PURE__ */ X(Vo, {
|
|
63881
|
-
count:
|
|
63884
|
+
count: Ze,
|
|
63882
63885
|
size: "small",
|
|
63883
63886
|
offset: [-4, 4],
|
|
63884
63887
|
children: /* @__PURE__ */ X(z, {
|
|
63885
|
-
className: `rh-filter-btn${
|
|
63888
|
+
className: `rh-filter-btn${ie || Ze ? " is-active" : ""}`,
|
|
63886
63889
|
icon: /* @__PURE__ */ X(jc, {}),
|
|
63887
|
-
"aria-label":
|
|
63888
|
-
"aria-expanded":
|
|
63890
|
+
"aria-label": ie ? "Hide filters" : "Show filters",
|
|
63891
|
+
"aria-expanded": ie,
|
|
63889
63892
|
"aria-haspopup": "dialog",
|
|
63890
|
-
onClick: () =>
|
|
63893
|
+
onClick: () => ae((e) => !e)
|
|
63891
63894
|
})
|
|
63892
63895
|
})
|
|
63893
|
-
}),
|
|
63894
|
-
Ye,
|
|
63896
|
+
}), Qe] }) : Qe, [
|
|
63895
63897
|
Xe,
|
|
63896
|
-
|
|
63897
|
-
|
|
63898
|
-
|
|
63898
|
+
Ze,
|
|
63899
|
+
ie,
|
|
63900
|
+
Qe
|
|
63901
|
+
]), [et, tt] = R(null), nt = f?.responseMapper, rt = f?.rowKey, it = !!T, at = Io(P);
|
|
63899
63902
|
I(() => {
|
|
63900
|
-
|
|
63903
|
+
at.current = P;
|
|
63901
63904
|
}, [P]);
|
|
63902
|
-
let
|
|
63903
|
-
if (!
|
|
63904
|
-
let e = typeof
|
|
63905
|
+
let ot = L(() => {
|
|
63906
|
+
if (!it) return nt;
|
|
63907
|
+
let e = typeof nt == "function" ? nt : jt;
|
|
63905
63908
|
return (t, n) => {
|
|
63906
63909
|
let r = e(t, n);
|
|
63907
63910
|
if (Array.isArray(r?.rows)) {
|
|
63908
63911
|
let e = r.rows;
|
|
63909
|
-
|
|
63910
|
-
let n =
|
|
63912
|
+
tt(e), ne((t) => {
|
|
63913
|
+
let n = at.current;
|
|
63911
63914
|
if (!n || t.id === String(n)) return t;
|
|
63912
|
-
let r = pK(e, n,
|
|
63915
|
+
let r = pK(e, n, rt);
|
|
63913
63916
|
return r ? {
|
|
63914
63917
|
id: String(n),
|
|
63915
63918
|
row: r
|
|
@@ -63919,17 +63922,17 @@ function mK({ tabKey: e, active: t, module: n, accessModule: r = "", relation: i
|
|
|
63919
63922
|
return r;
|
|
63920
63923
|
};
|
|
63921
63924
|
}, [
|
|
63922
|
-
|
|
63923
|
-
|
|
63924
|
-
|
|
63925
|
-
]),
|
|
63925
|
+
it,
|
|
63926
|
+
nt,
|
|
63927
|
+
rt
|
|
63928
|
+
]), st = L(() => P ? te.id === String(P) ? te.row : pK(et, P, rt) : null, [
|
|
63926
63929
|
P,
|
|
63927
|
-
|
|
63928
|
-
|
|
63929
|
-
|
|
63930
|
-
]),
|
|
63930
|
+
te,
|
|
63931
|
+
et,
|
|
63932
|
+
rt
|
|
63933
|
+
]), ct = L(() => ({
|
|
63931
63934
|
moduleName: n,
|
|
63932
|
-
fetchData:
|
|
63935
|
+
fetchData: Ke,
|
|
63933
63936
|
showAdd: !1,
|
|
63934
63937
|
showFilterButton: !s,
|
|
63935
63938
|
showViewToggle: !1,
|
|
@@ -63938,33 +63941,33 @@ function mK({ tabKey: e, active: t, module: n, accessModule: r = "", relation: i
|
|
|
63938
63941
|
deferFieldConfig: !0,
|
|
63939
63942
|
hideFilterButton: s,
|
|
63940
63943
|
...f ?? {},
|
|
63941
|
-
toolbarExtra:
|
|
63942
|
-
dataKey: `${e ?? ""}|${
|
|
63943
|
-
dataPending:
|
|
63944
|
+
toolbarExtra: $e,
|
|
63945
|
+
dataKey: `${e ?? ""}|${He}`,
|
|
63946
|
+
dataPending: ve !== null,
|
|
63944
63947
|
redirectOnViewDenied: !1,
|
|
63945
|
-
...
|
|
63948
|
+
...it ? { responseMapper: ot } : {}
|
|
63946
63949
|
}), [
|
|
63947
63950
|
n,
|
|
63948
|
-
|
|
63951
|
+
Ke,
|
|
63949
63952
|
s,
|
|
63950
63953
|
f,
|
|
63951
|
-
|
|
63954
|
+
$e,
|
|
63952
63955
|
e,
|
|
63953
|
-
|
|
63954
|
-
|
|
63955
|
-
|
|
63956
|
-
|
|
63957
|
-
]),
|
|
63958
|
-
P && m?.(n, P,
|
|
63956
|
+
He,
|
|
63957
|
+
ve,
|
|
63958
|
+
it,
|
|
63959
|
+
ot
|
|
63960
|
+
]), lt = Mo(() => F(null), [F]), ut = Mo(() => ae(!1), []), dt = Mo(() => {
|
|
63961
|
+
P && m?.(n, P, st);
|
|
63959
63962
|
}, [
|
|
63960
63963
|
P,
|
|
63961
|
-
|
|
63964
|
+
st,
|
|
63962
63965
|
m,
|
|
63963
63966
|
n
|
|
63964
63967
|
]);
|
|
63965
|
-
if (
|
|
63966
|
-
if (!
|
|
63967
|
-
if (
|
|
63968
|
+
if (S) return null;
|
|
63969
|
+
if (!k || !se) return /* @__PURE__ */ X("div", { className: "rh-related rh-related--idle" });
|
|
63970
|
+
if (Me) return /* @__PURE__ */ X("div", {
|
|
63968
63971
|
className: "rh-related rh-related--no-rail",
|
|
63969
63972
|
"data-module": n,
|
|
63970
63973
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -63973,8 +63976,8 @@ function mK({ tabKey: e, active: t, module: n, accessModule: r = "", relation: i
|
|
|
63973
63976
|
children: [o ?? n, " cannot be listed: the running server does not support this tab's filter (\"anyOf\"). Update the server."]
|
|
63974
63977
|
})
|
|
63975
63978
|
});
|
|
63976
|
-
if (!
|
|
63977
|
-
if (!
|
|
63979
|
+
if (!je) return /* @__PURE__ */ X("div", { className: "rh-related rh-related--idle" });
|
|
63980
|
+
if (!A) return /* @__PURE__ */ X("div", {
|
|
63978
63981
|
className: "rh-related rh-related--no-rail",
|
|
63979
63982
|
"data-module": n,
|
|
63980
63983
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -63987,70 +63990,70 @@ function mK({ tabKey: e, active: t, module: n, accessModule: r = "", relation: i
|
|
|
63987
63990
|
]
|
|
63988
63991
|
})
|
|
63989
63992
|
});
|
|
63990
|
-
let
|
|
63993
|
+
let ft = P ? p?.({
|
|
63991
63994
|
module: n,
|
|
63992
63995
|
id: P,
|
|
63993
|
-
record:
|
|
63994
|
-
onClose:
|
|
63995
|
-
onOpenFull: m ?
|
|
63996
|
+
record: st,
|
|
63997
|
+
onClose: lt,
|
|
63998
|
+
onOpenFull: m ? dt : void 0
|
|
63996
63999
|
}) ?? /* @__PURE__ */ X(LG, {
|
|
63997
64000
|
moduleName: n,
|
|
63998
64001
|
id: P,
|
|
63999
|
-
onClose:
|
|
64000
|
-
onOpenFull: m ?
|
|
64002
|
+
onClose: lt,
|
|
64003
|
+
onOpenFull: m ? dt : void 0,
|
|
64001
64004
|
refreshKey: h
|
|
64002
64005
|
}, P) : null;
|
|
64003
64006
|
return /* @__PURE__ */ Z("div", {
|
|
64004
|
-
className: `rh-related${!s ||
|
|
64007
|
+
className: `rh-related${!s || Xe ? " rh-related--no-rail" : ""}`,
|
|
64005
64008
|
"data-module": n,
|
|
64006
64009
|
children: [
|
|
64007
|
-
s && !
|
|
64010
|
+
s && !Xe && /* @__PURE__ */ X("aside", {
|
|
64008
64011
|
className: "rh-related__rail",
|
|
64009
64012
|
children: /* @__PURE__ */ X(fG, {
|
|
64010
64013
|
moduleName: n,
|
|
64011
|
-
view:
|
|
64012
|
-
scopeConditions:
|
|
64013
|
-
value:
|
|
64014
|
-
onChange:
|
|
64015
|
-
...
|
|
64016
|
-
fields:
|
|
64017
|
-
optionCounts:
|
|
64014
|
+
view: Be,
|
|
64015
|
+
scopeConditions: Ne,
|
|
64016
|
+
value: j,
|
|
64017
|
+
onChange: M,
|
|
64018
|
+
...Le ? {
|
|
64019
|
+
fields: Le,
|
|
64020
|
+
optionCounts: Re
|
|
64018
64021
|
} : {}
|
|
64019
64022
|
})
|
|
64020
64023
|
}),
|
|
64021
|
-
|
|
64022
|
-
open:
|
|
64023
|
-
onClose:
|
|
64024
|
+
Xe && /* @__PURE__ */ X(TG, {
|
|
64025
|
+
open: ie,
|
|
64026
|
+
onClose: ut,
|
|
64024
64027
|
placement: "left",
|
|
64025
64028
|
width: l,
|
|
64026
64029
|
ariaLabel: "Filters",
|
|
64027
64030
|
className: "rh-filter-popover",
|
|
64028
64031
|
children: /* @__PURE__ */ X(fG, {
|
|
64029
64032
|
moduleName: n,
|
|
64030
|
-
view:
|
|
64031
|
-
scopeConditions:
|
|
64032
|
-
value:
|
|
64033
|
-
onChange:
|
|
64034
|
-
onCollapse:
|
|
64035
|
-
...
|
|
64036
|
-
fields:
|
|
64037
|
-
optionCounts:
|
|
64033
|
+
view: Be,
|
|
64034
|
+
scopeConditions: Ne,
|
|
64035
|
+
value: j,
|
|
64036
|
+
onChange: M,
|
|
64037
|
+
onCollapse: ut,
|
|
64038
|
+
...Le ? {
|
|
64039
|
+
fields: Le,
|
|
64040
|
+
optionCounts: Re
|
|
64038
64041
|
} : {}
|
|
64039
64042
|
})
|
|
64040
64043
|
}),
|
|
64041
64044
|
/* @__PURE__ */ Z("section", {
|
|
64042
64045
|
className: "rh-related__main",
|
|
64043
64046
|
"aria-label": o ?? n,
|
|
64044
|
-
children: [
|
|
64047
|
+
children: [me.length > 0 && /* @__PURE__ */ X(fs, {
|
|
64045
64048
|
className: "rh-subtabs",
|
|
64046
64049
|
"aria-label": `${o ?? n} sections`,
|
|
64047
|
-
value:
|
|
64050
|
+
value: be,
|
|
64048
64051
|
onChange: (e) => {
|
|
64049
|
-
e !==
|
|
64052
|
+
e !== be && xe(String(e));
|
|
64050
64053
|
},
|
|
64051
64054
|
style: { marginBottom: 12 },
|
|
64052
|
-
options:
|
|
64053
|
-
let t =
|
|
64055
|
+
options: me.map((e) => {
|
|
64056
|
+
let t = _e[e.key];
|
|
64054
64057
|
return {
|
|
64055
64058
|
value: e.key,
|
|
64056
64059
|
label: /* @__PURE__ */ Z(Qo, {
|
|
@@ -64065,18 +64068,18 @@ function mK({ tabKey: e, active: t, module: n, accessModule: r = "", relation: i
|
|
|
64065
64068
|
})
|
|
64066
64069
|
}), /* @__PURE__ */ X(EG, {
|
|
64067
64070
|
open: !!P,
|
|
64068
|
-
quickView:
|
|
64071
|
+
quickView: ft,
|
|
64069
64072
|
width: g,
|
|
64070
64073
|
mode: u === "overlay" ? "overlay" : "docked",
|
|
64071
|
-
onClose:
|
|
64074
|
+
onClose: lt,
|
|
64072
64075
|
children: /* @__PURE__ */ X(wG, {
|
|
64073
|
-
recordLinks:
|
|
64076
|
+
recordLinks: b,
|
|
64074
64077
|
component: d,
|
|
64075
|
-
listProps:
|
|
64076
|
-
loading:
|
|
64078
|
+
listProps: ct,
|
|
64079
|
+
loading: qe,
|
|
64077
64080
|
selectedRecordId: P || void 0,
|
|
64078
|
-
onOpenRecord:
|
|
64079
|
-
|
|
64081
|
+
onOpenRecord: w ? (e, t) => {
|
|
64082
|
+
F(String(e)), re(e, t);
|
|
64080
64083
|
} : void 0
|
|
64081
64084
|
})
|
|
64082
64085
|
})]
|
|
@@ -64205,14 +64208,14 @@ function jK(e = {}) {
|
|
|
64205
64208
|
} catch {}
|
|
64206
64209
|
}
|
|
64207
64210
|
}
|
|
64208
|
-
function
|
|
64211
|
+
function ee({ immediate: e = !1 } = {}) {
|
|
64209
64212
|
if (T || d.size === 0 || g === wK.DISABLED || b != null) return;
|
|
64210
64213
|
let t = Math.min(vK, _K * 2 ** Math.min(y, 10)), n = Math.round(t * (.7 + u() * .6)), r = e ? 0 : n;
|
|
64211
64214
|
y += 1, g !== wK.UNAUTHORIZED && E(wK.RECONNECTING), b = a(() => {
|
|
64212
64215
|
b = null, F();
|
|
64213
64216
|
}, r);
|
|
64214
64217
|
}
|
|
64215
|
-
async function
|
|
64218
|
+
async function P() {
|
|
64216
64219
|
let e = await n?.();
|
|
64217
64220
|
if (!e) {
|
|
64218
64221
|
let e = /* @__PURE__ */ Error("not signed in");
|
|
@@ -64236,10 +64239,10 @@ function jK(e = {}) {
|
|
|
64236
64239
|
E(w ? wK.RECONNECTING : wK.CONNECTING);
|
|
64237
64240
|
let n;
|
|
64238
64241
|
try {
|
|
64239
|
-
n = await
|
|
64242
|
+
n = await P();
|
|
64240
64243
|
} catch (t) {
|
|
64241
64244
|
if (e !== v || T) return;
|
|
64242
|
-
(t?.status === 401 || t?.status === 403) && E(wK.UNAUTHORIZED),
|
|
64245
|
+
(t?.status === 401 || t?.status === 403) && E(wK.UNAUTHORIZED), ee();
|
|
64243
64246
|
return;
|
|
64244
64247
|
}
|
|
64245
64248
|
if (e !== v || T || d.size === 0) return;
|
|
@@ -64247,16 +64250,16 @@ function jK(e = {}) {
|
|
|
64247
64250
|
try {
|
|
64248
64251
|
r = new i(AK(t(), n));
|
|
64249
64252
|
} catch {
|
|
64250
|
-
|
|
64253
|
+
ee();
|
|
64251
64254
|
return;
|
|
64252
64255
|
}
|
|
64253
64256
|
_ = r, S = l(), r.onmessage = (e) => j(e.data), r.onerror = () => {}, r.onclose = (e) => {
|
|
64254
|
-
_ === r && (_ = null, x != null && (c(x), x = null), !T &&
|
|
64257
|
+
_ === r && (_ = null, x != null && (c(x), x = null), !T && ee({ immediate: e?.code === CK && y < 2 }));
|
|
64255
64258
|
}, x != null && c(x), x = s(() => {
|
|
64256
64259
|
if (_ !== r) return;
|
|
64257
64260
|
let e = l() - S;
|
|
64258
64261
|
if (e > xK) {
|
|
64259
|
-
N(),
|
|
64262
|
+
N(), ee({ immediate: !0 });
|
|
64260
64263
|
return;
|
|
64261
64264
|
}
|
|
64262
64265
|
e > bK && l() - C > bK && (C = l(), D({ op: "ping" }));
|
|
@@ -65642,17 +65645,17 @@ function Bq({ config: e, module: t, id: n, record: r = null, onClose: i, onOpenF
|
|
|
65642
65645
|
i,
|
|
65643
65646
|
a,
|
|
65644
65647
|
k
|
|
65645
|
-
]), M = C ? QK(e?.footer).filter((e) => e && $(e.key) && e.moduleActions && typeof e.moduleActions == "object" && rq(e, O, j)).map((e) => String(tq(e.moduleActions.module, O, j) || t || "")).filter(Boolean).join("\n") : "", [N,
|
|
65648
|
+
]), M = C ? QK(e?.footer).filter((e) => e && $(e.key) && e.moduleActions && typeof e.moduleActions == "object" && rq(e, O, j)).map((e) => String(tq(e.moduleActions.module, O, j) || t || "")).filter(Boolean).join("\n") : "", [N, ee] = R("");
|
|
65646
65649
|
I(() => {
|
|
65647
65650
|
if (!M) return;
|
|
65648
65651
|
let e = !1;
|
|
65649
65652
|
return Promise.all(M.split("\n").map((e) => Qv(e))).then(() => {
|
|
65650
|
-
e ||
|
|
65653
|
+
e || ee(M);
|
|
65651
65654
|
}), () => {
|
|
65652
65655
|
e = !0;
|
|
65653
65656
|
};
|
|
65654
65657
|
}, [M]);
|
|
65655
|
-
let
|
|
65658
|
+
let P = M !== "" && N !== M, F = T ? /* @__PURE__ */ X("div", {
|
|
65656
65659
|
className: "cc-progress",
|
|
65657
65660
|
role: "progressbar",
|
|
65658
65661
|
"aria-label": "Refreshing",
|
|
@@ -65786,7 +65789,7 @@ function Bq({ config: e, module: t, id: n, record: r = null, onClose: i, onOpenF
|
|
|
65786
65789
|
ae.length > 0 && /* @__PURE__ */ X(Qo, {
|
|
65787
65790
|
gap: 8,
|
|
65788
65791
|
className: oe ? "cc-qv-footer cc-qv-footer--sticky" : "cc-qv-footer",
|
|
65789
|
-
style:
|
|
65792
|
+
style: P ? {
|
|
65790
65793
|
...ce ?? {},
|
|
65791
65794
|
minHeight: "var(--ant-control-height, 32px)",
|
|
65792
65795
|
boxSizing: "content-box"
|
|
@@ -65900,6 +65903,7 @@ function Vq({ config: e, refreshKey: t = 0 }) {
|
|
|
65900
65903
|
active: !0,
|
|
65901
65904
|
unscoped: !0,
|
|
65902
65905
|
fetchData: typeof i.fetch == "function" ? i.fetch : null,
|
|
65906
|
+
keepFetchResponse: i.fetchKeepsRows === !0,
|
|
65903
65907
|
recordLinks: i.recordLinks === "navigate" || i.quickView === !1 ? "navigate" : "inPlace",
|
|
65904
65908
|
openInPlace: i.quickView !== !1,
|
|
65905
65909
|
module: a,
|
|
@@ -65964,17 +65968,17 @@ function Wq() {
|
|
|
65964
65968
|
//#region src/components/COMBAINED_COMPONENTS/helpers/hub/RecordHub.jsx
|
|
65965
65969
|
var Gq = [];
|
|
65966
65970
|
function Kq({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActions: i = null, headerEndSlot: a = null, banner: o = null, onClose: s, tabs: c = Gq, stats: l = Gq, defaultTab: u, maxVisibleTabs: d = 12, alwaysShowMore: f = !1, moreEmptyLabel: p = "No more sections", listComponent: m, listPropsFor: h, renderQuickView: g, onOpenRecord: _, refreshKey: v = 0, railMode: y, quickViewMode: b, railWidth: x, quickViewWidth: S, className: C = "", selectedParam: w = "", listCacheMs: T = 0, preloadTabs: E = !1, preloadDelayMs: D = 1200 }) {
|
|
65967
|
-
let [O, k] = ou(), A = i ?? a, j = c.map((e) => e.key), M = O.get("tab"), N = u && j.includes(u) ? u : j[0],
|
|
65968
|
-
if (!e || e ===
|
|
65971
|
+
let [O, k] = ou(), A = i ?? a, j = c.map((e) => e.key), M = O.get("tab"), N = u && j.includes(u) ? u : j[0], ee = M && j.includes(M) ? M : N, P = (e) => {
|
|
65972
|
+
if (!e || e === ee) return;
|
|
65969
65973
|
let t = new URLSearchParams(O);
|
|
65970
65974
|
t.set("tab", e), [...t.keys()].filter((e) => /^p\d+$/.test(e)).forEach((e) => t.delete(e)), t.delete("sub"), w && t.delete(w), k(t, { replace: !0 });
|
|
65971
65975
|
}, F = L(() => c.filter((e) => e.module && e.relation), [c]), { counts: te, loading: ne } = dK(l, t, v), re = l.map((e) => ({
|
|
65972
65976
|
key: e.key,
|
|
65973
65977
|
label: e.label,
|
|
65974
65978
|
value: te[e.key],
|
|
65975
|
-
active: !!e.tab &&
|
|
65976
|
-
onClick: e.tab ? () =>
|
|
65977
|
-
})), ie = c.slice(0, d), ae = c.slice(d), oe = ae.some((e) => e.key ===
|
|
65979
|
+
active: !!e.tab && ee === e.tab,
|
|
65980
|
+
onClick: e.tab ? () => P(e.tab) : void 0
|
|
65981
|
+
})), ie = c.slice(0, d), ae = c.slice(d), oe = ae.some((e) => e.key === ee), se = ae.length ? ae.map((e) => ({
|
|
65978
65982
|
key: e.key,
|
|
65979
65983
|
label: e.label
|
|
65980
65984
|
})) : [{
|
|
@@ -65990,7 +65994,7 @@ function Kq({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
65990
65994
|
relatedTabs: F,
|
|
65991
65995
|
railMode: y,
|
|
65992
65996
|
quickViewMode: b,
|
|
65993
|
-
activeTab:
|
|
65997
|
+
activeTab: ee
|
|
65994
65998
|
}), [
|
|
65995
65999
|
m,
|
|
65996
66000
|
h,
|
|
@@ -66000,7 +66004,7 @@ function Kq({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
66000
66004
|
F,
|
|
66001
66005
|
y,
|
|
66002
66006
|
b,
|
|
66003
|
-
|
|
66007
|
+
ee
|
|
66004
66008
|
]), le = (e) => ({
|
|
66005
66009
|
tabKey: e.key,
|
|
66006
66010
|
module: e.module,
|
|
@@ -66055,7 +66059,7 @@ function Kq({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
66055
66059
|
...t,
|
|
66056
66060
|
done: [...t.done, e]
|
|
66057
66061
|
});
|
|
66058
|
-
}, []), me = de.ready && de.id === t ? ue.find((e) => e.key !==
|
|
66062
|
+
}, []), me = de.ready && de.id === t ? ue.find((e) => e.key !== ee && !de.done.includes(e.key)) ?? null : null, he = c.find((e) => e.key === ee) ?? null, ge = null, _e = typeof he?.view == "function" ? he.view({
|
|
66059
66063
|
id: t,
|
|
66060
66064
|
moduleName: e,
|
|
66061
66065
|
refreshKey: v,
|
|
@@ -66133,21 +66137,21 @@ function Kq({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
66133
66137
|
children: [ie.map((e) => /* @__PURE__ */ X("button", {
|
|
66134
66138
|
type: "button",
|
|
66135
66139
|
role: "tab",
|
|
66136
|
-
"aria-selected": e.key ===
|
|
66137
|
-
className: `rh-tabs__item${e.key ===
|
|
66138
|
-
onClick: () =>
|
|
66140
|
+
"aria-selected": e.key === ee,
|
|
66141
|
+
className: `rh-tabs__item${e.key === ee ? " is-active" : ""}`,
|
|
66142
|
+
onClick: () => P(e.key),
|
|
66139
66143
|
children: e.label
|
|
66140
66144
|
}, e.key)), (ae.length > 0 || f) && /* @__PURE__ */ X(Xo, {
|
|
66141
66145
|
trigger: ["click"],
|
|
66142
66146
|
menu: {
|
|
66143
66147
|
items: se,
|
|
66144
|
-
onClick: ({ key: e }) =>
|
|
66148
|
+
onClick: ({ key: e }) => P(e)
|
|
66145
66149
|
},
|
|
66146
66150
|
children: /* @__PURE__ */ Z("button", {
|
|
66147
66151
|
type: "button",
|
|
66148
66152
|
className: `rh-tabs__item rh-tabs__more${oe ? " is-active" : ""}`,
|
|
66149
66153
|
children: [
|
|
66150
|
-
oe ? c.find((e) => e.key ===
|
|
66154
|
+
oe ? c.find((e) => e.key === ee)?.label : "More",
|
|
66151
66155
|
" ",
|
|
66152
66156
|
/* @__PURE__ */ X(dc, {})
|
|
66153
66157
|
]
|
|
@@ -66299,7 +66303,7 @@ function Qq({ config: e, id: t, refreshKey: n = 0 }) {
|
|
|
66299
66303
|
} : Number(e.quickView?.width) > 0 ? {
|
|
66300
66304
|
...e,
|
|
66301
66305
|
quickViewWidth: Number(e.quickView.width)
|
|
66302
|
-
} : e), N = c.fullView ?? null,
|
|
66306
|
+
} : e), N = c.fullView ?? null, ee = c.quickView ?? null, P = a.get("tab"), F = M.find((e) => e.key === P) ?? M.find((e) => e.key === c.defaultTab) ?? M[0] ?? null, te = typeof c.follow == "function" ? c.follow : null, ne = te ? "qv" : "", re = ne && a.get(ne) || "", ie = c.realtime ? typeof c.realtime == "object" ? c.realtime : {} : null, ae = ie ? (typeof ie.topics == "function" ? QK(ie.topics({
|
|
66303
66307
|
id: t,
|
|
66304
66308
|
module: l,
|
|
66305
66309
|
tab: F?.key ?? "",
|
|
@@ -66334,7 +66338,7 @@ function Qq({ config: e, id: t, refreshKey: n = 0 }) {
|
|
|
66334
66338
|
tabModule: e
|
|
66335
66339
|
}) : t.listProps) ?? {}
|
|
66336
66340
|
}), fe = ({ module: e, id: n, record: r, onClose: i, onOpenFull: a }) => {
|
|
66337
|
-
let o = (F?.module === e && F?.quickView && typeof F.quickView == "object" ? F.quickView : null) ?? oq(
|
|
66341
|
+
let o = (F?.module === e && F?.quickView && typeof F.quickView == "object" ? F.quickView : null) ?? oq(ee, e);
|
|
66338
66342
|
return o ? /* @__PURE__ */ X(Bq, {
|
|
66339
66343
|
config: o,
|
|
66340
66344
|
module: e,
|
|
@@ -69062,7 +69066,7 @@ function OY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69062
69066
|
t.classList.add("cc-mdw--resizing"), window.addEventListener("pointermove", a), window.addEventListener("pointerup", o);
|
|
69063
69067
|
}, N = (e) => {
|
|
69064
69068
|
e.key === "ArrowLeft" ? (e.preventDefault(), j(k + TY)) : e.key === "ArrowRight" && (e.preventDefault(), j(k - TY));
|
|
69065
|
-
},
|
|
69069
|
+
}, ee = a ? o ? "expanded" : "open" : "closed", P = C ? m : a || m, F = !C && a && h, te = !C && a && !!r, ne = {
|
|
69066
69070
|
"--cc-rail-w": `${v}px`,
|
|
69067
69071
|
"--cc-rail-collapsed-w": `${y}px`,
|
|
69068
69072
|
"--cc-compact-list-w": `${b}px`,
|
|
@@ -69072,9 +69076,9 @@ function OY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69072
69076
|
ref: w,
|
|
69073
69077
|
className: [
|
|
69074
69078
|
"cc-mdw",
|
|
69075
|
-
`cc-mdw--${
|
|
69079
|
+
`cc-mdw--${ee}`,
|
|
69076
69080
|
C ? "cc-mdw--window" : "cc-mdw--split",
|
|
69077
|
-
|
|
69081
|
+
P ? "cc-mdw--rail-collapsed" : "",
|
|
69078
69082
|
F ? "cc-mdw--rail-overlay" : "",
|
|
69079
69083
|
t == null ? "cc-mdw--no-rail" : "",
|
|
69080
69084
|
x
|
|
@@ -69099,7 +69103,7 @@ function OY({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
|
|
|
69099
69103
|
}),
|
|
69100
69104
|
/* @__PURE__ */ Z("div", {
|
|
69101
69105
|
className: "cc-mdw__list",
|
|
69102
|
-
"aria-hidden":
|
|
69106
|
+
"aria-hidden": ee === "expanded" || void 0,
|
|
69103
69107
|
children: [/* @__PURE__ */ X("div", {
|
|
69104
69108
|
className: `cc-mdw__list-full${te ? " is-hidden" : ""}`,
|
|
69105
69109
|
children: n
|
|
@@ -69414,17 +69418,17 @@ function HY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
69414
69418
|
subtree: !0
|
|
69415
69419
|
}), () => n.disconnect();
|
|
69416
69420
|
}, [A]);
|
|
69417
|
-
let [N,
|
|
69421
|
+
let [N, ee] = R(null);
|
|
69418
69422
|
I(() => {
|
|
69419
69423
|
let e = k.current;
|
|
69420
69424
|
if (!e || v !== "auto" || typeof ResizeObserver > "u") return;
|
|
69421
69425
|
let t = new ResizeObserver((e) => {
|
|
69422
69426
|
let t = e[0]?.contentRect?.width ?? 0;
|
|
69423
|
-
t > 0 &&
|
|
69427
|
+
t > 0 && ee(t < y);
|
|
69424
69428
|
});
|
|
69425
69429
|
return t.observe(e), () => t.disconnect();
|
|
69426
69430
|
}, [v, y]);
|
|
69427
|
-
let
|
|
69431
|
+
let P = v === "stacked" || v === "auto" && N === !0, [F, te] = ou(), ne = F.get("tab") || O, re = W_(), [ie, ae] = R(0), [oe, se] = R(null), [ce, le] = R(() => /* @__PURE__ */ new Set([ne]));
|
|
69428
69432
|
ce.has(ne) || le(/* @__PURE__ */ new Set([...ce, ne]));
|
|
69429
69433
|
let ue = L(() => pg(e)?.tabs ?? zY, [e]), de = L(() => D.length ? [...ue, ...D] : ue, [ue, D]), fe = bp(de, {
|
|
69430
69434
|
id: t,
|
|
@@ -69438,7 +69442,7 @@ function HY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
69438
69442
|
}, _e = u + re, ve = () => ae((e) => e + 1), ye = ne === "details" || !pe(ne) || !me(ne), be = C === "below";
|
|
69439
69443
|
return /* @__PURE__ */ Z("div", {
|
|
69440
69444
|
ref: k,
|
|
69441
|
-
className: `cc-detail${
|
|
69445
|
+
className: `cc-detail${P ? " cc-detail--stacked" : ""}${be ? " cc-detail--tabs-below" : ""}`,
|
|
69442
69446
|
children: [/* @__PURE__ */ Z("div", {
|
|
69443
69447
|
className: "cc-detail__toolbar",
|
|
69444
69448
|
children: [/* @__PURE__ */ X("nav", {
|
|
@@ -69512,7 +69516,7 @@ function HY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
69512
69516
|
className: "v1-detail-row",
|
|
69513
69517
|
children: [/* @__PURE__ */ X(B, {
|
|
69514
69518
|
xs: 24,
|
|
69515
|
-
xl:
|
|
69519
|
+
xl: P ? 24 : 16,
|
|
69516
69520
|
className: "v1-detail-col-main",
|
|
69517
69521
|
children: /* @__PURE__ */ X(Fh, {
|
|
69518
69522
|
moduleName: e,
|
|
@@ -69522,7 +69526,7 @@ function HY({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
69522
69526
|
})
|
|
69523
69527
|
}), /* @__PURE__ */ X(B, {
|
|
69524
69528
|
xs: 24,
|
|
69525
|
-
xl:
|
|
69529
|
+
xl: P ? 24 : 8,
|
|
69526
69530
|
className: "v1-detail-col-rail",
|
|
69527
69531
|
children: /* @__PURE__ */ X(Jf, {
|
|
69528
69532
|
moduleName: e,
|
|
@@ -69707,7 +69711,7 @@ function nX() {
|
|
|
69707
69711
|
}
|
|
69708
69712
|
}
|
|
69709
69713
|
function rX({ listModule: e, detailModule: t, detailConfigName: n, title: r, basePath: i, listTabs: a, recordParam: o = "id", searchPlaceholder: s = "Search…", searchFields: c, createActions: l, relatedTopics: u = QY, 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 }) {
|
|
69710
|
-
let { tab: D } = au(), O = iu(), [k, A] = ou(), j = Array.isArray(a) && a.length > 0, M = j ? a.find((e) => e.toLowerCase() === String(D ?? "").toLowerCase()) : void 0, N = k.get(o) || "",
|
|
69714
|
+
let { tab: D } = au(), O = iu(), [k, A] = ou(), 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(YY) === ZY), F = S === "overlay", [te, ne] = R(C), re = k.get(qY) || "", ie = k.get(JY) || "", ae = L(() => lG(ie), [ie]), [oe, se] = R(null), [ce, le] = R(0), ue = W_(), de = YK({ topics: [EK(e)] }), fe = YK({
|
|
69711
69715
|
topics: N ? [DK(e, N)] : QY,
|
|
69712
69716
|
enabled: !!N
|
|
69713
69717
|
}), pe = YK({
|
|
@@ -69728,10 +69732,10 @@ function rX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
69728
69732
|
e(r), n && (r = SG(r, 1)), r.toString() !== k.toString() && A(r, { replace: t });
|
|
69729
69733
|
}, [k, A]), we = Mo((e) => {
|
|
69730
69734
|
e && Ce((t) => {
|
|
69731
|
-
t.get(o) !== e && (t.set(o, e), t.delete("tab"), t.delete("subTab")),
|
|
69735
|
+
t.get(o) !== e && (t.set(o, e), t.delete("tab"), t.delete("subTab")), ee ? ($Y(t), t.set(YY, ZY)) : t.delete(YY);
|
|
69732
69736
|
});
|
|
69733
69737
|
}, [
|
|
69734
|
-
|
|
69738
|
+
ee,
|
|
69735
69739
|
o,
|
|
69736
69740
|
Ce
|
|
69737
69741
|
]), Te = Mo((e) => {
|
|
@@ -69859,11 +69863,11 @@ function rX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
69859
69863
|
}) : null, ze = {
|
|
69860
69864
|
id: N,
|
|
69861
69865
|
listTab: M,
|
|
69862
|
-
isFull:
|
|
69866
|
+
isFull: P,
|
|
69863
69867
|
recordTick: fe.tick + ce + ue,
|
|
69864
69868
|
relatedTick: pe.tick + ce + ue,
|
|
69865
69869
|
onOpenFull: Te,
|
|
69866
|
-
onBackToQuick:
|
|
69870
|
+
onBackToQuick: ee ? null : De,
|
|
69867
69871
|
onClose: Oe,
|
|
69868
69872
|
updatedBanner: Re,
|
|
69869
69873
|
renderCreateButton: (e = {}) => /* @__PURE__ */ X(kY, {
|
|
@@ -69873,7 +69877,7 @@ function rX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
69873
69877
|
...e
|
|
69874
69878
|
})
|
|
69875
69879
|
}, Be = null;
|
|
69876
|
-
N && !
|
|
69880
|
+
N && !P ? Be = m ? m(ze) : /* @__PURE__ */ X(LG, {
|
|
69877
69881
|
moduleName: t,
|
|
69878
69882
|
configName: n,
|
|
69879
69883
|
id: N,
|
|
@@ -69882,12 +69886,12 @@ function rX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
69882
69886
|
onOpenFull: Te,
|
|
69883
69887
|
onClose: Oe,
|
|
69884
69888
|
extra: p ? p(ze) : null
|
|
69885
|
-
}, N) : N &&
|
|
69889
|
+
}, N) : N && P && (Be = h ? h(ze) : /* @__PURE__ */ X(HY, {
|
|
69886
69890
|
moduleName: t,
|
|
69887
69891
|
customConfigName: n,
|
|
69888
69892
|
id: N,
|
|
69889
69893
|
expanded: !0,
|
|
69890
|
-
onToggleExpand:
|
|
69894
|
+
onToggleExpand: ee ? void 0 : De,
|
|
69891
69895
|
collapseLabel: "Back to quick view",
|
|
69892
69896
|
onClose: Oe,
|
|
69893
69897
|
refreshKey: ze.recordTick,
|
|
@@ -69910,11 +69914,11 @@ function rX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
69910
69914
|
minDetailWidth: 340,
|
|
69911
69915
|
maxDetailWidthRatio: .6,
|
|
69912
69916
|
widthStorageKey: `cc-quickview-width:${e}`,
|
|
69913
|
-
detailOpen: F ?
|
|
69914
|
-
detailExpanded:
|
|
69915
|
-
onCloseDetail:
|
|
69917
|
+
detailOpen: F ? P : !!N,
|
|
69918
|
+
detailExpanded: P,
|
|
69919
|
+
onCloseDetail: P && !ee ? De : Oe,
|
|
69916
69920
|
railCollapsed: te,
|
|
69917
|
-
topBar:
|
|
69921
|
+
topBar: P && !y || !P && E ? null : /* @__PURE__ */ X(AY, {
|
|
69918
69922
|
title: r,
|
|
69919
69923
|
searchValue: re,
|
|
69920
69924
|
onSearch: ke,
|
|
@@ -69941,21 +69945,21 @@ function rX({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
69941
69945
|
onExpand: () => ne(!1),
|
|
69942
69946
|
onCollapse: () => ne(!0)
|
|
69943
69947
|
}) : null,
|
|
69944
|
-
list:
|
|
69948
|
+
list: P ? null : /* @__PURE__ */ X(wG, {
|
|
69945
69949
|
component: T,
|
|
69946
69950
|
listProps: Le,
|
|
69947
69951
|
loading: ge,
|
|
69948
69952
|
selectedRecordId: N || void 0,
|
|
69949
69953
|
onOpenRecord: we
|
|
69950
69954
|
}),
|
|
69951
|
-
detail: F && !
|
|
69955
|
+
detail: F && !P ? null : Be
|
|
69952
69956
|
}),
|
|
69953
69957
|
F && /* @__PURE__ */ X(TG, {
|
|
69954
|
-
open: !!N && !
|
|
69958
|
+
open: !!N && !P,
|
|
69955
69959
|
onClose: Oe,
|
|
69956
69960
|
width: f,
|
|
69957
69961
|
ariaLabel: d,
|
|
69958
|
-
children:
|
|
69962
|
+
children: P ? null : Be
|
|
69959
69963
|
}),
|
|
69960
69964
|
/* @__PURE__ */ X(KY, {
|
|
69961
69965
|
open: !!oe,
|
|
@@ -70011,7 +70015,7 @@ function sX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
|
|
|
70011
70015
|
y,
|
|
70012
70016
|
j,
|
|
70013
70017
|
M
|
|
70014
|
-
]),
|
|
70018
|
+
]), ee = L(() => ({
|
|
70015
70019
|
...e ?? {},
|
|
70016
70020
|
fetchData: k,
|
|
70017
70021
|
showFilterButton: !1,
|
|
@@ -70026,13 +70030,13 @@ function sX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
|
|
|
70026
70030
|
l,
|
|
70027
70031
|
u,
|
|
70028
70032
|
d
|
|
70029
|
-
]),
|
|
70033
|
+
]), P = C && typeof r == "function" ? r({
|
|
70030
70034
|
id: C.id,
|
|
70031
70035
|
record: C.record,
|
|
70032
70036
|
onClose: () => w(null)
|
|
70033
70037
|
}) : null;
|
|
70034
70038
|
if (!e?.fetchData) return null;
|
|
70035
|
-
let F = p === "overlay", te = !!
|
|
70039
|
+
let F = p === "overlay", te = !!P && !F, ne = typeof s == "function" ? s({
|
|
70036
70040
|
total: T.total,
|
|
70037
70041
|
tabs: T.tabs,
|
|
70038
70042
|
durationMs: T.durationMs,
|
|
@@ -70068,7 +70072,7 @@ function sX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
|
|
|
70068
70072
|
className: "cc-search-ws__results-title",
|
|
70069
70073
|
children: c(T.total)
|
|
70070
70074
|
}), /* @__PURE__ */ X(wG, {
|
|
70071
|
-
listProps:
|
|
70075
|
+
listProps: ee,
|
|
70072
70076
|
loading: A,
|
|
70073
70077
|
selectedRecordId: C?.id,
|
|
70074
70078
|
onOpenRecord: (e, t) => w({
|
|
@@ -70079,13 +70083,13 @@ function sX({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
|
|
|
70079
70083
|
}),
|
|
70080
70084
|
te && /* @__PURE__ */ X("div", {
|
|
70081
70085
|
className: "cc-search-ws__quick",
|
|
70082
|
-
children:
|
|
70086
|
+
children: P
|
|
70083
70087
|
}),
|
|
70084
70088
|
F && /* @__PURE__ */ X(TG, {
|
|
70085
|
-
open: !!
|
|
70089
|
+
open: !!P,
|
|
70086
70090
|
onClose: () => w(null),
|
|
70087
70091
|
width: i,
|
|
70088
|
-
children:
|
|
70092
|
+
children: P
|
|
70089
70093
|
})
|
|
70090
70094
|
]
|
|
70091
70095
|
});
|
|
@@ -70412,7 +70416,7 @@ async function EX(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a
|
|
|
70412
70416
|
}
|
|
70413
70417
|
//#endregion
|
|
70414
70418
|
//#region src/index.js
|
|
70415
|
-
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-
|
|
70419
|
+
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-10T12:36:49.787Z");
|
|
70416
70420
|
var DX = Gz, OX = ZT(rU), kX = ZT(aU), AX = ZT(bU), jX = ZT(MU), MX = ZT(VU), NX = ZT(WU), PX = ZT(qU), FX = ZT(XU), IX = ZT(QU), LX = ZT(dW), RX = ZT(pW);
|
|
70417
70421
|
//#endregion
|
|
70418
70422
|
export { ui as ACTION_RULE_SURFACES, D as ADMIN_API_URL, c as ADMIN_APP_ID, E as APP_ID, a as AUTH_URL, Tq as ActionInputBox, Jf as ActivityNotesCard, Uf as ActivityTab, bz as AddBatchCandidatePopup, fo as AddFormV1, KY as AddRecordDrawer, Gz as AdminDashboard, _P as AdminDashboardContent, DX as AdminPage, _o as AppAlert, Fe as AppButton, bT as AppShell, kS as ApprovalActionBar, Yf as AssigneeAvatars, pT as AuthGuard, Lg as BILLING_STATUS_FLOW, hx as BOOLEAN_API_KEYS, eb as BOOLEAN_PARSEABLE_API_KEYS, Dr as BUILT_IN_WIZARD_STEP_TYPES, Xf as BULK_UPLOAD_DEFAULT_ACCEPT, Zf as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, ye as Breadcrumb, AX as BulkUploadPage, ap as BulkUploadPanel, t as CANDIDATES_URL, $S as CONTRACT_C2C, QS as CONTRACT_W2, Om as CURRENCY_SYMBOLS, xu as CalendarCard, LJ as CombinedDashboardPage, LJ as DASHBOARDPAGE, Qq as CombinedDetailViewPage, Qq as DETAILVIEWPAGE, Vq as CombinedHomePage, Vq as HOMEPAGE, RY as CompactRecordList, xP as CoreThemeAdminApp, bP as CoreThemeAdminRoutes, kY as CreateActionButton, aa as CustomPagination, Zx as DEFAULT_HOURS_POLICY, dx as DEFAULT_RESULTS_VIEW, SY as DETAILSSECTION, SY as DetailsSection, hY as DETAILS_BLOCKS, RJ as DETAILS_ICONS, xS as DayLogModal, vp as DescriptionBlock, B_ as DetailHeaderCard, q_ as DetailViewPage, Fh as DetailViewV1, $a as DocumentViewer, Sf as DynamicCards, HI as DynamicPopup, Tz as DynamicPopupRoute, ya as DynamicTabs, Jv as DynamicWizard, Hv as EditFormV1, Fb as FIELD_TYPE_REGISTRY, WS as FINANCE_APPROVAL_CONFIG, LS as FINANCE_TYPE_CFO, IS as FINANCE_TYPE_ONBOARDING_MANAGER, BS as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, RS as FINANCE_TYPE_ONLY_FINANCE, FS as FINANCE_TYPE_SUBMISSION_MANAGER, zS as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, iw as FileListCard, fG as FilterRail, LC as FinanceApprovalPanel, v_ as FinanceAvatar, S_ as FinanceBadge, jS as FinanceDayCell, u_ as FinanceDivider, y_ as FinanceEmployeeCell, s_ as FinanceEmptyState, d_ as FinanceEquation, h_ as FinanceHistoryTimeline, o_ as FinanceHoursGrid, a_ as FinanceKpiRow, l_ as FinanceLine, Xx as FinanceListToolbar, C_ as FinanceMarginBadge, x_ as FinanceMoneyCell, E_ as FinanceRecordsTable, w_ as FinanceRowChevron, c_ as FinanceSection, i_ as FinanceStatusPill, b_ as FinanceTextCell, NS as FinanceTimesheetAnalysis, f_ as FinanceWorkflowSteps, Qx as HOURS_MESSAGES, Nw as Header, Df as HierarchyUserFilter, Hq as HubOverview, T as JOBS_URL, OX as LegacyAdminPage, na as ListView, EG as ListWithQuickView, RX as LmsHomePage, LX as LmsTestForm, xT as Login, RG as MATCH_NOTHING, QP as MailPopup, NX as ManageModules, PX as ManageSubmodules, OY as MasterDetailWorkspace, ly as ModuleRowActions, rX as ModuleWorkspace, OS as NotesPanel, qf as NotesTab, nx as OPEN_AS_OPTIONS, XK as PAGE_ICONS, Rg as PAYROLL_STATUS_FLOW, dz as POPUP_CONFIGS, UY as PanelBreadcrumb, VY as PanelTabs, Ny as ParamCardView, zy as ParamListView, Fz as PaymentInvoicePopup, uS as PeriodBadgeTag, kF as PreviewPopup, XT as ProjectSelect, DS as ProofUploadPreview, wS as QuickLogBar, SS as QuickLogSelectionBar, Bq as QuickViewCard, Dq as QuickViewModuleActions, TG as QuickViewPopover, UW as RAIL_KIND, wK as REALTIME_STATUS, ux as RESULTS_VIEW_OPTIONS, wX as RealtimeProvider, HY as RecordDetailPanel, Kq as RecordHub, LG as RecordQuickView, GY as RecordSidePanel, CS as RejectionReasonModal, mK as RelatedModuleTab, r as SUBMISSIONS_URL, Vx as SearchBuilderV1, sX as SearchResultsWorkspace, lX as SearchSummaryBanner, aH as SettingsPage, lT as Sidebar, vo as StatStrip, Ux as StatusBadge, lS as StatusBadgeTag, kX as StickyNotesFullPage, Gx as StylishDynamicTabs, qx as TemplateEditor, jX as TestForm, IX as TestingHomePage, Ff as TimelineGroups, vS as TimesheetDayCell, Ni as TipTapEditor, Wz as UserForm, kz as VendorShareDrawer, Te as ViewSummaryWidget, bt as WIZARD_ACTIONS_CONTRACT_VERSION, Mt as WIZARD_ACTIONS_PATH, ct as WIZARD_CONTENT_TYPES, Wt as WizardAccessMatrixStep, Ee as WizardActionError, Ka as WizardActivityStep, re as WizardChoiceCardsStep, hn as WizardDeclarationStep, Re as WizardListStep, Wi as WizardPermissionMatrixStep, FF as WizardPopup, ln as WizardPreview, Xe as WizardPreviewStep, xn as WizardStepContent, Me as WizardSuccessStep, nt as WizardUnknownContentStep, gX as WorkspaceAppFrame, wG as WorkspaceListView, AY as WorkspaceTopBar, FX as ZinnextTableView, MX as ZinnextTestForm, Qr as actedRecently, ii as actionRuleConditionMatches, wy as adminActionAllowed, vr as appNow, ge as applyIntegrationStatus, $u as approveSubmission, nJ as attentionItems, np as buildAcceptAttr, bx as buildBooleanRequest, Qg as buildCsv, Kg as buildDailyRows, gS as buildDayGradient, $i as buildFormWizardSteps, wC as buildRateHistoryEntries, HG as buildRelationConditions, Tx as buildSearchRequest, Yg as buildWeeklyRollup, TK as canonicalModule, nr as clearNewRecord, m as clearSelectedProject, pi as colors, gC as computeFinance, iS as computeHoursPolicy, Xg as computeMarginBand, Xi as conditionMatches, n as configureCoreTheme, Kr as configuredFieldLabel, Gv as configuredWizardSteps, Ui as confirmAction, iG as countActiveRows, BW as createAllWorkflowsListFetcher, PW as createMergedListFetcher, DW as createModuleListFetchAdapter, jK as createRealtimeClient, FW as createWorkflowStageListFetcher, km as currencySymbol, $q as dashboardRange, yW as defaultMergeRow, Kt as deleteIntegrationConfig, Gg as deriveDayStats, oS as describeCapacity, NY as displayText, n_ as downloadCsv, nG as draftToRows, Xn as evaluateShowIfWith, v as fetchJsonWithAuth, TX as fetchRelatedRecords, EX as fetchScopedRecords, Gr as fillConfirmText, uC as findEmployerRow, cC as flattenGroups, Fm as formatAmount, Ar as formatApp, Bi as formatAppDateTime, tp as formatFileSize, TC as formatFinanceMoney, Og as formatHours, Im as formatMoney, Ag as formatPercent, Lm as formatRate, CX as formatSearchCount, SX as formatSearchDuration, In as getActivity, VW as getAllWorkflowsModuleList, bi as getAppTimeZone, Pg as getApprovalDate, Ti as getBgcIntegrationConfig, Zi as getBgcIntegrationSummary, zg as getBillingActionStates, Vb as getBooleanEligibleTypes, l as getCurrentRoleName, e_ as getFieldLabel, Lb as getFieldType, ep as getFileExtension, YS as getFinanceApprovalConfig, go as getFormGroups, qC as getFormGroupsRaw, va as getIntegrationConfig, _r as getIntegrationConfigs, kr as getIntegrationSummary, yd as getModuleConfig, Hn as getModuleDataDetail, Bg as getPayrollActionStates, xd as getPeriodBadgeConfig, $b as getSearchPopup, g as getSelectedProject, C as getStoredToken, u as getStoredUser, d as getUserRoles, ed as getVMSApprove, t_ as getValueStyle, HW as getWorkflowStageModuleList, Vg as getWorkflowSteps, Ng as humanizeEvent, $g as indexFieldConfig, jg as initialsOf, Ij as inputPayload, ib as insertTokenAtCursor, y as invalidateGetCache, Rb as isBooleanEligible, nb as isBooleanParsable, _ as isTester, Yr as isWizardConfigEnabled, $n as isWizardConfigReady, dq as listPropsForColumns, f as logout, Ox as makeSearchFetcher, jt as mapListResponse, ZS as marginIncludesReferral, Li as markNewRecord, hC as matchLocationTax, Pi as mergeWizardSubmitValues, EK as moduleTopic, pt as moduleViewAllowed, X_ as n, hr as newRecordMarks, Ga as normalizeConfirm, fC as normalizeContract, Nj as normalizeInputPrompt, aq as normalizePageLayout, lG as parseRows, IY as pickCompactFields, PG as quickViewFields, NG as quickViewValueText, op as r, jm as rateUnitLabel, Nm as rateUnitShort, ox as readActionButtons, xG as readPageParam, aS as reconcileHours, _i as recordActionRun, LY as recordIdOf, DK as recordTopic, Ib as registerFieldType, Qb as registerSearchPopup, ga as registerWizardPreview, Ai as registerWizardStepType, nd as rejectSubmission, WG as relationSignature, Bf as resolveActivityMeta, _C as resolveAndCompute, nS as resolveDayKind, mC as resolveFinanceInputs, _W as resolveMergeKey, _W as resolveMergedListKey, ix as resolveOpenAs, iq as resolvePageButtons, ZK as resolvePageIcon, eq as resolvePageValue, wq as resolveQuickViewActions, XS as resolveRejectionReason, mx as resolveResultsSearchPlaceholder, px as resolveResultsView, JC as resolveSubmissionFinance, aG as rowsSignature, rG as rowsToDraft, Lt as ruleAppliesToSurface, je as rulePrimaryAction, iy as runModuleAction, We as runWizardAction, Mn as safeWizardActionRoute, Ge as saveBgcIntegrationConfig, qa as saveIntegrationConfig, ZG as scopeConditionsFor, xX as searchCriteriaParts, cG as serializeRows, w as setSelectedProject, ra as showIfConditions, IW as stageCountKey, XG as supportsAnyOf, ST as t, Gi as testIntegrationConnection, Ir as toApp, Pm as toNumber, ZW as toRailFields, kK as topicsForEvent, Kn as tzLabel, Ta as tzShortLabel, ex as unregisterSearchPopup, UG as unscopedConditions, Ey as useAdminAction, Ty as useAdminActionsVersion, qv as useConfiguredWizardSteps, bn as useDropdownFields, cn as useDropdownValues, aw as useEditForm, Ue as useFieldConfig, mn as useFilterFields, CG as useInPlaceRecordLinks, YK as useLiveRefresh, Yt as useMenuPermission, ey as useModuleActions, Za as useModuleViewAccess, Sa as useNewRecordMarks, WK as useRealtimeClient, JK as useRealtimeReconnect, GK as useRealtimeStatus, qK as useRealtimeTopics, WY as useRecordFields, Wq as useRecordHub, W_ as useRecordRefresh, dK as useRelatedCounts, yG as useWorkspaceList, rb as validateBooleanQuery, rp as validateBulkFile, Fj as validateInputValue, i as withAdminAppId, h as withAppId, ZT as withAuthGuard, SG as withPageParam, GG as withSubTab };
|