@realtek/zinnext-theme 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/index.cjs +7 -7
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +934 -898
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { A as t, C as n, D as r, E as i, M as a, O as o, S as s, T as c, _ as l, a as u, b as d, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, o as S, p as C, r as w, s as T, t as E, u as D, v as O, w as k, x as A, y as j } from "./authApi-CERg2tGa.js";
|
|
3
|
-
import { _ as M, a as ee, c as N, d as P, g as F, h as te, i as ne, l as re, m as
|
|
3
|
+
import { _ as M, a as ee, c as N, d as P, g as F, h as te, i as ne, l as re, m as ie, o as ae, p as I, r as oe, s as se, u as ce } from "./formGroupsCache-Cf-OrMd3.js";
|
|
4
4
|
import { $ as le, $t as ue, A as de, An as fe, At as pe, B as me, Bn as he, Bt as ge, C as _e, Cn as ve, Ct as ye, D as be, Dn as xe, Dt as Se, E as Ce, En as we, Et as Te, F as Ee, Fn as De, Ft as Oe, Gn as ke, Gt as Ae, H as je, Hn as Me, Ht as Ne, In as Pe, It as Fe, J as Ie, Jt as Le, K as Re, Kt as ze, L as Be, Ln as Ve, Lt as He, M as Ue, Mn as We, Mt as Ge, Nn as Ke, Nt as qe, O as Je, On as Ye, Ot as Xe, P as Ze, Pn as Qe, Pt as $e, Q as et, Qt as tt, R as nt, Rn as rt, Rt as it, S as at, Sn as ot, St as st, T as ct, Tn as lt, Tt as ut, U as dt, Un as ft, Ut as pt, V as mt, Vn as ht, Vt as gt, W as _t, Wn as vt, Wt as yt, X as bt, Xt as xt, Y as St, Yt as Ct, Z as wt, Zt as Tt, _ as Et, _n as Dt, _t as Ot, a as kt, an as At, at as jt, b as Mt, bn as Nt, bt as Pt, c as Ft, cn as It, ct as Lt, d as Rt, dn as zt, dt as Bt, en as Vt, et as Ht, f as Ut, fn as Wt, ft as Gt, gn as Kt, gt as qt, hn as Jt, ht as Yt, i as Xt, in as Zt, it as Qt, j as $t, jn as en, jt as tn, k as nn, kn as rn, kt as an, l as on, ln as sn, lt as cn, m as ln, mn as un, mt as dn, n as fn, nn as pn, nt as mn, o as hn, on as gn, ot as _n, p as vn, pn as yn, pt as bn, q as xn, qt as Sn, r as Cn, rn as wn, rt as Tn, s as En, sn as Dn, st as On, t as kn, tn as An, tt as jn, u as Mn, un as Nn, ut as Pn, vn as Fn, vt as In, w as Ln, wn as Rn, wt as zn, x as Bn, xn as Vn, xt as Hn, y as Un, yn as Wn, yt as Gn, z as Kn, zn as qn, zt as Jn } from "./FileField-Ch5i-nX0.js";
|
|
5
5
|
import { $ as Yn, $n as Xn, $t as Zn, A as Qn, An as $n, At as er, B as tr, Bn as nr, Bt as rr, C as ir, Cn as ar, Ct as or, D as sr, Dn as cr, Dt as lr, E as ur, En as dr, Et as fr, F as pr, Fn as mr, Ft as hr, G as gr, Gn as _r, Gt as vr, H as yr, Hn as br, Ht as xr, I as Sr, In as Cr, It as wr, J as Tr, Jn as Er, Jt as Dr, K as Or, Kn as kr, Kt as Ar, L as jr, Ln as Mr, Lt as Nr, M as Pr, Mn as Fr, Mt as Ir, N as Lr, Nn as Rr, Nt as zr, O as Br, On as Vr, Ot as Hr, P as Ur, Pn as Wr, Pt as Gr, Q as Kr, Qn as qr, Qt as Jr, R as Yr, Rn as Xr, Rt as Zr, S as Qr, Sn as $r, St as ei, T as ti, Tn as ni, Tt as ri, U as ii, Un as ai, Ut as oi, V as si, Vn as ci, Vt as li, W as ui, Wn as di, Wt as fi, X as pi, Xn as mi, Xt as hi, Y as gi, Yn as _i, Yt as vi, Z as yi, Zn as bi, Zt as xi, _ as Si, _n as Ci, _t as wi, a as Ti, an as Ei, at as Di, b as Oi, bn as ki, bt as Ai, c as ji, cn as Mi, ct as Ni, d as Pi, dn as Fi, dt as Ii, en as Li, er as Ri, et as zi, f as Bi, fn as Vi, ft as Hi, g as Ui, gn as Wi, gt as Gi, h as Ki, hn as qi, ht as Ji, i as Yi, in as Xi, it as Zi, j as Qi, jn as $i, jt as ea, k as ta, kn as na, kt as ra, l as ia, ln as aa, lt as oa, m as sa, mn as ca, mt as la, n as ua, nn as da, nr as fa, nt as pa, o as ma, on as ha, ot as ga, p as _a, pn as va, pt as ya, q as ba, qn as xa, qt as Sa, r as Ca, rn as wa, rt as Ta, s as Ea, sn as Da, st as Oa, t as ka, tn as Aa, tr as ja, tt as Ma, u as Na, un as Pa, ut as Fa, v as Ia, vn as La, vt as Ra, w as za, wt as Ba, x as Va, xn as Ha, xt as Ua, y as Wa, yn as Ga, yt as Ka, z as qa, zn as Ja, zt as Ya } from "./LinkedRecordFileField-CoE8sbYG.js";
|
|
6
6
|
import { t as Xa } from "./DocumentViewer-BaSdIaiX.js";
|
|
@@ -738,13 +738,13 @@ async function Bu(e, { submissionId: t = "", billRate: n, payRate: r, currency:
|
|
|
738
738
|
body: JSON.stringify({
|
|
739
739
|
proposedRate: {
|
|
740
740
|
candidateProposedRate: Number(n) || 0,
|
|
741
|
-
candidateProposedRateCurrency:
|
|
741
|
+
candidateProposedRateCurrency: ae(i),
|
|
742
742
|
candidateProposedRateCurrencySymbol: "",
|
|
743
743
|
candidateProposedRateUnit: a
|
|
744
744
|
},
|
|
745
745
|
candidateRate: {
|
|
746
746
|
candidateAcceptedRate: Number(r) || 0,
|
|
747
|
-
candidateAcceptedCurrency:
|
|
747
|
+
candidateAcceptedCurrency: ae(i),
|
|
748
748
|
candidateAcceptedCurrencySymbol: "",
|
|
749
749
|
candidateAcceptedPayUnit: a,
|
|
750
750
|
candidateAcceptedRateNegotiable: !1
|
|
@@ -4398,7 +4398,7 @@ function Mh({ moduleName: e, open: t = !1, onDisplayModeChange: n, filters: r =
|
|
|
4398
4398
|
}
|
|
4399
4399
|
function re(t = d.getFieldsValue()) {
|
|
4400
4400
|
M.current = !0;
|
|
4401
|
-
let n = (t.filters ?? []).filter((e) => !
|
|
4401
|
+
let n = (t.filters ?? []).filter((e) => !ie(e)).map((e) => {
|
|
4402
4402
|
let t = { ...e };
|
|
4403
4403
|
delete t.locked;
|
|
4404
4404
|
let n = S.find((e) => e.value === t.field), r = n?.label ?? t.field, i = n?.filterField ?? t.field, a = n?.filterInputType, o = a === "datepicker" || n?.type === "date", s = a === "number-range" || !a && n?.type === "number", c = a === "text";
|
|
@@ -4452,14 +4452,14 @@ function Mh({ moduleName: e, open: t = !1, onDisplayModeChange: n, filters: r =
|
|
|
4452
4452
|
filters: [...x, ...n]
|
|
4453
4453
|
}), _ || a?.();
|
|
4454
4454
|
}
|
|
4455
|
-
function
|
|
4455
|
+
function ie(e) {
|
|
4456
4456
|
if (!e?.field) return !0;
|
|
4457
4457
|
if (e.operator === "isEmpty" || e.operator === "notEmpty") return !1;
|
|
4458
4458
|
let { values: t } = e;
|
|
4459
4459
|
return typeof t == "string" ? t.trim() === "" : !Array.isArray(t) || t.length === 0 || t.every((e) => e == null || e === "");
|
|
4460
4460
|
}
|
|
4461
|
-
let
|
|
4462
|
-
function
|
|
4461
|
+
let ae = f.length === 0 || f.every(ie);
|
|
4462
|
+
function I(e, t) {
|
|
4463
4463
|
let n = d.getFieldValue("filters") ?? [];
|
|
4464
4464
|
d.setFieldValue("filters", n.map((t, n) => n === e ? {
|
|
4465
4465
|
...t,
|
|
@@ -4583,7 +4583,7 @@ function Mh({ moduleName: e, open: t = !1, onDisplayModeChange: n, filters: r =
|
|
|
4583
4583
|
/* @__PURE__ */ Z(ea, {
|
|
4584
4584
|
variant: "primary",
|
|
4585
4585
|
onClick: () => re(),
|
|
4586
|
-
disabled:
|
|
4586
|
+
disabled: ae,
|
|
4587
4587
|
children: "Apply Filters"
|
|
4588
4588
|
})
|
|
4589
4589
|
]
|
|
@@ -4609,7 +4609,7 @@ function Mh({ moduleName: e, open: t = !1, onDisplayModeChange: n, filters: r =
|
|
|
4609
4609
|
}), /* @__PURE__ */ Z(ea, {
|
|
4610
4610
|
variant: "primary",
|
|
4611
4611
|
onClick: () => re(),
|
|
4612
|
-
disabled:
|
|
4612
|
+
disabled: ae,
|
|
4613
4613
|
children: "Apply"
|
|
4614
4614
|
})]
|
|
4615
4615
|
}),
|
|
@@ -4712,7 +4712,7 @@ function Mh({ moduleName: e, open: t = !1, onDisplayModeChange: n, filters: r =
|
|
|
4712
4712
|
options: v,
|
|
4713
4713
|
optionFilterProp: "label",
|
|
4714
4714
|
loading: m,
|
|
4715
|
-
onChange: (e) =>
|
|
4715
|
+
onChange: (e) => I(t.name, e)
|
|
4716
4716
|
})
|
|
4717
4717
|
})
|
|
4718
4718
|
}), /* @__PURE__ */ Z(H.Item, {
|
|
@@ -5898,7 +5898,7 @@ function $_({ filters: e, onRemove: t, onClearAll: n }) {
|
|
|
5898
5898
|
]
|
|
5899
5899
|
});
|
|
5900
5900
|
}
|
|
5901
|
-
function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r = [], fallbackActions: i = [], actionRules: a = [], breadcrumbItems: o = [], dataSource: c = [], className: u = "", initialPageSize: d = 10, onAction: f, onSummaryClick: p, rowKey: m, showSummaryButton: h = !1, summaryButtonLabel: g = "View Summary", summaryRoute: _, showFieldButton: v = !0, showFilterButton: y = !0, hideFilterButton: b = !1, showRowIcons: x = !0, fieldButtonLabel: C = "View Field", fieldButtonRoute: T, tabs: E, tabTitleOverrides: D = null, tableClassName: O = "job-list-table", fields: k = q_, fieldOverrides: j = null, extraFields: M = q_, listName: ee = "", loading: N = !1, hideLoadingOverlay: P = !1, total: F, clientPagination: te = !1, current: ne, pageSize: re, onPageChange:
|
|
5901
|
+
function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r = [], fallbackActions: i = [], actionRules: a = [], breadcrumbItems: o = [], dataSource: c = [], className: u = "", initialPageSize: d = 10, onAction: f, onSummaryClick: p, rowKey: m, showSummaryButton: h = !1, summaryButtonLabel: g = "View Summary", summaryRoute: _, showFieldButton: v = !0, showFilterButton: y = !0, hideFilterButton: b = !1, showRowIcons: x = !0, fieldButtonLabel: C = "View Field", fieldButtonRoute: T, tabs: E, tabTitleOverrides: D = null, tableClassName: O = "job-list-table", fields: k = q_, fieldOverrides: j = null, extraFields: M = q_, listName: ee = "", loading: N = !1, hideLoadingOverlay: P = !1, total: F, clientPagination: te = !1, current: ne, pageSize: re, onPageChange: ie, onPageSizeChange: ae, onSearch: I, externalFilterRows: oe, onExternalFiltersChange: se, toolbarExtra: ce = null, showSearch: le = !0, searchPlaceholder: ue = "Min 3 Chars, press Enter to search", searchFields: de = q_, showViewToggle: fe = !1, activeView: pe = "list", onViewChange: me, autoCardForExternalRows: he = !0, createAction: ge, onRecordClick: _e, selectedRecordId: ve, selectionMode: ye = "checkbox", compact: be = !1, onSelectionChange: xe, selectedSource: Se, onTabChange: Ce, fetchData: we = no, responseMapper: Te = Om, queryParams: Ee = J_, defaultVisibleColumnCount: De = 6, showAdd: Oe = !0, showCreatedDateRelativeTime: ke = !1, redirectOnViewDenied: Ae = !0, lockOuterPageScroll: je = !1, deferFieldConfig: Me = !1, renderPresentation: Ne, renderTable: Pe }) {
|
|
5902
5902
|
let Fe = Nl(), Ie = Ml(), Le = Je(e), [ze, Be] = z(() => /* @__PURE__ */ new Set()), [Ve, He] = z(() => /* @__PURE__ */ new Set());
|
|
5903
5903
|
L(() => {
|
|
5904
5904
|
if (b_(Le) !== "submissions") {
|
|
@@ -5952,7 +5952,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
5952
5952
|
n && _e?.(e, n);
|
|
5953
5953
|
}, Gt = (e, t) => {
|
|
5954
5954
|
St(e), wt(t), xe?.(e, t);
|
|
5955
|
-
}, [Kt, qt] = z(c), [Jt, Yt] = z(c.length), [Xt, Zt] = z([]), [Qt, $t] = z([]), [en, tn] = z(""), [nn, rn] = z([]), [an, on] = z([]), [sn, cn] = z(!1), [ln, un] = z(!1), [dn, fn] = z(null), [pn, mn] = z(null), [hn, gn] = z(!1), _n = !!(
|
|
5955
|
+
}, [Kt, qt] = z(c), [Jt, Yt] = z(c.length), [Xt, Zt] = z([]), [Qt, $t] = z([]), [en, tn] = z(""), [nn, rn] = z([]), [an, on] = z([]), [sn, cn] = z(!1), [ln, un] = z(!1), [dn, fn] = z(null), [pn, mn] = z(null), [hn, gn] = z(!1), _n = !!(ie || ae || I), vn = _n ? c : Kt, yn = _n ? F ?? 0 : Jt, bn = _n ? k : Qt, xn = _n ? null : dn, Sn = R(() => vn.some((e) => ag(e)), [vn]), Cn = R(() => bn.some((e) => ig(e)), [bn]), wn = he && (Sn || Cn) ? "card" : pe, Tn = r.length > 0 ? r : nn?.length > 0 ? nn : i, En = a.length > 0 ? a : an, Dn = R(() => P_(Tn), [Tn]), On = R(() => new Map(N_(Dn).map((e) => [e.key, e])), [Dn]), kn = R(() => M_(Dn, (e) => {
|
|
5956
5956
|
let t = xp(e);
|
|
5957
5957
|
return t === "add" && !Ge || t === "edit" && !Ke || t === "delete" && !qe || !si(e.permission, Le) || e.showInList === !1 ? !1 : !e.allowedTabs || e.allowedTabs.some((e) => b_(e) === b_($e));
|
|
5958
5958
|
}), [
|
|
@@ -6005,9 +6005,9 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6005
6005
|
At({
|
|
6006
6006
|
sort: r,
|
|
6007
6007
|
sortDir: n
|
|
6008
|
-
}), typeof
|
|
6008
|
+
}), typeof I == "function" && I(r, n), Fn();
|
|
6009
6009
|
}, [
|
|
6010
|
-
|
|
6010
|
+
I,
|
|
6011
6011
|
Fn,
|
|
6012
6012
|
kt.sort,
|
|
6013
6013
|
kt.sortDir
|
|
@@ -6158,14 +6158,14 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6158
6158
|
j,
|
|
6159
6159
|
_n,
|
|
6160
6160
|
Qt
|
|
6161
|
-
]), $n = Fm(Qn), er = () => {
|
|
6162
|
-
ft($n.map((e) => e.key)), ot("csv"), ut(Pm), ct(!0);
|
|
6163
|
-
},
|
|
6161
|
+
]), $n = Fm(Qn), er = We && zn && $n.length > 0, tr = () => {
|
|
6162
|
+
er && (ft($n.map((e) => e.key)), ot("csv"), ut(Pm), ct(!0));
|
|
6163
|
+
}, nr = async () => {
|
|
6164
6164
|
let t = $n.filter((e) => dt.includes(e.key));
|
|
6165
|
-
if (!(!
|
|
6165
|
+
if (!(!er || !t.length || !Number.isInteger(lt) || lt < 1 || lt > 1e3)) {
|
|
6166
6166
|
mt(!0);
|
|
6167
6167
|
try {
|
|
6168
|
-
let n = (_n ?
|
|
6168
|
+
let n = (_n ? gr : Te(await we(e, lt, 0, {
|
|
6169
6169
|
scope: Gn,
|
|
6170
6170
|
sort: kt.sort,
|
|
6171
6171
|
sortDir: kt.sortDir,
|
|
@@ -6192,24 +6192,29 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6192
6192
|
mt(!1);
|
|
6193
6193
|
}
|
|
6194
6194
|
}
|
|
6195
|
-
},
|
|
6195
|
+
}, rr = R(() => Qn.filter((e) => !e.tableHidden && ![
|
|
6196
|
+
!1,
|
|
6197
|
+
0,
|
|
6198
|
+
"false",
|
|
6199
|
+
"0"
|
|
6200
|
+
].includes(typeof e.isVisible == "string" ? e.isVisible.trim().toLowerCase() : e.isVisible)).map((e) => ({
|
|
6196
6201
|
key: e.key,
|
|
6197
6202
|
label: /^match score$/i.test(e.label || "") ? "Match" : e.label,
|
|
6198
6203
|
showByDefault: Eg(e)
|
|
6199
|
-
})), [Qn]),
|
|
6204
|
+
})), [Qn]), ir = rr.map((e) => e.key), ar = `${Bn}:${JSON.stringify(rr.map((e) => [e.key, e.showByDefault]))}`, or = (jt.scope === ar ? jt.keys : Og(ar)).filter((e) => ir.includes(e)), sr = rr.some((e) => typeof e.showByDefault == "boolean") ? rr.filter((e) => e.showByDefault).map((e) => e.key) : rr.filter((e) => {
|
|
6200
6205
|
let t = Qn.find((t) => t.key === e.key);
|
|
6201
6206
|
return t?.isVisible !== !1 && t?.isVisible !== "false";
|
|
6202
|
-
}).slice(0, De).map((e) => e.key),
|
|
6203
|
-
let n = t.scope ===
|
|
6207
|
+
}).slice(0, De).map((e) => e.key), cr = rr.filter((e) => e.showByDefault === !0).map((e) => e.key), lr = new Set(cr), ur = or.length ? or : sr, dr = ir.filter((e) => lr.has(e) || ur.includes(e)), fr = Math.min(1, rr.length), pr = (e) => Mt((t) => {
|
|
6208
|
+
let n = t.scope === ar ? t.keys : Og(ar);
|
|
6204
6209
|
return {
|
|
6205
|
-
scope:
|
|
6210
|
+
scope: ar,
|
|
6206
6211
|
keys: typeof e == "function" ? e(n) : e
|
|
6207
6212
|
};
|
|
6208
6213
|
});
|
|
6209
6214
|
L(() => {
|
|
6210
|
-
jt.scope ===
|
|
6211
|
-
}, [
|
|
6212
|
-
let
|
|
6215
|
+
jt.scope === ar && jt.keys.length && kg(ar, jt.keys);
|
|
6216
|
+
}, [ar, jt]);
|
|
6217
|
+
let mr = dr.length > (sr.length || De), hr = R(() => Qn.filter((e) => !e.cardHidden && (e.tableHidden || dr.includes(e.key))), [Qn, dr]), gr = R(() => {
|
|
6213
6218
|
let e = tt.toLowerCase(), t = vn, n = Kn ? t.filter((e) => w_(e, $e, Un, Qn, Wn)) : t, r = de.length ? Qn.filter((e) => de.includes(e.key)) : Qn, i = _n || !qn;
|
|
6214
6219
|
return !e || e.length < 3 || !i ? n : n.filter((t) => r.some((n) => String(og(t, n.key)).toLowerCase().includes(e) || n_(n).some((n) => String(og(t, n)).toLowerCase().includes(e))));
|
|
6215
6220
|
}, [
|
|
@@ -6223,26 +6228,26 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6223
6228
|
Qn,
|
|
6224
6229
|
tt,
|
|
6225
6230
|
de
|
|
6226
|
-
]),
|
|
6227
|
-
if (!_n || !qn && !te) return
|
|
6231
|
+
]), _r = R(() => {
|
|
6232
|
+
if (!_n || !qn && !te) return gr;
|
|
6228
6233
|
let e = (Dt.current - 1) * Dt.pageSize;
|
|
6229
|
-
return
|
|
6234
|
+
return gr.slice(e, e + Dt.pageSize);
|
|
6230
6235
|
}, [
|
|
6231
|
-
|
|
6236
|
+
gr,
|
|
6232
6237
|
qn,
|
|
6233
6238
|
_n,
|
|
6234
6239
|
te,
|
|
6235
6240
|
Dt.current,
|
|
6236
6241
|
Dt.pageSize
|
|
6237
|
-
]),
|
|
6242
|
+
]), vr = _n && (qn || te) ? gr.length : yn, yr = rt.trim().length >= 3, br = qn && !_n ? yn : gr.length, xr = String(br).padStart(2, "0"), Sr = yn > 0 || vn.length > 0, Cr = le && (Sr || tt.trim().length > 0 || rt.trim().length > 0), wr = jn ? dn ? "Invalid module name or data could not be loaded." : Rn ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", Tr = R(() => !D || typeof D != "object" ? null : Object.entries(D).reduce((e, [t, n]) => (n == null || (e[String(t)] = String(n)), e), {}), [D]), Er = R(() => {
|
|
6238
6243
|
let t = Array.isArray(E) ? E : [], n = !t.length, r = t.length ? t : Xt.length ? Xt : [{
|
|
6239
6244
|
key: "all",
|
|
6240
6245
|
title: e ?? "List",
|
|
6241
|
-
count:
|
|
6242
|
-
}], i = !!(
|
|
6246
|
+
count: vr
|
|
6247
|
+
}], i = !!(Tr && Object.keys(Tr).length);
|
|
6243
6248
|
return !n && !i ? r : r.map((e, t) => {
|
|
6244
6249
|
if (!e || typeof e != "object") return e;
|
|
6245
|
-
let r = i ?
|
|
6250
|
+
let r = i ? Tr[String(x_(e, t))] : void 0;
|
|
6246
6251
|
if (!r && !n) return e;
|
|
6247
6252
|
let a = { ...e };
|
|
6248
6253
|
if (r && (a.title = r), n) {
|
|
@@ -6257,34 +6262,34 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6257
6262
|
ln,
|
|
6258
6263
|
e,
|
|
6259
6264
|
Xt,
|
|
6260
|
-
|
|
6261
|
-
|
|
6265
|
+
Tr,
|
|
6266
|
+
vr,
|
|
6262
6267
|
E
|
|
6263
6268
|
]);
|
|
6264
6269
|
L(() => {
|
|
6265
|
-
if (!
|
|
6270
|
+
if (!Er.length || !((Xt?.length ?? 0) > 0 || Array.isArray(E) && E.length > 0)) return;
|
|
6266
6271
|
let e = S_($e);
|
|
6267
|
-
if (!
|
|
6268
|
-
let e = x_(
|
|
6272
|
+
if (!Er.some((t, n) => S_(x_(t, n)) === e)) {
|
|
6273
|
+
let e = x_(Er[0], 0);
|
|
6269
6274
|
e && et(String(e));
|
|
6270
6275
|
}
|
|
6271
6276
|
}, [
|
|
6272
6277
|
$e,
|
|
6273
|
-
|
|
6278
|
+
Er,
|
|
6274
6279
|
Xt,
|
|
6275
6280
|
E
|
|
6276
6281
|
]), L(() => {
|
|
6277
|
-
if (Se === void 0 || !
|
|
6278
|
-
let e =
|
|
6282
|
+
if (Se === void 0 || !Er.length) return;
|
|
6283
|
+
let e = Er.find((e, t) => S_(x_(e, t)) === S_(Se));
|
|
6279
6284
|
if (!e) return;
|
|
6280
|
-
let t = String(x_(e,
|
|
6285
|
+
let t = String(x_(e, Er.indexOf(e)));
|
|
6281
6286
|
(Se !== Bt.current || S_($e) !== S_(t)) && (Bt.current = Se, et((e) => S_(e) === S_(t) ? e : t));
|
|
6282
6287
|
}, [
|
|
6283
6288
|
$e,
|
|
6284
|
-
|
|
6289
|
+
Er,
|
|
6285
6290
|
Se
|
|
6286
6291
|
]);
|
|
6287
|
-
let
|
|
6292
|
+
let Dr = (e) => {
|
|
6288
6293
|
let t = Qn.map((e) => {
|
|
6289
6294
|
let t = {};
|
|
6290
6295
|
return Object.entries(e).forEach(([e, n]) => {
|
|
@@ -6297,7 +6302,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6297
6302
|
record: e,
|
|
6298
6303
|
fields: t
|
|
6299
6304
|
} });
|
|
6300
|
-
},
|
|
6305
|
+
}, Or = (e, t, n = {}) => {
|
|
6301
6306
|
let r = yg(e, t), i = r.startsWith("/") ? r : `/${r}`, a = t?._id ?? t?.id;
|
|
6302
6307
|
Fe(i, { state: {
|
|
6303
6308
|
background: Ie,
|
|
@@ -6319,16 +6324,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6319
6324
|
requireJobId: n.requireJobId,
|
|
6320
6325
|
...n.popupState
|
|
6321
6326
|
} });
|
|
6322
|
-
}, [
|
|
6327
|
+
}, [kr, Ar] = z(0);
|
|
6323
6328
|
L(() => {
|
|
6324
6329
|
let e = !0;
|
|
6325
6330
|
return Re().then(() => {
|
|
6326
|
-
e &&
|
|
6331
|
+
e && Ar((e) => e + 1);
|
|
6327
6332
|
}), () => {
|
|
6328
6333
|
e = !1;
|
|
6329
6334
|
};
|
|
6330
6335
|
}, []);
|
|
6331
|
-
let
|
|
6336
|
+
let jr = R(() => {
|
|
6332
6337
|
let e = {
|
|
6333
6338
|
dataIndex: "icons",
|
|
6334
6339
|
key: "icons",
|
|
@@ -6342,7 +6347,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6342
6347
|
type: "button",
|
|
6343
6348
|
className: "job-row-eye-button",
|
|
6344
6349
|
"aria-label": "Preview job",
|
|
6345
|
-
onClick: () =>
|
|
6350
|
+
onClick: () => Dr(t),
|
|
6346
6351
|
children: /* @__PURE__ */ Z("img", {
|
|
6347
6352
|
src: Nh,
|
|
6348
6353
|
alt: "",
|
|
@@ -6353,21 +6358,21 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6353
6358
|
children: /* @__PURE__ */ Z(kc, { className: "job-row-linkedin-icon" })
|
|
6354
6359
|
})]
|
|
6355
6360
|
})
|
|
6356
|
-
}, t = Qn.filter((e) =>
|
|
6361
|
+
}, t = Qn.filter((e) => dr.includes(e.key)).map((e, t) => {
|
|
6357
6362
|
let n = kt.sort === e.key ? kt.sortDir : "";
|
|
6358
6363
|
return {
|
|
6359
6364
|
title: H_({
|
|
6360
6365
|
label: /^match score$/i.test(e.label || "") ? "Match" : e.label,
|
|
6361
6366
|
sortDir: n,
|
|
6362
|
-
sortable:
|
|
6367
|
+
sortable: Sr,
|
|
6363
6368
|
onSort: () => Vn(e.key)
|
|
6364
6369
|
}),
|
|
6365
6370
|
dataIndex: e.key,
|
|
6366
6371
|
key: e.key,
|
|
6367
6372
|
fixed: t === 0 ? "left" : void 0,
|
|
6368
6373
|
ellipsis: { showTitle: !1 },
|
|
6369
|
-
width: y_(e,
|
|
6370
|
-
render: (t, n) => d_(e, n, rt,
|
|
6374
|
+
width: y_(e, _r, ke),
|
|
6375
|
+
render: (t, n) => d_(e, n, rt, Or, {
|
|
6371
6376
|
canAdd: Ge,
|
|
6372
6377
|
canEdit: Ke,
|
|
6373
6378
|
canDelete: qe
|
|
@@ -6378,8 +6383,8 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6378
6383
|
})
|
|
6379
6384
|
};
|
|
6380
6385
|
});
|
|
6381
|
-
if (!(
|
|
6382
|
-
let n = (x ? e.width : 0) + (
|
|
6386
|
+
if (!(mr || _n) && Rt > 0 && t.length > 0) {
|
|
6387
|
+
let n = (x ? e.width : 0) + (Sr && ye === "checkbox" ? 48 : 0) + v_, r = t.reduce((e, t) => e + t.width, 0), i = Rt - n - r;
|
|
6383
6388
|
i > 0 && r > 0 && t.forEach((e) => {
|
|
6384
6389
|
e.width = Math.floor(e.width + i * (e.width / r));
|
|
6385
6390
|
});
|
|
@@ -6394,34 +6399,34 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6394
6399
|
Ke,
|
|
6395
6400
|
rt,
|
|
6396
6401
|
En,
|
|
6397
|
-
|
|
6402
|
+
kr,
|
|
6398
6403
|
Vn,
|
|
6399
|
-
|
|
6400
|
-
|
|
6404
|
+
mr,
|
|
6405
|
+
Sr,
|
|
6401
6406
|
_n,
|
|
6402
6407
|
Ie,
|
|
6403
6408
|
e,
|
|
6404
6409
|
Fe,
|
|
6405
6410
|
Qn,
|
|
6406
|
-
|
|
6411
|
+
_r,
|
|
6407
6412
|
ye,
|
|
6408
6413
|
kt.sort,
|
|
6409
6414
|
kt.sortDir,
|
|
6410
6415
|
Rt,
|
|
6411
6416
|
kn,
|
|
6412
|
-
|
|
6413
|
-
]),
|
|
6414
|
-
let t =
|
|
6417
|
+
dr
|
|
6418
|
+
]), Mr = wo((e) => {
|
|
6419
|
+
let t = Er.find((t, n) => S_(x_(t, n)) === S_(e)), n = String(t ? x_(t, Er.indexOf(t)) : e);
|
|
6415
6420
|
if (et(n), St([]), wt([]), Fn(), typeof Ce == "function") {
|
|
6416
6421
|
let e = t?.key ?? t?.value ?? t?.id ?? n;
|
|
6417
6422
|
Bt.current = e, Ce(e);
|
|
6418
6423
|
}
|
|
6419
6424
|
}, [
|
|
6420
6425
|
Ce,
|
|
6421
|
-
|
|
6426
|
+
Er,
|
|
6422
6427
|
Fn
|
|
6423
6428
|
]);
|
|
6424
|
-
function
|
|
6429
|
+
function Nr(e, t, n) {
|
|
6425
6430
|
let r = On.get(String(e));
|
|
6426
6431
|
if (r && r.actionType !== "group") {
|
|
6427
6432
|
if (typeof f == "function" && f({
|
|
@@ -6488,16 +6493,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6488
6493
|
}
|
|
6489
6494
|
}
|
|
6490
6495
|
}
|
|
6491
|
-
function
|
|
6496
|
+
function Pr({ key: e }) {
|
|
6492
6497
|
let t = N_(An).find((t) => String(t.key) === String(e));
|
|
6493
|
-
t && j_(t, Ct, $e) ||
|
|
6498
|
+
t && j_(t, Ct, $e) || Nr(e, xt, Ct);
|
|
6494
6499
|
}
|
|
6495
|
-
let
|
|
6496
|
-
|
|
6497
|
-
let r = n.length ? n :
|
|
6498
|
-
return t ? i.includes(e) ? i : [...i, e] : i.length <=
|
|
6500
|
+
let Fr = dr.length === rr.length, Ir = dr.length > 0 && !Fr, Lr = (e, t) => {
|
|
6501
|
+
lr.has(e) || pr((n) => {
|
|
6502
|
+
let r = n.length ? n : sr, i = ir.filter((e) => lr.has(e) || r.includes(e));
|
|
6503
|
+
return t ? i.includes(e) ? i : [...i, e] : i.length <= fr ? i : i.filter((t) => t !== e);
|
|
6499
6504
|
});
|
|
6500
|
-
},
|
|
6505
|
+
}, Rr = () => {
|
|
6501
6506
|
if (typeof p == "function") {
|
|
6502
6507
|
p();
|
|
6503
6508
|
return;
|
|
@@ -6507,7 +6512,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6507
6512
|
return;
|
|
6508
6513
|
}
|
|
6509
6514
|
gn(!0);
|
|
6510
|
-
},
|
|
6515
|
+
}, zr = () => {
|
|
6511
6516
|
T && Fe(T);
|
|
6512
6517
|
};
|
|
6513
6518
|
L(() => {
|
|
@@ -6517,16 +6522,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6517
6522
|
};
|
|
6518
6523
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
6519
6524
|
}, [hn]);
|
|
6520
|
-
let
|
|
6525
|
+
let Br = () => {
|
|
6521
6526
|
Zn && (qt(pn.rows), Yt(pn.total), Zt(pn.tabs), $t(pn.fields), tn(pn.tabField), rn(pn.actions ?? []), on(pn.actionRules ?? []), fn(null), cn(!1));
|
|
6522
|
-
},
|
|
6527
|
+
}, Vr = (e) => {
|
|
6523
6528
|
let t = e.target.value, n = t.trim().length < 3, r = yt.some((e) => e.field);
|
|
6524
|
-
n && (it(""), r ||
|
|
6525
|
-
},
|
|
6529
|
+
n && (it(""), r || Br()), nt(t), Fn();
|
|
6530
|
+
}, Hr = () => {
|
|
6526
6531
|
let e = tt.trim();
|
|
6527
6532
|
e.length >= 3 && (it(e), Fn());
|
|
6528
|
-
},
|
|
6529
|
-
|
|
6533
|
+
}, Ur = () => {
|
|
6534
|
+
Br(), bt([]), Gt([], []), Fn();
|
|
6530
6535
|
};
|
|
6531
6536
|
L(() => {
|
|
6532
6537
|
wn === "card" && (It([]), Gt([], []));
|
|
@@ -6536,47 +6541,48 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6536
6541
|
$e,
|
|
6537
6542
|
wn
|
|
6538
6543
|
]);
|
|
6539
|
-
let
|
|
6544
|
+
let Wr = (e) => {
|
|
6540
6545
|
It((t) => {
|
|
6541
|
-
let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e], r =
|
|
6546
|
+
let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e], r = _r.filter((e, t) => n.includes(String(T_(e, t, m))));
|
|
6542
6547
|
return Gt(n, r), n;
|
|
6543
6548
|
});
|
|
6544
|
-
},
|
|
6549
|
+
}, Gr = /* @__PURE__ */ Q("div", {
|
|
6545
6550
|
className: "column-visibility-menu",
|
|
6546
6551
|
onClick: (e) => e.stopPropagation(),
|
|
6547
6552
|
children: [/* @__PURE__ */ Z(Io, {
|
|
6548
|
-
checked:
|
|
6549
|
-
indeterminate:
|
|
6553
|
+
checked: Fr,
|
|
6554
|
+
indeterminate: Ir,
|
|
6550
6555
|
onChange: (e) => {
|
|
6551
|
-
|
|
6556
|
+
pr(e.target.checked ? rr.map((e) => e.key) : sr);
|
|
6552
6557
|
},
|
|
6553
6558
|
children: "Select All"
|
|
6554
6559
|
}), /* @__PURE__ */ Z("div", {
|
|
6555
6560
|
className: "column-visibility-menu__list",
|
|
6556
|
-
children:
|
|
6557
|
-
checked:
|
|
6558
|
-
disabled:
|
|
6559
|
-
onChange: (t) =>
|
|
6560
|
-
children: [e.label,
|
|
6561
|
+
children: rr.map((e) => /* @__PURE__ */ Q(Io, {
|
|
6562
|
+
checked: dr.includes(e.key),
|
|
6563
|
+
disabled: lr.has(e.key) || dr.includes(e.key) && dr.length <= fr,
|
|
6564
|
+
onChange: (t) => Lr(e.key, t.target.checked),
|
|
6565
|
+
children: [e.label, lr.has(e.key) ? " (Default)" : ""]
|
|
6561
6566
|
}, e.key))
|
|
6562
6567
|
})]
|
|
6563
6568
|
});
|
|
6564
6569
|
return typeof Ne == "function" ? Ne({
|
|
6565
|
-
columns:
|
|
6570
|
+
columns: jr,
|
|
6566
6571
|
canAdd: Ge,
|
|
6572
|
+
canExport: er,
|
|
6567
6573
|
onRefresh: () => Et((e) => e + 1),
|
|
6568
6574
|
rowKey: (e, t) => T_(e, t, m),
|
|
6569
6575
|
selectedRowKeys: xt,
|
|
6570
6576
|
onSelectionChange: Gt,
|
|
6571
6577
|
bulkActionItems: An.map((e) => A_(e, j_(e, Ct, $e))),
|
|
6572
|
-
onBulkActionClick:
|
|
6573
|
-
selectable:
|
|
6578
|
+
onBulkActionClick: Pr,
|
|
6579
|
+
selectable: Sr && ye === "checkbox",
|
|
6574
6580
|
onRecordClick: _e ? Wt : void 0,
|
|
6575
|
-
emptyMessage:
|
|
6581
|
+
emptyMessage: wr,
|
|
6576
6582
|
error: xn,
|
|
6577
6583
|
search: tt,
|
|
6578
|
-
onSearchChange:
|
|
6579
|
-
onSearchSubmit:
|
|
6584
|
+
onSearchChange: Vr,
|
|
6585
|
+
onSearchSubmit: Hr,
|
|
6580
6586
|
filters: yt,
|
|
6581
6587
|
renderFilters: ({ open: e, onClose: t, excludeFields: n }) => /* @__PURE__ */ Z(Mh, {
|
|
6582
6588
|
moduleName: Le,
|
|
@@ -6589,9 +6595,9 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6589
6595
|
onApply: ({ filters: e }) => {
|
|
6590
6596
|
bt(e), Fn();
|
|
6591
6597
|
},
|
|
6592
|
-
onReset:
|
|
6598
|
+
onReset: Ur
|
|
6593
6599
|
}, Le),
|
|
6594
|
-
rows:
|
|
6600
|
+
rows: _r,
|
|
6595
6601
|
fields: Qn,
|
|
6596
6602
|
renderCell: (e, t, n = {}) => d_({
|
|
6597
6603
|
...e,
|
|
@@ -6599,7 +6605,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6599
6605
|
...n,
|
|
6600
6606
|
...e.renderConfig
|
|
6601
6607
|
}
|
|
6602
|
-
}, t, rt,
|
|
6608
|
+
}, t, rt, Or, {
|
|
6603
6609
|
canAdd: Ge,
|
|
6604
6610
|
canEdit: Ke,
|
|
6605
6611
|
canDelete: qe
|
|
@@ -6607,18 +6613,18 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6607
6613
|
key: $e,
|
|
6608
6614
|
label: Un?.label ?? Un?.title ?? ""
|
|
6609
6615
|
}),
|
|
6610
|
-
tabs:
|
|
6611
|
-
total:
|
|
6616
|
+
tabs: Er,
|
|
6617
|
+
total: vr,
|
|
6612
6618
|
loading: _n ? N : Ln || sn,
|
|
6613
6619
|
current: Dt.current,
|
|
6614
6620
|
pageSize: Dt.pageSize,
|
|
6615
6621
|
activeTab: $e,
|
|
6616
|
-
onTabChange:
|
|
6622
|
+
onTabChange: Mr,
|
|
6617
6623
|
onPageChange: (e) => {
|
|
6618
|
-
_n && typeof
|
|
6624
|
+
_n && typeof ie == "function" ? ie(e, Dt.pageSize) : Pn(e);
|
|
6619
6625
|
},
|
|
6620
6626
|
onPageSizeChange: (e) => {
|
|
6621
|
-
_n && typeof
|
|
6627
|
+
_n && typeof ae == "function" ? ae(e) : (Ot({
|
|
6622
6628
|
current: 1,
|
|
6623
6629
|
pageSize: e
|
|
6624
6630
|
}), Nn(1, { replace: !0 }));
|
|
@@ -6641,11 +6647,11 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6641
6647
|
children: /* @__PURE__ */ Z(ec, { "aria-hidden": "true" })
|
|
6642
6648
|
}), "Export records"]
|
|
6643
6649
|
}),
|
|
6644
|
-
open: st,
|
|
6650
|
+
open: er && st,
|
|
6645
6651
|
onCancel: () => {
|
|
6646
6652
|
pt || ct(!1);
|
|
6647
6653
|
},
|
|
6648
|
-
onOk:
|
|
6654
|
+
onOk: nr,
|
|
6649
6655
|
okText: at === "xlsx" ? "Export Excel" : "Export CSV",
|
|
6650
6656
|
confirmLoading: pt,
|
|
6651
6657
|
cancelButtonProps: { disabled: pt },
|
|
@@ -6771,28 +6777,28 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6771
6777
|
justify: "space-between",
|
|
6772
6778
|
children: [/* @__PURE__ */ Z(iu, {
|
|
6773
6779
|
activeKey: $e,
|
|
6774
|
-
tabs:
|
|
6775
|
-
onChange:
|
|
6780
|
+
tabs: Er,
|
|
6781
|
+
onChange: Mr
|
|
6776
6782
|
}), /* @__PURE__ */ Q(Wo, {
|
|
6777
6783
|
align: "center",
|
|
6778
6784
|
gap: 8,
|
|
6779
6785
|
children: [
|
|
6780
6786
|
ce,
|
|
6781
|
-
|
|
6787
|
+
er && /* @__PURE__ */ Z(J, {
|
|
6782
6788
|
title: "Export",
|
|
6783
6789
|
children: /* @__PURE__ */ Z(B, {
|
|
6784
6790
|
"aria-label": "Export",
|
|
6785
6791
|
className: "job-toolbar-icon-button",
|
|
6786
6792
|
icon: /* @__PURE__ */ Z(ec, { "aria-hidden": "true" }),
|
|
6787
|
-
onClick:
|
|
6793
|
+
onClick: tr
|
|
6788
6794
|
})
|
|
6789
6795
|
}),
|
|
6790
|
-
|
|
6796
|
+
Cr && /* @__PURE__ */ Z(U, {
|
|
6791
6797
|
prefix: /* @__PURE__ */ Z($c, { className: "job-search-icon" }),
|
|
6792
6798
|
placeholder: ue,
|
|
6793
6799
|
value: tt,
|
|
6794
|
-
onChange:
|
|
6795
|
-
onPressEnter:
|
|
6800
|
+
onChange: Vr,
|
|
6801
|
+
onPressEnter: Hr,
|
|
6796
6802
|
allowClear: !0,
|
|
6797
6803
|
className: "job-search-input"
|
|
6798
6804
|
}),
|
|
@@ -6807,7 +6813,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6807
6813
|
}
|
|
6808
6814
|
})
|
|
6809
6815
|
}),
|
|
6810
|
-
y && !b &&
|
|
6816
|
+
y && !b && Sr && _t !== "top" && /* @__PURE__ */ Z(J, {
|
|
6811
6817
|
title: "Filter",
|
|
6812
6818
|
children: /* @__PURE__ */ Z(No, {
|
|
6813
6819
|
count: yt.filter((e) => e.field && X_(e)).length,
|
|
@@ -6821,7 +6827,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6821
6827
|
})
|
|
6822
6828
|
})
|
|
6823
6829
|
}),
|
|
6824
|
-
fe &&
|
|
6830
|
+
fe && Sr && /* @__PURE__ */ Q(Wo, {
|
|
6825
6831
|
align: "center",
|
|
6826
6832
|
gap: 6,
|
|
6827
6833
|
children: [/* @__PURE__ */ Z(J, {
|
|
@@ -6847,20 +6853,20 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6847
6853
|
h && /* @__PURE__ */ Z(B, {
|
|
6848
6854
|
className: "job-summary-button",
|
|
6849
6855
|
type: "primary",
|
|
6850
|
-
onClick:
|
|
6856
|
+
onClick: Rr,
|
|
6851
6857
|
children: g
|
|
6852
6858
|
}),
|
|
6853
6859
|
v && T && /* @__PURE__ */ Z(B, {
|
|
6854
6860
|
className: "job-summary-button",
|
|
6855
6861
|
type: "primary",
|
|
6856
|
-
onClick:
|
|
6862
|
+
onClick: zr,
|
|
6857
6863
|
children: C
|
|
6858
6864
|
})
|
|
6859
6865
|
]
|
|
6860
6866
|
})]
|
|
6861
6867
|
})
|
|
6862
6868
|
}),
|
|
6863
|
-
|
|
6869
|
+
Sr && /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z(Fo, {
|
|
6864
6870
|
className: "job-toolbar-card",
|
|
6865
6871
|
children: /* @__PURE__ */ Q(Wo, {
|
|
6866
6872
|
className: "p-flex",
|
|
@@ -6871,14 +6877,14 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6871
6877
|
gap: 3,
|
|
6872
6878
|
children: [
|
|
6873
6879
|
wn === "card" && /* @__PURE__ */ Z(Io, {
|
|
6874
|
-
checked:
|
|
6875
|
-
indeterminate: Ft.length > 0 && Ft.length <
|
|
6880
|
+
checked: _r.length > 0 && Ft.length >= _r.length,
|
|
6881
|
+
indeterminate: Ft.length > 0 && Ft.length < _r.length,
|
|
6876
6882
|
className: "param-card-view__select-all",
|
|
6877
6883
|
onChange: () => {
|
|
6878
6884
|
if (Ft.length > 0) It([]), Gt([], []);
|
|
6879
6885
|
else {
|
|
6880
|
-
let e =
|
|
6881
|
-
It(e), Gt(e, [...
|
|
6886
|
+
let e = _r.map((e, t) => String(T_(e, t, m)));
|
|
6887
|
+
It(e), Gt(e, [..._r]);
|
|
6882
6888
|
}
|
|
6883
6889
|
},
|
|
6884
6890
|
children: "Select All"
|
|
@@ -6887,7 +6893,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6887
6893
|
open: Nt,
|
|
6888
6894
|
onOpenChange: Pt,
|
|
6889
6895
|
trigger: ["click"],
|
|
6890
|
-
popupRender: () =>
|
|
6896
|
+
popupRender: () => Gr,
|
|
6891
6897
|
placement: "bottomLeft",
|
|
6892
6898
|
classNames: { root: "column-visibility-dropdown" },
|
|
6893
6899
|
children: /* @__PURE__ */ Z(B, {
|
|
@@ -6906,7 +6912,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6906
6912
|
An.length > 0 && xt.length > 0 && /* @__PURE__ */ Z(Ho, {
|
|
6907
6913
|
menu: {
|
|
6908
6914
|
items: An.map((e) => A_(e, j_(e, Ct, $e))),
|
|
6909
|
-
onClick:
|
|
6915
|
+
onClick: Pr
|
|
6910
6916
|
},
|
|
6911
6917
|
trigger: ["click"],
|
|
6912
6918
|
children: /* @__PURE__ */ Q(B, {
|
|
@@ -6933,11 +6939,11 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6933
6939
|
]
|
|
6934
6940
|
})
|
|
6935
6941
|
]
|
|
6936
|
-
}),
|
|
6942
|
+
}), yr && /* @__PURE__ */ Q(Jh, {
|
|
6937
6943
|
className: "job-search-results-count",
|
|
6938
6944
|
children: [
|
|
6939
6945
|
"Search Results (",
|
|
6940
|
-
|
|
6946
|
+
xr,
|
|
6941
6947
|
")"
|
|
6942
6948
|
]
|
|
6943
6949
|
})]
|
|
@@ -6953,7 +6959,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6953
6959
|
onApply: ({ filters: e }) => {
|
|
6954
6960
|
bt(e), Fn();
|
|
6955
6961
|
},
|
|
6956
|
-
onReset:
|
|
6962
|
+
onReset: Ur
|
|
6957
6963
|
}, Le),
|
|
6958
6964
|
Yn && /* @__PURE__ */ Z($_, {
|
|
6959
6965
|
filters: yt,
|
|
@@ -6961,16 +6967,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6961
6967
|
let t = yt.filter((t, n) => n !== e);
|
|
6962
6968
|
bt(t), Fn();
|
|
6963
6969
|
},
|
|
6964
|
-
onClearAll:
|
|
6970
|
+
onClearAll: Ur
|
|
6965
6971
|
}),
|
|
6966
6972
|
/* @__PURE__ */ Z("div", {
|
|
6967
6973
|
ref: Lt,
|
|
6968
6974
|
className: "job-table-measure",
|
|
6969
6975
|
children: /* @__PURE__ */ Z(os, {
|
|
6970
6976
|
spinning: !P && (_n ? N : Ln || sn),
|
|
6971
|
-
children: wn === "card" ?
|
|
6977
|
+
children: wn === "card" ? _r.length === 0 ? /* @__PURE__ */ Z(Uo, {
|
|
6972
6978
|
image: Uo.PRESENTED_IMAGE_SIMPLE,
|
|
6973
|
-
description:
|
|
6979
|
+
description: wr,
|
|
6974
6980
|
className: "param-card-view__empty",
|
|
6975
6981
|
children: !_n && Ge && Oe && Mn && !dn && /* @__PURE__ */ Z(B, {
|
|
6976
6982
|
type: "primary",
|
|
@@ -6980,16 +6986,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6980
6986
|
})
|
|
6981
6987
|
}) : /* @__PURE__ */ Z("div", {
|
|
6982
6988
|
className: "param-card-view__grid",
|
|
6983
|
-
children:
|
|
6989
|
+
children: _r.map((e, t) => {
|
|
6984
6990
|
let n = String(T_(e, t, m));
|
|
6985
6991
|
return /* @__PURE__ */ Z(Y_, {
|
|
6986
6992
|
record: e,
|
|
6987
|
-
fields:
|
|
6993
|
+
fields: hr,
|
|
6988
6994
|
selected: ye === "checkbox" ? Ft.includes(n) : Ut(e, t),
|
|
6989
6995
|
isControlled: _n,
|
|
6990
|
-
onPreview: () =>
|
|
6991
|
-
onSelect: () =>
|
|
6992
|
-
onPopupAction:
|
|
6996
|
+
onPreview: () => Dr(e),
|
|
6997
|
+
onSelect: () => Wr(n),
|
|
6998
|
+
onPopupAction: Or,
|
|
6993
6999
|
onRecordClick: _e ? () => Wt(e, t) : void 0,
|
|
6994
7000
|
selectionMode: ye,
|
|
6995
7001
|
permissions: {
|
|
@@ -7007,16 +7013,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
7007
7013
|
}, n);
|
|
7008
7014
|
})
|
|
7009
7015
|
}) : typeof Pe == "function" ? Pe({
|
|
7010
|
-
columns:
|
|
7011
|
-
rows:
|
|
7016
|
+
columns: jr,
|
|
7017
|
+
rows: _r,
|
|
7012
7018
|
rowKey: (e, t) => T_(e, t, m),
|
|
7013
7019
|
selectedRowKeys: xt,
|
|
7014
7020
|
onSelectionChange: Gt,
|
|
7015
|
-
selectable:
|
|
7021
|
+
selectable: Sr && ye === "checkbox",
|
|
7016
7022
|
onRecordClick: _e ? Wt : void 0,
|
|
7017
|
-
emptyMessage:
|
|
7023
|
+
emptyMessage: wr
|
|
7018
7024
|
}) : /* @__PURE__ */ Z(ls, {
|
|
7019
|
-
rowSelection:
|
|
7025
|
+
rowSelection: Sr && ye === "checkbox" ? {
|
|
7020
7026
|
type: "checkbox",
|
|
7021
7027
|
fixed: !0,
|
|
7022
7028
|
columnWidth: 48,
|
|
@@ -7025,32 +7031,32 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
7025
7031
|
Gt(e, t);
|
|
7026
7032
|
},
|
|
7027
7033
|
columnTitle: (() => {
|
|
7028
|
-
let e =
|
|
7034
|
+
let e = _r.length, t = e > 0 && xt.length >= e, n = xt.length > 0 && !t;
|
|
7029
7035
|
return /* @__PURE__ */ Z(Io, {
|
|
7030
7036
|
checked: t,
|
|
7031
7037
|
indeterminate: n,
|
|
7032
7038
|
onChange: () => {
|
|
7033
7039
|
if (n || t) Gt([], []);
|
|
7034
7040
|
else {
|
|
7035
|
-
let e =
|
|
7036
|
-
Gt(e, [...
|
|
7041
|
+
let e = _r.map((e, t) => T_(e, t, m));
|
|
7042
|
+
Gt(e, [..._r]);
|
|
7037
7043
|
}
|
|
7038
7044
|
}
|
|
7039
7045
|
});
|
|
7040
7046
|
})()
|
|
7041
7047
|
} : void 0,
|
|
7042
|
-
columns:
|
|
7043
|
-
dataSource:
|
|
7048
|
+
columns: jr,
|
|
7049
|
+
dataSource: _r,
|
|
7044
7050
|
size: "middle",
|
|
7045
7051
|
tableLayout: "fixed",
|
|
7046
7052
|
scroll: {
|
|
7047
|
-
x:
|
|
7053
|
+
x: jr.reduce((e, t) => e + (Number(t.width) || f_), 0) + (Sr && ye === "checkbox" ? 48 : 0),
|
|
7048
7054
|
y: "calc(100vh - 300px)"
|
|
7049
7055
|
},
|
|
7050
7056
|
pagination: !1,
|
|
7051
7057
|
locale: { emptyText: /* @__PURE__ */ Z(Uo, {
|
|
7052
7058
|
image: Uo.PRESENTED_IMAGE_SIMPLE,
|
|
7053
|
-
description:
|
|
7059
|
+
description: wr
|
|
7054
7060
|
}) },
|
|
7055
7061
|
className: `${O} ${be ? "list-view-table--compact" : ""}`.trim(),
|
|
7056
7062
|
onRow: _e ? (e, t) => ({
|
|
@@ -7064,21 +7070,21 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
7064
7070
|
})
|
|
7065
7071
|
})
|
|
7066
7072
|
}),
|
|
7067
|
-
|
|
7073
|
+
Sr ? /* @__PURE__ */ Z(id, {
|
|
7068
7074
|
current: Dt.current,
|
|
7069
7075
|
pageSize: Dt.pageSize,
|
|
7070
|
-
total:
|
|
7071
|
-
count:
|
|
7076
|
+
total: vr,
|
|
7077
|
+
count: _r.length,
|
|
7072
7078
|
onChange: (e, t) => {
|
|
7073
|
-
if (_n && typeof
|
|
7074
|
-
|
|
7079
|
+
if (_n && typeof ie == "function") {
|
|
7080
|
+
ie(e, t ?? Dt.pageSize);
|
|
7075
7081
|
return;
|
|
7076
7082
|
}
|
|
7077
7083
|
Pn(e);
|
|
7078
7084
|
},
|
|
7079
7085
|
onPageSizeChange: (e) => {
|
|
7080
|
-
if (_n && typeof
|
|
7081
|
-
|
|
7086
|
+
if (_n && typeof ae == "function") {
|
|
7087
|
+
ae(e);
|
|
7082
7088
|
return;
|
|
7083
7089
|
}
|
|
7084
7090
|
Ot({
|
|
@@ -7091,8 +7097,8 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
7091
7097
|
moduleName: Le,
|
|
7092
7098
|
open: hn,
|
|
7093
7099
|
rows: Kt,
|
|
7094
|
-
tabs:
|
|
7095
|
-
total:
|
|
7100
|
+
tabs: Er,
|
|
7101
|
+
total: vr,
|
|
7096
7102
|
onClose: () => gn(!1)
|
|
7097
7103
|
})
|
|
7098
7104
|
]
|
|
@@ -7549,26 +7555,36 @@ function ey(e) {
|
|
|
7549
7555
|
return Array.isArray(e) ? Object.fromEntries(e.filter((e) => e.addRow && Array.isArray(e.rows) && e.rows.length > 0).map((e) => [e.payloadKey || e.name, e.rows])) : {};
|
|
7550
7556
|
}
|
|
7551
7557
|
var ty = "__none__";
|
|
7552
|
-
function ny(e, t) {
|
|
7553
|
-
if (!
|
|
7558
|
+
function ny(e, t, n = !1) {
|
|
7559
|
+
if (!e || !t || !n && t.prefillFrom === ty) return;
|
|
7560
|
+
let r = n ? [t.payloadKey, t.field] : [
|
|
7554
7561
|
t.prefillFrom,
|
|
7555
7562
|
t.field,
|
|
7556
7563
|
t.payloadKey
|
|
7557
|
-
]
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7564
|
+
];
|
|
7565
|
+
for (let t of r) {
|
|
7566
|
+
if (!t) continue;
|
|
7567
|
+
let n = e[t];
|
|
7568
|
+
if (n ??= La(e, t), n ??= Gi(e, t), n != null) return n;
|
|
7561
7569
|
}
|
|
7562
7570
|
}
|
|
7563
|
-
function ry(e) {
|
|
7564
|
-
if (Array.isArray(e)) return e.flatMap((e) => ry(e));
|
|
7571
|
+
function ry(e, t = !1) {
|
|
7572
|
+
if (Array.isArray(e)) return e.flatMap((e) => ry(e, t));
|
|
7573
|
+
if (t && typeof e == "string" && e.trim()) return [{
|
|
7574
|
+
uid: e,
|
|
7575
|
+
name: e.split("?")[0].split("/").pop() || "file",
|
|
7576
|
+
status: "done",
|
|
7577
|
+
url: e,
|
|
7578
|
+
existing: !0,
|
|
7579
|
+
stored: e
|
|
7580
|
+
}];
|
|
7565
7581
|
if (!e || typeof e != "object") return [];
|
|
7566
|
-
let
|
|
7567
|
-
return !
|
|
7568
|
-
uid:
|
|
7569
|
-
name:
|
|
7582
|
+
let n = Vf(e), r = Hf(e);
|
|
7583
|
+
return !n && !r ? [] : [{
|
|
7584
|
+
uid: r || n || "-1",
|
|
7585
|
+
name: n || "file",
|
|
7570
7586
|
status: "done",
|
|
7571
|
-
url:
|
|
7587
|
+
url: r,
|
|
7572
7588
|
existing: !0,
|
|
7573
7589
|
stored: e
|
|
7574
7590
|
}];
|
|
@@ -7887,7 +7903,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
7887
7903
|
}), {
|
|
7888
7904
|
pyops: r,
|
|
7889
7905
|
core: s
|
|
7890
|
-
}) : null), { form: t }), M = j ? JSON.parse(j) : null, ee = M?.base ?? "", N = M?.path ?? "", P = M ? `${ee}${N}` : "", F = Oo(""), [te, ne] = z(""), [re,
|
|
7906
|
+
}) : null), { form: t }), M = j ? JSON.parse(j) : null, ee = M?.base ?? "", N = M?.path ?? "", P = M ? `${ee}${N}` : "", F = Oo(""), [te, ne] = z(""), [re, ie] = z(""), [ae, I] = z(""), [oe, se] = z(0), [ce, le] = z({
|
|
7891
7907
|
open: !1,
|
|
7892
7908
|
docs: [],
|
|
7893
7909
|
index: 0
|
|
@@ -7963,7 +7979,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
7963
7979
|
masterName: e.masterName ?? "",
|
|
7964
7980
|
locationSearch: te,
|
|
7965
7981
|
lookupSearch: re,
|
|
7966
|
-
masterSearch:
|
|
7982
|
+
masterSearch: ae,
|
|
7967
7983
|
moduleName: i ?? "",
|
|
7968
7984
|
refetchNonce: oe,
|
|
7969
7985
|
locationLevel: e.locationLevel ?? "",
|
|
@@ -8032,7 +8048,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
8032
8048
|
async function o() {
|
|
8033
8049
|
try {
|
|
8034
8050
|
let o = [];
|
|
8035
|
-
if (r === "master" || r === "module") o = await br(i, e.field, r === "master" ?
|
|
8051
|
+
if (r === "master" || r === "module") o = await br(i, e.field, r === "master" ? ae : "", e.limit ?? 50, 0, {
|
|
8036
8052
|
dataSource: r,
|
|
8037
8053
|
masterName: e.masterName,
|
|
8038
8054
|
groupName: e.groupName
|
|
@@ -8118,7 +8134,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
8118
8134
|
e.masterName,
|
|
8119
8135
|
te,
|
|
8120
8136
|
re,
|
|
8121
|
-
|
|
8137
|
+
ae,
|
|
8122
8138
|
i,
|
|
8123
8139
|
e.extraFields,
|
|
8124
8140
|
e.optionsRequireExtraField,
|
|
@@ -8311,7 +8327,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
8311
8327
|
placeholder: Et,
|
|
8312
8328
|
notFoundContent: ot ? /* @__PURE__ */ Z(os, { size: "small" }) : d && Hr(re).length > 0 ? `"${Hr(re)}" not found. Press Enter to add it as a new${Ir(e.quickCreateModule || e.lookupCollection).toLowerCase()}.` : void 0,
|
|
8313
8329
|
onSearch: r || o || d ? (e) => {
|
|
8314
|
-
d && (pe.current = e, Hr(e).length === 3 && f()), r ?
|
|
8330
|
+
d && (pe.current = e, Hr(e).length === 3 && f()), r ? ie(e) : o && I(e);
|
|
8315
8331
|
} : void 0,
|
|
8316
8332
|
onChange: m,
|
|
8317
8333
|
defaultActiveFirstOption: !d && void 0,
|
|
@@ -8737,22 +8753,22 @@ function Ny(e, t) {
|
|
|
8737
8753
|
}, t))
|
|
8738
8754
|
});
|
|
8739
8755
|
}
|
|
8740
|
-
var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, region: i, formGroups: a, loading: o = !1, error: s = "", breadcrumbItems: c = [], formType: u = "add", submitText: d, cancelPath: f = "/candidates", onSubmit: p, initialRecord: m = null,
|
|
8741
|
-
let
|
|
8742
|
-
override:
|
|
8756
|
+
var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, region: i, formGroups: a, loading: o = !1, error: s = "", breadcrumbItems: c = [], formType: u = "add", submitText: d, cancelPath: f = "/candidates", onSubmit: p, initialRecord: m = null, existingRecordId: h = null, initialFormValues: g = null, prefillFromUrl: _ = !1, prefillContext: v = null, extraPayload: y = null, presetClientId: b = null, listViewProps: x = {}, selectedScope: S = "", searchActionContext: C = null, dateInputFormat: E, embedded: D = !1, onSuccess: O = null, onCancel: k = null, renderSection: A = null, renderLayout: j = null }, M) {
|
|
8757
|
+
let ee = R(() => ({
|
|
8758
|
+
override: E,
|
|
8743
8759
|
moduleName: e
|
|
8744
|
-
}), [
|
|
8760
|
+
}), [E, e]);
|
|
8745
8761
|
L(() => (n && l(n), () => {
|
|
8746
8762
|
n && w();
|
|
8747
8763
|
}), [n]);
|
|
8748
|
-
let
|
|
8749
|
-
Do(
|
|
8764
|
+
let N = u === "search", P = d ?? (N ? "Search" : "Create"), F = Nl(), te = Ml(), ne = Oo(null), re = Oo(null), ie = Pl(), [ae] = Fl(), [I] = H.useForm(), oe = Oo(/* @__PURE__ */ new Set()), se = `v1-form-scope-${Eo().replace(/[^a-zA-Z0-9_-]/g, "")}`, ce = () => document.querySelector(`.${se}`) ?? document;
|
|
8765
|
+
Do(M, () => ({
|
|
8750
8766
|
submit: () => I.submit(),
|
|
8751
8767
|
validate: () => I.validateFields(),
|
|
8752
8768
|
getValues: () => I.getFieldsValue(!0),
|
|
8753
8769
|
reset: () => I.resetFields()
|
|
8754
8770
|
}), [I]);
|
|
8755
|
-
let
|
|
8771
|
+
let le = H.useWatch((e) => N ? wy(e) : !1, { form: I }), [ue, de] = z(!1), [fe, pe] = z({}), [me, he] = z([]), [ge, ve] = z(null), [ye, xe] = z(!!e), [Se, we] = z(""), [Ee, De] = z(""), [Oe, ke] = z(!1), [Ae, je] = z(""), [Me, Ne] = z({
|
|
8756
8772
|
searched: !1,
|
|
8757
8773
|
rows: [],
|
|
8758
8774
|
total: 0,
|
|
@@ -8760,20 +8776,20 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8760
8776
|
actions: [],
|
|
8761
8777
|
actionRules: [],
|
|
8762
8778
|
loading: !1
|
|
8763
|
-
}), [
|
|
8779
|
+
}), [Pe, Fe] = z({
|
|
8764
8780
|
current: 1,
|
|
8765
8781
|
pageSize: 10
|
|
8766
|
-
}), [
|
|
8782
|
+
}), [Ie, Le] = z({}), [ze, Be] = z("internal"), [Ve, He] = z([]), [Ue, We] = z({}), [Ge, Ke] = z([]), [qe, Je] = z(r ?? ""), [Ye, Xe] = z(i ?? ""), [Ze, Qe] = z(null), [$e, et] = z(!1), [nt, rt] = z(""), [at, ot] = z(null), st = Oo(!1), ct = Oo(null), lt = Oo([]), ut = Oo(null), dt = Oo(!1), [ft, pt] = z(null), [mt, ht] = z(() => /* @__PURE__ */ new Map()), gt = e ? me : a ?? Ov, vt = e ? ye : o, yt = e ? Se : s, [bt, xt] = z(""), St = ie?.jobId && ie.jobId !== "_" ? ie.jobId : ae.get("jobId") || "";
|
|
8767
8783
|
L(() => {
|
|
8768
|
-
if (
|
|
8784
|
+
if (D || r || b || !St) return;
|
|
8769
8785
|
let e = !1;
|
|
8770
8786
|
return (async () => {
|
|
8771
8787
|
try {
|
|
8772
8788
|
let t = $v(Zv(await $a({
|
|
8773
8789
|
module: "jobs",
|
|
8774
|
-
id:
|
|
8790
|
+
id: St
|
|
8775
8791
|
}))) ?? {}, n = t.clientId ?? t.client ?? "", r = n && typeof n == "object" ? n.id ?? n.value ?? "" : n;
|
|
8776
|
-
!e && r &&
|
|
8792
|
+
!e && r && xt(String(r));
|
|
8777
8793
|
} catch (e) {
|
|
8778
8794
|
console.error("Client-scope resolve from job failed:", e);
|
|
8779
8795
|
}
|
|
@@ -8781,16 +8797,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8781
8797
|
e = !0;
|
|
8782
8798
|
};
|
|
8783
8799
|
}, [
|
|
8784
|
-
|
|
8800
|
+
D,
|
|
8785
8801
|
r,
|
|
8786
|
-
|
|
8787
|
-
|
|
8802
|
+
b,
|
|
8803
|
+
St
|
|
8788
8804
|
]);
|
|
8789
|
-
let
|
|
8805
|
+
let Ct = r || b || bt || qe, wt = i || Ye, [, Tt] = z(0);
|
|
8790
8806
|
L(() => {
|
|
8791
8807
|
let e = !0;
|
|
8792
8808
|
return Re().then(() => {
|
|
8793
|
-
e &&
|
|
8809
|
+
e && Tt((e) => e + 1);
|
|
8794
8810
|
}), () => {
|
|
8795
8811
|
e = !1;
|
|
8796
8812
|
};
|
|
@@ -8799,16 +8815,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8799
8815
|
return queueMicrotask(() => {
|
|
8800
8816
|
if (!t) {
|
|
8801
8817
|
if (!e) {
|
|
8802
|
-
|
|
8818
|
+
pt(null);
|
|
8803
8819
|
return;
|
|
8804
8820
|
}
|
|
8805
8821
|
wn({ roleId: localStorage.getItem("roleId") }, e, {
|
|
8806
|
-
clientId:
|
|
8807
|
-
region:
|
|
8822
|
+
clientId: Ct,
|
|
8823
|
+
region: wt
|
|
8808
8824
|
}).then((e) => {
|
|
8809
|
-
t ||
|
|
8825
|
+
t || pt(Array.isArray(e) && e.length ? e : null);
|
|
8810
8826
|
}).catch(() => {
|
|
8811
|
-
t ||
|
|
8827
|
+
t || pt(null);
|
|
8812
8828
|
});
|
|
8813
8829
|
}
|
|
8814
8830
|
}), () => {
|
|
@@ -8816,52 +8832,54 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8816
8832
|
};
|
|
8817
8833
|
}, [
|
|
8818
8834
|
e,
|
|
8819
|
-
|
|
8820
|
-
|
|
8835
|
+
Ct,
|
|
8836
|
+
wt
|
|
8821
8837
|
]), L(() => {
|
|
8822
8838
|
let t = !1;
|
|
8823
8839
|
return queueMicrotask(() => {
|
|
8824
8840
|
if (!t) {
|
|
8825
8841
|
if (!e) {
|
|
8826
|
-
|
|
8842
|
+
ht(/* @__PURE__ */ new Map());
|
|
8827
8843
|
return;
|
|
8828
8844
|
}
|
|
8829
8845
|
tt(e).then((e) => {
|
|
8830
|
-
t ||
|
|
8846
|
+
t || ht(un(e));
|
|
8831
8847
|
}).catch(() => {
|
|
8832
|
-
t ||
|
|
8848
|
+
t || ht(/* @__PURE__ */ new Map());
|
|
8833
8849
|
});
|
|
8834
8850
|
}
|
|
8835
8851
|
}), () => {
|
|
8836
8852
|
t = !0;
|
|
8837
8853
|
};
|
|
8838
8854
|
}, [e]);
|
|
8839
|
-
let
|
|
8840
|
-
|
|
8855
|
+
let Et = R(() => Qv(gt, e, ft, mt), [
|
|
8856
|
+
gt,
|
|
8841
8857
|
e,
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
]), [
|
|
8858
|
+
ft,
|
|
8859
|
+
mt
|
|
8860
|
+
]), [Dt, Ot] = z(0), kt = R(() => Ar({
|
|
8845
8861
|
checkFieldUnique: Zr,
|
|
8846
|
-
onPendingChange:
|
|
8847
|
-
}), []),
|
|
8848
|
-
checker:
|
|
8862
|
+
onPendingChange: Ot
|
|
8863
|
+
}), []), At = R(() => N ? void 0 : {
|
|
8864
|
+
checker: kt,
|
|
8849
8865
|
module: e,
|
|
8850
|
-
clientId:
|
|
8851
|
-
region:
|
|
8866
|
+
clientId: Ct || void 0,
|
|
8867
|
+
region: wt || void 0,
|
|
8868
|
+
recordId: h || void 0
|
|
8852
8869
|
}, [
|
|
8853
|
-
|
|
8854
|
-
|
|
8870
|
+
N,
|
|
8871
|
+
kt,
|
|
8855
8872
|
e,
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8873
|
+
Ct,
|
|
8874
|
+
wt,
|
|
8875
|
+
h
|
|
8876
|
+
]), jt = R(() => vr(Et), [Et]), Mt = R(() => Pa(Et), [Et]), Nt = Oo({}), Pt = Oo(null), Ft = Oo(!1), It = R(() => Et.flatMap((e) => e.formActions ?? []), [Et]), Lt = R(() => Zv(gt).find((e) => e?.duplicateCheck)?.duplicateCheck ?? {}, [gt]), Rt = wf({
|
|
8859
8877
|
form: I,
|
|
8860
8878
|
moduleName: e,
|
|
8861
|
-
config:
|
|
8879
|
+
config: Lt,
|
|
8862
8880
|
onUseExisting: wo((t, n, r, i) => {
|
|
8863
8881
|
if (!t) return;
|
|
8864
|
-
let a = n?.editRoute ||
|
|
8882
|
+
let a = n?.editRoute || Lt?.editRoute;
|
|
8865
8883
|
if (!a) {
|
|
8866
8884
|
console.warn(`[duplicate-check] ${e}: no editRoute configured, so the existing record was not opened. Set it in Admin → Automations → "Check for someone already on file" → "Where to open the existing record".`);
|
|
8867
8885
|
return;
|
|
@@ -8871,29 +8889,29 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8871
8889
|
let [s, c = ""] = o.split("?"), l = new URLSearchParams(c);
|
|
8872
8890
|
n?.selectedVersionId && l.set("candidateVersionId", n.selectedVersionId);
|
|
8873
8891
|
let u = l.size ? `${s}?${l}` : o;
|
|
8874
|
-
|
|
8892
|
+
F(u, { state: {
|
|
8875
8893
|
fromDuplicate: !0,
|
|
8876
8894
|
carryFiles: i?.files ?? null
|
|
8877
8895
|
} });
|
|
8878
|
-
}, [
|
|
8879
|
-
}), [
|
|
8896
|
+
}, [Lt, F])
|
|
8897
|
+
}), [zt, Bt] = z(null), Vt = da({
|
|
8880
8898
|
form: I,
|
|
8881
|
-
groups:
|
|
8899
|
+
groups: Et,
|
|
8882
8900
|
module: e,
|
|
8883
8901
|
watchSourcesOnly: !0,
|
|
8884
8902
|
onParsed: wo(async ({ field: e, payload: t }) => {
|
|
8885
|
-
let n = e?.field, r = n ? { files: { [n]: I.getFieldValue(n) } } : null, i = await
|
|
8903
|
+
let n = e?.field, r = n ? { files: { [n]: I.getFieldValue(n) } } : null, i = await Rt.prompt({
|
|
8886
8904
|
reason: "upload",
|
|
8887
8905
|
payload: t,
|
|
8888
8906
|
carry: r
|
|
8889
8907
|
});
|
|
8890
8908
|
return i === "clear" || i === "addNew" || (n && (I.setFieldValue(n, []), Y.info(i === "existing" ? "Résumé moved to their record." : "Résumé removed — nothing on this form was filled in.")), "abort");
|
|
8891
|
-
}, [
|
|
8909
|
+
}, [Rt, I]),
|
|
8892
8910
|
onApplied: wo(async () => {
|
|
8893
|
-
await
|
|
8894
|
-
}, [
|
|
8895
|
-
}),
|
|
8896
|
-
let t = _t().region, n =
|
|
8911
|
+
await Rt.prompt({ reason: "upload" });
|
|
8912
|
+
}, [Rt])
|
|
8913
|
+
}), Ht = wo((e) => {
|
|
8914
|
+
let t = _t().region, n = Et.find((t) => (t.fields ?? []).some((t) => t.field === e.field));
|
|
8897
8915
|
if (!n) return !1;
|
|
8898
8916
|
let r = Sr(n, t), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
|
|
8899
8917
|
if (e.field !== i || Qn(r)) return !1;
|
|
@@ -8911,16 +8929,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8911
8929
|
body: Pr(r),
|
|
8912
8930
|
okText: a ? "Got it" : "Keep it anyway"
|
|
8913
8931
|
}), a;
|
|
8914
|
-
}, [
|
|
8915
|
-
let n =
|
|
8932
|
+
}, [Et]), Ut = wo((e, t) => {
|
|
8933
|
+
let n = Et.find((e) => e.name === t);
|
|
8916
8934
|
if (!n) return;
|
|
8917
8935
|
let r = Sr(n, _t().region), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
|
|
8918
8936
|
if (e.field !== i) return;
|
|
8919
8937
|
let a = Br(r);
|
|
8920
8938
|
return a ? [a] : void 0;
|
|
8921
|
-
}, [
|
|
8939
|
+
}, [Et]), Wt = wo(async (e, t) => {
|
|
8922
8940
|
if (!Array.isArray(t) || t.length < 3 || typeof t[1] != "number") return;
|
|
8923
|
-
let n = t[0], r = t[1], i =
|
|
8941
|
+
let n = t[0], r = t[1], i = Et.find((e) => e.name === n);
|
|
8924
8942
|
if (!i) return;
|
|
8925
8943
|
let a = Sr(i, _t().region);
|
|
8926
8944
|
if (!a.orderBy) return;
|
|
@@ -8930,7 +8948,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8930
8948
|
group: a,
|
|
8931
8949
|
rows: o,
|
|
8932
8950
|
rowIndex: r,
|
|
8933
|
-
move:
|
|
8951
|
+
move: Nt.current[n]?.move,
|
|
8934
8952
|
confirm: ({ title: e, body: t, okText: n, cancelText: r, from: i, to: a }) => Mi({
|
|
8935
8953
|
tone: "suggestion",
|
|
8936
8954
|
title: e,
|
|
@@ -8946,17 +8964,17 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8946
8964
|
cancelText: r
|
|
8947
8965
|
})
|
|
8948
8966
|
});
|
|
8949
|
-
}, [
|
|
8950
|
-
if (!
|
|
8951
|
-
|
|
8967
|
+
}, [Et, I]), Gt = Oo(!1), Kt = wo(async () => {
|
|
8968
|
+
if (!Gt.current) {
|
|
8969
|
+
Gt.current = !0;
|
|
8952
8970
|
try {
|
|
8953
|
-
await
|
|
8971
|
+
await Rt.prompt({ reason: "blur" });
|
|
8954
8972
|
} finally {
|
|
8955
|
-
|
|
8973
|
+
Gt.current = !1;
|
|
8956
8974
|
}
|
|
8957
8975
|
}
|
|
8958
|
-
}, [
|
|
8959
|
-
let e = Zv(
|
|
8976
|
+
}, [Rt]), [qt, Jt] = z("list"), Yt = N && !le, { hasClientScope: Xt, clientGateMessage: Zt, clientGateResetOnChange: Qt } = R(() => {
|
|
8977
|
+
let e = Zv(gt).flatMap((e) => e.fields ?? []).find((e) => jv(e.clientScope));
|
|
8960
8978
|
return e ? {
|
|
8961
8979
|
hasClientScope: !0,
|
|
8962
8980
|
clientGateMessage: e.clientGateMessage || "",
|
|
@@ -8966,32 +8984,32 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8966
8984
|
clientGateMessage: "",
|
|
8967
8985
|
clientGateResetOnChange: !1
|
|
8968
8986
|
};
|
|
8969
|
-
}, [
|
|
8970
|
-
if (
|
|
8987
|
+
}, [gt]), $t = (e) => {
|
|
8988
|
+
if (Qt) {
|
|
8971
8989
|
I.resetFields();
|
|
8972
8990
|
let e = I.getFieldsValue(!0);
|
|
8973
|
-
I.setFieldsValue(Object.fromEntries(Object.keys(e).map((e) => [e, void 0]))),
|
|
8991
|
+
I.setFieldsValue(Object.fromEntries(Object.keys(e).map((e) => [e, void 0]))), Ne({
|
|
8974
8992
|
searched: !1,
|
|
8975
8993
|
rows: [],
|
|
8976
8994
|
total: 0,
|
|
8977
8995
|
fields: [],
|
|
8978
8996
|
loading: !1
|
|
8979
|
-
}),
|
|
8997
|
+
}), Fe({
|
|
8980
8998
|
current: 1,
|
|
8981
8999
|
pageSize: 10
|
|
8982
9000
|
});
|
|
8983
9001
|
}
|
|
8984
|
-
|
|
8985
|
-
},
|
|
9002
|
+
Je(e ?? "");
|
|
9003
|
+
}, en = Xt && !Ct, tn = wo(() => Te({ limit: 200 }).then(Ke).catch(() => Ke([])), []);
|
|
8986
9004
|
L(() => {
|
|
8987
|
-
!
|
|
9005
|
+
!Xt || b || bt || tn();
|
|
8988
9006
|
}, [
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
9007
|
+
Xt,
|
|
9008
|
+
b,
|
|
9009
|
+
bt,
|
|
9010
|
+
tn
|
|
8993
9011
|
]);
|
|
8994
|
-
let
|
|
9012
|
+
let nn = Ba({
|
|
8995
9013
|
field: {
|
|
8996
9014
|
field: "clientId",
|
|
8997
9015
|
quickCreate: !0,
|
|
@@ -9012,25 +9030,25 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9012
9030
|
name: "clientId",
|
|
9013
9031
|
moduleName: e,
|
|
9014
9032
|
scopeValues: {},
|
|
9015
|
-
ownValue:
|
|
9033
|
+
ownValue: Ct,
|
|
9016
9034
|
onDone: (e, t) => {
|
|
9017
|
-
|
|
9035
|
+
tn(), e === "create" && t != null && $t(String(t));
|
|
9018
9036
|
}
|
|
9019
9037
|
});
|
|
9020
9038
|
L(() => {
|
|
9021
9039
|
if (!e) return;
|
|
9022
9040
|
let n = !1;
|
|
9023
9041
|
async function r() {
|
|
9024
|
-
let r = `${
|
|
9042
|
+
let r = `${Ct ?? ""}|${wt ?? ""}`;
|
|
9025
9043
|
try {
|
|
9026
|
-
|
|
9027
|
-
let i =
|
|
9044
|
+
xe(!0), we("");
|
|
9045
|
+
let i = N ? await it(e, "search", t) : await $a({
|
|
9028
9046
|
module: e,
|
|
9029
9047
|
action: t,
|
|
9030
|
-
clientId:
|
|
9031
|
-
region:
|
|
9032
|
-
}), a = Zv(
|
|
9033
|
-
if (!
|
|
9048
|
+
clientId: Ct,
|
|
9049
|
+
region: wt
|
|
9050
|
+
}), a = Zv(N ? i?.[0] : i);
|
|
9051
|
+
if (!N && e === "submissions" && (Ct || wt) && !a.flatMap((e) => e.fields ?? []).filter((e) => String(e.field ?? "").trim().toLowerCase() === "contracttype").some((e) => Array.isArray(e.optionColors) && e.optionColors.length > 0)) try {
|
|
9034
9052
|
let n = Zv(await $a({
|
|
9035
9053
|
module: e,
|
|
9036
9054
|
action: t
|
|
@@ -9045,11 +9063,11 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9045
9063
|
} catch (e) {
|
|
9046
9064
|
console.warn("[Submission color] Default optionColors lookup failed:", e);
|
|
9047
9065
|
}
|
|
9048
|
-
n || (
|
|
9066
|
+
n || (he(a), ve(r), N && De(i?.[0]?.label || ""));
|
|
9049
9067
|
} catch (t) {
|
|
9050
|
-
console.error(`Failed to fetch ${e} form groups:`, t), n || (
|
|
9068
|
+
console.error(`Failed to fetch ${e} form groups:`, t), n || (we(t?.message || "Failed to fetch form groups"), ve(r));
|
|
9051
9069
|
} finally {
|
|
9052
|
-
n ||
|
|
9070
|
+
n || xe(!1);
|
|
9053
9071
|
}
|
|
9054
9072
|
}
|
|
9055
9073
|
return r(), () => {
|
|
@@ -9058,13 +9076,13 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9058
9076
|
}, [
|
|
9059
9077
|
e,
|
|
9060
9078
|
t,
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9079
|
+
N,
|
|
9080
|
+
Ct,
|
|
9081
|
+
wt
|
|
9064
9082
|
]);
|
|
9065
|
-
let
|
|
9066
|
-
if (!
|
|
9067
|
-
let e =
|
|
9083
|
+
let rn = R(() => {
|
|
9084
|
+
if (!_) return v;
|
|
9085
|
+
let e = ae.get("candidateId") || "", t = ae.get("submissionId") || "", n = String(ae.get("isFromSubmission")) === "true", r = ae.get("candidateVersionId") || "", i = ie.jobId && ie.jobId !== "_" ? ie.jobId : ae.get("jobId") || "", a = e ? {
|
|
9068
9086
|
module: "candidates",
|
|
9069
9087
|
id: e,
|
|
9070
9088
|
candidateVersionId: r || void 0
|
|
@@ -9074,7 +9092,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9074
9092
|
} : null, o = {};
|
|
9075
9093
|
if (e && (o.applicantId = e), i && (o.jobId = i), r) {
|
|
9076
9094
|
o.candidateVersionId = r;
|
|
9077
|
-
let e = Number(
|
|
9095
|
+
let e = Number(ae.get("candidateProfileVersion"));
|
|
9078
9096
|
Number.isSafeInteger(e) && e > 0 && (o.profileVersion = e);
|
|
9079
9097
|
}
|
|
9080
9098
|
return {
|
|
@@ -9083,52 +9101,52 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9083
9101
|
linkage: Object.keys(o).length ? o : null
|
|
9084
9102
|
};
|
|
9085
9103
|
}, [
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9104
|
+
_,
|
|
9105
|
+
v,
|
|
9106
|
+
ae,
|
|
9107
|
+
ie
|
|
9090
9108
|
]);
|
|
9091
9109
|
L(() => {
|
|
9092
|
-
let e =
|
|
9110
|
+
let e = rn?.source;
|
|
9093
9111
|
if (!e) return;
|
|
9094
9112
|
let t = !1;
|
|
9095
9113
|
async function n() {
|
|
9096
9114
|
try {
|
|
9097
|
-
if (
|
|
9115
|
+
if (et(!0), rt(""), e.module === "candidates") {
|
|
9098
9116
|
let n = await Lf({
|
|
9099
9117
|
candidateSource: e,
|
|
9100
|
-
submissionId:
|
|
9118
|
+
submissionId: rn.previousSubmissionId,
|
|
9101
9119
|
findLatestSubmission: Ef
|
|
9102
9120
|
}, $a);
|
|
9103
|
-
t || (
|
|
9121
|
+
t || (ct.current = n.candidate, lt.current = n.submission, ut.current = n.baseline, Qe(n.merged));
|
|
9104
9122
|
} else {
|
|
9105
9123
|
let n = await $a({
|
|
9106
9124
|
module: e.module,
|
|
9107
9125
|
id: e.id
|
|
9108
9126
|
});
|
|
9109
|
-
t ||
|
|
9127
|
+
t || Qe(Zv(n));
|
|
9110
9128
|
}
|
|
9111
9129
|
} catch (e) {
|
|
9112
|
-
console.error("Failed to fetch prefill data:", e), t ||
|
|
9130
|
+
console.error("Failed to fetch prefill data:", e), t || rt(e.message), t || je(`Unable to load submission prefill: ${e.message}`), t || Qe([]);
|
|
9113
9131
|
} finally {
|
|
9114
|
-
t ||
|
|
9132
|
+
t || et(!1);
|
|
9115
9133
|
}
|
|
9116
9134
|
}
|
|
9117
9135
|
return n(), () => {
|
|
9118
9136
|
t = !0;
|
|
9119
9137
|
};
|
|
9120
|
-
}, [
|
|
9121
|
-
let
|
|
9138
|
+
}, [rn]);
|
|
9139
|
+
let an = R(() => ey(Ze), [Ze]), on = R(() => $v(Ze), [Ze]), sn = R(() => {
|
|
9122
9140
|
let e = /* @__PURE__ */ new Set();
|
|
9123
|
-
return
|
|
9141
|
+
return Et.forEach((t) => (t.fields ?? []).forEach((t) => {
|
|
9124
9142
|
t.prefillFromModule && e.add(xy(t.prefillFromModule));
|
|
9125
9143
|
})), [...e];
|
|
9126
|
-
}, [
|
|
9144
|
+
}, [Et]), [cn, ln] = z({});
|
|
9127
9145
|
L(() => {
|
|
9128
|
-
let e =
|
|
9129
|
-
if (!e ||
|
|
9146
|
+
let e = rn?.linkage;
|
|
9147
|
+
if (h || !e || sn.length === 0) return;
|
|
9130
9148
|
let t = !1;
|
|
9131
|
-
return
|
|
9149
|
+
return sn.forEach(async (n) => {
|
|
9132
9150
|
let r = Ii(n, e);
|
|
9133
9151
|
if (r) try {
|
|
9134
9152
|
let i = $v(Zv(await $a({
|
|
@@ -9136,7 +9154,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9136
9154
|
id: r,
|
|
9137
9155
|
candidateVersionId: n === "candidates" ? e.candidateVersionId : void 0
|
|
9138
9156
|
})));
|
|
9139
|
-
!t && i &&
|
|
9157
|
+
!t && i && ln((e) => ({
|
|
9140
9158
|
...e,
|
|
9141
9159
|
[n]: i
|
|
9142
9160
|
}));
|
|
@@ -9146,15 +9164,20 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9146
9164
|
}), () => {
|
|
9147
9165
|
t = !0;
|
|
9148
9166
|
};
|
|
9149
|
-
}, [
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9167
|
+
}, [
|
|
9168
|
+
sn,
|
|
9169
|
+
rn,
|
|
9170
|
+
h
|
|
9171
|
+
]);
|
|
9172
|
+
let dn = R(() => {
|
|
9173
|
+
if (h) return {};
|
|
9174
|
+
let e = m ?? on;
|
|
9175
|
+
if (!e && Object.keys(cn).length === 0) return {};
|
|
9153
9176
|
let t = {};
|
|
9154
|
-
return
|
|
9177
|
+
return Et.forEach((n) => {
|
|
9155
9178
|
n.addRow || (n.fields ?? []).forEach((n) => {
|
|
9156
9179
|
if (!n.field || !jv(n.prefillAsHint) || jv(n.addRow)) return;
|
|
9157
|
-
let r = n.prefillFromModule ?
|
|
9180
|
+
let r = n.prefillFromModule ? cn[xy(n.prefillFromModule)] : e;
|
|
9158
9181
|
if (!r) return;
|
|
9159
9182
|
let i = ny(r, n);
|
|
9160
9183
|
if (i == null) return;
|
|
@@ -9164,31 +9187,36 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9164
9187
|
}), t;
|
|
9165
9188
|
}, [
|
|
9166
9189
|
m,
|
|
9167
|
-
rn,
|
|
9168
9190
|
on,
|
|
9169
|
-
|
|
9191
|
+
cn,
|
|
9192
|
+
Et,
|
|
9193
|
+
h
|
|
9170
9194
|
]);
|
|
9171
9195
|
L(() => {
|
|
9172
|
-
if (
|
|
9173
|
-
|
|
9196
|
+
if (st.current) {
|
|
9197
|
+
st.current = !1;
|
|
9198
|
+
return;
|
|
9199
|
+
}
|
|
9200
|
+
let e = m ?? on;
|
|
9201
|
+
if (h && g && !vt && Et.length) {
|
|
9202
|
+
I.setFieldsValue(g);
|
|
9174
9203
|
return;
|
|
9175
9204
|
}
|
|
9176
|
-
|
|
9177
|
-
if (!e && Object.keys(on).length === 0 || ht || wt.length === 0) return;
|
|
9205
|
+
if (!e && Object.keys(cn).length === 0 || vt || Et.length === 0) return;
|
|
9178
9206
|
let t = {};
|
|
9179
|
-
|
|
9207
|
+
Et.forEach((n) => {
|
|
9180
9208
|
if (n.toggleEnabled && n.toggleField && e) {
|
|
9181
9209
|
let r = ny(e, { field: n.toggleField });
|
|
9182
9210
|
r != null && (t[n.toggleField] = !!r);
|
|
9183
9211
|
}
|
|
9184
9212
|
n.addRow || (n.fields ?? []).forEach((n) => {
|
|
9185
9213
|
if (!n.field || jv(n.addRow)) return;
|
|
9186
|
-
let r = n.prefillFromModule ?
|
|
9214
|
+
let r = !h && n.prefillFromModule ? cn[xy(n.prefillFromModule)] : e;
|
|
9187
9215
|
if (!r) return;
|
|
9188
|
-
let i = ny(r, n);
|
|
9189
|
-
if (i != null && !jv(n.prefillAsHint)) {
|
|
9216
|
+
let i = ny(r, n, !!h);
|
|
9217
|
+
if (i != null && !(!h && jv(n.prefillAsHint))) {
|
|
9190
9218
|
if (n.type === "file") {
|
|
9191
|
-
let e = ry(i);
|
|
9219
|
+
let e = ry(i, !!h);
|
|
9192
9220
|
e.length > 0 && ha(t, n.field, e);
|
|
9193
9221
|
} else ha(t, n.field, va(n, i));
|
|
9194
9222
|
}
|
|
@@ -9196,21 +9224,23 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9196
9224
|
}), Object.keys(t).length > 0 && I.setFieldsValue(t);
|
|
9197
9225
|
}, [
|
|
9198
9226
|
m,
|
|
9199
|
-
rn,
|
|
9200
9227
|
on,
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9228
|
+
cn,
|
|
9229
|
+
vt,
|
|
9230
|
+
Et,
|
|
9231
|
+
I,
|
|
9232
|
+
h,
|
|
9233
|
+
g
|
|
9204
9234
|
]), L(() => {
|
|
9205
|
-
let e =
|
|
9206
|
-
if (!(e || t) ||
|
|
9207
|
-
let i =
|
|
9235
|
+
let e = te?.state?.relevantSkillsToken, t = te?.state?.relevantSkillsInputs, n = t?.jobId ?? rn?.linkage?.jobId ?? "", r = t?.applicantId ?? t?.candidateId ?? rn?.linkage?.applicantId ?? "";
|
|
9236
|
+
if (h || !(e || t) || vt || Et.length === 0) return;
|
|
9237
|
+
let i = Et.filter((e) => jv(e.addRow) && e.skillMatchField);
|
|
9208
9238
|
if (i.length === 0) return;
|
|
9209
9239
|
let a = e || `inputs:${n}:${r}`, o;
|
|
9210
|
-
if (
|
|
9240
|
+
if (ne.current === a && re.current ? o = re.current : (o = e ? iv(e) : void 0, (!o || typeof o.then != "function") && n && r && (o = av({
|
|
9211
9241
|
jobId: n,
|
|
9212
9242
|
applicantId: r
|
|
9213
|
-
}).catch(() => [])),
|
|
9243
|
+
}).catch(() => [])), ne.current = a, re.current = o), !o || typeof o.then != "function") return;
|
|
9214
9244
|
let s = !1;
|
|
9215
9245
|
return o.then((e) => {
|
|
9216
9246
|
if (s || !Array.isArray(e) || e.length === 0) return;
|
|
@@ -9226,47 +9256,50 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9226
9256
|
s = !0;
|
|
9227
9257
|
};
|
|
9228
9258
|
}, [
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9259
|
+
te?.state?.relevantSkillsToken,
|
|
9260
|
+
te?.state?.relevantSkillsInputs,
|
|
9261
|
+
rn?.linkage?.jobId,
|
|
9262
|
+
rn?.linkage?.applicantId,
|
|
9263
|
+
vt,
|
|
9264
|
+
Et,
|
|
9235
9265
|
I
|
|
9236
9266
|
]);
|
|
9237
|
-
let
|
|
9238
|
-
...
|
|
9239
|
-
...
|
|
9240
|
-
...
|
|
9241
|
-
},
|
|
9242
|
-
let n = e.prefillFrom || e.payloadKey || e.name, r =
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9267
|
+
let pn = {
|
|
9268
|
+
...Xt && Ct ? { clientId: Ct } : {},
|
|
9269
|
+
...rn?.linkage ?? y ?? {},
|
|
9270
|
+
...at ?? {}
|
|
9271
|
+
}, mn = !!e && !N && ge !== `${Ct ?? ""}|${wt ?? ""}`, gn = !en && !vt && !mn && (!rn?.source || Ze !== null && !$e), _n = (e, t = an) => {
|
|
9272
|
+
let n = e.prefillFrom || e.payloadKey || e.name, r = h ? ny(m, {
|
|
9273
|
+
field: e.name,
|
|
9274
|
+
payloadKey: e.payloadKey
|
|
9275
|
+
}, !0) : t[n], i = Da(e, r), a = Math.max(0, Number(e.minRows ?? 0) || 0), o = ki(e);
|
|
9276
|
+
if (!i || i.length === 0) {
|
|
9277
|
+
let t = e.initialRows === void 0 ? a : Math.max(a, Math.max(0, Number(e.initialRows) || 0));
|
|
9278
|
+
return Array.from({ length: t }, () => ({ ...o }));
|
|
9246
9279
|
}
|
|
9247
|
-
let
|
|
9248
|
-
let n = { ...
|
|
9280
|
+
let s = i.map((t) => {
|
|
9281
|
+
let n = { ...o };
|
|
9249
9282
|
return (e.fields ?? []).forEach((e) => {
|
|
9250
|
-
if (!e.field || e.type === "file") return;
|
|
9251
|
-
let r = ny(t, e);
|
|
9252
|
-
r != null && (n[e.field] = jv(e.addRow) ? qi(e, r) : va(e, r));
|
|
9283
|
+
if (!e.field || !h && e.type === "file") return;
|
|
9284
|
+
let r = ny(t, e, !!h);
|
|
9285
|
+
r != null && (n[e.field] = jv(e.addRow) ? qi(e, r) : e.type === "file" ? ry(r, !0) : va(e, r));
|
|
9253
9286
|
}), n;
|
|
9254
9287
|
});
|
|
9255
|
-
for (;
|
|
9256
|
-
return
|
|
9257
|
-
},
|
|
9258
|
-
let e =
|
|
9259
|
-
if (!(!e ||
|
|
9260
|
-
|
|
9288
|
+
for (; s.length < a;) s.push({ ...o });
|
|
9289
|
+
return s;
|
|
9290
|
+
}, vn = async () => {
|
|
9291
|
+
let e = rn?.linkage?.applicantId;
|
|
9292
|
+
if (!(!e || dt.current)) {
|
|
9293
|
+
dt.current = !0;
|
|
9261
9294
|
try {
|
|
9262
|
-
let t =
|
|
9295
|
+
let t = rn?.source?.module === "candidates", n = ct.current ?? (t ? Ze : null), r = Zv(await $a({
|
|
9263
9296
|
module: "candidates",
|
|
9264
9297
|
id: e
|
|
9265
9298
|
}));
|
|
9266
9299
|
if (!Array.isArray(r)) return;
|
|
9267
9300
|
if (Array.isArray(n)) {
|
|
9268
9301
|
let e = $v(n), t = $v(r), i = (e, t) => JSON.stringify(e ?? null) === JSON.stringify(t ?? null), a = {};
|
|
9269
|
-
|
|
9302
|
+
Et.forEach((n) => {
|
|
9270
9303
|
if (n.toggleEnabled && n.toggleField) {
|
|
9271
9304
|
let r = ny(e, { field: n.toggleField }), o = ny(t, { field: n.toggleField });
|
|
9272
9305
|
!i(r, o) && o != null && (a[n.toggleField] = !!o);
|
|
@@ -9281,21 +9314,21 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9281
9314
|
let t = e.prefillFrom || e.payloadKey || e.name;
|
|
9282
9315
|
return !i(o[t], s[t]);
|
|
9283
9316
|
}, l = {};
|
|
9284
|
-
|
|
9317
|
+
Et.forEach((e) => {
|
|
9285
9318
|
if (!e.addRow) return;
|
|
9286
|
-
let t = Fi(
|
|
9319
|
+
let t = Fi(Mt, e.name);
|
|
9287
9320
|
(t ? t.memberNames.some((e) => {
|
|
9288
|
-
let t =
|
|
9321
|
+
let t = Et.find((t) => t.name === e);
|
|
9289
9322
|
return t && c(t);
|
|
9290
|
-
}) : c(e)) && (l[e.name] =
|
|
9291
|
-
}), Object.entries(Vi(
|
|
9323
|
+
}) : c(e)) && (l[e.name] = _n(e, s));
|
|
9324
|
+
}), Object.entries(Vi(Mt, l)).forEach(([e, t]) => I.setFieldValue(e, t));
|
|
9292
9325
|
}
|
|
9293
|
-
if (t ? (
|
|
9326
|
+
if (t ? (st.current = !0, Qe(If(lt.current, r, ut.current))) : ct.current = r, ct.current = r, rn?.linkage?.candidateVersionId) {
|
|
9294
9327
|
let t = await Tf(e);
|
|
9295
|
-
t[0] && (
|
|
9328
|
+
t[0] && (ot({
|
|
9296
9329
|
candidateVersionId: t[0].id,
|
|
9297
9330
|
profileVersion: t[0].profileVersion
|
|
9298
|
-
}),
|
|
9331
|
+
}), ln((e) => ({
|
|
9299
9332
|
...e,
|
|
9300
9333
|
candidates: $v(r)
|
|
9301
9334
|
})));
|
|
@@ -9303,80 +9336,82 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9303
9336
|
} catch (e) {
|
|
9304
9337
|
console.error("Failed to refresh form from updated candidate:", e);
|
|
9305
9338
|
} finally {
|
|
9306
|
-
|
|
9339
|
+
dt.current = !1;
|
|
9307
9340
|
}
|
|
9308
9341
|
}
|
|
9309
|
-
},
|
|
9342
|
+
}, yn = Oo(vn);
|
|
9310
9343
|
L(() => {
|
|
9311
|
-
|
|
9344
|
+
yn.current = vn;
|
|
9312
9345
|
});
|
|
9313
|
-
let
|
|
9346
|
+
let bn = wo(() => yn.current(), []);
|
|
9314
9347
|
L(() => {
|
|
9315
|
-
let e =
|
|
9316
|
-
if (!e || !
|
|
9348
|
+
let e = rn?.linkage?.applicantId;
|
|
9349
|
+
if (!e || !rn?.source || rn.source.module === "candidates") return;
|
|
9317
9350
|
let t = !1;
|
|
9318
9351
|
return $a({
|
|
9319
9352
|
module: "candidates",
|
|
9320
9353
|
id: e
|
|
9321
9354
|
}).then((e) => {
|
|
9322
|
-
t || (
|
|
9355
|
+
t || (ct.current = Zv(e));
|
|
9323
9356
|
}).catch(() => {}), () => {
|
|
9324
9357
|
t = !0;
|
|
9325
9358
|
};
|
|
9326
|
-
}, [
|
|
9327
|
-
let
|
|
9359
|
+
}, [rn]);
|
|
9360
|
+
let xn = R(() => Et.map((e) => `${e.name}:${+!!jv(e.allowCollapse)}${+!!jv(e.defaultCollapsed)}`).join("|"), [Et]), Sn = Oo(null);
|
|
9328
9361
|
L(() => {
|
|
9329
|
-
if (!
|
|
9330
|
-
|
|
9362
|
+
if (!Et.length || Sn.current === xn) return;
|
|
9363
|
+
Sn.current = xn;
|
|
9331
9364
|
let e = {};
|
|
9332
|
-
|
|
9365
|
+
Et.forEach((t, n) => {
|
|
9333
9366
|
let r = t.name ?? t.id ?? String(n);
|
|
9334
9367
|
jv(t.allowCollapse) && jv(t.defaultCollapsed) && (e[r] = !0);
|
|
9335
|
-
}),
|
|
9336
|
-
}, [
|
|
9337
|
-
let
|
|
9368
|
+
}), pe(e);
|
|
9369
|
+
}, [xn, Et]);
|
|
9370
|
+
let Cn = R(() => {
|
|
9338
9371
|
let e = {};
|
|
9339
|
-
return
|
|
9340
|
-
t.addRow && (e[t.name] =
|
|
9341
|
-
}), Vi(
|
|
9372
|
+
return Et.forEach((t) => {
|
|
9373
|
+
t.addRow && (e[t.name] = _n(t));
|
|
9374
|
+
}), Vi(Mt, e);
|
|
9342
9375
|
}, [
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9376
|
+
Et,
|
|
9377
|
+
an,
|
|
9378
|
+
Mt,
|
|
9379
|
+
h,
|
|
9380
|
+
m
|
|
9381
|
+
]), Tn = (e) => pe((t) => ({
|
|
9347
9382
|
...t,
|
|
9348
9383
|
[e]: !t[e]
|
|
9349
|
-
})),
|
|
9384
|
+
})), En = Yn(I), Dn = R(() => new Set(En.map((e) => gi(Et, e.path)?.name).filter(Boolean)), [En, Et]), On = (e) => !!fe[e] && !Dn.has(e), An = Oo(0);
|
|
9350
9385
|
L(() => {
|
|
9351
|
-
let e =
|
|
9352
|
-
e >
|
|
9386
|
+
let e = En.length;
|
|
9387
|
+
e > An.current && Y.warning({
|
|
9353
9388
|
key: "option-mismatch",
|
|
9354
9389
|
content: `${e} ${e === 1 ? "value does not" : "values do not"} match the dropdown options. Choose from the list before saving.`,
|
|
9355
9390
|
duration: 6
|
|
9356
|
-
}),
|
|
9357
|
-
}, [
|
|
9358
|
-
let
|
|
9391
|
+
}), An.current = e;
|
|
9392
|
+
}, [En]);
|
|
9393
|
+
let jn = wo((e) => {
|
|
9359
9394
|
setTimeout(() => {
|
|
9360
9395
|
I.scrollToField(e, {
|
|
9361
9396
|
behavior: "smooth",
|
|
9362
9397
|
block: "center"
|
|
9363
9398
|
}), I.focusField?.(e);
|
|
9364
9399
|
}, 0);
|
|
9365
|
-
}, [I]),
|
|
9366
|
-
I.resetFields(),
|
|
9367
|
-
},
|
|
9368
|
-
if (!
|
|
9369
|
-
let i = Number(r.pageSize) > 0 ? Number(r.pageSize) :
|
|
9400
|
+
}, [I]), Mn = () => {
|
|
9401
|
+
I.resetFields(), pe({}), Be("internal"), He([]);
|
|
9402
|
+
}, Nn = wo(async (t, n, r = {}) => {
|
|
9403
|
+
if (!N) return;
|
|
9404
|
+
let i = Number(r.pageSize) > 0 ? Number(r.pageSize) : Pe.pageSize, a = Number(r.current), o = Number.isFinite(a) && a > 0 ? Math.floor(a) : 1;
|
|
9370
9405
|
try {
|
|
9371
|
-
|
|
9406
|
+
Le(t), Fe({
|
|
9372
9407
|
current: o,
|
|
9373
9408
|
pageSize: i
|
|
9374
|
-
}),
|
|
9409
|
+
}), Ne((e) => ({
|
|
9375
9410
|
...e,
|
|
9376
9411
|
loading: !0,
|
|
9377
9412
|
searched: !0
|
|
9378
9413
|
}));
|
|
9379
|
-
let r = lv(t?.selectedSource), a = n ? uv(n,
|
|
9414
|
+
let r = lv(t?.selectedSource), a = n ? uv(n, ze) : r.includes("internal") ? "internal" : uv(t?.selectedSource, ze), s = {
|
|
9380
9415
|
...t,
|
|
9381
9416
|
selectedSource: a
|
|
9382
9417
|
};
|
|
@@ -9385,7 +9420,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9385
9420
|
limit: i,
|
|
9386
9421
|
offset: (o - 1) * i
|
|
9387
9422
|
}, { scope: a });
|
|
9388
|
-
|
|
9423
|
+
Be(a), Ne({
|
|
9389
9424
|
searched: !0,
|
|
9390
9425
|
rows: c.rows,
|
|
9391
9426
|
total: c.total,
|
|
@@ -9393,7 +9428,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9393
9428
|
actions: c.actions ?? [],
|
|
9394
9429
|
actionRules: c.actionRules ?? [],
|
|
9395
9430
|
loading: !1
|
|
9396
|
-
}),
|
|
9431
|
+
}), He((t) => _v({
|
|
9397
9432
|
moduleLabel: Ir(e),
|
|
9398
9433
|
sources: r,
|
|
9399
9434
|
activeSource: a,
|
|
@@ -9403,7 +9438,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9403
9438
|
backendTabs: c.tabs
|
|
9404
9439
|
}));
|
|
9405
9440
|
} catch (e) {
|
|
9406
|
-
console.error("Search failed:", e), Y.error(e?.message || "Failed to search records"),
|
|
9441
|
+
console.error("Search failed:", e), Y.error(e?.message || "Failed to search records"), Ne({
|
|
9407
9442
|
searched: !0,
|
|
9408
9443
|
rows: [],
|
|
9409
9444
|
total: 0,
|
|
@@ -9414,13 +9449,13 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9414
9449
|
});
|
|
9415
9450
|
}
|
|
9416
9451
|
}, [
|
|
9417
|
-
|
|
9452
|
+
N,
|
|
9418
9453
|
e,
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
]),
|
|
9454
|
+
ze,
|
|
9455
|
+
Pe.pageSize
|
|
9456
|
+
]), Pn = wo(async (e, t) => {
|
|
9422
9457
|
let n = Cv(e, t);
|
|
9423
|
-
|
|
9458
|
+
We((e) => ({
|
|
9424
9459
|
...e,
|
|
9425
9460
|
[n]: {
|
|
9426
9461
|
...e[n] ?? {},
|
|
@@ -9429,7 +9464,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9429
9464
|
}));
|
|
9430
9465
|
try {
|
|
9431
9466
|
let r = await wv(e, t);
|
|
9432
|
-
Y.success(r?.message ?? r?.data?.message ?? e.successMessage ?? "Action completed successfully."),
|
|
9467
|
+
Y.success(r?.message ?? r?.data?.message ?? e.successMessage ?? "Action completed successfully."), We((e) => ({
|
|
9433
9468
|
...e,
|
|
9434
9469
|
[n]: {
|
|
9435
9470
|
loading: !1,
|
|
@@ -9437,7 +9472,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9437
9472
|
}
|
|
9438
9473
|
}));
|
|
9439
9474
|
} catch (t) {
|
|
9440
|
-
Y.error(t?.message || e.errorMessage || "Action failed."),
|
|
9475
|
+
Y.error(t?.message || e.errorMessage || "Action failed."), We((e) => ({
|
|
9441
9476
|
...e,
|
|
9442
9477
|
[n]: {
|
|
9443
9478
|
...e[n] ?? {},
|
|
@@ -9445,7 +9480,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9445
9480
|
}
|
|
9446
9481
|
}));
|
|
9447
9482
|
} finally {
|
|
9448
|
-
|
|
9483
|
+
We((e) => ({
|
|
9449
9484
|
...e,
|
|
9450
9485
|
[n]: {
|
|
9451
9486
|
...e[n] ?? {},
|
|
@@ -9453,71 +9488,71 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9453
9488
|
}
|
|
9454
9489
|
}));
|
|
9455
9490
|
}
|
|
9456
|
-
}, []),
|
|
9457
|
-
let t = uv(e,
|
|
9458
|
-
|
|
9491
|
+
}, []), Fn = wo((e) => {
|
|
9492
|
+
let t = uv(e, ze);
|
|
9493
|
+
Be(t), Fe({
|
|
9459
9494
|
current: 1,
|
|
9460
|
-
pageSize:
|
|
9461
|
-
}), Object.keys(
|
|
9495
|
+
pageSize: Pe.pageSize
|
|
9496
|
+
}), Object.keys(Ie).length > 0 && Nn(Ie, t, {
|
|
9462
9497
|
current: 1,
|
|
9463
|
-
pageSize:
|
|
9498
|
+
pageSize: Pe.pageSize
|
|
9464
9499
|
});
|
|
9465
9500
|
}, [
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
]),
|
|
9471
|
-
let n = Number(t) > 0 ? Number(t) :
|
|
9472
|
-
if (Object.keys(
|
|
9473
|
-
|
|
9501
|
+
Pe.pageSize,
|
|
9502
|
+
Ie,
|
|
9503
|
+
Nn,
|
|
9504
|
+
ze
|
|
9505
|
+
]), In = wo((e, t) => {
|
|
9506
|
+
let n = Number(t) > 0 ? Number(t) : Pe.pageSize, r = Number(e) > 0 ? Number(e) : 1;
|
|
9507
|
+
if (Object.keys(Ie).length === 0) {
|
|
9508
|
+
Fe({
|
|
9474
9509
|
current: r,
|
|
9475
9510
|
pageSize: n
|
|
9476
9511
|
});
|
|
9477
9512
|
return;
|
|
9478
9513
|
}
|
|
9479
|
-
|
|
9514
|
+
Nn(Ie, ze, {
|
|
9480
9515
|
current: r,
|
|
9481
9516
|
pageSize: n
|
|
9482
9517
|
});
|
|
9483
9518
|
}, [
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
]),
|
|
9489
|
-
let t = Number(e) > 0 ? Number(e) :
|
|
9490
|
-
if (Object.keys(
|
|
9491
|
-
|
|
9519
|
+
Nn,
|
|
9520
|
+
Ie,
|
|
9521
|
+
Pe.pageSize,
|
|
9522
|
+
ze
|
|
9523
|
+
]), Rn = wo((e) => {
|
|
9524
|
+
let t = Number(e) > 0 ? Number(e) : Pe.pageSize;
|
|
9525
|
+
if (Object.keys(Ie).length === 0) {
|
|
9526
|
+
Fe({
|
|
9492
9527
|
current: 1,
|
|
9493
9528
|
pageSize: t
|
|
9494
9529
|
});
|
|
9495
9530
|
return;
|
|
9496
9531
|
}
|
|
9497
|
-
|
|
9532
|
+
Nn(Ie, ze, {
|
|
9498
9533
|
current: 1,
|
|
9499
9534
|
pageSize: t
|
|
9500
9535
|
});
|
|
9501
9536
|
}, [
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
]),
|
|
9507
|
-
let t = Sa(e, { uniqueRules:
|
|
9537
|
+
Nn,
|
|
9538
|
+
Ie,
|
|
9539
|
+
Pe.pageSize,
|
|
9540
|
+
ze
|
|
9541
|
+
]), zn = (e) => {
|
|
9542
|
+
let t = Sa(e, { uniqueRules: jt });
|
|
9508
9543
|
return t.length !== 0 && (I.setFields(t.map((e) => ({
|
|
9509
9544
|
name: e.name ?? e.field,
|
|
9510
9545
|
errors: [e.message]
|
|
9511
|
-
}))),
|
|
9546
|
+
}))), pe({}), Na({ errorFields: t.map((e) => {
|
|
9512
9547
|
let t = e.name ?? e.field;
|
|
9513
9548
|
return {
|
|
9514
9549
|
name: Array.isArray(t) ? t : [t],
|
|
9515
9550
|
errors: [e.message]
|
|
9516
9551
|
};
|
|
9517
|
-
}) }, I, { root:
|
|
9518
|
-
},
|
|
9552
|
+
}) }, I, { root: ce() }), !0);
|
|
9553
|
+
}, Bn = wo(async (e) => {
|
|
9519
9554
|
try {
|
|
9520
|
-
let t = _t().region, n =
|
|
9555
|
+
let t = _t().region, n = Et.map((e) => Sr(e, t)), r = Ur(n, e);
|
|
9521
9556
|
return r.severity === "allow" ? !0 : r.severity === "block" ? (aa({
|
|
9522
9557
|
tone: "duplicate",
|
|
9523
9558
|
title: "This qualification history is incomplete",
|
|
@@ -9533,28 +9568,29 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9533
9568
|
} catch (e) {
|
|
9534
9569
|
return console.warn("[levelRule] check skipped:", e), !0;
|
|
9535
9570
|
}
|
|
9536
|
-
}, [
|
|
9571
|
+
}, [Et]), Vn = async (t) => {
|
|
9537
9572
|
let n = null;
|
|
9538
|
-
if (!
|
|
9539
|
-
let e = await
|
|
9540
|
-
if (e === "addNew") n =
|
|
9573
|
+
if (!D) {
|
|
9574
|
+
let e = await Rt.prompt({ reason: "submit" });
|
|
9575
|
+
if (e === "addNew") n = Rt.confirmedNewId?.current ?? null;
|
|
9541
9576
|
else if (e !== "clear") return;
|
|
9542
9577
|
}
|
|
9543
|
-
if (!await
|
|
9578
|
+
if (!await Bn(t)) return;
|
|
9544
9579
|
if (p) {
|
|
9545
9580
|
await p(t, {
|
|
9546
9581
|
moduleName: e,
|
|
9547
|
-
groups:
|
|
9582
|
+
groups: Et,
|
|
9548
9583
|
generateModuleId: Ln,
|
|
9549
9584
|
rollbackDocuments: Ce,
|
|
9585
|
+
updateExisting: h ? (n, r = []) => ci(e, h, n, [...Wi(t, Et, { module: e }), ...r]) : void 0,
|
|
9550
9586
|
registerDocuments: async (n, r = {}) => {
|
|
9551
|
-
let i = Wi(t,
|
|
9587
|
+
let i = Wi(t, Et, { module: r.module ?? e });
|
|
9552
9588
|
return !i.length || !n ? [] : be(r.module ?? e, n, i);
|
|
9553
9589
|
},
|
|
9554
|
-
extraPayload:
|
|
9590
|
+
extraPayload: pn ?? {},
|
|
9555
9591
|
payload: {
|
|
9556
|
-
...
|
|
9557
|
-
...ca(t,
|
|
9592
|
+
...pn ?? {},
|
|
9593
|
+
...ca(t, Et, { module: e })
|
|
9558
9594
|
}
|
|
9559
9595
|
});
|
|
9560
9596
|
return;
|
|
@@ -9565,56 +9601,56 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9565
9601
|
}
|
|
9566
9602
|
let r = null, i = [];
|
|
9567
9603
|
try {
|
|
9568
|
-
|
|
9569
|
-
let a = Wi(t,
|
|
9604
|
+
ke(!0), r = Ln();
|
|
9605
|
+
let a = Wi(t, Et, { module: e });
|
|
9570
9606
|
if (console.log("[Document-First Flow] Step 2: Pre-generated moduleId:", r, "Files attached:", a.length), a.length > 0) try {
|
|
9571
9607
|
console.log("[Document-First Flow] Step 3: Uploading documents FIRST to Documents API...");
|
|
9572
9608
|
let t = await be(e, r, a);
|
|
9573
9609
|
i = _e(t), console.log("[Document-First Flow] Step 3: Documents uploaded successfully, documentIds:", i);
|
|
9574
9610
|
} catch (t) {
|
|
9575
9611
|
console.error(`[document-first] Document upload failed before creating ${e}:`, t);
|
|
9576
|
-
let n = Pi(
|
|
9577
|
-
|
|
9612
|
+
let n = Pi(Et, e, "add", t?.data?.error || t?.data?.message || t?.message || "Failed to upload documents. Record was not created.");
|
|
9613
|
+
je(n), Y.error(n);
|
|
9578
9614
|
return;
|
|
9579
9615
|
}
|
|
9580
9616
|
let o = {
|
|
9581
|
-
...
|
|
9617
|
+
...pn ?? {},
|
|
9582
9618
|
_id: r,
|
|
9583
9619
|
...i.length > 0 ? { documentIds: i } : {},
|
|
9584
9620
|
...n ? { __duplicateConfirmed: n } : {}
|
|
9585
9621
|
};
|
|
9586
9622
|
console.log("[Document-First Flow] Step 5: Calling createModuleRecord SECOND with _id:", r, "and documentIds:", i);
|
|
9587
|
-
let s = await Qa(e, Ty(t,
|
|
9623
|
+
let s = await Qa(e, Ty(t, Et, o, e));
|
|
9588
9624
|
if (s?.status === !1) {
|
|
9589
|
-
if (i.length > 0 && await Ce(i),
|
|
9590
|
-
let t = Pi(
|
|
9591
|
-
|
|
9625
|
+
if (i.length > 0 && await Ce(i), zn(s)) return;
|
|
9626
|
+
let t = Pi(Et, e, "add", s?.error || s?.message || s?.data);
|
|
9627
|
+
je(t), Y.error(t);
|
|
9592
9628
|
return;
|
|
9593
9629
|
}
|
|
9594
|
-
let c = s?.id ?? s?.data?.id ?? s?.data?._id ?? s?._id ?? r, l = Wi(t,
|
|
9630
|
+
let c = s?.id ?? s?.data?.id ?? s?.data?._id ?? s?._id ?? r, l = Wi(t, Et, {
|
|
9595
9631
|
scope: "addRow",
|
|
9596
9632
|
indexed: !0,
|
|
9597
9633
|
module: e
|
|
9598
9634
|
});
|
|
9599
9635
|
if (l.length > 0 && c) try {
|
|
9600
9636
|
await ci(e, c, {
|
|
9601
|
-
...
|
|
9602
|
-
...ca(t,
|
|
9637
|
+
...pn ?? {},
|
|
9638
|
+
...ca(t, Et, { module: e })
|
|
9603
9639
|
}, l);
|
|
9604
9640
|
} catch (e) {
|
|
9605
9641
|
console.error("Document file attach (post-create update) failed:", e), Y.warning("Record created, but attaching document files failed. Edit the record to re-upload.");
|
|
9606
9642
|
}
|
|
9607
|
-
let u = Bi(
|
|
9608
|
-
if (u && Y.success(u), I.resetFields(),
|
|
9609
|
-
|
|
9643
|
+
let u = Bi(Et, e, "add");
|
|
9644
|
+
if (u && Y.success(u), I.resetFields(), D && O) {
|
|
9645
|
+
O(c, t);
|
|
9610
9646
|
return;
|
|
9611
9647
|
}
|
|
9612
|
-
let d =
|
|
9613
|
-
if (!d) jr(
|
|
9614
|
-
else if (d.mode === "back") jr(
|
|
9648
|
+
let d = Pt.current ?? Yr(Et);
|
|
9649
|
+
if (!d) jr(F, { cancelPath: f });
|
|
9650
|
+
else if (d.mode === "back") jr(F, { cancelPath: f });
|
|
9615
9651
|
else if (d.mode === "route" || d.mode === "detail") {
|
|
9616
9652
|
let e = qa(d.target, c, t);
|
|
9617
|
-
e &&
|
|
9653
|
+
e && F(e);
|
|
9618
9654
|
}
|
|
9619
9655
|
} catch (t) {
|
|
9620
9656
|
if (console.error(`Failed to create ${e}:`, t), i.length > 0) try {
|
|
@@ -9622,32 +9658,32 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9622
9658
|
} catch (e) {
|
|
9623
9659
|
console.error("Failed to rollback documents:", e);
|
|
9624
9660
|
}
|
|
9625
|
-
if (
|
|
9661
|
+
if (zn(t)) return;
|
|
9626
9662
|
if (t?.status === 409 && t?.data?.code === "RESUBMIT_EXISTING" && t?.data?.editUrl) {
|
|
9627
|
-
Y.info(t.data.message || "Use Resubmit on the existing submission."),
|
|
9663
|
+
Y.info(t.data.message || "Use Resubmit on the existing submission."), F(t.data.editUrl);
|
|
9628
9664
|
return;
|
|
9629
9665
|
}
|
|
9630
|
-
let n = Pi(
|
|
9631
|
-
|
|
9666
|
+
let n = Pi(Et, e, "add", t?.data?.error || t?.data?.message || t?.message);
|
|
9667
|
+
je(n), Y.error(n);
|
|
9632
9668
|
} finally {
|
|
9633
|
-
|
|
9669
|
+
ke(!1), Pt.current = null;
|
|
9634
9670
|
}
|
|
9635
|
-
},
|
|
9636
|
-
if (
|
|
9637
|
-
Y.error(
|
|
9671
|
+
}, Hn = async (e) => {
|
|
9672
|
+
if (nt) {
|
|
9673
|
+
Y.error(nt);
|
|
9638
9674
|
return;
|
|
9639
9675
|
}
|
|
9640
|
-
if (
|
|
9641
|
-
await
|
|
9676
|
+
if (N) {
|
|
9677
|
+
await Nn(e);
|
|
9642
9678
|
return;
|
|
9643
9679
|
}
|
|
9644
|
-
|
|
9680
|
+
Ft.current = !0, ke(!0), je("");
|
|
9645
9681
|
try {
|
|
9646
|
-
await
|
|
9682
|
+
await Vn(e);
|
|
9647
9683
|
} finally {
|
|
9648
|
-
|
|
9684
|
+
Ft.current = !1, ke(!1);
|
|
9649
9685
|
}
|
|
9650
|
-
},
|
|
9686
|
+
}, Un = (e, t, n) => {
|
|
9651
9687
|
let r = e.validations ?? e.validation ?? e.rules ?? [];
|
|
9652
9688
|
return [...r.filter((e) => (typeof e == "string" ? e : e?.type) === "maxFromField").map((e) => Ua(e, t, n)).filter(Boolean), ...r.filter((e) => {
|
|
9653
9689
|
let t = typeof e == "string" ? e : e?.type;
|
|
@@ -9663,9 +9699,9 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9663
9699
|
"timeBeforeField"
|
|
9664
9700
|
].includes(t);
|
|
9665
9701
|
}).map((e) => String(e.value ?? e.compareField ?? e.field ?? "").split(",").map((e) => e.trim()).filter(Boolean).map((e) => sy(t, e))).flat().filter(Boolean)];
|
|
9666
|
-
},
|
|
9702
|
+
}, Wn = (e, t) => typeof e == "function" ? e(t) : e, Gn = (e, t, n) => {
|
|
9667
9703
|
if (!e?.field) return !0;
|
|
9668
|
-
let r =
|
|
9704
|
+
let r = Wn(n, e.field), i = t(r == null ? [e.field] : [...Array.isArray(r) ? r : [r], e.field]);
|
|
9669
9705
|
switch (e.operator) {
|
|
9670
9706
|
case "eq": return String(i ?? "") === String(e.value ?? "");
|
|
9671
9707
|
case "neq": return String(i ?? "") !== String(e.value ?? "");
|
|
@@ -9676,19 +9712,19 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9676
9712
|
case "notIn": return !String(e.value ?? "").split(",").map((e) => e.trim()).includes(String(i ?? ""));
|
|
9677
9713
|
default: return !0;
|
|
9678
9714
|
}
|
|
9679
|
-
},
|
|
9715
|
+
}, Kn = (e, t, n) => {
|
|
9680
9716
|
if (!e) return !0;
|
|
9681
9717
|
let r = Array.isArray(e.conditions) ? e.conditions.filter((e) => e?.field) : [];
|
|
9682
9718
|
if (r.length) {
|
|
9683
|
-
let i = r.map((e) =>
|
|
9719
|
+
let i = r.map((e) => Gn(e, t, n)), a = String(e.logic ?? "and").toLowerCase() === "or", o = a ? i.some(Boolean) : i.every(Boolean);
|
|
9684
9720
|
if (e.field) {
|
|
9685
|
-
let r =
|
|
9721
|
+
let r = Gn(e, t, n);
|
|
9686
9722
|
o = a ? o || r : o && r;
|
|
9687
9723
|
}
|
|
9688
9724
|
return o;
|
|
9689
9725
|
}
|
|
9690
|
-
return
|
|
9691
|
-
},
|
|
9726
|
+
return Gn(e, t, n);
|
|
9727
|
+
}, qn = (e) => !!(e?.field || e?.conditions?.some?.((e) => e?.field)), [Jn, Xn] = z({}), Zn = Oo({}), $n = (e) => String(e?.field ?? ""), er = R(() => T(), []), tr = (t, n, r, i = {}) => {
|
|
9692
9728
|
let a = typeof t.field == "string" && t.field.includes(".") ? t.field.split(".") : null, o = a ?? t.field, s = n === void 0 ? o : [n, ...a ?? [t.field]], c = r !== void 0 && n !== void 0 ? [...Array.isArray(r) ? r : [r], ...Array.isArray(s) ? s : [s]] : s, l = t.type === "checkbox" && (t.options && t.options.length > 0 || t.dataSource && t.dataSource !== "static"), u = !l && t.type === "checkbox" ? "checked" : "value", d = !!t.editablePermission && !si(t.editablePermission, e), f = r !== void 0 && n !== void 0 ? [...Array.isArray(r) ? r : [r], n] : null, p = (e) => f && (!i.rowFieldKeys || i.rowFieldKeys.has(e)) ? f : null, m = cr(t), h = m ? Vr(t, c, p) : null, g = i.inline || i.hideLabel || !l && t.type === "checkbox" ? "" : /* @__PURE__ */ Z(Lv, {
|
|
9693
9729
|
form: I,
|
|
9694
9730
|
field: t,
|
|
@@ -9703,19 +9739,19 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9703
9739
|
fieldPath: c,
|
|
9704
9740
|
disabled: d
|
|
9705
9741
|
})]
|
|
9706
|
-
}) : g, v =
|
|
9742
|
+
}) : g, v = Un(t, c, p), y = gr(t), b = i.inline || t.type === "file" && jv(t.multiple) || t.type === "text-editor" ? 24 : t.col ?? 12, x = [t.field, t.payloadKey].some((e) => /(?:countryCode|employerContactCode)$/i.test(e ?? "")), S = [i.inline && "v1-combine-cell", x && "v1-country-code-cell"].filter(Boolean).join(" ") || void 0, C = pf(t, er), w = n === void 0 && t.type !== "file" && C.matched && C.value !== void 0 && C.value !== "" ? C.value : n === void 0 && t.type !== "file" && dr(t) !== void 0 ? dr(t) : void 0, T = (t.aiActions || []).filter((e) => e.trigger === "click"), E = (t.aiActions || []).find((e) => e.trigger === "upload"), D = !!(t.requiredIfField || t.requiredWhen), O = D ? Rv : H.Item, k = D ? {
|
|
9707
9743
|
form: I,
|
|
9708
9744
|
requiredField: t,
|
|
9709
9745
|
requiredPath: c
|
|
9710
|
-
} : { required: fy(t, I, c) },
|
|
9746
|
+
} : { required: fy(t, I, c) }, A = /* @__PURE__ */ Z(O, {
|
|
9711
9747
|
label: _,
|
|
9712
9748
|
name: s,
|
|
9713
|
-
extra: Ny(t,
|
|
9714
|
-
rules: py(t, I, c,
|
|
9715
|
-
...
|
|
9749
|
+
extra: Ny(t, dn[t.field]),
|
|
9750
|
+
rules: py(t, I, c, N, p, At, Ut(t, i.groupNameForActions), e),
|
|
9751
|
+
...k,
|
|
9716
9752
|
dependencies: v,
|
|
9717
9753
|
valuePropName: u,
|
|
9718
|
-
initialValue:
|
|
9754
|
+
initialValue: w,
|
|
9719
9755
|
getValueFromEvent: t.type === "file" ? (e) => Array.isArray(e) ? e : e?.fileList : void 0,
|
|
9720
9756
|
validateTrigger: ["onBlur", "onChange"],
|
|
9721
9757
|
children: /* @__PURE__ */ Z(Dy, {
|
|
@@ -9724,30 +9760,30 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9724
9760
|
name: c,
|
|
9725
9761
|
rowFieldKeys: i.rowFieldKeys,
|
|
9726
9762
|
moduleName: e,
|
|
9727
|
-
enforceOptions: !
|
|
9763
|
+
enforceOptions: !N,
|
|
9728
9764
|
recordMeta: {
|
|
9729
|
-
...
|
|
9730
|
-
...
|
|
9765
|
+
...rn?.linkage,
|
|
9766
|
+
...at
|
|
9731
9767
|
},
|
|
9732
|
-
onLinkedRecordUpdated:
|
|
9733
|
-
scopeValues: { clientId:
|
|
9734
|
-
onAiUpload:
|
|
9735
|
-
onDuplicateBlur:
|
|
9736
|
-
onRegionBlocked:
|
|
9737
|
-
onRowOrderChange:
|
|
9738
|
-
formDisabled:
|
|
9768
|
+
onLinkedRecordUpdated: bn,
|
|
9769
|
+
scopeValues: { clientId: Ct },
|
|
9770
|
+
onAiUpload: E ? (e) => Vt.runAction(i.groupNameForActions, t, E, e) : void 0,
|
|
9771
|
+
onDuplicateBlur: Kt,
|
|
9772
|
+
onRegionBlocked: Ht,
|
|
9773
|
+
onRowOrderChange: Wt,
|
|
9774
|
+
formDisabled: Vt.busy
|
|
9739
9775
|
}, t.refreshToken == null ? void 0 : `${t.field}-refresh-${t.refreshToken}`)
|
|
9740
|
-
}),
|
|
9776
|
+
}), j = y && !_ ? /* @__PURE__ */ Z(J, {
|
|
9741
9777
|
title: y,
|
|
9742
9778
|
children: /* @__PURE__ */ Z("span", {
|
|
9743
9779
|
className: "v1-field-tooltip-wrap",
|
|
9744
|
-
children:
|
|
9780
|
+
children: A
|
|
9745
9781
|
})
|
|
9746
|
-
}) :
|
|
9747
|
-
let e = Aa(
|
|
9782
|
+
}) : A, M = T.length > 0 ? (() => {
|
|
9783
|
+
let e = Aa(T), n = (n) => /* @__PURE__ */ Z(Li, {
|
|
9748
9784
|
position: n,
|
|
9749
9785
|
actions: e[n],
|
|
9750
|
-
aiActions:
|
|
9786
|
+
aiActions: Vt,
|
|
9751
9787
|
groupName: i.groupNameForActions,
|
|
9752
9788
|
field: t
|
|
9753
9789
|
}, n);
|
|
@@ -9757,63 +9793,63 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9757
9793
|
n("top-left"),
|
|
9758
9794
|
n("top-center"),
|
|
9759
9795
|
n("top-right"),
|
|
9760
|
-
|
|
9796
|
+
j,
|
|
9761
9797
|
n("bottom-left"),
|
|
9762
9798
|
n("bottom-center"),
|
|
9763
9799
|
n("bottom-right")
|
|
9764
9800
|
]
|
|
9765
9801
|
});
|
|
9766
|
-
})() :
|
|
9767
|
-
name:
|
|
9802
|
+
})() : j, ee = (e) => n === void 0 ? e : [n, e], P = t.verifyAction ? /* @__PURE__ */ Q(X, { children: [t.verifyResultField && /* @__PURE__ */ Z(H.Item, {
|
|
9803
|
+
name: ee(t.verifyResultField),
|
|
9768
9804
|
hidden: !0,
|
|
9769
9805
|
noStyle: !0,
|
|
9770
9806
|
children: /* @__PURE__ */ Z(U, {})
|
|
9771
9807
|
}), t.verifyTimestampField && /* @__PURE__ */ Z(H.Item, {
|
|
9772
|
-
name:
|
|
9808
|
+
name: ee(t.verifyTimestampField),
|
|
9773
9809
|
hidden: !0,
|
|
9774
9810
|
noStyle: !0,
|
|
9775
9811
|
children: /* @__PURE__ */ Z(U, {})
|
|
9776
|
-
})] }) : null,
|
|
9812
|
+
})] }) : null, F = t.verifyAction ? /* @__PURE__ */ Q("div", {
|
|
9777
9813
|
className: "v1-verify-field-row",
|
|
9778
9814
|
children: [
|
|
9779
|
-
|
|
9815
|
+
M,
|
|
9780
9816
|
/* @__PURE__ */ Z(Iv, {
|
|
9781
9817
|
form: I,
|
|
9782
9818
|
field: t,
|
|
9783
9819
|
absoluteName: c
|
|
9784
9820
|
}),
|
|
9785
|
-
|
|
9821
|
+
P
|
|
9786
9822
|
]
|
|
9787
|
-
}) :
|
|
9823
|
+
}) : M, te = m ? /* @__PURE__ */ Q(X, { children: [F, /* @__PURE__ */ Z(H.Item, {
|
|
9788
9824
|
name: n === void 0 ? h[h.length - 1] : [n, h[h.length - 1]],
|
|
9789
9825
|
valuePropName: "checked",
|
|
9790
9826
|
hidden: !0,
|
|
9791
9827
|
noStyle: !0,
|
|
9792
9828
|
children: /* @__PURE__ */ Z(Io, {})
|
|
9793
|
-
})] }) :
|
|
9829
|
+
})] }) : F, ne = i.inline ? {
|
|
9794
9830
|
flex: `${Number(t.combineWidth) > 0 ? Number(t.combineWidth) : 1} 1 0`,
|
|
9795
9831
|
maxWidth: "none"
|
|
9796
|
-
} : void 0,
|
|
9832
|
+
} : void 0, re = t.autoFillFromApi ? /* @__PURE__ */ Z(Hv, {
|
|
9797
9833
|
form: I,
|
|
9798
9834
|
config: t.autoFillFromApi,
|
|
9799
9835
|
watchPath: c
|
|
9800
|
-
}, `${t.field}-autoFillFromApi`) : null,
|
|
9836
|
+
}, `${t.field}-autoFillFromApi`) : null, ie = t.prefillWhen?.length ? /* @__PURE__ */ Z(Vv, {
|
|
9801
9837
|
form: I,
|
|
9802
9838
|
rules: t.prefillWhen,
|
|
9803
9839
|
watchPaths: Oa(t.prefillWhen, c, or, p),
|
|
9804
9840
|
targetPath: c,
|
|
9805
9841
|
resetOnNoMatch: t.prefillWhenReset !== !1
|
|
9806
|
-
}, `${t.field}-prefillWhen`) : null,
|
|
9842
|
+
}, `${t.field}-prefillWhen`) : null, ae = Di(t.computeFrom) ? Zi(t.computeFrom, c, or, p) : null, oe = ae ? /* @__PURE__ */ Z(Ta, {
|
|
9807
9843
|
form: I,
|
|
9808
9844
|
config: t.computeFrom,
|
|
9809
|
-
sourcePath:
|
|
9845
|
+
sourcePath: ae.source,
|
|
9810
9846
|
targetPath: c,
|
|
9811
|
-
setFields:
|
|
9847
|
+
setFields: ae.setFields
|
|
9812
9848
|
}, `${t.field}-computeFrom`) : null;
|
|
9813
9849
|
if (t.show === 0) return /* @__PURE__ */ Q(go, { children: [
|
|
9814
|
-
ne,
|
|
9815
9850
|
ie,
|
|
9816
|
-
|
|
9851
|
+
oe,
|
|
9852
|
+
re,
|
|
9817
9853
|
/* @__PURE__ */ Z(H.Item, {
|
|
9818
9854
|
name: s,
|
|
9819
9855
|
hidden: !0,
|
|
@@ -9821,35 +9857,35 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9821
9857
|
children: /* @__PURE__ */ Z("input", { type: "hidden" })
|
|
9822
9858
|
})
|
|
9823
9859
|
] }, t.field);
|
|
9824
|
-
let
|
|
9825
|
-
return
|
|
9826
|
-
ne,
|
|
9860
|
+
let se = !i.inline && kn(t).length > 0, ce = (e) => se ? hn(t, b, (t) => e(fn(t, p(t.field)))) : b;
|
|
9861
|
+
return qn(t.showIf) || se ? /* @__PURE__ */ Q(go, { children: [
|
|
9827
9862
|
ie,
|
|
9828
|
-
|
|
9863
|
+
oe,
|
|
9864
|
+
re,
|
|
9829
9865
|
/* @__PURE__ */ Z(H.Item, {
|
|
9830
9866
|
shouldUpdate: !0,
|
|
9831
9867
|
noStyle: !0,
|
|
9832
|
-
children: ({ getFieldValue: e }) => !
|
|
9868
|
+
children: ({ getFieldValue: e }) => !qn(t.showIf) || Kn(t.showIf, e, p) ? /* @__PURE__ */ Z(V, {
|
|
9833
9869
|
xs: 24,
|
|
9834
|
-
md:
|
|
9835
|
-
style:
|
|
9836
|
-
className:
|
|
9837
|
-
children:
|
|
9870
|
+
md: ce(e),
|
|
9871
|
+
style: ne,
|
|
9872
|
+
className: S,
|
|
9873
|
+
children: te
|
|
9838
9874
|
}) : null
|
|
9839
9875
|
})
|
|
9840
9876
|
] }, t.field) : /* @__PURE__ */ Q(go, { children: [
|
|
9841
|
-
ne,
|
|
9842
9877
|
ie,
|
|
9843
|
-
|
|
9878
|
+
oe,
|
|
9879
|
+
re,
|
|
9844
9880
|
/* @__PURE__ */ Z(V, {
|
|
9845
9881
|
xs: 24,
|
|
9846
9882
|
md: b,
|
|
9847
|
-
style:
|
|
9848
|
-
className:
|
|
9849
|
-
children:
|
|
9883
|
+
style: ne,
|
|
9884
|
+
className: S,
|
|
9885
|
+
children: te
|
|
9850
9886
|
})
|
|
9851
9887
|
] }, t.field);
|
|
9852
|
-
},
|
|
9888
|
+
}, nr = (t) => {
|
|
9853
9889
|
let n = typeof t.field == "string" && t.field.includes(".") ? t.field.split(".") : [t.field], r = !!t.editablePermission && !si(t.editablePermission, e), i = /* @__PURE__ */ Z(ky, {
|
|
9854
9890
|
field: t,
|
|
9855
9891
|
label: t.label,
|
|
@@ -9858,7 +9894,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9858
9894
|
...e,
|
|
9859
9895
|
show: 1,
|
|
9860
9896
|
edit: 1
|
|
9861
|
-
})) : null, c = Math.max(0, Number(t.minRows ?? 0) || 0), l = t.maxRows !== void 0 && t.maxRows !== "" && Number(t.maxRows) > 0 ? Number(t.maxRows) : 0, u = ny(m ??
|
|
9897
|
+
})) : null, c = Math.max(0, Number(t.minRows ?? 0) || 0), l = t.maxRows !== void 0 && t.maxRows !== "" && Number(t.maxRows) > 0 ? Number(t.maxRows) : 0, u = ny(m ?? on ?? {}, t, !!h), d = qi(t, u);
|
|
9862
9898
|
return /* @__PURE__ */ Z(V, {
|
|
9863
9899
|
xs: 24,
|
|
9864
9900
|
md: 24,
|
|
@@ -9891,26 +9927,26 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9891
9927
|
children: o ? /* @__PURE__ */ Z(ns, {
|
|
9892
9928
|
gutter: [24, 0],
|
|
9893
9929
|
align: "top",
|
|
9894
|
-
children:
|
|
9930
|
+
children: ar(s, l, n[0], !1, t.field)
|
|
9895
9931
|
}) : /* @__PURE__ */ Z(H.Item, {
|
|
9896
9932
|
name: [l],
|
|
9897
9933
|
noStyle: !0,
|
|
9898
9934
|
valuePropName: t.type === "checkbox" && !t.options?.length ? "checked" : "value",
|
|
9899
9935
|
getValueFromEvent: t.type === "file" ? (e) => Array.isArray(e) ? e : e?.fileList : void 0,
|
|
9900
|
-
rules: py(a, I, [...n, l],
|
|
9936
|
+
rules: py(a, I, [...n, l], N, void 0, void 0, void 0, e),
|
|
9901
9937
|
children: /* @__PURE__ */ Z(Dy, {
|
|
9902
9938
|
field: a,
|
|
9903
9939
|
form: I,
|
|
9904
9940
|
name: [...n, l],
|
|
9905
9941
|
moduleName: e,
|
|
9906
|
-
enforceOptions: !
|
|
9942
|
+
enforceOptions: !N,
|
|
9907
9943
|
recordMeta: {
|
|
9908
|
-
...
|
|
9909
|
-
...
|
|
9944
|
+
...rn?.linkage,
|
|
9945
|
+
...at
|
|
9910
9946
|
},
|
|
9911
|
-
onLinkedRecordUpdated:
|
|
9912
|
-
scopeValues: { clientId:
|
|
9913
|
-
formDisabled:
|
|
9947
|
+
onLinkedRecordUpdated: bn,
|
|
9948
|
+
scopeValues: { clientId: Ct },
|
|
9949
|
+
formDisabled: Vt.busy
|
|
9914
9950
|
})
|
|
9915
9951
|
})
|
|
9916
9952
|
})]
|
|
@@ -9928,7 +9964,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9928
9964
|
})
|
|
9929
9965
|
})
|
|
9930
9966
|
}, t.field);
|
|
9931
|
-
},
|
|
9967
|
+
}, rr = (t, n, r) => {
|
|
9932
9968
|
let i = typeof t.field == "string" && t.field.includes(".") ? t.field.split(".") : [t.field], a = !!t.editablePermission && !si(t.editablePermission, e), o = /* @__PURE__ */ Z(ky, {
|
|
9933
9969
|
field: t,
|
|
9934
9970
|
label: t.label,
|
|
@@ -9976,26 +10012,26 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9976
10012
|
children: c ? /* @__PURE__ */ Z(ns, {
|
|
9977
10013
|
gutter: [24, 0],
|
|
9978
10014
|
align: "top",
|
|
9979
|
-
children:
|
|
10015
|
+
children: ar(l, a, p, !1, t.field)
|
|
9980
10016
|
}) : /* @__PURE__ */ Z(H.Item, {
|
|
9981
10017
|
name: [a],
|
|
9982
10018
|
noStyle: !0,
|
|
9983
10019
|
valuePropName: t.type === "checkbox" && !t.options?.length ? "checked" : "value",
|
|
9984
10020
|
getValueFromEvent: t.type === "file" ? (e) => Array.isArray(e) ? e : e?.fileList : void 0,
|
|
9985
|
-
rules: py(s, I, o,
|
|
10021
|
+
rules: py(s, I, o, N, void 0, void 0, void 0, e),
|
|
9986
10022
|
children: /* @__PURE__ */ Z(Dy, {
|
|
9987
10023
|
field: s,
|
|
9988
10024
|
form: I,
|
|
9989
10025
|
name: o,
|
|
9990
10026
|
moduleName: e,
|
|
9991
|
-
enforceOptions: !
|
|
10027
|
+
enforceOptions: !N,
|
|
9992
10028
|
recordMeta: {
|
|
9993
|
-
...
|
|
9994
|
-
...
|
|
10029
|
+
...rn?.linkage,
|
|
10030
|
+
...at
|
|
9995
10031
|
},
|
|
9996
|
-
onLinkedRecordUpdated:
|
|
9997
|
-
scopeValues: { clientId:
|
|
9998
|
-
formDisabled:
|
|
10032
|
+
onLinkedRecordUpdated: bn,
|
|
10033
|
+
scopeValues: { clientId: Ct },
|
|
10034
|
+
formDisabled: Vt.busy
|
|
9999
10035
|
})
|
|
10000
10036
|
})
|
|
10001
10037
|
})]
|
|
@@ -10014,7 +10050,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10014
10050
|
})
|
|
10015
10051
|
})
|
|
10016
10052
|
}, `${r}-${n}-${t.field}`);
|
|
10017
|
-
},
|
|
10053
|
+
}, ir = (e, t) => e.filter((e) => e.field && e.show !== void 0 && !jv(e.show)).map((e) => {
|
|
10018
10054
|
let n = String(e.field).includes(".") ? String(e.field).split(".") : e.field, r = t === void 0 ? n : [t, ...Array.isArray(n) ? n : [n]];
|
|
10019
10055
|
return /* @__PURE__ */ Z(H.Item, {
|
|
10020
10056
|
name: r,
|
|
@@ -10022,20 +10058,20 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10022
10058
|
noStyle: !0,
|
|
10023
10059
|
children: /* @__PURE__ */ Z(U, {})
|
|
10024
10060
|
}, `hidden-${e.field}`);
|
|
10025
|
-
}),
|
|
10061
|
+
}), ar = (e, t, n, r = !1, i) => {
|
|
10026
10062
|
let a = /* @__PURE__ */ new Set(), o = [], s = new Set(e.map((e) => e.field).filter(Boolean)), c = e.filter((e) => e.show === void 0 || jv(e.show) || e.show === 0 && (!!e.prefillWhen?.length || Di(e.computeFrom)));
|
|
10027
|
-
return o.push(...
|
|
10063
|
+
return o.push(...ir(e, t)), c.forEach((e) => {
|
|
10028
10064
|
if (jv(e.addRow) && t === void 0) {
|
|
10029
|
-
o.push(
|
|
10065
|
+
o.push(nr(e));
|
|
10030
10066
|
return;
|
|
10031
10067
|
}
|
|
10032
10068
|
if (jv(e.addRow) && t !== void 0) {
|
|
10033
|
-
o.push(
|
|
10069
|
+
o.push(rr(e, t, n));
|
|
10034
10070
|
return;
|
|
10035
10071
|
}
|
|
10036
10072
|
let l = e.combineKey?.trim?.();
|
|
10037
10073
|
if (!l) {
|
|
10038
|
-
o.push(
|
|
10074
|
+
o.push(tr(e, t, n, {
|
|
10039
10075
|
hideLabel: r,
|
|
10040
10076
|
groupNameForActions: i,
|
|
10041
10077
|
rowFieldKeys: s
|
|
@@ -10063,11 +10099,11 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10063
10099
|
flagPath: Vr(m, g, h),
|
|
10064
10100
|
fieldPath: g
|
|
10065
10101
|
})]
|
|
10066
|
-
}) : _, y = d.find((e) => e.combineToggleTarget)?.combineToggleTarget, b = d.find((e) => e.combineToggleLabel)?.combineToggleLabel ?? "Show range", x = u, S = d.some((e) => jv(e.combineWrap)), C = Number(d.find((e) => [12, 24].includes(Number(e.combineSpan)))?.combineSpan), w = y ? d.find((e) =>
|
|
10102
|
+
}) : _, y = d.find((e) => e.combineToggleTarget)?.combineToggleTarget, b = d.find((e) => e.combineToggleLabel)?.combineToggleLabel ?? "Show range", x = u, S = d.some((e) => jv(e.combineWrap)), C = Number(d.find((e) => [12, 24].includes(Number(e.combineSpan)))?.combineSpan), w = y ? d.find((e) => $n(e) === y) : null, T = w?.field?.includes?.(".") ? w.field.split(".") : [w?.field].filter(Boolean), E = w ? n !== void 0 && t !== void 0 ? [
|
|
10067
10103
|
n,
|
|
10068
10104
|
t,
|
|
10069
10105
|
...T
|
|
10070
|
-
] : T.length > 1 ? T : w.field : null, D = d.some((e) => fy(e)), O = [12, 24].includes(C) ? C : d.length >= 3 ? 24 : 12, k = (e) => p && (!s || s.has(e)) ? p : null, A = d.some((e) =>
|
|
10106
|
+
] : T.length > 1 ? T : w.field : null, D = d.some((e) => fy(e)), O = [12, 24].includes(C) ? C : d.length >= 3 ? 24 : 12, k = (e) => p && (!s || s.has(e)) ? p : null, A = d.some((e) => qn(e.showIf)), j = (e) => d.some((t) => !qn(t.showIf) || Kn(t.showIf, e, k)), M = /* @__PURE__ */ Z(V, {
|
|
10071
10107
|
xs: 24,
|
|
10072
10108
|
md: O,
|
|
10073
10109
|
children: /* @__PURE__ */ Z(H.Item, {
|
|
@@ -10079,13 +10115,13 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10079
10115
|
noStyle: !0,
|
|
10080
10116
|
shouldUpdate: (e, t) => E ? iy(gy(e, E)) !== iy(gy(t, E)) : !1,
|
|
10081
10117
|
children: ({ getFieldValue: e }) => {
|
|
10082
|
-
let r = E ? !iy(e(E)) : !1, i =
|
|
10118
|
+
let r = E ? !iy(e(E)) : !1, i = Jn[x] ?? r, a = y && !i ? d.filter((e) => $n(e) !== y) : d;
|
|
10083
10119
|
return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(ns, {
|
|
10084
10120
|
gutter: [8, 0],
|
|
10085
10121
|
align: "top",
|
|
10086
10122
|
wrap: S,
|
|
10087
10123
|
className: `v1-combine-row${S ? " v1-combine-row-wrap" : ""}`,
|
|
10088
|
-
children: a.map((e) =>
|
|
10124
|
+
children: a.map((e) => tr(D ? {
|
|
10089
10125
|
...e,
|
|
10090
10126
|
req: 1
|
|
10091
10127
|
} : e, t, n, { inline: !0 }))
|
|
@@ -10097,14 +10133,14 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10097
10133
|
onChange: (e) => {
|
|
10098
10134
|
if (E) {
|
|
10099
10135
|
if (e) {
|
|
10100
|
-
let e =
|
|
10136
|
+
let e = Zn.current[x];
|
|
10101
10137
|
e != null && e !== "" && I.setFieldValue(E, e);
|
|
10102
10138
|
} else {
|
|
10103
10139
|
let e = I.getFieldValue(E);
|
|
10104
|
-
|
|
10140
|
+
Zn.current[x] = e, I.setFieldValue(E, void 0), I.validateFields([E]).catch(() => {});
|
|
10105
10141
|
}
|
|
10106
10142
|
}
|
|
10107
|
-
|
|
10143
|
+
Xn((t) => ({
|
|
10108
10144
|
...t,
|
|
10109
10145
|
[x]: e
|
|
10110
10146
|
}));
|
|
@@ -10125,16 +10161,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10125
10161
|
children: ({ getFieldValue: e }) => j(e) ? M : null
|
|
10126
10162
|
}, u) : M);
|
|
10127
10163
|
}), o;
|
|
10128
|
-
},
|
|
10129
|
-
if (
|
|
10130
|
-
let e =
|
|
10164
|
+
}, sr = R(() => {
|
|
10165
|
+
if (Me.fields?.length) return Me.fields;
|
|
10166
|
+
let e = Me.rows[0];
|
|
10131
10167
|
return e ? Object.keys(e).filter((t) => !t.startsWith("_") && typeof e[t] != "object").map((e) => ({
|
|
10132
10168
|
value: e,
|
|
10133
10169
|
field: e,
|
|
10134
10170
|
label: e.replace(/([A-Z])/g, " $1").replace(/^./, (e) => e.toUpperCase()),
|
|
10135
10171
|
isVisible: !0
|
|
10136
10172
|
})) : [];
|
|
10137
|
-
}, [
|
|
10173
|
+
}, [Me.fields, Me.rows]), lr = (e) => !Array.isArray(e) || e.length === 0 ? "card" : e.some((e) => [
|
|
10138
10174
|
e?.sourceType,
|
|
10139
10175
|
e?.profileSource,
|
|
10140
10176
|
e?.selectedSource,
|
|
@@ -10145,15 +10181,15 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10145
10181
|
let t = String(e).trim().toLowerCase();
|
|
10146
10182
|
return t ? !["all", "internal"].includes(t) : !1;
|
|
10147
10183
|
})) ? "list" : "card";
|
|
10148
|
-
R(() =>
|
|
10149
|
-
let
|
|
10184
|
+
R(() => lr(Me.rows), [Me.rows]);
|
|
10185
|
+
let ur = R(() => {
|
|
10150
10186
|
let e = xv({
|
|
10151
|
-
rows:
|
|
10152
|
-
selectedSource:
|
|
10187
|
+
rows: Me.rows,
|
|
10188
|
+
selectedSource: ze
|
|
10153
10189
|
});
|
|
10154
|
-
if (!e.length) return
|
|
10190
|
+
if (!e.length) return sr;
|
|
10155
10191
|
let t = new Set(e.map((e) => e.field));
|
|
10156
|
-
return [...
|
|
10192
|
+
return [...sr.filter((e) => e.cardRole !== "action" && !t.has(e.value)), ...e.map((e) => ({
|
|
10157
10193
|
value: e.field,
|
|
10158
10194
|
field: e.field,
|
|
10159
10195
|
label: e.label ?? "Action",
|
|
@@ -10162,54 +10198,54 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10162
10198
|
tableHidden: !0,
|
|
10163
10199
|
sorter: !1,
|
|
10164
10200
|
render: (t, n) => {
|
|
10165
|
-
if (!Sv(e, n,
|
|
10166
|
-
let r = Cv(e, n), i =
|
|
10201
|
+
if (!Sv(e, n, ze)) return null;
|
|
10202
|
+
let r = Cv(e, n), i = Ue[r] ?? {}, a = !r || i.completed;
|
|
10167
10203
|
return /* @__PURE__ */ Z(B, {
|
|
10168
10204
|
type: "primary",
|
|
10169
10205
|
size: "small",
|
|
10170
10206
|
loading: i.loading,
|
|
10171
10207
|
disabled: a,
|
|
10172
|
-
onClick: () =>
|
|
10208
|
+
onClick: () => Pn(e, n),
|
|
10173
10209
|
children: i.completed ? e.completedLabel : e.buttonLabel
|
|
10174
10210
|
});
|
|
10175
10211
|
}
|
|
10176
10212
|
}))];
|
|
10177
10213
|
}, [
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
]),
|
|
10184
|
-
if (!
|
|
10214
|
+
Pn,
|
|
10215
|
+
sr,
|
|
10216
|
+
Me.rows,
|
|
10217
|
+
ze,
|
|
10218
|
+
Ue
|
|
10219
|
+
]), fr = R(() => {
|
|
10220
|
+
if (!C) return Me.actions;
|
|
10185
10221
|
let e = (t) => ({
|
|
10186
10222
|
...t,
|
|
10187
10223
|
popupState: {
|
|
10188
|
-
...
|
|
10224
|
+
...C,
|
|
10189
10225
|
...t.popupState
|
|
10190
10226
|
},
|
|
10191
10227
|
...t.children ? { children: t.children.map(e) } : {}
|
|
10192
10228
|
});
|
|
10193
|
-
return (
|
|
10194
|
-
}, [
|
|
10195
|
-
let t = e.name ?? e.id ?? "", n = Fi(
|
|
10229
|
+
return (Me.actions ?? []).map(e);
|
|
10230
|
+
}, [Me.actions, C]), mr = (e) => {
|
|
10231
|
+
let t = e.name ?? e.id ?? "", n = Fi(Mt, t), r = !!n && n.leaderName !== t, i = n ? Et.find((e) => e.name === n.leaderName) ?? e : e, a = Math.max(0, Number(i.minRows ?? 0) || 0), o = Math.max(0, Number(i.maxRows ?? 0) || 0), s = n ? n.memberNames : [t], c = () => {
|
|
10196
10232
|
s.forEach((t) => {
|
|
10197
|
-
let n =
|
|
10198
|
-
|
|
10233
|
+
let n = Et.find((e) => e.name === t) ?? e;
|
|
10234
|
+
Nt.current[t]?.add(ki(n));
|
|
10199
10235
|
});
|
|
10200
10236
|
}, l = (e) => {
|
|
10201
|
-
s.forEach((t) =>
|
|
10237
|
+
s.forEach((t) => Nt.current[t]?.remove(e));
|
|
10202
10238
|
};
|
|
10203
10239
|
return e.addRow ? /* @__PURE__ */ Z(H.List, {
|
|
10204
10240
|
name: t,
|
|
10205
|
-
initialValue:
|
|
10241
|
+
initialValue: Cn[t] ?? [],
|
|
10206
10242
|
rules: r ? [] : [{ validator: async (t, n = []) => {
|
|
10207
10243
|
if (!(jv(e.toggleEnabled) && e.toggleField && I.getFieldValue(e.toggleField))) {
|
|
10208
10244
|
if (a > 0 && n.length < a) throw Error(`Keep at least ${a} row${a > 1 ? "s" : ""}.`);
|
|
10209
10245
|
if (jv(e.requireOne) && n.some((e) => !Xv(e))) throw Error("Fill at least one field in each added row.");
|
|
10210
10246
|
}
|
|
10211
10247
|
} }],
|
|
10212
|
-
children: (n, { add: s, remove: u, move: d }, { errors: f }) => (
|
|
10248
|
+
children: (n, { add: s, remove: u, move: d }, { errors: f }) => (Nt.current[t] = {
|
|
10213
10249
|
add: s,
|
|
10214
10250
|
remove: u,
|
|
10215
10251
|
move: d
|
|
@@ -10223,7 +10259,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10223
10259
|
md: e.col ?? 12,
|
|
10224
10260
|
className: "v1-addrow-header-label",
|
|
10225
10261
|
children: e.label
|
|
10226
|
-
},
|
|
10262
|
+
}, $n(e)))
|
|
10227
10263
|
}),
|
|
10228
10264
|
n.map(({ key: r, name: i }) => /* @__PURE__ */ Q("div", {
|
|
10229
10265
|
className: "v1-addrow-item",
|
|
@@ -10239,7 +10275,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10239
10275
|
children: /* @__PURE__ */ Z(ns, {
|
|
10240
10276
|
gutter: [24, 0],
|
|
10241
10277
|
align: "top",
|
|
10242
|
-
children:
|
|
10278
|
+
children: ar(e.fields, i, t, jv(e.sharedRowLabels), t)
|
|
10243
10279
|
})
|
|
10244
10280
|
})]
|
|
10245
10281
|
}, r)),
|
|
@@ -10262,16 +10298,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10262
10298
|
}))
|
|
10263
10299
|
}) : /* @__PURE__ */ Z(ns, {
|
|
10264
10300
|
gutter: [24, 0],
|
|
10265
|
-
children:
|
|
10301
|
+
children: ar(e.fields, void 0, void 0, !1, t)
|
|
10266
10302
|
});
|
|
10267
|
-
},
|
|
10268
|
-
let n = e.name ?? e.id ?? String(t), r =
|
|
10303
|
+
}, hr = (e) => Et.filter((t) => t !== e && t.mergeInto && String(t.mergeInto) === String(e.name)), yr = (e) => !!(e.mergeInto && Et.some((t) => t !== e && String(t.name) === String(e.mergeInto))), br = (e, t) => hr(e).filter((e) => String(e.mergePosition ?? "bottom") === t), xr = (e, t) => {
|
|
10304
|
+
let n = e.name ?? e.id ?? String(t), r = mr(e), i = br(e, "top"), a = br(e, "bottom"), o = [...e.fields ?? [], ...hr(e).flatMap((e) => e.fields ?? [])].filter((e) => String(e.field ?? "").trim().toLowerCase() === "contracttype"), s = Et.flatMap((e) => e.fields ?? []).filter((e) => String(e.field ?? "").trim().toLowerCase() === "contracttype"), c = [...o, ...s].find((e) => Array.isArray(e.optionColors) && e.optionColors.length) ?? o[0] ?? s[0] ?? null, l = e.name === "submission_current_employer" || String(e.name ?? "").includes("employer") && o.length > 0, u = (e) => {
|
|
10269
10305
|
let t = /* @__PURE__ */ Q("div", {
|
|
10270
10306
|
className: "v1-merged-group",
|
|
10271
10307
|
children: [/* @__PURE__ */ Z("div", {
|
|
10272
10308
|
className: "v1-merged-group-title",
|
|
10273
10309
|
children: e.label ?? e.name
|
|
10274
|
-
}),
|
|
10310
|
+
}), mr(e)]
|
|
10275
10311
|
}, e.name), n = e.showIf?.field ? /* @__PURE__ */ Z(Wv, {
|
|
10276
10312
|
form: I,
|
|
10277
10313
|
showIf: e.showIf,
|
|
@@ -10287,7 +10323,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10287
10323
|
className: "v1-card v1-edit-card",
|
|
10288
10324
|
title: /* @__PURE__ */ Z(Oy, {
|
|
10289
10325
|
icon: kv[t % kv.length],
|
|
10290
|
-
title:
|
|
10326
|
+
title: N ? Ee || e.label : e.label ?? e.name ?? "Details"
|
|
10291
10327
|
}),
|
|
10292
10328
|
extra: /* @__PURE__ */ Q(G, {
|
|
10293
10329
|
size: 8,
|
|
@@ -10299,11 +10335,11 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10299
10335
|
jv(e.allowCollapse) && /* @__PURE__ */ Z(B, {
|
|
10300
10336
|
type: "text",
|
|
10301
10337
|
size: "small",
|
|
10302
|
-
"aria-expanded": !
|
|
10303
|
-
"aria-label":
|
|
10304
|
-
icon:
|
|
10338
|
+
"aria-expanded": !On(n),
|
|
10339
|
+
"aria-label": On(n) ? "Expand section" : "Collapse section",
|
|
10340
|
+
icon: On(n) ? /* @__PURE__ */ Z($s, {}) : /* @__PURE__ */ Z(vl, {}),
|
|
10305
10341
|
onClick: (e) => {
|
|
10306
|
-
e.stopPropagation(),
|
|
10342
|
+
e.stopPropagation(), Tn(n);
|
|
10307
10343
|
}
|
|
10308
10344
|
})
|
|
10309
10345
|
]
|
|
@@ -10314,7 +10350,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10314
10350
|
children: ({ getFieldValue: t }) => {
|
|
10315
10351
|
let i = d && !!t(e.toggleField);
|
|
10316
10352
|
return /* @__PURE__ */ Q("div", {
|
|
10317
|
-
style: { display:
|
|
10353
|
+
style: { display: On(n) || i ? "none" : "block" },
|
|
10318
10354
|
children: [
|
|
10319
10355
|
f,
|
|
10320
10356
|
r,
|
|
@@ -10323,11 +10359,11 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10323
10359
|
});
|
|
10324
10360
|
}
|
|
10325
10361
|
})
|
|
10326
|
-
}, n), h = typeof
|
|
10362
|
+
}, n), h = typeof A == "function" ? A({
|
|
10327
10363
|
key: n,
|
|
10328
10364
|
group: e,
|
|
10329
10365
|
index: t,
|
|
10330
|
-
title:
|
|
10366
|
+
title: N ? Ee || e.label : e.label ?? e.name ?? "Details",
|
|
10331
10367
|
actions: m.props.extra,
|
|
10332
10368
|
children: m.props.children
|
|
10333
10369
|
}) : m;
|
|
@@ -10336,38 +10372,38 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10336
10372
|
contractField: c,
|
|
10337
10373
|
children: h
|
|
10338
10374
|
}, n) : h;
|
|
10339
|
-
},
|
|
10375
|
+
}, Cr = /* @__PURE__ */ Q(G, {
|
|
10340
10376
|
size: 12,
|
|
10341
10377
|
children: [
|
|
10342
10378
|
/* @__PURE__ */ Z(B, {
|
|
10343
|
-
onClick: () =>
|
|
10379
|
+
onClick: () => D && k ? k() : jr(F, { cancelPath: f }),
|
|
10344
10380
|
children: "Cancel"
|
|
10345
10381
|
}),
|
|
10346
|
-
|
|
10382
|
+
It.map((e, t) => /* @__PURE__ */ Z(zv, {
|
|
10347
10383
|
form: I,
|
|
10348
|
-
groups:
|
|
10384
|
+
groups: Et,
|
|
10349
10385
|
action: e,
|
|
10350
|
-
disabled: !
|
|
10351
|
-
loading:
|
|
10386
|
+
disabled: !gn || Oe || Dt > 0 || !Et.length,
|
|
10387
|
+
loading: Oe,
|
|
10352
10388
|
onFire: () => {
|
|
10353
|
-
|
|
10389
|
+
Ft.current || (Pt.current = e.afterSubmit ?? { mode: "stay" }, e.setValuesBeforeSubmit && I.setFieldsValue(e.setValuesBeforeSubmit), I.submit());
|
|
10354
10390
|
}
|
|
10355
10391
|
}, `${e.label ?? "action"}-${t}`)),
|
|
10356
10392
|
/* @__PURE__ */ Z(Bv, {
|
|
10357
10393
|
form: I,
|
|
10358
|
-
groups:
|
|
10394
|
+
groups: Et,
|
|
10359
10395
|
onClick: () => {
|
|
10360
|
-
|
|
10396
|
+
Ft.current || (Pt.current = null, I.submit());
|
|
10361
10397
|
},
|
|
10362
|
-
disabled: !
|
|
10363
|
-
loading:
|
|
10364
|
-
children:
|
|
10398
|
+
disabled: !gn || Oe || Dt > 0 || !Et.length,
|
|
10399
|
+
loading: Oe,
|
|
10400
|
+
children: P
|
|
10365
10401
|
})
|
|
10366
10402
|
]
|
|
10367
|
-
}),
|
|
10403
|
+
}), wr = /* @__PURE__ */ Q("div", {
|
|
10368
10404
|
className: "v1-edit-page",
|
|
10369
10405
|
children: [
|
|
10370
|
-
|
|
10406
|
+
Xt && !b && !bt && /* @__PURE__ */ Z(Fo, {
|
|
10371
10407
|
className: "v1-card v1-edit-card v1-client-gate-card",
|
|
10372
10408
|
children: /* @__PURE__ */ Q(G, {
|
|
10373
10409
|
direction: "vertical",
|
|
@@ -10378,9 +10414,9 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10378
10414
|
icon: /* @__PURE__ */ Z(xl, {}),
|
|
10379
10415
|
title: "Select Client"
|
|
10380
10416
|
}),
|
|
10381
|
-
|
|
10417
|
+
Zt && /* @__PURE__ */ Z(Ev, {
|
|
10382
10418
|
type: "secondary",
|
|
10383
|
-
children:
|
|
10419
|
+
children: Zt
|
|
10384
10420
|
}),
|
|
10385
10421
|
/* @__PURE__ */ Z(ns, {
|
|
10386
10422
|
gutter: [16, 0],
|
|
@@ -10392,15 +10428,15 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10392
10428
|
allowClear: !0,
|
|
10393
10429
|
placeholder: "Select client",
|
|
10394
10430
|
style: { width: "100%" },
|
|
10395
|
-
value:
|
|
10431
|
+
value: Ct || void 0,
|
|
10396
10432
|
optionFilterProp: "label",
|
|
10397
|
-
options:
|
|
10433
|
+
options: Ge.map((e) => ({
|
|
10398
10434
|
value: e._id ?? e.id,
|
|
10399
10435
|
label: e.clientName ?? e.name ?? e.clientRefrenceId ?? e._id
|
|
10400
10436
|
})).filter((e) => e.value),
|
|
10401
|
-
onChange:
|
|
10402
|
-
popupRender:
|
|
10403
|
-
}),
|
|
10437
|
+
onChange: $t,
|
|
10438
|
+
popupRender: nn.footer ? (e) => /* @__PURE__ */ Q(X, { children: [e, nn.footer] }) : void 0
|
|
10439
|
+
}), nn.modal]
|
|
10404
10440
|
})
|
|
10405
10441
|
})
|
|
10406
10442
|
]
|
|
@@ -10410,82 +10446,82 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10410
10446
|
className: "v1-page-inner",
|
|
10411
10447
|
children: [/* @__PURE__ */ Z(os, {
|
|
10412
10448
|
fullscreen: !0,
|
|
10413
|
-
spinning:
|
|
10449
|
+
spinning: Vt.busy || Rt.checking || !!zt,
|
|
10414
10450
|
size: "large",
|
|
10415
|
-
tip:
|
|
10451
|
+
tip: Vt.busy ? Vt.loadingText || "Reading the file…" : zt || "Checking whether we already have this person…"
|
|
10416
10452
|
}), /* @__PURE__ */ Q(os, {
|
|
10417
|
-
spinning: !
|
|
10453
|
+
spinning: !gn && !en,
|
|
10418
10454
|
description: "Loading form fields…",
|
|
10419
|
-
children: [
|
|
10455
|
+
children: [Ae && /* @__PURE__ */ Z(Ao, {
|
|
10420
10456
|
type: "error",
|
|
10421
10457
|
showIcon: !0,
|
|
10422
|
-
message:
|
|
10458
|
+
message: Ae,
|
|
10423
10459
|
style: { marginBottom: 16 },
|
|
10424
10460
|
closable: !0,
|
|
10425
|
-
onClose: () =>
|
|
10461
|
+
onClose: () => je("")
|
|
10426
10462
|
}), /* @__PURE__ */ Z(Kv.Provider, {
|
|
10427
|
-
value:
|
|
10463
|
+
value: oe,
|
|
10428
10464
|
children: /* @__PURE__ */ Q(H, {
|
|
10429
10465
|
form: I,
|
|
10430
10466
|
layout: "vertical",
|
|
10431
10467
|
colon: !1,
|
|
10432
|
-
className: `v1-form ${
|
|
10468
|
+
className: `v1-form ${se}`,
|
|
10433
10469
|
onValuesChange: (e) => {
|
|
10434
|
-
Object.keys(e ?? {}).forEach((e) =>
|
|
10470
|
+
Object.keys(e ?? {}).forEach((e) => oe.current.add(String(e)));
|
|
10435
10471
|
let t = Object.keys(e ?? {})[0];
|
|
10436
10472
|
if (!t) return;
|
|
10437
|
-
let n =
|
|
10438
|
-
Ti(n,
|
|
10473
|
+
let n = Et.flatMap((e) => e.fields ?? []).find((e) => e?.field === t);
|
|
10474
|
+
Ti(n, Et) && (Bt(Yi(n)), setTimeout(() => Bt(null), 0));
|
|
10439
10475
|
},
|
|
10440
|
-
disabled:
|
|
10476
|
+
disabled: Vt.busy || Rt.checking || !!zt,
|
|
10441
10477
|
requiredMark: (e, { required: t }) => /* @__PURE__ */ Q(X, { children: [e, t && /* @__PURE__ */ Z("span", {
|
|
10442
10478
|
className: "v1-required-mark",
|
|
10443
10479
|
children: " *"
|
|
10444
10480
|
})] }),
|
|
10445
|
-
onFinish:
|
|
10481
|
+
onFinish: Hn,
|
|
10446
10482
|
onFinishFailed: (e) => {
|
|
10447
|
-
|
|
10483
|
+
pe({}), Na(e, I, { root: ce() });
|
|
10448
10484
|
},
|
|
10449
10485
|
children: [
|
|
10450
|
-
|
|
10486
|
+
gn && !N && /* @__PURE__ */ Z(Tr, {
|
|
10451
10487
|
form: I,
|
|
10452
|
-
groups:
|
|
10453
|
-
onJump:
|
|
10488
|
+
groups: Et,
|
|
10489
|
+
onJump: jn
|
|
10454
10490
|
}),
|
|
10455
|
-
|
|
10491
|
+
gn && Et.filter((e) => !yr(e)).map((e, t) => /* @__PURE__ */ Z(Jv, {
|
|
10456
10492
|
form: I,
|
|
10457
10493
|
group: e,
|
|
10458
10494
|
children: e.showIf?.field ? /* @__PURE__ */ Z(Wv, {
|
|
10459
10495
|
form: I,
|
|
10460
10496
|
showIf: e.showIf,
|
|
10461
|
-
render: () =>
|
|
10462
|
-
}) :
|
|
10497
|
+
render: () => xr(e, t)
|
|
10498
|
+
}) : xr(e, t)
|
|
10463
10499
|
}, e.name ?? `grp-${t}`)),
|
|
10464
|
-
|
|
10500
|
+
gn && !yt && Et.length === 0 && /* @__PURE__ */ Z(Ao, {
|
|
10465
10501
|
type: "info",
|
|
10466
10502
|
showIcon: !0,
|
|
10467
|
-
message:
|
|
10503
|
+
message: N ? "No search configuration found." : "No form fields are configured."
|
|
10468
10504
|
}),
|
|
10469
|
-
|
|
10505
|
+
gn && N && /* @__PURE__ */ Z("div", {
|
|
10470
10506
|
className: "v1-search-form-actions",
|
|
10471
10507
|
children: /* @__PURE__ */ Q(G, {
|
|
10472
10508
|
size: 12,
|
|
10473
10509
|
children: [
|
|
10474
10510
|
/* @__PURE__ */ Z(B, {
|
|
10475
|
-
onClick:
|
|
10476
|
-
disabled: !
|
|
10511
|
+
onClick: Mn,
|
|
10512
|
+
disabled: !Et.length,
|
|
10477
10513
|
children: "Reset"
|
|
10478
10514
|
}),
|
|
10479
10515
|
/* @__PURE__ */ Z(B, {
|
|
10480
|
-
onClick: () => jr(
|
|
10516
|
+
onClick: () => jr(F, { cancelPath: f }),
|
|
10481
10517
|
children: "Back"
|
|
10482
10518
|
}),
|
|
10483
10519
|
/* @__PURE__ */ Z(B, {
|
|
10484
10520
|
type: "primary",
|
|
10485
10521
|
htmlType: "submit",
|
|
10486
|
-
disabled:
|
|
10487
|
-
loading:
|
|
10488
|
-
children:
|
|
10522
|
+
disabled: Oe || !Et.length || Yt,
|
|
10523
|
+
loading: Oe,
|
|
10524
|
+
children: P
|
|
10489
10525
|
})
|
|
10490
10526
|
]
|
|
10491
10527
|
})
|
|
@@ -10495,9 +10531,9 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10495
10531
|
})]
|
|
10496
10532
|
})]
|
|
10497
10533
|
}),
|
|
10498
|
-
!
|
|
10499
|
-
className:
|
|
10500
|
-
style: typeof
|
|
10534
|
+
!N && /* @__PURE__ */ Q("div", {
|
|
10535
|
+
className: D ? "v1-footer v1-footer--embedded" : "v1-footer",
|
|
10536
|
+
style: typeof j == "function" ? { display: "none" } : void 0,
|
|
10501
10537
|
children: [/* @__PURE__ */ Z(Ev, {
|
|
10502
10538
|
type: "secondary",
|
|
10503
10539
|
children: "All Unsaved Changes will be lost if you cancel and reload."
|
|
@@ -10505,71 +10541,71 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10505
10541
|
size: 12,
|
|
10506
10542
|
children: [
|
|
10507
10543
|
/* @__PURE__ */ Z(B, {
|
|
10508
|
-
onClick: () =>
|
|
10544
|
+
onClick: () => D && k ? k() : jr(F, { cancelPath: f }),
|
|
10509
10545
|
children: "Cancel"
|
|
10510
10546
|
}),
|
|
10511
|
-
|
|
10547
|
+
It.map((e, t) => /* @__PURE__ */ Z(zv, {
|
|
10512
10548
|
form: I,
|
|
10513
|
-
groups:
|
|
10549
|
+
groups: Et,
|
|
10514
10550
|
action: e,
|
|
10515
|
-
disabled: !
|
|
10516
|
-
loading:
|
|
10551
|
+
disabled: !gn || Oe || Dt > 0 || !Et.length,
|
|
10552
|
+
loading: Oe,
|
|
10517
10553
|
onFire: () => {
|
|
10518
|
-
|
|
10554
|
+
Ft.current || (Pt.current = e.afterSubmit ?? { mode: "stay" }, e.setValuesBeforeSubmit && I.setFieldsValue(e.setValuesBeforeSubmit), I.submit());
|
|
10519
10555
|
}
|
|
10520
10556
|
}, `${e.label ?? "action"}-${t}`)),
|
|
10521
10557
|
/* @__PURE__ */ Z(Bv, {
|
|
10522
10558
|
form: I,
|
|
10523
|
-
groups:
|
|
10559
|
+
groups: Et,
|
|
10524
10560
|
onClick: () => {
|
|
10525
|
-
|
|
10561
|
+
Ft.current || (Pt.current = null, I.submit());
|
|
10526
10562
|
},
|
|
10527
|
-
disabled: !
|
|
10528
|
-
loading:
|
|
10529
|
-
children:
|
|
10563
|
+
disabled: !gn || Oe || Dt > 0 || !Et.length,
|
|
10564
|
+
loading: Oe,
|
|
10565
|
+
children: P
|
|
10530
10566
|
})
|
|
10531
10567
|
]
|
|
10532
10568
|
})]
|
|
10533
10569
|
}),
|
|
10534
|
-
|
|
10570
|
+
N && Me.searched && /* @__PURE__ */ Z(ev, {
|
|
10535
10571
|
moduleName: e,
|
|
10536
10572
|
breadcrumbItems: [],
|
|
10537
|
-
dataSource:
|
|
10538
|
-
fields:
|
|
10539
|
-
total:
|
|
10540
|
-
loading:
|
|
10541
|
-
current:
|
|
10542
|
-
pageSize:
|
|
10573
|
+
dataSource: Me.rows,
|
|
10574
|
+
fields: ur,
|
|
10575
|
+
total: Me.total,
|
|
10576
|
+
loading: Me.loading,
|
|
10577
|
+
current: Pe.current,
|
|
10578
|
+
pageSize: Pe.pageSize,
|
|
10543
10579
|
showViewToggle: !0,
|
|
10544
|
-
activeView:
|
|
10545
|
-
onViewChange:
|
|
10546
|
-
onPageChange:
|
|
10547
|
-
onPageSizeChange:
|
|
10580
|
+
activeView: qt,
|
|
10581
|
+
onViewChange: Jt,
|
|
10582
|
+
onPageChange: In,
|
|
10583
|
+
onPageSizeChange: Rn,
|
|
10548
10584
|
showSearch: !1,
|
|
10549
|
-
tabs:
|
|
10550
|
-
selectedSource:
|
|
10551
|
-
onTabChange:
|
|
10552
|
-
actions:
|
|
10553
|
-
actionRules:
|
|
10585
|
+
tabs: Ve,
|
|
10586
|
+
selectedSource: ze,
|
|
10587
|
+
onTabChange: Fn,
|
|
10588
|
+
actions: fr,
|
|
10589
|
+
actionRules: Me.actionRules
|
|
10554
10590
|
})
|
|
10555
10591
|
]
|
|
10556
10592
|
});
|
|
10557
|
-
return typeof
|
|
10558
|
-
value:
|
|
10559
|
-
children:
|
|
10560
|
-
children:
|
|
10561
|
-
actions:
|
|
10593
|
+
return typeof j == "function" ? /* @__PURE__ */ Z(Rr.Provider, {
|
|
10594
|
+
value: ee,
|
|
10595
|
+
children: j({
|
|
10596
|
+
children: wr,
|
|
10597
|
+
actions: Cr,
|
|
10562
10598
|
form: I,
|
|
10563
|
-
groups:
|
|
10599
|
+
groups: Et,
|
|
10564
10600
|
moduleName: e,
|
|
10565
|
-
clientId:
|
|
10566
|
-
loading:
|
|
10567
|
-
ready:
|
|
10568
|
-
getReviewGroups: () =>
|
|
10601
|
+
clientId: qe,
|
|
10602
|
+
loading: vt || $e || mn,
|
|
10603
|
+
ready: gn,
|
|
10604
|
+
getReviewGroups: () => Et
|
|
10569
10605
|
})
|
|
10570
10606
|
}) : /* @__PURE__ */ Z(Rr.Provider, {
|
|
10571
|
-
value:
|
|
10572
|
-
children: /* @__PURE__ */ Q("main", { children: [c.length > 0 && /* @__PURE__ */ Z(Ea, { items: c }),
|
|
10607
|
+
value: ee,
|
|
10608
|
+
children: /* @__PURE__ */ Q("main", { children: [c.length > 0 && /* @__PURE__ */ Z(Ea, { items: c }), wr] })
|
|
10573
10609
|
});
|
|
10574
10610
|
});
|
|
10575
10611
|
//#endregion
|
|
@@ -13034,7 +13070,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13034
13070
|
let { amount: n, currency: r, unit: i } = Lx(e, t, o), a = e?.timestamp?.$date ?? e?.timestamp ?? e?.updatedAt?.$date ?? e?.updatedAt ?? e?.changedAt?.$date ?? e?.changedAt, s = e?.updatedBy ?? e?.changedBy, c = n == null || n === "" ? null : Number(n);
|
|
13035
13071
|
return {
|
|
13036
13072
|
amount: c != null && !Number.isNaN(c) ? `${se(r)}${re(c)}` : "—",
|
|
13037
|
-
unit:
|
|
13073
|
+
unit: ie(i),
|
|
13038
13074
|
when: a && Tl(a).isValid() ? Ue(a) : "",
|
|
13039
13075
|
by: s == null ? "" : E[String(s)] || O[String(s)] || ""
|
|
13040
13076
|
};
|
|
@@ -13077,7 +13113,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13077
13113
|
]), te = R(() => {
|
|
13078
13114
|
let e = new Set(P.map((e) => e.key)), t = o.find((t) => mS(t.appendHistory) && [t.historyField, ...t.historyFields || []].some((t) => t && e.has(t)));
|
|
13079
13115
|
return t?.label ?? t?.name ?? "Rate Details";
|
|
13080
|
-
}, [o, P]), ne = e === "job",
|
|
13116
|
+
}, [o, P]), ne = e === "job", ae = R(() => ne ? gS(o) : null, [ne, o]), I = () => {
|
|
13081
13117
|
g(!1), v("");
|
|
13082
13118
|
}, oe = async () => {
|
|
13083
13119
|
if (!_.trim()) {
|
|
@@ -13319,7 +13355,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13319
13355
|
]
|
|
13320
13356
|
}, r);
|
|
13321
13357
|
}, ke = (e, t) => {
|
|
13322
|
-
let n = e.name ?? e.id ?? String(t), r =
|
|
13358
|
+
let n = e.name ?? e.id ?? String(t), r = ae ? e.fields.filter((e) => e.field !== ae.key) : e.fields;
|
|
13323
13359
|
if (!r.length) return null;
|
|
13324
13360
|
if (e.addRow) return Oe(e, t, r);
|
|
13325
13361
|
let i = ge(r, De);
|
|
@@ -13407,7 +13443,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13407
13443
|
return Me(e) && P.length > 0 && n.push(Ae()), n;
|
|
13408
13444
|
}),
|
|
13409
13445
|
P.length > 0 && !F.some(Me) && Ae(),
|
|
13410
|
-
ne &&
|
|
13446
|
+
ne && ae?.value && /* @__PURE__ */ Z(Fo, {
|
|
13411
13447
|
size: "small",
|
|
13412
13448
|
className: "v1-card v1-detail-card",
|
|
13413
13449
|
title: /* @__PURE__ */ Z(wS, {
|
|
@@ -13432,7 +13468,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13432
13468
|
rows: 10,
|
|
13433
13469
|
value: _,
|
|
13434
13470
|
onChange: (e) => v(e.target.value),
|
|
13435
|
-
placeholder:
|
|
13471
|
+
placeholder: ae.hidePlaceholder ? void 0 : ae.placeholder,
|
|
13436
13472
|
style: {
|
|
13437
13473
|
fontSize: 13,
|
|
13438
13474
|
lineHeight: 1.65,
|
|
@@ -13455,11 +13491,11 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13455
13491
|
children: "Save & Parse"
|
|
13456
13492
|
}), /* @__PURE__ */ Z(ea, {
|
|
13457
13493
|
size: "small",
|
|
13458
|
-
onClick:
|
|
13494
|
+
onClick: I,
|
|
13459
13495
|
children: "Cancel"
|
|
13460
13496
|
})]
|
|
13461
13497
|
})]
|
|
13462
|
-
}) : /* @__PURE__ */ Z(TS, { value:
|
|
13498
|
+
}) : /* @__PURE__ */ Z(TS, { value: ae.value })
|
|
13463
13499
|
})
|
|
13464
13500
|
]
|
|
13465
13501
|
})
|
|
@@ -14987,7 +15023,7 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
14987
15023
|
L(() => {
|
|
14988
15024
|
ne && c && c(ne);
|
|
14989
15025
|
}, [ne]);
|
|
14990
|
-
let { eyebrow: re, title:
|
|
15026
|
+
let { eyebrow: re, title: ie = "-", status: ae, titleIds: I = [], meta: oe = [], ids: se = [], tabs: ce = [], stats: le = [], timestamp: ue = null } = ne ?? {}, { canAdd: de, canEdit: fe, canDelete: pe } = yp(e), me = R(() => bw(y, t), [y, t]);
|
|
14991
15027
|
L(() => {
|
|
14992
15028
|
me && u && u(me);
|
|
14993
15029
|
}, [me]);
|
|
@@ -15227,7 +15263,7 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
15227
15263
|
children: [/* @__PURE__ */ Q("div", {
|
|
15228
15264
|
className: "fin-dh__identity",
|
|
15229
15265
|
children: [/* @__PURE__ */ Z(cw, {
|
|
15230
|
-
name:
|
|
15266
|
+
name: ie,
|
|
15231
15267
|
size: "lg"
|
|
15232
15268
|
}), /* @__PURE__ */ Q("div", {
|
|
15233
15269
|
className: "fin-dh__who",
|
|
@@ -15235,7 +15271,7 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
15235
15271
|
className: "fin-dh__name-row",
|
|
15236
15272
|
children: [/* @__PURE__ */ Z("h2", {
|
|
15237
15273
|
className: "fin-dh__name",
|
|
15238
|
-
children:
|
|
15274
|
+
children: ie || "Details"
|
|
15239
15275
|
}), i ? /* @__PURE__ */ Z(JC, { status: i }) : null]
|
|
15240
15276
|
}), re ? /* @__PURE__ */ Z("span", {
|
|
15241
15277
|
className: "fin-dh__designation",
|
|
@@ -15286,9 +15322,9 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
15286
15322
|
children: [
|
|
15287
15323
|
/* @__PURE__ */ Z("span", {
|
|
15288
15324
|
className: "znx-dh-title",
|
|
15289
|
-
children:
|
|
15325
|
+
children: ie
|
|
15290
15326
|
}),
|
|
15291
|
-
|
|
15327
|
+
I.map((e) => /* @__PURE__ */ Q("span", {
|
|
15292
15328
|
className: "znx-dh-titleid",
|
|
15293
15329
|
children: [
|
|
15294
15330
|
/* @__PURE__ */ Q("span", {
|
|
@@ -15299,15 +15335,15 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
15299
15335
|
e.value
|
|
15300
15336
|
]
|
|
15301
15337
|
}, e.label)),
|
|
15302
|
-
|
|
15303
|
-
color:
|
|
15338
|
+
ae && /* @__PURE__ */ Z(q, {
|
|
15339
|
+
color: ae.color,
|
|
15304
15340
|
className: "znx-dh-status",
|
|
15305
15341
|
style: {
|
|
15306
|
-
backgroundColor:
|
|
15307
|
-
borderColor:
|
|
15308
|
-
color:
|
|
15342
|
+
backgroundColor: ae.backgroundColor ?? ae.color,
|
|
15343
|
+
borderColor: ae.backgroundColor ?? ae.color,
|
|
15344
|
+
color: ae.textColor
|
|
15309
15345
|
},
|
|
15310
|
-
children:
|
|
15346
|
+
children: ae.label
|
|
15311
15347
|
})
|
|
15312
15348
|
]
|
|
15313
15349
|
}),
|
|
@@ -16321,7 +16357,7 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16321
16357
|
open: !1,
|
|
16322
16358
|
docs: [],
|
|
16323
16359
|
index: 0
|
|
16324
|
-
}), [
|
|
16360
|
+
}), [ie, ae] = z(null), [I, oe] = z(null), [se, ce] = z(0), le = Oo([]), ue = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", de = e.lookupFilterValueFrom ? Ei(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], fe = e.lookupFilterValueFrom && ue ? [...n.slice(0, 2), ...Ei(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], pe = H.useWatch(de, t), me = H.useWatch(fe, t), he = CT(me) ? pe : me, ge = e.lookupFilterValueFrom ? f[e.lookupFilterValueFrom] : void 0, _e = CT(ge) ? he : ge, ve = Oo(yr);
|
|
16325
16361
|
L(() => {
|
|
16326
16362
|
if (!e.lookupFilterField || !e.lookupFilterValueFrom) return;
|
|
16327
16363
|
let r = ve.current;
|
|
@@ -16608,14 +16644,14 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16608
16644
|
let n = e.formatter ? ZT(t.target.value, e.formatter) : t.target.value;
|
|
16609
16645
|
if (Ot) {
|
|
16610
16646
|
let { cleaned: e, error: t } = hi(n, Ot, "change");
|
|
16611
|
-
|
|
16647
|
+
ae(t), n = e;
|
|
16612
16648
|
}
|
|
16613
16649
|
Et(n);
|
|
16614
16650
|
},
|
|
16615
16651
|
...Ot && {
|
|
16616
16652
|
onBlur: (e) => {
|
|
16617
16653
|
let { cleaned: t, error: n } = hi(e.target.value, Ot, "blur");
|
|
16618
|
-
|
|
16654
|
+
ae(n), t !== e.target.value && Et(t);
|
|
16619
16655
|
},
|
|
16620
16656
|
onKeyPress: (e) => {
|
|
16621
16657
|
let t = xi(Ot.type);
|
|
@@ -16624,7 +16660,7 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16624
16660
|
if (!t.test(n)) {
|
|
16625
16661
|
e.preventDefault();
|
|
16626
16662
|
let t = `${Ot.title} — invalid character.`;
|
|
16627
|
-
|
|
16663
|
+
ae(t), setTimeout(() => ae((e) => e === t ? null : e), 1800);
|
|
16628
16664
|
}
|
|
16629
16665
|
},
|
|
16630
16666
|
maxLength: Ot.maxLength ?? wt.maxLength
|
|
@@ -16742,21 +16778,21 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16742
16778
|
onChange: (e) => {
|
|
16743
16779
|
if (Ot) {
|
|
16744
16780
|
let { error: t } = hi(e, Ot, "change");
|
|
16745
|
-
|
|
16781
|
+
ae(t);
|
|
16746
16782
|
}
|
|
16747
16783
|
Et(e);
|
|
16748
16784
|
}
|
|
16749
|
-
}),
|
|
16785
|
+
}), ie && /* @__PURE__ */ Z("div", {
|
|
16750
16786
|
className: "v1-input-validator-hint",
|
|
16751
|
-
children:
|
|
16787
|
+
children: ie
|
|
16752
16788
|
})] });
|
|
16753
16789
|
if (y === "textarea") return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(pT, {
|
|
16754
16790
|
...kt,
|
|
16755
16791
|
rows: e.rows ?? 3,
|
|
16756
16792
|
className: "v1-scroll-textarea"
|
|
16757
|
-
}),
|
|
16793
|
+
}), ie && /* @__PURE__ */ Z("div", {
|
|
16758
16794
|
className: "v1-input-validator-hint",
|
|
16759
|
-
children:
|
|
16795
|
+
children: ie
|
|
16760
16796
|
})] });
|
|
16761
16797
|
if (y === "date") return /* @__PURE__ */ Z(Ro, {
|
|
16762
16798
|
value: i,
|
|
@@ -16897,7 +16933,7 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16897
16933
|
})
|
|
16898
16934
|
]
|
|
16899
16935
|
}, e.uid ?? t)), O = /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q(Yo, {
|
|
16900
|
-
open:
|
|
16936
|
+
open: I !== null,
|
|
16901
16937
|
destroyOnHidden: !0,
|
|
16902
16938
|
centered: !0,
|
|
16903
16939
|
title: "Remove this file?",
|
|
@@ -16910,12 +16946,12 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16910
16946
|
onCancel: () => oe(null),
|
|
16911
16947
|
onOk: () => {
|
|
16912
16948
|
if (rt) return;
|
|
16913
|
-
let e = f.indexOf(
|
|
16949
|
+
let e = f.indexOf(I);
|
|
16914
16950
|
e >= 0 && _(e), oe(null);
|
|
16915
16951
|
},
|
|
16916
16952
|
children: [/* @__PURE__ */ Q("p", { children: [
|
|
16917
16953
|
"Remove ",
|
|
16918
|
-
|
|
16954
|
+
I?.name || "this file",
|
|
16919
16955
|
"?"
|
|
16920
16956
|
] }), /* @__PURE__ */ Z("p", { children: "Save your changes to apply the removal." })]
|
|
16921
16957
|
}), /* @__PURE__ */ Z(Xa, {
|
|
@@ -17059,9 +17095,9 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
17059
17095
|
type: y === "number" ? "number" : y,
|
|
17060
17096
|
...y === "number" && xT(e.decimal) ? { step: "any" } : {},
|
|
17061
17097
|
...e.suffix ? { suffix: e.suffix } : {}
|
|
17062
|
-
}),
|
|
17098
|
+
}), ie && /* @__PURE__ */ Z("div", {
|
|
17063
17099
|
className: "v1-input-validator-hint",
|
|
17064
|
-
children:
|
|
17100
|
+
children: ie
|
|
17065
17101
|
})] });
|
|
17066
17102
|
}
|
|
17067
17103
|
function $T({ icon: e, title: t }) {
|
|
@@ -17116,7 +17152,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17116
17152
|
r,
|
|
17117
17153
|
T
|
|
17118
17154
|
]);
|
|
17119
|
-
let [P, F] = z(!1), [te, ne] = z(""), [re,
|
|
17155
|
+
let [P, F] = z(!1), [te, ne] = z(""), [re, ie] = z(!1), [ae, I] = z(!1), [oe, se] = z(""), [ce, le] = z(null), [ue, de] = z(() => /* @__PURE__ */ new Map()), [fe, pe] = z(""), me = a || fe, [he, ge] = z({}), [, ve] = z(0);
|
|
17120
17156
|
L(() => {
|
|
17121
17157
|
let e = !0;
|
|
17122
17158
|
return Re().then(() => {
|
|
@@ -17296,7 +17332,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17296
17332
|
let n = !1;
|
|
17297
17333
|
async function i() {
|
|
17298
17334
|
try {
|
|
17299
|
-
F(!0), ne(""),
|
|
17335
|
+
F(!0), ne(""), ie(!1), se("");
|
|
17300
17336
|
let i = await $a({
|
|
17301
17337
|
module: e,
|
|
17302
17338
|
id: r,
|
|
@@ -17319,7 +17355,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17319
17355
|
!n && r && r !== fe && pe(r);
|
|
17320
17356
|
}
|
|
17321
17357
|
} catch (t) {
|
|
17322
|
-
console.error(`Failed to fetch ${e} edit data:`, t), n || (
|
|
17358
|
+
console.error(`Failed to fetch ${e} edit data:`, t), n || (ie(dS(t)), ne(t?.message || "Failed to load record"));
|
|
17323
17359
|
} finally {
|
|
17324
17360
|
n || F(!1);
|
|
17325
17361
|
}
|
|
@@ -17509,7 +17545,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17509
17545
|
}
|
|
17510
17546
|
async function rt(t) {
|
|
17511
17547
|
if (!(m && await Promise.resolve().then(() => m(t)).catch(() => !1) === !1)) try {
|
|
17512
|
-
|
|
17548
|
+
I(!0), se("");
|
|
17513
17549
|
let n = Wi(t, ye, { module: e }), i = Wi(t, ye, {
|
|
17514
17550
|
indexed: !0,
|
|
17515
17551
|
module: e
|
|
@@ -17592,7 +17628,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17592
17628
|
let n = Pi(ye, e, "edit", t?.data?.error || t?.data?.message || t?.message);
|
|
17593
17629
|
se(n), Y.error(n);
|
|
17594
17630
|
} finally {
|
|
17595
|
-
|
|
17631
|
+
I(!1);
|
|
17596
17632
|
}
|
|
17597
17633
|
}
|
|
17598
17634
|
function it(e) {
|
|
@@ -18197,8 +18233,8 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
18197
18233
|
form: E,
|
|
18198
18234
|
groups: ye,
|
|
18199
18235
|
onClick: () => E.submit(),
|
|
18200
|
-
disabled: re || P ||
|
|
18201
|
-
loading:
|
|
18236
|
+
disabled: re || P || ae || Te > 0,
|
|
18237
|
+
loading: ae,
|
|
18202
18238
|
children: c
|
|
18203
18239
|
})] }), Ot = /* @__PURE__ */ Q("main", { children: [Be.length > 0 && /* @__PURE__ */ Z(Ea, { items: Be }), /* @__PURE__ */ Q("div", {
|
|
18204
18240
|
className: "v1-edit-page",
|
|
@@ -18869,7 +18905,7 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
18869
18905
|
F,
|
|
18870
18906
|
u,
|
|
18871
18907
|
b
|
|
18872
|
-
]), re = typeof a == "number" ? a : b.trim() ? ne.length : r.length,
|
|
18908
|
+
]), re = typeof a == "number" ? a : b.trim() ? ne.length : r.length, ie = R(() => {
|
|
18873
18909
|
if (N) return ne;
|
|
18874
18910
|
let e = (P.current - 1) * P.pageSize;
|
|
18875
18911
|
return ne.slice(e, e + P.pageSize);
|
|
@@ -18878,7 +18914,7 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
18878
18914
|
P.pageSize,
|
|
18879
18915
|
ne,
|
|
18880
18916
|
N
|
|
18881
|
-
]),
|
|
18917
|
+
]), ae = R(() => F.filter((e) => te.includes(e.key)).map((e) => ({
|
|
18882
18918
|
title: e.label,
|
|
18883
18919
|
dataIndex: e.key,
|
|
18884
18920
|
key: e.key,
|
|
@@ -18891,7 +18927,7 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
18891
18927
|
className: "job-cell-primary",
|
|
18892
18928
|
children: CE(n, e.key)
|
|
18893
18929
|
})
|
|
18894
|
-
})), [F, te]),
|
|
18930
|
+
})), [F, te]), I = te.length === F.length, oe = te.length > 0 && !I, se = (e, t) => {
|
|
18895
18931
|
k((n) => {
|
|
18896
18932
|
let r = n.length ? n : F.map((e) => e.key);
|
|
18897
18933
|
return t ? r.includes(e) ? r : [...r, e] : r.filter((t) => t !== e);
|
|
@@ -18900,7 +18936,7 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
18900
18936
|
className: "column-visibility-menu",
|
|
18901
18937
|
onClick: (e) => e.stopPropagation(),
|
|
18902
18938
|
children: [/* @__PURE__ */ Z(Io, {
|
|
18903
|
-
checked:
|
|
18939
|
+
checked: I,
|
|
18904
18940
|
indeterminate: oe,
|
|
18905
18941
|
onChange: (e) => {
|
|
18906
18942
|
k(e.target.checked ? F.map((e) => e.key) : []);
|
|
@@ -19032,8 +19068,8 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
19032
19068
|
C(e), T(t);
|
|
19033
19069
|
}
|
|
19034
19070
|
} : void 0,
|
|
19035
|
-
columns:
|
|
19036
|
-
dataSource:
|
|
19071
|
+
columns: ae,
|
|
19072
|
+
dataSource: ie,
|
|
19037
19073
|
size: "middle",
|
|
19038
19074
|
scroll: { x: "max-content" },
|
|
19039
19075
|
showSorterTooltip: !1,
|
|
@@ -20589,7 +20625,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20589
20625
|
}, [T]), [D, O] = z("traditional"), [k, A] = z("internal"), [j, M] = z({}), [ee, N] = z([]), [P, F] = z(xO), [te, ne] = z({
|
|
20590
20626
|
current: 1,
|
|
20591
20627
|
pageSize: 10
|
|
20592
|
-
}), [re,
|
|
20628
|
+
}), [re, ie] = z(null), [ae, I] = z({}), [oe, se] = z({}), [ce, ue] = z(null), [de, fe] = z(0), [pe, me] = z(!1), [he, ge] = z(null), [_e, ve] = z(null), [ye, be] = z(null), [xe, Se] = z(!1), Ce = Eo(), [we, Te] = z(null), Ee = Oo(!1), De = wo((e) => {
|
|
20593
20629
|
Ee.current && (Ee.current = !1, e && Se(!0));
|
|
20594
20630
|
}, []);
|
|
20595
20631
|
L(() => {
|
|
@@ -20648,7 +20684,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20648
20684
|
}))), M({}), ue(null), O(e ? "boolean" : "traditional");
|
|
20649
20685
|
}, Ve = wo(async (t, n, r = {}) => {
|
|
20650
20686
|
let a = Number(r.pageSize) > 0 ? Number(r.pageSize) : te.pageSize, o = Number(r.current), s = Number.isFinite(o) && o > 0 ? Math.floor(o) : 1, c = lv(t?.[yO]), l = Me ? n ? uv(n, k) : c.includes("internal") ? "internal" : uv(t?.[yO], k) : "", u = je[cv(l)] || e;
|
|
20651
|
-
|
|
20687
|
+
ie(t), ne({
|
|
20652
20688
|
current: s,
|
|
20653
20689
|
pageSize: a
|
|
20654
20690
|
}), M({}), F((e) => ({
|
|
@@ -20847,7 +20883,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20847
20883
|
Ee.current = !1, Se(!1), p.resetFields(), se({}), M({}), F(xO), N([]), A("internal"), ue(null), ge(null);
|
|
20848
20884
|
}, Qe = wo(async (e, t) => {
|
|
20849
20885
|
let n = Cv(e, t);
|
|
20850
|
-
|
|
20886
|
+
I((e) => ({
|
|
20851
20887
|
...e,
|
|
20852
20888
|
[n]: {
|
|
20853
20889
|
...e[n],
|
|
@@ -20855,7 +20891,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20855
20891
|
}
|
|
20856
20892
|
}));
|
|
20857
20893
|
try {
|
|
20858
|
-
await wv(e, t),
|
|
20894
|
+
await wv(e, t), I((e) => ({
|
|
20859
20895
|
...e,
|
|
20860
20896
|
[n]: {
|
|
20861
20897
|
loading: !1,
|
|
@@ -20863,7 +20899,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20863
20899
|
}
|
|
20864
20900
|
})), Y.success(e.successMessage);
|
|
20865
20901
|
} catch (t) {
|
|
20866
|
-
|
|
20902
|
+
I((e) => ({
|
|
20867
20903
|
...e,
|
|
20868
20904
|
[n]: { loading: !1 }
|
|
20869
20905
|
})), Y.error(t?.message || e.errorMessage);
|
|
@@ -20892,7 +20928,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20892
20928
|
sorter: !1,
|
|
20893
20929
|
render: (t, n) => {
|
|
20894
20930
|
if (!Sv(e, n, k)) return null;
|
|
20895
|
-
let r = Cv(e, n), i =
|
|
20931
|
+
let r = Cv(e, n), i = ae[r] ?? {};
|
|
20896
20932
|
return /* @__PURE__ */ Z(B, {
|
|
20897
20933
|
type: "primary",
|
|
20898
20934
|
size: "small",
|
|
@@ -20908,7 +20944,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20908
20944
|
P.fields,
|
|
20909
20945
|
P.rows,
|
|
20910
20946
|
k,
|
|
20911
|
-
|
|
20947
|
+
ae
|
|
20912
20948
|
]), tt = R(() => qe(P.actions), [qe, P.actions]), nt = R(() => Je($e), [Je, $e]), rt = ye ?? $D(h), at = eO(h), ot = R(() => KD(h).map((e) => ({
|
|
20913
20949
|
...e,
|
|
20914
20950
|
destination: qa(e.url, void 0, Ke ?? {})
|
|
@@ -23402,13 +23438,13 @@ function aA(e = {}, t = {}, n = {}) {
|
|
|
23402
23438
|
let r = {
|
|
23403
23439
|
...Uk,
|
|
23404
23440
|
...n ?? {}
|
|
23405
|
-
}, i = e.submission ?? e ?? {}, a = e.job ?? {}, o = e.client ?? {}, s = e.engagement ?? {}, c = nA(i, "contractType") ?? s.onboardingType ?? e.contractType, l = rA(c), u = Gk(c, r.employerContractTypes), d = Array.isArray(a.jobPayDetails) ? a.jobPayDetails[a.jobPayDetails.length - 1] ?? {} : a.jobPayDetails ?? {}, f = Kk(d.clientBudgetStart ?? nA(i, "clientBudget", "clientBudgetStart")), p = Kk(d.clientBudgetEnd ?? nA(i, "clientBudget", "clientBudgetEnd")) || f, m = p || f, h = Zk(o.vmsFeeHistory) ?? {}, g = t.clientVmsFee ?? o.vmsFee ?? {}, _ = Jk(h.vmsPercentage) ? Kk(h.vmsPercentage) : Jk(o.vmsPercentage) ? Kk(o.vmsPercentage) : g.isApplicable === !1 ? 0 : Kk(Yk(g.value, g.percent, typeof g == "number" ? g : void 0, nA(i, "clientVmsPercent"), nA(i, "vmsPercent"))), v = _ > 0, y = String(Yk(h.vmsPercentageType, o.vmsPercentageType) ?? "recurring").toLowerCase(), b = Kk(nA(i, "proposedRate", "candidateProposedRate") ?? e.proposedRateValue), x = (e, t, n) => Yk(nA(i, e, t), nA(i, e, n)), S = nA(i, "candidateRate", "candidateAcceptedRate"), C = Yk(nA(i, "candidateBudget", "candidateBudgetStart"), nA(i, "candidateBudget", "candidateBudgetRate")), w = Yk(Kk(S) > 0 ? x("candidateRate", "candidateAcceptedCurrency", "candidateAcceptedCurrencySymbol") : void 0, Kk(C) > 0 ? x("candidateBudget", "candidateBudgetCurrency", "candidateBudgetCurrencySymbol") : void 0, b > 0 ? x("proposedRate", "candidateProposedRateCurrency", "candidateProposedRateCurrencySymbol") : void 0, d.clientBudgetCurrency, d.clientBudgetCurrencySymbol, a.currency, a.currencySymbol, r.currency), T = N(w, r.currency), E = Yk(nA(i, "candidateRate", "candidateAcceptedPayUnit"), nA(i, "candidateBudget", "candidateBudgetUnit"), nA(i, "proposedRate", "candidateProposedRateUnit"), d.clientBudgetUnit, r.rateUnit), D = E, O = Yk(d.clientBudgetUnit, D), k = Array.isArray(i.approvalRateEdits) ? Zk(i.approvalRateEdits) : null, A = k && typeof k == "object" && Object.keys(k).length ? k : null, j = A && Jk(A.employerRate) ? Kk(A.employerRate) : null, M = A && Jk(A.employerVmsPercent) ? Kk(A.employerVmsPercent) : null, ee = j ?? Kk(nA(i, "candidateRate", "candidateAcceptedRate") ?? nA(i, "candidateBudget", "candidateBudgetStart") ?? nA(i, "candidateBudget", "candidateBudgetRate")), P = M == null ? qk(nA(i, "submission_current_employer", "isVmsRequired") ?? nA(i, "submission_current_employer", "isVMSRequired")) : M > 0, F = M ?? Kk(Yk(nA(i, "submission_current_employer", "vmsPercentage"), nA(i, "submission_current_employer", "vmsCommission"), e.employer?.vmsPercentage, e.employer?.vmsCommission, s.vmsPercent)), te = F > 0, ne = P ? F : 0, re = String(nA(i, "submission_current_employer", "vmsType") ?? nA(i, "submission_current_employer", "vmsCommissionType") ?? "Recurring"),
|
|
23441
|
+
}, i = e.submission ?? e ?? {}, a = e.job ?? {}, o = e.client ?? {}, s = e.engagement ?? {}, c = nA(i, "contractType") ?? s.onboardingType ?? e.contractType, l = rA(c), u = Gk(c, r.employerContractTypes), d = Array.isArray(a.jobPayDetails) ? a.jobPayDetails[a.jobPayDetails.length - 1] ?? {} : a.jobPayDetails ?? {}, f = Kk(d.clientBudgetStart ?? nA(i, "clientBudget", "clientBudgetStart")), p = Kk(d.clientBudgetEnd ?? nA(i, "clientBudget", "clientBudgetEnd")) || f, m = p || f, h = Zk(o.vmsFeeHistory) ?? {}, g = t.clientVmsFee ?? o.vmsFee ?? {}, _ = Jk(h.vmsPercentage) ? Kk(h.vmsPercentage) : Jk(o.vmsPercentage) ? Kk(o.vmsPercentage) : g.isApplicable === !1 ? 0 : Kk(Yk(g.value, g.percent, typeof g == "number" ? g : void 0, nA(i, "clientVmsPercent"), nA(i, "vmsPercent"))), v = _ > 0, y = String(Yk(h.vmsPercentageType, o.vmsPercentageType) ?? "recurring").toLowerCase(), b = Kk(nA(i, "proposedRate", "candidateProposedRate") ?? e.proposedRateValue), x = (e, t, n) => Yk(nA(i, e, t), nA(i, e, n)), S = nA(i, "candidateRate", "candidateAcceptedRate"), C = Yk(nA(i, "candidateBudget", "candidateBudgetStart"), nA(i, "candidateBudget", "candidateBudgetRate")), w = Yk(Kk(S) > 0 ? x("candidateRate", "candidateAcceptedCurrency", "candidateAcceptedCurrencySymbol") : void 0, Kk(C) > 0 ? x("candidateBudget", "candidateBudgetCurrency", "candidateBudgetCurrencySymbol") : void 0, b > 0 ? x("proposedRate", "candidateProposedRateCurrency", "candidateProposedRateCurrencySymbol") : void 0, d.clientBudgetCurrency, d.clientBudgetCurrencySymbol, a.currency, a.currencySymbol, r.currency), T = N(w, r.currency), E = Yk(nA(i, "candidateRate", "candidateAcceptedPayUnit"), nA(i, "candidateBudget", "candidateBudgetUnit"), nA(i, "proposedRate", "candidateProposedRateUnit"), d.clientBudgetUnit, r.rateUnit), D = E, O = Yk(d.clientBudgetUnit, D), k = Array.isArray(i.approvalRateEdits) ? Zk(i.approvalRateEdits) : null, A = k && typeof k == "object" && Object.keys(k).length ? k : null, j = A && Jk(A.employerRate) ? Kk(A.employerRate) : null, M = A && Jk(A.employerVmsPercent) ? Kk(A.employerVmsPercent) : null, ee = j ?? Kk(nA(i, "candidateRate", "candidateAcceptedRate") ?? nA(i, "candidateBudget", "candidateBudgetStart") ?? nA(i, "candidateBudget", "candidateBudgetRate")), P = M == null ? qk(nA(i, "submission_current_employer", "isVmsRequired") ?? nA(i, "submission_current_employer", "isVMSRequired")) : M > 0, F = M ?? Kk(Yk(nA(i, "submission_current_employer", "vmsPercentage"), nA(i, "submission_current_employer", "vmsCommission"), e.employer?.vmsPercentage, e.employer?.vmsCommission, s.vmsPercent)), te = F > 0, ne = P ? F : 0, re = String(nA(i, "submission_current_employer", "vmsType") ?? nA(i, "submission_current_employer", "vmsCommissionType") ?? "Recurring"), ie = nA(i, "submission_current_employer", "tax"), I = t.locationTaxPercent == null ? ie != null && ie !== "" ? Kk(ie) : oA(t.locationTaxRows, nA(i, "submission_current_employer", "locationId") ?? nA(i, "submission_current_employer", "location") ?? nA(i, "city") ?? nA(i, "state") ?? a.jobLocation) : Kk(t.locationTaxPercent);
|
|
23406
23442
|
return {
|
|
23407
23443
|
contractType: l,
|
|
23408
23444
|
contractTypeLabel: Wk(c) ? String(c).trim() : "-",
|
|
23409
23445
|
isEmployerContract: u,
|
|
23410
23446
|
currency: T,
|
|
23411
|
-
currencyRaw:
|
|
23447
|
+
currencyRaw: ae(w),
|
|
23412
23448
|
rateUnit: D,
|
|
23413
23449
|
employerRateUnit: E,
|
|
23414
23450
|
clientRateUnit: O,
|
|
@@ -23425,7 +23461,7 @@ function aA(e = {}, t = {}, n = {}) {
|
|
|
23425
23461
|
employerVmsAvailable: te,
|
|
23426
23462
|
employerVmsType: re,
|
|
23427
23463
|
employerVmsRequired: P,
|
|
23428
|
-
locationTaxPercent:
|
|
23464
|
+
locationTaxPercent: I,
|
|
23429
23465
|
approvalEdit: A
|
|
23430
23466
|
};
|
|
23431
23467
|
}
|
|
@@ -23438,13 +23474,13 @@ function oA(e, t) {
|
|
|
23438
23474
|
return Kk(r?.taxValue ?? r?.taxPercent);
|
|
23439
23475
|
}
|
|
23440
23476
|
function sA(e, t = {}) {
|
|
23441
|
-
let { contractType: n = "C2C", isEmployerContract: r, currency: i = Uk.currency, currencyRaw: a, rateUnit: o = Uk.rateUnit, employerRateUnit: s, clientRateUnit: c, clientVmsConfigured: l, clientJobRate: u = 0, clientJobRateFrom: d = 0, clientJobRateTo: f = 0, clientVmsPercent: p = 0, clientVmsPercentageType: m = "recurring", proposedRate: h = 0, employerRate: g = 0, employerVmsPercent: _ = 0, employerVmsPercentConfigured: v = 0, employerVmsAvailable: y = !1, employerVmsType: b = "Recurring", employerVmsRequired: x = !1, locationTaxPercent: S = 0 } = e ?? {}, C = t.employerRate == null ? Kk(g) : Kk(t.employerRate), w = t.locationTaxPercent != null && t.locationTaxPercent !== "" ? Kk(t.locationTaxPercent) : S, T = t.employerVmsPercent == null ? null : Kk(t.employerVmsPercent), E = T ?? v, D = T == null ? x : T > 0, O = T == null ? y : T > 0, k = T ?? _, A = N(i, Uk.currency), j = t.proposedRate == null ? Kk(h) : Kk(t.proposedRate), M = !!t.includeReferral, ee = M ? Kk(t.referralRate) : 0, P = (t.deductReferral == null ? M : t.deductReferral) ? ee : 0, F = iA(u, p), ne = Xk(u - F), re = iA(j, p),
|
|
23477
|
+
let { contractType: n = "C2C", isEmployerContract: r, currency: i = Uk.currency, currencyRaw: a, rateUnit: o = Uk.rateUnit, employerRateUnit: s, clientRateUnit: c, clientVmsConfigured: l, clientJobRate: u = 0, clientJobRateFrom: d = 0, clientJobRateTo: f = 0, clientVmsPercent: p = 0, clientVmsPercentageType: m = "recurring", proposedRate: h = 0, employerRate: g = 0, employerVmsPercent: _ = 0, employerVmsPercentConfigured: v = 0, employerVmsAvailable: y = !1, employerVmsType: b = "Recurring", employerVmsRequired: x = !1, locationTaxPercent: S = 0 } = e ?? {}, C = t.employerRate == null ? Kk(g) : Kk(t.employerRate), w = t.locationTaxPercent != null && t.locationTaxPercent !== "" ? Kk(t.locationTaxPercent) : S, T = t.employerVmsPercent == null ? null : Kk(t.employerVmsPercent), E = T ?? v, D = T == null ? x : T > 0, O = T == null ? y : T > 0, k = T ?? _, A = N(i, Uk.currency), j = t.proposedRate == null ? Kk(h) : Kk(t.proposedRate), M = !!t.includeReferral, ee = M ? Kk(t.referralRate) : 0, P = (t.deductReferral == null ? M : t.deductReferral) ? ee : 0, F = iA(u, p), ne = Xk(u - F), re = iA(j, p), I = Xk(j - re), oe = n === "W2", se = r ?? !oe, ce = oe ? w : se ? k : 0, le = iA(C, ce), ue = Xk(C - le), de = Xk(I - ue - P), fe = s ?? o, pe = c ?? o;
|
|
23442
23478
|
return {
|
|
23443
23479
|
contractType: n,
|
|
23444
23480
|
currency: A,
|
|
23445
|
-
currencyRaw:
|
|
23481
|
+
currencyRaw: ae(a ?? i),
|
|
23446
23482
|
rateUnit: o,
|
|
23447
|
-
rateUnitLabel:
|
|
23483
|
+
rateUnitLabel: ie(o),
|
|
23448
23484
|
rateUnitShort: te(o),
|
|
23449
23485
|
employerRateUnit: fe,
|
|
23450
23486
|
employerRateUnitShort: te(fe),
|
|
@@ -23462,7 +23498,7 @@ function sA(e, t = {}) {
|
|
|
23462
23498
|
netClientRate: ne,
|
|
23463
23499
|
proposedRate: Xk(j),
|
|
23464
23500
|
discountVms: re,
|
|
23465
|
-
netProposedRate:
|
|
23501
|
+
netProposedRate: I,
|
|
23466
23502
|
employerRate: Xk(C),
|
|
23467
23503
|
employerDeductionPercent: Kk(ce),
|
|
23468
23504
|
employerDeduction: le,
|
|
@@ -23731,7 +23767,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
23731
23767
|
t,
|
|
23732
23768
|
n,
|
|
23733
23769
|
p
|
|
23734
|
-
]), h = Bk(f), [g, _] = z(() => gA(m.proposedRate)), v = !!f.sections.rateBreakdown?.employer?.editable && !f.readOnly, y = !!f.sections.rateBreakdown?.employerVms?.editable && !f.readOnly, [b, x] = z(() => gA(m.employerRate)), [S, C] = z(m.employerVmsPercent), [w, T] = z(!1), [E, D] = z(!1), O = !!f.sections.rateBreakdown?.employer?.editToggle, [k, A] = z(!1), [j, M] = z(null), [ee] = z(() => wA(t)), [N, P] = z(ee.referralId), [F, te] = z(() => gA(ee.referralRate)), [ne, re] = z(ee.historicalReferralRate), [
|
|
23770
|
+
]), h = Bk(f), [g, _] = z(() => gA(m.proposedRate)), v = !!f.sections.rateBreakdown?.employer?.editable && !f.readOnly, y = !!f.sections.rateBreakdown?.employerVms?.editable && !f.readOnly, [b, x] = z(() => gA(m.employerRate)), [S, C] = z(m.employerVmsPercent), [w, T] = z(!1), [E, D] = z(!1), O = !!f.sections.rateBreakdown?.employer?.editToggle, [k, A] = z(!1), [j, M] = z(null), [ee] = z(() => wA(t)), [N, P] = z(ee.referralId), [F, te] = z(() => gA(ee.referralRate)), [ne, re] = z(ee.historicalReferralRate), [ie, ae] = z(ee.referralType), [I, oe] = z(!1), [se, ce] = z(!1), [le, ue] = z(""), [de, fe] = z(!1), [pe, me] = z(""), [he, ge] = z(!1), [_e, ve] = z(""), ye = !!f.sections.rateBreakdown?.editToggle, [be, xe] = z(!1), Se = !ye || be, [Ce, we] = z(!1), [Te, Ee] = z(!1), De = f.sections.referral ?? {}, Oe = t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(F) > 0 || !!N), [ke, Ae] = z(!!Oe), je = t?.client?.referralEnabled, Me = De.toggle !== !0 || De.requireClientEnabled === !1 || je === !0 || je === "true", Ne = (De.toggle !== !0 || a) && Me, Pe = De.toggle === !0 && Ne, Fe = Number(F) > 0, Ie = Ne && De.show === !0 ? !Pe || ke : De.show === "ifEnabled" ? ke : De.show === "ifExists" && Fe, Le = String(ie ?? "").trim().toLowerCase().replace(/[\s_-]+/g, "").startsWith("onetime"), Re = h && Ie, ze = Re && !Le, Be = f.rejection?.show ? zk(f, t) : "", Ve = v && Se && (!O || k), He = y && m.contractType !== "W2" && m.isEmployerContract !== !1, Ue = m.contractType === "W2", We = Array.isArray(n?.locationOptions) ? n.locationOptions : [], Ge = n?.locationId ? String(n.locationId) : "", Ke = j ? We.find((e) => e.value === j) ?? null : null, qe = !!(Ue && Ve && Ke && Ke.value !== Ge), Je = () => {
|
|
23735
23771
|
x(gA(m.employerRate)), C(m.employerVmsPercent), M(null), T(!1), D(!1), A(!1);
|
|
23736
23772
|
}, Ye = R(() => sA(m, {
|
|
23737
23773
|
proposedRate: f.sections.rateBreakdown?.proposed?.editable ? g ?? 0 : void 0,
|
|
@@ -23782,7 +23818,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
23782
23818
|
}), kt = Dt ? "Enter the Proposed Rate first — it drives the margin and the rate sent for approval." : Ot ? "Enter the referral rate for the selected referral company." : bt ? Tt("blockMessage") : "", At = (e) => {
|
|
23783
23819
|
P(e), Ee(!1);
|
|
23784
23820
|
let t = (i ?? []).find((t) => t.value === e), n = bA(t, De);
|
|
23785
|
-
te(n.referralRate), re(n.historicalReferralRate), t?.type &&
|
|
23821
|
+
te(n.referralRate), re(n.historicalReferralRate), t?.type && ae(t.type), o?.(e, t);
|
|
23786
23822
|
}, jt = (e) => {
|
|
23787
23823
|
let t = e.target.checked;
|
|
23788
23824
|
Ae(t), t && De.toggleInPreview && xe(!0), Ee(t);
|
|
@@ -23829,7 +23865,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
23829
23865
|
referral: Ie ? {
|
|
23830
23866
|
referralId: N,
|
|
23831
23867
|
referralRate: Ye.referralRate,
|
|
23832
|
-
referralType:
|
|
23868
|
+
referralType: ie,
|
|
23833
23869
|
referralEnabled: !0
|
|
23834
23870
|
} : {
|
|
23835
23871
|
referralEnabled: !1,
|
|
@@ -24201,14 +24237,14 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
24201
24237
|
prefix: Qe,
|
|
24202
24238
|
suffix: at || void 0,
|
|
24203
24239
|
controls: !1,
|
|
24204
|
-
status:
|
|
24240
|
+
status: I || bt ? "error" : xt ? "warning" : ""
|
|
24205
24241
|
})]
|
|
24206
24242
|
}),
|
|
24207
24243
|
/* @__PURE__ */ Z("div", {
|
|
24208
24244
|
className: "fa-editable-sub",
|
|
24209
24245
|
children: "rate we ask the client for"
|
|
24210
24246
|
}),
|
|
24211
|
-
|
|
24247
|
+
I && /* @__PURE__ */ Q("div", {
|
|
24212
24248
|
className: "fa-reason-error",
|
|
24213
24249
|
children: ["! ", ft.message]
|
|
24214
24250
|
}),
|
|
@@ -24289,7 +24325,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
24289
24325
|
className: "fa-card-head",
|
|
24290
24326
|
children: [/* @__PURE__ */ Q("h3", { children: [/* @__PURE__ */ Z("span", { className: "fa-dot fa-dot-warning" }), "Referral"] }), De.mode === "print" && De.typeChip && /* @__PURE__ */ Z("span", {
|
|
24291
24327
|
className: "fa-type-chip",
|
|
24292
|
-
children:
|
|
24328
|
+
children: ie
|
|
24293
24329
|
})]
|
|
24294
24330
|
}), /* @__PURE__ */ Z("div", {
|
|
24295
24331
|
className: "fa-card-body",
|
|
@@ -24354,8 +24390,8 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
24354
24390
|
}), /* @__PURE__ */ Z(W, {
|
|
24355
24391
|
id: "fa-referral-type",
|
|
24356
24392
|
className: "fa-referral-type",
|
|
24357
|
-
value:
|
|
24358
|
-
onChange:
|
|
24393
|
+
value: ie,
|
|
24394
|
+
onChange: ae,
|
|
24359
24395
|
disabled: !N,
|
|
24360
24396
|
options: [{
|
|
24361
24397
|
value: "Recurring",
|
|
@@ -24632,7 +24668,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
24632
24668
|
/* @__PURE__ */ Q("b", { children: [vA(Ye.netProposedRate, Qe), at] }),
|
|
24633
24669
|
Ie ? /* @__PURE__ */ Q(X, { children: [
|
|
24634
24670
|
" including the ",
|
|
24635
|
-
String(
|
|
24671
|
+
String(ie).toLowerCase(),
|
|
24636
24672
|
" ",
|
|
24637
24673
|
/* @__PURE__ */ Q("b", { children: [vA(F, Qe), at] }),
|
|
24638
24674
|
" referral"
|
|
@@ -24809,7 +24845,7 @@ async function tj(e, t = {}) {
|
|
|
24809
24845
|
let D = (Array.isArray(v) ? v : []).find((t) => Qk(t.submissionId) === String(e)), O = Qk(E.clientId) || Qk(D?.clientId) || c, k = a.clientName ?? t.clientName ?? E.clientName, A = k ? h.filter((e) => GA(e.clientName) === GA(k)) : [], j = h.find(JA(O)) ?? A[0] ?? {}, M = await $A("clients", Qk(j._id ?? j.id) || O), ee = {
|
|
24810
24846
|
...j,
|
|
24811
24847
|
...M
|
|
24812
|
-
}, N = u && Qk(g?._id ?? g?.id) === u ? g : {}, P = String(N.empCompanyName ?? "").trim(), F = _.find(JA(f)) ?? _.find((e) => GA(e.name) === GA(f)) ?? {}, te = x.recruitingUserId ?? a.recruitingUserId ?? t.recruitingUserId, ne = te != null && te !== "" && te !== 0, re = ne && String(te) !== String(d) ? await XA(te) : ne ? b : null,
|
|
24848
|
+
}, N = u && Qk(g?._id ?? g?.id) === u ? g : {}, P = String(N.empCompanyName ?? "").trim(), F = _.find(JA(f)) ?? _.find((e) => GA(e.name) === GA(f)) ?? {}, te = x.recruitingUserId ?? a.recruitingUserId ?? t.recruitingUserId, ne = te != null && te !== "" && te !== 0, re = ne && String(te) !== String(d) ? await XA(te) : ne ? b : null, ie = BA(r, "locationId"), ae = /w2/i.test(String(a.contractType ?? x.contractType ?? t.contractType ?? "")) && ie ? await WA(ie, (e) => S(s, e)).catch(() => []) : [];
|
|
24813
24849
|
return {
|
|
24814
24850
|
record: {
|
|
24815
24851
|
submission: {
|
|
@@ -24832,8 +24868,8 @@ async function tj(e, t = {}) {
|
|
|
24832
24868
|
clientVmsFee: ee.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
|
|
24833
24869
|
locationTaxPercent: o.tax ?? F.taxValue,
|
|
24834
24870
|
locationId: Qk(F._id ?? F.id) || (f ? String(Qk(f) || f) : ""),
|
|
24835
|
-
locationOptions:
|
|
24836
|
-
locationFieldLabel:
|
|
24871
|
+
locationOptions: ae,
|
|
24872
|
+
locationFieldLabel: ie?.label ?? "Location"
|
|
24837
24873
|
},
|
|
24838
24874
|
display: {
|
|
24839
24875
|
clientName: a.clientName ?? ee.clientName,
|
|
@@ -41877,9 +41913,9 @@ function II() {
|
|
|
41877
41913
|
function re(e) {
|
|
41878
41914
|
ne(e, null);
|
|
41879
41915
|
}
|
|
41880
|
-
let
|
|
41881
|
-
function
|
|
41882
|
-
if (!
|
|
41916
|
+
let ie = (e) => ["submission", "submissions"].includes(String(e || "").toLowerCase());
|
|
41917
|
+
function ae(e = c, t = b) {
|
|
41918
|
+
if (!ie(e)) return;
|
|
41883
41919
|
let n = e !== "all" && (t.clientId || t.region) ? t : {};
|
|
41884
41920
|
k(!0), pn(e, n).then((e) => D({
|
|
41885
41921
|
requireAcknowledge: e?.requireAcknowledge === !0,
|
|
@@ -41887,8 +41923,8 @@ function II() {
|
|
|
41887
41923
|
allowLinkedInInResume: e?.allowLinkedInInResume === !0
|
|
41888
41924
|
})).catch(() => Y.error("Could not load preview settings")).finally(() => k(!1));
|
|
41889
41925
|
}
|
|
41890
|
-
async function
|
|
41891
|
-
if (
|
|
41926
|
+
async function I() {
|
|
41927
|
+
if (ie(c)) {
|
|
41892
41928
|
j(!0);
|
|
41893
41929
|
try {
|
|
41894
41930
|
await xe(c, E, he()), Y.success("Preview settings saved"), re(c);
|
|
@@ -41900,7 +41936,7 @@ function II() {
|
|
|
41900
41936
|
}
|
|
41901
41937
|
}
|
|
41902
41938
|
function oe(e) {
|
|
41903
|
-
l(e), (!o[e]?.loaded || o[e]?.scopeKey !== te(e)) && re(e),
|
|
41939
|
+
l(e), (!o[e]?.loaded || o[e]?.scopeKey !== te(e)) && re(e), ie(e) && ae(e, b);
|
|
41904
41940
|
}
|
|
41905
41941
|
function se() {
|
|
41906
41942
|
p(null), d(!0);
|
|
@@ -41963,7 +41999,7 @@ function II() {
|
|
|
41963
41999
|
})).catch((e) => N(c, {
|
|
41964
42000
|
error: e.message || "Could not load scoped groups",
|
|
41965
42001
|
loading: !1
|
|
41966
|
-
})),
|
|
42002
|
+
})), ie(c) && (k(!0), pn(c, n).then((e) => D({
|
|
41967
42003
|
requireAcknowledge: e?.requireAcknowledge === !0,
|
|
41968
42004
|
acknowledgeText: e?.acknowledgeText || "I acknowledge that I have reviewed the submission details.",
|
|
41969
42005
|
allowLinkedInInResume: e?.allowLinkedInInResume === !0
|
|
@@ -42129,7 +42165,7 @@ function II() {
|
|
|
42129
42165
|
]
|
|
42130
42166
|
})]
|
|
42131
42167
|
}) }),
|
|
42132
|
-
|
|
42168
|
+
ie(c) && /* @__PURE__ */ Z(KN, { children: /* @__PURE__ */ Z(os, {
|
|
42133
42169
|
spinning: O,
|
|
42134
42170
|
children: /* @__PURE__ */ Q(G, {
|
|
42135
42171
|
direction: "vertical",
|
|
@@ -42185,12 +42221,12 @@ function II() {
|
|
|
42185
42221
|
size: "small",
|
|
42186
42222
|
icon: /* @__PURE__ */ Z(Qc, {}),
|
|
42187
42223
|
loading: A,
|
|
42188
|
-
onClick:
|
|
42224
|
+
onClick: I,
|
|
42189
42225
|
children: "Save Preview Settings"
|
|
42190
42226
|
}), /* @__PURE__ */ Z(B, {
|
|
42191
42227
|
size: "small",
|
|
42192
42228
|
icon: /* @__PURE__ */ Z(Kc, {}),
|
|
42193
|
-
onClick: () =>
|
|
42229
|
+
onClick: () => ae(c, b),
|
|
42194
42230
|
children: "Reload"
|
|
42195
42231
|
})] })
|
|
42196
42232
|
]
|
|
@@ -44331,7 +44367,7 @@ function vL({ open: e, onClose: t }) {
|
|
|
44331
44367
|
});
|
|
44332
44368
|
}
|
|
44333
44369
|
function yL() {
|
|
44334
|
-
let [e, t] = z([]), [n, r] = z(!0), [i, a] = z(""), [o, s] = z([]), [c, l] = z([]), [u, d] = z([]), [f, p] = z({}), [m, h] = z([]), [g, _] = z([]), [v, y] = z({}), [b, x] = z(!1), [S, C] = z(""), [w, T] = z(!1), [E, D] = z(null), [O, k] = z(null), [A, j] = z(!1), [M, ee] = z(!1), [N, P] = z(null), [F, te] = z(0), [ne, re] = z(""), [
|
|
44370
|
+
let [e, t] = z([]), [n, r] = z(!0), [i, a] = z(""), [o, s] = z([]), [c, l] = z([]), [u, d] = z([]), [f, p] = z({}), [m, h] = z([]), [g, _] = z([]), [v, y] = z({}), [b, x] = z(!1), [S, C] = z(""), [w, T] = z(!1), [E, D] = z(null), [O, k] = z(null), [A, j] = z(!1), [M, ee] = z(!1), [N, P] = z(null), [F, te] = z(0), [ne, re] = z(""), [ie, ae] = z([]), [I, oe] = z(""), [se, ce] = z(""), [le, ue] = z({});
|
|
44335
44371
|
function de(e) {
|
|
44336
44372
|
P(XI[e]);
|
|
44337
44373
|
}
|
|
@@ -44391,7 +44427,7 @@ function yL() {
|
|
|
44391
44427
|
P(null), te((e) => e + 1);
|
|
44392
44428
|
}
|
|
44393
44429
|
L(() => {
|
|
44394
|
-
Te({ limit: 200 }).then(
|
|
44430
|
+
Te({ limit: 200 }).then(ae).catch(() => ae([]));
|
|
44395
44431
|
}, []), L(() => {
|
|
44396
44432
|
$e().then((e) => {
|
|
44397
44433
|
let n = CP(e).map(({ value: e, label: t }) => ({
|
|
@@ -44406,10 +44442,10 @@ function yL() {
|
|
|
44406
44442
|
return (async () => {
|
|
44407
44443
|
x(!0), C("");
|
|
44408
44444
|
try {
|
|
44409
|
-
let [t, n] = await Promise.all([Se(i, { clientId:
|
|
44445
|
+
let [t, n] = await Promise.all([Se(i, { clientId: I }).catch((e) => {
|
|
44410
44446
|
if (e?.status === 404) return [];
|
|
44411
44447
|
throw e;
|
|
44412
|
-
}), Jn(i, { clientId:
|
|
44448
|
+
}), Jn(i, { clientId: I })]);
|
|
44413
44449
|
if (e) return;
|
|
44414
44450
|
let r = n.sourceFields ?? [], a = HI(VI(t, r), n.groups ?? []), o = a.groups;
|
|
44415
44451
|
ce(n.clientId ?? ""), _(r), y(a.labels), s(o), l(tL(o)), d(o.map((e) => ({
|
|
@@ -44431,7 +44467,7 @@ function yL() {
|
|
|
44431
44467
|
}, [
|
|
44432
44468
|
i,
|
|
44433
44469
|
F,
|
|
44434
|
-
|
|
44470
|
+
I
|
|
44435
44471
|
]);
|
|
44436
44472
|
let ve = R(() => c.map((e) => ({
|
|
44437
44473
|
value: e.key,
|
|
@@ -44447,11 +44483,11 @@ function yL() {
|
|
|
44447
44483
|
merges: rL(m),
|
|
44448
44484
|
sourceFields: g,
|
|
44449
44485
|
groups: UI(v),
|
|
44450
|
-
clientId:
|
|
44486
|
+
clientId: I
|
|
44451
44487
|
}), n.length && (s(t), l(tL(t)), d(t.map((e) => ({
|
|
44452
44488
|
value: e.name,
|
|
44453
44489
|
label: e.label ?? e.name
|
|
44454
|
-
})))), ce(
|
|
44490
|
+
})))), ce(I), Y.success(I ? "Detail view configuration saved for this client" : "Detail view configuration saved");
|
|
44455
44491
|
} catch (e) {
|
|
44456
44492
|
Y.error(e?.message || "Could not save configuration");
|
|
44457
44493
|
} finally {
|
|
@@ -45013,9 +45049,9 @@ function yL() {
|
|
|
45013
45049
|
showSearch: !0,
|
|
45014
45050
|
placeholder: "Client (default)",
|
|
45015
45051
|
style: { width: 240 },
|
|
45016
|
-
value:
|
|
45052
|
+
value: I || void 0,
|
|
45017
45053
|
optionFilterProp: "label",
|
|
45018
|
-
options:
|
|
45054
|
+
options: ie.map((e) => ({
|
|
45019
45055
|
value: e._id ?? e.id,
|
|
45020
45056
|
label: e.clientName ?? e.name ?? e.clientRefrenceId ?? e._id
|
|
45021
45057
|
})).filter((e) => e.value),
|
|
@@ -45028,7 +45064,7 @@ function yL() {
|
|
|
45028
45064
|
})]
|
|
45029
45065
|
})]
|
|
45030
45066
|
}),
|
|
45031
|
-
|
|
45067
|
+
I && !se && !b && /* @__PURE__ */ Z(Ao, {
|
|
45032
45068
|
type: "info",
|
|
45033
45069
|
showIcon: !0,
|
|
45034
45070
|
style: { marginBottom: 12 },
|
|
@@ -45187,7 +45223,7 @@ function yL() {
|
|
|
45187
45223
|
onVerified: _e,
|
|
45188
45224
|
onConfirm: N?.action === "discoverFields" ? (e) => Hn({
|
|
45189
45225
|
module: i,
|
|
45190
|
-
clientId:
|
|
45226
|
+
clientId: I,
|
|
45191
45227
|
otp: e
|
|
45192
45228
|
}) : void 0
|
|
45193
45229
|
})
|
|
@@ -46180,9 +46216,9 @@ function JL() {
|
|
|
46180
46216
|
}
|
|
46181
46217
|
}, [te, ne] = z(null), re = (e = null) => {
|
|
46182
46218
|
ne(typeof e == "string" ? e : null), x(null), y(!0);
|
|
46183
|
-
},
|
|
46219
|
+
}, ie = (e, t = null) => {
|
|
46184
46220
|
ne(t), x(e), y(!0);
|
|
46185
|
-
},
|
|
46221
|
+
}, ae = async (e) => {
|
|
46186
46222
|
let t;
|
|
46187
46223
|
t = te ? c.map((t) => {
|
|
46188
46224
|
if (t.key !== te) return t;
|
|
@@ -46223,7 +46259,7 @@ function JL() {
|
|
|
46223
46259
|
} catch (e) {
|
|
46224
46260
|
Y.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && N();
|
|
46225
46261
|
}
|
|
46226
|
-
},
|
|
46262
|
+
}, I = (e, t = null) => {
|
|
46227
46263
|
l(t ? (n) => n.map((n) => n.key === t ? {
|
|
46228
46264
|
...n,
|
|
46229
46265
|
children: (n.children ?? []).filter((t) => t.key !== e)
|
|
@@ -46370,12 +46406,12 @@ function JL() {
|
|
|
46370
46406
|
size: "small",
|
|
46371
46407
|
type: "text",
|
|
46372
46408
|
icon: /* @__PURE__ */ Z(tc, {}),
|
|
46373
|
-
onClick: () =>
|
|
46409
|
+
onClick: () => ie(t)
|
|
46374
46410
|
})
|
|
46375
46411
|
}),
|
|
46376
46412
|
/* @__PURE__ */ Z(Zo, {
|
|
46377
46413
|
title: "Remove this action?",
|
|
46378
|
-
onConfirm: () =>
|
|
46414
|
+
onConfirm: () => I(t.key),
|
|
46379
46415
|
okText: "Remove",
|
|
46380
46416
|
okType: "danger",
|
|
46381
46417
|
children: /* @__PURE__ */ Z(J, {
|
|
@@ -46449,11 +46485,11 @@ function JL() {
|
|
|
46449
46485
|
size: "small",
|
|
46450
46486
|
type: "text",
|
|
46451
46487
|
icon: /* @__PURE__ */ Z(tc, {}),
|
|
46452
|
-
onClick: () =>
|
|
46488
|
+
onClick: () => ie(n, e)
|
|
46453
46489
|
})
|
|
46454
46490
|
}), /* @__PURE__ */ Z(Zo, {
|
|
46455
46491
|
title: "Remove this child action?",
|
|
46456
|
-
onConfirm: () =>
|
|
46492
|
+
onConfirm: () => I(n.key, e),
|
|
46457
46493
|
okText: "Remove",
|
|
46458
46494
|
okType: "danger",
|
|
46459
46495
|
children: /* @__PURE__ */ Z(J, {
|
|
@@ -46666,7 +46702,7 @@ function JL() {
|
|
|
46666
46702
|
permissionModules: A,
|
|
46667
46703
|
permissionActions: M,
|
|
46668
46704
|
onClose: () => y(!1),
|
|
46669
|
-
onSave:
|
|
46705
|
+
onSave: ae
|
|
46670
46706
|
}),
|
|
46671
46707
|
/* @__PURE__ */ Z(DF, {
|
|
46672
46708
|
open: !!E,
|
|
@@ -56257,7 +56293,7 @@ function LB({ title: e, description: t, selectedName: n, loading: r, saving: i,
|
|
|
56257
56293
|
});
|
|
56258
56294
|
}
|
|
56259
56295
|
function RB({ onLogout: e }) {
|
|
56260
|
-
let [t] = H.useForm(), [n] = H.useForm(), [r, i] = z("users"), [a, o] = z(!0), [s, c] = z(!1), [l, u] = z(!1), [d, f] = z([]), [m, h] = z(0), [g, _] = z(1), [v, y] = z(10), [b, x] = z(""), [S, C] = z(""), w = Oo(0), [T, E] = z(!1), [D, O] = z([]), [k, A] = z([]), [j, M] = z([]), [ee, N] = z(null), [P, F] = z([]), [te, ne] = z(!1), [re,
|
|
56296
|
+
let [t] = H.useForm(), [n] = H.useForm(), [r, i] = z("users"), [a, o] = z(!0), [s, c] = z(!1), [l, u] = z(!1), [d, f] = z([]), [m, h] = z(0), [g, _] = z(1), [v, y] = z(10), [b, x] = z(""), [S, C] = z(""), w = Oo(0), [T, E] = z(!1), [D, O] = z([]), [k, A] = z([]), [j, M] = z([]), [ee, N] = z(null), [P, F] = z([]), [te, ne] = z(!1), [re, ie] = z(null), [ae, I] = z(!1), [oe, se] = z(null), [ce, le] = z([]), [ue, de] = z(!1), [pe, me] = z(!1), [he, ge] = z(null), [_e, ve] = z(!1), [ye, be] = z(null), [xe, Se] = z("listView"), [Ce, we] = z([]), [Te, Ee] = z([]), [De, Oe] = z(!1), [ke, Ae] = z(!1), je = p(), Me = R(() => Ce.filter((e) => !e.disabled), [Ce]), Ne = !De && Me.length === 0, Pe = wo(async () => {
|
|
56261
56297
|
Oe(!0);
|
|
56262
56298
|
try {
|
|
56263
56299
|
let [e, t] = await Promise.all([gt(), qe()]), n = uN(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
|
|
@@ -56553,14 +56589,14 @@ function RB({ onLogout: e }) {
|
|
|
56553
56589
|
}
|
|
56554
56590
|
}
|
|
56555
56591
|
function Qe() {
|
|
56556
|
-
|
|
56592
|
+
ie(null), t.resetFields(), t.setFieldsValue({
|
|
56557
56593
|
status: "ACTIVE",
|
|
56558
56594
|
user_type_id: Ve[0]?.user_type_id,
|
|
56559
56595
|
reporting_id: 0
|
|
56560
56596
|
}), ne(!0);
|
|
56561
56597
|
}
|
|
56562
56598
|
function $e(e) {
|
|
56563
|
-
|
|
56599
|
+
ie(e), t.setFieldsValue({
|
|
56564
56600
|
first_name: e.first_name,
|
|
56565
56601
|
last_name: e.last_name,
|
|
56566
56602
|
username: e.username,
|
|
@@ -56573,7 +56609,7 @@ function RB({ onLogout: e }) {
|
|
|
56573
56609
|
}), ne(!0);
|
|
56574
56610
|
}
|
|
56575
56611
|
async function et(e) {
|
|
56576
|
-
|
|
56612
|
+
I(!0);
|
|
56577
56613
|
try {
|
|
56578
56614
|
let t = {
|
|
56579
56615
|
...e,
|
|
@@ -56581,11 +56617,11 @@ function RB({ onLogout: e }) {
|
|
|
56581
56617
|
updated_by: je?.userId ?? null,
|
|
56582
56618
|
created_by: je?.userId ?? null
|
|
56583
56619
|
};
|
|
56584
|
-
t.password || delete t.password, re ? (await jN(re.user_id, t), Y.success("User updated")) : (await AN(t), Y.success("User created")), ne(!1),
|
|
56620
|
+
t.password || delete t.password, re ? (await jN(re.user_id, t), Y.success("User updated")) : (await AN(t), Y.success("User created")), ne(!1), ie(null), await Le();
|
|
56585
56621
|
} catch (e) {
|
|
56586
56622
|
Y.error(e.message || "Unable to save user");
|
|
56587
56623
|
} finally {
|
|
56588
|
-
|
|
56624
|
+
I(!1);
|
|
56589
56625
|
}
|
|
56590
56626
|
}
|
|
56591
56627
|
async function tt(e) {
|
|
@@ -57147,7 +57183,7 @@ function RB({ onLogout: e }) {
|
|
|
57147
57183
|
open: te,
|
|
57148
57184
|
onCancel: () => ne(!1),
|
|
57149
57185
|
onOk: () => t.submit(),
|
|
57150
|
-
confirmLoading:
|
|
57186
|
+
confirmLoading: ae,
|
|
57151
57187
|
destroyOnHidden: !0,
|
|
57152
57188
|
children: /* @__PURE__ */ Q(H, {
|
|
57153
57189
|
form: t,
|
|
@@ -57801,7 +57837,7 @@ function OV() {
|
|
|
57801
57837
|
attachments: [],
|
|
57802
57838
|
showCc: !1,
|
|
57803
57839
|
showBcc: !1
|
|
57804
|
-
}), te = l.autoFetchJobContent && mV.test(E), [ne, re] = z(!te), [
|
|
57840
|
+
}), te = l.autoFetchJobContent && mV.test(E), [ne, re] = z(!te), [ie, ae] = z(!1), [I, oe] = z([]), [se, ce] = z(!1), [le, ue] = z(!1), de = Oo(!1), fe = Oo(""), pe = Oo(""), me = Oo(0);
|
|
57805
57841
|
L(() => {
|
|
57806
57842
|
if (!m) return;
|
|
57807
57843
|
let e = !1;
|
|
@@ -57877,7 +57913,7 @@ function OV() {
|
|
|
57877
57913
|
p
|
|
57878
57914
|
]), L(() => {
|
|
57879
57915
|
if (!l.autoFetchJobContent || !j) {
|
|
57880
|
-
re(!0),
|
|
57916
|
+
re(!0), ae(!1);
|
|
57881
57917
|
return;
|
|
57882
57918
|
}
|
|
57883
57919
|
if (!mV.test(j)) {
|
|
@@ -57886,7 +57922,7 @@ function OV() {
|
|
|
57886
57922
|
}
|
|
57887
57923
|
let e = ++me.current, t = !1;
|
|
57888
57924
|
async function n() {
|
|
57889
|
-
re(!1),
|
|
57925
|
+
re(!1), ae(!0), F((e) => ({
|
|
57890
57926
|
...e,
|
|
57891
57927
|
contents: ""
|
|
57892
57928
|
}));
|
|
@@ -57912,7 +57948,7 @@ function OV() {
|
|
|
57912
57948
|
} catch (n) {
|
|
57913
57949
|
!t && e === me.current && l.requiredJobId && Y.error(n?.message || "Could not load mail template for this Job ID");
|
|
57914
57950
|
} finally {
|
|
57915
|
-
!t && e === me.current && (re(!0),
|
|
57951
|
+
!t && e === me.current && (re(!0), ae(!1));
|
|
57916
57952
|
}
|
|
57917
57953
|
}
|
|
57918
57954
|
return n(), () => {
|
|
@@ -58011,8 +58047,8 @@ function OV() {
|
|
|
58011
58047
|
M(""), A(""), oe([]);
|
|
58012
58048
|
},
|
|
58013
58049
|
placeholder: "Minimum 3 characters",
|
|
58014
|
-
notFoundContent: se ||
|
|
58015
|
-
options:
|
|
58050
|
+
notFoundContent: se || ie ? /* @__PURE__ */ Z(os, { size: "small" }) : null,
|
|
58051
|
+
options: I,
|
|
58016
58052
|
className: "mail-popup__job-input",
|
|
58017
58053
|
"aria-required": l.requiredJobId
|
|
58018
58054
|
})]
|
|
@@ -58048,7 +58084,7 @@ function OV() {
|
|
|
58048
58084
|
children: "Retry"
|
|
58049
58085
|
})
|
|
58050
58086
|
}), /* @__PURE__ */ Z(os, {
|
|
58051
|
-
spinning:
|
|
58087
|
+
spinning: ie || h,
|
|
58052
58088
|
description: h ? "Loading selected candidate emails..." : "Loading mail content...",
|
|
58053
58089
|
size: "large",
|
|
58054
58090
|
children: /* @__PURE__ */ Z(fV, {
|
|
@@ -60251,15 +60287,15 @@ function SU({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
|
|
|
60251
60287
|
L(() => {
|
|
60252
60288
|
!e || !te || ee();
|
|
60253
60289
|
}, [e, te]);
|
|
60254
|
-
let ne = m.length, re = String(g).replace(/s$/i, ""),
|
|
60290
|
+
let ne = m.length, re = String(g).replace(/s$/i, ""), ie = ne === 1 ? re : g, ae = h[0] ?? {}, I = t?.getTitleText ? t.getTitleText(ne, ie, ae, p) : t?.title, oe = ne === 1 ? ae.jobTitle ?? ae.title ?? ae.name ?? ae.fullName ?? ae.candidateName ?? null : null, se = t?.getBodyText ? t.getBodyText(ne, re, ie, oe, p) : t?.bodyText ?? null, ce = typeof t?.getNote == "function" ? t.getNote(p) : t?.note, le = t?.disabledUntilFilled && !k && !j;
|
|
60255
60291
|
if (!t || !e || te) return null;
|
|
60256
60292
|
let ue = t.component;
|
|
60257
60293
|
return ue ? /* @__PURE__ */ Z(o, {
|
|
60258
60294
|
open: e,
|
|
60259
60295
|
title: t.title || t.getTitleText ? o === Yo ? /* @__PURE__ */ Z(uH, {
|
|
60260
|
-
titleText:
|
|
60296
|
+
titleText: I,
|
|
60261
60297
|
titleIcon: t.titleIcon
|
|
60262
|
-
}) :
|
|
60298
|
+
}) : I : null,
|
|
60263
60299
|
footer: null,
|
|
60264
60300
|
width: t.width ?? 760,
|
|
60265
60301
|
centered: !0,
|
|
@@ -60276,9 +60312,9 @@ function SU({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
|
|
|
60276
60312
|
}) : /* @__PURE__ */ Q(o, {
|
|
60277
60313
|
open: e,
|
|
60278
60314
|
title: o === Yo ? /* @__PURE__ */ Z(uH, {
|
|
60279
|
-
titleText:
|
|
60315
|
+
titleText: I,
|
|
60280
60316
|
titleIcon: t.titleIcon
|
|
60281
|
-
}) :
|
|
60317
|
+
}) : I,
|
|
60282
60318
|
okText: t.okText || "OK",
|
|
60283
60319
|
cancelText: t.cancelText ?? "Cancel",
|
|
60284
60320
|
onOk: ee,
|
|
@@ -60300,7 +60336,7 @@ function SU({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
|
|
|
60300
60336
|
description: t.description,
|
|
60301
60337
|
showSelectedCount: t.showSelectedCount,
|
|
60302
60338
|
count: ne,
|
|
60303
|
-
itemLabel:
|
|
60339
|
+
itemLabel: ie,
|
|
60304
60340
|
bodyText: se,
|
|
60305
60341
|
deleteError: P
|
|
60306
60342
|
}),
|
|
@@ -62515,7 +62551,7 @@ function KG() {
|
|
|
62515
62551
|
function re() {
|
|
62516
62552
|
e(-1);
|
|
62517
62553
|
}
|
|
62518
|
-
function
|
|
62554
|
+
function ie() {
|
|
62519
62555
|
te && WG.submit({
|
|
62520
62556
|
jobId: l,
|
|
62521
62557
|
toMail: KB(P.to),
|
|
@@ -62533,7 +62569,7 @@ function KG() {
|
|
|
62533
62569
|
Y.error(e?.message || "Failed to send mail. Please try again.");
|
|
62534
62570
|
});
|
|
62535
62571
|
}
|
|
62536
|
-
let
|
|
62572
|
+
let ae = R(() => {
|
|
62537
62573
|
if (!g) return v;
|
|
62538
62574
|
let e = g.toLowerCase();
|
|
62539
62575
|
return v.filter((t) => (t.vendorName ?? "").toLowerCase().includes(e) || (t.vendorEmail ?? "").toLowerCase().includes(e) || (t.vendorLocation ?? "").toLowerCase().includes(e));
|
|
@@ -62553,7 +62589,7 @@ function KG() {
|
|
|
62553
62589
|
}), /* @__PURE__ */ Z(B, {
|
|
62554
62590
|
type: "primary",
|
|
62555
62591
|
disabled: !te,
|
|
62556
|
-
onClick:
|
|
62592
|
+
onClick: ie,
|
|
62557
62593
|
children: "Send"
|
|
62558
62594
|
})]
|
|
62559
62595
|
}),
|
|
@@ -62616,7 +62652,7 @@ function KG() {
|
|
|
62616
62652
|
children: /* @__PURE__ */ Z(ls, {
|
|
62617
62653
|
rowKey: (e) => e.vendorId,
|
|
62618
62654
|
columns: GG,
|
|
62619
|
-
dataSource:
|
|
62655
|
+
dataSource: ae,
|
|
62620
62656
|
loading: A,
|
|
62621
62657
|
pagination: !1,
|
|
62622
62658
|
size: "small",
|
|
@@ -66742,7 +66778,7 @@ function Lq() {
|
|
|
66742
66778
|
} finally {
|
|
66743
66779
|
y(!1);
|
|
66744
66780
|
}
|
|
66745
|
-
}, []),
|
|
66781
|
+
}, []), ie = wo(async (t, n, r, i = "") => {
|
|
66746
66782
|
if (!t || !n || !r) {
|
|
66747
66783
|
d([]), e.setFieldsValue({ step_order: void 0 });
|
|
66748
66784
|
return;
|
|
@@ -66766,7 +66802,7 @@ function Lq() {
|
|
|
66766
66802
|
} finally {
|
|
66767
66803
|
S(!1);
|
|
66768
66804
|
}
|
|
66769
|
-
}, [e]),
|
|
66805
|
+
}, [e]), ae = wo(async (e = "") => {
|
|
66770
66806
|
if (!(!a?.id || !D || !O)) {
|
|
66771
66807
|
S(!0);
|
|
66772
66808
|
try {
|
|
@@ -66788,7 +66824,7 @@ function Lq() {
|
|
|
66788
66824
|
a?.id,
|
|
66789
66825
|
D,
|
|
66790
66826
|
O
|
|
66791
|
-
]),
|
|
66827
|
+
]), I = wo(async () => {
|
|
66792
66828
|
if (!(!r || !a?.name)) {
|
|
66793
66829
|
E(!0);
|
|
66794
66830
|
try {
|
|
@@ -66831,7 +66867,7 @@ function Lq() {
|
|
|
66831
66867
|
return;
|
|
66832
66868
|
}
|
|
66833
66869
|
Promise.resolve().then(async () => {
|
|
66834
|
-
await te(), await ne(a.name), r && await
|
|
66870
|
+
await te(), await ne(a.name), r && await I();
|
|
66835
66871
|
});
|
|
66836
66872
|
}, [
|
|
66837
66873
|
a,
|
|
@@ -66839,7 +66875,7 @@ function Lq() {
|
|
|
66839
66875
|
te,
|
|
66840
66876
|
ne,
|
|
66841
66877
|
r,
|
|
66842
|
-
|
|
66878
|
+
I
|
|
66843
66879
|
]), a ? /* @__PURE__ */ Q("main", {
|
|
66844
66880
|
className: "jobs-list-page",
|
|
66845
66881
|
children: [/* @__PURE__ */ Q(ns, {
|
|
@@ -66893,7 +66929,7 @@ function Lq() {
|
|
|
66893
66929
|
value: void 0,
|
|
66894
66930
|
expected: void 0,
|
|
66895
66931
|
description: void 0
|
|
66896
|
-
}), await
|
|
66932
|
+
}), await ie(o.product_parent_ID, o.module_parent_ID, o.submodule_parent_ID);
|
|
66897
66933
|
} catch (e) {
|
|
66898
66934
|
console.error("Unable to save test case:", e), Y.error(i ? "Unable to update test case." : "Unable to save step.");
|
|
66899
66935
|
} finally {
|
|
@@ -66976,7 +67012,7 @@ function Lq() {
|
|
|
66976
67012
|
"key",
|
|
66977
67013
|
"value",
|
|
66978
67014
|
"expected"
|
|
66979
|
-
]),
|
|
67015
|
+
]), ie(a?.id, D, t);
|
|
66980
67016
|
}
|
|
66981
67017
|
})
|
|
66982
67018
|
})
|
|
@@ -67075,7 +67111,7 @@ function Lq() {
|
|
|
67075
67111
|
"key",
|
|
67076
67112
|
"value",
|
|
67077
67113
|
"expected"
|
|
67078
|
-
]),
|
|
67114
|
+
]), ae(t || "");
|
|
67079
67115
|
}
|
|
67080
67116
|
})
|
|
67081
67117
|
})
|
|
@@ -67995,7 +68031,7 @@ function sJ() {
|
|
|
67995
68031
|
O,
|
|
67996
68032
|
D
|
|
67997
68033
|
]);
|
|
67998
|
-
let
|
|
68034
|
+
let ie = async (t) => {
|
|
67999
68035
|
let n = {
|
|
68000
68036
|
module: rJ(t.module),
|
|
68001
68037
|
flow: rJ(t.flow),
|
|
@@ -68016,9 +68052,9 @@ function sJ() {
|
|
|
68016
68052
|
} finally {
|
|
68017
68053
|
C(!1);
|
|
68018
68054
|
}
|
|
68019
|
-
},
|
|
68055
|
+
}, ae = (t, n) => {
|
|
68020
68056
|
e.setFieldsValue({ [t]: rJ(n) });
|
|
68021
|
-
},
|
|
68057
|
+
}, I = (t) => {
|
|
68022
68058
|
e.setFieldsValue({
|
|
68023
68059
|
module: rJ(t),
|
|
68024
68060
|
flow: void 0,
|
|
@@ -68127,7 +68163,7 @@ function sJ() {
|
|
|
68127
68163
|
children: " *"
|
|
68128
68164
|
})] }),
|
|
68129
68165
|
initialValues: Zq,
|
|
68130
|
-
onFinish:
|
|
68166
|
+
onFinish: ie,
|
|
68131
68167
|
autoComplete: "off",
|
|
68132
68168
|
children: [/* @__PURE__ */ Z(Fo, {
|
|
68133
68169
|
className: "v1-card",
|
|
@@ -68159,7 +68195,7 @@ function sJ() {
|
|
|
68159
68195
|
optionFilterProp: "label",
|
|
68160
68196
|
placeholder: "Select module",
|
|
68161
68197
|
options: E,
|
|
68162
|
-
onChange:
|
|
68198
|
+
onChange: I
|
|
68163
68199
|
})
|
|
68164
68200
|
}), /* @__PURE__ */ Z(B, {
|
|
68165
68201
|
"aria-label": "Add module",
|
|
@@ -68228,7 +68264,7 @@ function sJ() {
|
|
|
68228
68264
|
disabled: ee,
|
|
68229
68265
|
placeholder: "Enter description",
|
|
68230
68266
|
showCount: !0,
|
|
68231
|
-
onBlur: (e) =>
|
|
68267
|
+
onBlur: (e) => ae("description", e.target.value)
|
|
68232
68268
|
})
|
|
68233
68269
|
})
|
|
68234
68270
|
}),
|
|
@@ -68246,7 +68282,7 @@ function sJ() {
|
|
|
68246
68282
|
maxLength: 255,
|
|
68247
68283
|
disabled: ee || !!k && !N.key,
|
|
68248
68284
|
placeholder: ee ? "Select module and flow first" : k ? N.key ? "Required — Enter selector / locator" : "Not needed for this action" : "Select an action first",
|
|
68249
|
-
onBlur: (e) =>
|
|
68285
|
+
onBlur: (e) => ae("target", e.target.value)
|
|
68250
68286
|
})
|
|
68251
68287
|
})
|
|
68252
68288
|
}),
|
|
@@ -68261,7 +68297,7 @@ function sJ() {
|
|
|
68261
68297
|
disabled: ee,
|
|
68262
68298
|
placeholder: "Enter tags",
|
|
68263
68299
|
prefix: /* @__PURE__ */ Z(dl, { className: "v1-input-icon" }),
|
|
68264
|
-
onBlur: (e) =>
|
|
68300
|
+
onBlur: (e) => ae("tags", e.target.value)
|
|
68265
68301
|
})
|
|
68266
68302
|
})
|
|
68267
68303
|
}),
|
|
@@ -68279,7 +68315,7 @@ function sJ() {
|
|
|
68279
68315
|
rows: 4,
|
|
68280
68316
|
disabled: ee || !!k && !N.value,
|
|
68281
68317
|
placeholder: ee ? "Select module and flow first" : k ? N.value ? "Required — Enter value" : "Not needed for this action" : "Select an action first",
|
|
68282
|
-
onBlur: (e) =>
|
|
68318
|
+
onBlur: (e) => ae("value", e.target.value)
|
|
68283
68319
|
})
|
|
68284
68320
|
})
|
|
68285
68321
|
}),
|
|
@@ -68297,7 +68333,7 @@ function sJ() {
|
|
|
68297
68333
|
rows: 4,
|
|
68298
68334
|
disabled: ee || !!k && !N.expected,
|
|
68299
68335
|
placeholder: ee ? "Select module and flow first" : k ? N.expected ? "Required — Enter expected result" : "Not needed for this action" : "Select an action first",
|
|
68300
|
-
onBlur: (e) =>
|
|
68336
|
+
onBlur: (e) => ae("expected", e.target.value)
|
|
68301
68337
|
})
|
|
68302
68338
|
})
|
|
68303
68339
|
})
|
|
@@ -69092,12 +69128,12 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69092
69128
|
C[t.key] !== void 0 && e.add(t.key);
|
|
69093
69129
|
}), te(e);
|
|
69094
69130
|
}
|
|
69095
|
-
let
|
|
69131
|
+
let ie = Oo(/* @__PURE__ */ new Set());
|
|
69096
69132
|
L(() => {
|
|
69097
69133
|
h.forEach((e) => {
|
|
69098
69134
|
if (e.kind !== VJ.OPTIONS || !F.has(e.key)) return;
|
|
69099
69135
|
let n = `${e.key}|${t}|${b}`;
|
|
69100
|
-
|
|
69136
|
+
ie.current.has(n) || (ie.current.add(n), y(e.key, "", {
|
|
69101
69137
|
...e.fetchMeta,
|
|
69102
69138
|
scope: t,
|
|
69103
69139
|
...x ?? {}
|
|
@@ -69111,17 +69147,17 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69111
69147
|
x,
|
|
69112
69148
|
y
|
|
69113
69149
|
]);
|
|
69114
|
-
let
|
|
69150
|
+
let ae = (e) => {
|
|
69115
69151
|
te((t) => {
|
|
69116
69152
|
let n = new Set(t);
|
|
69117
69153
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
69118
69154
|
});
|
|
69119
|
-
},
|
|
69155
|
+
}, I = $J(r);
|
|
69120
69156
|
return o ? /* @__PURE__ */ Z("aside", {
|
|
69121
69157
|
className: `cc-filter-rail cc-filter-rail--collapsed ${d}`.trim(),
|
|
69122
69158
|
"aria-label": a,
|
|
69123
69159
|
children: /* @__PURE__ */ Z(J, {
|
|
69124
|
-
title:
|
|
69160
|
+
title: I ? `Show ${a.toLowerCase()} (${I} active)` : `Show ${a.toLowerCase()}`,
|
|
69125
69161
|
placement: "right",
|
|
69126
69162
|
children: /* @__PURE__ */ Z(B, {
|
|
69127
69163
|
type: "text",
|
|
@@ -69130,7 +69166,7 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69130
69166
|
"aria-expanded": !1,
|
|
69131
69167
|
onClick: s,
|
|
69132
69168
|
icon: /* @__PURE__ */ Z(No, {
|
|
69133
|
-
count:
|
|
69169
|
+
count: I,
|
|
69134
69170
|
size: "small",
|
|
69135
69171
|
offset: [4, -4],
|
|
69136
69172
|
children: /* @__PURE__ */ Z(Qs, {})
|
|
@@ -69144,9 +69180,9 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69144
69180
|
className: "cc-filter-rail__head",
|
|
69145
69181
|
children: [/* @__PURE__ */ Q("span", {
|
|
69146
69182
|
className: "cc-filter-rail__title",
|
|
69147
|
-
children: [a,
|
|
69183
|
+
children: [a, I > 0 && /* @__PURE__ */ Z("span", {
|
|
69148
69184
|
className: "cc-filter-rail__count",
|
|
69149
|
-
children:
|
|
69185
|
+
children: I
|
|
69150
69186
|
})]
|
|
69151
69187
|
}), /* @__PURE__ */ Q("span", {
|
|
69152
69188
|
className: "cc-filter-rail__head-actions",
|
|
@@ -69154,7 +69190,7 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69154
69190
|
type: "link",
|
|
69155
69191
|
size: "small",
|
|
69156
69192
|
onClick: P,
|
|
69157
|
-
disabled:
|
|
69193
|
+
disabled: I === 0 && Object.keys(C).length === 0,
|
|
69158
69194
|
children: "Clear All"
|
|
69159
69195
|
}), c && /* @__PURE__ */ Z(J, {
|
|
69160
69196
|
title: `Hide ${a.toLowerCase()}`,
|
|
@@ -69198,7 +69234,7 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69198
69234
|
type: "button",
|
|
69199
69235
|
className: "cc-filter-section__toggle",
|
|
69200
69236
|
"aria-expanded": n,
|
|
69201
|
-
onClick: () =>
|
|
69237
|
+
onClick: () => ae(e.key),
|
|
69202
69238
|
children: [/* @__PURE__ */ Q("span", {
|
|
69203
69239
|
className: "cc-filter-section__label",
|
|
69204
69240
|
children: [e.label, r && /* @__PURE__ */ Z("span", {
|
|
@@ -70005,7 +70041,7 @@ function YY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
|
|
|
70005
70041
|
M,
|
|
70006
70042
|
x
|
|
70007
70043
|
]);
|
|
70008
|
-
let P = JSON.stringify(r ?? null), F = b.get("sub") ?? "", { relation: te, subTabs: ne, activeSubKey: re, subRelations:
|
|
70044
|
+
let P = JSON.stringify(r ?? null), F = b.get("sub") ?? "", { relation: te, subTabs: ne, activeSubKey: re, subRelations: ie } = R(() => {
|
|
70009
70045
|
let e = JSON.parse(P), t = VY(e), r = t.find((e) => e.key === F) ?? t[0] ?? null;
|
|
70010
70046
|
return {
|
|
70011
70047
|
relation: BY(e, r),
|
|
@@ -70023,7 +70059,7 @@ function YY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
|
|
|
70023
70059
|
F,
|
|
70024
70060
|
n,
|
|
70025
70061
|
g
|
|
70026
|
-
]), { counts:
|
|
70062
|
+
]), { counts: ae } = qY(S && ee ? ie : JY, i, m), I = wo((e) => {
|
|
70027
70063
|
D(null), x((t) => {
|
|
70028
70064
|
let n = _Y(t, 1);
|
|
70029
70065
|
return n.set("sub", e), n;
|
|
@@ -70187,11 +70223,11 @@ function YY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
|
|
|
70187
70223
|
"aria-label": `${a ?? n} sections`,
|
|
70188
70224
|
value: re,
|
|
70189
70225
|
onChange: (e) => {
|
|
70190
|
-
e !== re &&
|
|
70226
|
+
e !== re && I(String(e));
|
|
70191
70227
|
},
|
|
70192
70228
|
style: { marginBottom: 12 },
|
|
70193
70229
|
options: ne.map((e) => {
|
|
70194
|
-
let t =
|
|
70230
|
+
let t = ae[e.key];
|
|
70195
70231
|
return {
|
|
70196
70232
|
value: e.key,
|
|
70197
70233
|
label: /* @__PURE__ */ Q(Wo, {
|
|
@@ -71174,7 +71210,7 @@ function RX({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
71174
71210
|
key: "__none",
|
|
71175
71211
|
label: p,
|
|
71176
71212
|
disabled: !0
|
|
71177
|
-
}],
|
|
71213
|
+
}], ie = R(() => ({
|
|
71178
71214
|
listComponent: m,
|
|
71179
71215
|
listPropsFor: h,
|
|
71180
71216
|
renderQuickView: g,
|
|
@@ -71194,46 +71230,46 @@ function RX({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
71194
71230
|
y,
|
|
71195
71231
|
b,
|
|
71196
71232
|
A
|
|
71197
|
-
]),
|
|
71198
|
-
if (typeof
|
|
71233
|
+
]), ae = c.find((e) => e.key === A) ?? null, I = null;
|
|
71234
|
+
if (typeof ae?.render == "function") I = ae.render({
|
|
71199
71235
|
id: t,
|
|
71200
71236
|
moduleName: e,
|
|
71201
71237
|
refreshKey: v
|
|
71202
71238
|
});
|
|
71203
|
-
else if (
|
|
71204
|
-
let n =
|
|
71205
|
-
|
|
71239
|
+
else if (ae?.component) {
|
|
71240
|
+
let n = ae.component;
|
|
71241
|
+
I = /* @__PURE__ */ Z(n, {
|
|
71206
71242
|
id: t,
|
|
71207
71243
|
moduleName: e,
|
|
71208
71244
|
refreshKey: v
|
|
71209
71245
|
});
|
|
71210
|
-
} else
|
|
71246
|
+
} else ae?.type === "overview" ? I = /* @__PURE__ */ Z(PX, {
|
|
71211
71247
|
tabs: M,
|
|
71212
71248
|
parentId: t,
|
|
71213
|
-
title:
|
|
71249
|
+
title: ae.label,
|
|
71214
71250
|
refreshKey: v
|
|
71215
|
-
}) :
|
|
71216
|
-
tabKey:
|
|
71251
|
+
}) : ae?.module && (I = /* @__PURE__ */ Z(YY, {
|
|
71252
|
+
tabKey: ae.key,
|
|
71217
71253
|
active: !0,
|
|
71218
|
-
module:
|
|
71219
|
-
relation:
|
|
71254
|
+
module: ae.module,
|
|
71255
|
+
relation: ae.relation,
|
|
71220
71256
|
parentId: t,
|
|
71221
|
-
title:
|
|
71222
|
-
showRail:
|
|
71223
|
-
railMode:
|
|
71224
|
-
quickViewMode:
|
|
71225
|
-
...
|
|
71226
|
-
...
|
|
71227
|
-
listComponent:
|
|
71228
|
-
listProps: h?.(
|
|
71257
|
+
title: ae.label,
|
|
71258
|
+
showRail: ae.rail !== !1,
|
|
71259
|
+
railMode: ae.railMode ?? y,
|
|
71260
|
+
quickViewMode: ae.quickViewMode ?? b,
|
|
71261
|
+
...ae.railWidth ?? x ? { railWidth: ae.railWidth ?? x } : {},
|
|
71262
|
+
...ae.quickViewWidth ?? S ? { quickViewWidth: ae.quickViewWidth ?? S } : {},
|
|
71263
|
+
listComponent: ae.listComponent ?? m,
|
|
71264
|
+
listProps: h?.(ae.module, ae) ?? ae.listProps,
|
|
71229
71265
|
renderQuickView: g,
|
|
71230
71266
|
onOpenRecord: _,
|
|
71231
71267
|
refreshKey: v,
|
|
71232
|
-
...typeof
|
|
71233
|
-
...
|
|
71234
|
-
},
|
|
71268
|
+
...typeof ae.fetch == "function" ? { fetchData: ae.fetch } : {},
|
|
71269
|
+
...ae.recordLinks ? { recordLinks: ae.recordLinks } : {}
|
|
71270
|
+
}, ae.key));
|
|
71235
71271
|
return /* @__PURE__ */ Z(FX.Provider, {
|
|
71236
|
-
value:
|
|
71272
|
+
value: ie,
|
|
71237
71273
|
children: /* @__PURE__ */ Q("div", {
|
|
71238
71274
|
className: `rh-hub ${C}`.trim(),
|
|
71239
71275
|
"data-module": e,
|
|
@@ -71305,8 +71341,8 @@ function RX({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
71305
71341
|
/* @__PURE__ */ Z("section", {
|
|
71306
71342
|
className: "rh-hub__body",
|
|
71307
71343
|
role: "tabpanel",
|
|
71308
|
-
"aria-label":
|
|
71309
|
-
children:
|
|
71344
|
+
"aria-label": ae?.label,
|
|
71345
|
+
children: I
|
|
71310
71346
|
})
|
|
71311
71347
|
]
|
|
71312
71348
|
})
|
|
@@ -71900,18 +71936,18 @@ function sZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
71900
71936
|
});
|
|
71901
71937
|
return t.observe(e), () => t.disconnect();
|
|
71902
71938
|
}, [v, y]);
|
|
71903
|
-
let P = v === "stacked" || v === "auto" && ee === !0, [F, te] = Fl(), ne = F.get("tab") || O, re = Iw(), [
|
|
71939
|
+
let P = v === "stacked" || v === "auto" && ee === !0, [F, te] = Fl(), ne = F.get("tab") || O, re = Iw(), [ie, ae] = z(0), [I, oe] = z(null), [se, ce] = z(() => /* @__PURE__ */ new Set([ne]));
|
|
71904
71940
|
se.has(ne) || ce(/* @__PURE__ */ new Set([...se, ne]));
|
|
71905
71941
|
let le = R(() => iC(e)?.tabs ?? iZ, [e]), ue = R(() => D.length ? [...le, ...D] : le, [le, D]), de = Pb(ue, {
|
|
71906
71942
|
id: t,
|
|
71907
71943
|
moduleName: e,
|
|
71908
|
-
record:
|
|
71944
|
+
record: I
|
|
71909
71945
|
}), fe = (e) => e === "details" || !ue.some((t) => t.key === e && typeof t.visibleWhen == "function") || de.some((t) => t.key === e), pe = (t) => D.find((e) => e.key === t)?.component ?? Fw(e, t), me = (e, t) => {
|
|
71910
71946
|
let n = new URLSearchParams(F);
|
|
71911
71947
|
n.set("tab", e), te(n, { replace: !0 }), _?.(e, t);
|
|
71912
71948
|
}, he = (e) => {
|
|
71913
71949
|
oe(e), h?.(e);
|
|
71914
|
-
}, ge = u + re, _e = () =>
|
|
71950
|
+
}, ge = u + re, _e = () => ae((e) => e + 1), ve = ne === "details" || !fe(ne) || !pe(ne), ye = C === "below";
|
|
71915
71951
|
return /* @__PURE__ */ Q("div", {
|
|
71916
71952
|
ref: k,
|
|
71917
71953
|
className: `cc-detail${P ? " cc-detail--stacked" : ""}${ye ? " cc-detail--tabs-below" : ""}`,
|
|
@@ -71993,7 +72029,7 @@ function sZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
71993
72029
|
children: /* @__PURE__ */ Z(ES, {
|
|
71994
72030
|
moduleName: e,
|
|
71995
72031
|
id: t,
|
|
71996
|
-
refreshKey:
|
|
72032
|
+
refreshKey: ie + ge,
|
|
71997
72033
|
onDescriptionSaved: _e
|
|
71998
72034
|
})
|
|
71999
72035
|
}), /* @__PURE__ */ Z(V, {
|
|
@@ -72021,7 +72057,7 @@ function sZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
72021
72057
|
id: t,
|
|
72022
72058
|
moduleName: e,
|
|
72023
72059
|
onDescriptionSaved: _e,
|
|
72024
|
-
record:
|
|
72060
|
+
record: I
|
|
72025
72061
|
})
|
|
72026
72062
|
}, n) : null;
|
|
72027
72063
|
})
|
|
@@ -72490,15 +72526,15 @@ function nQ() {
|
|
|
72490
72526
|
}
|
|
72491
72527
|
}
|
|
72492
72528
|
function rQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, basePath: i, listTabs: a, recordParam: o = "id", routeRecordId: s, searchPlaceholder: c = "Search…", searchFields: l, createActions: u, relatedTopics: d = QZ, quickViewTitle: f = "Quick View", quickViewWidth: p = 420, renderQuickViewExtra: m, renderQuickView: h, renderFullView: g, renderFullViewStats: _, fullViewBreadcrumbLabel: v = "Details", listProps: y, topBarInFullView: b = !0, showTopBarSearch: x = !0, openRecordIn: S = "quick", quickViewMode: C = "docked", defaultRailCollapsed: w = !1, showRail: T = !0, listComponent: E, actionsInListToolbar: D = !1 }) {
|
|
72493
|
-
let { tab: O } = Pl(), k = Nl(), [A, j] = Fl(), M = Array.isArray(a) && a.length > 0, ee = M ? a.find((e) => e.toLowerCase() === String(O ?? "").toLowerCase()) : void 0, N = s || A.get(o) || "", P = S === "full", F = !!N && (P || A.get(YZ) === ZZ), te = C === "overlay", [ne, re] = z(w),
|
|
72529
|
+
let { tab: O } = Pl(), k = Nl(), [A, j] = Fl(), M = Array.isArray(a) && a.length > 0, ee = M ? a.find((e) => e.toLowerCase() === String(O ?? "").toLowerCase()) : void 0, N = s || A.get(o) || "", P = S === "full", F = !!N && (P || A.get(YZ) === ZZ), te = C === "overlay", [ne, re] = z(w), ie = A.get(qZ) || "", ae = A.get(JZ) || "", I = R(() => iY(ae), [ae]), [oe, se] = z(null), [ce, le] = z(0), ue = Iw(), de = KZ({ topics: [CZ(e)] }), fe = KZ({
|
|
72494
72530
|
topics: N ? [wZ(e, N)] : QZ,
|
|
72495
72531
|
enabled: !!N
|
|
72496
72532
|
}), pe = KZ({
|
|
72497
72533
|
topics: N ? [...d, wZ(e, N)] : QZ,
|
|
72498
72534
|
enabled: !!N
|
|
72499
72535
|
}), me = HZ(), { fetchData: he, loading: ge } = mY({
|
|
72500
|
-
filters:
|
|
72501
|
-
search:
|
|
72536
|
+
filters: I,
|
|
72537
|
+
search: ie,
|
|
72502
72538
|
refreshTick: de.tick + ce
|
|
72503
72539
|
}), _e = nQ(), ve = fe.lastEvent, ye = ve && ve.actorId && ve.actorId !== _e ? ve.eventId : null, [be, xe] = z(null), Se = ye && ye !== be ? ye : null;
|
|
72504
72540
|
L(() => {
|
|
@@ -72542,11 +72578,11 @@ function rQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
72542
72578
|
resetPage: !0
|
|
72543
72579
|
});
|
|
72544
72580
|
}, [Ce]), Ae = wo((e) => {
|
|
72545
|
-
eY(e) !== eY(
|
|
72581
|
+
eY(e) !== eY(I) && Ce((t) => {
|
|
72546
72582
|
let n = rY(e);
|
|
72547
72583
|
n ? t.set(JZ, n) : t.delete(JZ);
|
|
72548
72584
|
}, { resetPage: !0 });
|
|
72549
|
-
}, [
|
|
72585
|
+
}, [I, Ce]), je = wo((e) => {
|
|
72550
72586
|
if (!M) return;
|
|
72551
72587
|
let t = a.find((t) => t.toLowerCase() === String(e ?? "").trim().toLowerCase());
|
|
72552
72588
|
if (!t || t === ee) return;
|
|
@@ -72704,7 +72740,7 @@ function rQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
72704
72740
|
railCollapsed: ne,
|
|
72705
72741
|
topBar: F && !b || !F && D ? null : /* @__PURE__ */ Z(YX, {
|
|
72706
72742
|
title: r,
|
|
72707
|
-
searchValue:
|
|
72743
|
+
searchValue: ie,
|
|
72708
72744
|
onSearch: ke,
|
|
72709
72745
|
searchPlaceholder: c,
|
|
72710
72746
|
showSearch: x,
|
|
@@ -72723,7 +72759,7 @@ function rQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
72723
72759
|
rail: T ? /* @__PURE__ */ Z(sY, {
|
|
72724
72760
|
moduleName: e,
|
|
72725
72761
|
scope: ee ?? "",
|
|
72726
|
-
value:
|
|
72762
|
+
value: I,
|
|
72727
72763
|
onChange: Ae,
|
|
72728
72764
|
collapsed: ne,
|
|
72729
72765
|
onExpand: () => re(!1),
|
|
@@ -73201,9 +73237,9 @@ async function EQ(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a
|
|
|
73201
73237
|
}
|
|
73202
73238
|
//#endregion
|
|
73203
73239
|
//#region src/index.js
|
|
73204
|
-
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-
|
|
73240
|
+
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-24T11:08:49.138Z");
|
|
73205
73241
|
var DQ = aK, OQ = sN($K), kQ = sN(tq), AQ = sN(gq), jQ = sN(Oq), MQ = sN(Lq), NQ = sN(Bq), PQ = sN(Uq), FQ = sN(Kq), IQ = sN(Jq), LQ = sN(sJ), RQ = sN(lJ);
|
|
73206
73242
|
//#endregion
|
|
73207
|
-
export { Np as ACTION_RULE_SURFACES, j as ADMIN_API_URL, d as ADMIN_APP_ID, A as APP_ID, s as AUTH_URL, cb as ActivityNotesCard, Zy as ActivityTab, LG as AddBatchCandidatePopup, Py as AddFormV1, dZ as AddRecordDrawer, aK as AdminDashboard, RB as AdminDashboardContent, DQ as AdminPage, Fy as AppAlert, ea as AppButton, CM as AppShell, vk as ApprovalActionBar, lb as AssigneeAvatars, hM as AuthGuard, DC as BILLING_STATUS_FLOW, tO as BOOLEAN_API_KEYS, BE as BOOLEAN_PARSEABLE_API_KEYS, ub as BULK_UPLOAD_DEFAULT_ACCEPT, db as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Ea as Breadcrumb, AQ as BulkUploadPage, yb as BulkUploadPanel, n as CANDIDATES_URL, Hk as CONTRACT_C2C, Vk as CONTRACT_W2, k as CORE_URL, ne as CURRENCY_OPTIONS, ee as CURRENCY_SYMBOLS, eu as CalendarCard, BJ as CandidateVersionGate, VX as CombinedDetailViewPage, VX as DETAILVIEWPAGE, AX as CombinedHomePage, AX as HOMEPAGE, rZ as CompactRecordList, HB as CoreThemeAdminApp, VB as CoreThemeAdminRoutes, JX as CreateActionButton, id as CustomPagination, BO as DEFAULT_HOURS_POLICY, ZD as DEFAULT_RESULTS_VIEW, St as DETAIL_VIEW_MODE_OPTIONS, bt as DETAIL_VIEW_MODE_VALUES, wt as DETAIL_VIEW_POPUP_PATH, uk as DayLogModal, Mb as DescriptionBlock, Mw as DetailHeaderCard, zw as DetailViewPage, rH as DetailViewPopup, ES as DetailViewV1, Xa as DocumentViewer, sf as DynamicCards, SU as DynamicPopup, HG as DynamicPopupRoute, iu as DynamicTabs, tE as EditFormV1, xD as FIELD_TYPE_REGISTRY, Nk as FINANCE_APPROVAL_CONFIG, Ek as FINANCE_TYPE_CFO, Tk as FINANCE_TYPE_ONBOARDING_MANAGER, kk as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, Dk as FINANCE_TYPE_ONLY_FINANCE, wk as FINANCE_TYPE_SUBMISSION_MANAGER, Ok as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, fj as FileListCard, sY as FilterRail, RA as FinanceApprovalPanel, cw as FinanceAvatar, fw as FinanceBadge, bk as FinanceDayCell, CU as FinanceDetailsBody, qG as FinanceDetailsPopup, JG as FinanceDetailsRoute, ew as FinanceDivider, lw as FinanceEmployeeCell, ZC as FinanceEmptyState, tw as FinanceEquation, aw as FinanceHistoryTimeline, XC as FinanceHoursGrid, YC as FinanceKpiRow, $C as FinanceLine, zO as FinanceListToolbar, pw as FinanceMarginBadge, dw as FinanceMoneyCell, gw as FinanceRecordsTable, mw as FinanceRowChevron, QC as FinanceSection, JC as FinanceStatusPill, uw as FinanceTextCell, Sk as FinanceTimesheetAnalysis, nw as FinanceWorkflowSteps, c as GATEWAY_URL, aB as GLOBAL_DEFAULT_FIELDS, VO as HOURS_MESSAGES, Hj as Header, ff as HierarchyUserFilter, PX as HubOverview, i as JOBS_URL, OQ as LegacyAdminPage, ev as ListView, xY as ListWithQuickView, RQ as LmsHomePage, LQ as LmsTestForm, jM as Login, NY as MATCH_NOTHING, OV as MailPopup, NQ as ManageModules, PQ as ManageSubmodules, qX as MasterDetailWorkspace, fE as ModuleRowActions, rQ as ModuleWorkspace, _k as NotesPanel, sb as NotesTab, HD as OPEN_AS_OPTIONS, XY as PAGE_ICONS, OC as PAYROLL_STATUS_FLOW, nB as PLATFORM_SCOPES, OG as POPUP_CONFIGS, r as PYOPS_URL, cZ as PanelBreadcrumb, oZ as PanelTabs, yE as ParamCardView, TE as ParamListView, $O as PeriodBadgeTag, hB as PlatformSection, eH as PreviewPopup, oN as ProjectSelect, gk as ProofUploadPreview, pk as QuickLogBar, dk as QuickLogSelectionBar, kX as QuickViewCard, yX as QuickViewModuleActions, bY as QuickViewPopover, VJ as RAIL_KIND, xZ as REALTIME_STATUS, XD as RESULTS_VIEW_OPTIONS, wQ as RealtimeProvider, sZ as RecordDetailPanel, RX as RecordHub, MY as RecordQuickView, uZ as RecordSidePanel, uS as RecordUnavailable, iK as RegionBanner, fk as RejectionReasonModal, YY as RelatedModuleTab, o as SUBMISSIONS_URL, AO as SearchBuilderV1, sQ as SearchResultsWorkspace, lQ as SearchSummaryBanner, dM as Sidebar, NX as StatStrip, MO as StatusBadge, QO as StatusBadgeTag, kQ as StickyNotesFullPage, PO as StylishDynamicTabs, IO as TemplateEditor, jQ as TestForm, IQ as TestingHomePage, Uy as TimelineGroups, sk as TimesheetDayCell, _i as TipTapEditor, rK as UserForm, KG as VendorShareDrawer, mh as ViewSummaryWidget, lH as WizardPopup, gQ as WorkspaceAppFrame, yY as WorkspaceListView, YX as WorkspaceTopBar, y as ZINNEXT_URL, FQ as ZinnextTableView, MQ as ZinnextTestForm, Ip as actionRuleConditionMatches, de as appNow, mn as applyIntegrationStatus, Ru as approveSubmission, gb as buildAcceptAttr, sO as buildBooleanRequest, HC as buildCsv, IC as buildDailyRows, ak as buildDayGradient, _A as buildRateHistoryEntries, LY as buildRelationConditions, mO as buildSearchRequest, zC as buildWeeklyRollup, SZ as canonicalModule, _ as clearSelectedProject, fa as colors, sA as computeFinance, qO as computeHoursPolicy, BC as computeMarginBand, Cn as conditionMatches, t as configureCoreTheme, Xt as configuredFieldLabel, $J as countActiveRows, IJ as createAllWorkflowsListFetcher, AJ as createMergedListFetcher, CJ as createModuleListFetchAdapter, OZ as createRealtimeClient, jJ as createWorkflowStageListFetcher,
|
|
73243
|
+
export { Np as ACTION_RULE_SURFACES, j as ADMIN_API_URL, d as ADMIN_APP_ID, A as APP_ID, s as AUTH_URL, cb as ActivityNotesCard, Zy as ActivityTab, LG as AddBatchCandidatePopup, Py as AddFormV1, dZ as AddRecordDrawer, aK as AdminDashboard, RB as AdminDashboardContent, DQ as AdminPage, Fy as AppAlert, ea as AppButton, CM as AppShell, vk as ApprovalActionBar, lb as AssigneeAvatars, hM as AuthGuard, DC as BILLING_STATUS_FLOW, tO as BOOLEAN_API_KEYS, BE as BOOLEAN_PARSEABLE_API_KEYS, ub as BULK_UPLOAD_DEFAULT_ACCEPT, db as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Ea as Breadcrumb, AQ as BulkUploadPage, yb as BulkUploadPanel, n as CANDIDATES_URL, Hk as CONTRACT_C2C, Vk as CONTRACT_W2, k as CORE_URL, ne as CURRENCY_OPTIONS, ee as CURRENCY_SYMBOLS, eu as CalendarCard, BJ as CandidateVersionGate, VX as CombinedDetailViewPage, VX as DETAILVIEWPAGE, AX as CombinedHomePage, AX as HOMEPAGE, rZ as CompactRecordList, HB as CoreThemeAdminApp, VB as CoreThemeAdminRoutes, JX as CreateActionButton, id as CustomPagination, BO as DEFAULT_HOURS_POLICY, ZD as DEFAULT_RESULTS_VIEW, St as DETAIL_VIEW_MODE_OPTIONS, bt as DETAIL_VIEW_MODE_VALUES, wt as DETAIL_VIEW_POPUP_PATH, uk as DayLogModal, Mb as DescriptionBlock, Mw as DetailHeaderCard, zw as DetailViewPage, rH as DetailViewPopup, ES as DetailViewV1, Xa as DocumentViewer, sf as DynamicCards, SU as DynamicPopup, HG as DynamicPopupRoute, iu as DynamicTabs, tE as EditFormV1, xD as FIELD_TYPE_REGISTRY, Nk as FINANCE_APPROVAL_CONFIG, Ek as FINANCE_TYPE_CFO, Tk as FINANCE_TYPE_ONBOARDING_MANAGER, kk as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, Dk as FINANCE_TYPE_ONLY_FINANCE, wk as FINANCE_TYPE_SUBMISSION_MANAGER, Ok as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, fj as FileListCard, sY as FilterRail, RA as FinanceApprovalPanel, cw as FinanceAvatar, fw as FinanceBadge, bk as FinanceDayCell, CU as FinanceDetailsBody, qG as FinanceDetailsPopup, JG as FinanceDetailsRoute, ew as FinanceDivider, lw as FinanceEmployeeCell, ZC as FinanceEmptyState, tw as FinanceEquation, aw as FinanceHistoryTimeline, XC as FinanceHoursGrid, YC as FinanceKpiRow, $C as FinanceLine, zO as FinanceListToolbar, pw as FinanceMarginBadge, dw as FinanceMoneyCell, gw as FinanceRecordsTable, mw as FinanceRowChevron, QC as FinanceSection, JC as FinanceStatusPill, uw as FinanceTextCell, Sk as FinanceTimesheetAnalysis, nw as FinanceWorkflowSteps, c as GATEWAY_URL, aB as GLOBAL_DEFAULT_FIELDS, VO as HOURS_MESSAGES, Hj as Header, ff as HierarchyUserFilter, PX as HubOverview, i as JOBS_URL, OQ as LegacyAdminPage, ev as ListView, xY as ListWithQuickView, RQ as LmsHomePage, LQ as LmsTestForm, jM as Login, NY as MATCH_NOTHING, OV as MailPopup, NQ as ManageModules, PQ as ManageSubmodules, qX as MasterDetailWorkspace, fE as ModuleRowActions, rQ as ModuleWorkspace, _k as NotesPanel, sb as NotesTab, HD as OPEN_AS_OPTIONS, XY as PAGE_ICONS, OC as PAYROLL_STATUS_FLOW, nB as PLATFORM_SCOPES, OG as POPUP_CONFIGS, r as PYOPS_URL, cZ as PanelBreadcrumb, oZ as PanelTabs, yE as ParamCardView, TE as ParamListView, $O as PeriodBadgeTag, hB as PlatformSection, eH as PreviewPopup, oN as ProjectSelect, gk as ProofUploadPreview, pk as QuickLogBar, dk as QuickLogSelectionBar, kX as QuickViewCard, yX as QuickViewModuleActions, bY as QuickViewPopover, VJ as RAIL_KIND, xZ as REALTIME_STATUS, XD as RESULTS_VIEW_OPTIONS, wQ as RealtimeProvider, sZ as RecordDetailPanel, RX as RecordHub, MY as RecordQuickView, uZ as RecordSidePanel, uS as RecordUnavailable, iK as RegionBanner, fk as RejectionReasonModal, YY as RelatedModuleTab, o as SUBMISSIONS_URL, AO as SearchBuilderV1, sQ as SearchResultsWorkspace, lQ as SearchSummaryBanner, dM as Sidebar, NX as StatStrip, MO as StatusBadge, QO as StatusBadgeTag, kQ as StickyNotesFullPage, PO as StylishDynamicTabs, IO as TemplateEditor, jQ as TestForm, IQ as TestingHomePage, Uy as TimelineGroups, sk as TimesheetDayCell, _i as TipTapEditor, rK as UserForm, KG as VendorShareDrawer, mh as ViewSummaryWidget, lH as WizardPopup, gQ as WorkspaceAppFrame, yY as WorkspaceListView, YX as WorkspaceTopBar, y as ZINNEXT_URL, FQ as ZinnextTableView, MQ as ZinnextTestForm, Ip as actionRuleConditionMatches, de as appNow, mn as applyIntegrationStatus, Ru as approveSubmission, gb as buildAcceptAttr, sO as buildBooleanRequest, HC as buildCsv, IC as buildDailyRows, ak as buildDayGradient, _A as buildRateHistoryEntries, LY as buildRelationConditions, mO as buildSearchRequest, zC as buildWeeklyRollup, SZ as canonicalModule, _ as clearSelectedProject, fa as colors, sA as computeFinance, qO as computeHoursPolicy, BC as computeMarginBand, Cn as conditionMatches, t as configureCoreTheme, Xt as configuredFieldLabel, $J as countActiveRows, IJ as createAllWorkflowsListFetcher, AJ as createMergedListFetcher, CJ as createModuleListFetchAdapter, OZ as createRealtimeClient, jJ as createWorkflowStageListFetcher, ae as currencyCode, se as currencyPrefix, N as currencySymbol, Gz as deactivateRegion, hJ as defaultMergeRow, dn as deleteIntegrationConfig, at as deleteModuleDocument, FC as deriveDayStats, YO as describeCapacity, QX as displayText, KC as downloadCsv, ZJ as draftToRows, kt as evaluateShowIfWith, _e as extractDocumentIds, S as fetchJsonWithAuth, TQ as fetchRelatedRecords, EQ as fetchScopedRecords, tA as findEmployerRow, $k as flattenGroups, re as formatAmount, $t as formatApp, Ue as formatAppDateTime, hb as formatFileSize, vA as formatFinanceMoney, vC as formatHours, ce as formatMoney, bC as formatPercent, P as formatRate, CQ as formatSearchCount, SQ as formatSearchDuration, Ln as generateModuleId, Cr as getActivity, LJ as getAllWorkflowsModuleList, Ze as getAppTimeZone, wC as getApprovalDate, Oe as getBgcIntegrationConfig, Fe as getBgcIntegrationSummary, kC as getBillingActionStates, DD as getBooleanEligibleTypes, Tf as getCandidateVersions, co as getConfiguredFilterValues, f as getCurrentRoleName, _t as getDetailDisplayDefaults, WC as getFieldLabel, CD as getFieldType, mb as getFileExtension, Rk as getFinanceApprovalConfig, ej as getFormGroupsRaw, oB as getGlobalAiServices, rB as getGlobalDefaults, Ne as getIntegrationConfig, pt as getIntegrationConfigs, yt as getIntegrationSummary, ed as getModuleConfig, Xr as getModuleDataDetail, no as getModuleDataListWithFilters, di as getModuleDataRecordById, ct as getModuleDocuments, _W as getModuleRecordById, AC as getPayrollActionStates, nd as getPeriodBadgeConfig, Qz as getRegionDetailDefaults, zD as getSearchPopup, b as getSelectedProject, D as getStoredToken, p as getStoredUser, m as getUserRoles, zu as getVMSApprove, GC as getValueStyle, RJ as getWorkflowStageModuleList, jC as getWorkflowSteps, qz as grantPlatformAccess, Yz as hasPlatformAccess, CC as humanizeEvent, Tv as i, UC as indexFieldConfig, xC as initialsOf, WE as insertTokenAtCursor, C as invalidateGetCache, wD as isBooleanEligible, HE as isBooleanParsable, x as isTester, Kz as listPlatformAccess, Zz as listPlatformAudit, Xz as listPlatformUsers, tB as listRegionRoles, eB as listRegionUsers, Uz as listRegions, Re as loadDetailDefaults, h as logout, _O as makeSearchFetcher, Om as mapListResponse, Bk as marginIncludesReferral, oA as matchLocationTax, CZ as moduleTopic, dT as n, rA as normalizeContract, et as normalizeDetailViewMode, oX as normalizePageLayout, iY as parseRows, tZ as pickCompactFields, I as prepareCurrencyConfig, kY as quickViewFields, OY as quickViewValueText, bb as r, ie as rateUnitLabel, te as rateUnitShort, KD as readActionButtons, gY as readPageParam, JO as reconcileHours, nZ as recordIdOf, wZ as recordTopic, Hz as regionPath, SD as registerFieldType, RD as registerSearchPopup, Vu as rejectSubmission, zY as relationSignature, ji as requiredWhenActive, ia as requiredWhenRule, Jy as resolveActivityMeta, cA as resolveAndCompute, F as resolveCurrency, GO as resolveDayKind, dj as resolveEngagementFinance, aA as resolveFinanceInputs, pJ as resolveMergeKey, pJ as resolveMergedListKey, WD as resolveOpenAs, aX as resolvePageButtons, ZY as resolvePageIcon, tX as resolvePageValue, vX as resolveQuickViewActions, zk as resolveRejectionReason, eO as resolveResultsSearchPlaceholder, $D as resolveResultsView, tj as resolveSubmissionFinance, Jz as revokePlatformAccess, Ce as rollbackModuleDocuments, eY as rowsSignature, QJ as rowsToDraft, Fp as ruleAppliesToSurface, Vp as rulePrimaryAction, le as runDetailViewOpen, sE as runModuleAction, Wn as saveBgcIntegrationConfig, sB as saveGlobalAiServices, iB as saveGlobalDefaults, ot as saveIntegrationConfig, Wz as saveRegion, $z as saveRegionDetailDefaults, KY as scopeConditionsFor, xQ as searchCriteriaParts, rY as serializeRows, O as setSelectedProject, En as showIfConditions, MJ as stageCountKey, GY as supportsAnyOf, MM as t, We as testIntegrationConnection, Be as toApp, M as toNumber, YJ as toRailFields, EZ as topicsForEvent, nt as tzLabel, Kn as tzShortLabel, BD as unregisterSearchPopup, RY as unscopedConditions, be as uploadModuleDocuments, cp as useDropdownFields, hh as useDropdownValues, hj as useEditForm, lp as useFieldConfig, up as useFilterFields, vY as useInPlaceRecordLinks, KZ as useLiveRefresh, yp as useMenuPermission, rE as useModuleActions, VZ as useRealtimeClient, GZ as useRealtimeReconnect, HZ as useRealtimeStatus, WZ as useRealtimeTopics, lZ as useRecordFields, IX as useRecordHub, Iw as useRecordRefresh, qY as useRelatedCounts, mj as useTabRows, mY as useWorkspaceList, UE as validateBooleanQuery, _b as validateBulkFile, v as withAdminAppId, a as withAppId, sN as withAuthGuard, _Y as withPageParam, BY as withSubTab };
|
|
73208
73244
|
|
|
73209
73245
|
//# sourceMappingURL=index.js.map
|