@realtek/zinnext-theme 1.0.6 → 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 +929 -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,7 +6192,7 @@ 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
6196
|
!1,
|
|
6197
6197
|
0,
|
|
6198
6198
|
"false",
|
|
@@ -6201,20 +6201,20 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6201
6201
|
key: e.key,
|
|
6202
6202
|
label: /^match score$/i.test(e.label || "") ? "Match" : e.label,
|
|
6203
6203
|
showByDefault: Eg(e)
|
|
6204
|
-
})), [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) => {
|
|
6205
6205
|
let t = Qn.find((t) => t.key === e.key);
|
|
6206
6206
|
return t?.isVisible !== !1 && t?.isVisible !== "false";
|
|
6207
|
-
}).slice(0, De).map((e) => e.key),
|
|
6208
|
-
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);
|
|
6209
6209
|
return {
|
|
6210
|
-
scope:
|
|
6210
|
+
scope: ar,
|
|
6211
6211
|
keys: typeof e == "function" ? e(n) : e
|
|
6212
6212
|
};
|
|
6213
6213
|
});
|
|
6214
6214
|
L(() => {
|
|
6215
|
-
jt.scope ===
|
|
6216
|
-
}, [
|
|
6217
|
-
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(() => {
|
|
6218
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;
|
|
6219
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))));
|
|
6220
6220
|
}, [
|
|
@@ -6228,26 +6228,26 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6228
6228
|
Qn,
|
|
6229
6229
|
tt,
|
|
6230
6230
|
de
|
|
6231
|
-
]),
|
|
6232
|
-
if (!_n || !qn && !te) return
|
|
6231
|
+
]), _r = R(() => {
|
|
6232
|
+
if (!_n || !qn && !te) return gr;
|
|
6233
6233
|
let e = (Dt.current - 1) * Dt.pageSize;
|
|
6234
|
-
return
|
|
6234
|
+
return gr.slice(e, e + Dt.pageSize);
|
|
6235
6235
|
}, [
|
|
6236
|
-
|
|
6236
|
+
gr,
|
|
6237
6237
|
qn,
|
|
6238
6238
|
_n,
|
|
6239
6239
|
te,
|
|
6240
6240
|
Dt.current,
|
|
6241
6241
|
Dt.pageSize
|
|
6242
|
-
]),
|
|
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(() => {
|
|
6243
6243
|
let t = Array.isArray(E) ? E : [], n = !t.length, r = t.length ? t : Xt.length ? Xt : [{
|
|
6244
6244
|
key: "all",
|
|
6245
6245
|
title: e ?? "List",
|
|
6246
|
-
count:
|
|
6247
|
-
}], i = !!(
|
|
6246
|
+
count: vr
|
|
6247
|
+
}], i = !!(Tr && Object.keys(Tr).length);
|
|
6248
6248
|
return !n && !i ? r : r.map((e, t) => {
|
|
6249
6249
|
if (!e || typeof e != "object") return e;
|
|
6250
|
-
let r = i ?
|
|
6250
|
+
let r = i ? Tr[String(x_(e, t))] : void 0;
|
|
6251
6251
|
if (!r && !n) return e;
|
|
6252
6252
|
let a = { ...e };
|
|
6253
6253
|
if (r && (a.title = r), n) {
|
|
@@ -6262,34 +6262,34 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6262
6262
|
ln,
|
|
6263
6263
|
e,
|
|
6264
6264
|
Xt,
|
|
6265
|
-
|
|
6266
|
-
|
|
6265
|
+
Tr,
|
|
6266
|
+
vr,
|
|
6267
6267
|
E
|
|
6268
6268
|
]);
|
|
6269
6269
|
L(() => {
|
|
6270
|
-
if (!
|
|
6270
|
+
if (!Er.length || !((Xt?.length ?? 0) > 0 || Array.isArray(E) && E.length > 0)) return;
|
|
6271
6271
|
let e = S_($e);
|
|
6272
|
-
if (!
|
|
6273
|
-
let e = x_(
|
|
6272
|
+
if (!Er.some((t, n) => S_(x_(t, n)) === e)) {
|
|
6273
|
+
let e = x_(Er[0], 0);
|
|
6274
6274
|
e && et(String(e));
|
|
6275
6275
|
}
|
|
6276
6276
|
}, [
|
|
6277
6277
|
$e,
|
|
6278
|
-
|
|
6278
|
+
Er,
|
|
6279
6279
|
Xt,
|
|
6280
6280
|
E
|
|
6281
6281
|
]), L(() => {
|
|
6282
|
-
if (Se === void 0 || !
|
|
6283
|
-
let e =
|
|
6282
|
+
if (Se === void 0 || !Er.length) return;
|
|
6283
|
+
let e = Er.find((e, t) => S_(x_(e, t)) === S_(Se));
|
|
6284
6284
|
if (!e) return;
|
|
6285
|
-
let t = String(x_(e,
|
|
6285
|
+
let t = String(x_(e, Er.indexOf(e)));
|
|
6286
6286
|
(Se !== Bt.current || S_($e) !== S_(t)) && (Bt.current = Se, et((e) => S_(e) === S_(t) ? e : t));
|
|
6287
6287
|
}, [
|
|
6288
6288
|
$e,
|
|
6289
|
-
|
|
6289
|
+
Er,
|
|
6290
6290
|
Se
|
|
6291
6291
|
]);
|
|
6292
|
-
let
|
|
6292
|
+
let Dr = (e) => {
|
|
6293
6293
|
let t = Qn.map((e) => {
|
|
6294
6294
|
let t = {};
|
|
6295
6295
|
return Object.entries(e).forEach(([e, n]) => {
|
|
@@ -6302,7 +6302,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6302
6302
|
record: e,
|
|
6303
6303
|
fields: t
|
|
6304
6304
|
} });
|
|
6305
|
-
},
|
|
6305
|
+
}, Or = (e, t, n = {}) => {
|
|
6306
6306
|
let r = yg(e, t), i = r.startsWith("/") ? r : `/${r}`, a = t?._id ?? t?.id;
|
|
6307
6307
|
Fe(i, { state: {
|
|
6308
6308
|
background: Ie,
|
|
@@ -6324,16 +6324,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6324
6324
|
requireJobId: n.requireJobId,
|
|
6325
6325
|
...n.popupState
|
|
6326
6326
|
} });
|
|
6327
|
-
}, [
|
|
6327
|
+
}, [kr, Ar] = z(0);
|
|
6328
6328
|
L(() => {
|
|
6329
6329
|
let e = !0;
|
|
6330
6330
|
return Re().then(() => {
|
|
6331
|
-
e &&
|
|
6331
|
+
e && Ar((e) => e + 1);
|
|
6332
6332
|
}), () => {
|
|
6333
6333
|
e = !1;
|
|
6334
6334
|
};
|
|
6335
6335
|
}, []);
|
|
6336
|
-
let
|
|
6336
|
+
let jr = R(() => {
|
|
6337
6337
|
let e = {
|
|
6338
6338
|
dataIndex: "icons",
|
|
6339
6339
|
key: "icons",
|
|
@@ -6347,7 +6347,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6347
6347
|
type: "button",
|
|
6348
6348
|
className: "job-row-eye-button",
|
|
6349
6349
|
"aria-label": "Preview job",
|
|
6350
|
-
onClick: () =>
|
|
6350
|
+
onClick: () => Dr(t),
|
|
6351
6351
|
children: /* @__PURE__ */ Z("img", {
|
|
6352
6352
|
src: Nh,
|
|
6353
6353
|
alt: "",
|
|
@@ -6358,21 +6358,21 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6358
6358
|
children: /* @__PURE__ */ Z(kc, { className: "job-row-linkedin-icon" })
|
|
6359
6359
|
})]
|
|
6360
6360
|
})
|
|
6361
|
-
}, t = Qn.filter((e) =>
|
|
6361
|
+
}, t = Qn.filter((e) => dr.includes(e.key)).map((e, t) => {
|
|
6362
6362
|
let n = kt.sort === e.key ? kt.sortDir : "";
|
|
6363
6363
|
return {
|
|
6364
6364
|
title: H_({
|
|
6365
6365
|
label: /^match score$/i.test(e.label || "") ? "Match" : e.label,
|
|
6366
6366
|
sortDir: n,
|
|
6367
|
-
sortable:
|
|
6367
|
+
sortable: Sr,
|
|
6368
6368
|
onSort: () => Vn(e.key)
|
|
6369
6369
|
}),
|
|
6370
6370
|
dataIndex: e.key,
|
|
6371
6371
|
key: e.key,
|
|
6372
6372
|
fixed: t === 0 ? "left" : void 0,
|
|
6373
6373
|
ellipsis: { showTitle: !1 },
|
|
6374
|
-
width: y_(e,
|
|
6375
|
-
render: (t, n) => d_(e, n, rt,
|
|
6374
|
+
width: y_(e, _r, ke),
|
|
6375
|
+
render: (t, n) => d_(e, n, rt, Or, {
|
|
6376
6376
|
canAdd: Ge,
|
|
6377
6377
|
canEdit: Ke,
|
|
6378
6378
|
canDelete: qe
|
|
@@ -6383,8 +6383,8 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6383
6383
|
})
|
|
6384
6384
|
};
|
|
6385
6385
|
});
|
|
6386
|
-
if (!(
|
|
6387
|
-
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;
|
|
6388
6388
|
i > 0 && r > 0 && t.forEach((e) => {
|
|
6389
6389
|
e.width = Math.floor(e.width + i * (e.width / r));
|
|
6390
6390
|
});
|
|
@@ -6399,34 +6399,34 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6399
6399
|
Ke,
|
|
6400
6400
|
rt,
|
|
6401
6401
|
En,
|
|
6402
|
-
|
|
6402
|
+
kr,
|
|
6403
6403
|
Vn,
|
|
6404
|
-
|
|
6405
|
-
|
|
6404
|
+
mr,
|
|
6405
|
+
Sr,
|
|
6406
6406
|
_n,
|
|
6407
6407
|
Ie,
|
|
6408
6408
|
e,
|
|
6409
6409
|
Fe,
|
|
6410
6410
|
Qn,
|
|
6411
|
-
|
|
6411
|
+
_r,
|
|
6412
6412
|
ye,
|
|
6413
6413
|
kt.sort,
|
|
6414
6414
|
kt.sortDir,
|
|
6415
6415
|
Rt,
|
|
6416
6416
|
kn,
|
|
6417
|
-
|
|
6418
|
-
]),
|
|
6419
|
-
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);
|
|
6420
6420
|
if (et(n), St([]), wt([]), Fn(), typeof Ce == "function") {
|
|
6421
6421
|
let e = t?.key ?? t?.value ?? t?.id ?? n;
|
|
6422
6422
|
Bt.current = e, Ce(e);
|
|
6423
6423
|
}
|
|
6424
6424
|
}, [
|
|
6425
6425
|
Ce,
|
|
6426
|
-
|
|
6426
|
+
Er,
|
|
6427
6427
|
Fn
|
|
6428
6428
|
]);
|
|
6429
|
-
function
|
|
6429
|
+
function Nr(e, t, n) {
|
|
6430
6430
|
let r = On.get(String(e));
|
|
6431
6431
|
if (r && r.actionType !== "group") {
|
|
6432
6432
|
if (typeof f == "function" && f({
|
|
@@ -6493,16 +6493,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6493
6493
|
}
|
|
6494
6494
|
}
|
|
6495
6495
|
}
|
|
6496
|
-
function
|
|
6496
|
+
function Pr({ key: e }) {
|
|
6497
6497
|
let t = N_(An).find((t) => String(t.key) === String(e));
|
|
6498
|
-
t && j_(t, Ct, $e) ||
|
|
6498
|
+
t && j_(t, Ct, $e) || Nr(e, xt, Ct);
|
|
6499
6499
|
}
|
|
6500
|
-
let
|
|
6501
|
-
|
|
6502
|
-
let r = n.length ? n :
|
|
6503
|
-
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);
|
|
6504
6504
|
});
|
|
6505
|
-
},
|
|
6505
|
+
}, Rr = () => {
|
|
6506
6506
|
if (typeof p == "function") {
|
|
6507
6507
|
p();
|
|
6508
6508
|
return;
|
|
@@ -6512,7 +6512,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6512
6512
|
return;
|
|
6513
6513
|
}
|
|
6514
6514
|
gn(!0);
|
|
6515
|
-
},
|
|
6515
|
+
}, zr = () => {
|
|
6516
6516
|
T && Fe(T);
|
|
6517
6517
|
};
|
|
6518
6518
|
L(() => {
|
|
@@ -6522,16 +6522,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6522
6522
|
};
|
|
6523
6523
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
6524
6524
|
}, [hn]);
|
|
6525
|
-
let
|
|
6525
|
+
let Br = () => {
|
|
6526
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));
|
|
6527
|
-
},
|
|
6527
|
+
}, Vr = (e) => {
|
|
6528
6528
|
let t = e.target.value, n = t.trim().length < 3, r = yt.some((e) => e.field);
|
|
6529
|
-
n && (it(""), r ||
|
|
6530
|
-
},
|
|
6529
|
+
n && (it(""), r || Br()), nt(t), Fn();
|
|
6530
|
+
}, Hr = () => {
|
|
6531
6531
|
let e = tt.trim();
|
|
6532
6532
|
e.length >= 3 && (it(e), Fn());
|
|
6533
|
-
},
|
|
6534
|
-
|
|
6533
|
+
}, Ur = () => {
|
|
6534
|
+
Br(), bt([]), Gt([], []), Fn();
|
|
6535
6535
|
};
|
|
6536
6536
|
L(() => {
|
|
6537
6537
|
wn === "card" && (It([]), Gt([], []));
|
|
@@ -6541,47 +6541,48 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6541
6541
|
$e,
|
|
6542
6542
|
wn
|
|
6543
6543
|
]);
|
|
6544
|
-
let
|
|
6544
|
+
let Wr = (e) => {
|
|
6545
6545
|
It((t) => {
|
|
6546
|
-
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))));
|
|
6547
6547
|
return Gt(n, r), n;
|
|
6548
6548
|
});
|
|
6549
|
-
},
|
|
6549
|
+
}, Gr = /* @__PURE__ */ Q("div", {
|
|
6550
6550
|
className: "column-visibility-menu",
|
|
6551
6551
|
onClick: (e) => e.stopPropagation(),
|
|
6552
6552
|
children: [/* @__PURE__ */ Z(Io, {
|
|
6553
|
-
checked:
|
|
6554
|
-
indeterminate:
|
|
6553
|
+
checked: Fr,
|
|
6554
|
+
indeterminate: Ir,
|
|
6555
6555
|
onChange: (e) => {
|
|
6556
|
-
|
|
6556
|
+
pr(e.target.checked ? rr.map((e) => e.key) : sr);
|
|
6557
6557
|
},
|
|
6558
6558
|
children: "Select All"
|
|
6559
6559
|
}), /* @__PURE__ */ Z("div", {
|
|
6560
6560
|
className: "column-visibility-menu__list",
|
|
6561
|
-
children:
|
|
6562
|
-
checked:
|
|
6563
|
-
disabled:
|
|
6564
|
-
onChange: (t) =>
|
|
6565
|
-
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)" : ""]
|
|
6566
6566
|
}, e.key))
|
|
6567
6567
|
})]
|
|
6568
6568
|
});
|
|
6569
6569
|
return typeof Ne == "function" ? Ne({
|
|
6570
|
-
columns:
|
|
6570
|
+
columns: jr,
|
|
6571
6571
|
canAdd: Ge,
|
|
6572
|
+
canExport: er,
|
|
6572
6573
|
onRefresh: () => Et((e) => e + 1),
|
|
6573
6574
|
rowKey: (e, t) => T_(e, t, m),
|
|
6574
6575
|
selectedRowKeys: xt,
|
|
6575
6576
|
onSelectionChange: Gt,
|
|
6576
6577
|
bulkActionItems: An.map((e) => A_(e, j_(e, Ct, $e))),
|
|
6577
|
-
onBulkActionClick:
|
|
6578
|
-
selectable:
|
|
6578
|
+
onBulkActionClick: Pr,
|
|
6579
|
+
selectable: Sr && ye === "checkbox",
|
|
6579
6580
|
onRecordClick: _e ? Wt : void 0,
|
|
6580
|
-
emptyMessage:
|
|
6581
|
+
emptyMessage: wr,
|
|
6581
6582
|
error: xn,
|
|
6582
6583
|
search: tt,
|
|
6583
|
-
onSearchChange:
|
|
6584
|
-
onSearchSubmit:
|
|
6584
|
+
onSearchChange: Vr,
|
|
6585
|
+
onSearchSubmit: Hr,
|
|
6585
6586
|
filters: yt,
|
|
6586
6587
|
renderFilters: ({ open: e, onClose: t, excludeFields: n }) => /* @__PURE__ */ Z(Mh, {
|
|
6587
6588
|
moduleName: Le,
|
|
@@ -6594,9 +6595,9 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6594
6595
|
onApply: ({ filters: e }) => {
|
|
6595
6596
|
bt(e), Fn();
|
|
6596
6597
|
},
|
|
6597
|
-
onReset:
|
|
6598
|
+
onReset: Ur
|
|
6598
6599
|
}, Le),
|
|
6599
|
-
rows:
|
|
6600
|
+
rows: _r,
|
|
6600
6601
|
fields: Qn,
|
|
6601
6602
|
renderCell: (e, t, n = {}) => d_({
|
|
6602
6603
|
...e,
|
|
@@ -6604,7 +6605,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6604
6605
|
...n,
|
|
6605
6606
|
...e.renderConfig
|
|
6606
6607
|
}
|
|
6607
|
-
}, t, rt,
|
|
6608
|
+
}, t, rt, Or, {
|
|
6608
6609
|
canAdd: Ge,
|
|
6609
6610
|
canEdit: Ke,
|
|
6610
6611
|
canDelete: qe
|
|
@@ -6612,18 +6613,18 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6612
6613
|
key: $e,
|
|
6613
6614
|
label: Un?.label ?? Un?.title ?? ""
|
|
6614
6615
|
}),
|
|
6615
|
-
tabs:
|
|
6616
|
-
total:
|
|
6616
|
+
tabs: Er,
|
|
6617
|
+
total: vr,
|
|
6617
6618
|
loading: _n ? N : Ln || sn,
|
|
6618
6619
|
current: Dt.current,
|
|
6619
6620
|
pageSize: Dt.pageSize,
|
|
6620
6621
|
activeTab: $e,
|
|
6621
|
-
onTabChange:
|
|
6622
|
+
onTabChange: Mr,
|
|
6622
6623
|
onPageChange: (e) => {
|
|
6623
|
-
_n && typeof
|
|
6624
|
+
_n && typeof ie == "function" ? ie(e, Dt.pageSize) : Pn(e);
|
|
6624
6625
|
},
|
|
6625
6626
|
onPageSizeChange: (e) => {
|
|
6626
|
-
_n && typeof
|
|
6627
|
+
_n && typeof ae == "function" ? ae(e) : (Ot({
|
|
6627
6628
|
current: 1,
|
|
6628
6629
|
pageSize: e
|
|
6629
6630
|
}), Nn(1, { replace: !0 }));
|
|
@@ -6646,11 +6647,11 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6646
6647
|
children: /* @__PURE__ */ Z(ec, { "aria-hidden": "true" })
|
|
6647
6648
|
}), "Export records"]
|
|
6648
6649
|
}),
|
|
6649
|
-
open: st,
|
|
6650
|
+
open: er && st,
|
|
6650
6651
|
onCancel: () => {
|
|
6651
6652
|
pt || ct(!1);
|
|
6652
6653
|
},
|
|
6653
|
-
onOk:
|
|
6654
|
+
onOk: nr,
|
|
6654
6655
|
okText: at === "xlsx" ? "Export Excel" : "Export CSV",
|
|
6655
6656
|
confirmLoading: pt,
|
|
6656
6657
|
cancelButtonProps: { disabled: pt },
|
|
@@ -6776,28 +6777,28 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6776
6777
|
justify: "space-between",
|
|
6777
6778
|
children: [/* @__PURE__ */ Z(iu, {
|
|
6778
6779
|
activeKey: $e,
|
|
6779
|
-
tabs:
|
|
6780
|
-
onChange:
|
|
6780
|
+
tabs: Er,
|
|
6781
|
+
onChange: Mr
|
|
6781
6782
|
}), /* @__PURE__ */ Q(Wo, {
|
|
6782
6783
|
align: "center",
|
|
6783
6784
|
gap: 8,
|
|
6784
6785
|
children: [
|
|
6785
6786
|
ce,
|
|
6786
|
-
|
|
6787
|
+
er && /* @__PURE__ */ Z(J, {
|
|
6787
6788
|
title: "Export",
|
|
6788
6789
|
children: /* @__PURE__ */ Z(B, {
|
|
6789
6790
|
"aria-label": "Export",
|
|
6790
6791
|
className: "job-toolbar-icon-button",
|
|
6791
6792
|
icon: /* @__PURE__ */ Z(ec, { "aria-hidden": "true" }),
|
|
6792
|
-
onClick:
|
|
6793
|
+
onClick: tr
|
|
6793
6794
|
})
|
|
6794
6795
|
}),
|
|
6795
|
-
|
|
6796
|
+
Cr && /* @__PURE__ */ Z(U, {
|
|
6796
6797
|
prefix: /* @__PURE__ */ Z($c, { className: "job-search-icon" }),
|
|
6797
6798
|
placeholder: ue,
|
|
6798
6799
|
value: tt,
|
|
6799
|
-
onChange:
|
|
6800
|
-
onPressEnter:
|
|
6800
|
+
onChange: Vr,
|
|
6801
|
+
onPressEnter: Hr,
|
|
6801
6802
|
allowClear: !0,
|
|
6802
6803
|
className: "job-search-input"
|
|
6803
6804
|
}),
|
|
@@ -6812,7 +6813,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6812
6813
|
}
|
|
6813
6814
|
})
|
|
6814
6815
|
}),
|
|
6815
|
-
y && !b &&
|
|
6816
|
+
y && !b && Sr && _t !== "top" && /* @__PURE__ */ Z(J, {
|
|
6816
6817
|
title: "Filter",
|
|
6817
6818
|
children: /* @__PURE__ */ Z(No, {
|
|
6818
6819
|
count: yt.filter((e) => e.field && X_(e)).length,
|
|
@@ -6826,7 +6827,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6826
6827
|
})
|
|
6827
6828
|
})
|
|
6828
6829
|
}),
|
|
6829
|
-
fe &&
|
|
6830
|
+
fe && Sr && /* @__PURE__ */ Q(Wo, {
|
|
6830
6831
|
align: "center",
|
|
6831
6832
|
gap: 6,
|
|
6832
6833
|
children: [/* @__PURE__ */ Z(J, {
|
|
@@ -6852,20 +6853,20 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6852
6853
|
h && /* @__PURE__ */ Z(B, {
|
|
6853
6854
|
className: "job-summary-button",
|
|
6854
6855
|
type: "primary",
|
|
6855
|
-
onClick:
|
|
6856
|
+
onClick: Rr,
|
|
6856
6857
|
children: g
|
|
6857
6858
|
}),
|
|
6858
6859
|
v && T && /* @__PURE__ */ Z(B, {
|
|
6859
6860
|
className: "job-summary-button",
|
|
6860
6861
|
type: "primary",
|
|
6861
|
-
onClick:
|
|
6862
|
+
onClick: zr,
|
|
6862
6863
|
children: C
|
|
6863
6864
|
})
|
|
6864
6865
|
]
|
|
6865
6866
|
})]
|
|
6866
6867
|
})
|
|
6867
6868
|
}),
|
|
6868
|
-
|
|
6869
|
+
Sr && /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z(Fo, {
|
|
6869
6870
|
className: "job-toolbar-card",
|
|
6870
6871
|
children: /* @__PURE__ */ Q(Wo, {
|
|
6871
6872
|
className: "p-flex",
|
|
@@ -6876,14 +6877,14 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6876
6877
|
gap: 3,
|
|
6877
6878
|
children: [
|
|
6878
6879
|
wn === "card" && /* @__PURE__ */ Z(Io, {
|
|
6879
|
-
checked:
|
|
6880
|
-
indeterminate: Ft.length > 0 && Ft.length <
|
|
6880
|
+
checked: _r.length > 0 && Ft.length >= _r.length,
|
|
6881
|
+
indeterminate: Ft.length > 0 && Ft.length < _r.length,
|
|
6881
6882
|
className: "param-card-view__select-all",
|
|
6882
6883
|
onChange: () => {
|
|
6883
6884
|
if (Ft.length > 0) It([]), Gt([], []);
|
|
6884
6885
|
else {
|
|
6885
|
-
let e =
|
|
6886
|
-
It(e), Gt(e, [...
|
|
6886
|
+
let e = _r.map((e, t) => String(T_(e, t, m)));
|
|
6887
|
+
It(e), Gt(e, [..._r]);
|
|
6887
6888
|
}
|
|
6888
6889
|
},
|
|
6889
6890
|
children: "Select All"
|
|
@@ -6892,7 +6893,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6892
6893
|
open: Nt,
|
|
6893
6894
|
onOpenChange: Pt,
|
|
6894
6895
|
trigger: ["click"],
|
|
6895
|
-
popupRender: () =>
|
|
6896
|
+
popupRender: () => Gr,
|
|
6896
6897
|
placement: "bottomLeft",
|
|
6897
6898
|
classNames: { root: "column-visibility-dropdown" },
|
|
6898
6899
|
children: /* @__PURE__ */ Z(B, {
|
|
@@ -6911,7 +6912,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6911
6912
|
An.length > 0 && xt.length > 0 && /* @__PURE__ */ Z(Ho, {
|
|
6912
6913
|
menu: {
|
|
6913
6914
|
items: An.map((e) => A_(e, j_(e, Ct, $e))),
|
|
6914
|
-
onClick:
|
|
6915
|
+
onClick: Pr
|
|
6915
6916
|
},
|
|
6916
6917
|
trigger: ["click"],
|
|
6917
6918
|
children: /* @__PURE__ */ Q(B, {
|
|
@@ -6938,11 +6939,11 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6938
6939
|
]
|
|
6939
6940
|
})
|
|
6940
6941
|
]
|
|
6941
|
-
}),
|
|
6942
|
+
}), yr && /* @__PURE__ */ Q(Jh, {
|
|
6942
6943
|
className: "job-search-results-count",
|
|
6943
6944
|
children: [
|
|
6944
6945
|
"Search Results (",
|
|
6945
|
-
|
|
6946
|
+
xr,
|
|
6946
6947
|
")"
|
|
6947
6948
|
]
|
|
6948
6949
|
})]
|
|
@@ -6958,7 +6959,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6958
6959
|
onApply: ({ filters: e }) => {
|
|
6959
6960
|
bt(e), Fn();
|
|
6960
6961
|
},
|
|
6961
|
-
onReset:
|
|
6962
|
+
onReset: Ur
|
|
6962
6963
|
}, Le),
|
|
6963
6964
|
Yn && /* @__PURE__ */ Z($_, {
|
|
6964
6965
|
filters: yt,
|
|
@@ -6966,16 +6967,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6966
6967
|
let t = yt.filter((t, n) => n !== e);
|
|
6967
6968
|
bt(t), Fn();
|
|
6968
6969
|
},
|
|
6969
|
-
onClearAll:
|
|
6970
|
+
onClearAll: Ur
|
|
6970
6971
|
}),
|
|
6971
6972
|
/* @__PURE__ */ Z("div", {
|
|
6972
6973
|
ref: Lt,
|
|
6973
6974
|
className: "job-table-measure",
|
|
6974
6975
|
children: /* @__PURE__ */ Z(os, {
|
|
6975
6976
|
spinning: !P && (_n ? N : Ln || sn),
|
|
6976
|
-
children: wn === "card" ?
|
|
6977
|
+
children: wn === "card" ? _r.length === 0 ? /* @__PURE__ */ Z(Uo, {
|
|
6977
6978
|
image: Uo.PRESENTED_IMAGE_SIMPLE,
|
|
6978
|
-
description:
|
|
6979
|
+
description: wr,
|
|
6979
6980
|
className: "param-card-view__empty",
|
|
6980
6981
|
children: !_n && Ge && Oe && Mn && !dn && /* @__PURE__ */ Z(B, {
|
|
6981
6982
|
type: "primary",
|
|
@@ -6985,16 +6986,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
6985
6986
|
})
|
|
6986
6987
|
}) : /* @__PURE__ */ Z("div", {
|
|
6987
6988
|
className: "param-card-view__grid",
|
|
6988
|
-
children:
|
|
6989
|
+
children: _r.map((e, t) => {
|
|
6989
6990
|
let n = String(T_(e, t, m));
|
|
6990
6991
|
return /* @__PURE__ */ Z(Y_, {
|
|
6991
6992
|
record: e,
|
|
6992
|
-
fields:
|
|
6993
|
+
fields: hr,
|
|
6993
6994
|
selected: ye === "checkbox" ? Ft.includes(n) : Ut(e, t),
|
|
6994
6995
|
isControlled: _n,
|
|
6995
|
-
onPreview: () =>
|
|
6996
|
-
onSelect: () =>
|
|
6997
|
-
onPopupAction:
|
|
6996
|
+
onPreview: () => Dr(e),
|
|
6997
|
+
onSelect: () => Wr(n),
|
|
6998
|
+
onPopupAction: Or,
|
|
6998
6999
|
onRecordClick: _e ? () => Wt(e, t) : void 0,
|
|
6999
7000
|
selectionMode: ye,
|
|
7000
7001
|
permissions: {
|
|
@@ -7012,16 +7013,16 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
7012
7013
|
}, n);
|
|
7013
7014
|
})
|
|
7014
7015
|
}) : typeof Pe == "function" ? Pe({
|
|
7015
|
-
columns:
|
|
7016
|
-
rows:
|
|
7016
|
+
columns: jr,
|
|
7017
|
+
rows: _r,
|
|
7017
7018
|
rowKey: (e, t) => T_(e, t, m),
|
|
7018
7019
|
selectedRowKeys: xt,
|
|
7019
7020
|
onSelectionChange: Gt,
|
|
7020
|
-
selectable:
|
|
7021
|
+
selectable: Sr && ye === "checkbox",
|
|
7021
7022
|
onRecordClick: _e ? Wt : void 0,
|
|
7022
|
-
emptyMessage:
|
|
7023
|
+
emptyMessage: wr
|
|
7023
7024
|
}) : /* @__PURE__ */ Z(ls, {
|
|
7024
|
-
rowSelection:
|
|
7025
|
+
rowSelection: Sr && ye === "checkbox" ? {
|
|
7025
7026
|
type: "checkbox",
|
|
7026
7027
|
fixed: !0,
|
|
7027
7028
|
columnWidth: 48,
|
|
@@ -7030,32 +7031,32 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
7030
7031
|
Gt(e, t);
|
|
7031
7032
|
},
|
|
7032
7033
|
columnTitle: (() => {
|
|
7033
|
-
let e =
|
|
7034
|
+
let e = _r.length, t = e > 0 && xt.length >= e, n = xt.length > 0 && !t;
|
|
7034
7035
|
return /* @__PURE__ */ Z(Io, {
|
|
7035
7036
|
checked: t,
|
|
7036
7037
|
indeterminate: n,
|
|
7037
7038
|
onChange: () => {
|
|
7038
7039
|
if (n || t) Gt([], []);
|
|
7039
7040
|
else {
|
|
7040
|
-
let e =
|
|
7041
|
-
Gt(e, [...
|
|
7041
|
+
let e = _r.map((e, t) => T_(e, t, m));
|
|
7042
|
+
Gt(e, [..._r]);
|
|
7042
7043
|
}
|
|
7043
7044
|
}
|
|
7044
7045
|
});
|
|
7045
7046
|
})()
|
|
7046
7047
|
} : void 0,
|
|
7047
|
-
columns:
|
|
7048
|
-
dataSource:
|
|
7048
|
+
columns: jr,
|
|
7049
|
+
dataSource: _r,
|
|
7049
7050
|
size: "middle",
|
|
7050
7051
|
tableLayout: "fixed",
|
|
7051
7052
|
scroll: {
|
|
7052
|
-
x:
|
|
7053
|
+
x: jr.reduce((e, t) => e + (Number(t.width) || f_), 0) + (Sr && ye === "checkbox" ? 48 : 0),
|
|
7053
7054
|
y: "calc(100vh - 300px)"
|
|
7054
7055
|
},
|
|
7055
7056
|
pagination: !1,
|
|
7056
7057
|
locale: { emptyText: /* @__PURE__ */ Z(Uo, {
|
|
7057
7058
|
image: Uo.PRESENTED_IMAGE_SIMPLE,
|
|
7058
|
-
description:
|
|
7059
|
+
description: wr
|
|
7059
7060
|
}) },
|
|
7060
7061
|
className: `${O} ${be ? "list-view-table--compact" : ""}`.trim(),
|
|
7061
7062
|
onRow: _e ? (e, t) => ({
|
|
@@ -7069,21 +7070,21 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
7069
7070
|
})
|
|
7070
7071
|
})
|
|
7071
7072
|
}),
|
|
7072
|
-
|
|
7073
|
+
Sr ? /* @__PURE__ */ Z(id, {
|
|
7073
7074
|
current: Dt.current,
|
|
7074
7075
|
pageSize: Dt.pageSize,
|
|
7075
|
-
total:
|
|
7076
|
-
count:
|
|
7076
|
+
total: vr,
|
|
7077
|
+
count: _r.length,
|
|
7077
7078
|
onChange: (e, t) => {
|
|
7078
|
-
if (_n && typeof
|
|
7079
|
-
|
|
7079
|
+
if (_n && typeof ie == "function") {
|
|
7080
|
+
ie(e, t ?? Dt.pageSize);
|
|
7080
7081
|
return;
|
|
7081
7082
|
}
|
|
7082
7083
|
Pn(e);
|
|
7083
7084
|
},
|
|
7084
7085
|
onPageSizeChange: (e) => {
|
|
7085
|
-
if (_n && typeof
|
|
7086
|
-
|
|
7086
|
+
if (_n && typeof ae == "function") {
|
|
7087
|
+
ae(e);
|
|
7087
7088
|
return;
|
|
7088
7089
|
}
|
|
7089
7090
|
Ot({
|
|
@@ -7096,8 +7097,8 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
|
|
|
7096
7097
|
moduleName: Le,
|
|
7097
7098
|
open: hn,
|
|
7098
7099
|
rows: Kt,
|
|
7099
|
-
tabs:
|
|
7100
|
-
total:
|
|
7100
|
+
tabs: Er,
|
|
7101
|
+
total: vr,
|
|
7101
7102
|
onClose: () => gn(!1)
|
|
7102
7103
|
})
|
|
7103
7104
|
]
|
|
@@ -7554,26 +7555,36 @@ function ey(e) {
|
|
|
7554
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])) : {};
|
|
7555
7556
|
}
|
|
7556
7557
|
var ty = "__none__";
|
|
7557
|
-
function ny(e, t) {
|
|
7558
|
-
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] : [
|
|
7559
7561
|
t.prefillFrom,
|
|
7560
7562
|
t.field,
|
|
7561
7563
|
t.payloadKey
|
|
7562
|
-
]
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
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;
|
|
7566
7569
|
}
|
|
7567
7570
|
}
|
|
7568
|
-
function ry(e) {
|
|
7569
|
-
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
|
+
}];
|
|
7570
7581
|
if (!e || typeof e != "object") return [];
|
|
7571
|
-
let
|
|
7572
|
-
return !
|
|
7573
|
-
uid:
|
|
7574
|
-
name:
|
|
7582
|
+
let n = Vf(e), r = Hf(e);
|
|
7583
|
+
return !n && !r ? [] : [{
|
|
7584
|
+
uid: r || n || "-1",
|
|
7585
|
+
name: n || "file",
|
|
7575
7586
|
status: "done",
|
|
7576
|
-
url:
|
|
7587
|
+
url: r,
|
|
7577
7588
|
existing: !0,
|
|
7578
7589
|
stored: e
|
|
7579
7590
|
}];
|
|
@@ -7892,7 +7903,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
7892
7903
|
}), {
|
|
7893
7904
|
pyops: r,
|
|
7894
7905
|
core: s
|
|
7895
|
-
}) : 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({
|
|
7896
7907
|
open: !1,
|
|
7897
7908
|
docs: [],
|
|
7898
7909
|
index: 0
|
|
@@ -7968,7 +7979,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
7968
7979
|
masterName: e.masterName ?? "",
|
|
7969
7980
|
locationSearch: te,
|
|
7970
7981
|
lookupSearch: re,
|
|
7971
|
-
masterSearch:
|
|
7982
|
+
masterSearch: ae,
|
|
7972
7983
|
moduleName: i ?? "",
|
|
7973
7984
|
refetchNonce: oe,
|
|
7974
7985
|
locationLevel: e.locationLevel ?? "",
|
|
@@ -8037,7 +8048,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
8037
8048
|
async function o() {
|
|
8038
8049
|
try {
|
|
8039
8050
|
let o = [];
|
|
8040
|
-
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, {
|
|
8041
8052
|
dataSource: r,
|
|
8042
8053
|
masterName: e.masterName,
|
|
8043
8054
|
groupName: e.groupName
|
|
@@ -8123,7 +8134,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
8123
8134
|
e.masterName,
|
|
8124
8135
|
te,
|
|
8125
8136
|
re,
|
|
8126
|
-
|
|
8137
|
+
ae,
|
|
8127
8138
|
i,
|
|
8128
8139
|
e.extraFields,
|
|
8129
8140
|
e.optionsRequireExtraField,
|
|
@@ -8316,7 +8327,7 @@ function Dy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
|
|
|
8316
8327
|
placeholder: Et,
|
|
8317
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,
|
|
8318
8329
|
onSearch: r || o || d ? (e) => {
|
|
8319
|
-
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);
|
|
8320
8331
|
} : void 0,
|
|
8321
8332
|
onChange: m,
|
|
8322
8333
|
defaultActiveFirstOption: !d && void 0,
|
|
@@ -8742,22 +8753,22 @@ function Ny(e, t) {
|
|
|
8742
8753
|
}, t))
|
|
8743
8754
|
});
|
|
8744
8755
|
}
|
|
8745
|
-
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,
|
|
8746
|
-
let
|
|
8747
|
-
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,
|
|
8748
8759
|
moduleName: e
|
|
8749
|
-
}), [
|
|
8760
|
+
}), [E, e]);
|
|
8750
8761
|
L(() => (n && l(n), () => {
|
|
8751
8762
|
n && w();
|
|
8752
8763
|
}), [n]);
|
|
8753
|
-
let
|
|
8754
|
-
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, () => ({
|
|
8755
8766
|
submit: () => I.submit(),
|
|
8756
8767
|
validate: () => I.validateFields(),
|
|
8757
8768
|
getValues: () => I.getFieldsValue(!0),
|
|
8758
8769
|
reset: () => I.resetFields()
|
|
8759
8770
|
}), [I]);
|
|
8760
|
-
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({
|
|
8761
8772
|
searched: !1,
|
|
8762
8773
|
rows: [],
|
|
8763
8774
|
total: 0,
|
|
@@ -8765,20 +8776,20 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8765
8776
|
actions: [],
|
|
8766
8777
|
actionRules: [],
|
|
8767
8778
|
loading: !1
|
|
8768
|
-
}), [
|
|
8779
|
+
}), [Pe, Fe] = z({
|
|
8769
8780
|
current: 1,
|
|
8770
8781
|
pageSize: 10
|
|
8771
|
-
}), [
|
|
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") || "";
|
|
8772
8783
|
L(() => {
|
|
8773
|
-
if (
|
|
8784
|
+
if (D || r || b || !St) return;
|
|
8774
8785
|
let e = !1;
|
|
8775
8786
|
return (async () => {
|
|
8776
8787
|
try {
|
|
8777
8788
|
let t = $v(Zv(await $a({
|
|
8778
8789
|
module: "jobs",
|
|
8779
|
-
id:
|
|
8790
|
+
id: St
|
|
8780
8791
|
}))) ?? {}, n = t.clientId ?? t.client ?? "", r = n && typeof n == "object" ? n.id ?? n.value ?? "" : n;
|
|
8781
|
-
!e && r &&
|
|
8792
|
+
!e && r && xt(String(r));
|
|
8782
8793
|
} catch (e) {
|
|
8783
8794
|
console.error("Client-scope resolve from job failed:", e);
|
|
8784
8795
|
}
|
|
@@ -8786,16 +8797,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8786
8797
|
e = !0;
|
|
8787
8798
|
};
|
|
8788
8799
|
}, [
|
|
8789
|
-
|
|
8800
|
+
D,
|
|
8790
8801
|
r,
|
|
8791
|
-
|
|
8792
|
-
|
|
8802
|
+
b,
|
|
8803
|
+
St
|
|
8793
8804
|
]);
|
|
8794
|
-
let
|
|
8805
|
+
let Ct = r || b || bt || qe, wt = i || Ye, [, Tt] = z(0);
|
|
8795
8806
|
L(() => {
|
|
8796
8807
|
let e = !0;
|
|
8797
8808
|
return Re().then(() => {
|
|
8798
|
-
e &&
|
|
8809
|
+
e && Tt((e) => e + 1);
|
|
8799
8810
|
}), () => {
|
|
8800
8811
|
e = !1;
|
|
8801
8812
|
};
|
|
@@ -8804,16 +8815,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8804
8815
|
return queueMicrotask(() => {
|
|
8805
8816
|
if (!t) {
|
|
8806
8817
|
if (!e) {
|
|
8807
|
-
|
|
8818
|
+
pt(null);
|
|
8808
8819
|
return;
|
|
8809
8820
|
}
|
|
8810
8821
|
wn({ roleId: localStorage.getItem("roleId") }, e, {
|
|
8811
|
-
clientId:
|
|
8812
|
-
region:
|
|
8822
|
+
clientId: Ct,
|
|
8823
|
+
region: wt
|
|
8813
8824
|
}).then((e) => {
|
|
8814
|
-
t ||
|
|
8825
|
+
t || pt(Array.isArray(e) && e.length ? e : null);
|
|
8815
8826
|
}).catch(() => {
|
|
8816
|
-
t ||
|
|
8827
|
+
t || pt(null);
|
|
8817
8828
|
});
|
|
8818
8829
|
}
|
|
8819
8830
|
}), () => {
|
|
@@ -8821,52 +8832,54 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8821
8832
|
};
|
|
8822
8833
|
}, [
|
|
8823
8834
|
e,
|
|
8824
|
-
|
|
8825
|
-
|
|
8835
|
+
Ct,
|
|
8836
|
+
wt
|
|
8826
8837
|
]), L(() => {
|
|
8827
8838
|
let t = !1;
|
|
8828
8839
|
return queueMicrotask(() => {
|
|
8829
8840
|
if (!t) {
|
|
8830
8841
|
if (!e) {
|
|
8831
|
-
|
|
8842
|
+
ht(/* @__PURE__ */ new Map());
|
|
8832
8843
|
return;
|
|
8833
8844
|
}
|
|
8834
8845
|
tt(e).then((e) => {
|
|
8835
|
-
t ||
|
|
8846
|
+
t || ht(un(e));
|
|
8836
8847
|
}).catch(() => {
|
|
8837
|
-
t ||
|
|
8848
|
+
t || ht(/* @__PURE__ */ new Map());
|
|
8838
8849
|
});
|
|
8839
8850
|
}
|
|
8840
8851
|
}), () => {
|
|
8841
8852
|
t = !0;
|
|
8842
8853
|
};
|
|
8843
8854
|
}, [e]);
|
|
8844
|
-
let
|
|
8845
|
-
|
|
8855
|
+
let Et = R(() => Qv(gt, e, ft, mt), [
|
|
8856
|
+
gt,
|
|
8846
8857
|
e,
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
]), [
|
|
8858
|
+
ft,
|
|
8859
|
+
mt
|
|
8860
|
+
]), [Dt, Ot] = z(0), kt = R(() => Ar({
|
|
8850
8861
|
checkFieldUnique: Zr,
|
|
8851
|
-
onPendingChange:
|
|
8852
|
-
}), []),
|
|
8853
|
-
checker:
|
|
8862
|
+
onPendingChange: Ot
|
|
8863
|
+
}), []), At = R(() => N ? void 0 : {
|
|
8864
|
+
checker: kt,
|
|
8854
8865
|
module: e,
|
|
8855
|
-
clientId:
|
|
8856
|
-
region:
|
|
8866
|
+
clientId: Ct || void 0,
|
|
8867
|
+
region: wt || void 0,
|
|
8868
|
+
recordId: h || void 0
|
|
8857
8869
|
}, [
|
|
8858
|
-
|
|
8859
|
-
|
|
8870
|
+
N,
|
|
8871
|
+
kt,
|
|
8860
8872
|
e,
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
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({
|
|
8864
8877
|
form: I,
|
|
8865
8878
|
moduleName: e,
|
|
8866
|
-
config:
|
|
8879
|
+
config: Lt,
|
|
8867
8880
|
onUseExisting: wo((t, n, r, i) => {
|
|
8868
8881
|
if (!t) return;
|
|
8869
|
-
let a = n?.editRoute ||
|
|
8882
|
+
let a = n?.editRoute || Lt?.editRoute;
|
|
8870
8883
|
if (!a) {
|
|
8871
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".`);
|
|
8872
8885
|
return;
|
|
@@ -8876,29 +8889,29 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8876
8889
|
let [s, c = ""] = o.split("?"), l = new URLSearchParams(c);
|
|
8877
8890
|
n?.selectedVersionId && l.set("candidateVersionId", n.selectedVersionId);
|
|
8878
8891
|
let u = l.size ? `${s}?${l}` : o;
|
|
8879
|
-
|
|
8892
|
+
F(u, { state: {
|
|
8880
8893
|
fromDuplicate: !0,
|
|
8881
8894
|
carryFiles: i?.files ?? null
|
|
8882
8895
|
} });
|
|
8883
|
-
}, [
|
|
8884
|
-
}), [
|
|
8896
|
+
}, [Lt, F])
|
|
8897
|
+
}), [zt, Bt] = z(null), Vt = da({
|
|
8885
8898
|
form: I,
|
|
8886
|
-
groups:
|
|
8899
|
+
groups: Et,
|
|
8887
8900
|
module: e,
|
|
8888
8901
|
watchSourcesOnly: !0,
|
|
8889
8902
|
onParsed: wo(async ({ field: e, payload: t }) => {
|
|
8890
|
-
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({
|
|
8891
8904
|
reason: "upload",
|
|
8892
8905
|
payload: t,
|
|
8893
8906
|
carry: r
|
|
8894
8907
|
});
|
|
8895
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");
|
|
8896
|
-
}, [
|
|
8909
|
+
}, [Rt, I]),
|
|
8897
8910
|
onApplied: wo(async () => {
|
|
8898
|
-
await
|
|
8899
|
-
}, [
|
|
8900
|
-
}),
|
|
8901
|
-
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));
|
|
8902
8915
|
if (!n) return !1;
|
|
8903
8916
|
let r = Sr(n, t), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
|
|
8904
8917
|
if (e.field !== i || Qn(r)) return !1;
|
|
@@ -8916,16 +8929,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8916
8929
|
body: Pr(r),
|
|
8917
8930
|
okText: a ? "Got it" : "Keep it anyway"
|
|
8918
8931
|
}), a;
|
|
8919
|
-
}, [
|
|
8920
|
-
let n =
|
|
8932
|
+
}, [Et]), Ut = wo((e, t) => {
|
|
8933
|
+
let n = Et.find((e) => e.name === t);
|
|
8921
8934
|
if (!n) return;
|
|
8922
8935
|
let r = Sr(n, _t().region), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
|
|
8923
8936
|
if (e.field !== i) return;
|
|
8924
8937
|
let a = Br(r);
|
|
8925
8938
|
return a ? [a] : void 0;
|
|
8926
|
-
}, [
|
|
8939
|
+
}, [Et]), Wt = wo(async (e, t) => {
|
|
8927
8940
|
if (!Array.isArray(t) || t.length < 3 || typeof t[1] != "number") return;
|
|
8928
|
-
let n = t[0], r = t[1], i =
|
|
8941
|
+
let n = t[0], r = t[1], i = Et.find((e) => e.name === n);
|
|
8929
8942
|
if (!i) return;
|
|
8930
8943
|
let a = Sr(i, _t().region);
|
|
8931
8944
|
if (!a.orderBy) return;
|
|
@@ -8935,7 +8948,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8935
8948
|
group: a,
|
|
8936
8949
|
rows: o,
|
|
8937
8950
|
rowIndex: r,
|
|
8938
|
-
move:
|
|
8951
|
+
move: Nt.current[n]?.move,
|
|
8939
8952
|
confirm: ({ title: e, body: t, okText: n, cancelText: r, from: i, to: a }) => Mi({
|
|
8940
8953
|
tone: "suggestion",
|
|
8941
8954
|
title: e,
|
|
@@ -8951,17 +8964,17 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8951
8964
|
cancelText: r
|
|
8952
8965
|
})
|
|
8953
8966
|
});
|
|
8954
|
-
}, [
|
|
8955
|
-
if (!
|
|
8956
|
-
|
|
8967
|
+
}, [Et, I]), Gt = Oo(!1), Kt = wo(async () => {
|
|
8968
|
+
if (!Gt.current) {
|
|
8969
|
+
Gt.current = !0;
|
|
8957
8970
|
try {
|
|
8958
|
-
await
|
|
8971
|
+
await Rt.prompt({ reason: "blur" });
|
|
8959
8972
|
} finally {
|
|
8960
|
-
|
|
8973
|
+
Gt.current = !1;
|
|
8961
8974
|
}
|
|
8962
8975
|
}
|
|
8963
|
-
}, [
|
|
8964
|
-
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));
|
|
8965
8978
|
return e ? {
|
|
8966
8979
|
hasClientScope: !0,
|
|
8967
8980
|
clientGateMessage: e.clientGateMessage || "",
|
|
@@ -8971,32 +8984,32 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8971
8984
|
clientGateMessage: "",
|
|
8972
8985
|
clientGateResetOnChange: !1
|
|
8973
8986
|
};
|
|
8974
|
-
}, [
|
|
8975
|
-
if (
|
|
8987
|
+
}, [gt]), $t = (e) => {
|
|
8988
|
+
if (Qt) {
|
|
8976
8989
|
I.resetFields();
|
|
8977
8990
|
let e = I.getFieldsValue(!0);
|
|
8978
|
-
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({
|
|
8979
8992
|
searched: !1,
|
|
8980
8993
|
rows: [],
|
|
8981
8994
|
total: 0,
|
|
8982
8995
|
fields: [],
|
|
8983
8996
|
loading: !1
|
|
8984
|
-
}),
|
|
8997
|
+
}), Fe({
|
|
8985
8998
|
current: 1,
|
|
8986
8999
|
pageSize: 10
|
|
8987
9000
|
});
|
|
8988
9001
|
}
|
|
8989
|
-
|
|
8990
|
-
},
|
|
9002
|
+
Je(e ?? "");
|
|
9003
|
+
}, en = Xt && !Ct, tn = wo(() => Te({ limit: 200 }).then(Ke).catch(() => Ke([])), []);
|
|
8991
9004
|
L(() => {
|
|
8992
|
-
!
|
|
9005
|
+
!Xt || b || bt || tn();
|
|
8993
9006
|
}, [
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
9007
|
+
Xt,
|
|
9008
|
+
b,
|
|
9009
|
+
bt,
|
|
9010
|
+
tn
|
|
8998
9011
|
]);
|
|
8999
|
-
let
|
|
9012
|
+
let nn = Ba({
|
|
9000
9013
|
field: {
|
|
9001
9014
|
field: "clientId",
|
|
9002
9015
|
quickCreate: !0,
|
|
@@ -9017,25 +9030,25 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9017
9030
|
name: "clientId",
|
|
9018
9031
|
moduleName: e,
|
|
9019
9032
|
scopeValues: {},
|
|
9020
|
-
ownValue:
|
|
9033
|
+
ownValue: Ct,
|
|
9021
9034
|
onDone: (e, t) => {
|
|
9022
|
-
|
|
9035
|
+
tn(), e === "create" && t != null && $t(String(t));
|
|
9023
9036
|
}
|
|
9024
9037
|
});
|
|
9025
9038
|
L(() => {
|
|
9026
9039
|
if (!e) return;
|
|
9027
9040
|
let n = !1;
|
|
9028
9041
|
async function r() {
|
|
9029
|
-
let r = `${
|
|
9042
|
+
let r = `${Ct ?? ""}|${wt ?? ""}`;
|
|
9030
9043
|
try {
|
|
9031
|
-
|
|
9032
|
-
let i =
|
|
9044
|
+
xe(!0), we("");
|
|
9045
|
+
let i = N ? await it(e, "search", t) : await $a({
|
|
9033
9046
|
module: e,
|
|
9034
9047
|
action: t,
|
|
9035
|
-
clientId:
|
|
9036
|
-
region:
|
|
9037
|
-
}), a = Zv(
|
|
9038
|
-
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 {
|
|
9039
9052
|
let n = Zv(await $a({
|
|
9040
9053
|
module: e,
|
|
9041
9054
|
action: t
|
|
@@ -9050,11 +9063,11 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9050
9063
|
} catch (e) {
|
|
9051
9064
|
console.warn("[Submission color] Default optionColors lookup failed:", e);
|
|
9052
9065
|
}
|
|
9053
|
-
n || (
|
|
9066
|
+
n || (he(a), ve(r), N && De(i?.[0]?.label || ""));
|
|
9054
9067
|
} catch (t) {
|
|
9055
|
-
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));
|
|
9056
9069
|
} finally {
|
|
9057
|
-
n ||
|
|
9070
|
+
n || xe(!1);
|
|
9058
9071
|
}
|
|
9059
9072
|
}
|
|
9060
9073
|
return r(), () => {
|
|
@@ -9063,13 +9076,13 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9063
9076
|
}, [
|
|
9064
9077
|
e,
|
|
9065
9078
|
t,
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9079
|
+
N,
|
|
9080
|
+
Ct,
|
|
9081
|
+
wt
|
|
9069
9082
|
]);
|
|
9070
|
-
let
|
|
9071
|
-
if (!
|
|
9072
|
-
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 ? {
|
|
9073
9086
|
module: "candidates",
|
|
9074
9087
|
id: e,
|
|
9075
9088
|
candidateVersionId: r || void 0
|
|
@@ -9079,7 +9092,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9079
9092
|
} : null, o = {};
|
|
9080
9093
|
if (e && (o.applicantId = e), i && (o.jobId = i), r) {
|
|
9081
9094
|
o.candidateVersionId = r;
|
|
9082
|
-
let e = Number(
|
|
9095
|
+
let e = Number(ae.get("candidateProfileVersion"));
|
|
9083
9096
|
Number.isSafeInteger(e) && e > 0 && (o.profileVersion = e);
|
|
9084
9097
|
}
|
|
9085
9098
|
return {
|
|
@@ -9088,52 +9101,52 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9088
9101
|
linkage: Object.keys(o).length ? o : null
|
|
9089
9102
|
};
|
|
9090
9103
|
}, [
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9104
|
+
_,
|
|
9105
|
+
v,
|
|
9106
|
+
ae,
|
|
9107
|
+
ie
|
|
9095
9108
|
]);
|
|
9096
9109
|
L(() => {
|
|
9097
|
-
let e =
|
|
9110
|
+
let e = rn?.source;
|
|
9098
9111
|
if (!e) return;
|
|
9099
9112
|
let t = !1;
|
|
9100
9113
|
async function n() {
|
|
9101
9114
|
try {
|
|
9102
|
-
if (
|
|
9115
|
+
if (et(!0), rt(""), e.module === "candidates") {
|
|
9103
9116
|
let n = await Lf({
|
|
9104
9117
|
candidateSource: e,
|
|
9105
|
-
submissionId:
|
|
9118
|
+
submissionId: rn.previousSubmissionId,
|
|
9106
9119
|
findLatestSubmission: Ef
|
|
9107
9120
|
}, $a);
|
|
9108
|
-
t || (
|
|
9121
|
+
t || (ct.current = n.candidate, lt.current = n.submission, ut.current = n.baseline, Qe(n.merged));
|
|
9109
9122
|
} else {
|
|
9110
9123
|
let n = await $a({
|
|
9111
9124
|
module: e.module,
|
|
9112
9125
|
id: e.id
|
|
9113
9126
|
});
|
|
9114
|
-
t ||
|
|
9127
|
+
t || Qe(Zv(n));
|
|
9115
9128
|
}
|
|
9116
9129
|
} catch (e) {
|
|
9117
|
-
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([]);
|
|
9118
9131
|
} finally {
|
|
9119
|
-
t ||
|
|
9132
|
+
t || et(!1);
|
|
9120
9133
|
}
|
|
9121
9134
|
}
|
|
9122
9135
|
return n(), () => {
|
|
9123
9136
|
t = !0;
|
|
9124
9137
|
};
|
|
9125
|
-
}, [
|
|
9126
|
-
let
|
|
9138
|
+
}, [rn]);
|
|
9139
|
+
let an = R(() => ey(Ze), [Ze]), on = R(() => $v(Ze), [Ze]), sn = R(() => {
|
|
9127
9140
|
let e = /* @__PURE__ */ new Set();
|
|
9128
|
-
return
|
|
9141
|
+
return Et.forEach((t) => (t.fields ?? []).forEach((t) => {
|
|
9129
9142
|
t.prefillFromModule && e.add(xy(t.prefillFromModule));
|
|
9130
9143
|
})), [...e];
|
|
9131
|
-
}, [
|
|
9144
|
+
}, [Et]), [cn, ln] = z({});
|
|
9132
9145
|
L(() => {
|
|
9133
|
-
let e =
|
|
9134
|
-
if (!e ||
|
|
9146
|
+
let e = rn?.linkage;
|
|
9147
|
+
if (h || !e || sn.length === 0) return;
|
|
9135
9148
|
let t = !1;
|
|
9136
|
-
return
|
|
9149
|
+
return sn.forEach(async (n) => {
|
|
9137
9150
|
let r = Ii(n, e);
|
|
9138
9151
|
if (r) try {
|
|
9139
9152
|
let i = $v(Zv(await $a({
|
|
@@ -9141,7 +9154,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9141
9154
|
id: r,
|
|
9142
9155
|
candidateVersionId: n === "candidates" ? e.candidateVersionId : void 0
|
|
9143
9156
|
})));
|
|
9144
|
-
!t && i &&
|
|
9157
|
+
!t && i && ln((e) => ({
|
|
9145
9158
|
...e,
|
|
9146
9159
|
[n]: i
|
|
9147
9160
|
}));
|
|
@@ -9151,15 +9164,20 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9151
9164
|
}), () => {
|
|
9152
9165
|
t = !0;
|
|
9153
9166
|
};
|
|
9154
|
-
}, [
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
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 {};
|
|
9158
9176
|
let t = {};
|
|
9159
|
-
return
|
|
9177
|
+
return Et.forEach((n) => {
|
|
9160
9178
|
n.addRow || (n.fields ?? []).forEach((n) => {
|
|
9161
9179
|
if (!n.field || !jv(n.prefillAsHint) || jv(n.addRow)) return;
|
|
9162
|
-
let r = n.prefillFromModule ?
|
|
9180
|
+
let r = n.prefillFromModule ? cn[xy(n.prefillFromModule)] : e;
|
|
9163
9181
|
if (!r) return;
|
|
9164
9182
|
let i = ny(r, n);
|
|
9165
9183
|
if (i == null) return;
|
|
@@ -9169,31 +9187,36 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9169
9187
|
}), t;
|
|
9170
9188
|
}, [
|
|
9171
9189
|
m,
|
|
9172
|
-
rn,
|
|
9173
9190
|
on,
|
|
9174
|
-
|
|
9191
|
+
cn,
|
|
9192
|
+
Et,
|
|
9193
|
+
h
|
|
9175
9194
|
]);
|
|
9176
9195
|
L(() => {
|
|
9177
|
-
if (
|
|
9178
|
-
|
|
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);
|
|
9179
9203
|
return;
|
|
9180
9204
|
}
|
|
9181
|
-
|
|
9182
|
-
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;
|
|
9183
9206
|
let t = {};
|
|
9184
|
-
|
|
9207
|
+
Et.forEach((n) => {
|
|
9185
9208
|
if (n.toggleEnabled && n.toggleField && e) {
|
|
9186
9209
|
let r = ny(e, { field: n.toggleField });
|
|
9187
9210
|
r != null && (t[n.toggleField] = !!r);
|
|
9188
9211
|
}
|
|
9189
9212
|
n.addRow || (n.fields ?? []).forEach((n) => {
|
|
9190
9213
|
if (!n.field || jv(n.addRow)) return;
|
|
9191
|
-
let r = n.prefillFromModule ?
|
|
9214
|
+
let r = !h && n.prefillFromModule ? cn[xy(n.prefillFromModule)] : e;
|
|
9192
9215
|
if (!r) return;
|
|
9193
|
-
let i = ny(r, n);
|
|
9194
|
-
if (i != null && !jv(n.prefillAsHint)) {
|
|
9216
|
+
let i = ny(r, n, !!h);
|
|
9217
|
+
if (i != null && !(!h && jv(n.prefillAsHint))) {
|
|
9195
9218
|
if (n.type === "file") {
|
|
9196
|
-
let e = ry(i);
|
|
9219
|
+
let e = ry(i, !!h);
|
|
9197
9220
|
e.length > 0 && ha(t, n.field, e);
|
|
9198
9221
|
} else ha(t, n.field, va(n, i));
|
|
9199
9222
|
}
|
|
@@ -9201,21 +9224,23 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9201
9224
|
}), Object.keys(t).length > 0 && I.setFieldsValue(t);
|
|
9202
9225
|
}, [
|
|
9203
9226
|
m,
|
|
9204
|
-
rn,
|
|
9205
9227
|
on,
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9228
|
+
cn,
|
|
9229
|
+
vt,
|
|
9230
|
+
Et,
|
|
9231
|
+
I,
|
|
9232
|
+
h,
|
|
9233
|
+
g
|
|
9209
9234
|
]), L(() => {
|
|
9210
|
-
let e =
|
|
9211
|
-
if (!(e || t) ||
|
|
9212
|
-
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);
|
|
9213
9238
|
if (i.length === 0) return;
|
|
9214
9239
|
let a = e || `inputs:${n}:${r}`, o;
|
|
9215
|
-
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({
|
|
9216
9241
|
jobId: n,
|
|
9217
9242
|
applicantId: r
|
|
9218
|
-
}).catch(() => [])),
|
|
9243
|
+
}).catch(() => [])), ne.current = a, re.current = o), !o || typeof o.then != "function") return;
|
|
9219
9244
|
let s = !1;
|
|
9220
9245
|
return o.then((e) => {
|
|
9221
9246
|
if (s || !Array.isArray(e) || e.length === 0) return;
|
|
@@ -9231,47 +9256,50 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9231
9256
|
s = !0;
|
|
9232
9257
|
};
|
|
9233
9258
|
}, [
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9259
|
+
te?.state?.relevantSkillsToken,
|
|
9260
|
+
te?.state?.relevantSkillsInputs,
|
|
9261
|
+
rn?.linkage?.jobId,
|
|
9262
|
+
rn?.linkage?.applicantId,
|
|
9263
|
+
vt,
|
|
9264
|
+
Et,
|
|
9240
9265
|
I
|
|
9241
9266
|
]);
|
|
9242
|
-
let
|
|
9243
|
-
...
|
|
9244
|
-
...
|
|
9245
|
-
...
|
|
9246
|
-
},
|
|
9247
|
-
let n = e.prefillFrom || e.payloadKey || e.name, r =
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
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 }));
|
|
9251
9279
|
}
|
|
9252
|
-
let
|
|
9253
|
-
let n = { ...
|
|
9280
|
+
let s = i.map((t) => {
|
|
9281
|
+
let n = { ...o };
|
|
9254
9282
|
return (e.fields ?? []).forEach((e) => {
|
|
9255
|
-
if (!e.field || e.type === "file") return;
|
|
9256
|
-
let r = ny(t, e);
|
|
9257
|
-
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));
|
|
9258
9286
|
}), n;
|
|
9259
9287
|
});
|
|
9260
|
-
for (;
|
|
9261
|
-
return
|
|
9262
|
-
},
|
|
9263
|
-
let e =
|
|
9264
|
-
if (!(!e ||
|
|
9265
|
-
|
|
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;
|
|
9266
9294
|
try {
|
|
9267
|
-
let t =
|
|
9295
|
+
let t = rn?.source?.module === "candidates", n = ct.current ?? (t ? Ze : null), r = Zv(await $a({
|
|
9268
9296
|
module: "candidates",
|
|
9269
9297
|
id: e
|
|
9270
9298
|
}));
|
|
9271
9299
|
if (!Array.isArray(r)) return;
|
|
9272
9300
|
if (Array.isArray(n)) {
|
|
9273
9301
|
let e = $v(n), t = $v(r), i = (e, t) => JSON.stringify(e ?? null) === JSON.stringify(t ?? null), a = {};
|
|
9274
|
-
|
|
9302
|
+
Et.forEach((n) => {
|
|
9275
9303
|
if (n.toggleEnabled && n.toggleField) {
|
|
9276
9304
|
let r = ny(e, { field: n.toggleField }), o = ny(t, { field: n.toggleField });
|
|
9277
9305
|
!i(r, o) && o != null && (a[n.toggleField] = !!o);
|
|
@@ -9286,21 +9314,21 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9286
9314
|
let t = e.prefillFrom || e.payloadKey || e.name;
|
|
9287
9315
|
return !i(o[t], s[t]);
|
|
9288
9316
|
}, l = {};
|
|
9289
|
-
|
|
9317
|
+
Et.forEach((e) => {
|
|
9290
9318
|
if (!e.addRow) return;
|
|
9291
|
-
let t = Fi(
|
|
9319
|
+
let t = Fi(Mt, e.name);
|
|
9292
9320
|
(t ? t.memberNames.some((e) => {
|
|
9293
|
-
let t =
|
|
9321
|
+
let t = Et.find((t) => t.name === e);
|
|
9294
9322
|
return t && c(t);
|
|
9295
|
-
}) : c(e)) && (l[e.name] =
|
|
9296
|
-
}), 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));
|
|
9297
9325
|
}
|
|
9298
|
-
if (t ? (
|
|
9326
|
+
if (t ? (st.current = !0, Qe(If(lt.current, r, ut.current))) : ct.current = r, ct.current = r, rn?.linkage?.candidateVersionId) {
|
|
9299
9327
|
let t = await Tf(e);
|
|
9300
|
-
t[0] && (
|
|
9328
|
+
t[0] && (ot({
|
|
9301
9329
|
candidateVersionId: t[0].id,
|
|
9302
9330
|
profileVersion: t[0].profileVersion
|
|
9303
|
-
}),
|
|
9331
|
+
}), ln((e) => ({
|
|
9304
9332
|
...e,
|
|
9305
9333
|
candidates: $v(r)
|
|
9306
9334
|
})));
|
|
@@ -9308,80 +9336,82 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9308
9336
|
} catch (e) {
|
|
9309
9337
|
console.error("Failed to refresh form from updated candidate:", e);
|
|
9310
9338
|
} finally {
|
|
9311
|
-
|
|
9339
|
+
dt.current = !1;
|
|
9312
9340
|
}
|
|
9313
9341
|
}
|
|
9314
|
-
},
|
|
9342
|
+
}, yn = Oo(vn);
|
|
9315
9343
|
L(() => {
|
|
9316
|
-
|
|
9344
|
+
yn.current = vn;
|
|
9317
9345
|
});
|
|
9318
|
-
let
|
|
9346
|
+
let bn = wo(() => yn.current(), []);
|
|
9319
9347
|
L(() => {
|
|
9320
|
-
let e =
|
|
9321
|
-
if (!e || !
|
|
9348
|
+
let e = rn?.linkage?.applicantId;
|
|
9349
|
+
if (!e || !rn?.source || rn.source.module === "candidates") return;
|
|
9322
9350
|
let t = !1;
|
|
9323
9351
|
return $a({
|
|
9324
9352
|
module: "candidates",
|
|
9325
9353
|
id: e
|
|
9326
9354
|
}).then((e) => {
|
|
9327
|
-
t || (
|
|
9355
|
+
t || (ct.current = Zv(e));
|
|
9328
9356
|
}).catch(() => {}), () => {
|
|
9329
9357
|
t = !0;
|
|
9330
9358
|
};
|
|
9331
|
-
}, [
|
|
9332
|
-
let
|
|
9359
|
+
}, [rn]);
|
|
9360
|
+
let xn = R(() => Et.map((e) => `${e.name}:${+!!jv(e.allowCollapse)}${+!!jv(e.defaultCollapsed)}`).join("|"), [Et]), Sn = Oo(null);
|
|
9333
9361
|
L(() => {
|
|
9334
|
-
if (!
|
|
9335
|
-
|
|
9362
|
+
if (!Et.length || Sn.current === xn) return;
|
|
9363
|
+
Sn.current = xn;
|
|
9336
9364
|
let e = {};
|
|
9337
|
-
|
|
9365
|
+
Et.forEach((t, n) => {
|
|
9338
9366
|
let r = t.name ?? t.id ?? String(n);
|
|
9339
9367
|
jv(t.allowCollapse) && jv(t.defaultCollapsed) && (e[r] = !0);
|
|
9340
|
-
}),
|
|
9341
|
-
}, [
|
|
9342
|
-
let
|
|
9368
|
+
}), pe(e);
|
|
9369
|
+
}, [xn, Et]);
|
|
9370
|
+
let Cn = R(() => {
|
|
9343
9371
|
let e = {};
|
|
9344
|
-
return
|
|
9345
|
-
t.addRow && (e[t.name] =
|
|
9346
|
-
}), Vi(
|
|
9372
|
+
return Et.forEach((t) => {
|
|
9373
|
+
t.addRow && (e[t.name] = _n(t));
|
|
9374
|
+
}), Vi(Mt, e);
|
|
9347
9375
|
}, [
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9376
|
+
Et,
|
|
9377
|
+
an,
|
|
9378
|
+
Mt,
|
|
9379
|
+
h,
|
|
9380
|
+
m
|
|
9381
|
+
]), Tn = (e) => pe((t) => ({
|
|
9352
9382
|
...t,
|
|
9353
9383
|
[e]: !t[e]
|
|
9354
|
-
})),
|
|
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);
|
|
9355
9385
|
L(() => {
|
|
9356
|
-
let e =
|
|
9357
|
-
e >
|
|
9386
|
+
let e = En.length;
|
|
9387
|
+
e > An.current && Y.warning({
|
|
9358
9388
|
key: "option-mismatch",
|
|
9359
9389
|
content: `${e} ${e === 1 ? "value does not" : "values do not"} match the dropdown options. Choose from the list before saving.`,
|
|
9360
9390
|
duration: 6
|
|
9361
|
-
}),
|
|
9362
|
-
}, [
|
|
9363
|
-
let
|
|
9391
|
+
}), An.current = e;
|
|
9392
|
+
}, [En]);
|
|
9393
|
+
let jn = wo((e) => {
|
|
9364
9394
|
setTimeout(() => {
|
|
9365
9395
|
I.scrollToField(e, {
|
|
9366
9396
|
behavior: "smooth",
|
|
9367
9397
|
block: "center"
|
|
9368
9398
|
}), I.focusField?.(e);
|
|
9369
9399
|
}, 0);
|
|
9370
|
-
}, [I]),
|
|
9371
|
-
I.resetFields(),
|
|
9372
|
-
},
|
|
9373
|
-
if (!
|
|
9374
|
-
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;
|
|
9375
9405
|
try {
|
|
9376
|
-
|
|
9406
|
+
Le(t), Fe({
|
|
9377
9407
|
current: o,
|
|
9378
9408
|
pageSize: i
|
|
9379
|
-
}),
|
|
9409
|
+
}), Ne((e) => ({
|
|
9380
9410
|
...e,
|
|
9381
9411
|
loading: !0,
|
|
9382
9412
|
searched: !0
|
|
9383
9413
|
}));
|
|
9384
|
-
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 = {
|
|
9385
9415
|
...t,
|
|
9386
9416
|
selectedSource: a
|
|
9387
9417
|
};
|
|
@@ -9390,7 +9420,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9390
9420
|
limit: i,
|
|
9391
9421
|
offset: (o - 1) * i
|
|
9392
9422
|
}, { scope: a });
|
|
9393
|
-
|
|
9423
|
+
Be(a), Ne({
|
|
9394
9424
|
searched: !0,
|
|
9395
9425
|
rows: c.rows,
|
|
9396
9426
|
total: c.total,
|
|
@@ -9398,7 +9428,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9398
9428
|
actions: c.actions ?? [],
|
|
9399
9429
|
actionRules: c.actionRules ?? [],
|
|
9400
9430
|
loading: !1
|
|
9401
|
-
}),
|
|
9431
|
+
}), He((t) => _v({
|
|
9402
9432
|
moduleLabel: Ir(e),
|
|
9403
9433
|
sources: r,
|
|
9404
9434
|
activeSource: a,
|
|
@@ -9408,7 +9438,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9408
9438
|
backendTabs: c.tabs
|
|
9409
9439
|
}));
|
|
9410
9440
|
} catch (e) {
|
|
9411
|
-
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({
|
|
9412
9442
|
searched: !0,
|
|
9413
9443
|
rows: [],
|
|
9414
9444
|
total: 0,
|
|
@@ -9419,13 +9449,13 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9419
9449
|
});
|
|
9420
9450
|
}
|
|
9421
9451
|
}, [
|
|
9422
|
-
|
|
9452
|
+
N,
|
|
9423
9453
|
e,
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
]),
|
|
9454
|
+
ze,
|
|
9455
|
+
Pe.pageSize
|
|
9456
|
+
]), Pn = wo(async (e, t) => {
|
|
9427
9457
|
let n = Cv(e, t);
|
|
9428
|
-
|
|
9458
|
+
We((e) => ({
|
|
9429
9459
|
...e,
|
|
9430
9460
|
[n]: {
|
|
9431
9461
|
...e[n] ?? {},
|
|
@@ -9434,7 +9464,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9434
9464
|
}));
|
|
9435
9465
|
try {
|
|
9436
9466
|
let r = await wv(e, t);
|
|
9437
|
-
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) => ({
|
|
9438
9468
|
...e,
|
|
9439
9469
|
[n]: {
|
|
9440
9470
|
loading: !1,
|
|
@@ -9442,7 +9472,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9442
9472
|
}
|
|
9443
9473
|
}));
|
|
9444
9474
|
} catch (t) {
|
|
9445
|
-
Y.error(t?.message || e.errorMessage || "Action failed."),
|
|
9475
|
+
Y.error(t?.message || e.errorMessage || "Action failed."), We((e) => ({
|
|
9446
9476
|
...e,
|
|
9447
9477
|
[n]: {
|
|
9448
9478
|
...e[n] ?? {},
|
|
@@ -9450,7 +9480,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9450
9480
|
}
|
|
9451
9481
|
}));
|
|
9452
9482
|
} finally {
|
|
9453
|
-
|
|
9483
|
+
We((e) => ({
|
|
9454
9484
|
...e,
|
|
9455
9485
|
[n]: {
|
|
9456
9486
|
...e[n] ?? {},
|
|
@@ -9458,71 +9488,71 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9458
9488
|
}
|
|
9459
9489
|
}));
|
|
9460
9490
|
}
|
|
9461
|
-
}, []),
|
|
9462
|
-
let t = uv(e,
|
|
9463
|
-
|
|
9491
|
+
}, []), Fn = wo((e) => {
|
|
9492
|
+
let t = uv(e, ze);
|
|
9493
|
+
Be(t), Fe({
|
|
9464
9494
|
current: 1,
|
|
9465
|
-
pageSize:
|
|
9466
|
-
}), Object.keys(
|
|
9495
|
+
pageSize: Pe.pageSize
|
|
9496
|
+
}), Object.keys(Ie).length > 0 && Nn(Ie, t, {
|
|
9467
9497
|
current: 1,
|
|
9468
|
-
pageSize:
|
|
9498
|
+
pageSize: Pe.pageSize
|
|
9469
9499
|
});
|
|
9470
9500
|
}, [
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
]),
|
|
9476
|
-
let n = Number(t) > 0 ? Number(t) :
|
|
9477
|
-
if (Object.keys(
|
|
9478
|
-
|
|
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({
|
|
9479
9509
|
current: r,
|
|
9480
9510
|
pageSize: n
|
|
9481
9511
|
});
|
|
9482
9512
|
return;
|
|
9483
9513
|
}
|
|
9484
|
-
|
|
9514
|
+
Nn(Ie, ze, {
|
|
9485
9515
|
current: r,
|
|
9486
9516
|
pageSize: n
|
|
9487
9517
|
});
|
|
9488
9518
|
}, [
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
]),
|
|
9494
|
-
let t = Number(e) > 0 ? Number(e) :
|
|
9495
|
-
if (Object.keys(
|
|
9496
|
-
|
|
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({
|
|
9497
9527
|
current: 1,
|
|
9498
9528
|
pageSize: t
|
|
9499
9529
|
});
|
|
9500
9530
|
return;
|
|
9501
9531
|
}
|
|
9502
|
-
|
|
9532
|
+
Nn(Ie, ze, {
|
|
9503
9533
|
current: 1,
|
|
9504
9534
|
pageSize: t
|
|
9505
9535
|
});
|
|
9506
9536
|
}, [
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
]),
|
|
9512
|
-
let t = Sa(e, { uniqueRules:
|
|
9537
|
+
Nn,
|
|
9538
|
+
Ie,
|
|
9539
|
+
Pe.pageSize,
|
|
9540
|
+
ze
|
|
9541
|
+
]), zn = (e) => {
|
|
9542
|
+
let t = Sa(e, { uniqueRules: jt });
|
|
9513
9543
|
return t.length !== 0 && (I.setFields(t.map((e) => ({
|
|
9514
9544
|
name: e.name ?? e.field,
|
|
9515
9545
|
errors: [e.message]
|
|
9516
|
-
}))),
|
|
9546
|
+
}))), pe({}), Na({ errorFields: t.map((e) => {
|
|
9517
9547
|
let t = e.name ?? e.field;
|
|
9518
9548
|
return {
|
|
9519
9549
|
name: Array.isArray(t) ? t : [t],
|
|
9520
9550
|
errors: [e.message]
|
|
9521
9551
|
};
|
|
9522
|
-
}) }, I, { root:
|
|
9523
|
-
},
|
|
9552
|
+
}) }, I, { root: ce() }), !0);
|
|
9553
|
+
}, Bn = wo(async (e) => {
|
|
9524
9554
|
try {
|
|
9525
|
-
let t = _t().region, n =
|
|
9555
|
+
let t = _t().region, n = Et.map((e) => Sr(e, t)), r = Ur(n, e);
|
|
9526
9556
|
return r.severity === "allow" ? !0 : r.severity === "block" ? (aa({
|
|
9527
9557
|
tone: "duplicate",
|
|
9528
9558
|
title: "This qualification history is incomplete",
|
|
@@ -9538,28 +9568,29 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9538
9568
|
} catch (e) {
|
|
9539
9569
|
return console.warn("[levelRule] check skipped:", e), !0;
|
|
9540
9570
|
}
|
|
9541
|
-
}, [
|
|
9571
|
+
}, [Et]), Vn = async (t) => {
|
|
9542
9572
|
let n = null;
|
|
9543
|
-
if (!
|
|
9544
|
-
let e = await
|
|
9545
|
-
if (e === "addNew") n =
|
|
9573
|
+
if (!D) {
|
|
9574
|
+
let e = await Rt.prompt({ reason: "submit" });
|
|
9575
|
+
if (e === "addNew") n = Rt.confirmedNewId?.current ?? null;
|
|
9546
9576
|
else if (e !== "clear") return;
|
|
9547
9577
|
}
|
|
9548
|
-
if (!await
|
|
9578
|
+
if (!await Bn(t)) return;
|
|
9549
9579
|
if (p) {
|
|
9550
9580
|
await p(t, {
|
|
9551
9581
|
moduleName: e,
|
|
9552
|
-
groups:
|
|
9582
|
+
groups: Et,
|
|
9553
9583
|
generateModuleId: Ln,
|
|
9554
9584
|
rollbackDocuments: Ce,
|
|
9585
|
+
updateExisting: h ? (n, r = []) => ci(e, h, n, [...Wi(t, Et, { module: e }), ...r]) : void 0,
|
|
9555
9586
|
registerDocuments: async (n, r = {}) => {
|
|
9556
|
-
let i = Wi(t,
|
|
9587
|
+
let i = Wi(t, Et, { module: r.module ?? e });
|
|
9557
9588
|
return !i.length || !n ? [] : be(r.module ?? e, n, i);
|
|
9558
9589
|
},
|
|
9559
|
-
extraPayload:
|
|
9590
|
+
extraPayload: pn ?? {},
|
|
9560
9591
|
payload: {
|
|
9561
|
-
...
|
|
9562
|
-
...ca(t,
|
|
9592
|
+
...pn ?? {},
|
|
9593
|
+
...ca(t, Et, { module: e })
|
|
9563
9594
|
}
|
|
9564
9595
|
});
|
|
9565
9596
|
return;
|
|
@@ -9570,56 +9601,56 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9570
9601
|
}
|
|
9571
9602
|
let r = null, i = [];
|
|
9572
9603
|
try {
|
|
9573
|
-
|
|
9574
|
-
let a = Wi(t,
|
|
9604
|
+
ke(!0), r = Ln();
|
|
9605
|
+
let a = Wi(t, Et, { module: e });
|
|
9575
9606
|
if (console.log("[Document-First Flow] Step 2: Pre-generated moduleId:", r, "Files attached:", a.length), a.length > 0) try {
|
|
9576
9607
|
console.log("[Document-First Flow] Step 3: Uploading documents FIRST to Documents API...");
|
|
9577
9608
|
let t = await be(e, r, a);
|
|
9578
9609
|
i = _e(t), console.log("[Document-First Flow] Step 3: Documents uploaded successfully, documentIds:", i);
|
|
9579
9610
|
} catch (t) {
|
|
9580
9611
|
console.error(`[document-first] Document upload failed before creating ${e}:`, t);
|
|
9581
|
-
let n = Pi(
|
|
9582
|
-
|
|
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);
|
|
9583
9614
|
return;
|
|
9584
9615
|
}
|
|
9585
9616
|
let o = {
|
|
9586
|
-
...
|
|
9617
|
+
...pn ?? {},
|
|
9587
9618
|
_id: r,
|
|
9588
9619
|
...i.length > 0 ? { documentIds: i } : {},
|
|
9589
9620
|
...n ? { __duplicateConfirmed: n } : {}
|
|
9590
9621
|
};
|
|
9591
9622
|
console.log("[Document-First Flow] Step 5: Calling createModuleRecord SECOND with _id:", r, "and documentIds:", i);
|
|
9592
|
-
let s = await Qa(e, Ty(t,
|
|
9623
|
+
let s = await Qa(e, Ty(t, Et, o, e));
|
|
9593
9624
|
if (s?.status === !1) {
|
|
9594
|
-
if (i.length > 0 && await Ce(i),
|
|
9595
|
-
let t = Pi(
|
|
9596
|
-
|
|
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);
|
|
9597
9628
|
return;
|
|
9598
9629
|
}
|
|
9599
|
-
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, {
|
|
9600
9631
|
scope: "addRow",
|
|
9601
9632
|
indexed: !0,
|
|
9602
9633
|
module: e
|
|
9603
9634
|
});
|
|
9604
9635
|
if (l.length > 0 && c) try {
|
|
9605
9636
|
await ci(e, c, {
|
|
9606
|
-
...
|
|
9607
|
-
...ca(t,
|
|
9637
|
+
...pn ?? {},
|
|
9638
|
+
...ca(t, Et, { module: e })
|
|
9608
9639
|
}, l);
|
|
9609
9640
|
} catch (e) {
|
|
9610
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.");
|
|
9611
9642
|
}
|
|
9612
|
-
let u = Bi(
|
|
9613
|
-
if (u && Y.success(u), I.resetFields(),
|
|
9614
|
-
|
|
9643
|
+
let u = Bi(Et, e, "add");
|
|
9644
|
+
if (u && Y.success(u), I.resetFields(), D && O) {
|
|
9645
|
+
O(c, t);
|
|
9615
9646
|
return;
|
|
9616
9647
|
}
|
|
9617
|
-
let d =
|
|
9618
|
-
if (!d) jr(
|
|
9619
|
-
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 });
|
|
9620
9651
|
else if (d.mode === "route" || d.mode === "detail") {
|
|
9621
9652
|
let e = qa(d.target, c, t);
|
|
9622
|
-
e &&
|
|
9653
|
+
e && F(e);
|
|
9623
9654
|
}
|
|
9624
9655
|
} catch (t) {
|
|
9625
9656
|
if (console.error(`Failed to create ${e}:`, t), i.length > 0) try {
|
|
@@ -9627,32 +9658,32 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9627
9658
|
} catch (e) {
|
|
9628
9659
|
console.error("Failed to rollback documents:", e);
|
|
9629
9660
|
}
|
|
9630
|
-
if (
|
|
9661
|
+
if (zn(t)) return;
|
|
9631
9662
|
if (t?.status === 409 && t?.data?.code === "RESUBMIT_EXISTING" && t?.data?.editUrl) {
|
|
9632
|
-
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);
|
|
9633
9664
|
return;
|
|
9634
9665
|
}
|
|
9635
|
-
let n = Pi(
|
|
9636
|
-
|
|
9666
|
+
let n = Pi(Et, e, "add", t?.data?.error || t?.data?.message || t?.message);
|
|
9667
|
+
je(n), Y.error(n);
|
|
9637
9668
|
} finally {
|
|
9638
|
-
|
|
9669
|
+
ke(!1), Pt.current = null;
|
|
9639
9670
|
}
|
|
9640
|
-
},
|
|
9641
|
-
if (
|
|
9642
|
-
Y.error(
|
|
9671
|
+
}, Hn = async (e) => {
|
|
9672
|
+
if (nt) {
|
|
9673
|
+
Y.error(nt);
|
|
9643
9674
|
return;
|
|
9644
9675
|
}
|
|
9645
|
-
if (
|
|
9646
|
-
await
|
|
9676
|
+
if (N) {
|
|
9677
|
+
await Nn(e);
|
|
9647
9678
|
return;
|
|
9648
9679
|
}
|
|
9649
|
-
|
|
9680
|
+
Ft.current = !0, ke(!0), je("");
|
|
9650
9681
|
try {
|
|
9651
|
-
await
|
|
9682
|
+
await Vn(e);
|
|
9652
9683
|
} finally {
|
|
9653
|
-
|
|
9684
|
+
Ft.current = !1, ke(!1);
|
|
9654
9685
|
}
|
|
9655
|
-
},
|
|
9686
|
+
}, Un = (e, t, n) => {
|
|
9656
9687
|
let r = e.validations ?? e.validation ?? e.rules ?? [];
|
|
9657
9688
|
return [...r.filter((e) => (typeof e == "string" ? e : e?.type) === "maxFromField").map((e) => Ua(e, t, n)).filter(Boolean), ...r.filter((e) => {
|
|
9658
9689
|
let t = typeof e == "string" ? e : e?.type;
|
|
@@ -9668,9 +9699,9 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9668
9699
|
"timeBeforeField"
|
|
9669
9700
|
].includes(t);
|
|
9670
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)];
|
|
9671
|
-
},
|
|
9702
|
+
}, Wn = (e, t) => typeof e == "function" ? e(t) : e, Gn = (e, t, n) => {
|
|
9672
9703
|
if (!e?.field) return !0;
|
|
9673
|
-
let r =
|
|
9704
|
+
let r = Wn(n, e.field), i = t(r == null ? [e.field] : [...Array.isArray(r) ? r : [r], e.field]);
|
|
9674
9705
|
switch (e.operator) {
|
|
9675
9706
|
case "eq": return String(i ?? "") === String(e.value ?? "");
|
|
9676
9707
|
case "neq": return String(i ?? "") !== String(e.value ?? "");
|
|
@@ -9681,19 +9712,19 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9681
9712
|
case "notIn": return !String(e.value ?? "").split(",").map((e) => e.trim()).includes(String(i ?? ""));
|
|
9682
9713
|
default: return !0;
|
|
9683
9714
|
}
|
|
9684
|
-
},
|
|
9715
|
+
}, Kn = (e, t, n) => {
|
|
9685
9716
|
if (!e) return !0;
|
|
9686
9717
|
let r = Array.isArray(e.conditions) ? e.conditions.filter((e) => e?.field) : [];
|
|
9687
9718
|
if (r.length) {
|
|
9688
|
-
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);
|
|
9689
9720
|
if (e.field) {
|
|
9690
|
-
let r =
|
|
9721
|
+
let r = Gn(e, t, n);
|
|
9691
9722
|
o = a ? o || r : o && r;
|
|
9692
9723
|
}
|
|
9693
9724
|
return o;
|
|
9694
9725
|
}
|
|
9695
|
-
return
|
|
9696
|
-
},
|
|
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 = {}) => {
|
|
9697
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, {
|
|
9698
9729
|
form: I,
|
|
9699
9730
|
field: t,
|
|
@@ -9708,19 +9739,19 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9708
9739
|
fieldPath: c,
|
|
9709
9740
|
disabled: d
|
|
9710
9741
|
})]
|
|
9711
|
-
}) : 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 ? {
|
|
9712
9743
|
form: I,
|
|
9713
9744
|
requiredField: t,
|
|
9714
9745
|
requiredPath: c
|
|
9715
|
-
} : { required: fy(t, I, c) },
|
|
9746
|
+
} : { required: fy(t, I, c) }, A = /* @__PURE__ */ Z(O, {
|
|
9716
9747
|
label: _,
|
|
9717
9748
|
name: s,
|
|
9718
|
-
extra: Ny(t,
|
|
9719
|
-
rules: py(t, I, c,
|
|
9720
|
-
...
|
|
9749
|
+
extra: Ny(t, dn[t.field]),
|
|
9750
|
+
rules: py(t, I, c, N, p, At, Ut(t, i.groupNameForActions), e),
|
|
9751
|
+
...k,
|
|
9721
9752
|
dependencies: v,
|
|
9722
9753
|
valuePropName: u,
|
|
9723
|
-
initialValue:
|
|
9754
|
+
initialValue: w,
|
|
9724
9755
|
getValueFromEvent: t.type === "file" ? (e) => Array.isArray(e) ? e : e?.fileList : void 0,
|
|
9725
9756
|
validateTrigger: ["onBlur", "onChange"],
|
|
9726
9757
|
children: /* @__PURE__ */ Z(Dy, {
|
|
@@ -9729,30 +9760,30 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9729
9760
|
name: c,
|
|
9730
9761
|
rowFieldKeys: i.rowFieldKeys,
|
|
9731
9762
|
moduleName: e,
|
|
9732
|
-
enforceOptions: !
|
|
9763
|
+
enforceOptions: !N,
|
|
9733
9764
|
recordMeta: {
|
|
9734
|
-
...
|
|
9735
|
-
...
|
|
9765
|
+
...rn?.linkage,
|
|
9766
|
+
...at
|
|
9736
9767
|
},
|
|
9737
|
-
onLinkedRecordUpdated:
|
|
9738
|
-
scopeValues: { clientId:
|
|
9739
|
-
onAiUpload:
|
|
9740
|
-
onDuplicateBlur:
|
|
9741
|
-
onRegionBlocked:
|
|
9742
|
-
onRowOrderChange:
|
|
9743
|
-
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
|
|
9744
9775
|
}, t.refreshToken == null ? void 0 : `${t.field}-refresh-${t.refreshToken}`)
|
|
9745
|
-
}),
|
|
9776
|
+
}), j = y && !_ ? /* @__PURE__ */ Z(J, {
|
|
9746
9777
|
title: y,
|
|
9747
9778
|
children: /* @__PURE__ */ Z("span", {
|
|
9748
9779
|
className: "v1-field-tooltip-wrap",
|
|
9749
|
-
children:
|
|
9780
|
+
children: A
|
|
9750
9781
|
})
|
|
9751
|
-
}) :
|
|
9752
|
-
let e = Aa(
|
|
9782
|
+
}) : A, M = T.length > 0 ? (() => {
|
|
9783
|
+
let e = Aa(T), n = (n) => /* @__PURE__ */ Z(Li, {
|
|
9753
9784
|
position: n,
|
|
9754
9785
|
actions: e[n],
|
|
9755
|
-
aiActions:
|
|
9786
|
+
aiActions: Vt,
|
|
9756
9787
|
groupName: i.groupNameForActions,
|
|
9757
9788
|
field: t
|
|
9758
9789
|
}, n);
|
|
@@ -9762,63 +9793,63 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9762
9793
|
n("top-left"),
|
|
9763
9794
|
n("top-center"),
|
|
9764
9795
|
n("top-right"),
|
|
9765
|
-
|
|
9796
|
+
j,
|
|
9766
9797
|
n("bottom-left"),
|
|
9767
9798
|
n("bottom-center"),
|
|
9768
9799
|
n("bottom-right")
|
|
9769
9800
|
]
|
|
9770
9801
|
});
|
|
9771
|
-
})() :
|
|
9772
|
-
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),
|
|
9773
9804
|
hidden: !0,
|
|
9774
9805
|
noStyle: !0,
|
|
9775
9806
|
children: /* @__PURE__ */ Z(U, {})
|
|
9776
9807
|
}), t.verifyTimestampField && /* @__PURE__ */ Z(H.Item, {
|
|
9777
|
-
name:
|
|
9808
|
+
name: ee(t.verifyTimestampField),
|
|
9778
9809
|
hidden: !0,
|
|
9779
9810
|
noStyle: !0,
|
|
9780
9811
|
children: /* @__PURE__ */ Z(U, {})
|
|
9781
|
-
})] }) : null,
|
|
9812
|
+
})] }) : null, F = t.verifyAction ? /* @__PURE__ */ Q("div", {
|
|
9782
9813
|
className: "v1-verify-field-row",
|
|
9783
9814
|
children: [
|
|
9784
|
-
|
|
9815
|
+
M,
|
|
9785
9816
|
/* @__PURE__ */ Z(Iv, {
|
|
9786
9817
|
form: I,
|
|
9787
9818
|
field: t,
|
|
9788
9819
|
absoluteName: c
|
|
9789
9820
|
}),
|
|
9790
|
-
|
|
9821
|
+
P
|
|
9791
9822
|
]
|
|
9792
|
-
}) :
|
|
9823
|
+
}) : M, te = m ? /* @__PURE__ */ Q(X, { children: [F, /* @__PURE__ */ Z(H.Item, {
|
|
9793
9824
|
name: n === void 0 ? h[h.length - 1] : [n, h[h.length - 1]],
|
|
9794
9825
|
valuePropName: "checked",
|
|
9795
9826
|
hidden: !0,
|
|
9796
9827
|
noStyle: !0,
|
|
9797
9828
|
children: /* @__PURE__ */ Z(Io, {})
|
|
9798
|
-
})] }) :
|
|
9829
|
+
})] }) : F, ne = i.inline ? {
|
|
9799
9830
|
flex: `${Number(t.combineWidth) > 0 ? Number(t.combineWidth) : 1} 1 0`,
|
|
9800
9831
|
maxWidth: "none"
|
|
9801
|
-
} : void 0,
|
|
9832
|
+
} : void 0, re = t.autoFillFromApi ? /* @__PURE__ */ Z(Hv, {
|
|
9802
9833
|
form: I,
|
|
9803
9834
|
config: t.autoFillFromApi,
|
|
9804
9835
|
watchPath: c
|
|
9805
|
-
}, `${t.field}-autoFillFromApi`) : null,
|
|
9836
|
+
}, `${t.field}-autoFillFromApi`) : null, ie = t.prefillWhen?.length ? /* @__PURE__ */ Z(Vv, {
|
|
9806
9837
|
form: I,
|
|
9807
9838
|
rules: t.prefillWhen,
|
|
9808
9839
|
watchPaths: Oa(t.prefillWhen, c, or, p),
|
|
9809
9840
|
targetPath: c,
|
|
9810
9841
|
resetOnNoMatch: t.prefillWhenReset !== !1
|
|
9811
|
-
}, `${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, {
|
|
9812
9843
|
form: I,
|
|
9813
9844
|
config: t.computeFrom,
|
|
9814
|
-
sourcePath:
|
|
9845
|
+
sourcePath: ae.source,
|
|
9815
9846
|
targetPath: c,
|
|
9816
|
-
setFields:
|
|
9847
|
+
setFields: ae.setFields
|
|
9817
9848
|
}, `${t.field}-computeFrom`) : null;
|
|
9818
9849
|
if (t.show === 0) return /* @__PURE__ */ Q(go, { children: [
|
|
9819
|
-
ne,
|
|
9820
9850
|
ie,
|
|
9821
|
-
|
|
9851
|
+
oe,
|
|
9852
|
+
re,
|
|
9822
9853
|
/* @__PURE__ */ Z(H.Item, {
|
|
9823
9854
|
name: s,
|
|
9824
9855
|
hidden: !0,
|
|
@@ -9826,35 +9857,35 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9826
9857
|
children: /* @__PURE__ */ Z("input", { type: "hidden" })
|
|
9827
9858
|
})
|
|
9828
9859
|
] }, t.field);
|
|
9829
|
-
let
|
|
9830
|
-
return
|
|
9831
|
-
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: [
|
|
9832
9862
|
ie,
|
|
9833
|
-
|
|
9863
|
+
oe,
|
|
9864
|
+
re,
|
|
9834
9865
|
/* @__PURE__ */ Z(H.Item, {
|
|
9835
9866
|
shouldUpdate: !0,
|
|
9836
9867
|
noStyle: !0,
|
|
9837
|
-
children: ({ getFieldValue: e }) => !
|
|
9868
|
+
children: ({ getFieldValue: e }) => !qn(t.showIf) || Kn(t.showIf, e, p) ? /* @__PURE__ */ Z(V, {
|
|
9838
9869
|
xs: 24,
|
|
9839
|
-
md:
|
|
9840
|
-
style:
|
|
9841
|
-
className:
|
|
9842
|
-
children:
|
|
9870
|
+
md: ce(e),
|
|
9871
|
+
style: ne,
|
|
9872
|
+
className: S,
|
|
9873
|
+
children: te
|
|
9843
9874
|
}) : null
|
|
9844
9875
|
})
|
|
9845
9876
|
] }, t.field) : /* @__PURE__ */ Q(go, { children: [
|
|
9846
|
-
ne,
|
|
9847
9877
|
ie,
|
|
9848
|
-
|
|
9878
|
+
oe,
|
|
9879
|
+
re,
|
|
9849
9880
|
/* @__PURE__ */ Z(V, {
|
|
9850
9881
|
xs: 24,
|
|
9851
9882
|
md: b,
|
|
9852
|
-
style:
|
|
9853
|
-
className:
|
|
9854
|
-
children:
|
|
9883
|
+
style: ne,
|
|
9884
|
+
className: S,
|
|
9885
|
+
children: te
|
|
9855
9886
|
})
|
|
9856
9887
|
] }, t.field);
|
|
9857
|
-
},
|
|
9888
|
+
}, nr = (t) => {
|
|
9858
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, {
|
|
9859
9890
|
field: t,
|
|
9860
9891
|
label: t.label,
|
|
@@ -9863,7 +9894,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9863
9894
|
...e,
|
|
9864
9895
|
show: 1,
|
|
9865
9896
|
edit: 1
|
|
9866
|
-
})) : 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);
|
|
9867
9898
|
return /* @__PURE__ */ Z(V, {
|
|
9868
9899
|
xs: 24,
|
|
9869
9900
|
md: 24,
|
|
@@ -9896,26 +9927,26 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9896
9927
|
children: o ? /* @__PURE__ */ Z(ns, {
|
|
9897
9928
|
gutter: [24, 0],
|
|
9898
9929
|
align: "top",
|
|
9899
|
-
children:
|
|
9930
|
+
children: ar(s, l, n[0], !1, t.field)
|
|
9900
9931
|
}) : /* @__PURE__ */ Z(H.Item, {
|
|
9901
9932
|
name: [l],
|
|
9902
9933
|
noStyle: !0,
|
|
9903
9934
|
valuePropName: t.type === "checkbox" && !t.options?.length ? "checked" : "value",
|
|
9904
9935
|
getValueFromEvent: t.type === "file" ? (e) => Array.isArray(e) ? e : e?.fileList : void 0,
|
|
9905
|
-
rules: py(a, I, [...n, l],
|
|
9936
|
+
rules: py(a, I, [...n, l], N, void 0, void 0, void 0, e),
|
|
9906
9937
|
children: /* @__PURE__ */ Z(Dy, {
|
|
9907
9938
|
field: a,
|
|
9908
9939
|
form: I,
|
|
9909
9940
|
name: [...n, l],
|
|
9910
9941
|
moduleName: e,
|
|
9911
|
-
enforceOptions: !
|
|
9942
|
+
enforceOptions: !N,
|
|
9912
9943
|
recordMeta: {
|
|
9913
|
-
...
|
|
9914
|
-
...
|
|
9944
|
+
...rn?.linkage,
|
|
9945
|
+
...at
|
|
9915
9946
|
},
|
|
9916
|
-
onLinkedRecordUpdated:
|
|
9917
|
-
scopeValues: { clientId:
|
|
9918
|
-
formDisabled:
|
|
9947
|
+
onLinkedRecordUpdated: bn,
|
|
9948
|
+
scopeValues: { clientId: Ct },
|
|
9949
|
+
formDisabled: Vt.busy
|
|
9919
9950
|
})
|
|
9920
9951
|
})
|
|
9921
9952
|
})]
|
|
@@ -9933,7 +9964,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9933
9964
|
})
|
|
9934
9965
|
})
|
|
9935
9966
|
}, t.field);
|
|
9936
|
-
},
|
|
9967
|
+
}, rr = (t, n, r) => {
|
|
9937
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, {
|
|
9938
9969
|
field: t,
|
|
9939
9970
|
label: t.label,
|
|
@@ -9981,26 +10012,26 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9981
10012
|
children: c ? /* @__PURE__ */ Z(ns, {
|
|
9982
10013
|
gutter: [24, 0],
|
|
9983
10014
|
align: "top",
|
|
9984
|
-
children:
|
|
10015
|
+
children: ar(l, a, p, !1, t.field)
|
|
9985
10016
|
}) : /* @__PURE__ */ Z(H.Item, {
|
|
9986
10017
|
name: [a],
|
|
9987
10018
|
noStyle: !0,
|
|
9988
10019
|
valuePropName: t.type === "checkbox" && !t.options?.length ? "checked" : "value",
|
|
9989
10020
|
getValueFromEvent: t.type === "file" ? (e) => Array.isArray(e) ? e : e?.fileList : void 0,
|
|
9990
|
-
rules: py(s, I, o,
|
|
10021
|
+
rules: py(s, I, o, N, void 0, void 0, void 0, e),
|
|
9991
10022
|
children: /* @__PURE__ */ Z(Dy, {
|
|
9992
10023
|
field: s,
|
|
9993
10024
|
form: I,
|
|
9994
10025
|
name: o,
|
|
9995
10026
|
moduleName: e,
|
|
9996
|
-
enforceOptions: !
|
|
10027
|
+
enforceOptions: !N,
|
|
9997
10028
|
recordMeta: {
|
|
9998
|
-
...
|
|
9999
|
-
...
|
|
10029
|
+
...rn?.linkage,
|
|
10030
|
+
...at
|
|
10000
10031
|
},
|
|
10001
|
-
onLinkedRecordUpdated:
|
|
10002
|
-
scopeValues: { clientId:
|
|
10003
|
-
formDisabled:
|
|
10032
|
+
onLinkedRecordUpdated: bn,
|
|
10033
|
+
scopeValues: { clientId: Ct },
|
|
10034
|
+
formDisabled: Vt.busy
|
|
10004
10035
|
})
|
|
10005
10036
|
})
|
|
10006
10037
|
})]
|
|
@@ -10019,7 +10050,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10019
10050
|
})
|
|
10020
10051
|
})
|
|
10021
10052
|
}, `${r}-${n}-${t.field}`);
|
|
10022
|
-
},
|
|
10053
|
+
}, ir = (e, t) => e.filter((e) => e.field && e.show !== void 0 && !jv(e.show)).map((e) => {
|
|
10023
10054
|
let n = String(e.field).includes(".") ? String(e.field).split(".") : e.field, r = t === void 0 ? n : [t, ...Array.isArray(n) ? n : [n]];
|
|
10024
10055
|
return /* @__PURE__ */ Z(H.Item, {
|
|
10025
10056
|
name: r,
|
|
@@ -10027,20 +10058,20 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10027
10058
|
noStyle: !0,
|
|
10028
10059
|
children: /* @__PURE__ */ Z(U, {})
|
|
10029
10060
|
}, `hidden-${e.field}`);
|
|
10030
|
-
}),
|
|
10061
|
+
}), ar = (e, t, n, r = !1, i) => {
|
|
10031
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)));
|
|
10032
|
-
return o.push(...
|
|
10063
|
+
return o.push(...ir(e, t)), c.forEach((e) => {
|
|
10033
10064
|
if (jv(e.addRow) && t === void 0) {
|
|
10034
|
-
o.push(
|
|
10065
|
+
o.push(nr(e));
|
|
10035
10066
|
return;
|
|
10036
10067
|
}
|
|
10037
10068
|
if (jv(e.addRow) && t !== void 0) {
|
|
10038
|
-
o.push(
|
|
10069
|
+
o.push(rr(e, t, n));
|
|
10039
10070
|
return;
|
|
10040
10071
|
}
|
|
10041
10072
|
let l = e.combineKey?.trim?.();
|
|
10042
10073
|
if (!l) {
|
|
10043
|
-
o.push(
|
|
10074
|
+
o.push(tr(e, t, n, {
|
|
10044
10075
|
hideLabel: r,
|
|
10045
10076
|
groupNameForActions: i,
|
|
10046
10077
|
rowFieldKeys: s
|
|
@@ -10068,11 +10099,11 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10068
10099
|
flagPath: Vr(m, g, h),
|
|
10069
10100
|
fieldPath: g
|
|
10070
10101
|
})]
|
|
10071
|
-
}) : _, 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 ? [
|
|
10072
10103
|
n,
|
|
10073
10104
|
t,
|
|
10074
10105
|
...T
|
|
10075
|
-
] : 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, {
|
|
10076
10107
|
xs: 24,
|
|
10077
10108
|
md: O,
|
|
10078
10109
|
children: /* @__PURE__ */ Z(H.Item, {
|
|
@@ -10084,13 +10115,13 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10084
10115
|
noStyle: !0,
|
|
10085
10116
|
shouldUpdate: (e, t) => E ? iy(gy(e, E)) !== iy(gy(t, E)) : !1,
|
|
10086
10117
|
children: ({ getFieldValue: e }) => {
|
|
10087
|
-
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;
|
|
10088
10119
|
return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(ns, {
|
|
10089
10120
|
gutter: [8, 0],
|
|
10090
10121
|
align: "top",
|
|
10091
10122
|
wrap: S,
|
|
10092
10123
|
className: `v1-combine-row${S ? " v1-combine-row-wrap" : ""}`,
|
|
10093
|
-
children: a.map((e) =>
|
|
10124
|
+
children: a.map((e) => tr(D ? {
|
|
10094
10125
|
...e,
|
|
10095
10126
|
req: 1
|
|
10096
10127
|
} : e, t, n, { inline: !0 }))
|
|
@@ -10102,14 +10133,14 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10102
10133
|
onChange: (e) => {
|
|
10103
10134
|
if (E) {
|
|
10104
10135
|
if (e) {
|
|
10105
|
-
let e =
|
|
10136
|
+
let e = Zn.current[x];
|
|
10106
10137
|
e != null && e !== "" && I.setFieldValue(E, e);
|
|
10107
10138
|
} else {
|
|
10108
10139
|
let e = I.getFieldValue(E);
|
|
10109
|
-
|
|
10140
|
+
Zn.current[x] = e, I.setFieldValue(E, void 0), I.validateFields([E]).catch(() => {});
|
|
10110
10141
|
}
|
|
10111
10142
|
}
|
|
10112
|
-
|
|
10143
|
+
Xn((t) => ({
|
|
10113
10144
|
...t,
|
|
10114
10145
|
[x]: e
|
|
10115
10146
|
}));
|
|
@@ -10130,16 +10161,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10130
10161
|
children: ({ getFieldValue: e }) => j(e) ? M : null
|
|
10131
10162
|
}, u) : M);
|
|
10132
10163
|
}), o;
|
|
10133
|
-
},
|
|
10134
|
-
if (
|
|
10135
|
-
let e =
|
|
10164
|
+
}, sr = R(() => {
|
|
10165
|
+
if (Me.fields?.length) return Me.fields;
|
|
10166
|
+
let e = Me.rows[0];
|
|
10136
10167
|
return e ? Object.keys(e).filter((t) => !t.startsWith("_") && typeof e[t] != "object").map((e) => ({
|
|
10137
10168
|
value: e,
|
|
10138
10169
|
field: e,
|
|
10139
10170
|
label: e.replace(/([A-Z])/g, " $1").replace(/^./, (e) => e.toUpperCase()),
|
|
10140
10171
|
isVisible: !0
|
|
10141
10172
|
})) : [];
|
|
10142
|
-
}, [
|
|
10173
|
+
}, [Me.fields, Me.rows]), lr = (e) => !Array.isArray(e) || e.length === 0 ? "card" : e.some((e) => [
|
|
10143
10174
|
e?.sourceType,
|
|
10144
10175
|
e?.profileSource,
|
|
10145
10176
|
e?.selectedSource,
|
|
@@ -10150,15 +10181,15 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10150
10181
|
let t = String(e).trim().toLowerCase();
|
|
10151
10182
|
return t ? !["all", "internal"].includes(t) : !1;
|
|
10152
10183
|
})) ? "list" : "card";
|
|
10153
|
-
R(() =>
|
|
10154
|
-
let
|
|
10184
|
+
R(() => lr(Me.rows), [Me.rows]);
|
|
10185
|
+
let ur = R(() => {
|
|
10155
10186
|
let e = xv({
|
|
10156
|
-
rows:
|
|
10157
|
-
selectedSource:
|
|
10187
|
+
rows: Me.rows,
|
|
10188
|
+
selectedSource: ze
|
|
10158
10189
|
});
|
|
10159
|
-
if (!e.length) return
|
|
10190
|
+
if (!e.length) return sr;
|
|
10160
10191
|
let t = new Set(e.map((e) => e.field));
|
|
10161
|
-
return [...
|
|
10192
|
+
return [...sr.filter((e) => e.cardRole !== "action" && !t.has(e.value)), ...e.map((e) => ({
|
|
10162
10193
|
value: e.field,
|
|
10163
10194
|
field: e.field,
|
|
10164
10195
|
label: e.label ?? "Action",
|
|
@@ -10167,54 +10198,54 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10167
10198
|
tableHidden: !0,
|
|
10168
10199
|
sorter: !1,
|
|
10169
10200
|
render: (t, n) => {
|
|
10170
|
-
if (!Sv(e, n,
|
|
10171
|
-
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;
|
|
10172
10203
|
return /* @__PURE__ */ Z(B, {
|
|
10173
10204
|
type: "primary",
|
|
10174
10205
|
size: "small",
|
|
10175
10206
|
loading: i.loading,
|
|
10176
10207
|
disabled: a,
|
|
10177
|
-
onClick: () =>
|
|
10208
|
+
onClick: () => Pn(e, n),
|
|
10178
10209
|
children: i.completed ? e.completedLabel : e.buttonLabel
|
|
10179
10210
|
});
|
|
10180
10211
|
}
|
|
10181
10212
|
}))];
|
|
10182
10213
|
}, [
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
]),
|
|
10189
|
-
if (!
|
|
10214
|
+
Pn,
|
|
10215
|
+
sr,
|
|
10216
|
+
Me.rows,
|
|
10217
|
+
ze,
|
|
10218
|
+
Ue
|
|
10219
|
+
]), fr = R(() => {
|
|
10220
|
+
if (!C) return Me.actions;
|
|
10190
10221
|
let e = (t) => ({
|
|
10191
10222
|
...t,
|
|
10192
10223
|
popupState: {
|
|
10193
|
-
...
|
|
10224
|
+
...C,
|
|
10194
10225
|
...t.popupState
|
|
10195
10226
|
},
|
|
10196
10227
|
...t.children ? { children: t.children.map(e) } : {}
|
|
10197
10228
|
});
|
|
10198
|
-
return (
|
|
10199
|
-
}, [
|
|
10200
|
-
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 = () => {
|
|
10201
10232
|
s.forEach((t) => {
|
|
10202
|
-
let n =
|
|
10203
|
-
|
|
10233
|
+
let n = Et.find((e) => e.name === t) ?? e;
|
|
10234
|
+
Nt.current[t]?.add(ki(n));
|
|
10204
10235
|
});
|
|
10205
10236
|
}, l = (e) => {
|
|
10206
|
-
s.forEach((t) =>
|
|
10237
|
+
s.forEach((t) => Nt.current[t]?.remove(e));
|
|
10207
10238
|
};
|
|
10208
10239
|
return e.addRow ? /* @__PURE__ */ Z(H.List, {
|
|
10209
10240
|
name: t,
|
|
10210
|
-
initialValue:
|
|
10241
|
+
initialValue: Cn[t] ?? [],
|
|
10211
10242
|
rules: r ? [] : [{ validator: async (t, n = []) => {
|
|
10212
10243
|
if (!(jv(e.toggleEnabled) && e.toggleField && I.getFieldValue(e.toggleField))) {
|
|
10213
10244
|
if (a > 0 && n.length < a) throw Error(`Keep at least ${a} row${a > 1 ? "s" : ""}.`);
|
|
10214
10245
|
if (jv(e.requireOne) && n.some((e) => !Xv(e))) throw Error("Fill at least one field in each added row.");
|
|
10215
10246
|
}
|
|
10216
10247
|
} }],
|
|
10217
|
-
children: (n, { add: s, remove: u, move: d }, { errors: f }) => (
|
|
10248
|
+
children: (n, { add: s, remove: u, move: d }, { errors: f }) => (Nt.current[t] = {
|
|
10218
10249
|
add: s,
|
|
10219
10250
|
remove: u,
|
|
10220
10251
|
move: d
|
|
@@ -10228,7 +10259,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10228
10259
|
md: e.col ?? 12,
|
|
10229
10260
|
className: "v1-addrow-header-label",
|
|
10230
10261
|
children: e.label
|
|
10231
|
-
},
|
|
10262
|
+
}, $n(e)))
|
|
10232
10263
|
}),
|
|
10233
10264
|
n.map(({ key: r, name: i }) => /* @__PURE__ */ Q("div", {
|
|
10234
10265
|
className: "v1-addrow-item",
|
|
@@ -10244,7 +10275,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10244
10275
|
children: /* @__PURE__ */ Z(ns, {
|
|
10245
10276
|
gutter: [24, 0],
|
|
10246
10277
|
align: "top",
|
|
10247
|
-
children:
|
|
10278
|
+
children: ar(e.fields, i, t, jv(e.sharedRowLabels), t)
|
|
10248
10279
|
})
|
|
10249
10280
|
})]
|
|
10250
10281
|
}, r)),
|
|
@@ -10267,16 +10298,16 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10267
10298
|
}))
|
|
10268
10299
|
}) : /* @__PURE__ */ Z(ns, {
|
|
10269
10300
|
gutter: [24, 0],
|
|
10270
|
-
children:
|
|
10301
|
+
children: ar(e.fields, void 0, void 0, !1, t)
|
|
10271
10302
|
});
|
|
10272
|
-
},
|
|
10273
|
-
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) => {
|
|
10274
10305
|
let t = /* @__PURE__ */ Q("div", {
|
|
10275
10306
|
className: "v1-merged-group",
|
|
10276
10307
|
children: [/* @__PURE__ */ Z("div", {
|
|
10277
10308
|
className: "v1-merged-group-title",
|
|
10278
10309
|
children: e.label ?? e.name
|
|
10279
|
-
}),
|
|
10310
|
+
}), mr(e)]
|
|
10280
10311
|
}, e.name), n = e.showIf?.field ? /* @__PURE__ */ Z(Wv, {
|
|
10281
10312
|
form: I,
|
|
10282
10313
|
showIf: e.showIf,
|
|
@@ -10292,7 +10323,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10292
10323
|
className: "v1-card v1-edit-card",
|
|
10293
10324
|
title: /* @__PURE__ */ Z(Oy, {
|
|
10294
10325
|
icon: kv[t % kv.length],
|
|
10295
|
-
title:
|
|
10326
|
+
title: N ? Ee || e.label : e.label ?? e.name ?? "Details"
|
|
10296
10327
|
}),
|
|
10297
10328
|
extra: /* @__PURE__ */ Q(G, {
|
|
10298
10329
|
size: 8,
|
|
@@ -10304,11 +10335,11 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10304
10335
|
jv(e.allowCollapse) && /* @__PURE__ */ Z(B, {
|
|
10305
10336
|
type: "text",
|
|
10306
10337
|
size: "small",
|
|
10307
|
-
"aria-expanded": !
|
|
10308
|
-
"aria-label":
|
|
10309
|
-
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, {}),
|
|
10310
10341
|
onClick: (e) => {
|
|
10311
|
-
e.stopPropagation(),
|
|
10342
|
+
e.stopPropagation(), Tn(n);
|
|
10312
10343
|
}
|
|
10313
10344
|
})
|
|
10314
10345
|
]
|
|
@@ -10319,7 +10350,7 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10319
10350
|
children: ({ getFieldValue: t }) => {
|
|
10320
10351
|
let i = d && !!t(e.toggleField);
|
|
10321
10352
|
return /* @__PURE__ */ Q("div", {
|
|
10322
|
-
style: { display:
|
|
10353
|
+
style: { display: On(n) || i ? "none" : "block" },
|
|
10323
10354
|
children: [
|
|
10324
10355
|
f,
|
|
10325
10356
|
r,
|
|
@@ -10328,11 +10359,11 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10328
10359
|
});
|
|
10329
10360
|
}
|
|
10330
10361
|
})
|
|
10331
|
-
}, n), h = typeof
|
|
10362
|
+
}, n), h = typeof A == "function" ? A({
|
|
10332
10363
|
key: n,
|
|
10333
10364
|
group: e,
|
|
10334
10365
|
index: t,
|
|
10335
|
-
title:
|
|
10366
|
+
title: N ? Ee || e.label : e.label ?? e.name ?? "Details",
|
|
10336
10367
|
actions: m.props.extra,
|
|
10337
10368
|
children: m.props.children
|
|
10338
10369
|
}) : m;
|
|
@@ -10341,38 +10372,38 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10341
10372
|
contractField: c,
|
|
10342
10373
|
children: h
|
|
10343
10374
|
}, n) : h;
|
|
10344
|
-
},
|
|
10375
|
+
}, Cr = /* @__PURE__ */ Q(G, {
|
|
10345
10376
|
size: 12,
|
|
10346
10377
|
children: [
|
|
10347
10378
|
/* @__PURE__ */ Z(B, {
|
|
10348
|
-
onClick: () =>
|
|
10379
|
+
onClick: () => D && k ? k() : jr(F, { cancelPath: f }),
|
|
10349
10380
|
children: "Cancel"
|
|
10350
10381
|
}),
|
|
10351
|
-
|
|
10382
|
+
It.map((e, t) => /* @__PURE__ */ Z(zv, {
|
|
10352
10383
|
form: I,
|
|
10353
|
-
groups:
|
|
10384
|
+
groups: Et,
|
|
10354
10385
|
action: e,
|
|
10355
|
-
disabled: !
|
|
10356
|
-
loading:
|
|
10386
|
+
disabled: !gn || Oe || Dt > 0 || !Et.length,
|
|
10387
|
+
loading: Oe,
|
|
10357
10388
|
onFire: () => {
|
|
10358
|
-
|
|
10389
|
+
Ft.current || (Pt.current = e.afterSubmit ?? { mode: "stay" }, e.setValuesBeforeSubmit && I.setFieldsValue(e.setValuesBeforeSubmit), I.submit());
|
|
10359
10390
|
}
|
|
10360
10391
|
}, `${e.label ?? "action"}-${t}`)),
|
|
10361
10392
|
/* @__PURE__ */ Z(Bv, {
|
|
10362
10393
|
form: I,
|
|
10363
|
-
groups:
|
|
10394
|
+
groups: Et,
|
|
10364
10395
|
onClick: () => {
|
|
10365
|
-
|
|
10396
|
+
Ft.current || (Pt.current = null, I.submit());
|
|
10366
10397
|
},
|
|
10367
|
-
disabled: !
|
|
10368
|
-
loading:
|
|
10369
|
-
children:
|
|
10398
|
+
disabled: !gn || Oe || Dt > 0 || !Et.length,
|
|
10399
|
+
loading: Oe,
|
|
10400
|
+
children: P
|
|
10370
10401
|
})
|
|
10371
10402
|
]
|
|
10372
|
-
}),
|
|
10403
|
+
}), wr = /* @__PURE__ */ Q("div", {
|
|
10373
10404
|
className: "v1-edit-page",
|
|
10374
10405
|
children: [
|
|
10375
|
-
|
|
10406
|
+
Xt && !b && !bt && /* @__PURE__ */ Z(Fo, {
|
|
10376
10407
|
className: "v1-card v1-edit-card v1-client-gate-card",
|
|
10377
10408
|
children: /* @__PURE__ */ Q(G, {
|
|
10378
10409
|
direction: "vertical",
|
|
@@ -10383,9 +10414,9 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10383
10414
|
icon: /* @__PURE__ */ Z(xl, {}),
|
|
10384
10415
|
title: "Select Client"
|
|
10385
10416
|
}),
|
|
10386
|
-
|
|
10417
|
+
Zt && /* @__PURE__ */ Z(Ev, {
|
|
10387
10418
|
type: "secondary",
|
|
10388
|
-
children:
|
|
10419
|
+
children: Zt
|
|
10389
10420
|
}),
|
|
10390
10421
|
/* @__PURE__ */ Z(ns, {
|
|
10391
10422
|
gutter: [16, 0],
|
|
@@ -10397,15 +10428,15 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10397
10428
|
allowClear: !0,
|
|
10398
10429
|
placeholder: "Select client",
|
|
10399
10430
|
style: { width: "100%" },
|
|
10400
|
-
value:
|
|
10431
|
+
value: Ct || void 0,
|
|
10401
10432
|
optionFilterProp: "label",
|
|
10402
|
-
options:
|
|
10433
|
+
options: Ge.map((e) => ({
|
|
10403
10434
|
value: e._id ?? e.id,
|
|
10404
10435
|
label: e.clientName ?? e.name ?? e.clientRefrenceId ?? e._id
|
|
10405
10436
|
})).filter((e) => e.value),
|
|
10406
|
-
onChange:
|
|
10407
|
-
popupRender:
|
|
10408
|
-
}),
|
|
10437
|
+
onChange: $t,
|
|
10438
|
+
popupRender: nn.footer ? (e) => /* @__PURE__ */ Q(X, { children: [e, nn.footer] }) : void 0
|
|
10439
|
+
}), nn.modal]
|
|
10409
10440
|
})
|
|
10410
10441
|
})
|
|
10411
10442
|
]
|
|
@@ -10415,82 +10446,82 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10415
10446
|
className: "v1-page-inner",
|
|
10416
10447
|
children: [/* @__PURE__ */ Z(os, {
|
|
10417
10448
|
fullscreen: !0,
|
|
10418
|
-
spinning:
|
|
10449
|
+
spinning: Vt.busy || Rt.checking || !!zt,
|
|
10419
10450
|
size: "large",
|
|
10420
|
-
tip:
|
|
10451
|
+
tip: Vt.busy ? Vt.loadingText || "Reading the file…" : zt || "Checking whether we already have this person…"
|
|
10421
10452
|
}), /* @__PURE__ */ Q(os, {
|
|
10422
|
-
spinning: !
|
|
10453
|
+
spinning: !gn && !en,
|
|
10423
10454
|
description: "Loading form fields…",
|
|
10424
|
-
children: [
|
|
10455
|
+
children: [Ae && /* @__PURE__ */ Z(Ao, {
|
|
10425
10456
|
type: "error",
|
|
10426
10457
|
showIcon: !0,
|
|
10427
|
-
message:
|
|
10458
|
+
message: Ae,
|
|
10428
10459
|
style: { marginBottom: 16 },
|
|
10429
10460
|
closable: !0,
|
|
10430
|
-
onClose: () =>
|
|
10461
|
+
onClose: () => je("")
|
|
10431
10462
|
}), /* @__PURE__ */ Z(Kv.Provider, {
|
|
10432
|
-
value:
|
|
10463
|
+
value: oe,
|
|
10433
10464
|
children: /* @__PURE__ */ Q(H, {
|
|
10434
10465
|
form: I,
|
|
10435
10466
|
layout: "vertical",
|
|
10436
10467
|
colon: !1,
|
|
10437
|
-
className: `v1-form ${
|
|
10468
|
+
className: `v1-form ${se}`,
|
|
10438
10469
|
onValuesChange: (e) => {
|
|
10439
|
-
Object.keys(e ?? {}).forEach((e) =>
|
|
10470
|
+
Object.keys(e ?? {}).forEach((e) => oe.current.add(String(e)));
|
|
10440
10471
|
let t = Object.keys(e ?? {})[0];
|
|
10441
10472
|
if (!t) return;
|
|
10442
|
-
let n =
|
|
10443
|
-
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));
|
|
10444
10475
|
},
|
|
10445
|
-
disabled:
|
|
10476
|
+
disabled: Vt.busy || Rt.checking || !!zt,
|
|
10446
10477
|
requiredMark: (e, { required: t }) => /* @__PURE__ */ Q(X, { children: [e, t && /* @__PURE__ */ Z("span", {
|
|
10447
10478
|
className: "v1-required-mark",
|
|
10448
10479
|
children: " *"
|
|
10449
10480
|
})] }),
|
|
10450
|
-
onFinish:
|
|
10481
|
+
onFinish: Hn,
|
|
10451
10482
|
onFinishFailed: (e) => {
|
|
10452
|
-
|
|
10483
|
+
pe({}), Na(e, I, { root: ce() });
|
|
10453
10484
|
},
|
|
10454
10485
|
children: [
|
|
10455
|
-
|
|
10486
|
+
gn && !N && /* @__PURE__ */ Z(Tr, {
|
|
10456
10487
|
form: I,
|
|
10457
|
-
groups:
|
|
10458
|
-
onJump:
|
|
10488
|
+
groups: Et,
|
|
10489
|
+
onJump: jn
|
|
10459
10490
|
}),
|
|
10460
|
-
|
|
10491
|
+
gn && Et.filter((e) => !yr(e)).map((e, t) => /* @__PURE__ */ Z(Jv, {
|
|
10461
10492
|
form: I,
|
|
10462
10493
|
group: e,
|
|
10463
10494
|
children: e.showIf?.field ? /* @__PURE__ */ Z(Wv, {
|
|
10464
10495
|
form: I,
|
|
10465
10496
|
showIf: e.showIf,
|
|
10466
|
-
render: () =>
|
|
10467
|
-
}) :
|
|
10497
|
+
render: () => xr(e, t)
|
|
10498
|
+
}) : xr(e, t)
|
|
10468
10499
|
}, e.name ?? `grp-${t}`)),
|
|
10469
|
-
|
|
10500
|
+
gn && !yt && Et.length === 0 && /* @__PURE__ */ Z(Ao, {
|
|
10470
10501
|
type: "info",
|
|
10471
10502
|
showIcon: !0,
|
|
10472
|
-
message:
|
|
10503
|
+
message: N ? "No search configuration found." : "No form fields are configured."
|
|
10473
10504
|
}),
|
|
10474
|
-
|
|
10505
|
+
gn && N && /* @__PURE__ */ Z("div", {
|
|
10475
10506
|
className: "v1-search-form-actions",
|
|
10476
10507
|
children: /* @__PURE__ */ Q(G, {
|
|
10477
10508
|
size: 12,
|
|
10478
10509
|
children: [
|
|
10479
10510
|
/* @__PURE__ */ Z(B, {
|
|
10480
|
-
onClick:
|
|
10481
|
-
disabled: !
|
|
10511
|
+
onClick: Mn,
|
|
10512
|
+
disabled: !Et.length,
|
|
10482
10513
|
children: "Reset"
|
|
10483
10514
|
}),
|
|
10484
10515
|
/* @__PURE__ */ Z(B, {
|
|
10485
|
-
onClick: () => jr(
|
|
10516
|
+
onClick: () => jr(F, { cancelPath: f }),
|
|
10486
10517
|
children: "Back"
|
|
10487
10518
|
}),
|
|
10488
10519
|
/* @__PURE__ */ Z(B, {
|
|
10489
10520
|
type: "primary",
|
|
10490
10521
|
htmlType: "submit",
|
|
10491
|
-
disabled:
|
|
10492
|
-
loading:
|
|
10493
|
-
children:
|
|
10522
|
+
disabled: Oe || !Et.length || Yt,
|
|
10523
|
+
loading: Oe,
|
|
10524
|
+
children: P
|
|
10494
10525
|
})
|
|
10495
10526
|
]
|
|
10496
10527
|
})
|
|
@@ -10500,9 +10531,9 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10500
10531
|
})]
|
|
10501
10532
|
})]
|
|
10502
10533
|
}),
|
|
10503
|
-
!
|
|
10504
|
-
className:
|
|
10505
|
-
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,
|
|
10506
10537
|
children: [/* @__PURE__ */ Z(Ev, {
|
|
10507
10538
|
type: "secondary",
|
|
10508
10539
|
children: "All Unsaved Changes will be lost if you cancel and reload."
|
|
@@ -10510,71 +10541,71 @@ var Py = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
10510
10541
|
size: 12,
|
|
10511
10542
|
children: [
|
|
10512
10543
|
/* @__PURE__ */ Z(B, {
|
|
10513
|
-
onClick: () =>
|
|
10544
|
+
onClick: () => D && k ? k() : jr(F, { cancelPath: f }),
|
|
10514
10545
|
children: "Cancel"
|
|
10515
10546
|
}),
|
|
10516
|
-
|
|
10547
|
+
It.map((e, t) => /* @__PURE__ */ Z(zv, {
|
|
10517
10548
|
form: I,
|
|
10518
|
-
groups:
|
|
10549
|
+
groups: Et,
|
|
10519
10550
|
action: e,
|
|
10520
|
-
disabled: !
|
|
10521
|
-
loading:
|
|
10551
|
+
disabled: !gn || Oe || Dt > 0 || !Et.length,
|
|
10552
|
+
loading: Oe,
|
|
10522
10553
|
onFire: () => {
|
|
10523
|
-
|
|
10554
|
+
Ft.current || (Pt.current = e.afterSubmit ?? { mode: "stay" }, e.setValuesBeforeSubmit && I.setFieldsValue(e.setValuesBeforeSubmit), I.submit());
|
|
10524
10555
|
}
|
|
10525
10556
|
}, `${e.label ?? "action"}-${t}`)),
|
|
10526
10557
|
/* @__PURE__ */ Z(Bv, {
|
|
10527
10558
|
form: I,
|
|
10528
|
-
groups:
|
|
10559
|
+
groups: Et,
|
|
10529
10560
|
onClick: () => {
|
|
10530
|
-
|
|
10561
|
+
Ft.current || (Pt.current = null, I.submit());
|
|
10531
10562
|
},
|
|
10532
|
-
disabled: !
|
|
10533
|
-
loading:
|
|
10534
|
-
children:
|
|
10563
|
+
disabled: !gn || Oe || Dt > 0 || !Et.length,
|
|
10564
|
+
loading: Oe,
|
|
10565
|
+
children: P
|
|
10535
10566
|
})
|
|
10536
10567
|
]
|
|
10537
10568
|
})]
|
|
10538
10569
|
}),
|
|
10539
|
-
|
|
10570
|
+
N && Me.searched && /* @__PURE__ */ Z(ev, {
|
|
10540
10571
|
moduleName: e,
|
|
10541
10572
|
breadcrumbItems: [],
|
|
10542
|
-
dataSource:
|
|
10543
|
-
fields:
|
|
10544
|
-
total:
|
|
10545
|
-
loading:
|
|
10546
|
-
current:
|
|
10547
|
-
pageSize:
|
|
10573
|
+
dataSource: Me.rows,
|
|
10574
|
+
fields: ur,
|
|
10575
|
+
total: Me.total,
|
|
10576
|
+
loading: Me.loading,
|
|
10577
|
+
current: Pe.current,
|
|
10578
|
+
pageSize: Pe.pageSize,
|
|
10548
10579
|
showViewToggle: !0,
|
|
10549
|
-
activeView:
|
|
10550
|
-
onViewChange:
|
|
10551
|
-
onPageChange:
|
|
10552
|
-
onPageSizeChange:
|
|
10580
|
+
activeView: qt,
|
|
10581
|
+
onViewChange: Jt,
|
|
10582
|
+
onPageChange: In,
|
|
10583
|
+
onPageSizeChange: Rn,
|
|
10553
10584
|
showSearch: !1,
|
|
10554
|
-
tabs:
|
|
10555
|
-
selectedSource:
|
|
10556
|
-
onTabChange:
|
|
10557
|
-
actions:
|
|
10558
|
-
actionRules:
|
|
10585
|
+
tabs: Ve,
|
|
10586
|
+
selectedSource: ze,
|
|
10587
|
+
onTabChange: Fn,
|
|
10588
|
+
actions: fr,
|
|
10589
|
+
actionRules: Me.actionRules
|
|
10559
10590
|
})
|
|
10560
10591
|
]
|
|
10561
10592
|
});
|
|
10562
|
-
return typeof
|
|
10563
|
-
value:
|
|
10564
|
-
children:
|
|
10565
|
-
children:
|
|
10566
|
-
actions:
|
|
10593
|
+
return typeof j == "function" ? /* @__PURE__ */ Z(Rr.Provider, {
|
|
10594
|
+
value: ee,
|
|
10595
|
+
children: j({
|
|
10596
|
+
children: wr,
|
|
10597
|
+
actions: Cr,
|
|
10567
10598
|
form: I,
|
|
10568
|
-
groups:
|
|
10599
|
+
groups: Et,
|
|
10569
10600
|
moduleName: e,
|
|
10570
|
-
clientId:
|
|
10571
|
-
loading:
|
|
10572
|
-
ready:
|
|
10573
|
-
getReviewGroups: () =>
|
|
10601
|
+
clientId: qe,
|
|
10602
|
+
loading: vt || $e || mn,
|
|
10603
|
+
ready: gn,
|
|
10604
|
+
getReviewGroups: () => Et
|
|
10574
10605
|
})
|
|
10575
10606
|
}) : /* @__PURE__ */ Z(Rr.Provider, {
|
|
10576
|
-
value:
|
|
10577
|
-
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] })
|
|
10578
10609
|
});
|
|
10579
10610
|
});
|
|
10580
10611
|
//#endregion
|
|
@@ -13039,7 +13070,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13039
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);
|
|
13040
13071
|
return {
|
|
13041
13072
|
amount: c != null && !Number.isNaN(c) ? `${se(r)}${re(c)}` : "—",
|
|
13042
|
-
unit:
|
|
13073
|
+
unit: ie(i),
|
|
13043
13074
|
when: a && Tl(a).isValid() ? Ue(a) : "",
|
|
13044
13075
|
by: s == null ? "" : E[String(s)] || O[String(s)] || ""
|
|
13045
13076
|
};
|
|
@@ -13082,7 +13113,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13082
13113
|
]), te = R(() => {
|
|
13083
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)));
|
|
13084
13115
|
return t?.label ?? t?.name ?? "Rate Details";
|
|
13085
|
-
}, [o, P]), ne = e === "job",
|
|
13116
|
+
}, [o, P]), ne = e === "job", ae = R(() => ne ? gS(o) : null, [ne, o]), I = () => {
|
|
13086
13117
|
g(!1), v("");
|
|
13087
13118
|
}, oe = async () => {
|
|
13088
13119
|
if (!_.trim()) {
|
|
@@ -13324,7 +13355,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13324
13355
|
]
|
|
13325
13356
|
}, r);
|
|
13326
13357
|
}, ke = (e, t) => {
|
|
13327
|
-
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;
|
|
13328
13359
|
if (!r.length) return null;
|
|
13329
13360
|
if (e.addRow) return Oe(e, t, r);
|
|
13330
13361
|
let i = ge(r, De);
|
|
@@ -13412,7 +13443,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13412
13443
|
return Me(e) && P.length > 0 && n.push(Ae()), n;
|
|
13413
13444
|
}),
|
|
13414
13445
|
P.length > 0 && !F.some(Me) && Ae(),
|
|
13415
|
-
ne &&
|
|
13446
|
+
ne && ae?.value && /* @__PURE__ */ Z(Fo, {
|
|
13416
13447
|
size: "small",
|
|
13417
13448
|
className: "v1-card v1-detail-card",
|
|
13418
13449
|
title: /* @__PURE__ */ Z(wS, {
|
|
@@ -13437,7 +13468,7 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13437
13468
|
rows: 10,
|
|
13438
13469
|
value: _,
|
|
13439
13470
|
onChange: (e) => v(e.target.value),
|
|
13440
|
-
placeholder:
|
|
13471
|
+
placeholder: ae.hidePlaceholder ? void 0 : ae.placeholder,
|
|
13441
13472
|
style: {
|
|
13442
13473
|
fontSize: 13,
|
|
13443
13474
|
lineHeight: 1.65,
|
|
@@ -13460,11 +13491,11 @@ function ES({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
|
|
|
13460
13491
|
children: "Save & Parse"
|
|
13461
13492
|
}), /* @__PURE__ */ Z(ea, {
|
|
13462
13493
|
size: "small",
|
|
13463
|
-
onClick:
|
|
13494
|
+
onClick: I,
|
|
13464
13495
|
children: "Cancel"
|
|
13465
13496
|
})]
|
|
13466
13497
|
})]
|
|
13467
|
-
}) : /* @__PURE__ */ Z(TS, { value:
|
|
13498
|
+
}) : /* @__PURE__ */ Z(TS, { value: ae.value })
|
|
13468
13499
|
})
|
|
13469
13500
|
]
|
|
13470
13501
|
})
|
|
@@ -14992,7 +15023,7 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
14992
15023
|
L(() => {
|
|
14993
15024
|
ne && c && c(ne);
|
|
14994
15025
|
}, [ne]);
|
|
14995
|
-
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]);
|
|
14996
15027
|
L(() => {
|
|
14997
15028
|
me && u && u(me);
|
|
14998
15029
|
}, [me]);
|
|
@@ -15232,7 +15263,7 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
15232
15263
|
children: [/* @__PURE__ */ Q("div", {
|
|
15233
15264
|
className: "fin-dh__identity",
|
|
15234
15265
|
children: [/* @__PURE__ */ Z(cw, {
|
|
15235
|
-
name:
|
|
15266
|
+
name: ie,
|
|
15236
15267
|
size: "lg"
|
|
15237
15268
|
}), /* @__PURE__ */ Q("div", {
|
|
15238
15269
|
className: "fin-dh__who",
|
|
@@ -15240,7 +15271,7 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
15240
15271
|
className: "fin-dh__name-row",
|
|
15241
15272
|
children: [/* @__PURE__ */ Z("h2", {
|
|
15242
15273
|
className: "fin-dh__name",
|
|
15243
|
-
children:
|
|
15274
|
+
children: ie || "Details"
|
|
15244
15275
|
}), i ? /* @__PURE__ */ Z(JC, { status: i }) : null]
|
|
15245
15276
|
}), re ? /* @__PURE__ */ Z("span", {
|
|
15246
15277
|
className: "fin-dh__designation",
|
|
@@ -15291,9 +15322,9 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
15291
15322
|
children: [
|
|
15292
15323
|
/* @__PURE__ */ Z("span", {
|
|
15293
15324
|
className: "znx-dh-title",
|
|
15294
|
-
children:
|
|
15325
|
+
children: ie
|
|
15295
15326
|
}),
|
|
15296
|
-
|
|
15327
|
+
I.map((e) => /* @__PURE__ */ Q("span", {
|
|
15297
15328
|
className: "znx-dh-titleid",
|
|
15298
15329
|
children: [
|
|
15299
15330
|
/* @__PURE__ */ Q("span", {
|
|
@@ -15304,15 +15335,15 @@ function Mw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
15304
15335
|
e.value
|
|
15305
15336
|
]
|
|
15306
15337
|
}, e.label)),
|
|
15307
|
-
|
|
15308
|
-
color:
|
|
15338
|
+
ae && /* @__PURE__ */ Z(q, {
|
|
15339
|
+
color: ae.color,
|
|
15309
15340
|
className: "znx-dh-status",
|
|
15310
15341
|
style: {
|
|
15311
|
-
backgroundColor:
|
|
15312
|
-
borderColor:
|
|
15313
|
-
color:
|
|
15342
|
+
backgroundColor: ae.backgroundColor ?? ae.color,
|
|
15343
|
+
borderColor: ae.backgroundColor ?? ae.color,
|
|
15344
|
+
color: ae.textColor
|
|
15314
15345
|
},
|
|
15315
|
-
children:
|
|
15346
|
+
children: ae.label
|
|
15316
15347
|
})
|
|
15317
15348
|
]
|
|
15318
15349
|
}),
|
|
@@ -16326,7 +16357,7 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16326
16357
|
open: !1,
|
|
16327
16358
|
docs: [],
|
|
16328
16359
|
index: 0
|
|
16329
|
-
}), [
|
|
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);
|
|
16330
16361
|
L(() => {
|
|
16331
16362
|
if (!e.lookupFilterField || !e.lookupFilterValueFrom) return;
|
|
16332
16363
|
let r = ve.current;
|
|
@@ -16613,14 +16644,14 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16613
16644
|
let n = e.formatter ? ZT(t.target.value, e.formatter) : t.target.value;
|
|
16614
16645
|
if (Ot) {
|
|
16615
16646
|
let { cleaned: e, error: t } = hi(n, Ot, "change");
|
|
16616
|
-
|
|
16647
|
+
ae(t), n = e;
|
|
16617
16648
|
}
|
|
16618
16649
|
Et(n);
|
|
16619
16650
|
},
|
|
16620
16651
|
...Ot && {
|
|
16621
16652
|
onBlur: (e) => {
|
|
16622
16653
|
let { cleaned: t, error: n } = hi(e.target.value, Ot, "blur");
|
|
16623
|
-
|
|
16654
|
+
ae(n), t !== e.target.value && Et(t);
|
|
16624
16655
|
},
|
|
16625
16656
|
onKeyPress: (e) => {
|
|
16626
16657
|
let t = xi(Ot.type);
|
|
@@ -16629,7 +16660,7 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16629
16660
|
if (!t.test(n)) {
|
|
16630
16661
|
e.preventDefault();
|
|
16631
16662
|
let t = `${Ot.title} — invalid character.`;
|
|
16632
|
-
|
|
16663
|
+
ae(t), setTimeout(() => ae((e) => e === t ? null : e), 1800);
|
|
16633
16664
|
}
|
|
16634
16665
|
},
|
|
16635
16666
|
maxLength: Ot.maxLength ?? wt.maxLength
|
|
@@ -16747,21 +16778,21 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16747
16778
|
onChange: (e) => {
|
|
16748
16779
|
if (Ot) {
|
|
16749
16780
|
let { error: t } = hi(e, Ot, "change");
|
|
16750
|
-
|
|
16781
|
+
ae(t);
|
|
16751
16782
|
}
|
|
16752
16783
|
Et(e);
|
|
16753
16784
|
}
|
|
16754
|
-
}),
|
|
16785
|
+
}), ie && /* @__PURE__ */ Z("div", {
|
|
16755
16786
|
className: "v1-input-validator-hint",
|
|
16756
|
-
children:
|
|
16787
|
+
children: ie
|
|
16757
16788
|
})] });
|
|
16758
16789
|
if (y === "textarea") return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(pT, {
|
|
16759
16790
|
...kt,
|
|
16760
16791
|
rows: e.rows ?? 3,
|
|
16761
16792
|
className: "v1-scroll-textarea"
|
|
16762
|
-
}),
|
|
16793
|
+
}), ie && /* @__PURE__ */ Z("div", {
|
|
16763
16794
|
className: "v1-input-validator-hint",
|
|
16764
|
-
children:
|
|
16795
|
+
children: ie
|
|
16765
16796
|
})] });
|
|
16766
16797
|
if (y === "date") return /* @__PURE__ */ Z(Ro, {
|
|
16767
16798
|
value: i,
|
|
@@ -16902,7 +16933,7 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16902
16933
|
})
|
|
16903
16934
|
]
|
|
16904
16935
|
}, e.uid ?? t)), O = /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q(Yo, {
|
|
16905
|
-
open:
|
|
16936
|
+
open: I !== null,
|
|
16906
16937
|
destroyOnHidden: !0,
|
|
16907
16938
|
centered: !0,
|
|
16908
16939
|
title: "Remove this file?",
|
|
@@ -16915,12 +16946,12 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
16915
16946
|
onCancel: () => oe(null),
|
|
16916
16947
|
onOk: () => {
|
|
16917
16948
|
if (rt) return;
|
|
16918
|
-
let e = f.indexOf(
|
|
16949
|
+
let e = f.indexOf(I);
|
|
16919
16950
|
e >= 0 && _(e), oe(null);
|
|
16920
16951
|
},
|
|
16921
16952
|
children: [/* @__PURE__ */ Q("p", { children: [
|
|
16922
16953
|
"Remove ",
|
|
16923
|
-
|
|
16954
|
+
I?.name || "this file",
|
|
16924
16955
|
"?"
|
|
16925
16956
|
] }), /* @__PURE__ */ Z("p", { children: "Save your changes to apply the removal." })]
|
|
16926
16957
|
}), /* @__PURE__ */ Z(Xa, {
|
|
@@ -17064,9 +17095,9 @@ function QT({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
|
|
|
17064
17095
|
type: y === "number" ? "number" : y,
|
|
17065
17096
|
...y === "number" && xT(e.decimal) ? { step: "any" } : {},
|
|
17066
17097
|
...e.suffix ? { suffix: e.suffix } : {}
|
|
17067
|
-
}),
|
|
17098
|
+
}), ie && /* @__PURE__ */ Z("div", {
|
|
17068
17099
|
className: "v1-input-validator-hint",
|
|
17069
|
-
children:
|
|
17100
|
+
children: ie
|
|
17070
17101
|
})] });
|
|
17071
17102
|
}
|
|
17072
17103
|
function $T({ icon: e, title: t }) {
|
|
@@ -17121,7 +17152,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17121
17152
|
r,
|
|
17122
17153
|
T
|
|
17123
17154
|
]);
|
|
17124
|
-
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);
|
|
17125
17156
|
L(() => {
|
|
17126
17157
|
let e = !0;
|
|
17127
17158
|
return Re().then(() => {
|
|
@@ -17301,7 +17332,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17301
17332
|
let n = !1;
|
|
17302
17333
|
async function i() {
|
|
17303
17334
|
try {
|
|
17304
|
-
F(!0), ne(""),
|
|
17335
|
+
F(!0), ne(""), ie(!1), se("");
|
|
17305
17336
|
let i = await $a({
|
|
17306
17337
|
module: e,
|
|
17307
17338
|
id: r,
|
|
@@ -17324,7 +17355,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17324
17355
|
!n && r && r !== fe && pe(r);
|
|
17325
17356
|
}
|
|
17326
17357
|
} catch (t) {
|
|
17327
|
-
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"));
|
|
17328
17359
|
} finally {
|
|
17329
17360
|
n || F(!1);
|
|
17330
17361
|
}
|
|
@@ -17514,7 +17545,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17514
17545
|
}
|
|
17515
17546
|
async function rt(t) {
|
|
17516
17547
|
if (!(m && await Promise.resolve().then(() => m(t)).catch(() => !1) === !1)) try {
|
|
17517
|
-
|
|
17548
|
+
I(!0), se("");
|
|
17518
17549
|
let n = Wi(t, ye, { module: e }), i = Wi(t, ye, {
|
|
17519
17550
|
indexed: !0,
|
|
17520
17551
|
module: e
|
|
@@ -17597,7 +17628,7 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
17597
17628
|
let n = Pi(ye, e, "edit", t?.data?.error || t?.data?.message || t?.message);
|
|
17598
17629
|
se(n), Y.error(n);
|
|
17599
17630
|
} finally {
|
|
17600
|
-
|
|
17631
|
+
I(!1);
|
|
17601
17632
|
}
|
|
17602
17633
|
}
|
|
17603
17634
|
function it(e) {
|
|
@@ -18202,8 +18233,8 @@ function tE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
|
|
|
18202
18233
|
form: E,
|
|
18203
18234
|
groups: ye,
|
|
18204
18235
|
onClick: () => E.submit(),
|
|
18205
|
-
disabled: re || P ||
|
|
18206
|
-
loading:
|
|
18236
|
+
disabled: re || P || ae || Te > 0,
|
|
18237
|
+
loading: ae,
|
|
18207
18238
|
children: c
|
|
18208
18239
|
})] }), Ot = /* @__PURE__ */ Q("main", { children: [Be.length > 0 && /* @__PURE__ */ Z(Ea, { items: Be }), /* @__PURE__ */ Q("div", {
|
|
18209
18240
|
className: "v1-edit-page",
|
|
@@ -18874,7 +18905,7 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
18874
18905
|
F,
|
|
18875
18906
|
u,
|
|
18876
18907
|
b
|
|
18877
|
-
]), 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(() => {
|
|
18878
18909
|
if (N) return ne;
|
|
18879
18910
|
let e = (P.current - 1) * P.pageSize;
|
|
18880
18911
|
return ne.slice(e, e + P.pageSize);
|
|
@@ -18883,7 +18914,7 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
18883
18914
|
P.pageSize,
|
|
18884
18915
|
ne,
|
|
18885
18916
|
N
|
|
18886
|
-
]),
|
|
18917
|
+
]), ae = R(() => F.filter((e) => te.includes(e.key)).map((e) => ({
|
|
18887
18918
|
title: e.label,
|
|
18888
18919
|
dataIndex: e.key,
|
|
18889
18920
|
key: e.key,
|
|
@@ -18896,7 +18927,7 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
18896
18927
|
className: "job-cell-primary",
|
|
18897
18928
|
children: CE(n, e.key)
|
|
18898
18929
|
})
|
|
18899
|
-
})), [F, te]),
|
|
18930
|
+
})), [F, te]), I = te.length === F.length, oe = te.length > 0 && !I, se = (e, t) => {
|
|
18900
18931
|
k((n) => {
|
|
18901
18932
|
let r = n.length ? n : F.map((e) => e.key);
|
|
18902
18933
|
return t ? r.includes(e) ? r : [...r, e] : r.filter((t) => t !== e);
|
|
@@ -18905,7 +18936,7 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
18905
18936
|
className: "column-visibility-menu",
|
|
18906
18937
|
onClick: (e) => e.stopPropagation(),
|
|
18907
18938
|
children: [/* @__PURE__ */ Z(Io, {
|
|
18908
|
-
checked:
|
|
18939
|
+
checked: I,
|
|
18909
18940
|
indeterminate: oe,
|
|
18910
18941
|
onChange: (e) => {
|
|
18911
18942
|
k(e.target.checked ? F.map((e) => e.key) : []);
|
|
@@ -19037,8 +19068,8 @@ function TE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
|
|
|
19037
19068
|
C(e), T(t);
|
|
19038
19069
|
}
|
|
19039
19070
|
} : void 0,
|
|
19040
|
-
columns:
|
|
19041
|
-
dataSource:
|
|
19071
|
+
columns: ae,
|
|
19072
|
+
dataSource: ie,
|
|
19042
19073
|
size: "middle",
|
|
19043
19074
|
scroll: { x: "max-content" },
|
|
19044
19075
|
showSorterTooltip: !1,
|
|
@@ -20594,7 +20625,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20594
20625
|
}, [T]), [D, O] = z("traditional"), [k, A] = z("internal"), [j, M] = z({}), [ee, N] = z([]), [P, F] = z(xO), [te, ne] = z({
|
|
20595
20626
|
current: 1,
|
|
20596
20627
|
pageSize: 10
|
|
20597
|
-
}), [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) => {
|
|
20598
20629
|
Ee.current && (Ee.current = !1, e && Se(!0));
|
|
20599
20630
|
}, []);
|
|
20600
20631
|
L(() => {
|
|
@@ -20653,7 +20684,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20653
20684
|
}))), M({}), ue(null), O(e ? "boolean" : "traditional");
|
|
20654
20685
|
}, Ve = wo(async (t, n, r = {}) => {
|
|
20655
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;
|
|
20656
|
-
|
|
20687
|
+
ie(t), ne({
|
|
20657
20688
|
current: s,
|
|
20658
20689
|
pageSize: a
|
|
20659
20690
|
}), M({}), F((e) => ({
|
|
@@ -20852,7 +20883,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20852
20883
|
Ee.current = !1, Se(!1), p.resetFields(), se({}), M({}), F(xO), N([]), A("internal"), ue(null), ge(null);
|
|
20853
20884
|
}, Qe = wo(async (e, t) => {
|
|
20854
20885
|
let n = Cv(e, t);
|
|
20855
|
-
|
|
20886
|
+
I((e) => ({
|
|
20856
20887
|
...e,
|
|
20857
20888
|
[n]: {
|
|
20858
20889
|
...e[n],
|
|
@@ -20860,7 +20891,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20860
20891
|
}
|
|
20861
20892
|
}));
|
|
20862
20893
|
try {
|
|
20863
|
-
await wv(e, t),
|
|
20894
|
+
await wv(e, t), I((e) => ({
|
|
20864
20895
|
...e,
|
|
20865
20896
|
[n]: {
|
|
20866
20897
|
loading: !1,
|
|
@@ -20868,7 +20899,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20868
20899
|
}
|
|
20869
20900
|
})), Y.success(e.successMessage);
|
|
20870
20901
|
} catch (t) {
|
|
20871
|
-
|
|
20902
|
+
I((e) => ({
|
|
20872
20903
|
...e,
|
|
20873
20904
|
[n]: { loading: !1 }
|
|
20874
20905
|
})), Y.error(t?.message || e.errorMessage);
|
|
@@ -20897,7 +20928,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20897
20928
|
sorter: !1,
|
|
20898
20929
|
render: (t, n) => {
|
|
20899
20930
|
if (!Sv(e, n, k)) return null;
|
|
20900
|
-
let r = Cv(e, n), i =
|
|
20931
|
+
let r = Cv(e, n), i = ae[r] ?? {};
|
|
20901
20932
|
return /* @__PURE__ */ Z(B, {
|
|
20902
20933
|
type: "primary",
|
|
20903
20934
|
size: "small",
|
|
@@ -20913,7 +20944,7 @@ function AO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
|
|
|
20913
20944
|
P.fields,
|
|
20914
20945
|
P.rows,
|
|
20915
20946
|
k,
|
|
20916
|
-
|
|
20947
|
+
ae
|
|
20917
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) => ({
|
|
20918
20949
|
...e,
|
|
20919
20950
|
destination: qa(e.url, void 0, Ke ?? {})
|
|
@@ -23407,13 +23438,13 @@ function aA(e = {}, t = {}, n = {}) {
|
|
|
23407
23438
|
let r = {
|
|
23408
23439
|
...Uk,
|
|
23409
23440
|
...n ?? {}
|
|
23410
|
-
}, 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);
|
|
23411
23442
|
return {
|
|
23412
23443
|
contractType: l,
|
|
23413
23444
|
contractTypeLabel: Wk(c) ? String(c).trim() : "-",
|
|
23414
23445
|
isEmployerContract: u,
|
|
23415
23446
|
currency: T,
|
|
23416
|
-
currencyRaw:
|
|
23447
|
+
currencyRaw: ae(w),
|
|
23417
23448
|
rateUnit: D,
|
|
23418
23449
|
employerRateUnit: E,
|
|
23419
23450
|
clientRateUnit: O,
|
|
@@ -23430,7 +23461,7 @@ function aA(e = {}, t = {}, n = {}) {
|
|
|
23430
23461
|
employerVmsAvailable: te,
|
|
23431
23462
|
employerVmsType: re,
|
|
23432
23463
|
employerVmsRequired: P,
|
|
23433
|
-
locationTaxPercent:
|
|
23464
|
+
locationTaxPercent: I,
|
|
23434
23465
|
approvalEdit: A
|
|
23435
23466
|
};
|
|
23436
23467
|
}
|
|
@@ -23443,13 +23474,13 @@ function oA(e, t) {
|
|
|
23443
23474
|
return Kk(r?.taxValue ?? r?.taxPercent);
|
|
23444
23475
|
}
|
|
23445
23476
|
function sA(e, t = {}) {
|
|
23446
|
-
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;
|
|
23447
23478
|
return {
|
|
23448
23479
|
contractType: n,
|
|
23449
23480
|
currency: A,
|
|
23450
|
-
currencyRaw:
|
|
23481
|
+
currencyRaw: ae(a ?? i),
|
|
23451
23482
|
rateUnit: o,
|
|
23452
|
-
rateUnitLabel:
|
|
23483
|
+
rateUnitLabel: ie(o),
|
|
23453
23484
|
rateUnitShort: te(o),
|
|
23454
23485
|
employerRateUnit: fe,
|
|
23455
23486
|
employerRateUnitShort: te(fe),
|
|
@@ -23467,7 +23498,7 @@ function sA(e, t = {}) {
|
|
|
23467
23498
|
netClientRate: ne,
|
|
23468
23499
|
proposedRate: Xk(j),
|
|
23469
23500
|
discountVms: re,
|
|
23470
|
-
netProposedRate:
|
|
23501
|
+
netProposedRate: I,
|
|
23471
23502
|
employerRate: Xk(C),
|
|
23472
23503
|
employerDeductionPercent: Kk(ce),
|
|
23473
23504
|
employerDeduction: le,
|
|
@@ -23736,7 +23767,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
23736
23767
|
t,
|
|
23737
23768
|
n,
|
|
23738
23769
|
p
|
|
23739
|
-
]), 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 = () => {
|
|
23740
23771
|
x(gA(m.employerRate)), C(m.employerVmsPercent), M(null), T(!1), D(!1), A(!1);
|
|
23741
23772
|
}, Ye = R(() => sA(m, {
|
|
23742
23773
|
proposedRate: f.sections.rateBreakdown?.proposed?.editable ? g ?? 0 : void 0,
|
|
@@ -23787,7 +23818,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
23787
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) => {
|
|
23788
23819
|
P(e), Ee(!1);
|
|
23789
23820
|
let t = (i ?? []).find((t) => t.value === e), n = bA(t, De);
|
|
23790
|
-
te(n.referralRate), re(n.historicalReferralRate), t?.type &&
|
|
23821
|
+
te(n.referralRate), re(n.historicalReferralRate), t?.type && ae(t.type), o?.(e, t);
|
|
23791
23822
|
}, jt = (e) => {
|
|
23792
23823
|
let t = e.target.checked;
|
|
23793
23824
|
Ae(t), t && De.toggleInPreview && xe(!0), Ee(t);
|
|
@@ -23834,7 +23865,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
23834
23865
|
referral: Ie ? {
|
|
23835
23866
|
referralId: N,
|
|
23836
23867
|
referralRate: Ye.referralRate,
|
|
23837
|
-
referralType:
|
|
23868
|
+
referralType: ie,
|
|
23838
23869
|
referralEnabled: !0
|
|
23839
23870
|
} : {
|
|
23840
23871
|
referralEnabled: !1,
|
|
@@ -24206,14 +24237,14 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
24206
24237
|
prefix: Qe,
|
|
24207
24238
|
suffix: at || void 0,
|
|
24208
24239
|
controls: !1,
|
|
24209
|
-
status:
|
|
24240
|
+
status: I || bt ? "error" : xt ? "warning" : ""
|
|
24210
24241
|
})]
|
|
24211
24242
|
}),
|
|
24212
24243
|
/* @__PURE__ */ Z("div", {
|
|
24213
24244
|
className: "fa-editable-sub",
|
|
24214
24245
|
children: "rate we ask the client for"
|
|
24215
24246
|
}),
|
|
24216
|
-
|
|
24247
|
+
I && /* @__PURE__ */ Q("div", {
|
|
24217
24248
|
className: "fa-reason-error",
|
|
24218
24249
|
children: ["! ", ft.message]
|
|
24219
24250
|
}),
|
|
@@ -24294,7 +24325,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
24294
24325
|
className: "fa-card-head",
|
|
24295
24326
|
children: [/* @__PURE__ */ Q("h3", { children: [/* @__PURE__ */ Z("span", { className: "fa-dot fa-dot-warning" }), "Referral"] }), De.mode === "print" && De.typeChip && /* @__PURE__ */ Z("span", {
|
|
24296
24327
|
className: "fa-type-chip",
|
|
24297
|
-
children:
|
|
24328
|
+
children: ie
|
|
24298
24329
|
})]
|
|
24299
24330
|
}), /* @__PURE__ */ Z("div", {
|
|
24300
24331
|
className: "fa-card-body",
|
|
@@ -24359,8 +24390,8 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
24359
24390
|
}), /* @__PURE__ */ Z(W, {
|
|
24360
24391
|
id: "fa-referral-type",
|
|
24361
24392
|
className: "fa-referral-type",
|
|
24362
|
-
value:
|
|
24363
|
-
onChange:
|
|
24393
|
+
value: ie,
|
|
24394
|
+
onChange: ae,
|
|
24364
24395
|
disabled: !N,
|
|
24365
24396
|
options: [{
|
|
24366
24397
|
value: "Recurring",
|
|
@@ -24637,7 +24668,7 @@ function RA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
|
|
|
24637
24668
|
/* @__PURE__ */ Q("b", { children: [vA(Ye.netProposedRate, Qe), at] }),
|
|
24638
24669
|
Ie ? /* @__PURE__ */ Q(X, { children: [
|
|
24639
24670
|
" including the ",
|
|
24640
|
-
String(
|
|
24671
|
+
String(ie).toLowerCase(),
|
|
24641
24672
|
" ",
|
|
24642
24673
|
/* @__PURE__ */ Q("b", { children: [vA(F, Qe), at] }),
|
|
24643
24674
|
" referral"
|
|
@@ -24814,7 +24845,7 @@ async function tj(e, t = {}) {
|
|
|
24814
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 = {
|
|
24815
24846
|
...j,
|
|
24816
24847
|
...M
|
|
24817
|
-
}, 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(() => []) : [];
|
|
24818
24849
|
return {
|
|
24819
24850
|
record: {
|
|
24820
24851
|
submission: {
|
|
@@ -24837,8 +24868,8 @@ async function tj(e, t = {}) {
|
|
|
24837
24868
|
clientVmsFee: ee.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
|
|
24838
24869
|
locationTaxPercent: o.tax ?? F.taxValue,
|
|
24839
24870
|
locationId: Qk(F._id ?? F.id) || (f ? String(Qk(f) || f) : ""),
|
|
24840
|
-
locationOptions:
|
|
24841
|
-
locationFieldLabel:
|
|
24871
|
+
locationOptions: ae,
|
|
24872
|
+
locationFieldLabel: ie?.label ?? "Location"
|
|
24842
24873
|
},
|
|
24843
24874
|
display: {
|
|
24844
24875
|
clientName: a.clientName ?? ee.clientName,
|
|
@@ -41882,9 +41913,9 @@ function II() {
|
|
|
41882
41913
|
function re(e) {
|
|
41883
41914
|
ne(e, null);
|
|
41884
41915
|
}
|
|
41885
|
-
let
|
|
41886
|
-
function
|
|
41887
|
-
if (!
|
|
41916
|
+
let ie = (e) => ["submission", "submissions"].includes(String(e || "").toLowerCase());
|
|
41917
|
+
function ae(e = c, t = b) {
|
|
41918
|
+
if (!ie(e)) return;
|
|
41888
41919
|
let n = e !== "all" && (t.clientId || t.region) ? t : {};
|
|
41889
41920
|
k(!0), pn(e, n).then((e) => D({
|
|
41890
41921
|
requireAcknowledge: e?.requireAcknowledge === !0,
|
|
@@ -41892,8 +41923,8 @@ function II() {
|
|
|
41892
41923
|
allowLinkedInInResume: e?.allowLinkedInInResume === !0
|
|
41893
41924
|
})).catch(() => Y.error("Could not load preview settings")).finally(() => k(!1));
|
|
41894
41925
|
}
|
|
41895
|
-
async function
|
|
41896
|
-
if (
|
|
41926
|
+
async function I() {
|
|
41927
|
+
if (ie(c)) {
|
|
41897
41928
|
j(!0);
|
|
41898
41929
|
try {
|
|
41899
41930
|
await xe(c, E, he()), Y.success("Preview settings saved"), re(c);
|
|
@@ -41905,7 +41936,7 @@ function II() {
|
|
|
41905
41936
|
}
|
|
41906
41937
|
}
|
|
41907
41938
|
function oe(e) {
|
|
41908
|
-
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);
|
|
41909
41940
|
}
|
|
41910
41941
|
function se() {
|
|
41911
41942
|
p(null), d(!0);
|
|
@@ -41968,7 +41999,7 @@ function II() {
|
|
|
41968
41999
|
})).catch((e) => N(c, {
|
|
41969
42000
|
error: e.message || "Could not load scoped groups",
|
|
41970
42001
|
loading: !1
|
|
41971
|
-
})),
|
|
42002
|
+
})), ie(c) && (k(!0), pn(c, n).then((e) => D({
|
|
41972
42003
|
requireAcknowledge: e?.requireAcknowledge === !0,
|
|
41973
42004
|
acknowledgeText: e?.acknowledgeText || "I acknowledge that I have reviewed the submission details.",
|
|
41974
42005
|
allowLinkedInInResume: e?.allowLinkedInInResume === !0
|
|
@@ -42134,7 +42165,7 @@ function II() {
|
|
|
42134
42165
|
]
|
|
42135
42166
|
})]
|
|
42136
42167
|
}) }),
|
|
42137
|
-
|
|
42168
|
+
ie(c) && /* @__PURE__ */ Z(KN, { children: /* @__PURE__ */ Z(os, {
|
|
42138
42169
|
spinning: O,
|
|
42139
42170
|
children: /* @__PURE__ */ Q(G, {
|
|
42140
42171
|
direction: "vertical",
|
|
@@ -42190,12 +42221,12 @@ function II() {
|
|
|
42190
42221
|
size: "small",
|
|
42191
42222
|
icon: /* @__PURE__ */ Z(Qc, {}),
|
|
42192
42223
|
loading: A,
|
|
42193
|
-
onClick:
|
|
42224
|
+
onClick: I,
|
|
42194
42225
|
children: "Save Preview Settings"
|
|
42195
42226
|
}), /* @__PURE__ */ Z(B, {
|
|
42196
42227
|
size: "small",
|
|
42197
42228
|
icon: /* @__PURE__ */ Z(Kc, {}),
|
|
42198
|
-
onClick: () =>
|
|
42229
|
+
onClick: () => ae(c, b),
|
|
42199
42230
|
children: "Reload"
|
|
42200
42231
|
})] })
|
|
42201
42232
|
]
|
|
@@ -44336,7 +44367,7 @@ function vL({ open: e, onClose: t }) {
|
|
|
44336
44367
|
});
|
|
44337
44368
|
}
|
|
44338
44369
|
function yL() {
|
|
44339
|
-
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({});
|
|
44340
44371
|
function de(e) {
|
|
44341
44372
|
P(XI[e]);
|
|
44342
44373
|
}
|
|
@@ -44396,7 +44427,7 @@ function yL() {
|
|
|
44396
44427
|
P(null), te((e) => e + 1);
|
|
44397
44428
|
}
|
|
44398
44429
|
L(() => {
|
|
44399
|
-
Te({ limit: 200 }).then(
|
|
44430
|
+
Te({ limit: 200 }).then(ae).catch(() => ae([]));
|
|
44400
44431
|
}, []), L(() => {
|
|
44401
44432
|
$e().then((e) => {
|
|
44402
44433
|
let n = CP(e).map(({ value: e, label: t }) => ({
|
|
@@ -44411,10 +44442,10 @@ function yL() {
|
|
|
44411
44442
|
return (async () => {
|
|
44412
44443
|
x(!0), C("");
|
|
44413
44444
|
try {
|
|
44414
|
-
let [t, n] = await Promise.all([Se(i, { clientId:
|
|
44445
|
+
let [t, n] = await Promise.all([Se(i, { clientId: I }).catch((e) => {
|
|
44415
44446
|
if (e?.status === 404) return [];
|
|
44416
44447
|
throw e;
|
|
44417
|
-
}), Jn(i, { clientId:
|
|
44448
|
+
}), Jn(i, { clientId: I })]);
|
|
44418
44449
|
if (e) return;
|
|
44419
44450
|
let r = n.sourceFields ?? [], a = HI(VI(t, r), n.groups ?? []), o = a.groups;
|
|
44420
44451
|
ce(n.clientId ?? ""), _(r), y(a.labels), s(o), l(tL(o)), d(o.map((e) => ({
|
|
@@ -44436,7 +44467,7 @@ function yL() {
|
|
|
44436
44467
|
}, [
|
|
44437
44468
|
i,
|
|
44438
44469
|
F,
|
|
44439
|
-
|
|
44470
|
+
I
|
|
44440
44471
|
]);
|
|
44441
44472
|
let ve = R(() => c.map((e) => ({
|
|
44442
44473
|
value: e.key,
|
|
@@ -44452,11 +44483,11 @@ function yL() {
|
|
|
44452
44483
|
merges: rL(m),
|
|
44453
44484
|
sourceFields: g,
|
|
44454
44485
|
groups: UI(v),
|
|
44455
|
-
clientId:
|
|
44486
|
+
clientId: I
|
|
44456
44487
|
}), n.length && (s(t), l(tL(t)), d(t.map((e) => ({
|
|
44457
44488
|
value: e.name,
|
|
44458
44489
|
label: e.label ?? e.name
|
|
44459
|
-
})))), ce(
|
|
44490
|
+
})))), ce(I), Y.success(I ? "Detail view configuration saved for this client" : "Detail view configuration saved");
|
|
44460
44491
|
} catch (e) {
|
|
44461
44492
|
Y.error(e?.message || "Could not save configuration");
|
|
44462
44493
|
} finally {
|
|
@@ -45018,9 +45049,9 @@ function yL() {
|
|
|
45018
45049
|
showSearch: !0,
|
|
45019
45050
|
placeholder: "Client (default)",
|
|
45020
45051
|
style: { width: 240 },
|
|
45021
|
-
value:
|
|
45052
|
+
value: I || void 0,
|
|
45022
45053
|
optionFilterProp: "label",
|
|
45023
|
-
options:
|
|
45054
|
+
options: ie.map((e) => ({
|
|
45024
45055
|
value: e._id ?? e.id,
|
|
45025
45056
|
label: e.clientName ?? e.name ?? e.clientRefrenceId ?? e._id
|
|
45026
45057
|
})).filter((e) => e.value),
|
|
@@ -45033,7 +45064,7 @@ function yL() {
|
|
|
45033
45064
|
})]
|
|
45034
45065
|
})]
|
|
45035
45066
|
}),
|
|
45036
|
-
|
|
45067
|
+
I && !se && !b && /* @__PURE__ */ Z(Ao, {
|
|
45037
45068
|
type: "info",
|
|
45038
45069
|
showIcon: !0,
|
|
45039
45070
|
style: { marginBottom: 12 },
|
|
@@ -45192,7 +45223,7 @@ function yL() {
|
|
|
45192
45223
|
onVerified: _e,
|
|
45193
45224
|
onConfirm: N?.action === "discoverFields" ? (e) => Hn({
|
|
45194
45225
|
module: i,
|
|
45195
|
-
clientId:
|
|
45226
|
+
clientId: I,
|
|
45196
45227
|
otp: e
|
|
45197
45228
|
}) : void 0
|
|
45198
45229
|
})
|
|
@@ -46185,9 +46216,9 @@ function JL() {
|
|
|
46185
46216
|
}
|
|
46186
46217
|
}, [te, ne] = z(null), re = (e = null) => {
|
|
46187
46218
|
ne(typeof e == "string" ? e : null), x(null), y(!0);
|
|
46188
|
-
},
|
|
46219
|
+
}, ie = (e, t = null) => {
|
|
46189
46220
|
ne(t), x(e), y(!0);
|
|
46190
|
-
},
|
|
46221
|
+
}, ae = async (e) => {
|
|
46191
46222
|
let t;
|
|
46192
46223
|
t = te ? c.map((t) => {
|
|
46193
46224
|
if (t.key !== te) return t;
|
|
@@ -46228,7 +46259,7 @@ function JL() {
|
|
|
46228
46259
|
} catch (e) {
|
|
46229
46260
|
Y.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && N();
|
|
46230
46261
|
}
|
|
46231
|
-
},
|
|
46262
|
+
}, I = (e, t = null) => {
|
|
46232
46263
|
l(t ? (n) => n.map((n) => n.key === t ? {
|
|
46233
46264
|
...n,
|
|
46234
46265
|
children: (n.children ?? []).filter((t) => t.key !== e)
|
|
@@ -46375,12 +46406,12 @@ function JL() {
|
|
|
46375
46406
|
size: "small",
|
|
46376
46407
|
type: "text",
|
|
46377
46408
|
icon: /* @__PURE__ */ Z(tc, {}),
|
|
46378
|
-
onClick: () =>
|
|
46409
|
+
onClick: () => ie(t)
|
|
46379
46410
|
})
|
|
46380
46411
|
}),
|
|
46381
46412
|
/* @__PURE__ */ Z(Zo, {
|
|
46382
46413
|
title: "Remove this action?",
|
|
46383
|
-
onConfirm: () =>
|
|
46414
|
+
onConfirm: () => I(t.key),
|
|
46384
46415
|
okText: "Remove",
|
|
46385
46416
|
okType: "danger",
|
|
46386
46417
|
children: /* @__PURE__ */ Z(J, {
|
|
@@ -46454,11 +46485,11 @@ function JL() {
|
|
|
46454
46485
|
size: "small",
|
|
46455
46486
|
type: "text",
|
|
46456
46487
|
icon: /* @__PURE__ */ Z(tc, {}),
|
|
46457
|
-
onClick: () =>
|
|
46488
|
+
onClick: () => ie(n, e)
|
|
46458
46489
|
})
|
|
46459
46490
|
}), /* @__PURE__ */ Z(Zo, {
|
|
46460
46491
|
title: "Remove this child action?",
|
|
46461
|
-
onConfirm: () =>
|
|
46492
|
+
onConfirm: () => I(n.key, e),
|
|
46462
46493
|
okText: "Remove",
|
|
46463
46494
|
okType: "danger",
|
|
46464
46495
|
children: /* @__PURE__ */ Z(J, {
|
|
@@ -46671,7 +46702,7 @@ function JL() {
|
|
|
46671
46702
|
permissionModules: A,
|
|
46672
46703
|
permissionActions: M,
|
|
46673
46704
|
onClose: () => y(!1),
|
|
46674
|
-
onSave:
|
|
46705
|
+
onSave: ae
|
|
46675
46706
|
}),
|
|
46676
46707
|
/* @__PURE__ */ Z(DF, {
|
|
46677
46708
|
open: !!E,
|
|
@@ -56262,7 +56293,7 @@ function LB({ title: e, description: t, selectedName: n, loading: r, saving: i,
|
|
|
56262
56293
|
});
|
|
56263
56294
|
}
|
|
56264
56295
|
function RB({ onLogout: e }) {
|
|
56265
|
-
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 () => {
|
|
56266
56297
|
Oe(!0);
|
|
56267
56298
|
try {
|
|
56268
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));
|
|
@@ -56558,14 +56589,14 @@ function RB({ onLogout: e }) {
|
|
|
56558
56589
|
}
|
|
56559
56590
|
}
|
|
56560
56591
|
function Qe() {
|
|
56561
|
-
|
|
56592
|
+
ie(null), t.resetFields(), t.setFieldsValue({
|
|
56562
56593
|
status: "ACTIVE",
|
|
56563
56594
|
user_type_id: Ve[0]?.user_type_id,
|
|
56564
56595
|
reporting_id: 0
|
|
56565
56596
|
}), ne(!0);
|
|
56566
56597
|
}
|
|
56567
56598
|
function $e(e) {
|
|
56568
|
-
|
|
56599
|
+
ie(e), t.setFieldsValue({
|
|
56569
56600
|
first_name: e.first_name,
|
|
56570
56601
|
last_name: e.last_name,
|
|
56571
56602
|
username: e.username,
|
|
@@ -56578,7 +56609,7 @@ function RB({ onLogout: e }) {
|
|
|
56578
56609
|
}), ne(!0);
|
|
56579
56610
|
}
|
|
56580
56611
|
async function et(e) {
|
|
56581
|
-
|
|
56612
|
+
I(!0);
|
|
56582
56613
|
try {
|
|
56583
56614
|
let t = {
|
|
56584
56615
|
...e,
|
|
@@ -56586,11 +56617,11 @@ function RB({ onLogout: e }) {
|
|
|
56586
56617
|
updated_by: je?.userId ?? null,
|
|
56587
56618
|
created_by: je?.userId ?? null
|
|
56588
56619
|
};
|
|
56589
|
-
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();
|
|
56590
56621
|
} catch (e) {
|
|
56591
56622
|
Y.error(e.message || "Unable to save user");
|
|
56592
56623
|
} finally {
|
|
56593
|
-
|
|
56624
|
+
I(!1);
|
|
56594
56625
|
}
|
|
56595
56626
|
}
|
|
56596
56627
|
async function tt(e) {
|
|
@@ -57152,7 +57183,7 @@ function RB({ onLogout: e }) {
|
|
|
57152
57183
|
open: te,
|
|
57153
57184
|
onCancel: () => ne(!1),
|
|
57154
57185
|
onOk: () => t.submit(),
|
|
57155
|
-
confirmLoading:
|
|
57186
|
+
confirmLoading: ae,
|
|
57156
57187
|
destroyOnHidden: !0,
|
|
57157
57188
|
children: /* @__PURE__ */ Q(H, {
|
|
57158
57189
|
form: t,
|
|
@@ -57806,7 +57837,7 @@ function OV() {
|
|
|
57806
57837
|
attachments: [],
|
|
57807
57838
|
showCc: !1,
|
|
57808
57839
|
showBcc: !1
|
|
57809
|
-
}), 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);
|
|
57810
57841
|
L(() => {
|
|
57811
57842
|
if (!m) return;
|
|
57812
57843
|
let e = !1;
|
|
@@ -57882,7 +57913,7 @@ function OV() {
|
|
|
57882
57913
|
p
|
|
57883
57914
|
]), L(() => {
|
|
57884
57915
|
if (!l.autoFetchJobContent || !j) {
|
|
57885
|
-
re(!0),
|
|
57916
|
+
re(!0), ae(!1);
|
|
57886
57917
|
return;
|
|
57887
57918
|
}
|
|
57888
57919
|
if (!mV.test(j)) {
|
|
@@ -57891,7 +57922,7 @@ function OV() {
|
|
|
57891
57922
|
}
|
|
57892
57923
|
let e = ++me.current, t = !1;
|
|
57893
57924
|
async function n() {
|
|
57894
|
-
re(!1),
|
|
57925
|
+
re(!1), ae(!0), F((e) => ({
|
|
57895
57926
|
...e,
|
|
57896
57927
|
contents: ""
|
|
57897
57928
|
}));
|
|
@@ -57917,7 +57948,7 @@ function OV() {
|
|
|
57917
57948
|
} catch (n) {
|
|
57918
57949
|
!t && e === me.current && l.requiredJobId && Y.error(n?.message || "Could not load mail template for this Job ID");
|
|
57919
57950
|
} finally {
|
|
57920
|
-
!t && e === me.current && (re(!0),
|
|
57951
|
+
!t && e === me.current && (re(!0), ae(!1));
|
|
57921
57952
|
}
|
|
57922
57953
|
}
|
|
57923
57954
|
return n(), () => {
|
|
@@ -58016,8 +58047,8 @@ function OV() {
|
|
|
58016
58047
|
M(""), A(""), oe([]);
|
|
58017
58048
|
},
|
|
58018
58049
|
placeholder: "Minimum 3 characters",
|
|
58019
|
-
notFoundContent: se ||
|
|
58020
|
-
options:
|
|
58050
|
+
notFoundContent: se || ie ? /* @__PURE__ */ Z(os, { size: "small" }) : null,
|
|
58051
|
+
options: I,
|
|
58021
58052
|
className: "mail-popup__job-input",
|
|
58022
58053
|
"aria-required": l.requiredJobId
|
|
58023
58054
|
})]
|
|
@@ -58053,7 +58084,7 @@ function OV() {
|
|
|
58053
58084
|
children: "Retry"
|
|
58054
58085
|
})
|
|
58055
58086
|
}), /* @__PURE__ */ Z(os, {
|
|
58056
|
-
spinning:
|
|
58087
|
+
spinning: ie || h,
|
|
58057
58088
|
description: h ? "Loading selected candidate emails..." : "Loading mail content...",
|
|
58058
58089
|
size: "large",
|
|
58059
58090
|
children: /* @__PURE__ */ Z(fV, {
|
|
@@ -60256,15 +60287,15 @@ function SU({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
|
|
|
60256
60287
|
L(() => {
|
|
60257
60288
|
!e || !te || ee();
|
|
60258
60289
|
}, [e, te]);
|
|
60259
|
-
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;
|
|
60260
60291
|
if (!t || !e || te) return null;
|
|
60261
60292
|
let ue = t.component;
|
|
60262
60293
|
return ue ? /* @__PURE__ */ Z(o, {
|
|
60263
60294
|
open: e,
|
|
60264
60295
|
title: t.title || t.getTitleText ? o === Yo ? /* @__PURE__ */ Z(uH, {
|
|
60265
|
-
titleText:
|
|
60296
|
+
titleText: I,
|
|
60266
60297
|
titleIcon: t.titleIcon
|
|
60267
|
-
}) :
|
|
60298
|
+
}) : I : null,
|
|
60268
60299
|
footer: null,
|
|
60269
60300
|
width: t.width ?? 760,
|
|
60270
60301
|
centered: !0,
|
|
@@ -60281,9 +60312,9 @@ function SU({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
|
|
|
60281
60312
|
}) : /* @__PURE__ */ Q(o, {
|
|
60282
60313
|
open: e,
|
|
60283
60314
|
title: o === Yo ? /* @__PURE__ */ Z(uH, {
|
|
60284
|
-
titleText:
|
|
60315
|
+
titleText: I,
|
|
60285
60316
|
titleIcon: t.titleIcon
|
|
60286
|
-
}) :
|
|
60317
|
+
}) : I,
|
|
60287
60318
|
okText: t.okText || "OK",
|
|
60288
60319
|
cancelText: t.cancelText ?? "Cancel",
|
|
60289
60320
|
onOk: ee,
|
|
@@ -60305,7 +60336,7 @@ function SU({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
|
|
|
60305
60336
|
description: t.description,
|
|
60306
60337
|
showSelectedCount: t.showSelectedCount,
|
|
60307
60338
|
count: ne,
|
|
60308
|
-
itemLabel:
|
|
60339
|
+
itemLabel: ie,
|
|
60309
60340
|
bodyText: se,
|
|
60310
60341
|
deleteError: P
|
|
60311
60342
|
}),
|
|
@@ -62520,7 +62551,7 @@ function KG() {
|
|
|
62520
62551
|
function re() {
|
|
62521
62552
|
e(-1);
|
|
62522
62553
|
}
|
|
62523
|
-
function
|
|
62554
|
+
function ie() {
|
|
62524
62555
|
te && WG.submit({
|
|
62525
62556
|
jobId: l,
|
|
62526
62557
|
toMail: KB(P.to),
|
|
@@ -62538,7 +62569,7 @@ function KG() {
|
|
|
62538
62569
|
Y.error(e?.message || "Failed to send mail. Please try again.");
|
|
62539
62570
|
});
|
|
62540
62571
|
}
|
|
62541
|
-
let
|
|
62572
|
+
let ae = R(() => {
|
|
62542
62573
|
if (!g) return v;
|
|
62543
62574
|
let e = g.toLowerCase();
|
|
62544
62575
|
return v.filter((t) => (t.vendorName ?? "").toLowerCase().includes(e) || (t.vendorEmail ?? "").toLowerCase().includes(e) || (t.vendorLocation ?? "").toLowerCase().includes(e));
|
|
@@ -62558,7 +62589,7 @@ function KG() {
|
|
|
62558
62589
|
}), /* @__PURE__ */ Z(B, {
|
|
62559
62590
|
type: "primary",
|
|
62560
62591
|
disabled: !te,
|
|
62561
|
-
onClick:
|
|
62592
|
+
onClick: ie,
|
|
62562
62593
|
children: "Send"
|
|
62563
62594
|
})]
|
|
62564
62595
|
}),
|
|
@@ -62621,7 +62652,7 @@ function KG() {
|
|
|
62621
62652
|
children: /* @__PURE__ */ Z(ls, {
|
|
62622
62653
|
rowKey: (e) => e.vendorId,
|
|
62623
62654
|
columns: GG,
|
|
62624
|
-
dataSource:
|
|
62655
|
+
dataSource: ae,
|
|
62625
62656
|
loading: A,
|
|
62626
62657
|
pagination: !1,
|
|
62627
62658
|
size: "small",
|
|
@@ -66747,7 +66778,7 @@ function Lq() {
|
|
|
66747
66778
|
} finally {
|
|
66748
66779
|
y(!1);
|
|
66749
66780
|
}
|
|
66750
|
-
}, []),
|
|
66781
|
+
}, []), ie = wo(async (t, n, r, i = "") => {
|
|
66751
66782
|
if (!t || !n || !r) {
|
|
66752
66783
|
d([]), e.setFieldsValue({ step_order: void 0 });
|
|
66753
66784
|
return;
|
|
@@ -66771,7 +66802,7 @@ function Lq() {
|
|
|
66771
66802
|
} finally {
|
|
66772
66803
|
S(!1);
|
|
66773
66804
|
}
|
|
66774
|
-
}, [e]),
|
|
66805
|
+
}, [e]), ae = wo(async (e = "") => {
|
|
66775
66806
|
if (!(!a?.id || !D || !O)) {
|
|
66776
66807
|
S(!0);
|
|
66777
66808
|
try {
|
|
@@ -66793,7 +66824,7 @@ function Lq() {
|
|
|
66793
66824
|
a?.id,
|
|
66794
66825
|
D,
|
|
66795
66826
|
O
|
|
66796
|
-
]),
|
|
66827
|
+
]), I = wo(async () => {
|
|
66797
66828
|
if (!(!r || !a?.name)) {
|
|
66798
66829
|
E(!0);
|
|
66799
66830
|
try {
|
|
@@ -66836,7 +66867,7 @@ function Lq() {
|
|
|
66836
66867
|
return;
|
|
66837
66868
|
}
|
|
66838
66869
|
Promise.resolve().then(async () => {
|
|
66839
|
-
await te(), await ne(a.name), r && await
|
|
66870
|
+
await te(), await ne(a.name), r && await I();
|
|
66840
66871
|
});
|
|
66841
66872
|
}, [
|
|
66842
66873
|
a,
|
|
@@ -66844,7 +66875,7 @@ function Lq() {
|
|
|
66844
66875
|
te,
|
|
66845
66876
|
ne,
|
|
66846
66877
|
r,
|
|
66847
|
-
|
|
66878
|
+
I
|
|
66848
66879
|
]), a ? /* @__PURE__ */ Q("main", {
|
|
66849
66880
|
className: "jobs-list-page",
|
|
66850
66881
|
children: [/* @__PURE__ */ Q(ns, {
|
|
@@ -66898,7 +66929,7 @@ function Lq() {
|
|
|
66898
66929
|
value: void 0,
|
|
66899
66930
|
expected: void 0,
|
|
66900
66931
|
description: void 0
|
|
66901
|
-
}), await
|
|
66932
|
+
}), await ie(o.product_parent_ID, o.module_parent_ID, o.submodule_parent_ID);
|
|
66902
66933
|
} catch (e) {
|
|
66903
66934
|
console.error("Unable to save test case:", e), Y.error(i ? "Unable to update test case." : "Unable to save step.");
|
|
66904
66935
|
} finally {
|
|
@@ -66981,7 +67012,7 @@ function Lq() {
|
|
|
66981
67012
|
"key",
|
|
66982
67013
|
"value",
|
|
66983
67014
|
"expected"
|
|
66984
|
-
]),
|
|
67015
|
+
]), ie(a?.id, D, t);
|
|
66985
67016
|
}
|
|
66986
67017
|
})
|
|
66987
67018
|
})
|
|
@@ -67080,7 +67111,7 @@ function Lq() {
|
|
|
67080
67111
|
"key",
|
|
67081
67112
|
"value",
|
|
67082
67113
|
"expected"
|
|
67083
|
-
]),
|
|
67114
|
+
]), ae(t || "");
|
|
67084
67115
|
}
|
|
67085
67116
|
})
|
|
67086
67117
|
})
|
|
@@ -68000,7 +68031,7 @@ function sJ() {
|
|
|
68000
68031
|
O,
|
|
68001
68032
|
D
|
|
68002
68033
|
]);
|
|
68003
|
-
let
|
|
68034
|
+
let ie = async (t) => {
|
|
68004
68035
|
let n = {
|
|
68005
68036
|
module: rJ(t.module),
|
|
68006
68037
|
flow: rJ(t.flow),
|
|
@@ -68021,9 +68052,9 @@ function sJ() {
|
|
|
68021
68052
|
} finally {
|
|
68022
68053
|
C(!1);
|
|
68023
68054
|
}
|
|
68024
|
-
},
|
|
68055
|
+
}, ae = (t, n) => {
|
|
68025
68056
|
e.setFieldsValue({ [t]: rJ(n) });
|
|
68026
|
-
},
|
|
68057
|
+
}, I = (t) => {
|
|
68027
68058
|
e.setFieldsValue({
|
|
68028
68059
|
module: rJ(t),
|
|
68029
68060
|
flow: void 0,
|
|
@@ -68132,7 +68163,7 @@ function sJ() {
|
|
|
68132
68163
|
children: " *"
|
|
68133
68164
|
})] }),
|
|
68134
68165
|
initialValues: Zq,
|
|
68135
|
-
onFinish:
|
|
68166
|
+
onFinish: ie,
|
|
68136
68167
|
autoComplete: "off",
|
|
68137
68168
|
children: [/* @__PURE__ */ Z(Fo, {
|
|
68138
68169
|
className: "v1-card",
|
|
@@ -68164,7 +68195,7 @@ function sJ() {
|
|
|
68164
68195
|
optionFilterProp: "label",
|
|
68165
68196
|
placeholder: "Select module",
|
|
68166
68197
|
options: E,
|
|
68167
|
-
onChange:
|
|
68198
|
+
onChange: I
|
|
68168
68199
|
})
|
|
68169
68200
|
}), /* @__PURE__ */ Z(B, {
|
|
68170
68201
|
"aria-label": "Add module",
|
|
@@ -68233,7 +68264,7 @@ function sJ() {
|
|
|
68233
68264
|
disabled: ee,
|
|
68234
68265
|
placeholder: "Enter description",
|
|
68235
68266
|
showCount: !0,
|
|
68236
|
-
onBlur: (e) =>
|
|
68267
|
+
onBlur: (e) => ae("description", e.target.value)
|
|
68237
68268
|
})
|
|
68238
68269
|
})
|
|
68239
68270
|
}),
|
|
@@ -68251,7 +68282,7 @@ function sJ() {
|
|
|
68251
68282
|
maxLength: 255,
|
|
68252
68283
|
disabled: ee || !!k && !N.key,
|
|
68253
68284
|
placeholder: ee ? "Select module and flow first" : k ? N.key ? "Required — Enter selector / locator" : "Not needed for this action" : "Select an action first",
|
|
68254
|
-
onBlur: (e) =>
|
|
68285
|
+
onBlur: (e) => ae("target", e.target.value)
|
|
68255
68286
|
})
|
|
68256
68287
|
})
|
|
68257
68288
|
}),
|
|
@@ -68266,7 +68297,7 @@ function sJ() {
|
|
|
68266
68297
|
disabled: ee,
|
|
68267
68298
|
placeholder: "Enter tags",
|
|
68268
68299
|
prefix: /* @__PURE__ */ Z(dl, { className: "v1-input-icon" }),
|
|
68269
|
-
onBlur: (e) =>
|
|
68300
|
+
onBlur: (e) => ae("tags", e.target.value)
|
|
68270
68301
|
})
|
|
68271
68302
|
})
|
|
68272
68303
|
}),
|
|
@@ -68284,7 +68315,7 @@ function sJ() {
|
|
|
68284
68315
|
rows: 4,
|
|
68285
68316
|
disabled: ee || !!k && !N.value,
|
|
68286
68317
|
placeholder: ee ? "Select module and flow first" : k ? N.value ? "Required — Enter value" : "Not needed for this action" : "Select an action first",
|
|
68287
|
-
onBlur: (e) =>
|
|
68318
|
+
onBlur: (e) => ae("value", e.target.value)
|
|
68288
68319
|
})
|
|
68289
68320
|
})
|
|
68290
68321
|
}),
|
|
@@ -68302,7 +68333,7 @@ function sJ() {
|
|
|
68302
68333
|
rows: 4,
|
|
68303
68334
|
disabled: ee || !!k && !N.expected,
|
|
68304
68335
|
placeholder: ee ? "Select module and flow first" : k ? N.expected ? "Required — Enter expected result" : "Not needed for this action" : "Select an action first",
|
|
68305
|
-
onBlur: (e) =>
|
|
68336
|
+
onBlur: (e) => ae("expected", e.target.value)
|
|
68306
68337
|
})
|
|
68307
68338
|
})
|
|
68308
68339
|
})
|
|
@@ -69097,12 +69128,12 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69097
69128
|
C[t.key] !== void 0 && e.add(t.key);
|
|
69098
69129
|
}), te(e);
|
|
69099
69130
|
}
|
|
69100
|
-
let
|
|
69131
|
+
let ie = Oo(/* @__PURE__ */ new Set());
|
|
69101
69132
|
L(() => {
|
|
69102
69133
|
h.forEach((e) => {
|
|
69103
69134
|
if (e.kind !== VJ.OPTIONS || !F.has(e.key)) return;
|
|
69104
69135
|
let n = `${e.key}|${t}|${b}`;
|
|
69105
|
-
|
|
69136
|
+
ie.current.has(n) || (ie.current.add(n), y(e.key, "", {
|
|
69106
69137
|
...e.fetchMeta,
|
|
69107
69138
|
scope: t,
|
|
69108
69139
|
...x ?? {}
|
|
@@ -69116,17 +69147,17 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69116
69147
|
x,
|
|
69117
69148
|
y
|
|
69118
69149
|
]);
|
|
69119
|
-
let
|
|
69150
|
+
let ae = (e) => {
|
|
69120
69151
|
te((t) => {
|
|
69121
69152
|
let n = new Set(t);
|
|
69122
69153
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
69123
69154
|
});
|
|
69124
|
-
},
|
|
69155
|
+
}, I = $J(r);
|
|
69125
69156
|
return o ? /* @__PURE__ */ Z("aside", {
|
|
69126
69157
|
className: `cc-filter-rail cc-filter-rail--collapsed ${d}`.trim(),
|
|
69127
69158
|
"aria-label": a,
|
|
69128
69159
|
children: /* @__PURE__ */ Z(J, {
|
|
69129
|
-
title:
|
|
69160
|
+
title: I ? `Show ${a.toLowerCase()} (${I} active)` : `Show ${a.toLowerCase()}`,
|
|
69130
69161
|
placement: "right",
|
|
69131
69162
|
children: /* @__PURE__ */ Z(B, {
|
|
69132
69163
|
type: "text",
|
|
@@ -69135,7 +69166,7 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69135
69166
|
"aria-expanded": !1,
|
|
69136
69167
|
onClick: s,
|
|
69137
69168
|
icon: /* @__PURE__ */ Z(No, {
|
|
69138
|
-
count:
|
|
69169
|
+
count: I,
|
|
69139
69170
|
size: "small",
|
|
69140
69171
|
offset: [4, -4],
|
|
69141
69172
|
children: /* @__PURE__ */ Z(Qs, {})
|
|
@@ -69149,9 +69180,9 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69149
69180
|
className: "cc-filter-rail__head",
|
|
69150
69181
|
children: [/* @__PURE__ */ Q("span", {
|
|
69151
69182
|
className: "cc-filter-rail__title",
|
|
69152
|
-
children: [a,
|
|
69183
|
+
children: [a, I > 0 && /* @__PURE__ */ Z("span", {
|
|
69153
69184
|
className: "cc-filter-rail__count",
|
|
69154
|
-
children:
|
|
69185
|
+
children: I
|
|
69155
69186
|
})]
|
|
69156
69187
|
}), /* @__PURE__ */ Q("span", {
|
|
69157
69188
|
className: "cc-filter-rail__head-actions",
|
|
@@ -69159,7 +69190,7 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69159
69190
|
type: "link",
|
|
69160
69191
|
size: "small",
|
|
69161
69192
|
onClick: P,
|
|
69162
|
-
disabled:
|
|
69193
|
+
disabled: I === 0 && Object.keys(C).length === 0,
|
|
69163
69194
|
children: "Clear All"
|
|
69164
69195
|
}), c && /* @__PURE__ */ Z(J, {
|
|
69165
69196
|
title: `Hide ${a.toLowerCase()}`,
|
|
@@ -69203,7 +69234,7 @@ function sY({ moduleName: e, scope: t = "", scopeConditions: n = aY, value: r =
|
|
|
69203
69234
|
type: "button",
|
|
69204
69235
|
className: "cc-filter-section__toggle",
|
|
69205
69236
|
"aria-expanded": n,
|
|
69206
|
-
onClick: () =>
|
|
69237
|
+
onClick: () => ae(e.key),
|
|
69207
69238
|
children: [/* @__PURE__ */ Q("span", {
|
|
69208
69239
|
className: "cc-filter-section__label",
|
|
69209
69240
|
children: [e.label, r && /* @__PURE__ */ Z("span", {
|
|
@@ -70010,7 +70041,7 @@ function YY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
|
|
|
70010
70041
|
M,
|
|
70011
70042
|
x
|
|
70012
70043
|
]);
|
|
70013
|
-
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(() => {
|
|
70014
70045
|
let e = JSON.parse(P), t = VY(e), r = t.find((e) => e.key === F) ?? t[0] ?? null;
|
|
70015
70046
|
return {
|
|
70016
70047
|
relation: BY(e, r),
|
|
@@ -70028,7 +70059,7 @@ function YY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
|
|
|
70028
70059
|
F,
|
|
70029
70060
|
n,
|
|
70030
70061
|
g
|
|
70031
|
-
]), { counts:
|
|
70062
|
+
]), { counts: ae } = qY(S && ee ? ie : JY, i, m), I = wo((e) => {
|
|
70032
70063
|
D(null), x((t) => {
|
|
70033
70064
|
let n = _Y(t, 1);
|
|
70034
70065
|
return n.set("sub", e), n;
|
|
@@ -70192,11 +70223,11 @@ function YY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
|
|
|
70192
70223
|
"aria-label": `${a ?? n} sections`,
|
|
70193
70224
|
value: re,
|
|
70194
70225
|
onChange: (e) => {
|
|
70195
|
-
e !== re &&
|
|
70226
|
+
e !== re && I(String(e));
|
|
70196
70227
|
},
|
|
70197
70228
|
style: { marginBottom: 12 },
|
|
70198
70229
|
options: ne.map((e) => {
|
|
70199
|
-
let t =
|
|
70230
|
+
let t = ae[e.key];
|
|
70200
70231
|
return {
|
|
70201
70232
|
value: e.key,
|
|
70202
70233
|
label: /* @__PURE__ */ Q(Wo, {
|
|
@@ -71179,7 +71210,7 @@ function RX({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
71179
71210
|
key: "__none",
|
|
71180
71211
|
label: p,
|
|
71181
71212
|
disabled: !0
|
|
71182
|
-
}],
|
|
71213
|
+
}], ie = R(() => ({
|
|
71183
71214
|
listComponent: m,
|
|
71184
71215
|
listPropsFor: h,
|
|
71185
71216
|
renderQuickView: g,
|
|
@@ -71199,46 +71230,46 @@ function RX({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
71199
71230
|
y,
|
|
71200
71231
|
b,
|
|
71201
71232
|
A
|
|
71202
|
-
]),
|
|
71203
|
-
if (typeof
|
|
71233
|
+
]), ae = c.find((e) => e.key === A) ?? null, I = null;
|
|
71234
|
+
if (typeof ae?.render == "function") I = ae.render({
|
|
71204
71235
|
id: t,
|
|
71205
71236
|
moduleName: e,
|
|
71206
71237
|
refreshKey: v
|
|
71207
71238
|
});
|
|
71208
|
-
else if (
|
|
71209
|
-
let n =
|
|
71210
|
-
|
|
71239
|
+
else if (ae?.component) {
|
|
71240
|
+
let n = ae.component;
|
|
71241
|
+
I = /* @__PURE__ */ Z(n, {
|
|
71211
71242
|
id: t,
|
|
71212
71243
|
moduleName: e,
|
|
71213
71244
|
refreshKey: v
|
|
71214
71245
|
});
|
|
71215
|
-
} else
|
|
71246
|
+
} else ae?.type === "overview" ? I = /* @__PURE__ */ Z(PX, {
|
|
71216
71247
|
tabs: M,
|
|
71217
71248
|
parentId: t,
|
|
71218
|
-
title:
|
|
71249
|
+
title: ae.label,
|
|
71219
71250
|
refreshKey: v
|
|
71220
|
-
}) :
|
|
71221
|
-
tabKey:
|
|
71251
|
+
}) : ae?.module && (I = /* @__PURE__ */ Z(YY, {
|
|
71252
|
+
tabKey: ae.key,
|
|
71222
71253
|
active: !0,
|
|
71223
|
-
module:
|
|
71224
|
-
relation:
|
|
71254
|
+
module: ae.module,
|
|
71255
|
+
relation: ae.relation,
|
|
71225
71256
|
parentId: t,
|
|
71226
|
-
title:
|
|
71227
|
-
showRail:
|
|
71228
|
-
railMode:
|
|
71229
|
-
quickViewMode:
|
|
71230
|
-
...
|
|
71231
|
-
...
|
|
71232
|
-
listComponent:
|
|
71233
|
-
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,
|
|
71234
71265
|
renderQuickView: g,
|
|
71235
71266
|
onOpenRecord: _,
|
|
71236
71267
|
refreshKey: v,
|
|
71237
|
-
...typeof
|
|
71238
|
-
...
|
|
71239
|
-
},
|
|
71268
|
+
...typeof ae.fetch == "function" ? { fetchData: ae.fetch } : {},
|
|
71269
|
+
...ae.recordLinks ? { recordLinks: ae.recordLinks } : {}
|
|
71270
|
+
}, ae.key));
|
|
71240
71271
|
return /* @__PURE__ */ Z(FX.Provider, {
|
|
71241
|
-
value:
|
|
71272
|
+
value: ie,
|
|
71242
71273
|
children: /* @__PURE__ */ Q("div", {
|
|
71243
71274
|
className: `rh-hub ${C}`.trim(),
|
|
71244
71275
|
"data-module": e,
|
|
@@ -71310,8 +71341,8 @@ function RX({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
|
|
|
71310
71341
|
/* @__PURE__ */ Z("section", {
|
|
71311
71342
|
className: "rh-hub__body",
|
|
71312
71343
|
role: "tabpanel",
|
|
71313
|
-
"aria-label":
|
|
71314
|
-
children:
|
|
71344
|
+
"aria-label": ae?.label,
|
|
71345
|
+
children: I
|
|
71315
71346
|
})
|
|
71316
71347
|
]
|
|
71317
71348
|
})
|
|
@@ -71905,18 +71936,18 @@ function sZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
71905
71936
|
});
|
|
71906
71937
|
return t.observe(e), () => t.disconnect();
|
|
71907
71938
|
}, [v, y]);
|
|
71908
|
-
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]));
|
|
71909
71940
|
se.has(ne) || ce(/* @__PURE__ */ new Set([...se, ne]));
|
|
71910
71941
|
let le = R(() => iC(e)?.tabs ?? iZ, [e]), ue = R(() => D.length ? [...le, ...D] : le, [le, D]), de = Pb(ue, {
|
|
71911
71942
|
id: t,
|
|
71912
71943
|
moduleName: e,
|
|
71913
|
-
record:
|
|
71944
|
+
record: I
|
|
71914
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) => {
|
|
71915
71946
|
let n = new URLSearchParams(F);
|
|
71916
71947
|
n.set("tab", e), te(n, { replace: !0 }), _?.(e, t);
|
|
71917
71948
|
}, he = (e) => {
|
|
71918
71949
|
oe(e), h?.(e);
|
|
71919
|
-
}, ge = u + re, _e = () =>
|
|
71950
|
+
}, ge = u + re, _e = () => ae((e) => e + 1), ve = ne === "details" || !fe(ne) || !pe(ne), ye = C === "below";
|
|
71920
71951
|
return /* @__PURE__ */ Q("div", {
|
|
71921
71952
|
ref: k,
|
|
71922
71953
|
className: `cc-detail${P ? " cc-detail--stacked" : ""}${ye ? " cc-detail--tabs-below" : ""}`,
|
|
@@ -71998,7 +72029,7 @@ function sZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
71998
72029
|
children: /* @__PURE__ */ Z(ES, {
|
|
71999
72030
|
moduleName: e,
|
|
72000
72031
|
id: t,
|
|
72001
|
-
refreshKey:
|
|
72032
|
+
refreshKey: ie + ge,
|
|
72002
72033
|
onDescriptionSaved: _e
|
|
72003
72034
|
})
|
|
72004
72035
|
}), /* @__PURE__ */ Z(V, {
|
|
@@ -72026,7 +72057,7 @@ function sZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
|
|
|
72026
72057
|
id: t,
|
|
72027
72058
|
moduleName: e,
|
|
72028
72059
|
onDescriptionSaved: _e,
|
|
72029
|
-
record:
|
|
72060
|
+
record: I
|
|
72030
72061
|
})
|
|
72031
72062
|
}, n) : null;
|
|
72032
72063
|
})
|
|
@@ -72495,15 +72526,15 @@ function nQ() {
|
|
|
72495
72526
|
}
|
|
72496
72527
|
}
|
|
72497
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 }) {
|
|
72498
|
-
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({
|
|
72499
72530
|
topics: N ? [wZ(e, N)] : QZ,
|
|
72500
72531
|
enabled: !!N
|
|
72501
72532
|
}), pe = KZ({
|
|
72502
72533
|
topics: N ? [...d, wZ(e, N)] : QZ,
|
|
72503
72534
|
enabled: !!N
|
|
72504
72535
|
}), me = HZ(), { fetchData: he, loading: ge } = mY({
|
|
72505
|
-
filters:
|
|
72506
|
-
search:
|
|
72536
|
+
filters: I,
|
|
72537
|
+
search: ie,
|
|
72507
72538
|
refreshTick: de.tick + ce
|
|
72508
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;
|
|
72509
72540
|
L(() => {
|
|
@@ -72547,11 +72578,11 @@ function rQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
72547
72578
|
resetPage: !0
|
|
72548
72579
|
});
|
|
72549
72580
|
}, [Ce]), Ae = wo((e) => {
|
|
72550
|
-
eY(e) !== eY(
|
|
72581
|
+
eY(e) !== eY(I) && Ce((t) => {
|
|
72551
72582
|
let n = rY(e);
|
|
72552
72583
|
n ? t.set(JZ, n) : t.delete(JZ);
|
|
72553
72584
|
}, { resetPage: !0 });
|
|
72554
|
-
}, [
|
|
72585
|
+
}, [I, Ce]), je = wo((e) => {
|
|
72555
72586
|
if (!M) return;
|
|
72556
72587
|
let t = a.find((t) => t.toLowerCase() === String(e ?? "").trim().toLowerCase());
|
|
72557
72588
|
if (!t || t === ee) return;
|
|
@@ -72709,7 +72740,7 @@ function rQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
72709
72740
|
railCollapsed: ne,
|
|
72710
72741
|
topBar: F && !b || !F && D ? null : /* @__PURE__ */ Z(YX, {
|
|
72711
72742
|
title: r,
|
|
72712
|
-
searchValue:
|
|
72743
|
+
searchValue: ie,
|
|
72713
72744
|
onSearch: ke,
|
|
72714
72745
|
searchPlaceholder: c,
|
|
72715
72746
|
showSearch: x,
|
|
@@ -72728,7 +72759,7 @@ function rQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
|
|
|
72728
72759
|
rail: T ? /* @__PURE__ */ Z(sY, {
|
|
72729
72760
|
moduleName: e,
|
|
72730
72761
|
scope: ee ?? "",
|
|
72731
|
-
value:
|
|
72762
|
+
value: I,
|
|
72732
72763
|
onChange: Ae,
|
|
72733
72764
|
collapsed: ne,
|
|
72734
72765
|
onExpand: () => re(!1),
|
|
@@ -73206,9 +73237,9 @@ async function EQ(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a
|
|
|
73206
73237
|
}
|
|
73207
73238
|
//#endregion
|
|
73208
73239
|
//#region src/index.js
|
|
73209
|
-
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-
|
|
73240
|
+
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-24T11:08:49.138Z");
|
|
73210
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);
|
|
73211
73242
|
//#endregion
|
|
73212
|
-
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 };
|
|
73213
73244
|
|
|
73214
73245
|
//# sourceMappingURL=index.js.map
|