@realtek/core-theme 0.0.328 → 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-CIq_tofq.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, {
@@ -2923,20 +2923,21 @@ function ju(e) {
2923
2923
  field: n.field,
2924
2924
  op: "in",
2925
2925
  values: n.values.map(String),
2926
- operator: e
2926
+ operator: e,
2927
+ ...Array.isArray(n.groupFields) && n.groupFields.length > 1 ? { groupFields: n.groupFields } : {}
2927
2928
  });
2928
2929
  }
2929
2930
  return t;
2930
2931
  }
2931
2932
  async function Mu(e, t, n = "", r = {}) {
2932
- let { limit: i = 50, offset: a = 0, dataSource: o, groupName: s, lookup: c } = r, l = new URLSearchParams({
2933
+ let { limit: i = 50, offset: a = 0, dataSource: o, groupName: s, lookup: c, groupFields: l = [], groupSeparator: u = " " } = r, d = new URLSearchParams({
2933
2934
  module: ei(e),
2934
2935
  field: t,
2935
2936
  value: n,
2936
2937
  limit: String(i),
2937
2938
  offset: String(a)
2938
2939
  });
2939
- return o && l.set("dataSource", o), o === "group" && s && l.set("groupName", s), o === "lookup" && c?.collection && (l.set("lookupCollection", c.collection), c.displayField && l.set("lookupField", c.displayField)), yu(`/filter-dropdown-values?${l}`);
2940
+ return o && d.set("dataSource", o), Array.isArray(l) && l.length > 1 && (d.set("groupFields", l.join(",")), d.set("groupSeparator", u ?? " ")), o === "group" && s && d.set("groupName", s), o === "lookup" && c?.collection && (d.set("lookupCollection", c.collection), c.displayField && d.set("lookupField", c.displayField)), yu(`/filter-dropdown-values?${d}`);
2940
2941
  }
2941
2942
  function Nu(e) {
2942
2943
  let t = e?.data ?? e, n = Array.isArray(t) ? t : Array.isArray(t?.groups) ? t.groups : Array.isArray(e?.groups) ? e.groups : [], r = t?.recordMeta ?? e?.recordMeta;
@@ -4151,6 +4152,8 @@ function Rf({ moduleName: e, open: t = !1, filters: n = [], onClose: r, onApply:
4151
4152
  filterInputType: e.filterInputType,
4152
4153
  dataSource: e.dataSource,
4153
4154
  groupName: e.groupName,
4155
+ filterGroupFields: Array.isArray(e.filterGroupFields) ? e.filterGroupFields : [],
4156
+ filterGroupSeparator: e.filterGroupSeparator ?? " ",
4154
4157
  lookup: e.lookup ?? null,
4155
4158
  isDefaultFilter: e.isDefaultFilter === 1 || e.isDefaultFilter === "1" || e.isDefaultFilter === !0
4156
4159
  })).filter((e) => e.label && e.value), [c]), f = I(() => d.filter((e) => e.isDefaultFilter), [d]), p = I(() => f.map((e) => String(e.value)).sort().join("|"), [f]), m = d, { valuesByField: h, loadingFields: g, fetchValues: _ } = Df(e);
@@ -4165,7 +4168,9 @@ function Rf({ moduleName: e, open: t = !1, filters: n = [], onClose: r, onApply:
4165
4168
  _(e, "", {
4166
4169
  dataSource: n ? "lookup" : t?.dataSource,
4167
4170
  groupName: t?.groupName,
4168
- lookup: t?.lookup
4171
+ lookup: t?.lookup,
4172
+ groupFields: t?.filterGroupFields,
4173
+ groupSeparator: t?.filterGroupSeparator
4169
4174
  });
4170
4175
  }
4171
4176
  }
@@ -4268,7 +4273,8 @@ function Rf({ moduleName: e, open: t = !1, filters: n = [], onClose: r, onApply:
4268
4273
  ...t,
4269
4274
  values: t.values ?? [],
4270
4275
  fieldLabel: r,
4271
- filterInputType: i
4276
+ filterInputType: i,
4277
+ groupFields: n?.filterGroupFields ?? []
4272
4278
  };
4273
4279
  });
4274
4280
  i?.({
@@ -4299,7 +4305,9 @@ function Rf({ moduleName: e, open: t = !1, filters: n = [], onClose: r, onApply:
4299
4305
  _(t, "", {
4300
4306
  dataSource: e ? "lookup" : r?.dataSource,
4301
4307
  groupName: r?.groupName,
4302
- lookup: r?.lookup
4308
+ lookup: r?.lookup,
4309
+ groupFields: r?.filterGroupFields,
4310
+ groupSeparator: r?.filterGroupSeparator
4303
4311
  });
4304
4312
  }
4305
4313
  }
@@ -4437,7 +4445,9 @@ function Rf({ moduleName: e, open: t = !1, filters: n = [], onClose: r, onApply:
4437
4445
  _(i, e, {
4438
4446
  dataSource: t ? "lookup" : o?.dataSource,
4439
4447
  groupName: o?.groupName,
4440
- lookup: o?.lookup
4448
+ lookup: o?.lookup,
4449
+ groupFields: o?.filterGroupFields,
4450
+ groupSeparator: o?.filterGroupSeparator
4441
4451
  });
4442
4452
  }
4443
4453
  },
@@ -4447,7 +4457,9 @@ function Rf({ moduleName: e, open: t = !1, filters: n = [], onClose: r, onApply:
4447
4457
  _(i, "", {
4448
4458
  dataSource: e ? "lookup" : o?.dataSource,
4449
4459
  groupName: o?.groupName,
4450
- lookup: o?.lookup
4460
+ lookup: o?.lookup,
4461
+ groupFields: o?.filterGroupFields,
4462
+ groupSeparator: o?.filterGroupSeparator
4451
4463
  });
4452
4464
  }
4453
4465
  }
@@ -5301,7 +5313,7 @@ function Mm({ filters: e, onRemove: t, onClearAll: n }) {
5301
5313
  ]
5302
5314
  });
5303
5315
  }
5304
- 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 }) {
5305
5317
  let we = ds(), Te = us(), Ee = ei(e), [De, Oe] = L(() => /* @__PURE__ */ new Set()), [ke, Ae] = L(() => /* @__PURE__ */ new Set());
5306
5318
  F(() => {
5307
5319
  if ($p(Ee) !== "submissions") {
@@ -5323,7 +5335,7 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5323
5335
  e = !0;
5324
5336
  };
5325
5337
  }, [Ee]);
5326
- 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({
5327
5339
  current: ze,
5328
5340
  pageSize: s
5329
5341
  }), [it, at] = L({
@@ -5352,7 +5364,7 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5352
5364
  n && ue?.(e, n);
5353
5365
  }, bt = (e, t) => {
5354
5366
  Ze(e), $e(t), me?.(e, t);
5355
- }, [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) => {
5356
5368
  let t = ed(e);
5357
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));
5358
5370
  }), [
@@ -5399,9 +5411,9 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5399
5411
  at({
5400
5412
  sort: r,
5401
5413
  sortDir: n
5402
- }), typeof ne == "function" && ne(r, n), sn();
5414
+ }), typeof N == "function" && N(r, n), sn();
5403
5415
  }, [
5404
- ne,
5416
+ N,
5405
5417
  sn,
5406
5418
  it.sort,
5407
5419
  it.sortDir
@@ -5413,7 +5425,7 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5413
5425
  });
5414
5426
  }, [ze]), F(() => {
5415
5427
  Ut && rt((e) => {
5416
- 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;
5417
5429
  return e.current === t && e.pageSize === n ? e : {
5418
5430
  current: t,
5419
5431
  pageSize: n
@@ -5421,7 +5433,7 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5421
5433
  });
5422
5434
  }, [
5423
5435
  j,
5424
- M,
5436
+ te,
5425
5437
  Ut
5426
5438
  ]);
5427
5439
  let fn = Te.state?.refreshTimestamp;
@@ -5589,13 +5601,18 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5589
5601
  S
5590
5602
  ]);
5591
5603
  F(() => {
5592
- if (!Vn.length) return;
5604
+ if (!Vn.length || !((Tt?.length ?? 0) > 0 || Array.isArray(S) && S.length > 0)) return;
5593
5605
  let e = tm(Be);
5594
5606
  if (!Vn.some((t, n) => tm(em(t, n)) === e)) {
5595
5607
  let e = em(Vn[0], 0);
5596
5608
  e && Ve(String(e));
5597
5609
  }
5598
- }, [Be, Vn]), F(() => {
5610
+ }, [
5611
+ Be,
5612
+ Vn,
5613
+ Tt,
5614
+ S
5615
+ ]), F(() => {
5599
5616
  if (he === void 0 || !Vn.length) return;
5600
5617
  let e = Vn.find((e, t) => tm(em(e, t)) === tm(he));
5601
5618
  if (!e) return;
@@ -6139,15 +6156,15 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6139
6156
  pageSize: nt.pageSize,
6140
6157
  total: Pn,
6141
6158
  onChange: (e, t) => {
6142
- if (Ut && typeof te == "function") {
6143
- te(e, t ?? nt.pageSize);
6159
+ if (Ut && typeof ne == "function") {
6160
+ ne(e, t ?? nt.pageSize);
6144
6161
  return;
6145
6162
  }
6146
6163
  on(e);
6147
6164
  },
6148
6165
  onPageSizeChange: (e) => {
6149
- if (Ut && typeof N == "function") {
6150
- N(e);
6166
+ if (Ut && typeof M == "function") {
6167
+ M(e);
6151
6168
  return;
6152
6169
  }
6153
6170
  rt({
@@ -6896,8 +6913,8 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
6896
6913
  open: !1,
6897
6914
  docs: [],
6898
6915
  index: 0
6899
- }), [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) => {
6900
- 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;
6901
6918
  return (Ah(i) ? r(dh(t)) : i) ?? null;
6902
6919
  })) : "", {
6903
6920
  form: t,
@@ -6908,13 +6925,13 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
6908
6925
  return Ct(Se).forEach((n, r) => {
6909
6926
  t[n] = e[r];
6910
6927
  }), t;
6911
- }, [Ce]), Ee = bi(xh), De = e.exclusiveInGroup && N ? [n[0]] : ["__noop_exclusive_watch__"], Oe = B.useWatch(De, t), Ae = I(() => {
6912
- 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;
6913
6930
  let t = n[1], r = n[n.length - 1];
6914
6931
  return Oe.some((e, n) => n !== t && ch(e?.[r]));
6915
6932
  }, [
6916
6933
  e.exclusiveInGroup,
6917
- N,
6934
+ M,
6918
6935
  Oe,
6919
6936
  n
6920
6937
  ]), je = e.lookupFilterValueFrom ? s[e.lookupFilterValueFrom] : void 0, Me = Ah(je) ? se : je, Ne = Si(ke);
@@ -6931,7 +6948,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
6931
6948
  errors: []
6932
6949
  }]);
6933
6950
  }, [Me]);
6934
- 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;
6935
6952
  F(() => {
6936
6953
  if (m === "location") {
6937
6954
  let t = !1;
@@ -6992,7 +7009,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
6992
7009
  optionsRequireExtraValue: e.optionsRequireExtraValue,
6993
7010
  optionsHierarchyParentField: e.optionsHierarchyParentField,
6994
7011
  optionsHierarchySelfFrom: e.optionsHierarchySelfFrom
6995
- }, r = ne(n);
7012
+ }, r = N(n);
6996
7013
  r.length && t.set("extraFields", r.join(","));
6997
7014
  let a = await v(E, `/admin/lookup-dropdown-values?${t}`);
6998
7015
  i = a?.data ?? a ?? [], i = si(i, n, { source: "AddFormV1" });
@@ -7020,7 +7037,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7020
7037
  })) : [];
7021
7038
  }
7022
7039
  }
7023
- n || (te.current = Array.isArray(i) ? i : [], _(uh(te.current)));
7040
+ n || (ne.current = Array.isArray(i) ? i : [], _(uh(ne.current)));
7024
7041
  } catch (t) {
7025
7042
  console.error(`[AddFormV1] Failed to fetch options for "${e.field}":`, t), n || _([]);
7026
7043
  } finally {
@@ -7110,14 +7127,14 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7110
7127
  let n = e.formatter ? Gh(t.target.value, e.formatter) : t.target.value;
7111
7128
  if (dt) {
7112
7129
  let { cleaned: e, error: t } = vt(n, dt, "change");
7113
- M(t), n = e;
7130
+ te(t), n = e;
7114
7131
  }
7115
7132
  lt(n);
7116
7133
  },
7117
7134
  onBlur: (t) => {
7118
7135
  if (dt) {
7119
7136
  let { cleaned: e, error: n } = vt(t.target.value, dt, "blur");
7120
- M(n), e !== t.target.value && lt(e);
7137
+ te(n), e !== t.target.value && lt(e);
7121
7138
  }
7122
7139
  e.checkDuplicateOnBlur && String(t.target.value ?? "").trim() && l?.(e);
7123
7140
  },
@@ -7129,7 +7146,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7129
7146
  if (!t.test(n)) {
7130
7147
  e.preventDefault();
7131
7148
  let t = `${dt.title} — invalid character.`;
7132
- M(t), setTimeout(() => M((e) => e === t ? null : e), 1800);
7149
+ te(t), setTimeout(() => te((e) => e === t ? null : e), 1800);
7133
7150
  }
7134
7151
  },
7135
7152
  maxLength: dt.maxLength ?? ct.maxLength
@@ -7183,8 +7200,8 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7183
7200
  let r = a ? [...n.slice(0, 2), ...dh(e)] : dh(e);
7184
7201
  t.setFieldValue(r, null);
7185
7202
  });
7186
- else if (te.current.length > 0) {
7187
- 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);
7188
7205
  o && e.autofillFrom.forEach(({ optionKey: e, targetField: r }) => {
7189
7206
  let i = Ch(o, e) ?? o.extraData?.[e] ?? null, s = a ? [...n.slice(0, 2), ...dh(r)] : dh(r);
7190
7207
  t.setFieldValue(s, i);
@@ -7225,7 +7242,7 @@ function Zh({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7225
7242
  onChange: (e) => {
7226
7243
  if (dt) {
7227
7244
  let { error: t } = vt(e, dt, "change");
7228
- M(t);
7245
+ te(t);
7229
7246
  }
7230
7247
  lt(e);
7231
7248
  }
@@ -7543,7 +7560,7 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7543
7560
  F(() => (n && p(n), () => {
7544
7561
  n && b();
7545
7562
  }), [n]);
7546
- 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();
7547
7564
  xi(E, () => ({
7548
7565
  submit: () => P.submit(),
7549
7566
  validate: () => P.validateFields(),
@@ -7561,7 +7578,7 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7561
7578
  }), [ke, Ae] = L({
7562
7579
  current: 1,
7563
7580
  pageSize: 10
7564
- }), [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") || "";
7565
7582
  F(() => {
7566
7583
  if (r || _ || !_t) return;
7567
7584
  let e = !1;
@@ -7835,7 +7852,7 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7835
7852
  ]);
7836
7853
  let en = I(() => {
7837
7854
  if (!h) return null;
7838
- 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 ? {
7839
7856
  module: "submissions",
7840
7857
  id: t
7841
7858
  } : e ? {
@@ -7848,8 +7865,8 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7848
7865
  };
7849
7866
  }, [
7850
7867
  h,
7851
- ne,
7852
- N
7868
+ N,
7869
+ M
7853
7870
  ]);
7854
7871
  F(() => {
7855
7872
  let e = en?.source;
@@ -7957,10 +7974,10 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7957
7974
  let i = xt.filter((e) => ch(e.addRow) && e.skillMatchField);
7958
7975
  if (i.length === 0) return;
7959
7976
  let a = e || `inputs:${n}:${r}`, o;
7960
- 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({
7961
7978
  jobId: n,
7962
7979
  applicantId: r
7963
- }).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;
7964
7981
  let s = !1;
7965
7982
  return o.then((e) => {
7966
7983
  if (s || !Array.isArray(e) || e.length === 0) return;
@@ -8400,14 +8417,14 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8400
8417
  hidden: !0,
8401
8418
  noStyle: !0,
8402
8419
  children: /* @__PURE__ */ Y(ki, {})
8403
- })] }) : A, M = i.inline ? {
8420
+ })] }) : A, te = i.inline ? {
8404
8421
  flex: `${Number(t.combineWidth) > 0 ? Number(t.combineWidth) : 1} 1 0`,
8405
8422
  maxWidth: "none"
8406
- } : void 0, te = t.autoFillFromApi ? /* @__PURE__ */ Y(vh, {
8423
+ } : void 0, ne = t.autoFillFromApi ? /* @__PURE__ */ Y(vh, {
8407
8424
  form: P,
8408
8425
  config: t.autoFillFromApi,
8409
8426
  watchPath: c
8410
- }, `${t.field}-autoFillFromApi`) : null, N = t.prefillWhen?.length ? /* @__PURE__ */ Y(_h, {
8427
+ }, `${t.field}-autoFillFromApi`) : null, M = t.prefillWhen?.length ? /* @__PURE__ */ Y(_h, {
8411
8428
  form: P,
8412
8429
  rules: t.prefillWhen,
8413
8430
  watchPaths: jt(t.prefillWhen, c, nn, p),
@@ -8415,8 +8432,8 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8415
8432
  resetOnNoMatch: t.prefillWhenReset !== !1
8416
8433
  }, `${t.field}-prefillWhen`) : null;
8417
8434
  if (t.show === 0) return /* @__PURE__ */ X(gi, { children: [
8418
- N,
8419
- te,
8435
+ M,
8436
+ ne,
8420
8437
  /* @__PURE__ */ Y(B.Item, {
8421
8438
  name: s,
8422
8439
  hidden: !0,
@@ -8424,28 +8441,28 @@ var ig = vi(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8424
8441
  children: /* @__PURE__ */ Y("input", { type: "hidden" })
8425
8442
  })
8426
8443
  ] }, t.field);
8427
- let ne = !i.inline && or(t).length > 0, re = (e) => ne ? Ar(t, b, (t) => e(Tr(t, p(t.field)))) : b;
8428
- return Mn(t.showIf) || ne ? /* @__PURE__ */ X(gi, { children: [
8429
- N,
8430
- 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,
8431
8448
  /* @__PURE__ */ Y(B.Item, {
8432
8449
  shouldUpdate: !0,
8433
8450
  noStyle: !0,
8434
8451
  children: ({ getFieldValue: e }) => !Mn(t.showIf) || jn(t.showIf, e, p) ? /* @__PURE__ */ Y(z, {
8435
8452
  xs: 24,
8436
8453
  md: re(e),
8437
- style: M,
8454
+ style: te,
8438
8455
  className: i.inline ? "v1-combine-cell" : void 0,
8439
8456
  children: j
8440
8457
  }) : null
8441
8458
  })
8442
8459
  ] }, t.field) : /* @__PURE__ */ X(gi, { children: [
8443
- N,
8444
- te,
8460
+ M,
8461
+ ne,
8445
8462
  /* @__PURE__ */ Y(z, {
8446
8463
  xs: 24,
8447
8464
  md: b,
8448
- style: M,
8465
+ style: te,
8449
8466
  className: i.inline ? "v1-combine-cell" : void 0,
8450
8467
  children: j
8451
8468
  })
@@ -9113,7 +9130,7 @@ function ug(e) {
9113
9130
  return lg(e);
9114
9131
  }
9115
9132
  function dg(e) {
9116
- return M(e, ci());
9133
+ return te(e, ci());
9117
9134
  }
9118
9135
  //#endregion
9119
9136
  //#region src/components/detail/timeline.jsx
@@ -9726,7 +9743,7 @@ function Ig() {
9726
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 }) {
9727
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(() => {
9728
9745
  C(null), T(null), D(null), _(!1), k((e) => e + 1);
9729
- }, []), M = yi(async () => {
9746
+ }, []), te = yi(async () => {
9730
9747
  if (d) {
9731
9748
  y(!0);
9732
9749
  try {
@@ -9737,7 +9754,7 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9737
9754
  y(!1);
9738
9755
  }
9739
9756
  }
9740
- }, [d]), te = yi(async (e) => {
9757
+ }, [d]), ne = yi(async (e) => {
9741
9758
  if (!e || b) return;
9742
9759
  k((e) => e + 1);
9743
9760
  let t = Fg(e, {
@@ -9765,9 +9782,9 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9765
9782
  u,
9766
9783
  f,
9767
9784
  b
9768
- ]), N = () => {
9785
+ ]), M = () => {
9769
9786
  b || h.current?.click();
9770
- }, ne = [
9787
+ }, N = [
9771
9788
  "bulk-upload-dropzone",
9772
9789
  g ? "is-dragging" : "",
9773
9790
  b ? "is-busy" : "",
@@ -9831,17 +9848,17 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9831
9848
  tabIndex: b ? -1 : 0,
9832
9849
  "aria-disabled": b,
9833
9850
  "aria-label": "Upload the filled file — click to browse, or drop a file here",
9834
- className: ne,
9835
- onClick: N,
9851
+ className: N,
9852
+ onClick: M,
9836
9853
  onKeyDown: (e) => {
9837
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), N());
9854
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), M());
9838
9855
  },
9839
9856
  onDragOver: (e) => {
9840
9857
  e.preventDefault(), b || _(!0);
9841
9858
  },
9842
9859
  onDragLeave: () => _(!1),
9843
9860
  onDrop: (e) => {
9844
- e.preventDefault(), _(!1), te(e.dataTransfer.files?.[0]);
9861
+ e.preventDefault(), _(!1), ne(e.dataTransfer.files?.[0]);
9845
9862
  },
9846
9863
  children: [
9847
9864
  /* @__PURE__ */ Y(Ig, {}),
@@ -9884,7 +9901,7 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9884
9901
  hidden: !0,
9885
9902
  type: "file",
9886
9903
  accept: A,
9887
- onChange: (e) => te(e.target.files?.[0])
9904
+ onChange: (e) => ne(e.target.files?.[0])
9888
9905
  }, O),
9889
9906
  S ? /* @__PURE__ */ X("div", {
9890
9907
  className: `bulk-upload-file ${w ? "is-error" : ""}`,
@@ -9952,7 +9969,7 @@ function Lg({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9952
9969
  block: !0,
9953
9970
  icon: /* @__PURE__ */ Y(za, {}),
9954
9971
  loading: v,
9955
- onClick: M,
9972
+ onClick: te,
9956
9973
  className: "bulk-upload-template-btn",
9957
9974
  children: a
9958
9975
  })
@@ -10300,7 +10317,7 @@ function c_(e) {
10300
10317
  return r_(e) ? "" : n_[String(e).toUpperCase()] ?? String(e);
10301
10318
  }
10302
10319
  function l_(e) {
10303
- return r_(e) ? "" : M(e);
10320
+ return r_(e) ? "" : te(e);
10304
10321
  }
10305
10322
  function u_({ start: e, end: t, sym: n = "", unit: r } = {}) {
10306
10323
  return r_(e) || Number(e) <= 0 ? "" : `${n}${!r_(t) && Number(t) > 0 ? `${e} - ${t}` : `${e}`}${r_(r) ? "" : `/${r}`}`;
@@ -10910,7 +10927,7 @@ function bv({ field: e, record: t }) {
10910
10927
  }
10911
10928
  case "date":
10912
10929
  case "datetime": {
10913
- 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)));
10914
10931
  let e = c.dateFormat || l.dateFormat;
10915
10932
  return _(m(qn(n, e, l) || mv(n, s, u)));
10916
10933
  }
@@ -11229,7 +11246,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11229
11246
  return {
11230
11247
  amount: c != null && !Number.isNaN(c) ? `${K_(r)}${Q_(c)}` : "—",
11231
11248
  unit: J_(a),
11232
- when: o && rs(o).isValid() ? M(o) : "",
11249
+ when: o && rs(o).isValid() ? te(o) : "",
11233
11250
  by: s == null ? "" : x[String(s)] || C[String(s)] || ""
11234
11251
  };
11235
11252
  }, A = I(() => {
@@ -11261,10 +11278,10 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11261
11278
  fields: t.fields.filter((e) => !n.some((t) => String(e.field ?? "").startsWith(`${t}.`)))
11262
11279
  } : t;
11263
11280
  }).filter((e) => e.fields.length) : T;
11264
- }, [T, A]), te = I(() => {
11281
+ }, [T, A]), ne = I(() => {
11265
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)));
11266
11283
  return t?.label ?? t?.name ?? "Rate Details";
11267
- }, [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 = () => {
11268
11285
  d(!1), p("");
11269
11286
  }, ie = async () => {
11270
11287
  if (!f.trim()) {
@@ -11499,7 +11516,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11499
11516
  })]
11500
11517
  }, r);
11501
11518
  }, Ee = (e, t) => {
11502
- 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;
11503
11520
  return r.length ? e.addRow ? Te(e, t, r) : /* @__PURE__ */ Y(Oi, {
11504
11521
  size: "small",
11505
11522
  className: "v1-card v1-detail-card",
@@ -11517,7 +11534,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11517
11534
  className: "v1-card v1-detail-card",
11518
11535
  title: /* @__PURE__ */ Y(Nv, {
11519
11536
  icon: /* @__PURE__ */ Y(no, {}),
11520
- title: te
11537
+ title: ne
11521
11538
  }),
11522
11539
  children: A.map((e, t) => /* @__PURE__ */ X("div", {
11523
11540
  className: `v1-rh-section${t > 0 ? " v1-rh-section--gap" : ""}`,
@@ -11584,7 +11601,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11584
11601
  return ke(e) && A.length > 0 && n.push(De()), n;
11585
11602
  }),
11586
11603
  A.length > 0 && !j.some(ke) && De(),
11587
- N && ne?.value && /* @__PURE__ */ Y(Oi, {
11604
+ M && N?.value && /* @__PURE__ */ Y(Oi, {
11588
11605
  size: "small",
11589
11606
  className: "v1-card v1-detail-card",
11590
11607
  title: /* @__PURE__ */ Y(Nv, {
@@ -11609,7 +11626,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11609
11626
  rows: 10,
11610
11627
  value: f,
11611
11628
  onChange: (e) => p(e.target.value),
11612
- placeholder: ne.hidePlaceholder ? void 0 : ne.placeholder,
11629
+ placeholder: N.hidePlaceholder ? void 0 : N.placeholder,
11613
11630
  style: {
11614
11631
  fontSize: 13,
11615
11632
  lineHeight: 1.65,
@@ -11636,7 +11653,7 @@ function Fv({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11636
11653
  children: "Cancel"
11637
11654
  })]
11638
11655
  })]
11639
- }) : /* @__PURE__ */ Y(Pv, { value: ne.value })
11656
+ }) : /* @__PURE__ */ Y(Pv, { value: N.value })
11640
11657
  })
11641
11658
  ]
11642
11659
  })
@@ -12794,7 +12811,7 @@ function mb({ events: e = [], emptyState: t }) {
12794
12811
  }) : null]
12795
12812
  }), /* @__PURE__ */ X("div", {
12796
12813
  className: "fin-tl__meta",
12797
- 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", {
12798
12815
  className: "fin-tl__rel",
12799
12816
  children: pb(e.at)
12800
12817
  }) : null]
@@ -13125,15 +13142,15 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13125
13142
  t = !0;
13126
13143
  };
13127
13144
  }, [j, u]);
13128
- 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 }), [
13129
13146
  k,
13130
13147
  m,
13131
- M
13148
+ te
13132
13149
  ]);
13133
13150
  F(() => {
13134
- te && s && s(te);
13135
- }, [te]);
13136
- 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, {
13137
13154
  id: t,
13138
13155
  moduleName: e,
13139
13156
  record: me
@@ -13182,7 +13199,7 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13182
13199
  let t = e.allowedTabs ?? [];
13183
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;
13184
13201
  }, ke = xe.filter((e) => e.detailPlacement === "primary" && Se(e) && Oe(e)), Ae = xe.filter((e) => e.detailPlacement !== "primary" && Se(e) && Oe(e));
13185
- if (!te) return null;
13202
+ if (!ne) return null;
13186
13203
  let je = (n) => {
13187
13204
  let r = [...ke, ...Ae].find((e) => e.key === n);
13188
13205
  if (r?.actionType === "document" && r.documentField) {
@@ -13301,7 +13318,7 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13301
13318
  children: [/* @__PURE__ */ X("div", {
13302
13319
  className: "fin-dh__identity",
13303
13320
  children: [/* @__PURE__ */ Y(_b, {
13304
- name: ne,
13321
+ name: N,
13305
13322
  size: "lg"
13306
13323
  }), /* @__PURE__ */ X("div", {
13307
13324
  className: "fin-dh__who",
@@ -13309,11 +13326,11 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13309
13326
  className: "fin-dh__name-row",
13310
13327
  children: [/* @__PURE__ */ Y("h2", {
13311
13328
  className: "fin-dh__name",
13312
- children: ne || "Details"
13329
+ children: N || "Details"
13313
13330
  }), i ? /* @__PURE__ */ Y(rb, { status: i }) : null]
13314
- }), N ? /* @__PURE__ */ Y("span", {
13331
+ }), M ? /* @__PURE__ */ Y("span", {
13315
13332
  className: "fin-dh__designation",
13316
- children: N
13333
+ children: M
13317
13334
  }) : null]
13318
13335
  })]
13319
13336
  }), o.length ? /* @__PURE__ */ Y("div", {
@@ -13351,16 +13368,16 @@ function Rb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13351
13368
  children: [/* @__PURE__ */ X("div", {
13352
13369
  className: "znx-dh-left",
13353
13370
  children: [
13354
- N && /* @__PURE__ */ Y("div", {
13371
+ M && /* @__PURE__ */ Y("div", {
13355
13372
  className: "znx-dh-eyebrow",
13356
- children: N
13373
+ children: M
13357
13374
  }),
13358
13375
  /* @__PURE__ */ X("div", {
13359
13376
  className: "znx-dh-titlerow",
13360
13377
  children: [
13361
13378
  /* @__PURE__ */ Y("span", {
13362
13379
  className: "znx-dh-title",
13363
- children: ne
13380
+ children: N
13364
13381
  }),
13365
13382
  ie.map((e) => /* @__PURE__ */ X("span", {
13366
13383
  className: "znx-dh-titleid",
@@ -14197,7 +14214,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14197
14214
  open: !1,
14198
14215
  docs: [],
14199
14216
  index: 0
14200
- }), [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);
14201
14218
  F(() => {
14202
14219
  if (!e.lookupFilterField || !e.lookupFilterValueFrom) return;
14203
14220
  let r = fe.current;
@@ -14289,7 +14306,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14289
14306
  optionsRequireExtraValue: e.optionsRequireExtraValue,
14290
14307
  optionsHierarchyParentField: e.optionsHierarchyParentField,
14291
14308
  optionsHierarchySelfFrom: e.optionsHierarchySelfFrom
14292
- }, i = ne(n);
14309
+ }, i = N(n);
14293
14310
  i.length && t.set("extraFields", i.join(","));
14294
14311
  let a = await v(E, `/admin/lookup-dropdown-values?${t}`);
14295
14312
  r = a?.data ?? a ?? [], r = si(r, n, { source: "EditFormV1" });
@@ -14317,7 +14334,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14317
14334
  })) : [];
14318
14335
  }
14319
14336
  }
14320
- n || (N.current = Array.isArray(r) ? r : [], y(mx(N.current)));
14337
+ n || (M.current = Array.isArray(r) ? r : [], y(mx(M.current)));
14321
14338
  } catch (t) {
14322
14339
  console.error(`[EditFormV1] Failed to fetch options for "${e.field}":`, t), n || y([]);
14323
14340
  } finally {
@@ -14350,7 +14367,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14350
14367
  e.optionsRequireExtraValue,
14351
14368
  e.optionsHierarchyParentField,
14352
14369
  e.optionsHierarchySelfFrom,
14353
- M,
14370
+ te,
14354
14371
  e.locationLevel,
14355
14372
  e.locationCountryFrom,
14356
14373
  e.locationStateFrom,
@@ -14391,7 +14408,7 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14391
14408
  scopeValues: l,
14392
14409
  ownValue: r,
14393
14410
  onDone: (r, i) => {
14394
- te((e) => e + 1);
14411
+ ne((e) => e + 1);
14395
14412
  let a = Ht(e) !== "array" && !e.multiSelect && !e.multiple;
14396
14413
  r === "create" && i != null && a && ((e.clearGroupOnChange || e.linkedClearField) && $r(t, e, n, m), ft(Lr(e) ? { value: i } : i));
14397
14414
  }
@@ -14478,8 +14495,8 @@ function Bx({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14478
14495
  let r = a ? [...n.slice(0, 2), ...Gn(e)] : Gn(e);
14479
14496
  t.setFieldValue(r, null);
14480
14497
  });
14481
- else if (N.current.length > 0) {
14482
- 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);
14483
14500
  o && e.autofillFrom.forEach(({ optionKey: e, targetField: r }) => {
14484
14501
  let i = yx(o, e) ?? o.extraData?.[e] ?? null, s = a ? [...n.slice(0, 2), ...Gn(r)] : Gn(r);
14485
14502
  t.setFieldValue(s, i);
@@ -14813,7 +14830,7 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
14813
14830
  t = !0;
14814
14831
  };
14815
14832
  }, [e, n]);
14816
- 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({});
14817
14834
  F(() => {
14818
14835
  re();
14819
14836
  }, []), F(() => {
@@ -14939,7 +14956,7 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
14939
14956
  }), Me = I(() => {
14940
14957
  let e = {};
14941
14958
  return ve.forEach((t) => {
14942
- t.addRow && (e[t.name] = N(t));
14959
+ t.addRow && (e[t.name] = M(t));
14943
14960
  }), Pt(ke, e);
14944
14961
  }, [ve, ke]), Pe = {
14945
14962
  jobs: {
@@ -15132,7 +15149,7 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15132
15149
  }
15133
15150
  async function Xe(t) {
15134
15151
  if (!(f && await Promise.resolve().then(() => f(t)).catch(() => !1) === !1)) try {
15135
- te(!0), P("");
15152
+ ne(!0), P("");
15136
15153
  let r = Ie(t, ve, {
15137
15154
  indexed: !0,
15138
15155
  module: e
@@ -15176,7 +15193,7 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15176
15193
  let n = Br(ve, e, "edit", t?.message);
15177
15194
  P(n), q.error(n);
15178
15195
  } finally {
15179
- te(!1);
15196
+ ne(!1);
15180
15197
  }
15181
15198
  }
15182
15199
  function Ze(e) {
@@ -15308,35 +15325,35 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15308
15325
  }),
15309
15326
  A
15310
15327
  ]
15311
- }) : 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, {
15312
15329
  name: r === void 0 ? _[_.length - 1] : [r, _[_.length - 1]],
15313
15330
  valuePropName: "checked",
15314
15331
  hidden: !0,
15315
15332
  noStyle: !0,
15316
15333
  children: /* @__PURE__ */ Y(ki, {})
15317
- })] }) : j, te = t.prefillWhen?.length ? /* @__PURE__ */ Y(ox, {
15334
+ })] }) : j, ne = t.prefillWhen?.length ? /* @__PURE__ */ Y(ox, {
15318
15335
  form: y,
15319
15336
  rules: t.prefillWhen,
15320
15337
  watchPaths: jt(t.prefillWhen, u, nn, h),
15321
15338
  targetPath: u,
15322
15339
  resetOnNoMatch: t.prefillWhenReset !== !1
15323
- }, `${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;
15324
- 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, {
15325
15342
  shouldUpdate: !0,
15326
15343
  noStyle: !0,
15327
15344
  children: ({ getFieldValue: e }) => !ot(t.showIf) || at(t.showIf, e, h) ? /* @__PURE__ */ Y(z, {
15328
15345
  xs: 24,
15329
- md: ne(e),
15346
+ md: N(e),
15330
15347
  style: w,
15331
15348
  className: o.inline ? "v1-combine-cell" : void 0,
15332
- children: M
15349
+ children: te
15333
15350
  }) : null
15334
- })] }, t.field) : /* @__PURE__ */ X(hi.Fragment, { children: [te, /* @__PURE__ */ Y(z, {
15351
+ })] }, t.field) : /* @__PURE__ */ X(hi.Fragment, { children: [ne, /* @__PURE__ */ Y(z, {
15335
15352
  xs: 24,
15336
15353
  md: x,
15337
15354
  style: w,
15338
15355
  className: o.inline ? "v1-combine-cell" : void 0,
15339
- children: M
15356
+ children: te
15340
15357
  })] }, t.field);
15341
15358
  }, lt = (t) => {
15342
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, {
@@ -15753,10 +15770,10 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15753
15770
  message: k,
15754
15771
  style: { marginBottom: 16 }
15755
15772
  }),
15756
- ne && /* @__PURE__ */ Y(Ci, {
15773
+ N && /* @__PURE__ */ Y(Ci, {
15757
15774
  type: "error",
15758
15775
  showIcon: !0,
15759
- message: ne,
15776
+ message: N,
15760
15777
  style: { marginBottom: 16 }
15761
15778
  }),
15762
15779
  /* @__PURE__ */ X(B, {
@@ -15801,8 +15818,8 @@ function Ux({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15801
15818
  form: y,
15802
15819
  groups: ve,
15803
15820
  onClick: () => y.submit(),
15804
- disabled: D || M || Ce > 0,
15805
- loading: M,
15821
+ disabled: D || te || Ce > 0,
15822
+ loading: te,
15806
15823
  children: s
15807
15824
  })]
15808
15825
  })]
@@ -16326,7 +16343,7 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16326
16343
  let g = ds(), _ = us(), [v, y] = L("all"), [b, x] = L(""), [S, C] = L([]), [w, T] = L([]), [E, D] = L({
16327
16344
  current: 1,
16328
16345
  pageSize: 10
16329
- }), [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) => ({
16330
16347
  key: e.key ?? e.name,
16331
16348
  label: e.label ?? e.name,
16332
16349
  danger: e.danger ?? !1,
@@ -16348,32 +16365,32 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16348
16365
  } });
16349
16366
  }
16350
16367
  }
16351
- })), te = typeof o == "number" && typeof s == "number", N = te ? {
16368
+ })), ne = typeof o == "number" && typeof s == "number", M = ne ? {
16352
16369
  current: o,
16353
16370
  pageSize: s
16354
- } : E, ne = I(() => t.map((e) => ({
16371
+ } : E, N = I(() => t.map((e) => ({
16355
16372
  ...e,
16356
16373
  key: cS(e),
16357
16374
  label: sS(e)
16358
- })).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(() => {
16359
16376
  if (u) return r;
16360
16377
  let e = b.toLowerCase();
16361
- 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)));
16362
16379
  }, [
16363
16380
  r,
16364
- ne,
16381
+ N,
16365
16382
  u,
16366
16383
  b
16367
16384
  ]), ie = typeof a == "number" ? a : b.trim() ? P.length : r.length, ae = I(() => {
16368
- if (te) return P;
16369
- let e = (N.current - 1) * N.pageSize;
16370
- 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);
16371
16388
  }, [
16372
- N.current,
16373
- N.pageSize,
16389
+ M.current,
16390
+ M.pageSize,
16374
16391
  P,
16375
- te
16376
- ]), 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) => ({
16377
16394
  title: e.label,
16378
16395
  dataIndex: e.key,
16379
16396
  key: e.key,
@@ -16386,9 +16403,9 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16386
16403
  className: "job-cell-primary",
16387
16404
  children: lS(n, e.key)
16388
16405
  })
16389
- })), [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) => {
16390
16407
  k((n) => {
16391
- let r = n.length ? n : ne.map((e) => e.key);
16408
+ let r = n.length ? n : N.map((e) => e.key);
16392
16409
  return t ? r.includes(e) ? r : [...r, e] : r.filter((t) => t !== e);
16393
16410
  });
16394
16411
  }, ue = /* @__PURE__ */ X("div", {
@@ -16398,10 +16415,10 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16398
16415
  checked: se,
16399
16416
  indeterminate: ce,
16400
16417
  onChange: (e) => {
16401
- k(e.target.checked ? ne.map((e) => e.key) : []);
16418
+ k(e.target.checked ? N.map((e) => e.key) : []);
16402
16419
  },
16403
16420
  children: "Select All"
16404
- }), ne.map((e) => /* @__PURE__ */ Y(ki, {
16421
+ }), N.map((e) => /* @__PURE__ */ Y(ki, {
16405
16422
  checked: re.includes(e.key),
16406
16423
  onChange: (t) => le(e.key, t.target.checked),
16407
16424
  children: e.label
@@ -16437,7 +16454,7 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16437
16454
  let t = e.target.value;
16438
16455
  x(t), u ? (clearTimeout(j.current), j.current = setTimeout(() => {
16439
16456
  u(t), c?.(1);
16440
- }, 350)) : te ? c?.(1) : D({
16457
+ }, 350)) : ne ? c?.(1) : D({
16441
16458
  ...E,
16442
16459
  current: 1
16443
16460
  });
@@ -16492,7 +16509,7 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16492
16509
  className: "job-actions-button"
16493
16510
  })
16494
16511
  }), S.length > 0 && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(Pi, {
16495
- menu: { items: M },
16512
+ menu: { items: te },
16496
16513
  trigger: ["click"],
16497
16514
  children: /* @__PURE__ */ X(R, {
16498
16515
  type: "text",
@@ -16539,17 +16556,17 @@ function dS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16539
16556
  })
16540
16557
  }),
16541
16558
  /* @__PURE__ */ Y(Mc, {
16542
- current: N.current,
16543
- pageSize: N.pageSize,
16559
+ current: M.current,
16560
+ pageSize: M.pageSize,
16544
16561
  total: ie,
16545
16562
  onChange: (e) => {
16546
- te ? c?.(e) : D((t) => ({
16563
+ ne ? c?.(e) : D((t) => ({
16547
16564
  ...t,
16548
16565
  current: e
16549
16566
  }));
16550
16567
  },
16551
16568
  onPageSizeChange: (e) => {
16552
- te ? l?.(e) : D({
16569
+ ne ? l?.(e) : D({
16553
16570
  current: 1,
16554
16571
  pageSize: e
16555
16572
  });
@@ -17320,7 +17337,7 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17320
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({
17321
17338
  current: 1,
17322
17339
  pageSize: 10
17323
- }), [k, ee] = L(null), [A, j] = L({}), [M, te] = L({});
17340
+ }), [k, ee] = L(null), [A, j] = L({}), [te, ne] = L({});
17324
17341
  F(() => {
17325
17342
  if (!e) return;
17326
17343
  let r = !1;
@@ -17339,19 +17356,19 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17339
17356
  t,
17340
17357
  h
17341
17358
  ]);
17342
- let N = () => {
17359
+ let M = () => {
17343
17360
  f(!0), g((e) => e + 1);
17344
- }, 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]);
17345
17362
  F(() => {
17346
- ne.filter((e) => e.booleanCapable && !VS(e.booleanApiKey)).forEach((e) => {
17363
+ N.filter((e) => e.booleanCapable && !VS(e.booleanApiKey)).forEach((e) => {
17347
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.`);
17348
17365
  });
17349
- }, [ne]);
17366
+ }, [N]);
17350
17367
  let ae = (e) => {
17351
17368
  let t = e ? "boolean" : "traditional", n = {};
17352
- ne.forEach((e) => {
17369
+ N.forEach((e) => {
17353
17370
  e.booleanCapable && (n[e.field] = void 0);
17354
- }), s.setFieldsValue(n), te((e) => ({
17371
+ }), s.setFieldsValue(n), ne((e) => ({
17355
17372
  ...e,
17356
17373
  ...n
17357
17374
  })), S({}), v(t);
@@ -17368,20 +17385,20 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17368
17385
  try {
17369
17386
  let n;
17370
17387
  if (P) {
17371
- let e = YS(t, ne, { defaultSourceType: l?.booleanDefaultSourceType || c });
17388
+ let e = YS(t, N, { defaultSourceType: l?.booleanDefaultSourceType || c });
17372
17389
  n = await $S(l.booleanSearchEndpoint, e, {
17373
17390
  limit: i,
17374
17391
  offset: (o - 1) * i
17375
17392
  });
17376
17393
  } else n = await an(e, {
17377
- ...ZS(t, ne),
17394
+ ...ZS(t, N),
17378
17395
  selectedSource: c
17379
17396
  }, {
17380
17397
  limit: i,
17381
17398
  offset: (o - 1) * i
17382
17399
  }, {
17383
17400
  scope: c,
17384
- filters: QS(t, ne)
17401
+ filters: QS(t, N)
17385
17402
  });
17386
17403
  b(c), E({
17387
17404
  searched: !0,
@@ -17400,14 +17417,14 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17400
17417
  backendTabs: n.tabs
17401
17418
  }));
17402
17419
  } catch (e) {
17403
- 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;
17404
17421
  n ? S({ [n.field]: t }) : q.error(t || e?.message || "Search failed"), E({
17405
17422
  ...nC,
17406
17423
  searched: !0
17407
17424
  });
17408
17425
  }
17409
17426
  }, [
17410
- ne,
17427
+ N,
17411
17428
  P,
17412
17429
  e,
17413
17430
  D.pageSize,
@@ -17416,7 +17433,7 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17416
17433
  ]), se = () => {
17417
17434
  s.validateFields().then((e) => oe(e, void 0, { current: 1 })).catch(() => q.error("Fix the highlighted field before searching."));
17418
17435
  }, ce = () => {
17419
- s.resetFields(), te({}), S({}), E(nC), w([]), b("internal");
17436
+ s.resetFields(), ne({}), S({}), E(nC), w([]), b("internal");
17420
17437
  }, le = yi(async (e, t) => {
17421
17438
  let n = eh(e, t);
17422
17439
  j((e) => ({
@@ -17501,9 +17518,9 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17501
17518
  c(me);
17502
17519
  }
17503
17520
  }, ge = ie.some((e) => {
17504
- let t = M[e.field];
17521
+ let t = te[e.field];
17505
17522
  return t != null && String(t).trim() !== "";
17506
- }), _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(", ")}.` : "";
17507
17524
  return e ? d ? /* @__PURE__ */ Y("div", {
17508
17525
  className: "sbv1-page",
17509
17526
  children: /* @__PURE__ */ Y(Oi, {
@@ -17532,13 +17549,13 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17532
17549
  }),
17533
17550
  /* @__PURE__ */ Y(R, {
17534
17551
  icon: /* @__PURE__ */ Y(Oo, {}),
17535
- onClick: N,
17552
+ onClick: M,
17536
17553
  children: "Retry"
17537
17554
  })
17538
17555
  ]
17539
17556
  })
17540
17557
  })
17541
- }) : ne.length ? /* @__PURE__ */ X("div", {
17558
+ }) : N.length ? /* @__PURE__ */ X("div", {
17542
17559
  className: "sbv1-page",
17543
17560
  children: [/* @__PURE__ */ Y(Oi, {
17544
17561
  className: "sbv1-card",
@@ -17605,10 +17622,10 @@ function sC({ moduleName: e, action: t, formType: n = "search", title: r, migrat
17605
17622
  form: s,
17606
17623
  layout: "vertical",
17607
17624
  colon: !1,
17608
- onValuesChange: (e, t) => te(t),
17625
+ onValuesChange: (e, t) => ne(t),
17609
17626
  children: [/* @__PURE__ */ Y(Ji, {
17610
17627
  gutter: [24, 0],
17611
- children: ne.map((t) => {
17628
+ children: N.map((t) => {
17612
17629
  let n = P && ie.includes(t), r = [];
17613
17630
  return iC(t.req) && r.push({
17614
17631
  required: !0,
@@ -20131,7 +20148,7 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20131
20148
  t,
20132
20149
  n,
20133
20150
  f
20134
- ]), 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, {
20135
20152
  proposedRate: d.sections.rateBreakdown?.proposed?.editable ? h : void 0,
20136
20153
  includeReferral: be,
20137
20154
  deductReferral: xe,
@@ -20190,8 +20207,8 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20190
20207
  j(!0);
20191
20208
  return;
20192
20209
  }
20193
- if (e.requireCategory && !M) {
20194
- ne(!0);
20210
+ if (e.requireCategory && !te) {
20211
+ N(!0);
20195
20212
  return;
20196
20213
  }
20197
20214
  let n = c?.[e.api];
@@ -20215,7 +20232,7 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20215
20232
  },
20216
20233
  referralEnabled: me,
20217
20234
  reason: k.trim(),
20218
- category: M,
20235
+ category: te,
20219
20236
  rateHistory: d.persist?.rateHistory ? Ww(Ce, s) : void 0
20220
20237
  });
20221
20238
  } catch (e) {
@@ -20752,8 +20769,8 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20752
20769
  /* @__PURE__ */ Y(H, {
20753
20770
  id: "fa-rejection-category",
20754
20771
  placeholder: "Select where to return this rejection",
20755
- value: M || void 0,
20756
- status: N ? "error" : "",
20772
+ value: te || void 0,
20773
+ status: M ? "error" : "",
20757
20774
  options: [{
20758
20775
  value: "submission",
20759
20776
  label: "Submission"
@@ -20762,14 +20779,14 @@ function rT({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20762
20779
  label: "Onboarding"
20763
20780
  }],
20764
20781
  onChange: (e) => {
20765
- te(e), ne(!1);
20782
+ ne(e), N(!1);
20766
20783
  },
20767
20784
  style: {
20768
20785
  width: "100%",
20769
20786
  marginBottom: 16
20770
20787
  }
20771
20788
  }),
20772
- N && /* @__PURE__ */ Y("div", {
20789
+ M && /* @__PURE__ */ Y("div", {
20773
20790
  className: "fa-reason-error",
20774
20791
  children: "! Select where to return the rejection."
20775
20792
  })
@@ -20999,7 +21016,7 @@ async function fT(e, t) {
20999
21016
  };
21000
21017
  }
21001
21018
  async function pT(e, t) {
21002
- 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({
21003
21020
  module: e,
21004
21021
  id: t
21005
21022
  });
@@ -21029,7 +21046,7 @@ async function mT(e, t = {}) {
21029
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 = {
21030
21047
  ...k,
21031
21048
  ...ee
21032
- }, 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)) ?? {};
21033
21050
  return {
21034
21051
  record: {
21035
21052
  submission: {
@@ -21044,7 +21061,7 @@ async function mT(e, t = {}) {
21044
21061
  },
21045
21062
  lookups: {
21046
21063
  clientVmsFee: A.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
21047
- locationTaxPercent: o.tax ?? M.taxValue
21064
+ locationTaxPercent: o.tax ?? te.taxValue
21048
21065
  },
21049
21066
  display: {
21050
21067
  clientName: a.clientName ?? A.clientName,
@@ -21052,7 +21069,7 @@ async function mT(e, t = {}) {
21052
21069
  reqId: i.jobClientRefrenceId ?? a.jobRefrenceId ?? i.jobRefrenceId ?? i.mspReqId,
21053
21070
  jobLocation: a.jobLocation ?? w.jobLocation,
21054
21071
  employerName: j.empCompanyName,
21055
- employerLocation: M.name ?? j.empCompanyLocation ?? d,
21072
+ employerLocation: te.name ?? j.empCompanyLocation ?? d,
21056
21073
  submittedBy: b.signatureEmail || a.signatureEmail || t.signatureEmail || uT(y),
21057
21074
  email: a.email,
21058
21075
  candidateName: [a.firstName, a.lastName].filter(Boolean).join(" ") || a.candidateFullName,
@@ -22640,8 +22657,15 @@ function wD(e, t, n = []) {
22640
22657
  menuOrder: n
22641
22658
  };
22642
22659
  }
22643
- function TD() {
22644
- 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
+ }));
22645
22669
  }
22646
22670
  function ED(e) {
22647
22671
  return dD(`/get-users?roleId=${encodeURIComponent(e)}`).then((e) => fD(e, ["users"]).map(pD));
@@ -24060,9 +24084,9 @@ var eO = [
24060
24084
  value: "number-range"
24061
24085
  }
24062
24086
  ];
24063
- function iO({ field: e, update: t, configType: n, collections: r, collFields: i, onCollectionChange: a, onLookupFieldChange: o }) {
24064
- let s = nO.includes(e.type), c = !!e.lookup;
24065
- function l(e) {
24087
+ function iO({ field: e, update: t, configType: n, collections: r, collFields: i, onCollectionChange: a, onLookupFieldChange: o, availableFields: s = [] }) {
24088
+ let c = nO.includes(e.type), l = !!e.lookup;
24089
+ function u(e) {
24066
24090
  t({ lookup: e ? {
24067
24091
  collection: "",
24068
24092
  displayField: "",
@@ -24150,11 +24174,51 @@ function iO({ field: e, update: t, configType: n, collections: r, collFields: i,
24150
24174
  children: "Lookup"
24151
24175
  }), /* @__PURE__ */ Y(W, {
24152
24176
  size: "small",
24153
- checked: c,
24154
- onChange: l
24177
+ checked: l,
24178
+ onChange: u
24155
24179
  })]
24156
24180
  }),
24157
- n === "filter" && c && /* @__PURE__ */ X("div", {
24181
+ n === "filter" && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X("div", {
24182
+ style: {
24183
+ display: "flex",
24184
+ alignItems: "center",
24185
+ gap: 8,
24186
+ minWidth: 360
24187
+ },
24188
+ children: [/* @__PURE__ */ Y(WD, {
24189
+ style: { fontSize: 12 },
24190
+ children: "Group Value Fields"
24191
+ }), /* @__PURE__ */ Y(H, {
24192
+ size: "small",
24193
+ mode: "multiple",
24194
+ allowClear: !0,
24195
+ value: Array.isArray(e.filterGroupFields) ? e.filterGroupFields : [],
24196
+ onChange: (e) => t({ filterGroupFields: e }),
24197
+ options: (s ?? []).map((e) => ({
24198
+ label: e.fieldName ?? e.label ?? e.fieldKey,
24199
+ value: e.fieldKey
24200
+ })).filter((e) => e.value),
24201
+ placeholder: "e.g. First Name + Last Name",
24202
+ style: { minWidth: 250 }
24203
+ })]
24204
+ }), (e.filterGroupFields ?? []).length > 1 && /* @__PURE__ */ X("div", {
24205
+ style: {
24206
+ display: "flex",
24207
+ alignItems: "center",
24208
+ gap: 8
24209
+ },
24210
+ children: [/* @__PURE__ */ Y(WD, {
24211
+ style: { fontSize: 12 },
24212
+ children: "Group Separator"
24213
+ }), /* @__PURE__ */ Y(V, {
24214
+ size: "small",
24215
+ value: e.filterGroupSeparator ?? " ",
24216
+ onChange: (e) => t({ filterGroupSeparator: e.target.value }),
24217
+ placeholder: "space",
24218
+ style: { width: 90 }
24219
+ })]
24220
+ })] }),
24221
+ n === "filter" && l && /* @__PURE__ */ X("div", {
24158
24222
  style: {
24159
24223
  display: "flex",
24160
24224
  gap: 8,
@@ -24191,7 +24255,7 @@ function iO({ field: e, update: t, configType: n, collections: r, collFields: i,
24191
24255
  style: { width: 180 }
24192
24256
  })] })]
24193
24257
  }),
24194
- s && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X("div", {
24258
+ c && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X("div", {
24195
24259
  style: {
24196
24260
  display: "flex",
24197
24261
  alignItems: "center",
@@ -24230,54 +24294,54 @@ function iO({ field: e, update: t, configType: n, collections: r, collFields: i,
24230
24294
  ]
24231
24295
  });
24232
24296
  }
24233
- function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onReorder: a, collections: o, onFetchCollFields: s, dragFromRef: c }) {
24234
- let [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(e.fieldName), [h, g] = L([]), [_, v] = L([]), [y, b] = L(!1), [x, S] = L(!1);
24297
+ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onReorder: a, collections: o, onFetchCollFields: s, dragFromRef: c, availableFields: l }) {
24298
+ let [u, d] = L(!1), [f, p] = L(!1), [m, h] = L(e.fieldName), [g, _] = L([]), [v, y] = L([]), [b, x] = L(!1), [S, C] = L(!1);
24235
24299
  F(() => {
24236
24300
  queueMicrotask(() => {
24237
- m(e.fieldName);
24301
+ h(e.fieldName);
24238
24302
  });
24239
24303
  }, [e.fieldName]), F(() => {
24240
- if (!l || n !== "listView" || !e.fieldKey) return;
24304
+ if (!u || n !== "listView" || !e.fieldKey) return;
24241
24305
  let t = !1, i = e.apiModule ?? YD[r] ?? r;
24242
24306
  return Fn(i, e.fieldKey).then((e) => {
24243
- t || v(Array.isArray(e) ? e : []);
24307
+ t || y(Array.isArray(e) ? e : []);
24244
24308
  }).catch(() => {
24245
- t || v([]);
24309
+ t || y([]);
24246
24310
  }), () => {
24247
24311
  t = !0;
24248
24312
  };
24249
24313
  }, [
24250
- l,
24314
+ u,
24251
24315
  n,
24252
24316
  e.apiModule,
24253
24317
  e.fieldKey,
24254
24318
  r
24255
24319
  ]);
24256
- function C(e) {
24257
- c.current = t, e.dataTransfer.effectAllowed = "move", S(!0);
24258
- }
24259
- function w() {
24260
- S(!1), b(!1);
24320
+ function w(e) {
24321
+ c.current = t, e.dataTransfer.effectAllowed = "move", C(!0);
24261
24322
  }
24262
- function T(e) {
24263
- e.preventDefault(), b(!0);
24323
+ function T() {
24324
+ C(!1), x(!1);
24264
24325
  }
24265
- function E() {
24266
- b(!1);
24326
+ function E(e) {
24327
+ e.preventDefault(), x(!0);
24267
24328
  }
24268
- function D(e) {
24269
- e.preventDefault(), b(!1), c.current !== null && c.current !== t && a(c.current, t), c.current = null;
24329
+ function D() {
24330
+ x(!1);
24270
24331
  }
24271
24332
  function O(e) {
24333
+ e.preventDefault(), x(!1), c.current !== null && c.current !== t && a(c.current, t), c.current = null;
24334
+ }
24335
+ function k(e) {
24272
24336
  i(t, e);
24273
24337
  }
24274
- function k() {
24275
- f(!1);
24276
- let t = p.trim();
24277
- t && t !== e.fieldName ? O({ fieldName: t }) : m(e.fieldName);
24338
+ function ee() {
24339
+ p(!1);
24340
+ let t = m.trim();
24341
+ t && t !== e.fieldName ? k({ fieldName: t }) : h(e.fieldName);
24278
24342
  }
24279
- async function ee(t) {
24280
- O({ lookup: {
24343
+ async function A(t) {
24344
+ k({ lookup: {
24281
24345
  ...e.lookup,
24282
24346
  collection: t,
24283
24347
  displayField: "",
@@ -24285,28 +24349,28 @@ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
24285
24349
  projectFields: []
24286
24350
  } });
24287
24351
  let n = await s(t);
24288
- g(n);
24352
+ _(n);
24289
24353
  }
24290
- async function A(t, n) {
24291
- if (O({ lookup: {
24354
+ async function j(t, n) {
24355
+ if (k({ lookup: {
24292
24356
  ...e.lookup,
24293
24357
  ...n
24294
24358
  } }), n.valueField) try {
24295
- v(await Fn(r, t));
24359
+ y(await Fn(r, t));
24296
24360
  } catch {
24297
- v([]);
24361
+ y([]);
24298
24362
  }
24299
24363
  }
24300
- function j(t) {
24364
+ function te(t) {
24301
24365
  let n = e.secondaryFields ?? [];
24302
- !t || n.includes(t) || O({ secondaryFields: [...n, t] });
24366
+ !t || n.includes(t) || k({ secondaryFields: [...n, t] });
24303
24367
  }
24304
- function M(t) {
24305
- O({ secondaryFields: (e.secondaryFields ?? []).filter((e) => e !== t) });
24368
+ function ne(t) {
24369
+ k({ secondaryFields: (e.secondaryFields ?? []).filter((e) => e !== t) });
24306
24370
  }
24307
- function te() {
24371
+ function M() {
24308
24372
  let t = e.actionButtons ?? [];
24309
- t.length >= 3 || O({ actionButtons: [...t, {
24373
+ t.length >= 3 || k({ actionButtons: [...t, {
24310
24374
  name: "",
24311
24375
  iconUrl: "",
24312
24376
  iconPath: "",
@@ -24320,20 +24384,20 @@ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
24320
24384
  r[t] = {
24321
24385
  ...r[t],
24322
24386
  ...n
24323
- }, O({ actionButtons: r });
24387
+ }, k({ actionButtons: r });
24324
24388
  }
24325
- function ne(t) {
24389
+ function re(t) {
24326
24390
  let n = [...e.actionButtons ?? []];
24327
- n.splice(t, 1), O({ actionButtons: n });
24391
+ n.splice(t, 1), k({ actionButtons: n });
24328
24392
  }
24329
24393
  return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X("div", {
24330
24394
  draggable: !0,
24331
- onDragStart: C,
24332
- onDragEnd: w,
24333
- onDragOver: T,
24334
- onDragLeave: E,
24335
- onDrop: D,
24336
- className: `uss-field-row${y ? " drag-over" : ""}${x ? " dragging" : ""}`,
24395
+ onDragStart: w,
24396
+ onDragEnd: T,
24397
+ onDragOver: E,
24398
+ onDragLeave: D,
24399
+ onDrop: O,
24400
+ className: `uss-field-row${b ? " drag-over" : ""}${S ? " dragging" : ""}`,
24337
24401
  style: { gridTemplateColumns: "24px 1fr 80px 56px" },
24338
24402
  children: [
24339
24403
  /* @__PURE__ */ Y("span", {
@@ -24347,13 +24411,13 @@ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
24347
24411
  className: "uss-virtual-tag",
24348
24412
  children: "virtual"
24349
24413
  }),
24350
- d ? /* @__PURE__ */ Y("input", {
24414
+ f ? /* @__PURE__ */ Y("input", {
24351
24415
  autoFocus: !0,
24352
- value: p,
24353
- onChange: (e) => m(e.target.value),
24354
- onBlur: k,
24416
+ value: m,
24417
+ onChange: (e) => h(e.target.value),
24418
+ onBlur: ee,
24355
24419
  onKeyDown: (t) => {
24356
- t.key === "Enter" && k(), t.key === "Escape" && (f(!1), m(e.fieldName));
24420
+ t.key === "Enter" && ee(), t.key === "Escape" && (p(!1), h(e.fieldName));
24357
24421
  },
24358
24422
  onClick: (e) => e.stopPropagation()
24359
24423
  }) : /* @__PURE__ */ Y(K, {
@@ -24364,7 +24428,7 @@ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
24364
24428
  borderBottom: "1px dashed var(--color-border-muted)"
24365
24429
  },
24366
24430
  onDoubleClick: (e) => {
24367
- e.stopPropagation(), f(!0);
24431
+ e.stopPropagation(), p(!0);
24368
24432
  },
24369
24433
  children: e.fieldName
24370
24434
  })
@@ -24380,7 +24444,7 @@ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
24380
24444
  children: /* @__PURE__ */ Y(W, {
24381
24445
  size: "small",
24382
24446
  checked: e.isVisible,
24383
- onChange: (e) => O({ isVisible: e })
24447
+ onChange: (e) => k({ isVisible: e })
24384
24448
  })
24385
24449
  }),
24386
24450
  /* @__PURE__ */ Y("span", {
@@ -24388,37 +24452,38 @@ function aO({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
24388
24452
  children: /* @__PURE__ */ Y(R, {
24389
24453
  type: "text",
24390
24454
  size: "small",
24391
- icon: Y(l ? Ra : Ao, {}),
24392
- onClick: () => u((e) => !e),
24455
+ icon: Y(u ? Ra : Ao, {}),
24456
+ onClick: () => d((e) => !e),
24393
24457
  style: { color: "var(--color-text-muted)" }
24394
24458
  })
24395
24459
  })
24396
24460
  ]
24397
- }), l && /* @__PURE__ */ Y("div", {
24461
+ }), u && /* @__PURE__ */ Y("div", {
24398
24462
  className: "uss-detail-panel",
24399
24463
  children: n === "listView" ? /* @__PURE__ */ Y($D, {
24400
24464
  field: e,
24401
24465
  collections: o,
24402
- collFields: h,
24403
- subfields: _,
24404
- onCollectionChange: ee,
24405
- onLookupFieldChange: A,
24406
- addSecondaryField: j,
24407
- removeSecondaryField: M,
24408
- addActionButton: te,
24466
+ collFields: g,
24467
+ subfields: v,
24468
+ onCollectionChange: A,
24469
+ onLookupFieldChange: j,
24470
+ addSecondaryField: te,
24471
+ removeSecondaryField: ne,
24472
+ addActionButton: M,
24409
24473
  updateActionButton: N,
24410
- removeActionButton: ne,
24474
+ removeActionButton: re,
24411
24475
  moduleKey: r,
24412
24476
  fieldKey: e.fieldKey,
24413
- update: O
24477
+ update: k
24414
24478
  }) : /* @__PURE__ */ Y(iO, {
24415
24479
  field: e,
24416
- update: O,
24480
+ update: k,
24417
24481
  configType: n,
24418
24482
  collections: o,
24419
- collFields: h,
24420
- onCollectionChange: ee,
24421
- onLookupFieldChange: A
24483
+ collFields: g,
24484
+ onCollectionChange: A,
24485
+ onLookupFieldChange: j,
24486
+ availableFields: l
24422
24487
  })
24423
24488
  })] });
24424
24489
  }
@@ -24624,7 +24689,8 @@ function oO({ role: e, configType: t }) {
24624
24689
  onReorder: w,
24625
24690
  collections: g,
24626
24691
  onFetchCollFields: T,
24627
- dragFromRef: y
24692
+ dragFromRef: y,
24693
+ availableFields: x
24628
24694
  }, `${e.fieldKey ?? n}-${m}`))]
24629
24695
  }),
24630
24696
  /* @__PURE__ */ Y("div", {
@@ -31503,16 +31569,16 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31503
31569
  function j() {
31504
31570
  S(/* @__PURE__ */ new Set()), w("settings"), E(!1), a();
31505
31571
  }
31506
- function M(e) {
31572
+ function te(e) {
31507
31573
  w(e), e === "fields" && E(!0);
31508
31574
  }
31509
- function te(e, t = !1) {
31575
+ function ne(e, t = !1) {
31510
31576
  S((n) => {
31511
31577
  let r = new Set(n);
31512
31578
  return t ? r.add(e) : r.has(e) ? r.delete(e) : r.add(e), r;
31513
31579
  });
31514
31580
  }
31515
- function N(e) {
31581
+ function M(e) {
31516
31582
  let n = i[e] ?? [], r = /* @__PURE__ */ new Set();
31517
31583
  return n.forEach((e) => {
31518
31584
  t && e.id === t.id || (e.fields ?? []).forEach((e) => {
@@ -31520,7 +31586,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31520
31586
  });
31521
31587
  }), r;
31522
31588
  }
31523
- function ne(e, t) {
31589
+ function N(e, t) {
31524
31590
  let n = (p[d] ?? []).find((t) => t.value === e);
31525
31591
  if (!n) return;
31526
31592
  let r = c.getFieldValue(["fields", t]) ?? {};
@@ -31532,7 +31598,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31532
31598
  });
31533
31599
  }
31534
31600
  function re(e) {
31535
- let t = N(e);
31601
+ let t = M(e);
31536
31602
  return (p[e] ?? []).map((e) => ({
31537
31603
  value: e.value,
31538
31604
  disabled: t.has(e.value),
@@ -31754,7 +31820,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31754
31820
  role: "tab",
31755
31821
  "aria-selected": C === "settings",
31756
31822
  className: C === "settings" ? "is-active" : "",
31757
- onClick: () => M("settings"),
31823
+ onClick: () => te("settings"),
31758
31824
  children: [/* @__PURE__ */ Y("span", {
31759
31825
  className: "fg-editor-tab-number",
31760
31826
  children: "1"
@@ -31764,7 +31830,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
31764
31830
  role: "tab",
31765
31831
  "aria-selected": C === "fields",
31766
31832
  className: C === "fields" ? "is-active" : "",
31767
- onClick: () => M("fields"),
31833
+ onClick: () => te("fields"),
31768
31834
  children: [/* @__PURE__ */ Y("span", {
31769
31835
  className: "fg-editor-tab-number",
31770
31836
  children: "2"
@@ -32985,7 +33051,7 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
32985
33051
  children: "Next, review the fields included in this group."
32986
33052
  }), /* @__PURE__ */ Y(R, {
32987
33053
  type: "primary",
32988
- onClick: () => M("fields"),
33054
+ onClick: () => te("fields"),
32989
33055
  children: "Continue to Fields"
32990
33056
  })]
32991
33057
  })]
@@ -33023,9 +33089,9 @@ function qk({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
33023
33089
  dragIndexRef: O,
33024
33090
  dragOverIndex: y,
33025
33091
  setDragOverIndex: b,
33026
- onFieldKeySelect: (e, t) => ne(e, t),
33092
+ onFieldKeySelect: (e, t) => N(e, t),
33027
33093
  expandedFieldKeys: x,
33028
- onToggleField: te,
33094
+ onToggleField: ne,
33029
33095
  defaultFieldSet: _,
33030
33096
  uniqueTarget: {
33031
33097
  primaryModule: c.getFieldValue("module") || n || "",
@@ -34235,17 +34301,17 @@ function Zk() {
34235
34301
  function j(e) {
34236
34302
  s(e), (!i[e]?.loaded || i[e]?.scopeKey !== k(e)) && A(e);
34237
34303
  }
34238
- function M() {
34304
+ function te() {
34239
34305
  d(null), l(!0);
34240
34306
  }
34241
- function te(e) {
34307
+ function ne(e) {
34242
34308
  d(e), l(!0);
34243
34309
  }
34244
- function N() {
34310
+ function M() {
34245
34311
  l(!1), d(null);
34246
34312
  }
34247
- async function ne() {
34248
- N(), A(o), o !== "all" && A("all");
34313
+ async function N() {
34314
+ M(), A(o), o !== "all" && A("all");
34249
34315
  }
34250
34316
  async function re(e) {
34251
34317
  try {
@@ -34362,7 +34428,7 @@ function Zk() {
34362
34428
  icon: /* @__PURE__ */ Y(wo, {}),
34363
34429
  disabled: e === "all",
34364
34430
  onClick: () => {
34365
- s(e), M();
34431
+ s(e), te();
34366
34432
  },
34367
34433
  children: "Add Group"
34368
34434
  })
@@ -34371,7 +34437,7 @@ function Zk() {
34371
34437
  spinning: r.loading,
34372
34438
  children: /* @__PURE__ */ Y(Jk, {
34373
34439
  groups: a,
34374
- onEdit: te,
34440
+ onEdit: ne,
34375
34441
  onDelete: re,
34376
34442
  onCopy: se,
34377
34443
  onPaste: ce,
@@ -34453,8 +34519,8 @@ function Zk() {
34453
34519
  defaultModule: o === "all" ? T[0]?.value ?? "" : o,
34454
34520
  moduleOptions: T,
34455
34521
  allGroupsByModule: Object.fromEntries(Object.entries(i).filter(([e]) => e !== "all").map(([e, t]) => [e, t.groups ?? []])),
34456
- onClose: N,
34457
- onSaved: ne,
34522
+ onClose: M,
34523
+ onSaved: N,
34458
34524
  onSaveGroup: (e, t) => t ? $t(t.id, e, oe(e.module)) : Se(e, oe(e.module))
34459
34525
  }),
34460
34526
  /* @__PURE__ */ Y(Ni, {
@@ -34540,7 +34606,7 @@ function Zk() {
34540
34606
  type: "primary",
34541
34607
  size: "small",
34542
34608
  icon: /* @__PURE__ */ Y(la, {}),
34543
- onClick: M,
34609
+ onClick: te,
34544
34610
  children: "New Group"
34545
34611
  })]
34546
34612
  }) : null,
@@ -36299,7 +36365,7 @@ function CA({ open: e, onClose: t }) {
36299
36365
  ...l,
36300
36366
  marginTop: 4
36301
36367
  },
36302
- 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, {
36303
36369
  ...n,
36304
36370
  showTimeZoneLabel: n.showTimeZoneLabel !== !1
36305
36371
  }) || "—"] })]
@@ -36410,7 +36476,7 @@ function CA({ open: e, onClose: t }) {
36410
36476
  });
36411
36477
  }
36412
36478
  function wA() {
36413
- 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({});
36414
36480
  function le(e) {
36415
36481
  A(rA[e]);
36416
36482
  }
@@ -36465,7 +36531,7 @@ function wA() {
36465
36531
  off: "Group follows its Show Condition in the detail view"
36466
36532
  });
36467
36533
  function he() {
36468
- A(null), M((e) => e + 1);
36534
+ A(null), te((e) => e + 1);
36469
36535
  }
36470
36536
  F(() => {
36471
36537
  $n({ limit: 200 }).then(re).catch(() => re([]));
@@ -36849,7 +36915,7 @@ function wA() {
36849
36915
  children: "No fields in this group."
36850
36916
  });
36851
36917
  }, Te = I(() => {
36852
- let e = te.trim().toLowerCase();
36918
+ let e = ne.trim().toLowerCase();
36853
36919
  return [...o].filter((t) => !e || [
36854
36920
  t.label,
36855
36921
  t.name,
@@ -36859,7 +36925,7 @@ function wA() {
36859
36925
  e.type
36860
36926
  ])
36861
36927
  ].some((t) => String(t ?? "").toLowerCase().includes(e))).sort((e, t) => (e.order ?? 0) - (t.order ?? 0));
36862
- }, [o, te]), Ee = [
36928
+ }, [o, ne]), Ee = [
36863
36929
  {
36864
36930
  title: "Label",
36865
36931
  dataIndex: "label",
@@ -37009,7 +37075,7 @@ function wA() {
37009
37075
  style: { width: 240 },
37010
37076
  value: P || void 0,
37011
37077
  optionFilterProp: "label",
37012
- options: ne.map((e) => ({
37078
+ options: N.map((e) => ({
37013
37079
  value: e._id ?? e.id,
37014
37080
  label: e.clientName ?? e.name ?? e.clientRefrenceId ?? e._id
37015
37081
  })).filter((e) => e.value),
@@ -37017,7 +37083,7 @@ function wA() {
37017
37083
  }), /* @__PURE__ */ Y(R, {
37018
37084
  size: "small",
37019
37085
  icon: /* @__PURE__ */ Y(Oo, {}),
37020
- onClick: () => M((e) => e + 1),
37086
+ onClick: () => te((e) => e + 1),
37021
37087
  children: "Reload"
37022
37088
  })]
37023
37089
  })]
@@ -37065,8 +37131,8 @@ function wA() {
37065
37131
  allowClear: !0,
37066
37132
  prefix: /* @__PURE__ */ Y(Fo, {}),
37067
37133
  placeholder: "Search groups or fields",
37068
- value: te,
37069
- onChange: (e) => N(e.target.value)
37134
+ value: ne,
37135
+ onChange: (e) => M(e.target.value)
37070
37136
  }), /* @__PURE__ */ X(Q, {
37071
37137
  type: "secondary",
37072
37138
  style: { fontSize: 12 },
@@ -37888,7 +37954,7 @@ function ZA({ open: e, initial: t, isChild: n, popupForms: r, templateOptions: i
37888
37954
  });
37889
37955
  }
37890
37956
  function QA() {
37891
- 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([]);
37892
37958
  F(() => {
37893
37959
  Wn().then((e) => {
37894
37960
  let n = fO(e);
@@ -37897,11 +37963,11 @@ function QA() {
37897
37963
  t([]);
37898
37964
  });
37899
37965
  }, []), F(() => {
37900
- Promise.all([Wn().catch(() => []), te().catch(() => [])]).then(([e, t]) => {
37901
- 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))]);
37902
37968
  });
37903
37969
  }, []);
37904
- let N = yi(async () => {
37970
+ let M = yi(async () => {
37905
37971
  if (n) {
37906
37972
  p(!0), _(null), a([]);
37907
37973
  try {
@@ -37916,9 +37982,9 @@ function QA() {
37916
37982
  }, [n]);
37917
37983
  F(() => {
37918
37984
  queueMicrotask(() => {
37919
- N();
37985
+ M();
37920
37986
  });
37921
- }, [N]), F(() => {
37987
+ }, [M]), F(() => {
37922
37988
  Promise.all([ti(n, "popup").catch(() => []), NA({ module: n }).catch(() => [])]).then(([e, t]) => {
37923
37989
  C(e), T(t.map((e) => ({
37924
37990
  value: e._id ?? e.id,
@@ -37931,7 +37997,7 @@ function QA() {
37931
37997
  s(t ?? null), l(t ? t.rowActions ?? [] : []), d(!1);
37932
37998
  });
37933
37999
  }, [n, i]);
37934
- let ne = async () => {
38000
+ let N = async () => {
37935
38001
  h(!0);
37936
38002
  try {
37937
38003
  if (o) await _r(o.id ?? o._id, c), a((e) => e.map((e) => (e.id ?? e._id) === (o.id ?? o._id) ? {
@@ -37948,13 +38014,13 @@ function QA() {
37948
38014
  }
37949
38015
  d(!1);
37950
38016
  } catch (e) {
37951
- 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();
37952
38018
  } finally {
37953
38019
  h(!1);
37954
38020
  }
37955
38021
  }, re = async () => {
37956
38022
  if (o) try {
37957
- 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();
37958
38024
  } catch (e) {
37959
38025
  q.error(e.message);
37960
38026
  }
@@ -38001,7 +38067,7 @@ function QA() {
38001
38067
  }
38002
38068
  l(t), d(!1), y(!1);
38003
38069
  } catch (e) {
38004
- 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();
38005
38071
  }
38006
38072
  }, ce = (e, t = null) => {
38007
38073
  l(t ? (n) => n.map((n) => n.key === t ? {
@@ -38018,7 +38084,7 @@ function QA() {
38018
38084
  D(HA[e]);
38019
38085
  }
38020
38086
  function de() {
38021
- D(null), N();
38087
+ D(null), M();
38022
38088
  }
38023
38089
  let fe = I(() => {
38024
38090
  let e = O.trim().toLowerCase();
@@ -38328,7 +38394,7 @@ function QA() {
38328
38394
  className: "admin-config-reload",
38329
38395
  children: /* @__PURE__ */ Y(R, {
38330
38396
  icon: /* @__PURE__ */ Y(Oo, {}),
38331
- onClick: N,
38397
+ onClick: M,
38332
38398
  loading: f,
38333
38399
  children: "Reload"
38334
38400
  })
@@ -38382,7 +38448,7 @@ function QA() {
38382
38448
  icon: /* @__PURE__ */ Y(Po, {}),
38383
38449
  loading: m,
38384
38450
  disabled: !u,
38385
- onClick: ne,
38451
+ onClick: N,
38386
38452
  children: "Save Config"
38387
38453
  })
38388
38454
  ]
@@ -38691,13 +38757,13 @@ function fj() {
38691
38757
  } : n)
38692
38758
  }));
38693
38759
  }
38694
- function M() {
38760
+ function te() {
38695
38761
  h((e) => ({
38696
38762
  ...e,
38697
38763
  conditions: [...e.conditions, cj()]
38698
38764
  }));
38699
38765
  }
38700
- function te(e) {
38766
+ function ne(e) {
38701
38767
  h((t) => ({
38702
38768
  ...t,
38703
38769
  conditions: t.conditions.filter((t, n) => n !== e)
@@ -39080,7 +39146,7 @@ function fj() {
39080
39146
  icon: /* @__PURE__ */ Y(Fa, {}),
39081
39147
  size: "small",
39082
39148
  type: "text",
39083
- onClick: () => te(t)
39149
+ onClick: () => ne(t)
39084
39150
  })
39085
39151
  })
39086
39152
  ]
@@ -39099,7 +39165,7 @@ function fj() {
39099
39165
  /* @__PURE__ */ Y(R, {
39100
39166
  size: "small",
39101
39167
  style: { marginBottom: 16 },
39102
- onClick: M,
39168
+ onClick: te,
39103
39169
  children: "+ Add Condition"
39104
39170
  }),
39105
39171
  /* @__PURE__ */ X(Mi, {
@@ -42346,7 +42412,7 @@ function Yj() {
42346
42412
  l(o.storage || "mongo"), q.success("Automations saved");
42347
42413
  }).catch((e) => q.error(e?.message || "Could not save automations")).finally(() => h(!1));
42348
42414
  }
42349
- function M() {
42415
+ function te() {
42350
42416
  if ((o.storage || "mongo") !== c) {
42351
42417
  Vi.confirm({
42352
42418
  title: "Change how this module persists writes?",
@@ -42359,7 +42425,7 @@ function Yj() {
42359
42425
  }
42360
42426
  j();
42361
42427
  }
42362
- let te = [
42428
+ let ne = [
42363
42429
  {
42364
42430
  title: "Source module",
42365
42431
  dataIndex: "sourceModule",
@@ -42397,7 +42463,7 @@ function Yj() {
42397
42463
  children: "optional"
42398
42464
  })
42399
42465
  }
42400
- ], N = [
42466
+ ], M = [
42401
42467
  {
42402
42468
  title: "Source field",
42403
42469
  dataIndex: "sourceField",
@@ -42430,7 +42496,7 @@ function Yj() {
42430
42496
  color: "var(--color-brand)"
42431
42497
  })
42432
42498
  }
42433
- ], ne = [
42499
+ ], N = [
42434
42500
  {
42435
42501
  title: "Source field",
42436
42502
  dataIndex: "sourceField",
@@ -42563,7 +42629,7 @@ function Yj() {
42563
42629
  icon: /* @__PURE__ */ Y(Po, {}),
42564
42630
  loading: m,
42565
42631
  disabled: !i,
42566
- onClick: M,
42632
+ onClick: te,
42567
42633
  children: "Save Automations"
42568
42634
  }),
42569
42635
  children: [/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }), /* @__PURE__ */ Y($, {
@@ -43307,7 +43373,7 @@ function Yj() {
43307
43373
  title: "Denormalizations",
43308
43374
  description: "Copy fields from ANOTHER module's record onto this payload before insert (e.g. a submission snapshotting job title/client).",
43309
43375
  rules: u.denormalizations ?? [],
43310
- columns: te,
43376
+ columns: ne,
43311
43377
  onAdd: () => y({
43312
43378
  index: null,
43313
43379
  rule: null
@@ -43323,7 +43389,7 @@ function Yj() {
43323
43389
  title: "Array Enrichments",
43324
43390
  description: "Enrich a payload array of ids (e.g. recruitersData) into objects carrying looked-up fields (name, email) before insert.",
43325
43391
  rules: u.arrayEnrichments ?? [],
43326
- columns: N,
43392
+ columns: M,
43327
43393
  onAdd: () => x({
43328
43394
  index: null,
43329
43395
  rule: null
@@ -43339,7 +43405,7 @@ function Yj() {
43339
43405
  title: "File Field Maps",
43340
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.",
43341
43407
  rules: u.fileFieldMaps ?? [],
43342
- columns: ne,
43408
+ columns: N,
43343
43409
  onAdd: () => C({
43344
43410
  index: null,
43345
43411
  rule: null
@@ -45243,8 +45309,7 @@ function FM(e = [], t = []) {
45243
45309
  }), n;
45244
45310
  }
45245
45311
  function IM(e) {
45246
- let t = e?.user_type_id ?? e?.userTypeId ?? e?.id, n = e?.user_type_name ?? e?.userTypeName ?? e?.name;
45247
- return Number(t) === 1 || jM(n) === "SUPER ADMIN";
45312
+ return jM(e?.user_type_name ?? e?.userTypeName ?? e?.name) === "SUPER ADMIN";
45248
45313
  }
45249
45314
  function LM(e) {
45250
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 ?? ""}`;
@@ -45373,44 +45438,43 @@ function UM({ title: e, description: t, selectedName: n, loading: r, saving: i,
45373
45438
  });
45374
45439
  }
45375
45440
  function WM({ onLogout: e }) {
45376
- 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 () => {
45377
- 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);
45378
45443
  try {
45379
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));
45380
- fe(n), me((e) => e.filter((e) => r.has(e)));
45445
+ Se(n), we((e) => e.filter((e) => r.has(e)));
45381
45446
  } catch {
45382
45447
  q.error("Failed to load seed status");
45383
45448
  } finally {
45384
- ge(!1);
45449
+ Ee(!1);
45385
45450
  }
45386
45451
  }, []);
45387
45452
  F(() => {
45388
- Se();
45389
- }, [Se]);
45390
- async function Ce() {
45391
- if (pe.length === 0) {
45392
- 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.");
45393
45458
  return;
45394
45459
  }
45395
- ve(!0);
45460
+ Oe(!0);
45396
45461
  try {
45397
- 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();
45398
45463
  } catch (e) {
45399
45464
  q.error(e?.message || "Seed failed");
45400
45465
  } finally {
45401
- ve(!1);
45466
+ Oe(!1);
45402
45467
  }
45403
45468
  }
45404
- async function we() {
45469
+ async function Pe() {
45405
45470
  o(!0);
45406
45471
  try {
45407
- let [e, t, n, r] = await Promise.allSettled([
45408
- TD(),
45472
+ let [e, t, n] = await Promise.allSettled([
45409
45473
  AD(),
45410
45474
  PD(),
45411
45475
  RD()
45412
- ]), i = e.status === "fulfilled" ? e.value : [], a = t.status === "fulfilled" ? t.value : [];
45413
- 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);
45414
45478
  } catch (e) {
45415
45479
  q.error(e.message || "Unable to load admin data");
45416
45480
  } finally {
@@ -45419,25 +45483,47 @@ function WM({ onLogout: e }) {
45419
45483
  }
45420
45484
  F(() => {
45421
45485
  queueMicrotask(() => {
45422
- we();
45486
+ Pe();
45423
45487
  });
45424
- }, []), 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(() => {
45425
45511
  queueMicrotask(() => {
45426
- if (!b) {
45427
- C([]);
45512
+ if (!ee) {
45513
+ te([]);
45428
45514
  return;
45429
45515
  }
45430
- 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=", {
45431
45517
  tenantId: localStorage.getItem("tenantId"),
45432
45518
  businessId: localStorage.getItem("businessId"),
45433
45519
  businessUnitId: localStorage.getItem("businessUnitId")
45434
- }), zD(b).then((e) => {
45520
+ }), zD(ee).then((e) => {
45435
45521
  console.log("DEBUG raw groups from /get-role-details", e);
45436
45522
  let t = RM(e ?? []);
45437
45523
  console.log("DEBUG savedRows (jobs only)", t.filter((e) => zM(e) === "jobs" || zM(e) === "job"));
45438
45524
  let n = new Map(t.map((e) => [`${zM(e)}:${String(e.permissionKey).toLowerCase()}`, e.accessValue]));
45439
- 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"));
45440
- 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) => {
45441
45527
  let r = String(e.menu_key ?? e.menu_name ?? e.menu_id).trim().toLowerCase(), i = String(t.permissionKey).toLowerCase();
45442
45528
  return {
45443
45529
  key: `${e.menu_key ?? e.menu_name ?? e.menu_id}:${t.permissionId ?? t.permissionKey}`,
@@ -45449,55 +45535,80 @@ function WM({ onLogout: e }) {
45449
45535
  accessValue: n.get(`${r}:${i}`) ?? 0
45450
45536
  };
45451
45537
  }));
45452
- 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);
45453
45539
  }).catch((e) => q.error(e.message || "Unable to load role permissions")).finally(() => c(!1));
45454
45540
  });
45455
45541
  }, [
45456
- b,
45457
- g,
45458
- v
45542
+ ee,
45543
+ E,
45544
+ O
45459
45545
  ]);
45460
- 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) => ({
45461
45547
  ...e,
45462
45548
  [t.user_type_id]: t.user_type_name
45463
- }), {}), [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({
45464
45550
  user_type_id: e.user_type_id,
45465
- user_type_name: Ee[e.user_type_id]
45466
- })), [Ee, f]);
45551
+ user_type_name: Le[e.user_type_id]
45552
+ })), [Le, f]);
45467
45553
  F(() => {
45468
- if (!w) {
45469
- M([]);
45554
+ if (!ne) {
45555
+ ce([]);
45470
45556
  return;
45471
45557
  }
45472
45558
  let e = Number(t.getFieldValue("user_type_id") ?? 0);
45473
45559
  if (!e) {
45474
- M([]);
45560
+ ce([]);
45475
45561
  return;
45476
45562
  }
45477
45563
  let n = !1;
45478
- return N(!0), ED(e).then((e) => {
45479
- 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));
45480
45566
  }).catch((e) => {
45481
- n || (q.error(e.message || "Unable to load reporting users"), M([]));
45567
+ n || (q.error(e.message || "Unable to load reporting users"), ce([]));
45482
45568
  }).finally(() => {
45483
- n || N(!1);
45569
+ n || ue(!1);
45484
45570
  }), () => {
45485
45571
  n = !0;
45486
45572
  };
45487
45573
  }, [
45488
- E,
45574
+ N,
45489
45575
  t,
45490
- w
45576
+ ne
45491
45577
  ]);
45492
- let ke = I(() => j.map((e) => ({
45493
- label: LM(e),
45494
- value: e.user_id
45495
- })), [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) => ({
45496
45607
  ...e,
45497
45608
  [t.user_id]: LM(t)
45498
45609
  }), {}), [f]);
45499
- Oe.length, m.length, g.length;
45500
- let je = [
45610
+ w.length, E.length;
45611
+ let Ue = [
45501
45612
  {
45502
45613
  key: "form-groups",
45503
45614
  label: /* @__PURE__ */ X("span", { children: [/* @__PURE__ */ Y(la, {}), " Form Groups"] }),
@@ -45561,7 +45672,7 @@ function WM({ onLogout: e }) {
45561
45672
  description: "Shared Location and Tax lists used across modules (e.g. the submission form’s W2 employer section).",
45562
45673
  component: /* @__PURE__ */ Y(SM, {})
45563
45674
  }
45564
- ], Me = [
45675
+ ], We = [
45565
45676
  {
45566
45677
  key: "users",
45567
45678
  icon: /* @__PURE__ */ Y(es, {}),
@@ -45588,8 +45699,8 @@ function WM({ onLogout: e }) {
45588
45699
  label: "Integrations"
45589
45700
  }
45590
45701
  ];
45591
- function Ne(e, t) {
45592
- C((n) => {
45702
+ function Ge(e, t) {
45703
+ te((n) => {
45593
45704
  let r = n.filter((t) => t.key === e).length;
45594
45705
  return console.log("DEBUG updateRolePermission", {
45595
45706
  key: e,
@@ -45601,17 +45712,17 @@ function WM({ onLogout: e }) {
45601
45712
  } : n);
45602
45713
  });
45603
45714
  }
45604
- async function Pe() {
45715
+ async function Ke() {
45605
45716
  u(!0);
45606
45717
  try {
45607
- 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) => ({
45608
45719
  menu_id: e.menuId,
45609
45720
  menu_name: e.menuName,
45610
45721
  menu_key: e.menuKey,
45611
45722
  permission_id: e.permissionId,
45612
45723
  permission_key: e.permissionKey,
45613
45724
  access_value: e.accessValue,
45614
- updated_by: ye?.userId ?? null
45725
+ updated_by: ke?.userId ?? null
45615
45726
  }))), q.success("Role permissions updated");
45616
45727
  } catch (e) {
45617
45728
  q.error(e.message || "Unable to save role permissions");
@@ -45619,15 +45730,15 @@ function WM({ onLogout: e }) {
45619
45730
  u(!1);
45620
45731
  }
45621
45732
  }
45622
- function Fe() {
45623
- D(null), t.resetFields(), t.setFieldsValue({
45733
+ function qe() {
45734
+ re(null), t.resetFields(), t.setFieldsValue({
45624
45735
  status: "ACTIVE",
45625
- user_type_id: De[0]?.user_type_id,
45736
+ user_type_id: Re[0]?.user_type_id,
45626
45737
  reporting_id: 0
45627
- }), T(!0);
45738
+ }), M(!0);
45628
45739
  }
45629
- function Ie(e) {
45630
- D(e), t.setFieldsValue({
45740
+ function Je(e) {
45741
+ re(e), t.setFieldsValue({
45631
45742
  first_name: e.first_name,
45632
45743
  last_name: e.last_name,
45633
45744
  username: e.username,
@@ -45637,42 +45748,42 @@ function WM({ onLogout: e }) {
45637
45748
  reporting_id: e.reporting_id ?? e.reportingId ?? 0,
45638
45749
  profile_image: e.profile_image,
45639
45750
  status: e.status
45640
- }), T(!0);
45751
+ }), M(!0);
45641
45752
  }
45642
- async function Le(e) {
45643
- k(!0);
45753
+ async function Ye(e) {
45754
+ ie(!0);
45644
45755
  try {
45645
45756
  let t = {
45646
45757
  ...e,
45647
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(),
45648
- updated_by: ye?.userId ?? null,
45649
- created_by: ye?.userId ?? null
45759
+ updated_by: ke?.userId ?? null,
45760
+ created_by: ke?.userId ?? null
45650
45761
  };
45651
- 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();
45652
45763
  } catch (e) {
45653
45764
  q.error(e.message || "Unable to save user");
45654
45765
  } finally {
45655
- k(!1);
45766
+ ie(!1);
45656
45767
  }
45657
45768
  }
45658
- async function Re(e) {
45659
- A(e);
45769
+ async function Xe(e) {
45770
+ oe(e);
45660
45771
  try {
45661
- await kD(e), q.success("User deleted"), await we();
45772
+ await kD(e), q.success("User deleted"), await Fe();
45662
45773
  } catch (e) {
45663
45774
  q.error(e.message || "Unable to delete user");
45664
45775
  } finally {
45665
- A(null);
45776
+ oe(null);
45666
45777
  }
45667
45778
  }
45668
- function ze(e, t) {
45669
- ue("listView"), ce({
45779
+ function Ze(e, t) {
45780
+ be("listView"), ve({
45670
45781
  kind: e,
45671
45782
  record: t
45672
- }), e === "role" && x(t.user_type_id);
45783
+ }), e === "role" && A(t.user_type_id);
45673
45784
  }
45674
- function Be(e, t) {
45675
- C((n) => {
45785
+ function Qe(e, t) {
45786
+ te((n) => {
45676
45787
  let r = [...new Set(n.map(zM))], i = r.indexOf(e), a = i + t;
45677
45788
  if (i < 0 || a < 0 || a >= r.length) return n;
45678
45789
  [r[i], r[a]] = [r[a], r[i]];
@@ -45680,16 +45791,16 @@ function WM({ onLogout: e }) {
45680
45791
  return [...n].sort((e, t) => o.get(zM(e)) - o.get(zM(t)));
45681
45792
  });
45682
45793
  }
45683
- function Ve() {
45684
- ie(null), n.resetFields(), n.setFieldsValue({ status: "ACTIVE" }), re(!0);
45794
+ function $e() {
45795
+ me(null), n.resetFields(), n.setFieldsValue({ status: "ACTIVE" }), fe(!0);
45685
45796
  }
45686
- function He(e) {
45687
- ie(e), re(!0), n.setFieldsValue(e);
45797
+ function et(e) {
45798
+ me(e), fe(!0), n.setFieldsValue(e);
45688
45799
  }
45689
- async function Ue(e) {
45690
- oe(!0);
45800
+ async function tt(e) {
45801
+ ge(!0);
45691
45802
  try {
45692
- 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, {
45693
45804
  ...e,
45694
45805
  updated_by: t
45695
45806
  }) : await jD({
@@ -45697,7 +45808,7 @@ function WM({ onLogout: e }) {
45697
45808
  created_by: t,
45698
45809
  visible_menu_ids: []
45699
45810
  }), i = r.user_type_id;
45700
- 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({
45701
45812
  kind: "role",
45702
45813
  record: {
45703
45814
  ...e,
@@ -45709,12 +45820,12 @@ function WM({ onLogout: e }) {
45709
45820
  } catch (e) {
45710
45821
  q.error(e.message || "Unable to save role");
45711
45822
  } finally {
45712
- oe(!1);
45823
+ ge(!1);
45713
45824
  }
45714
45825
  }
45715
- async function We(e) {
45826
+ async function nt(e) {
45716
45827
  try {
45717
- await ND(e), q.success("Role deleted"), await we();
45828
+ await ND(e), q.success("Role deleted"), await Pe();
45718
45829
  } catch (e) {
45719
45830
  q.error(e.message || "Unable to delete role");
45720
45831
  }
@@ -45734,7 +45845,7 @@ function WM({ onLogout: e }) {
45734
45845
  mode: "inline",
45735
45846
  selectedKeys: [r],
45736
45847
  onClick: ({ key: e }) => i(e),
45737
- items: Me
45848
+ items: We
45738
45849
  })]
45739
45850
  })
45740
45851
  }), /* @__PURE__ */ Y(Ri, { children: /* @__PURE__ */ X(EM, {
@@ -45763,12 +45874,12 @@ function WM({ onLogout: e }) {
45763
45874
  })] }), /* @__PURE__ */ Y(R, {
45764
45875
  type: "primary",
45765
45876
  icon: /* @__PURE__ */ Y(wo, {}),
45766
- onClick: Fe,
45877
+ onClick: qe,
45767
45878
  children: "Add"
45768
45879
  })]
45769
45880
  }), /* @__PURE__ */ Y(dS, {
45770
45881
  listName: "Users",
45771
- loading: a,
45882
+ loading: S,
45772
45883
  fields: [
45773
45884
  {
45774
45885
  label: "Name",
@@ -45783,13 +45894,13 @@ function WM({ onLogout: e }) {
45783
45894
  label: "User Type",
45784
45895
  value: "user_type_id",
45785
45896
  width: 160,
45786
- render: (e) => Ee[e] || `Type ${e}`
45897
+ render: (e, t) => Le[e] || t?.userType || t?.user_type || (Number(e) > 0 ? `Type ${e}` : "—")
45787
45898
  },
45788
45899
  {
45789
45900
  label: "Reporting Manager",
45790
45901
  value: "reporting_id",
45791
45902
  width: 180,
45792
- render: (e) => Ae[e] || "None"
45903
+ render: (e, t) => He[e] || t?.reportingName || t?.reporting_name || (Number(e) > 0 ? `User ${e}` : "None")
45793
45904
  },
45794
45905
  {
45795
45906
  label: "Status",
@@ -45812,29 +45923,38 @@ function WM({ onLogout: e }) {
45812
45923
  "aria-label": "Edit user",
45813
45924
  icon: /* @__PURE__ */ Y(Ba, {}),
45814
45925
  size: "small",
45815
- onClick: () => Ie(t)
45926
+ onClick: () => Je(t)
45816
45927
  }), /* @__PURE__ */ Y(Ui, {
45817
45928
  title: "Delete user?",
45818
45929
  description: "This removes the user from the auth database.",
45819
45930
  okText: "Delete",
45820
45931
  okButtonProps: { danger: !0 },
45821
- onConfirm: () => Re(t.user_id),
45932
+ onConfirm: () => Xe(t.user_id),
45822
45933
  children: /* @__PURE__ */ Y(R, {
45823
45934
  danger: !0,
45824
45935
  "aria-label": "Delete user",
45825
45936
  icon: /* @__PURE__ */ Y(Fa, {}),
45826
- loading: ee === t.user_id,
45937
+ loading: ae === t.user_id,
45827
45938
  size: "small"
45828
45939
  })
45829
45940
  })]
45830
45941
  })
45831
45942
  }
45832
45943
  ],
45833
- dataSource: Oe.map((e) => ({
45944
+ dataSource: ze.map((e) => ({
45834
45945
  ...e,
45835
45946
  key: e.user_id
45836
45947
  })),
45837
- 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
+ },
45838
45958
  rowSelection: !1
45839
45959
  })]
45840
45960
  })
@@ -45865,19 +45985,19 @@ function WM({ onLogout: e }) {
45865
45985
  mode: "multiple",
45866
45986
  allowClear: !0,
45867
45987
  showSearch: !0,
45868
- value: pe,
45869
- options: de,
45870
- placeholder: xe ? "All modules already seeded" : "Select modules or collections to seed",
45871
- disabled: he || _e || xe,
45872
- loading: he,
45873
- 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,
45874
45994
  style: { width: "100%" }
45875
45995
  })
45876
45996
  }), /* @__PURE__ */ Y(R, {
45877
45997
  type: "primary",
45878
- loading: _e,
45879
- disabled: he || pe.length === 0,
45880
- onClick: Ce,
45998
+ loading: De,
45999
+ disabled: Te || Ce.length === 0,
46000
+ onClick: Ne,
45881
46001
  children: "Seed Field Config"
45882
46002
  })]
45883
46003
  }), /* @__PURE__ */ Y(kM, {
@@ -45887,7 +46007,7 @@ function WM({ onLogout: e }) {
45887
46007
  marginTop: 8,
45888
46008
  fontSize: 12
45889
46009
  },
45890
- 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."
45891
46011
  })]
45892
46012
  }), /* @__PURE__ */ X("section", {
45893
46013
  className: "admin-section",
@@ -45902,7 +46022,7 @@ function WM({ onLogout: e }) {
45902
46022
  })] }), /* @__PURE__ */ Y(R, {
45903
46023
  type: "primary",
45904
46024
  icon: /* @__PURE__ */ Y(wo, {}),
45905
- onClick: Ve,
46025
+ onClick: $e,
45906
46026
  children: "Add Role"
45907
46027
  })]
45908
46028
  }), /* @__PURE__ */ Y(dS, {
@@ -45940,7 +46060,7 @@ function WM({ onLogout: e }) {
45940
46060
  /* @__PURE__ */ Y(R, {
45941
46061
  "aria-label": "Configure role",
45942
46062
  size: "small",
45943
- onClick: () => ze("role", t),
46063
+ onClick: () => Ze("role", t),
45944
46064
  children: "Config"
45945
46065
  }),
45946
46066
  /* @__PURE__ */ Y(R, {
@@ -45948,11 +46068,11 @@ function WM({ onLogout: e }) {
45948
46068
  disabled: !n,
45949
46069
  icon: /* @__PURE__ */ Y(Ba, {}),
45950
46070
  size: "small",
45951
- onClick: () => He(t)
46071
+ onClick: () => et(t)
45952
46072
  }),
45953
46073
  n && !IM(t) && /* @__PURE__ */ Y(Ui, {
45954
46074
  title: "Delete role?",
45955
- onConfirm: () => We(t.user_type_id),
46075
+ onConfirm: () => nt(t.user_type_id),
45956
46076
  children: /* @__PURE__ */ Y(R, {
45957
46077
  "aria-label": "Delete role",
45958
46078
  danger: !0,
@@ -45965,13 +46085,13 @@ function WM({ onLogout: e }) {
45965
46085
  }
45966
46086
  }
45967
46087
  ],
45968
- dataSource: m.map((e) => ({
46088
+ dataSource: w.map((e) => ({
45969
46089
  ...e,
45970
46090
  key: e.user_type_id,
45971
46091
  roleId: e.user_type_id,
45972
46092
  roleName: e.user_type_name
45973
46093
  })),
45974
- total: m.length,
46094
+ total: w.length,
45975
46095
  rowSelection: !1
45976
46096
  })]
45977
46097
  })]
@@ -45997,13 +46117,13 @@ function WM({ onLogout: e }) {
45997
46117
  children: "CORE-THEME admin modules embedded into the admin dashboard."
45998
46118
  })] }), /* @__PURE__ */ X(G, {
45999
46119
  color: "blue",
46000
- children: [je.length, " configurations"]
46120
+ children: [Ue.length, " configurations"]
46001
46121
  })]
46002
46122
  }), /* @__PURE__ */ Y(ta, {
46003
46123
  className: "admin-config-tabs",
46004
46124
  defaultActiveKey: "form-groups",
46005
46125
  tabPosition: "left",
46006
- items: je.map((e) => ({
46126
+ items: Ue.map((e) => ({
46007
46127
  key: e.key,
46008
46128
  label: e.label,
46009
46129
  children: /* @__PURE__ */ X("div", {
@@ -46053,9 +46173,9 @@ function WM({ onLogout: e }) {
46053
46173
  }) }),
46054
46174
  /* @__PURE__ */ X(Vi, {
46055
46175
  className: "uss-modal",
46056
- title: `Configure User Type: ${se?.record?.user_type_name ?? ""}`,
46057
- open: !!se,
46058
- onCancel: () => ce(null),
46176
+ title: `Configure User Type: ${_e?.record?.user_type_name ?? ""}`,
46177
+ open: !!_e,
46178
+ onCancel: () => ve(null),
46059
46179
  footer: null,
46060
46180
  destroyOnHidden: !0,
46061
46181
  width: 900,
@@ -46085,51 +46205,51 @@ function WM({ onLogout: e }) {
46085
46205
  }
46086
46206
  ].map((e) => /* @__PURE__ */ Y("button", {
46087
46207
  type: "button",
46088
- className: `uss-config-btn${le === e.key ? " active" : ""}`,
46089
- onClick: () => ue(e.key),
46208
+ className: `uss-config-btn${ye === e.key ? " active" : ""}`,
46209
+ onClick: () => be(e.key),
46090
46210
  children: e.label
46091
46211
  }, e.key))
46092
- }), se && le === "permissions" ? /* @__PURE__ */ Y(UM, {
46212
+ }), _e && ye === "permissions" ? /* @__PURE__ */ Y(UM, {
46093
46213
  title: "Role Permissions",
46094
46214
  description: "Configure menu permissions for this user type",
46095
- selectedName: Te?.user_type_name,
46215
+ selectedName: Ie?.user_type_name,
46096
46216
  loading: s,
46097
46217
  saving: l,
46098
- rows: S,
46099
- onChange: Ne,
46100
- onMove: Be,
46101
- onSave: Pe
46102
- }) : se && le === "actions" ? /* @__PURE__ */ Y(TO, { role: {
46103
- ...se.record,
46104
- roleId: se.record.user_type_id,
46105
- roleName: se.record.user_type_name
46106
- } }, `${se.record?.user_type_id}-actions`) : se && le === "form" ? /* @__PURE__ */ Y(_O, { role: {
46107
- ...se.record,
46108
- roleId: se.record.user_type_id,
46109
- roleName: se.record.user_type_name
46110
- } }, `${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, {
46111
46231
  role: {
46112
- ...se.record,
46113
- roleId: se.record.user_type_id,
46114
- roleName: se.record.user_type_name
46232
+ ..._e.record,
46233
+ roleId: _e.record.user_type_id,
46234
+ roleName: _e.record.user_type_name
46115
46235
  },
46116
- configType: le
46117
- }, `${se.record?.user_type_id}-${le}`) : null]
46236
+ configType: ye
46237
+ }, `${_e.record?.user_type_id}-${ye}`) : null]
46118
46238
  }),
46119
46239
  /* @__PURE__ */ Y(Vi, {
46120
46240
  className: "admin-role-modal",
46121
- title: P ? "Edit User Type" : "Create User Type",
46122
- open: ne,
46123
- onCancel: () => re(!1),
46241
+ title: pe ? "Edit User Type" : "Create User Type",
46242
+ open: de,
46243
+ onCancel: () => fe(!1),
46124
46244
  onOk: () => n.submit(),
46125
- okText: P ? "Save" : "Next",
46126
- confirmLoading: ae,
46245
+ okText: pe ? "Save" : "Next",
46246
+ confirmLoading: he,
46127
46247
  destroyOnHidden: !0,
46128
46248
  width: 900,
46129
46249
  children: /* @__PURE__ */ X(B, {
46130
46250
  form: n,
46131
46251
  layout: "vertical",
46132
- onFinish: Ue,
46252
+ onFinish: tt,
46133
46253
  children: [
46134
46254
  /* @__PURE__ */ Y(B.Item, {
46135
46255
  name: "user_type_name",
@@ -46154,17 +46274,17 @@ function WM({ onLogout: e }) {
46154
46274
  })
46155
46275
  }),
46156
46276
  /* @__PURE__ */ Y(Vi, {
46157
- title: E ? "Edit User" : "Add User",
46158
- open: w,
46159
- onCancel: () => T(!1),
46277
+ title: N ? "Edit User" : "Add User",
46278
+ open: ne,
46279
+ onCancel: () => M(!1),
46160
46280
  onOk: () => t.submit(),
46161
- confirmLoading: O,
46281
+ confirmLoading: P,
46162
46282
  destroyOnHidden: !0,
46163
46283
  children: /* @__PURE__ */ X(B, {
46164
46284
  form: t,
46165
46285
  layout: "vertical",
46166
46286
  requiredMark: !1,
46167
- onFinish: Le,
46287
+ onFinish: Ye,
46168
46288
  children: [
46169
46289
  /* @__PURE__ */ X("div", {
46170
46290
  className: "admin-form-row",
@@ -46206,11 +46326,11 @@ function WM({ onLogout: e }) {
46206
46326
  /* @__PURE__ */ Y(B.Item, {
46207
46327
  label: "Password",
46208
46328
  name: "password",
46209
- rules: E ? [] : [{
46329
+ rules: N ? [] : [{
46210
46330
  required: !0,
46211
46331
  message: "Password is required"
46212
46332
  }],
46213
- 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" })
46214
46334
  }),
46215
46335
  /* @__PURE__ */ X("div", {
46216
46336
  className: "admin-form-row",
@@ -46228,21 +46348,18 @@ function WM({ onLogout: e }) {
46228
46348
  children: /* @__PURE__ */ Y(H, {
46229
46349
  placeholder: "Select user type",
46230
46350
  onChange: () => {
46231
- M([]), queueMicrotask(() => {
46351
+ ce([]), queueMicrotask(() => {
46232
46352
  let e = Number(t.getFieldValue("user_type_id") ?? 0);
46233
- e && (N(!0), ED(e).then((e) => {
46234
- 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));
46235
46355
  }).catch((e) => {
46236
- q.error(e.message || "Unable to load reporting users"), M([]);
46356
+ q.error(e.message || "Unable to load reporting users"), ce([]);
46237
46357
  }).finally(() => {
46238
- N(!1);
46358
+ ue(!1);
46239
46359
  }));
46240
46360
  });
46241
46361
  },
46242
- options: De.map((e) => ({
46243
- label: e.user_type_name,
46244
- value: e.user_type_id
46245
- }))
46362
+ options: Ve
46246
46363
  })
46247
46364
  })]
46248
46365
  }),
@@ -46252,13 +46369,13 @@ function WM({ onLogout: e }) {
46252
46369
  children: /* @__PURE__ */ Y(H, {
46253
46370
  allowClear: !0,
46254
46371
  showSearch: !0,
46255
- loading: te,
46372
+ loading: le,
46256
46373
  placeholder: "Select reporting manager",
46257
46374
  optionFilterProp: "label",
46258
46375
  options: [{
46259
46376
  label: "None",
46260
46377
  value: 0
46261
- }, ...ke]
46378
+ }, ...Be]
46262
46379
  })
46263
46380
  }),
46264
46381
  /* @__PURE__ */ Y(B.Item, {
@@ -46721,7 +46838,7 @@ function CN() {
46721
46838
  attachments: [],
46722
46839
  showCc: !1,
46723
46840
  showBcc: !1
46724
- }), [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);
46725
46842
  F(() => {
46726
46843
  if (!hN(s) || A.current || YM(y.to).length > 0 || n.length === 0 || j.current === d) return;
46727
46844
  let e = !1;
@@ -46746,7 +46863,7 @@ function CN() {
46746
46863
  S(!0);
46747
46864
  return;
46748
46865
  }
46749
- let e = ++M.current, t = !1;
46866
+ let e = ++te.current, t = !1;
46750
46867
  async function n() {
46751
46868
  S(!1), w(!0), b((e) => ({
46752
46869
  ...e,
@@ -46757,9 +46874,9 @@ function CN() {
46757
46874
  if (o.trim()) try {
46758
46875
  o = await uu(o, n.subject || a);
46759
46876
  } catch (n) {
46760
- !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.");
46761
46878
  }
46762
- if (t || e !== M.current) return;
46879
+ if (t || e !== te.current) return;
46763
46880
  b((e) => ({
46764
46881
  ...e,
46765
46882
  subject: n.subject || e.subject,
@@ -46772,16 +46889,16 @@ function CN() {
46772
46889
  showBcc: e.showBcc || !!n.bccMail?.length
46773
46890
  }));
46774
46891
  } catch (n) {
46775
- !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");
46776
46893
  } finally {
46777
- !t && e === M.current && (S(!0), w(!1));
46894
+ !t && e === te.current && (S(!0), w(!1));
46778
46895
  }
46779
46896
  }
46780
46897
  return n(), () => {
46781
46898
  t = !0;
46782
46899
  };
46783
46900
  }, [_, l]);
46784
- function te(e = h) {
46901
+ function ne(e = h) {
46785
46902
  let t = String(e ?? "").trim();
46786
46903
  if (!uN.test(t)) {
46787
46904
  v(""), t && q.warning("Enter a valid 24-character Job ID");
@@ -46793,15 +46910,15 @@ function CN() {
46793
46910
  }
46794
46911
  v(t);
46795
46912
  }
46796
- function N(e, t) {
46913
+ function M(e, t) {
46797
46914
  if (!e) {
46798
46915
  v(""), g("");
46799
46916
  return;
46800
46917
  }
46801
46918
  let n = t?.label ?? "";
46802
- g(String(n || (e ?? ""))), te(e);
46919
+ g(String(n || (e ?? ""))), ne(e);
46803
46920
  }
46804
- function ne(e) {
46921
+ function N(e) {
46805
46922
  let t = String(e ?? "").trim();
46806
46923
  if (g(t), t.length < 3) {
46807
46924
  E([]);
@@ -46884,8 +47001,8 @@ function CN() {
46884
47001
  filterOption: !1,
46885
47002
  value: _ || void 0,
46886
47003
  searchValue: h,
46887
- onSearch: ne,
46888
- onChange: N,
47004
+ onSearch: N,
47005
+ onChange: M,
46889
47006
  onClear: () => {
46890
47007
  v(""), g(""), E([]);
46891
47008
  },
@@ -48696,7 +48813,7 @@ function pF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48696
48813
  }), O = (f.removedIds ?? []).length, k = l.length > O, ee = E.some((e) => {
48697
48814
  let t = d[e.name];
48698
48815
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0);
48699
- }), { handleOk: A, confirming: j, deleteError: M, resetSubmitState: te } = fF({
48816
+ }), { handleOk: A, confirming: j, deleteError: te, resetSubmitState: ne } = fF({
48700
48817
  form: o,
48701
48818
  config: t,
48702
48819
  api: a,
@@ -48711,14 +48828,14 @@ function pF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48711
48828
  onSubmit: i
48712
48829
  });
48713
48830
  F(() => {
48714
- e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []), te());
48831
+ e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []), ne());
48715
48832
  }, [e, v]);
48716
- let N = !!t?.autoSubmitWhenNoFields && _.length === 0;
48833
+ let M = !!t?.autoSubmitWhenNoFields && _.length === 0;
48717
48834
  F(() => {
48718
- !e || !N || A();
48719
- }, [e, N]);
48720
- 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;
48721
- 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;
48722
48839
  let ue = t.component;
48723
48840
  return ue ? /* @__PURE__ */ Y(Vi, {
48724
48841
  open: e,
@@ -48765,10 +48882,10 @@ function pF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48765
48882
  note: ce,
48766
48883
  description: t.description,
48767
48884
  showSelectedCount: t.showSelectedCount,
48768
- count: ne,
48885
+ count: N,
48769
48886
  itemLabel: P,
48770
48887
  bodyText: se,
48771
- deleteError: M
48888
+ deleteError: te
48772
48889
  }),
48773
48890
  /* @__PURE__ */ Y(lP, { footerNote: t.footerNote }),
48774
48891
  /* @__PURE__ */ Y(KP, {
@@ -50056,7 +50173,7 @@ function tL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50056
50173
  S(!1);
50057
50174
  }
50058
50175
  }
50059
- }, 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 () => {
50060
50177
  if (!_ || !j || D) return;
50061
50178
  O(!0);
50062
50179
  let e = {
@@ -50091,7 +50208,7 @@ function tL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50091
50208
  } finally {
50092
50209
  O(!1);
50093
50210
  }
50094
- }, te = I(() => ({
50211
+ }, ne = I(() => ({
50095
50212
  submissionApprove: async ({ computed: e, referral: t }) => {
50096
50213
  v(e), b(t ?? null), g("vms"), m(!0);
50097
50214
  },
@@ -50127,7 +50244,7 @@ function tL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50127
50244
  identity: KI(a, s.display),
50128
50245
  referralOptions: d,
50129
50246
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
50130
- actions: te,
50247
+ actions: ne,
50131
50248
  onClose: () => i?.(),
50132
50249
  variant: "popup"
50133
50250
  }),
@@ -50176,7 +50293,7 @@ function tL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50176
50293
  type: "primary",
50177
50294
  loading: D,
50178
50295
  disabled: !j,
50179
- onClick: M,
50296
+ onClick: te,
50180
50297
  children: "Send"
50181
50298
  })]
50182
50299
  }),
@@ -50797,7 +50914,7 @@ function PL() {
50797
50914
  contents: "",
50798
50915
  showCc: !1,
50799
50916
  showBcc: !1
50800
- }), [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([]);
50801
50918
  F(() => {
50802
50919
  if (!l) return;
50803
50920
  let e = !1;
@@ -50834,34 +50951,34 @@ function PL() {
50834
50951
  cc: e.ccMail?.length ? Array.isArray(e.ccMail) ? e.ccMail.join(", ") : String(e.ccMail) : t.cc
50835
50952
  }))).catch(() => {}).finally(() => p(!0));
50836
50953
  }, [l]);
50837
- 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(() => ({
50838
50955
  ...u,
50839
- bcc: [.../* @__PURE__ */ new Set([...YM(u.bcc), ...te])].join(", "),
50840
- showBcc: u.showBcc || te.length > 0
50841
- }), [u, te]);
50842
- function ne(e) {
50843
- 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);
50844
50961
  d({
50845
50962
  ...e,
50846
50963
  bcc: YM(e.bcc).filter((e) => !t.has(e)).join(", ")
50847
50964
  });
50848
50965
  }
50849
- 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;
50850
50967
  function ie() {
50851
50968
  e(-1);
50852
50969
  }
50853
50970
  function ae() {
50854
50971
  re && ML.submit({
50855
50972
  jobId: l,
50856
- toMail: YM(N.to),
50857
- ccMail: YM(N.cc),
50858
- bccMail: YM(N.bcc),
50859
- subject: N.subject,
50860
- 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
50861
50978
  }).then((t) => {
50862
50979
  t?.status === !0 ? (q.success(t?.data || "Mail sent successfully."), typeof o == "function" && o({
50863
- ...N,
50864
- message: N.contents,
50980
+ ...M,
50981
+ message: M.contents,
50865
50982
  selectedIds: n
50866
50983
  }), e(-1)) : q.error(t?.message || t?.data || "Failed to send mail. Please try again.");
50867
50984
  }).catch((e) => {
@@ -50935,7 +51052,7 @@ function PL() {
50935
51052
  children: jL.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
50936
51053
  className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
50937
51054
  onClick: () => {
50938
- h(e.key), D(1), M([]);
51055
+ h(e.key), D(1), te([]);
50939
51056
  },
50940
51057
  children: [
50941
51058
  e.label,
@@ -50958,7 +51075,7 @@ function PL() {
50958
51075
  rowSelection: {
50959
51076
  selectedRowKeys: j,
50960
51077
  onChange: (e) => {
50961
- e.length > jL.maxVendorSelect || M(e);
51078
+ e.length > jL.maxVendorSelect || te(e);
50962
51079
  }
50963
51080
  },
50964
51081
  scroll: { y: "calc(100vh - 340px)" }
@@ -50978,8 +51095,8 @@ function PL() {
50978
51095
  }), /* @__PURE__ */ Y("div", {
50979
51096
  className: "vendor-share__right",
50980
51097
  children: /* @__PURE__ */ Y(cN, {
50981
- value: N,
50982
- onChange: ne,
51098
+ value: M,
51099
+ onChange: N,
50983
51100
  moduleName: s,
50984
51101
  defaultTemplateId: c.defaultTemplateId ?? t.state?.defaultTemplateId ?? "",
50985
51102
  ready: f,
@@ -52587,7 +52704,7 @@ function OR({ open: e, onClose: t }) {
52587
52704
  async function C() {
52588
52705
  h(!0);
52589
52706
  try {
52590
- p(await te());
52707
+ p(await ne());
52591
52708
  } catch {
52592
52709
  q.error("Failed to load actions");
52593
52710
  } finally {
@@ -54034,7 +54151,7 @@ function az() {
54034
54151
  }, [t?.name]);
54035
54152
  let j = (e) => {
54036
54153
  s(e ?? ""), h([]), S(null), b(null), p(null), w(!1), l(e ? "module_set" : "idle");
54037
- }, M = async (e) => {
54154
+ }, te = async (e) => {
54038
54155
  if (!e || !O) return;
54039
54156
  let n = e.name.split(".").pop()?.toLowerCase();
54040
54157
  if (!["xlsx", "csv"].includes(n)) {
@@ -54066,7 +54183,7 @@ function az() {
54066
54183
  message: e.message || "Could not reach the server."
54067
54184
  }), l("error");
54068
54185
  }
54069
- }, te = async () => {
54186
+ }, ne = async () => {
54070
54187
  try {
54071
54188
  let e = await fetch(JR);
54072
54189
  if (!e.ok) throw Error(`Template file not found (${e.status})`);
@@ -54077,7 +54194,7 @@ function az() {
54077
54194
  } catch (e) {
54078
54195
  console.error(e), q.error("Unable to download sample template.");
54079
54196
  }
54080
- }, N = async () => {
54197
+ }, M = async () => {
54081
54198
  l("inserting"), b(null);
54082
54199
  try {
54083
54200
  let n = await GE({
@@ -54093,7 +54210,7 @@ function az() {
54093
54210
  message: e.message || "Could not reach the server."
54094
54211
  }), l("preview");
54095
54212
  }
54096
- }, ne = yi(() => {
54213
+ }, N = yi(() => {
54097
54214
  r.current?.scrollIntoView({
54098
54215
  behavior: "smooth",
54099
54216
  block: "center"
@@ -54170,7 +54287,7 @@ function az() {
54170
54287
  title: "2. File upload",
54171
54288
  extra: /* @__PURE__ */ Y(R, {
54172
54289
  icon: /* @__PURE__ */ Y(za, {}),
54173
- onClick: te,
54290
+ onClick: ne,
54174
54291
  children: "Download Sample Template"
54175
54292
  }),
54176
54293
  children: [
@@ -54191,7 +54308,7 @@ function az() {
54191
54308
  },
54192
54309
  onDragLeave: () => d(!1),
54193
54310
  onDrop: (e) => {
54194
- e.preventDefault(), d(!1), M(e.dataTransfer.files?.[0]);
54311
+ e.preventDefault(), d(!1), te(e.dataTransfer.files?.[0]);
54195
54312
  },
54196
54313
  children: [/* @__PURE__ */ Y(Aa, { className: "bulk-upload-icon" }), f ? /* @__PURE__ */ X("span", {
54197
54314
  className: "bulk-file-chip",
@@ -54208,7 +54325,7 @@ function az() {
54208
54325
  hidden: !0,
54209
54326
  type: "file",
54210
54327
  accept: ".xlsx,.csv",
54211
- onChange: (e) => M(e.target.files?.[0])
54328
+ onChange: (e) => te(e.target.files?.[0])
54212
54329
  }),
54213
54330
  D && /* @__PURE__ */ Y(Gi, {
54214
54331
  percent: c === "encoding" ? 45 : 82,
@@ -54231,7 +54348,7 @@ function az() {
54231
54348
  errors: E,
54232
54349
  expanded: C,
54233
54350
  onToggle: () => w((e) => !e),
54234
- onSummaryClick: ne
54351
+ onSummaryClick: N
54235
54352
  }),
54236
54353
  y && c === "preview" && /* @__PURE__ */ Y(Ci, {
54237
54354
  type: "error",
@@ -54243,7 +54360,7 @@ function az() {
54243
54360
  rows: m,
54244
54361
  view: _,
54245
54362
  onViewChange: v,
54246
- onConfirm: N,
54363
+ onConfirm: M,
54247
54364
  onReset: A,
54248
54365
  saving: c === "inserting",
54249
54366
  firstInvalidRowId: ee,
@@ -54548,7 +54665,7 @@ function _z() {
54548
54665
  w,
54549
54666
  C
54550
54667
  ]);
54551
- let M = async (t) => {
54668
+ let te = async (t) => {
54552
54669
  let n = {
54553
54670
  module: fz(t.module),
54554
54671
  flow: fz(t.flow),
@@ -54569,9 +54686,9 @@ function _z() {
54569
54686
  } finally {
54570
54687
  y(!1);
54571
54688
  }
54572
- }, te = (t, n) => {
54689
+ }, ne = (t, n) => {
54573
54690
  e.setFieldsValue({ [t]: fz(n) });
54574
- }, N = (t) => {
54691
+ }, M = (t) => {
54575
54692
  e.setFieldsValue({
54576
54693
  module: fz(t),
54577
54694
  flow: void 0,
@@ -54583,7 +54700,7 @@ function _z() {
54583
54700
  value: void 0,
54584
54701
  expected: void 0
54585
54702
  });
54586
- }, ne = (t) => {
54703
+ }, N = (t) => {
54587
54704
  e.setFieldsValue({
54588
54705
  flow: fz(t),
54589
54706
  step_order: void 0
@@ -54654,7 +54771,7 @@ function _z() {
54654
54771
  children: " *"
54655
54772
  })] }),
54656
54773
  initialValues: lz,
54657
- onFinish: M,
54774
+ onFinish: te,
54658
54775
  autoComplete: "off",
54659
54776
  children: [/* @__PURE__ */ Y(Oi, {
54660
54777
  className: "v1-card",
@@ -54686,7 +54803,7 @@ function _z() {
54686
54803
  optionFilterProp: "label",
54687
54804
  placeholder: "Select module",
54688
54805
  options: S,
54689
- onChange: N
54806
+ onChange: M
54690
54807
  })
54691
54808
  }), /* @__PURE__ */ Y(R, {
54692
54809
  "aria-label": "Add module",
@@ -54708,7 +54825,7 @@ function _z() {
54708
54825
  disabled: D,
54709
54826
  options: o,
54710
54827
  placeholder: u ? "Loading flows" : "Enter flow",
54711
- onChange: ne,
54828
+ onChange: N,
54712
54829
  filterOption: (e, t) => t?.value?.toLowerCase().includes(e.toLowerCase())
54713
54830
  })
54714
54831
  })
@@ -54755,7 +54872,7 @@ function _z() {
54755
54872
  disabled: O,
54756
54873
  placeholder: "Enter description",
54757
54874
  showCount: !0,
54758
- onBlur: (e) => te("description", e.target.value)
54875
+ onBlur: (e) => ne("description", e.target.value)
54759
54876
  })
54760
54877
  })
54761
54878
  }),
@@ -54769,7 +54886,7 @@ function _z() {
54769
54886
  maxLength: 255,
54770
54887
  disabled: O,
54771
54888
  placeholder: "Enter target",
54772
- onBlur: (e) => te("target", e.target.value)
54889
+ onBlur: (e) => ne("target", e.target.value)
54773
54890
  })
54774
54891
  })
54775
54892
  }),
@@ -54784,7 +54901,7 @@ function _z() {
54784
54901
  disabled: O,
54785
54902
  placeholder: "Enter tags",
54786
54903
  prefix: /* @__PURE__ */ Y(Wo, { className: "v1-input-icon" }),
54787
- onBlur: (e) => te("tags", e.target.value)
54904
+ onBlur: (e) => ne("tags", e.target.value)
54788
54905
  })
54789
54906
  })
54790
54907
  }),
@@ -54798,7 +54915,7 @@ function _z() {
54798
54915
  rows: 4,
54799
54916
  disabled: O,
54800
54917
  placeholder: "Enter value",
54801
- onBlur: (e) => te("value", e.target.value)
54918
+ onBlur: (e) => ne("value", e.target.value)
54802
54919
  })
54803
54920
  })
54804
54921
  }),
@@ -54812,7 +54929,7 @@ function _z() {
54812
54929
  rows: 4,
54813
54930
  disabled: O,
54814
54931
  placeholder: "Enter expected result",
54815
- onBlur: (e) => te("expected", e.target.value)
54932
+ onBlur: (e) => ne("expected", e.target.value)
54816
54933
  })
54817
54934
  })
54818
54935
  })
@@ -54947,7 +55064,7 @@ function Tz(e, t) {
54947
55064
  })));
54948
55065
  }
54949
55066
  function Ez() {
54950
- 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 () => {
54951
55068
  try {
54952
55069
  let e = await VE();
54953
55070
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
@@ -55176,7 +55293,7 @@ function Ez() {
55176
55293
  optionFilterProp: "label",
55177
55294
  loading: _,
55178
55295
  placeholder: "Select module",
55179
- options: M,
55296
+ options: te,
55180
55297
  onChange: (t) => {
55181
55298
  let n = o.find((e) => e.id === t)?.modulename ?? "";
55182
55299
  e.setFieldsValue({
@@ -55210,7 +55327,7 @@ function Ez() {
55210
55327
  disabled: !ee,
55211
55328
  loading: y,
55212
55329
  placeholder: ee ? "Select submodule" : "Select module first",
55213
- options: te,
55330
+ options: ne,
55214
55331
  onChange: (t) => {
55215
55332
  e.setFieldsValue({
55216
55333
  submodule: t,
@@ -55275,9 +55392,9 @@ function Ez() {
55275
55392
  extra: /* @__PURE__ */ X(vz, {
55276
55393
  type: "secondary",
55277
55394
  children: [
55278
- N,
55395
+ M,
55279
55396
  " / ",
55280
- ne
55397
+ N
55281
55398
  ]
55282
55399
  }),
55283
55400
  children: [/* @__PURE__ */ X(Ji, {
@@ -56177,9 +56294,9 @@ function Xz() {
56177
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({
56178
56295
  open: !1,
56179
56296
  typeKey: "module"
56180
- }), [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 = []) => {
56181
56298
  e === "module" && r(t);
56182
- }, ne = async () => {
56299
+ }, N = async () => {
56183
56300
  p(!0);
56184
56301
  try {
56185
56302
  let e = await zE(Vz.module.dbName);
@@ -56230,7 +56347,7 @@ function Xz() {
56230
56347
  }, [e]);
56231
56348
  F(() => {
56232
56349
  Promise.resolve().then(async () => {
56233
- await Promise.all([ne(), re()]);
56350
+ await Promise.all([N(), re()]);
56234
56351
  });
56235
56352
  }, []), F(() => {
56236
56353
  Promise.resolve().then(() => P(D));
@@ -56328,7 +56445,7 @@ function Xz() {
56328
56445
  name: n,
56329
56446
  type: T.dbName
56330
56447
  });
56331
- 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();
56332
56449
  } catch (e) {
56333
56450
  if (e?.errorFields) return;
56334
56451
  console.error("Unable to save testing option:", e), q.error(`Unable to add ${T.label.toLowerCase()}.`);
@@ -56456,7 +56573,7 @@ function Xz() {
56456
56573
  children: /* @__PURE__ */ Y(H, {
56457
56574
  allowClear: !0,
56458
56575
  showSearch: !0,
56459
- disabled: M,
56576
+ disabled: te,
56460
56577
  optionFilterProp: "label",
56461
56578
  placeholder: "Select action",
56462
56579
  options: c,
@@ -56472,7 +56589,7 @@ function Xz() {
56472
56589
  children: /* @__PURE__ */ Y(V.TextArea, {
56473
56590
  rows: 3,
56474
56591
  maxLength: 255,
56475
- disabled: M,
56592
+ disabled: te,
56476
56593
  placeholder: "Enter description",
56477
56594
  showCount: !0,
56478
56595
  onBlur: (e) => oe("description", e.target.value)
@@ -56486,13 +56603,13 @@ function Xz() {
56486
56603
  label: "Key",
56487
56604
  name: "target",
56488
56605
  rules: [{
56489
- required: te.key,
56606
+ required: ne.key,
56490
56607
  message: "Key is required for this action"
56491
56608
  }],
56492
56609
  children: /* @__PURE__ */ Y(V, {
56493
56610
  maxLength: 255,
56494
- disabled: M || !!k && !te.key,
56495
- 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",
56496
56613
  onBlur: (e) => oe("target", e.target.value)
56497
56614
  })
56498
56615
  })
@@ -56505,7 +56622,7 @@ function Xz() {
56505
56622
  name: "tags",
56506
56623
  children: /* @__PURE__ */ Y(V, {
56507
56624
  maxLength: 200,
56508
- disabled: M,
56625
+ disabled: te,
56509
56626
  placeholder: "Enter tags",
56510
56627
  prefix: /* @__PURE__ */ Y(Wo, { className: "v1-input-icon" }),
56511
56628
  onBlur: (e) => oe("tags", e.target.value)
@@ -56519,13 +56636,13 @@ function Xz() {
56519
56636
  label: "Value",
56520
56637
  name: "value",
56521
56638
  rules: [{
56522
- required: te.value,
56639
+ required: ne.value,
56523
56640
  message: "Value is required for this action"
56524
56641
  }],
56525
56642
  children: /* @__PURE__ */ Y(V.TextArea, {
56526
56643
  rows: 4,
56527
- disabled: M || !!k && !te.value,
56528
- 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",
56529
56646
  onBlur: (e) => oe("value", e.target.value)
56530
56647
  })
56531
56648
  })
@@ -56537,13 +56654,13 @@ function Xz() {
56537
56654
  label: "Expected",
56538
56655
  name: "expected",
56539
56656
  rules: [{
56540
- required: te.expected,
56657
+ required: ne.expected,
56541
56658
  message: "Expected result is required for this action"
56542
56659
  }],
56543
56660
  children: /* @__PURE__ */ Y(V.TextArea, {
56544
56661
  rows: 4,
56545
- disabled: M || !!k && !te.expected,
56546
- 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",
56547
56664
  onBlur: (e) => oe("expected", e.target.value)
56548
56665
  })
56549
56666
  })
@@ -56556,7 +56673,7 @@ function Xz() {
56556
56673
  type: "primary",
56557
56674
  htmlType: "submit",
56558
56675
  loading: S,
56559
- disabled: M,
56676
+ disabled: te,
56560
56677
  children: "Submit"
56561
56678
  }), /* @__PURE__ */ Y(R, {
56562
56679
  onClick: () => {
@@ -56949,8 +57066,9 @@ async function DB(e, t, n, r = 10, i = 0, a = {}) {
56949
57066
  }
56950
57067
  //#endregion
56951
57068
  //#region src/index.js
57069
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-08-20T10:22:57.825Z");
56952
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);
56953
57071
  //#endregion
56954
- 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 };
56955
57073
 
56956
57074
  //# sourceMappingURL=index.js.map