@realtek/core-theme-live 0.0.455 → 0.0.457
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/{LinkedRecordFileField-6mf81qoS.cjs → LinkedRecordFileField-BFYJ7iq4.cjs} +3 -3
- package/dist-lib/LinkedRecordFileField-BFYJ7iq4.cjs.map +1 -0
- package/dist-lib/{LinkedRecordFileField-4vCdXlj4.js → LinkedRecordFileField-xEwVhxMI.js} +97 -60
- package/dist-lib/LinkedRecordFileField-xEwVhxMI.js.map +1 -0
- package/dist-lib/addFormApi-By5dbbwN.cjs +2 -0
- package/dist-lib/addFormApi-By5dbbwN.cjs.map +1 -0
- package/dist-lib/{addFormApi-DBeQrNX1.js → addFormApi-p8S8wcUu.js} +16 -9
- package/dist-lib/addFormApi-p8S8wcUu.js.map +1 -0
- package/dist-lib/index.cjs +5 -5
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +427 -396
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
- package/dist-lib/LinkedRecordFileField-4vCdXlj4.js.map +0 -1
- package/dist-lib/LinkedRecordFileField-6mf81qoS.cjs.map +0 -1
- package/dist-lib/addFormApi-DBeQrNX1.js.map +0 -1
- package/dist-lib/addFormApi-DLfsOijp.cjs +0 -2
- package/dist-lib/addFormApi-DLfsOijp.cjs.map +0 -1
package/dist-lib/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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, O as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, j as _, k as v, l as y, m as b, o as x, p as S, r as C, s as w, t as T, u as E, v as D, w as O, x as k, y as A } from "./authApi-Dsc4NnFr.js";
|
|
3
|
-
import { $ as j, $i as M, $n as ee, $r as N, $t as te, A as P, Ai as ne, An as F, Ar as re, At as ie, B as ae, Bi as oe, Bn as se, Br as ce, Bt as le, C as ue, Ci as de, Cn as fe, Cr as pe, Ct as me, D as he, Di as ge, Dn as _e, Dr as ve, Dt as ye, E as be, Ei as xe, En as Se, Er as Ce, Et as we, F as Te, Fi as Ee, Fn as De, Fr as Oe, Ft as ke, G as Ae, Gi as je, Gn as Me, Gr as Ne, Gt as Pe, H as Fe, Hi as Ie, Hn as Le, Hr as Re, Ht as ze, I as Be, Ii as Ve, Ir as He, It as Ue, J as We, Ji as Ge, Jn as Ke, Jr as qe, Jt as Je, K as Ye, Ki as Xe, Kn as Ze, Kr as Qe, Kt as $e, L as et, Li as tt, Ln as nt, Lr as rt, Lt as it, M as at, Mi as ot, Mn as st, Mr as ct, Mt as lt, N as ut, Ni as dt, Nn as ft, Nr as pt, Nt as mt, O as ht, Oi as gt, On as _t, Or as vt, Ot as yt, P as bt, Pi as xt, Pn as St, Pr as Ct, Pt as wt, Q as Tt, Qi as Et, Qn as Dt, Qr as Ot, Qt as kt, R as At, Ri as jt, Rn as Mt, Rr as Nt, Rt as Pt, S as Ft, Si as It, Sn as Lt, Sr as Rt, St as zt, T as Bt, Ti as Vt, Tn as Ht, Tr as Ut, Tt as Wt, U as Gt, Ui as Kt, Un as qt, Ur as Jt, Ut as Yt, V as Xt, Vi as Zt, Vn as Qt, Vr as $t, Vt as en, W as tn, Wi as nn, Wn as rn, Wr as an, Wt as on, X as sn, Xi as cn, Xn as ln, Xr as un, Xt as dn, Y as fn, Yi as pn, Yn as mn, Yr as hn, Yt as gn, Z as _n, Zi as vn, Zn as yn, Zr as bn, Zt as xn, _ as Sn, _a as Cn, _i as wn, _n as Tn, _r as En, _t as Dn, a as On, aa as kn, ai as An, an as jn, ar as Mn, at as Nn, b as Pn, ba as Fn, bi as In, bn as Ln, br as Rn, bt as zn, c as Bn, ca as Vn, ci as Hn, cn as Un, cr as Wn, ct as Gn, d as Kn, da as qn, di as Jn, dn as Yn, dr as Xn, dt as Zn, ea as Qn, ei as $n, en as er, er as tr, et as nr, f as rr, fa as ir, fi as ar, fn as or, fr as sr, ft as cr, g as lr, ga as ur, gi as dr, gn as fr, gr as pr, gt as mr, h as hr, ha as gr, hi as _r, hn as vr, hr as yr, ht as br, i as xr, ia as Sr, ii as Cr, in as wr, ir as Tr, it as Er, j as Dr, ji as Or, jn as kr, jr as Ar, jt as jr, k as Mr, ki as Nr, kn as Pr, kr as Fr, kt as Ir, l as Lr, la as Rr, li as zr, ln as Br, lr as Vr, lt as Hr, m as Ur, ma as Wr, mi as Gr, mn as Kr, mr as qr, mt as Jr, n as Yr, na as Xr, ni as Zr, nn as Qr, nr as $r, nt as ei, o as ti, oa as ni, oi as ri, on as ii, or as ai, ot as oi, p as si, pa as ci, pi as li, pn as ui, pr as di, pt as fi, q as pi, qi as mi, qn as hi, qr as gi, qt as _i, r as vi, ra as yi, ri as bi, rn as xi, rr as Si, rt as Ci, s as wi, sa as Ti, si as Ei, sn as Di, sr as Oi, st as ki, t as Ai, ta as ji, ti as Mi, tn as Ni, tr as Pi, tt as Fi, u as Ii, ua as Li, ui as Ri, un as zi, ur as Bi, ut as Vi, v as Hi, va as Ui, vi as Wi, vn as Gi, vr as Ki, vt as qi, w as Ji, wi as Yi, wn as Xi, wr as Zi, wt as Qi, x as $i, xa as ea, xi as ta, xn as na, xr as ra, xt as ia, y as aa, ya as oa, yi as sa, yn as ca, yr as la, yt as ua, z as da, zi as fa, zn as pa, zr as ma, zt as ha } from "./LinkedRecordFileField-
|
|
3
|
+
import { $ as j, $i as M, $n as ee, $r as N, $t as te, A as P, Ai as ne, An as F, Ar as re, At as ie, B as ae, Bi as oe, Bn as se, Br as ce, Bt as le, C as ue, Ci as de, Cn as fe, Cr as pe, Ct as me, D as he, Di as ge, Dn as _e, Dr as ve, Dt as ye, E as be, Ei as xe, En as Se, Er as Ce, Et as we, F as Te, Fi as Ee, Fn as De, Fr as Oe, Ft as ke, G as Ae, Gi as je, Gn as Me, Gr as Ne, Gt as Pe, H as Fe, Hi as Ie, Hn as Le, Hr as Re, Ht as ze, I as Be, Ii as Ve, Ir as He, It as Ue, J as We, Ji as Ge, Jn as Ke, Jr as qe, Jt as Je, K as Ye, Ki as Xe, Kn as Ze, Kr as Qe, Kt as $e, L as et, Li as tt, Ln as nt, Lr as rt, Lt as it, M as at, Mi as ot, Mn as st, Mr as ct, Mt as lt, N as ut, Ni as dt, Nn as ft, Nr as pt, Nt as mt, O as ht, Oi as gt, On as _t, Or as vt, Ot as yt, P as bt, Pi as xt, Pn as St, Pr as Ct, Pt as wt, Q as Tt, Qi as Et, Qn as Dt, Qr as Ot, Qt as kt, R as At, Ri as jt, Rn as Mt, Rr as Nt, Rt as Pt, S as Ft, Si as It, Sn as Lt, Sr as Rt, St as zt, T as Bt, Ti as Vt, Tn as Ht, Tr as Ut, Tt as Wt, U as Gt, Ui as Kt, Un as qt, Ur as Jt, Ut as Yt, V as Xt, Vi as Zt, Vn as Qt, Vr as $t, Vt as en, W as tn, Wi as nn, Wn as rn, Wr as an, Wt as on, X as sn, Xi as cn, Xn as ln, Xr as un, Xt as dn, Y as fn, Yi as pn, Yn as mn, Yr as hn, Yt as gn, Z as _n, Zi as vn, Zn as yn, Zr as bn, Zt as xn, _ as Sn, _a as Cn, _i as wn, _n as Tn, _r as En, _t as Dn, a as On, aa as kn, ai as An, an as jn, ar as Mn, at as Nn, b as Pn, ba as Fn, bi as In, bn as Ln, br as Rn, bt as zn, c as Bn, ca as Vn, ci as Hn, cn as Un, cr as Wn, ct as Gn, d as Kn, da as qn, di as Jn, dn as Yn, dr as Xn, dt as Zn, ea as Qn, ei as $n, en as er, er as tr, et as nr, f as rr, fa as ir, fi as ar, fn as or, fr as sr, ft as cr, g as lr, ga as ur, gi as dr, gn as fr, gr as pr, gt as mr, h as hr, ha as gr, hi as _r, hn as vr, hr as yr, ht as br, i as xr, ia as Sr, ii as Cr, in as wr, ir as Tr, it as Er, j as Dr, ji as Or, jn as kr, jr as Ar, jt as jr, k as Mr, ki as Nr, kn as Pr, kr as Fr, kt as Ir, l as Lr, la as Rr, li as zr, ln as Br, lr as Vr, lt as Hr, m as Ur, ma as Wr, mi as Gr, mn as Kr, mr as qr, mt as Jr, n as Yr, na as Xr, ni as Zr, nn as Qr, nr as $r, nt as ei, o as ti, oa as ni, oi as ri, on as ii, or as ai, ot as oi, p as si, pa as ci, pi as li, pn as ui, pr as di, pt as fi, q as pi, qi as mi, qn as hi, qr as gi, qt as _i, r as vi, ra as yi, ri as bi, rn as xi, rr as Si, rt as Ci, s as wi, sa as Ti, si as Ei, sn as Di, sr as Oi, st as ki, t as Ai, ta as ji, ti as Mi, tn as Ni, tr as Pi, tt as Fi, u as Ii, ua as Li, ui as Ri, un as zi, ur as Bi, ut as Vi, v as Hi, va as Ui, vi as Wi, vn as Gi, vr as Ki, vt as qi, w as Ji, wi as Yi, wn as Xi, wr as Zi, wt as Qi, x as $i, xa as ea, xi as ta, xn as na, xr as ra, xt as ia, y as aa, ya as oa, yi as sa, yn as ca, yr as la, yt as ua, z as da, zi as fa, zn as pa, zr as ma, zt as ha } from "./LinkedRecordFileField-xEwVhxMI.js";
|
|
4
4
|
import { t as ga } from "./DocumentViewer-DcgKxqov.js";
|
|
5
5
|
import { r as _a } from "./diceCandidateMapper-DqBO4EhL.js";
|
|
6
6
|
import { t as va } from "./formGroupsCache-JeC59oNe.js";
|
|
7
|
-
import { n as ya, r as ba } from "./addFormApi-
|
|
7
|
+
import { n as ya, r as ba } from "./addFormApi-p8S8wcUu.js";
|
|
8
8
|
import xa, { Fragment as Sa, createContext as Ca, createElement as wa, forwardRef as Ta, useCallback as Ea, useContext as Da, useEffect as I, useId as Oa, useImperativeHandle as ka, useMemo as L, useRef as Aa, useState as R } from "react";
|
|
9
9
|
import { Alert as ja, AutoComplete as Ma, Avatar as Na, Badge as Pa, Breadcrumb as Fa, Button as z, Card as Ia, Checkbox as La, Col as B, Collapse as Ra, DatePicker as za, Divider as Ba, Drawer as Va, Dropdown as Ha, Empty as Ua, Flex as Wa, Form as V, Input as H, InputNumber as Ga, Layout as Ka, Mentions as qa, Menu as Ja, Modal as Ya, Pagination as Xa, Popconfirm as Za, Popover as Qa, Progress as $a, Radio as eo, Result as to, Row as no, Select as U, Skeleton as ro, Slider as io, Space as W, Spin as ao, Statistic as oo, Steps as so, Switch as G, Table as co, Tabs as lo, Tag as K, TimePicker as uo, Tooltip as q, Tree as fo, Typography as po, Upload as mo, message as J } from "antd";
|
|
10
10
|
import { AimOutlined as ho, ApartmentOutlined as go, ApiOutlined as _o, AppstoreAddOutlined as vo, AppstoreOutlined as yo, ArrowDownOutlined as bo, ArrowLeftOutlined as xo, ArrowUpOutlined as So, AuditOutlined as Co, BankOutlined as wo, BellOutlined as To, BgColorsOutlined as Eo, BuildOutlined as Do, CalendarOutlined as Oo, CaretDownOutlined as ko, CaretUpOutlined as Ao, CheckCircleFilled as jo, CheckCircleOutlined as Mo, CheckOutlined as No, ClearOutlined as Po, ClockCircleOutlined as Fo, CloseCircleFilled as Io, CloseCircleOutlined as Lo, CloseOutlined as Ro, CloudDownloadOutlined as zo, CloudUploadOutlined as Bo, CopyOutlined as Vo, CrownOutlined as Ho, DashboardOutlined as Uo, DatabaseOutlined as Wo, DeleteOutlined as Go, DollarCircleFilled as Ko, DollarOutlined as qo, DownOutlined as Jo, DownloadOutlined as Yo, EditOutlined as Xo, EnvironmentOutlined as Zo, ExclamationCircleFilled as Qo, ExclamationCircleOutlined as $o, ExportOutlined as es, EyeOutlined as ts, FieldTimeOutlined as ns, FileDoneOutlined as rs, FileExcelOutlined as is, FileImageOutlined as as, FileOutlined as os, FilePdfOutlined as ss, FileTextFilled as cs, FileTextOutlined as ls, FileWordOutlined as us, FilterOutlined as ds, GlobalOutlined as fs, HistoryOutlined as ps, HolderOutlined as ms, HomeOutlined as hs, IdcardOutlined as gs, InboxOutlined as _s, InfoCircleOutlined as vs, KeyOutlined as ys, LaptopOutlined as bs, LeftOutlined as xs, LinkOutlined as Ss, LinkedinFilled as Cs, LockOutlined as ws, LogoutOutlined as Ts, MailOutlined as Es, MenuOutlined as Ds, MergeCellsOutlined as Os, MessageOutlined as ks, MinusCircleOutlined as As, MoreOutlined as js, PaperClipOutlined as Ms, PhoneOutlined as Ns, PlayCircleOutlined as Ps, PlusOutlined as Fs, ProfileOutlined as Is, ProjectOutlined as Ls, RedoOutlined as Rs, ReloadOutlined as zs, RestOutlined as Bs, RightOutlined as Vs, RiseOutlined as Hs, SafetyCertificateOutlined as Us, SafetyOutlined as Ws, SaveOutlined as Gs, SearchOutlined as Ks, SendOutlined as qs, SettingOutlined as Js, ShareAltOutlined as Ys, SnippetsOutlined as Xs, SolutionOutlined as Zs, StarFilled as Qs, StarOutlined as $s, SwapOutlined as ec, SyncOutlined as tc, TableOutlined as nc, TagsOutlined as rc, TeamOutlined as ic, ThunderboltOutlined as ac, ToolOutlined as oc, UndoOutlined as sc, UnlockOutlined as cc, UnorderedListOutlined as lc, UpOutlined as uc, UploadOutlined as dc, UserAddOutlined as fc, UserOutlined as pc, UserSwitchOutlined as mc, WarningOutlined as hc } from "@ant-design/icons";
|
|
@@ -8054,7 +8054,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8054
8054
|
getValues: () => F.getFieldsValue(!0),
|
|
8055
8055
|
reset: () => F.resetFields()
|
|
8056
8056
|
}), [F]);
|
|
8057
|
-
let ce = V.useWatch([], F), [le, ue] = R(!1), [de, pe] = R({}), [me, he] = R([]), [ge, ve] = R(null), [be, xe] = R(!!e), [Ce, we] = R(""), [Te, De] = R(""), [Oe, ke] = R(!1), [je, Me] = R({
|
|
8057
|
+
let ce = V.useWatch([], F), [le, ue] = R(!1), [de, pe] = R({}), [me, he] = R([]), [ge, ve] = R(null), [be, xe] = R(!!e), [Ce, we] = R(""), [Te, De] = R(""), [Oe, ke] = R(!1), [je, Me] = R(""), [Ne, Pe] = R({
|
|
8058
8058
|
searched: !1,
|
|
8059
8059
|
rows: [],
|
|
8060
8060
|
total: 0,
|
|
@@ -8062,20 +8062,20 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8062
8062
|
actions: [],
|
|
8063
8063
|
actionRules: [],
|
|
8064
8064
|
loading: !1
|
|
8065
|
-
}), [
|
|
8065
|
+
}), [Ie, Le] = R({
|
|
8066
8066
|
current: 1,
|
|
8067
8067
|
pageSize: 10
|
|
8068
|
-
}), [
|
|
8068
|
+
}), [Re, ze] = R({}), [Ve, He] = R("internal"), [Ue, We] = R([]), [qe, Je] = R({}), [Ye, Xe] = R([]), [Ze, Qe] = R(r ?? ""), [$e, tt] = R(i ?? ""), [nt, rt] = R(null), [it, at] = R(!1), ot = Aa(!1), ct = Aa(null), lt = Aa(!1), [ut, dt] = R(null), [mt, ht] = R(() => /* @__PURE__ */ new Map()), gt = e ? me : a ?? $g, vt = e ? be : o, yt = e ? Ce : s, [xt, St] = R(""), wt = P?.jobId && P.jobId !== "_" ? P.jobId : ne.get("jobId") || "";
|
|
8069
8069
|
I(() => {
|
|
8070
|
-
if (S || r || _ || !
|
|
8070
|
+
if (S || r || _ || !wt) return;
|
|
8071
8071
|
let e = !1;
|
|
8072
8072
|
return (async () => {
|
|
8073
8073
|
try {
|
|
8074
8074
|
let t = x_(y_(await ba({
|
|
8075
8075
|
module: "jobs",
|
|
8076
|
-
id:
|
|
8076
|
+
id: wt
|
|
8077
8077
|
}))) ?? {}, n = t.clientId ?? t.client ?? "", r = n && typeof n == "object" ? n.id ?? n.value ?? "" : n;
|
|
8078
|
-
!e && r &&
|
|
8078
|
+
!e && r && St(String(r));
|
|
8079
8079
|
} catch (e) {
|
|
8080
8080
|
console.error("Client-scope resolve from job failed:", e);
|
|
8081
8081
|
}
|
|
@@ -8086,13 +8086,13 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8086
8086
|
S,
|
|
8087
8087
|
r,
|
|
8088
8088
|
_,
|
|
8089
|
-
|
|
8089
|
+
wt
|
|
8090
8090
|
]);
|
|
8091
|
-
let
|
|
8091
|
+
let Tt = r || _ || xt || Ze, Et = i || $e, [, Dt] = R(0);
|
|
8092
8092
|
I(() => {
|
|
8093
8093
|
let e = !0;
|
|
8094
8094
|
return Ct().then(() => {
|
|
8095
|
-
e &&
|
|
8095
|
+
e && Dt((e) => e + 1);
|
|
8096
8096
|
}), () => {
|
|
8097
8097
|
e = !1;
|
|
8098
8098
|
};
|
|
@@ -8101,16 +8101,16 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8101
8101
|
return queueMicrotask(() => {
|
|
8102
8102
|
if (!t) {
|
|
8103
8103
|
if (!e) {
|
|
8104
|
-
|
|
8104
|
+
dt(null);
|
|
8105
8105
|
return;
|
|
8106
8106
|
}
|
|
8107
8107
|
jt({ roleId: localStorage.getItem("roleId") }, e, {
|
|
8108
|
-
clientId:
|
|
8109
|
-
region:
|
|
8108
|
+
clientId: Tt,
|
|
8109
|
+
region: Et
|
|
8110
8110
|
}).then((e) => {
|
|
8111
|
-
t ||
|
|
8111
|
+
t || dt(Array.isArray(e) && e.length ? e : null);
|
|
8112
8112
|
}).catch(() => {
|
|
8113
|
-
t ||
|
|
8113
|
+
t || dt(null);
|
|
8114
8114
|
});
|
|
8115
8115
|
}
|
|
8116
8116
|
}), () => {
|
|
@@ -8118,52 +8118,52 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8118
8118
|
};
|
|
8119
8119
|
}, [
|
|
8120
8120
|
e,
|
|
8121
|
-
|
|
8122
|
-
|
|
8121
|
+
Tt,
|
|
8122
|
+
Et
|
|
8123
8123
|
]), I(() => {
|
|
8124
8124
|
let t = !1;
|
|
8125
8125
|
return queueMicrotask(() => {
|
|
8126
8126
|
if (!t) {
|
|
8127
8127
|
if (!e) {
|
|
8128
|
-
|
|
8128
|
+
ht(/* @__PURE__ */ new Map());
|
|
8129
8129
|
return;
|
|
8130
8130
|
}
|
|
8131
8131
|
Ee(e).then((e) => {
|
|
8132
|
-
t ||
|
|
8132
|
+
t || ht(Ge(e));
|
|
8133
8133
|
}).catch(() => {
|
|
8134
|
-
t ||
|
|
8134
|
+
t || ht(/* @__PURE__ */ new Map());
|
|
8135
8135
|
});
|
|
8136
8136
|
}
|
|
8137
8137
|
}), () => {
|
|
8138
8138
|
t = !0;
|
|
8139
8139
|
};
|
|
8140
8140
|
}, [e]);
|
|
8141
|
-
let
|
|
8142
|
-
|
|
8141
|
+
let Ot = L(() => b_(gt, e, ut, mt), [
|
|
8142
|
+
gt,
|
|
8143
8143
|
e,
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
]), [
|
|
8144
|
+
ut,
|
|
8145
|
+
mt
|
|
8146
|
+
]), [Nt, Ft] = R(0), It = L(() => kt({
|
|
8147
8147
|
checkFieldUnique: on,
|
|
8148
|
-
onPendingChange:
|
|
8149
|
-
}), []),
|
|
8150
|
-
checker:
|
|
8148
|
+
onPendingChange: Ft
|
|
8149
|
+
}), []), Rt = L(() => k ? void 0 : {
|
|
8150
|
+
checker: It,
|
|
8151
8151
|
module: e,
|
|
8152
|
-
clientId:
|
|
8153
|
-
region:
|
|
8152
|
+
clientId: Tt || void 0,
|
|
8153
|
+
region: Et || void 0
|
|
8154
8154
|
}, [
|
|
8155
8155
|
k,
|
|
8156
|
-
|
|
8156
|
+
It,
|
|
8157
8157
|
e,
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
]),
|
|
8158
|
+
Tt,
|
|
8159
|
+
Et
|
|
8160
|
+
]), zt = L(() => xn(Ot), [Ot]), Bt = L(() => Lt(Ot), [Ot]), Vt = Aa({}), Ut = Aa(null), Wt = Aa(!1), Kt = L(() => Ot.flatMap((e) => e.formActions ?? []), [Ot]), qt = L(() => y_(gt).find((e) => e?.duplicateCheck)?.duplicateCheck ?? {}, [gt]), Jt = dd({
|
|
8161
8161
|
form: F,
|
|
8162
8162
|
moduleName: e,
|
|
8163
|
-
config:
|
|
8163
|
+
config: qt,
|
|
8164
8164
|
onUseExisting: Ea((t, n, r, i) => {
|
|
8165
8165
|
if (!t) return;
|
|
8166
|
-
let a = n?.editRoute ||
|
|
8166
|
+
let a = n?.editRoute || qt?.editRoute;
|
|
8167
8167
|
if (!a) {
|
|
8168
8168
|
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".`);
|
|
8169
8169
|
return;
|
|
@@ -8173,24 +8173,24 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8173
8173
|
fromDuplicate: !0,
|
|
8174
8174
|
carryFiles: i?.files ?? null
|
|
8175
8175
|
} });
|
|
8176
|
-
}, [
|
|
8177
|
-
}), [
|
|
8176
|
+
}, [qt, j])
|
|
8177
|
+
}), [Yt, Zt] = R(null), Qt = Di({
|
|
8178
8178
|
form: F,
|
|
8179
|
-
groups:
|
|
8179
|
+
groups: Ot,
|
|
8180
8180
|
module: e,
|
|
8181
8181
|
onParsed: Ea(async ({ field: e, payload: t }) => {
|
|
8182
|
-
let n = e?.field, r = n ? { files: { [n]: F.getFieldValue(n) } } : null, i = await
|
|
8182
|
+
let n = e?.field, r = n ? { files: { [n]: F.getFieldValue(n) } } : null, i = await Jt.prompt({
|
|
8183
8183
|
reason: "upload",
|
|
8184
8184
|
payload: t,
|
|
8185
8185
|
carry: r
|
|
8186
8186
|
});
|
|
8187
8187
|
return i === "clear" || i === "addNew" || (n && (F.setFieldValue(n, []), J.info(i === "existing" ? "Résumé moved to their record." : "Résumé removed — nothing on this form was filled in.")), "abort");
|
|
8188
|
-
}, [
|
|
8188
|
+
}, [Jt, F]),
|
|
8189
8189
|
onApplied: Ea(async () => {
|
|
8190
|
-
await
|
|
8191
|
-
}, [
|
|
8192
|
-
}),
|
|
8193
|
-
let t = pt().region, n =
|
|
8190
|
+
await Jt.prompt({ reason: "upload" });
|
|
8191
|
+
}, [Jt])
|
|
8192
|
+
}), $t = Ea((e) => {
|
|
8193
|
+
let t = pt().region, n = Ot.find((t) => (t.fields ?? []).some((t) => t.field === e.field));
|
|
8194
8194
|
if (!n) return !1;
|
|
8195
8195
|
let r = Fe(n, t), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
|
|
8196
8196
|
if (e.field !== i || Be(r)) return !1;
|
|
@@ -8208,16 +8208,16 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8208
8208
|
body: At(r),
|
|
8209
8209
|
okText: a ? "Got it" : "Keep it anyway"
|
|
8210
8210
|
}), a;
|
|
8211
|
-
}, [
|
|
8212
|
-
let n =
|
|
8211
|
+
}, [Ot]), en = Ea((e, t) => {
|
|
8212
|
+
let n = Ot.find((e) => e.name === t);
|
|
8213
8213
|
if (!n) return;
|
|
8214
8214
|
let r = Fe(n, pt().region), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
|
|
8215
8215
|
if (e.field !== i) return;
|
|
8216
8216
|
let a = bt(r);
|
|
8217
8217
|
return a ? [a] : void 0;
|
|
8218
|
-
}, [
|
|
8218
|
+
}, [Ot]), nn = Ea(async (e, t) => {
|
|
8219
8219
|
if (!Array.isArray(t) || t.length < 3 || typeof t[1] != "number") return;
|
|
8220
|
-
let n = t[0], r = t[1], i =
|
|
8220
|
+
let n = t[0], r = t[1], i = Ot.find((e) => e.name === n);
|
|
8221
8221
|
if (!i) return;
|
|
8222
8222
|
let a = Fe(i, pt().region);
|
|
8223
8223
|
if (!a.orderBy) return;
|
|
@@ -8227,7 +8227,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8227
8227
|
group: a,
|
|
8228
8228
|
rows: o,
|
|
8229
8229
|
rowIndex: r,
|
|
8230
|
-
move:
|
|
8230
|
+
move: Vt.current[n]?.move,
|
|
8231
8231
|
confirm: ({ title: e, body: t, okText: n, cancelText: r, from: i, to: a }) => Ln({
|
|
8232
8232
|
tone: "suggestion",
|
|
8233
8233
|
title: e,
|
|
@@ -8243,17 +8243,17 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8243
8243
|
cancelText: r
|
|
8244
8244
|
})
|
|
8245
8245
|
});
|
|
8246
|
-
}, [
|
|
8247
|
-
if (!
|
|
8248
|
-
|
|
8246
|
+
}, [Ot, F]), rn = Aa(!1), an = Ea(async () => {
|
|
8247
|
+
if (!rn.current) {
|
|
8248
|
+
rn.current = !0;
|
|
8249
8249
|
try {
|
|
8250
|
-
await
|
|
8250
|
+
await Jt.prompt({ reason: "blur" });
|
|
8251
8251
|
} finally {
|
|
8252
|
-
|
|
8252
|
+
rn.current = !1;
|
|
8253
8253
|
}
|
|
8254
8254
|
}
|
|
8255
|
-
}, [
|
|
8256
|
-
let e = y_(
|
|
8255
|
+
}, [Jt]), [sn, cn] = R("list"), ln = k && !G_(ce), { hasClientScope: un, clientGateMessage: dn, clientGateResetOnChange: fn } = L(() => {
|
|
8256
|
+
let e = y_(gt).flatMap((e) => e.fields ?? []).find((e) => n_(e.clientScope));
|
|
8257
8257
|
return e ? {
|
|
8258
8258
|
hasClientScope: !0,
|
|
8259
8259
|
clientGateMessage: e.clientGateMessage || "",
|
|
@@ -8263,32 +8263,32 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8263
8263
|
clientGateMessage: "",
|
|
8264
8264
|
clientGateResetOnChange: !1
|
|
8265
8265
|
};
|
|
8266
|
-
}, [
|
|
8267
|
-
if (
|
|
8266
|
+
}, [gt]), pn = (e) => {
|
|
8267
|
+
if (fn) {
|
|
8268
8268
|
F.resetFields();
|
|
8269
8269
|
let e = F.getFieldsValue(!0);
|
|
8270
|
-
F.setFieldsValue(Object.fromEntries(Object.keys(e).map((e) => [e, void 0]))),
|
|
8270
|
+
F.setFieldsValue(Object.fromEntries(Object.keys(e).map((e) => [e, void 0]))), Pe({
|
|
8271
8271
|
searched: !1,
|
|
8272
8272
|
rows: [],
|
|
8273
8273
|
total: 0,
|
|
8274
8274
|
fields: [],
|
|
8275
8275
|
loading: !1
|
|
8276
|
-
}),
|
|
8276
|
+
}), Le({
|
|
8277
8277
|
current: 1,
|
|
8278
8278
|
pageSize: 10
|
|
8279
8279
|
});
|
|
8280
8280
|
}
|
|
8281
|
-
|
|
8282
|
-
},
|
|
8281
|
+
Qe(e ?? "");
|
|
8282
|
+
}, mn = un && !Tt, hn = Ea(() => zr({ limit: 200 }).then(Xe).catch(() => Xe([])), []);
|
|
8283
8283
|
I(() => {
|
|
8284
|
-
!
|
|
8284
|
+
!un || _ || xt || hn();
|
|
8285
8285
|
}, [
|
|
8286
|
-
|
|
8286
|
+
un,
|
|
8287
8287
|
_,
|
|
8288
|
-
|
|
8289
|
-
|
|
8288
|
+
xt,
|
|
8289
|
+
hn
|
|
8290
8290
|
]);
|
|
8291
|
-
let
|
|
8291
|
+
let gn = ie({
|
|
8292
8292
|
field: {
|
|
8293
8293
|
field: "clientId",
|
|
8294
8294
|
quickCreate: !0,
|
|
@@ -8309,23 +8309,23 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8309
8309
|
name: "clientId",
|
|
8310
8310
|
moduleName: e,
|
|
8311
8311
|
scopeValues: {},
|
|
8312
|
-
ownValue:
|
|
8312
|
+
ownValue: Tt,
|
|
8313
8313
|
onDone: (e, t) => {
|
|
8314
|
-
|
|
8314
|
+
hn(), e === "create" && t != null && pn(String(t));
|
|
8315
8315
|
}
|
|
8316
8316
|
});
|
|
8317
8317
|
I(() => {
|
|
8318
8318
|
if (!e) return;
|
|
8319
8319
|
let n = !1;
|
|
8320
8320
|
async function r() {
|
|
8321
|
-
let r = `${
|
|
8321
|
+
let r = `${Tt ?? ""}|${Et ?? ""}`;
|
|
8322
8322
|
try {
|
|
8323
8323
|
xe(!0), we("");
|
|
8324
8324
|
let i = k ? await ta(e, "search", t) : await ba({
|
|
8325
8325
|
module: e,
|
|
8326
8326
|
action: t,
|
|
8327
|
-
clientId:
|
|
8328
|
-
region:
|
|
8327
|
+
clientId: Tt,
|
|
8328
|
+
region: Et
|
|
8329
8329
|
});
|
|
8330
8330
|
n || (he(y_(k ? i?.[0] : i)), ve(r), k && De(i?.[0]?.label || ""));
|
|
8331
8331
|
} catch (t) {
|
|
@@ -8341,10 +8341,10 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8341
8341
|
e,
|
|
8342
8342
|
t,
|
|
8343
8343
|
k,
|
|
8344
|
-
|
|
8345
|
-
|
|
8344
|
+
Tt,
|
|
8345
|
+
Et
|
|
8346
8346
|
]);
|
|
8347
|
-
let
|
|
8347
|
+
let vn = L(() => {
|
|
8348
8348
|
if (!h) return null;
|
|
8349
8349
|
let e = ne.get("candidateId") || "", t = ne.get("submissionId") || "", n = String(ne.get("isFromSubmission")) === "true", r = P.jobId && P.jobId !== "_" ? P.jobId : ne.get("jobId") || "", i = n && t ? {
|
|
8350
8350
|
module: "submissions",
|
|
@@ -8363,45 +8363,45 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8363
8363
|
P
|
|
8364
8364
|
]);
|
|
8365
8365
|
I(() => {
|
|
8366
|
-
let e =
|
|
8366
|
+
let e = vn?.source;
|
|
8367
8367
|
if (!e) return;
|
|
8368
8368
|
let t = !1;
|
|
8369
8369
|
async function n() {
|
|
8370
8370
|
try {
|
|
8371
|
-
|
|
8371
|
+
at(!0);
|
|
8372
8372
|
let n = await ba({
|
|
8373
8373
|
module: e.module,
|
|
8374
8374
|
id: e.id
|
|
8375
8375
|
});
|
|
8376
|
-
t ||
|
|
8376
|
+
t || rt(y_(n));
|
|
8377
8377
|
} catch (e) {
|
|
8378
|
-
console.error("Failed to fetch prefill data:", e), t ||
|
|
8378
|
+
console.error("Failed to fetch prefill data:", e), t || rt([]);
|
|
8379
8379
|
} finally {
|
|
8380
|
-
t ||
|
|
8380
|
+
t || at(!1);
|
|
8381
8381
|
}
|
|
8382
8382
|
}
|
|
8383
8383
|
return n(), () => {
|
|
8384
8384
|
t = !0;
|
|
8385
8385
|
};
|
|
8386
|
-
}, [
|
|
8387
|
-
let
|
|
8386
|
+
}, [vn]);
|
|
8387
|
+
let yn = L(() => S_(nt), [nt]), bn = L(() => x_(nt), [nt]), Cn = L(() => {
|
|
8388
8388
|
let e = /* @__PURE__ */ new Set();
|
|
8389
|
-
return
|
|
8389
|
+
return Ot.forEach((t) => (t.fields ?? []).forEach((t) => {
|
|
8390
8390
|
t.prefillFromModule && e.add(H_(t.prefillFromModule));
|
|
8391
8391
|
})), [...e];
|
|
8392
|
-
}, [
|
|
8392
|
+
}, [Ot]), [wn, Tn] = R({});
|
|
8393
8393
|
I(() => {
|
|
8394
|
-
let e =
|
|
8395
|
-
if (!e ||
|
|
8394
|
+
let e = vn?.linkage;
|
|
8395
|
+
if (!e || Cn.length === 0) return;
|
|
8396
8396
|
let t = !1;
|
|
8397
|
-
return
|
|
8397
|
+
return Cn.forEach(async (n) => {
|
|
8398
8398
|
let r = Dn(n, e);
|
|
8399
8399
|
if (r) try {
|
|
8400
8400
|
let e = x_(y_(await ba({
|
|
8401
8401
|
module: n,
|
|
8402
8402
|
id: r
|
|
8403
8403
|
})));
|
|
8404
|
-
!t && e &&
|
|
8404
|
+
!t && e && Tn((t) => ({
|
|
8405
8405
|
...t,
|
|
8406
8406
|
[n]: e
|
|
8407
8407
|
}));
|
|
@@ -8411,15 +8411,15 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8411
8411
|
}), () => {
|
|
8412
8412
|
t = !0;
|
|
8413
8413
|
};
|
|
8414
|
-
}, [
|
|
8415
|
-
let
|
|
8416
|
-
let e = p ??
|
|
8417
|
-
if (!e && Object.keys(
|
|
8414
|
+
}, [Cn, vn]);
|
|
8415
|
+
let En = L(() => {
|
|
8416
|
+
let e = p ?? bn;
|
|
8417
|
+
if (!e && Object.keys(wn).length === 0) return {};
|
|
8418
8418
|
let t = {};
|
|
8419
|
-
return
|
|
8419
|
+
return Ot.forEach((n) => {
|
|
8420
8420
|
n.addRow || (n.fields ?? []).forEach((n) => {
|
|
8421
8421
|
if (!n.field || !n_(n.prefillAsHint) || n_(n.addRow)) return;
|
|
8422
|
-
let r = n.prefillFromModule ?
|
|
8422
|
+
let r = n.prefillFromModule ? wn[H_(n.prefillFromModule)] : e;
|
|
8423
8423
|
if (!r) return;
|
|
8424
8424
|
let i = w_(r, n);
|
|
8425
8425
|
if (i == null) return;
|
|
@@ -8429,26 +8429,26 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8429
8429
|
}), t;
|
|
8430
8430
|
}, [
|
|
8431
8431
|
p,
|
|
8432
|
-
vn,
|
|
8433
8432
|
bn,
|
|
8434
|
-
|
|
8433
|
+
wn,
|
|
8434
|
+
Ot
|
|
8435
8435
|
]);
|
|
8436
8436
|
I(() => {
|
|
8437
|
-
if (
|
|
8438
|
-
|
|
8437
|
+
if (ot.current) {
|
|
8438
|
+
ot.current = !1;
|
|
8439
8439
|
return;
|
|
8440
8440
|
}
|
|
8441
|
-
let e = p ??
|
|
8442
|
-
if (!e && Object.keys(
|
|
8441
|
+
let e = p ?? bn;
|
|
8442
|
+
if (!e && Object.keys(wn).length === 0 || vt || Ot.length === 0) return;
|
|
8443
8443
|
let t = {};
|
|
8444
|
-
|
|
8444
|
+
Ot.forEach((n) => {
|
|
8445
8445
|
if (n.toggleEnabled && n.toggleField && e) {
|
|
8446
8446
|
let r = w_(e, { field: n.toggleField });
|
|
8447
8447
|
r != null && (t[n.toggleField] = !!r);
|
|
8448
8448
|
}
|
|
8449
8449
|
n.addRow || (n.fields ?? []).forEach((n) => {
|
|
8450
8450
|
if (!n.field || n_(n.addRow)) return;
|
|
8451
|
-
let r = n.prefillFromModule ?
|
|
8451
|
+
let r = n.prefillFromModule ? wn[H_(n.prefillFromModule)] : e;
|
|
8452
8452
|
if (!r) return;
|
|
8453
8453
|
let i = w_(r, n);
|
|
8454
8454
|
if (i != null && !n_(n.prefillAsHint)) {
|
|
@@ -8461,15 +8461,15 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8461
8461
|
}), Object.keys(t).length > 0 && F.setFieldsValue(t);
|
|
8462
8462
|
}, [
|
|
8463
8463
|
p,
|
|
8464
|
-
vn,
|
|
8465
8464
|
bn,
|
|
8466
|
-
|
|
8467
|
-
|
|
8465
|
+
wn,
|
|
8466
|
+
vt,
|
|
8467
|
+
Ot,
|
|
8468
8468
|
F
|
|
8469
8469
|
]), I(() => {
|
|
8470
|
-
let e = M?.state?.relevantSkillsToken, t = M?.state?.relevantSkillsInputs, n = t?.jobId ??
|
|
8471
|
-
if (!(e || t) ||
|
|
8472
|
-
let i =
|
|
8470
|
+
let e = M?.state?.relevantSkillsToken, t = M?.state?.relevantSkillsInputs, n = t?.jobId ?? vn?.linkage?.jobId ?? "", r = t?.applicantId ?? t?.candidateId ?? vn?.linkage?.applicantId ?? "";
|
|
8471
|
+
if (!(e || t) || vt || Ot.length === 0) return;
|
|
8472
|
+
let i = Ot.filter((e) => n_(e.addRow) && e.skillMatchField);
|
|
8473
8473
|
if (i.length === 0) return;
|
|
8474
8474
|
let a = e || `inputs:${n}:${r}`, o;
|
|
8475
8475
|
if (ee.current === a && N.current ? o = N.current : (o = e ? kg(e) : void 0, (!o || typeof o.then != "function") && n && r && (o = Ag({
|
|
@@ -8493,16 +8493,16 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8493
8493
|
}, [
|
|
8494
8494
|
M?.state?.relevantSkillsToken,
|
|
8495
8495
|
M?.state?.relevantSkillsInputs,
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8496
|
+
vn?.linkage?.jobId,
|
|
8497
|
+
vn?.linkage?.applicantId,
|
|
8498
|
+
vt,
|
|
8499
|
+
Ot,
|
|
8500
8500
|
F
|
|
8501
8501
|
]);
|
|
8502
|
-
let
|
|
8503
|
-
...
|
|
8504
|
-
...
|
|
8505
|
-
},
|
|
8502
|
+
let kn = {
|
|
8503
|
+
...un && Tt ? { clientId: Tt } : {},
|
|
8504
|
+
...vn?.linkage ?? g ?? {}
|
|
8505
|
+
}, An = !!e && !k && ge !== `${Tt ?? ""}|${Et ?? ""}`, Pn = !mn && !vt && !An && (!vn?.source || nt !== null && !it), Fn = (e, t = yn) => {
|
|
8506
8506
|
let n = e.prefillFrom || e.payloadKey || e.name, r = or(e, t[n]), i = Math.max(0, Number(e.minRows ?? 0) || 0), a = st(e);
|
|
8507
8507
|
if (!r || r.length === 0) {
|
|
8508
8508
|
let t = e.initialRows === void 0 ? i : Math.max(i, Math.max(0, Number(e.initialRows) || 0));
|
|
@@ -8518,19 +8518,19 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8518
8518
|
});
|
|
8519
8519
|
for (; o.length < i;) o.push({ ...a });
|
|
8520
8520
|
return o;
|
|
8521
|
-
},
|
|
8522
|
-
let e =
|
|
8523
|
-
if (!(!e ||
|
|
8524
|
-
|
|
8521
|
+
}, In = async () => {
|
|
8522
|
+
let e = vn?.linkage?.applicantId;
|
|
8523
|
+
if (!(!e || lt.current)) {
|
|
8524
|
+
lt.current = !0;
|
|
8525
8525
|
try {
|
|
8526
|
-
let t =
|
|
8526
|
+
let t = vn?.source?.module === "candidates", n = t ? nt : ct.current, r = y_(await ba({
|
|
8527
8527
|
module: "candidates",
|
|
8528
8528
|
id: e
|
|
8529
8529
|
}));
|
|
8530
8530
|
if (!Array.isArray(r)) return;
|
|
8531
8531
|
if (Array.isArray(n)) {
|
|
8532
8532
|
let e = x_(n), t = x_(r), i = (e, t) => JSON.stringify(e ?? null) === JSON.stringify(t ?? null), a = {};
|
|
8533
|
-
|
|
8533
|
+
Ot.forEach((n) => {
|
|
8534
8534
|
if (n.toggleEnabled && n.toggleField) {
|
|
8535
8535
|
let r = w_(e, { field: n.toggleField }), o = w_(t, { field: n.toggleField });
|
|
8536
8536
|
!i(r, o) && o != null && (a[n.toggleField] = !!o);
|
|
@@ -8545,93 +8545,93 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8545
8545
|
let t = e.prefillFrom || e.payloadKey || e.name;
|
|
8546
8546
|
return !i(o[t], s[t]);
|
|
8547
8547
|
}, l = {};
|
|
8548
|
-
|
|
8548
|
+
Ot.forEach((e) => {
|
|
8549
8549
|
if (!e.addRow) return;
|
|
8550
|
-
let t = fe(
|
|
8550
|
+
let t = fe(Bt, e.name);
|
|
8551
8551
|
(t ? t.memberNames.some((e) => {
|
|
8552
|
-
let t =
|
|
8552
|
+
let t = Ot.find((t) => t.name === e);
|
|
8553
8553
|
return t && c(t);
|
|
8554
|
-
}) : c(e)) && (l[e.name] =
|
|
8555
|
-
}), Object.entries(Xi(
|
|
8554
|
+
}) : c(e)) && (l[e.name] = Fn(e, s));
|
|
8555
|
+
}), Object.entries(Xi(Bt, l)).forEach(([e, t]) => F.setFieldValue(e, t));
|
|
8556
8556
|
}
|
|
8557
|
-
t ? (
|
|
8557
|
+
t ? (ot.current = !0, rt(r)) : ct.current = r;
|
|
8558
8558
|
} catch (e) {
|
|
8559
8559
|
console.error("Failed to refresh form from updated candidate:", e);
|
|
8560
8560
|
} finally {
|
|
8561
|
-
|
|
8561
|
+
lt.current = !1;
|
|
8562
8562
|
}
|
|
8563
8563
|
}
|
|
8564
|
-
},
|
|
8564
|
+
}, Rn = Aa(In);
|
|
8565
8565
|
I(() => {
|
|
8566
|
-
|
|
8566
|
+
Rn.current = In;
|
|
8567
8567
|
});
|
|
8568
|
-
let
|
|
8568
|
+
let zn = Ea(() => Rn.current(), []);
|
|
8569
8569
|
I(() => {
|
|
8570
|
-
let e =
|
|
8571
|
-
if (!e || !
|
|
8570
|
+
let e = vn?.linkage?.applicantId;
|
|
8571
|
+
if (!e || !vn?.source || vn.source.module === "candidates") return;
|
|
8572
8572
|
let t = !1;
|
|
8573
8573
|
return ba({
|
|
8574
8574
|
module: "candidates",
|
|
8575
8575
|
id: e
|
|
8576
8576
|
}).then((e) => {
|
|
8577
|
-
t || (
|
|
8577
|
+
t || (ct.current = y_(e));
|
|
8578
8578
|
}).catch(() => {}), () => {
|
|
8579
8579
|
t = !0;
|
|
8580
8580
|
};
|
|
8581
|
-
}, [
|
|
8582
|
-
let
|
|
8581
|
+
}, [vn]);
|
|
8582
|
+
let Bn = L(() => Ot.map((e) => `${e.name}:${+!!n_(e.allowCollapse)}${+!!n_(e.defaultCollapsed)}`).join("|"), [Ot]), Vn = Aa(null);
|
|
8583
8583
|
I(() => {
|
|
8584
|
-
if (!
|
|
8585
|
-
|
|
8584
|
+
if (!Ot.length || Vn.current === Bn) return;
|
|
8585
|
+
Vn.current = Bn;
|
|
8586
8586
|
let e = {};
|
|
8587
|
-
|
|
8587
|
+
Ot.forEach((t, n) => {
|
|
8588
8588
|
let r = t.name ?? t.id ?? String(n);
|
|
8589
8589
|
n_(t.allowCollapse) && n_(t.defaultCollapsed) && (e[r] = !0);
|
|
8590
8590
|
}), pe(e);
|
|
8591
|
-
}, [
|
|
8592
|
-
let
|
|
8591
|
+
}, [Bn, Ot]);
|
|
8592
|
+
let Hn = L(() => {
|
|
8593
8593
|
let e = {};
|
|
8594
|
-
return
|
|
8595
|
-
t.addRow && (e[t.name] =
|
|
8596
|
-
}), Xi(
|
|
8594
|
+
return Ot.forEach((t) => {
|
|
8595
|
+
t.addRow && (e[t.name] = Fn(t));
|
|
8596
|
+
}), Xi(Bt, e);
|
|
8597
8597
|
}, [
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
]),
|
|
8598
|
+
Ot,
|
|
8599
|
+
yn,
|
|
8600
|
+
Bt
|
|
8601
|
+
]), Un = (e) => pe((t) => ({
|
|
8602
8602
|
...t,
|
|
8603
8603
|
[e]: !t[e]
|
|
8604
|
-
})),
|
|
8604
|
+
})), Gn = Nn(F), qn = L(() => new Set(Gn.map((e) => Fi(Ot, e.path)?.name).filter(Boolean)), [Gn, Ot]), Jn = (e) => !!de[e] && !qn.has(e), Qn = Aa(0);
|
|
8605
8605
|
I(() => {
|
|
8606
|
-
let e =
|
|
8607
|
-
e >
|
|
8606
|
+
let e = Gn.length;
|
|
8607
|
+
e > Qn.current && J.warning({
|
|
8608
8608
|
key: "option-mismatch",
|
|
8609
8609
|
content: `${e} ${e === 1 ? "value does not" : "values do not"} match the dropdown options. Choose from the list before saving.`,
|
|
8610
8610
|
duration: 6
|
|
8611
|
-
}),
|
|
8612
|
-
}, [
|
|
8613
|
-
let
|
|
8611
|
+
}), Qn.current = e;
|
|
8612
|
+
}, [Gn]);
|
|
8613
|
+
let $n = Ea((e) => {
|
|
8614
8614
|
setTimeout(() => {
|
|
8615
8615
|
F.scrollToField(e, {
|
|
8616
8616
|
behavior: "smooth",
|
|
8617
8617
|
block: "center"
|
|
8618
8618
|
}), F.focusField?.(e);
|
|
8619
8619
|
}, 0);
|
|
8620
|
-
}, [F]),
|
|
8621
|
-
F.resetFields(), pe({}),
|
|
8622
|
-
},
|
|
8620
|
+
}, [F]), er = () => {
|
|
8621
|
+
F.resetFields(), pe({}), He("internal"), We([]);
|
|
8622
|
+
}, tr = Ea(async (t, n, r = {}) => {
|
|
8623
8623
|
if (!k) return;
|
|
8624
|
-
let i = Number(r.pageSize) > 0 ? Number(r.pageSize) :
|
|
8624
|
+
let i = Number(r.pageSize) > 0 ? Number(r.pageSize) : Ie.pageSize, a = Number(r.current), o = Number.isFinite(a) && a > 0 ? Math.floor(a) : 1;
|
|
8625
8625
|
try {
|
|
8626
|
-
|
|
8626
|
+
ze(t), Le({
|
|
8627
8627
|
current: o,
|
|
8628
8628
|
pageSize: i
|
|
8629
|
-
}),
|
|
8629
|
+
}), Pe((e) => ({
|
|
8630
8630
|
...e,
|
|
8631
8631
|
loading: !0,
|
|
8632
8632
|
searched: !0
|
|
8633
8633
|
}));
|
|
8634
|
-
let r = Pg(t?.selectedSource), a = n ? Fg(n,
|
|
8634
|
+
let r = Pg(t?.selectedSource), a = n ? Fg(n, Ve) : r.includes("internal") ? "internal" : Fg(t?.selectedSource, Ve), s = {
|
|
8635
8635
|
...t,
|
|
8636
8636
|
selectedSource: a
|
|
8637
8637
|
};
|
|
@@ -8640,7 +8640,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8640
8640
|
limit: i,
|
|
8641
8641
|
offset: (o - 1) * i
|
|
8642
8642
|
}, { scope: a });
|
|
8643
|
-
|
|
8643
|
+
He(a), Pe({
|
|
8644
8644
|
searched: !0,
|
|
8645
8645
|
rows: c.rows,
|
|
8646
8646
|
total: c.total,
|
|
@@ -8648,7 +8648,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8648
8648
|
actions: c.actions ?? [],
|
|
8649
8649
|
actionRules: c.actionRules ?? [],
|
|
8650
8650
|
loading: !1
|
|
8651
|
-
}),
|
|
8651
|
+
}), We((t) => Hg({
|
|
8652
8652
|
moduleLabel: Pt(e),
|
|
8653
8653
|
sources: r,
|
|
8654
8654
|
activeSource: a,
|
|
@@ -8658,7 +8658,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8658
8658
|
backendTabs: c.tabs
|
|
8659
8659
|
}));
|
|
8660
8660
|
} catch (e) {
|
|
8661
|
-
console.error("Search failed:", e), J.error(e?.message || "Failed to search records"),
|
|
8661
|
+
console.error("Search failed:", e), J.error(e?.message || "Failed to search records"), Pe({
|
|
8662
8662
|
searched: !0,
|
|
8663
8663
|
rows: [],
|
|
8664
8664
|
total: 0,
|
|
@@ -8671,11 +8671,11 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8671
8671
|
}, [
|
|
8672
8672
|
k,
|
|
8673
8673
|
e,
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
]),
|
|
8674
|
+
Ve,
|
|
8675
|
+
Ie.pageSize
|
|
8676
|
+
]), rr = Ea(async (e, t) => {
|
|
8677
8677
|
let n = Jg(e, t);
|
|
8678
|
-
|
|
8678
|
+
Je((e) => ({
|
|
8679
8679
|
...e,
|
|
8680
8680
|
[n]: {
|
|
8681
8681
|
...e[n] ?? {},
|
|
@@ -8684,7 +8684,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8684
8684
|
}));
|
|
8685
8685
|
try {
|
|
8686
8686
|
let r = await Yg(e, t);
|
|
8687
|
-
J.success(r?.message ?? r?.data?.message ?? e.successMessage ?? "Action completed successfully."),
|
|
8687
|
+
J.success(r?.message ?? r?.data?.message ?? e.successMessage ?? "Action completed successfully."), Je((e) => ({
|
|
8688
8688
|
...e,
|
|
8689
8689
|
[n]: {
|
|
8690
8690
|
loading: !1,
|
|
@@ -8692,7 +8692,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8692
8692
|
}
|
|
8693
8693
|
}));
|
|
8694
8694
|
} catch (t) {
|
|
8695
|
-
J.error(t?.message || e.errorMessage || "Action failed."),
|
|
8695
|
+
J.error(t?.message || e.errorMessage || "Action failed."), Je((e) => ({
|
|
8696
8696
|
...e,
|
|
8697
8697
|
[n]: {
|
|
8698
8698
|
...e[n] ?? {},
|
|
@@ -8700,7 +8700,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8700
8700
|
}
|
|
8701
8701
|
}));
|
|
8702
8702
|
} finally {
|
|
8703
|
-
|
|
8703
|
+
Je((e) => ({
|
|
8704
8704
|
...e,
|
|
8705
8705
|
[n]: {
|
|
8706
8706
|
...e[n] ?? {},
|
|
@@ -8708,58 +8708,58 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8708
8708
|
}
|
|
8709
8709
|
}));
|
|
8710
8710
|
}
|
|
8711
|
-
}, []),
|
|
8712
|
-
let t = Fg(e,
|
|
8713
|
-
|
|
8711
|
+
}, []), ir = Ea((e) => {
|
|
8712
|
+
let t = Fg(e, Ve);
|
|
8713
|
+
He(t), Le({
|
|
8714
8714
|
current: 1,
|
|
8715
|
-
pageSize:
|
|
8716
|
-
}), Object.keys(
|
|
8715
|
+
pageSize: Ie.pageSize
|
|
8716
|
+
}), Object.keys(Re).length > 0 && tr(Re, t, {
|
|
8717
8717
|
current: 1,
|
|
8718
|
-
pageSize:
|
|
8718
|
+
pageSize: Ie.pageSize
|
|
8719
8719
|
});
|
|
8720
8720
|
}, [
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
]),
|
|
8726
|
-
let n = Number(t) > 0 ? Number(t) :
|
|
8727
|
-
if (Object.keys(
|
|
8728
|
-
|
|
8721
|
+
Ie.pageSize,
|
|
8722
|
+
Re,
|
|
8723
|
+
tr,
|
|
8724
|
+
Ve
|
|
8725
|
+
]), ar = Ea((e, t) => {
|
|
8726
|
+
let n = Number(t) > 0 ? Number(t) : Ie.pageSize, r = Number(e) > 0 ? Number(e) : 1;
|
|
8727
|
+
if (Object.keys(Re).length === 0) {
|
|
8728
|
+
Le({
|
|
8729
8729
|
current: r,
|
|
8730
8730
|
pageSize: n
|
|
8731
8731
|
});
|
|
8732
8732
|
return;
|
|
8733
8733
|
}
|
|
8734
|
-
|
|
8734
|
+
tr(Re, Ve, {
|
|
8735
8735
|
current: r,
|
|
8736
8736
|
pageSize: n
|
|
8737
8737
|
});
|
|
8738
8738
|
}, [
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
]),
|
|
8744
|
-
let t = Number(e) > 0 ? Number(e) :
|
|
8745
|
-
if (Object.keys(
|
|
8746
|
-
|
|
8739
|
+
tr,
|
|
8740
|
+
Re,
|
|
8741
|
+
Ie.pageSize,
|
|
8742
|
+
Ve
|
|
8743
|
+
]), sr = Ea((e) => {
|
|
8744
|
+
let t = Number(e) > 0 ? Number(e) : Ie.pageSize;
|
|
8745
|
+
if (Object.keys(Re).length === 0) {
|
|
8746
|
+
Le({
|
|
8747
8747
|
current: 1,
|
|
8748
8748
|
pageSize: t
|
|
8749
8749
|
});
|
|
8750
8750
|
return;
|
|
8751
8751
|
}
|
|
8752
|
-
|
|
8752
|
+
tr(Re, Ve, {
|
|
8753
8753
|
current: 1,
|
|
8754
8754
|
pageSize: t
|
|
8755
8755
|
});
|
|
8756
8756
|
}, [
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
]),
|
|
8762
|
-
let t = te(e, { uniqueRules:
|
|
8757
|
+
tr,
|
|
8758
|
+
Re,
|
|
8759
|
+
Ie.pageSize,
|
|
8760
|
+
Ve
|
|
8761
|
+
]), cr = (e) => {
|
|
8762
|
+
let t = te(e, { uniqueRules: zt });
|
|
8763
8763
|
return t.length !== 0 && (F.setFields(t.map((e) => ({
|
|
8764
8764
|
name: e.name ?? e.field,
|
|
8765
8765
|
errors: [e.message]
|
|
@@ -8770,9 +8770,9 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8770
8770
|
errors: [e.message]
|
|
8771
8771
|
};
|
|
8772
8772
|
}) }, F, { root: oe() }), !0);
|
|
8773
|
-
},
|
|
8773
|
+
}, lr = Ea(async (e) => {
|
|
8774
8774
|
try {
|
|
8775
|
-
let t = pt().region, n =
|
|
8775
|
+
let t = pt().region, n = Ot.map((e) => Fe(e, t)), r = ae(n, e);
|
|
8776
8776
|
return r.severity === "allow" ? !0 : r.severity === "block" ? (na({
|
|
8777
8777
|
tone: "duplicate",
|
|
8778
8778
|
title: "This qualification history is incomplete",
|
|
@@ -8788,28 +8788,28 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8788
8788
|
} catch (e) {
|
|
8789
8789
|
return console.warn("[levelRule] check skipped:", e), !0;
|
|
8790
8790
|
}
|
|
8791
|
-
}, [
|
|
8791
|
+
}, [Ot]), ur = async (t) => {
|
|
8792
8792
|
let n = null;
|
|
8793
8793
|
if (!S) {
|
|
8794
|
-
let e = await
|
|
8795
|
-
if (e === "addNew") n =
|
|
8794
|
+
let e = await Jt.prompt({ reason: "submit" });
|
|
8795
|
+
if (e === "addNew") n = Jt.confirmedNewId?.current ?? null;
|
|
8796
8796
|
else if (e !== "clear") return;
|
|
8797
8797
|
}
|
|
8798
|
-
if (!await
|
|
8798
|
+
if (!await lr(t)) return;
|
|
8799
8799
|
if (f) {
|
|
8800
8800
|
await f(t, {
|
|
8801
8801
|
moduleName: e,
|
|
8802
|
-
groups:
|
|
8802
|
+
groups: Ot,
|
|
8803
8803
|
generateModuleId: Mn,
|
|
8804
8804
|
rollbackDocuments: Oi,
|
|
8805
8805
|
registerDocuments: async (n, r = {}) => {
|
|
8806
|
-
let i = _t(t,
|
|
8806
|
+
let i = _t(t, Ot, { module: r.module ?? e });
|
|
8807
8807
|
return !i.length || !n ? [] : Wn(r.module ?? e, n, i);
|
|
8808
8808
|
},
|
|
8809
|
-
extraPayload:
|
|
8809
|
+
extraPayload: kn ?? {},
|
|
8810
8810
|
payload: {
|
|
8811
|
-
...
|
|
8812
|
-
...Se(t,
|
|
8811
|
+
...kn ?? {},
|
|
8812
|
+
...Se(t, Ot, { module: e })
|
|
8813
8813
|
}
|
|
8814
8814
|
});
|
|
8815
8815
|
return;
|
|
@@ -8821,47 +8821,50 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8821
8821
|
let r = null, i = [];
|
|
8822
8822
|
try {
|
|
8823
8823
|
ke(!0), r = Mn();
|
|
8824
|
-
let a = _t(t,
|
|
8824
|
+
let a = _t(t, Ot, { module: e });
|
|
8825
8825
|
if (console.log("[Document-First Flow] Step 2: Pre-generated moduleId:", r, "Files attached:", a.length), a.length > 0) try {
|
|
8826
8826
|
console.log("[Document-First Flow] Step 3: Uploading documents FIRST to Documents API...");
|
|
8827
8827
|
let t = await Wn(e, r, a);
|
|
8828
8828
|
i = Tr(t), console.log("[Document-First Flow] Step 3: Documents uploaded successfully, documentIds:", i);
|
|
8829
8829
|
} catch (t) {
|
|
8830
|
-
console.error(`[document-first] Document upload failed before creating ${e}:`, t)
|
|
8830
|
+
console.error(`[document-first] Document upload failed before creating ${e}:`, t);
|
|
8831
|
+
let n = Hi(Ot, e, "add", t?.data?.error || t?.data?.message || t?.message || "Failed to upload documents. Record was not created.");
|
|
8832
|
+
Me(n), J.error(n);
|
|
8831
8833
|
return;
|
|
8832
8834
|
}
|
|
8833
8835
|
let o = {
|
|
8834
|
-
...
|
|
8836
|
+
...kn ?? {},
|
|
8835
8837
|
_id: r,
|
|
8836
8838
|
...i.length > 0 ? { documentIds: i } : {},
|
|
8837
8839
|
...n ? { __duplicateConfirmed: n } : {}
|
|
8838
8840
|
};
|
|
8839
8841
|
console.log("[Document-First Flow] Step 5: Calling createModuleRecord SECOND with _id:", r, "and documentIds:", i);
|
|
8840
|
-
let s = await ya(e, K_(t,
|
|
8842
|
+
let s = await ya(e, K_(t, Ot, o, e));
|
|
8841
8843
|
if (s?.status === !1) {
|
|
8842
|
-
if (i.length > 0 && await Oi(i),
|
|
8843
|
-
|
|
8844
|
+
if (i.length > 0 && await Oi(i), cr(s)) return;
|
|
8845
|
+
let t = Hi(Ot, e, "add", s?.error || s?.message || s?.data);
|
|
8846
|
+
Me(t), J.error(t);
|
|
8844
8847
|
return;
|
|
8845
8848
|
}
|
|
8846
|
-
let c = s?.id ?? s?.data?.id ?? s?.data?._id ?? s?._id ?? r, l = _t(t,
|
|
8849
|
+
let c = s?.id ?? s?.data?.id ?? s?.data?._id ?? s?._id ?? r, l = _t(t, Ot, {
|
|
8847
8850
|
scope: "addRow",
|
|
8848
8851
|
indexed: !0,
|
|
8849
8852
|
module: e
|
|
8850
8853
|
});
|
|
8851
8854
|
if (l.length > 0 && c) try {
|
|
8852
8855
|
await $r(e, c, {
|
|
8853
|
-
...
|
|
8854
|
-
...Se(t,
|
|
8856
|
+
...kn ?? {},
|
|
8857
|
+
...Se(t, Ot, { module: e })
|
|
8855
8858
|
}, l);
|
|
8856
8859
|
} catch (e) {
|
|
8857
8860
|
console.error("Document file attach (post-create update) failed:", e), J.warning("Record created, but attaching document files failed. Edit the record to re-upload.");
|
|
8858
8861
|
}
|
|
8859
|
-
let u = aa(
|
|
8862
|
+
let u = aa(Ot, e, "add");
|
|
8860
8863
|
if (u && J.success(u), F.resetFields(), S && T) {
|
|
8861
8864
|
T(c, t);
|
|
8862
8865
|
return;
|
|
8863
8866
|
}
|
|
8864
|
-
let f =
|
|
8867
|
+
let f = Ut.current ?? tn(Ot);
|
|
8865
8868
|
if (!f) Gt(j, { cancelPath: d });
|
|
8866
8869
|
else if (f.mode === "back") Gt(j, { cancelPath: d });
|
|
8867
8870
|
else if (f.mode === "route" || f.mode === "detail") {
|
|
@@ -8874,23 +8877,24 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8874
8877
|
} catch (e) {
|
|
8875
8878
|
console.error("Failed to rollback documents:", e);
|
|
8876
8879
|
}
|
|
8877
|
-
if (
|
|
8878
|
-
|
|
8880
|
+
if (cr(t)) return;
|
|
8881
|
+
let n = Hi(Ot, e, "add", t?.data?.error || t?.data?.message || t?.message);
|
|
8882
|
+
Me(n), J.error(n);
|
|
8879
8883
|
} finally {
|
|
8880
|
-
ke(!1),
|
|
8884
|
+
ke(!1), Ut.current = null;
|
|
8881
8885
|
}
|
|
8882
|
-
},
|
|
8886
|
+
}, dr = async (e) => {
|
|
8883
8887
|
if (k) {
|
|
8884
|
-
await
|
|
8888
|
+
await tr(e);
|
|
8885
8889
|
return;
|
|
8886
8890
|
}
|
|
8887
|
-
|
|
8891
|
+
Wt.current = !0, ke(!0), Me("");
|
|
8888
8892
|
try {
|
|
8889
|
-
await
|
|
8893
|
+
await ur(e);
|
|
8890
8894
|
} finally {
|
|
8891
|
-
|
|
8895
|
+
Wt.current = !1, ke(!1);
|
|
8892
8896
|
}
|
|
8893
|
-
},
|
|
8897
|
+
}, fr = (e, t, n) => {
|
|
8894
8898
|
let r = e.validations ?? e.validation ?? e.rules ?? [];
|
|
8895
8899
|
return [...r.filter((e) => (typeof e == "string" ? e : e?.type) === "maxFromField").map((e) => ye(e, t, n)).filter(Boolean), ...r.filter((e) => {
|
|
8896
8900
|
let t = typeof e == "string" ? e : e?.type;
|
|
@@ -8906,9 +8910,9 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8906
8910
|
"timeBeforeField"
|
|
8907
8911
|
].includes(t);
|
|
8908
8912
|
}).map((e) => String(e.value ?? e.compareField ?? e.field ?? "").split(",").map((e) => e.trim()).filter(Boolean).map((e) => k_(t, e))).flat().filter(Boolean)];
|
|
8909
|
-
},
|
|
8913
|
+
}, pr = (e, t) => typeof e == "function" ? e(t) : e, mr = (e, t, n) => {
|
|
8910
8914
|
if (!e?.field) return !0;
|
|
8911
|
-
let r =
|
|
8915
|
+
let r = pr(n, e.field), i = t(r == null ? [e.field] : [...Array.isArray(r) ? r : [r], e.field]);
|
|
8912
8916
|
switch (e.operator) {
|
|
8913
8917
|
case "eq": return String(i ?? "") === String(e.value ?? "");
|
|
8914
8918
|
case "neq": return String(i ?? "") !== String(e.value ?? "");
|
|
@@ -8919,19 +8923,19 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8919
8923
|
case "notIn": return !String(e.value ?? "").split(",").map((e) => e.trim()).includes(String(i ?? ""));
|
|
8920
8924
|
default: return !0;
|
|
8921
8925
|
}
|
|
8922
|
-
},
|
|
8926
|
+
}, gr = (e, t, n) => {
|
|
8923
8927
|
if (!e) return !0;
|
|
8924
8928
|
let r = Array.isArray(e.conditions) ? e.conditions.filter((e) => e?.field) : [];
|
|
8925
8929
|
if (r.length) {
|
|
8926
|
-
let i = r.map((e) =>
|
|
8930
|
+
let i = r.map((e) => mr(e, t, n)), a = String(e.logic ?? "and").toLowerCase() === "or", o = a ? i.some(Boolean) : i.every(Boolean);
|
|
8927
8931
|
if (e.field) {
|
|
8928
|
-
let r =
|
|
8932
|
+
let r = mr(e, t, n);
|
|
8929
8933
|
o = a ? o || r : o && r;
|
|
8930
8934
|
}
|
|
8931
8935
|
return o;
|
|
8932
8936
|
}
|
|
8933
|
-
return
|
|
8934
|
-
},
|
|
8937
|
+
return mr(e, t, n);
|
|
8938
|
+
}, _r = (e) => !!(e?.field || e?.conditions?.some?.((e) => e?.field)), [vr, yr] = R({}), Sr = Aa({}), Cr = (e) => String(e?.field ?? ""), wr = L(() => w(), []), Er = (t, n, r, i = {}) => {
|
|
8935
8939
|
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 && !pi(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 = pa(t), h = m ? se(t, c, p) : null, g = i.inline || i.hideLabel || !l && t.type === "checkbox" ? "" : /* @__PURE__ */ X(c_, {
|
|
8936
8940
|
form: F,
|
|
8937
8941
|
field: t,
|
|
@@ -8946,11 +8950,11 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8946
8950
|
fieldPath: c,
|
|
8947
8951
|
disabled: d
|
|
8948
8952
|
})]
|
|
8949
|
-
}) : g, v =
|
|
8953
|
+
}) : g, v = fr(t, c, p), y = _n(t), b = i.inline || t.type === "file" && n_(t.multiple) || t.type === "text-editor" ? 24 : t.col ?? 12, x = nd(t, wr), S = n === void 0 && t.type !== "file" && x.matched && x.value !== void 0 && x.value !== "" ? x.value : n === void 0 && t.type !== "file" && Mt(t) !== void 0 ? Mt(t) : void 0, C = (t.aiActions || []).filter((e) => e.trigger === "click"), w = (t.aiActions || []).find((e) => e.trigger === "upload"), T = /* @__PURE__ */ X(V.Item, {
|
|
8950
8954
|
label: _,
|
|
8951
8955
|
name: s,
|
|
8952
|
-
extra: ev(t,
|
|
8953
|
-
rules: F_(t, F, c, k, p,
|
|
8956
|
+
extra: ev(t, En[t.field]),
|
|
8957
|
+
rules: F_(t, F, c, k, p, Rt, en(t, i.groupNameForActions), e),
|
|
8954
8958
|
required: P_(t, F, c),
|
|
8955
8959
|
dependencies: v,
|
|
8956
8960
|
valuePropName: u,
|
|
@@ -8964,14 +8968,14 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8964
8968
|
rowFieldKeys: i.rowFieldKeys,
|
|
8965
8969
|
moduleName: e,
|
|
8966
8970
|
enforceOptions: !k,
|
|
8967
|
-
recordMeta:
|
|
8968
|
-
onLinkedRecordUpdated:
|
|
8969
|
-
scopeValues: { clientId:
|
|
8970
|
-
onAiUpload: w ? (e) =>
|
|
8971
|
-
onDuplicateBlur:
|
|
8972
|
-
onRegionBlocked:
|
|
8973
|
-
onRowOrderChange:
|
|
8974
|
-
formDisabled:
|
|
8971
|
+
recordMeta: vn?.linkage,
|
|
8972
|
+
onLinkedRecordUpdated: zn,
|
|
8973
|
+
scopeValues: { clientId: Tt },
|
|
8974
|
+
onAiUpload: w ? (e) => Qt.runAction(i.groupNameForActions, t, w, e) : void 0,
|
|
8975
|
+
onDuplicateBlur: an,
|
|
8976
|
+
onRegionBlocked: $t,
|
|
8977
|
+
onRowOrderChange: nn,
|
|
8978
|
+
formDisabled: Qt.busy
|
|
8975
8979
|
}, t.refreshToken == null ? void 0 : `${t.field}-refresh-${t.refreshToken}`)
|
|
8976
8980
|
}), E = y && !_ ? /* @__PURE__ */ X(q, {
|
|
8977
8981
|
title: y,
|
|
@@ -8983,7 +8987,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
8983
8987
|
let e = ii(C), n = (n) => /* @__PURE__ */ X(jn, {
|
|
8984
8988
|
position: n,
|
|
8985
8989
|
actions: e[n],
|
|
8986
|
-
aiActions:
|
|
8990
|
+
aiActions: Qt,
|
|
8987
8991
|
groupName: i.groupNameForActions,
|
|
8988
8992
|
field: t
|
|
8989
8993
|
}, n);
|
|
@@ -9058,14 +9062,14 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9058
9062
|
})
|
|
9059
9063
|
] }, t.field);
|
|
9060
9064
|
let re = !i.inline && Ii(t).length > 0, ie = (e) => re ? hr(t, b, (t) => e(Kn(t, p(t.field)))) : b;
|
|
9061
|
-
return
|
|
9065
|
+
return _r(t.showIf) || re ? /* @__PURE__ */ Z(Sa, { children: [
|
|
9062
9066
|
te,
|
|
9063
9067
|
ne,
|
|
9064
9068
|
N,
|
|
9065
9069
|
/* @__PURE__ */ X(V.Item, {
|
|
9066
9070
|
shouldUpdate: !0,
|
|
9067
9071
|
noStyle: !0,
|
|
9068
|
-
children: ({ getFieldValue: e }) => !
|
|
9072
|
+
children: ({ getFieldValue: e }) => !_r(t.showIf) || gr(t.showIf, e, p) ? /* @__PURE__ */ X(B, {
|
|
9069
9073
|
xs: 24,
|
|
9070
9074
|
md: ie(e),
|
|
9071
9075
|
style: ee,
|
|
@@ -9085,7 +9089,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9085
9089
|
children: M
|
|
9086
9090
|
})
|
|
9087
9091
|
] }, t.field);
|
|
9088
|
-
},
|
|
9092
|
+
}, Dr = (t) => {
|
|
9089
9093
|
let n = typeof t.field == "string" && t.field.includes(".") ? t.field.split(".") : [t.field], r = !!t.editablePermission && !pi(t.editablePermission, e), i = /* @__PURE__ */ X(X_, {
|
|
9090
9094
|
field: t,
|
|
9091
9095
|
label: t.label,
|
|
@@ -9094,7 +9098,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9094
9098
|
...e,
|
|
9095
9099
|
show: 1,
|
|
9096
9100
|
edit: 1
|
|
9097
|
-
})) : 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 = w_(p ??
|
|
9101
|
+
})) : 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 = w_(p ?? bn ?? {}, t), d = _e(t, u);
|
|
9098
9102
|
return /* @__PURE__ */ X(B, {
|
|
9099
9103
|
xs: 24,
|
|
9100
9104
|
md: 24,
|
|
@@ -9127,7 +9131,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9127
9131
|
children: o ? /* @__PURE__ */ X(no, {
|
|
9128
9132
|
gutter: [24, 0],
|
|
9129
9133
|
align: "top",
|
|
9130
|
-
children:
|
|
9134
|
+
children: Ar(s, l, n[0], !1, t.field)
|
|
9131
9135
|
}) : /* @__PURE__ */ X(V.Item, {
|
|
9132
9136
|
name: [l],
|
|
9133
9137
|
noStyle: !0,
|
|
@@ -9140,10 +9144,10 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9140
9144
|
name: [...n, l],
|
|
9141
9145
|
moduleName: e,
|
|
9142
9146
|
enforceOptions: !k,
|
|
9143
|
-
recordMeta:
|
|
9144
|
-
onLinkedRecordUpdated:
|
|
9145
|
-
scopeValues: { clientId:
|
|
9146
|
-
formDisabled:
|
|
9147
|
+
recordMeta: vn?.linkage,
|
|
9148
|
+
onLinkedRecordUpdated: zn,
|
|
9149
|
+
scopeValues: { clientId: Tt },
|
|
9150
|
+
formDisabled: Qt.busy
|
|
9147
9151
|
})
|
|
9148
9152
|
})
|
|
9149
9153
|
})]
|
|
@@ -9161,7 +9165,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9161
9165
|
})
|
|
9162
9166
|
})
|
|
9163
9167
|
}, t.field);
|
|
9164
|
-
},
|
|
9168
|
+
}, Or = (t, n, r) => {
|
|
9165
9169
|
let i = typeof t.field == "string" && t.field.includes(".") ? t.field.split(".") : [t.field], a = !!t.editablePermission && !pi(t.editablePermission, e), o = /* @__PURE__ */ X(X_, {
|
|
9166
9170
|
field: t,
|
|
9167
9171
|
label: t.label,
|
|
@@ -9209,7 +9213,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9209
9213
|
children: c ? /* @__PURE__ */ X(no, {
|
|
9210
9214
|
gutter: [24, 0],
|
|
9211
9215
|
align: "top",
|
|
9212
|
-
children:
|
|
9216
|
+
children: Ar(l, a, p, !1, t.field)
|
|
9213
9217
|
}) : /* @__PURE__ */ X(V.Item, {
|
|
9214
9218
|
name: [a],
|
|
9215
9219
|
noStyle: !0,
|
|
@@ -9222,10 +9226,10 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9222
9226
|
name: o,
|
|
9223
9227
|
moduleName: e,
|
|
9224
9228
|
enforceOptions: !k,
|
|
9225
|
-
recordMeta:
|
|
9226
|
-
onLinkedRecordUpdated:
|
|
9227
|
-
scopeValues: { clientId:
|
|
9228
|
-
formDisabled:
|
|
9229
|
+
recordMeta: vn?.linkage,
|
|
9230
|
+
onLinkedRecordUpdated: zn,
|
|
9231
|
+
scopeValues: { clientId: Tt },
|
|
9232
|
+
formDisabled: Qt.busy
|
|
9229
9233
|
})
|
|
9230
9234
|
})
|
|
9231
9235
|
})]
|
|
@@ -9244,7 +9248,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9244
9248
|
})
|
|
9245
9249
|
})
|
|
9246
9250
|
}, `${r}-${n}-${t.field}`);
|
|
9247
|
-
},
|
|
9251
|
+
}, kr = (e, t) => e.filter((e) => e.field && e.show !== void 0 && !n_(e.show)).map((e) => {
|
|
9248
9252
|
let n = String(e.field).includes(".") ? String(e.field).split(".") : e.field, r = t === void 0 ? n : [t, ...Array.isArray(n) ? n : [n]];
|
|
9249
9253
|
return /* @__PURE__ */ X(V.Item, {
|
|
9250
9254
|
name: r,
|
|
@@ -9252,20 +9256,20 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9252
9256
|
noStyle: !0,
|
|
9253
9257
|
children: /* @__PURE__ */ X(H, {})
|
|
9254
9258
|
}, `hidden-${e.field}`);
|
|
9255
|
-
}),
|
|
9259
|
+
}), Ar = (e, t, n, r = !1, i) => {
|
|
9256
9260
|
let a = /* @__PURE__ */ new Set(), o = [], s = new Set(e.map((e) => e.field).filter(Boolean)), c = e.filter((e) => e.show === void 0 || n_(e.show) || e.show === 0 && (!!e.prefillWhen?.length || Zn(e.computeFrom)));
|
|
9257
|
-
return o.push(...
|
|
9261
|
+
return o.push(...kr(e, t)), c.forEach((e) => {
|
|
9258
9262
|
if (n_(e.addRow) && t === void 0) {
|
|
9259
|
-
o.push(
|
|
9263
|
+
o.push(Dr(e));
|
|
9260
9264
|
return;
|
|
9261
9265
|
}
|
|
9262
9266
|
if (n_(e.addRow) && t !== void 0) {
|
|
9263
|
-
o.push(
|
|
9267
|
+
o.push(Or(e, t, n));
|
|
9264
9268
|
return;
|
|
9265
9269
|
}
|
|
9266
9270
|
let l = e.combineKey?.trim?.();
|
|
9267
9271
|
if (!l) {
|
|
9268
|
-
o.push(
|
|
9272
|
+
o.push(Er(e, t, n, {
|
|
9269
9273
|
hideLabel: r,
|
|
9270
9274
|
groupNameForActions: i,
|
|
9271
9275
|
rowFieldKeys: s
|
|
@@ -9293,11 +9297,11 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9293
9297
|
flagPath: se(m, g, h),
|
|
9294
9298
|
fieldPath: g
|
|
9295
9299
|
})]
|
|
9296
|
-
}) : _, y = d.find((e) => e.combineToggleTarget)?.combineToggleTarget, b = d.find((e) => e.combineToggleLabel)?.combineToggleLabel ?? "Show range", x = u, S = d.some((e) => n_(e.combineWrap)), C = Number(d.find((e) => [12, 24].includes(Number(e.combineSpan)))?.combineSpan), w = y ? d.find((e) =>
|
|
9300
|
+
}) : _, y = d.find((e) => e.combineToggleTarget)?.combineToggleTarget, b = d.find((e) => e.combineToggleLabel)?.combineToggleLabel ?? "Show range", x = u, S = d.some((e) => n_(e.combineWrap)), C = Number(d.find((e) => [12, 24].includes(Number(e.combineSpan)))?.combineSpan), w = y ? d.find((e) => Cr(e) === y) : null, T = w?.field?.includes?.(".") ? w.field.split(".") : [w?.field].filter(Boolean), E = w ? n !== void 0 && t !== void 0 ? [
|
|
9297
9301
|
n,
|
|
9298
9302
|
t,
|
|
9299
9303
|
...T
|
|
9300
|
-
] : T.length > 1 ? T : w.field : null, D = d.some((e) => P_(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) =>
|
|
9304
|
+
] : T.length > 1 ? T : w.field : null, D = d.some((e) => P_(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) => _r(e.showIf)), j = (e) => d.some((t) => !_r(t.showIf) || gr(t.showIf, e, k)), M = /* @__PURE__ */ X(B, {
|
|
9301
9305
|
xs: 24,
|
|
9302
9306
|
md: O,
|
|
9303
9307
|
children: /* @__PURE__ */ X(V.Item, {
|
|
@@ -9309,13 +9313,13 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9309
9313
|
noStyle: !0,
|
|
9310
9314
|
shouldUpdate: !0,
|
|
9311
9315
|
children: ({ getFieldValue: e }) => {
|
|
9312
|
-
let r = E ? !E_(e(E)) : !1, i =
|
|
9316
|
+
let r = E ? !E_(e(E)) : !1, i = vr[x] ?? r, a = y && !i ? d.filter((e) => Cr(e) !== y) : d;
|
|
9313
9317
|
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(no, {
|
|
9314
9318
|
gutter: [8, 0],
|
|
9315
9319
|
align: "top",
|
|
9316
9320
|
wrap: S,
|
|
9317
9321
|
className: `v1-combine-row${S ? " v1-combine-row-wrap" : ""}`,
|
|
9318
|
-
children: a.map((e) =>
|
|
9322
|
+
children: a.map((e) => Er(D ? {
|
|
9319
9323
|
...e,
|
|
9320
9324
|
req: 1
|
|
9321
9325
|
} : e, t, n, { inline: !0 }))
|
|
@@ -9327,14 +9331,14 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9327
9331
|
onChange: (e) => {
|
|
9328
9332
|
if (E) {
|
|
9329
9333
|
if (e) {
|
|
9330
|
-
let e =
|
|
9334
|
+
let e = Sr.current[x];
|
|
9331
9335
|
e != null && e !== "" && F.setFieldValue(E, e);
|
|
9332
9336
|
} else {
|
|
9333
9337
|
let e = F.getFieldValue(E);
|
|
9334
|
-
|
|
9338
|
+
Sr.current[x] = e, F.setFieldValue(E, void 0), F.validateFields([E]).catch(() => {});
|
|
9335
9339
|
}
|
|
9336
9340
|
}
|
|
9337
|
-
|
|
9341
|
+
yr((t) => ({
|
|
9338
9342
|
...t,
|
|
9339
9343
|
[x]: e
|
|
9340
9344
|
}));
|
|
@@ -9355,16 +9359,16 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9355
9359
|
children: ({ getFieldValue: e }) => j(e) ? M : null
|
|
9356
9360
|
}, u) : M);
|
|
9357
9361
|
}), o;
|
|
9358
|
-
},
|
|
9359
|
-
if (
|
|
9360
|
-
let e =
|
|
9362
|
+
}, jr = L(() => {
|
|
9363
|
+
if (Ne.fields?.length) return Ne.fields;
|
|
9364
|
+
let e = Ne.rows[0];
|
|
9361
9365
|
return e ? Object.keys(e).filter((t) => !t.startsWith("_") && typeof e[t] != "object").map((e) => ({
|
|
9362
9366
|
value: e,
|
|
9363
9367
|
field: e,
|
|
9364
9368
|
label: e.replace(/([A-Z])/g, " $1").replace(/^./, (e) => e.toUpperCase()),
|
|
9365
9369
|
isVisible: !0
|
|
9366
9370
|
})) : [];
|
|
9367
|
-
}, [
|
|
9371
|
+
}, [Ne.fields, Ne.rows]), Mr = (e) => !Array.isArray(e) || e.length === 0 ? "card" : e.some((e) => [
|
|
9368
9372
|
e?.sourceType,
|
|
9369
9373
|
e?.profileSource,
|
|
9370
9374
|
e?.selectedSource,
|
|
@@ -9375,15 +9379,15 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9375
9379
|
let t = String(e).trim().toLowerCase();
|
|
9376
9380
|
return t ? !["all", "internal"].includes(t) : !1;
|
|
9377
9381
|
})) ? "list" : "card";
|
|
9378
|
-
L(() =>
|
|
9379
|
-
let
|
|
9382
|
+
L(() => Mr(Ne.rows), [Ne.rows]);
|
|
9383
|
+
let Nr = L(() => {
|
|
9380
9384
|
let e = Kg({
|
|
9381
|
-
rows:
|
|
9382
|
-
selectedSource:
|
|
9385
|
+
rows: Ne.rows,
|
|
9386
|
+
selectedSource: Ve
|
|
9383
9387
|
});
|
|
9384
|
-
if (!e.length) return
|
|
9388
|
+
if (!e.length) return jr;
|
|
9385
9389
|
let t = new Set(e.map((e) => e.field));
|
|
9386
|
-
return [...
|
|
9390
|
+
return [...jr.filter((e) => e.cardRole !== "action" && !t.has(e.value)), ...e.map((e) => ({
|
|
9387
9391
|
value: e.field,
|
|
9388
9392
|
field: e.field,
|
|
9389
9393
|
label: e.label ?? "Action",
|
|
@@ -9392,26 +9396,26 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9392
9396
|
tableHidden: !0,
|
|
9393
9397
|
sorter: !1,
|
|
9394
9398
|
render: (t, n) => {
|
|
9395
|
-
if (!qg(e, n,
|
|
9396
|
-
let r = Jg(e, n), i =
|
|
9399
|
+
if (!qg(e, n, Ve)) return null;
|
|
9400
|
+
let r = Jg(e, n), i = qe[r] ?? {}, a = !r || i.completed;
|
|
9397
9401
|
return /* @__PURE__ */ X(z, {
|
|
9398
9402
|
type: "primary",
|
|
9399
9403
|
size: "small",
|
|
9400
9404
|
loading: i.loading,
|
|
9401
9405
|
disabled: a,
|
|
9402
|
-
onClick: () =>
|
|
9406
|
+
onClick: () => rr(e, n),
|
|
9403
9407
|
children: i.completed ? e.completedLabel : e.buttonLabel
|
|
9404
9408
|
});
|
|
9405
9409
|
}
|
|
9406
9410
|
}))];
|
|
9407
9411
|
}, [
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
]),
|
|
9414
|
-
if (!b) return
|
|
9412
|
+
rr,
|
|
9413
|
+
jr,
|
|
9414
|
+
Ne.rows,
|
|
9415
|
+
Ve,
|
|
9416
|
+
qe
|
|
9417
|
+
]), Pr = L(() => {
|
|
9418
|
+
if (!b) return Ne.actions;
|
|
9415
9419
|
let e = (t) => ({
|
|
9416
9420
|
...t,
|
|
9417
9421
|
popupState: {
|
|
@@ -9420,26 +9424,26 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9420
9424
|
},
|
|
9421
9425
|
...t.children ? { children: t.children.map(e) } : {}
|
|
9422
9426
|
});
|
|
9423
|
-
return (
|
|
9424
|
-
}, [
|
|
9425
|
-
let t = e.name ?? e.id ?? "", n = fe(
|
|
9427
|
+
return (Ne.actions ?? []).map(e);
|
|
9428
|
+
}, [Ne.actions, b]), Fr = (e) => {
|
|
9429
|
+
let t = e.name ?? e.id ?? "", n = fe(Bt, t), r = !!n && n.leaderName !== t, i = n ? Ot.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 = () => {
|
|
9426
9430
|
s.forEach((t) => {
|
|
9427
|
-
let n =
|
|
9428
|
-
|
|
9431
|
+
let n = Ot.find((e) => e.name === t) ?? e;
|
|
9432
|
+
Vt.current[t]?.add(st(n));
|
|
9429
9433
|
});
|
|
9430
9434
|
}, l = (e) => {
|
|
9431
|
-
s.forEach((t) =>
|
|
9435
|
+
s.forEach((t) => Vt.current[t]?.remove(e));
|
|
9432
9436
|
};
|
|
9433
9437
|
return e.addRow ? /* @__PURE__ */ X(V.List, {
|
|
9434
9438
|
name: t,
|
|
9435
|
-
initialValue:
|
|
9439
|
+
initialValue: Hn[t] ?? [],
|
|
9436
9440
|
rules: r ? [] : [{ validator: async (t, n = []) => {
|
|
9437
9441
|
if (!(n_(e.toggleEnabled) && e.toggleField && F.getFieldValue(e.toggleField))) {
|
|
9438
9442
|
if (a > 0 && n.length < a) throw Error(`Keep at least ${a} row${a > 1 ? "s" : ""}.`);
|
|
9439
9443
|
if (n_(e.requireOne) && n.some((e) => !v_(e))) throw Error("Fill at least one field in each added row.");
|
|
9440
9444
|
}
|
|
9441
9445
|
} }],
|
|
9442
|
-
children: (n, { add: s, remove: u, move: d }, { errors: f }) => (
|
|
9446
|
+
children: (n, { add: s, remove: u, move: d }, { errors: f }) => (Vt.current[t] = {
|
|
9443
9447
|
add: s,
|
|
9444
9448
|
remove: u,
|
|
9445
9449
|
move: d
|
|
@@ -9453,7 +9457,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9453
9457
|
md: e.col ?? 12,
|
|
9454
9458
|
className: "v1-addrow-header-label",
|
|
9455
9459
|
children: e.label
|
|
9456
|
-
},
|
|
9460
|
+
}, Cr(e)))
|
|
9457
9461
|
}),
|
|
9458
9462
|
n.map(({ key: r, name: i }) => /* @__PURE__ */ Z("div", {
|
|
9459
9463
|
className: "v1-addrow-item",
|
|
@@ -9469,7 +9473,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9469
9473
|
children: /* @__PURE__ */ X(no, {
|
|
9470
9474
|
gutter: [24, 0],
|
|
9471
9475
|
align: "top",
|
|
9472
|
-
children:
|
|
9476
|
+
children: Ar(e.fields, i, t, n_(e.sharedRowLabels), t)
|
|
9473
9477
|
})
|
|
9474
9478
|
})]
|
|
9475
9479
|
}, r)),
|
|
@@ -9492,16 +9496,16 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9492
9496
|
}))
|
|
9493
9497
|
}) : /* @__PURE__ */ X(no, {
|
|
9494
9498
|
gutter: [24, 0],
|
|
9495
|
-
children:
|
|
9499
|
+
children: Ar(e.fields, void 0, void 0, !1, t)
|
|
9496
9500
|
});
|
|
9497
|
-
},
|
|
9498
|
-
let n = e.name ?? e.id ?? String(t), r =
|
|
9501
|
+
}, Lr = (e) => Ot.filter((t) => t !== e && t.mergeInto && String(t.mergeInto) === String(e.name)), Rr = (e) => !!(e.mergeInto && Ot.some((t) => t !== e && String(t.name) === String(e.mergeInto))), Br = (e, t) => Lr(e).filter((e) => String(e.mergePosition ?? "bottom") === t), Vr = (e, t) => {
|
|
9502
|
+
let n = e.name ?? e.id ?? String(t), r = Fr(e), i = Br(e, "top"), a = Br(e, "bottom"), o = (e) => {
|
|
9499
9503
|
let t = /* @__PURE__ */ Z("div", {
|
|
9500
9504
|
className: "v1-merged-group",
|
|
9501
9505
|
children: [/* @__PURE__ */ X("div", {
|
|
9502
9506
|
className: "v1-merged-group-title",
|
|
9503
9507
|
children: e.label ?? e.name
|
|
9504
|
-
}),
|
|
9508
|
+
}), Fr(e)]
|
|
9505
9509
|
}, e.name), n = e.showIf?.field ? /* @__PURE__ */ X(m_, {
|
|
9506
9510
|
form: F,
|
|
9507
9511
|
showIf: e.showIf,
|
|
@@ -9530,11 +9534,11 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9530
9534
|
n_(e.allowCollapse) && /* @__PURE__ */ X(z, {
|
|
9531
9535
|
type: "text",
|
|
9532
9536
|
size: "small",
|
|
9533
|
-
"aria-expanded": !
|
|
9534
|
-
"aria-label":
|
|
9535
|
-
icon:
|
|
9537
|
+
"aria-expanded": !Jn(n),
|
|
9538
|
+
"aria-label": Jn(n) ? "Expand section" : "Collapse section",
|
|
9539
|
+
icon: Jn(n) ? /* @__PURE__ */ X(Jo, {}) : /* @__PURE__ */ X(uc, {}),
|
|
9536
9540
|
onClick: (e) => {
|
|
9537
|
-
e.stopPropagation(),
|
|
9541
|
+
e.stopPropagation(), Un(n);
|
|
9538
9542
|
}
|
|
9539
9543
|
})
|
|
9540
9544
|
]
|
|
@@ -9545,7 +9549,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9545
9549
|
children: ({ getFieldValue: t }) => {
|
|
9546
9550
|
let s = n_(e.toggleEnabled) && e.toggleField && !!t(e.toggleField);
|
|
9547
9551
|
return /* @__PURE__ */ Z("div", {
|
|
9548
|
-
style: { display:
|
|
9552
|
+
style: { display: Jn(n) || s ? "none" : "block" },
|
|
9549
9553
|
children: [
|
|
9550
9554
|
i.map(o),
|
|
9551
9555
|
r,
|
|
@@ -9561,7 +9565,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9561
9565
|
children: /* @__PURE__ */ Z("main", { children: [c.length > 0 && /* @__PURE__ */ X(wi, { items: c }), /* @__PURE__ */ Z("div", {
|
|
9562
9566
|
className: "v1-edit-page",
|
|
9563
9567
|
children: [
|
|
9564
|
-
|
|
9568
|
+
un && !_ && !xt && /* @__PURE__ */ X(Ia, {
|
|
9565
9569
|
className: "v1-card v1-edit-card v1-client-gate-card",
|
|
9566
9570
|
children: /* @__PURE__ */ Z(W, {
|
|
9567
9571
|
direction: "vertical",
|
|
@@ -9572,9 +9576,9 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9572
9576
|
icon: /* @__PURE__ */ X(pc, {}),
|
|
9573
9577
|
title: "Select Client"
|
|
9574
9578
|
}),
|
|
9575
|
-
|
|
9579
|
+
dn && /* @__PURE__ */ X(Zg, {
|
|
9576
9580
|
type: "secondary",
|
|
9577
|
-
children:
|
|
9581
|
+
children: dn
|
|
9578
9582
|
}),
|
|
9579
9583
|
/* @__PURE__ */ X(no, {
|
|
9580
9584
|
gutter: [16, 0],
|
|
@@ -9586,15 +9590,15 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9586
9590
|
allowClear: !0,
|
|
9587
9591
|
placeholder: "Select client",
|
|
9588
9592
|
style: { width: "100%" },
|
|
9589
|
-
value:
|
|
9593
|
+
value: Tt || void 0,
|
|
9590
9594
|
optionFilterProp: "label",
|
|
9591
|
-
options:
|
|
9595
|
+
options: Ye.map((e) => ({
|
|
9592
9596
|
value: e._id ?? e.id,
|
|
9593
9597
|
label: e.clientName ?? e.name ?? e.clientRefrenceId ?? e._id
|
|
9594
9598
|
})).filter((e) => e.value),
|
|
9595
|
-
onChange:
|
|
9596
|
-
popupRender:
|
|
9597
|
-
}),
|
|
9599
|
+
onChange: pn,
|
|
9600
|
+
popupRender: gn.footer ? (e) => /* @__PURE__ */ Z(Y, { children: [e, gn.footer] }) : void 0
|
|
9601
|
+
}), gn.modal]
|
|
9598
9602
|
})
|
|
9599
9603
|
})
|
|
9600
9604
|
]
|
|
@@ -9604,13 +9608,20 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9604
9608
|
className: "v1-page-inner",
|
|
9605
9609
|
children: [/* @__PURE__ */ X(ao, {
|
|
9606
9610
|
fullscreen: !0,
|
|
9607
|
-
spinning:
|
|
9611
|
+
spinning: Qt.busy || Jt.checking || !!Yt,
|
|
9608
9612
|
size: "large",
|
|
9609
|
-
tip:
|
|
9610
|
-
}), /* @__PURE__ */
|
|
9611
|
-
spinning: !
|
|
9613
|
+
tip: Qt.busy ? Qt.loadingText || "Reading the file…" : Yt || "Checking whether we already have this person…"
|
|
9614
|
+
}), /* @__PURE__ */ Z(ao, {
|
|
9615
|
+
spinning: !Pn && !mn,
|
|
9612
9616
|
description: "Loading form fields…",
|
|
9613
|
-
children: /* @__PURE__ */
|
|
9617
|
+
children: [je && /* @__PURE__ */ X(ja, {
|
|
9618
|
+
type: "error",
|
|
9619
|
+
showIcon: !0,
|
|
9620
|
+
message: je,
|
|
9621
|
+
style: { marginBottom: 16 },
|
|
9622
|
+
closable: !0,
|
|
9623
|
+
onClose: () => Me("")
|
|
9624
|
+
}), /* @__PURE__ */ Z(V, {
|
|
9614
9625
|
form: F,
|
|
9615
9626
|
layout: "vertical",
|
|
9616
9627
|
colon: !1,
|
|
@@ -9618,46 +9629,46 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9618
9629
|
onValuesChange: (e) => {
|
|
9619
9630
|
let t = Object.keys(e ?? {})[0];
|
|
9620
9631
|
if (!t) return;
|
|
9621
|
-
let n =
|
|
9622
|
-
On(n,
|
|
9632
|
+
let n = Ot.flatMap((e) => e.fields ?? []).find((e) => e?.field === t);
|
|
9633
|
+
On(n, Ot) && (Zt(xr(n)), setTimeout(() => Zt(null), 0));
|
|
9623
9634
|
},
|
|
9624
|
-
disabled:
|
|
9635
|
+
disabled: Qt.busy || Jt.checking || !!Yt,
|
|
9625
9636
|
requiredMark: (e, { required: t }) => /* @__PURE__ */ Z(Y, { children: [e, t && /* @__PURE__ */ X("span", {
|
|
9626
9637
|
className: "v1-required-mark",
|
|
9627
9638
|
children: " *"
|
|
9628
9639
|
})] }),
|
|
9629
|
-
onFinish:
|
|
9640
|
+
onFinish: dr,
|
|
9630
9641
|
onFinishFailed: (e) => {
|
|
9631
9642
|
pe({}), Sn(e, F, { root: oe() });
|
|
9632
9643
|
},
|
|
9633
9644
|
children: [
|
|
9634
|
-
|
|
9645
|
+
Pn && !k && /* @__PURE__ */ X(nr, {
|
|
9635
9646
|
form: F,
|
|
9636
|
-
groups:
|
|
9637
|
-
onJump:
|
|
9647
|
+
groups: Ot,
|
|
9648
|
+
onJump: $n
|
|
9638
9649
|
}),
|
|
9639
|
-
|
|
9650
|
+
Pn && Ot.filter((e) => !Rr(e)).map((e, t) => /* @__PURE__ */ X(g_, {
|
|
9640
9651
|
form: F,
|
|
9641
9652
|
group: e,
|
|
9642
9653
|
children: e.showIf?.field ? /* @__PURE__ */ X(m_, {
|
|
9643
9654
|
form: F,
|
|
9644
9655
|
showIf: e.showIf,
|
|
9645
|
-
render: () =>
|
|
9646
|
-
}) :
|
|
9656
|
+
render: () => Vr(e, t)
|
|
9657
|
+
}) : Vr(e, t)
|
|
9647
9658
|
}, e.name ?? `grp-${t}`)),
|
|
9648
|
-
|
|
9659
|
+
Pn && !yt && Ot.length === 0 && /* @__PURE__ */ X(ja, {
|
|
9649
9660
|
type: "info",
|
|
9650
9661
|
showIcon: !0,
|
|
9651
9662
|
message: k ? "No search configuration found." : "No form fields are configured."
|
|
9652
9663
|
}),
|
|
9653
|
-
|
|
9664
|
+
Pn && k && /* @__PURE__ */ X("div", {
|
|
9654
9665
|
className: "v1-search-form-actions",
|
|
9655
9666
|
children: /* @__PURE__ */ Z(W, {
|
|
9656
9667
|
size: 12,
|
|
9657
9668
|
children: [
|
|
9658
9669
|
/* @__PURE__ */ X(z, {
|
|
9659
|
-
onClick:
|
|
9660
|
-
disabled: !
|
|
9670
|
+
onClick: er,
|
|
9671
|
+
disabled: !Ot.length,
|
|
9661
9672
|
children: "Reset"
|
|
9662
9673
|
}),
|
|
9663
9674
|
/* @__PURE__ */ X(z, {
|
|
@@ -9667,7 +9678,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9667
9678
|
/* @__PURE__ */ X(z, {
|
|
9668
9679
|
type: "primary",
|
|
9669
9680
|
htmlType: "submit",
|
|
9670
|
-
disabled: Oe || !
|
|
9681
|
+
disabled: Oe || !Ot.length || ln,
|
|
9671
9682
|
loading: Oe,
|
|
9672
9683
|
children: A
|
|
9673
9684
|
})
|
|
@@ -9675,7 +9686,7 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9675
9686
|
})
|
|
9676
9687
|
})
|
|
9677
9688
|
]
|
|
9678
|
-
})
|
|
9689
|
+
})]
|
|
9679
9690
|
})]
|
|
9680
9691
|
}),
|
|
9681
9692
|
!k && /* @__PURE__ */ Z("div", {
|
|
@@ -9690,49 +9701,49 @@ var tv = Ta(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
|
|
|
9690
9701
|
onClick: () => S && E ? E() : Gt(j, { cancelPath: d }),
|
|
9691
9702
|
children: "Cancel"
|
|
9692
9703
|
}),
|
|
9693
|
-
|
|
9704
|
+
Kt.map((e, t) => /* @__PURE__ */ X(l_, {
|
|
9694
9705
|
form: F,
|
|
9695
|
-
groups:
|
|
9706
|
+
groups: Ot,
|
|
9696
9707
|
action: e,
|
|
9697
|
-
disabled: !
|
|
9708
|
+
disabled: !Pn || Oe || Nt > 0 || !Ot.length,
|
|
9698
9709
|
loading: Oe,
|
|
9699
9710
|
onFire: () => {
|
|
9700
|
-
|
|
9711
|
+
Wt.current || (Ut.current = e.afterSubmit ?? { mode: "stay" }, e.setValuesBeforeSubmit && F.setFieldsValue(e.setValuesBeforeSubmit), F.submit());
|
|
9701
9712
|
}
|
|
9702
9713
|
}, `${e.label ?? "action"}-${t}`)),
|
|
9703
9714
|
/* @__PURE__ */ X(u_, {
|
|
9704
9715
|
form: F,
|
|
9705
|
-
groups:
|
|
9716
|
+
groups: Ot,
|
|
9706
9717
|
onClick: () => {
|
|
9707
|
-
|
|
9718
|
+
Wt.current || (Ut.current = null, F.submit());
|
|
9708
9719
|
},
|
|
9709
|
-
disabled: !
|
|
9720
|
+
disabled: !Pn || Oe || Nt > 0 || !Ot.length,
|
|
9710
9721
|
loading: Oe,
|
|
9711
9722
|
children: A
|
|
9712
9723
|
})
|
|
9713
9724
|
]
|
|
9714
9725
|
})]
|
|
9715
9726
|
}),
|
|
9716
|
-
k &&
|
|
9727
|
+
k && Ne.searched && /* @__PURE__ */ X(Tg, {
|
|
9717
9728
|
moduleName: e,
|
|
9718
9729
|
breadcrumbItems: [],
|
|
9719
|
-
dataSource:
|
|
9720
|
-
fields:
|
|
9721
|
-
total:
|
|
9722
|
-
loading:
|
|
9723
|
-
current:
|
|
9724
|
-
pageSize:
|
|
9730
|
+
dataSource: Ne.rows,
|
|
9731
|
+
fields: Nr,
|
|
9732
|
+
total: Ne.total,
|
|
9733
|
+
loading: Ne.loading,
|
|
9734
|
+
current: Ie.current,
|
|
9735
|
+
pageSize: Ie.pageSize,
|
|
9725
9736
|
showViewToggle: !0,
|
|
9726
|
-
activeView:
|
|
9727
|
-
onViewChange:
|
|
9728
|
-
onPageChange:
|
|
9729
|
-
onPageSizeChange:
|
|
9737
|
+
activeView: sn,
|
|
9738
|
+
onViewChange: cn,
|
|
9739
|
+
onPageChange: ar,
|
|
9740
|
+
onPageSizeChange: sr,
|
|
9730
9741
|
showSearch: !1,
|
|
9731
|
-
tabs:
|
|
9732
|
-
selectedSource:
|
|
9733
|
-
onTabChange:
|
|
9734
|
-
actions:
|
|
9735
|
-
actionRules:
|
|
9742
|
+
tabs: Ue,
|
|
9743
|
+
selectedSource: Ve,
|
|
9744
|
+
onTabChange: ir,
|
|
9745
|
+
actions: Pr,
|
|
9746
|
+
actionRules: Ne.actionRules
|
|
9736
9747
|
})
|
|
9737
9748
|
]
|
|
9738
9749
|
})] })
|
|
@@ -16497,7 +16508,7 @@ function Mw({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
|
|
|
16497
16508
|
async function ct(t) {
|
|
16498
16509
|
if (!(f && await Promise.resolve().then(() => f(t)).catch(() => !1) === !1)) try {
|
|
16499
16510
|
re(!0), ae("");
|
|
16500
|
-
let r = _t(t, ye, {
|
|
16511
|
+
let r = _t(t, ye, { module: e }), i = _t(t, ye, {
|
|
16501
16512
|
indexed: !0,
|
|
16502
16513
|
module: e
|
|
16503
16514
|
});
|
|
@@ -16514,37 +16525,54 @@ function Mw({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
|
|
|
16514
16525
|
}
|
|
16515
16526
|
}
|
|
16516
16527
|
}
|
|
16517
|
-
|
|
16528
|
+
let a = [];
|
|
16529
|
+
if (!d?.useLegacyUpload && r.length > 0) try {
|
|
16530
|
+
console.log(`[Document-First Flow] Step 1: Uploading ${r.length} documents FIRST for ${e}/${n}...`);
|
|
16531
|
+
let t = await Wn(e, n, r);
|
|
16532
|
+
a = Tr(t), console.log("[Document-First Flow] Step 1: Documents uploaded successfully, documentIds:", a);
|
|
16533
|
+
} catch (t) {
|
|
16534
|
+
console.error(`[document-first] Document upload failed before updating ${e}:`, t);
|
|
16535
|
+
let n = Hi(ye, e, "edit", t?.data?.error || t?.data?.message || t?.message || "Failed to upload documents. Changes were not saved.");
|
|
16536
|
+
ae(n), J.error(n);
|
|
16537
|
+
return;
|
|
16538
|
+
}
|
|
16539
|
+
let o = (k || []).map((e) => String(e?.id ?? e?._id ?? "").trim()).filter(Boolean), s = Array.from(/* @__PURE__ */ new Set([...o, ...a])), u = {
|
|
16518
16540
|
...ot(t),
|
|
16519
|
-
...p ?? {}
|
|
16520
|
-
|
|
16521
|
-
|
|
16522
|
-
|
|
16523
|
-
await
|
|
16541
|
+
...p ?? {},
|
|
16542
|
+
...s.length > 0 ? { documentIds: s } : {}
|
|
16543
|
+
}, f;
|
|
16544
|
+
try {
|
|
16545
|
+
f = await $r(e, n, u, d?.useLegacyUpload ? [] : i);
|
|
16524
16546
|
} catch (e) {
|
|
16525
|
-
console.
|
|
16547
|
+
throw a.length > 0 && (console.warn("[Document-First Flow] updateRecord threw error, rolling back uploaded documents:", a), await Oi(a)), e;
|
|
16548
|
+
}
|
|
16549
|
+
if (f?.status === !1) {
|
|
16550
|
+
a.length > 0 && (console.warn("[Document-First Flow] updateRecord reported failure, rolling back uploaded documents:", a), await Oi(a));
|
|
16551
|
+
let t = Hi(ye, e, "edit", f?.error || f?.message || f?.data || "Failed to save changes.");
|
|
16552
|
+
ae(t), J.error(t);
|
|
16553
|
+
return;
|
|
16526
16554
|
}
|
|
16527
|
-
let
|
|
16555
|
+
let m;
|
|
16528
16556
|
try {
|
|
16529
16557
|
let t = await ai(e, n);
|
|
16530
|
-
|
|
16558
|
+
m = Array.isArray(t) ? t : t?.data;
|
|
16531
16559
|
} catch (e) {
|
|
16532
16560
|
console.warn("Could not re-read the document registry after save; no documents retired:", e);
|
|
16533
16561
|
}
|
|
16534
|
-
let
|
|
16562
|
+
let h = VC({
|
|
16535
16563
|
loaded: k,
|
|
16536
|
-
fresh:
|
|
16564
|
+
fresh: m,
|
|
16537
16565
|
values: t,
|
|
16538
16566
|
recordId: n
|
|
16539
16567
|
});
|
|
16540
|
-
if (Array.isArray(
|
|
16541
|
-
(await Promise.all(
|
|
16542
|
-
let e = new Set(
|
|
16543
|
-
A(
|
|
16568
|
+
if (Array.isArray(m) && h.length === 0 && A(m), h.length > 0) {
|
|
16569
|
+
(await Promise.all(h.map((e) => Si(e?.id ?? e?._id)))).some((e) => !e) && J.warning("Changes saved, but removing some document records failed.");
|
|
16570
|
+
let e = new Set(h.map((e) => String(e?.id ?? e?._id)));
|
|
16571
|
+
A(m.filter((t) => !e.has(String(t?.id ?? t?._id))));
|
|
16544
16572
|
}
|
|
16545
16573
|
rt.current = null, at((e) => e + 1);
|
|
16546
|
-
let
|
|
16547
|
-
if (
|
|
16574
|
+
let g = aa(ye, e, "edit");
|
|
16575
|
+
if (g && J.success(g), l) l(n, t);
|
|
16548
16576
|
else {
|
|
16549
16577
|
let e = tn(ye);
|
|
16550
16578
|
if (!e) Gt(y, { cancelPath: c });
|
|
@@ -16556,7 +16584,7 @@ function Mw({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
|
|
|
16556
16584
|
}
|
|
16557
16585
|
} catch (t) {
|
|
16558
16586
|
if (console.error(`Failed to update ${e}:`, t), lt(t)) return;
|
|
16559
|
-
let n = Hi(ye, e, "edit", t?.message);
|
|
16587
|
+
let n = Hi(ye, e, "edit", t?.data?.error || t?.data?.message || t?.message);
|
|
16560
16588
|
ae(n), J.error(n);
|
|
16561
16589
|
} finally {
|
|
16562
16590
|
re(!1);
|
|
@@ -17180,7 +17208,9 @@ function Mw({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
|
|
|
17180
17208
|
type: "error",
|
|
17181
17209
|
showIcon: !0,
|
|
17182
17210
|
message: ie,
|
|
17183
|
-
style: { marginBottom: 16 }
|
|
17211
|
+
style: { marginBottom: 16 },
|
|
17212
|
+
closable: !0,
|
|
17213
|
+
onClose: () => ae("")
|
|
17184
17214
|
}),
|
|
17185
17215
|
/* @__PURE__ */ Z(V, {
|
|
17186
17216
|
form: x,
|
|
@@ -23655,7 +23685,7 @@ async function Tk(e, t) {
|
|
|
23655
23685
|
};
|
|
23656
23686
|
}
|
|
23657
23687
|
async function Ek(e, t) {
|
|
23658
|
-
let { fetchFormGroupsPayload: n } = await import("./addFormApi-
|
|
23688
|
+
let { fetchFormGroupsPayload: n } = await import("./addFormApi-p8S8wcUu.js").then((e) => e.t), r = await n({
|
|
23659
23689
|
module: e,
|
|
23660
23690
|
id: t
|
|
23661
23691
|
});
|
|
@@ -48940,7 +48970,8 @@ var { Text: GI } = po, KI = [
|
|
|
48940
48970
|
targetModule: "submissions",
|
|
48941
48971
|
linkField: "documentIds",
|
|
48942
48972
|
fieldNames: [],
|
|
48943
|
-
backLink: !0
|
|
48973
|
+
backLink: !0,
|
|
48974
|
+
backLinkExcludeFieldNames: ["attestation"]
|
|
48944
48975
|
}
|
|
48945
48976
|
},
|
|
48946
48977
|
captureFileUrls: {
|
|
@@ -64401,7 +64432,7 @@ async function wK(e, t, n, r = 10, i = 0, a = {}) {
|
|
|
64401
64432
|
}
|
|
64402
64433
|
//#endregion
|
|
64403
64434
|
//#region src/index.js
|
|
64404
|
-
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-10-
|
|
64435
|
+
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-10-13T16:38:33.286Z");
|
|
64405
64436
|
var TK = VU, EK = Tj(zW), DK = Tj(VW), OK = Tj(nG), kK = Tj(mG), AK = Tj(CG), jK = Tj(EG), MK = Tj(kG), NK = Tj(MG), PK = Tj(PG), FK = Tj(qG), IK = Tj(YG);
|
|
64406
64437
|
//#endregion
|
|
64407
64438
|
export { D as ADMIN_API_URL, A as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, kv as ActivityNotesCard, vv as ActivityTab, xU as AddBatchCandidatePopup, tv as AddFormV1, VU as AdminDashboard, wR as AdminDashboardContent, TK as AdminPage, nv as AppAlert, it as AppButton, JA as AppShell, WD as ApprovalActionBar, Av as AssigneeAvatars, BA as AuthGuard, oS as BILLING_STATUS_FLOW, AE as BOOLEAN_API_KEYS, hT as BOOLEAN_PARSEABLE_API_KEYS, jv as BULK_UPLOAD_DEFAULT_ACCEPT, Mv as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, wi as Breadcrumb, OK as BulkUploadPage, Bv as BulkUploadPanel, o as CANDIDATES_URL, mO as CONTRACT_C2C, pO as CONTRACT_W2, n as CORE_URL, sb as CURRENCY_SYMBOLS, Wc as CalendarCard, OR as CoreThemeAdminApp, DR as CoreThemeAdminRoutes, Jl as CustomPagination, fD as DEFAULT_HOURS_POLICY, EE as DEFAULT_RESULTS_VIEW, rt as DETAIL_VIEW_MODE_OPTIONS, Nt as DETAIL_VIEW_MODE_VALUES, ma as DETAIL_VIEW_POPUP_PATH, ID as DayLogModal, $v as DescriptionBlock, uC as DetailHeaderCard, _C as DetailViewPage, Hz as DetailViewPopup, ax as DetailViewV1, ga as DocumentViewer, Xu as DynamicCards, sV as DynamicPopup, EU as DynamicPopupRoute, Jc as DynamicTabs, Mw as EditFormV1, XT as FIELD_TYPE_REGISTRY, aO as FINANCE_APPROVAL_CONFIG, QD as FINANCE_TYPE_CFO, ZD as FINANCE_TYPE_ONBOARDING_MANAGER, tO as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, $D as FINANCE_TYPE_ONLY_FINANCE, XD as FINANCE_TYPE_SUBMISSION_MANAGER, eO as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, Lk as FileListCard, uk as FinanceApprovalPanel, VS as FinanceAvatar, GS as FinanceBadge, KD as FinanceDayCell, NS as FinanceDivider, HS as FinanceEmployeeCell, AS as FinanceEmptyState, PS as FinanceEquation, RS as FinanceHistoryTimeline, kS as FinanceHoursGrid, OS as FinanceKpiRow, MS as FinanceLine, dD as FinanceListToolbar, KS as FinanceMarginBadge, WS as FinanceMoneyCell, YS as FinanceRecordsTable, qS as FinanceRowChevron, jS as FinanceSection, DS as FinanceStatusPill, US as FinanceTextCell, JD as FinanceTimesheetAnalysis, FS as FinanceWorkflowSteps, O as GATEWAY_URL, VL as GLOBAL_DEFAULT_FIELDS, pD as HOURS_MESSAGES, pA as Header, td as HierarchyUserFilter, s as JOBS_URL, EK as LegacyAdminPage, Tg as ListView, IK as LmsHomePage, FK as LmsTestForm, YA as Login, Oz as MailPopup, jK as ManageModules, MK as ManageSubmodules, Vw as ModuleRowActions, UD as NotesPanel, Ov as NotesTab, _E as OPEN_AS_OPTIONS, sS as PAYROLL_STATUS_FLOW, RL as PLATFORM_SCOPES, fU as POPUP_CONFIGS, i as PYOPS_URL, Jw as ParamCardView, eT as ParamListView, TD as PeriodBadgeTag, ZL as PlatformSection, Bz as PreviewPopup, wj as ProjectSelect, HD as ProofUploadPreview, zD as QuickLogBar, LD as QuickLogSelectionBar, TE as RESULTS_VIEW_OPTIONS, BU as RegionBanner, RD as RejectionReasonModal, r as SUBMISSIONS_URL, nD as SearchBuilderV1, IA as Sidebar, iD as StatusBadge, wD as StatusBadgeTag, DK as StickyNotesFullPage, oD as StylishDynamicTabs, cD as TemplateEditor, kK as TestForm, PK as TestingHomePage, uv as TimelineGroups, ND as TimesheetDayCell, En as TipTapEditor, zU as UserForm, AU as VendorShareDrawer, $p as ViewSummaryWidget, Jz as WizardPopup, a as ZINNEXT_URL, NK as ZinnextTableView, AK as ZinnextTestForm, ra as appNow, Jt as applyIntegrationStatus, Ol as approveSubmission, Lv as buildAcceptAttr, FE as buildBooleanRequest, xS as buildCsv, hS as buildDailyRows, jD as buildDayGradient, UO as buildRateHistoryEntries, vS as buildWeeklyRollup, g as clearSelectedProject, Rn as colors, NO as computeFinance, yD as computeHoursPolicy, yS as computeMarginBand, rr as conditionMatches, v as configureCoreTheme, si as configuredFieldLabel, SK as createAllWorkflowsListFetcher, gK as createMergedListFetcher, lK as createModuleListFetchAdapter, _K as createWorkflowStageListFetcher, cb as currencySymbol, DL as deactivateRegion, tK as defaultMergeRow, $n as deleteIntegrationConfig, Si as deleteModuleDocument, mS as deriveDayStats, xD as describeCapacity, TS as downloadCsv, Ur as evaluateShowIfWith, Tr as extractDocumentIds, DO as findEmployerRow, TO as flattenGroups, hb as formatAmount, Rt as formatApp, pe as formatAppDateTime, Iv as formatFileSize, WO as formatFinanceMoney, Zx as formatHours, gb as formatMoney, $x as formatPercent, _b as formatRate, Mn as generateModuleId, yn as getActivity, CK as getAllWorkflowsModuleList, Zi as getAppTimeZone, rS as getApprovalDate, Wi as getBgcIntegrationConfig, sa as getBgcIntegrationSummary, cS as getBillingActionStates, nE as getBooleanEligibleTypes, d as getCurrentRoleName, pt as getDetailDisplayDefaults, CS as getFieldLabel, QT as getFieldType, Fv as getFileExtension, uO as getFinanceApprovalConfig, Ek as getFormGroupsRaw, HL as getGlobalAiServices, zL as getGlobalDefaults, Vt as getIntegrationConfig, xe as getIntegrationConfigs, ge as getIntegrationSummary, Wl as getModuleConfig, ee as getModuleDataDetail, ai as getModuleDocuments, lS as getPayrollActionStates, Kl as getPeriodBadgeConfig, PL as getRegionDetailDefaults, mE as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, kl as getVMSApprove, wS as getValueStyle, wK as getWorkflowStageModuleList, uS as getWorkflowSteps, kL as grantPlatformAccess, jL as hasPlatformAccess, nS as humanizeEvent, Xg as i, SS as indexFieldConfig, eS as initialsOf, yT as insertTokenAtCursor, $T as isBooleanEligible, _T as isBooleanParsable, S as isTester, OL as listPlatformAccess, NL as listPlatformAudit, ML as listPlatformUsers, LL as listRegionRoles, IL as listRegionUsers, TL as listRegions, Ct as loadDetailDefaults, h as logout, fO as marginIncludesReferral, MO as matchLocationTax, HC as n, kO as normalizeContract, ce as normalizeDetailViewMode, Vv as r, ub as rateUnitLabel, fb as rateUnitShort, xE as readActionButtons, bD as reconcileHours, wL as regionPath, ZT as registerFieldType, pE as registerSearchPopup, jl as rejectSubmission, Bn as requiredWhenActive, Lr as requiredWhenRule, hv as resolveActivityMeta, PO as resolveAndCompute, _D as resolveDayKind, jO as resolveFinanceInputs, $G as resolveMergeKey, $G as resolveMergedListKey, yE as resolveOpenAs, dO as resolveRejectionReason, kE as resolveResultsSearchPlaceholder, OE as resolveResultsView, Dk as resolveSubmissionFinance, AL as revokePlatformAccess, Oi as rollbackModuleDocuments, $t as runDetailViewOpen, vn as saveBgcIntegrationConfig, UL as saveGlobalAiServices, BL as saveGlobalDefaults, Qn as saveIntegrationConfig, EL as saveRegion, FL as saveRegionDetailDefaults, c as setSelectedProject, lr as showIfConditions, vK as stageCountKey, XA as t, Vn as testIntegrationConnection, Ce as toApp, pb as toNumber, ve as tzLabel, vt as tzShortLabel, hE as unregisterSearchPopup, Wn as uploadModuleDocuments, ff as useDropdownFields, em as useDropdownValues, Bk as useEditForm, pf as useFieldConfig, mf as useFilterFields, Cf as useMenuPermission, Pw as useModuleActions, mC as useRecordRefresh, zk as useTabRows, vT as validateBooleanQuery, Rv as validateBulkFile, t as withAdminAppId, _ as withAppId, Tj as withAuthGuard };
|