@realtek/core-theme 0.0.340 → 0.0.341

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,6 +1,6 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
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-CX_5lqr6.js";
3
- import { $ as O, $n as k, $r as A, $t as j, A as M, An as ee, 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, bi as an, bn as on, br as sn, bt as cn, c as ln, ci as un, cn as dn, cr as fn, ct as pn, d as mn, di as hn, dn as gn, dr as _n, dt as vn, ei as yn, en as bn, er as xn, et as Sn, f as Cn, fi as wn, fn as Tn, fr as En, ft as Dn, g as On, gi as kn, gn as An, gr as jn, gt as Mn, h as Nn, hi as Pn, hn as Fn, hr as In, ht as Ln, i as Rn, ii as zn, in as Bn, ir as Vn, it as Hn, j as Un, jn as Wn, jr as Gn, jt as Kn, k as qn, kn as Jn, kr as Yn, kt as Xn, l as Zn, li as Qn, ln as $n, lr as er, lt as tr, m as nr, mi as rr, mn as ir, mr as ar, mt as or, n as sr, ni as cr, nn as lr, nr as ur, nt as dr, o as fr, oi as pr, on as mr, or as hr, ot as gr, p as _r, pi as vr, pn as yr, pr as br, pt as xr, q as Sr, qn as Cr, qr as wr, qt as Tr, r as Er, ri as Dr, rn as Or, rr as kr, rt as Ar, s as jr, si as Mr, sn as Nr, sr as Pr, st as Fr, t as Ir, ti as Lr, tn as Rr, tr as zr, tt as Br, u as Vr, ui as Hr, un as Ur, ur as Wr, ut as Gr, v as Kr, vi as qr, vn as Jr, vr as Yr, vt as Xr, w as Zr, wn as Qr, wr as $r, wt as ei, x as ti, xi as ni, xn as ri, xr as ii, xt as ai, y as oi, yi as si, yn as ci, yr as li, yt as ui, z as di, zn as fi, zr as pi, zt as mi } from "./Breadcrumb-DfMW2xS3.js";
3
+ import { $ as O, $n as k, $r as ee, $t as A, A as j, An as te, Ar as M, 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, bi as an, bn as on, br as sn, bt as cn, c as ln, ci as un, cn as dn, cr as fn, ct as pn, d as mn, di as hn, dn as gn, dr as _n, dt as vn, ei as yn, en as bn, er as xn, et as Sn, f as Cn, fi as wn, fn as Tn, fr as En, ft as Dn, g as On, gi as kn, gn as An, gr as jn, gt as Mn, h as Nn, hi as Pn, hn as Fn, hr as In, ht as Ln, i as Rn, ii as zn, in as Bn, ir as Vn, it as Hn, j as Un, jn as Wn, jr as Gn, jt as Kn, k as qn, kn as Jn, kr as Yn, kt as Xn, l as Zn, li as Qn, ln as $n, lr as er, lt as tr, m as nr, mi as rr, mn as ir, mr as ar, mt as or, n as sr, ni as cr, nn as lr, nr as ur, nt as dr, o as fr, oi as pr, on as mr, or as hr, ot as gr, p as _r, pi as vr, pn as yr, pr as br, pt as xr, q as Sr, qn as Cr, qr as wr, qt as Tr, r as Er, ri as Dr, rn as Or, rr as kr, rt as Ar, s as jr, si as Mr, sn as Nr, sr as Pr, st as Fr, t as Ir, ti as Lr, tn as Rr, tr as zr, tt as Br, u as Vr, ui as Hr, un as Ur, ur as Wr, ut as Gr, v as Kr, vi as qr, vn as Jr, vr as Yr, vt as Xr, w as Zr, wn as Qr, wr as $r, wt as ei, x as ti, xi as ni, xn as ri, xr as ii, xt as ai, y as oi, yi as si, yn as ci, yr as li, yt as ui, z as di, zn as fi, zr as pi, zt as mi } from "./Breadcrumb-DfMW2xS3.js";
4
4
  import { r as hi } from "./diceCandidateMapper-DqBO4EhL.js";
5
5
  import { t as gi } from "./formGroupsCache-JeC59oNe.js";
6
6
  import { n as _i, r as vi } from "./addFormApi-B-fsXzPP.js";
@@ -211,7 +211,7 @@ function Vs({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
211
211
  }), b = u != null && d != null ? {
212
212
  year: Number(u),
213
213
  month: Number(d) - 1
214
- } : v, [x, S] = L({}), [C, w] = L([]), [T, E] = L(!1), [D, O] = L(null), k = JSON.stringify(e), A = n === "Mon" ? js : As, j = Ci(async () => {
214
+ } : v, [x, S] = L({}), [C, w] = L([]), [T, E] = L(!1), [D, O] = L(null), k = JSON.stringify(e), ee = n === "Mon" ? js : As, A = Ci(async () => {
215
215
  E(!0);
216
216
  try {
217
217
  let t = await Es({ userIds: e });
@@ -223,21 +223,21 @@ function Vs({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
223
223
  }
224
224
  }, [k]);
225
225
  F(() => {
226
- g || j();
227
- }, [g, j]), F(() => (window.addEventListener("dashboard-calendar:refresh", j), () => window.removeEventListener("dashboard-calendar:refresh", j)), [j]);
228
- let M = f ?? (() => y((e) => e.month === 0 ? {
226
+ g || A();
227
+ }, [g, A]), F(() => (window.addEventListener("dashboard-calendar:refresh", A), () => window.removeEventListener("dashboard-calendar:refresh", A)), [A]);
228
+ let j = f ?? (() => y((e) => e.month === 0 ? {
229
229
  year: e.year - 1,
230
230
  month: 11
231
231
  } : {
232
232
  ...e,
233
233
  month: e.month - 1
234
- })), ee = 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 = Ls(Is(b.year, b.month, n), 7), N = {};
240
+ })), M = Ls(Is(b.year, b.month, n), 7), N = {};
241
241
  t !== void 0 && (t || []).forEach((e) => {
242
242
  e?.date && (N[e.date] = e);
243
243
  });
@@ -269,7 +269,7 @@ function Vs({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
269
269
  type: "text",
270
270
  icon: /* @__PURE__ */ Y(_o, {}),
271
271
  size: "small",
272
- onClick: M,
272
+ onClick: j,
273
273
  disabled: m
274
274
  })
275
275
  }), /* @__PURE__ */ Y(K, {
@@ -278,7 +278,7 @@ function Vs({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
278
278
  type: "text",
279
279
  icon: /* @__PURE__ */ Y(Lo, {}),
280
280
  size: "small",
281
- onClick: ee,
281
+ onClick: te,
282
282
  disabled: h
283
283
  })
284
284
  })]
@@ -289,7 +289,7 @@ function Vs({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
289
289
  /* @__PURE__ */ Y($i, {
290
290
  gutter: [6, 0],
291
291
  className: "calendar-day-names",
292
- children: A.map((e) => /* @__PURE__ */ Y(z, {
292
+ children: ee.map((e) => /* @__PURE__ */ Y(z, {
293
293
  flex: "1",
294
294
  className: "calendar-day-name",
295
295
  children: e
@@ -297,7 +297,7 @@ function Vs({ 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($i, {
300
+ children: M.map((e, t) => /* @__PURE__ */ Y($i, {
301
301
  gutter: [6, 6],
302
302
  align: "top",
303
303
  className: "calendar-week-row",
@@ -404,6 +404,7 @@ function Ws(e, t) {
404
404
  children: [/* @__PURE__ */ Y("span", { children: Us(r) }), Hs(i) && /* @__PURE__ */ Y(ji, {
405
405
  className: "dynamic-tabs-count",
406
406
  count: i,
407
+ showZero: !0,
407
408
  overflowCount: 2 ** 53 - 1
408
409
  })]
409
410
  })
@@ -1232,7 +1233,7 @@ function $c(e) {
1232
1233
  function el(e) {
1233
1234
  if (!Kc(e)) return null;
1234
1235
  let t = new Date(e);
1235
- return isNaN(t) || t.getFullYear() <= 1 ? null : ee(t, re().dateFormat);
1236
+ return isNaN(t) || t.getFullYear() <= 1 ? null : te(t, re().dateFormat);
1236
1237
  }
1237
1238
  function tl(e) {
1238
1239
  let t = Number(e);
@@ -4380,8 +4381,8 @@ function ap({ moduleName: e, open: t = !1, filters: n = [], onClose: r, onApply:
4380
4381
  let { values: t } = e;
4381
4382
  return typeof t == "string" ? t.trim() === "" : !Array.isArray(t) || t.length === 0 || t.every((e) => e == null || e === "");
4382
4383
  }
4383
- let A = s.length === 0 || s.every(k);
4384
- function j(e, t) {
4384
+ let ee = s.length === 0 || s.every(k);
4385
+ function A(e, t) {
4385
4386
  let n = o.getFieldValue("filters") ?? [];
4386
4387
  o.setFieldValue("filters", n.map((t, n) => n === e ? {
4387
4388
  ...t,
@@ -4423,7 +4424,7 @@ function ap({ moduleName: e, open: t = !1, filters: n = [], onClose: r, onApply:
4423
4424
  }), /* @__PURE__ */ Y(Gr, {
4424
4425
  variant: "primary",
4425
4426
  onClick: O,
4426
- disabled: A,
4427
+ disabled: ee,
4427
4428
  children: "Apply"
4428
4429
  })]
4429
4430
  }),
@@ -4511,7 +4512,7 @@ function ap({ moduleName: e, open: t = !1, filters: n = [], onClose: r, onApply:
4511
4512
  options: x,
4512
4513
  optionFilterProp: "label",
4513
4514
  loading: l,
4514
- onChange: (e) => j(t.name, e)
4515
+ onChange: (e) => A(t.name, e)
4515
4516
  })
4516
4517
  })
4517
4518
  }), /* @__PURE__ */ Y(B.Item, {
@@ -5405,7 +5406,7 @@ function $m({ filters: e, onRemove: t, onClearAll: n }) {
5405
5406
  ]
5406
5407
  });
5407
5408
  }
5408
- function eh({ 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 = qm, fieldOverrides: D = null, extraFields: O = qm, listName: k = "", loading: A = !1, total: j, current: M, pageSize: ee, onPageChange: te, onPageSizeChange: N, onSearch: ne, toolbarExtra: re = null, showSearch: P = !0, searchPlaceholder: ie = "Min 3 Chars, press Enter to search", searchFields: ae = qm, showViewToggle: oe = !1, activeView: se = "list", onViewChange: ce, autoCardForExternalRows: le = !0, createAction: ue, onRecordClick: de, selectedRecordId: fe, selectionMode: pe = "checkbox", compact: me = !1, onSelectionChange: he, selectedSource: ge, onTabChange: _e, fetchData: ve = Au, responseMapper: ye = xf, queryParams: be = Jm, defaultVisibleColumnCount: xe = 6, showAdd: Se = !0, lockOuterPageScroll: Ce = !1 }) {
5409
+ function eh({ 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 = qm, fieldOverrides: D = null, extraFields: O = qm, listName: k = "", loading: ee = !1, total: A, current: j, pageSize: te, onPageChange: M, onPageSizeChange: N, onSearch: ne, toolbarExtra: re = null, showSearch: P = !0, searchPlaceholder: ie = "Min 3 Chars, press Enter to search", searchFields: ae = qm, showViewToggle: oe = !1, activeView: se = "list", onViewChange: ce, autoCardForExternalRows: le = !0, createAction: ue, onRecordClick: de, selectedRecordId: fe, selectionMode: pe = "checkbox", compact: me = !1, onSelectionChange: he, selectedSource: ge, onTabChange: _e, fetchData: ve = Au, responseMapper: ye = xf, queryParams: be = Jm, defaultVisibleColumnCount: xe = 6, showAdd: Se = !0, lockOuterPageScroll: Ce = !1 }) {
5409
5410
  let we = xs(), Te = bs(), Ee = gt(e), [De, Oe] = L(() => /* @__PURE__ */ new Set()), [ke, Ae] = L(() => /* @__PURE__ */ new Set());
5410
5411
  F(() => {
5411
5412
  if (bm(Ee) !== "submissions") {
@@ -5456,35 +5457,35 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5456
5457
  n && de?.(e, n);
5457
5458
  }, Ct = (e, t) => {
5458
5459
  Qe(e), et(t), he?.(e, t);
5459
- }, [wt, Tt] = L(a), [Et, Dt] = L(a.length), [Ot, kt] = L([]), [At, jt] = L([]), [Mt, Nt] = L(""), [Pt, Ft] = L([]), [It, Lt] = L([]), [Rt, zt] = L(!1), [Bt, Vt] = L(null), [Ht, Ut] = L(null), [Wt, Gt] = L(!1), Kt = !!(te || N || ne), qt = Kt ? a : wt, Jt = Kt ? j ?? 0 : Et, Yt = Kt ? T : At, Xt = I(() => qt.some((e) => yp(e)), [qt]), Zt = I(() => Yt.some((e) => vp(e)), [Yt]), Qt = le && (Xt || Zt) ? "card" : se, $t = n.length > 0 ? n : Pt, en = r.length > 0 ? r : It, tn = I(() => Pm($t), [$t]), nn = I(() => new Map(Nm(tn).map((e) => [e.key, e])), [tn]), rn = I(() => Mm(tn, (e) => {
5460
+ }, [wt, Tt] = L(a), [Et, Dt] = L(a.length), [Ot, kt] = L([]), [At, jt] = L([]), [Mt, Nt] = L(""), [Pt, Ft] = L([]), [It, Lt] = L([]), [Rt, zt] = L(!1), [Bt, Vt] = L(!1), [Ht, Ut] = L(null), [Wt, Gt] = L(null), [Kt, qt] = L(!1), Jt = !!(M || N || ne), Yt = Jt ? a : wt, Xt = Jt ? A ?? 0 : Et, Zt = Jt ? T : At, Qt = I(() => Yt.some((e) => yp(e)), [Yt]), $t = I(() => Zt.some((e) => vp(e)), [Zt]), en = le && (Qt || $t) ? "card" : se, tn = n.length > 0 ? n : Pt, nn = r.length > 0 ? r : It, rn = I(() => Pm(tn), [tn]), an = I(() => new Map(Nm(rn).map((e) => [e.key, e])), [rn]), on = I(() => Mm(rn, (e) => {
5460
5461
  let t = bd(e);
5461
5462
  return t === "add" && !Ne || t === "edit" && !Pe || t === "delete" && !Fe || !rt(Ie, e.permission, Ee) || e.showInList === !1 ? !1 : !e.allowedTabs || e.allowedTabs.some((e) => bm(e) === bm(Ve));
5462
5463
  }), [
5463
- tn,
5464
+ rn,
5464
5465
  Ve,
5465
5466
  Ie,
5466
5467
  Ne,
5467
5468
  Pe,
5468
5469
  Fe,
5469
5470
  Ee
5470
- ]), an = I(() => Mm(rn, (e) => (Ze.length === 1 || e.allowMultiple || e.danger) && zm(e, $e) && !(bm(Ee) === "submissions" && Fm(e) && Rm($e, De, ke)) && !Id(e.key, $e, en, Ve)), [
5471
+ ]), sn = I(() => Mm(on, (e) => (Ze.length === 1 || e.allowMultiple || e.danger) && zm(e, $e) && !(bm(Ee) === "submissions" && Fm(e) && Rm($e, De, ke)) && !Id(e.key, $e, nn, Ve)), [
5471
5472
  Ve,
5472
5473
  Ee,
5473
- en,
5474
+ nn,
5474
5475
  Ze.length,
5475
5476
  $e,
5476
5477
  De,
5477
5478
  ke,
5478
- rn
5479
- ]), on = typeof e == "string" ? e.trim().length > 0 : !!e, sn = on ? `/${Ee}-create${ue ? `?action=${encodeURIComponent(ue)}` : ""}` : "";
5479
+ on
5480
+ ]), cn = typeof e == "string" ? e.trim().length > 0 : !!e, ln = cn ? `/${Ee}-create${ue ? `?action=${encodeURIComponent(ue)}` : ""}` : "";
5480
5481
  F(() => {
5481
- on && !Me && we("/", { replace: !0 });
5482
+ cn && !Me && we("/", { replace: !0 });
5482
5483
  }, [
5483
5484
  Me,
5484
- on,
5485
+ cn,
5485
5486
  we
5486
5487
  ]);
5487
- let cn = (e, { replace: t = !1 } = {}) => {
5488
+ let un = (e, { replace: t = !1 } = {}) => {
5488
5489
  let n = new URLSearchParams(ze);
5489
5490
  Km(n);
5490
5491
  let r = [n.toString(), e > 1 ? `p${e}` : ""].filter(Boolean).join("&");
@@ -5492,22 +5493,22 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5492
5493
  pathname: Te.pathname,
5493
5494
  search: r ? `?${r}` : ""
5494
5495
  }, { replace: t });
5495
- }, ln = (e, t) => {
5496
+ }, dn = (e, t) => {
5496
5497
  at((t) => ({
5497
5498
  ...t,
5498
5499
  current: e
5499
- })), cn(e, t);
5500
- }, un = () => {
5501
- ln(1, { replace: !0 });
5502
- }, { config: dn, loading: fn, error: pn } = qu(!Kt && on ? e : null), mn = Ci((e) => {
5500
+ })), un(e, t);
5501
+ }, fn = () => {
5502
+ dn(1, { replace: !0 });
5503
+ }, { config: pn, loading: mn, error: hn } = qu(!Jt && cn ? e : null), gn = Ci((e) => {
5503
5504
  let t = ot.sort === e, n = Bm(ot.sortDir, t), r = n ? String(e) : "";
5504
5505
  st({
5505
5506
  sort: r,
5506
5507
  sortDir: n
5507
- }), typeof ne == "function" && ne(r, n), un();
5508
+ }), typeof ne == "function" && ne(r, n), fn();
5508
5509
  }, [
5509
5510
  ne,
5510
- un,
5511
+ fn,
5511
5512
  ot.sort,
5512
5513
  ot.sortDir
5513
5514
  ]);
@@ -5517,67 +5518,67 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5517
5518
  current: Be
5518
5519
  });
5519
5520
  }, [Be]), F(() => {
5520
- Kt && at((e) => {
5521
- let t = Wm(M ?? e.current), n = Number(ee) > 0 ? Number(ee) : e.pageSize;
5521
+ Jt && at((e) => {
5522
+ let t = Wm(j ?? e.current), n = Number(te) > 0 ? Number(te) : e.pageSize;
5522
5523
  return e.current === t && e.pageSize === n ? e : {
5523
5524
  current: t,
5524
5525
  pageSize: n
5525
5526
  };
5526
5527
  });
5527
5528
  }, [
5528
- M,
5529
- ee,
5530
- Kt
5529
+ j,
5530
+ te,
5531
+ Jt
5531
5532
  ]);
5532
- let hn = Te.state?.refreshTimestamp;
5533
+ let _n = Te.state?.refreshTimestamp;
5533
5534
  F(() => {
5534
- hn && (Ct([], []), nt((e) => e + 1));
5535
- }, [hn]);
5536
- let gn = I(() => {
5535
+ _n && (Ct([], []), nt((e) => e + 1));
5536
+ }, [_n]);
5537
+ let vn = I(() => {
5537
5538
  let e = [...Array.isArray(S) ? S : [], ...Ot], t = Sm(Ve);
5538
5539
  return e.find((e, n) => Sm(xm(e, n)) === t);
5539
5540
  }, [
5540
5541
  Ve,
5541
5542
  Ot,
5542
5543
  S
5543
- ]), _n = gn?.field ?? gn?.fieldName ?? gn?.filterField ?? gn?.dataIndex ?? Mt, vn = Cm(Ve) ? "" : Ve, yn = !vn && !Cm(Ve) && bm(_n).length > 0, bn = Ge.trim().length >= 3, xn = bn ? Ge.trim() : "", Sn = Ye.some((e) => e.field), Cn = Um({
5544
+ ]), yn = vn?.field ?? vn?.fieldName ?? vn?.filterField ?? vn?.dataIndex ?? Mt, bn = Cm(Ve) ? "" : Ve, xn = !bn && !Cm(Ve) && bm(yn).length > 0, Sn = Ge.trim().length >= 3, Cn = Sn ? Ge.trim() : "", wn = Ye.some((e) => e.field), Tn = Um({
5544
5545
  moduleName: e,
5545
- activeTabScope: vn,
5546
+ activeTabScope: bn,
5546
5547
  pageSize: it.pageSize,
5547
5548
  sort: ot.sort,
5548
5549
  sortDir: ot.sortDir,
5549
5550
  queryParams: Re
5550
- }), wn = it.current === 1 && Ht?.key === Cn, Tn = Number(Ht?.total), En = bn ? Number.isFinite(Tn) && Tn > 0 ? Tn : Et : 0;
5551
+ }), En = it.current === 1 && Wt?.key === Tn, Dn = Number(Wt?.total), On = Sn ? Number.isFinite(Dn) && Dn > 0 ? Dn : Et : 0;
5551
5552
  F(() => {
5552
- if (Kt) return;
5553
- if (!on) {
5554
- Tt([]), Dt(0), kt([]), jt([]), Nt(""), Ft([]), Lt([]), Vt(null);
5553
+ if (Jt) return;
5554
+ if (!cn) {
5555
+ Tt([]), Dt(0), kt([]), jt([]), Nt(""), Ft([]), Lt([]), Ut(null);
5555
5556
  return;
5556
5557
  }
5557
- let t = Sm(vn);
5558
+ let t = Sm(bn);
5558
5559
  if (yt.current && yt.current === t) {
5559
5560
  yt.current = "";
5560
5561
  return;
5561
5562
  }
5562
- let n = !1, r = bn && En > it.pageSize, i = r ? En : it.pageSize, a = r ? 0 : (it.current - 1) * it.pageSize;
5563
- return zt(!(!bn && !Sn && it.current === 1 && wn)), Vt(null), ve(e, i, a, {
5564
- scope: vn,
5563
+ let n = !1, r = Sn && On > it.pageSize, i = r ? On : it.pageSize, a = r ? 0 : (it.current - 1) * it.pageSize;
5564
+ return zt(!(!Sn && !wn && it.current === 1 && En)), Ut(null), ve(e, i, a, {
5565
+ scope: bn,
5565
5566
  sort: ot.sort,
5566
5567
  sortDir: ot.sortDir,
5567
- search: xn,
5568
+ search: Cn,
5568
5569
  filters: Ye,
5569
5570
  queryParams: Re
5570
5571
  }).then((t) => {
5571
5572
  if (n) return;
5572
5573
  let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } = ye(t, e), u = !ge && Cm(Ve) && Array.isArray(a) && a.length > 0 && !a.some((e, t) => Cm(xm(e, t))) ? xm(a[0], 0) : "", d = Um({
5573
5574
  moduleName: e,
5574
- activeTabScope: u ? String(u) : vn,
5575
+ activeTabScope: u ? String(u) : bn,
5575
5576
  pageSize: it.pageSize,
5576
5577
  sort: ot.sort,
5577
5578
  sortDir: ot.sortDir,
5578
5579
  queryParams: Re
5579
5580
  });
5580
- Tt(r), Dt(i), kt(a), jt(o), Nt(s), Ft(c), Lt(l), u && (yt.current = Sm(u), He((e) => Sm(e) === Sm(u) ? e : String(u))), !bn && !Sn && it.current === 1 && Ut({
5581
+ Tt(r), Dt(i), kt(a), jt(o), Nt(s), Ft(c), Lt(l), u && (yt.current = Sm(u), He((e) => Sm(e) === Sm(u) ? e : String(u))), !Sn && !wn && it.current === 1 && Gt({
5581
5582
  key: d,
5582
5583
  rows: r,
5583
5584
  total: i,
@@ -5588,35 +5589,35 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5588
5589
  actionRules: l
5589
5590
  });
5590
5591
  }).catch((e) => {
5591
- n || (Tt([]), Dt(0), kt([]), jt([]), Nt(""), Ft([]), Lt([]), Vt(e.message), on && q.error("Invalid module name or data could not be loaded."));
5592
+ n || (Tt([]), Dt(0), kt([]), jt([]), Nt(""), Ft([]), Lt([]), Ut(e.message), cn && q.error("Invalid module name or data could not be loaded."));
5592
5593
  }).finally(() => {
5593
- n || zt(!1);
5594
+ n || (zt(!1), Vt(!0));
5594
5595
  }), () => {
5595
5596
  n = !0;
5596
5597
  };
5597
5598
  }, [
5598
- xn,
5599
+ Cn,
5599
5600
  Ve,
5600
- vn,
5601
+ bn,
5601
5602
  Ye,
5602
5603
  ve,
5604
+ wn,
5603
5605
  Sn,
5604
- bn,
5605
- on,
5606
- Kt,
5606
+ cn,
5607
+ Jt,
5607
5608
  e,
5608
5609
  it.current,
5609
5610
  it.pageSize,
5610
5611
  tt,
5611
5612
  ye,
5612
- En,
5613
+ On,
5613
5614
  ge,
5614
5615
  ot.sort,
5615
5616
  ot.sortDir,
5616
5617
  Re
5617
5618
  ]);
5618
- let Dn = I(() => {
5619
- let e = Kt && Array.isArray(T) && T.length, t = !Kt && Array.isArray(At) && At.length, n = !pn && Array.isArray(dn) && dn.length, r = e ? T : t ? At : n ? dn : [], i = new Map(At.map((e) => [up(e), e]).filter(([e]) => e)), a = r.map((e) => {
5619
+ let kn = I(() => {
5620
+ let e = Jt && Array.isArray(T) && T.length, t = !Jt && Array.isArray(At) && At.length, n = !hn && Array.isArray(pn) && pn.length, r = e ? T : t ? At : n ? pn : [], i = new Map(At.map((e) => [up(e), e]).filter(([e]) => e)), a = r.map((e) => {
5620
5621
  let t = up(e), n = i.get(t) ?? {}, r = t && D && typeof D == "object" ? D[t] : null, a = r?.renderConfig ? {
5621
5622
  ...n.renderConfig ?? e.renderConfig ?? {},
5622
5623
  ...r.renderConfig
@@ -5641,83 +5642,89 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5641
5642
  }).filter(Boolean);
5642
5643
  return Zp([...a, ...o]);
5643
5644
  }, [
5644
- dn,
5645
5645
  pn,
5646
+ hn,
5646
5647
  T,
5647
5648
  O,
5648
5649
  D,
5649
- Kt,
5650
+ Jt,
5650
5651
  At
5651
- ]), On = I(() => Dn.filter((e) => typeof e.isVisible == "boolean" ? e.isVisible : typeof e.isVisible != "string" || e.isVisible.toLowerCase() === "true").map((e) => ({
5652
+ ]), An = I(() => kn.filter((e) => typeof e.isVisible == "boolean" ? e.isVisible : typeof e.isVisible != "string" || e.isVisible.toLowerCase() === "true").map((e) => ({
5652
5653
  key: e.key,
5653
5654
  label: e.label
5654
- })), [Dn]), kn = On.map((e) => e.key), An = ct.filter((e) => kn.includes(e)), jn = An.length ? An : On.slice(0, xe).map((e) => e.key), Mn = Math.min(xe, On.length), Nn = jn.length > xe, Pn = I(() => Dn.filter((e) => !e.cardHidden && (e.tableHidden || jn.includes(e.key))), [Dn, jn]), Fn = I(() => {
5655
- let e = Ue.toLowerCase(), t = qt, n = yn ? t.filter((e) => wm(e, Ve, gn, Dn, _n)) : t, r = ae.length ? Dn.filter((e) => ae.includes(e.key)) : Dn;
5655
+ })), [kn]), jn = An.map((e) => e.key), Mn = ct.filter((e) => jn.includes(e)), Nn = Mn.length ? Mn : An.slice(0, xe).map((e) => e.key), Pn = Math.min(xe, An.length), Fn = Nn.length > xe, In = I(() => kn.filter((e) => !e.cardHidden && (e.tableHidden || Nn.includes(e.key))), [kn, Nn]), Ln = I(() => {
5656
+ let e = Ue.toLowerCase(), t = Yt, n = xn ? t.filter((e) => wm(e, Ve, vn, kn, yn)) : t, r = ae.length ? kn.filter((e) => ae.includes(e.key)) : kn;
5656
5657
  return !e || e.length < 3 ? n : n.filter((t) => r.some((n) => String(bp(t, n.key)).toLowerCase().includes(e) || rm(n).some((n) => String(bp(t, n)).toLowerCase().includes(e))));
5657
5658
  }, [
5658
5659
  Ve,
5659
- gn,
5660
- _n,
5660
+ vn,
5661
5661
  yn,
5662
- qt,
5663
- Dn,
5662
+ xn,
5663
+ Yt,
5664
+ kn,
5664
5665
  Ue,
5665
5666
  ae
5666
- ]), In = I(() => {
5667
- if (!bn) return Fn;
5667
+ ]), Rn = I(() => {
5668
+ if (!Sn) return Ln;
5668
5669
  let e = (it.current - 1) * it.pageSize;
5669
- return Fn.slice(e, e + it.pageSize);
5670
+ return Ln.slice(e, e + it.pageSize);
5670
5671
  }, [
5671
- Fn,
5672
- bn,
5672
+ Ln,
5673
+ Sn,
5673
5674
  it.current,
5674
5675
  it.pageSize
5675
- ]), Ln = bn ? Fn.length : Jt, Rn = Ge.trim().length >= 3, zn = String(Fn.length).padStart(2, "0"), Bn = Jt > 0 || qt.length > 0, Vn = Bn || Ue.trim().length > 0 || Ge.trim().length > 0, Hn = on ? Bt ? "Invalid module name or data could not be loaded." : pn ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", Un = I(() => !C || typeof C != "object" ? null : Object.entries(C).reduce((e, [t, n]) => (n == null || (e[String(t)] = String(n)), e), {}), [C]), Wn = I(() => {
5676
- let t = Array.isArray(S) ? S : [], n = t.length ? t : Ot.length ? Ot : [{
5676
+ ]), zn = Sn ? Ln.length : Xt, Bn = Ge.trim().length >= 3, Vn = String(Ln.length).padStart(2, "0"), Hn = Xt > 0 || Yt.length > 0, Un = Hn || Ue.trim().length > 0 || Ge.trim().length > 0, Wn = cn ? Ht ? "Invalid module name or data could not be loaded." : hn ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", Gn = I(() => !C || typeof C != "object" ? null : Object.entries(C).reduce((e, [t, n]) => (n == null || (e[String(t)] = String(n)), e), {}), [C]), Kn = I(() => {
5677
+ let t = Array.isArray(S) ? S : [], n = !t.length, r = t.length ? t : Ot.length ? Ot : [{
5677
5678
  key: "all",
5678
5679
  title: e ?? "List",
5679
- count: Ln
5680
- }];
5681
- return !Un || !Object.keys(Un).length ? n : n.map((e, t) => {
5680
+ count: zn
5681
+ }], i = !!(Gn && Object.keys(Gn).length);
5682
+ return !n && !i ? r : r.map((e, t) => {
5682
5683
  if (!e || typeof e != "object") return e;
5683
- let n = xm(e, t), r = Un[String(n)];
5684
- return r ? {
5685
- ...e,
5686
- title: r
5687
- } : e;
5684
+ let r = i ? Gn[String(xm(e, t))] : void 0;
5685
+ if (!r && !n) return e;
5686
+ let a = { ...e };
5687
+ if (r && (a.title = r), n) {
5688
+ if (Bt) {
5689
+ let t = Number(e.count ?? e.countValue);
5690
+ a.count = Number.isFinite(t) ? t : 0;
5691
+ } else delete a.count, delete a.countValue;
5692
+ }
5693
+ return a;
5688
5694
  });
5689
5695
  }, [
5696
+ Bt,
5690
5697
  e,
5691
5698
  Ot,
5692
- Un,
5693
- Ln,
5699
+ Gn,
5700
+ zn,
5694
5701
  S
5695
5702
  ]);
5696
5703
  F(() => {
5697
- if (!Wn.length || !((Ot?.length ?? 0) > 0 || Array.isArray(S) && S.length > 0)) return;
5704
+ if (!Kn.length || !((Ot?.length ?? 0) > 0 || Array.isArray(S) && S.length > 0)) return;
5698
5705
  let e = Sm(Ve);
5699
- if (!Wn.some((t, n) => Sm(xm(t, n)) === e)) {
5700
- let e = xm(Wn[0], 0);
5706
+ if (!Kn.some((t, n) => Sm(xm(t, n)) === e)) {
5707
+ let e = xm(Kn[0], 0);
5701
5708
  e && He(String(e));
5702
5709
  }
5703
5710
  }, [
5704
5711
  Ve,
5705
- Wn,
5712
+ Kn,
5706
5713
  Ot,
5707
5714
  S
5708
5715
  ]), F(() => {
5709
- if (ge === void 0 || !Wn.length) return;
5710
- let e = Wn.find((e, t) => Sm(xm(e, t)) === Sm(ge));
5716
+ if (ge === void 0 || !Kn.length) return;
5717
+ let e = Kn.find((e, t) => Sm(xm(e, t)) === Sm(ge));
5711
5718
  if (!e) return;
5712
- let t = String(xm(e, Wn.indexOf(e)));
5719
+ let t = String(xm(e, Kn.indexOf(e)));
5713
5720
  (ge !== vt.current || Sm(Ve) !== Sm(t)) && (vt.current = ge, He((e) => Sm(e) === Sm(t) ? e : t));
5714
5721
  }, [
5715
5722
  Ve,
5716
- Wn,
5723
+ Kn,
5717
5724
  ge
5718
5725
  ]);
5719
- let Gn = (e) => {
5720
- let t = Dn.map((e) => {
5726
+ let qn = (e) => {
5727
+ let t = kn.map((e) => {
5721
5728
  let t = {};
5722
5729
  return Object.entries(e).forEach(([e, n]) => {
5723
5730
  typeof n != "function" && (t[e] = n);
@@ -5729,7 +5736,7 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5729
5736
  record: e,
5730
5737
  fields: t
5731
5738
  } });
5732
- }, Kn = (e, t, n = {}) => {
5739
+ }, Jn = (e, t, n = {}) => {
5733
5740
  let r = Np(e, t), i = r.startsWith("/") ? r : `/${r}`, a = t?._id ?? t?.id;
5734
5741
  we(i, { state: {
5735
5742
  background: Te,
@@ -5750,7 +5757,7 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5750
5757
  requireJobId: n.requireJobId,
5751
5758
  ...n.popupState
5752
5759
  } });
5753
- }, qn = I(() => {
5760
+ }, Yn = I(() => {
5754
5761
  let e = {
5755
5762
  dataIndex: "icons",
5756
5763
  key: "icons",
@@ -5764,7 +5771,7 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5764
5771
  type: "button",
5765
5772
  className: "job-row-eye-button",
5766
5773
  "aria-label": "Preview job",
5767
- onClick: () => Gn(t),
5774
+ onClick: () => qn(t),
5768
5775
  children: /* @__PURE__ */ Y("img", {
5769
5776
  src: op,
5770
5777
  alt: "",
@@ -5775,29 +5782,29 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5775
5782
  children: /* @__PURE__ */ Y(yo, { className: "job-row-linkedin-icon" })
5776
5783
  })]
5777
5784
  })
5778
- }, t = Dn.filter((e) => jn.includes(e.key)).map((e, t) => {
5785
+ }, t = kn.filter((e) => Nn.includes(e.key)).map((e, t) => {
5779
5786
  let n = ot.sort === e.key ? ot.sortDir : "";
5780
5787
  return {
5781
5788
  title: Hm({
5782
5789
  label: e.label,
5783
5790
  sortDir: n,
5784
- sortable: Bn,
5785
- onSort: () => mn(e.key)
5791
+ sortable: Hn,
5792
+ onSort: () => gn(e.key)
5786
5793
  }),
5787
5794
  dataIndex: e.key,
5788
5795
  key: e.key,
5789
5796
  fixed: t === 0 ? "left" : void 0,
5790
5797
  ellipsis: { showTitle: !1 },
5791
- width: ym(e, In),
5792
- render: (t, n) => dm(e, n, Ge, Kn, {
5798
+ width: ym(e, Rn),
5799
+ render: (t, n) => dm(e, n, Ge, Jn, {
5793
5800
  canAdd: Ne,
5794
5801
  canEdit: Pe,
5795
5802
  canDelete: Fe
5796
- }, en, vn)
5803
+ }, nn, bn)
5797
5804
  };
5798
5805
  });
5799
- if (!(Nn || Kt) && ht > 0 && t.length > 0) {
5800
- let n = e.width + (Bn && pe === "checkbox" ? 48 : 0) + vm, r = t.reduce((e, t) => e + t.width, 0), i = ht - n - r;
5806
+ if (!(Fn || Jt) && ht > 0 && t.length > 0) {
5807
+ let n = e.width + (Hn && pe === "checkbox" ? 48 : 0) + vm, r = t.reduce((e, t) => e + t.width, 0), i = ht - n - r;
5801
5808
  i > 0 && r > 0 && t.forEach((e) => {
5802
5809
  e.width = Math.floor(e.width + i * (e.width / r));
5803
5810
  });
@@ -5809,35 +5816,35 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5809
5816
  Fe,
5810
5817
  Pe,
5811
5818
  Ge,
5812
- en,
5813
- mn,
5814
- Nn,
5815
- Bn,
5816
- Kt,
5819
+ nn,
5820
+ gn,
5821
+ Fn,
5822
+ Hn,
5823
+ Jt,
5817
5824
  Te,
5818
5825
  e,
5819
5826
  we,
5820
- Dn,
5821
- In,
5827
+ kn,
5828
+ Rn,
5822
5829
  pe,
5823
5830
  ot.sort,
5824
5831
  ot.sortDir,
5825
5832
  ht,
5826
- rn,
5827
- jn
5828
- ]), Jn = Ci((e) => {
5829
- let t = Wn.find((t, n) => Sm(xm(t, n)) === Sm(e)), n = String(t ? xm(t, Wn.indexOf(t)) : e);
5830
- if (He(n), Qe([]), et([]), un(), typeof _e == "function") {
5833
+ on,
5834
+ Nn
5835
+ ]), Xn = Ci((e) => {
5836
+ let t = Kn.find((t, n) => Sm(xm(t, n)) === Sm(e)), n = String(t ? xm(t, Kn.indexOf(t)) : e);
5837
+ if (He(n), Qe([]), et([]), fn(), typeof _e == "function") {
5831
5838
  let e = t?.key ?? t?.value ?? t?.id ?? n;
5832
5839
  vt.current = e, _e(e);
5833
5840
  }
5834
5841
  }, [
5835
5842
  _e,
5836
- Wn,
5837
- un
5843
+ Kn,
5844
+ fn
5838
5845
  ]);
5839
- function Yn(e, t, n) {
5840
- let r = nn.get(String(e));
5846
+ function Zn(e, t, n) {
5847
+ let r = an.get(String(e));
5841
5848
  if (r && r.actionType !== "group") {
5842
5849
  if (typeof c == "function" && c({
5843
5850
  key: r.key,
@@ -5901,16 +5908,16 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5901
5908
  }
5902
5909
  }
5903
5910
  }
5904
- function Xn({ key: e }) {
5905
- let t = Nm(an).find((t) => String(t.key) === String(e));
5906
- t && jm(t, $e, Ve) || Yn(e, Ze, $e);
5911
+ function Qn({ key: e }) {
5912
+ let t = Nm(sn).find((t) => String(t.key) === String(e));
5913
+ t && jm(t, $e, Ve) || Zn(e, Ze, $e);
5907
5914
  }
5908
- let Zn = jn.length === On.length, Qn = jn.length > 0 && !Zn, $n = (e, t) => {
5915
+ let $n = Nn.length === An.length, er = Nn.length > 0 && !$n, tr = (e, t) => {
5909
5916
  lt((n) => {
5910
- let r = On.slice(0, xe).map((e) => e.key), i = n.length ? n : r;
5911
- return t ? i.includes(e) ? i : [...i, e] : i.length <= Mn ? i : i.filter((t) => t !== e);
5917
+ let r = An.slice(0, xe).map((e) => e.key), i = n.length ? n : r;
5918
+ return t ? i.includes(e) ? i : [...i, e] : i.length <= Pn ? i : i.filter((t) => t !== e);
5912
5919
  });
5913
- }, er = () => {
5920
+ }, nr = () => {
5914
5921
  if (typeof u == "function") {
5915
5922
  u();
5916
5923
  return;
@@ -5919,57 +5926,57 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5919
5926
  we(h);
5920
5927
  return;
5921
5928
  }
5922
- Gt(!0);
5923
- }, tr = () => {
5929
+ qt(!0);
5930
+ }, rr = () => {
5924
5931
  x && we(x);
5925
5932
  };
5926
5933
  F(() => {
5927
- if (!Wt) return;
5934
+ if (!Kt) return;
5928
5935
  let e = (e) => {
5929
- e.key === "Escape" && Gt(!1);
5936
+ e.key === "Escape" && qt(!1);
5930
5937
  };
5931
5938
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
5932
- }, [Wt]);
5933
- let nr = () => {
5934
- wn && (Tt(Ht.rows), Dt(Ht.total), kt(Ht.tabs), jt(Ht.fields), Nt(Ht.tabField), Ft(Ht.actions ?? []), Lt(Ht.actionRules ?? []), Vt(null), zt(!1));
5935
- }, rr = (e) => {
5939
+ }, [Kt]);
5940
+ let ir = () => {
5941
+ En && (Tt(Wt.rows), Dt(Wt.total), kt(Wt.tabs), jt(Wt.fields), Nt(Wt.tabField), Ft(Wt.actions ?? []), Lt(Wt.actionRules ?? []), Ut(null), zt(!1));
5942
+ }, ar = (e) => {
5936
5943
  let t = e.target.value, n = t.trim().length < 3, r = Ye.some((e) => e.field);
5937
- n && (Ke(""), r || nr()), We(t), un();
5938
- }, ir = () => {
5944
+ n && (Ke(""), r || ir()), We(t), fn();
5945
+ }, or = () => {
5939
5946
  let e = Ue.trim();
5940
- e.length >= 3 && (Ke(e), un());
5941
- }, ar = () => {
5942
- nr(), Xe([]), Ct([], []), un();
5947
+ e.length >= 3 && (Ke(e), fn());
5948
+ }, sr = () => {
5949
+ ir(), Xe([]), Ct([], []), fn();
5943
5950
  };
5944
5951
  F(() => {
5945
- Qt === "card" && (pt([]), Ct([], []));
5952
+ en === "card" && (pt([]), Ct([], []));
5946
5953
  }, [
5947
5954
  it.current,
5948
5955
  it.pageSize,
5949
5956
  Ve,
5950
- Qt
5957
+ en
5951
5958
  ]);
5952
- let or = (e) => {
5959
+ let cr = (e) => {
5953
5960
  pt((t) => {
5954
- let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e], r = In.filter((e, t) => n.includes(String(Tm(e, t, d))));
5961
+ let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e], r = Rn.filter((e, t) => n.includes(String(Tm(e, t, d))));
5955
5962
  return Ct(n, r), n;
5956
5963
  });
5957
- }, sr = /* @__PURE__ */ X("div", {
5964
+ }, lr = /* @__PURE__ */ X("div", {
5958
5965
  className: "column-visibility-menu",
5959
5966
  onClick: (e) => e.stopPropagation(),
5960
5967
  children: [/* @__PURE__ */ Y(Pi, {
5961
- checked: Zn,
5962
- indeterminate: Qn,
5968
+ checked: $n,
5969
+ indeterminate: er,
5963
5970
  onChange: (e) => {
5964
- lt(e.target.checked ? On.map((e) => e.key) : On.slice(0, xe).map((e) => e.key));
5971
+ lt(e.target.checked ? An.map((e) => e.key) : An.slice(0, xe).map((e) => e.key));
5965
5972
  },
5966
5973
  children: "Select All"
5967
5974
  }), /* @__PURE__ */ Y("div", {
5968
5975
  className: "column-visibility-menu__list",
5969
- children: On.map((e) => /* @__PURE__ */ Y(Pi, {
5970
- checked: jn.includes(e.key),
5971
- disabled: jn.includes(e.key) && jn.length <= Mn,
5972
- onChange: (t) => $n(e.key, t.target.checked),
5976
+ children: An.map((e) => /* @__PURE__ */ Y(Pi, {
5977
+ checked: Nn.includes(e.key),
5978
+ disabled: Nn.includes(e.key) && Nn.length <= Pn,
5979
+ onChange: (t) => tr(e.key, t.target.checked),
5973
5980
  children: e.label
5974
5981
  }, e.key))
5975
5982
  })]
@@ -5988,34 +5995,34 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5988
5995
  justify: "space-between",
5989
5996
  children: [/* @__PURE__ */ Y(Gs, {
5990
5997
  activeKey: Ve,
5991
- tabs: Wn,
5992
- onChange: Jn
5998
+ tabs: Kn,
5999
+ onChange: Xn
5993
6000
  }), /* @__PURE__ */ X(Vi, {
5994
6001
  align: "center",
5995
6002
  gap: 8,
5996
6003
  children: [
5997
6004
  re,
5998
- Vn && /* @__PURE__ */ Y(V, {
6005
+ Un && /* @__PURE__ */ Y(V, {
5999
6006
  prefix: /* @__PURE__ */ Y(Ho, { className: "job-search-icon" }),
6000
6007
  placeholder: ie,
6001
6008
  value: Ue,
6002
- onChange: rr,
6003
- onPressEnter: ir,
6009
+ onChange: ar,
6010
+ onPressEnter: or,
6004
6011
  allowClear: !0,
6005
6012
  className: "job-search-input"
6006
6013
  }),
6007
- !Kt && Ne && Se && /* @__PURE__ */ Y(K, {
6014
+ !Jt && Ne && Se && /* @__PURE__ */ Y(K, {
6008
6015
  title: "Add",
6009
6016
  children: /* @__PURE__ */ Y(R, {
6010
6017
  "aria-label": "Add",
6011
6018
  className: "job-toolbar-icon-button",
6012
6019
  icon: /* @__PURE__ */ Y(jo, {}),
6013
6020
  onClick: () => {
6014
- sn && we(sn);
6021
+ ln && we(ln);
6015
6022
  }
6016
6023
  })
6017
6024
  }),
6018
- Bn && /* @__PURE__ */ Y(K, {
6025
+ Hn && /* @__PURE__ */ Y(K, {
6019
6026
  title: "Filter",
6020
6027
  children: /* @__PURE__ */ Y(ji, {
6021
6028
  count: Ye.filter((e) => e.field && Xm(e)).length,
@@ -6029,13 +6036,13 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6029
6036
  })
6030
6037
  })
6031
6038
  }),
6032
- oe && Bn && /* @__PURE__ */ X(Vi, {
6039
+ oe && Hn && /* @__PURE__ */ X(Vi, {
6033
6040
  align: "center",
6034
6041
  gap: 6,
6035
6042
  children: [/* @__PURE__ */ Y(K, {
6036
6043
  title: "List View",
6037
6044
  children: /* @__PURE__ */ Y(R, {
6038
- className: `job-toolbar-icon-button param-view-toggle-btn${Qt === "list" ? " param-view-toggle-btn--active" : ""}`,
6045
+ className: `job-toolbar-icon-button param-view-toggle-btn${en === "list" ? " param-view-toggle-btn--active" : ""}`,
6039
6046
  icon: /* @__PURE__ */ Y(as, {}),
6040
6047
  onClick: () => {
6041
6048
  ce?.("list"), pt([]), Ct([], []);
@@ -6044,7 +6051,7 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6044
6051
  }), /* @__PURE__ */ Y(K, {
6045
6052
  title: "Card View",
6046
6053
  children: /* @__PURE__ */ Y(R, {
6047
- className: `job-toolbar-icon-button param-view-toggle-btn${Qt === "card" ? " param-view-toggle-btn--active" : ""}`,
6054
+ className: `job-toolbar-icon-button param-view-toggle-btn${en === "card" ? " param-view-toggle-btn--active" : ""}`,
6048
6055
  icon: /* @__PURE__ */ Y(ha, {}),
6049
6056
  onClick: () => {
6050
6057
  ce?.("card"), pt([]), Ct([], []);
@@ -6055,20 +6062,20 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6055
6062
  f && /* @__PURE__ */ Y(R, {
6056
6063
  className: "job-summary-button",
6057
6064
  type: "primary",
6058
- onClick: er,
6065
+ onClick: nr,
6059
6066
  children: m
6060
6067
  }),
6061
6068
  g && x && /* @__PURE__ */ Y(R, {
6062
6069
  className: "job-summary-button",
6063
6070
  type: "primary",
6064
- onClick: tr,
6071
+ onClick: rr,
6065
6072
  children: y
6066
6073
  })
6067
6074
  ]
6068
6075
  })]
6069
6076
  })
6070
6077
  }),
6071
- Bn && /* @__PURE__ */ Y(J, { children: /* @__PURE__ */ Y(Ni, {
6078
+ Hn && /* @__PURE__ */ Y(J, { children: /* @__PURE__ */ Y(Ni, {
6072
6079
  className: "job-toolbar-card",
6073
6080
  children: /* @__PURE__ */ X(Vi, {
6074
6081
  className: "p-flex",
@@ -6078,15 +6085,15 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6078
6085
  align: "center",
6079
6086
  gap: 3,
6080
6087
  children: [
6081
- Qt === "card" && /* @__PURE__ */ Y(Pi, {
6082
- checked: In.length > 0 && ft.length >= In.length,
6083
- indeterminate: ft.length > 0 && ft.length < In.length,
6088
+ en === "card" && /* @__PURE__ */ Y(Pi, {
6089
+ checked: Rn.length > 0 && ft.length >= Rn.length,
6090
+ indeterminate: ft.length > 0 && ft.length < Rn.length,
6084
6091
  className: "param-card-view__select-all",
6085
6092
  onChange: () => {
6086
6093
  if (ft.length > 0) pt([]), Ct([], []);
6087
6094
  else {
6088
- let e = In.map((e, t) => String(Tm(e, t, d)));
6089
- pt(e), Ct(e, [...In]);
6095
+ let e = Rn.map((e, t) => String(Tm(e, t, d)));
6096
+ pt(e), Ct(e, [...Rn]);
6090
6097
  }
6091
6098
  },
6092
6099
  children: "Select All"
@@ -6095,7 +6102,7 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6095
6102
  open: ut,
6096
6103
  onOpenChange: dt,
6097
6104
  trigger: ["click"],
6098
- dropdownRender: () => sr,
6105
+ dropdownRender: () => lr,
6099
6106
  placement: "bottomLeft",
6100
6107
  overlayClassName: "column-visibility-dropdown",
6101
6108
  children: /* @__PURE__ */ Y(R, {
@@ -6111,10 +6118,10 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6111
6118
  children: /* @__PURE__ */ Y(Ua, { className: "job-actions-caret" })
6112
6119
  })
6113
6120
  }),
6114
- an.length > 0 && Ze.length > 0 && /* @__PURE__ */ Y(zi, {
6121
+ sn.length > 0 && Ze.length > 0 && /* @__PURE__ */ Y(zi, {
6115
6122
  menu: {
6116
- items: an.map((e) => Am(e, jm(e, $e, Ve))),
6117
- onClick: Xn
6123
+ items: sn.map((e) => Am(e, jm(e, $e, Ve))),
6124
+ onClick: Qn
6118
6125
  },
6119
6126
  trigger: ["click"],
6120
6127
  children: /* @__PURE__ */ X(R, {
@@ -6141,51 +6148,51 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6141
6148
  ]
6142
6149
  })
6143
6150
  ]
6144
- }), Rn && /* @__PURE__ */ X(cp, {
6151
+ }), Bn && /* @__PURE__ */ X(cp, {
6145
6152
  className: "job-search-results-count",
6146
6153
  children: [
6147
6154
  "Search Results (",
6148
- zn,
6155
+ Vn,
6149
6156
  ")"
6150
6157
  ]
6151
6158
  })]
6152
6159
  })
6153
6160
  }) }),
6154
- Sn && /* @__PURE__ */ Y($m, {
6161
+ wn && /* @__PURE__ */ Y($m, {
6155
6162
  filters: Ye,
6156
6163
  onRemove: (e) => {
6157
6164
  let t = Ye.filter((t, n) => n !== e);
6158
- Xe(t), un();
6165
+ Xe(t), fn();
6159
6166
  },
6160
- onClearAll: ar
6167
+ onClearAll: sr
6161
6168
  }),
6162
6169
  /* @__PURE__ */ Y("div", {
6163
6170
  ref: mt,
6164
6171
  className: "job-table-measure",
6165
6172
  children: /* @__PURE__ */ Y(na, {
6166
- spinning: Kt ? A : fn || Rt,
6167
- children: Qt === "card" ? In.length === 0 ? /* @__PURE__ */ Y(Bi, {
6173
+ spinning: Jt ? ee : mn || Rt,
6174
+ children: en === "card" ? Rn.length === 0 ? /* @__PURE__ */ Y(Bi, {
6168
6175
  image: Bi.PRESENTED_IMAGE_SIMPLE,
6169
- description: Hn,
6176
+ description: Wn,
6170
6177
  className: "param-card-view__empty",
6171
- children: !Kt && Ne && Se && sn && !Bt && /* @__PURE__ */ Y(R, {
6178
+ children: !Jt && Ne && Se && ln && !Ht && /* @__PURE__ */ Y(R, {
6172
6179
  type: "primary",
6173
6180
  icon: /* @__PURE__ */ Y(jo, {}),
6174
- onClick: () => we(sn),
6181
+ onClick: () => we(ln),
6175
6182
  children: "Add New"
6176
6183
  })
6177
6184
  }) : /* @__PURE__ */ Y("div", {
6178
6185
  className: "param-card-view__grid",
6179
- children: In.map((e, t) => {
6186
+ children: Rn.map((e, t) => {
6180
6187
  let n = String(Tm(e, t, d));
6181
6188
  return /* @__PURE__ */ Y(Ym, {
6182
6189
  record: e,
6183
- fields: Pn,
6190
+ fields: In,
6184
6191
  selected: pe === "checkbox" ? ft.includes(n) : xt(e, t),
6185
- isControlled: Kt,
6186
- onPreview: () => Gn(e),
6187
- onSelect: () => or(n),
6188
- onPopupAction: Kn,
6192
+ isControlled: Jt,
6193
+ onPreview: () => qn(e),
6194
+ onSelect: () => cr(n),
6195
+ onPopupAction: Jn,
6189
6196
  onRecordClick: de ? () => St(e, t) : void 0,
6190
6197
  selectionMode: pe,
6191
6198
  permissions: {
@@ -6196,7 +6203,7 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6196
6203
  }, n);
6197
6204
  })
6198
6205
  }) : /* @__PURE__ */ Y(aa, {
6199
- rowSelection: Bn && pe === "checkbox" ? {
6206
+ rowSelection: Hn && pe === "checkbox" ? {
6200
6207
  type: "checkbox",
6201
6208
  fixed: !0,
6202
6209
  columnWidth: 48,
@@ -6205,32 +6212,32 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6205
6212
  Ct(e, t);
6206
6213
  },
6207
6214
  columnTitle: (() => {
6208
- let e = In.length, t = e > 0 && Ze.length >= e, n = Ze.length > 0 && !t;
6215
+ let e = Rn.length, t = e > 0 && Ze.length >= e, n = Ze.length > 0 && !t;
6209
6216
  return /* @__PURE__ */ Y(Pi, {
6210
6217
  checked: t,
6211
6218
  indeterminate: n,
6212
6219
  onChange: () => {
6213
6220
  if (n || t) Ct([], []);
6214
6221
  else {
6215
- let e = In.map((e, t) => Tm(e, t, d));
6216
- Ct(e, [...In]);
6222
+ let e = Rn.map((e, t) => Tm(e, t, d));
6223
+ Ct(e, [...Rn]);
6217
6224
  }
6218
6225
  }
6219
6226
  });
6220
6227
  })()
6221
6228
  } : void 0,
6222
- columns: qn,
6223
- dataSource: In,
6229
+ columns: Yn,
6230
+ dataSource: Rn,
6224
6231
  size: "middle",
6225
6232
  tableLayout: "fixed",
6226
6233
  scroll: {
6227
- x: Nn || Kt ? "max-content" : void 0,
6234
+ x: Fn || Jt ? "max-content" : void 0,
6228
6235
  y: "calc(100vh - 300px)"
6229
6236
  },
6230
6237
  pagination: !1,
6231
6238
  locale: { emptyText: /* @__PURE__ */ Y(Bi, {
6232
6239
  image: Bi.PRESENTED_IMAGE_SIMPLE,
6233
- description: Hn
6240
+ description: Wn
6234
6241
  }) },
6235
6242
  className: `${w} ${me ? "list-view-table--compact" : ""}`.trim(),
6236
6243
  onRow: de ? (e, t) => ({
@@ -6244,26 +6251,26 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6244
6251
  })
6245
6252
  })
6246
6253
  }),
6247
- Bn ? /* @__PURE__ */ Y(Hc, {
6254
+ Hn ? /* @__PURE__ */ Y(Hc, {
6248
6255
  current: it.current,
6249
6256
  pageSize: it.pageSize,
6250
- total: Ln,
6257
+ total: zn,
6251
6258
  onChange: (e, t) => {
6252
- if (Kt && typeof te == "function") {
6253
- te(e, t ?? it.pageSize);
6259
+ if (Jt && typeof M == "function") {
6260
+ M(e, t ?? it.pageSize);
6254
6261
  return;
6255
6262
  }
6256
- ln(e);
6263
+ dn(e);
6257
6264
  },
6258
6265
  onPageSizeChange: (e) => {
6259
- if (Kt && typeof N == "function") {
6266
+ if (Jt && typeof N == "function") {
6260
6267
  N(e);
6261
6268
  return;
6262
6269
  }
6263
6270
  at({
6264
6271
  current: 1,
6265
6272
  pageSize: e
6266
- }), cn(1, { replace: !0 });
6273
+ }), un(1, { replace: !0 });
6267
6274
  }
6268
6275
  }) : void 0,
6269
6276
  /* @__PURE__ */ Y(ap, {
@@ -6272,17 +6279,17 @@ function eh({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
6272
6279
  filters: Ye,
6273
6280
  onClose: () => Je(!1),
6274
6281
  onApply: ({ filters: e }) => {
6275
- Xe(e), un();
6282
+ Xe(e), fn();
6276
6283
  },
6277
- onReset: ar
6284
+ onReset: sr
6278
6285
  }),
6279
6286
  /* @__PURE__ */ Y(qf, {
6280
6287
  moduleName: Ee,
6281
- open: Wt,
6288
+ open: Kt,
6282
6289
  rows: wt,
6283
- tabs: Wn,
6284
- total: Ln,
6285
- onClose: () => Gt(!1)
6290
+ tabs: Kn,
6291
+ total: zn,
6292
+ onClose: () => qt(!1)
6286
6293
  })
6287
6294
  ]
6288
6295
  });
@@ -7013,11 +7020,11 @@ function yg(e, t, n = {}, r = "") {
7013
7020
  return a.schemaVersion = 1, i.append("json", JSON.stringify(a)), i;
7014
7021
  }
7015
7022
  function bg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, onChange: o, scopeValues: s = {}, onAiUpload: c, onDuplicateBlur: l, onRegionBlocked: u, onRowOrderChange: d, formDisabled: f, rowFieldKeys: p }) {
7016
- let m = e.type ?? "text", h = !Mh(e, r), [g, _] = L(null), [y, b] = L(!1), [x, S] = L(""), [C, w] = L(""), [T, D] = L(""), [O, k] = L(0), [A, j] = L({
7023
+ let m = e.type ?? "text", h = !Mh(e, r), [g, _] = L(null), [y, b] = L(!1), [x, S] = L(""), [C, w] = L(""), [T, D] = L(""), [O, k] = L(0), [ee, A] = L({
7017
7024
  open: !1,
7018
7025
  docs: [],
7019
7026
  index: 0
7020
- }), [M, ee] = L(null), te = Di([]), N = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", re = e.lookupFilterValueFrom ? Ph(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], P = e.lookupFilterValueFrom && N ? [...n.slice(0, 2), ...Ph(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], ie = B.useWatch(re, t), ae = B.useWatch(P, t), oe = $h(ae) ? ie : ae, se = e.disabledByField ? Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.disabledByField] : [e.disabledByField] : ["__noop_disabled_watch__"], le = B.useWatch(se, t), ue = e.disabledIf?.field ? Ph(e.disabledIf.field) : ["__noop_disabled_if__"], de = e.disabledIf?.field && N ? [...n.slice(0, 2), ...Ph(e.disabledIf.field)] : ["__noop_disabled_if_row__"], fe = B.useWatch(ue, t), pe = B.useWatch(de, t), me = e.disabledIf?.field ? Rn(e.disabledIf, $h(pe) ? fe : pe) : !1, he = e.optionsFromField || "", ge = he ? Ph(he) : ["__noop_options_from__"], _e = he && N && (!p || p.has(he)) ? [...n.slice(0, 2), ...Ph(he)] : ["__noop_options_from_row__"], ve = B.useWatch(ge, t), ye = B.useWatch(_e, t), be = $h(ye) ? ve : ye, xe = jh(e.prefillWhenExclusive) && e.prefillWhen?.length ? e.prefillWhen : null, Se = B.useWatch((e) => xe ? JSON.stringify(jt(xe).map((t) => {
7027
+ }), [j, te] = L(null), M = Di([]), N = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", re = e.lookupFilterValueFrom ? Ph(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], P = e.lookupFilterValueFrom && N ? [...n.slice(0, 2), ...Ph(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], ie = B.useWatch(re, t), ae = B.useWatch(P, t), oe = $h(ae) ? ie : ae, se = e.disabledByField ? Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.disabledByField] : [e.disabledByField] : ["__noop_disabled_watch__"], le = B.useWatch(se, t), ue = e.disabledIf?.field ? Ph(e.disabledIf.field) : ["__noop_disabled_if__"], de = e.disabledIf?.field && N ? [...n.slice(0, 2), ...Ph(e.disabledIf.field)] : ["__noop_disabled_if_row__"], fe = B.useWatch(ue, t), pe = B.useWatch(de, t), me = e.disabledIf?.field ? Rn(e.disabledIf, $h(pe) ? fe : pe) : !1, he = e.optionsFromField || "", ge = he ? Ph(he) : ["__noop_options_from__"], _e = he && N && (!p || p.has(he)) ? [...n.slice(0, 2), ...Ph(he)] : ["__noop_options_from_row__"], ve = B.useWatch(ge, t), ye = B.useWatch(_e, t), be = $h(ye) ? ve : ye, xe = jh(e.prefillWhenExclusive) && e.prefillWhen?.length ? e.prefillWhen : null, Se = B.useWatch((e) => xe ? JSON.stringify(jt(xe).map((t) => {
7021
7028
  let r = (t) => t.reduce((e, t) => e == null ? e : e[t], e), i = N && (!p || p.has(t)) ? r([...n.slice(0, 2), ...Ph(t)]) : void 0;
7022
7029
  return ($h(i) ? r(Ph(t)) : i) ?? null;
7023
7030
  })) : "", {
@@ -7141,7 +7148,7 @@ function bg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7141
7148
  })) : [];
7142
7149
  }
7143
7150
  }
7144
- n || (te.current = Array.isArray(i) ? i : [], _(Nh(te.current)));
7151
+ n || (M.current = Array.isArray(i) ? i : [], _(Nh(M.current)));
7145
7152
  } catch (t) {
7146
7153
  console.error(`[AddFormV1] Failed to fetch options for "${e.field}":`, t), n || _([]);
7147
7154
  } finally {
@@ -7231,14 +7238,14 @@ function bg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7231
7238
  let n = e.formatter ? mg(t.target.value, e.formatter) : t.target.value;
7232
7239
  if (lt) {
7233
7240
  let { cleaned: e, error: t } = ce(n, lt, "change");
7234
- ee(t), n = e;
7241
+ te(t), n = e;
7235
7242
  }
7236
7243
  st(n);
7237
7244
  },
7238
7245
  onBlur: (t) => {
7239
7246
  if (lt) {
7240
7247
  let { cleaned: e, error: n } = ce(t.target.value, lt, "blur");
7241
- ee(n), e !== t.target.value && st(e);
7248
+ te(n), e !== t.target.value && st(e);
7242
7249
  }
7243
7250
  e.checkDuplicateOnBlur && String(t.target.value ?? "").trim() && l?.(e);
7244
7251
  },
@@ -7250,7 +7257,7 @@ function bg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7250
7257
  if (!t.test(n)) {
7251
7258
  e.preventDefault();
7252
7259
  let t = `${lt.title} — invalid character.`;
7253
- ee(t), setTimeout(() => ee((e) => e === t ? null : e), 1800);
7260
+ te(t), setTimeout(() => te((e) => e === t ? null : e), 1800);
7254
7261
  }
7255
7262
  },
7256
7263
  maxLength: lt.maxLength ?? ot.maxLength
@@ -7304,8 +7311,8 @@ function bg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7304
7311
  let r = a ? [...n.slice(0, 2), ...Ph(e)] : Ph(e);
7305
7312
  t.setFieldValue(r, null);
7306
7313
  });
7307
- else if (te.current.length > 0) {
7308
- let i = e.valueField ?? "_id", o = te.current.find((e) => Kh(e, i) === r || e._id === r || e.id === r || e.value === r);
7314
+ else if (M.current.length > 0) {
7315
+ let i = e.valueField ?? "_id", o = M.current.find((e) => Kh(e, i) === r || e._id === r || e.id === r || e.value === r);
7309
7316
  o && e.autofillFrom.forEach(({ optionKey: e, targetField: r }) => {
7310
7317
  let i = Kh(o, e) ?? o.extraData?.[e] ?? null, s = a ? [...n.slice(0, 2), ...Ph(r)] : Ph(r);
7311
7318
  t.setFieldValue(s, i);
@@ -7346,21 +7353,21 @@ function bg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7346
7353
  onChange: (e) => {
7347
7354
  if (lt) {
7348
7355
  let { error: t } = ce(e, lt, "change");
7349
- ee(t);
7356
+ te(t);
7350
7357
  }
7351
7358
  st(e);
7352
7359
  }
7353
- }), M && /* @__PURE__ */ Y("div", {
7360
+ }), j && /* @__PURE__ */ Y("div", {
7354
7361
  className: "v1-input-validator-hint",
7355
- children: M
7362
+ children: j
7356
7363
  })] });
7357
7364
  if (m === "textarea") return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(Dh, {
7358
7365
  ...ut,
7359
7366
  rows: e.rows ?? 3,
7360
7367
  className: "v1-scroll-textarea"
7361
- }), M && /* @__PURE__ */ Y("div", {
7368
+ }), j && /* @__PURE__ */ Y("div", {
7362
7369
  className: "v1-input-validator-hint",
7363
- children: M
7370
+ children: j
7364
7371
  })] });
7365
7372
  if (m === "date") return /* @__PURE__ */ Y(Ii, {
7366
7373
  disabled: We,
@@ -7406,7 +7413,7 @@ function bg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7406
7413
  name: e.name ?? "file"
7407
7414
  };
7408
7415
  }).filter((e) => e.url);
7409
- j({
7416
+ A({
7410
7417
  open: !0,
7411
7418
  docs: n,
7412
7419
  index: t ?? 0
@@ -7470,13 +7477,13 @@ function bg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7470
7477
  })
7471
7478
  ]
7472
7479
  }, e.uid ?? t)), E = /* @__PURE__ */ Y(Qr, {
7473
- documents: A.docs,
7474
- open: A.open,
7475
- onClose: () => j((e) => ({
7480
+ documents: ee.docs,
7481
+ open: ee.open,
7482
+ onClose: () => A((e) => ({
7476
7483
  ...e,
7477
7484
  open: !1
7478
7485
  })),
7479
- initialIndex: A.index
7486
+ initialIndex: ee.index
7480
7487
  });
7481
7488
  if (_) {
7482
7489
  let t = d.length > 0 ? `Upload more ${e.label ?? "files"}` : e.buttonLabel ?? `Upload ${e.label ?? "File"}`;
@@ -7568,9 +7575,9 @@ function bg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7568
7575
  type: m === "number" ? "number" : m,
7569
7576
  ...m === "number" && jh(e.decimal) ? { step: "any" } : {},
7570
7577
  ...e.suffix ? { suffix: e.suffix } : {}
7571
- }), M && /* @__PURE__ */ Y("div", {
7578
+ }), j && /* @__PURE__ */ Y("div", {
7572
7579
  className: "v1-input-validator-hint",
7573
- children: M
7580
+ children: j
7574
7581
  })] });
7575
7582
  }
7576
7583
  function xg({ icon: e, title: t }) {
@@ -7664,7 +7671,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7664
7671
  F(() => (n && p(n), () => {
7665
7672
  n && b();
7666
7673
  }), [n]);
7667
- let D = l === "search", O = u ?? (D ? "Search" : "Create"), k = xs(), A = bs(), ee = Di(null), te = Di(null), N = Ss(), [ne] = Cs(), [P] = B.useForm();
7674
+ let D = l === "search", O = u ?? (D ? "Search" : "Create"), k = xs(), ee = bs(), te = Di(null), M = Di(null), N = Ss(), [ne] = Cs(), [P] = B.useForm();
7668
7675
  Ei(E, () => ({
7669
7676
  submit: () => P.submit(),
7670
7677
  validate: () => P.validateFields(),
@@ -7803,7 +7810,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7803
7810
  }), Nt = Ci((e) => {
7804
7811
  let t = re().region, n = pt.find((t) => (t.fields ?? []).some((t) => t.field === e.field));
7805
7812
  if (!n) return !1;
7806
- let r = M(n, t), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
7813
+ let r = j(n, t), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
7807
7814
  if (e.field !== i || Zr(r)) return !1;
7808
7815
  let a = yt(r);
7809
7816
  return Oe({
@@ -7822,7 +7829,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7822
7829
  }, [pt]), Ft = Ci((e, t) => {
7823
7830
  let n = pt.find((e) => e.name === t);
7824
7831
  if (!n) return;
7825
- let r = M(n, re().region), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
7832
+ let r = j(n, re().region), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
7826
7833
  if (e.field !== i) return;
7827
7834
  let a = ht(r);
7828
7835
  return a ? [a] : void 0;
@@ -7830,7 +7837,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
7830
7837
  if (!Array.isArray(t) || t.length < 3 || typeof t[1] != "number") return;
7831
7838
  let n = t[0], r = t[1], i = pt.find((e) => e.name === n);
7832
7839
  if (!i) return;
7833
- let a = M(i, re().region);
7840
+ let a = j(i, re().region);
7834
7841
  if (!a.orderBy) return;
7835
7842
  await Promise.resolve();
7836
7843
  let o = P.getFieldValue(n);
@@ -8073,15 +8080,15 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8073
8080
  pt,
8074
8081
  P
8075
8082
  ]), F(() => {
8076
- let e = A?.state?.relevantSkillsToken, t = A?.state?.relevantSkillsInputs, n = t?.jobId ?? Zt?.linkage?.jobId ?? "", r = t?.applicantId ?? t?.candidateId ?? Zt?.linkage?.applicantId ?? "";
8083
+ let e = ee?.state?.relevantSkillsToken, t = ee?.state?.relevantSkillsInputs, n = t?.jobId ?? Zt?.linkage?.jobId ?? "", r = t?.applicantId ?? t?.candidateId ?? Zt?.linkage?.applicantId ?? "";
8077
8084
  if (!(e || t) || ot || pt.length === 0) return;
8078
8085
  let i = pt.filter((e) => jh(e.addRow) && e.skillMatchField);
8079
8086
  if (i.length === 0) return;
8080
8087
  let a = e || `inputs:${n}:${r}`, o;
8081
- if (ee.current === a && te.current ? o = te.current : (o = e ? ih(e) : void 0, (!o || typeof o.then != "function") && n && r && (o = ah({
8088
+ if (te.current === a && M.current ? o = M.current : (o = e ? ih(e) : void 0, (!o || typeof o.then != "function") && n && r && (o = ah({
8082
8089
  jobId: n,
8083
8090
  applicantId: r
8084
- }).catch(() => [])), ee.current = a, te.current = o), !o || typeof o.then != "function") return;
8091
+ }).catch(() => [])), te.current = a, M.current = o), !o || typeof o.then != "function") return;
8085
8092
  let s = !1;
8086
8093
  return o.then((e) => {
8087
8094
  if (s || !Array.isArray(e) || e.length === 0) return;
@@ -8097,8 +8104,8 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8097
8104
  s = !0;
8098
8105
  };
8099
8106
  }, [
8100
- A?.state?.relevantSkillsToken,
8101
- A?.state?.relevantSkillsInputs,
8107
+ ee?.state?.relevantSkillsToken,
8108
+ ee?.state?.relevantSkillsInputs,
8102
8109
  Zt?.linkage?.jobId,
8103
8110
  Zt?.linkage?.applicantId,
8104
8111
  ot,
@@ -8109,7 +8116,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8109
8116
  ...Wt && dt ? { clientId: dt } : {},
8110
8117
  ...Zt?.linkage ?? g ?? {}
8111
8118
  }, on = !Jt && !ot && (!Zt?.source || qe !== null && !Xe), sn = (e) => {
8112
- let t = e.prefillFrom || e.payloadKey || e.name, n = Qt[t], r = Math.max(0, Number(e.minRows ?? 0) || 0), i = j(e);
8119
+ let t = e.prefillFrom || e.payloadKey || e.name, n = Qt[t], r = Math.max(0, Number(e.minRows ?? 0) || 0), i = A(e);
8113
8120
  if (!n || n.length === 0) {
8114
8121
  let t = e.initialRows === void 0 ? r : Math.max(r, Math.max(0, Number(e.initialRows) || 0));
8115
8122
  return Array.from({ length: t }, () => ({ ...i }));
@@ -8300,7 +8307,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8300
8307
  }) }, P), !0);
8301
8308
  }, Sn = Ci(async (e) => {
8302
8309
  try {
8303
- let t = re().region, n = pt.map((e) => M(e, t)), r = $e(n, e);
8310
+ let t = re().region, n = pt.map((e) => j(e, t)), r = $e(n, e);
8304
8311
  return r.severity === "allow" ? !0 : r.severity === "block" ? (Oe({
8305
8312
  tone: "duplicate",
8306
8313
  title: "This qualification history is incomplete",
@@ -8494,7 +8501,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8494
8501
  n("bottom-right")
8495
8502
  ]
8496
8503
  });
8497
- })() : E, k = (e) => n === void 0 ? e : [n, e], A = t.verifyAction ? /* @__PURE__ */ X(J, { children: [t.verifyResultField && /* @__PURE__ */ Y(B.Item, {
8504
+ })() : E, k = (e) => n === void 0 ? e : [n, e], ee = t.verifyAction ? /* @__PURE__ */ X(J, { children: [t.verifyResultField && /* @__PURE__ */ Y(B.Item, {
8498
8505
  name: k(t.verifyResultField),
8499
8506
  hidden: !0,
8500
8507
  noStyle: !0,
@@ -8504,7 +8511,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8504
8511
  hidden: !0,
8505
8512
  noStyle: !0,
8506
8513
  children: /* @__PURE__ */ Y(V, {})
8507
- })] }) : null, j = t.verifyAction ? /* @__PURE__ */ X("div", {
8514
+ })] }) : null, A = t.verifyAction ? /* @__PURE__ */ X("div", {
8508
8515
  className: "v1-verify-field-row",
8509
8516
  children: [
8510
8517
  O,
@@ -8513,18 +8520,18 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8513
8520
  field: t,
8514
8521
  absoluteName: c
8515
8522
  }),
8516
- A
8523
+ ee
8517
8524
  ]
8518
- }) : O, M = m ? /* @__PURE__ */ X(J, { children: [j, /* @__PURE__ */ Y(B.Item, {
8525
+ }) : O, j = m ? /* @__PURE__ */ X(J, { children: [A, /* @__PURE__ */ Y(B.Item, {
8519
8526
  name: n === void 0 ? h[h.length - 1] : [n, h[h.length - 1]],
8520
8527
  valuePropName: "checked",
8521
8528
  hidden: !0,
8522
8529
  noStyle: !0,
8523
8530
  children: /* @__PURE__ */ Y(Pi, {})
8524
- })] }) : j, ee = i.inline ? {
8531
+ })] }) : A, te = i.inline ? {
8525
8532
  flex: `${Number(t.combineWidth) > 0 ? Number(t.combineWidth) : 1} 1 0`,
8526
8533
  maxWidth: "none"
8527
- } : void 0, te = t.autoFillFromApi ? /* @__PURE__ */ Y(Vh, {
8534
+ } : void 0, M = t.autoFillFromApi ? /* @__PURE__ */ Y(Vh, {
8528
8535
  form: P,
8529
8536
  config: t.autoFillFromApi,
8530
8537
  watchPath: c
@@ -8537,7 +8544,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8537
8544
  }, `${t.field}-prefillWhen`) : null;
8538
8545
  if (t.show === 0) return /* @__PURE__ */ X(bi, { children: [
8539
8546
  N,
8540
- te,
8547
+ M,
8541
8548
  /* @__PURE__ */ Y(B.Item, {
8542
8549
  name: s,
8543
8550
  hidden: !0,
@@ -8548,27 +8555,27 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8548
8555
  let ne = !i.inline && sr(t).length > 0, re = (e) => ne ? jr(t, b, (t) => e(Er(t, p(t.field)))) : b;
8549
8556
  return On(t.showIf) || ne ? /* @__PURE__ */ X(bi, { children: [
8550
8557
  N,
8551
- te,
8558
+ M,
8552
8559
  /* @__PURE__ */ Y(B.Item, {
8553
8560
  shouldUpdate: !0,
8554
8561
  noStyle: !0,
8555
8562
  children: ({ getFieldValue: e }) => !On(t.showIf) || Dn(t.showIf, e, p) ? /* @__PURE__ */ Y(z, {
8556
8563
  xs: 24,
8557
8564
  md: re(e),
8558
- style: ee,
8565
+ style: te,
8559
8566
  className: i.inline ? "v1-combine-cell" : void 0,
8560
- children: M
8567
+ children: j
8561
8568
  }) : null
8562
8569
  })
8563
8570
  ] }, t.field) : /* @__PURE__ */ X(bi, { children: [
8564
8571
  N,
8565
- te,
8572
+ M,
8566
8573
  /* @__PURE__ */ Y(z, {
8567
8574
  xs: 24,
8568
8575
  md: b,
8569
- style: ee,
8576
+ style: te,
8570
8577
  className: i.inline ? "v1-combine-cell" : void 0,
8571
- children: M
8578
+ children: j
8572
8579
  })
8573
8580
  ] }, t.field);
8574
8581
  }, In = (t) => {
@@ -8777,7 +8784,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8777
8784
  n,
8778
8785
  t,
8779
8786
  ...T
8780
- ] : T.length > 1 ? T : w.field : null, D = d.some((e) => sg(e)), O = [12, 24].includes(C) ? C : d.length >= 3 ? 24 : 12, k = (e) => p && (!s || s.has(e)) ? p : null, A = d.some((e) => On(e.showIf)), j = (e) => d.some((t) => !On(t.showIf) || Dn(t.showIf, e, k)), M = /* @__PURE__ */ Y(z, {
8787
+ ] : T.length > 1 ? T : w.field : null, D = d.some((e) => sg(e)), O = [12, 24].includes(C) ? C : d.length >= 3 ? 24 : 12, k = (e) => p && (!s || s.has(e)) ? p : null, ee = d.some((e) => On(e.showIf)), A = (e) => d.some((t) => !On(t.showIf) || Dn(t.showIf, e, k)), j = /* @__PURE__ */ Y(z, {
8781
8788
  xs: 24,
8782
8789
  md: O,
8783
8790
  children: /* @__PURE__ */ Y(B.Item, {
@@ -8820,11 +8827,11 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8820
8827
  })
8821
8828
  })
8822
8829
  }, u);
8823
- o.push(A ? /* @__PURE__ */ Y(B.Item, {
8830
+ o.push(ee ? /* @__PURE__ */ Y(B.Item, {
8824
8831
  shouldUpdate: !0,
8825
8832
  noStyle: !0,
8826
- children: ({ getFieldValue: e }) => j(e) ? M : null
8827
- }, u) : M);
8833
+ children: ({ getFieldValue: e }) => A(e) ? j : null
8834
+ }, u) : j);
8828
8835
  }), o;
8829
8836
  }, Vn = I(() => {
8830
8837
  if (Se.fields?.length) return Se.fields;
@@ -8896,7 +8903,7 @@ var Dg = Si(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8896
8903
  let t = e.name ?? e.id ?? "", n = Pt(St, t), r = !!n && n.leaderName !== t, i = n ? pt.find((e) => e.name === n.leaderName) ?? e : e, a = Math.max(0, Number(i.minRows ?? 0) || 0), o = Math.max(0, Number(i.maxRows ?? 0) || 0), s = n ? n.memberNames : [t], c = () => {
8897
8904
  s.forEach((t) => {
8898
8905
  let n = pt.find((e) => e.name === t) ?? e;
8899
- Ct.current[t]?.add(j(n));
8906
+ Ct.current[t]?.add(A(n));
8900
8907
  });
8901
8908
  }, l = (e) => {
8902
8909
  s.forEach((t) => Ct.current[t]?.remove(e));
@@ -9228,7 +9235,7 @@ function jg(e) {
9228
9235
  }
9229
9236
  function Mg(e) {
9230
9237
  let t = re();
9231
- return ee(e, jg(t), t);
9238
+ return te(e, jg(t), t);
9232
9239
  }
9233
9240
  function Ng(e) {
9234
9241
  return Mg(e);
@@ -9848,9 +9855,9 @@ function a_() {
9848
9855
  });
9849
9856
  }
9850
9857
  function o_({ 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 = Zg, maxSizeMB: u = 10, onDownloadTemplate: d, onUpload: f, renderResult: p, extraSidebar: m }) {
9851
- let h = Di(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), A = I(() => l.map((e) => e.toLowerCase()), [l]), j = I(() => r_(A), [A]), M = Ci(() => {
9858
+ let h = Di(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(() => r_(ee), [ee]), j = Ci(() => {
9852
9859
  C(null), T(null), D(null), _(!1), k((e) => e + 1);
9853
- }, []), ee = Ci(async () => {
9860
+ }, []), te = Ci(async () => {
9854
9861
  if (d) {
9855
9862
  y(!0);
9856
9863
  try {
@@ -9861,11 +9868,11 @@ function o_({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9861
9868
  y(!1);
9862
9869
  }
9863
9870
  }
9864
- }, [d]), te = Ci(async (e) => {
9871
+ }, [d]), M = Ci(async (e) => {
9865
9872
  if (!e || b) return;
9866
9873
  k((e) => e + 1);
9867
9874
  let t = i_(e, {
9868
- accept: A,
9875
+ accept: ee,
9869
9876
  maxSizeMB: u
9870
9877
  });
9871
9878
  if (t) {
@@ -9885,7 +9892,7 @@ function o_({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9885
9892
  x(!1);
9886
9893
  }
9887
9894
  }, [
9888
- A,
9895
+ ee,
9889
9896
  u,
9890
9897
  f,
9891
9898
  b
@@ -9965,7 +9972,7 @@ function o_({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9965
9972
  },
9966
9973
  onDragLeave: () => _(!1),
9967
9974
  onDrop: (e) => {
9968
- e.preventDefault(), _(!1), te(e.dataTransfer.files?.[0]);
9975
+ e.preventDefault(), _(!1), M(e.dataTransfer.files?.[0]);
9969
9976
  },
9970
9977
  children: [
9971
9978
  /* @__PURE__ */ Y(a_, {}),
@@ -9982,7 +9989,7 @@ function o_({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
9982
9989
  }),
9983
9990
  /* @__PURE__ */ X("div", {
9984
9991
  className: "bulk-upload-chips",
9985
- children: [A.map((e) => /* @__PURE__ */ Y(G, {
9992
+ children: [ee.map((e) => /* @__PURE__ */ Y(G, {
9986
9993
  className: "bulk-upload-chip bulk-upload-chip--ok",
9987
9994
  children: e
9988
9995
  }, e)), /* @__PURE__ */ Y(K, {
@@ -10007,8 +10014,8 @@ function o_({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
10007
10014
  ref: h,
10008
10015
  hidden: !0,
10009
10016
  type: "file",
10010
- accept: j,
10011
- onChange: (e) => te(e.target.files?.[0])
10017
+ accept: A,
10018
+ onChange: (e) => M(e.target.files?.[0])
10012
10019
  }, O),
10013
10020
  S ? /* @__PURE__ */ X("div", {
10014
10021
  className: `bulk-upload-file ${w ? "is-error" : ""}`,
@@ -10032,7 +10039,7 @@ function o_({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
10032
10039
  type: "text",
10033
10040
  size: "small",
10034
10041
  icon: Y(E ? Fo : Ba, {}),
10035
- onClick: M,
10042
+ onClick: j,
10036
10043
  children: E ? "Upload another" : "Remove"
10037
10044
  })
10038
10045
  ]
@@ -10076,7 +10083,7 @@ function o_({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
10076
10083
  block: !0,
10077
10084
  icon: /* @__PURE__ */ Y(Wa, {}),
10078
10085
  loading: v,
10079
- onClick: ee,
10086
+ onClick: te,
10080
10087
  className: "bulk-upload-template-btn",
10081
10088
  children: a
10082
10089
  })
@@ -10098,7 +10105,7 @@ function o_({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
10098
10105
  }),
10099
10106
  E && p ? /* @__PURE__ */ Y("div", {
10100
10107
  className: "bulk-upload-result",
10101
- children: p(E, { reset: M })
10108
+ children: p(E, { reset: j })
10102
10109
  }) : null
10103
10110
  ]
10104
10111
  })]
@@ -11034,9 +11041,9 @@ function Uv({ field: e, record: t }) {
11034
11041
  }
11035
11042
  case "date":
11036
11043
  case "datetime": {
11037
- if (y === "datetime" || c.withTime === !0) return _(m((c.dateFormat ? ee(n, c.dateFormat, l) : Wn(n, l)) || Lv(n, s, u)));
11044
+ if (y === "datetime" || c.withTime === !0) return _(m((c.dateFormat ? te(n, c.dateFormat, l) : Wn(n, l)) || Lv(n, s, u)));
11038
11045
  let e = c.dateFormat || l.dateFormat;
11039
- return _(m(ee(n, e, l) || Lv(n, s, u)));
11046
+ return _(m(te(n, e, l) || Lv(n, s, u)));
11040
11047
  }
11041
11048
  case "currency": return _(m(Hv(n, c)));
11042
11049
  case "budget": {
@@ -11348,7 +11355,7 @@ function iy({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11348
11355
  }
11349
11356
  for (let i of t ?? []) for (let t of i?.fields ?? []) if (String(t?.field ?? "").startsWith(r)) return $_(t, n) || O[e] || e;
11350
11357
  return O[e] || e;
11351
- }, A = (e, t) => {
11358
+ }, ee = (e, t) => {
11352
11359
  let { amount: n, currency: r, unit: a } = pv(e, t, i), o = e?.timestamp?.$date ?? e?.timestamp ?? e?.updatedAt?.$date ?? e?.updatedAt ?? e?.changedAt?.$date ?? e?.changedAt, s = e?.updatedBy ?? e?.changedBy, c = n == null || n === "" ? null : Number(n);
11353
11360
  return {
11354
11361
  amount: c != null && !Number.isNaN(c) ? `${hv(r)}${xv(c)}` : "—",
@@ -11356,7 +11363,7 @@ function iy({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11356
11363
  when: o && ps(o).isValid() ? Wn(o) : "",
11357
11364
  by: s == null ? "" : x[String(s)] || C[String(s)] || ""
11358
11365
  };
11359
- }, j = I(() => {
11366
+ }, A = I(() => {
11360
11367
  if (!y) return [];
11361
11368
  let e = X_(i), t = [];
11362
11369
  return D.forEach((n) => {
@@ -11366,7 +11373,7 @@ function iy({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11366
11373
  a.length !== 0 && t.push({
11367
11374
  key: n,
11368
11375
  label: k(n, i, e),
11369
- entries: [...a].reverse().map((e) => A(e, n))
11376
+ entries: [...a].reverse().map((e) => ee(e, n))
11370
11377
  });
11371
11378
  }), t;
11372
11379
  }, [
@@ -11375,8 +11382,8 @@ function iy({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11375
11382
  D,
11376
11383
  x,
11377
11384
  C
11378
- ]), M = I(() => {
11379
- let e = new Set(j.map((e) => e.key));
11385
+ ]), j = I(() => {
11386
+ let e = new Set(A.map((e) => e.key));
11380
11387
  return e.size ? T.map((t) => {
11381
11388
  if (!Kv(t.appendHistory)) return t;
11382
11389
  let n = [t.historyField, ...t.historyFields || []].filter((t) => t && e.has(t));
@@ -11385,10 +11392,10 @@ function iy({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11385
11392
  fields: t.fields.filter((e) => !n.some((t) => String(e.field ?? "").startsWith(`${t}.`)))
11386
11393
  } : t;
11387
11394
  }).filter((e) => e.fields.length) : T;
11388
- }, [T, j]), ee = I(() => {
11389
- let e = new Set(j.map((e) => e.key)), t = i.find((t) => Kv(t.appendHistory) && [t.historyField, ...t.historyFields || []].some((t) => t && e.has(t)));
11395
+ }, [T, A]), te = I(() => {
11396
+ let e = new Set(A.map((e) => e.key)), t = i.find((t) => Kv(t.appendHistory) && [t.historyField, ...t.historyFields || []].some((t) => t && e.has(t)));
11390
11397
  return t?.label ?? t?.name ?? "Rate Details";
11391
- }, [i, j]), te = e === "job", N = I(() => te ? Jv(i) : null, [te, i]), ne = () => {
11398
+ }, [i, A]), M = e === "job", N = I(() => M ? Jv(i) : null, [M, i]), ne = () => {
11392
11399
  d(!1), p("");
11393
11400
  }, P = async () => {
11394
11401
  if (!f.trim()) {
@@ -11641,9 +11648,9 @@ function iy({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11641
11648
  className: "v1-card v1-detail-card",
11642
11649
  title: /* @__PURE__ */ Y(ny, {
11643
11650
  icon: /* @__PURE__ */ Y(lo, {}),
11644
- title: ee
11651
+ title: te
11645
11652
  }),
11646
- children: j.map((e, t) => /* @__PURE__ */ X("div", {
11653
+ children: A.map((e, t) => /* @__PURE__ */ X("div", {
11647
11654
  className: `v1-rh-section${t > 0 ? " v1-rh-section--gap" : ""}`,
11648
11655
  children: [/* @__PURE__ */ Y("div", {
11649
11656
  className: "v1-rh-section-title",
@@ -11702,13 +11709,13 @@ function iy({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
11702
11709
  description: c,
11703
11710
  className: "v1-detail-alert"
11704
11711
  }),
11705
- !o && !c && M.length === 0 && j.length === 0 && /* @__PURE__ */ Y(Bi, { description: "No detail fields are configured." }),
11706
- M.flatMap((e, t) => {
11712
+ !o && !c && j.length === 0 && A.length === 0 && /* @__PURE__ */ Y(Bi, { description: "No detail fields are configured." }),
11713
+ j.flatMap((e, t) => {
11707
11714
  let n = [Ee(e, t)];
11708
- return ke(e) && j.length > 0 && n.push(De()), n;
11715
+ return ke(e) && A.length > 0 && n.push(De()), n;
11709
11716
  }),
11710
- j.length > 0 && !M.some(ke) && De(),
11711
- te && N?.value && /* @__PURE__ */ Y(Ni, {
11717
+ A.length > 0 && !j.some(ke) && De(),
11718
+ M && N?.value && /* @__PURE__ */ Y(Ni, {
11712
11719
  size: "small",
11713
11720
  className: "v1-card v1-detail-card",
11714
11721
  title: /* @__PURE__ */ Y(ny, {
@@ -13220,10 +13227,10 @@ function sx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13220
13227
  u,
13221
13228
  D
13222
13229
  ]);
13223
- let [A, j] = L({
13230
+ let [ee, A] = L({
13224
13231
  signature: "",
13225
13232
  groups: {}
13226
- }), M = Gy(r);
13233
+ }), j = Gy(r);
13227
13234
  F(() => {
13228
13235
  let e = Wy(r);
13229
13236
  if (!e.length) return;
@@ -13236,28 +13243,28 @@ function sx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13236
13243
  }).catch(() => []);
13237
13244
  return [e.key, Array.isArray(t) ? t : []];
13238
13245
  })).then((e) => {
13239
- t || j({
13240
- signature: M,
13246
+ t || A({
13247
+ signature: j,
13241
13248
  groups: Object.fromEntries(e)
13242
13249
  });
13243
13250
  }).catch(() => {
13244
- t || j({
13245
- signature: M,
13251
+ t || A({
13252
+ signature: j,
13246
13253
  groups: {}
13247
13254
  });
13248
13255
  }), () => {
13249
13256
  t = !0;
13250
13257
  };
13251
- }, [M, u]);
13252
- let ee = I(() => qy(A.signature === M ? A.groups : {}), [A, M]), te = I(() => Ly(k, m, { aux: ee }), [
13258
+ }, [j, u]);
13259
+ let te = I(() => qy(ee.signature === j ? ee.groups : {}), [ee, j]), M = I(() => Ly(k, m, { aux: te }), [
13253
13260
  k,
13254
13261
  m,
13255
- ee
13262
+ te
13256
13263
  ]);
13257
13264
  F(() => {
13258
- te && s && s(te);
13259
- }, [te]);
13260
- let { eyebrow: N, title: ne = "-", status: re, titleIds: P = [], meta: ie = [], ids: ae = [], tabs: oe = [], stats: se = [], timestamp: ce = null } = te ?? {}, { canAdd: le, canEdit: ue, canDelete: de } = ud(e), fe = I(() => Qb(m, t), [m, t]), pe = x_(oe, {
13265
+ M && s && s(M);
13266
+ }, [M]);
13267
+ let { eyebrow: N, title: ne = "-", status: re, titleIds: P = [], meta: ie = [], ids: ae = [], tabs: oe = [], stats: se = [], timestamp: ce = null } = M ?? {}, { canAdd: le, canEdit: ue, canDelete: de } = ud(e), fe = I(() => Qb(m, t), [m, t]), pe = x_(oe, {
13261
13268
  id: t,
13262
13269
  moduleName: e,
13263
13270
  record: fe
@@ -13306,7 +13313,7 @@ function sx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13306
13313
  let t = e.allowedTabs ?? [];
13307
13314
  return !t.length || t.some((e) => nx(e) === nx(Ce)) || he && t.some((e) => nx(e) === nx(he)) ? !0 : !t.some((e) => we.has(nx(e))) && !he;
13308
13315
  }, Ee = ve.filter((e) => e.detailPlacement === "primary" && ye(e) && Te(e)), De = ve.filter((e) => e.detailPlacement !== "primary" && ye(e) && Te(e));
13309
- if (!te) return null;
13316
+ if (!M) return null;
13310
13317
  let Oe = (n) => {
13311
13318
  let r = [...Ee, ...De].find((e) => e.key === n);
13312
13319
  if (r?.actionType === "document" && r.documentField) {
@@ -14317,11 +14324,11 @@ function cS(e, t) {
14317
14324
  return t ? t === "phone" ? fi(e) : t === "digits" ? e.replace(/\D/g, "").slice(0, 10) : t === "email" || t === "noSpaces" ? e.replace(/\s/g, "") : t === "name" ? e.replace(/\s+/g, " ").trimStart().replace(/\b\w/g, (e) => e.toUpperCase()) : e : e;
14318
14325
  }
14319
14326
  function lS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, moduleName: o, recordId: s, initialValue: c, scopeValues: l = {}, onAiUpload: u, onRegionBlocked: d, onRowOrderChange: f, formDisabled: p, rowFieldKeys: m }) {
14320
- let h = e.type ?? "text", g = !Nx(e, o), [_, y] = L(null), [b, x] = L(!1), [S, C] = L(""), [w, T] = L(""), [D, O] = L(""), [k, A] = L({
14327
+ let h = e.type ?? "text", g = !Nx(e, o), [_, y] = L(null), [b, x] = L(!1), [S, C] = L(""), [w, T] = L(""), [D, O] = L(""), [k, ee] = L({
14321
14328
  open: !1,
14322
14329
  docs: [],
14323
14330
  index: 0
14324
- }), [j, M] = L(null), [ee, te] = L(0), N = Di([]), re = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", P = e.lookupFilterValueFrom ? Je(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], ie = e.lookupFilterValueFrom && re ? [...n.slice(0, 2), ...Je(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], ae = B.useWatch(P, t), oe = B.useWatch(ie, t), se = Px(oe) ? ae : oe, le = e.lookupFilterValueFrom ? l[e.lookupFilterValueFrom] : void 0, ue = Px(le) ? se : le, de = Di(Ve);
14331
+ }), [A, j] = L(null), [te, M] = L(0), N = Di([]), re = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", P = e.lookupFilterValueFrom ? Je(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], ie = e.lookupFilterValueFrom && re ? [...n.slice(0, 2), ...Je(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], ae = B.useWatch(P, t), oe = B.useWatch(ie, t), se = Px(oe) ? ae : oe, le = e.lookupFilterValueFrom ? l[e.lookupFilterValueFrom] : void 0, ue = Px(le) ? se : le, de = Di(Ve);
14325
14332
  F(() => {
14326
14333
  if (!e.lookupFilterField || !e.lookupFilterValueFrom) return;
14327
14334
  let r = de.current;
@@ -14474,7 +14481,7 @@ function lS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14474
14481
  e.optionsRequireExtraValue,
14475
14482
  e.optionsHierarchyParentField,
14476
14483
  e.optionsHierarchySelfFrom,
14477
- ee,
14484
+ te,
14478
14485
  e.locationLevel,
14479
14486
  e.locationCountryFrom,
14480
14487
  e.locationStateFrom,
@@ -14515,7 +14522,7 @@ function lS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14515
14522
  scopeValues: l,
14516
14523
  ownValue: r,
14517
14524
  onDone: (r, i) => {
14518
- te((e) => e + 1);
14525
+ M((e) => e + 1);
14519
14526
  let a = Rt(e) !== "array" && !e.multiSelect && !e.multiple;
14520
14527
  r === "create" && i != null && a && ((e.clearGroupOnChange || e.linkedClearField) && ti(t, e, n, m), ft(lr(e) ? { value: i } : i));
14521
14528
  }
@@ -14532,14 +14539,14 @@ function lS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14532
14539
  let n = e.formatter ? cS(t.target.value, e.formatter) : t.target.value;
14533
14540
  if (mt) {
14534
14541
  let { cleaned: e, error: t } = ce(n, mt, "change");
14535
- M(t), n = e;
14542
+ j(t), n = e;
14536
14543
  }
14537
14544
  ft(n);
14538
14545
  },
14539
14546
  ...mt && {
14540
14547
  onBlur: (e) => {
14541
14548
  let { cleaned: t, error: n } = ce(e.target.value, mt, "blur");
14542
- M(n), t !== e.target.value && ft(t);
14549
+ j(n), t !== e.target.value && ft(t);
14543
14550
  },
14544
14551
  onKeyPress: (e) => {
14545
14552
  let t = ei(mt.type);
@@ -14548,7 +14555,7 @@ function lS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14548
14555
  if (!t.test(n)) {
14549
14556
  e.preventDefault();
14550
14557
  let t = `${mt.title} — invalid character.`;
14551
- M(t), setTimeout(() => M((e) => e === t ? null : e), 1800);
14558
+ j(t), setTimeout(() => j((e) => e === t ? null : e), 1800);
14552
14559
  }
14553
14560
  },
14554
14561
  maxLength: mt.maxLength ?? lt.maxLength
@@ -14644,21 +14651,21 @@ function lS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14644
14651
  onChange: (e) => {
14645
14652
  if (mt) {
14646
14653
  let { error: t } = ce(e, mt, "change");
14647
- M(t);
14654
+ j(t);
14648
14655
  }
14649
14656
  ft(e);
14650
14657
  }
14651
- }), j && /* @__PURE__ */ Y("div", {
14658
+ }), A && /* @__PURE__ */ Y("div", {
14652
14659
  className: "v1-input-validator-hint",
14653
- children: j
14660
+ children: A
14654
14661
  })] });
14655
14662
  if (h === "textarea") return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(wx, {
14656
14663
  ...ht,
14657
14664
  rows: e.rows ?? 3,
14658
14665
  className: "v1-scroll-textarea"
14659
- }), j && /* @__PURE__ */ Y("div", {
14666
+ }), A && /* @__PURE__ */ Y("div", {
14660
14667
  className: "v1-input-validator-hint",
14661
- children: j
14668
+ children: A
14662
14669
  })] });
14663
14670
  if (h === "date") return /* @__PURE__ */ Y(Ii, {
14664
14671
  value: r,
@@ -14725,7 +14732,7 @@ function lS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14725
14732
  return;
14726
14733
  }
14727
14734
  let c = Math.min(n ?? 0, a.length - 1);
14728
- A({
14735
+ ee({
14729
14736
  open: !0,
14730
14737
  docs: a,
14731
14738
  index: c
@@ -14791,7 +14798,7 @@ function lS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14791
14798
  }, e.uid ?? t)), O = /* @__PURE__ */ Y(Qr, {
14792
14799
  documents: k.docs,
14793
14800
  open: k.open,
14794
- onClose: () => A((e) => ({
14801
+ onClose: () => ee((e) => ({
14795
14802
  ...e,
14796
14803
  open: !1
14797
14804
  })),
@@ -14887,9 +14894,9 @@ function lS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14887
14894
  type: h === "number" ? "number" : h,
14888
14895
  ...h === "number" && Mx(e.decimal) ? { step: "any" } : {},
14889
14896
  ...e.suffix ? { suffix: e.suffix } : {}
14890
- }), j && /* @__PURE__ */ Y("div", {
14897
+ }), A && /* @__PURE__ */ Y("div", {
14891
14898
  className: "v1-input-validator-hint",
14892
- children: j
14899
+ children: A
14893
14900
  })] });
14894
14901
  }
14895
14902
  function uS({ icon: e, title: t }) {
@@ -14937,7 +14944,7 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
14937
14944
  t = !0;
14938
14945
  };
14939
14946
  }, [e, n]);
14940
- let [D, k] = L(!1), [A, ee] = L(""), [te, ne] = L(!1), [P, ie] = L(""), [ae, oe] = L(null), [se, ce] = L(() => /* @__PURE__ */ new Set()), [le, ue] = L(""), de = i || le, [me, he] = L({});
14947
+ let [D, k] = L(!1), [ee, te] = L(""), [M, ne] = L(!1), [P, ie] = L(""), [ae, oe] = L(null), [se, ce] = L(() => /* @__PURE__ */ new Set()), [le, ue] = L(""), de = i || le, [me, he] = L({});
14941
14948
  F(() => {
14942
14949
  Ot();
14943
14950
  }, []), F(() => {
@@ -14991,7 +14998,7 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
14991
14998
  if (!Array.isArray(t) || t.length < 3 || typeof t[1] != "number") return;
14992
14999
  let n = t[0], r = t[1], i = ge.find((e) => e.name === n);
14993
15000
  if (!i) return;
14994
- let a = M(i, re().region);
15001
+ let a = j(i, re().region);
14995
15002
  if (!a.orderBy) return;
14996
15003
  await Promise.resolve();
14997
15004
  let o = y.getFieldValue(n);
@@ -15018,7 +15025,7 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15018
15025
  }, [ge, y]), ve = Ci((e) => {
15019
15026
  let t = re().region, n = ge.find((t) => (t.fields ?? []).some((t) => t.field === e.field));
15020
15027
  if (!n) return !1;
15021
- let r = M(n, t), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
15028
+ let r = j(n, t), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
15022
15029
  if (e.field !== i || Zr(r)) return !1;
15023
15030
  let a = yt(r);
15024
15031
  return Oe({
@@ -15037,7 +15044,7 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15037
15044
  }, [ge]), ye = Ci((e, t) => {
15038
15045
  let n = ge.find((e) => e.name === t);
15039
15046
  if (!n) return;
15040
- let r = M(n, re().region), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
15047
+ let r = j(n, re().region), i = r.orderBy?.inProgressField ?? "currentStudyingHere";
15041
15048
  if (e.field !== i) return;
15042
15049
  let a = ht(r);
15043
15050
  return a ? [a] : void 0;
@@ -15100,7 +15107,7 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15100
15107
  let r = !1;
15101
15108
  async function o() {
15102
15109
  try {
15103
- k(!0), ee(""), ie("");
15110
+ k(!0), te(""), ie("");
15104
15111
  let o = await vi({
15105
15112
  module: e,
15106
15113
  id: n,
@@ -15121,7 +15128,7 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15121
15128
  !r && n && n !== le && ue(n);
15122
15129
  }
15123
15130
  } catch (t) {
15124
- console.error(`Failed to fetch ${e} edit data:`, t), r || ee(t?.message || "Failed to load record");
15131
+ console.error(`Failed to fetch ${e} edit data:`, t), r || te(t?.message || "Failed to load record");
15125
15132
  } finally {
15126
15133
  r || k(!1);
15127
15134
  }
@@ -15411,17 +15418,17 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15411
15418
  n("bottom-right")
15412
15419
  ]
15413
15420
  });
15414
- })() : O, A = (e) => r === void 0 ? e : [r, e], j = t.verifyAction ? /* @__PURE__ */ X(J, { children: [t.verifyResultField && /* @__PURE__ */ Y(B.Item, {
15415
- name: A(t.verifyResultField),
15421
+ })() : O, ee = (e) => r === void 0 ? e : [r, e], A = t.verifyAction ? /* @__PURE__ */ X(J, { children: [t.verifyResultField && /* @__PURE__ */ Y(B.Item, {
15422
+ name: ee(t.verifyResultField),
15416
15423
  hidden: !0,
15417
15424
  noStyle: !0,
15418
15425
  children: /* @__PURE__ */ Y(V, {})
15419
15426
  }), t.verifyTimestampField && /* @__PURE__ */ Y(B.Item, {
15420
- name: A(t.verifyTimestampField),
15427
+ name: ee(t.verifyTimestampField),
15421
15428
  hidden: !0,
15422
15429
  noStyle: !0,
15423
15430
  children: /* @__PURE__ */ Y(V, {})
15424
- })] }) : null, M = t.verifyAction ? /* @__PURE__ */ X("div", {
15431
+ })] }) : null, j = t.verifyAction ? /* @__PURE__ */ X("div", {
15425
15432
  className: "v1-verify-field-row",
15426
15433
  children: [
15427
15434
  k,
@@ -15430,22 +15437,22 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15430
15437
  field: t,
15431
15438
  absoluteName: u
15432
15439
  }),
15433
- j
15440
+ A
15434
15441
  ]
15435
- }) : k, ee = g ? /* @__PURE__ */ X(J, { children: [M, /* @__PURE__ */ Y(B.Item, {
15442
+ }) : k, te = g ? /* @__PURE__ */ X(J, { children: [j, /* @__PURE__ */ Y(B.Item, {
15436
15443
  name: r === void 0 ? _[_.length - 1] : [r, _[_.length - 1]],
15437
15444
  valuePropName: "checked",
15438
15445
  hidden: !0,
15439
15446
  noStyle: !0,
15440
15447
  children: /* @__PURE__ */ Y(Pi, {})
15441
- })] }) : M, te = t.prefillWhen?.length ? /* @__PURE__ */ Y(kx, {
15448
+ })] }) : j, M = t.prefillWhen?.length ? /* @__PURE__ */ Y(kx, {
15442
15449
  form: y,
15443
15450
  rules: t.prefillWhen,
15444
15451
  watchPaths: xe(t.prefillWhen, u, gr, h),
15445
15452
  targetPath: u,
15446
15453
  resetOnNoMatch: t.prefillWhenReset !== !1
15447
15454
  }, `${t.field}-prefillWhen`) : null, N = !o.inline && sr(t).length > 0, ne = (e) => N ? jr(t, x, (t) => e(Er(t, h(t.field)))) : x;
15448
- return ot(t.showIf) || N ? /* @__PURE__ */ X(yi.Fragment, { children: [te, /* @__PURE__ */ Y(B.Item, {
15455
+ return ot(t.showIf) || N ? /* @__PURE__ */ X(yi.Fragment, { children: [M, /* @__PURE__ */ Y(B.Item, {
15449
15456
  shouldUpdate: !0,
15450
15457
  noStyle: !0,
15451
15458
  children: ({ getFieldValue: e }) => !ot(t.showIf) || at(t.showIf, e, h) ? /* @__PURE__ */ Y(z, {
@@ -15453,14 +15460,14 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15453
15460
  md: ne(e),
15454
15461
  style: w,
15455
15462
  className: o.inline ? "v1-combine-cell" : void 0,
15456
- children: ee
15463
+ children: te
15457
15464
  }) : null
15458
- })] }, t.field) : /* @__PURE__ */ X(yi.Fragment, { children: [te, /* @__PURE__ */ Y(z, {
15465
+ })] }, t.field) : /* @__PURE__ */ X(yi.Fragment, { children: [M, /* @__PURE__ */ Y(z, {
15459
15466
  xs: 24,
15460
15467
  md: x,
15461
15468
  style: w,
15462
15469
  className: o.inline ? "v1-combine-cell" : void 0,
15463
- children: ee
15470
+ children: te
15464
15471
  })] }, t.field);
15465
15472
  }, lt = (t) => {
15466
15473
  let r = typeof t.field == "string" && t.field.includes(".") ? t.field.split(".") : [t.field], a = !!t.editablePermission && !ke(t.editablePermission, e), o = /* @__PURE__ */ Y(Ux, {
@@ -15674,7 +15681,7 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15674
15681
  n,
15675
15682
  t,
15676
15683
  ...T
15677
- ] : T.length > 1 ? T : w.field : null, D = d.some((e) => tS(e)), O = [12, 24].includes(C) ? C : d.length >= 3 ? 24 : 12, k = (e) => p && (!s || s.has(e)) ? p : null, A = d.some((e) => ot(e.showIf)), j = (e) => d.some((t) => !ot(t.showIf) || at(t.showIf, e, k)), M = /* @__PURE__ */ Y(z, {
15684
+ ] : T.length > 1 ? T : w.field : null, D = d.some((e) => tS(e)), O = [12, 24].includes(C) ? C : d.length >= 3 ? 24 : 12, k = (e) => p && (!s || s.has(e)) ? p : null, ee = d.some((e) => ot(e.showIf)), A = (e) => d.some((t) => !ot(t.showIf) || at(t.showIf, e, k)), j = /* @__PURE__ */ Y(z, {
15678
15685
  xs: 24,
15679
15686
  md: O,
15680
15687
  children: /* @__PURE__ */ Y(B.Item, {
@@ -15717,17 +15724,17 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15717
15724
  })
15718
15725
  })
15719
15726
  }, u);
15720
- o.push(A ? /* @__PURE__ */ Y(B.Item, {
15727
+ o.push(ee ? /* @__PURE__ */ Y(B.Item, {
15721
15728
  shouldUpdate: !0,
15722
15729
  noStyle: !0,
15723
- children: ({ getFieldValue: e }) => j(e) ? M : null
15724
- }, u) : M);
15730
+ children: ({ getFieldValue: e }) => A(e) ? j : null
15731
+ }, u) : j);
15725
15732
  }), o;
15726
15733
  }, mt = (e) => {
15727
15734
  let t = e.name ?? e.id ?? "", n = Pt(De, t), r = !!n && n.leaderName !== t, i = n ? ge.find((e) => e.name === n.leaderName) ?? e : e, a = Math.max(0, Number(i.minRows ?? 0) || 0), o = Math.max(0, Number(i.maxRows ?? 0) || 0), s = n ? n.memberNames : [t], c = () => {
15728
15735
  s.forEach((t) => {
15729
15736
  let n = ge.find((e) => e.name === t) ?? e;
15730
- Ae.current[t]?.add(j(n, { editing: !0 }));
15737
+ Ae.current[t]?.add(A(n, { editing: !0 }));
15731
15738
  });
15732
15739
  }, l = (e) => {
15733
15740
  s.forEach((t) => Ae.current[t]?.remove(e));
@@ -15871,10 +15878,10 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15871
15878
  spinning: D,
15872
15879
  tip: "Loading form fields…",
15873
15880
  children: [
15874
- A && /* @__PURE__ */ Y(Oi, {
15881
+ ee && /* @__PURE__ */ Y(Oi, {
15875
15882
  type: "error",
15876
15883
  showIcon: !0,
15877
- message: A,
15884
+ message: ee,
15878
15885
  style: { marginBottom: 16 }
15879
15886
  }),
15880
15887
  P && /* @__PURE__ */ Y(Oi, {
@@ -15903,7 +15910,7 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15903
15910
  showIf: e.showIf,
15904
15911
  render: () => bt(e, t)
15905
15912
  }) : bt(e, t)
15906
- }, e.name ?? `grp-${t}`)), !D && !A && ge.length === 0 && /* @__PURE__ */ Y(Oi, {
15913
+ }, e.name ?? `grp-${t}`)), !D && !ee && ge.length === 0 && /* @__PURE__ */ Y(Oi, {
15907
15914
  type: "info",
15908
15915
  showIcon: !0,
15909
15916
  message: "No form fields are configured."
@@ -15925,8 +15932,8 @@ function fS({ moduleName: e, groupName: t, recordId: n, authToken: r, clientId:
15925
15932
  form: y,
15926
15933
  groups: ge,
15927
15934
  onClick: () => y.submit(),
15928
- disabled: D || te || be > 0,
15929
- loading: te,
15935
+ disabled: D || M || be > 0,
15936
+ loading: M,
15930
15937
  children: s
15931
15938
  })]
15932
15939
  })]
@@ -16293,21 +16300,21 @@ function OS({ listName: e = "List", moduleName: t = "", actions: n = [], fields:
16293
16300
  ...e,
16294
16301
  key: wS(e),
16295
16302
  label: CS(e)
16296
- })).filter((e) => e.key && e.label), [r]), k = typeof o == "number" ? o : i.length, A = I(() => {
16303
+ })).filter((e) => e.key && e.label), [r]), k = typeof o == "number" ? o : i.length, ee = I(() => {
16297
16304
  let e = g.toLowerCase();
16298
16305
  return !e || e.length < 3 ? i : i.filter((t) => O.some((n) => String(TS(t, n.key)).toLowerCase().includes(e)));
16299
16306
  }, [
16300
16307
  i,
16301
16308
  O,
16302
16309
  g
16303
- ]), j = I(() => {
16304
- if (w) return A;
16310
+ ]), A = I(() => {
16311
+ if (w) return ee;
16305
16312
  let e = (T.current - 1) * T.pageSize;
16306
- return A.slice(e, e + T.pageSize);
16313
+ return ee.slice(e, e + T.pageSize);
16307
16314
  }, [
16308
16315
  T.current,
16309
16316
  T.pageSize,
16310
- A,
16317
+ ee,
16311
16318
  w
16312
16319
  ]);
16313
16320
  return /* @__PURE__ */ X("div", {
@@ -16391,9 +16398,9 @@ function OS({ listName: e = "List", moduleName: t = "", actions: n = [], fields:
16391
16398
  }) }),
16392
16399
  /* @__PURE__ */ Y(na, {
16393
16400
  spinning: a,
16394
- children: j.length > 0 ? /* @__PURE__ */ Y("div", {
16401
+ children: A.length > 0 ? /* @__PURE__ */ Y("div", {
16395
16402
  className: "param-card-view__grid",
16396
- children: j.map((e, t) => /* @__PURE__ */ Y(DS, {
16403
+ children: A.map((e, t) => /* @__PURE__ */ Y(DS, {
16397
16404
  record: e,
16398
16405
  fields: O,
16399
16406
  selected: b.includes(e.id ?? e._id),
@@ -16450,7 +16457,7 @@ function PS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16450
16457
  let g = xs(), _ = bs(), [v, y] = L("all"), [b, x] = L(""), [S, C] = L([]), [w, T] = L([]), [E, D] = L({
16451
16458
  current: 1,
16452
16459
  pageSize: 10
16453
- }), [O, k] = L([]), [A, j] = L(!1), M = Di(null), ee = n.filter((e) => !e.maxSelect || S.length <= e.maxSelect).map((e) => ({
16460
+ }), [O, k] = L([]), [ee, A] = L(!1), j = Di(null), te = n.filter((e) => !e.maxSelect || S.length <= e.maxSelect).map((e) => ({
16454
16461
  key: e.key ?? e.name,
16455
16462
  label: e.label ?? e.name,
16456
16463
  danger: e.danger ?? !1,
@@ -16472,7 +16479,7 @@ function PS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16472
16479
  } });
16473
16480
  }
16474
16481
  }
16475
- })), te = typeof o == "number" && typeof s == "number", N = te ? {
16482
+ })), M = typeof o == "number" && typeof s == "number", N = M ? {
16476
16483
  current: o,
16477
16484
  pageSize: s
16478
16485
  } : E, ne = I(() => t.map((e) => ({
@@ -16489,14 +16496,14 @@ function PS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16489
16496
  u,
16490
16497
  b
16491
16498
  ]), ie = typeof a == "number" ? a : b.trim() ? P.length : r.length, ae = I(() => {
16492
- if (te) return P;
16499
+ if (M) return P;
16493
16500
  let e = (N.current - 1) * N.pageSize;
16494
16501
  return P.slice(e, e + N.pageSize);
16495
16502
  }, [
16496
16503
  N.current,
16497
16504
  N.pageSize,
16498
16505
  P,
16499
- te
16506
+ M
16500
16507
  ]), oe = I(() => ne.filter((e) => re.includes(e.key)).map((e) => ({
16501
16508
  title: e.label,
16502
16509
  dataIndex: e.key,
@@ -16559,9 +16566,9 @@ function PS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16559
16566
  value: b,
16560
16567
  onChange: (e) => {
16561
16568
  let t = e.target.value;
16562
- x(t), u ? (clearTimeout(M.current), M.current = setTimeout(() => {
16569
+ x(t), u ? (clearTimeout(j.current), j.current = setTimeout(() => {
16563
16570
  u(t), c?.(1);
16564
- }, 350)) : te ? c?.(1) : D({
16571
+ }, 350)) : M ? c?.(1) : D({
16565
16572
  ...E,
16566
16573
  current: 1
16567
16574
  });
@@ -16599,8 +16606,8 @@ function PS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16599
16606
  align: "center",
16600
16607
  gap: 3,
16601
16608
  children: [/* @__PURE__ */ Y(zi, {
16602
- open: A,
16603
- onOpenChange: j,
16609
+ open: ee,
16610
+ onOpenChange: A,
16604
16611
  trigger: ["click"],
16605
16612
  dropdownRender: () => ue,
16606
16613
  placement: "bottomLeft",
@@ -16616,7 +16623,7 @@ function PS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16616
16623
  className: "job-actions-button"
16617
16624
  })
16618
16625
  }), S.length > 0 && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(zi, {
16619
- menu: { items: ee },
16626
+ menu: { items: te },
16620
16627
  trigger: ["click"],
16621
16628
  children: /* @__PURE__ */ X(R, {
16622
16629
  type: "text",
@@ -16667,13 +16674,13 @@ function PS({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
16667
16674
  pageSize: N.pageSize,
16668
16675
  total: ie,
16669
16676
  onChange: (e) => {
16670
- te ? c?.(e) : D((t) => ({
16677
+ M ? c?.(e) : D((t) => ({
16671
16678
  ...t,
16672
16679
  current: e
16673
16680
  }));
16674
16681
  },
16675
16682
  onPageSizeChange: (e) => {
16676
- te ? l?.(e) : D({
16683
+ M ? l?.(e) : D({
16677
16684
  current: 1,
16678
16685
  pageSize: e
16679
16686
  });
@@ -18045,10 +18052,10 @@ function mw(e, t = [], n = {}) {
18045
18052
  });
18046
18053
  }
18047
18054
  function hw({ moduleName: e, action: t, formType: n = "search", title: r, migrationJobId: i, sourceModules: a, searchActionContext: o, onBack: s }) {
18048
- let [c] = B.useForm(), l = xs(), [u, d] = L(null), [f, p] = L(!0), [m, h] = L(""), [g, _] = L(0), [y, b] = L("traditional"), [x, S] = L("internal"), [C, w] = L({}), [T, D] = L([]), [O, k] = L(ow), [A, j] = L({
18055
+ let [c] = B.useForm(), l = xs(), [u, d] = L(null), [f, p] = L(!0), [m, h] = L(""), [g, _] = L(0), [y, b] = L("traditional"), [x, S] = L("internal"), [C, w] = L({}), [T, D] = L([]), [O, k] = L(ow), [ee, A] = L({
18049
18056
  current: 1,
18050
18057
  pageSize: 10
18051
- }), [M, ee] = L(null), [te, N] = L({}), [ne, re] = L({}), [P, ie] = L(null), [ae, oe] = L(0), [se, ce] = L(null), [le, ue] = L("list"), [de, fe] = L(!1), pe = Ti(), me = Di(!1), he = Ci((e) => {
18058
+ }), [j, te] = L(null), [M, N] = L({}), [ne, re] = L({}), [P, ie] = L(null), [ae, oe] = L(0), [se, ce] = L(null), [le, ue] = L("list"), [de, fe] = L(!1), pe = Ti(), me = Di(!1), he = Ci((e) => {
18052
18059
  me.current && (me.current = !1, e && fe(!0));
18053
18060
  }, []);
18054
18061
  F(() => {
@@ -18106,8 +18113,8 @@ function hw({ moduleName: e, action: t, formType: n = "search", title: r, migrat
18106
18113
  ...t
18107
18114
  }))), w({}), ie(null), b(e ? "boolean" : "traditional");
18108
18115
  }, De = Ci(async (t, n, r = {}) => {
18109
- let i = Number(r.pageSize) > 0 ? Number(r.pageSize) : A.pageSize, a = Number(r.current), o = Number.isFinite(a) && a > 0 ? Math.floor(a) : 1, s = lh(t?.[iw]), c = ye ? n ? uh(n, x) : s.includes("internal") ? "internal" : uh(t?.[iw], x) : "", l = ve[ch(c)] || e;
18110
- ee(t), j({
18116
+ let i = Number(r.pageSize) > 0 ? Number(r.pageSize) : ee.pageSize, a = Number(r.current), o = Number.isFinite(a) && a > 0 ? Math.floor(a) : 1, s = lh(t?.[iw]), c = ye ? n ? uh(n, x) : s.includes("internal") ? "internal" : uh(t?.[iw], x) : "", l = ve[ch(c)] || e;
18117
+ te(t), A({
18111
18118
  current: o,
18112
18119
  pageSize: i
18113
18120
  }), w({}), k((e) => ({
@@ -18171,7 +18178,7 @@ function hw({ moduleName: e, action: t, formType: n = "search", title: r, migrat
18171
18178
  ye,
18172
18179
  Se,
18173
18180
  e,
18174
- A.pageSize,
18181
+ ee.pageSize,
18175
18182
  u,
18176
18183
  x,
18177
18184
  he,
@@ -18296,7 +18303,7 @@ function hw({ moduleName: e, action: t, formType: n = "search", title: r, migrat
18296
18303
  sorter: !1,
18297
18304
  render: (t, n) => {
18298
18305
  if (!Sh(e, n, x)) return null;
18299
- let r = Ch(e, n), i = te[r] ?? {};
18306
+ let r = Ch(e, n), i = M[r] ?? {};
18300
18307
  return /* @__PURE__ */ Y(R, {
18301
18308
  type: "primary",
18302
18309
  size: "small",
@@ -18312,7 +18319,7 @@ function hw({ moduleName: e, action: t, formType: n = "search", title: r, migrat
18312
18319
  O.fields,
18313
18320
  O.rows,
18314
18321
  x,
18315
- te
18322
+ M
18316
18323
  ]), Le = I(() => o ?? (i ? { jobId: i } : null), [o, i]), Re = I(() => {
18317
18324
  if (!Le) return O.actions;
18318
18325
  let e = (t) => ({
@@ -18513,17 +18520,17 @@ function hw({ moduleName: e, action: t, formType: n = "search", title: r, migrat
18513
18520
  fields: Ie,
18514
18521
  total: O.total,
18515
18522
  loading: O.loading,
18516
- current: A.current,
18517
- pageSize: A.pageSize,
18523
+ current: ee.current,
18524
+ pageSize: ee.pageSize,
18518
18525
  showSearch: !1,
18519
18526
  tabs: T,
18520
18527
  selectedSource: x,
18521
- onTabChange: (e) => De(M ?? {}, e, { current: 1 }),
18522
- onPageChange: (e, t) => De(M ?? {}, x, {
18528
+ onTabChange: (e) => De(j ?? {}, e, { current: 1 }),
18529
+ onPageChange: (e, t) => De(j ?? {}, x, {
18523
18530
  current: e,
18524
18531
  pageSize: t
18525
18532
  }),
18526
- onPageSizeChange: (e, t) => De(M ?? {}, x, {
18533
+ onPageSizeChange: (e, t) => De(j ?? {}, x, {
18527
18534
  current: 1,
18528
18535
  pageSize: t
18529
18536
  }),
@@ -19786,8 +19793,8 @@ function rT({ status: e, loading: t = !1, readonly: n = !1, rejectionReason: r,
19786
19793
  })
19787
19794
  ]
19788
19795
  });
19789
- let A = "Submit", j = !1;
19790
- return w && (A = e === "resubmitted" ? "Re-Submitted" : "Submitted", j = !0), (S || T) && (A = "Re-Submit", j = !1), C && (A = "Approved", j = !0), /* @__PURE__ */ X(J, { children: [
19796
+ let ee = "Submit", A = !1;
19797
+ return w && (ee = e === "resubmitted" ? "Re-Submitted" : "Submitted", A = !0), (S || T) && (ee = "Re-Submit", A = !1), C && (ee = "Approved", A = !0), /* @__PURE__ */ X(J, { children: [
19791
19798
  r && S && /* @__PURE__ */ Y(Oi, {
19792
19799
  type: "error",
19793
19800
  showIcon: !0,
@@ -19802,10 +19809,10 @@ function rT({ status: e, loading: t = !1, readonly: n = !1, rejectionReason: r,
19802
19809
  variant: "primary",
19803
19810
  icon: /* @__PURE__ */ Y(Uo, {}),
19804
19811
  loading: t,
19805
- disabled: j,
19806
- onClick: j ? void 0 : d,
19812
+ disabled: A,
19813
+ onClick: A ? void 0 : d,
19807
19814
  block: !0,
19808
- children: A
19815
+ children: ee
19809
19816
  }),
19810
19817
  x && f && /* @__PURE__ */ Y(Gr, {
19811
19818
  variant: "primary",
@@ -20776,7 +20783,7 @@ function UT(e, t) {
20776
20783
  return kT(r?.taxValue ?? r?.taxPercent);
20777
20784
  }
20778
20785
  function WT(e, t = {}) {
20779
- let { contractType: n = "C2C", currency: r = OT.currency, currencyRaw: i, rateUnit: a = OT.rateUnit, clientJobRate: o = 0, clientJobRateFrom: s = 0, clientJobRateTo: c = 0, clientVmsPercent: l = 0, clientVmsPercentageType: u = "recurring", proposedRate: d = 0, employerRate: f = 0, employerVmsPercent: p = 0, employerVmsPercentConfigured: m = 0, employerVmsAvailable: h = !1, employerVmsType: g = "Recurring", employerVmsRequired: _ = !1, locationTaxPercent: v = 0 } = e ?? {}, y = hv(r, OT.currency), b = t.proposedRate == null ? kT(d) : kT(t.proposedRate), x = !!t.includeReferral, S = x ? kT(t.referralRate) : 0, C = (t.deductReferral == null ? x : t.deductReferral) ? S : 0, w = VT(o, l), T = NT(o - w), E = VT(b, l), D = NT(b - E), O = n === "W2", k = O ? v : p, A = VT(f, k), j = NT(f - A), M = NT(D - j - C);
20786
+ let { contractType: n = "C2C", currency: r = OT.currency, currencyRaw: i, rateUnit: a = OT.rateUnit, clientJobRate: o = 0, clientJobRateFrom: s = 0, clientJobRateTo: c = 0, clientVmsPercent: l = 0, clientVmsPercentageType: u = "recurring", proposedRate: d = 0, employerRate: f = 0, employerVmsPercent: p = 0, employerVmsPercentConfigured: m = 0, employerVmsAvailable: h = !1, employerVmsType: g = "Recurring", employerVmsRequired: _ = !1, locationTaxPercent: v = 0 } = e ?? {}, y = hv(r, OT.currency), b = t.proposedRate == null ? kT(d) : kT(t.proposedRate), x = !!t.includeReferral, S = x ? kT(t.referralRate) : 0, C = (t.deductReferral == null ? x : t.deductReferral) ? S : 0, w = VT(o, l), T = NT(o - w), E = VT(b, l), D = NT(b - E), O = n === "W2", k = O ? v : p, ee = VT(f, k), A = NT(f - ee), j = NT(D - A - C);
20780
20787
  return {
20781
20788
  contractType: n,
20782
20789
  currency: y,
@@ -20797,18 +20804,18 @@ function WT(e, t = {}) {
20797
20804
  netProposedRate: D,
20798
20805
  employerRate: NT(f),
20799
20806
  employerDeductionPercent: kT(k),
20800
- employerDeduction: A,
20807
+ employerDeduction: ee,
20801
20808
  employerDeductionLabel: O ? "Location Tax" : "Employer VMS",
20802
20809
  employerVmsType: g,
20803
20810
  employerVmsRequired: !!_,
20804
20811
  employerVmsPercentConfigured: kT(m),
20805
20812
  employerVmsAvailable: !!h,
20806
- netEmployerRate: j,
20813
+ netEmployerRate: A,
20807
20814
  includereferral: x,
20808
20815
  referralRate: NT(S),
20809
20816
  referralDeduction: NT(C),
20810
- totalMargin: M,
20811
- marginPositive: M >= 0
20817
+ totalMargin: j,
20818
+ marginPositive: j >= 0
20812
20819
  };
20813
20820
  }
20814
20821
  function GT(e, t, n = {}) {
@@ -20989,7 +20996,7 @@ function dE({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
20989
20996
  t,
20990
20997
  n,
20991
20998
  p
20992
- ]), h = TT(f), [g, _] = L(m.proposedRate), [v, y] = L(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [b, x] = L(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [S, C] = L(t?.referral?.isNewReferral ? 0 : t?.referral?.referalRate ?? t?.referral?.referralRate ?? t?.engagement?.financeApproval?.referralRate ?? 0), [w, T] = L(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [E, D] = L(!1), [O, k] = L(!1), [A, j] = L(""), [M, ee] = L(!1), [te, N] = L(""), [ne, re] = L(!1), [P, ie] = L(""), ae = !!f.sections.rateBreakdown?.editToggle, [oe, se] = L(!1), ce = !ae || oe, [le, ue] = L(!1), [de, fe] = L(!1), [pe, me] = L({
20999
+ ]), h = TT(f), [g, _] = L(m.proposedRate), [v, y] = L(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [b, x] = L(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [S, C] = L(t?.referral?.isNewReferral ? 0 : t?.referral?.referalRate ?? t?.referral?.referralRate ?? t?.engagement?.financeApproval?.referralRate ?? 0), [w, T] = L(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [E, D] = L(!1), [O, k] = L(!1), [ee, A] = L(""), [j, te] = L(!1), [M, N] = L(""), [ne, re] = L(!1), [P, ie] = L(""), ae = !!f.sections.rateBreakdown?.editToggle, [oe, se] = L(!1), ce = !ae || oe, [le, ue] = L(!1), [de, fe] = L(!1), [pe, me] = L({
20993
21000
  open: !1,
20994
21001
  title: "",
20995
21002
  rows: []
@@ -21135,11 +21142,11 @@ function dE({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
21135
21142
  ue(!0);
21136
21143
  return;
21137
21144
  }
21138
- if (e.requireReason && !A.trim()) {
21139
- ee(!0);
21145
+ if (e.requireReason && !ee.trim()) {
21146
+ te(!0);
21140
21147
  return;
21141
21148
  }
21142
- if (e.requireCategory && !te) {
21149
+ if (e.requireCategory && !M) {
21143
21150
  re(!0);
21144
21151
  return;
21145
21152
  }
@@ -21163,8 +21170,8 @@ function dE({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
21163
21170
  referralRate: 0
21164
21171
  },
21165
21172
  referralEnabled: ye,
21166
- reason: A.trim(),
21167
- category: te,
21173
+ reason: ee.trim(),
21174
+ category: M,
21168
21175
  rateHistory: f.persist?.rateHistory ? QT(Oe, c) : void 0
21169
21176
  });
21170
21177
  } catch (e) {
@@ -21740,7 +21747,7 @@ function dE({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
21740
21747
  /* @__PURE__ */ Y(H, {
21741
21748
  id: "fa-rejection-category",
21742
21749
  placeholder: "Select where to return this rejection",
21743
- value: te || void 0,
21750
+ value: M || void 0,
21744
21751
  status: ne ? "error" : "",
21745
21752
  options: [{
21746
21753
  value: "submission",
@@ -21772,14 +21779,14 @@ function dE({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
21772
21779
  rows: 3,
21773
21780
  maxLength: 500,
21774
21781
  showCount: !0,
21775
- value: A,
21776
- status: M ? "error" : "",
21782
+ value: ee,
21783
+ status: j ? "error" : "",
21777
21784
  placeholder: "Enter your comments here…",
21778
21785
  onChange: (e) => {
21779
- j(e.target.value), e.target.value.trim() && ee(!1);
21786
+ A(e.target.value), e.target.value.trim() && te(!1);
21780
21787
  }
21781
21788
  }),
21782
- M && /* @__PURE__ */ Y("div", {
21789
+ j && /* @__PURE__ */ Y("div", {
21783
21790
  className: "fa-reason-error",
21784
21791
  children: "! Comments are required when rejecting."
21785
21792
  })
@@ -22047,10 +22054,10 @@ async function SE(e, t = {}) {
22047
22054
  ...yE(S),
22048
22055
  ...yE(v)
22049
22056
  };
22050
- let T = (Array.isArray(_) ? _ : []).find((t) => FT(t.submissionId) === String(e)), E = FT(w.clientId) || FT(T?.clientId) || s, D = a.clientName ?? t.clientName ?? w.clientName, O = D ? m.filter((e) => fE(e.clientName) === fE(D)) : [], k = m.find(hE(E)) ?? O[0] ?? {}, A = await bE("clients", FT(k._id ?? k.id) || E), j = {
22057
+ let T = (Array.isArray(_) ? _ : []).find((t) => FT(t.submissionId) === String(e)), E = FT(w.clientId) || FT(T?.clientId) || s, D = a.clientName ?? t.clientName ?? w.clientName, O = D ? m.filter((e) => fE(e.clientName) === fE(D)) : [], k = m.find(hE(E)) ?? O[0] ?? {}, ee = await bE("clients", FT(k._id ?? k.id) || E), A = {
22051
22058
  ...k,
22052
- ...A
22053
- }, M = h.find(hE(l)) ?? {}, ee = g.find(hE(d)) ?? g.find((e) => fE(e.name) === fE(d)) ?? {};
22059
+ ...ee
22060
+ }, j = h.find(hE(l)) ?? {}, te = g.find(hE(d)) ?? g.find((e) => fE(e.name) === fE(d)) ?? {};
22054
22061
  return {
22055
22062
  record: {
22056
22063
  submission: {
@@ -22060,20 +22067,20 @@ async function SE(e, t = {}) {
22060
22067
  submission_current_employer: [o]
22061
22068
  },
22062
22069
  job: w,
22063
- client: j,
22064
- employer: M
22070
+ client: A,
22071
+ employer: j
22065
22072
  },
22066
22073
  lookups: {
22067
- clientVmsFee: j.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
22068
- locationTaxPercent: o.tax ?? ee.taxValue
22074
+ clientVmsFee: A.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
22075
+ locationTaxPercent: o.tax ?? te.taxValue
22069
22076
  },
22070
22077
  display: {
22071
- clientName: a.clientName ?? j.clientName,
22078
+ clientName: a.clientName ?? A.clientName,
22072
22079
  jobTitle: a.jobTitle ?? w.jobTitle,
22073
22080
  reqId: i.jobClientRefrenceId ?? a.jobRefrenceId ?? i.jobRefrenceId ?? i.mspReqId,
22074
22081
  jobLocation: a.jobLocation ?? w.jobLocation,
22075
- employerName: M.empCompanyName,
22076
- employerLocation: ee.name ?? M.empCompanyLocation ?? d,
22082
+ employerName: j.empCompanyName,
22083
+ employerLocation: te.name ?? j.empCompanyLocation ?? d,
22077
22084
  submittedBy: b.signatureEmail || a.signatureEmail || t.signatureEmail || vE(y),
22078
22085
  email: a.email,
22079
22086
  candidateName: [a.firstName, a.lastName].filter(Boolean).join(" ") || a.candidateFullName,
@@ -24047,7 +24054,7 @@ function _k({ field: e, collections: t, collFields: n, subfields: r, onCollectio
24047
24054
  }
24048
24055
  return !1;
24049
24056
  }
24050
- let D = e.renderType ?? "", O = !!e.commonStyle, k = e.commonStyle ?? {}, A = e.valueStyles ?? [], j = e.renderConfig ?? {};
24057
+ let D = e.renderType ?? "", O = !!e.commonStyle, k = e.commonStyle ?? {}, ee = e.valueStyles ?? [], A = e.renderConfig ?? {};
24051
24058
  return /* @__PURE__ */ X(J, { children: [
24052
24059
  /* @__PURE__ */ X("div", {
24053
24060
  className: "uss-detail-section",
@@ -24206,12 +24213,12 @@ function _k({ field: e, collections: t, collFields: n, subfields: r, onCollectio
24206
24213
  })]
24207
24214
  })]
24208
24215
  }),
24209
- A.length === 0 && /* @__PURE__ */ Y(ck, {
24216
+ ee.length === 0 && /* @__PURE__ */ Y(ck, {
24210
24217
  type: "secondary",
24211
24218
  style: { fontSize: 12 },
24212
24219
  children: "Click \"Auto-detect values\" to populate from live data, or \"Add\" to map manually."
24213
24220
  }),
24214
- A.map((e, t) => /* @__PURE__ */ X("div", {
24221
+ ee.map((e, t) => /* @__PURE__ */ X("div", {
24215
24222
  style: {
24216
24223
  display: "grid",
24217
24224
  gridTemplateColumns: "1fr 1fr 62px 62px 54px 26px",
@@ -24327,13 +24334,13 @@ function _k({ field: e, collections: t, collFields: n, subfields: r, onCollectio
24327
24334
  allowClear: !0,
24328
24335
  style: { width: "100%" },
24329
24336
  placeholder: r.length > 0 ? "Select a child field from the array" : "Enter child field, e.g. clientBudgetStart",
24330
- value: j.lastItemField || void 0,
24337
+ value: A.lastItemField || void 0,
24331
24338
  options: r.map((e) => ({
24332
24339
  value: e,
24333
24340
  label: e
24334
24341
  })),
24335
24342
  onChange: (e) => p({ renderConfig: {
24336
- ...j,
24343
+ ...A,
24337
24344
  lastItemField: e ?? ""
24338
24345
  } }),
24339
24346
  onSearch: (e) => {
@@ -24347,9 +24354,9 @@ function _k({ field: e, collections: t, collFields: n, subfields: r, onCollectio
24347
24354
  children: /* @__PURE__ */ Y(V, {
24348
24355
  size: "small",
24349
24356
  placeholder: "Custom child field",
24350
- value: j.lastItemField || "",
24357
+ value: A.lastItemField || "",
24351
24358
  onChange: (e) => p({ renderConfig: {
24352
- ...j,
24359
+ ...A,
24353
24360
  lastItemField: e.target.value.trim()
24354
24361
  } })
24355
24362
  })
@@ -24388,13 +24395,13 @@ function _k({ field: e, collections: t, collFields: n, subfields: r, onCollectio
24388
24395
  allowClear: !0,
24389
24396
  style: { width: "100%" },
24390
24397
  placeholder: "e.g. recruiterName",
24391
- value: j.labelField || void 0,
24398
+ value: A.labelField || void 0,
24392
24399
  options: r.length > 0 ? r.map((e) => ({
24393
24400
  value: e,
24394
24401
  label: e
24395
24402
  })) : [],
24396
24403
  onChange: (e) => p({ renderConfig: {
24397
- ...j,
24404
+ ...A,
24398
24405
  labelField: e ?? ""
24399
24406
  } })
24400
24407
  })] }),
@@ -24412,13 +24419,13 @@ function _k({ field: e, collections: t, collFields: n, subfields: r, onCollectio
24412
24419
  allowClear: !0,
24413
24420
  style: { width: "100%" },
24414
24421
  placeholder: "color",
24415
- value: j.colorField || void 0,
24422
+ value: A.colorField || void 0,
24416
24423
  options: r.length > 0 ? r.map((e) => ({
24417
24424
  value: e,
24418
24425
  label: e
24419
24426
  })) : [],
24420
24427
  onChange: (e) => p({ renderConfig: {
24421
- ...j,
24428
+ ...A,
24422
24429
  colorField: e ?? ""
24423
24430
  } })
24424
24431
  })] }),
@@ -24435,9 +24442,9 @@ function _k({ field: e, collections: t, collFields: n, subfields: r, onCollectio
24435
24442
  type: "number",
24436
24443
  min: 1,
24437
24444
  max: 10,
24438
- value: j.maxVisible || 3,
24445
+ value: A.maxVisible || 3,
24439
24446
  onChange: (e) => p({ renderConfig: {
24440
- ...j,
24447
+ ...A,
24441
24448
  maxVisible: Number(e.target.value) || 3
24442
24449
  } })
24443
24450
  })] })
@@ -24511,9 +24518,9 @@ function _k({ field: e, collections: t, collFields: n, subfields: r, onCollectio
24511
24518
  children: "Useful for integer fields where 0 means the value was not provided."
24512
24519
  })] }), /* @__PURE__ */ Y(W, {
24513
24520
  size: "small",
24514
- checked: !!j.treatZeroAsEmpty,
24521
+ checked: !!A.treatZeroAsEmpty,
24515
24522
  onChange: (e) => p({ renderConfig: {
24516
- ...j,
24523
+ ...A,
24517
24524
  treatZeroAsEmpty: e
24518
24525
  } })
24519
24526
  })]
@@ -24540,9 +24547,9 @@ function _k({ field: e, collections: t, collFields: n, subfields: r, onCollectio
24540
24547
  ]
24541
24548
  })] }), /* @__PURE__ */ Y(W, {
24542
24549
  size: "small",
24543
- checked: !!j.cleanEmptyTemplateSeparators,
24550
+ checked: !!A.cleanEmptyTemplateSeparators,
24544
24551
  onChange: (e) => p({ renderConfig: {
24545
- ...j,
24552
+ ...A,
24546
24553
  cleanEmptyTemplateSeparators: e
24547
24554
  } })
24548
24555
  })]
@@ -25380,12 +25387,12 @@ function Ck({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
25380
25387
  function k(e) {
25381
25388
  i(t, e);
25382
25389
  }
25383
- function A() {
25390
+ function ee() {
25384
25391
  p(!1);
25385
25392
  let t = m.trim();
25386
25393
  t && t !== e.fieldName ? k({ fieldName: t }) : h(e.fieldName);
25387
25394
  }
25388
- async function j(t) {
25395
+ async function A(t) {
25389
25396
  k({ lookup: {
25390
25397
  ...e.lookup,
25391
25398
  collection: t,
@@ -25396,7 +25403,7 @@ function Ck({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
25396
25403
  let n = await s(t);
25397
25404
  _(n);
25398
25405
  }
25399
- async function M(t, n) {
25406
+ async function j(t, n) {
25400
25407
  if (k({ lookup: {
25401
25408
  ...e.lookup,
25402
25409
  ...n
@@ -25406,11 +25413,11 @@ function Ck({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
25406
25413
  y([]);
25407
25414
  }
25408
25415
  }
25409
- function ee(t) {
25416
+ function te(t) {
25410
25417
  let n = e.secondaryFields ?? [];
25411
25418
  !t || n.includes(t) || k({ secondaryFields: [...n, t] });
25412
25419
  }
25413
- function te(t) {
25420
+ function M(t) {
25414
25421
  k({ secondaryFields: (e.secondaryFields ?? []).filter((e) => e !== t) });
25415
25422
  }
25416
25423
  function N() {
@@ -25460,9 +25467,9 @@ function Ck({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
25460
25467
  autoFocus: !0,
25461
25468
  value: m,
25462
25469
  onChange: (e) => h(e.target.value),
25463
- onBlur: A,
25470
+ onBlur: ee,
25464
25471
  onKeyDown: (t) => {
25465
- t.key === "Enter" && A(), t.key === "Escape" && (p(!1), h(e.fieldName));
25472
+ t.key === "Enter" && ee(), t.key === "Escape" && (p(!1), h(e.fieldName));
25466
25473
  },
25467
25474
  onClick: (e) => e.stopPropagation()
25468
25475
  }) : /* @__PURE__ */ Y(K, {
@@ -25510,10 +25517,10 @@ function Ck({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
25510
25517
  collections: o,
25511
25518
  collFields: g,
25512
25519
  subfields: v,
25513
- onCollectionChange: j,
25514
- onLookupFieldChange: M,
25515
- addSecondaryField: ee,
25516
- removeSecondaryField: te,
25520
+ onCollectionChange: A,
25521
+ onLookupFieldChange: j,
25522
+ addSecondaryField: te,
25523
+ removeSecondaryField: M,
25517
25524
  addActionButton: N,
25518
25525
  updateActionButton: ne,
25519
25526
  removeActionButton: re,
@@ -25526,8 +25533,8 @@ function Ck({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
25526
25533
  configType: n,
25527
25534
  collections: o,
25528
25535
  collFields: g,
25529
- onCollectionChange: j,
25530
- onLookupFieldChange: M,
25536
+ onCollectionChange: A,
25537
+ onLookupFieldChange: j,
25531
25538
  availableFields: l
25532
25539
  })
25533
25540
  })] });
@@ -27695,7 +27702,7 @@ function cj(e = []) {
27695
27702
  function lj({ collection: e, displayField: t, valueField: n, value: r, labelValue: i, onChange: a }) {
27696
27703
  let [o, s] = L([]), [c, l] = L(!1), u = Di(""), d = () => {
27697
27704
  let r = `${e}|${t}|${n}`;
27698
- !e || !t || u.current === r || (l(!0), te(e, t, n || "_id").then((e) => {
27705
+ !e || !t || u.current === r || (l(!0), M(e, t, n || "_id").then((e) => {
27699
27706
  u.current = r, s(e);
27700
27707
  }).catch(() => s([])).finally(() => l(!1)));
27701
27708
  }, f = r && !o.some((e) => e.value === r) ? [{
@@ -32729,7 +32736,7 @@ function gj({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
32729
32736
  t = !0;
32730
32737
  };
32731
32738
  }, [e, d]);
32732
- async function A(e) {
32739
+ async function ee(e) {
32733
32740
  if (!(!e || D.current[e])) {
32734
32741
  D.current[e] = "loading", g(!0);
32735
32742
  try {
@@ -32871,23 +32878,23 @@ function gj({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
32871
32878
  afterSubmitTarget: "",
32872
32879
  order: 0,
32873
32880
  fields: []
32874
- })), A(r);
32881
+ })), ee(r);
32875
32882
  }, [
32876
32883
  e,
32877
32884
  t,
32878
32885
  n,
32879
32886
  c
32880
32887
  ]);
32881
- function j(e) {
32882
- f(e), A(e);
32888
+ function A(e) {
32889
+ f(e), ee(e);
32883
32890
  }
32884
- function M() {
32891
+ function j() {
32885
32892
  S(/* @__PURE__ */ new Set()), w("settings"), E(!1), a();
32886
32893
  }
32887
- function ee(e) {
32894
+ function te(e) {
32888
32895
  w(e), e === "fields" && E(!0);
32889
32896
  }
32890
- function te(e, t = !1) {
32897
+ function M(e, t = !1) {
32891
32898
  S((n) => {
32892
32899
  let r = new Set(n);
32893
32900
  return t ? r.add(e) : r.has(e) ? r.delete(e) : r.add(e), r;
@@ -33098,7 +33105,7 @@ function gj({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
33098
33105
  ]);
33099
33106
  return /* @__PURE__ */ Y(Ki, {
33100
33107
  open: e,
33101
- onCancel: M,
33108
+ onCancel: j,
33102
33109
  width: 1080,
33103
33110
  centered: !0,
33104
33111
  destroyOnClose: !0,
@@ -33111,7 +33118,7 @@ function gj({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
33111
33118
  footer: /* @__PURE__ */ X("div", {
33112
33119
  className: "fg-drawer-footer",
33113
33120
  children: [/* @__PURE__ */ Y(R, {
33114
- onClick: M,
33121
+ onClick: j,
33115
33122
  children: "Cancel"
33116
33123
  }), /* @__PURE__ */ Y(R, {
33117
33124
  type: "primary",
@@ -33135,7 +33142,7 @@ function gj({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
33135
33142
  role: "tab",
33136
33143
  "aria-selected": C === "settings",
33137
33144
  className: C === "settings" ? "is-active" : "",
33138
- onClick: () => ee("settings"),
33145
+ onClick: () => te("settings"),
33139
33146
  children: [/* @__PURE__ */ Y("span", {
33140
33147
  className: "fg-editor-tab-number",
33141
33148
  children: "1"
@@ -33145,7 +33152,7 @@ function gj({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
33145
33152
  role: "tab",
33146
33153
  "aria-selected": C === "fields",
33147
33154
  className: C === "fields" ? "is-active" : "",
33148
- onClick: () => ee("fields"),
33155
+ onClick: () => te("fields"),
33149
33156
  children: [/* @__PURE__ */ Y("span", {
33150
33157
  className: "fg-editor-tab-number",
33151
33158
  children: "2"
@@ -33171,7 +33178,7 @@ function gj({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
33171
33178
  children: /* @__PURE__ */ Y(H, {
33172
33179
  options: r,
33173
33180
  placeholder: "Select module",
33174
- onChange: j
33181
+ onChange: A
33175
33182
  })
33176
33183
  }),
33177
33184
  /* @__PURE__ */ Y(B.Item, {
@@ -34366,7 +34373,7 @@ function gj({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
34366
34373
  children: "Next, review the fields included in this group."
34367
34374
  }), /* @__PURE__ */ Y(R, {
34368
34375
  type: "primary",
34369
- onClick: () => ee("fields"),
34376
+ onClick: () => te("fields"),
34370
34377
  children: "Continue to Fields"
34371
34378
  })]
34372
34379
  })]
@@ -34406,7 +34413,7 @@ function gj({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
34406
34413
  setDragOverIndex: b,
34407
34414
  onFieldKeySelect: (e, t) => ne(e, t),
34408
34415
  expandedFieldKeys: x,
34409
- onToggleField: te,
34416
+ onToggleField: M,
34410
34417
  defaultFieldSet: _,
34411
34418
  uniqueTarget: {
34412
34419
  primaryModule: c.getFieldValue("module") || n || "",
@@ -35594,7 +35601,7 @@ function bj() {
35594
35601
  }));
35595
35602
  t(n);
35596
35603
  let r = JA(n);
35597
- a(YA(r)), j("all", r);
35604
+ a(YA(r)), A("all", r);
35598
35605
  }).catch(() => t([])).finally(() => r(!1));
35599
35606
  }, []), F(() => {
35600
35607
  Wr({ limit: 200 }).then(_).catch(() => _([]));
@@ -35608,10 +35615,10 @@ function bj() {
35608
35615
  }
35609
35616
  }));
35610
35617
  }
35611
- let D = (e) => e !== "all" && !!(v.clientId || v.region), O = (e) => D(e) ? v : {}, A = (e) => D(e) ? `${v.clientId}|${v.region}` : "";
35612
- function j(e, t) {
35618
+ let D = (e) => e !== "all" && !!(v.clientId || v.region), O = (e) => D(e) ? v : {}, ee = (e) => D(e) ? `${v.clientId}|${v.region}` : "";
35619
+ function A(e, t) {
35613
35620
  if (!(t ?? w).find((t) => t.key === e)) return;
35614
- let n = A(e);
35621
+ let n = ee(e);
35615
35622
  E(e, {
35616
35623
  loading: !0,
35617
35624
  error: ""
@@ -35625,13 +35632,13 @@ function bj() {
35625
35632
  loading: !1
35626
35633
  }));
35627
35634
  }
35628
- function M(e) {
35629
- j(e, null);
35635
+ function j(e) {
35636
+ A(e, null);
35630
35637
  }
35631
- function ee(e) {
35632
- s(e), (!i[e]?.loaded || i[e]?.scopeKey !== A(e)) && M(e);
35638
+ function te(e) {
35639
+ s(e), (!i[e]?.loaded || i[e]?.scopeKey !== ee(e)) && j(e);
35633
35640
  }
35634
- function te() {
35641
+ function M() {
35635
35642
  d(null), l(!0);
35636
35643
  }
35637
35644
  function N(e) {
@@ -35641,11 +35648,11 @@ function bj() {
35641
35648
  l(!1), d(null);
35642
35649
  }
35643
35650
  async function re() {
35644
- ne(), M(o), o !== "all" && M("all");
35651
+ ne(), j(o), o !== "all" && j("all");
35645
35652
  }
35646
35653
  async function P(e) {
35647
35654
  try {
35648
- await k(e, se()), q.success("Group deleted"), M(o), o !== "all" && M("all");
35655
+ await k(e, se()), q.success("Group deleted"), j(o), o !== "all" && j("all");
35649
35656
  } catch (e) {
35650
35657
  q.error(e.message || "Could not delete group");
35651
35658
  }
@@ -35659,9 +35666,9 @@ function bj() {
35659
35666
  await Promise.all(t.map(({ g: e, index: t }) => Qn(e.id, {
35660
35667
  ...e,
35661
35668
  order: t
35662
- }, se(e.module || o)))), q.success("Group order updated"), M(o), o !== "all" && M("all");
35669
+ }, se(e.module || o)))), q.success("Group order updated"), j(o), o !== "all" && j("all");
35663
35670
  } catch (e) {
35664
- q.error(e.message || "Could not reorder groups"), M(o);
35671
+ q.error(e.message || "Could not reorder groups"), j(o);
35665
35672
  }
35666
35673
  }
35667
35674
  function ae(e) {
@@ -35708,13 +35715,13 @@ function bj() {
35708
35715
  payloadKey: S.payloadKey ?? e.payloadKey,
35709
35716
  fields: JSON.parse(JSON.stringify(S.fields ?? []))
35710
35717
  };
35711
- await Qn(e.id, t, se(e.module || o)), q.success(`Pasted settings into ${e.label || e.name}`), M(o), o !== "all" && M("all");
35718
+ await Qn(e.id, t, se(e.module || o)), q.success(`Pasted settings into ${e.label || e.name}`), j(o), o !== "all" && j("all");
35712
35719
  } catch (e) {
35713
35720
  q.error(e.message || "Could not paste settings");
35714
35721
  }
35715
35722
  }
35716
35723
  function ue() {
35717
- p(null), a(YA(w)), M(o), o !== "all" && M("all");
35724
+ p(null), a(YA(w)), j(o), o !== "all" && j("all");
35718
35725
  }
35719
35726
  let de = w.map(({ key: e, label: t, color: n }) => {
35720
35727
  let r = i[e] ?? {
@@ -35758,7 +35765,7 @@ function bj() {
35758
35765
  icon: /* @__PURE__ */ Y(jo, {}),
35759
35766
  disabled: e === "all",
35760
35767
  onClick: () => {
35761
- s(e), te();
35768
+ s(e), M();
35762
35769
  },
35763
35770
  children: "Add Group"
35764
35771
  })
@@ -35820,7 +35827,7 @@ function bj() {
35820
35827
  /* @__PURE__ */ Y(R, {
35821
35828
  size: "small",
35822
35829
  icon: /* @__PURE__ */ Y(Fo, {}),
35823
- onClick: () => M(o),
35830
+ onClick: () => j(o),
35824
35831
  children: "Reload"
35825
35832
  }),
35826
35833
  /* @__PURE__ */ Y(R, {
@@ -35837,7 +35844,7 @@ function bj() {
35837
35844
  spinning: n,
35838
35845
  children: /* @__PURE__ */ Y(oa, {
35839
35846
  activeKey: o,
35840
- onChange: ee,
35847
+ onChange: te,
35841
35848
  items: de,
35842
35849
  size: "middle",
35843
35850
  className: "fg-tabs"
@@ -35936,7 +35943,7 @@ function bj() {
35936
35943
  type: "primary",
35937
35944
  size: "small",
35938
35945
  icon: /* @__PURE__ */ Y(ma, {}),
35939
- onClick: te,
35946
+ onClick: M,
35940
35947
  children: "New Group"
35941
35948
  })]
35942
35949
  }) : null,
@@ -37806,9 +37813,9 @@ function Kj({ open: e, onClose: t }) {
37806
37813
  });
37807
37814
  }
37808
37815
  function qj() {
37809
- 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), [j, M] = L(null), [ee, te] = L(0), [N, ne] = L(""), [re, P] = L([]), [ie, ae] = L(""), [oe, ce] = L(""), [le, ue] = L({});
37816
+ 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), [A, j] = L(null), [te, M] = L(0), [N, ne] = L(""), [re, P] = L([]), [ie, ae] = L(""), [oe, ce] = L(""), [le, ue] = L({});
37810
37817
  function de(e) {
37811
- M(Ej[e]);
37818
+ j(Ej[e]);
37812
37819
  }
37813
37820
  async function fe(e, t, n, r) {
37814
37821
  let i = o;
@@ -37861,7 +37868,7 @@ function qj() {
37861
37868
  off: "Group follows its Show Condition in the detail view"
37862
37869
  });
37863
37870
  function _e() {
37864
- M(null), te((e) => e + 1);
37871
+ j(null), M((e) => e + 1);
37865
37872
  }
37866
37873
  F(() => {
37867
37874
  Wr({ limit: 200 }).then(P).catch(() => P([]));
@@ -37899,7 +37906,7 @@ function qj() {
37899
37906
  };
37900
37907
  }, [
37901
37908
  i,
37902
- ee,
37909
+ te,
37903
37910
  ie
37904
37911
  ]);
37905
37912
  let ve = I(() => c.map((e) => ({
@@ -37910,7 +37917,7 @@ function qj() {
37910
37917
  x(!0);
37911
37918
  try {
37912
37919
  let e = Object.entries(f).map(([e, t]) => Mj(e, t)).filter(Boolean), { nextGroups: t, changed: n } = Fj(o, f);
37913
- await A({
37920
+ await ee({
37914
37921
  module: i,
37915
37922
  fields: e,
37916
37923
  merges: Nj(m),
@@ -38413,7 +38420,7 @@ function qj() {
38413
38420
  }), /* @__PURE__ */ Y(R, {
38414
38421
  size: "small",
38415
38422
  icon: /* @__PURE__ */ Y(Fo, {}),
38416
- onClick: () => te((e) => e + 1),
38423
+ onClick: () => M((e) => e + 1),
38417
38424
  children: "Reload"
38418
38425
  })]
38419
38426
  })]
@@ -38558,14 +38565,14 @@ function qj() {
38558
38565
  onClose: () => D(!1)
38559
38566
  }),
38560
38567
  /* @__PURE__ */ Y(SA, {
38561
- open: !!j,
38568
+ open: !!A,
38562
38569
  scope: "detailConfig",
38563
- action: j?.action,
38564
- title: j?.title,
38565
- description: j?.description,
38566
- confirmLabel: j?.confirmLabel,
38567
- danger: j?.danger,
38568
- onCancel: () => M(null),
38570
+ action: A?.action,
38571
+ title: A?.title,
38572
+ description: A?.description,
38573
+ confirmLabel: A?.confirmLabel,
38574
+ danger: A?.danger,
38575
+ onCancel: () => j(null),
38569
38576
  onVerified: _e
38570
38577
  })
38571
38578
  ]
@@ -39284,7 +39291,7 @@ function bM({ open: e, initial: t, isChild: n, popupForms: r, templateOptions: i
39284
39291
  });
39285
39292
  }
39286
39293
  function xM() {
39287
- 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(""), [A, j] = L([]), [M, ee] = L([]);
39294
+ 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([]);
39288
39295
  F(() => {
39289
39296
  qe().then((e) => {
39290
39297
  let n = Ak(e);
@@ -39294,10 +39301,10 @@ function xM() {
39294
39301
  });
39295
39302
  }, []), F(() => {
39296
39303
  Promise.all([qe().catch(() => []), Gn().catch(() => [])]).then(([e, t]) => {
39297
- j([...new Set(e.map((e) => e.MENUNAME ?? e.menuName).filter(Boolean))]), ee([...new Set(t.map((e) => e.permissionKey ?? e.PERMISSIONKEY).filter(Boolean))]);
39304
+ A([...new Set(e.map((e) => e.MENUNAME ?? e.menuName).filter(Boolean))]), te([...new Set(t.map((e) => e.permissionKey ?? e.PERMISSIONKEY).filter(Boolean))]);
39298
39305
  });
39299
39306
  }, []);
39300
- let te = Ci(async () => {
39307
+ let M = Ci(async () => {
39301
39308
  if (n) {
39302
39309
  p(!0), _(null), a([]);
39303
39310
  try {
@@ -39312,9 +39319,9 @@ function xM() {
39312
39319
  }, [n]);
39313
39320
  F(() => {
39314
39321
  queueMicrotask(() => {
39315
- te();
39322
+ M();
39316
39323
  });
39317
- }, [te]), F(() => {
39324
+ }, [M]), F(() => {
39318
39325
  Promise.all([_t(n, "popup").catch(() => []), nM({ module: n }).catch(() => [])]).then(([e, t]) => {
39319
39326
  C(e), T(t.map((e) => ({
39320
39327
  value: e._id ?? e.id,
@@ -39344,13 +39351,13 @@ function xM() {
39344
39351
  }
39345
39352
  d(!1);
39346
39353
  } catch (e) {
39347
- q.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && te();
39354
+ q.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && M();
39348
39355
  } finally {
39349
39356
  h(!1);
39350
39357
  }
39351
39358
  }, ne = async () => {
39352
39359
  if (o) try {
39353
- await fn(o.id ?? o._id), q.success("Config deleted"), await te();
39360
+ await fn(o.id ?? o._id), q.success("Config deleted"), await M();
39354
39361
  } catch (e) {
39355
39362
  q.error(e.message);
39356
39363
  }
@@ -39397,7 +39404,7 @@ function xM() {
39397
39404
  }
39398
39405
  l(t), d(!1), y(!1);
39399
39406
  } catch (e) {
39400
- q.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && te();
39407
+ q.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && M();
39401
39408
  }
39402
39409
  }, se = (e, t = null) => {
39403
39410
  l(t ? (n) => n.map((n) => n.key === t ? {
@@ -39414,7 +39421,7 @@ function xM() {
39414
39421
  D(dM[e]);
39415
39422
  }
39416
39423
  function ue() {
39417
- D(null), te();
39424
+ D(null), M();
39418
39425
  }
39419
39426
  let de = I(() => {
39420
39427
  let e = O.trim().toLowerCase();
@@ -39724,7 +39731,7 @@ function xM() {
39724
39731
  className: "admin-config-reload",
39725
39732
  children: /* @__PURE__ */ Y(R, {
39726
39733
  icon: /* @__PURE__ */ Y(Fo, {}),
39727
- onClick: te,
39734
+ onClick: M,
39728
39735
  loading: f,
39729
39736
  children: "Reload"
39730
39737
  })
@@ -39834,8 +39841,8 @@ function xM() {
39834
39841
  isChild: !!re,
39835
39842
  popupForms: S,
39836
39843
  templateOptions: w,
39837
- permissionModules: A,
39838
- permissionActions: M,
39844
+ permissionModules: ee,
39845
+ permissionActions: j,
39839
39846
  onClose: () => y(!1),
39840
39847
  onSave: oe
39841
39848
  }),
@@ -40056,7 +40063,7 @@ function FM() {
40056
40063
  }
40057
40064
  }
40058
40065
  }
40059
- async function A(e) {
40066
+ async function ee(e) {
40060
40067
  try {
40061
40068
  await tn(e.id), q.success("Rule deleted");
40062
40069
  } catch (e) {
@@ -40064,7 +40071,7 @@ function FM() {
40064
40071
  }
40065
40072
  w(i);
40066
40073
  }
40067
- async function j() {
40074
+ async function A() {
40068
40075
  y(!0);
40069
40076
  try {
40070
40077
  for (let e of AM) await It({
@@ -40078,7 +40085,7 @@ function FM() {
40078
40085
  y(!1);
40079
40086
  }
40080
40087
  }
40081
- function M(e, t) {
40088
+ function j(e, t) {
40082
40089
  h((n) => ({
40083
40090
  ...n,
40084
40091
  conditions: n.conditions.map((n, r) => r === e ? {
@@ -40087,13 +40094,13 @@ function FM() {
40087
40094
  } : n)
40088
40095
  }));
40089
40096
  }
40090
- function ee() {
40097
+ function te() {
40091
40098
  h((e) => ({
40092
40099
  ...e,
40093
40100
  conditions: [...e.conditions, jM()]
40094
40101
  }));
40095
40102
  }
40096
- function te(e) {
40103
+ function M(e) {
40097
40104
  h((t) => ({
40098
40105
  ...t,
40099
40106
  conditions: t.conditions.filter((t, n) => n !== e)
@@ -40136,7 +40143,7 @@ function FM() {
40136
40143
  children: /* @__PURE__ */ Y(R, {
40137
40144
  icon: /* @__PURE__ */ Y(ts, {}),
40138
40145
  loading: v,
40139
- onClick: j,
40146
+ onClick: A,
40140
40147
  children: "Seed Job Defaults"
40141
40148
  })
40142
40149
  })
@@ -40253,7 +40260,7 @@ function FM() {
40253
40260
  })
40254
40261
  }), /* @__PURE__ */ Y(Ji, {
40255
40262
  title: "Delete this rule?",
40256
- onConfirm: () => A(t),
40263
+ onConfirm: () => ee(t),
40257
40264
  children: /* @__PURE__ */ Y(K, {
40258
40265
  title: "Delete",
40259
40266
  children: /* @__PURE__ */ Y(R, {
@@ -40363,7 +40370,7 @@ function FM() {
40363
40370
  options: wM,
40364
40371
  value: e.operator,
40365
40372
  style: { width: 140 },
40366
- onChange: (e) => M(t, {
40373
+ onChange: (e) => j(t, {
40367
40374
  operator: e,
40368
40375
  value: "",
40369
40376
  compareField: ""
@@ -40386,7 +40393,7 @@ function FM() {
40386
40393
  options: b,
40387
40394
  style: { width: "100%" },
40388
40395
  placeholder: "Select or type field name",
40389
- onChange: (e) => M(t, { field: e[e.length - 1] ?? "" }),
40396
+ onChange: (e) => j(t, { field: e[e.length - 1] ?? "" }),
40390
40397
  filterOption: (e, t) => (t?.label ?? t?.value ?? "").toLowerCase().includes(e.toLowerCase())
40391
40398
  }), /* @__PURE__ */ X(SM, {
40392
40399
  type: "secondary",
@@ -40415,7 +40422,7 @@ function FM() {
40415
40422
  options: TM,
40416
40423
  style: { width: 200 },
40417
40424
  placeholder: "e.g. \"fulfilled\"",
40418
- onChange: (e) => M(t, { value: e[e.length - 1] ?? "" }),
40425
+ onChange: (e) => j(t, { value: e[e.length - 1] ?? "" }),
40419
40426
  filterOption: (e, t) => (t?.label ?? t?.value ?? "").toLowerCase().includes(e.toLowerCase())
40420
40427
  }), /* @__PURE__ */ X(SM, {
40421
40428
  type: "secondary",
@@ -40438,7 +40445,7 @@ function FM() {
40438
40445
  value: e.value || void 0,
40439
40446
  style: { width: 150 },
40440
40447
  placeholder: "Select scope",
40441
- onChange: (e) => M(t, { value: e })
40448
+ onChange: (e) => j(t, { value: e })
40442
40449
  }), /* @__PURE__ */ Y(SM, {
40443
40450
  type: "secondary",
40444
40451
  style: { fontSize: 11 },
@@ -40460,7 +40467,7 @@ function FM() {
40460
40467
  options: b,
40461
40468
  style: { width: 170 },
40462
40469
  placeholder: "Select or type field",
40463
- onChange: (e) => M(t, { compareField: e[e.length - 1] ?? "" }),
40470
+ onChange: (e) => j(t, { compareField: e[e.length - 1] ?? "" }),
40464
40471
  filterOption: (e, t) => (t?.label ?? t?.value ?? "").toLowerCase().includes(e.toLowerCase())
40465
40472
  }), /* @__PURE__ */ X(SM, {
40466
40473
  type: "secondary",
@@ -40476,7 +40483,7 @@ function FM() {
40476
40483
  icon: /* @__PURE__ */ Y(Ba, {}),
40477
40484
  size: "small",
40478
40485
  type: "text",
40479
- onClick: () => te(t)
40486
+ onClick: () => M(t)
40480
40487
  })
40481
40488
  })
40482
40489
  ]
@@ -40495,7 +40502,7 @@ function FM() {
40495
40502
  /* @__PURE__ */ Y(R, {
40496
40503
  size: "small",
40497
40504
  style: { marginBottom: 16 },
40498
- onClick: ee,
40505
+ onClick: te,
40499
40506
  children: "+ Add Condition"
40500
40507
  }),
40501
40508
  /* @__PURE__ */ X(Li, {
@@ -43821,7 +43828,7 @@ function vN() {
43821
43828
  [e]: t
43822
43829
  }));
43823
43830
  }
43824
- function A(e, t) {
43831
+ function ee(e, t) {
43825
43832
  d((n) => {
43826
43833
  let r = n.duplicateCheck ?? {}, i = [...r.stages ?? []];
43827
43834
  return i[e] = t, {
@@ -43833,7 +43840,7 @@ function vN() {
43833
43840
  };
43834
43841
  });
43835
43842
  }
43836
- function j() {
43843
+ function A() {
43837
43844
  h(!0);
43838
43845
  let e = {
43839
43846
  ...u,
@@ -43853,20 +43860,20 @@ function vN() {
43853
43860
  l(o.storage || "mongo"), q.success("Automations saved");
43854
43861
  }).catch((e) => q.error(e?.message || "Could not save automations")).finally(() => h(!1));
43855
43862
  }
43856
- function M() {
43863
+ function j() {
43857
43864
  if ((o.storage || "mongo") !== c) {
43858
43865
  Ki.confirm({
43859
43866
  title: "Change how this module persists writes?",
43860
43867
  content: `You're switching ${i} from "${c}" to "${o.storage}". ` + (o.storage === "mongo" ? "This module will stop calling its downstream service and this gateway will own the write + every Strategy below." : "This module will stop using the Strategies below and go back to calling its downstream service.") + " Make sure the downstream service / e2e checks are ready before confirming.",
43861
43868
  okText: "Confirm cutover",
43862
43869
  okButtonProps: { danger: !0 },
43863
- onOk: j
43870
+ onOk: A
43864
43871
  });
43865
43872
  return;
43866
43873
  }
43867
- j();
43874
+ A();
43868
43875
  }
43869
- let ee = [
43876
+ let te = [
43870
43877
  {
43871
43878
  title: "Source module",
43872
43879
  dataIndex: "sourceModule",
@@ -43904,7 +43911,7 @@ function vN() {
43904
43911
  children: "optional"
43905
43912
  })
43906
43913
  }
43907
- ], te = [
43914
+ ], M = [
43908
43915
  {
43909
43916
  title: "Source field",
43910
43917
  dataIndex: "sourceField",
@@ -44070,7 +44077,7 @@ function vN() {
44070
44077
  icon: /* @__PURE__ */ Y(Vo, {}),
44071
44078
  loading: m,
44072
44079
  disabled: !i,
44073
- onClick: M,
44080
+ onClick: j,
44074
44081
  children: "Save Automations"
44075
44082
  }),
44076
44083
  children: [/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }), /* @__PURE__ */ Y($, {
@@ -44409,7 +44416,7 @@ function vN() {
44409
44416
  style: { width: "100%" },
44410
44417
  placeholder: "email, contactNumber",
44411
44418
  value: e.fields ?? [],
44412
- onChange: (n) => A(t, {
44419
+ onChange: (n) => ee(t, {
44413
44420
  ...e,
44414
44421
  fields: n
44415
44422
  })
@@ -44425,7 +44432,7 @@ function vN() {
44425
44432
  size: "small",
44426
44433
  style: { width: "100%" },
44427
44434
  value: e.match ?? "all",
44428
- onChange: (n) => A(t, {
44435
+ onChange: (n) => ee(t, {
44429
44436
  ...e,
44430
44437
  match: n
44431
44438
  }),
@@ -44448,7 +44455,7 @@ function vN() {
44448
44455
  size: "small",
44449
44456
  style: { width: "100%" },
44450
44457
  value: e.weight ?? "strong",
44451
- onChange: (n) => A(t, {
44458
+ onChange: (n) => ee(t, {
44452
44459
  ...e,
44453
44460
  weight: n
44454
44461
  }),
@@ -44471,7 +44478,7 @@ function vN() {
44471
44478
  size: "small",
44472
44479
  placeholder: "A candidate with this email already exists — {name}, last updated {age}.",
44473
44480
  value: e.message ?? "",
44474
- onChange: (n) => A(t, {
44481
+ onChange: (n) => ee(t, {
44475
44482
  ...e,
44476
44483
  message: n.target.value
44477
44484
  })
@@ -44814,7 +44821,7 @@ function vN() {
44814
44821
  title: "Denormalizations",
44815
44822
  description: "Copy fields from ANOTHER module's record onto this payload before insert (e.g. a submission snapshotting job title/client).",
44816
44823
  rules: u.denormalizations ?? [],
44817
- columns: ee,
44824
+ columns: te,
44818
44825
  onAdd: () => y({
44819
44826
  index: null,
44820
44827
  rule: null
@@ -44830,7 +44837,7 @@ function vN() {
44830
44837
  title: "Array Enrichments",
44831
44838
  description: "Enrich a payload array of ids (e.g. recruitersData) into objects carrying looked-up fields (name, email) before insert.",
44832
44839
  rules: u.arrayEnrichments ?? [],
44833
- columns: te,
44840
+ columns: M,
44834
44841
  onAdd: () => x({
44835
44842
  index: null,
44836
44843
  rule: null
@@ -47146,7 +47153,7 @@ function vP({ title: e, description: t, selectedName: n, loading: r, saving: i,
47146
47153
  });
47147
47154
  }
47148
47155
  function yP({ onLogout: e }) {
47149
- 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([]), [A, j] = L(null), [M, ee] = L([]), [te, N] = L(!1), [ne, 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 = Ci(async () => {
47156
+ 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([]), [M, N] = L(!1), [ne, 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 = Ci(async () => {
47150
47157
  Ee(!0);
47151
47158
  try {
47152
47159
  let [e, t] = await Promise.all([xt(), Xt()]), n = uP(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
@@ -47182,7 +47189,7 @@ function yP({ onLogout: e }) {
47182
47189
  QO(),
47183
47190
  nk()
47184
47191
  ]), r = e.status === "fulfilled" ? e.value : [];
47185
- 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" ? gP(n.value) : []), j((r ?? [])[0]?.user_type_id ?? null);
47192
+ 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" ? gP(n.value) : []), A((r ?? [])[0]?.user_type_id ?? null);
47186
47193
  } catch (e) {
47187
47194
  q.error(e.message || "Unable to load admin data");
47188
47195
  } finally {
@@ -47217,15 +47224,15 @@ function yP({ onLogout: e }) {
47217
47224
  Fe();
47218
47225
  }, [Fe]), F(() => {
47219
47226
  queueMicrotask(() => {
47220
- if (!A) {
47221
- ee([]);
47227
+ if (!ee) {
47228
+ te([]);
47222
47229
  return;
47223
47230
  }
47224
- c(!0), console.log("DEBUG requesting role permissions for selectedUserTypeId=", A, "localStorage scope=", {
47231
+ c(!0), console.log("DEBUG requesting role permissions for selectedUserTypeId=", ee, "localStorage scope=", {
47225
47232
  tenantId: localStorage.getItem("tenantId"),
47226
47233
  businessId: localStorage.getItem("businessId"),
47227
47234
  businessUnitId: localStorage.getItem("businessUnitId")
47228
- }), rk(A).then((e) => {
47235
+ }), rk(ee).then((e) => {
47229
47236
  console.log("DEBUG raw groups from /get-role-details", e);
47230
47237
  let t = pP(e ?? []);
47231
47238
  console.log("DEBUG savedRows (jobs only)", t.filter((e) => mP(e) === "jobs" || mP(e) === "job"));
@@ -47243,15 +47250,15 @@ function yP({ onLogout: e }) {
47243
47250
  accessValue: n.get(`${r}:${i}`) ?? 0
47244
47251
  };
47245
47252
  }));
47246
- console.log("DEBUG final rows (jobs only)", r.filter((e) => mP(e) === "jobs" || mP(e) === "job")), ee(r);
47253
+ console.log("DEBUG final rows (jobs only)", r.filter((e) => mP(e) === "jobs" || mP(e) === "job")), te(r);
47247
47254
  }).catch((e) => q.error(e.message || "Unable to load role permissions")).finally(() => c(!1));
47248
47255
  });
47249
47256
  }, [
47250
- A,
47257
+ ee,
47251
47258
  E,
47252
47259
  O
47253
47260
  ]);
47254
- let Ie = I(() => w.find((e) => e.user_type_id === A), [A, w]), Le = I(() => w.reduce((e, t) => ({
47261
+ let Ie = I(() => w.find((e) => e.user_type_id === ee), [ee, w]), Le = I(() => w.reduce((e, t) => ({
47255
47262
  ...e,
47256
47263
  [t.user_type_id]: t.user_type_name
47257
47264
  }), {}), [w]), Re = I(() => f.reduce((e, t) => ({
@@ -47262,7 +47269,7 @@ function yP({ onLogout: e }) {
47262
47269
  user_type_name: Le[e.user_type_id]
47263
47270
  })), [Le, f]);
47264
47271
  F(() => {
47265
- if (!te) {
47272
+ if (!M) {
47266
47273
  ce([]);
47267
47274
  return;
47268
47275
  }
@@ -47284,7 +47291,7 @@ function yP({ onLogout: e }) {
47284
47291
  }, [
47285
47292
  ne,
47286
47293
  t,
47287
- te
47294
+ M
47288
47295
  ]);
47289
47296
  let Ve = I(() => {
47290
47297
  let e = se.map((e) => ({
@@ -47415,7 +47422,7 @@ function yP({ onLogout: e }) {
47415
47422
  }
47416
47423
  ];
47417
47424
  function Ge(e, t) {
47418
- ee((n) => {
47425
+ te((n) => {
47419
47426
  let r = n.filter((t) => t.key === e).length;
47420
47427
  return console.log("DEBUG updateRolePermission", {
47421
47428
  key: e,
@@ -47430,7 +47437,7 @@ function yP({ onLogout: e }) {
47430
47437
  async function Ke() {
47431
47438
  u(!0);
47432
47439
  try {
47433
- console.log("DEBUG saveRolePermissions jobs rows", M.filter((e) => mP(e) === "jobs" || mP(e) === "job")), await ik(A, M.map((e) => ({
47440
+ console.log("DEBUG saveRolePermissions jobs rows", j.filter((e) => mP(e) === "jobs" || mP(e) === "job")), await ik(ee, j.map((e) => ({
47434
47441
  menu_id: e.menuId,
47435
47442
  menu_name: e.menuName,
47436
47443
  menu_key: e.menuKey,
@@ -47495,10 +47502,10 @@ function yP({ onLogout: e }) {
47495
47502
  be("listView"), ve({
47496
47503
  kind: e,
47497
47504
  record: t
47498
- }), e === "role" && j(t.user_type_id);
47505
+ }), e === "role" && A(t.user_type_id);
47499
47506
  }
47500
47507
  function Qe(e, t) {
47501
- ee((n) => {
47508
+ te((n) => {
47502
47509
  let r = [...new Set(n.map(mP))], i = r.indexOf(e), a = i + t;
47503
47510
  if (i < 0 || a < 0 || a >= r.length) return n;
47504
47511
  [r[i], r[a]] = [r[a], r[i]];
@@ -47523,7 +47530,7 @@ function yP({ onLogout: e }) {
47523
47530
  created_by: t,
47524
47531
  visible_menu_ids: []
47525
47532
  }), i = r.user_type_id;
47526
- q.success(n ? "User type updated" : "User type created. Customize its menus and permissions."), fe(!1), await Pe(), j(i), n || (be("permissions"), ve({
47533
+ q.success(n ? "User type updated" : "User type created. Customize its menus and permissions."), fe(!1), await Pe(), A(i), n || (be("permissions"), ve({
47527
47534
  kind: "role",
47528
47535
  record: {
47529
47536
  ...e,
@@ -47930,7 +47937,7 @@ function yP({ onLogout: e }) {
47930
47937
  selectedName: Ie?.user_type_name,
47931
47938
  loading: s,
47932
47939
  saving: l,
47933
- rows: M,
47940
+ rows: j,
47934
47941
  onChange: Ge,
47935
47942
  onMove: Qe,
47936
47943
  onSave: Ke
@@ -47991,7 +47998,7 @@ function yP({ onLogout: e }) {
47991
47998
  /* @__PURE__ */ Y(Ki, {
47992
47999
  className: "admin-user-modal",
47993
48000
  title: ne ? "Edit User" : "Add User",
47994
- open: te,
48001
+ open: M,
47995
48002
  onCancel: () => N(!1),
47996
48003
  onOk: () => t.submit(),
47997
48004
  confirmLoading: P,
@@ -48554,11 +48561,11 @@ function QP() {
48554
48561
  attachments: [],
48555
48562
  showCc: !1,
48556
48563
  showBcc: !1
48557
- }), [x, S] = L(!_), [C, w] = L(!1), [T, E] = L([]), [D, O] = L(!1), [k, A] = L(!1), j = Di(!1), M = Di(""), ee = Di(0);
48564
+ }), [x, S] = L(!_), [C, w] = L(!1), [T, E] = L([]), [D, O] = L(!1), [k, ee] = L(!1), A = Di(!1), j = Di(""), te = Di(0);
48558
48565
  F(() => {
48559
- if (!WP(s) || j.current || wP(y.to).length > 0 || n.length === 0 || M.current === d) return;
48566
+ if (!WP(s) || A.current || wP(y.to).length > 0 || n.length === 0 || j.current === d) return;
48560
48567
  let e = !1;
48561
- return M.current = d, Promise.all(n.map((e) => yr(s, e).catch(() => null))).then((t) => {
48568
+ return j.current = d, Promise.all(n.map((e) => yr(s, e).catch(() => null))).then((t) => {
48562
48569
  if (e) return;
48563
48570
  let n = JP(t.map(YP).filter(Boolean), u);
48564
48571
  n.length && b((e) => wP(e.to).length > 0 ? e : {
@@ -48579,7 +48586,7 @@ function QP() {
48579
48586
  S(!0);
48580
48587
  return;
48581
48588
  }
48582
- let e = ++ee.current, t = !1;
48589
+ let e = ++te.current, t = !1;
48583
48590
  async function n() {
48584
48591
  S(!1), w(!0), b((e) => ({
48585
48592
  ...e,
@@ -48590,9 +48597,9 @@ function QP() {
48590
48597
  if (o.trim()) try {
48591
48598
  o = await hu(o, n.subject || a);
48592
48599
  } catch (n) {
48593
- !t && e === ee.current && q.warning(n?.message || "Mail content formatting failed. Showing original content.");
48600
+ !t && e === te.current && q.warning(n?.message || "Mail content formatting failed. Showing original content.");
48594
48601
  }
48595
- if (t || e !== ee.current) return;
48602
+ if (t || e !== te.current) return;
48596
48603
  b((e) => ({
48597
48604
  ...e,
48598
48605
  subject: n.subject || e.subject,
@@ -48605,16 +48612,16 @@ function QP() {
48605
48612
  showBcc: e.showBcc || !!n.bccMail?.length
48606
48613
  }));
48607
48614
  } catch (n) {
48608
- !t && e === ee.current && l && q.error(n?.message || "Could not load mail template for this Job ID");
48615
+ !t && e === te.current && l && q.error(n?.message || "Could not load mail template for this Job ID");
48609
48616
  } finally {
48610
- !t && e === ee.current && (S(!0), w(!1));
48617
+ !t && e === te.current && (S(!0), w(!1));
48611
48618
  }
48612
48619
  }
48613
48620
  return n(), () => {
48614
48621
  t = !0;
48615
48622
  };
48616
48623
  }, [_, l]);
48617
- function te(e = h) {
48624
+ function M(e = h) {
48618
48625
  let t = String(e ?? "").trim();
48619
48626
  if (!zP.test(t)) {
48620
48627
  v(""), t && q.warning("Enter a valid 24-character Job ID");
@@ -48632,7 +48639,7 @@ function QP() {
48632
48639
  return;
48633
48640
  }
48634
48641
  let n = t?.label ?? "";
48635
- g(String(n || (e ?? ""))), te(e);
48642
+ g(String(n || (e ?? ""))), M(e);
48636
48643
  }
48637
48644
  function ne(e) {
48638
48645
  let t = String(e ?? "").trim();
@@ -48648,7 +48655,7 @@ function QP() {
48648
48655
  let re = x && (!l || zP.test(_)) && wP(y.to).length + wP(y.cc).length + wP(y.bcc).length > 0 && TP(y.to) && TP(y.cc) && TP(y.bcc) && y.subject.trim() && y.contents.trim();
48649
48656
  async function P() {
48650
48657
  if (!(!re || k)) {
48651
- A(!0);
48658
+ ee(!0);
48652
48659
  try {
48653
48660
  await gu({
48654
48661
  jobId: _,
@@ -48666,12 +48673,12 @@ function QP() {
48666
48673
  } catch (e) {
48667
48674
  q.error(e?.message || "Failed to send mail");
48668
48675
  } finally {
48669
- A(!1);
48676
+ ee(!1);
48670
48677
  }
48671
48678
  }
48672
48679
  }
48673
48680
  function ie(e) {
48674
- e?.to !== y.to && (j.current = !0), b(e);
48681
+ e?.to !== y.to && (A.current = !0), b(e);
48675
48682
  }
48676
48683
  return /* @__PURE__ */ Y(Ri, {
48677
48684
  open: !0,
@@ -50532,10 +50539,10 @@ function HI({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
50532
50539
  let E = _.filter((e) => e.required), D = E.every((e) => {
50533
50540
  let t = d[e.name];
50534
50541
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0 || typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0);
50535
- }), O = (f.removedIds ?? []).length, k = l.length > O, A = E.some((e) => {
50542
+ }), O = (f.removedIds ?? []).length, k = l.length > O, ee = E.some((e) => {
50536
50543
  let t = d[e.name];
50537
50544
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0);
50538
- }), { handleOk: j, confirming: M, deleteError: ee, resetSubmitState: te } = VI({
50545
+ }), { handleOk: A, confirming: j, deleteError: te, resetSubmitState: M } = VI({
50539
50546
  form: o,
50540
50547
  config: t,
50541
50548
  api: a,
@@ -50544,17 +50551,17 @@ function HI({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
50544
50551
  dynamicOptions: y,
50545
50552
  extraData: x,
50546
50553
  removedIds: l,
50547
- removalOnlySubmit: !!t?.allowRemovalOnlySubmit && k && !A,
50554
+ removalOnlySubmit: !!t?.allowRemovalOnlySubmit && k && !ee,
50548
50555
  fields: _,
50549
50556
  onClose: T,
50550
50557
  onSubmit: i
50551
50558
  });
50552
50559
  F(() => {
50553
- e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []), te());
50560
+ e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []), M());
50554
50561
  }, [e, v]);
50555
50562
  let N = !!t?.autoSubmitWhenNoFields && _.length === 0;
50556
50563
  F(() => {
50557
- !e || !N || j();
50564
+ !e || !N || A();
50558
50565
  }, [e, N]);
50559
50566
  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;
50560
50567
  if (!t || !e || N) return null;
@@ -50586,15 +50593,15 @@ function HI({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
50586
50593
  }),
50587
50594
  okText: t.okText || "OK",
50588
50595
  cancelText: t.cancelText ?? "Cancel",
50589
- onOk: j,
50596
+ onOk: A,
50590
50597
  onCancel: () => T(),
50591
50598
  okButtonProps: {
50592
50599
  danger: t.okButtonDanger,
50593
50600
  disabled: le,
50594
- loading: M
50601
+ loading: j
50595
50602
  },
50596
- cancelButtonProps: { disabled: M },
50597
- closable: !M,
50603
+ cancelButtonProps: { disabled: j },
50604
+ closable: !j,
50598
50605
  maskClosable: !1,
50599
50606
  width: t.width ?? 480,
50600
50607
  centered: !0,
@@ -50607,7 +50614,7 @@ function HI({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
50607
50614
  count: ne,
50608
50615
  itemLabel: P,
50609
50616
  bodyText: se,
50610
- deleteError: ee
50617
+ deleteError: te
50611
50618
  }),
50612
50619
  /* @__PURE__ */ Y(RF, { footerNote: t.footerNote }),
50613
50620
  /* @__PURE__ */ Y(xI, {
@@ -51982,7 +51989,7 @@ function WR(e = {}) {
51982
51989
  };
51983
51990
  }
51984
51991
  function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
51985
- let a = n?.[0] ?? {}, o = t?.[0] ?? FT(a), [s, c] = L(null), [l, u] = L(!0), [d, f] = L([]), [p, m] = L(!1), [h, g] = L("vms"), [_, v] = L(null), [y, b] = L(null), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), [D, O] = L(!1), [k, A] = L({
51992
+ let a = n?.[0] ?? {}, o = t?.[0] ?? FT(a), [s, c] = L(null), [l, u] = L(!0), [d, f] = L([]), [p, m] = L(!1), [h, g] = L("vms"), [_, v] = L(null), [y, b] = L(null), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), [D, O] = L(!1), [k, ee] = L({
51986
51993
  to: "",
51987
51994
  cc: "",
51988
51995
  bcc: "",
@@ -52015,13 +52022,13 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
52015
52022
  e = !0;
52016
52023
  };
52017
52024
  }, []);
52018
- let j = async () => {
52025
+ let A = async () => {
52019
52026
  if (_) {
52020
52027
  if (h === "mail") {
52021
52028
  m(!1), w(!0), E(!0);
52022
52029
  try {
52023
52030
  let [e, t] = await Promise.all([wR(o).then(WR), UR(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
52024
- A({
52031
+ ee({
52025
52032
  to: MR(e.to, n, _, s, a),
52026
52033
  cc: MR(e.cc, n, _, s, a),
52027
52034
  bcc: MR(e.bcc, n, _, s, a),
@@ -52053,8 +52060,8 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
52053
52060
  S(!1);
52054
52061
  }
52055
52062
  }
52056
- }, M = !T && wP(k.to).length > 0 && TP(k.to) && TP(k.cc) && TP(k.bcc) && k.subject.trim() && k.contents.trim(), ee = async () => {
52057
- if (!_ || !M || D) return;
52063
+ }, j = !T && wP(k.to).length > 0 && TP(k.to) && TP(k.cc) && TP(k.bcc) && k.subject.trim() && k.contents.trim(), te = async () => {
52064
+ if (!_ || !j || D) return;
52058
52065
  O(!0);
52059
52066
  let e = {
52060
52067
  candidateProposedRate: _.proposedRate,
@@ -52088,7 +52095,7 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
52088
52095
  } finally {
52089
52096
  O(!1);
52090
52097
  }
52091
- }, te = I(() => ({
52098
+ }, M = I(() => ({
52092
52099
  submissionApprove: async ({ computed: e, referral: t }) => {
52093
52100
  v(e), b(t ?? null), g("vms"), m(!0);
52094
52101
  },
@@ -52125,7 +52132,7 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
52125
52132
  referralOptions: d,
52126
52133
  onAddReferral: () => e?.navigate?.("/referrals-create"),
52127
52134
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
52128
- actions: te,
52135
+ actions: M,
52129
52136
  onClose: () => i?.(),
52130
52137
  variant: "popup"
52131
52138
  }),
@@ -52134,7 +52141,7 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
52134
52141
  open: p,
52135
52142
  okText: "Approve",
52136
52143
  confirmLoading: x,
52137
- onOk: j,
52144
+ onOk: A,
52138
52145
  onCancel: () => {
52139
52146
  x || (m(!1), v(null), b(null));
52140
52147
  },
@@ -52173,8 +52180,8 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
52173
52180
  }), /* @__PURE__ */ Y(R, {
52174
52181
  type: "primary",
52175
52182
  loading: D,
52176
- disabled: !M,
52177
- onClick: ee,
52183
+ disabled: !j,
52184
+ onClick: te,
52178
52185
  children: "Send"
52179
52186
  })]
52180
52187
  }),
@@ -52187,7 +52194,7 @@ function GR({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
52187
52194
  children: /* @__PURE__ */ Y(na, { size: "large" })
52188
52195
  }) : /* @__PURE__ */ Y(LP, {
52189
52196
  value: k,
52190
- onChange: A,
52197
+ onChange: ee,
52191
52198
  moduleName: "submissions",
52192
52199
  ready: !T,
52193
52200
  title: "Submit Via Mail",
@@ -52795,11 +52802,11 @@ function wz() {
52795
52802
  contents: "",
52796
52803
  showCc: !1,
52797
52804
  showBcc: !1
52798
- }), [f, p] = L(!l), [m, h] = L(xz.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(xz.defaultPageSize), [A, j] = L(!1), [M, ee] = L([]);
52805
+ }), [f, p] = L(!l), [m, h] = L(xz.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(xz.defaultPageSize), [ee, A] = L(!1), [j, te] = L([]);
52799
52806
  F(() => {
52800
52807
  if (!l) return;
52801
52808
  let e = !1;
52802
- j(!0);
52809
+ A(!0);
52803
52810
  let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
52804
52811
  return Sz.getVendorList({
52805
52812
  jobId: l,
@@ -52813,7 +52820,7 @@ function wz() {
52813
52820
  }).catch(() => {
52814
52821
  e || (y([]), T(0));
52815
52822
  }).finally(() => {
52816
- e || j(!1);
52823
+ e || A(!1);
52817
52824
  }), () => {
52818
52825
  e = !0;
52819
52826
  };
@@ -52832,13 +52839,13 @@ function wz() {
52832
52839
  cc: e.ccMail?.length ? Array.isArray(e.ccMail) ? e.ccMail.join(", ") : String(e.ccMail) : t.cc
52833
52840
  }))).catch(() => {}).finally(() => p(!0));
52834
52841
  }, [l]);
52835
- let te = I(() => M.map((e) => v.find((t) => t.vendorId === e)?.vendorEmail ?? "").filter(Boolean), [M, v]), N = I(() => ({
52842
+ let M = I(() => j.map((e) => v.find((t) => t.vendorId === e)?.vendorEmail ?? "").filter(Boolean), [j, v]), N = I(() => ({
52836
52843
  ...u,
52837
- bcc: [.../* @__PURE__ */ new Set([...wP(u.bcc), ...te])].join(", "),
52838
- showBcc: u.showBcc || te.length > 0
52839
- }), [u, te]);
52844
+ bcc: [.../* @__PURE__ */ new Set([...wP(u.bcc), ...M])].join(", "),
52845
+ showBcc: u.showBcc || M.length > 0
52846
+ }), [u, M]);
52840
52847
  function ne(e) {
52841
- let t = new Set(te);
52848
+ let t = new Set(M);
52842
52849
  d({
52843
52850
  ...e,
52844
52851
  bcc: wP(e.bcc).filter((e) => !t.has(e)).join(", ")
@@ -52933,7 +52940,7 @@ function wz() {
52933
52940
  children: xz.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
52934
52941
  className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
52935
52942
  onClick: () => {
52936
- h(e.key), D(1), ee([]);
52943
+ h(e.key), D(1), te([]);
52937
52944
  },
52938
52945
  children: [
52939
52946
  e.label,
@@ -52950,13 +52957,13 @@ function wz() {
52950
52957
  rowKey: (e) => e.vendorId,
52951
52958
  columns: Cz,
52952
52959
  dataSource: oe,
52953
- loading: A,
52960
+ loading: ee,
52954
52961
  pagination: !1,
52955
52962
  size: "small",
52956
52963
  rowSelection: {
52957
- selectedRowKeys: M,
52964
+ selectedRowKeys: j,
52958
52965
  onChange: (e) => {
52959
- e.length > xz.maxVendorSelect || ee(e);
52966
+ e.length > xz.maxVendorSelect || te(e);
52960
52967
  }
52961
52968
  },
52962
52969
  scroll: { y: "calc(100vh - 340px)" }
@@ -52985,10 +52992,10 @@ function wz() {
52985
52992
  title: "Share",
52986
52993
  hint: "Select vendors or add email addresses",
52987
52994
  bccHint: "Vendor emails are added automatically",
52988
- afterBcc: M.length > 0 ? /* @__PURE__ */ X("div", {
52995
+ afterBcc: j.length > 0 ? /* @__PURE__ */ X("div", {
52989
52996
  className: "vendor-share__selected-count",
52990
52997
  children: [
52991
- M.length,
52998
+ j.length,
52992
52999
  " / ",
52993
53000
  xz.maxVendorSelect,
52994
53001
  " Vendors selected"
@@ -54661,7 +54668,7 @@ function vB({ open: e, onClose: t }) {
54661
54668
  q.error("Failed to delete action");
54662
54669
  }
54663
54670
  }
54664
- let A = [{
54671
+ let ee = [{
54665
54672
  key: "modules",
54666
54673
  label: "Modules",
54667
54674
  children: /* @__PURE__ */ X(na, {
@@ -54760,7 +54767,7 @@ function vB({ open: e, onClose: t }) {
54760
54767
  activeKey: n,
54761
54768
  onChange: r,
54762
54769
  size: "small",
54763
- items: A
54770
+ items: ee
54764
54771
  })
54765
54772
  });
54766
54773
  }
@@ -56013,7 +56020,7 @@ function YB() {
56013
56020
  let e = xs(), t = I(() => g(), []), n = Di(null), r = Di(null), [i, a] = L([]), [o, s] = L(""), [c, l] = L("idle"), [u, d] = L(!1), [f, p] = L(null), [m, h] = L([]), [_, v] = L("all"), [y, b] = L(null), [x, S] = L(null), [C, w] = L(!1), T = i.map((e) => ({
56014
56021
  value: e.modulename,
56015
56022
  label: e.modulename
56016
- })), E = GB(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = VB[c] ?? 0, A = m.find((e) => e.row_status === "invalid")?.id, j = Ci(() => {
56023
+ })), E = GB(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = VB[c] ?? 0, ee = m.find((e) => e.row_status === "invalid")?.id, A = Ci(() => {
56017
56024
  s(""), l("idle"), d(!1), p(null), h([]), v("all"), b(null), S(null), n.current && (n.current.value = "");
56018
56025
  }, []);
56019
56026
  F(() => {
@@ -56030,9 +56037,9 @@ function YB() {
56030
56037
  }
56031
56038
  e();
56032
56039
  }, [t?.name]);
56033
- let M = (e) => {
56040
+ let j = (e) => {
56034
56041
  s(e ?? ""), h([]), S(null), b(null), p(null), w(!1), l(e ? "module_set" : "idle");
56035
- }, ee = async (e) => {
56042
+ }, te = async (e) => {
56036
56043
  if (!e || !O) return;
56037
56044
  let n = e.name.split(".").pop()?.toLowerCase();
56038
56045
  if (!["xlsx", "csv"].includes(n)) {
@@ -56064,7 +56071,7 @@ function YB() {
56064
56071
  message: e.message || "Could not reach the server."
56065
56072
  }), l("error");
56066
56073
  }
56067
- }, te = async () => {
56074
+ }, M = async () => {
56068
56075
  try {
56069
56076
  let e = await fetch(RB);
56070
56077
  if (!e.ok) throw Error(`Template file not found (${e.status})`);
@@ -56160,7 +56167,7 @@ function YB() {
56160
56167
  placeholder: "Choose a module",
56161
56168
  options: T,
56162
56169
  value: o || void 0,
56163
- onChange: M
56170
+ onChange: j
56164
56171
  })
56165
56172
  }),
56166
56173
  o && /* @__PURE__ */ X(Ni, {
@@ -56168,7 +56175,7 @@ function YB() {
56168
56175
  title: "2. File upload",
56169
56176
  extra: /* @__PURE__ */ Y(R, {
56170
56177
  icon: /* @__PURE__ */ Y(Wa, {}),
56171
- onClick: te,
56178
+ onClick: M,
56172
56179
  children: "Download Sample Template"
56173
56180
  }),
56174
56181
  children: [
@@ -56189,7 +56196,7 @@ function YB() {
56189
56196
  },
56190
56197
  onDragLeave: () => d(!1),
56191
56198
  onDrop: (e) => {
56192
- e.preventDefault(), d(!1), ee(e.dataTransfer.files?.[0]);
56199
+ e.preventDefault(), d(!1), te(e.dataTransfer.files?.[0]);
56193
56200
  },
56194
56201
  children: [/* @__PURE__ */ Y(Fa, { className: "bulk-upload-icon" }), f ? /* @__PURE__ */ X("span", {
56195
56202
  className: "bulk-file-chip",
@@ -56206,7 +56213,7 @@ function YB() {
56206
56213
  hidden: !0,
56207
56214
  type: "file",
56208
56215
  accept: ".xlsx,.csv",
56209
- onChange: (e) => ee(e.target.files?.[0])
56216
+ onChange: (e) => te(e.target.files?.[0])
56210
56217
  }),
56211
56218
  D && /* @__PURE__ */ Y(Xi, {
56212
56219
  percent: c === "encoding" ? 45 : 82,
@@ -56242,9 +56249,9 @@ function YB() {
56242
56249
  view: _,
56243
56250
  onViewChange: v,
56244
56251
  onConfirm: N,
56245
- onReset: j,
56252
+ onReset: A,
56246
56253
  saving: c === "inserting",
56247
- firstInvalidRowId: A,
56254
+ firstInvalidRowId: ee,
56248
56255
  firstInvalidRowRef: r
56249
56256
  })
56250
56257
  ]
@@ -56283,7 +56290,7 @@ function YB() {
56283
56290
  }),
56284
56291
  /* @__PURE__ */ Y(R, {
56285
56292
  icon: /* @__PURE__ */ Y(Fo, {}),
56286
- onClick: j,
56293
+ onClick: A,
56287
56294
  children: "Upload another file"
56288
56295
  })
56289
56296
  ]
@@ -56492,7 +56499,7 @@ function sV() {
56492
56499
  typeKey: "module"
56493
56500
  }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = xs(), x = eV[f.typeKey], S = I(() => tV(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!nV(C), E = !!nV(w), D = !T, O = !T || !E, k = (e, t = []) => {
56494
56501
  e === "module" && r(t);
56495
- }, A = async () => {
56502
+ }, ee = async () => {
56496
56503
  l(!0);
56497
56504
  try {
56498
56505
  let e = await tO(eV.module.dbName);
@@ -56502,7 +56509,7 @@ function sV() {
56502
56509
  } finally {
56503
56510
  l(!1);
56504
56511
  }
56505
- }, j = Ci(async (t) => {
56512
+ }, A = Ci(async (t) => {
56506
56513
  let n = nV(t);
56507
56514
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
56508
56515
  d(!0);
@@ -56519,7 +56526,7 @@ function sV() {
56519
56526
  d(!1);
56520
56527
  }
56521
56528
  }
56522
- }, [e]), M = Ci(async (t, n, r) => {
56529
+ }, [e]), j = Ci(async (t, n, r) => {
56523
56530
  let i = nV(t), a = nV(n);
56524
56531
  if (!i || !a) {
56525
56532
  e.setFieldsValue({ step_order: void 0 });
@@ -56535,18 +56542,18 @@ function sV() {
56535
56542
  }
56536
56543
  }, [e]);
56537
56544
  F(() => {
56538
- Promise.resolve().then(A);
56545
+ Promise.resolve().then(ee);
56539
56546
  }, []), F(() => {
56540
- Promise.resolve().then(() => j(C));
56541
- }, [j, C]), F(() => {
56542
- Promise.resolve().then(() => M(C, w, i));
56547
+ Promise.resolve().then(() => A(C));
56548
+ }, [A, C]), F(() => {
56549
+ Promise.resolve().then(() => j(C, w, i));
56543
56550
  }, [
56544
56551
  i,
56545
- M,
56552
+ j,
56546
56553
  w,
56547
56554
  C
56548
56555
  ]);
56549
- let ee = async (t) => {
56556
+ let te = async (t) => {
56550
56557
  let n = {
56551
56558
  module: nV(t.module),
56552
56559
  flow: nV(t.flow),
@@ -56567,7 +56574,7 @@ function sV() {
56567
56574
  } finally {
56568
56575
  y(!1);
56569
56576
  }
56570
- }, te = (t, n) => {
56577
+ }, M = (t, n) => {
56571
56578
  e.setFieldsValue({ [t]: nV(n) });
56572
56579
  }, N = (t) => {
56573
56580
  e.setFieldsValue({
@@ -56652,7 +56659,7 @@ function sV() {
56652
56659
  children: " *"
56653
56660
  })] }),
56654
56661
  initialValues: $B,
56655
- onFinish: ee,
56662
+ onFinish: te,
56656
56663
  autoComplete: "off",
56657
56664
  children: [/* @__PURE__ */ Y(Ni, {
56658
56665
  className: "v1-card",
@@ -56753,7 +56760,7 @@ function sV() {
56753
56760
  disabled: O,
56754
56761
  placeholder: "Enter description",
56755
56762
  showCount: !0,
56756
- onBlur: (e) => te("description", e.target.value)
56763
+ onBlur: (e) => M("description", e.target.value)
56757
56764
  })
56758
56765
  })
56759
56766
  }),
@@ -56767,7 +56774,7 @@ function sV() {
56767
56774
  maxLength: 255,
56768
56775
  disabled: O,
56769
56776
  placeholder: "Enter target",
56770
- onBlur: (e) => te("target", e.target.value)
56777
+ onBlur: (e) => M("target", e.target.value)
56771
56778
  })
56772
56779
  })
56773
56780
  }),
@@ -56782,7 +56789,7 @@ function sV() {
56782
56789
  disabled: O,
56783
56790
  placeholder: "Enter tags",
56784
56791
  prefix: /* @__PURE__ */ Y($o, { className: "v1-input-icon" }),
56785
- onBlur: (e) => te("tags", e.target.value)
56792
+ onBlur: (e) => M("tags", e.target.value)
56786
56793
  })
56787
56794
  })
56788
56795
  }),
@@ -56796,7 +56803,7 @@ function sV() {
56796
56803
  rows: 4,
56797
56804
  disabled: O,
56798
56805
  placeholder: "Enter value",
56799
- onBlur: (e) => te("value", e.target.value)
56806
+ onBlur: (e) => M("value", e.target.value)
56800
56807
  })
56801
56808
  })
56802
56809
  }),
@@ -56810,7 +56817,7 @@ function sV() {
56810
56817
  rows: 4,
56811
56818
  disabled: O,
56812
56819
  placeholder: "Enter expected result",
56813
- onBlur: (e) => te("expected", e.target.value)
56820
+ onBlur: (e) => M("expected", e.target.value)
56814
56821
  })
56815
56822
  })
56816
56823
  })
@@ -56945,7 +56952,7 @@ function hV(e, t) {
56945
56952
  })));
56946
56953
  }
56947
56954
  function gV() {
56948
- let [e] = B.useForm(), t = xs(), [n] = Cs(), r = n.get("edit"), i = !!r, a = I(() => g(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(XB), [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), A = !!D, j = !!O, M = I(() => mV(m, k), [m, k]), ee = I(() => dV(o, "modulename"), [o]), te = I(() => dV(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 = Ci(async () => {
56955
+ let [e] = B.useForm(), t = xs(), [n] = Cs(), r = n.get("edit"), i = !!r, a = I(() => g(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(XB), [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(() => mV(m, k), [m, k]), te = I(() => dV(o, "modulename"), [o]), M = I(() => dV(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 = Ci(async () => {
56949
56956
  try {
56950
56957
  let e = await rO();
56951
56958
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
@@ -57174,7 +57181,7 @@ function gV() {
57174
57181
  optionFilterProp: "label",
57175
57182
  loading: _,
57176
57183
  placeholder: "Select module",
57177
- options: ee,
57184
+ options: te,
57178
57185
  onChange: (t) => {
57179
57186
  let n = o.find((e) => e.id === t)?.modulename ?? "";
57180
57187
  e.setFieldsValue({
@@ -57205,10 +57212,10 @@ function gV() {
57205
57212
  allowClear: !0,
57206
57213
  showSearch: !0,
57207
57214
  optionFilterProp: "label",
57208
- disabled: !A,
57215
+ disabled: !ee,
57209
57216
  loading: y,
57210
- placeholder: A ? "Select submodule" : "Select module first",
57211
- options: te,
57217
+ placeholder: ee ? "Select submodule" : "Select module first",
57218
+ options: M,
57212
57219
  onChange: (t) => {
57213
57220
  e.setFieldsValue({
57214
57221
  submodule: t,
@@ -57234,7 +57241,7 @@ function gV() {
57234
57241
  name: "scenario",
57235
57242
  valuePropName: "checked",
57236
57243
  children: /* @__PURE__ */ Y(W, {
57237
- disabled: !j,
57244
+ disabled: !A,
57238
57245
  checkedChildren: "Positive",
57239
57246
  unCheckedChildren: "Negative"
57240
57247
  })
@@ -57256,7 +57263,7 @@ function gV() {
57256
57263
  ]
57257
57264
  })
57258
57265
  }),
57259
- j && /* @__PURE__ */ X(Ni, {
57266
+ A && /* @__PURE__ */ X(Ni, {
57260
57267
  className: "v1-card zt-fall",
57261
57268
  title: /* @__PURE__ */ X(U, {
57262
57269
  size: 8,
@@ -57332,13 +57339,13 @@ function gV() {
57332
57339
  label: "Key",
57333
57340
  name: "key",
57334
57341
  rules: [{
57335
- required: M.key,
57342
+ required: j.key,
57336
57343
  message: "Key is required for this action"
57337
57344
  }],
57338
57345
  children: /* @__PURE__ */ Y(V, {
57339
57346
  maxLength: 255,
57340
- disabled: k && !M.key,
57341
- placeholder: k ? M.key ? "Required — Enter selector / locator" : "Not needed for this action" : "Select an action first"
57347
+ disabled: k && !j.key,
57348
+ placeholder: k ? j.key ? "Required — Enter selector / locator" : "Not needed for this action" : "Select an action first"
57342
57349
  })
57343
57350
  })
57344
57351
  }),
@@ -57349,7 +57356,7 @@ function gV() {
57349
57356
  label: "Value",
57350
57357
  name: "value",
57351
57358
  rules: [{
57352
- required: M.value,
57359
+ required: j.value,
57353
57360
  message: "Value is required for this action"
57354
57361
  }],
57355
57362
  children: /* @__PURE__ */ Y(V.TextArea, {
@@ -57358,8 +57365,8 @@ function gV() {
57358
57365
  minRows: 1,
57359
57366
  maxRows: 4
57360
57367
  },
57361
- disabled: k && !M.value,
57362
- placeholder: k ? M.value ? "Required — Enter value" : "Not needed for this action" : "Select an action first"
57368
+ disabled: k && !j.value,
57369
+ placeholder: k ? j.value ? "Required — Enter value" : "Not needed for this action" : "Select an action first"
57363
57370
  })
57364
57371
  })
57365
57372
  }),
@@ -57370,13 +57377,13 @@ function gV() {
57370
57377
  label: "Expected",
57371
57378
  name: "expected",
57372
57379
  rules: [{
57373
- required: M.expected,
57380
+ required: j.expected,
57374
57381
  message: "Expected result is required for this action"
57375
57382
  }],
57376
57383
  children: /* @__PURE__ */ Y(V.TextArea, {
57377
57384
  rows: 2,
57378
- disabled: k && !M.expected,
57379
- placeholder: k ? M.expected ? "Required — Enter expected result" : "Not needed for this action" : "Select an action first"
57385
+ disabled: k && !j.expected,
57386
+ placeholder: k ? j.expected ? "Required — Enter expected result" : "Not needed for this action" : "Select an action first"
57380
57387
  })
57381
57388
  })
57382
57389
  }),
@@ -57414,7 +57421,7 @@ function gV() {
57414
57421
  })]
57415
57422
  })]
57416
57423
  }, `${D}-${O}`),
57417
- j && /* @__PURE__ */ Y(Ni, {
57424
+ A && /* @__PURE__ */ Y(Ni, {
57418
57425
  className: "v1-card zt-fall",
57419
57426
  title: /* @__PURE__ */ X(U, {
57420
57427
  size: 6,
@@ -58175,7 +58182,7 @@ function BV() {
58175
58182
  let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(XB), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
58176
58183
  open: !1,
58177
58184
  typeKey: "module"
58178
- }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = xs(), T = jV[g.typeKey], E = I(() => FV(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!IV(D), j = !!IV(O), M = !A, ee = !A || !j, te = I(() => NV(u, k), [u, k]), N = (e, t = []) => {
58185
+ }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = xs(), T = jV[g.typeKey], E = I(() => FV(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), ee = !!IV(D), A = !!IV(O), j = !ee, te = !ee || !A, M = I(() => NV(u, k), [u, k]), N = (e, t = []) => {
58179
58186
  e === "module" && r(t);
58180
58187
  }, ne = async () => {
58181
58188
  p(!0);
@@ -58423,7 +58430,7 @@ function BV() {
58423
58430
  children: /* @__PURE__ */ Y(ki, {
58424
58431
  maxLength: 100,
58425
58432
  allowClear: !0,
58426
- disabled: M,
58433
+ disabled: j,
58427
58434
  options: o,
58428
58435
  placeholder: m ? "Loading flows" : "Enter flow",
58429
58436
  onChange: ce,
@@ -58454,7 +58461,7 @@ function BV() {
58454
58461
  children: /* @__PURE__ */ Y(H, {
58455
58462
  allowClear: !0,
58456
58463
  showSearch: !0,
58457
- disabled: ee,
58464
+ disabled: te,
58458
58465
  optionFilterProp: "label",
58459
58466
  placeholder: "Select action",
58460
58467
  options: c,
@@ -58470,7 +58477,7 @@ function BV() {
58470
58477
  children: /* @__PURE__ */ Y(V.TextArea, {
58471
58478
  rows: 3,
58472
58479
  maxLength: 255,
58473
- disabled: ee,
58480
+ disabled: te,
58474
58481
  placeholder: "Enter description",
58475
58482
  showCount: !0,
58476
58483
  onBlur: (e) => oe("description", e.target.value)
@@ -58484,13 +58491,13 @@ function BV() {
58484
58491
  label: "Key",
58485
58492
  name: "target",
58486
58493
  rules: [{
58487
- required: te.key,
58494
+ required: M.key,
58488
58495
  message: "Key is required for this action"
58489
58496
  }],
58490
58497
  children: /* @__PURE__ */ Y(V, {
58491
58498
  maxLength: 255,
58492
- disabled: ee || !!k && !te.key,
58493
- placeholder: ee ? "Select module and flow first" : k ? te.key ? "Required — Enter selector / locator" : "Not needed for this action" : "Select an action first",
58499
+ disabled: te || !!k && !M.key,
58500
+ placeholder: te ? "Select module and flow first" : k ? M.key ? "Required — Enter selector / locator" : "Not needed for this action" : "Select an action first",
58494
58501
  onBlur: (e) => oe("target", e.target.value)
58495
58502
  })
58496
58503
  })
@@ -58503,7 +58510,7 @@ function BV() {
58503
58510
  name: "tags",
58504
58511
  children: /* @__PURE__ */ Y(V, {
58505
58512
  maxLength: 200,
58506
- disabled: ee,
58513
+ disabled: te,
58507
58514
  placeholder: "Enter tags",
58508
58515
  prefix: /* @__PURE__ */ Y($o, { className: "v1-input-icon" }),
58509
58516
  onBlur: (e) => oe("tags", e.target.value)
@@ -58517,13 +58524,13 @@ function BV() {
58517
58524
  label: "Value",
58518
58525
  name: "value",
58519
58526
  rules: [{
58520
- required: te.value,
58527
+ required: M.value,
58521
58528
  message: "Value is required for this action"
58522
58529
  }],
58523
58530
  children: /* @__PURE__ */ Y(V.TextArea, {
58524
58531
  rows: 4,
58525
- disabled: ee || !!k && !te.value,
58526
- placeholder: ee ? "Select module and flow first" : k ? te.value ? "Required — Enter value" : "Not needed for this action" : "Select an action first",
58532
+ disabled: te || !!k && !M.value,
58533
+ placeholder: te ? "Select module and flow first" : k ? M.value ? "Required — Enter value" : "Not needed for this action" : "Select an action first",
58527
58534
  onBlur: (e) => oe("value", e.target.value)
58528
58535
  })
58529
58536
  })
@@ -58535,13 +58542,13 @@ function BV() {
58535
58542
  label: "Expected",
58536
58543
  name: "expected",
58537
58544
  rules: [{
58538
- required: te.expected,
58545
+ required: M.expected,
58539
58546
  message: "Expected result is required for this action"
58540
58547
  }],
58541
58548
  children: /* @__PURE__ */ Y(V.TextArea, {
58542
58549
  rows: 4,
58543
- disabled: ee || !!k && !te.expected,
58544
- placeholder: ee ? "Select module and flow first" : k ? te.expected ? "Required — Enter expected result" : "Not needed for this action" : "Select an action first",
58550
+ disabled: te || !!k && !M.expected,
58551
+ placeholder: te ? "Select module and flow first" : k ? M.expected ? "Required — Enter expected result" : "Not needed for this action" : "Select an action first",
58545
58552
  onBlur: (e) => oe("expected", e.target.value)
58546
58553
  })
58547
58554
  })
@@ -58554,7 +58561,7 @@ function BV() {
58554
58561
  type: "primary",
58555
58562
  htmlType: "submit",
58556
58563
  loading: S,
58557
- disabled: ee,
58564
+ disabled: te,
58558
58565
  children: "Submit"
58559
58566
  }), /* @__PURE__ */ Y(R, {
58560
58567
  onClick: () => {
@@ -58947,9 +58954,9 @@ async function _H(e, t, n, r = 10, i = 0, a = {}) {
58947
58954
  }
58948
58955
  //#endregion
58949
58956
  //#region src/index.js
58950
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-08-25T14:04:35.653Z");
58957
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-08-27T07:51:56.205Z");
58951
58958
  var vH = Pz, yH = TO(MB), bH = TO(PB), xH = TO(YB), SH = TO(sV), CH = TO(gV), wH = TO(yV), TH = TO(SV), EH = TO(TV), DH = TO(DV), OH = TO(BV), kH = TO(HV);
58952
58959
  //#endregion
58953
- export { w as ADMIN_API_URL, D as ADMIN_APP_ID, l as APP_ID, E as AUTH_URL, Yg as ActivityNotesCard, Wg as ActivityTab, hz as AddBatchCandidatePopup, Dg as AddFormV1, Pz as AdminDashboard, yP as AdminDashboardContent, vH as AdminPage, Og as AppAlert, Gr as AppButton, JD as AppShell, rT as ApprovalActionBar, Xg as AssigneeAvatars, VD as AuthGuard, ab as BILLING_STATUS_FLOW, UC as BOOLEAN_API_KEYS, YS as BOOLEAN_PARSEABLE_API_KEYS, Zg as BULK_UPLOAD_DEFAULT_ACCEPT, Qg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Ir as Breadcrumb, xH as BulkUploadPage, o_ as BulkUploadPanel, a as CANDIDATES_URL, DT as CONTRACT_C2C, ET as CONTRACT_W2, mv as CURRENCY_SYMBOLS, Vs as CalendarCard, CP as CoreThemeAdminApp, SP as CoreThemeAdminRoutes, Hc as CustomPagination, Tw as DEFAULT_HOURS_POLICY, Yw as DayLogModal, y_ as DescriptionBlock, sx as DetailHeaderCard, mx as DetailViewPage, iy as DetailViewV1, Qr as DocumentViewer, Hl as DynamicCards, HI as DynamicPopup, bz as DynamicPopupRoute, Gs as DynamicTabs, fS as EditFormV1, AC as FIELD_TYPE_REGISTRY, vT as FINANCE_APPROVAL_CONFIG, dT as FINANCE_TYPE_CFO, uT as FINANCE_TYPE_ONBOARDING_MANAGER, mT as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, fT as FINANCE_TYPE_ONLY_FINANCE, lT as FINANCE_TYPE_SUBMISSION_MANAGER, pT as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, ME as FileListCard, dE as FinanceApprovalPanel, Bb as FinanceAvatar, Wb as FinanceBadge, aT as FinanceDayCell, Mb as FinanceDivider, Vb as FinanceEmployeeCell, kb as FinanceEmptyState, Nb as FinanceEquation, Lb as FinanceHistoryTimeline, Ob as FinanceHoursGrid, Db as FinanceKpiRow, jb as FinanceLine, ww as FinanceListToolbar, Gb as FinanceMarginBadge, Ub as FinanceMoneyCell, Jb as FinanceRecordsTable, Kb as FinanceRowChevron, Ab as FinanceSection, Eb as FinanceStatusPill, Hb as FinanceTextCell, sT as FinanceTimesheetAnalysis, Pb as FinanceWorkflowSteps, Ew as HOURS_MESSAGES, sD as Header, ql as HierarchyUserFilter, t as JOBS_URL, yH as LegacyAdminPage, eh as ListView, kH as LmsHomePage, OH as LmsTestForm, YD as Login, QP as MailPopup, wH as ManageModules, TH as ManageSubmodules, xS as ModuleRowActions, nT as NotesPanel, Jg as NotesTab, ob as PAYROLL_STATUS_FLOW, oz as POPUP_CONFIGS, OS as ParamCardView, PS as ParamListView, Rw as PeriodBadgeTag, kF as PreviewPopup, wO as ProjectSelect, tT as ProofUploadPreview, Qw as QuickLogBar, Xw as QuickLogSelectionBar, Zw as RejectionReasonModal, o as SUBMISSIONS_URL, hw as SearchBuilderV1, LD as Sidebar, _w as StatusBadge, Lw as StatusBadgeTag, bH as StickyNotesFullPage, yw as StylishDynamicTabs, xw as TemplateEditor, SH as TestForm, DH as TestingHomePage, Ig as TimelineGroups, Kw as TimesheetDayCell, bt as TipTapEditor, Nz as UserForm, wz as VendorShareDrawer, qf as ViewSummaryWidget, FF as WizardPopup, EH as ZinnextTableView, CH as ZinnextTestForm, Jn as appNow, Se as applyIntegrationStatus, Cc as approveSubmission, r_ as buildAcceptAttr, JC as buildBooleanRequest, bb as buildCsv, mb as buildDailyRows, Ww as buildDayGradient, QT as buildRateHistoryEntries, _b as buildWeeklyRollup, h as clearSelectedProject, et as colors, WT as computeFinance, Mw as computeHoursPolicy, vb as computeMarginBand, Rn as conditionMatches, r as configureCoreTheme, Qt as configuredFieldLabel, hH as createAllWorkflowsListFetcher, lH as createMergedListFetcher, nH as createModuleListFetchAdapter, uH as createWorkflowStageListFetcher, hv as currencySymbol, JV as defaultMergeRow, ur as deleteIntegrationConfig, pb as deriveDayStats, Pw as describeCapacity, wb as downloadCsv, fr as evaluateShowIfWith, RT as findEmployerRow, IT as flattenGroups, xv as formatAmount, ee as formatApp, Wn as formatAppDateTime, n_ as formatFileSize, $T as formatFinanceMoney, Xy as formatHours, Sv as formatMoney, Qy as formatPercent, Cv as formatRate, gn as getActivity, gH as getAllWorkflowsModuleList, Ke as getAppTimeZone, nb as getApprovalDate, li as getBgcIntegrationConfig, sn as getBgcIntegrationSummary, sb as getBillingActionStates, IC as getBooleanEligibleTypes, u as getCurrentRoleName, Sb as getFieldLabel, MC as getFieldType, t_ as getFileExtension, CT as getFinanceApprovalConfig, xE as getFormGroupsRaw, he as getIntegrationConfig, de as getIntegrationConfigs, tt as getIntegrationSummary, zc as getModuleConfig, yr as getModuleDataDetail, cb as getPayrollActionStates, Vc as getPeriodBadgeConfig, g as getSelectedProject, C as getStoredToken, d as getStoredUser, f as getUserRoles, wc as getVMSApprove, Cb as getValueStyle, _H as getWorkflowStageModuleList, lb as getWorkflowSteps, tb as humanizeEvent, Th as i, xb as indexFieldConfig, $y as initialsOf, $S as insertTokenAtCursor, NC as isBooleanEligible, ZS as isBooleanParsable, y as isTester, m as logout, TT as marginIncludesReferral, UT as matchLocationTax, Sx as n, BT as normalizeContract, s_ as r, _v as rateUnitLabel, yv as rateUnitShort, Nw as reconcileHours, jC as registerFieldType, Ec as rejectSubmission, Vg as resolveActivityMeta, GT as resolveAndCompute, Aw as resolveDayKind, HT as resolveFinanceInputs, KV as resolveMergeKey, KV as resolveMergedListKey, wT as resolveRejectionReason, SE as resolveSubmissionFinance, lt as saveBgcIntegrationConfig, Lr as saveIntegrationConfig, s as setSelectedProject, ln as showIfConditions, dH as stageCountKey, XD as t, un as testIntegrationConnection, it as toApp, bv as toNumber, ve as tzLabel, Ae as tzShortLabel, Ku as useDropdownFields, Jf as useDropdownValues, NE as useEditForm, qu as useFieldConfig, Ju as useFilterFields, ud as useMenuPermission, mS as useModuleActions, dx as useRecordRefresh, QS as validateBooleanQuery, i_ as validateBulkFile, n as withAdminAppId, i as withAppId, TO as withAuthGuard };
58960
+ export { w as ADMIN_API_URL, D as ADMIN_APP_ID, l as APP_ID, E as AUTH_URL, Yg as ActivityNotesCard, Wg as ActivityTab, hz as AddBatchCandidatePopup, Dg as AddFormV1, Pz as AdminDashboard, yP as AdminDashboardContent, vH as AdminPage, Og as AppAlert, Gr as AppButton, JD as AppShell, rT as ApprovalActionBar, Xg as AssigneeAvatars, VD as AuthGuard, ab as BILLING_STATUS_FLOW, UC as BOOLEAN_API_KEYS, YS as BOOLEAN_PARSEABLE_API_KEYS, Zg as BULK_UPLOAD_DEFAULT_ACCEPT, Qg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Ir as Breadcrumb, xH as BulkUploadPage, o_ as BulkUploadPanel, a as CANDIDATES_URL, DT as CONTRACT_C2C, ET as CONTRACT_W2, mv as CURRENCY_SYMBOLS, Vs as CalendarCard, CP as CoreThemeAdminApp, SP as CoreThemeAdminRoutes, Hc as CustomPagination, Tw as DEFAULT_HOURS_POLICY, Yw as DayLogModal, y_ as DescriptionBlock, sx as DetailHeaderCard, mx as DetailViewPage, iy as DetailViewV1, Qr as DocumentViewer, Hl as DynamicCards, HI as DynamicPopup, bz as DynamicPopupRoute, Gs as DynamicTabs, fS as EditFormV1, AC as FIELD_TYPE_REGISTRY, vT as FINANCE_APPROVAL_CONFIG, dT as FINANCE_TYPE_CFO, uT as FINANCE_TYPE_ONBOARDING_MANAGER, mT as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, fT as FINANCE_TYPE_ONLY_FINANCE, lT as FINANCE_TYPE_SUBMISSION_MANAGER, pT as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, ME as FileListCard, dE as FinanceApprovalPanel, Bb as FinanceAvatar, Wb as FinanceBadge, aT as FinanceDayCell, Mb as FinanceDivider, Vb as FinanceEmployeeCell, kb as FinanceEmptyState, Nb as FinanceEquation, Lb as FinanceHistoryTimeline, Ob as FinanceHoursGrid, Db as FinanceKpiRow, jb as FinanceLine, ww as FinanceListToolbar, Gb as FinanceMarginBadge, Ub as FinanceMoneyCell, Jb as FinanceRecordsTable, Kb as FinanceRowChevron, Ab as FinanceSection, Eb as FinanceStatusPill, Hb as FinanceTextCell, sT as FinanceTimesheetAnalysis, Pb as FinanceWorkflowSteps, Ew as HOURS_MESSAGES, sD as Header, ql as HierarchyUserFilter, t as JOBS_URL, yH as LegacyAdminPage, eh as ListView, kH as LmsHomePage, OH as LmsTestForm, YD as Login, QP as MailPopup, wH as ManageModules, TH as ManageSubmodules, xS as ModuleRowActions, nT as NotesPanel, Jg as NotesTab, ob as PAYROLL_STATUS_FLOW, oz as POPUP_CONFIGS, OS as ParamCardView, PS as ParamListView, Rw as PeriodBadgeTag, kF as PreviewPopup, wO as ProjectSelect, tT as ProofUploadPreview, Qw as QuickLogBar, Xw as QuickLogSelectionBar, Zw as RejectionReasonModal, o as SUBMISSIONS_URL, hw as SearchBuilderV1, LD as Sidebar, _w as StatusBadge, Lw as StatusBadgeTag, bH as StickyNotesFullPage, yw as StylishDynamicTabs, xw as TemplateEditor, SH as TestForm, DH as TestingHomePage, Ig as TimelineGroups, Kw as TimesheetDayCell, bt as TipTapEditor, Nz as UserForm, wz as VendorShareDrawer, qf as ViewSummaryWidget, FF as WizardPopup, EH as ZinnextTableView, CH as ZinnextTestForm, Jn as appNow, Se as applyIntegrationStatus, Cc as approveSubmission, r_ as buildAcceptAttr, JC as buildBooleanRequest, bb as buildCsv, mb as buildDailyRows, Ww as buildDayGradient, QT as buildRateHistoryEntries, _b as buildWeeklyRollup, h as clearSelectedProject, et as colors, WT as computeFinance, Mw as computeHoursPolicy, vb as computeMarginBand, Rn as conditionMatches, r as configureCoreTheme, Qt as configuredFieldLabel, hH as createAllWorkflowsListFetcher, lH as createMergedListFetcher, nH as createModuleListFetchAdapter, uH as createWorkflowStageListFetcher, hv as currencySymbol, JV as defaultMergeRow, ur as deleteIntegrationConfig, pb as deriveDayStats, Pw as describeCapacity, wb as downloadCsv, fr as evaluateShowIfWith, RT as findEmployerRow, IT as flattenGroups, xv as formatAmount, te as formatApp, Wn as formatAppDateTime, n_ as formatFileSize, $T as formatFinanceMoney, Xy as formatHours, Sv as formatMoney, Qy as formatPercent, Cv as formatRate, gn as getActivity, gH as getAllWorkflowsModuleList, Ke as getAppTimeZone, nb as getApprovalDate, li as getBgcIntegrationConfig, sn as getBgcIntegrationSummary, sb as getBillingActionStates, IC as getBooleanEligibleTypes, u as getCurrentRoleName, Sb as getFieldLabel, MC as getFieldType, t_ as getFileExtension, CT as getFinanceApprovalConfig, xE as getFormGroupsRaw, he as getIntegrationConfig, de as getIntegrationConfigs, tt as getIntegrationSummary, zc as getModuleConfig, yr as getModuleDataDetail, cb as getPayrollActionStates, Vc as getPeriodBadgeConfig, g as getSelectedProject, C as getStoredToken, d as getStoredUser, f as getUserRoles, wc as getVMSApprove, Cb as getValueStyle, _H as getWorkflowStageModuleList, lb as getWorkflowSteps, tb as humanizeEvent, Th as i, xb as indexFieldConfig, $y as initialsOf, $S as insertTokenAtCursor, NC as isBooleanEligible, ZS as isBooleanParsable, y as isTester, m as logout, TT as marginIncludesReferral, UT as matchLocationTax, Sx as n, BT as normalizeContract, s_ as r, _v as rateUnitLabel, yv as rateUnitShort, Nw as reconcileHours, jC as registerFieldType, Ec as rejectSubmission, Vg as resolveActivityMeta, GT as resolveAndCompute, Aw as resolveDayKind, HT as resolveFinanceInputs, KV as resolveMergeKey, KV as resolveMergedListKey, wT as resolveRejectionReason, SE as resolveSubmissionFinance, lt as saveBgcIntegrationConfig, Lr as saveIntegrationConfig, s as setSelectedProject, ln as showIfConditions, dH as stageCountKey, XD as t, un as testIntegrationConnection, it as toApp, bv as toNumber, ve as tzLabel, Ae as tzShortLabel, Ku as useDropdownFields, Jf as useDropdownValues, NE as useEditForm, qu as useFieldConfig, Ju as useFilterFields, ud as useMenuPermission, mS as useModuleActions, dx as useRecordRefresh, QS as validateBooleanQuery, i_ as validateBulkFile, n as withAdminAppId, i as withAppId, TO as withAuthGuard };
58954
58961
 
58955
58962
  //# sourceMappingURL=index.js.map