@realtek/core-theme 0.0.329 → 0.0.330

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-lib/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, w as T, x as E, y as D } from "./authApi-BTcAcDDa.js";
3
- import { $ as O, $n as k, $r as ee, $t as A, A as j, An as M, Ar as te, At as N, B as ne, Bn as re, Br as P, Bt as ie, C as ae, Cn as oe, Cr as se, Ct as ce, D as le, Dn as ue, Dr as de, Dt as fe, E as pe, En as me, Er as he, Et as ge, F as _e, Fn as ve, Fr as ye, Ft as be, G as xe, Gn as Se, Gr as Ce, Gt as we, H as Te, Hn as Ee, Hr as De, Ht as Oe, I as ke, In as Ae, Ir as je, It as Me, J as Ne, Jn as Pe, Jr as Fe, Jt as Ie, K as Le, Kn as Re, Kr as ze, Kt as Be, L as Ve, Ln as He, Lr as Ue, Lt as We, M as Ge, Mn as Ke, Mr as qe, Mt as Je, N as Ye, Nn as Xe, Nr as Ze, Nt as Qe, O as $e, On as et, Or as tt, Ot as nt, P as rt, Pn as it, Pr as at, Pt as ot, Q as st, Qn as ct, Qr as lt, Qt as ut, R as dt, Rn as ft, Rr as pt, Rt as mt, S as ht, Sn as gt, Sr as _t, St as vt, T as yt, Tn as bt, Tr as xt, Tt as St, U as Ct, Un as wt, Ur as Tt, Ut as Et, V as Dt, Vn as Ot, Vr as kt, Vt as At, W as jt, Wn as Mt, Wr as Nt, Wt as Pt, X as Ft, Xn as It, Xr as Lt, Xt as Rt, Y as zt, Yn as Bt, Yr as Vt, Yt as Ht, Z as Ut, Zn as Wt, Zr as Gt, Zt as Kt, _ as qt, _i as Jt, _n as Yt, _r as Xt, _t as Zt, a as Qt, ai as $t, an as en, ar as tn, at as nn, b as rn, bn as an, br as on, bt as sn, c as cn, ci as ln, cn as un, cr as dn, ct as fn, d as pn, di as mn, dn as hn, dr as gn, dt as _n, ei as vn, en as yn, er as bn, et as xn, f as Sn, fi as Cn, fn as wn, fr as Tn, ft as En, g as Dn, gi as On, gn as kn, gr as An, gt as jn, h as Mn, hi as Nn, hn as Pn, hr as Fn, ht as In, i as Ln, ii as Rn, in as zn, ir as Bn, it as Vn, j as Hn, jn as Un, jr as Wn, jt as Gn, k as Kn, kn as qn, kr as Jn, kt as Yn, l as Xn, li as Zn, ln as Qn, lr as $n, lt as er, m as tr, mi as nr, mn as rr, mr as ir, mt as ar, n as or, ni as sr, nn as cr, nr as lr, nt as ur, o as dr, oi as fr, on as pr, or as mr, ot as hr, p as gr, pi as _r, pn as vr, pr as yr, pt as br, q as xr, qn as Sr, qr as Cr, qt as wr, r as Tr, ri as Er, rn as Dr, rr as Or, rt as kr, s as Ar, si as jr, sn as Mr, sr as Nr, st as Pr, t as Fr, ti as Ir, tn as Lr, tr as Rr, tt as zr, u as Br, ui as Vr, un as Hr, ur as Ur, ut as Wr, v as Gr, vn as Kr, vr as qr, vt as Jr, w as Yr, wn as Xr, wr as Zr, wt as Qr, x as $r, xn as ei, xr as ti, xt as ni, y as ri, yn as ii, yr as ai, yt as oi, z as si, zn as ci, zr as li, zt as ui } from "./Breadcrumb-CJxfmg-O.js";
2
+ import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, w as T, x as E, y as D } from "./authApi-DKDYE6Qv.js";
3
+ import { $ as O, $n as k, $r as ee, $t as A, A as j, An as te, Ar as ne, At as M, B as N, Bn as re, Br as P, Bt as ie, C as ae, Cn as oe, Cr as se, Ct as ce, D as le, Dn as ue, Dr as de, Dt as fe, E as pe, En as me, Er as he, Et as ge, F as _e, Fn as ve, Fr as ye, Ft as be, G as xe, Gn as Se, Gr as Ce, Gt as we, H as Te, Hn as Ee, Hr as De, Ht as Oe, I as ke, In as Ae, Ir as je, It as Me, J as Ne, Jn as Pe, Jr as Fe, Jt as Ie, K as Le, Kn as Re, Kr as ze, Kt as Be, L as Ve, Ln as He, Lr as Ue, Lt as We, M as Ge, Mn as Ke, Mr as qe, Mt as Je, N as Ye, Nn as Xe, Nr as Ze, Nt as Qe, O as $e, On as et, Or as tt, Ot as nt, P as rt, Pn as it, Pr as at, Pt as ot, Q as st, Qn as ct, Qr as lt, Qt as ut, R as dt, Rn as ft, Rr as pt, Rt as mt, S as ht, Sn as gt, Sr as _t, St as vt, T as yt, Tn as bt, Tr as xt, Tt as St, U as Ct, Un as wt, Ur as Tt, Ut as Et, V as Dt, Vn as Ot, Vr as kt, Vt as At, W as jt, Wn as Mt, Wr as Nt, Wt as Pt, X as Ft, Xn as It, Xr as Lt, Xt as Rt, Y as zt, Yn as Bt, Yr as Vt, Yt as Ht, Z as Ut, Zn as Wt, Zr as Gt, Zt as Kt, _ as qt, _i as Jt, _n as Yt, _r as Xt, _t as Zt, a as Qt, ai as $t, an as en, ar as tn, at as nn, b as rn, bn as an, br as on, bt as sn, c as cn, ci as ln, cn as un, cr as dn, ct as fn, d as pn, di as mn, dn as hn, dr as gn, dt as _n, ei as vn, en as yn, er as bn, et as xn, f as Sn, fi as Cn, fn as wn, fr as Tn, ft as En, g as Dn, gi as On, gn as kn, gr as An, gt as jn, h as Mn, hi as Nn, hn as Pn, hr as Fn, ht as In, i as Ln, ii as Rn, in as zn, ir as Bn, it as Vn, j as Hn, jn as Un, jr as Wn, jt as Gn, k as Kn, kn as qn, kr as Jn, kt as Yn, l as Xn, li as Zn, ln as Qn, lr as $n, lt as er, m as tr, mi as nr, mn as rr, mr as ir, mt as ar, n as or, ni as sr, nn as cr, nr as lr, nt as ur, o as dr, oi as fr, on as pr, or as mr, ot as hr, p as gr, pi as _r, pn as vr, pr as yr, pt as br, q as xr, qn as Sr, qr as Cr, qt as wr, r as Tr, ri as Er, rn as Dr, rr as Or, rt as kr, s as Ar, si as jr, sn as Mr, sr as Nr, st as Pr, t as Fr, ti as Ir, tn as Lr, tr as Rr, tt as zr, u as Br, ui as Vr, un as Hr, ur as Ur, ut as Wr, v as Gr, vn as Kr, vr as qr, vt as Jr, w as Yr, wn as Xr, wr as Zr, wt as Qr, x as $r, xn as ei, xr as ti, xt as ni, y as ri, yn as ii, yr as ai, yt as oi, z as si, zn as ci, zr as li, zt as ui } from "./Breadcrumb-TcOxjh0X.js";
4
4
  import { r as di } from "./diceCandidateMapper-CjMFuVFe.js";
5
5
  import { t as fi } from "./formGroupsCache-JeC59oNe.js";
6
- import { n as pi, r as mi } from "./addFormApi-Dv5Hy1Wj.js";
6
+ import { n as pi, r as mi } from "./addFormApi-BLEfWFiF.js";
7
7
  import hi, { Fragment as gi, createContext as _i, forwardRef as vi, useCallback as yi, useContext as bi, useEffect as F, useImperativeHandle as xi, useMemo as I, useRef as Si, useState as L } from "react";
8
8
  import { Alert as Ci, AutoComplete as wi, Avatar as Ti, Badge as Ei, Breadcrumb as Di, Button as R, Card as Oi, Checkbox as ki, Col as z, Collapse as Ai, DatePicker as ji, Divider as Mi, Drawer as Ni, Dropdown as Pi, Empty as Fi, Flex as Ii, Form as B, Input as V, InputNumber as Li, Layout as Ri, Mentions as zi, Menu as Bi, Modal as Vi, Pagination as Hi, Popconfirm as Ui, Popover as Wi, Progress as Gi, Radio as Ki, Result as qi, Row as Ji, Select as H, Skeleton as Yi, Slider as Xi, Space as U, Spin as Zi, Statistic as Qi, Steps as $i, Switch as W, Table as ea, Tabs as ta, Tag as G, TimePicker as na, Tooltip as K, Tree as ra, Typography as ia, Upload as aa, message as q } from "antd";
9
9
  import { AimOutlined as oa, ApartmentOutlined as sa, ApiOutlined as ca, AppstoreAddOutlined as la, AppstoreOutlined as ua, ArrowDownOutlined as da, ArrowLeftOutlined as fa, ArrowUpOutlined as pa, BankOutlined as ma, BellOutlined as ha, BgColorsOutlined as ga, BuildOutlined as _a, CalendarOutlined as va, CaretDownOutlined as ya, CaretUpOutlined as ba, CheckCircleFilled as xa, CheckCircleOutlined as Sa, CheckOutlined as Ca, ClearOutlined as wa, ClockCircleOutlined as Ta, CloseCircleFilled as Ea, CloseCircleOutlined as Da, CloseOutlined as Oa, CloudDownloadOutlined as ka, CloudUploadOutlined as Aa, CopyOutlined as ja, CrownOutlined as Ma, DashboardOutlined as Na, DatabaseOutlined as Pa, DeleteOutlined as Fa, DollarCircleFilled as Ia, DollarOutlined as La, DownOutlined as Ra, DownloadOutlined as za, EditOutlined as Ba, EnvironmentOutlined as Va, ExclamationCircleFilled as Ha, ExclamationCircleOutlined as Ua, ExportOutlined as Wa, EyeOutlined as Ga, FieldTimeOutlined as Ka, FileDoneOutlined as qa, FileExcelOutlined as Ja, FileImageOutlined as Ya, FileOutlined as Xa, FilePdfOutlined as Za, FileTextFilled as Qa, FileTextOutlined as $a, FileWordOutlined as eo, FilterOutlined as to, HistoryOutlined as no, HolderOutlined as ro, HomeOutlined as io, IdcardOutlined as ao, InboxOutlined as oo, InfoCircleOutlined as so, LaptopOutlined as co, LeftOutlined as lo, LinkOutlined as uo, LinkedinFilled as fo, LockOutlined as po, LogoutOutlined as mo, MailOutlined as ho, MenuOutlined as go, MergeCellsOutlined as _o, MessageOutlined as vo, MinusCircleOutlined as yo, MoreOutlined as bo, PaperClipOutlined as xo, PhoneOutlined as So, PlayCircleOutlined as Co, PlusOutlined as wo, ProfileOutlined as To, ProjectOutlined as Eo, RedoOutlined as Do, ReloadOutlined as Oo, RestOutlined as ko, RightOutlined as Ao, RiseOutlined as jo, SafetyCertificateOutlined as Mo, SafetyOutlined as No, SaveOutlined as Po, SearchOutlined as Fo, SendOutlined as Io, SettingOutlined as Lo, ShareAltOutlined as Ro, SnippetsOutlined as zo, SolutionOutlined as Bo, SwapOutlined as Vo, SyncOutlined as Ho, TableOutlined as Uo, TagsOutlined as Wo, TeamOutlined as Go, ThunderboltOutlined as Ko, ToolOutlined as qo, UndoOutlined as Jo, UnlockOutlined as Yo, UnorderedListOutlined as Xo, UpOutlined as Zo, UploadOutlined as Qo, UserAddOutlined as $o, UserOutlined as es, UserSwitchOutlined as ts, WarningOutlined as ns } from "@ant-design/icons";
@@ -231,17 +231,17 @@ function js({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
231
231
  } : {
232
232
  ...e,
233
233
  month: e.month - 1
234
- })), M = p ?? (() => y((e) => e.month === 11 ? {
234
+ })), te = p ?? (() => y((e) => e.month === 11 ? {
235
235
  year: e.year + 1,
236
236
  month: 0
237
237
  } : {
238
238
  ...e,
239
239
  month: e.month + 1
240
- })), te = Ds(Es(b.year, b.month, n), 7), N = {};
240
+ })), ne = Ds(Es(b.year, b.month, n), 7), M = {};
241
241
  t !== void 0 && (t || []).forEach((e) => {
242
- e?.date && (N[e.date] = e);
242
+ e?.date && (M[e.date] = e);
243
243
  });
244
- let ne = o ?? C, re = l ?? `${Ss[b.month]} ${b.year}`;
244
+ let N = o ?? C, re = l ?? `${Ss[b.month]} ${b.year}`;
245
245
  return /* @__PURE__ */ Y(Oi, {
246
246
  className: `calendar-card${c ? ` ${c}` : ""}`,
247
247
  title: /* @__PURE__ */ X("div", {
@@ -278,7 +278,7 @@ function js({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
278
278
  type: "text",
279
279
  icon: /* @__PURE__ */ Y(Ao, {}),
280
280
  size: "small",
281
- onClick: M,
281
+ onClick: te,
282
282
  disabled: h
283
283
  })
284
284
  })]
@@ -297,7 +297,7 @@ function js({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
297
297
  }),
298
298
  /* @__PURE__ */ Y("div", {
299
299
  className: "calendar-weeks",
300
- children: te.map((e, t) => /* @__PURE__ */ Y(Ji, {
300
+ children: ne.map((e, t) => /* @__PURE__ */ Y(Ji, {
301
301
  gutter: [6, 6],
302
302
  align: "top",
303
303
  className: "calendar-week-row",
@@ -308,7 +308,7 @@ function js({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
308
308
  }, t);
309
309
  let n = `${b.year}-${Ts(b.month + 1)}-${Ts(e.day)}`, a = e.day === _.getDate() && b.month === _.getMonth() && b.year === _.getFullYear();
310
310
  if (g) {
311
- let o = N[n] ?? null;
311
+ let o = M[n] ?? null;
312
312
  return r ? /* @__PURE__ */ Y(z, {
313
313
  flex: "1",
314
314
  children: r(n, o, {
@@ -366,9 +366,9 @@ function js({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
366
366
  })
367
367
  }, t))
368
368
  }),
369
- ne.length > 0 && /* @__PURE__ */ Y("div", {
369
+ N.length > 0 && /* @__PURE__ */ Y("div", {
370
370
  className: "calendar-legend",
371
- children: ne.map(({ label: e, color: t, icon: n }) => /* @__PURE__ */ X("div", {
371
+ children: N.map(({ label: e, color: t, icon: n }) => /* @__PURE__ */ X("div", {
372
372
  className: "calendar-legend-item",
373
373
  children: [n ? /* @__PURE__ */ Y("span", {
374
374
  className: "calendar-legend-badge",
@@ -1560,7 +1560,7 @@ function ml({ group: e, data: t }) {
1560
1560
  function hl(e) {
1561
1561
  if (!Ic(e)) return "-";
1562
1562
  let t = new Date(e);
1563
- return !Number.isNaN(t.getTime()) && /date|time/i.test(String(e)) ? M(t) : String(e);
1563
+ return !Number.isNaN(t.getTime()) && /date|time/i.test(String(e)) ? te(t) : String(e);
1564
1564
  }
1565
1565
  function gl({ group: e, data: t }) {
1566
1566
  let n = e.totalKey ?? "totalScore", r = e.maxKey ?? "maximumScore", i = e.statusKey ?? "status", a = e.attemptDateKey ?? "attemptDate", o = e.timeTakenKey ?? "timeTaken", s = e.rankKey ?? "rank", c = Number(Fc(t || {}, n) ?? 0), l = Number(Fc(t || {}, r) ?? 100) || 100, u = Math.max(0, Math.min(100, Math.round(c / l * 100))), d = ul(t, {
@@ -5313,7 +5313,7 @@ function Mm({ filters: e, onRemove: t, onClearAll: n }) {
5313
5313
  ]
5314
5314
  });
5315
5315
  }
5316
- function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [], breadcrumbItems: i = [], dataSource: a = [], className: o = "", initialPageSize: s = 10, onAction: c, onSummaryClick: u, rowKey: d, showSummaryButton: f = !1, summaryButtonLabel: m = "View Summary", summaryRoute: h, showFieldButton: g = !0, showFilterButton: _ = !0, fieldButtonLabel: y = "View Field", fieldButtonRoute: x, tabs: S, tabTitleOverrides: C = null, tableClassName: w = "job-list-table", fields: T = Em, fieldOverrides: D = null, extraFields: O = Em, listName: k = "", loading: ee = !1, total: A, current: j, pageSize: M, onPageChange: te, onPageSizeChange: N, onSearch: ne, toolbarExtra: re = null, showSearch: P = !0, searchPlaceholder: ie = "Min 3 Chars, press Enter to search", searchFields: ae = Em, showViewToggle: oe = !1, activeView: se = "list", onViewChange: ce, createAction: le, onRecordClick: ue, selectedRecordId: de, selectionMode: fe = "checkbox", compact: pe = !1, onSelectionChange: me, selectedSource: he, onTabChange: ge, fetchData: ve = Tu, responseMapper: ye = $d, queryParams: be = Dm, defaultVisibleColumnCount: xe = 6, showAdd: Se = !0, lockOuterPageScroll: Ce = !1 }) {
5316
+ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [], breadcrumbItems: i = [], dataSource: a = [], className: o = "", initialPageSize: s = 10, onAction: c, onSummaryClick: u, rowKey: d, showSummaryButton: f = !1, summaryButtonLabel: m = "View Summary", summaryRoute: h, showFieldButton: g = !0, showFilterButton: _ = !0, fieldButtonLabel: y = "View Field", fieldButtonRoute: x, tabs: S, tabTitleOverrides: C = null, tableClassName: w = "job-list-table", fields: T = Em, fieldOverrides: D = null, extraFields: O = Em, listName: k = "", loading: ee = !1, total: A, current: j, pageSize: te, onPageChange: ne, onPageSizeChange: M, onSearch: N, toolbarExtra: re = null, showSearch: P = !0, searchPlaceholder: ie = "Min 3 Chars, press Enter to search", searchFields: ae = Em, showViewToggle: oe = !1, activeView: se = "list", onViewChange: ce, createAction: le, onRecordClick: ue, selectedRecordId: de, selectionMode: fe = "checkbox", compact: pe = !1, onSelectionChange: me, selectedSource: he, onTabChange: ge, fetchData: ve = Tu, responseMapper: ye = $d, queryParams: be = Dm, defaultVisibleColumnCount: xe = 6, showAdd: Se = !0, lockOuterPageScroll: Ce = !1 }) {
5317
5317
  let we = ds(), Te = us(), Ee = ei(e), [De, Oe] = L(() => /* @__PURE__ */ new Set()), [ke, Ae] = L(() => /* @__PURE__ */ new Set());
5318
5318
  F(() => {
5319
5319
  if ($p(Ee) !== "submissions") {
@@ -5335,7 +5335,7 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5335
5335
  e = !0;
5336
5336
  };
5337
5337
  }, [Ee]);
5338
- let je = !!Ce, { canView: Me, canAdd: Ne, canEdit: Pe, canDelete: Fe } = Qu(Ee), Ie = JSON.stringify(be ?? Dm), Le = I(() => be ?? Dm, [Ie]), [Re] = ps(), ze = wm(Re), [Be, Ve] = L("all"), [He, Ue] = L(""), [We, Ge] = L(""), [Ke, qe] = L(!1), [Je, Ye] = L([]), [Xe, Ze] = L([]), [Qe, $e] = L([]), [et, tt] = L(0), [nt, rt] = L({
5338
+ let je = !!Ce, { canView: Me, canAdd: Ne, canEdit: Pe, canDelete: Fe } = Qu(Ee), Ie = JSON.stringify(be ?? Dm), Le = I(() => be ?? Dm, [Ie]), [Re] = ps(), ze = wm(Re), [Be, Ve] = L(() => String(he ?? "").trim() || "all"), [He, Ue] = L(""), [We, Ge] = L(""), [Ke, qe] = L(!1), [Je, Ye] = L([]), [Xe, Ze] = L([]), [Qe, $e] = L([]), [et, tt] = L(0), [nt, rt] = L({
5339
5339
  current: ze,
5340
5340
  pageSize: s
5341
5341
  }), [it, at] = L({
@@ -5364,7 +5364,7 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5364
5364
  n && ue?.(e, n);
5365
5365
  }, bt = (e, t) => {
5366
5366
  Ze(e), $e(t), me?.(e, t);
5367
- }, [xt, St] = L(a), [Ct, wt] = L(a.length), [Tt, Et] = L([]), [Dt, Ot] = L([]), [kt, At] = L(""), [jt, Mt] = L([]), [Nt, Pt] = L([]), [Ft, It] = L(!1), [Lt, Rt] = L(null), [zt, Bt] = L(null), [Vt, Ht] = L(!1), Ut = !!(te || N || ne), Wt = Ut ? a : xt, Gt = Ut ? A ?? 0 : Ct, Kt = Ut ? T : Dt, qt = I(() => Wt.some((e) => Qf(e)), [Wt]), Jt = I(() => Kt.some((e) => Zf(e)), [Kt]), Yt = qt || Jt ? "card" : se, Xt = n.length > 0 ? n : jt, Zt = r.length > 0 ? r : Nt, Qt = I(() => pm(Xt), [Xt]), $t = I(() => new Map(fm(Qt).map((e) => [e.key, e])), [Qt]), en = I(() => dm(Qt, (e) => {
5367
+ }, [xt, St] = L(a), [Ct, wt] = L(a.length), [Tt, Et] = L([]), [Dt, Ot] = L([]), [kt, At] = L(""), [jt, Mt] = L([]), [Nt, Pt] = L([]), [Ft, It] = L(!1), [Lt, Rt] = L(null), [zt, Bt] = L(null), [Vt, Ht] = L(!1), Ut = !!(ne || M || N), Wt = Ut ? a : xt, Gt = Ut ? A ?? 0 : Ct, Kt = Ut ? T : Dt, qt = I(() => Wt.some((e) => Qf(e)), [Wt]), Jt = I(() => Kt.some((e) => Zf(e)), [Kt]), Yt = qt || Jt ? "card" : se, Xt = n.length > 0 ? n : jt, Zt = r.length > 0 ? r : Nt, Qt = I(() => pm(Xt), [Xt]), $t = I(() => new Map(fm(Qt).map((e) => [e.key, e])), [Qt]), en = I(() => dm(Qt, (e) => {
5368
5368
  let t = ed(e);
5369
5369
  return t === "add" && !Ne || t === "edit" && !Pe || t === "delete" && !Fe || !_e(e.permission, Ee) || e.showInList === !1 ? !1 : !e.allowedTabs || e.allowedTabs.some((e) => $p(e) === $p(Be));
5370
5370
  }), [
@@ -5411,9 +5411,9 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5411
5411
  at({
5412
5412
  sort: r,
5413
5413
  sortDir: n
5414
- }), typeof ne == "function" && ne(r, n), sn();
5414
+ }), typeof N == "function" && N(r, n), sn();
5415
5415
  }, [
5416
- ne,
5416
+ N,
5417
5417
  sn,
5418
5418
  it.sort,
5419
5419
  it.sortDir
@@ -5425,7 +5425,7 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5425
5425
  });
5426
5426
  }, [ze]), F(() => {
5427
5427
  Ut && rt((e) => {
5428
- let t = Cm(j ?? e.current), n = Number(M) > 0 ? Number(M) : e.pageSize;
5428
+ let t = Cm(j ?? e.current), n = Number(te) > 0 ? Number(te) : e.pageSize;
5429
5429
  return e.current === t && e.pageSize === n ? e : {
5430
5430
  current: t,
5431
5431
  pageSize: n
@@ -5433,7 +5433,7 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5433
5433
  });
5434
5434
  }, [
5435
5435
  j,
5436
- M,
5436
+ te,
5437
5437
  Ut
5438
5438
  ]);
5439
5439
  let fn = Te.state?.refreshTimestamp;
@@ -5601,13 +5601,18 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5601
5601
  S
5602
5602
  ]);
5603
5603
  F(() => {
5604
- if (!Vn.length) return;
5604
+ if (!Vn.length || !((Tt?.length ?? 0) > 0 || Array.isArray(S) && S.length > 0)) return;
5605
5605
  let e = tm(Be);
5606
5606
  if (!Vn.some((t, n) => tm(em(t, n)) === e)) {
5607
5607
  let e = em(Vn[0], 0);
5608
5608
  e && Ve(String(e));
5609
5609
  }
5610
- }, [Be, Vn]), F(() => {
5610
+ }, [
5611
+ Be,
5612
+ Vn,
5613
+ Tt,
5614
+ S
5615
+ ]), F(() => {
5611
5616
  if (he === void 0 || !Vn.length) return;
5612
5617
  let e = Vn.find((e, t) => tm(em(e, t)) === tm(he));
5613
5618
  if (!e) return;
@@ -6151,15 +6156,15 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6151
6156
  pageSize: nt.pageSize,
6152
6157
  total: Pn,
6153
6158
  onChange: (e, t) => {
6154
- if (Ut && typeof te == "function") {
6155
- te(e, t ?? nt.pageSize);
6159
+ if (Ut && typeof ne == "function") {
6160
+ ne(e, t ?? nt.pageSize);
6156
6161
  return;
6157
6162
  }
6158
6163
  on(e);
6159
6164
  },
6160
6165
  onPageSizeChange: (e) => {
6161
- if (Ut && typeof N == "function") {
6162
- N(e);
6166
+ if (Ut && typeof M == "function") {
6167
+ M(e);
6163
6168
  return;
6164
6169
  }
6165
6170
  rt({
@@ -6908,8 +6913,8 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
6908
6913
  open: !1,
6909
6914
  docs: [],
6910
6915
  index: 0
6911
- }), [j, M] = L(null), te = Si([]), N = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", re = e.lookupFilterValueFrom ? dh(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], P = e.lookupFilterValueFrom && N ? [...n.slice(0, 2), ...dh(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], ie = B.useWatch(re, t), ae = B.useWatch(P, t), se = Ah(ae) ? ie : ae, le = e.disabledByField ? Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.disabledByField] : [e.disabledByField] : ["__noop_disabled_watch__"], ue = B.useWatch(le, t), de = e.disabledIf?.field ? dh(e.disabledIf.field) : ["__noop_disabled_if__"], fe = e.disabledIf?.field && N ? [...n.slice(0, 2), ...dh(e.disabledIf.field)] : ["__noop_disabled_if_row__"], pe = B.useWatch(de, t), me = B.useWatch(fe, t), he = e.disabledIf?.field ? Ln(e.disabledIf, Ah(me) ? pe : me) : !1, ge = e.optionsFromField || "", _e = ge ? dh(ge) : ["__noop_options_from__"], ve = ge && N && (!p || p.has(ge)) ? [...n.slice(0, 2), ...dh(ge)] : ["__noop_options_from_row__"], ye = B.useWatch(_e, t), be = B.useWatch(ve, t), xe = Ah(be) ? ye : be, Se = ch(e.prefillWhenExclusive) && e.prefillWhen?.length ? e.prefillWhen : null, Ce = B.useWatch((e) => Se ? JSON.stringify(Ct(Se).map((t) => {
6912
- let r = (t) => t.reduce((e, t) => e == null ? e : e[t], e), i = N && (!p || p.has(t)) ? r([...n.slice(0, 2), ...dh(t)]) : void 0;
6916
+ }), [j, te] = L(null), ne = Si([]), M = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", re = e.lookupFilterValueFrom ? dh(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], P = e.lookupFilterValueFrom && M ? [...n.slice(0, 2), ...dh(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], ie = B.useWatch(re, t), ae = B.useWatch(P, t), se = Ah(ae) ? ie : ae, le = e.disabledByField ? Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.disabledByField] : [e.disabledByField] : ["__noop_disabled_watch__"], ue = B.useWatch(le, t), de = e.disabledIf?.field ? dh(e.disabledIf.field) : ["__noop_disabled_if__"], fe = e.disabledIf?.field && M ? [...n.slice(0, 2), ...dh(e.disabledIf.field)] : ["__noop_disabled_if_row__"], pe = B.useWatch(de, t), me = B.useWatch(fe, t), he = e.disabledIf?.field ? Ln(e.disabledIf, Ah(me) ? pe : me) : !1, ge = e.optionsFromField || "", _e = ge ? dh(ge) : ["__noop_options_from__"], ve = ge && M && (!p || p.has(ge)) ? [...n.slice(0, 2), ...dh(ge)] : ["__noop_options_from_row__"], ye = B.useWatch(_e, t), be = B.useWatch(ve, t), xe = Ah(be) ? ye : be, Se = ch(e.prefillWhenExclusive) && e.prefillWhen?.length ? e.prefillWhen : null, Ce = B.useWatch((e) => Se ? JSON.stringify(Ct(Se).map((t) => {
6917
+ let r = (t) => t.reduce((e, t) => e == null ? e : e[t], e), i = M && (!p || p.has(t)) ? r([...n.slice(0, 2), ...dh(t)]) : void 0;
6913
6918
  return (Ah(i) ? r(dh(t)) : i) ?? null;
6914
6919
  })) : "", {
6915
6920
  form: t,
@@ -6920,13 +6925,13 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
6920
6925
  return Ct(Se).forEach((n, r) => {
6921
6926
  t[n] = e[r];
6922
6927
  }), t;
6923
- }, [Ce]), Ee = bi(xh), De = e.exclusiveInGroup && N ? [n[0]] : ["__noop_exclusive_watch__"], Oe = B.useWatch(De, t), Ae = I(() => {
6924
- if (!e.exclusiveInGroup || !N || !Array.isArray(Oe)) return !1;
6928
+ }, [Ce]), Ee = bi(xh), De = e.exclusiveInGroup && M ? [n[0]] : ["__noop_exclusive_watch__"], Oe = B.useWatch(De, t), Ae = I(() => {
6929
+ if (!e.exclusiveInGroup || !M || !Array.isArray(Oe)) return !1;
6925
6930
  let t = n[1], r = n[n.length - 1];
6926
6931
  return Oe.some((e, n) => n !== t && ch(e?.[r]));
6927
6932
  }, [
6928
6933
  e.exclusiveInGroup,
6929
- N,
6934
+ M,
6930
6935
  Oe,
6931
6936
  n
6932
6937
  ]), je = e.lookupFilterValueFrom ? s[e.lookupFilterValueFrom] : void 0, Me = Ah(je) ? se : je, Ne = Si(ke);
@@ -6943,7 +6948,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
6943
6948
  errors: []
6944
6949
  }]);
6945
6950
  }, [Me]);
6946
- let Pe = e.locationCountryFrom ? dh(e.locationCountryFrom) : ["__noop_loc_country__"], Fe = e.locationCountryFrom && N ? [...n.slice(0, 2), ...dh(e.locationCountryFrom)] : ["__noop_loc_country_row__"], Ie = B.useWatch(Pe, t), Le = B.useWatch(Fe, t), Re = Ah(Le) ? Ie : Le, ze = e.locationStateFrom ? dh(e.locationStateFrom) : ["__noop_loc_state__"], Be = e.locationStateFrom && N ? [...n.slice(0, 2), ...dh(e.locationStateFrom)] : ["__noop_loc_state_row__"], He = B.useWatch(ze, t), Ue = B.useWatch(Be, t), We = Ah(Ue) ? He : Ue, Ge = e.dataSource === "locationMaster" && (e.locationLevel === "state" && Ah(Re) || e.locationLevel === "city" && (Ah(Re) || Ah(We))), Ke = h || !!e.disabled || he || (e.disabledByField ? ch(ue) : !1) || !!f || Ee || Ae || Ge;
6951
+ let Pe = e.locationCountryFrom ? dh(e.locationCountryFrom) : ["__noop_loc_country__"], Fe = e.locationCountryFrom && M ? [...n.slice(0, 2), ...dh(e.locationCountryFrom)] : ["__noop_loc_country_row__"], Ie = B.useWatch(Pe, t), Le = B.useWatch(Fe, t), Re = Ah(Le) ? Ie : Le, ze = e.locationStateFrom ? dh(e.locationStateFrom) : ["__noop_loc_state__"], Be = e.locationStateFrom && M ? [...n.slice(0, 2), ...dh(e.locationStateFrom)] : ["__noop_loc_state_row__"], He = B.useWatch(ze, t), Ue = B.useWatch(Be, t), We = Ah(Ue) ? He : Ue, Ge = e.dataSource === "locationMaster" && (e.locationLevel === "state" && Ah(Re) || e.locationLevel === "city" && (Ah(Re) || Ah(We))), Ke = h || !!e.disabled || he || (e.disabledByField ? ch(ue) : !1) || !!f || Ee || Ae || Ge;
6947
6952
  F(() => {
6948
6953
  if (m === "location") {
6949
6954
  let t = !1;
@@ -7004,7 +7009,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7004
7009
  optionsRequireExtraValue: e.optionsRequireExtraValue,
7005
7010
  optionsHierarchyParentField: e.optionsHierarchyParentField,
7006
7011
  optionsHierarchySelfFrom: e.optionsHierarchySelfFrom
7007
- }, r = ne(n);
7012
+ }, r = N(n);
7008
7013
  r.length && t.set("extraFields", r.join(","));
7009
7014
  let a = await v(E, `/admin/lookup-dropdown-values?${t}`);
7010
7015
  i = a?.data ?? a ?? [], i = si(i, n, { source: "AddFormV1" });
@@ -7032,7 +7037,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7032
7037
  })) : [];
7033
7038
  }
7034
7039
  }
7035
- n || (te.current = Array.isArray(i) ? i : [], _(uh(te.current)));
7040
+ n || (ne.current = Array.isArray(i) ? i : [], _(uh(ne.current)));
7036
7041
  } catch (t) {
7037
7042
  console.error(`[AddFormV1] Failed to fetch options for "${e.field}":`, t), n || _([]);
7038
7043
  } finally {
@@ -7122,14 +7127,14 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7122
7127
  let n = e.formatter ? Gh(t.target.value, e.formatter) : t.target.value;
7123
7128
  if (dt) {
7124
7129
  let { cleaned: e, error: t } = vt(n, dt, "change");
7125
- M(t), n = e;
7130
+ te(t), n = e;
7126
7131
  }
7127
7132
  lt(n);
7128
7133
  },
7129
7134
  onBlur: (t) => {
7130
7135
  if (dt) {
7131
7136
  let { cleaned: e, error: n } = vt(t.target.value, dt, "blur");
7132
- M(n), e !== t.target.value && lt(e);
7137
+ te(n), e !== t.target.value && lt(e);
7133
7138
  }
7134
7139
  e.checkDuplicateOnBlur && String(t.target.value ?? "").trim() && l?.(e);
7135
7140
  },
@@ -7141,7 +7146,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7141
7146
  if (!t.test(n)) {
7142
7147
  e.preventDefault();
7143
7148
  let t = `${dt.title} — invalid character.`;
7144
- M(t), setTimeout(() => M((e) => e === t ? null : e), 1800);
7149
+ te(t), setTimeout(() => te((e) => e === t ? null : e), 1800);
7145
7150
  }
7146
7151
  },
7147
7152
  maxLength: dt.maxLength ?? ct.maxLength
@@ -7195,8 +7200,8 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7195
7200
  let r = a ? [...n.slice(0, 2), ...dh(e)] : dh(e);
7196
7201
  t.setFieldValue(r, null);
7197
7202
  });
7198
- else if (te.current.length > 0) {
7199
- let i = e.valueField ?? "_id", o = te.current.find((e) => Ch(e, i) === r || e._id === r || e.id === r || e.value === r);
7203
+ else if (ne.current.length > 0) {
7204
+ let i = e.valueField ?? "_id", o = ne.current.find((e) => Ch(e, i) === r || e._id === r || e.id === r || e.value === r);
7200
7205
  o && e.autofillFrom.forEach(({ optionKey: e, targetField: r }) => {
7201
7206
  let i = Ch(o, e) ?? o.extraData?.[e] ?? null, s = a ? [...n.slice(0, 2), ...dh(r)] : dh(r);
7202
7207
  t.setFieldValue(s, i);
@@ -7237,7 +7242,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7237
7242
  onChange: (e) => {
7238
7243
  if (dt) {
7239
7244
  let { error: t } = vt(e, dt, "change");
7240
- M(t);
7245
+ te(t);
7241
7246
  }
7242
7247
  lt(e);
7243
7248
  }
@@ -7555,7 +7560,7 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7555
7560
  F(() => (n && p(n), () => {
7556
7561
  n && b();
7557
7562
  }), [n]);
7558
- let D = l === "search", O = u ?? (D ? "Search" : "Create"), k = ds(), ee = us(), M = Si(null), te = Si(null), N = fs(), [ne] = ps(), [P] = B.useForm();
7563
+ let D = l === "search", O = u ?? (D ? "Search" : "Create"), k = ds(), ee = us(), te = Si(null), ne = Si(null), M = fs(), [N] = ps(), [P] = B.useForm();
7559
7564
  xi(E, () => ({
7560
7565
  submit: () => P.submit(),
7561
7566
  validate: () => P.validateFields(),
@@ -7573,7 +7578,7 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7573
7578
  }), [ke, Ae] = L({
7574
7579
  current: 1,
7575
7580
  pageSize: 10
7576
- }), [je, Me] = L({}), [Pe, Fe] = L("internal"), [Re, ze] = L([]), [Ve, He] = L({}), [Ue, We] = L([]), [Ke, qe] = L(r ?? ""), [Xe, Ze] = L(i ?? ""), [Qe, et] = L(null), [tt, rt] = L(!1), [it, at] = L(null), [ot, st] = L(() => /* @__PURE__ */ new Set()), ct = e ? ue : a ?? ah, lt = e ? me : o, ft = e ? ve : s, [mt, gt] = L(""), _t = N?.jobId && N.jobId !== "_" ? N.jobId : ne.get("jobId") || "";
7581
+ }), [je, Me] = L({}), [Pe, Fe] = L("internal"), [Re, ze] = L([]), [Ve, He] = L({}), [Ue, We] = L([]), [Ke, qe] = L(r ?? ""), [Xe, Ze] = L(i ?? ""), [Qe, et] = L(null), [tt, rt] = L(!1), [it, at] = L(null), [ot, st] = L(() => /* @__PURE__ */ new Set()), ct = e ? ue : a ?? ah, lt = e ? me : o, ft = e ? ve : s, [mt, gt] = L(""), _t = M?.jobId && M.jobId !== "_" ? M.jobId : N.get("jobId") || "";
7577
7582
  F(() => {
7578
7583
  if (r || _ || !_t) return;
7579
7584
  let e = !1;
@@ -7847,7 +7852,7 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7847
7852
  ]);
7848
7853
  let en = I(() => {
7849
7854
  if (!h) return null;
7850
- let e = ne.get("candidateId") || "", t = ne.get("submissionId") || "", n = String(ne.get("isFromSubmission")) === "true", r = N.jobId && N.jobId !== "_" ? N.jobId : ne.get("jobId") || "", i = n && t ? {
7855
+ let e = N.get("candidateId") || "", t = N.get("submissionId") || "", n = String(N.get("isFromSubmission")) === "true", r = M.jobId && M.jobId !== "_" ? M.jobId : N.get("jobId") || "", i = n && t ? {
7851
7856
  module: "submissions",
7852
7857
  id: t
7853
7858
  } : e ? {
@@ -7860,8 +7865,8 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7860
7865
  };
7861
7866
  }, [
7862
7867
  h,
7863
- ne,
7864
- N
7868
+ N,
7869
+ M
7865
7870
  ]);
7866
7871
  F(() => {
7867
7872
  let e = en?.source;
@@ -7969,10 +7974,10 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7969
7974
  let i = xt.filter((e) => ch(e.addRow) && e.skillMatchField);
7970
7975
  if (i.length === 0) return;
7971
7976
  let a = e || `inputs:${n}:${r}`, o;
7972
- if (M.current === a && te.current ? o = te.current : (o = e ? Lm(e) : void 0, (!o || typeof o.then != "function") && n && r && (o = Rm({
7977
+ if (te.current === a && ne.current ? o = ne.current : (o = e ? Lm(e) : void 0, (!o || typeof o.then != "function") && n && r && (o = Rm({
7973
7978
  jobId: n,
7974
7979
  applicantId: r
7975
- }).catch(() => [])), M.current = a, te.current = o), !o || typeof o.then != "function") return;
7980
+ }).catch(() => [])), te.current = a, ne.current = o), !o || typeof o.then != "function") return;
7976
7981
  let s = !1;
7977
7982
  return o.then((e) => {
7978
7983
  if (s || !Array.isArray(e) || e.length === 0) return;
@@ -8412,14 +8417,14 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8412
8417
  hidden: !0,
8413
8418
  noStyle: !0,
8414
8419
  children: /* @__PURE__ */ Y(ki, {})
8415
- })] }) : A, M = i.inline ? {
8420
+ })] }) : A, te = i.inline ? {
8416
8421
  flex: `${Number(t.combineWidth) > 0 ? Number(t.combineWidth) : 1} 1 0`,
8417
8422
  maxWidth: "none"
8418
- } : void 0, te = t.autoFillFromApi ? /* @__PURE__ */ Y(vh, {
8423
+ } : void 0, ne = t.autoFillFromApi ? /* @__PURE__ */ Y(vh, {
8419
8424
  form: P,
8420
8425
  config: t.autoFillFromApi,
8421
8426
  watchPath: c
8422
- }, `${t.field}-autoFillFromApi`) : null, N = t.prefillWhen?.length ? /* @__PURE__ */ Y(_h, {
8427
+ }, `${t.field}-autoFillFromApi`) : null, M = t.prefillWhen?.length ? /* @__PURE__ */ Y(_h, {
8423
8428
  form: P,
8424
8429
  rules: t.prefillWhen,
8425
8430
  watchPaths: jt(t.prefillWhen, c, nn, p),
@@ -8427,8 +8432,8 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8427
8432
  resetOnNoMatch: t.prefillWhenReset !== !1
8428
8433
  }, `${t.field}-prefillWhen`) : null;
8429
8434
  if (t.show === 0) return /* @__PURE__ */ X(gi, { children: [
8430
- N,
8431
- te,
8435
+ M,
8436
+ ne,
8432
8437
  /* @__PURE__ */ Y(B.Item, {
8433
8438
  name: s,
8434
8439
  hidden: !0,
@@ -8436,28 +8441,28 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8436
8441
  children: /* @__PURE__ */ Y("input", { type: "hidden" })
8437
8442
  })
8438
8443
  ] }, t.field);
8439
- let ne = !i.inline && or(t).length > 0, re = (e) => ne ? Ar(t, b, (t) => e(Tr(t, p(t.field)))) : b;
8440
- return Mn(t.showIf) || ne ? /* @__PURE__ */ X(gi, { children: [
8441
- N,
8442
- te,
8444
+ let N = !i.inline && or(t).length > 0, re = (e) => N ? Ar(t, b, (t) => e(Tr(t, p(t.field)))) : b;
8445
+ return Mn(t.showIf) || N ? /* @__PURE__ */ X(gi, { children: [
8446
+ M,
8447
+ ne,
8443
8448
  /* @__PURE__ */ Y(B.Item, {
8444
8449
  shouldUpdate: !0,
8445
8450
  noStyle: !0,
8446
8451
  children: ({ getFieldValue: e }) => !Mn(t.showIf) || jn(t.showIf, e, p) ? /* @__PURE__ */ Y(z, {
8447
8452
  xs: 24,
8448
8453
  md: re(e),
8449
- style: M,
8454
+ style: te,
8450
8455
  className: i.inline ? "v1-combine-cell" : void 0,
8451
8456
  children: j
8452
8457
  }) : null
8453
8458
  })
8454
8459
  ] }, t.field) : /* @__PURE__ */ X(gi, { children: [
8455
- N,
8456
- te,
8460
+ M,
8461
+ ne,
8457
8462
  /* @__PURE__ */ Y(z, {
8458
8463
  xs: 24,
8459
8464
  md: b,
8460
- style: M,
8465
+ style: te,
8461
8466
  className: i.inline ? "v1-combine-cell" : void 0,
8462
8467
  children: j
8463
8468
  })
@@ -9125,7 +9130,7 @@ function ug(e) {
9125
9130
  return lg(e);
9126
9131
  }
9127
9132
  function dg(e) {
9128
- return M(e, ci());
9133
+ return te(e, ci());
9129
9134
  }
9130
9135
  //#endregion
9131
9136
  //#region src/components/detail/timeline.jsx
@@ -9738,7 +9743,7 @@ function Ig() {
9738
9743
  function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel: i = "Back", templateLabel: a = "Download Sample Template", templateTitle: o = "Sample template", templateHint: s = "Pre-filled with the exact column names the importer expects. Do not rename or reorder the columns.", instructions: c = [], accept: l = Og, maxSizeMB: u = 10, onDownloadTemplate: d, onUpload: f, renderResult: p, extraSidebar: m }) {
9739
9744
  let h = Si(null), [g, _] = L(!1), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(null), [w, T] = L(null), [E, D] = L(null), [O, k] = L(0), ee = I(() => l.map((e) => e.toLowerCase()), [l]), A = I(() => Pg(ee), [ee]), j = yi(() => {
9740
9745
  C(null), T(null), D(null), _(!1), k((e) => e + 1);
9741
- }, []), M = yi(async () => {
9746
+ }, []), te = yi(async () => {
9742
9747
  if (d) {
9743
9748
  y(!0);
9744
9749
  try {
@@ -9749,7 +9754,7 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9749
9754
  y(!1);
9750
9755
  }
9751
9756
  }
9752
- }, [d]), te = yi(async (e) => {
9757
+ }, [d]), ne = yi(async (e) => {
9753
9758
  if (!e || b) return;
9754
9759
  k((e) => e + 1);
9755
9760
  let t = Fg(e, {
@@ -9777,9 +9782,9 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9777
9782
  u,
9778
9783
  f,
9779
9784
  b
9780
- ]), N = () => {
9785
+ ]), M = () => {
9781
9786
  b || h.current?.click();
9782
- }, ne = [
9787
+ }, N = [
9783
9788
  "bulk-upload-dropzone",
9784
9789
  g ? "is-dragging" : "",
9785
9790
  b ? "is-busy" : "",
@@ -9843,17 +9848,17 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9843
9848
  tabIndex: b ? -1 : 0,
9844
9849
  "aria-disabled": b,
9845
9850
  "aria-label": "Upload the filled file — click to browse, or drop a file here",
9846
- className: ne,
9847
- onClick: N,
9851
+ className: N,
9852
+ onClick: M,
9848
9853
  onKeyDown: (e) => {
9849
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), N());
9854
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), M());
9850
9855
  },
9851
9856
  onDragOver: (e) => {
9852
9857
  e.preventDefault(), b || _(!0);
9853
9858
  },
9854
9859
  onDragLeave: () => _(!1),
9855
9860
  onDrop: (e) => {
9856
- e.preventDefault(), _(!1), te(e.dataTransfer.files?.[0]);
9861
+ e.preventDefault(), _(!1), ne(e.dataTransfer.files?.[0]);
9857
9862
  },
9858
9863
  children: [
9859
9864
  /* @__PURE__ */ Y(Ig, {}),
@@ -9896,7 +9901,7 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9896
9901
  hidden: !0,
9897
9902
  type: "file",
9898
9903
  accept: A,
9899
- onChange: (e) => te(e.target.files?.[0])
9904
+ onChange: (e) => ne(e.target.files?.[0])
9900
9905
  }, O),
9901
9906
  S ? /* @__PURE__ */ X("div", {
9902
9907
  className: `bulk-upload-file ${w ? "is-error" : ""}`,
@@ -9964,7 +9969,7 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9964
9969
  block: !0,
9965
9970
  icon: /* @__PURE__ */ Y(za, {}),
9966
9971
  loading: v,
9967
- onClick: M,
9972
+ onClick: te,
9968
9973
  className: "bulk-upload-template-btn",
9969
9974
  children: a
9970
9975
  })
@@ -10312,7 +10317,7 @@ function c_(e) {
10312
10317
  return r_(e) ? "" : n_[String(e).toUpperCase()] ?? String(e);
10313
10318
  }
10314
10319
  function l_(e) {
10315
- return r_(e) ? "" : M(e);
10320
+ return r_(e) ? "" : te(e);
10316
10321
  }
10317
10322
  function u_({ start: e, end: t, sym: n = "", unit: r } = {}) {
10318
10323
  return r_(e) || Number(e) <= 0 ? "" : `${n}${!r_(t) && Number(t) > 0 ? `${e} - ${t}` : `${e}`}${r_(r) ? "" : `/${r}`}`;
@@ -10922,7 +10927,7 @@ function bv({ field: e, record: t }) {
10922
10927
  }
10923
10928
  case "date":
10924
10929
  case "datetime": {
10925
- if (y === "datetime" || c.withTime === !0) return _(m((c.dateFormat ? qn(n, c.dateFormat, l) : M(n, l)) || mv(n, s, u)));
10930
+ if (y === "datetime" || c.withTime === !0) return _(m((c.dateFormat ? qn(n, c.dateFormat, l) : te(n, l)) || mv(n, s, u)));
10926
10931
  let e = c.dateFormat || l.dateFormat;
10927
10932
  return _(m(qn(n, e, l) || mv(n, s, u)));
10928
10933
  }
@@ -11241,7 +11246,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11241
11246
  return {
11242
11247
  amount: c != null && !Number.isNaN(c) ? `${K_(r)}${Q_(c)}` : "—",
11243
11248
  unit: J_(a),
11244
- when: o && rs(o).isValid() ? M(o) : "",
11249
+ when: o && rs(o).isValid() ? te(o) : "",
11245
11250
  by: s == null ? "" : x[String(s)] || C[String(s)] || ""
11246
11251
  };
11247
11252
  }, A = I(() => {
@@ -11273,10 +11278,10 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11273
11278
  fields: t.fields.filter((e) => !n.some((t) => String(e.field ?? "").startsWith(`${t}.`)))
11274
11279
  } : t;
11275
11280
  }).filter((e) => e.fields.length) : T;
11276
- }, [T, A]), te = I(() => {
11281
+ }, [T, A]), ne = I(() => {
11277
11282
  let e = new Set(A.map((e) => e.key)), t = i.find((t) => Cv(t.appendHistory) && [t.historyField, ...t.historyFields || []].some((t) => t && e.has(t)));
11278
11283
  return t?.label ?? t?.name ?? "Rate Details";
11279
- }, [i, A]), N = e === "job", ne = I(() => N ? Tv(i) : null, [N, i]), P = () => {
11284
+ }, [i, A]), M = e === "job", N = I(() => M ? Tv(i) : null, [M, i]), P = () => {
11280
11285
  d(!1), p("");
11281
11286
  }, ie = async () => {
11282
11287
  if (!f.trim()) {
@@ -11511,7 +11516,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11511
11516
  })]
11512
11517
  }, r);
11513
11518
  }, Ee = (e, t) => {
11514
- let n = e.name ?? e.id ?? String(t), r = ne ? e.fields.filter((e) => e.field !== ne.key) : e.fields;
11519
+ let n = e.name ?? e.id ?? String(t), r = N ? e.fields.filter((e) => e.field !== N.key) : e.fields;
11515
11520
  return r.length ? e.addRow ? Te(e, t, r) : /* @__PURE__ */ Y(Oi, {
11516
11521
  size: "small",
11517
11522
  className: "v1-card v1-detail-card",
@@ -11529,7 +11534,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11529
11534
  className: "v1-card v1-detail-card",
11530
11535
  title: /* @__PURE__ */ Y(Nv, {
11531
11536
  icon: /* @__PURE__ */ Y(no, {}),
11532
- title: te
11537
+ title: ne
11533
11538
  }),
11534
11539
  children: A.map((e, t) => /* @__PURE__ */ X("div", {
11535
11540
  className: `v1-rh-section${t > 0 ? " v1-rh-section--gap" : ""}`,
@@ -11596,7 +11601,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11596
11601
  return ke(e) && A.length > 0 && n.push(De()), n;
11597
11602
  }),
11598
11603
  A.length > 0 && !j.some(ke) && De(),
11599
- N && ne?.value && /* @__PURE__ */ Y(Oi, {
11604
+ M && N?.value && /* @__PURE__ */ Y(Oi, {
11600
11605
  size: "small",
11601
11606
  className: "v1-card v1-detail-card",
11602
11607
  title: /* @__PURE__ */ Y(Nv, {
@@ -11621,7 +11626,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11621
11626
  rows: 10,
11622
11627
  value: f,
11623
11628
  onChange: (e) => p(e.target.value),
11624
- placeholder: ne.hidePlaceholder ? void 0 : ne.placeholder,
11629
+ placeholder: N.hidePlaceholder ? void 0 : N.placeholder,
11625
11630
  style: {
11626
11631
  fontSize: 13,
11627
11632
  lineHeight: 1.65,
@@ -11648,7 +11653,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11648
11653
  children: "Cancel"
11649
11654
  })]
11650
11655
  })]
11651
- }) : /* @__PURE__ */ Y(Pv, { value: ne.value })
11656
+ }) : /* @__PURE__ */ Y(Pv, { value: N.value })
11652
11657
  })
11653
11658
  ]
11654
11659
  })
@@ -12806,7 +12811,7 @@ function mb({ events: e = [], emptyState: t }) {
12806
12811
  }) : null]
12807
12812
  }), /* @__PURE__ */ X("div", {
12808
12813
  className: "fin-tl__meta",
12809
- children: [e?.at ? /* @__PURE__ */ Y("span", { children: M(e.at) }) : null, e?.at ? /* @__PURE__ */ Y("span", {
12814
+ children: [e?.at ? /* @__PURE__ */ Y("span", { children: te(e.at) }) : null, e?.at ? /* @__PURE__ */ Y("span", {
12810
12815
  className: "fin-tl__rel",
12811
12816
  children: pb(e.at)
12812
12817
  }) : null]
@@ -13137,15 +13142,15 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13137
13142
  t = !0;
13138
13143
  };
13139
13144
  }, [j, u]);
13140
- let M = I(() => wy(ee.signature === j ? ee.groups : {}), [ee, j]), te = I(() => my(k, m, { aux: M }), [
13145
+ let te = I(() => wy(ee.signature === j ? ee.groups : {}), [ee, j]), ne = I(() => my(k, m, { aux: te }), [
13141
13146
  k,
13142
13147
  m,
13143
- M
13148
+ te
13144
13149
  ]);
13145
13150
  F(() => {
13146
- te && s && s(te);
13147
- }, [te]);
13148
- let { eyebrow: N, title: ne = "-", status: P, titleIds: ie = [], meta: ae = [], ids: se = [], tabs: ce = [], stats: le = [], timestamp: ue = null } = te ?? {}, { canAdd: de, canEdit: fe, canDelete: pe } = Qu(e), me = I(() => kb(m, t), [m, t]), he = Qg(ce, {
13151
+ ne && s && s(ne);
13152
+ }, [ne]);
13153
+ let { eyebrow: M, title: N = "-", status: P, titleIds: ie = [], meta: ae = [], ids: se = [], tabs: ce = [], stats: le = [], timestamp: ue = null } = ne ?? {}, { canAdd: de, canEdit: fe, canDelete: pe } = Qu(e), me = I(() => kb(m, t), [m, t]), he = Qg(ce, {
13149
13154
  id: t,
13150
13155
  moduleName: e,
13151
13156
  record: me
@@ -13194,7 +13199,7 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13194
13199
  let t = e.allowedTabs ?? [];
13195
13200
  return !t.length || t.some((e) => Nb(e) === Nb(Ee)) || ve && t.some((e) => Nb(e) === Nb(ve)) ? !0 : !t.some((e) => De.has(Nb(e))) && !ve;
13196
13201
  }, ke = xe.filter((e) => e.detailPlacement === "primary" && Se(e) && Oe(e)), Ae = xe.filter((e) => e.detailPlacement !== "primary" && Se(e) && Oe(e));
13197
- if (!te) return null;
13202
+ if (!ne) return null;
13198
13203
  let je = (n) => {
13199
13204
  let r = [...ke, ...Ae].find((e) => e.key === n);
13200
13205
  if (r?.actionType === "document" && r.documentField) {
@@ -13313,7 +13318,7 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13313
13318
  children: [/* @__PURE__ */ X("div", {
13314
13319
  className: "fin-dh__identity",
13315
13320
  children: [/* @__PURE__ */ Y(_b, {
13316
- name: ne,
13321
+ name: N,
13317
13322
  size: "lg"
13318
13323
  }), /* @__PURE__ */ X("div", {
13319
13324
  className: "fin-dh__who",
@@ -13321,11 +13326,11 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13321
13326
  className: "fin-dh__name-row",
13322
13327
  children: [/* @__PURE__ */ Y("h2", {
13323
13328
  className: "fin-dh__name",
13324
- children: ne || "Details"
13329
+ children: N || "Details"
13325
13330
  }), i ? /* @__PURE__ */ Y(rb, { status: i }) : null]
13326
- }), N ? /* @__PURE__ */ Y("span", {
13331
+ }), M ? /* @__PURE__ */ Y("span", {
13327
13332
  className: "fin-dh__designation",
13328
- children: N
13333
+ children: M
13329
13334
  }) : null]
13330
13335
  })]
13331
13336
  }), o.length ? /* @__PURE__ */ Y("div", {
@@ -13363,16 +13368,16 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13363
13368
  children: [/* @__PURE__ */ X("div", {
13364
13369
  className: "znx-dh-left",
13365
13370
  children: [
13366
- N && /* @__PURE__ */ Y("div", {
13371
+ M && /* @__PURE__ */ Y("div", {
13367
13372
  className: "znx-dh-eyebrow",
13368
- children: N
13373
+ children: M
13369
13374
  }),
13370
13375
  /* @__PURE__ */ X("div", {
13371
13376
  className: "znx-dh-titlerow",
13372
13377
  children: [
13373
13378
  /* @__PURE__ */ Y("span", {
13374
13379
  className: "znx-dh-title",
13375
- children: ne
13380
+ children: N
13376
13381
  }),
13377
13382
  ie.map((e) => /* @__PURE__ */ X("span", {
13378
13383
  className: "znx-dh-titleid",
@@ -14209,7 +14214,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14209
14214
  open: !1,
14210
14215
  docs: [],
14211
14216
  index: 0
14212
- }), [A, j] = L(null), [M, te] = L(0), N = Si([]), re = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", P = e.lookupFilterValueFrom ? Gn(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], ie = e.lookupFilterValueFrom && re ? [...n.slice(0, 2), ...Gn(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], ae = B.useWatch(P, t), se = B.useWatch(ie, t), le = dx(se) ? ae : se, ue = e.lookupFilterValueFrom ? l[e.lookupFilterValueFrom] : void 0, de = dx(ue) ? le : ue, fe = Si(ke);
14217
+ }), [A, j] = L(null), [te, ne] = L(0), M = Si([]), re = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", P = e.lookupFilterValueFrom ? Gn(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], ie = e.lookupFilterValueFrom && re ? [...n.slice(0, 2), ...Gn(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], ae = B.useWatch(P, t), se = B.useWatch(ie, t), le = dx(se) ? ae : se, ue = e.lookupFilterValueFrom ? l[e.lookupFilterValueFrom] : void 0, de = dx(ue) ? le : ue, fe = Si(ke);
14213
14218
  F(() => {
14214
14219
  if (!e.lookupFilterField || !e.lookupFilterValueFrom) return;
14215
14220
  let r = fe.current;
@@ -14301,7 +14306,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14301
14306
  optionsRequireExtraValue: e.optionsRequireExtraValue,
14302
14307
  optionsHierarchyParentField: e.optionsHierarchyParentField,
14303
14308
  optionsHierarchySelfFrom: e.optionsHierarchySelfFrom
14304
- }, i = ne(n);
14309
+ }, i = N(n);
14305
14310
  i.length && t.set("extraFields", i.join(","));
14306
14311
  let a = await v(E, `/admin/lookup-dropdown-values?${t}`);
14307
14312
  r = a?.data ?? a ?? [], r = si(r, n, { source: "EditFormV1" });
@@ -14329,7 +14334,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14329
14334
  })) : [];
14330
14335
  }
14331
14336
  }
14332
- n || (N.current = Array.isArray(r) ? r : [], y(mx(N.current)));
14337
+ n || (M.current = Array.isArray(r) ? r : [], y(mx(M.current)));
14333
14338
  } catch (t) {
14334
14339
  console.error(`[EditFormV1] Failed to fetch options for "${e.field}":`, t), n || y([]);
14335
14340
  } finally {
@@ -14362,7 +14367,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14362
14367
  e.optionsRequireExtraValue,
14363
14368
  e.optionsHierarchyParentField,
14364
14369
  e.optionsHierarchySelfFrom,
14365
- M,
14370
+ te,
14366
14371
  e.locationLevel,
14367
14372
  e.locationCountryFrom,
14368
14373
  e.locationStateFrom,
@@ -14403,7 +14408,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14403
14408
  scopeValues: l,
14404
14409
  ownValue: r,
14405
14410
  onDone: (r, i) => {
14406
- te((e) => e + 1);
14411
+ ne((e) => e + 1);
14407
14412
  let a = Ht(e) !== "array" && !e.multiSelect && !e.multiple;
14408
14413
  r === "create" && i != null && a && ((e.clearGroupOnChange || e.linkedClearField) && $r(t, e, n, m), ft(Lr(e) ? { value: i } : i));
14409
14414
  }
@@ -14490,8 +14495,8 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14490
14495
  let r = a ? [...n.slice(0, 2), ...Gn(e)] : Gn(e);
14491
14496
  t.setFieldValue(r, null);
14492
14497
  });
14493
- else if (N.current.length > 0) {
14494
- let i = e.valueField ?? "_id", o = N.current.find((e) => yx(e, i) === r || e._id === r || e.id === r || e.value === r);
14498
+ else if (M.current.length > 0) {
14499
+ let i = e.valueField ?? "_id", o = M.current.find((e) => yx(e, i) === r || e._id === r || e.id === r || e.value === r);
14495
14500
  o && e.autofillFrom.forEach(({ optionKey: e, targetField: r }) => {
14496
14501
  let i = yx(o, e) ?? o.extraData?.[e] ?? null, s = a ? [...n.slice(0, 2), ...Gn(r)] : Gn(r);
14497
14502
  t.setFieldValue(s, i);
@@ -14825,7 +14830,7 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
14825
14830
  t = !0;
14826
14831
  };
14827
14832
  }, [e, n]);
14828
- let [D, O] = L(!1), [k, ee] = L(""), [M, te] = L(!1), [ne, P] = L(""), [ae, oe] = L(null), [se, ce] = L(() => /* @__PURE__ */ new Set()), [le, ue] = L(""), de = i || le, [me, he] = L({});
14833
+ let [D, O] = L(!1), [k, ee] = L(""), [te, ne] = L(!1), [N, P] = L(""), [ae, oe] = L(null), [se, ce] = L(() => /* @__PURE__ */ new Set()), [le, ue] = L(""), de = i || le, [me, he] = L({});
14829
14834
  F(() => {
14830
14835
  re();
14831
14836
  }, []), F(() => {
@@ -14951,7 +14956,7 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
14951
14956
  }), Me = I(() => {
14952
14957
  let e = {};
14953
14958
  return ve.forEach((t) => {
14954
- t.addRow && (e[t.name] = N(t));
14959
+ t.addRow && (e[t.name] = M(t));
14955
14960
  }), Pt(ke, e);
14956
14961
  }, [ve, ke]), Pe = {
14957
14962
  jobs: {
@@ -15144,7 +15149,7 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15144
15149
  }
15145
15150
  async function Xe(t) {
15146
15151
  if (!(f && await Promise.resolve().then(() => f(t)).catch(() => !1) === !1)) try {
15147
- te(!0), P("");
15152
+ ne(!0), P("");
15148
15153
  let r = Ie(t, ve, {
15149
15154
  indexed: !0,
15150
15155
  module: e
@@ -15188,7 +15193,7 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15188
15193
  let n = Br(ve, e, "edit", t?.message);
15189
15194
  P(n), q.error(n);
15190
15195
  } finally {
15191
- te(!1);
15196
+ ne(!1);
15192
15197
  }
15193
15198
  }
15194
15199
  function Ze(e) {
@@ -15320,35 +15325,35 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15320
15325
  }),
15321
15326
  A
15322
15327
  ]
15323
- }) : k, M = g ? /* @__PURE__ */ X(J, { children: [j, /* @__PURE__ */ Y(B.Item, {
15328
+ }) : k, te = g ? /* @__PURE__ */ X(J, { children: [j, /* @__PURE__ */ Y(B.Item, {
15324
15329
  name: r === void 0 ? _[_.length - 1] : [r, _[_.length - 1]],
15325
15330
  valuePropName: "checked",
15326
15331
  hidden: !0,
15327
15332
  noStyle: !0,
15328
15333
  children: /* @__PURE__ */ Y(ki, {})
15329
- })] }) : j, te = t.prefillWhen?.length ? /* @__PURE__ */ Y(ox, {
15334
+ })] }) : j, ne = t.prefillWhen?.length ? /* @__PURE__ */ Y(ox, {
15330
15335
  form: y,
15331
15336
  rules: t.prefillWhen,
15332
15337
  watchPaths: jt(t.prefillWhen, u, nn, h),
15333
15338
  targetPath: u,
15334
15339
  resetOnNoMatch: t.prefillWhenReset !== !1
15335
- }, `${t.field}-prefillWhen`) : null, N = !o.inline && or(t).length > 0, ne = (e) => N ? Ar(t, x, (t) => e(Tr(t, h(t.field)))) : x;
15336
- return ot(t.showIf) || N ? /* @__PURE__ */ X(hi.Fragment, { children: [te, /* @__PURE__ */ Y(B.Item, {
15340
+ }, `${t.field}-prefillWhen`) : null, M = !o.inline && or(t).length > 0, N = (e) => M ? Ar(t, x, (t) => e(Tr(t, h(t.field)))) : x;
15341
+ return ot(t.showIf) || M ? /* @__PURE__ */ X(hi.Fragment, { children: [ne, /* @__PURE__ */ Y(B.Item, {
15337
15342
  shouldUpdate: !0,
15338
15343
  noStyle: !0,
15339
15344
  children: ({ getFieldValue: e }) => !ot(t.showIf) || at(t.showIf, e, h) ? /* @__PURE__ */ Y(z, {
15340
15345
  xs: 24,
15341
- md: ne(e),
15346
+ md: N(e),
15342
15347
  style: w,
15343
15348
  className: o.inline ? "v1-combine-cell" : void 0,
15344
- children: M
15349
+ children: te
15345
15350
  }) : null
15346
- })] }, t.field) : /* @__PURE__ */ X(hi.Fragment, { children: [te, /* @__PURE__ */ Y(z, {
15351
+ })] }, t.field) : /* @__PURE__ */ X(hi.Fragment, { children: [ne, /* @__PURE__ */ Y(z, {
15347
15352
  xs: 24,
15348
15353
  md: x,
15349
15354
  style: w,
15350
15355
  className: o.inline ? "v1-combine-cell" : void 0,
15351
- children: M
15356
+ children: te
15352
15357
  })] }, t.field);
15353
15358
  }, lt = (t) => {
15354
15359
  let r = typeof t.field == "string" && t.field.includes(".") ? t.field.split(".") : [t.field], a = !!t.editablePermission && !_e(t.editablePermission, e), o = /* @__PURE__ */ Y(bx, {
@@ -15765,10 +15770,10 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15765
15770
  message: k,
15766
15771
  style: { marginBottom: 16 }
15767
15772
  }),
15768
- ne && /* @__PURE__ */ Y(Ci, {
15773
+ N && /* @__PURE__ */ Y(Ci, {
15769
15774
  type: "error",
15770
15775
  showIcon: !0,
15771
- message: ne,
15776
+ message: N,
15772
15777
  style: { marginBottom: 16 }
15773
15778
  }),
15774
15779
  /* @__PURE__ */ X(B, {
@@ -15813,8 +15818,8 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15813
15818
  form: y,
15814
15819
  groups: ve,
15815
15820
  onClick: () => y.submit(),
15816
- disabled: D || M || Ce > 0,
15817
- loading: M,
15821
+ disabled: D || te || Ce > 0,
15822
+ loading: te,
15818
15823
  children: s
15819
15824
  })]
15820
15825
  })]
@@ -16338,7 +16343,7 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16338
16343
  let g = ds(), _ = us(), [v, y] = L("all"), [b, x] = L(""), [S, C] = L([]), [w, T] = L([]), [E, D] = L({
16339
16344
  current: 1,
16340
16345
  pageSize: 10
16341
- }), [O, k] = L([]), [ee, A] = L(!1), j = Si(null), M = n.filter((e) => !e.maxSelect || S.length <= e.maxSelect).map((e) => ({
16346
+ }), [O, k] = L([]), [ee, A] = L(!1), j = Si(null), te = n.filter((e) => !e.maxSelect || S.length <= e.maxSelect).map((e) => ({
16342
16347
  key: e.key ?? e.name,
16343
16348
  label: e.label ?? e.name,
16344
16349
  danger: e.danger ?? !1,
@@ -16360,32 +16365,32 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16360
16365
  } });
16361
16366
  }
16362
16367
  }
16363
- })), te = typeof o == "number" && typeof s == "number", N = te ? {
16368
+ })), ne = typeof o == "number" && typeof s == "number", M = ne ? {
16364
16369
  current: o,
16365
16370
  pageSize: s
16366
- } : E, ne = I(() => t.map((e) => ({
16371
+ } : E, N = I(() => t.map((e) => ({
16367
16372
  ...e,
16368
16373
  key: cS(e),
16369
16374
  label: sS(e)
16370
- })).filter((e) => e.key && e.label && !e.tableHidden), [t]), re = O.length ? O : ne.map((e) => e.key), P = I(() => {
16375
+ })).filter((e) => e.key && e.label && !e.tableHidden), [t]), re = O.length ? O : N.map((e) => e.key), P = I(() => {
16371
16376
  if (u) return r;
16372
16377
  let e = b.toLowerCase();
16373
- return !e || e.length < 3 ? r : r.filter((t) => ne.some((n) => String(lS(t, n.key)).toLowerCase().includes(e)));
16378
+ return !e || e.length < 3 ? r : r.filter((t) => N.some((n) => String(lS(t, n.key)).toLowerCase().includes(e)));
16374
16379
  }, [
16375
16380
  r,
16376
- ne,
16381
+ N,
16377
16382
  u,
16378
16383
  b
16379
16384
  ]), ie = typeof a == "number" ? a : b.trim() ? P.length : r.length, ae = I(() => {
16380
- if (te) return P;
16381
- let e = (N.current - 1) * N.pageSize;
16382
- return P.slice(e, e + N.pageSize);
16385
+ if (ne) return P;
16386
+ let e = (M.current - 1) * M.pageSize;
16387
+ return P.slice(e, e + M.pageSize);
16383
16388
  }, [
16384
- N.current,
16385
- N.pageSize,
16389
+ M.current,
16390
+ M.pageSize,
16386
16391
  P,
16387
- te
16388
- ]), oe = I(() => ne.filter((e) => re.includes(e.key)).map((e) => ({
16392
+ ne
16393
+ ]), oe = I(() => N.filter((e) => re.includes(e.key)).map((e) => ({
16389
16394
  title: e.label,
16390
16395
  dataIndex: e.key,
16391
16396
  key: e.key,
@@ -16398,9 +16403,9 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16398
16403
  className: "job-cell-primary",
16399
16404
  children: lS(n, e.key)
16400
16405
  })
16401
- })), [ne, re]), se = re.length === ne.length, ce = re.length > 0 && !se, le = (e, t) => {
16406
+ })), [N, re]), se = re.length === N.length, ce = re.length > 0 && !se, le = (e, t) => {
16402
16407
  k((n) => {
16403
- let r = n.length ? n : ne.map((e) => e.key);
16408
+ let r = n.length ? n : N.map((e) => e.key);
16404
16409
  return t ? r.includes(e) ? r : [...r, e] : r.filter((t) => t !== e);
16405
16410
  });
16406
16411
  }, ue = /* @__PURE__ */ X("div", {
@@ -16410,10 +16415,10 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16410
16415
  checked: se,
16411
16416
  indeterminate: ce,
16412
16417
  onChange: (e) => {
16413
- k(e.target.checked ? ne.map((e) => e.key) : []);
16418
+ k(e.target.checked ? N.map((e) => e.key) : []);
16414
16419
  },
16415
16420
  children: "Select All"
16416
- }), ne.map((e) => /* @__PURE__ */ Y(ki, {
16421
+ }), N.map((e) => /* @__PURE__ */ Y(ki, {
16417
16422
  checked: re.includes(e.key),
16418
16423
  onChange: (t) => le(e.key, t.target.checked),
16419
16424
  children: e.label
@@ -16449,7 +16454,7 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16449
16454
  let t = e.target.value;
16450
16455
  x(t), u ? (clearTimeout(j.current), j.current = setTimeout(() => {
16451
16456
  u(t), c?.(1);
16452
- }, 350)) : te ? c?.(1) : D({
16457
+ }, 350)) : ne ? c?.(1) : D({
16453
16458
  ...E,
16454
16459
  current: 1
16455
16460
  });
@@ -16504,7 +16509,7 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16504
16509
  className: "job-actions-button"
16505
16510
  })
16506
16511
  }), S.length > 0 && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(Pi, {
16507
- menu: { items: M },
16512
+ menu: { items: te },
16508
16513
  trigger: ["click"],
16509
16514
  children: /* @__PURE__ */ X(R, {
16510
16515
  type: "text",
@@ -16551,17 +16556,17 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16551
16556
  })
16552
16557
  }),
16553
16558
  /* @__PURE__ */ Y(Mc, {
16554
- current: N.current,
16555
- pageSize: N.pageSize,
16559
+ current: M.current,
16560
+ pageSize: M.pageSize,
16556
16561
  total: ie,
16557
16562
  onChange: (e) => {
16558
- te ? c?.(e) : D((t) => ({
16563
+ ne ? c?.(e) : D((t) => ({
16559
16564
  ...t,
16560
16565
  current: e
16561
16566
  }));
16562
16567
  },
16563
16568
  onPageSizeChange: (e) => {
16564
- te ? l?.(e) : D({
16569
+ ne ? l?.(e) : D({
16565
16570
  current: 1,
16566
16571
  pageSize: e
16567
16572
  });
@@ -17332,7 +17337,7 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17332
17337
  let [s] = B.useForm(), c = ds(), [l, u] = L(null), [d, f] = L(!0), [p, m] = L(""), [h, g] = L(0), [_, v] = L("traditional"), [y, b] = L("internal"), [x, S] = L({}), [C, w] = L([]), [T, E] = L(nC), [D, O] = L({
17333
17338
  current: 1,
17334
17339
  pageSize: 10
17335
- }), [k, ee] = L(null), [A, j] = L({}), [M, te] = L({});
17340
+ }), [k, ee] = L(null), [A, j] = L({}), [te, ne] = L({});
17336
17341
  F(() => {
17337
17342
  if (!e) return;
17338
17343
  let r = !1;
@@ -17351,19 +17356,19 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17351
17356
  t,
17352
17357
  h
17353
17358
  ]);
17354
- let N = () => {
17359
+ let M = () => {
17355
17360
  f(!0), g((e) => e + 1);
17356
- }, ne = I(() => rC(l).filter((e) => !iC(e.hideGroup)).sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)).flatMap((e) => e.fields ?? []).filter((e) => e?.field && e.show !== 0 && !iC(e.hidden)).sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)), [l]), re = !!l?.booleanSearchEnabled && !!l?.booleanSearchEndpoint, P = re && _ === "boolean", ie = I(() => ne.filter((e) => e.booleanCapable && VS(e.booleanApiKey)), [ne]);
17361
+ }, N = I(() => rC(l).filter((e) => !iC(e.hideGroup)).sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)).flatMap((e) => e.fields ?? []).filter((e) => e?.field && e.show !== 0 && !iC(e.hidden)).sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)), [l]), re = !!l?.booleanSearchEnabled && !!l?.booleanSearchEndpoint, P = re && _ === "boolean", ie = I(() => N.filter((e) => e.booleanCapable && VS(e.booleanApiKey)), [N]);
17357
17362
  F(() => {
17358
- ne.filter((e) => e.booleanCapable && !VS(e.booleanApiKey)).forEach((e) => {
17363
+ N.filter((e) => e.booleanCapable && !VS(e.booleanApiKey)).forEach((e) => {
17359
17364
  console.warn(`[SearchBuilderV1] "${e.field}" is marked booleanCapable but its booleanApiKey (${JSON.stringify(e.booleanApiKey)}) is not one of ${zS.join(", ")} — the backend cannot parse it as an expression, so it will render as a normal field. Fix in Admin → Form Groups.`);
17360
17365
  });
17361
- }, [ne]);
17366
+ }, [N]);
17362
17367
  let ae = (e) => {
17363
17368
  let t = e ? "boolean" : "traditional", n = {};
17364
- ne.forEach((e) => {
17369
+ N.forEach((e) => {
17365
17370
  e.booleanCapable && (n[e.field] = void 0);
17366
- }), s.setFieldsValue(n), te((e) => ({
17371
+ }), s.setFieldsValue(n), ne((e) => ({
17367
17372
  ...e,
17368
17373
  ...n
17369
17374
  })), S({}), v(t);
@@ -17380,20 +17385,20 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17380
17385
  try {
17381
17386
  let n;
17382
17387
  if (P) {
17383
- let e = YS(t, ne, { defaultSourceType: l?.booleanDefaultSourceType || c });
17388
+ let e = YS(t, N, { defaultSourceType: l?.booleanDefaultSourceType || c });
17384
17389
  n = await $S(l.booleanSearchEndpoint, e, {
17385
17390
  limit: i,
17386
17391
  offset: (o - 1) * i
17387
17392
  });
17388
17393
  } else n = await an(e, {
17389
- ...ZS(t, ne),
17394
+ ...ZS(t, N),
17390
17395
  selectedSource: c
17391
17396
  }, {
17392
17397
  limit: i,
17393
17398
  offset: (o - 1) * i
17394
17399
  }, {
17395
17400
  scope: c,
17396
- filters: QS(t, ne)
17401
+ filters: QS(t, N)
17397
17402
  });
17398
17403
  b(c), E({
17399
17404
  searched: !0,
@@ -17412,14 +17417,14 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17412
17417
  backendTabs: n.tabs
17413
17418
  }));
17414
17419
  } catch (e) {
17415
- let t = e?.details ? String(e.details) : "", n = e?.code === "INVALID_BOOLEAN_QUERY" ? ne.find((e) => e.booleanCapable && t.toLowerCase().includes(String(e.field).toLowerCase())) : null;
17420
+ let t = e?.details ? String(e.details) : "", n = e?.code === "INVALID_BOOLEAN_QUERY" ? N.find((e) => e.booleanCapable && t.toLowerCase().includes(String(e.field).toLowerCase())) : null;
17416
17421
  n ? S({ [n.field]: t }) : q.error(t || e?.message || "Search failed"), E({
17417
17422
  ...nC,
17418
17423
  searched: !0
17419
17424
  });
17420
17425
  }
17421
17426
  }, [
17422
- ne,
17427
+ N,
17423
17428
  P,
17424
17429
  e,
17425
17430
  D.pageSize,
@@ -17428,7 +17433,7 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17428
17433
  ]), se = () => {
17429
17434
  s.validateFields().then((e) => oe(e, void 0, { current: 1 })).catch(() => q.error("Fix the highlighted field before searching."));
17430
17435
  }, ce = () => {
17431
- s.resetFields(), te({}), S({}), E(nC), w([]), b("internal");
17436
+ s.resetFields(), ne({}), S({}), E(nC), w([]), b("internal");
17432
17437
  }, le = yi(async (e, t) => {
17433
17438
  let n = eh(e, t);
17434
17439
  j((e) => ({
@@ -17513,9 +17518,9 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17513
17518
  c(me);
17514
17519
  }
17515
17520
  }, ge = ie.some((e) => {
17516
- let t = M[e.field];
17521
+ let t = te[e.field];
17517
17522
  return t != null && String(t).trim() !== "";
17518
- }), _e = P ? !ge : !oC(M), ve = P && !ge && ie.length ? `Enter a query in at least one of: ${ie.map((e) => e.label ?? e.field).join(", ")}.` : "";
17523
+ }), _e = P ? !ge : !oC(te), ve = P && !ge && ie.length ? `Enter a query in at least one of: ${ie.map((e) => e.label ?? e.field).join(", ")}.` : "";
17519
17524
  return e ? d ? /* @__PURE__ */ Y("div", {
17520
17525
  className: "sbv1-page",
17521
17526
  children: /* @__PURE__ */ Y(Oi, {
@@ -17544,13 +17549,13 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17544
17549
  }),
17545
17550
  /* @__PURE__ */ Y(R, {
17546
17551
  icon: /* @__PURE__ */ Y(Oo, {}),
17547
- onClick: N,
17552
+ onClick: M,
17548
17553
  children: "Retry"
17549
17554
  })
17550
17555
  ]
17551
17556
  })
17552
17557
  })
17553
- }) : ne.length ? /* @__PURE__ */ X("div", {
17558
+ }) : N.length ? /* @__PURE__ */ X("div", {
17554
17559
  className: "sbv1-page",
17555
17560
  children: [/* @__PURE__ */ Y(Oi, {
17556
17561
  className: "sbv1-card",
@@ -17617,10 +17622,10 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17617
17622
  form: s,
17618
17623
  layout: "vertical",
17619
17624
  colon: !1,
17620
- onValuesChange: (e, t) => te(t),
17625
+ onValuesChange: (e, t) => ne(t),
17621
17626
  children: [/* @__PURE__ */ Y(Ji, {
17622
17627
  gutter: [24, 0],
17623
- children: ne.map((t) => {
17628
+ children: N.map((t) => {
17624
17629
  let n = P && ie.includes(t), r = [];
17625
17630
  return iC(t.req) && r.push({
17626
17631
  required: !0,
@@ -20143,7 +20148,7 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20143
20148
  t,
20144
20149
  n,
20145
20150
  f
20146
- ]), m = _w(d), [h, g] = L(p.proposedRate), [_, v] = L(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [y, b] = L(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [x, S] = L(t?.referral?.isNewReferral ? 0 : t?.referral?.referalRate ?? t?.referral?.referralRate ?? t?.engagement?.financeApproval?.referralRate ?? 0), [C, w] = L(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [T, E] = L(!1), [D, O] = L(!1), [k, ee] = L(""), [A, j] = L(!1), [M, te] = L(""), [N, ne] = L(!1), [re, P] = L(""), ie = !!d.sections.rateBreakdown?.editToggle, [ae, oe] = L(!1), se = !ie || ae, [ce, le] = L(!1), [ue, de] = L(!1), fe = d.sections.referral ?? {}, pe = t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(y) > 0 || !!_), [me, he] = L(!!pe), ge = fe.toggle === !0, _e = Number(y) > 0, ve = fe.show === !0 ? !ge || me : fe.show === "ifEnabled" ? me : fe.show === "ifExists" && _e, ye = String(C ?? "").trim().toLowerCase().replace(/[\s_-]+/g, "").startsWith("onetime"), be = m && ve, xe = be && !ye, Se = d.rejection?.show ? gw(d, t) : "", Ce = I(() => Iw(p, {
20151
+ ]), m = _w(d), [h, g] = L(p.proposedRate), [_, v] = L(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [y, b] = L(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [x, S] = L(t?.referral?.isNewReferral ? 0 : t?.referral?.referalRate ?? t?.referral?.referralRate ?? t?.engagement?.financeApproval?.referralRate ?? 0), [C, w] = L(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [T, E] = L(!1), [D, O] = L(!1), [k, ee] = L(""), [A, j] = L(!1), [te, ne] = L(""), [M, N] = L(!1), [re, P] = L(""), ie = !!d.sections.rateBreakdown?.editToggle, [ae, oe] = L(!1), se = !ie || ae, [ce, le] = L(!1), [ue, de] = L(!1), fe = d.sections.referral ?? {}, pe = t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(y) > 0 || !!_), [me, he] = L(!!pe), ge = fe.toggle === !0, _e = Number(y) > 0, ve = fe.show === !0 ? !ge || me : fe.show === "ifEnabled" ? me : fe.show === "ifExists" && _e, ye = String(C ?? "").trim().toLowerCase().replace(/[\s_-]+/g, "").startsWith("onetime"), be = m && ve, xe = be && !ye, Se = d.rejection?.show ? gw(d, t) : "", Ce = I(() => Iw(p, {
20147
20152
  proposedRate: d.sections.rateBreakdown?.proposed?.editable ? h : void 0,
20148
20153
  includeReferral: be,
20149
20154
  deductReferral: xe,
@@ -20202,8 +20207,8 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20202
20207
  j(!0);
20203
20208
  return;
20204
20209
  }
20205
- if (e.requireCategory && !M) {
20206
- ne(!0);
20210
+ if (e.requireCategory && !te) {
20211
+ N(!0);
20207
20212
  return;
20208
20213
  }
20209
20214
  let n = c?.[e.api];
@@ -20227,7 +20232,7 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20227
20232
  },
20228
20233
  referralEnabled: me,
20229
20234
  reason: k.trim(),
20230
- category: M,
20235
+ category: te,
20231
20236
  rateHistory: d.persist?.rateHistory ? Ww(Ce, s) : void 0
20232
20237
  });
20233
20238
  } catch (e) {
@@ -20764,8 +20769,8 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20764
20769
  /* @__PURE__ */ Y(H, {
20765
20770
  id: "fa-rejection-category",
20766
20771
  placeholder: "Select where to return this rejection",
20767
- value: M || void 0,
20768
- status: N ? "error" : "",
20772
+ value: te || void 0,
20773
+ status: M ? "error" : "",
20769
20774
  options: [{
20770
20775
  value: "submission",
20771
20776
  label: "Submission"
@@ -20774,14 +20779,14 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20774
20779
  label: "Onboarding"
20775
20780
  }],
20776
20781
  onChange: (e) => {
20777
- te(e), ne(!1);
20782
+ ne(e), N(!1);
20778
20783
  },
20779
20784
  style: {
20780
20785
  width: "100%",
20781
20786
  marginBottom: 16
20782
20787
  }
20783
20788
  }),
20784
- N && /* @__PURE__ */ Y("div", {
20789
+ M && /* @__PURE__ */ Y("div", {
20785
20790
  className: "fa-reason-error",
20786
20791
  children: "! Select where to return the rejection."
20787
20792
  })
@@ -21011,7 +21016,7 @@ async function fT(e, t) {
21011
21016
  };
21012
21017
  }
21013
21018
  async function pT(e, t) {
21014
- let { fetchFormGroupsPayload: n } = await import("./addFormApi-Dv5Hy1Wj.js").then((e) => e.t), r = await n({
21019
+ let { fetchFormGroupsPayload: n } = await import("./addFormApi-BLEfWFiF.js").then((e) => e.t), r = await n({
21015
21020
  module: e,
21016
21021
  id: t
21017
21022
  });
@@ -21041,7 +21046,7 @@ async function mT(e, t = {}) {
21041
21046
  let T = (Array.isArray(_) ? _ : []).find((t) => Dw(t.submissionId) === String(e)), E = Dw(w.clientId) || Dw(T?.clientId) || s, D = a.clientName ?? t.clientName ?? w.clientName, O = D ? m.filter((e) => iT(e.clientName) === iT(D)) : [], k = m.find(sT(E)) ?? O[0] ?? {}, ee = await fT("clients", Dw(k._id ?? k.id) || E), A = {
21042
21047
  ...k,
21043
21048
  ...ee
21044
- }, j = h.find(sT(l)) ?? {}, M = g.find(sT(d)) ?? g.find((e) => iT(e.name) === iT(d)) ?? {};
21049
+ }, j = h.find(sT(l)) ?? {}, te = g.find(sT(d)) ?? g.find((e) => iT(e.name) === iT(d)) ?? {};
21045
21050
  return {
21046
21051
  record: {
21047
21052
  submission: {
@@ -21056,7 +21061,7 @@ async function mT(e, t = {}) {
21056
21061
  },
21057
21062
  lookups: {
21058
21063
  clientVmsFee: A.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
21059
- locationTaxPercent: o.tax ?? M.taxValue
21064
+ locationTaxPercent: o.tax ?? te.taxValue
21060
21065
  },
21061
21066
  display: {
21062
21067
  clientName: a.clientName ?? A.clientName,
@@ -21064,7 +21069,7 @@ async function mT(e, t = {}) {
21064
21069
  reqId: i.jobClientRefrenceId ?? a.jobRefrenceId ?? i.jobRefrenceId ?? i.mspReqId,
21065
21070
  jobLocation: a.jobLocation ?? w.jobLocation,
21066
21071
  employerName: j.empCompanyName,
21067
- employerLocation: M.name ?? j.empCompanyLocation ?? d,
21072
+ employerLocation: te.name ?? j.empCompanyLocation ?? d,
21068
21073
  submittedBy: b.signatureEmail || a.signatureEmail || t.signatureEmail || uT(y),
21069
21074
  email: a.email,
21070
21075
  candidateName: [a.firstName, a.lastName].filter(Boolean).join(" ") || a.candidateFullName,
@@ -22652,8 +22657,15 @@ function wD(e, t, n = []) {
22652
22657
  menuOrder: n
22653
22658
  };
22654
22659
  }
22655
- function TD() {
22656
- return dD("/get-all-users?limit=500&offset=0").then((e) => fD(e, ["users"]).map(pD));
22660
+ function TD({ limit: e = 10, offset: t = 0, search: n = "", type: r = "", sort: i = "" } = {}) {
22661
+ let a = new URLSearchParams({
22662
+ limit: String(e),
22663
+ offset: String(t)
22664
+ });
22665
+ return n && a.set("searchquery", n), r && a.set("type", r), i && a.set("sortBy", i), dD(`/get-all-users?${a.toString()}`).then((e) => ({
22666
+ users: fD(e, ["users"]).map(pD),
22667
+ total: Number(e?.totalCount ?? e?.total ?? 0) || 0
22668
+ }));
22657
22669
  }
22658
22670
  function ED(e) {
22659
22671
  return dD(`/get-users?roleId=${encodeURIComponent(e)}`).then((e) => fD(e, ["users"]).map(pD));
@@ -24349,14 +24361,14 @@ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
24349
24361
  y([]);
24350
24362
  }
24351
24363
  }
24352
- function M(t) {
24364
+ function te(t) {
24353
24365
  let n = e.secondaryFields ?? [];
24354
24366
  !t || n.includes(t) || k({ secondaryFields: [...n, t] });
24355
24367
  }
24356
- function te(t) {
24368
+ function ne(t) {
24357
24369
  k({ secondaryFields: (e.secondaryFields ?? []).filter((e) => e !== t) });
24358
24370
  }
24359
- function N() {
24371
+ function M() {
24360
24372
  let t = e.actionButtons ?? [];
24361
24373
  t.length >= 3 || k({ actionButtons: [...t, {
24362
24374
  name: "",
@@ -24367,7 +24379,7 @@ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
24367
24379
  permissionKey: ""
24368
24380
  }] });
24369
24381
  }
24370
- function ne(t, n) {
24382
+ function N(t, n) {
24371
24383
  let r = [...e.actionButtons ?? []];
24372
24384
  r[t] = {
24373
24385
  ...r[t],
@@ -24455,10 +24467,10 @@ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
24455
24467
  subfields: v,
24456
24468
  onCollectionChange: A,
24457
24469
  onLookupFieldChange: j,
24458
- addSecondaryField: M,
24459
- removeSecondaryField: te,
24460
- addActionButton: N,
24461
- updateActionButton: ne,
24470
+ addSecondaryField: te,
24471
+ removeSecondaryField: ne,
24472
+ addActionButton: M,
24473
+ updateActionButton: N,
24462
24474
  removeActionButton: re,
24463
24475
  moduleKey: r,
24464
24476
  fieldKey: e.fieldKey,
@@ -31557,16 +31569,16 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31557
31569
  function j() {
31558
31570
  S(/* @__PURE__ */ new Set()), w("settings"), E(!1), a();
31559
31571
  }
31560
- function M(e) {
31572
+ function te(e) {
31561
31573
  w(e), e === "fields" && E(!0);
31562
31574
  }
31563
- function te(e, t = !1) {
31575
+ function ne(e, t = !1) {
31564
31576
  S((n) => {
31565
31577
  let r = new Set(n);
31566
31578
  return t ? r.add(e) : r.has(e) ? r.delete(e) : r.add(e), r;
31567
31579
  });
31568
31580
  }
31569
- function N(e) {
31581
+ function M(e) {
31570
31582
  let n = i[e] ?? [], r = /* @__PURE__ */ new Set();
31571
31583
  return n.forEach((e) => {
31572
31584
  t && e.id === t.id || (e.fields ?? []).forEach((e) => {
@@ -31574,7 +31586,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31574
31586
  });
31575
31587
  }), r;
31576
31588
  }
31577
- function ne(e, t) {
31589
+ function N(e, t) {
31578
31590
  let n = (p[d] ?? []).find((t) => t.value === e);
31579
31591
  if (!n) return;
31580
31592
  let r = c.getFieldValue(["fields", t]) ?? {};
@@ -31586,7 +31598,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31586
31598
  });
31587
31599
  }
31588
31600
  function re(e) {
31589
- let t = N(e);
31601
+ let t = M(e);
31590
31602
  return (p[e] ?? []).map((e) => ({
31591
31603
  value: e.value,
31592
31604
  disabled: t.has(e.value),
@@ -31808,7 +31820,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31808
31820
  role: "tab",
31809
31821
  "aria-selected": C === "settings",
31810
31822
  className: C === "settings" ? "is-active" : "",
31811
- onClick: () => M("settings"),
31823
+ onClick: () => te("settings"),
31812
31824
  children: [/* @__PURE__ */ Y("span", {
31813
31825
  className: "fg-editor-tab-number",
31814
31826
  children: "1"
@@ -31818,7 +31830,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31818
31830
  role: "tab",
31819
31831
  "aria-selected": C === "fields",
31820
31832
  className: C === "fields" ? "is-active" : "",
31821
- onClick: () => M("fields"),
31833
+ onClick: () => te("fields"),
31822
31834
  children: [/* @__PURE__ */ Y("span", {
31823
31835
  className: "fg-editor-tab-number",
31824
31836
  children: "2"
@@ -33039,7 +33051,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
33039
33051
  children: "Next, review the fields included in this group."
33040
33052
  }), /* @__PURE__ */ Y(R, {
33041
33053
  type: "primary",
33042
- onClick: () => M("fields"),
33054
+ onClick: () => te("fields"),
33043
33055
  children: "Continue to Fields"
33044
33056
  })]
33045
33057
  })]
@@ -33077,9 +33089,9 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
33077
33089
  dragIndexRef: O,
33078
33090
  dragOverIndex: y,
33079
33091
  setDragOverIndex: b,
33080
- onFieldKeySelect: (e, t) => ne(e, t),
33092
+ onFieldKeySelect: (e, t) => N(e, t),
33081
33093
  expandedFieldKeys: x,
33082
- onToggleField: te,
33094
+ onToggleField: ne,
33083
33095
  defaultFieldSet: _,
33084
33096
  uniqueTarget: {
33085
33097
  primaryModule: c.getFieldValue("module") || n || "",
@@ -34289,17 +34301,17 @@ function Zk() {
34289
34301
  function j(e) {
34290
34302
  s(e), (!i[e]?.loaded || i[e]?.scopeKey !== k(e)) && A(e);
34291
34303
  }
34292
- function M() {
34304
+ function te() {
34293
34305
  d(null), l(!0);
34294
34306
  }
34295
- function te(e) {
34307
+ function ne(e) {
34296
34308
  d(e), l(!0);
34297
34309
  }
34298
- function N() {
34310
+ function M() {
34299
34311
  l(!1), d(null);
34300
34312
  }
34301
- async function ne() {
34302
- N(), A(o), o !== "all" && A("all");
34313
+ async function N() {
34314
+ M(), A(o), o !== "all" && A("all");
34303
34315
  }
34304
34316
  async function re(e) {
34305
34317
  try {
@@ -34416,7 +34428,7 @@ function Zk() {
34416
34428
  icon: /* @__PURE__ */ Y(wo, {}),
34417
34429
  disabled: e === "all",
34418
34430
  onClick: () => {
34419
- s(e), M();
34431
+ s(e), te();
34420
34432
  },
34421
34433
  children: "Add Group"
34422
34434
  })
@@ -34425,7 +34437,7 @@ function Zk() {
34425
34437
  spinning: r.loading,
34426
34438
  children: /* @__PURE__ */ Y(Jk, {
34427
34439
  groups: a,
34428
- onEdit: te,
34440
+ onEdit: ne,
34429
34441
  onDelete: re,
34430
34442
  onCopy: se,
34431
34443
  onPaste: ce,
@@ -34507,8 +34519,8 @@ function Zk() {
34507
34519
  defaultModule: o === "all" ? T[0]?.value ?? "" : o,
34508
34520
  moduleOptions: T,
34509
34521
  allGroupsByModule: Object.fromEntries(Object.entries(i).filter(([e]) => e !== "all").map(([e, t]) => [e, t.groups ?? []])),
34510
- onClose: N,
34511
- onSaved: ne,
34522
+ onClose: M,
34523
+ onSaved: N,
34512
34524
  onSaveGroup: (e, t) => t ? $t(t.id, e, oe(e.module)) : Se(e, oe(e.module))
34513
34525
  }),
34514
34526
  /* @__PURE__ */ Y(Ni, {
@@ -34594,7 +34606,7 @@ function Zk() {
34594
34606
  type: "primary",
34595
34607
  size: "small",
34596
34608
  icon: /* @__PURE__ */ Y(la, {}),
34597
- onClick: M,
34609
+ onClick: te,
34598
34610
  children: "New Group"
34599
34611
  })]
34600
34612
  }) : null,
@@ -36353,7 +36365,7 @@ function CA({ open: e, onClose: t }) {
36353
36365
  ...l,
36354
36366
  marginTop: 4
36355
36367
  },
36356
- children: ["Used wherever a moment is shown — when a record was created or last changed, activity entries, interview slots. Example:", /* @__PURE__ */ X("b", { children: [" ", M(Qk, {
36368
+ children: ["Used wherever a moment is shown — when a record was created or last changed, activity entries, interview slots. Example:", /* @__PURE__ */ X("b", { children: [" ", te(Qk, {
36357
36369
  ...n,
36358
36370
  showTimeZoneLabel: n.showTimeZoneLabel !== !1
36359
36371
  }) || "—"] })]
@@ -36464,7 +36476,7 @@ function CA({ open: e, onClose: t }) {
36464
36476
  });
36465
36477
  }
36466
36478
  function wA() {
36467
- let [e, t] = L([]), [n, r] = L(!0), [i, a] = L(""), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L({}), [m, h] = L([]), [g, _] = L(!1), [v, y] = L(""), [b, x] = L(!1), [S, C] = L(null), [w, T] = L(null), [E, D] = L(!1), [O, k] = L(!1), [ee, A] = L(null), [j, M] = L(0), [te, N] = L(""), [ne, re] = L([]), [P, ie] = L(""), [ae, oe] = L(""), [se, ce] = L({});
36479
+ let [e, t] = L([]), [n, r] = L(!0), [i, a] = L(""), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L({}), [m, h] = L([]), [g, _] = L(!1), [v, y] = L(""), [b, x] = L(!1), [S, C] = L(null), [w, T] = L(null), [E, D] = L(!1), [O, k] = L(!1), [ee, A] = L(null), [j, te] = L(0), [ne, M] = L(""), [N, re] = L([]), [P, ie] = L(""), [ae, oe] = L(""), [se, ce] = L({});
36468
36480
  function le(e) {
36469
36481
  A(rA[e]);
36470
36482
  }
@@ -36519,7 +36531,7 @@ function wA() {
36519
36531
  off: "Group follows its Show Condition in the detail view"
36520
36532
  });
36521
36533
  function he() {
36522
- A(null), M((e) => e + 1);
36534
+ A(null), te((e) => e + 1);
36523
36535
  }
36524
36536
  F(() => {
36525
36537
  $n({ limit: 200 }).then(re).catch(() => re([]));
@@ -36903,7 +36915,7 @@ function wA() {
36903
36915
  children: "No fields in this group."
36904
36916
  });
36905
36917
  }, Te = I(() => {
36906
- let e = te.trim().toLowerCase();
36918
+ let e = ne.trim().toLowerCase();
36907
36919
  return [...o].filter((t) => !e || [
36908
36920
  t.label,
36909
36921
  t.name,
@@ -36913,7 +36925,7 @@ function wA() {
36913
36925
  e.type
36914
36926
  ])
36915
36927
  ].some((t) => String(t ?? "").toLowerCase().includes(e))).sort((e, t) => (e.order ?? 0) - (t.order ?? 0));
36916
- }, [o, te]), Ee = [
36928
+ }, [o, ne]), Ee = [
36917
36929
  {
36918
36930
  title: "Label",
36919
36931
  dataIndex: "label",
@@ -37063,7 +37075,7 @@ function wA() {
37063
37075
  style: { width: 240 },
37064
37076
  value: P || void 0,
37065
37077
  optionFilterProp: "label",
37066
- options: ne.map((e) => ({
37078
+ options: N.map((e) => ({
37067
37079
  value: e._id ?? e.id,
37068
37080
  label: e.clientName ?? e.name ?? e.clientRefrenceId ?? e._id
37069
37081
  })).filter((e) => e.value),
@@ -37071,7 +37083,7 @@ function wA() {
37071
37083
  }), /* @__PURE__ */ Y(R, {
37072
37084
  size: "small",
37073
37085
  icon: /* @__PURE__ */ Y(Oo, {}),
37074
- onClick: () => M((e) => e + 1),
37086
+ onClick: () => te((e) => e + 1),
37075
37087
  children: "Reload"
37076
37088
  })]
37077
37089
  })]
@@ -37119,8 +37131,8 @@ function wA() {
37119
37131
  allowClear: !0,
37120
37132
  prefix: /* @__PURE__ */ Y(Fo, {}),
37121
37133
  placeholder: "Search groups or fields",
37122
- value: te,
37123
- onChange: (e) => N(e.target.value)
37134
+ value: ne,
37135
+ onChange: (e) => M(e.target.value)
37124
37136
  }), /* @__PURE__ */ X(Q, {
37125
37137
  type: "secondary",
37126
37138
  style: { fontSize: 12 },
@@ -37942,7 +37954,7 @@ function ZA({ open: e, initial: t, isChild: n, popupForms: r, templateOptions: i
37942
37954
  });
37943
37955
  }
37944
37956
  function QA() {
37945
- let [e, t] = L([]), [n, r] = L(""), [i, a] = L([]), [o, s] = L(null), [c, l] = L([]), [u, d] = L(!1), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L(null), [v, y] = L(!1), [b, x] = L(null), [S, C] = L([]), [w, T] = L([]), [E, D] = L(null), [O, k] = L(""), [ee, A] = L([]), [j, M] = L([]);
37957
+ let [e, t] = L([]), [n, r] = L(""), [i, a] = L([]), [o, s] = L(null), [c, l] = L([]), [u, d] = L(!1), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L(null), [v, y] = L(!1), [b, x] = L(null), [S, C] = L([]), [w, T] = L([]), [E, D] = L(null), [O, k] = L(""), [ee, A] = L([]), [j, te] = L([]);
37946
37958
  F(() => {
37947
37959
  Wn().then((e) => {
37948
37960
  let n = fO(e);
@@ -37951,11 +37963,11 @@ function QA() {
37951
37963
  t([]);
37952
37964
  });
37953
37965
  }, []), F(() => {
37954
- Promise.all([Wn().catch(() => []), te().catch(() => [])]).then(([e, t]) => {
37955
- A([...new Set(e.map((e) => e.MENUNAME ?? e.menuName).filter(Boolean))]), M([...new Set(t.map((e) => e.permissionKey ?? e.PERMISSIONKEY).filter(Boolean))]);
37966
+ Promise.all([Wn().catch(() => []), ne().catch(() => [])]).then(([e, t]) => {
37967
+ A([...new Set(e.map((e) => e.MENUNAME ?? e.menuName).filter(Boolean))]), te([...new Set(t.map((e) => e.permissionKey ?? e.PERMISSIONKEY).filter(Boolean))]);
37956
37968
  });
37957
37969
  }, []);
37958
- let N = yi(async () => {
37970
+ let M = yi(async () => {
37959
37971
  if (n) {
37960
37972
  p(!0), _(null), a([]);
37961
37973
  try {
@@ -37970,9 +37982,9 @@ function QA() {
37970
37982
  }, [n]);
37971
37983
  F(() => {
37972
37984
  queueMicrotask(() => {
37973
- N();
37985
+ M();
37974
37986
  });
37975
- }, [N]), F(() => {
37987
+ }, [M]), F(() => {
37976
37988
  Promise.all([ti(n, "popup").catch(() => []), NA({ module: n }).catch(() => [])]).then(([e, t]) => {
37977
37989
  C(e), T(t.map((e) => ({
37978
37990
  value: e._id ?? e.id,
@@ -37985,7 +37997,7 @@ function QA() {
37985
37997
  s(t ?? null), l(t ? t.rowActions ?? [] : []), d(!1);
37986
37998
  });
37987
37999
  }, [n, i]);
37988
- let ne = async () => {
38000
+ let N = async () => {
37989
38001
  h(!0);
37990
38002
  try {
37991
38003
  if (o) await _r(o.id ?? o._id, c), a((e) => e.map((e) => (e.id ?? e._id) === (o.id ?? o._id) ? {
@@ -38002,13 +38014,13 @@ function QA() {
38002
38014
  }
38003
38015
  d(!1);
38004
38016
  } catch (e) {
38005
- q.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && N();
38017
+ q.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && M();
38006
38018
  } finally {
38007
38019
  h(!1);
38008
38020
  }
38009
38021
  }, re = async () => {
38010
38022
  if (o) try {
38011
- await Nr(o.id ?? o._id), q.success("Config deleted"), await N();
38023
+ await Nr(o.id ?? o._id), q.success("Config deleted"), await M();
38012
38024
  } catch (e) {
38013
38025
  q.error(e.message);
38014
38026
  }
@@ -38055,7 +38067,7 @@ function QA() {
38055
38067
  }
38056
38068
  l(t), d(!1), y(!1);
38057
38069
  } catch (e) {
38058
- q.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && N();
38070
+ q.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && M();
38059
38071
  }
38060
38072
  }, ce = (e, t = null) => {
38061
38073
  l(t ? (n) => n.map((n) => n.key === t ? {
@@ -38072,7 +38084,7 @@ function QA() {
38072
38084
  D(HA[e]);
38073
38085
  }
38074
38086
  function de() {
38075
- D(null), N();
38087
+ D(null), M();
38076
38088
  }
38077
38089
  let fe = I(() => {
38078
38090
  let e = O.trim().toLowerCase();
@@ -38382,7 +38394,7 @@ function QA() {
38382
38394
  className: "admin-config-reload",
38383
38395
  children: /* @__PURE__ */ Y(R, {
38384
38396
  icon: /* @__PURE__ */ Y(Oo, {}),
38385
- onClick: N,
38397
+ onClick: M,
38386
38398
  loading: f,
38387
38399
  children: "Reload"
38388
38400
  })
@@ -38436,7 +38448,7 @@ function QA() {
38436
38448
  icon: /* @__PURE__ */ Y(Po, {}),
38437
38449
  loading: m,
38438
38450
  disabled: !u,
38439
- onClick: ne,
38451
+ onClick: N,
38440
38452
  children: "Save Config"
38441
38453
  })
38442
38454
  ]
@@ -38745,13 +38757,13 @@ function fj() {
38745
38757
  } : n)
38746
38758
  }));
38747
38759
  }
38748
- function M() {
38760
+ function te() {
38749
38761
  h((e) => ({
38750
38762
  ...e,
38751
38763
  conditions: [...e.conditions, cj()]
38752
38764
  }));
38753
38765
  }
38754
- function te(e) {
38766
+ function ne(e) {
38755
38767
  h((t) => ({
38756
38768
  ...t,
38757
38769
  conditions: t.conditions.filter((t, n) => n !== e)
@@ -39134,7 +39146,7 @@ function fj() {
39134
39146
  icon: /* @__PURE__ */ Y(Fa, {}),
39135
39147
  size: "small",
39136
39148
  type: "text",
39137
- onClick: () => te(t)
39149
+ onClick: () => ne(t)
39138
39150
  })
39139
39151
  })
39140
39152
  ]
@@ -39153,7 +39165,7 @@ function fj() {
39153
39165
  /* @__PURE__ */ Y(R, {
39154
39166
  size: "small",
39155
39167
  style: { marginBottom: 16 },
39156
- onClick: M,
39168
+ onClick: te,
39157
39169
  children: "+ Add Condition"
39158
39170
  }),
39159
39171
  /* @__PURE__ */ X(Mi, {
@@ -42400,7 +42412,7 @@ function Yj() {
42400
42412
  l(o.storage || "mongo"), q.success("Automations saved");
42401
42413
  }).catch((e) => q.error(e?.message || "Could not save automations")).finally(() => h(!1));
42402
42414
  }
42403
- function M() {
42415
+ function te() {
42404
42416
  if ((o.storage || "mongo") !== c) {
42405
42417
  Vi.confirm({
42406
42418
  title: "Change how this module persists writes?",
@@ -42413,7 +42425,7 @@ function Yj() {
42413
42425
  }
42414
42426
  j();
42415
42427
  }
42416
- let te = [
42428
+ let ne = [
42417
42429
  {
42418
42430
  title: "Source module",
42419
42431
  dataIndex: "sourceModule",
@@ -42451,7 +42463,7 @@ function Yj() {
42451
42463
  children: "optional"
42452
42464
  })
42453
42465
  }
42454
- ], N = [
42466
+ ], M = [
42455
42467
  {
42456
42468
  title: "Source field",
42457
42469
  dataIndex: "sourceField",
@@ -42484,7 +42496,7 @@ function Yj() {
42484
42496
  color: "var(--color-brand)"
42485
42497
  })
42486
42498
  }
42487
- ], ne = [
42499
+ ], N = [
42488
42500
  {
42489
42501
  title: "Source field",
42490
42502
  dataIndex: "sourceField",
@@ -42617,7 +42629,7 @@ function Yj() {
42617
42629
  icon: /* @__PURE__ */ Y(Po, {}),
42618
42630
  loading: m,
42619
42631
  disabled: !i,
42620
- onClick: M,
42632
+ onClick: te,
42621
42633
  children: "Save Automations"
42622
42634
  }),
42623
42635
  children: [/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }), /* @__PURE__ */ Y($, {
@@ -43361,7 +43373,7 @@ function Yj() {
43361
43373
  title: "Denormalizations",
43362
43374
  description: "Copy fields from ANOTHER module's record onto this payload before insert (e.g. a submission snapshotting job title/client).",
43363
43375
  rules: u.denormalizations ?? [],
43364
- columns: te,
43376
+ columns: ne,
43365
43377
  onAdd: () => y({
43366
43378
  index: null,
43367
43379
  rule: null
@@ -43377,7 +43389,7 @@ function Yj() {
43377
43389
  title: "Array Enrichments",
43378
43390
  description: "Enrich a payload array of ids (e.g. recruitersData) into objects carrying looked-up fields (name, email) before insert.",
43379
43391
  rules: u.arrayEnrichments ?? [],
43380
- columns: N,
43392
+ columns: M,
43381
43393
  onAdd: () => x({
43382
43394
  index: null,
43383
43395
  rule: null
@@ -43393,7 +43405,7 @@ function Yj() {
43393
43405
  title: "File Field Maps",
43394
43406
  description: "Turn an uploaded file field into a nested object (location + filename + who/when) or an array of such objects, instead of a flat S3 path string — needed for schemas like resume/passport/visa.",
43395
43407
  rules: u.fileFieldMaps ?? [],
43396
- columns: ne,
43408
+ columns: N,
43397
43409
  onAdd: () => C({
43398
43410
  index: null,
43399
43411
  rule: null
@@ -45297,8 +45309,7 @@ function FM(e = [], t = []) {
45297
45309
  }), n;
45298
45310
  }
45299
45311
  function IM(e) {
45300
- let t = e?.user_type_id ?? e?.userTypeId ?? e?.id, n = e?.user_type_name ?? e?.userTypeName ?? e?.name;
45301
- return Number(t) === 1 || jM(n) === "SUPER ADMIN";
45312
+ return jM(e?.user_type_name ?? e?.userTypeName ?? e?.name) === "SUPER ADMIN";
45302
45313
  }
45303
45314
  function LM(e) {
45304
45315
  return `${e?.first_name ?? e?.firstName ?? ""} ${e?.last_name ?? e?.lastName ?? ""}`.trim() || e?.username || e?.userName || e?.email || `User ${e?.user_id ?? e?.userId ?? ""}`;
@@ -45427,44 +45438,43 @@ function UM({ title: e, description: t, selectedName: n, loading: r, saving: i,
45427
45438
  });
45428
45439
  }
45429
45440
  function WM({ onLogout: e }) {
45430
- let [t] = B.useForm(), [n] = B.useForm(), [r, i] = L("users"), [a, o] = L(!0), [s, c] = L(!1), [l, u] = L(!1), [f, p] = L([]), [m, h] = L([]), [g, _] = L([]), [v, y] = L([]), [b, x] = L(null), [S, C] = L([]), [w, T] = L(!1), [E, D] = L(null), [O, k] = L(!1), [ee, A] = L(null), [j, M] = L([]), [te, N] = L(!1), [ne, re] = L(!1), [P, ie] = L(null), [ae, oe] = L(!1), [se, ce] = L(null), [le, ue] = L("listView"), [de, fe] = L([]), [pe, me] = L([]), [he, ge] = L(!1), [_e, ve] = L(!1), ye = d(), be = I(() => de.filter((e) => !e.disabled), [de]), xe = !he && be.length === 0, Se = yi(async () => {
45431
- ge(!0);
45441
+ let [t] = B.useForm(), [n] = B.useForm(), [r, i] = L("users"), [a, o] = L(!0), [s, c] = L(!1), [l, u] = L(!1), [f, p] = L([]), [m, h] = L(0), [g, _] = L(1), [v, y] = L(10), [b, x] = L(""), [S, C] = L(!1), [w, T] = L([]), [E, D] = L([]), [O, k] = L([]), [ee, A] = L(null), [j, te] = L([]), [ne, M] = L(!1), [N, re] = L(null), [P, ie] = L(!1), [ae, oe] = L(null), [se, ce] = L([]), [le, ue] = L(!1), [de, fe] = L(!1), [pe, me] = L(null), [he, ge] = L(!1), [_e, ve] = L(null), [ye, be] = L("listView"), [xe, Se] = L([]), [Ce, we] = L([]), [Te, Ee] = L(!1), [De, Oe] = L(!1), ke = d(), Ae = I(() => xe.filter((e) => !e.disabled), [xe]), je = !Te && Ae.length === 0, Me = yi(async () => {
45442
+ Ee(!0);
45432
45443
  try {
45433
45444
  let [e, t] = await Promise.all([Zr(), An()]), n = FM(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
45434
- fe(n), me((e) => e.filter((e) => r.has(e)));
45445
+ Se(n), we((e) => e.filter((e) => r.has(e)));
45435
45446
  } catch {
45436
45447
  q.error("Failed to load seed status");
45437
45448
  } finally {
45438
- ge(!1);
45449
+ Ee(!1);
45439
45450
  }
45440
45451
  }, []);
45441
45452
  F(() => {
45442
- Se();
45443
- }, [Se]);
45444
- async function Ce() {
45445
- if (pe.length === 0) {
45446
- q.warning(xe ? "All modules already seeded." : "Select at least one module to seed.");
45453
+ Me();
45454
+ }, [Me]);
45455
+ async function Ne() {
45456
+ if (Ce.length === 0) {
45457
+ q.warning(je ? "All modules already seeded." : "Select at least one module to seed.");
45447
45458
  return;
45448
45459
  }
45449
- ve(!0);
45460
+ Oe(!0);
45450
45461
  try {
45451
- await Er(pe), q.success("User type field config seeded"), me([]), await Se();
45462
+ await Er(Ce), q.success("User type field config seeded"), we([]), await Me();
45452
45463
  } catch (e) {
45453
45464
  q.error(e?.message || "Seed failed");
45454
45465
  } finally {
45455
- ve(!1);
45466
+ Oe(!1);
45456
45467
  }
45457
45468
  }
45458
- async function we() {
45469
+ async function Pe() {
45459
45470
  o(!0);
45460
45471
  try {
45461
- let [e, t, n, r] = await Promise.allSettled([
45462
- TD(),
45472
+ let [e, t, n] = await Promise.allSettled([
45463
45473
  AD(),
45464
45474
  PD(),
45465
45475
  RD()
45466
- ]), i = e.status === "fulfilled" ? e.value : [], a = t.status === "fulfilled" ? t.value : [];
45467
- e.status === "rejected" && q.error(e.reason?.message || "Unable to load users"), t.status === "rejected" && q.error(t.reason?.message || "Unable to load user types"), p(i ?? []), h(a ?? []), _(n.status === "fulfilled" ? n.value ?? [] : []), y(r.status === "fulfilled" ? VM(r.value) : []), x((a ?? [])[0]?.user_type_id ?? null);
45476
+ ]), r = e.status === "fulfilled" ? e.value : [];
45477
+ e.status === "rejected" && q.error(e.reason?.message || "Unable to load user types"), T(r ?? []), D(t.status === "fulfilled" ? t.value ?? [] : []), k(n.status === "fulfilled" ? VM(n.value) : []), A((r ?? [])[0]?.user_type_id ?? null);
45468
45478
  } catch (e) {
45469
45479
  q.error(e.message || "Unable to load admin data");
45470
45480
  } finally {
@@ -45473,25 +45483,47 @@ function WM({ onLogout: e }) {
45473
45483
  }
45474
45484
  F(() => {
45475
45485
  queueMicrotask(() => {
45476
- we();
45486
+ Pe();
45477
45487
  });
45478
- }, []), F(() => {
45488
+ }, []);
45489
+ let Fe = yi(async () => {
45490
+ C(!0);
45491
+ try {
45492
+ let { users: e, total: t } = await TD({
45493
+ limit: v,
45494
+ offset: (g - 1) * v,
45495
+ search: b
45496
+ });
45497
+ p(e ?? []), h(t ?? 0);
45498
+ } catch (e) {
45499
+ q.error(e?.message || "Unable to load users"), p([]), h(0);
45500
+ } finally {
45501
+ C(!1);
45502
+ }
45503
+ }, [
45504
+ g,
45505
+ v,
45506
+ b
45507
+ ]);
45508
+ F(() => {
45509
+ Fe();
45510
+ }, [Fe]), F(() => {
45479
45511
  queueMicrotask(() => {
45480
- if (!b) {
45481
- C([]);
45512
+ if (!ee) {
45513
+ te([]);
45482
45514
  return;
45483
45515
  }
45484
- c(!0), console.log("DEBUG requesting role permissions for selectedUserTypeId=", b, "localStorage scope=", {
45516
+ c(!0), console.log("DEBUG requesting role permissions for selectedUserTypeId=", ee, "localStorage scope=", {
45485
45517
  tenantId: localStorage.getItem("tenantId"),
45486
45518
  businessId: localStorage.getItem("businessId"),
45487
45519
  businessUnitId: localStorage.getItem("businessUnitId")
45488
- }), zD(b).then((e) => {
45520
+ }), zD(ee).then((e) => {
45489
45521
  console.log("DEBUG raw groups from /get-role-details", e);
45490
45522
  let t = RM(e ?? []);
45491
45523
  console.log("DEBUG savedRows (jobs only)", t.filter((e) => zM(e) === "jobs" || zM(e) === "job"));
45492
45524
  let n = new Map(t.map((e) => [`${zM(e)}:${String(e.permissionKey).toLowerCase()}`, e.accessValue]));
45493
- console.log("DEBUG savedAccess keys", [...n.keys()]), console.log("DEBUG menus (jobs only)", g.filter((e) => String(e.menu_key ?? e.menu_name ?? e.menu_id).trim().toLowerCase() === "jobs"));
45494
- let r = g.flatMap((e) => v.map((t) => {
45525
+ console.log("DEBUG savedAccess keys", [...n.keys()]), console.log("DEBUG menus (jobs only)", E.filter((e) => String(e.menu_key ?? e.menu_name ?? e.menu_id).trim().toLowerCase() === "jobs"));
45526
+ let r = E.flatMap((e) => O.map((t) => {
45495
45527
  let r = String(e.menu_key ?? e.menu_name ?? e.menu_id).trim().toLowerCase(), i = String(t.permissionKey).toLowerCase();
45496
45528
  return {
45497
45529
  key: `${e.menu_key ?? e.menu_name ?? e.menu_id}:${t.permissionId ?? t.permissionKey}`,
@@ -45503,55 +45535,80 @@ function WM({ onLogout: e }) {
45503
45535
  accessValue: n.get(`${r}:${i}`) ?? 0
45504
45536
  };
45505
45537
  }));
45506
- console.log("DEBUG final rows (jobs only)", r.filter((e) => zM(e) === "jobs" || zM(e) === "job")), C(r);
45538
+ console.log("DEBUG final rows (jobs only)", r.filter((e) => zM(e) === "jobs" || zM(e) === "job")), te(r);
45507
45539
  }).catch((e) => q.error(e.message || "Unable to load role permissions")).finally(() => c(!1));
45508
45540
  });
45509
45541
  }, [
45510
- b,
45511
- g,
45512
- v
45542
+ ee,
45543
+ E,
45544
+ O
45513
45545
  ]);
45514
- let Te = I(() => m.find((e) => e.user_type_id === b), [b, m]), Ee = I(() => m.reduce((e, t) => ({
45546
+ let Ie = I(() => w.find((e) => e.user_type_id === ee), [ee, w]), Le = I(() => w.reduce((e, t) => ({
45515
45547
  ...e,
45516
45548
  [t.user_type_id]: t.user_type_name
45517
- }), {}), [m]), De = I(() => m.filter((e) => !IM(e)), [m]), Oe = I(() => f.filter((e) => !IM({
45549
+ }), {}), [w]), Re = I(() => w.filter((e) => !IM(e)), [w]), ze = I(() => f.filter((e) => !IM({
45518
45550
  user_type_id: e.user_type_id,
45519
- user_type_name: Ee[e.user_type_id]
45520
- })), [Ee, f]);
45551
+ user_type_name: Le[e.user_type_id]
45552
+ })), [Le, f]);
45521
45553
  F(() => {
45522
- if (!w) {
45523
- M([]);
45554
+ if (!ne) {
45555
+ ce([]);
45524
45556
  return;
45525
45557
  }
45526
45558
  let e = Number(t.getFieldValue("user_type_id") ?? 0);
45527
45559
  if (!e) {
45528
- M([]);
45560
+ ce([]);
45529
45561
  return;
45530
45562
  }
45531
45563
  let n = !1;
45532
- return N(!0), ED(e).then((e) => {
45533
- n || M(e.filter((e) => !E || e.user_id !== E.user_id));
45564
+ return ue(!0), ED(e).then((e) => {
45565
+ n || ce(e.filter((e) => !N || e.user_id !== N.user_id));
45534
45566
  }).catch((e) => {
45535
- n || (q.error(e.message || "Unable to load reporting users"), M([]));
45567
+ n || (q.error(e.message || "Unable to load reporting users"), ce([]));
45536
45568
  }).finally(() => {
45537
- n || N(!1);
45569
+ n || ue(!1);
45538
45570
  }), () => {
45539
45571
  n = !0;
45540
45572
  };
45541
45573
  }, [
45542
- E,
45574
+ N,
45543
45575
  t,
45544
- w
45576
+ ne
45545
45577
  ]);
45546
- let ke = I(() => j.map((e) => ({
45547
- label: LM(e),
45548
- value: e.user_id
45549
- })), [j]), Ae = I(() => f.reduce((e, t) => ({
45578
+ let Be = I(() => {
45579
+ let e = se.map((e) => ({
45580
+ label: LM(e),
45581
+ value: e.user_id
45582
+ })), t = Number(N?.reporting_id ?? N?.reportingId ?? 0);
45583
+ return !t || e.some((e) => Number(e.value) === t) ? e : [{
45584
+ label: N?.reportingName ?? N?.reporting_name ?? He[t] ?? `User ${t}`,
45585
+ value: t
45586
+ }, ...e];
45587
+ }, [
45588
+ N,
45589
+ se,
45590
+ He
45591
+ ]), Ve = I(() => {
45592
+ let e = Re.map((e) => ({
45593
+ label: e.user_type_name,
45594
+ value: e.user_type_id
45595
+ }));
45596
+ if (!N) return e;
45597
+ let t = Number(N.user_type_id ?? 0);
45598
+ return e.some((e) => Number(e.value) === t) ? e : [{
45599
+ label: Le[t] ?? N.userType ?? N.roleName ?? (t > 0 ? `Type ${t}` : "Unassigned"),
45600
+ value: t
45601
+ }, ...e];
45602
+ }, [
45603
+ N,
45604
+ Re,
45605
+ Le
45606
+ ]), He = I(() => f.reduce((e, t) => ({
45550
45607
  ...e,
45551
45608
  [t.user_id]: LM(t)
45552
45609
  }), {}), [f]);
45553
- Oe.length, m.length, g.length;
45554
- let je = [
45610
+ w.length, E.length;
45611
+ let Ue = [
45555
45612
  {
45556
45613
  key: "form-groups",
45557
45614
  label: /* @__PURE__ */ X("span", { children: [/* @__PURE__ */ Y(la, {}), " Form Groups"] }),
@@ -45615,7 +45672,7 @@ function WM({ onLogout: e }) {
45615
45672
  description: "Shared Location and Tax lists used across modules (e.g. the submission form’s W2 employer section).",
45616
45673
  component: /* @__PURE__ */ Y(SM, {})
45617
45674
  }
45618
- ], Me = [
45675
+ ], We = [
45619
45676
  {
45620
45677
  key: "users",
45621
45678
  icon: /* @__PURE__ */ Y(es, {}),
@@ -45642,8 +45699,8 @@ function WM({ onLogout: e }) {
45642
45699
  label: "Integrations"
45643
45700
  }
45644
45701
  ];
45645
- function Ne(e, t) {
45646
- C((n) => {
45702
+ function Ge(e, t) {
45703
+ te((n) => {
45647
45704
  let r = n.filter((t) => t.key === e).length;
45648
45705
  return console.log("DEBUG updateRolePermission", {
45649
45706
  key: e,
@@ -45655,17 +45712,17 @@ function WM({ onLogout: e }) {
45655
45712
  } : n);
45656
45713
  });
45657
45714
  }
45658
- async function Pe() {
45715
+ async function Ke() {
45659
45716
  u(!0);
45660
45717
  try {
45661
- console.log("DEBUG saveRolePermissions jobs rows", S.filter((e) => zM(e) === "jobs" || zM(e) === "job")), await BD(b, S.map((e) => ({
45718
+ console.log("DEBUG saveRolePermissions jobs rows", j.filter((e) => zM(e) === "jobs" || zM(e) === "job")), await BD(ee, j.map((e) => ({
45662
45719
  menu_id: e.menuId,
45663
45720
  menu_name: e.menuName,
45664
45721
  menu_key: e.menuKey,
45665
45722
  permission_id: e.permissionId,
45666
45723
  permission_key: e.permissionKey,
45667
45724
  access_value: e.accessValue,
45668
- updated_by: ye?.userId ?? null
45725
+ updated_by: ke?.userId ?? null
45669
45726
  }))), q.success("Role permissions updated");
45670
45727
  } catch (e) {
45671
45728
  q.error(e.message || "Unable to save role permissions");
@@ -45673,15 +45730,15 @@ function WM({ onLogout: e }) {
45673
45730
  u(!1);
45674
45731
  }
45675
45732
  }
45676
- function Fe() {
45677
- D(null), t.resetFields(), t.setFieldsValue({
45733
+ function qe() {
45734
+ re(null), t.resetFields(), t.setFieldsValue({
45678
45735
  status: "ACTIVE",
45679
- user_type_id: De[0]?.user_type_id,
45736
+ user_type_id: Re[0]?.user_type_id,
45680
45737
  reporting_id: 0
45681
- }), T(!0);
45738
+ }), M(!0);
45682
45739
  }
45683
- function Ie(e) {
45684
- D(e), t.setFieldsValue({
45740
+ function Je(e) {
45741
+ re(e), t.setFieldsValue({
45685
45742
  first_name: e.first_name,
45686
45743
  last_name: e.last_name,
45687
45744
  username: e.username,
@@ -45691,42 +45748,42 @@ function WM({ onLogout: e }) {
45691
45748
  reporting_id: e.reporting_id ?? e.reportingId ?? 0,
45692
45749
  profile_image: e.profile_image,
45693
45750
  status: e.status
45694
- }), T(!0);
45751
+ }), M(!0);
45695
45752
  }
45696
- async function Le(e) {
45697
- k(!0);
45753
+ async function Ye(e) {
45754
+ ie(!0);
45698
45755
  try {
45699
45756
  let t = {
45700
45757
  ...e,
45701
45758
  status: e.status === 1 || e.status === "1" || e.status === !0 ? "ACTIVE" : e.status === 0 || e.status === "0" || e.status === !1 ? "INACTIVE" : String(e.status ?? "ACTIVE").toUpperCase(),
45702
- updated_by: ye?.userId ?? null,
45703
- created_by: ye?.userId ?? null
45759
+ updated_by: ke?.userId ?? null,
45760
+ created_by: ke?.userId ?? null
45704
45761
  };
45705
- t.password || delete t.password, E ? (await OD(E.user_id, t), q.success("User updated")) : (await DD(t), q.success("User created")), T(!1), D(null), await we();
45762
+ t.password || delete t.password, N ? (await OD(N.user_id, t), q.success("User updated")) : (await DD(t), q.success("User created")), M(!1), re(null), await Fe();
45706
45763
  } catch (e) {
45707
45764
  q.error(e.message || "Unable to save user");
45708
45765
  } finally {
45709
- k(!1);
45766
+ ie(!1);
45710
45767
  }
45711
45768
  }
45712
- async function Re(e) {
45713
- A(e);
45769
+ async function Xe(e) {
45770
+ oe(e);
45714
45771
  try {
45715
- await kD(e), q.success("User deleted"), await we();
45772
+ await kD(e), q.success("User deleted"), await Fe();
45716
45773
  } catch (e) {
45717
45774
  q.error(e.message || "Unable to delete user");
45718
45775
  } finally {
45719
- A(null);
45776
+ oe(null);
45720
45777
  }
45721
45778
  }
45722
- function ze(e, t) {
45723
- ue("listView"), ce({
45779
+ function Ze(e, t) {
45780
+ be("listView"), ve({
45724
45781
  kind: e,
45725
45782
  record: t
45726
- }), e === "role" && x(t.user_type_id);
45783
+ }), e === "role" && A(t.user_type_id);
45727
45784
  }
45728
- function Be(e, t) {
45729
- C((n) => {
45785
+ function Qe(e, t) {
45786
+ te((n) => {
45730
45787
  let r = [...new Set(n.map(zM))], i = r.indexOf(e), a = i + t;
45731
45788
  if (i < 0 || a < 0 || a >= r.length) return n;
45732
45789
  [r[i], r[a]] = [r[a], r[i]];
@@ -45734,16 +45791,16 @@ function WM({ onLogout: e }) {
45734
45791
  return [...n].sort((e, t) => o.get(zM(e)) - o.get(zM(t)));
45735
45792
  });
45736
45793
  }
45737
- function Ve() {
45738
- ie(null), n.resetFields(), n.setFieldsValue({ status: "ACTIVE" }), re(!0);
45794
+ function $e() {
45795
+ me(null), n.resetFields(), n.setFieldsValue({ status: "ACTIVE" }), fe(!0);
45739
45796
  }
45740
- function He(e) {
45741
- ie(e), re(!0), n.setFieldsValue(e);
45797
+ function et(e) {
45798
+ me(e), fe(!0), n.setFieldsValue(e);
45742
45799
  }
45743
- async function Ue(e) {
45744
- oe(!0);
45800
+ async function tt(e) {
45801
+ ge(!0);
45745
45802
  try {
45746
- let t = ye?.userId ?? null, n = !!P, r = n ? await MD(P.user_type_id, {
45803
+ let t = ke?.userId ?? null, n = !!pe, r = n ? await MD(pe.user_type_id, {
45747
45804
  ...e,
45748
45805
  updated_by: t
45749
45806
  }) : await jD({
@@ -45751,7 +45808,7 @@ function WM({ onLogout: e }) {
45751
45808
  created_by: t,
45752
45809
  visible_menu_ids: []
45753
45810
  }), i = r.user_type_id;
45754
- q.success(n ? "User type updated" : "User type created. Customize its menus and permissions."), re(!1), await we(), x(i), n || (ue("permissions"), ce({
45811
+ q.success(n ? "User type updated" : "User type created. Customize its menus and permissions."), fe(!1), await Pe(), A(i), n || (be("permissions"), ve({
45755
45812
  kind: "role",
45756
45813
  record: {
45757
45814
  ...e,
@@ -45763,12 +45820,12 @@ function WM({ onLogout: e }) {
45763
45820
  } catch (e) {
45764
45821
  q.error(e.message || "Unable to save role");
45765
45822
  } finally {
45766
- oe(!1);
45823
+ ge(!1);
45767
45824
  }
45768
45825
  }
45769
- async function We(e) {
45826
+ async function nt(e) {
45770
45827
  try {
45771
- await ND(e), q.success("Role deleted"), await we();
45828
+ await ND(e), q.success("Role deleted"), await Pe();
45772
45829
  } catch (e) {
45773
45830
  q.error(e.message || "Unable to delete role");
45774
45831
  }
@@ -45788,7 +45845,7 @@ function WM({ onLogout: e }) {
45788
45845
  mode: "inline",
45789
45846
  selectedKeys: [r],
45790
45847
  onClick: ({ key: e }) => i(e),
45791
- items: Me
45848
+ items: We
45792
45849
  })]
45793
45850
  })
45794
45851
  }), /* @__PURE__ */ Y(Ri, { children: /* @__PURE__ */ X(EM, {
@@ -45817,12 +45874,12 @@ function WM({ onLogout: e }) {
45817
45874
  })] }), /* @__PURE__ */ Y(R, {
45818
45875
  type: "primary",
45819
45876
  icon: /* @__PURE__ */ Y(wo, {}),
45820
- onClick: Fe,
45877
+ onClick: qe,
45821
45878
  children: "Add"
45822
45879
  })]
45823
45880
  }), /* @__PURE__ */ Y(dS, {
45824
45881
  listName: "Users",
45825
- loading: a,
45882
+ loading: S,
45826
45883
  fields: [
45827
45884
  {
45828
45885
  label: "Name",
@@ -45837,13 +45894,13 @@ function WM({ onLogout: e }) {
45837
45894
  label: "User Type",
45838
45895
  value: "user_type_id",
45839
45896
  width: 160,
45840
- render: (e) => Ee[e] || `Type ${e}`
45897
+ render: (e, t) => Le[e] || t?.userType || t?.user_type || (Number(e) > 0 ? `Type ${e}` : "—")
45841
45898
  },
45842
45899
  {
45843
45900
  label: "Reporting Manager",
45844
45901
  value: "reporting_id",
45845
45902
  width: 180,
45846
- render: (e) => Ae[e] || "None"
45903
+ render: (e, t) => He[e] || t?.reportingName || t?.reporting_name || (Number(e) > 0 ? `User ${e}` : "None")
45847
45904
  },
45848
45905
  {
45849
45906
  label: "Status",
@@ -45866,29 +45923,38 @@ function WM({ onLogout: e }) {
45866
45923
  "aria-label": "Edit user",
45867
45924
  icon: /* @__PURE__ */ Y(Ba, {}),
45868
45925
  size: "small",
45869
- onClick: () => Ie(t)
45926
+ onClick: () => Je(t)
45870
45927
  }), /* @__PURE__ */ Y(Ui, {
45871
45928
  title: "Delete user?",
45872
45929
  description: "This removes the user from the auth database.",
45873
45930
  okText: "Delete",
45874
45931
  okButtonProps: { danger: !0 },
45875
- onConfirm: () => Re(t.user_id),
45932
+ onConfirm: () => Xe(t.user_id),
45876
45933
  children: /* @__PURE__ */ Y(R, {
45877
45934
  danger: !0,
45878
45935
  "aria-label": "Delete user",
45879
45936
  icon: /* @__PURE__ */ Y(Fa, {}),
45880
- loading: ee === t.user_id,
45937
+ loading: ae === t.user_id,
45881
45938
  size: "small"
45882
45939
  })
45883
45940
  })]
45884
45941
  })
45885
45942
  }
45886
45943
  ],
45887
- dataSource: Oe.map((e) => ({
45944
+ dataSource: ze.map((e) => ({
45888
45945
  ...e,
45889
45946
  key: e.user_id
45890
45947
  })),
45891
- total: Oe.length,
45948
+ total: m,
45949
+ current: g,
45950
+ pageSize: v,
45951
+ onPageChange: _,
45952
+ onPageSizeChange: (e) => {
45953
+ y(e), _(1);
45954
+ },
45955
+ onSearch: (e) => {
45956
+ x(e ?? ""), _(1);
45957
+ },
45892
45958
  rowSelection: !1
45893
45959
  })]
45894
45960
  })
@@ -45919,19 +45985,19 @@ function WM({ onLogout: e }) {
45919
45985
  mode: "multiple",
45920
45986
  allowClear: !0,
45921
45987
  showSearch: !0,
45922
- value: pe,
45923
- options: de,
45924
- placeholder: xe ? "All modules already seeded" : "Select modules or collections to seed",
45925
- disabled: he || _e || xe,
45926
- loading: he,
45927
- onChange: me,
45988
+ value: Ce,
45989
+ options: xe,
45990
+ placeholder: je ? "All modules already seeded" : "Select modules or collections to seed",
45991
+ disabled: Te || De || je,
45992
+ loading: Te,
45993
+ onChange: we,
45928
45994
  style: { width: "100%" }
45929
45995
  })
45930
45996
  }), /* @__PURE__ */ Y(R, {
45931
45997
  type: "primary",
45932
- loading: _e,
45933
- disabled: he || pe.length === 0,
45934
- onClick: Ce,
45998
+ loading: De,
45999
+ disabled: Te || Ce.length === 0,
46000
+ onClick: Ne,
45935
46001
  children: "Seed Field Config"
45936
46002
  })]
45937
46003
  }), /* @__PURE__ */ Y(kM, {
@@ -45941,7 +46007,7 @@ function WM({ onLogout: e }) {
45941
46007
  marginTop: 8,
45942
46008
  fontSize: 12
45943
46009
  },
45944
- children: xe ? "Seed is disabled because all configured modules already have user type field config data." : "Already seeded modules are disabled. New modules or collections can still be seeded."
46010
+ children: je ? "Seed is disabled because all configured modules already have user type field config data." : "Already seeded modules are disabled. New modules or collections can still be seeded."
45945
46011
  })]
45946
46012
  }), /* @__PURE__ */ X("section", {
45947
46013
  className: "admin-section",
@@ -45956,7 +46022,7 @@ function WM({ onLogout: e }) {
45956
46022
  })] }), /* @__PURE__ */ Y(R, {
45957
46023
  type: "primary",
45958
46024
  icon: /* @__PURE__ */ Y(wo, {}),
45959
- onClick: Ve,
46025
+ onClick: $e,
45960
46026
  children: "Add Role"
45961
46027
  })]
45962
46028
  }), /* @__PURE__ */ Y(dS, {
@@ -45994,7 +46060,7 @@ function WM({ onLogout: e }) {
45994
46060
  /* @__PURE__ */ Y(R, {
45995
46061
  "aria-label": "Configure role",
45996
46062
  size: "small",
45997
- onClick: () => ze("role", t),
46063
+ onClick: () => Ze("role", t),
45998
46064
  children: "Config"
45999
46065
  }),
46000
46066
  /* @__PURE__ */ Y(R, {
@@ -46002,11 +46068,11 @@ function WM({ onLogout: e }) {
46002
46068
  disabled: !n,
46003
46069
  icon: /* @__PURE__ */ Y(Ba, {}),
46004
46070
  size: "small",
46005
- onClick: () => He(t)
46071
+ onClick: () => et(t)
46006
46072
  }),
46007
46073
  n && !IM(t) && /* @__PURE__ */ Y(Ui, {
46008
46074
  title: "Delete role?",
46009
- onConfirm: () => We(t.user_type_id),
46075
+ onConfirm: () => nt(t.user_type_id),
46010
46076
  children: /* @__PURE__ */ Y(R, {
46011
46077
  "aria-label": "Delete role",
46012
46078
  danger: !0,
@@ -46019,13 +46085,13 @@ function WM({ onLogout: e }) {
46019
46085
  }
46020
46086
  }
46021
46087
  ],
46022
- dataSource: m.map((e) => ({
46088
+ dataSource: w.map((e) => ({
46023
46089
  ...e,
46024
46090
  key: e.user_type_id,
46025
46091
  roleId: e.user_type_id,
46026
46092
  roleName: e.user_type_name
46027
46093
  })),
46028
- total: m.length,
46094
+ total: w.length,
46029
46095
  rowSelection: !1
46030
46096
  })]
46031
46097
  })]
@@ -46051,13 +46117,13 @@ function WM({ onLogout: e }) {
46051
46117
  children: "CORE-THEME admin modules embedded into the admin dashboard."
46052
46118
  })] }), /* @__PURE__ */ X(G, {
46053
46119
  color: "blue",
46054
- children: [je.length, " configurations"]
46120
+ children: [Ue.length, " configurations"]
46055
46121
  })]
46056
46122
  }), /* @__PURE__ */ Y(ta, {
46057
46123
  className: "admin-config-tabs",
46058
46124
  defaultActiveKey: "form-groups",
46059
46125
  tabPosition: "left",
46060
- items: je.map((e) => ({
46126
+ items: Ue.map((e) => ({
46061
46127
  key: e.key,
46062
46128
  label: e.label,
46063
46129
  children: /* @__PURE__ */ X("div", {
@@ -46107,9 +46173,9 @@ function WM({ onLogout: e }) {
46107
46173
  }) }),
46108
46174
  /* @__PURE__ */ X(Vi, {
46109
46175
  className: "uss-modal",
46110
- title: `Configure User Type: ${se?.record?.user_type_name ?? ""}`,
46111
- open: !!se,
46112
- onCancel: () => ce(null),
46176
+ title: `Configure User Type: ${_e?.record?.user_type_name ?? ""}`,
46177
+ open: !!_e,
46178
+ onCancel: () => ve(null),
46113
46179
  footer: null,
46114
46180
  destroyOnHidden: !0,
46115
46181
  width: 900,
@@ -46139,51 +46205,51 @@ function WM({ onLogout: e }) {
46139
46205
  }
46140
46206
  ].map((e) => /* @__PURE__ */ Y("button", {
46141
46207
  type: "button",
46142
- className: `uss-config-btn${le === e.key ? " active" : ""}`,
46143
- onClick: () => ue(e.key),
46208
+ className: `uss-config-btn${ye === e.key ? " active" : ""}`,
46209
+ onClick: () => be(e.key),
46144
46210
  children: e.label
46145
46211
  }, e.key))
46146
- }), se && le === "permissions" ? /* @__PURE__ */ Y(UM, {
46212
+ }), _e && ye === "permissions" ? /* @__PURE__ */ Y(UM, {
46147
46213
  title: "Role Permissions",
46148
46214
  description: "Configure menu permissions for this user type",
46149
- selectedName: Te?.user_type_name,
46215
+ selectedName: Ie?.user_type_name,
46150
46216
  loading: s,
46151
46217
  saving: l,
46152
- rows: S,
46153
- onChange: Ne,
46154
- onMove: Be,
46155
- onSave: Pe
46156
- }) : se && le === "actions" ? /* @__PURE__ */ Y(TO, { role: {
46157
- ...se.record,
46158
- roleId: se.record.user_type_id,
46159
- roleName: se.record.user_type_name
46160
- } }, `${se.record?.user_type_id}-actions`) : se && le === "form" ? /* @__PURE__ */ Y(_O, { role: {
46161
- ...se.record,
46162
- roleId: se.record.user_type_id,
46163
- roleName: se.record.user_type_name
46164
- } }, `${se.record?.user_type_id}-form`) : se ? /* @__PURE__ */ Y(oO, {
46218
+ rows: j,
46219
+ onChange: Ge,
46220
+ onMove: Qe,
46221
+ onSave: Ke
46222
+ }) : _e && ye === "actions" ? /* @__PURE__ */ Y(TO, { role: {
46223
+ ..._e.record,
46224
+ roleId: _e.record.user_type_id,
46225
+ roleName: _e.record.user_type_name
46226
+ } }, `${_e.record?.user_type_id}-actions`) : _e && ye === "form" ? /* @__PURE__ */ Y(_O, { role: {
46227
+ ..._e.record,
46228
+ roleId: _e.record.user_type_id,
46229
+ roleName: _e.record.user_type_name
46230
+ } }, `${_e.record?.user_type_id}-form`) : _e ? /* @__PURE__ */ Y(oO, {
46165
46231
  role: {
46166
- ...se.record,
46167
- roleId: se.record.user_type_id,
46168
- roleName: se.record.user_type_name
46232
+ ..._e.record,
46233
+ roleId: _e.record.user_type_id,
46234
+ roleName: _e.record.user_type_name
46169
46235
  },
46170
- configType: le
46171
- }, `${se.record?.user_type_id}-${le}`) : null]
46236
+ configType: ye
46237
+ }, `${_e.record?.user_type_id}-${ye}`) : null]
46172
46238
  }),
46173
46239
  /* @__PURE__ */ Y(Vi, {
46174
46240
  className: "admin-role-modal",
46175
- title: P ? "Edit User Type" : "Create User Type",
46176
- open: ne,
46177
- onCancel: () => re(!1),
46241
+ title: pe ? "Edit User Type" : "Create User Type",
46242
+ open: de,
46243
+ onCancel: () => fe(!1),
46178
46244
  onOk: () => n.submit(),
46179
- okText: P ? "Save" : "Next",
46180
- confirmLoading: ae,
46245
+ okText: pe ? "Save" : "Next",
46246
+ confirmLoading: he,
46181
46247
  destroyOnHidden: !0,
46182
46248
  width: 900,
46183
46249
  children: /* @__PURE__ */ X(B, {
46184
46250
  form: n,
46185
46251
  layout: "vertical",
46186
- onFinish: Ue,
46252
+ onFinish: tt,
46187
46253
  children: [
46188
46254
  /* @__PURE__ */ Y(B.Item, {
46189
46255
  name: "user_type_name",
@@ -46208,17 +46274,17 @@ function WM({ onLogout: e }) {
46208
46274
  })
46209
46275
  }),
46210
46276
  /* @__PURE__ */ Y(Vi, {
46211
- title: E ? "Edit User" : "Add User",
46212
- open: w,
46213
- onCancel: () => T(!1),
46277
+ title: N ? "Edit User" : "Add User",
46278
+ open: ne,
46279
+ onCancel: () => M(!1),
46214
46280
  onOk: () => t.submit(),
46215
- confirmLoading: O,
46281
+ confirmLoading: P,
46216
46282
  destroyOnHidden: !0,
46217
46283
  children: /* @__PURE__ */ X(B, {
46218
46284
  form: t,
46219
46285
  layout: "vertical",
46220
46286
  requiredMark: !1,
46221
- onFinish: Le,
46287
+ onFinish: Ye,
46222
46288
  children: [
46223
46289
  /* @__PURE__ */ X("div", {
46224
46290
  className: "admin-form-row",
@@ -46260,11 +46326,11 @@ function WM({ onLogout: e }) {
46260
46326
  /* @__PURE__ */ Y(B.Item, {
46261
46327
  label: "Password",
46262
46328
  name: "password",
46263
- rules: E ? [] : [{
46329
+ rules: N ? [] : [{
46264
46330
  required: !0,
46265
46331
  message: "Password is required"
46266
46332
  }],
46267
- children: /* @__PURE__ */ Y(V.Password, { placeholder: E ? "Leave empty to keep current password" : "Password" })
46333
+ children: /* @__PURE__ */ Y(V.Password, { placeholder: N ? "Leave empty to keep current password" : "Password" })
46268
46334
  }),
46269
46335
  /* @__PURE__ */ X("div", {
46270
46336
  className: "admin-form-row",
@@ -46282,21 +46348,18 @@ function WM({ onLogout: e }) {
46282
46348
  children: /* @__PURE__ */ Y(H, {
46283
46349
  placeholder: "Select user type",
46284
46350
  onChange: () => {
46285
- M([]), queueMicrotask(() => {
46351
+ ce([]), queueMicrotask(() => {
46286
46352
  let e = Number(t.getFieldValue("user_type_id") ?? 0);
46287
- e && (N(!0), ED(e).then((e) => {
46288
- M(e.filter((e) => !E || e.user_id !== E.user_id));
46353
+ e && (ue(!0), ED(e).then((e) => {
46354
+ ce(e.filter((e) => !N || e.user_id !== N.user_id));
46289
46355
  }).catch((e) => {
46290
- q.error(e.message || "Unable to load reporting users"), M([]);
46356
+ q.error(e.message || "Unable to load reporting users"), ce([]);
46291
46357
  }).finally(() => {
46292
- N(!1);
46358
+ ue(!1);
46293
46359
  }));
46294
46360
  });
46295
46361
  },
46296
- options: De.map((e) => ({
46297
- label: e.user_type_name,
46298
- value: e.user_type_id
46299
- }))
46362
+ options: Ve
46300
46363
  })
46301
46364
  })]
46302
46365
  }),
@@ -46306,13 +46369,13 @@ function WM({ onLogout: e }) {
46306
46369
  children: /* @__PURE__ */ Y(H, {
46307
46370
  allowClear: !0,
46308
46371
  showSearch: !0,
46309
- loading: te,
46372
+ loading: le,
46310
46373
  placeholder: "Select reporting manager",
46311
46374
  optionFilterProp: "label",
46312
46375
  options: [{
46313
46376
  label: "None",
46314
46377
  value: 0
46315
- }, ...ke]
46378
+ }, ...Be]
46316
46379
  })
46317
46380
  }),
46318
46381
  /* @__PURE__ */ Y(B.Item, {
@@ -46775,7 +46838,7 @@ function CN() {
46775
46838
  attachments: [],
46776
46839
  showCc: !1,
46777
46840
  showBcc: !1
46778
- }), [x, S] = L(!_), [C, w] = L(!1), [T, E] = L([]), [D, O] = L(!1), [k, ee] = L(!1), A = Si(!1), j = Si(""), M = Si(0);
46841
+ }), [x, S] = L(!_), [C, w] = L(!1), [T, E] = L([]), [D, O] = L(!1), [k, ee] = L(!1), A = Si(!1), j = Si(""), te = Si(0);
46779
46842
  F(() => {
46780
46843
  if (!hN(s) || A.current || YM(y.to).length > 0 || n.length === 0 || j.current === d) return;
46781
46844
  let e = !1;
@@ -46800,7 +46863,7 @@ function CN() {
46800
46863
  S(!0);
46801
46864
  return;
46802
46865
  }
46803
- let e = ++M.current, t = !1;
46866
+ let e = ++te.current, t = !1;
46804
46867
  async function n() {
46805
46868
  S(!1), w(!0), b((e) => ({
46806
46869
  ...e,
@@ -46811,9 +46874,9 @@ function CN() {
46811
46874
  if (o.trim()) try {
46812
46875
  o = await uu(o, n.subject || a);
46813
46876
  } catch (n) {
46814
- !t && e === M.current && q.warning(n?.message || "Mail content formatting failed. Showing original content.");
46877
+ !t && e === te.current && q.warning(n?.message || "Mail content formatting failed. Showing original content.");
46815
46878
  }
46816
- if (t || e !== M.current) return;
46879
+ if (t || e !== te.current) return;
46817
46880
  b((e) => ({
46818
46881
  ...e,
46819
46882
  subject: n.subject || e.subject,
@@ -46826,16 +46889,16 @@ function CN() {
46826
46889
  showBcc: e.showBcc || !!n.bccMail?.length
46827
46890
  }));
46828
46891
  } catch (n) {
46829
- !t && e === M.current && l && q.error(n?.message || "Could not load mail template for this Job ID");
46892
+ !t && e === te.current && l && q.error(n?.message || "Could not load mail template for this Job ID");
46830
46893
  } finally {
46831
- !t && e === M.current && (S(!0), w(!1));
46894
+ !t && e === te.current && (S(!0), w(!1));
46832
46895
  }
46833
46896
  }
46834
46897
  return n(), () => {
46835
46898
  t = !0;
46836
46899
  };
46837
46900
  }, [_, l]);
46838
- function te(e = h) {
46901
+ function ne(e = h) {
46839
46902
  let t = String(e ?? "").trim();
46840
46903
  if (!uN.test(t)) {
46841
46904
  v(""), t && q.warning("Enter a valid 24-character Job ID");
@@ -46847,15 +46910,15 @@ function CN() {
46847
46910
  }
46848
46911
  v(t);
46849
46912
  }
46850
- function N(e, t) {
46913
+ function M(e, t) {
46851
46914
  if (!e) {
46852
46915
  v(""), g("");
46853
46916
  return;
46854
46917
  }
46855
46918
  let n = t?.label ?? "";
46856
- g(String(n || (e ?? ""))), te(e);
46919
+ g(String(n || (e ?? ""))), ne(e);
46857
46920
  }
46858
- function ne(e) {
46921
+ function N(e) {
46859
46922
  let t = String(e ?? "").trim();
46860
46923
  if (g(t), t.length < 3) {
46861
46924
  E([]);
@@ -46938,8 +47001,8 @@ function CN() {
46938
47001
  filterOption: !1,
46939
47002
  value: _ || void 0,
46940
47003
  searchValue: h,
46941
- onSearch: ne,
46942
- onChange: N,
47004
+ onSearch: N,
47005
+ onChange: M,
46943
47006
  onClear: () => {
46944
47007
  v(""), g(""), E([]);
46945
47008
  },
@@ -48750,7 +48813,7 @@ function pF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48750
48813
  }), O = (f.removedIds ?? []).length, k = l.length > O, ee = E.some((e) => {
48751
48814
  let t = d[e.name];
48752
48815
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0);
48753
- }), { handleOk: A, confirming: j, deleteError: M, resetSubmitState: te } = fF({
48816
+ }), { handleOk: A, confirming: j, deleteError: te, resetSubmitState: ne } = fF({
48754
48817
  form: o,
48755
48818
  config: t,
48756
48819
  api: a,
@@ -48765,14 +48828,14 @@ function pF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48765
48828
  onSubmit: i
48766
48829
  });
48767
48830
  F(() => {
48768
- e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []), te());
48831
+ e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []), ne());
48769
48832
  }, [e, v]);
48770
- let N = !!t?.autoSubmitWhenNoFields && _.length === 0;
48833
+ let M = !!t?.autoSubmitWhenNoFields && _.length === 0;
48771
48834
  F(() => {
48772
- !e || !N || A();
48773
- }, [e, N]);
48774
- let ne = p.length, re = String(h).replace(/s$/i, ""), P = ne === 1 ? re : h, ie = m[0] ?? {}, ae = t?.getTitleText ? t.getTitleText(ne, P, ie, f) : t?.title, oe = ne === 1 ? ie.jobTitle ?? ie.title ?? ie.name ?? ie.fullName ?? ie.candidateName ?? null : null, se = t?.getBodyText ? t.getBodyText(ne, re, P, oe, f) : t?.bodyText ?? null, ce = typeof t?.getNote == "function" ? t.getNote(f) : t?.note, le = t?.disabledUntilFilled && !D && !k;
48775
- if (!t || !e || N) return null;
48835
+ !e || !M || A();
48836
+ }, [e, M]);
48837
+ let N = p.length, re = String(h).replace(/s$/i, ""), P = N === 1 ? re : h, ie = m[0] ?? {}, ae = t?.getTitleText ? t.getTitleText(N, P, ie, f) : t?.title, oe = N === 1 ? ie.jobTitle ?? ie.title ?? ie.name ?? ie.fullName ?? ie.candidateName ?? null : null, se = t?.getBodyText ? t.getBodyText(N, re, P, oe, f) : t?.bodyText ?? null, ce = typeof t?.getNote == "function" ? t.getNote(f) : t?.note, le = t?.disabledUntilFilled && !D && !k;
48838
+ if (!t || !e || M) return null;
48776
48839
  let ue = t.component;
48777
48840
  return ue ? /* @__PURE__ */ Y(Vi, {
48778
48841
  open: e,
@@ -48819,10 +48882,10 @@ function pF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48819
48882
  note: ce,
48820
48883
  description: t.description,
48821
48884
  showSelectedCount: t.showSelectedCount,
48822
- count: ne,
48885
+ count: N,
48823
48886
  itemLabel: P,
48824
48887
  bodyText: se,
48825
- deleteError: M
48888
+ deleteError: te
48826
48889
  }),
48827
48890
  /* @__PURE__ */ Y(lP, { footerNote: t.footerNote }),
48828
48891
  /* @__PURE__ */ Y(KP, {
@@ -50110,7 +50173,7 @@ function tL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50110
50173
  S(!1);
50111
50174
  }
50112
50175
  }
50113
- }, j = !T && YM(k.to).length > 0 && XM(k.to) && XM(k.cc) && XM(k.bcc) && k.subject.trim() && k.contents.trim(), M = async () => {
50176
+ }, j = !T && YM(k.to).length > 0 && XM(k.to) && XM(k.cc) && XM(k.bcc) && k.subject.trim() && k.contents.trim(), te = async () => {
50114
50177
  if (!_ || !j || D) return;
50115
50178
  O(!0);
50116
50179
  let e = {
@@ -50145,7 +50208,7 @@ function tL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50145
50208
  } finally {
50146
50209
  O(!1);
50147
50210
  }
50148
- }, te = I(() => ({
50211
+ }, ne = I(() => ({
50149
50212
  submissionApprove: async ({ computed: e, referral: t }) => {
50150
50213
  v(e), b(t ?? null), g("vms"), m(!0);
50151
50214
  },
@@ -50181,7 +50244,7 @@ function tL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50181
50244
  identity: KI(a, s.display),
50182
50245
  referralOptions: d,
50183
50246
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
50184
- actions: te,
50247
+ actions: ne,
50185
50248
  onClose: () => i?.(),
50186
50249
  variant: "popup"
50187
50250
  }),
@@ -50230,7 +50293,7 @@ function tL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50230
50293
  type: "primary",
50231
50294
  loading: D,
50232
50295
  disabled: !j,
50233
- onClick: M,
50296
+ onClick: te,
50234
50297
  children: "Send"
50235
50298
  })]
50236
50299
  }),
@@ -50851,7 +50914,7 @@ function PL() {
50851
50914
  contents: "",
50852
50915
  showCc: !1,
50853
50916
  showBcc: !1
50854
- }), [f, p] = L(!l), [m, h] = L(jL.defaultTab), [g, _] = L(""), [v, y] = L([]), [b, x] = L(0), [S, C] = L(0), [w, T] = L(0), [E, D] = L(1), [O, k] = L(jL.defaultPageSize), [ee, A] = L(!1), [j, M] = L([]);
50917
+ }), [f, p] = L(!l), [m, h] = L(jL.defaultTab), [g, _] = L(""), [v, y] = L([]), [b, x] = L(0), [S, C] = L(0), [w, T] = L(0), [E, D] = L(1), [O, k] = L(jL.defaultPageSize), [ee, A] = L(!1), [j, te] = L([]);
50855
50918
  F(() => {
50856
50919
  if (!l) return;
50857
50920
  let e = !1;
@@ -50888,34 +50951,34 @@ function PL() {
50888
50951
  cc: e.ccMail?.length ? Array.isArray(e.ccMail) ? e.ccMail.join(", ") : String(e.ccMail) : t.cc
50889
50952
  }))).catch(() => {}).finally(() => p(!0));
50890
50953
  }, [l]);
50891
- let te = I(() => j.map((e) => v.find((t) => t.vendorId === e)?.vendorEmail ?? "").filter(Boolean), [j, v]), N = I(() => ({
50954
+ let ne = I(() => j.map((e) => v.find((t) => t.vendorId === e)?.vendorEmail ?? "").filter(Boolean), [j, v]), M = I(() => ({
50892
50955
  ...u,
50893
- bcc: [.../* @__PURE__ */ new Set([...YM(u.bcc), ...te])].join(", "),
50894
- showBcc: u.showBcc || te.length > 0
50895
- }), [u, te]);
50896
- function ne(e) {
50897
- let t = new Set(te);
50956
+ bcc: [.../* @__PURE__ */ new Set([...YM(u.bcc), ...ne])].join(", "),
50957
+ showBcc: u.showBcc || ne.length > 0
50958
+ }), [u, ne]);
50959
+ function N(e) {
50960
+ let t = new Set(ne);
50898
50961
  d({
50899
50962
  ...e,
50900
50963
  bcc: YM(e.bcc).filter((e) => !t.has(e)).join(", ")
50901
50964
  });
50902
50965
  }
50903
- let re = (YM(N.to).length || YM(N.bcc).length) && XM(N.to) && XM(N.cc) && XM(N.bcc) && N.subject.trim(), P = (e) => e === "myVendor" ? b : S;
50966
+ let re = (YM(M.to).length || YM(M.bcc).length) && XM(M.to) && XM(M.cc) && XM(M.bcc) && M.subject.trim(), P = (e) => e === "myVendor" ? b : S;
50904
50967
  function ie() {
50905
50968
  e(-1);
50906
50969
  }
50907
50970
  function ae() {
50908
50971
  re && ML.submit({
50909
50972
  jobId: l,
50910
- toMail: YM(N.to),
50911
- ccMail: YM(N.cc),
50912
- bccMail: YM(N.bcc),
50913
- subject: N.subject,
50914
- contents: N.contents
50973
+ toMail: YM(M.to),
50974
+ ccMail: YM(M.cc),
50975
+ bccMail: YM(M.bcc),
50976
+ subject: M.subject,
50977
+ contents: M.contents
50915
50978
  }).then((t) => {
50916
50979
  t?.status === !0 ? (q.success(t?.data || "Mail sent successfully."), typeof o == "function" && o({
50917
- ...N,
50918
- message: N.contents,
50980
+ ...M,
50981
+ message: M.contents,
50919
50982
  selectedIds: n
50920
50983
  }), e(-1)) : q.error(t?.message || t?.data || "Failed to send mail. Please try again.");
50921
50984
  }).catch((e) => {
@@ -50989,7 +51052,7 @@ function PL() {
50989
51052
  children: jL.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
50990
51053
  className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
50991
51054
  onClick: () => {
50992
- h(e.key), D(1), M([]);
51055
+ h(e.key), D(1), te([]);
50993
51056
  },
50994
51057
  children: [
50995
51058
  e.label,
@@ -51012,7 +51075,7 @@ function PL() {
51012
51075
  rowSelection: {
51013
51076
  selectedRowKeys: j,
51014
51077
  onChange: (e) => {
51015
- e.length > jL.maxVendorSelect || M(e);
51078
+ e.length > jL.maxVendorSelect || te(e);
51016
51079
  }
51017
51080
  },
51018
51081
  scroll: { y: "calc(100vh - 340px)" }
@@ -51032,8 +51095,8 @@ function PL() {
51032
51095
  }), /* @__PURE__ */ Y("div", {
51033
51096
  className: "vendor-share__right",
51034
51097
  children: /* @__PURE__ */ Y(cN, {
51035
- value: N,
51036
- onChange: ne,
51098
+ value: M,
51099
+ onChange: N,
51037
51100
  moduleName: s,
51038
51101
  defaultTemplateId: c.defaultTemplateId ?? t.state?.defaultTemplateId ?? "",
51039
51102
  ready: f,
@@ -52641,7 +52704,7 @@ function OR({ open: e, onClose: t }) {
52641
52704
  async function C() {
52642
52705
  h(!0);
52643
52706
  try {
52644
- p(await te());
52707
+ p(await ne());
52645
52708
  } catch {
52646
52709
  q.error("Failed to load actions");
52647
52710
  } finally {
@@ -54088,7 +54151,7 @@ function az() {
54088
54151
  }, [t?.name]);
54089
54152
  let j = (e) => {
54090
54153
  s(e ?? ""), h([]), S(null), b(null), p(null), w(!1), l(e ? "module_set" : "idle");
54091
- }, M = async (e) => {
54154
+ }, te = async (e) => {
54092
54155
  if (!e || !O) return;
54093
54156
  let n = e.name.split(".").pop()?.toLowerCase();
54094
54157
  if (!["xlsx", "csv"].includes(n)) {
@@ -54120,7 +54183,7 @@ function az() {
54120
54183
  message: e.message || "Could not reach the server."
54121
54184
  }), l("error");
54122
54185
  }
54123
- }, te = async () => {
54186
+ }, ne = async () => {
54124
54187
  try {
54125
54188
  let e = await fetch(JR);
54126
54189
  if (!e.ok) throw Error(`Template file not found (${e.status})`);
@@ -54131,7 +54194,7 @@ function az() {
54131
54194
  } catch (e) {
54132
54195
  console.error(e), q.error("Unable to download sample template.");
54133
54196
  }
54134
- }, N = async () => {
54197
+ }, M = async () => {
54135
54198
  l("inserting"), b(null);
54136
54199
  try {
54137
54200
  let n = await GE({
@@ -54147,7 +54210,7 @@ function az() {
54147
54210
  message: e.message || "Could not reach the server."
54148
54211
  }), l("preview");
54149
54212
  }
54150
- }, ne = yi(() => {
54213
+ }, N = yi(() => {
54151
54214
  r.current?.scrollIntoView({
54152
54215
  behavior: "smooth",
54153
54216
  block: "center"
@@ -54224,7 +54287,7 @@ function az() {
54224
54287
  title: "2. File upload",
54225
54288
  extra: /* @__PURE__ */ Y(R, {
54226
54289
  icon: /* @__PURE__ */ Y(za, {}),
54227
- onClick: te,
54290
+ onClick: ne,
54228
54291
  children: "Download Sample Template"
54229
54292
  }),
54230
54293
  children: [
@@ -54245,7 +54308,7 @@ function az() {
54245
54308
  },
54246
54309
  onDragLeave: () => d(!1),
54247
54310
  onDrop: (e) => {
54248
- e.preventDefault(), d(!1), M(e.dataTransfer.files?.[0]);
54311
+ e.preventDefault(), d(!1), te(e.dataTransfer.files?.[0]);
54249
54312
  },
54250
54313
  children: [/* @__PURE__ */ Y(Aa, { className: "bulk-upload-icon" }), f ? /* @__PURE__ */ X("span", {
54251
54314
  className: "bulk-file-chip",
@@ -54262,7 +54325,7 @@ function az() {
54262
54325
  hidden: !0,
54263
54326
  type: "file",
54264
54327
  accept: ".xlsx,.csv",
54265
- onChange: (e) => M(e.target.files?.[0])
54328
+ onChange: (e) => te(e.target.files?.[0])
54266
54329
  }),
54267
54330
  D && /* @__PURE__ */ Y(Gi, {
54268
54331
  percent: c === "encoding" ? 45 : 82,
@@ -54285,7 +54348,7 @@ function az() {
54285
54348
  errors: E,
54286
54349
  expanded: C,
54287
54350
  onToggle: () => w((e) => !e),
54288
- onSummaryClick: ne
54351
+ onSummaryClick: N
54289
54352
  }),
54290
54353
  y && c === "preview" && /* @__PURE__ */ Y(Ci, {
54291
54354
  type: "error",
@@ -54297,7 +54360,7 @@ function az() {
54297
54360
  rows: m,
54298
54361
  view: _,
54299
54362
  onViewChange: v,
54300
- onConfirm: N,
54363
+ onConfirm: M,
54301
54364
  onReset: A,
54302
54365
  saving: c === "inserting",
54303
54366
  firstInvalidRowId: ee,
@@ -54602,7 +54665,7 @@ function _z() {
54602
54665
  w,
54603
54666
  C
54604
54667
  ]);
54605
- let M = async (t) => {
54668
+ let te = async (t) => {
54606
54669
  let n = {
54607
54670
  module: fz(t.module),
54608
54671
  flow: fz(t.flow),
@@ -54623,9 +54686,9 @@ function _z() {
54623
54686
  } finally {
54624
54687
  y(!1);
54625
54688
  }
54626
- }, te = (t, n) => {
54689
+ }, ne = (t, n) => {
54627
54690
  e.setFieldsValue({ [t]: fz(n) });
54628
- }, N = (t) => {
54691
+ }, M = (t) => {
54629
54692
  e.setFieldsValue({
54630
54693
  module: fz(t),
54631
54694
  flow: void 0,
@@ -54637,7 +54700,7 @@ function _z() {
54637
54700
  value: void 0,
54638
54701
  expected: void 0
54639
54702
  });
54640
- }, ne = (t) => {
54703
+ }, N = (t) => {
54641
54704
  e.setFieldsValue({
54642
54705
  flow: fz(t),
54643
54706
  step_order: void 0
@@ -54708,7 +54771,7 @@ function _z() {
54708
54771
  children: " *"
54709
54772
  })] }),
54710
54773
  initialValues: lz,
54711
- onFinish: M,
54774
+ onFinish: te,
54712
54775
  autoComplete: "off",
54713
54776
  children: [/* @__PURE__ */ Y(Oi, {
54714
54777
  className: "v1-card",
@@ -54740,7 +54803,7 @@ function _z() {
54740
54803
  optionFilterProp: "label",
54741
54804
  placeholder: "Select module",
54742
54805
  options: S,
54743
- onChange: N
54806
+ onChange: M
54744
54807
  })
54745
54808
  }), /* @__PURE__ */ Y(R, {
54746
54809
  "aria-label": "Add module",
@@ -54762,7 +54825,7 @@ function _z() {
54762
54825
  disabled: D,
54763
54826
  options: o,
54764
54827
  placeholder: u ? "Loading flows" : "Enter flow",
54765
- onChange: ne,
54828
+ onChange: N,
54766
54829
  filterOption: (e, t) => t?.value?.toLowerCase().includes(e.toLowerCase())
54767
54830
  })
54768
54831
  })
@@ -54809,7 +54872,7 @@ function _z() {
54809
54872
  disabled: O,
54810
54873
  placeholder: "Enter description",
54811
54874
  showCount: !0,
54812
- onBlur: (e) => te("description", e.target.value)
54875
+ onBlur: (e) => ne("description", e.target.value)
54813
54876
  })
54814
54877
  })
54815
54878
  }),
@@ -54823,7 +54886,7 @@ function _z() {
54823
54886
  maxLength: 255,
54824
54887
  disabled: O,
54825
54888
  placeholder: "Enter target",
54826
- onBlur: (e) => te("target", e.target.value)
54889
+ onBlur: (e) => ne("target", e.target.value)
54827
54890
  })
54828
54891
  })
54829
54892
  }),
@@ -54838,7 +54901,7 @@ function _z() {
54838
54901
  disabled: O,
54839
54902
  placeholder: "Enter tags",
54840
54903
  prefix: /* @__PURE__ */ Y(Wo, { className: "v1-input-icon" }),
54841
- onBlur: (e) => te("tags", e.target.value)
54904
+ onBlur: (e) => ne("tags", e.target.value)
54842
54905
  })
54843
54906
  })
54844
54907
  }),
@@ -54852,7 +54915,7 @@ function _z() {
54852
54915
  rows: 4,
54853
54916
  disabled: O,
54854
54917
  placeholder: "Enter value",
54855
- onBlur: (e) => te("value", e.target.value)
54918
+ onBlur: (e) => ne("value", e.target.value)
54856
54919
  })
54857
54920
  })
54858
54921
  }),
@@ -54866,7 +54929,7 @@ function _z() {
54866
54929
  rows: 4,
54867
54930
  disabled: O,
54868
54931
  placeholder: "Enter expected result",
54869
- onBlur: (e) => te("expected", e.target.value)
54932
+ onBlur: (e) => ne("expected", e.target.value)
54870
54933
  })
54871
54934
  })
54872
54935
  })
@@ -55001,7 +55064,7 @@ function Tz(e, t) {
55001
55064
  })));
55002
55065
  }
55003
55066
  function Ez() {
55004
- let [e] = B.useForm(), t = ds(), [n] = ps(), r = n.get("edit"), i = !!r, a = I(() => g(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(oz), [m, h] = L({}), [_, v] = L(!1), [y, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), ee = !!D, A = !!O, j = I(() => wz(m, k), [m, k]), M = I(() => xz(o, "modulename"), [o]), te = I(() => xz(c, "submodulename"), [c]), N = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), ne = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), re = yi(async () => {
55067
+ let [e] = B.useForm(), t = ds(), [n] = ps(), r = n.get("edit"), i = !!r, a = I(() => g(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(oz), [m, h] = L({}), [_, v] = L(!1), [y, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), ee = !!D, A = !!O, j = I(() => wz(m, k), [m, k]), te = I(() => xz(o, "modulename"), [o]), ne = I(() => xz(c, "submodulename"), [c]), M = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), N = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), re = yi(async () => {
55005
55068
  try {
55006
55069
  let e = await VE();
55007
55070
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
@@ -55230,7 +55293,7 @@ function Ez() {
55230
55293
  optionFilterProp: "label",
55231
55294
  loading: _,
55232
55295
  placeholder: "Select module",
55233
- options: M,
55296
+ options: te,
55234
55297
  onChange: (t) => {
55235
55298
  let n = o.find((e) => e.id === t)?.modulename ?? "";
55236
55299
  e.setFieldsValue({
@@ -55264,7 +55327,7 @@ function Ez() {
55264
55327
  disabled: !ee,
55265
55328
  loading: y,
55266
55329
  placeholder: ee ? "Select submodule" : "Select module first",
55267
- options: te,
55330
+ options: ne,
55268
55331
  onChange: (t) => {
55269
55332
  e.setFieldsValue({
55270
55333
  submodule: t,
@@ -55329,9 +55392,9 @@ function Ez() {
55329
55392
  extra: /* @__PURE__ */ X(vz, {
55330
55393
  type: "secondary",
55331
55394
  children: [
55332
- N,
55395
+ M,
55333
55396
  " / ",
55334
- ne
55397
+ N
55335
55398
  ]
55336
55399
  }),
55337
55400
  children: [/* @__PURE__ */ X(Ji, {
@@ -56231,9 +56294,9 @@ function Xz() {
56231
56294
  let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(oz), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
56232
56295
  open: !1,
56233
56296
  typeKey: "module"
56234
- }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ds(), T = Vz[g.typeKey], E = I(() => Gz(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), ee = !!Kz(D), A = !!Kz(O), j = !ee, M = !ee || !A, te = I(() => Uz(u, k), [u, k]), N = (e, t = []) => {
56297
+ }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ds(), T = Vz[g.typeKey], E = I(() => Gz(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), ee = !!Kz(D), A = !!Kz(O), j = !ee, te = !ee || !A, ne = I(() => Uz(u, k), [u, k]), M = (e, t = []) => {
56235
56298
  e === "module" && r(t);
56236
- }, ne = async () => {
56299
+ }, N = async () => {
56237
56300
  p(!0);
56238
56301
  try {
56239
56302
  let e = await zE(Vz.module.dbName);
@@ -56284,7 +56347,7 @@ function Xz() {
56284
56347
  }, [e]);
56285
56348
  F(() => {
56286
56349
  Promise.resolve().then(async () => {
56287
- await Promise.all([ne(), re()]);
56350
+ await Promise.all([N(), re()]);
56288
56351
  });
56289
56352
  }, []), F(() => {
56290
56353
  Promise.resolve().then(() => P(D));
@@ -56382,7 +56445,7 @@ function Xz() {
56382
56445
  name: n,
56383
56446
  type: T.dbName
56384
56447
  });
56385
- N(g.typeKey, r?.items ?? []), e.setFieldsValue({ [T.formField]: n }), q.success(`${T.label} added successfully.`), de();
56448
+ M(g.typeKey, r?.items ?? []), e.setFieldsValue({ [T.formField]: n }), q.success(`${T.label} added successfully.`), de();
56386
56449
  } catch (e) {
56387
56450
  if (e?.errorFields) return;
56388
56451
  console.error("Unable to save testing option:", e), q.error(`Unable to add ${T.label.toLowerCase()}.`);
@@ -56510,7 +56573,7 @@ function Xz() {
56510
56573
  children: /* @__PURE__ */ Y(H, {
56511
56574
  allowClear: !0,
56512
56575
  showSearch: !0,
56513
- disabled: M,
56576
+ disabled: te,
56514
56577
  optionFilterProp: "label",
56515
56578
  placeholder: "Select action",
56516
56579
  options: c,
@@ -56526,7 +56589,7 @@ function Xz() {
56526
56589
  children: /* @__PURE__ */ Y(V.TextArea, {
56527
56590
  rows: 3,
56528
56591
  maxLength: 255,
56529
- disabled: M,
56592
+ disabled: te,
56530
56593
  placeholder: "Enter description",
56531
56594
  showCount: !0,
56532
56595
  onBlur: (e) => oe("description", e.target.value)
@@ -56540,13 +56603,13 @@ function Xz() {
56540
56603
  label: "Key",
56541
56604
  name: "target",
56542
56605
  rules: [{
56543
- required: te.key,
56606
+ required: ne.key,
56544
56607
  message: "Key is required for this action"
56545
56608
  }],
56546
56609
  children: /* @__PURE__ */ Y(V, {
56547
56610
  maxLength: 255,
56548
- disabled: M || !!k && !te.key,
56549
- placeholder: M ? "Select module and flow first" : k ? te.key ? "Required — Enter selector / locator" : "Not needed for this action" : "Select an action first",
56611
+ disabled: te || !!k && !ne.key,
56612
+ placeholder: te ? "Select module and flow first" : k ? ne.key ? "Required — Enter selector / locator" : "Not needed for this action" : "Select an action first",
56550
56613
  onBlur: (e) => oe("target", e.target.value)
56551
56614
  })
56552
56615
  })
@@ -56559,7 +56622,7 @@ function Xz() {
56559
56622
  name: "tags",
56560
56623
  children: /* @__PURE__ */ Y(V, {
56561
56624
  maxLength: 200,
56562
- disabled: M,
56625
+ disabled: te,
56563
56626
  placeholder: "Enter tags",
56564
56627
  prefix: /* @__PURE__ */ Y(Wo, { className: "v1-input-icon" }),
56565
56628
  onBlur: (e) => oe("tags", e.target.value)
@@ -56573,13 +56636,13 @@ function Xz() {
56573
56636
  label: "Value",
56574
56637
  name: "value",
56575
56638
  rules: [{
56576
- required: te.value,
56639
+ required: ne.value,
56577
56640
  message: "Value is required for this action"
56578
56641
  }],
56579
56642
  children: /* @__PURE__ */ Y(V.TextArea, {
56580
56643
  rows: 4,
56581
- disabled: M || !!k && !te.value,
56582
- placeholder: M ? "Select module and flow first" : k ? te.value ? "Required — Enter value" : "Not needed for this action" : "Select an action first",
56644
+ disabled: te || !!k && !ne.value,
56645
+ placeholder: te ? "Select module and flow first" : k ? ne.value ? "Required — Enter value" : "Not needed for this action" : "Select an action first",
56583
56646
  onBlur: (e) => oe("value", e.target.value)
56584
56647
  })
56585
56648
  })
@@ -56591,13 +56654,13 @@ function Xz() {
56591
56654
  label: "Expected",
56592
56655
  name: "expected",
56593
56656
  rules: [{
56594
- required: te.expected,
56657
+ required: ne.expected,
56595
56658
  message: "Expected result is required for this action"
56596
56659
  }],
56597
56660
  children: /* @__PURE__ */ Y(V.TextArea, {
56598
56661
  rows: 4,
56599
- disabled: M || !!k && !te.expected,
56600
- placeholder: M ? "Select module and flow first" : k ? te.expected ? "Required — Enter expected result" : "Not needed for this action" : "Select an action first",
56662
+ disabled: te || !!k && !ne.expected,
56663
+ placeholder: te ? "Select module and flow first" : k ? ne.expected ? "Required — Enter expected result" : "Not needed for this action" : "Select an action first",
56601
56664
  onBlur: (e) => oe("expected", e.target.value)
56602
56665
  })
56603
56666
  })
@@ -56610,7 +56673,7 @@ function Xz() {
56610
56673
  type: "primary",
56611
56674
  htmlType: "submit",
56612
56675
  loading: S,
56613
- disabled: M,
56676
+ disabled: te,
56614
56677
  children: "Submit"
56615
56678
  }), /* @__PURE__ */ Y(R, {
56616
56679
  onClick: () => {
@@ -57003,8 +57066,9 @@ async function DB(e, t, n, r = 10, i = 0, a = {}) {
57003
57066
  }
57004
57067
  //#endregion
57005
57068
  //#region src/index.js
57069
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-08-20T10:22:57.825Z");
57006
57070
  var OB = WL, kB = lD(HR), AB = lD(WR), jB = lD(az), MB = lD(_z), NB = lD(Ez), PB = lD(kz), FB = lD(Mz), IB = lD(Fz), LB = lD(Lz), RB = lD(Xz), zB = lD(Qz);
57007
57071
  //#endregion
57008
- export { w as ADMIN_API_URL, D as ADMIN_APP_ID, l as APP_ID, E as AUTH_URL, Eg as ActivityNotesCard, xg as ActivityTab, TL as AddBatchCandidatePopup, ig as AddFormV1, WL as AdminDashboard, WM as AdminDashboardContent, OB as AdminPage, ag as AppAlert, er as AppButton, ME as AppShell, YC as ApprovalActionBar, Dg as AssigneeAvatars, TE as AuthGuard, Iy as BILLING_STATUS_FLOW, WS as BOOLEAN_API_KEYS, zS as BOOLEAN_PARSEABLE_API_KEYS, Og as BULK_UPLOAD_DEFAULT_ACCEPT, kg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Fr as Breadcrumb, jB as BulkUploadPage, Lg as BulkUploadPanel, a as CANDIDATES_URL, yw as CONTRACT_C2C, vw as CONTRACT_W2, G_ as CURRENCY_SYMBOLS, js as CalendarCard, JM as CoreThemeAdminApp, qM as CoreThemeAdminRoutes, Mc as CustomPagination, _C as DEFAULT_HOURS_POLICY, VC as DayLogModal, Xg as DescriptionBlock, Rb as DetailHeaderCard, Gb as DetailViewPage, Fv as DetailViewV1, oe as DocumentViewer, Ml as DynamicCards, pF as DynamicPopup, AL as DynamicPopupRoute, Fs as DynamicTabs, Ux as EditFormV1, SS as FIELD_TYPE_REGISTRY, uw as FINANCE_APPROVAL_CONFIG, rw as FINANCE_TYPE_CFO, nw as FINANCE_TYPE_ONBOARDING_MANAGER, ow as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, iw as FINANCE_TYPE_ONLY_FINANCE, tw as FINANCE_TYPE_SUBMISSION_MANAGER, aw as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, wT as FileListCard, rT as FinanceApprovalPanel, _b as FinanceAvatar, xb as FinanceBadge, ZC as FinanceDayCell, lb as FinanceDivider, vb as FinanceEmployeeCell, ob as FinanceEmptyState, ub as FinanceEquation, mb as FinanceHistoryTimeline, ab as FinanceHoursGrid, ib as FinanceKpiRow, cb as FinanceLine, gC as FinanceListToolbar, Sb as FinanceMarginBadge, bb as FinanceMoneyCell, Tb as FinanceRecordsTable, Cb as FinanceRowChevron, sb as FinanceSection, rb as FinanceStatusPill, yb as FinanceTextCell, $C as FinanceTimesheetAnalysis, db as FinanceWorkflowSteps, vC as HOURS_MESSAGES, $T as Header, Ll as HierarchyUserFilter, t as JOBS_URL, kB as LegacyAdminPage, Nm as ListView, zB as LmsHomePage, RB as LmsTestForm, NE as Login, CN as MailPopup, PB as ManageModules, FB as ManageSubmodules, Qx as ModuleRowActions, JC as NotesPanel, Tg as NotesTab, Ly as PAYROLL_STATUS_FLOW, gL as POPUP_CONFIGS, aS as ParamCardView, dS as ParamListView, AC as PeriodBadgeTag, eP as PreviewPopup, cD as ProjectSelect, qC as ProofUploadPreview, WC as QuickLogBar, HC as QuickLogSelectionBar, UC as RejectionReasonModal, o as SUBMISSIONS_URL, sC as SearchBuilderV1, xE as Sidebar, lC as StatusBadge, kC as StatusBadgeTag, AB as StickyNotesFullPage, dC as StylishDynamicTabs, pC as TemplateEditor, MB as TestForm, LB as TestingHomePage, pg as TimelineGroups, RC as TimesheetDayCell, Xr as TipTapEditor, UL as UserForm, PL as VendorShareDrawer, Ef as ViewSummaryWidget, oP as WizardPopup, IB as ZinnextTableView, NB as ZinnextTestForm, et as appNow, Mt as applyIntegrationStatus, pc as approveSubmission, Pg as buildAcceptAttr, YS as buildBooleanRequest, Zy as buildCsv, Gy as buildDailyRows, IC as buildDayGradient, Ww as buildRateHistoryEntries, Jy as buildWeeklyRollup, h as clearSelectedProject, ue as colors, Iw as computeFinance, wC as computeHoursPolicy, Yy as computeMarginBand, Ln as conditionMatches, r as configureCoreTheme, Qt as configuredFieldLabel, TB as createAllWorkflowsListFetcher, yB as createMergedListFetcher, fB as createModuleListFetchAdapter, bB as createWorkflowStageListFetcher, K_ as currencySymbol, iB as defaultMergeRow, Rr as deleteIntegrationConfig, Wy as deriveDayStats, EC as describeCapacity, tb as downloadCsv, dr as evaluateShowIfWith, Aw as findEmployerRow, Ow as flattenGroups, Q_ as formatAmount, qn as formatApp, M as formatAppDateTime, Ng as formatFileSize, Gw as formatFinanceMoney, Dy as formatHours, $_ as formatMoney, ky as formatPercent, ev as formatRate, Hr as getActivity, EB as getAllWorkflowsModuleList, Un as getAppTimeZone, Ny as getApprovalDate, qr as getBgcIntegrationConfig, ai as getBgcIntegrationSummary, Ry as getBillingActionStates, ES as getBooleanEligibleTypes, u as getCurrentRoleName, $y as getFieldLabel, wS as getFieldType, Mg as getFileExtension, hw as getFinanceApprovalConfig, pT as getFormGroupsRaw, xt as getIntegrationConfig, he as getIntegrationConfigs, de as getIntegrationSummary, kc as getModuleConfig, wn as getModuleDataDetail, zy as getPayrollActionStates, jc as getPeriodBadgeConfig, g as getSelectedProject, C as getStoredToken, d as getStoredUser, f as getUserRoles, mc as getVMSApprove, eb as getValueStyle, DB as getWorkflowStageModuleList, By as getWorkflowSteps, My as humanizeEvent, nh as i, Qy as indexFieldConfig, Ay as initialsOf, US as insertTokenAtCursor, TS as isBooleanEligible, VS as isBooleanParsable, y as isTester, m as logout, _w as marginIncludesReferral, Fw as matchLocationTax, $b as n, Mw as normalizeContract, Rg as r, J_ as rateUnitLabel, X_ as rateUnitShort, TC as reconcileHours, CS as registerFieldType, gc as rejectSubmission, vg as resolveActivityMeta, Lw as resolveAndCompute, SC as resolveDayKind, Pw as resolveFinanceInputs, nB as resolveMergeKey, nB as resolveMergedListKey, gw as resolveRejectionReason, mT as resolveSubmissionFinance, Vt as saveBgcIntegrationConfig, lt as saveIntegrationConfig, s as setSelectedProject, cn as showIfConditions, xB as stageCountKey, PE as t, Rn as testIntegrationConnection, Xe as toApp, Z_ as toNumber, it as tzLabel, ve as tzShortLabel, Vu as useDropdownFields, Df as useDropdownValues, TT as useEditForm, Hu as useFieldConfig, Uu as useFilterFields, Qu as useMenuPermission, Gx as useModuleActions, Hb as useRecordRefresh, HS as validateBooleanQuery, Fg as validateBulkFile, n as withAdminAppId, i as withAppId, lD as withAuthGuard };
57072
+ export { w as ADMIN_API_URL, D as ADMIN_APP_ID, l as APP_ID, E as AUTH_URL, Eg as ActivityNotesCard, xg as ActivityTab, TL as AddBatchCandidatePopup, ig as AddFormV1, WL as AdminDashboard, WM as AdminDashboardContent, OB as AdminPage, ag as AppAlert, er as AppButton, ME as AppShell, YC as ApprovalActionBar, Dg as AssigneeAvatars, TE as AuthGuard, Iy as BILLING_STATUS_FLOW, WS as BOOLEAN_API_KEYS, zS as BOOLEAN_PARSEABLE_API_KEYS, Og as BULK_UPLOAD_DEFAULT_ACCEPT, kg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Fr as Breadcrumb, jB as BulkUploadPage, Lg as BulkUploadPanel, a as CANDIDATES_URL, yw as CONTRACT_C2C, vw as CONTRACT_W2, G_ as CURRENCY_SYMBOLS, js as CalendarCard, JM as CoreThemeAdminApp, qM as CoreThemeAdminRoutes, Mc as CustomPagination, _C as DEFAULT_HOURS_POLICY, VC as DayLogModal, Xg as DescriptionBlock, Rb as DetailHeaderCard, Gb as DetailViewPage, Fv as DetailViewV1, oe as DocumentViewer, Ml as DynamicCards, pF as DynamicPopup, AL as DynamicPopupRoute, Fs as DynamicTabs, Ux as EditFormV1, SS as FIELD_TYPE_REGISTRY, uw as FINANCE_APPROVAL_CONFIG, rw as FINANCE_TYPE_CFO, nw as FINANCE_TYPE_ONBOARDING_MANAGER, ow as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, iw as FINANCE_TYPE_ONLY_FINANCE, tw as FINANCE_TYPE_SUBMISSION_MANAGER, aw as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, wT as FileListCard, rT as FinanceApprovalPanel, _b as FinanceAvatar, xb as FinanceBadge, ZC as FinanceDayCell, lb as FinanceDivider, vb as FinanceEmployeeCell, ob as FinanceEmptyState, ub as FinanceEquation, mb as FinanceHistoryTimeline, ab as FinanceHoursGrid, ib as FinanceKpiRow, cb as FinanceLine, gC as FinanceListToolbar, Sb as FinanceMarginBadge, bb as FinanceMoneyCell, Tb as FinanceRecordsTable, Cb as FinanceRowChevron, sb as FinanceSection, rb as FinanceStatusPill, yb as FinanceTextCell, $C as FinanceTimesheetAnalysis, db as FinanceWorkflowSteps, vC as HOURS_MESSAGES, $T as Header, Ll as HierarchyUserFilter, t as JOBS_URL, kB as LegacyAdminPage, Nm as ListView, zB as LmsHomePage, RB as LmsTestForm, NE as Login, CN as MailPopup, PB as ManageModules, FB as ManageSubmodules, Qx as ModuleRowActions, JC as NotesPanel, Tg as NotesTab, Ly as PAYROLL_STATUS_FLOW, gL as POPUP_CONFIGS, aS as ParamCardView, dS as ParamListView, AC as PeriodBadgeTag, eP as PreviewPopup, cD as ProjectSelect, qC as ProofUploadPreview, WC as QuickLogBar, HC as QuickLogSelectionBar, UC as RejectionReasonModal, o as SUBMISSIONS_URL, sC as SearchBuilderV1, xE as Sidebar, lC as StatusBadge, kC as StatusBadgeTag, AB as StickyNotesFullPage, dC as StylishDynamicTabs, pC as TemplateEditor, MB as TestForm, LB as TestingHomePage, pg as TimelineGroups, RC as TimesheetDayCell, Xr as TipTapEditor, UL as UserForm, PL as VendorShareDrawer, Ef as ViewSummaryWidget, oP as WizardPopup, IB as ZinnextTableView, NB as ZinnextTestForm, et as appNow, Mt as applyIntegrationStatus, pc as approveSubmission, Pg as buildAcceptAttr, YS as buildBooleanRequest, Zy as buildCsv, Gy as buildDailyRows, IC as buildDayGradient, Ww as buildRateHistoryEntries, Jy as buildWeeklyRollup, h as clearSelectedProject, ue as colors, Iw as computeFinance, wC as computeHoursPolicy, Yy as computeMarginBand, Ln as conditionMatches, r as configureCoreTheme, Qt as configuredFieldLabel, TB as createAllWorkflowsListFetcher, yB as createMergedListFetcher, fB as createModuleListFetchAdapter, bB as createWorkflowStageListFetcher, K_ as currencySymbol, iB as defaultMergeRow, Rr as deleteIntegrationConfig, Wy as deriveDayStats, EC as describeCapacity, tb as downloadCsv, dr as evaluateShowIfWith, Aw as findEmployerRow, Ow as flattenGroups, Q_ as formatAmount, qn as formatApp, te as formatAppDateTime, Ng as formatFileSize, Gw as formatFinanceMoney, Dy as formatHours, $_ as formatMoney, ky as formatPercent, ev as formatRate, Hr as getActivity, EB as getAllWorkflowsModuleList, Un as getAppTimeZone, Ny as getApprovalDate, qr as getBgcIntegrationConfig, ai as getBgcIntegrationSummary, Ry as getBillingActionStates, ES as getBooleanEligibleTypes, u as getCurrentRoleName, $y as getFieldLabel, wS as getFieldType, Mg as getFileExtension, hw as getFinanceApprovalConfig, pT as getFormGroupsRaw, xt as getIntegrationConfig, he as getIntegrationConfigs, de as getIntegrationSummary, kc as getModuleConfig, wn as getModuleDataDetail, zy as getPayrollActionStates, jc as getPeriodBadgeConfig, g as getSelectedProject, C as getStoredToken, d as getStoredUser, f as getUserRoles, mc as getVMSApprove, eb as getValueStyle, DB as getWorkflowStageModuleList, By as getWorkflowSteps, My as humanizeEvent, nh as i, Qy as indexFieldConfig, Ay as initialsOf, US as insertTokenAtCursor, TS as isBooleanEligible, VS as isBooleanParsable, y as isTester, m as logout, _w as marginIncludesReferral, Fw as matchLocationTax, $b as n, Mw as normalizeContract, Rg as r, J_ as rateUnitLabel, X_ as rateUnitShort, TC as reconcileHours, CS as registerFieldType, gc as rejectSubmission, vg as resolveActivityMeta, Lw as resolveAndCompute, SC as resolveDayKind, Pw as resolveFinanceInputs, nB as resolveMergeKey, nB as resolveMergedListKey, gw as resolveRejectionReason, mT as resolveSubmissionFinance, Vt as saveBgcIntegrationConfig, lt as saveIntegrationConfig, s as setSelectedProject, cn as showIfConditions, xB as stageCountKey, PE as t, Rn as testIntegrationConnection, Xe as toApp, Z_ as toNumber, it as tzLabel, ve as tzShortLabel, Vu as useDropdownFields, Df as useDropdownValues, TT as useEditForm, Hu as useFieldConfig, Uu as useFilterFields, Qu as useMenuPermission, Gx as useModuleActions, Hb as useRecordRefresh, HS as validateBooleanQuery, Fg as validateBulkFile, n as withAdminAppId, i as withAppId, lD as withAuthGuard };
57009
57073
 
57010
57074
  //# sourceMappingURL=index.js.map