@realtek/zinnext-theme 1.0.10 → 1.0.11

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 { A as t, C as n, D as r, E as i, M as a, O as o, S as s, T as c, _ as l, a as u, b as d, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, o as S, p as C, r as w, s as T, t as E, u as D, v as ee, w as O, x as k, y as A } from "./authApi-CwQa0oId.js";
3
- import { _ as j, a as te, c as M, d as N, g as P, h as F, i as ne, l as re, m as ie, o as ae, p as oe, r as se, s as ce, u as le } from "./formGroupsCache-Cf-OrMd3.js";
3
+ import { _ as j, a as te, c as M, d as N, g as ne, h as P, i as F, l as re, m as ie, o as ae, p as oe, r as se, s as ce, u as le } from "./formGroupsCache-Cf-OrMd3.js";
4
4
  import { $ as ue, $t as de, A as fe, An as pe, At as me, B as he, Bn as ge, Bt as _e, C as ve, Cn as ye, Ct as be, D as xe, Dn as Se, Dt as Ce, E as we, En as Te, Et as Ee, F as De, Fn as Oe, Ft as ke, Gn as Ae, Gt as je, H as Me, Hn as Ne, Ht as Pe, In as Fe, It as Ie, J as Le, Jt as Re, K as ze, Kt as Be, L as Ve, Ln as He, Lt as Ue, M as We, Mn as Ge, Mt as Ke, Nn as qe, Nt as Je, O as Ye, On as Xe, Ot as Ze, P as Qe, Pn as $e, Pt as et, Q as tt, Qt as nt, R as rt, Rn as it, Rt as at, S as ot, Sn as st, St as ct, T as lt, Tn as ut, Tt as dt, U as ft, Un as pt, Ut as mt, V as ht, Vn as gt, Vt as _t, W as vt, Wn as yt, Wt as bt, X as xt, Xt as St, Y as Ct, Yt as wt, Z as Tt, Zt as Et, _ as Dt, _n as Ot, _t as kt, a as I, an as At, at as jt, b as Mt, bn as Nt, bt as Pt, c as Ft, cn as It, ct as Lt, d as Rt, dn as zt, dt as Bt, en as Vt, et as Ht, f as Ut, fn as Wt, ft as Gt, gn as Kt, gt as qt, hn as Jt, ht as Yt, i as Xt, in as Zt, it as Qt, j as $t, jn as en, jt as tn, k as nn, kn as rn, kt as an, l as on, ln as sn, lt as cn, m as ln, mn as un, mt as dn, n as fn, nn as pn, nt as mn, o as hn, on as gn, ot as _n, p as vn, pn as yn, pt as bn, q as xn, qt as Sn, r as Cn, rn as wn, rt as Tn, s as En, sn as Dn, st as On, t as kn, tn as An, tt as jn, u as Mn, un as Nn, ut as Pn, vn as Fn, vt as In, w as Ln, wn as Rn, wt as zn, x as Bn, xn as Vn, xt as Hn, y as Un, yn as Wn, yt as Gn, z as Kn, zn as qn, zt as Jn } from "./FileField-Crphi905.js";
5
5
  import { $ as Yn, $n as Xn, $t as Zn, A as Qn, An as $n, At as er, B as tr, Bn as nr, Bt as rr, C as ir, Cn as ar, Ct as or, D as sr, Dn as cr, Dt as lr, E as ur, En as dr, Et as fr, F as pr, Fn as mr, Ft as hr, G as gr, Gn as _r, Gt as vr, H as yr, Hn as br, Ht as xr, I as Sr, In as Cr, It as wr, J as Tr, Jn as Er, Jt as Dr, K as Or, Kn as kr, Kt as Ar, L as jr, Ln as Mr, Lt as Nr, M as Pr, Mn as Fr, Mt as Ir, N as Lr, Nn as Rr, Nt as zr, O as Br, On as Vr, Ot as Hr, P as Ur, Pn as Wr, Pt as Gr, Q as Kr, Qn as qr, Qt as Jr, R as Yr, Rn as Xr, Rt as Zr, S as Qr, Sn as $r, St as ei, T as ti, Tn as ni, Tt as ri, U as ii, Un as ai, Ut as oi, V as si, Vn as ci, Vt as li, W as ui, Wn as di, Wt as fi, X as pi, Xn as mi, Xt as hi, Y as gi, Yn as _i, Yt as vi, Z as yi, Zn as bi, Zt as xi, _ as Si, _n as Ci, _t as wi, a as Ti, an as Ei, at as Di, b as Oi, bn as ki, bt as Ai, c as ji, cn as Mi, ct as Ni, d as Pi, dn as Fi, dt as Ii, en as Li, er as Ri, et as zi, f as Bi, fn as Vi, ft as Hi, g as Ui, gn as Wi, gt as Gi, h as Ki, hn as qi, ht as Ji, i as Yi, in as Xi, it as Zi, j as Qi, jn as $i, jt as ea, k as ta, kn as na, kt as ra, l as ia, ln as aa, lt as oa, m as sa, mn as ca, mt as la, n as ua, nn as da, nr as fa, nt as pa, o as ma, on as ha, ot as ga, p as _a, pn as va, pt as ya, q as ba, qn as xa, qt as Sa, r as Ca, rn as wa, rt as Ta, s as Ea, sn as Da, st as Oa, t as ka, tn as Aa, tr as ja, tt as Ma, u as Na, un as Pa, ut as Fa, v as Ia, vn as La, vt as Ra, w as za, wt as Ba, x as Va, xn as Ha, xt as Ua, y as Wa, yn as Ga, yt as Ka, z as qa, zn as Ja, zt as Ya } from "./LinkedRecordFileField-BpiT6dDg.js";
6
6
  import { t as Xa } from "./DocumentViewer-D928QglB.js";
@@ -245,7 +245,7 @@ function eu({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
245
245
  t !== void 0 && (t || []).forEach((e) => {
246
246
  e?.date && (N[e.date] = e);
247
247
  });
248
- let P = o ?? C, F = l ?? `${Gl[b.month]} ${b.year}`;
248
+ let ne = o ?? C, P = l ?? `${Gl[b.month]} ${b.year}`;
249
249
  return /* @__PURE__ */ Z(Fo, {
250
250
  className: `calendar-card${c ? ` ${c}` : ""}`,
251
251
  title: /* @__PURE__ */ Q("div", {
@@ -255,7 +255,7 @@ function eu({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
255
255
  /* @__PURE__ */ Z(Vl, {
256
256
  level: 5,
257
257
  style: { margin: 0 },
258
- children: F
258
+ children: P
259
259
  }),
260
260
  a
261
261
  ]
@@ -370,9 +370,9 @@ function eu({ userIds: e = [], days: t = void 0, startDay: n = "Sun", renderDayC
370
370
  })
371
371
  }, t))
372
372
  }),
373
- P.length > 0 && /* @__PURE__ */ Z("div", {
373
+ ne.length > 0 && /* @__PURE__ */ Z("div", {
374
374
  className: "calendar-legend",
375
- children: P.map(({ label: e, color: t, icon: n }) => /* @__PURE__ */ Q("div", {
375
+ children: ne.map(({ label: e, color: t, icon: n }) => /* @__PURE__ */ Q("div", {
376
376
  className: "calendar-legend-item",
377
377
  children: [n ? /* @__PURE__ */ Z("span", {
378
378
  className: "calendar-legend-badge",
@@ -2948,30 +2948,38 @@ function cp(e) {
2948
2948
  };
2949
2949
  }
2950
2950
  function lp(e) {
2951
- let [t, n] = z(null), [r, i] = z(null), [a, o] = z(!1), [s, c] = z(null);
2951
+ let [t, n] = z(0);
2952
+ L(() => {
2953
+ let t = (t) => {
2954
+ let r = String(t.detail?.module || "").toLowerCase().replace(/s$/, ""), i = String(e || "").toLowerCase().replace(/s$/, "");
2955
+ (!r || r === i) && n((e) => e + 1);
2956
+ };
2957
+ return window.addEventListener("field-config-updated", t), () => window.removeEventListener("field-config-updated", t);
2958
+ }, [e]);
2959
+ let [r, i] = z(null), [a, o] = z(null), [s, c] = z(!1), [l, u] = z(null);
2952
2960
  return L(() => {
2953
2961
  if (!e) return;
2954
2962
  let t = !1;
2955
- return o(!0), c(null), fo(e, {
2963
+ return c(!0), u(null), fo(e, {
2956
2964
  configType: "listView",
2957
2965
  includeMeta: !0
2958
- }).then((r) => {
2959
- t || (i(Array.isArray(r) ? r : r?.visibleFields ?? null), n({
2966
+ }).then((n) => {
2967
+ t || (o(Array.isArray(n) ? n : n?.visibleFields ?? null), i({
2960
2968
  module: e,
2961
- enabled: r?.exportEnabled !== !1
2969
+ enabled: n?.exportEnabled !== !1
2962
2970
  }));
2963
2971
  }).catch((e) => {
2964
- t || c(e.message);
2972
+ t || u(e.message);
2965
2973
  }).finally(() => {
2966
- t || o(!1);
2974
+ t || c(!1);
2967
2975
  }), () => {
2968
2976
  t = !0;
2969
2977
  };
2970
- }, [e]), {
2971
- config: r,
2972
- loading: a,
2973
- error: s,
2974
- exportEnabled: !e || t?.module === e && t.enabled
2978
+ }, [e, t]), {
2979
+ config: a,
2980
+ loading: s,
2981
+ error: l,
2982
+ exportEnabled: !e || r?.module === e && r.enabled
2975
2983
  };
2976
2984
  }
2977
2985
  function up(e) {
@@ -4369,15 +4377,15 @@ function Mh({ moduleName: e, open: t = !1, onDisplayModeChange: n, filters: r =
4369
4377
  let e = A((r ?? []).filter((e) => e.field && !b.has(String(e.field))).map((e) => kh(e, S)));
4370
4378
  d.setFieldsValue({ filters: e }), e.forEach((e) => O(e.field));
4371
4379
  }, [r, S]);
4372
- let M = Oo(!1), N = Oo(""), P = Oo(e), F = Oo(!1);
4380
+ let M = Oo(!1), N = Oo(""), ne = Oo(e), P = Oo(!1);
4373
4381
  L(() => {
4374
- e !== P.current && (P.current = e, M.current = !1, N.current = "", F.current = !1);
4382
+ e !== ne.current && (ne.current = e, M.current = !1, N.current = "", P.current = !1);
4375
4383
  }, [e]), L(() => {
4376
4384
  if (!v) return;
4377
4385
  let e = N.current !== w;
4378
4386
  if (M.current && !e) return;
4379
- let t = F.current && !m, n = !m && S.length > 0;
4380
- if (F.current = m, !t && !n) return;
4387
+ let t = P.current && !m, n = !m && S.length > 0;
4388
+ if (P.current = m, !t && !n) return;
4381
4389
  let r = M.current;
4382
4390
  M.current = !0, N.current = w;
4383
4391
  let i = d.getFieldValue("filters") ?? [], a = A(r || i.length > 0 ? i : k());
@@ -4388,7 +4396,7 @@ function Mh({ moduleName: e, open: t = !1, onDisplayModeChange: n, filters: r =
4388
4396
  S,
4389
4397
  w
4390
4398
  ]);
4391
- function ne() {
4399
+ function F() {
4392
4400
  j.current = !0;
4393
4401
  let t = k();
4394
4402
  d.setFieldsValue({ filters: t }), t.forEach((e) => O(e.field)), o?.({
@@ -4512,7 +4520,7 @@ function Mh({ moduleName: e, open: t = !1, onDisplayModeChange: n, filters: r =
4512
4520
  /* @__PURE__ */ Z("button", {
4513
4521
  type: "button",
4514
4522
  className: "ui-filter-clear-all-btn",
4515
- onClick: ne,
4523
+ onClick: F,
4516
4524
  children: "Clear All"
4517
4525
  })
4518
4526
  ]
@@ -4604,7 +4612,7 @@ function Mh({ moduleName: e, open: t = !1, onDisplayModeChange: n, filters: r =
4604
4612
  footer: !_ && /* @__PURE__ */ Q(G, {
4605
4613
  className: "dynamic-field-filter__footer",
4606
4614
  children: [/* @__PURE__ */ Z(ea, {
4607
- onClick: ne,
4615
+ onClick: F,
4608
4616
  children: "Reset"
4609
4617
  }), /* @__PURE__ */ Z(ea, {
4610
4618
  variant: "primary",
@@ -5257,7 +5265,7 @@ function Lg(e, t, n) {
5257
5265
  let r = String(t ?? "").trim();
5258
5266
  if (!r) return "-";
5259
5267
  let i = r.replace(/^record\./, "");
5260
- if (n?.renderConfig?.lastItemField ?? n?.renderConfig?.arrayDisplayField) {
5268
+ if ((n?.renderConfig?.lastItemField ?? n?.renderConfig?.arrayDisplayField) || /^(proposedRate|candidateBudget)\./.test(i)) {
5261
5269
  let t = Qh(i);
5262
5270
  for (let n = t.length - 1; n >= 1; --n) {
5263
5271
  let r = eg(e, t.slice(0, n).join("."));
@@ -5292,6 +5300,15 @@ function Bg(e, t, n) {
5292
5300
  return lg(a, n) ? "" : (r = !0, String(a));
5293
5301
  });
5294
5302
  if (!r) return "";
5303
+ if (n?.renderConfig?.multiline || /[\r\n]/.test(e)) {
5304
+ let e = i.split(/\r?\n/);
5305
+ return e.map((t, r) => {
5306
+ let i = t.replace(/\s+/g, " ").trim();
5307
+ if (!n.renderConfig?.cleanEmptyTemplateSeparators) return i;
5308
+ let a = Rg(i), o = i.match(/\s+([/|·])$/)?.[1], s = e.slice(r + 1).some((e) => /[\p{L}\p{N}]/u.test(e));
5309
+ return o && a && s ? `${a} ${o}` : a;
5310
+ }).join("\n").trim();
5311
+ }
5295
5312
  let a = i.replace(/\s+/g, " ").trim();
5296
5313
  return n?.renderConfig?.cleanEmptyTemplateSeparators ? Rg(a) : a;
5297
5314
  }
@@ -5464,6 +5481,11 @@ function n_(e) {
5464
5481
  return [...t, ...n].filter((e, t, n) => e && n.indexOf(e) === t);
5465
5482
  }
5466
5483
  function r_(e, t, n = !1) {
5484
+ if (e.renderConfig?.dateDisplay === "date-time-lines") {
5485
+ let n = eg(t, e.key);
5486
+ return n ? $t(n?.$date ?? n, e.renderConfig.timeFormat || "hh:mm A") : "";
5487
+ }
5488
+ if (e.renderConfig?.secondaryTemplate) return Bg(e.renderConfig.secondaryTemplate, t, e);
5467
5489
  let r = e.secondarySeparator ?? " ", i = n_(e).map((e) => og(t, e)).filter((e) => e !== "-"), a = [Ag(e, n) ? Ng(eg(t, e.key)) : "", ...i].filter((e) => e && e !== "-");
5468
5490
  return a.length ? a.join(` ${r} `) : "";
5469
5491
  }
@@ -5478,8 +5500,14 @@ function a_(e, t) {
5478
5500
  function o_(e) {
5479
5501
  let t = e?.color, n = e?.bg ?? e?.background ?? e?.backgroundColor;
5480
5502
  return {
5481
- ...t ? { "--job-cell-badge-color": t } : {},
5482
- ...n ? { "--job-cell-badge-bg": n } : {}
5503
+ ...t ? {
5504
+ "--job-cell-badge-color": t,
5505
+ color: t
5506
+ } : {},
5507
+ ...n ? {
5508
+ "--job-cell-badge-bg": n,
5509
+ backgroundColor: n
5510
+ } : {}
5483
5511
  };
5484
5512
  }
5485
5513
  function s_(e) {
@@ -5545,7 +5573,19 @@ function u_(e, t) {
5545
5573
  });
5546
5574
  }
5547
5575
  function d_(e, t, n = "", r, i = {}, a = [], o, s = !1, c = "") {
5548
- if (typeof e.render == "function") return e.render(og(t, e.key), t);
5576
+ if (/[\r\n]/.test(e.displayTemplate || "") && (e = {
5577
+ ...e,
5578
+ renderConfig: {
5579
+ ...e.renderConfig,
5580
+ multiline: !0
5581
+ }
5582
+ }), e.renderConfig?.dateDisplay === "date-time-lines" && (e = {
5583
+ ...e,
5584
+ renderConfig: {
5585
+ ...e.renderConfig,
5586
+ dateFormat: e.renderConfig.dateFormat || "DD MMM YYYY"
5587
+ }
5588
+ }), typeof e.render == "function") return e.render(og(t, e.key), t);
5549
5589
  if (b_(e.renderType) === "progress") return u_(e, t);
5550
5590
  if (b_(e.renderType) === "avatar") return l_(e, t);
5551
5591
  let l = Gg(e, t), u = i_(Wg(e, t)), d = Xg(e.actionButtons).filter((e) => $g(e, t, a, o, c)).filter((e) => e_(e, i)).map((e) => ({
@@ -5557,28 +5597,45 @@ function d_(e, t, n = "", r, i = {}, a = [], o, s = !1, c = "") {
5557
5597
  className: "job-field-actions",
5558
5598
  children: d.filter((e) => typeof e.hiddenIf != "function" || !e.hiddenIf(t)).map((e) => t_(e, t, r))
5559
5599
  });
5560
- let f = i_(r_(e, t, s)), p = b_(e.renderType) === "badge" && u !== "-" ? c_(e, u) : !_g(e.isLink) || u === "-" || l ? /* @__PURE__ */ Z(J, {
5600
+ let f = r_(e, t, s), p = e.renderConfig?.secondaryTextCase, m = String(f ?? ""), h = p === "title" ? m.toLowerCase().replace(/\b\p{L}/gu, (e) => e.toUpperCase()) : p === "upper" ? m.toUpperCase() : p === "lower" ? m.toLowerCase() : i_(f), g = b_(e.renderType) === "badge", _ = e.renderConfig?.multiline && typeof u == "string" ? u.split(/\r?\n/).map((e, t) => /* @__PURE__ */ Q(go, { children: [t > 0 && /* @__PURE__ */ Z("br", {}), wg(e, n)] }, t)) : wg(u, n), v = g && u !== "-" ? c_(e, u) : !_g(e.isLink) || u === "-" || l ? /* @__PURE__ */ Z(J, {
5561
5601
  title: u === "-" ? void 0 : u,
5562
5602
  children: /* @__PURE__ */ Z(Jh, {
5563
5603
  className: "job-cell-primary job-cell-value",
5564
- children: wg(u, n)
5604
+ children: _
5565
5605
  })
5566
5606
  }) : Tg(e, t, u, n);
5567
5607
  return /* @__PURE__ */ Q("span", {
5568
5608
  className: "job-cell-content",
5569
- children: [/* @__PURE__ */ Q("span", {
5570
- className: "job-cell-main-line",
5571
- children: [p, d.length > 0 && /* @__PURE__ */ Z("span", {
5572
- className: "job-field-actions",
5573
- children: d.filter((e) => typeof e.hiddenIf != "function" || !e.hiddenIf(t)).map((e) => t_(e, t, r))
5574
- })]
5575
- }), f && /* @__PURE__ */ Z(J, {
5576
- title: f,
5577
- children: /* @__PURE__ */ Z("span", {
5578
- className: "job-cell-secondary",
5579
- children: wg(f, n)
5609
+ style: e.renderConfig?.showPhoto ? {
5610
+ display: "grid",
5611
+ gridTemplateColumns: "32px minmax(0, 1fr)",
5612
+ columnGap: 8
5613
+ } : void 0,
5614
+ children: [
5615
+ e.renderConfig?.showPhoto && /* @__PURE__ */ Z(Mo, {
5616
+ size: 32,
5617
+ src: e.renderConfig.photoUrl || eg(t, e.renderConfig.photoField || "photoUrl") || void 0,
5618
+ style: {
5619
+ gridColumn: 1,
5620
+ gridRow: "1 / 3"
5621
+ },
5622
+ children: String(u || "").charAt(0)
5623
+ }),
5624
+ /* @__PURE__ */ Q("span", {
5625
+ className: e.renderConfig?.multiline ? "job-cell-main-line job-cell-main-line--multiline" : "job-cell-main-line",
5626
+ children: [v, d.length > 0 && /* @__PURE__ */ Z("span", {
5627
+ className: "job-field-actions",
5628
+ children: d.filter((e) => typeof e.hiddenIf != "function" || !e.hiddenIf(t)).map((e) => t_(e, t, r))
5629
+ })]
5630
+ }),
5631
+ h && /* @__PURE__ */ Z(J, {
5632
+ title: h,
5633
+ children: /* @__PURE__ */ Z("span", {
5634
+ className: "job-cell-secondary",
5635
+ children: wg(h, n)
5636
+ })
5580
5637
  })
5581
- })]
5638
+ ]
5582
5639
  });
5583
5640
  }
5584
5641
  var f_ = 96, p_ = 320, m_ = 7.2, h_ = 26, g_ = 8, __ = 44, v_ = 20;
@@ -5903,7 +5960,7 @@ function $_({ filters: e, onRemove: t, onClearAll: n }) {
5903
5960
  ]
5904
5961
  });
5905
5962
  }
5906
- function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r = [], fallbackActions: i = [], actionRules: a = [], breadcrumbItems: o = [], dataSource: c = [], className: u = "", initialPageSize: d = 10, onAction: f, onSummaryClick: p, rowKey: m, showSummaryButton: h = !1, summaryButtonLabel: g = "View Summary", summaryRoute: _, showFieldButton: v = !0, showFilterButton: y = !0, hideFilterButton: b = !1, showRowIcons: x = !0, fieldButtonLabel: C = "View Field", fieldButtonRoute: T, tabs: E, tabTitleOverrides: D = null, tableClassName: ee = "job-list-table", fields: O = q_, fieldOverrides: A = null, extraFields: j = q_, listName: te = "", loading: M = !1, hideLoadingOverlay: N = !1, total: P, clientPagination: F = !1, current: ne, pageSize: re, onPageChange: ie, onPageSizeChange: ae, onSearch: oe, externalFilterRows: se, onExternalFiltersChange: ce, toolbarExtra: le = null, showSearch: ue = !0, searchPlaceholder: de = "Min 3 Chars, press Enter to search", searchFields: fe = q_, showViewToggle: pe = !1, activeView: me = "list", onViewChange: he, autoCardForExternalRows: ge = !0, createAction: _e, onRecordClick: ve, selectedRecordId: ye, selectionMode: be = "checkbox", compact: xe = !1, onSelectionChange: Se, selectedSource: Ce, onTabChange: we, fetchData: Te = no, responseMapper: Ee = Om, queryParams: De = J_, defaultVisibleColumnCount: Oe = 6, showAdd: ke = !0, showCreatedDateRelativeTime: Ae = !1, redirectOnViewDenied: je = !0, lockOuterPageScroll: Me = !1, deferFieldConfig: Ne = !1, renderPresentation: Pe, renderTable: Fe }) {
5963
+ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r = [], fallbackActions: i = [], actionRules: a = [], breadcrumbItems: o = [], dataSource: c = [], className: u = "", initialPageSize: d = 10, onAction: f, onSummaryClick: p, rowKey: m, showSummaryButton: h = !1, summaryButtonLabel: g = "View Summary", summaryRoute: _, showFieldButton: v = !0, showFilterButton: y = !0, hideFilterButton: b = !1, showRowIcons: x = !0, fieldButtonLabel: C = "View Field", fieldButtonRoute: T, tabs: E, tabTitleOverrides: D = null, tableClassName: ee = "job-list-table", fields: O = q_, fieldOverrides: A = null, extraFields: j = q_, listName: te = "", loading: M = !1, hideLoadingOverlay: N = !1, total: ne, clientPagination: P = !1, current: F, pageSize: re, onPageChange: ie, onPageSizeChange: ae, onSearch: oe, externalFilterRows: se, onExternalFiltersChange: ce, toolbarExtra: le = null, showSearch: ue = !0, searchPlaceholder: de = "Min 3 Chars, press Enter to search", searchFields: fe = q_, showViewToggle: pe = !1, activeView: me = "list", onViewChange: he, autoCardForExternalRows: ge = !0, createAction: _e, onRecordClick: ve, selectedRecordId: ye, selectionMode: be = "checkbox", compact: xe = !1, onSelectionChange: Se, selectedSource: Ce, onTabChange: we, fetchData: Te = no, responseMapper: Ee = Om, queryParams: De = J_, defaultVisibleColumnCount: Oe = 6, showAdd: ke = !0, showCreatedDateRelativeTime: Ae = !1, redirectOnViewDenied: je = !0, lockOuterPageScroll: Me = !1, deferFieldConfig: Ne = !1, renderPresentation: Pe, renderTable: Fe }) {
5907
5964
  let Ie = Nl(), Le = Ml(), Re = Ye(e), [Be, Ve] = z(() => /* @__PURE__ */ new Set()), [He, Ue] = z(() => /* @__PURE__ */ new Set());
5908
5965
  L(() => {
5909
5966
  if (b_(Re) !== "submissions") {
@@ -5957,7 +6014,7 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
5957
6014
  n && ve?.(e, n);
5958
6015
  }, qt = (e, t) => {
5959
6016
  Tt(e), Dt(t), Se?.(e, t);
5960
- }, [Jt, Yt] = z(c), [Xt, Zt] = z(c.length), [Qt, $t] = z([]), [en, tn] = z([]), [nn, rn] = z(""), [an, on] = z([]), [sn, cn] = z([]), [ln, un] = z(!1), [dn, fn] = z(!1), [pn, mn] = z(null), [hn, gn] = z(null), [_n, vn] = z(!1), yn = !!(ie || ae || oe), bn = yn ? c : Jt, xn = yn ? P ?? 0 : Xt, Sn = yn ? O : en, Cn = yn ? null : pn, wn = R(() => bn.some((e) => ag(e)), [bn]), Tn = R(() => Sn.some((e) => ig(e)), [Sn]), En = ge && (wn || Tn) ? "card" : me, Dn = r.length > 0 ? r : an?.length > 0 ? an : i, On = a.length > 0 ? a : sn, kn = R(() => P_(Dn), [Dn]), An = R(() => new Map(N_(kn).map((e) => [e.key, e])), [kn]), jn = R(() => M_(kn, (e) => {
6017
+ }, [Jt, Yt] = z(c), [Xt, Zt] = z(c.length), [Qt, $t] = z([]), [en, tn] = z([]), [nn, rn] = z(""), [an, on] = z([]), [sn, cn] = z([]), [ln, un] = z(!1), [dn, fn] = z(!1), [pn, mn] = z(null), [hn, gn] = z(null), [_n, vn] = z(!1), yn = !!(ie || ae || oe), bn = yn ? c : Jt, xn = yn ? ne ?? 0 : Xt, Sn = yn ? O : en, Cn = yn ? null : pn, wn = R(() => bn.some((e) => ag(e)), [bn]), Tn = R(() => Sn.some((e) => ig(e)), [Sn]), En = ge && (wn || Tn) ? "card" : me, Dn = r.length > 0 ? r : an?.length > 0 ? an : i, On = a.length > 0 ? a : sn, kn = R(() => P_(Dn), [Dn]), An = R(() => new Map(N_(kn).map((e) => [e.key, e])), [kn]), jn = R(() => M_(kn, (e) => {
5961
6018
  let t = xp(e);
5962
6019
  return t === "add" && !Ke || t === "edit" && !qe || t === "delete" && !Je || !si(e.permission, Re) || e.showInList === !1 ? !1 : !e.allowedTabs || e.allowedTabs.some((e) => b_(e) === b_(et));
5963
6020
  }), [
@@ -6024,14 +6081,14 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
6024
6081
  });
6025
6082
  }, [$e]), L(() => {
6026
6083
  yn && At((e) => {
6027
- let t = W_(ne ?? e.current), n = Number(re) > 0 ? Number(re) : e.pageSize;
6084
+ let t = W_(F ?? e.current), n = Number(re) > 0 ? Number(re) : e.pageSize;
6028
6085
  return e.current === t && e.pageSize === n ? e : {
6029
6086
  current: t,
6030
6087
  pageSize: n
6031
6088
  };
6032
6089
  });
6033
6090
  }, [
6034
- ne,
6091
+ F,
6035
6092
  re,
6036
6093
  yn
6037
6094
  ]);
@@ -6121,13 +6178,13 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
6121
6178
  Ze
6122
6179
  ]);
6123
6180
  let er = R(() => {
6124
- let e = yn && Array.isArray(O) && O.length, t = !yn && Array.isArray(en) && en.length, n = !Bn && Array.isArray(Rn) && Rn.length, r = e ? O : t ? en : n ? Rn : [], i = new Map(en.map((e) => [Xh(e), e]).filter(([e]) => e)), a = [...r], o = new Set(a.map(Xh).filter(Boolean));
6181
+ let e = yn && Array.isArray(O) && O.length, t = !yn && Array.isArray(en) && en.length, n = !Bn && Array.isArray(Rn) && Rn.length, r = e ? O : t ? en : n ? Rn : [], i = new Map(en.map((e) => [Xh(e), e]).filter(([e]) => e)), a = new Map((Array.isArray(Rn) ? Rn : []).map((e) => [Xh(e), e])), o = [...r], s = new Set(o.map(Xh).filter(Boolean));
6125
6182
  for (let e of en) {
6126
6183
  let t = Xh(e);
6127
- t && !o.has(t) && (a.push(e), o.add(t));
6184
+ t && !s.has(t) && (o.push(e), s.add(t));
6128
6185
  }
6129
- let s = a.map((e) => {
6130
- let t = Xh(e), n = i.get(t) ?? {}, r = t && A && typeof A == "object" ? A[t] : null, a = r?.renderConfig ? {
6186
+ let c = o.map((e) => {
6187
+ let t = Xh(e), n = i.get(t) ?? {}, r = t && A && typeof A == "object" ? A[t] : null, o = r?.renderConfig ? {
6131
6188
  ...n.renderConfig ?? e.renderConfig ?? {},
6132
6189
  ...r.renderConfig
6133
6190
  } : e.renderConfig ?? n.renderConfig ?? null;
@@ -6135,11 +6192,15 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
6135
6192
  ...n,
6136
6193
  ...e,
6137
6194
  ...r ?? {},
6138
- ...a ? { renderConfig: a } : {},
6195
+ ...o ? { renderConfig: o } : {},
6196
+ ...!n.renderConfig?.secondaryTemplate && a.get(t)?.renderConfig?.secondaryTemplate ? { renderConfig: {
6197
+ ...o,
6198
+ secondaryTemplate: a.get(t).renderConfig.secondaryTemplate
6199
+ } } : {},
6139
6200
  key: t,
6140
6201
  label: Yh(r ?? e) ?? Yh(e) ?? Yh(n)
6141
6202
  };
6142
- }).filter((e) => e.key && e.label), c = (Array.isArray(j) ? j : []).map((e, t) => {
6203
+ }).filter((e) => e.key && e.label), l = (Array.isArray(j) ? j : []).map((e, t) => {
6143
6204
  let n = Xh(e);
6144
6205
  return n ? {
6145
6206
  ...e,
@@ -6148,11 +6209,11 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
6148
6209
  isVirtual: e.isVirtual ?? !0,
6149
6210
  isVisible: typeof e.isVisible != "boolean" || e.isVisible
6150
6211
  } : null;
6151
- }).filter(Boolean), l = {
6212
+ }).filter(Boolean), u = {
6152
6213
  ...Gn,
6153
6214
  key: et
6154
6215
  };
6155
- return Jg([...s, ...c]).filter((e) => Qg(e, l));
6216
+ return Jg([...c, ...l]).filter((e) => Qg(e, u));
6156
6217
  }, [
6157
6218
  et,
6158
6219
  Gn,
@@ -6234,17 +6295,17 @@ function ev({ moduleName: e, redirectOnNoView: t = !0, authToken: n, actions: r
6234
6295
  nt,
6235
6296
  fe
6236
6297
  ]), yr = R(() => {
6237
- if (!yn || !Yn && !F) return vr;
6298
+ if (!yn || !Yn && !P) return vr;
6238
6299
  let e = (I.current - 1) * I.pageSize;
6239
6300
  return vr.slice(e, e + I.pageSize);
6240
6301
  }, [
6241
6302
  vr,
6242
6303
  Yn,
6243
6304
  yn,
6244
- F,
6305
+ P,
6245
6306
  I.current,
6246
6307
  I.pageSize
6247
- ]), br = yn && (Yn || F) ? vr.length : xn, xr = it.trim().length >= 3, Sr = Yn && !yn ? xn : vr.length, Cr = String(Sr).padStart(2, "0"), wr = xn > 0 || bn.length > 0, Tr = ue && (wr || nt.trim().length > 0 || it.trim().length > 0), Er = Nn ? pn ? "Invalid module name or data could not be loaded." : Bn ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", Dr = R(() => !D || typeof D != "object" ? null : Object.entries(D).reduce((e, [t, n]) => (n == null || (e[String(t)] = String(n)), e), {}), [D]), Or = R(() => {
6308
+ ]), br = yn && (Yn || P) ? vr.length : xn, xr = it.trim().length >= 3, Sr = Yn && !yn ? xn : vr.length, Cr = String(Sr).padStart(2, "0"), wr = xn > 0 || bn.length > 0, Tr = ue && (wr || nt.trim().length > 0 || it.trim().length > 0), Er = Nn ? pn ? "Invalid module name or data could not be loaded." : Bn ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", Dr = R(() => !D || typeof D != "object" ? null : Object.entries(D).reduce((e, [t, n]) => (n == null || (e[String(t)] = String(n)), e), {}), [D]), Or = R(() => {
6248
6309
  let t = Array.isArray(E) ? E : [], n = !t.length, r = t.length ? t : Qt.length ? Qt : [{
6249
6310
  key: "all",
6250
6311
  title: e ?? "List",
@@ -7948,7 +8009,7 @@ function Oy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
7948
8009
  }), {
7949
8010
  pyops: r,
7950
8011
  core: s
7951
- }) : null), { form: t }), te = j ? JSON.parse(j) : null, M = te?.base ?? "", N = te?.path ?? "", P = te ? `${M}${N}` : "", F = Oo(""), [ne, re] = z(""), [ie, ae] = z(""), [oe, se] = z(""), [ce, le] = z(0), [ue, de] = z({
8012
+ }) : null), { form: t }), te = j ? JSON.parse(j) : null, M = te?.base ?? "", N = te?.path ?? "", ne = te ? `${M}${N}` : "", P = Oo(""), [F, re] = z(""), [ie, ae] = z(""), [oe, se] = z(""), [ce, le] = z(0), [ue, de] = z({
7952
8013
  open: !1,
7953
8014
  docs: [],
7954
8015
  index: 0
@@ -8022,7 +8083,7 @@ function Oy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
8022
8083
  groupName: e.groupName ?? "",
8023
8084
  groupRoleContains: e.groupRoleContains ?? "",
8024
8085
  masterName: e.masterName ?? "",
8025
- locationSearch: ne,
8086
+ locationSearch: F,
8026
8087
  lookupSearch: ie,
8027
8088
  masterSearch: oe,
8028
8089
  moduleName: i ?? "",
@@ -8060,7 +8121,7 @@ function Oy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
8060
8121
  async function n() {
8061
8122
  try {
8062
8123
  let n = new URLSearchParams({
8063
- search: ne,
8124
+ search: F,
8064
8125
  limit: String(e.limit ?? 50),
8065
8126
  offset: "0"
8066
8127
  }), r = await S(s, `/admin/location-dropdown-values?${n}`), i = r?.data ?? r ?? [];
@@ -8144,8 +8205,8 @@ function Oy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
8144
8205
  if (!a) {
8145
8206
  me.current = Array.isArray(o) ? o : [];
8146
8207
  let i = Pv(me.current);
8147
- if (E(i), r === "api" && e.optionsApi?.selectAll && i.length && F.current !== P && n !== void 0) {
8148
- F.current = P;
8208
+ if (E(i), r === "api" && e.optionsApi?.selectAll && i.length && P.current !== ne && n !== void 0) {
8209
+ P.current = ne;
8149
8210
  let e = Array.isArray(n) ? n[n.length - 1] : n;
8150
8211
  if (!x?.current?.has(String(e))) {
8151
8212
  let e = t?.getFieldValue(n), r = [...e == null || e === "" ? [] : Array.isArray(e) ? e : [e]];
@@ -8177,7 +8238,7 @@ function Oy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
8177
8238
  e.groupName,
8178
8239
  e.groupRoleContains,
8179
8240
  e.masterName,
8180
- ne,
8241
+ F,
8181
8242
  ie,
8182
8243
  oe,
8183
8244
  i,
@@ -8195,7 +8256,7 @@ function Oy({ field: e, form: t, name: n, moduleName: i, value: a, checked: o, o
8195
8256
  nt,
8196
8257
  M,
8197
8258
  N,
8198
- P,
8259
+ ne,
8199
8260
  e.optionsApi?.responsePath,
8200
8261
  it
8201
8262
  ]);
@@ -8800,21 +8861,21 @@ function Py(e, t) {
8800
8861
  });
8801
8862
  }
8802
8863
  var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, region: i, formGroups: a, loading: o = !1, error: s = "", breadcrumbItems: c = [], formType: u = "add", submitText: d, cancelPath: f = "/candidates", onSubmit: p, initialRecord: m = null, existingRecordId: h = null, initialFormValues: g = null, autoMatchRelevantSkills: _, prefillFromUrl: v = !1, prefillContext: y = null, renderLinkedRecordEditor: b, onLinkedCandidateUpdated: x, extraPayload: S = null, presetClientId: C = null, listViewProps: E = {}, selectedScope: D = "", searchActionContext: ee = null, dateInputFormat: O, embedded: k = !1, onSuccess: A = null, onCancel: j = null, renderSection: te = null, renderLayout: M = null }, N) {
8803
- let P = R(() => ({
8864
+ let ne = R(() => ({
8804
8865
  override: O,
8805
8866
  moduleName: e
8806
8867
  }), [O, e]);
8807
8868
  L(() => (n && l(n), () => {
8808
8869
  n && w();
8809
8870
  }), [n]);
8810
- let F = u === "search", ne = d ?? (F ? "Search" : "Create"), re = Nl(), ie = Ml(), ae = Oo(null), oe = Oo(null), se = Pl(), [ce] = Fl(), [le] = H.useForm(), ue = Oo(/* @__PURE__ */ new Set()), de = `v1-form-scope-${Eo().replace(/[^a-zA-Z0-9_-]/g, "")}`, fe = () => document.querySelector(`.${de}`) ?? document;
8871
+ let P = u === "search", F = d ?? (P ? "Search" : "Create"), re = Nl(), ie = Ml(), ae = Oo(null), oe = Oo(null), se = Pl(), [ce] = Fl(), [le] = H.useForm(), ue = Oo(/* @__PURE__ */ new Set()), de = `v1-form-scope-${Eo().replace(/[^a-zA-Z0-9_-]/g, "")}`, fe = () => document.querySelector(`.${de}`) ?? document;
8811
8872
  Do(N, () => ({
8812
8873
  submit: () => le.submit(),
8813
8874
  validate: () => le.validateFields(),
8814
8875
  getValues: () => le.getFieldsValue(!0),
8815
8876
  reset: () => le.resetFields()
8816
8877
  }), [le]);
8817
- let pe = H.useWatch((e) => F ? Ty(e) : !1, { form: le }), [me, he] = z(!1), [ge, _e] = z({}), [ye, be] = z([]), [Se, Ce] = z(null), [Te, De] = z(!!e), [Oe, ke] = z(""), [Ae, je] = z(""), [Me, Ne] = z(!1), [Pe, Fe] = z(""), [Ie, Le] = z({
8878
+ let pe = H.useWatch((e) => P ? Ty(e) : !1, { form: le }), [me, he] = z(!1), [ge, _e] = z({}), [ye, be] = z([]), [Se, Ce] = z(null), [Te, De] = z(!!e), [Oe, ke] = z(""), [Ae, je] = z(""), [Me, Ne] = z(!1), [Pe, Fe] = z(""), [Ie, Le] = z({
8818
8879
  searched: !1,
8819
8880
  rows: [],
8820
8881
  total: 0,
@@ -8906,14 +8967,14 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
8906
8967
  ]), [At, jt] = z(0), Mt = R(() => Ar({
8907
8968
  checkFieldUnique: Zr,
8908
8969
  onPendingChange: jt
8909
- }), []), Nt = R(() => F ? void 0 : {
8970
+ }), []), Nt = R(() => P ? void 0 : {
8910
8971
  checker: Mt,
8911
8972
  module: e,
8912
8973
  clientId: Dt || void 0,
8913
8974
  region: Ot || void 0,
8914
8975
  recordId: h || void 0
8915
8976
  }, [
8916
- F,
8977
+ P,
8917
8978
  Mt,
8918
8979
  e,
8919
8980
  Dt,
@@ -9019,7 +9080,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9019
9080
  Jt.current = !1;
9020
9081
  }
9021
9082
  }
9022
- }, [Vt]), [Xt, Zt] = z("list"), Qt = F && !pe, { hasClientScope: $t, clientGateMessage: en, clientGateResetOnChange: tn } = R(() => {
9083
+ }, [Vt]), [Xt, Zt] = z("list"), Qt = P && !pe, { hasClientScope: $t, clientGateMessage: en, clientGateResetOnChange: tn } = R(() => {
9023
9084
  let e = Qv(xt).flatMap((e) => e.fields ?? []).find((e) => Mv(e.clientScope));
9024
9085
  return e ? {
9025
9086
  hasClientScope: !0,
@@ -9088,13 +9149,13 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9088
9149
  let r = `${Dt ?? ""}|${Ot ?? ""}`;
9089
9150
  try {
9090
9151
  De(!0), ke("");
9091
- let i = F ? await at(e, "search", t) : await $a({
9152
+ let i = P ? await at(e, "search", t) : await $a({
9092
9153
  module: e,
9093
9154
  action: t,
9094
9155
  clientId: Dt,
9095
9156
  region: Ot
9096
- }), a = Qv(F ? i?.[0] : i);
9097
- if (!F && e === "submissions" && (Dt || Ot) && !a.flatMap((e) => e.fields ?? []).filter((e) => String(e.field ?? "").trim().toLowerCase() === "contracttype").some((e) => Array.isArray(e.optionColors) && e.optionColors.length > 0)) try {
9157
+ }), a = Qv(P ? i?.[0] : i);
9158
+ if (!P && e === "submissions" && (Dt || Ot) && !a.flatMap((e) => e.fields ?? []).filter((e) => String(e.field ?? "").trim().toLowerCase() === "contracttype").some((e) => Array.isArray(e.optionColors) && e.optionColors.length > 0)) try {
9098
9159
  let n = Qv(await $a({
9099
9160
  module: e,
9100
9161
  action: t
@@ -9109,7 +9170,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9109
9170
  } catch (e) {
9110
9171
  console.warn("[Submission color] Default optionColors lookup failed:", e);
9111
9172
  }
9112
- n || (be(a), Ce(r), F && je(i?.[0]?.label || ""));
9173
+ n || (be(a), Ce(r), P && je(i?.[0]?.label || ""));
9113
9174
  } catch (t) {
9114
9175
  console.error(`Failed to fetch ${e} form groups:`, t), n || (ke(t?.message || "Failed to fetch form groups"), Ce(r));
9115
9176
  } finally {
@@ -9122,7 +9183,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9122
9183
  }, [
9123
9184
  e,
9124
9185
  t,
9125
- F,
9186
+ P,
9126
9187
  Dt,
9127
9188
  Ot
9128
9189
  ]);
@@ -9278,7 +9339,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9278
9339
  h,
9279
9340
  g
9280
9341
  ]);
9281
- let _n = !!e && !F && Se !== `${Dt ?? ""}|${Ot ?? ""}`, vn = !rn && !St && !_n && (!sn?.source || tt !== null && !it);
9342
+ let _n = !!e && !P && Se !== `${Dt ?? ""}|${Ot ?? ""}`, vn = !rn && !St && !_n && (!sn?.source || tt !== null && !it);
9282
9343
  L(() => {
9283
9344
  let e = ie?.state?.relevantSkillsToken, t = ie?.state?.relevantSkillsInputs, n = sn?.linkage?.jobId ?? t?.jobId ?? "", r = sn?.linkage?.applicantId ?? t?.applicantId ?? t?.candidateId ?? "";
9284
9345
  if (!vn || _ === !1 || !_ && !e && !t) return;
@@ -9461,7 +9522,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9461
9522
  }, [le]), In = () => {
9462
9523
  le.resetFields(), _e({}), We("internal"), Ke([]);
9463
9524
  }, Rn = wo(async (t, n, r = {}) => {
9464
- if (!F) return;
9525
+ if (!P) return;
9465
9526
  let i = Number(r.pageSize) > 0 ? Number(r.pageSize) : Re.pageSize, a = Number(r.current), o = Number.isFinite(a) && a > 0 ? Math.floor(a) : 1;
9466
9527
  try {
9467
9528
  He(t), Be({
@@ -9510,7 +9571,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9510
9571
  });
9511
9572
  }
9512
9573
  }, [
9513
- F,
9574
+ P,
9514
9575
  e,
9515
9576
  Ue,
9516
9577
  Re.pageSize
@@ -9734,7 +9795,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9734
9795
  Y.error(st);
9735
9796
  return;
9736
9797
  }
9737
- if (F) {
9798
+ if (P) {
9738
9799
  await Rn(e);
9739
9800
  return;
9740
9801
  }
@@ -9808,7 +9869,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9808
9869
  label: _,
9809
9870
  name: s,
9810
9871
  extra: Py(t, gn[t.field]),
9811
- rules: my(t, le, c, F, p, Nt, Kt(t, i.groupNameForActions), e),
9872
+ rules: my(t, le, c, P, p, Nt, Kt(t, i.groupNameForActions), e),
9812
9873
  ...k,
9813
9874
  dependencies: v,
9814
9875
  valuePropName: u,
@@ -9821,7 +9882,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9821
9882
  name: c,
9822
9883
  rowFieldKeys: i.rowFieldKeys,
9823
9884
  moduleName: e,
9824
- enforceOptions: !F,
9885
+ enforceOptions: !P,
9825
9886
  recordMeta: {
9826
9887
  ...sn?.linkage,
9827
9888
  ...lt
@@ -9871,7 +9932,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9871
9932
  hidden: !0,
9872
9933
  noStyle: !0,
9873
9934
  children: /* @__PURE__ */ Z(U, {})
9874
- })] }) : null, P = t.verifyAction ? /* @__PURE__ */ Q("div", {
9935
+ })] }) : null, ne = t.verifyAction ? /* @__PURE__ */ Q("div", {
9875
9936
  className: "v1-verify-field-row",
9876
9937
  children: [
9877
9938
  te,
@@ -9882,13 +9943,13 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9882
9943
  }),
9883
9944
  N
9884
9945
  ]
9885
- }) : te, ne = m ? /* @__PURE__ */ Q(X, { children: [P, /* @__PURE__ */ Z(H.Item, {
9946
+ }) : te, F = m ? /* @__PURE__ */ Q(X, { children: [ne, /* @__PURE__ */ Z(H.Item, {
9886
9947
  name: n === void 0 ? h[h.length - 1] : [n, h[h.length - 1]],
9887
9948
  valuePropName: "checked",
9888
9949
  hidden: !0,
9889
9950
  noStyle: !0,
9890
9951
  children: /* @__PURE__ */ Z(Io, {})
9891
- })] }) : P, re = i.inline ? {
9952
+ })] }) : ne, re = i.inline ? {
9892
9953
  flex: `${Number(t.combineWidth) > 0 ? Number(t.combineWidth) : 1} 1 0`,
9893
9954
  maxWidth: "none"
9894
9955
  } : void 0, ie = t.autoFillFromApi ? /* @__PURE__ */ Z(Uv, {
@@ -9932,7 +9993,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9932
9993
  md: ue(e),
9933
9994
  style: re,
9934
9995
  className: C,
9935
- children: ne
9996
+ children: F
9936
9997
  }) : null
9937
9998
  })
9938
9999
  ] }, t.field) : /* @__PURE__ */ Q(go, { children: [
@@ -9944,7 +10005,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9944
10005
  md: x,
9945
10006
  style: re,
9946
10007
  className: C,
9947
- children: ne
10008
+ children: F
9948
10009
  })
9949
10010
  ] }, t.field);
9950
10011
  }, sr = (t) => {
@@ -9996,13 +10057,13 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
9996
10057
  noStyle: !0,
9997
10058
  valuePropName: t.type === "checkbox" && !t.options?.length ? "checked" : "value",
9998
10059
  getValueFromEvent: t.type === "file" ? (e) => Array.isArray(e) ? e : e?.fileList : void 0,
9999
- rules: my(a, le, [...n, l], F, void 0, void 0, void 0, e),
10060
+ rules: my(a, le, [...n, l], P, void 0, void 0, void 0, e),
10000
10061
  children: /* @__PURE__ */ Z(Oy, {
10001
10062
  field: a,
10002
10063
  form: le,
10003
10064
  name: [...n, l],
10004
10065
  moduleName: e,
10005
- enforceOptions: !F,
10066
+ enforceOptions: !P,
10006
10067
  recordMeta: {
10007
10068
  ...sn?.linkage,
10008
10069
  ...lt
@@ -10083,13 +10144,13 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10083
10144
  noStyle: !0,
10084
10145
  valuePropName: t.type === "checkbox" && !t.options?.length ? "checked" : "value",
10085
10146
  getValueFromEvent: t.type === "file" ? (e) => Array.isArray(e) ? e : e?.fileList : void 0,
10086
- rules: my(s, le, o, F, void 0, void 0, void 0, e),
10147
+ rules: my(s, le, o, P, void 0, void 0, void 0, e),
10087
10148
  children: /* @__PURE__ */ Z(Oy, {
10088
10149
  field: s,
10089
10150
  form: le,
10090
10151
  name: o,
10091
10152
  moduleName: e,
10092
- enforceOptions: !F,
10153
+ enforceOptions: !P,
10093
10154
  recordMeta: {
10094
10155
  ...sn?.linkage,
10095
10156
  ...lt
@@ -10390,7 +10451,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10390
10451
  className: "v1-card v1-edit-card",
10391
10452
  title: /* @__PURE__ */ Z(ky, {
10392
10453
  icon: Av[t % Av.length],
10393
- title: F ? Ae || e.label : e.label ?? e.name ?? "Details"
10454
+ title: P ? Ae || e.label : e.label ?? e.name ?? "Details"
10394
10455
  }),
10395
10456
  extra: /* @__PURE__ */ Q(G, {
10396
10457
  size: 8,
@@ -10430,7 +10491,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10430
10491
  key: n,
10431
10492
  group: e,
10432
10493
  index: t,
10433
- title: F ? Ae || e.label : e.label ?? e.name ?? "Details",
10494
+ title: P ? Ae || e.label : e.label ?? e.name ?? "Details",
10434
10495
  actions: m.props.extra,
10435
10496
  children: m.props.children
10436
10497
  }) : m;
@@ -10464,7 +10525,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10464
10525
  },
10465
10526
  disabled: !vn || Me || At > 0 || !I.length,
10466
10527
  loading: Me,
10467
- children: ne
10528
+ children: F
10468
10529
  })
10469
10530
  ]
10470
10531
  }), kr = /* @__PURE__ */ Q("div", {
@@ -10550,7 +10611,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10550
10611
  _e({}), Na(e, le, { root: fe() });
10551
10612
  },
10552
10613
  children: [
10553
- vn && !F && /* @__PURE__ */ Z(Tr, {
10614
+ vn && !P && /* @__PURE__ */ Z(Tr, {
10554
10615
  form: le,
10555
10616
  groups: I,
10556
10617
  onJump: Fn
@@ -10567,9 +10628,9 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10567
10628
  vn && !Ct && I.length === 0 && /* @__PURE__ */ Z(Ao, {
10568
10629
  type: "info",
10569
10630
  showIcon: !0,
10570
- message: F ? "No search configuration found." : "No form fields are configured."
10631
+ message: P ? "No search configuration found." : "No form fields are configured."
10571
10632
  }),
10572
- vn && F && /* @__PURE__ */ Z("div", {
10633
+ vn && P && /* @__PURE__ */ Z("div", {
10573
10634
  className: "v1-search-form-actions",
10574
10635
  children: /* @__PURE__ */ Q(G, {
10575
10636
  size: 12,
@@ -10588,7 +10649,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10588
10649
  htmlType: "submit",
10589
10650
  disabled: Me || !I.length || Qt,
10590
10651
  loading: Me,
10591
- children: ne
10652
+ children: F
10592
10653
  })
10593
10654
  ]
10594
10655
  })
@@ -10598,7 +10659,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10598
10659
  })]
10599
10660
  })]
10600
10661
  }),
10601
- !F && /* @__PURE__ */ Q("div", {
10662
+ !P && /* @__PURE__ */ Q("div", {
10602
10663
  className: k ? "v1-footer v1-footer--embedded" : "v1-footer",
10603
10664
  style: typeof M == "function" ? { display: "none" } : void 0,
10604
10665
  children: [/* @__PURE__ */ Z(Dv, {
@@ -10629,12 +10690,12 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10629
10690
  },
10630
10691
  disabled: !vn || Me || At > 0 || !I.length,
10631
10692
  loading: Me,
10632
- children: ne
10693
+ children: F
10633
10694
  })
10634
10695
  ]
10635
10696
  })]
10636
10697
  }),
10637
- F && Ie.searched && /* @__PURE__ */ Z(ev, {
10698
+ P && Ie.searched && /* @__PURE__ */ Z(ev, {
10638
10699
  moduleName: e,
10639
10700
  breadcrumbItems: [],
10640
10701
  dataSource: Ie.rows,
@@ -10658,7 +10719,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10658
10719
  ]
10659
10720
  });
10660
10721
  return typeof M == "function" ? /* @__PURE__ */ Z(Rr.Provider, {
10661
- value: P,
10722
+ value: ne,
10662
10723
  children: M({
10663
10724
  children: kr,
10664
10725
  actions: Or,
@@ -10671,7 +10732,7 @@ var Fy = xo(function({ moduleName: e, action: t, authToken: n, clientId: r, regi
10671
10732
  getReviewGroups: () => I
10672
10733
  })
10673
10734
  }) : /* @__PURE__ */ Z(Rr.Provider, {
10674
- value: P,
10735
+ value: ne,
10675
10736
  children: /* @__PURE__ */ Q("main", { children: [c.length > 0 && /* @__PURE__ */ Z(Ea, { items: c }), kr] })
10676
10737
  });
10677
10738
  });
@@ -11499,7 +11560,7 @@ function bb({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
11499
11560
  b
11500
11561
  ]), N = () => {
11501
11562
  b || h.current?.click();
11502
- }, P = [
11563
+ }, ne = [
11503
11564
  "bulk-upload-dropzone",
11504
11565
  g ? "is-dragging" : "",
11505
11566
  b ? "is-busy" : "",
@@ -11563,7 +11624,7 @@ function bb({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
11563
11624
  tabIndex: b ? -1 : 0,
11564
11625
  "aria-disabled": b,
11565
11626
  "aria-label": "Upload the filled file — click to browse, or drop a file here",
11566
- className: P,
11627
+ className: ne,
11567
11628
  onClick: N,
11568
11629
  onKeyDown: (e) => {
11569
11630
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), N());
@@ -13160,7 +13221,7 @@ function DS({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
13160
13221
  A,
13161
13222
  E,
13162
13223
  ee
13163
- ]), P = R(() => {
13224
+ ]), ne = R(() => {
13164
13225
  let e = new Set(N.map((e) => e.key)), t = yx(o);
13165
13226
  return A.forEach((n) => {
13166
13227
  Cx(n, o, t) || e.add(n);
@@ -13177,10 +13238,10 @@ function DS({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
13177
13238
  N,
13178
13239
  A,
13179
13240
  o
13180
- ]), F = R(() => {
13241
+ ]), P = R(() => {
13181
13242
  let e = new Set(N.map((e) => e.key)), t = o.find((t) => hS(t.appendHistory) && [t.historyField, ...t.historyFields || []].some((t) => t && e.has(t)));
13182
13243
  return t?.label ?? t?.name ?? "Rate Details";
13183
- }, [o, N]), ne = e === "job", ae = R(() => ne ? _S(o) : null, [ne, o]), oe = () => {
13244
+ }, [o, N]), F = e === "job", ae = R(() => F ? _S(o) : null, [F, o]), oe = () => {
13184
13245
  g(!1), v("");
13185
13246
  }, se = async () => {
13186
13247
  if (!_.trim()) {
@@ -13443,7 +13504,7 @@ function DS({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
13443
13504
  className: "v1-card v1-detail-card",
13444
13505
  title: /* @__PURE__ */ Z(TS, {
13445
13506
  icon: /* @__PURE__ */ Z(yc, {}),
13446
- title: F
13507
+ title: P
13447
13508
  }),
13448
13509
  children: N.map((e, t) => /* @__PURE__ */ Q("div", {
13449
13510
  className: `v1-rh-section${t > 0 ? " v1-rh-section--gap" : ""}`,
@@ -13504,13 +13565,13 @@ function DS({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, gr
13504
13565
  description: d,
13505
13566
  className: "v1-detail-alert"
13506
13567
  }),
13507
- !l && !d && P.length === 0 && N.length === 0 && (a ?? /* @__PURE__ */ Z(Uo, { description: "No detail fields are configured." })),
13508
- P.flatMap((e, t) => {
13568
+ !l && !d && ne.length === 0 && N.length === 0 && (a ?? /* @__PURE__ */ Z(Uo, { description: "No detail fields are configured." })),
13569
+ ne.flatMap((e, t) => {
13509
13570
  let n = [Ae(e, t)];
13510
13571
  return Ne(e) && N.length > 0 && n.push(je()), n;
13511
13572
  }),
13512
- N.length > 0 && !P.some(Ne) && je(),
13513
- ne && ae?.value && /* @__PURE__ */ Z(Fo, {
13573
+ N.length > 0 && !ne.some(Ne) && je(),
13574
+ F && ae?.value && /* @__PURE__ */ Z(Fo, {
13514
13575
  size: "small",
13515
13576
  className: "v1-card v1-detail-card",
13516
13577
  title: /* @__PURE__ */ Z(TS, {
@@ -14162,7 +14223,7 @@ function yC(e) {
14162
14223
  return `${_C(e).toFixed(2)} hrs`;
14163
14224
  }
14164
14225
  function bC(e, t = "$", n = "hr") {
14165
- let r = F(n, ""), i = vC(e, t);
14226
+ let r = P(n, ""), i = vC(e, t);
14166
14227
  return r ? `${i}/${r}` : i;
14167
14228
  }
14168
14229
  function xC(e) {
@@ -15056,7 +15117,7 @@ function Nw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
15056
15117
  let [M, N] = z({
15057
15118
  signature: "",
15058
15119
  groups: {}
15059
- }), P = mC(r);
15120
+ }), ne = mC(r);
15060
15121
  L(() => {
15061
15122
  let e = pC(r);
15062
15123
  if (!e.length) return;
@@ -15070,27 +15131,27 @@ function Nw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
15070
15131
  return [e.key, Array.isArray(t) ? t : []];
15071
15132
  })).then((e) => {
15072
15133
  t || N({
15073
- signature: P,
15134
+ signature: ne,
15074
15135
  groups: Object.fromEntries(e)
15075
15136
  });
15076
15137
  }).catch(() => {
15077
15138
  t || N({
15078
- signature: P,
15139
+ signature: ne,
15079
15140
  groups: {}
15080
15141
  });
15081
15142
  }), () => {
15082
15143
  t = !0;
15083
15144
  };
15084
- }, [P, g]);
15085
- let F = R(() => gC(M.signature === P ? M.groups : {}), [M, P]), ne = R(() => oC(te, y, { aux: F }), [
15145
+ }, [ne, g]);
15146
+ let P = R(() => gC(M.signature === ne ? M.groups : {}), [M, ne]), F = R(() => oC(te, y, { aux: P }), [
15086
15147
  te,
15087
15148
  y,
15088
- F
15149
+ P
15089
15150
  ]);
15090
15151
  L(() => {
15091
- ne && c && c(ne);
15092
- }, [ne]);
15093
- let { eyebrow: re, title: ie = "-", status: ae, titleIds: oe = [], meta: se = [], ids: ce = [], tabs: le = [], stats: ue = [], timestamp: de = null } = ne ?? {}, { canAdd: fe, canEdit: pe, canDelete: me } = yp(e), he = R(() => xw(y, t), [y, t]);
15152
+ F && c && c(F);
15153
+ }, [F]);
15154
+ let { eyebrow: re, title: ie = "-", status: ae, titleIds: oe = [], meta: se = [], ids: ce = [], tabs: le = [], stats: ue = [], timestamp: de = null } = F ?? {}, { canAdd: fe, canEdit: pe, canDelete: me } = yp(e), he = R(() => xw(y, t), [y, t]);
15094
15155
  L(() => {
15095
15156
  he && u && u(he);
15096
15157
  }, [he]);
@@ -15180,7 +15241,7 @@ function Nw({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
15180
15241
  e
15181
15242
  ]);
15182
15243
  let Ie = Ne.id === t ? Ne.map : {};
15183
- if (!ne) return null;
15244
+ if (!F) return null;
15184
15245
  let Le = (n) => {
15185
15246
  let r = [...ke, ...Ae].find((e) => e.key === n);
15186
15247
  if (r?.actionType === "document" && r.documentField) {
@@ -16420,7 +16481,7 @@ function $T({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
16420
16481
  }), {
16421
16482
  pyops: r,
16422
16483
  core: s
16423
- }) : null, k = O?.base ?? "", A = O?.path ?? "", [j, te] = z(""), [M, N] = z(""), [P, F] = z(""), [ne, re] = z({
16484
+ }) : null, k = O?.base ?? "", A = O?.path ?? "", [j, te] = z(""), [M, N] = z(""), [ne, P] = z(""), [F, re] = z({
16424
16485
  open: !1,
16425
16486
  docs: [],
16426
16487
  index: 0
@@ -16494,7 +16555,7 @@ function $T({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
16494
16555
  masterName: e.masterName ?? "",
16495
16556
  locationSearch: j,
16496
16557
  lookupSearch: M,
16497
- masterSearch: P,
16558
+ masterSearch: ne,
16498
16559
  moduleName: c ?? "",
16499
16560
  refetchNonce: ce,
16500
16561
  locationLevel: e.locationLevel ?? "",
@@ -16559,7 +16620,7 @@ function $T({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
16559
16620
  async function r() {
16560
16621
  try {
16561
16622
  let r = [];
16562
- if (t === "master" || t === "module") r = await br(c, e.field, t === "master" ? P : "", e.limit ?? 50, 0, {
16623
+ if (t === "master" || t === "module") r = await br(c, e.field, t === "master" ? ne : "", e.limit ?? 50, 0, {
16563
16624
  dataSource: t,
16564
16625
  masterName: e.masterName,
16565
16626
  groupName: e.groupName
@@ -16633,7 +16694,7 @@ function $T({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
16633
16694
  e.limit,
16634
16695
  j,
16635
16696
  M,
16636
- P,
16697
+ ne,
16637
16698
  c,
16638
16699
  e.extraFields,
16639
16700
  e.optionsRequireExtraField,
@@ -16800,7 +16861,7 @@ function $T({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
16800
16861
  ...Xn(e, _t, l),
16801
16862
  placeholder: wt,
16802
16863
  notFoundContent: nt ? /* @__PURE__ */ Z(os, { size: "small" }) : void 0,
16803
- onSearch: r ? N : a ? F : void 0,
16864
+ onSearch: r ? N : a ? P : void 0,
16804
16865
  onChange: u,
16805
16866
  popupRender: Ot.footer ? (e) => /* @__PURE__ */ Q(X, { children: [e, Ot.footer] }) : void 0
16806
16867
  }), Ot.modal] });
@@ -17022,13 +17083,13 @@ function $T({ field: e, form: t, name: n, value: i, checked: a, fileList: o, mod
17022
17083
  "?"
17023
17084
  ] }), /* @__PURE__ */ Z("p", { children: "Save your changes to apply the removal." })]
17024
17085
  }), /* @__PURE__ */ Z(Xa, {
17025
- documents: ne.docs,
17026
- open: ne.open,
17086
+ documents: F.docs,
17087
+ open: F.open,
17027
17088
  onClose: () => re((e) => ({
17028
17089
  ...e,
17029
17090
  open: !1
17030
17091
  })),
17031
- initialIndex: ne.index
17092
+ initialIndex: F.index
17032
17093
  })] });
17033
17094
  if (y) {
17034
17095
  let t = f.length > 0 ? `Upload more ${e.label ?? "files"}` : e.buttonLabel ?? `Upload ${e.label ?? "File"}`;
@@ -17219,7 +17280,7 @@ function nE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
17219
17280
  r,
17220
17281
  T
17221
17282
  ]);
17222
- let [N, P] = z(!1), [F, ne] = z(""), [re, ie] = z(!1), [ae, oe] = z(!1), [se, ce] = z(""), [le, ue] = z(null), [de, fe] = z(() => /* @__PURE__ */ new Map()), [pe, me] = z(""), he = a || pe, [ge, _e] = z({}), [, ye] = z(0);
17283
+ let [N, ne] = z(!1), [P, F] = z(""), [re, ie] = z(!1), [ae, oe] = z(!1), [se, ce] = z(""), [le, ue] = z(null), [de, fe] = z(() => /* @__PURE__ */ new Map()), [pe, me] = z(""), he = a || pe, [ge, _e] = z({}), [, ye] = z(0);
17223
17284
  L(() => {
17224
17285
  let e = !0;
17225
17286
  return ze().then(() => {
@@ -17399,7 +17460,7 @@ function nE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
17399
17460
  let n = !1;
17400
17461
  async function i() {
17401
17462
  try {
17402
- P(!0), ne(""), ie(!1), ce("");
17463
+ ne(!0), F(""), ie(!1), ce("");
17403
17464
  let i = await $a({
17404
17465
  module: e,
17405
17466
  id: r,
@@ -17422,9 +17483,9 @@ function nE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
17422
17483
  !n && r && r !== pe && me(r);
17423
17484
  }
17424
17485
  } catch (t) {
17425
- console.error(`Failed to fetch ${e} edit data:`, t), n || (ie(fS(t)), ne(t?.message || "Failed to load record"));
17486
+ console.error(`Failed to fetch ${e} edit data:`, t), n || (ie(fS(t)), F(t?.message || "Failed to load record"));
17426
17487
  } finally {
17427
- n || P(!1);
17488
+ n || ne(!1);
17428
17489
  }
17429
17490
  }
17430
17491
  return i(), () => {
@@ -17840,22 +17901,22 @@ function nE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
17840
17901
  watchPaths: Oa(t.prefillWhen, u, or, h),
17841
17902
  targetPath: u,
17842
17903
  resetOnNoMatch: t.prefillWhenReset !== !1
17843
- }, `${t.field}-prefillWhen`) : null, N = Di(t.computeFrom) ? Zi(t.computeFrom, u, or, h) : null, P = N ? /* @__PURE__ */ Z(Ta, {
17904
+ }, `${t.field}-prefillWhen`) : null, N = Di(t.computeFrom) ? Zi(t.computeFrom, u, or, h) : null, ne = N ? /* @__PURE__ */ Z(Ta, {
17844
17905
  form: E,
17845
17906
  config: t.computeFrom,
17846
17907
  sourcePath: N.source,
17847
17908
  targetPath: u,
17848
17909
  setFields: N.setFields
17849
- }, `${t.field}-computeFrom`) : null, F = !o.inline && kn(t).length > 0, ne = (e) => F ? hn(t, b, (t) => e(fn(t, h(t.field)))) : b;
17850
- return gt(t.showIf) || F ? /* @__PURE__ */ Q(ho.Fragment, { children: [
17910
+ }, `${t.field}-computeFrom`) : null, P = !o.inline && kn(t).length > 0, F = (e) => P ? hn(t, b, (t) => e(fn(t, h(t.field)))) : b;
17911
+ return gt(t.showIf) || P ? /* @__PURE__ */ Q(ho.Fragment, { children: [
17851
17912
  M,
17852
- P,
17913
+ ne,
17853
17914
  /* @__PURE__ */ Z(H.Item, {
17854
17915
  shouldUpdate: !0,
17855
17916
  noStyle: !0,
17856
17917
  children: ({ getFieldValue: e }) => !gt(t.showIf) || ht(t.showIf, e, h) ? /* @__PURE__ */ Z(V, {
17857
17918
  xs: 24,
17858
- md: ne(e),
17919
+ md: F(e),
17859
17920
  style: C,
17860
17921
  className: o.inline ? "v1-combine-cell" : void 0,
17861
17922
  children: te
@@ -17863,7 +17924,7 @@ function nE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
17863
17924
  })
17864
17925
  ] }, t.field) : /* @__PURE__ */ Q(ho.Fragment, { children: [
17865
17926
  M,
17866
- P,
17927
+ ne,
17867
17928
  /* @__PURE__ */ Z(V, {
17868
17929
  xs: 24,
17869
17930
  md: b,
@@ -18313,23 +18374,23 @@ function nE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
18313
18374
  size: "large",
18314
18375
  description: Ne.loadingText || "Reading the file…"
18315
18376
  }), re ? /* @__PURE__ */ Z(dS, {
18316
- message: F,
18377
+ message: P,
18317
18378
  onBack: () => S(-1),
18318
18379
  backLabel: "Go back"
18319
18380
  }) : /* @__PURE__ */ Q(os, {
18320
18381
  spinning: N,
18321
18382
  description: "Loading form fields…",
18322
18383
  children: [
18323
- T && !F && /* @__PURE__ */ Z(Ao, {
18384
+ T && !P && /* @__PURE__ */ Z(Ao, {
18324
18385
  type: "info",
18325
18386
  showIcon: !0,
18326
18387
  message: "Editing a saved candidate version. Saving updates the current candidate and creates a new version.",
18327
18388
  style: { marginBottom: 16 }
18328
18389
  }),
18329
- F && /* @__PURE__ */ Z(Ao, {
18390
+ P && /* @__PURE__ */ Z(Ao, {
18330
18391
  type: "error",
18331
18392
  showIcon: !0,
18332
- message: F,
18393
+ message: P,
18333
18394
  style: { marginBottom: 16 }
18334
18395
  }),
18335
18396
  se && /* @__PURE__ */ Z(Ao, {
@@ -18377,7 +18438,7 @@ function nE({ moduleName: e, groupName: t, validateChangedFieldsOnly: n = ["cand
18377
18438
  render: () => Dt(e, t)
18378
18439
  }) : Dt(e, t)
18379
18440
  }, e.name ?? `grp-${t}`)),
18380
- !N && !F && be.length === 0 && /* @__PURE__ */ Z(Ao, {
18441
+ !N && !P && be.length === 0 && /* @__PURE__ */ Z(Ao, {
18381
18442
  type: "info",
18382
18443
  showIcon: !0,
18383
18444
  message: "No form fields are configured."
@@ -18471,7 +18532,7 @@ function cE(e, t, { navigate: n, location: r, module: i, onDone: a } = {}) {
18471
18532
  }
18472
18533
  if (e.actionType === "modal") {
18473
18534
  n(`/popup/${e.popupKey || e.key}`, { state: {
18474
- background: r,
18535
+ background: /^\/popup\/(?:candidate|submission)-quick-view\//.test(r?.pathname || "") && r.state?.background || r,
18475
18536
  selectedIds: [t?._id ?? t?.id],
18476
18537
  selectedRecords: [t],
18477
18538
  moduleName: i,
@@ -19002,29 +19063,29 @@ function DE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
19002
19063
  })), M = typeof o == "number" && typeof s == "number", N = M ? {
19003
19064
  current: o,
19004
19065
  pageSize: s
19005
- } : E, P = R(() => t.map((e) => ({
19066
+ } : E, ne = R(() => t.map((e) => ({
19006
19067
  ...e,
19007
19068
  key: wE(e),
19008
19069
  label: CE(e)
19009
- })).filter((e) => e.key && e.label && !e.tableHidden), [t]), F = ee.length ? ee : P.map((e) => e.key), ne = R(() => {
19070
+ })).filter((e) => e.key && e.label && !e.tableHidden), [t]), P = ee.length ? ee : ne.map((e) => e.key), F = R(() => {
19010
19071
  if (u) return r;
19011
19072
  let e = b.toLowerCase();
19012
- return !e || e.length < 3 ? r : r.filter((t) => P.some((n) => String(TE(t, n.key)).toLowerCase().includes(e)));
19073
+ return !e || e.length < 3 ? r : r.filter((t) => ne.some((n) => String(TE(t, n.key)).toLowerCase().includes(e)));
19013
19074
  }, [
19014
19075
  r,
19015
- P,
19076
+ ne,
19016
19077
  u,
19017
19078
  b
19018
- ]), re = typeof a == "number" ? a : b.trim() ? ne.length : r.length, ie = R(() => {
19019
- if (M) return ne;
19079
+ ]), re = typeof a == "number" ? a : b.trim() ? F.length : r.length, ie = R(() => {
19080
+ if (M) return F;
19020
19081
  let e = (N.current - 1) * N.pageSize;
19021
- return ne.slice(e, e + N.pageSize);
19082
+ return F.slice(e, e + N.pageSize);
19022
19083
  }, [
19023
19084
  N.current,
19024
19085
  N.pageSize,
19025
- ne,
19086
+ F,
19026
19087
  M
19027
- ]), ae = R(() => P.filter((e) => F.includes(e.key)).map((e) => ({
19088
+ ]), ae = R(() => ne.filter((e) => P.includes(e.key)).map((e) => ({
19028
19089
  title: e.label,
19029
19090
  dataIndex: e.key,
19030
19091
  key: e.key,
@@ -19037,9 +19098,9 @@ function DE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
19037
19098
  className: "job-cell-primary",
19038
19099
  children: TE(n, e.key)
19039
19100
  })
19040
- })), [P, F]), oe = F.length === P.length, se = F.length > 0 && !oe, ce = (e, t) => {
19101
+ })), [ne, P]), oe = P.length === ne.length, se = P.length > 0 && !oe, ce = (e, t) => {
19041
19102
  O((n) => {
19042
- let r = n.length ? n : P.map((e) => e.key);
19103
+ let r = n.length ? n : ne.map((e) => e.key);
19043
19104
  return t ? r.includes(e) ? r : [...r, e] : r.filter((t) => t !== e);
19044
19105
  });
19045
19106
  }, le = /* @__PURE__ */ Q("div", {
@@ -19049,11 +19110,11 @@ function DE({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
19049
19110
  checked: oe,
19050
19111
  indeterminate: se,
19051
19112
  onChange: (e) => {
19052
- O(e.target.checked ? P.map((e) => e.key) : []);
19113
+ O(e.target.checked ? ne.map((e) => e.key) : []);
19053
19114
  },
19054
19115
  children: "Select All"
19055
- }), P.map((e) => /* @__PURE__ */ Z(Io, {
19056
- checked: F.includes(e.key),
19116
+ }), ne.map((e) => /* @__PURE__ */ Z(Io, {
19117
+ checked: P.includes(e.key),
19057
19118
  onChange: (t) => ce(e.key, t.target.checked),
19058
19119
  children: e.label
19059
19120
  }, e.key))]
@@ -20732,7 +20793,7 @@ function MO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
20732
20793
  if (!t || t.closest("[data-in-place-record-links]")) return;
20733
20794
  let n = t.getAttribute("href") || "";
20734
20795
  /\/detail-?view(s)?[/?]/i.test(n) && T(n) && e.preventDefault();
20735
- }, [T]), [D, ee] = z("traditional"), [O, k] = z("internal"), [A, j] = z({}), [te, M] = z([]), [N, P] = z(CO), [F, ne] = z({
20796
+ }, [T]), [D, ee] = z("traditional"), [O, k] = z("internal"), [A, j] = z({}), [te, M] = z([]), [N, ne] = z(CO), [P, F] = z({
20736
20797
  current: 1,
20737
20798
  pageSize: 10
20738
20799
  }), [re, ie] = z(null), [ae, oe] = z({}), [se, ce] = z({}), [le, de] = z(null), [fe, pe] = z(0), [me, he] = z(!1), [ge, _e] = z(null), [ve, ye] = z(null), [be, xe] = z(null), [Se, Ce] = z(!1), we = Eo(), [Te, Ee] = z(null), De = Oo(!1), Oe = wo((e) => {
@@ -20793,11 +20854,11 @@ function MO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
20793
20854
  ...t
20794
20855
  }))), j({}), de(null), ee(e ? "boolean" : "traditional");
20795
20856
  }, He = wo(async (t, n, r = {}) => {
20796
- let a = Number(r.pageSize) > 0 ? Number(r.pageSize) : F.pageSize, o = Number(r.current), s = Number.isFinite(o) && o > 0 ? Math.floor(o) : 1, c = uv(t?.[xO]), l = Ne ? n ? dv(n, O) : c.includes("internal") ? "internal" : dv(t?.[xO], O) : "", u = Me[lv(l)] || e;
20797
- ie(t), ne({
20857
+ let a = Number(r.pageSize) > 0 ? Number(r.pageSize) : P.pageSize, o = Number(r.current), s = Number.isFinite(o) && o > 0 ? Math.floor(o) : 1, c = uv(t?.[xO]), l = Ne ? n ? dv(n, O) : c.includes("internal") ? "internal" : dv(t?.[xO], O) : "", u = Me[lv(l)] || e;
20858
+ ie(t), F({
20798
20859
  current: s,
20799
20860
  pageSize: a
20800
- }), j({}), P((e) => ({
20861
+ }), j({}), ne((e) => ({
20801
20862
  ...e,
20802
20863
  loading: !0,
20803
20864
  searched: !0
@@ -20826,7 +20887,7 @@ function MO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
20826
20887
  filters: fO(t, Re)
20827
20888
  });
20828
20889
  let r = Number(n.counts?.[l]), o = Number.isFinite(r) ? r : n.total;
20829
- if (k(l), Oe(Number(o) > 0 || (n.rows?.length ?? 0) > 0), P({
20890
+ if (k(l), Oe(Number(o) > 0 || (n.rows?.length ?? 0) > 0), ne({
20830
20891
  searched: !0,
20831
20892
  rows: n.rows,
20832
20893
  total: o,
@@ -20849,7 +20910,7 @@ function MO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
20849
20910
  }));
20850
20911
  } catch (e) {
20851
20912
  let t = e?.details ? String(e.details) : "", n = e?.code === "INVALID_BOOLEAN_QUERY" ? Le.find((e) => t.toLowerCase().includes(String(e.field).toLowerCase())) : null;
20852
- n ? j({ [n.field]: t }) : Y.error(t || e?.message || "Search failed"), P({
20913
+ n ? j({ [n.field]: t }) : Y.error(t || e?.message || "Search failed"), ne({
20853
20914
  ...CO,
20854
20915
  searched: !0
20855
20916
  });
@@ -20861,7 +20922,7 @@ function MO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
20861
20922
  Ie,
20862
20923
  i,
20863
20924
  e,
20864
- F.pageSize,
20925
+ P.pageSize,
20865
20926
  h,
20866
20927
  O,
20867
20928
  Oe,
@@ -20990,7 +21051,7 @@ function MO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
20990
21051
  De.current = !1, Ce(!1), Y.error("Fix the highlighted field before searching.");
20991
21052
  });
20992
21053
  }, Qe = () => {
20993
- De.current = !1, Ce(!1), p.resetFields(), ce({}), j({}), P(CO), M([]), k("internal"), de(null), _e(null);
21054
+ De.current = !1, Ce(!1), p.resetFields(), ce({}), j({}), ne(CO), M([]), k("internal"), de(null), _e(null);
20994
21055
  }, $e = wo(async (e, t) => {
20995
21056
  let n = wv(e, t);
20996
21057
  oe((e) => ({
@@ -21294,8 +21355,8 @@ function MO({ moduleName: e, action: t, formType: n = "search", title: r, migrat
21294
21355
  fields: rt,
21295
21356
  total: N.total,
21296
21357
  loading: N.loading,
21297
- current: F.current,
21298
- pageSize: F.pageSize,
21358
+ current: P.current,
21359
+ pageSize: P.pageSize,
21299
21360
  showSearch: l,
21300
21361
  showFilterButton: l,
21301
21362
  showCreatedDateRelativeTime: !0,
@@ -23548,7 +23609,7 @@ function sA(e = {}, t = {}, n = {}) {
23548
23609
  let r = {
23549
23610
  ...Gk,
23550
23611
  ...n ?? {}
23551
- }, i = e.submission ?? e ?? {}, a = e.job ?? {}, o = e.client ?? {}, s = e.engagement ?? {}, c = iA(i, "contractType") ?? s.onboardingType ?? e.contractType, l = aA(c), u = qk(c, r.employerContractTypes), d = Array.isArray(a.jobPayDetails) ? a.jobPayDetails[a.jobPayDetails.length - 1] ?? {} : a.jobPayDetails ?? {}, f = Jk(d.clientBudgetStart ?? iA(i, "clientBudget", "clientBudgetStart")), p = Jk(d.clientBudgetEnd ?? iA(i, "clientBudget", "clientBudgetEnd")) || f, m = p || f, h = $k(o.vmsFeeHistory) ?? {}, g = t.clientVmsFee ?? o.vmsFee ?? {}, _ = Xk(h.vmsPercentage) ? Jk(h.vmsPercentage) : Xk(o.vmsPercentage) ? Jk(o.vmsPercentage) : g.isApplicable === !1 ? 0 : Jk(Zk(g.value, g.percent, typeof g == "number" ? g : void 0, iA(i, "clientVmsPercent"), iA(i, "vmsPercent"))), v = _ > 0, y = String(Zk(h.vmsPercentageType, o.vmsPercentageType) ?? "recurring").toLowerCase(), b = Jk(iA(i, "proposedRate", "candidateProposedRate") ?? e.proposedRateValue), x = (e, t, n) => Zk(iA(i, e, t), iA(i, e, n)), S = iA(i, "candidateRate", "candidateAcceptedRate"), C = Zk(iA(i, "candidateBudget", "candidateBudgetStart"), iA(i, "candidateBudget", "candidateBudgetRate")), w = Zk(Jk(S) > 0 ? x("candidateRate", "candidateAcceptedCurrency", "candidateAcceptedCurrencySymbol") : void 0, Jk(C) > 0 ? x("candidateBudget", "candidateBudgetCurrency", "candidateBudgetCurrencySymbol") : void 0, b > 0 ? x("proposedRate", "candidateProposedRateCurrency", "candidateProposedRateCurrencySymbol") : void 0, d.clientBudgetCurrency, d.clientBudgetCurrencySymbol, a.currency, a.currencySymbol, r.currency), T = M(w, r.currency), E = Zk(iA(i, "candidateRate", "candidateAcceptedPayUnit"), iA(i, "candidateBudget", "candidateBudgetUnit"), iA(i, "proposedRate", "candidateProposedRateUnit"), d.clientBudgetUnit, r.rateUnit), D = E, ee = Zk(d.clientBudgetUnit, D), O = Array.isArray(i.approvalRateEdits) ? $k(i.approvalRateEdits) : null, k = O && typeof O == "object" && Object.keys(O).length ? O : null, A = k && Xk(k.employerRate) ? Jk(k.employerRate) : null, j = k && Xk(k.employerVmsPercent) ? Jk(k.employerVmsPercent) : null, te = A ?? Jk(iA(i, "candidateRate", "candidateAcceptedRate") ?? iA(i, "candidateBudget", "candidateBudgetStart") ?? iA(i, "candidateBudget", "candidateBudgetRate")), N = j == null ? Yk(iA(i, "submission_current_employer", "isVmsRequired") ?? iA(i, "submission_current_employer", "isVMSRequired")) : j > 0, P = j ?? Jk(Zk(iA(i, "submission_current_employer", "vmsPercentage"), iA(i, "submission_current_employer", "vmsCommission"), e.employer?.vmsPercentage, e.employer?.vmsCommission, s.vmsPercent)), F = P > 0, ne = N ? P : 0, re = String(iA(i, "submission_current_employer", "vmsType") ?? iA(i, "submission_current_employer", "vmsCommissionType") ?? "Recurring"), ie = iA(i, "submission_current_employer", "tax"), oe = t.locationTaxPercent == null ? ie != null && ie !== "" ? Jk(ie) : cA(t.locationTaxRows, iA(i, "submission_current_employer", "locationId") ?? iA(i, "submission_current_employer", "location") ?? iA(i, "city") ?? iA(i, "state") ?? a.jobLocation) : Jk(t.locationTaxPercent);
23612
+ }, i = e.submission ?? e ?? {}, a = e.job ?? {}, o = e.client ?? {}, s = e.engagement ?? {}, c = iA(i, "contractType") ?? s.onboardingType ?? e.contractType, l = aA(c), u = qk(c, r.employerContractTypes), d = Array.isArray(a.jobPayDetails) ? a.jobPayDetails[a.jobPayDetails.length - 1] ?? {} : a.jobPayDetails ?? {}, f = Jk(d.clientBudgetStart ?? iA(i, "clientBudget", "clientBudgetStart")), p = Jk(d.clientBudgetEnd ?? iA(i, "clientBudget", "clientBudgetEnd")) || f, m = p || f, h = $k(o.vmsFeeHistory) ?? {}, g = t.clientVmsFee ?? o.vmsFee ?? {}, _ = Xk(h.vmsPercentage) ? Jk(h.vmsPercentage) : Xk(o.vmsPercentage) ? Jk(o.vmsPercentage) : g.isApplicable === !1 ? 0 : Jk(Zk(g.value, g.percent, typeof g == "number" ? g : void 0, iA(i, "clientVmsPercent"), iA(i, "vmsPercent"))), v = _ > 0, y = String(Zk(h.vmsPercentageType, o.vmsPercentageType) ?? "recurring").toLowerCase(), b = Jk(iA(i, "proposedRate", "candidateProposedRate") ?? e.proposedRateValue), x = (e, t, n) => Zk(iA(i, e, t), iA(i, e, n)), S = iA(i, "candidateRate", "candidateAcceptedRate"), C = Zk(iA(i, "candidateBudget", "candidateBudgetStart"), iA(i, "candidateBudget", "candidateBudgetRate")), w = Zk(Jk(S) > 0 ? x("candidateRate", "candidateAcceptedCurrency", "candidateAcceptedCurrencySymbol") : void 0, Jk(C) > 0 ? x("candidateBudget", "candidateBudgetCurrency", "candidateBudgetCurrencySymbol") : void 0, b > 0 ? x("proposedRate", "candidateProposedRateCurrency", "candidateProposedRateCurrencySymbol") : void 0, d.clientBudgetCurrency, d.clientBudgetCurrencySymbol, a.currency, a.currencySymbol, r.currency), T = M(w, r.currency), E = Zk(iA(i, "candidateRate", "candidateAcceptedPayUnit"), iA(i, "candidateBudget", "candidateBudgetUnit"), iA(i, "proposedRate", "candidateProposedRateUnit"), d.clientBudgetUnit, r.rateUnit), D = E, ee = Zk(d.clientBudgetUnit, D), O = Array.isArray(i.approvalRateEdits) ? $k(i.approvalRateEdits) : null, k = O && typeof O == "object" && Object.keys(O).length ? O : null, A = k && Xk(k.employerRate) ? Jk(k.employerRate) : null, j = k && Xk(k.employerVmsPercent) ? Jk(k.employerVmsPercent) : null, te = A ?? Jk(iA(i, "candidateRate", "candidateAcceptedRate") ?? iA(i, "candidateBudget", "candidateBudgetStart") ?? iA(i, "candidateBudget", "candidateBudgetRate")), N = j == null ? Yk(iA(i, "submission_current_employer", "isVmsRequired") ?? iA(i, "submission_current_employer", "isVMSRequired")) : j > 0, ne = j ?? Jk(Zk(iA(i, "submission_current_employer", "vmsPercentage"), iA(i, "submission_current_employer", "vmsCommission"), e.employer?.vmsPercentage, e.employer?.vmsCommission, s.vmsPercent)), P = ne > 0, F = N ? ne : 0, re = String(iA(i, "submission_current_employer", "vmsType") ?? iA(i, "submission_current_employer", "vmsCommissionType") ?? "Recurring"), ie = iA(i, "submission_current_employer", "tax"), oe = t.locationTaxPercent == null ? ie != null && ie !== "" ? Jk(ie) : cA(t.locationTaxRows, iA(i, "submission_current_employer", "locationId") ?? iA(i, "submission_current_employer", "location") ?? iA(i, "city") ?? iA(i, "state") ?? a.jobLocation) : Jk(t.locationTaxPercent);
23552
23613
  return {
23553
23614
  contractType: l,
23554
23615
  contractTypeLabel: Kk(c) ? String(c).trim() : "-",
@@ -23566,9 +23627,9 @@ function sA(e = {}, t = {}, n = {}) {
23566
23627
  clientVmsPercentageType: y,
23567
23628
  proposedRate: b,
23568
23629
  employerRate: te,
23569
- employerVmsPercent: ne,
23570
- employerVmsPercentConfigured: P,
23571
- employerVmsAvailable: F,
23630
+ employerVmsPercent: F,
23631
+ employerVmsPercentConfigured: ne,
23632
+ employerVmsAvailable: P,
23572
23633
  employerVmsType: re,
23573
23634
  employerVmsRequired: N,
23574
23635
  locationTaxPercent: oe,
@@ -23584,18 +23645,18 @@ function cA(e, t) {
23584
23645
  return Jk(r?.taxValue ?? r?.taxPercent);
23585
23646
  }
23586
23647
  function lA(e, t = {}) {
23587
- let { contractType: n = "C2C", isEmployerContract: r, currency: i = Gk.currency, currencyRaw: a, rateUnit: o = Gk.rateUnit, employerRateUnit: s, clientRateUnit: c, clientVmsConfigured: l, clientJobRate: u = 0, clientJobRateFrom: d = 0, clientJobRateTo: f = 0, clientVmsPercent: p = 0, clientVmsPercentageType: m = "recurring", proposedRate: h = 0, employerRate: g = 0, employerVmsPercent: _ = 0, employerVmsPercentConfigured: v = 0, employerVmsAvailable: y = !1, employerVmsType: b = "Recurring", employerVmsRequired: x = !1, locationTaxPercent: S = 0 } = e ?? {}, C = t.employerRate == null ? Jk(g) : Jk(t.employerRate), w = t.locationTaxPercent != null && t.locationTaxPercent !== "" ? Jk(t.locationTaxPercent) : S, T = t.employerVmsPercent == null ? null : Jk(t.employerVmsPercent), E = T ?? v, D = T == null ? x : T > 0, ee = T == null ? y : T > 0, O = T ?? _, k = M(i, Gk.currency), A = t.proposedRate == null ? Jk(h) : Jk(t.proposedRate), j = !!t.includeReferral, te = j ? Jk(t.referralRate) : 0, N = (t.deductReferral == null ? j : t.deductReferral) ? te : 0, P = oA(u, p), ne = Qk(u - P), re = oA(A, p), oe = Qk(A - re), se = n === "W2", ce = r ?? !se, le = se ? w : ce ? O : 0, ue = oA(C, le), de = Qk(C - ue), fe = Qk(oe - de - N), pe = s ?? o, me = c ?? o;
23648
+ let { contractType: n = "C2C", isEmployerContract: r, currency: i = Gk.currency, currencyRaw: a, rateUnit: o = Gk.rateUnit, employerRateUnit: s, clientRateUnit: c, clientVmsConfigured: l, clientJobRate: u = 0, clientJobRateFrom: d = 0, clientJobRateTo: f = 0, clientVmsPercent: p = 0, clientVmsPercentageType: m = "recurring", proposedRate: h = 0, employerRate: g = 0, employerVmsPercent: _ = 0, employerVmsPercentConfigured: v = 0, employerVmsAvailable: y = !1, employerVmsType: b = "Recurring", employerVmsRequired: x = !1, locationTaxPercent: S = 0 } = e ?? {}, C = t.employerRate == null ? Jk(g) : Jk(t.employerRate), w = t.locationTaxPercent != null && t.locationTaxPercent !== "" ? Jk(t.locationTaxPercent) : S, T = t.employerVmsPercent == null ? null : Jk(t.employerVmsPercent), E = T ?? v, D = T == null ? x : T > 0, ee = T == null ? y : T > 0, O = T ?? _, k = M(i, Gk.currency), A = t.proposedRate == null ? Jk(h) : Jk(t.proposedRate), j = !!t.includeReferral, te = j ? Jk(t.referralRate) : 0, N = (t.deductReferral == null ? j : t.deductReferral) ? te : 0, ne = oA(u, p), F = Qk(u - ne), re = oA(A, p), oe = Qk(A - re), se = n === "W2", ce = r ?? !se, le = se ? w : ce ? O : 0, ue = oA(C, le), de = Qk(C - ue), fe = Qk(oe - de - N), pe = s ?? o, me = c ?? o;
23588
23649
  return {
23589
23650
  contractType: n,
23590
23651
  currency: k,
23591
23652
  currencyRaw: ae(a ?? i),
23592
23653
  rateUnit: o,
23593
23654
  rateUnitLabel: ie(o),
23594
- rateUnitShort: F(o),
23655
+ rateUnitShort: P(o),
23595
23656
  employerRateUnit: pe,
23596
- employerRateUnitShort: F(pe),
23657
+ employerRateUnitShort: P(pe),
23597
23658
  clientRateUnit: me,
23598
- clientRateUnitShort: F(me),
23659
+ clientRateUnitShort: P(me),
23599
23660
  isW2: se,
23600
23661
  isEmployerContract: !!ce,
23601
23662
  clientJobRate: Qk(u),
@@ -23604,8 +23665,8 @@ function lA(e, t = {}) {
23604
23665
  clientVmsPercent: Jk(p),
23605
23666
  clientVmsConfigured: l ?? Jk(p) > 0,
23606
23667
  clientVmsPercentageType: m,
23607
- clientDiscount: P,
23608
- netClientRate: ne,
23668
+ clientDiscount: ne,
23669
+ netClientRate: F,
23609
23670
  proposedRate: Qk(A),
23610
23671
  discountVms: re,
23611
23672
  netProposedRate: oe,
@@ -23877,7 +23938,7 @@ function BA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
23877
23938
  t,
23878
23939
  n,
23879
23940
  p
23880
- ]), h = Hk(f), [g, _] = z(() => vA(m.proposedRate)), v = !!f.sections.rateBreakdown?.employer?.editable && !f.readOnly, y = !!f.sections.rateBreakdown?.employerVms?.editable && !f.readOnly, [b, x] = z(() => vA(m.employerRate)), [S, C] = z(m.employerVmsPercent), [w, T] = z(!1), [E, D] = z(!1), ee = !!f.sections.rateBreakdown?.employer?.editToggle, [O, k] = z(!1), [A, j] = z(null), [te] = z(() => EA(t)), [M, N] = z(te.referralId), [P, F] = z(() => vA(te.referralRate)), [ne, re] = z(te.historicalReferralRate), [ie, ae] = z(te.referralType), [oe, se] = z(!1), [ce, le] = z(!1), [ue, de] = z(""), [fe, pe] = z(!1), [me, he] = z(""), [ge, _e] = z(!1), [ve, ye] = z(""), be = !!f.sections.rateBreakdown?.editToggle, [xe, Se] = z(!1), Ce = !be || xe, [we, Te] = z(!1), [Ee, De] = z(!1), Oe = f.sections.referral ?? {}, ke = t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(P) > 0 || !!M), [Ae, je] = z(!!ke), Me = t?.client?.referralEnabled, Ne = Oe.toggle !== !0 || Oe.requireClientEnabled === !1 || Me === !0 || Me === "true", Pe = (Oe.toggle !== !0 || a) && Ne, Fe = Oe.toggle === !0 && Pe, Ie = Number(P) > 0, Le = Pe && Oe.show === !0 ? !Fe || Ae : Oe.show === "ifEnabled" ? Ae : Oe.show === "ifExists" && Ie, Re = String(ie ?? "").trim().toLowerCase().replace(/[\s_-]+/g, "").startsWith("onetime"), ze = h && Le, Be = ze && !Re, Ve = f.rejection?.show ? Vk(f, t) : "", He = v && Ce && (!ee || O), Ue = y && m.contractType !== "W2" && m.isEmployerContract !== !1, We = m.contractType === "W2", Ge = Array.isArray(n?.locationOptions) ? n.locationOptions : [], Ke = n?.locationId ? String(n.locationId) : "", qe = A ? Ge.find((e) => e.value === A) ?? null : null, Je = !!(We && He && qe && qe.value !== Ke), Ye = () => {
23941
+ ]), h = Hk(f), [g, _] = z(() => vA(m.proposedRate)), v = !!f.sections.rateBreakdown?.employer?.editable && !f.readOnly, y = !!f.sections.rateBreakdown?.employerVms?.editable && !f.readOnly, [b, x] = z(() => vA(m.employerRate)), [S, C] = z(m.employerVmsPercent), [w, T] = z(!1), [E, D] = z(!1), ee = !!f.sections.rateBreakdown?.employer?.editToggle, [O, k] = z(!1), [A, j] = z(null), [te] = z(() => EA(t)), [M, N] = z(te.referralId), [ne, P] = z(() => vA(te.referralRate)), [F, re] = z(te.historicalReferralRate), [ie, ae] = z(te.referralType), [oe, se] = z(!1), [ce, le] = z(!1), [ue, de] = z(""), [fe, pe] = z(!1), [me, he] = z(""), [ge, _e] = z(!1), [ve, ye] = z(""), be = !!f.sections.rateBreakdown?.editToggle, [xe, Se] = z(!1), Ce = !be || xe, [we, Te] = z(!1), [Ee, De] = z(!1), Oe = f.sections.referral ?? {}, ke = t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(ne) > 0 || !!M), [Ae, je] = z(!!ke), Me = t?.client?.referralEnabled, Ne = Oe.toggle !== !0 || Oe.requireClientEnabled === !1 || Me === !0 || Me === "true", Pe = (Oe.toggle !== !0 || a) && Ne, Fe = Oe.toggle === !0 && Pe, Ie = Number(ne) > 0, Le = Pe && Oe.show === !0 ? !Fe || Ae : Oe.show === "ifEnabled" ? Ae : Oe.show === "ifExists" && Ie, Re = String(ie ?? "").trim().toLowerCase().replace(/[\s_-]+/g, "").startsWith("onetime"), ze = h && Le, Be = ze && !Re, Ve = f.rejection?.show ? Vk(f, t) : "", He = v && Ce && (!ee || O), Ue = y && m.contractType !== "W2" && m.isEmployerContract !== !1, We = m.contractType === "W2", Ge = Array.isArray(n?.locationOptions) ? n.locationOptions : [], Ke = n?.locationId ? String(n.locationId) : "", qe = A ? Ge.find((e) => e.value === A) ?? null : null, Je = !!(We && He && qe && qe.value !== Ke), Ye = () => {
23881
23942
  x(vA(m.employerRate)), C(m.employerVmsPercent), j(null), T(!1), D(!1), k(!1);
23882
23943
  }, Xe = R(() => lA(m, {
23883
23944
  proposedRate: f.sections.rateBreakdown?.proposed?.editable ? g ?? 0 : void 0,
@@ -23886,7 +23947,7 @@ function BA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
23886
23947
  locationTaxPercent: Je && qe.tax != null ? qe.tax : void 0,
23887
23948
  includeReferral: ze,
23888
23949
  deductReferral: Be,
23889
- referralRate: P
23950
+ referralRate: ne
23890
23951
  }), [
23891
23952
  m,
23892
23953
  g,
@@ -23896,7 +23957,7 @@ function BA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
23896
23957
  S,
23897
23958
  Je,
23898
23959
  qe,
23899
- P,
23960
+ ne,
23900
23961
  ze,
23901
23962
  Be,
23902
23963
  f
@@ -23924,11 +23985,11 @@ function BA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
23924
23985
  referralIncluded: ze,
23925
23986
  rateEditable: Oe.rateEditable,
23926
23987
  referralId: M,
23927
- referralRate: P
23988
+ referralRate: ne
23928
23989
  }), I = Ot ? "Enter the Proposed Rate first — it drives the margin and the rate sent for approval." : kt ? "Enter the referral rate for the selected referral company." : xt ? Et("blockMessage") : "", At = (e) => {
23929
23990
  N(e), De(!1);
23930
23991
  let t = (i ?? []).find((t) => t.value === e), n = SA(t, Oe);
23931
- F(n.referralRate), re(n.historicalReferralRate), t?.type && ae(t.type), o?.(e, t);
23992
+ P(n.referralRate), re(n.historicalReferralRate), t?.type && ae(t.type), o?.(e, t);
23932
23993
  }, jt = (e) => {
23933
23994
  let t = e.target.checked;
23934
23995
  je(t), t && Oe.toggleInPreview && Se(!0), De(t);
@@ -24476,10 +24537,10 @@ function BA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
24476
24537
  id: "fa-referral-rate",
24477
24538
  className: "fa-referral-rate-input",
24478
24539
  ...IA(mt, {
24479
- onValue: F,
24540
+ onValue: P,
24480
24541
  onError: le
24481
24542
  }),
24482
- value: P,
24543
+ value: ne,
24483
24544
  prefix: $e,
24484
24545
  controls: !1,
24485
24546
  disabled: !M,
@@ -24514,10 +24575,10 @@ function BA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
24514
24575
  }),
24515
24576
  M && /* @__PURE__ */ Z("div", {
24516
24577
  className: "fa-referral-note",
24517
- children: ne ? /* @__PURE__ */ Q(X, { children: [
24578
+ children: F ? /* @__PURE__ */ Q(X, { children: [
24518
24579
  "Last referral rate paid to this company:",
24519
24580
  " ",
24520
- /* @__PURE__ */ Z("b", { children: bA(ne, $e) })
24581
+ /* @__PURE__ */ Z("b", { children: bA(F, $e) })
24521
24582
  ] }) : /* @__PURE__ */ Z("b", { children: "New referral" })
24522
24583
  })
24523
24584
  ]
@@ -24533,7 +24594,7 @@ function BA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
24533
24594
  }), /* @__PURE__ */ Z(RA, {
24534
24595
  label: "Referral Rate",
24535
24596
  sub: Re ? "one-time payout — excluded from recurring margin" : "deducted every pay cycle",
24536
- value: Re ? bA(P, $e) : `−${bA(P, $e).replace("−", "")}${ot ? ` ${ot}` : ""}`,
24597
+ value: Re ? bA(ne, $e) : `−${bA(ne, $e).replace("−", "")}${ot ? ` ${ot}` : ""}`,
24537
24598
  deduction: !Re
24538
24599
  })]
24539
24600
  })
@@ -24780,7 +24841,7 @@ function BA({ type: e, record: t, lookups: n, identity: r, referralOptions: i, c
24780
24841
  " including the ",
24781
24842
  String(ie).toLowerCase(),
24782
24843
  " ",
24783
- /* @__PURE__ */ Q("b", { children: [bA(P, $e), ot] }),
24844
+ /* @__PURE__ */ Q("b", { children: [bA(ne, $e), ot] }),
24784
24845
  " referral"
24785
24846
  ] }) : null,
24786
24847
  "."
@@ -24955,7 +25016,7 @@ async function rj(e, t = {}) {
24955
25016
  let D = (Array.isArray(v) ? v : []).find((t) => eA(t.submissionId) === String(e)), ee = eA(E.clientId) || eA(D?.clientId) || c, O = a.clientName ?? t.clientName ?? E.clientName, k = O ? h.filter((e) => qA(e.clientName) === qA(O)) : [], A = h.find(XA(ee)) ?? k[0] ?? {}, j = await tj("clients", eA(A._id ?? A.id) || ee), te = {
24956
25017
  ...A,
24957
25018
  ...j
24958
- }, M = u && eA(g?._id ?? g?.id) === u ? g : {}, N = String(M.empCompanyName ?? "").trim(), P = _.find(XA(f)) ?? _.find((e) => qA(e.name) === qA(f)) ?? {}, F = x.recruitingUserId ?? a.recruitingUserId ?? t.recruitingUserId, ne = F != null && F !== "" && F !== 0, re = ne && String(F) !== String(d) ? await QA(F) : ne ? b : null, ie = HA(r, "locationId"), ae = /w2/i.test(String(a.contractType ?? x.contractType ?? t.contractType ?? "")) && ie ? await KA(ie, (e) => S(s, e)).catch(() => []) : [];
25019
+ }, M = u && eA(g?._id ?? g?.id) === u ? g : {}, N = String(M.empCompanyName ?? "").trim(), ne = _.find(XA(f)) ?? _.find((e) => qA(e.name) === qA(f)) ?? {}, P = x.recruitingUserId ?? a.recruitingUserId ?? t.recruitingUserId, F = P != null && P !== "" && P !== 0, re = F && String(P) !== String(d) ? await QA(P) : F ? b : null, ie = HA(r, "locationId"), ae = /w2/i.test(String(a.contractType ?? x.contractType ?? t.contractType ?? "")) && ie ? await KA(ie, (e) => S(s, e)).catch(() => []) : [];
24959
25020
  return {
24960
25021
  record: {
24961
25022
  submission: {
@@ -24976,8 +25037,8 @@ async function rj(e, t = {}) {
24976
25037
  },
24977
25038
  lookups: {
24978
25039
  clientVmsFee: te.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
24979
- locationTaxPercent: o.tax ?? P.taxValue,
24980
- locationId: eA(P._id ?? P.id) || (f ? String(eA(f) || f) : ""),
25040
+ locationTaxPercent: o.tax ?? ne.taxValue,
25041
+ locationId: eA(ne._id ?? ne.id) || (f ? String(eA(f) || f) : ""),
24981
25042
  locationOptions: ae,
24982
25043
  locationFieldLabel: ie?.label ?? "Location"
24983
25044
  },
@@ -24987,7 +25048,7 @@ async function rj(e, t = {}) {
24987
25048
  reqId: i.jobClientRefrenceId ?? a.jobRefrenceId ?? i.jobRefrenceId ?? i.mspReqId,
24988
25049
  jobLocation: a.jobLocation ?? E.jobLocation,
24989
25050
  employerName: N || xA(x),
24990
- employerLocation: P.name ?? M.empCompanyLocation ?? f,
25051
+ employerLocation: ne.name ?? M.empCompanyLocation ?? f,
24991
25052
  submittedBy: DA({
24992
25053
  recruitingUserName: x.recruitingUserName ?? a.recruitingUserName ?? t.recruitingUserName,
24993
25054
  submitterUserName: $A(re),
@@ -27347,25 +27408,25 @@ function XN({ role: e }) {
27347
27408
  }
27348
27409
  //#endregion
27349
27410
  //#region src/pages/Modules/Admin/components/SecondaryFieldLookup.jsx
27350
- function ZN({ fieldKey: e, lookup: t, collections: n, fetchFields: r, onChange: i, idOnly: a = !1 }) {
27351
- let [o, s] = z([]), c = t?.collection;
27411
+ function ZN({ fieldKey: e, lookup: t, collections: n, fetchFields: r, onChange: i, idOnly: a = !1, allowNested: o = !0 }) {
27412
+ let [s, c] = z([]), l = t?.collection;
27352
27413
  L(() => {
27353
27414
  let e = !1;
27354
- return c && r(c).then((t) => {
27355
- e || s(Array.isArray(t) ? t : []);
27415
+ return l && r(l).then((t) => {
27416
+ e || c(Array.isArray(t) ? t : []);
27356
27417
  }).catch(() => {
27357
- e || s([]);
27418
+ e || c([]);
27358
27419
  }), () => {
27359
27420
  e = !0;
27360
27421
  };
27361
- }, [c, r]);
27362
- function l(e) {
27422
+ }, [l, r]);
27423
+ function u(e) {
27363
27424
  i({
27364
27425
  ...t,
27365
27426
  ...e
27366
27427
  });
27367
27428
  }
27368
- let u = t?.displayFields?.length ? t.displayFields : [t?.displayField, t?.displayField2].filter(Boolean).length ? [t.displayField, t.displayField2].filter(Boolean) : t?.projectFields ?? (t?.projectField ? [t.projectField] : []), d = (c ? o : []).map((e) => ({ value: e }));
27429
+ let d = t?.displayFields?.length ? t.displayFields : [t?.displayField, t?.displayField2].filter(Boolean).length ? [t.displayField, t.displayField2].filter(Boolean) : t?.projectFields ?? (t?.projectField ? [t.projectField] : []), f = (l ? s : []).map((e) => ({ value: e })), p = !o && /^(roles|usertype)$/i.test(l || "") && /roleId$/i.test(t?.localField || e);
27369
27430
  return /* @__PURE__ */ Q("div", {
27370
27431
  className: "uss-lookup-grid",
27371
27432
  style: { marginTop: 8 },
@@ -27397,19 +27458,23 @@ function ZN({ fieldKey: e, lookup: t, collections: n, fetchFields: r, onChange:
27397
27458
  "aria-label": `${e} collection`,
27398
27459
  showSearch: !0,
27399
27460
  style: { flex: 1 },
27400
- value: c || void 0,
27461
+ value: l || void 0,
27401
27462
  placeholder: "Select collection",
27402
27463
  options: n.map((e) => ({
27403
27464
  value: e,
27404
27465
  label: e
27405
27466
  })),
27406
- onChange: (e) => l({
27407
- collection: e,
27467
+ onChange: (n) => u({
27468
+ collection: n,
27408
27469
  displayField: "",
27409
27470
  displayField2: "",
27410
27471
  displayFields: [],
27411
27472
  projectField: "",
27412
- projectFields: []
27473
+ projectFields: [],
27474
+ ...!o && /^(roles|usertype)$/i.test(n) && /roleId$/i.test(t.localField || e) ? {
27475
+ valueField: "legacyRoleId",
27476
+ foreignField: ""
27477
+ } : {}
27413
27478
  })
27414
27479
  })]
27415
27480
  }),
@@ -27422,7 +27487,7 @@ function ZN({ fieldKey: e, lookup: t, collections: n, fetchFields: r, onChange:
27422
27487
  size: "small",
27423
27488
  "aria-label": `${e} tenant scoped`,
27424
27489
  checked: !!t.tenantScoped,
27425
- onChange: (e) => l({ tenantScoped: e })
27490
+ onChange: (e) => u({ tenantScoped: e })
27426
27491
  })]
27427
27492
  }),
27428
27493
  [[
@@ -27434,7 +27499,7 @@ function ZN({ fieldKey: e, lookup: t, collections: n, fetchFields: r, onChange:
27434
27499
  "Value Field",
27435
27500
  "valueField",
27436
27501
  "_id",
27437
- d
27502
+ f
27438
27503
  ]].map(([n, r, i, a]) => /* @__PURE__ */ Q("div", {
27439
27504
  className: "uss-lookup-row",
27440
27505
  children: [/* @__PURE__ */ Z("span", {
@@ -27448,9 +27513,31 @@ function ZN({ fieldKey: e, lookup: t, collections: n, fetchFields: r, onChange:
27448
27513
  placeholder: i,
27449
27514
  options: a,
27450
27515
  filterOption: (e, t) => t.value.toLowerCase().includes(e.toLowerCase()),
27451
- onChange: (e) => l({ [r]: e })
27516
+ onChange: (e) => u({ [r]: e })
27452
27517
  })]
27453
27518
  }, r)),
27519
+ p && /* @__PURE__ */ Z(Ao, {
27520
+ type: "info",
27521
+ showIcon: !0,
27522
+ message: "Numeric role IDs match legacyRoleId",
27523
+ description: /* @__PURE__ */ Q(X, { children: ["Match users.roleId to roles.legacyRoleId and display roleName. Tenant scoped requires the role and submission to share tenant, business and business-unit IDs.", /* @__PURE__ */ Z(B, {
27524
+ size: "small",
27525
+ style: {
27526
+ display: "block",
27527
+ marginTop: 8
27528
+ },
27529
+ onClick: () => u({
27530
+ valueField: "legacyRoleId",
27531
+ foreignField: "",
27532
+ displayFields: ["roleName"],
27533
+ projectFields: ["roleName"],
27534
+ displayField: "",
27535
+ displayField2: "",
27536
+ projectField: ""
27537
+ }),
27538
+ children: "Use role name mapping"
27539
+ })] })
27540
+ }),
27454
27541
  !a && /* @__PURE__ */ Q(X, { children: [
27455
27542
  /* @__PURE__ */ Z("div", {
27456
27543
  style: {
@@ -27472,12 +27559,12 @@ function ZN({ fieldKey: e, lookup: t, collections: n, fetchFields: r, onChange:
27472
27559
  flex: 1,
27473
27560
  minWidth: 0
27474
27561
  },
27475
- value: u,
27476
- options: d,
27562
+ value: d,
27563
+ options: f,
27477
27564
  placeholder: "Select display fields",
27478
27565
  onChange: (e) => {
27479
27566
  let n = [...new Set(e.map((e) => e.trim()).filter(Boolean))];
27480
- l({
27567
+ u({
27481
27568
  displayFields: n,
27482
27569
  displayField: "",
27483
27570
  displayField2: "",
@@ -27499,13 +27586,37 @@ function ZN({ fieldKey: e, lookup: t, collections: n, fetchFields: r, onChange:
27499
27586
  style: { flex: 1 },
27500
27587
  value: t.displaySeparator ?? " ",
27501
27588
  placeholder: "e.g. - or /",
27502
- onChange: (e) => l({
27503
- displayFields: u,
27589
+ onChange: (e) => u({
27590
+ displayFields: d,
27504
27591
  displaySeparator: e.target.value
27505
27592
  })
27506
27593
  })]
27507
27594
  })
27508
- ] })
27595
+ ] }),
27596
+ !a && o && /* @__PURE__ */ Q("div", {
27597
+ style: {
27598
+ marginTop: 12,
27599
+ paddingLeft: 12,
27600
+ borderLeft: "2px solid #e5e7eb"
27601
+ },
27602
+ children: [/* @__PURE__ */ Z("div", { children: "Second lookup (resolve a field from the first collection)" }), /* @__PURE__ */ Z(ZN, {
27603
+ fieldKey: d[0] || "roleId",
27604
+ lookup: t.nested,
27605
+ collections: n,
27606
+ fetchFields: r,
27607
+ allowNested: !1,
27608
+ onChange: (e) => u({
27609
+ nested: e,
27610
+ ...e?.localField ? {
27611
+ displayFields: [e.localField],
27612
+ projectFields: [e.localField],
27613
+ displayField: "",
27614
+ displayField2: "",
27615
+ projectField: ""
27616
+ } : {}
27617
+ })
27618
+ })]
27619
+ })
27509
27620
  ] })]
27510
27621
  });
27511
27622
  }
@@ -27741,6 +27852,11 @@ var { Text: nP } = ms, { Option: rP } = W, iP = [
27741
27852
  key: "actions",
27742
27853
  label: "Icon Buttons",
27743
27854
  icon: /* @__PURE__ */ Z(yl, { style: { fontSize: 16 } })
27855
+ },
27856
+ {
27857
+ key: "margin",
27858
+ label: "Margin",
27859
+ icon: /* @__PURE__ */ Z("span", { children: "%" })
27744
27860
  }
27745
27861
  ], oP = [
27746
27862
  {
@@ -27943,7 +28059,7 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
27943
28059
  }
27944
28060
  return !1;
27945
28061
  }
27946
- let M = e.renderType ?? "", N = !!e.commonStyle, P = e.commonStyle ?? {}, F = e.valueStyles ?? [], ne = e.renderConfig ?? {};
28062
+ let M = e.renderType ?? "", N = !!e.commonStyle, ne = e.commonStyle ?? {}, P = e.valueStyles ?? [], F = e.renderConfig ?? {};
27947
28063
  return /* @__PURE__ */ Q(X, { children: [
27948
28064
  /* @__PURE__ */ Q("div", {
27949
28065
  className: "uss-detail-section",
@@ -27988,12 +28104,41 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
27988
28104
  onClick: () => p({
27989
28105
  renderType: e.key,
27990
28106
  commonStyle: null,
27991
- valueStyles: [],
27992
- renderConfig: null
28107
+ valueStyles: []
27993
28108
  }),
27994
28109
  children: [e.icon, /* @__PURE__ */ Z("span", { children: e.label })]
27995
28110
  }, e.key))
27996
28111
  }),
28112
+ M === "margin" && /* @__PURE__ */ Q("div", {
28113
+ style: {
28114
+ display: "grid",
28115
+ gap: 8,
28116
+ marginTop: 8
28117
+ },
28118
+ children: [
28119
+ /* @__PURE__ */ Z(nP, { children: "Margin = (Client Rate − Pay Rate) / Client Rate × 100. The arrow compares the candidate’s previous submission." }),
28120
+ /* @__PURE__ */ Z(U, {
28121
+ value: F.marginBillField || "",
28122
+ placeholder: "Client rate field, e.g. proposedRate.candidateProposedRate",
28123
+ onChange: (e) => p({ renderConfig: {
28124
+ ...F,
28125
+ marginBillField: e.target.value
28126
+ } })
28127
+ }),
28128
+ /* @__PURE__ */ Z(U, {
28129
+ value: F.marginPayField || "",
28130
+ placeholder: "Pay rate field, e.g. candidateBudget.candidateBudgetStart",
28131
+ onChange: (e) => p({ renderConfig: {
28132
+ ...F,
28133
+ marginPayField: e.target.value
28134
+ } })
28135
+ }),
28136
+ /* @__PURE__ */ Z(nP, {
28137
+ type: "secondary",
28138
+ children: "Leave blank to use the submission’s saved client and pay rates. Array fields use the last entry."
28139
+ })
28140
+ ]
28141
+ }),
27997
28142
  M === "badge" && /* @__PURE__ */ Q("div", {
27998
28143
  className: "uss-badge-config",
27999
28144
  children: [
@@ -28028,7 +28173,7 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28028
28173
  },
28029
28174
  children: [/* @__PURE__ */ Z("input", {
28030
28175
  type: "color",
28031
- value: P.color || "#595959",
28176
+ value: ne.color || "#595959",
28032
28177
  style: {
28033
28178
  width: 28,
28034
28179
  height: 24,
@@ -28053,7 +28198,7 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28053
28198
  },
28054
28199
  children: [/* @__PURE__ */ Z("input", {
28055
28200
  type: "color",
28056
- value: P.bg || "#f5f5f5",
28201
+ value: ne.bg || "#f5f5f5",
28057
28202
  style: {
28058
28203
  width: 28,
28059
28204
  height: 24,
@@ -28071,7 +28216,7 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28071
28216
  /* @__PURE__ */ Z(W, {
28072
28217
  size: "small",
28073
28218
  style: { width: 80 },
28074
- value: P.variant || "badge",
28219
+ value: ne.variant || "badge",
28075
28220
  options: [
28076
28221
  {
28077
28222
  value: "badge",
@@ -28094,8 +28239,8 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28094
28239
  borderRadius: 20,
28095
28240
  fontSize: 11,
28096
28241
  fontWeight: 500,
28097
- color: P.color || "#595959",
28098
- background: P.bg || "#f5f5f5"
28242
+ color: ne.color || "#595959",
28243
+ background: ne.bg || "#f5f5f5"
28099
28244
  },
28100
28245
  children: "Preview"
28101
28246
  })
@@ -28131,12 +28276,12 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28131
28276
  })]
28132
28277
  })]
28133
28278
  }),
28134
- F.length === 0 && /* @__PURE__ */ Z(nP, {
28279
+ P.length === 0 && /* @__PURE__ */ Z(nP, {
28135
28280
  type: "secondary",
28136
28281
  style: { fontSize: 12 },
28137
28282
  children: "Click \"Auto-detect values\" to populate from live data, or \"Add\" to map manually."
28138
28283
  }),
28139
- F.map((e, t) => /* @__PURE__ */ Q("div", {
28284
+ P.map((e, t) => /* @__PURE__ */ Q("div", {
28140
28285
  style: {
28141
28286
  display: "grid",
28142
28287
  gridTemplateColumns: "1fr 1fr 62px 62px 54px 26px",
@@ -28252,13 +28397,13 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28252
28397
  allowClear: !0,
28253
28398
  style: { width: "100%" },
28254
28399
  placeholder: n.length > 0 ? "Select a child field from the array" : "Enter child field, e.g. clientBudgetStart",
28255
- value: ne.lastItemField || void 0,
28400
+ value: F.lastItemField || void 0,
28256
28401
  options: n.map((e) => ({
28257
28402
  value: e,
28258
28403
  label: e
28259
28404
  })),
28260
28405
  onChange: (e) => p({ renderConfig: {
28261
- ...ne,
28406
+ ...F,
28262
28407
  lastItemField: e ?? ""
28263
28408
  } }),
28264
28409
  onSearch: (e) => {
@@ -28272,9 +28417,9 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28272
28417
  children: /* @__PURE__ */ Z(U, {
28273
28418
  size: "small",
28274
28419
  placeholder: "Custom child field",
28275
- value: ne.lastItemField || "",
28420
+ value: F.lastItemField || "",
28276
28421
  onChange: (e) => p({ renderConfig: {
28277
- ...ne,
28422
+ ...F,
28278
28423
  lastItemField: e.target.value.trim()
28279
28424
  } })
28280
28425
  })
@@ -28313,13 +28458,13 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28313
28458
  allowClear: !0,
28314
28459
  style: { width: "100%" },
28315
28460
  placeholder: "e.g. recruiterName",
28316
- value: ne.labelField || void 0,
28461
+ value: F.labelField || void 0,
28317
28462
  options: n.length > 0 ? n.map((e) => ({
28318
28463
  value: e,
28319
28464
  label: e
28320
28465
  })) : [],
28321
28466
  onChange: (e) => p({ renderConfig: {
28322
- ...ne,
28467
+ ...F,
28323
28468
  labelField: e ?? ""
28324
28469
  } })
28325
28470
  })] }),
@@ -28337,13 +28482,13 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28337
28482
  allowClear: !0,
28338
28483
  style: { width: "100%" },
28339
28484
  placeholder: "color",
28340
- value: ne.colorField || void 0,
28485
+ value: F.colorField || void 0,
28341
28486
  options: n.length > 0 ? n.map((e) => ({
28342
28487
  value: e,
28343
28488
  label: e
28344
28489
  })) : [],
28345
28490
  onChange: (e) => p({ renderConfig: {
28346
- ...ne,
28491
+ ...F,
28347
28492
  colorField: e ?? ""
28348
28493
  } })
28349
28494
  })] }),
@@ -28360,9 +28505,9 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28360
28505
  type: "number",
28361
28506
  min: 1,
28362
28507
  max: 10,
28363
- value: ne.maxVisible || 3,
28508
+ value: F.maxVisible || 3,
28364
28509
  onChange: (e) => p({ renderConfig: {
28365
- ...ne,
28510
+ ...F,
28366
28511
  maxVisible: Number(e.target.value) || 3
28367
28512
  } })
28368
28513
  })] })
@@ -28372,14 +28517,30 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28372
28517
  }),
28373
28518
  /* @__PURE__ */ Q("div", {
28374
28519
  className: "uss-detail-section",
28375
- children: [/* @__PURE__ */ Z("div", {
28376
- className: "uss-detail-label",
28377
- children: "Display Template"
28378
- }), /* @__PURE__ */ Z(RO, {
28379
- value: e.displayTemplate ?? "",
28380
- onChange: (e) => p({ displayTemplate: e }),
28381
- placeholder: "e.g. {{firstName}} {{lastName}}"
28382
- })]
28520
+ children: [
28521
+ /* @__PURE__ */ Z("div", {
28522
+ className: "uss-detail-label",
28523
+ children: "Display Template"
28524
+ }),
28525
+ /* @__PURE__ */ Q("label", {
28526
+ style: {
28527
+ display: "block",
28528
+ marginBottom: 8
28529
+ },
28530
+ children: [/* @__PURE__ */ Z(K, {
28531
+ checked: F.multiline === !0,
28532
+ onChange: (e) => p({ renderConfig: {
28533
+ ...F,
28534
+ multiline: e
28535
+ } })
28536
+ }), " Keep template line breaks"]
28537
+ }),
28538
+ /* @__PURE__ */ Z(RO, {
28539
+ value: e.displayTemplate ?? "",
28540
+ onChange: (e) => p({ displayTemplate: e }),
28541
+ placeholder: "e.g. {{firstName}} {{lastName}}"
28542
+ })
28543
+ ]
28383
28544
  }),
28384
28545
  /* @__PURE__ */ Q("div", {
28385
28546
  className: "uss-detail-section",
@@ -28632,9 +28793,9 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28632
28793
  children: [/* @__PURE__ */ Z(W, {
28633
28794
  size: "small",
28634
28795
  style: { minWidth: 170 },
28635
- value: ne.dateDisplay || "date",
28796
+ value: F.dateDisplay || "date",
28636
28797
  onChange: (e) => p({ renderConfig: {
28637
- ...ne,
28798
+ ...F,
28638
28799
  dateDisplay: e === "date" ? void 0 : e
28639
28800
  } }),
28640
28801
  options: [
@@ -28646,6 +28807,10 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28646
28807
  value: "datetime",
28647
28808
  label: "Date & time"
28648
28809
  },
28810
+ {
28811
+ value: "date-time-lines",
28812
+ label: "Date with time below"
28813
+ },
28649
28814
  {
28650
28815
  value: "time",
28651
28816
  label: "Time only"
@@ -28662,14 +28827,50 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28662
28827
  flex: 1,
28663
28828
  minWidth: 140
28664
28829
  },
28665
- value: ne.dateFormat ?? "",
28830
+ value: F.dateFormat ?? "",
28666
28831
  onChange: (e) => p({ renderConfig: {
28667
- ...ne,
28832
+ ...F,
28668
28833
  dateFormat: e.target.value.trim() ? e.target.value : void 0
28669
28834
  } }),
28670
28835
  placeholder: "Date format, e.g. MM/DD/YYYY"
28671
28836
  })]
28672
28837
  }),
28838
+ /* @__PURE__ */ Z(W, {
28839
+ size: "small",
28840
+ style: {
28841
+ minWidth: 170,
28842
+ marginTop: 8
28843
+ },
28844
+ value: F.uppercaseMonth === !0 ? "upper" : F.uppercaseMonth === !1 ? "normal" : "default",
28845
+ onChange: (e) => p({ renderConfig: {
28846
+ ...F,
28847
+ uppercaseMonth: e === "upper" || e !== "normal" && void 0
28848
+ } }),
28849
+ options: [
28850
+ {
28851
+ value: "default",
28852
+ label: "Month case: host default"
28853
+ },
28854
+ {
28855
+ value: "normal",
28856
+ label: "Month case: Nov"
28857
+ },
28858
+ {
28859
+ value: "upper",
28860
+ label: "Month case: NOV"
28861
+ }
28862
+ ]
28863
+ }),
28864
+ F.dateDisplay === "date-time-lines" && /* @__PURE__ */ Z(U, {
28865
+ size: "small",
28866
+ style: { marginTop: 8 },
28867
+ value: F.timeFormat || "hh:mm A",
28868
+ placeholder: "Time format, e.g. hh:mm A",
28869
+ onChange: (e) => p({ renderConfig: {
28870
+ ...F,
28871
+ timeFormat: e.target.value
28872
+ } })
28873
+ }),
28673
28874
  /* @__PURE__ */ Z(nP, {
28674
28875
  type: "secondary",
28675
28876
  style: {
@@ -28711,9 +28912,9 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28711
28912
  children: "Useful for integer fields where 0 means the value was not provided."
28712
28913
  })] }), /* @__PURE__ */ Z(K, {
28713
28914
  size: "small",
28714
- checked: !!ne.treatZeroAsEmpty,
28915
+ checked: !!F.treatZeroAsEmpty,
28715
28916
  onChange: (e) => p({ renderConfig: {
28716
- ...ne,
28917
+ ...F,
28717
28918
  treatZeroAsEmpty: e
28718
28919
  } })
28719
28920
  })]
@@ -28740,9 +28941,9 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28740
28941
  ]
28741
28942
  })] }), /* @__PURE__ */ Z(K, {
28742
28943
  size: "small",
28743
- checked: !!ne.cleanEmptyTemplateSeparators,
28944
+ checked: !!F.cleanEmptyTemplateSeparators,
28744
28945
  onChange: (e) => p({ renderConfig: {
28745
- ...ne,
28946
+ ...F,
28746
28947
  cleanEmptyTemplateSeparators: e
28747
28948
  } })
28748
28949
  })]
@@ -28807,6 +29008,169 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28807
29008
  className: "uss-detail-label",
28808
29009
  children: "Secondary Fields"
28809
29010
  }),
29011
+ /^(recruitingUserName|owner|ownerName)$/i.test(e.fieldKey || "") && /* @__PURE__ */ Z(B, {
29012
+ size: "small",
29013
+ style: { marginBottom: 8 },
29014
+ onClick: () => {
29015
+ let e = "_ownerRoleName";
29016
+ p({
29017
+ displayTemplate: "",
29018
+ renderType: "",
29019
+ secondaryField: "",
29020
+ secondaryFields: [e],
29021
+ renderConfig: {
29022
+ ...F,
29023
+ secondaryTemplate: ""
29024
+ },
29025
+ lookup: {
29026
+ collection: "users",
29027
+ localField: "recruitingUserId",
29028
+ valueField: "legacyUserId",
29029
+ displayFields: ["firstName", "lastName"],
29030
+ projectFields: ["firstName", "lastName"],
29031
+ displaySeparator: " ",
29032
+ tenantScoped: !0
29033
+ }
29034
+ }), o(e, {
29035
+ displayTemplate: "",
29036
+ renderType: "",
29037
+ isVisible: !1,
29038
+ lookup: {
29039
+ collection: "users",
29040
+ localField: "recruitingUserId",
29041
+ valueField: "legacyUserId",
29042
+ displayFields: ["roleId"],
29043
+ projectFields: ["roleId"],
29044
+ tenantScoped: !0,
29045
+ nested: {
29046
+ collection: "roles",
29047
+ localField: "roleId",
29048
+ valueField: "legacyRoleId",
29049
+ displayFields: ["roleName"],
29050
+ projectFields: ["roleName"],
29051
+ tenantScoped: !1
29052
+ }
29053
+ }
29054
+ });
29055
+ },
29056
+ children: "Configure Owner Name + Role"
29057
+ }),
29058
+ /* @__PURE__ */ Z(nP, {
29059
+ style: {
29060
+ display: "block",
29061
+ marginBottom: 6
29062
+ },
29063
+ children: "Secondary Display Template"
29064
+ }),
29065
+ /* @__PURE__ */ Z(W, {
29066
+ size: "small",
29067
+ style: {
29068
+ width: "100%",
29069
+ marginBottom: 8
29070
+ },
29071
+ "aria-label": "Secondary text case",
29072
+ value: F.secondaryTextCase || "original",
29073
+ options: [
29074
+ {
29075
+ value: "original",
29076
+ label: "Original text"
29077
+ },
29078
+ {
29079
+ value: "title",
29080
+ label: "Title Case (ADMIN → Admin)"
29081
+ },
29082
+ {
29083
+ value: "upper",
29084
+ label: "UPPERCASE"
29085
+ },
29086
+ {
29087
+ value: "lower",
29088
+ label: "lowercase"
29089
+ }
29090
+ ],
29091
+ onChange: (e) => p({ renderConfig: {
29092
+ ...F,
29093
+ secondaryTextCase: e
29094
+ } })
29095
+ }),
29096
+ /* @__PURE__ */ Z(RO, {
29097
+ value: F.secondaryTemplate ?? "",
29098
+ onChange: (e) => p({
29099
+ renderConfig: {
29100
+ ...F,
29101
+ secondaryTemplate: e
29102
+ },
29103
+ ...e.trim() ? {
29104
+ secondaryField: "",
29105
+ secondaryFields: []
29106
+ } : {}
29107
+ }),
29108
+ placeholder: "e.g. {{yearOfExperience}} Years"
29109
+ }),
29110
+ /* @__PURE__ */ Q("label", {
29111
+ style: {
29112
+ display: "block",
29113
+ marginTop: 12
29114
+ },
29115
+ children: [/* @__PURE__ */ Z(K, {
29116
+ checked: F.showPhoto === !0,
29117
+ onChange: (e) => p({ renderConfig: {
29118
+ ...F,
29119
+ showPhoto: e
29120
+ } })
29121
+ }), " Show profile photo beside value"]
29122
+ }),
29123
+ F.showPhoto && /* @__PURE__ */ Q("div", {
29124
+ style: {
29125
+ display: "flex",
29126
+ alignItems: "center",
29127
+ gap: 8,
29128
+ marginBlock: 8
29129
+ },
29130
+ children: [
29131
+ F.photoUrl && /* @__PURE__ */ Z("img", {
29132
+ src: F.photoUrl,
29133
+ alt: "Column profile",
29134
+ style: {
29135
+ width: 36,
29136
+ height: 36,
29137
+ borderRadius: "50%",
29138
+ objectFit: "cover"
29139
+ }
29140
+ }),
29141
+ /* @__PURE__ */ Z(hs, {
29142
+ accept: "image/*",
29143
+ showUploadList: !1,
29144
+ beforeUpload: async (e) => {
29145
+ try {
29146
+ let t = await yt(e);
29147
+ p({ renderConfig: {
29148
+ ...F,
29149
+ photoUrl: t.iconUrl || t.url,
29150
+ photoPath: t.iconPath || t.path
29151
+ } });
29152
+ } catch {
29153
+ Y.error("Profile image upload failed");
29154
+ }
29155
+ return !1;
29156
+ },
29157
+ children: /* @__PURE__ */ Z(B, {
29158
+ size: "small",
29159
+ icon: /* @__PURE__ */ Z(yl, {}),
29160
+ children: "Upload Profile Image"
29161
+ })
29162
+ }),
29163
+ F.photoUrl && /* @__PURE__ */ Z(B, {
29164
+ size: "small",
29165
+ onClick: () => p({ renderConfig: {
29166
+ ...F,
29167
+ photoUrl: "",
29168
+ photoPath: ""
29169
+ } }),
29170
+ children: "Remove"
29171
+ })
29172
+ ]
29173
+ }),
28810
29174
  /* @__PURE__ */ Z("div", {
28811
29175
  className: "uss-detail-row",
28812
29176
  style: { flexWrap: "wrap" },
@@ -28871,16 +29235,55 @@ function fP({ field: e, collections: t, subfields: n, addSecondaryField: r, remo
28871
29235
  }),
28872
29236
  /* @__PURE__ */ Q("div", {
28873
29237
  className: "uss-detail-section",
28874
- children: [/* @__PURE__ */ Z("div", {
28875
- className: "uss-detail-label",
28876
- children: "Lookup (FK resolve)"
28877
- }), /* @__PURE__ */ Z(ZN, {
28878
- fieldKey: e.fieldKey,
28879
- lookup: e.lookup,
28880
- collections: t,
28881
- fetchFields: s,
28882
- onChange: (e) => p({ lookup: e })
28883
- })]
29238
+ children: [
29239
+ /* @__PURE__ */ Z("div", {
29240
+ className: "uss-detail-label",
29241
+ children: "Lookup (FK resolve)"
29242
+ }),
29243
+ /* @__PURE__ */ Z(ZN, {
29244
+ fieldKey: e.fieldKey,
29245
+ lookup: e.lookup,
29246
+ collections: t,
29247
+ fetchFields: s,
29248
+ onChange: (e) => p({ lookup: e })
29249
+ }),
29250
+ e.lookup?.nested && /^(recruitingUserName|owner|ownerName)$/i.test(e.fieldKey || "") && /* @__PURE__ */ Z(B, {
29251
+ size: "small",
29252
+ style: { marginTop: 10 },
29253
+ onClick: () => {
29254
+ let t = `${e.fieldKey}Role`;
29255
+ o(t, {
29256
+ lookup: e.lookup,
29257
+ isVisible: !1,
29258
+ renderType: "",
29259
+ displayTemplate: "",
29260
+ secondaryFields: [],
29261
+ secondaryField: ""
29262
+ });
29263
+ let n = { ...e.lookup };
29264
+ delete n.nested, p({
29265
+ displayTemplate: "",
29266
+ renderType: "",
29267
+ lookup: {
29268
+ ...n,
29269
+ displayFields: ["firstName", "lastName"],
29270
+ projectFields: ["firstName", "lastName"],
29271
+ projectField: "",
29272
+ displayField: "",
29273
+ displayField2: "",
29274
+ displaySeparator: " "
29275
+ },
29276
+ secondaryField: "",
29277
+ secondaryFields: [t],
29278
+ renderConfig: {
29279
+ ...F,
29280
+ secondaryTemplate: `{{${t}}}`
29281
+ }
29282
+ });
29283
+ },
29284
+ children: "Show Role as Secondary Value"
29285
+ })
29286
+ ]
28884
29287
  }),
28885
29288
  /* @__PURE__ */ Q("div", {
28886
29289
  className: "uss-detail-section",
@@ -29766,7 +30169,7 @@ function vP({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
29766
30169
  function N(t) {
29767
30170
  k({ secondaryFields: (e.secondaryFields ?? []).filter((e) => e !== t) });
29768
30171
  }
29769
- function P() {
30172
+ function ne() {
29770
30173
  let t = e.actionButtons ?? [];
29771
30174
  t.length >= 3 || k({ actionButtons: [...t, {
29772
30175
  name: "",
@@ -29778,14 +30181,14 @@ function vP({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
29778
30181
  allowedTabs: []
29779
30182
  }] });
29780
30183
  }
29781
- function F(t, n) {
30184
+ function P(t, n) {
29782
30185
  let r = [...e.actionButtons ?? []];
29783
30186
  r[t] = {
29784
30187
  ...r[t],
29785
30188
  ...n
29786
30189
  }, k({ actionButtons: r });
29787
30190
  }
29788
- function ne(t) {
30191
+ function F(t) {
29789
30192
  let n = [...e.actionButtons ?? []];
29790
30193
  n.splice(t, 1), k({ actionButtons: n });
29791
30194
  }
@@ -29892,9 +30295,9 @@ function vP({ field: e, index: t, configType: n, moduleKey: r, onUpdate: i, onRe
29892
30295
  availableFields: l,
29893
30296
  onUpdateSecondary: u,
29894
30297
  onFetchCollFields: s,
29895
- addActionButton: P,
29896
- updateActionButton: F,
29897
- removeActionButton: ne,
30298
+ addActionButton: ne,
30299
+ updateActionButton: P,
30300
+ removeActionButton: F,
29898
30301
  moduleKey: r,
29899
30302
  fieldKey: e.fieldKey,
29900
30303
  update: k
@@ -30032,7 +30435,7 @@ function yP({ role: e, configType: t }) {
30032
30435
  return [];
30033
30436
  }
30034
30437
  }
30035
- async function P(n = !1) {
30438
+ async function ne(n = !1) {
30036
30439
  let r = v, a = t === "filter" ? $N(O) : "";
30037
30440
  if (a) {
30038
30441
  Y.error(a);
@@ -30062,17 +30465,17 @@ function yP({ role: e, configType: t }) {
30062
30465
  }));
30063
30466
  }
30064
30467
  }
30065
- async function F() {
30066
- await P(!1);
30468
+ async function P() {
30469
+ await ne(!1);
30067
30470
  }
30068
- function ne() {
30471
+ function F() {
30069
30472
  let e = f.find((e) => e.key === v)?.label ?? v;
30070
30473
  Yo.confirm({
30071
30474
  title: "Update all roles?",
30072
30475
  content: `This will apply the current ${e} ${t || "listView"} config to every role.`,
30073
30476
  okText: "Update All Roles",
30074
30477
  okButtonProps: { danger: !0 },
30075
- onOk: () => P(!0)
30478
+ onOk: () => ne(!0)
30076
30479
  });
30077
30480
  }
30078
30481
  return /* @__PURE__ */ Q(os, {
@@ -30332,13 +30735,13 @@ function yP({ role: e, configType: t }) {
30332
30735
  children: [/* @__PURE__ */ Z(B, {
30333
30736
  size: "small",
30334
30737
  loading: g[v],
30335
- onClick: ne,
30738
+ onClick: F,
30336
30739
  children: "Update All Roles"
30337
30740
  }), /* @__PURE__ */ Q(B, {
30338
30741
  type: "primary",
30339
30742
  size: "small",
30340
30743
  loading: g[v],
30341
- onClick: F,
30744
+ onClick: P,
30342
30745
  children: ["Save ", f.find((e) => e.key === v)?.label]
30343
30746
  })]
30344
30747
  })
@@ -39066,7 +39469,7 @@ function PI({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
39066
39469
  });
39067
39470
  }), r;
39068
39471
  }
39069
- function P(e, t) {
39472
+ function ne(e, t) {
39070
39473
  let n = (p[d] ?? []).find((t) => t.value === e);
39071
39474
  if (!n) return;
39072
39475
  let r = c.getFieldValue(["fields", t]) ?? {};
@@ -39077,7 +39480,7 @@ function PI({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
39077
39480
  type: n.type ?? "text"
39078
39481
  });
39079
39482
  }
39080
- function F(e) {
39483
+ function P(e) {
39081
39484
  let t = N(e);
39082
39485
  return (p[e] ?? []).map((e) => ({
39083
39486
  value: e.value,
@@ -39099,7 +39502,7 @@ function PI({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
39099
39502
  searchLabel: `${e.label} ${e.value}`.toLowerCase()
39100
39503
  }));
39101
39504
  }
39102
- async function ne() {
39505
+ async function F() {
39103
39506
  try {
39104
39507
  let e = await c.validateFields(), n = {
39105
39508
  ...c.getFieldsValue(!0),
@@ -39267,7 +39670,7 @@ function PI({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
39267
39670
  u(!1);
39268
39671
  }
39269
39672
  }
39270
- let re = R(() => F(d || n), [
39673
+ let re = R(() => P(d || n), [
39271
39674
  i,
39272
39675
  n,
39273
39676
  t,
@@ -39294,7 +39697,7 @@ function PI({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
39294
39697
  }), /* @__PURE__ */ Z(B, {
39295
39698
  type: "primary",
39296
39699
  loading: l,
39297
- onClick: ne,
39700
+ onClick: F,
39298
39701
  icon: Z(t ? tc : Hc, {}),
39299
39702
  children: t ? "Update Group" : "Create Group"
39300
39703
  })]
@@ -40719,7 +41122,7 @@ function PI({ open: e, editingGroup: t, defaultModule: n, moduleOptions: r, allG
40719
41122
  dragIndexRef: ee,
40720
41123
  dragOverIndex: y,
40721
41124
  setDragOverIndex: b,
40722
- onFieldKeySelect: (e, t) => P(e, t),
41125
+ onFieldKeySelect: (e, t) => ne(e, t),
40723
41126
  expandedFieldKeys: x,
40724
41127
  onToggleField: M,
40725
41128
  defaultFieldRules: _,
@@ -42001,7 +42404,7 @@ function RI() {
42001
42404
  }));
42002
42405
  r(t);
42003
42406
  let n = dI(t);
42004
- s(fI(n)), ne("all", n);
42407
+ s(fI(n)), F("all", n);
42005
42408
  }).catch(() => r([])).finally(() => a(!1));
42006
42409
  }, []), L(() => {
42007
42410
  Ee({ limit: 200 }).then(y).catch(() => y([]));
@@ -42015,14 +42418,14 @@ function RI() {
42015
42418
  }
42016
42419
  }));
42017
42420
  }
42018
- let N = (e) => e !== "all" && !!(b.clientId || b.region), P = (e) => N(e) ? b : {}, F = (e) => N(e) ? `${b.clientId}|${b.region}` : "";
42019
- function ne(e, t) {
42421
+ let N = (e) => e !== "all" && !!(b.clientId || b.region), ne = (e) => N(e) ? b : {}, P = (e) => N(e) ? `${b.clientId}|${b.region}` : "";
42422
+ function F(e, t) {
42020
42423
  if (!(t ?? j).find((t) => t.key === e)) return;
42021
- let n = F(e);
42424
+ let n = P(e);
42022
42425
  M(e, {
42023
42426
  loading: !0,
42024
42427
  error: ""
42025
- }), Ce(e === "all" ? "" : e, P(e)).then((t) => M(e, {
42428
+ }), Ce(e === "all" ? "" : e, ne(e)).then((t) => M(e, {
42026
42429
  groups: t,
42027
42430
  loading: !1,
42028
42431
  loaded: !0,
@@ -42033,7 +42436,7 @@ function RI() {
42033
42436
  }));
42034
42437
  }
42035
42438
  function re(e) {
42036
- ne(e, null);
42439
+ F(e, null);
42037
42440
  }
42038
42441
  let ie = (e) => ["submission", "submissions"].includes(String(e || "").toLowerCase());
42039
42442
  function ae(e = c, t = b) {
@@ -42058,7 +42461,7 @@ function RI() {
42058
42461
  }
42059
42462
  }
42060
42463
  function se(e) {
42061
- l(e), (!o[e]?.loaded || o[e]?.scopeKey !== F(e)) && re(e), ie(e) && ae(e, b);
42464
+ l(e), (!o[e]?.loaded || o[e]?.scopeKey !== P(e)) && re(e), ie(e) && ae(e, b);
42062
42465
  }
42063
42466
  function ce() {
42064
42467
  p(null), d(!0);
@@ -42128,7 +42531,7 @@ function RI() {
42128
42531
  })).catch(() => Y.error("Could not load preview settings")).finally(() => O(!1)));
42129
42532
  }
42130
42533
  function ge() {
42131
- return P(c);
42534
+ return ne(c);
42132
42535
  }
42133
42536
  function _e(e) {
42134
42537
  T(JSON.parse(JSON.stringify(e))), Y.success(`Copied settings from ${e.label || e.name}`);
@@ -42266,7 +42669,7 @@ function RI() {
42266
42669
  }),
42267
42670
  /* @__PURE__ */ Z(XP, {
42268
42671
  module: c,
42269
- scope: P(c),
42672
+ scope: ne(c),
42270
42673
  scopeLabel: `${c} · ${b.clientId ? v.find((e) => (e._id ?? e.id) === b.clientId)?.clientName || b.clientId : "Module default"}${b.region ? ` · ${b.region}` : ""}`,
42271
42674
  onApplied: () => {
42272
42675
  re(c), c !== "all" && re("all");
@@ -42274,7 +42677,7 @@ function RI() {
42274
42677
  }),
42275
42678
  N(c) && /* @__PURE__ */ Z(UP, {
42276
42679
  module: c,
42277
- scope: P(c),
42680
+ scope: ne(c),
42278
42681
  onImported: () => re(c)
42279
42682
  }),
42280
42683
  /* @__PURE__ */ Z(B, {
@@ -44489,7 +44892,7 @@ function bL({ open: e, onClose: t }) {
44489
44892
  });
44490
44893
  }
44491
44894
  function xL() {
44492
- let [e, t] = z([]), [n, r] = z(!0), [i, a] = z(""), [o, s] = z([]), [c, l] = z([]), [u, d] = z([]), [f, p] = z({}), [m, h] = z([]), [g, _] = z([]), [v, y] = z({}), [b, x] = z(!1), [S, C] = z(""), [w, T] = z(!1), [E, D] = z(null), [ee, O] = z(null), [k, A] = z(!1), [j, te] = z(!1), [M, N] = z(null), [P, F] = z(0), [ne, re] = z(""), [ie, ae] = z([]), [oe, se] = z(""), [ce, le] = z(""), [ue, de] = z({});
44895
+ let [e, t] = z([]), [n, r] = z(!0), [i, a] = z(""), [o, s] = z([]), [c, l] = z([]), [u, d] = z([]), [f, p] = z({}), [m, h] = z([]), [g, _] = z([]), [v, y] = z({}), [b, x] = z(!1), [S, C] = z(""), [w, T] = z(!1), [E, D] = z(null), [ee, O] = z(null), [k, A] = z(!1), [j, te] = z(!1), [M, N] = z(null), [ne, P] = z(0), [F, re] = z(""), [ie, ae] = z([]), [oe, se] = z(""), [ce, le] = z(""), [ue, de] = z({});
44493
44896
  function fe(e) {
44494
44897
  N(QI[e]);
44495
44898
  }
@@ -44546,7 +44949,7 @@ function xL() {
44546
44949
  off: "Group follows its Show Condition in the detail view"
44547
44950
  });
44548
44951
  function ve() {
44549
- N(null), F((e) => e + 1);
44952
+ N(null), P((e) => e + 1);
44550
44953
  }
44551
44954
  L(() => {
44552
44955
  Ee({ limit: 200 }).then(ae).catch(() => ae([]));
@@ -44588,7 +44991,7 @@ function xL() {
44588
44991
  };
44589
44992
  }, [
44590
44993
  i,
44591
- P,
44994
+ ne,
44592
44995
  oe
44593
44996
  ]);
44594
44997
  let ye = R(() => c.map((e) => ({
@@ -45006,7 +45409,7 @@ function xL() {
45006
45409
  children: "No fields in this group."
45007
45410
  });
45008
45411
  }, je = R(() => {
45009
- let e = ne.trim().toLowerCase();
45412
+ let e = F.trim().toLowerCase();
45010
45413
  return [...o].filter((t) => !e || [
45011
45414
  t.label,
45012
45415
  t.name,
@@ -45016,7 +45419,7 @@ function xL() {
45016
45419
  e.type
45017
45420
  ])
45018
45421
  ].some((t) => String(t ?? "").toLowerCase().includes(e))).sort((e, t) => (e.order ?? 0) - (t.order ?? 0));
45019
- }, [o, ne]), Me = [
45422
+ }, [o, F]), Me = [
45020
45423
  {
45021
45424
  title: "Label",
45022
45425
  dataIndex: "label",
@@ -45181,7 +45584,7 @@ function xL() {
45181
45584
  }), /* @__PURE__ */ Z(B, {
45182
45585
  size: "small",
45183
45586
  icon: /* @__PURE__ */ Z(Kc, {}),
45184
- onClick: () => F((e) => e + 1),
45587
+ onClick: () => P((e) => e + 1),
45185
45588
  children: "Reload"
45186
45589
  })]
45187
45590
  })]
@@ -45236,7 +45639,7 @@ function xL() {
45236
45639
  allowClear: !0,
45237
45640
  prefix: /* @__PURE__ */ Z($c, {}),
45238
45641
  placeholder: "Search groups or fields",
45239
- value: ne,
45642
+ value: F,
45240
45643
  onChange: (e) => re(e.target.value)
45241
45644
  }), /* @__PURE__ */ Q(qI, {
45242
45645
  type: "secondary",
@@ -46342,20 +46745,20 @@ function XL() {
46342
46745
  } finally {
46343
46746
  h(!1);
46344
46747
  }
46345
- }, P = async () => {
46748
+ }, ne = async () => {
46346
46749
  if (o) try {
46347
46750
  await Pt(o.id ?? o._id), Y.success("Config deleted"), await M();
46348
46751
  } catch (e) {
46349
46752
  Y.error(e.message);
46350
46753
  }
46351
- }, [F, ne] = z(null), re = (e = null) => {
46352
- ne(typeof e == "string" ? e : null), x(null), y(!0);
46754
+ }, [P, F] = z(null), re = (e = null) => {
46755
+ F(typeof e == "string" ? e : null), x(null), y(!0);
46353
46756
  }, ie = (e, t = null) => {
46354
- ne(t), x(e), y(!0);
46757
+ F(t), x(e), y(!0);
46355
46758
  }, ae = async (e) => {
46356
46759
  let t;
46357
- t = F ? c.map((t) => {
46358
- if (t.key !== F) return t;
46760
+ t = P ? c.map((t) => {
46761
+ if (t.key !== P) return t;
46359
46762
  let n = t.children ?? [], r = b ? n.map((t) => t.key === b.key ? {
46360
46763
  ...t,
46361
46764
  ...e
@@ -46760,7 +47163,7 @@ function XL() {
46760
47163
  children: [
46761
47164
  o && /* @__PURE__ */ Z(Zo, {
46762
47165
  title: "Delete this entire config?",
46763
- onConfirm: P,
47166
+ onConfirm: ne,
46764
47167
  okText: "Delete",
46765
47168
  okType: "danger",
46766
47169
  children: /* @__PURE__ */ Z(B, {
@@ -46833,7 +47236,7 @@ function XL() {
46833
47236
  /* @__PURE__ */ Z(YL, {
46834
47237
  open: v,
46835
47238
  initial: b,
46836
- isChild: !!F,
47239
+ isChild: !!P,
46837
47240
  moduleName: n,
46838
47241
  popupForms: S,
46839
47242
  templateOptions: w,
@@ -51757,7 +52160,7 @@ function uz() {
51757
52160
  color: "var(--color-brand)"
51758
52161
  })
51759
52162
  }
51760
- ], P = [
52163
+ ], ne = [
51761
52164
  {
51762
52165
  title: "Source field",
51763
52166
  dataIndex: "sourceField",
@@ -51796,7 +52199,7 @@ function uz() {
51796
52199
  children: "—"
51797
52200
  })
51798
52201
  }
51799
- ], F = [
52202
+ ], P = [
51800
52203
  {
51801
52204
  title: "Name",
51802
52205
  dataIndex: "name",
@@ -51836,7 +52239,7 @@ function uz() {
51836
52239
  children: "top"
51837
52240
  })
51838
52241
  }
51839
- ], ne = [
52242
+ ], F = [
51840
52243
  {
51841
52244
  title: "Target",
51842
52245
  key: "target",
@@ -52666,7 +53069,7 @@ function uz() {
52666
53069
  title: "File Field Maps",
52667
53070
  description: "Turn an uploaded file field into a nested object (location + filename + who/when) or an array of such objects, instead of a flat S3 path string — needed for schemas like resume/passport/visa.",
52668
53071
  rules: u.fileFieldMaps ?? [],
52669
- columns: P,
53072
+ columns: ne,
52670
53073
  onAdd: () => C({
52671
53074
  index: null,
52672
53075
  rule: null
@@ -52837,7 +53240,7 @@ function uz() {
52837
53240
  title: "Hierarchy Expansions",
52838
53241
  description: "Walk the reporting chain up (toward admin) or down (toward a team) from a seed user, publishing the result as {{hierarchy.<name>}} for Related Updates / Notify to use.",
52839
53242
  rules: u.hierarchyExpands ?? [],
52840
- columns: F,
53243
+ columns: P,
52841
53244
  onAdd: () => T({
52842
53245
  index: null,
52843
53246
  rule: null
@@ -52853,7 +53256,7 @@ function uz() {
52853
53256
  title: "Related Updates",
52854
53257
  description: "Best-effort side-effect writes to other collections after a successful insert — board state, activity logs. Combine with ForEach + a Hierarchy Expansion to seed one document per user in a chain.",
52855
53258
  rules: u.relatedUpdates ?? [],
52856
- columns: ne,
53259
+ columns: F,
52857
53260
  onAdd: () => D({
52858
53261
  index: null,
52859
53262
  rule: null
@@ -56431,7 +56834,7 @@ function zB({ title: e, description: t, selectedName: n, loading: r, saving: i,
56431
56834
  });
56432
56835
  }
56433
56836
  function BB({ onLogout: e }) {
56434
- let [t] = H.useForm(), [n] = H.useForm(), [r, i] = z("users"), [a, o] = z(!0), [s, c] = z(!1), [l, u] = z(!1), [d, f] = z([]), [m, h] = z(0), [g, _] = z(1), [v, y] = z(10), [b, x] = z(""), [S, C] = z(""), w = Oo(0), [T, E] = z(!1), [D, ee] = z([]), [O, k] = z([]), [A, j] = z([]), [te, M] = z(null), [N, P] = z([]), [F, ne] = z(!1), [re, ie] = z(null), [ae, oe] = z(!1), [se, ce] = z(null), [le, ue] = z([]), [de, fe] = z(!1), [me, he] = z(!1), [ge, _e] = z(null), [ve, ye] = z(!1), [be, xe] = z(null), [Se, Ce] = z("listView"), [we, Te] = z([]), [Ee, De] = z([]), [Oe, ke] = z(!1), [Ae, je] = z(!1), Me = p(), Ne = R(() => we.filter((e) => !e.disabled), [we]), Pe = !Oe && Ne.length === 0, Fe = wo(async () => {
56837
+ let [t] = H.useForm(), [n] = H.useForm(), [r, i] = z("users"), [a, o] = z(!0), [s, c] = z(!1), [l, u] = z(!1), [d, f] = z([]), [m, h] = z(0), [g, _] = z(1), [v, y] = z(10), [b, x] = z(""), [S, C] = z(""), w = Oo(0), [T, E] = z(!1), [D, ee] = z([]), [O, k] = z([]), [A, j] = z([]), [te, M] = z(null), [N, ne] = z([]), [P, F] = z(!1), [re, ie] = z(null), [ae, oe] = z(!1), [se, ce] = z(null), [le, ue] = z([]), [de, fe] = z(!1), [me, he] = z(!1), [ge, _e] = z(null), [ve, ye] = z(!1), [be, xe] = z(null), [Se, Ce] = z("listView"), [we, Te] = z([]), [Ee, De] = z([]), [Oe, ke] = z(!1), [Ae, je] = z(!1), Me = p(), Ne = R(() => we.filter((e) => !e.disabled), [we]), Pe = !Oe && Ne.length === 0, Fe = wo(async () => {
56435
56838
  ke(!0);
56436
56839
  try {
56437
56840
  let [e, t] = await Promise.all([_t(), Je()]), n = fN(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
@@ -56508,7 +56911,7 @@ function BB({ onLogout: e }) {
56508
56911
  }, [Re]), L(() => {
56509
56912
  queueMicrotask(() => {
56510
56913
  if (!te) {
56511
- P([]);
56914
+ ne([]);
56512
56915
  return;
56513
56916
  }
56514
56917
  c(!0), WN(te).then((e) => {
@@ -56524,7 +56927,7 @@ function BB({ onLogout: e }) {
56524
56927
  accessValue: n.get(`${r}:${i}`) ?? 0
56525
56928
  };
56526
56929
  }));
56527
- P(r);
56930
+ ne(r);
56528
56931
  }).catch((e) => Y.error(e.message || "Unable to load role permissions")).finally(() => c(!1));
56529
56932
  });
56530
56933
  }, [
@@ -56543,7 +56946,7 @@ function BB({ onLogout: e }) {
56543
56946
  user_type_name: Be[e.user_type_id]
56544
56947
  })), [Be, d]);
56545
56948
  L(() => {
56546
- if (!F) {
56949
+ if (!P) {
56547
56950
  ue([]);
56548
56951
  return;
56549
56952
  }
@@ -56565,7 +56968,7 @@ function BB({ onLogout: e }) {
56565
56968
  }, [
56566
56969
  re,
56567
56970
  t,
56568
- F
56971
+ P
56569
56972
  ]);
56570
56973
  let We = R(() => {
56571
56974
  let e = NB(le), t = Number(re?.reporting_id ?? re?.reportingId ?? 0);
@@ -56703,7 +57106,7 @@ function BB({ onLogout: e }) {
56703
57106
  }
56704
57107
  ];
56705
57108
  function Ze(e, t) {
56706
- P((n) => n.map((n) => n.key === e ? {
57109
+ ne((n) => n.map((n) => n.key === e ? {
56707
57110
  ...n,
56708
57111
  accessValue: t
56709
57112
  } : n));
@@ -56731,7 +57134,7 @@ function BB({ onLogout: e }) {
56731
57134
  status: "ACTIVE",
56732
57135
  user_type_id: He[0]?.user_type_id,
56733
57136
  reporting_id: 0
56734
- }), ne(!0);
57137
+ }), F(!0);
56735
57138
  }
56736
57139
  function et(e) {
56737
57140
  ie(e), t.setFieldsValue({
@@ -56744,7 +57147,7 @@ function BB({ onLogout: e }) {
56744
57147
  reporting_id: e.reporting_id ?? e.reportingId ?? 0,
56745
57148
  profile_image: e.profile_image,
56746
57149
  status: e.status
56747
- }), ne(!0);
57150
+ }), F(!0);
56748
57151
  }
56749
57152
  async function tt(e) {
56750
57153
  oe(!0);
@@ -56755,7 +57158,7 @@ function BB({ onLogout: e }) {
56755
57158
  updated_by: Me?.userId ?? null,
56756
57159
  created_by: Me?.userId ?? null
56757
57160
  };
56758
- t.password || delete t.password, re ? (await NN(re.user_id, t), Y.success("User updated")) : (await MN(t), Y.success("User created")), ne(!1), ie(null), await Re();
57161
+ t.password || delete t.password, re ? (await NN(re.user_id, t), Y.success("User updated")) : (await MN(t), Y.success("User created")), F(!1), ie(null), await Re();
56759
57162
  } catch (e) {
56760
57163
  Y.error(e.message || "Unable to save user");
56761
57164
  } finally {
@@ -56779,7 +57182,7 @@ function BB({ onLogout: e }) {
56779
57182
  }), e === "role" && M(t.user_type_id);
56780
57183
  }
56781
57184
  function it(e, t) {
56782
- P((n) => {
57185
+ ne((n) => {
56783
57186
  let r = [...new Set(n.map(FB))], i = r.indexOf(e), a = i + t;
56784
57187
  if (i < 0 || a < 0 || a >= r.length) return n;
56785
57188
  [r[i], r[a]] = [r[a], r[i]];
@@ -57318,8 +57721,8 @@ function BB({ onLogout: e }) {
57318
57721
  /* @__PURE__ */ Z(Yo, {
57319
57722
  className: "admin-user-modal",
57320
57723
  title: re ? "Edit User" : "Add User",
57321
- open: F,
57322
- onCancel: () => ne(!1),
57724
+ open: P,
57725
+ onCancel: () => F(!1),
57323
57726
  onOk: () => t.submit(),
57324
57727
  confirmLoading: ae,
57325
57728
  destroyOnHidden: !0,
@@ -57966,7 +58369,7 @@ function AV() {
57966
58369
  l.removeDuplicateRecipients,
57967
58370
  d,
57968
58371
  i
57969
- ]), S = String(rp(l, t, r) ?? "").trim(), C = String(DV(r[0]) ?? "").trim(), w = S || (l.configured ? "" : C), T = n[0] ?? r[0]?._id ?? r[0]?.id ?? "", E = l.jobBased || l.requiredJobId ? w : String(w || (l.configured ? "" : T) || ""), D = l.jobIdReadOnly && l.jobIdSource !== "manual" && gV.test(w), ee = np(l), [O, k] = z(w), [A, j] = z(E), [te, M] = z(""), [N, P] = z({
58372
+ ]), S = String(rp(l, t, r) ?? "").trim(), C = String(DV(r[0]) ?? "").trim(), w = S || (l.configured ? "" : C), T = n[0] ?? r[0]?._id ?? r[0]?.id ?? "", E = l.jobBased || l.requiredJobId ? w : String(w || (l.configured ? "" : T) || ""), D = l.jobIdReadOnly && l.jobIdSource !== "manual" && gV.test(w), ee = np(l), [O, k] = z(w), [A, j] = z(E), [te, M] = z(""), [N, ne] = z({
57970
58373
  to: x,
57971
58374
  cc: "",
57972
58375
  bcc: "",
@@ -57975,14 +58378,14 @@ function AV() {
57975
58378
  attachments: [],
57976
58379
  showCc: !1,
57977
58380
  showBcc: !1
57978
- }), F = l.autoFetchJobContent && gV.test(E), [ne, re] = z(!F), [ie, ae] = z(!1), [oe, se] = z([]), [ce, le] = z(!1), [ue, de] = z(!1), fe = Oo(!1), pe = Oo(""), me = Oo(""), he = Oo(0);
58381
+ }), P = l.autoFetchJobContent && gV.test(E), [F, re] = z(!P), [ie, ae] = z(!1), [oe, se] = z([]), [ce, le] = z(!1), [ue, de] = z(!1), fe = Oo(!1), pe = Oo(""), me = Oo(""), he = Oo(0);
57979
58382
  L(() => {
57980
58383
  if (!m) return;
57981
58384
  let e = !1;
57982
58385
  return g(!0), v(""), io(f).then((t) => {
57983
58386
  if (e || fe.current) return;
57984
58387
  let n = EV(t, l.recipientFields);
57985
- P((e) => ({
58388
+ ne((e) => ({
57986
58389
  ...e,
57987
58390
  to: kV([...JB(x), ...n], l.removeDuplicateRecipients)
57988
58391
  }));
@@ -58007,7 +58410,7 @@ function AV() {
58007
58410
  return pe.current = p, io(f).then((t) => {
58008
58411
  if (e) return;
58009
58412
  let n = EV(tp(t, l.recipientMode), l.recipientFields);
58010
- n.length && P((e) => JB(e.to).length > 0 ? e : {
58413
+ n.length && ne((e) => JB(e.to).length > 0 ? e : {
58011
58414
  ...e,
58012
58415
  to: kV(n, l.removeDuplicateRecipients)
58013
58416
  });
@@ -58032,7 +58435,7 @@ function AV() {
58032
58435
  return me.current = p, Promise.all(f.map((e) => ro(s, e).catch(() => null))).then((t) => {
58033
58436
  if (e) return;
58034
58437
  let n = EV(t.filter(Boolean), l.recipientFields);
58035
- n.length && P((e) => JB(e.to).length > 0 ? e : {
58438
+ n.length && ne((e) => JB(e.to).length > 0 ? e : {
58036
58439
  ...e,
58037
58440
  to: kV(n, l.removeDuplicateRecipients)
58038
58441
  });
@@ -58060,7 +58463,7 @@ function AV() {
58060
58463
  }
58061
58464
  let e = ++he.current, t = !1;
58062
58465
  async function n() {
58063
- re(!1), ae(!0), P((e) => ({
58466
+ re(!1), ae(!0), ne((e) => ({
58064
58467
  ...e,
58065
58468
  contents: ""
58066
58469
  }));
@@ -58072,7 +58475,7 @@ function AV() {
58072
58475
  !t && e === he.current && Y.warning(n?.message || "Mail content formatting failed. Showing original content.");
58073
58476
  }
58074
58477
  if (t || e !== he.current) return;
58075
- i && M(i), P((e) => ({
58478
+ i && M(i), ne((e) => ({
58076
58479
  ...e,
58077
58480
  subject: o.subject || e.subject,
58078
58481
  to: l.configured ? e.to : o.toMail?.length ? Array.isArray(o.toMail) ? o.toMail.join(", ") : String(o.toMail) : e.to,
@@ -58130,7 +58533,7 @@ function AV() {
58130
58533
  se(t);
58131
58534
  }).catch((e) => Y.error(e?.message || "Unable to search jobs")).finally(() => le(!1));
58132
58535
  }
58133
- let ye = JB(N.to).length > 0, be = ne && !h && !_ && (!l.requiredJobId || gV.test(A)) && (!l.requiredTo || ye) && QB(N.to) && QB(N.cc) && QB(N.bcc) && (!l.requiredSubject || N.subject.trim().length > 0) && (!l.requiredBody || vV(N.contents));
58536
+ let ye = JB(N.to).length > 0, be = F && !h && !_ && (!l.requiredJobId || gV.test(A)) && (!l.requiredTo || ye) && QB(N.to) && QB(N.cc) && QB(N.bcc) && (!l.requiredSubject || N.subject.trim().length > 0) && (!l.requiredBody || vV(N.contents));
58134
58537
  async function xe() {
58135
58538
  if (!(!be || ue)) {
58136
58539
  de(!0);
@@ -58156,7 +58559,7 @@ function AV() {
58156
58559
  }
58157
58560
  }
58158
58561
  function Se(e) {
58159
- e?.to !== N.to && (fe.current = !0), P(e);
58562
+ e?.to !== N.to && (fe.current = !0), ne(e);
58160
58563
  }
58161
58564
  let Ce = ee ? /* @__PURE__ */ Q("div", {
58162
58565
  className: "mail-popup__job-row",
@@ -58231,7 +58634,7 @@ function AV() {
58231
58634
  moduleName: s,
58232
58635
  defaultTemplateId: u,
58233
58636
  templateApplyKey: l.autoFetchJobContent ? A : "",
58234
- ready: ne,
58637
+ ready: F,
58235
58638
  contextRecords: r,
58236
58639
  requiredTo: l.requiredTo,
58237
58640
  requiredSubject: l.requiredSubject,
@@ -58747,7 +59150,7 @@ function rH({ moduleName: e = "", record: t = null, previewFields: n, onClose: r
58747
59150
  })]
58748
59151
  })
58749
59152
  });
58750
- function P() {
59153
+ function ne() {
58751
59154
  return !e || !a ? /* @__PURE__ */ Z("div", {
58752
59155
  className: "job-preview-content job-preview-status",
58753
59156
  children: "Preview id is missing."
@@ -58866,7 +59269,7 @@ function rH({ moduleName: e = "", record: t = null, previewFields: n, onClose: r
58866
59269
  children: [
58867
59270
  !c && !u && T.length > 0 && te(),
58868
59271
  t && /* @__PURE__ */ Z(eH, { record: t }),
58869
- P()
59272
+ ne()
58870
59273
  ]
58871
59274
  })
58872
59275
  });
@@ -60404,7 +60807,7 @@ function wU({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
60404
60807
  }), k = (p.removedIds ?? []).length, A = u.length > k, j = ee.some((e) => {
60405
60808
  let t = f[e.name];
60406
60809
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0);
60407
- }), { handleOk: te, confirming: M, deleteError: N, resetSubmitState: P } = SU({
60810
+ }), { handleOk: te, confirming: M, deleteError: N, resetSubmitState: ne } = SU({
60408
60811
  form: s,
60409
60812
  config: t,
60410
60813
  api: a,
@@ -60419,14 +60822,14 @@ function wU({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
60419
60822
  onSubmit: i
60420
60823
  });
60421
60824
  L(() => {
60422
- e && (s.resetFields(), l(y ?? {}), d(p.removedIds ?? []), P());
60825
+ e && (s.resetFields(), l(y ?? {}), d(p.removedIds ?? []), ne());
60423
60826
  }, [e, y]);
60424
- let F = !!t?.autoSubmitWhenNoFields && v.length === 0;
60827
+ let P = !!t?.autoSubmitWhenNoFields && v.length === 0;
60425
60828
  L(() => {
60426
- !e || !F || te();
60427
- }, [e, F]);
60428
- let ne = m.length, re = String(g).replace(/s$/i, ""), ie = ne === 1 ? re : g, ae = h[0] ?? {}, oe = t?.getTitleText ? t.getTitleText(ne, ie, ae, p) : t?.title, se = ne === 1 ? ae.jobTitle ?? ae.title ?? ae.name ?? ae.fullName ?? ae.candidateName ?? null : null, ce = t?.getBodyText ? t.getBodyText(ne, re, ie, se, p) : t?.bodyText ?? null, le = typeof t?.getNote == "function" ? t.getNote(p) : t?.note, ue = t?.disabledUntilFilled && !O && !A;
60429
- if (!t || !e || F) return null;
60829
+ !e || !P || te();
60830
+ }, [e, P]);
60831
+ let F = m.length, re = String(g).replace(/s$/i, ""), ie = F === 1 ? re : g, ae = h[0] ?? {}, oe = t?.getTitleText ? t.getTitleText(F, ie, ae, p) : t?.title, se = F === 1 ? ae.jobTitle ?? ae.title ?? ae.name ?? ae.fullName ?? ae.candidateName ?? null : null, ce = t?.getBodyText ? t.getBodyText(F, re, ie, se, p) : t?.bodyText ?? null, le = typeof t?.getNote == "function" ? t.getNote(p) : t?.note, ue = t?.disabledUntilFilled && !O && !A;
60832
+ if (!t || !e || P) return null;
60430
60833
  let de = t.component;
60431
60834
  return de ? /* @__PURE__ */ Z(o, {
60432
60835
  open: e,
@@ -60473,7 +60876,7 @@ function wU({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
60473
60876
  note: le,
60474
60877
  description: t.description,
60475
60878
  showSelectedCount: t.showSelectedCount,
60476
- count: ne,
60879
+ count: F,
60477
60880
  itemLabel: ie,
60478
60881
  bodyText: ce,
60479
60882
  deleteError: N
@@ -61497,7 +61900,7 @@ function KW(e) {
61497
61900
  let r = GW(t, "candidateRate", "candidateAcceptedCurrency") ?? GW(t, "candidateBudget", "candidateBudgetCurrency");
61498
61901
  return {
61499
61902
  amount: n,
61500
- symbol: P(r, GW(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? GW(t, "candidateBudget", "candidateBudgetCurrencySymbol")),
61903
+ symbol: ne(r, GW(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? GW(t, "candidateBudget", "candidateBudgetCurrencySymbol")),
61501
61904
  unit: GW(t, "candidateRate", "candidateAcceptedPayUnit") ?? GW(t, "candidateBudget", "candidateBudgetUnit") ?? ""
61502
61905
  };
61503
61906
  }
@@ -61532,7 +61935,7 @@ var qW = {
61532
61935
  type: "select",
61533
61936
  required: !0,
61534
61937
  inlineRow: "proposedRate",
61535
- defaultOptions: ne,
61938
+ defaultOptions: F,
61536
61939
  initialValue: (e) => KW(e)?.symbol
61537
61940
  },
61538
61941
  {
@@ -61890,7 +62293,7 @@ function yG({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
61890
62293
  }
61891
62294
  }, j = String(O.contents ?? "").replace(/<[^>]*>/g, " ").replace(/&nbsp;/gi, " ").trim(), te = /{{\s*\.?[\w.]+\s*}}/.test(`${O.subject ?? ""} ${O.contents ?? ""}`), M = "";
61892
62295
  T || (JB(O.to).length === 0 ? M = "Add at least one recipient in To." : QB(O.to) ? QB(O.cc) ? QB(O.bcc) ? String(O.subject ?? "").trim() ? j ? te && (M = "The message still contains unfilled placeholders ({{…}}). Fill them in before sending.") : M = "The message body is empty." : M = "Enter a subject." : M = "One or more Bcc addresses are not valid e-mail addresses." : M = "One or more Cc addresses are not valid e-mail addresses." : M = "One or more To addresses are not valid e-mail addresses.");
61893
- let N = !T && !M, P = async () => {
62296
+ let N = !T && !M, ne = async () => {
61894
62297
  if (!_ || !N || D) return;
61895
62298
  ee(!0);
61896
62299
  let e = {
@@ -61925,7 +62328,7 @@ function yG({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
61925
62328
  } finally {
61926
62329
  ee(!1);
61927
62330
  }
61928
- }, F = R(() => ({
62331
+ }, P = R(() => ({
61929
62332
  submissionApprove: async ({ computed: e, referral: t }) => {
61930
62333
  v(e), b(t ?? null), g("vms"), m(!0);
61931
62334
  },
@@ -61962,7 +62365,7 @@ function yG({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
61962
62365
  referralOptions: d,
61963
62366
  canViewReferral: nG(),
61964
62367
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
61965
- actions: F,
62368
+ actions: P,
61966
62369
  onClose: () => i?.(),
61967
62370
  variant: "popup"
61968
62371
  }),
@@ -62022,7 +62425,7 @@ function yG({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
62022
62425
  type: "primary",
62023
62426
  loading: D,
62024
62427
  disabled: !N,
62025
- onClick: P,
62428
+ onClick: ne,
62026
62429
  children: "Send"
62027
62430
  })
62028
62431
  ]
@@ -62678,19 +63081,19 @@ function JG() {
62678
63081
  bcc: [.../* @__PURE__ */ new Set([...JB(u.bcc), ...M])].join(", "),
62679
63082
  showBcc: u.showBcc || M.length > 0
62680
63083
  }), [u, M]);
62681
- function P(e) {
63084
+ function ne(e) {
62682
63085
  let t = new Set(M);
62683
63086
  d({
62684
63087
  ...e,
62685
63088
  bcc: JB(e.bcc).filter((e) => !t.has(e)).join(", ")
62686
63089
  });
62687
63090
  }
62688
- let F = (JB(N.to).length || JB(N.bcc).length) && QB(N.to) && QB(N.cc) && QB(N.bcc) && N.subject.trim(), ne = (e) => e === "myVendor" ? b : S;
63091
+ let P = (JB(N.to).length || JB(N.bcc).length) && QB(N.to) && QB(N.cc) && QB(N.bcc) && N.subject.trim(), F = (e) => e === "myVendor" ? b : S;
62689
63092
  function re() {
62690
63093
  e(-1);
62691
63094
  }
62692
63095
  function ie() {
62693
- F && KG.submit({
63096
+ P && KG.submit({
62694
63097
  jobId: l,
62695
63098
  toMail: JB(N.to),
62696
63099
  ccMail: JB(N.cc),
@@ -62726,7 +63129,7 @@ function JG() {
62726
63129
  children: "Cancel"
62727
63130
  }), /* @__PURE__ */ Z(B, {
62728
63131
  type: "primary",
62729
- disabled: !F,
63132
+ disabled: !P,
62730
63133
  onClick: ie,
62731
63134
  children: "Send"
62732
63135
  })]
@@ -62779,7 +63182,7 @@ function JG() {
62779
63182
  children: [
62780
63183
  e.label,
62781
63184
  " (",
62782
- ne(e.key),
63185
+ F(e.key),
62783
63186
  ")"
62784
63187
  ]
62785
63188
  }, e.key))
@@ -62818,7 +63221,7 @@ function JG() {
62818
63221
  className: "vendor-share__right",
62819
63222
  children: /* @__PURE__ */ Z(mV, {
62820
63223
  value: N,
62821
- onChange: P,
63224
+ onChange: ne,
62822
63225
  moduleName: s,
62823
63226
  defaultTemplateId: c.defaultTemplateId ?? t.state?.defaultTemplateId ?? "",
62824
63227
  ready: f,
@@ -66020,12 +66423,12 @@ function vq() {
66020
66423
  message: e.message || "Could not reach the server."
66021
66424
  }), l("preview");
66022
66425
  }
66023
- }, P = wo(() => {
66426
+ }, ne = wo(() => {
66024
66427
  r.current?.scrollIntoView({
66025
66428
  behavior: "smooth",
66026
66429
  block: "center"
66027
66430
  });
66028
- }, []), F = [
66431
+ }, []), P = [
66029
66432
  "bulk-dropzone",
66030
66433
  u ? "bulk-dropzone-dragging" : "",
66031
66434
  f ? "bulk-dropzone-has-file" : "",
@@ -66110,7 +66513,7 @@ function vq() {
66110
66513
  }),
66111
66514
  /* @__PURE__ */ Q("button", {
66112
66515
  type: "button",
66113
- className: F,
66516
+ className: P,
66114
66517
  disabled: !ee,
66115
66518
  onClick: () => n.current?.click(),
66116
66519
  onDragOver: (e) => {
@@ -66158,7 +66561,7 @@ function vq() {
66158
66561
  errors: E,
66159
66562
  expanded: C,
66160
66563
  onToggle: () => w((e) => !e),
66161
- onSummaryClick: P
66564
+ onSummaryClick: ne
66162
66565
  }),
66163
66566
  v && c === "preview" && /* @__PURE__ */ Z(Ao, {
66164
66567
  type: "error",
@@ -66510,12 +66913,12 @@ function Aq() {
66510
66913
  value: void 0,
66511
66914
  expected: void 0
66512
66915
  });
66513
- }, P = (t) => {
66916
+ }, ne = (t) => {
66514
66917
  e.setFieldsValue({
66515
66918
  flow: Tq(t),
66516
66919
  step_order: void 0
66517
66920
  });
66518
- }, F = (e) => {
66921
+ }, P = (e) => {
66519
66922
  let n = Cq[e];
66520
66923
  p({
66521
66924
  open: !0,
@@ -66524,7 +66927,7 @@ function Aq() {
66524
66927
  name: "",
66525
66928
  type: n.label
66526
66929
  });
66527
- }, ne = () => {
66930
+ }, F = () => {
66528
66931
  p((e) => ({
66529
66932
  ...e,
66530
66933
  open: !1
@@ -66535,7 +66938,7 @@ function Aq() {
66535
66938
  name: n,
66536
66939
  type: x.dbName
66537
66940
  });
66538
- O(f.typeKey, r?.items ?? []), e.setFieldsValue({ [x.formField]: n }), Y.success(`${x.label} added successfully.`), ne();
66941
+ O(f.typeKey, r?.items ?? []), e.setFieldsValue({ [x.formField]: n }), Y.success(`${x.label} added successfully.`), F();
66539
66942
  } catch (e) {
66540
66943
  if (e?.errorFields) return;
66541
66944
  console.error("Unable to save testing option:", e), Y.error(`Unable to add ${x.label.toLowerCase()}.`);
@@ -66619,7 +67022,7 @@ function Aq() {
66619
67022
  "aria-label": "Add module",
66620
67023
  icon: /* @__PURE__ */ Z(Hc, {}),
66621
67024
  style: { marginTop: 30 },
66622
- onClick: () => F("module")
67025
+ onClick: () => P("module")
66623
67026
  })]
66624
67027
  })
66625
67028
  }),
@@ -66635,7 +67038,7 @@ function Aq() {
66635
67038
  disabled: D,
66636
67039
  options: o,
66637
67040
  placeholder: u ? "Loading flows" : "Enter flow",
66638
- onChange: P,
67041
+ onChange: ne,
66639
67042
  filterOption: (e, t) => t?.value?.toLowerCase().includes(e.toLowerCase())
66640
67043
  })
66641
67044
  })
@@ -66766,7 +67169,7 @@ function Aq() {
66766
67169
  open: f.open,
66767
67170
  confirmLoading: m,
66768
67171
  okText: "Add",
66769
- onCancel: ne,
67172
+ onCancel: F,
66770
67173
  onOk: () => {
66771
67174
  h(!0), re();
66772
67175
  },
@@ -66874,14 +67277,14 @@ function Rq(e, t) {
66874
67277
  })));
66875
67278
  }
66876
67279
  function zq() {
66877
- let [e] = H.useForm(), t = Nl(), [n] = Fl(), r = n.get("edit"), i = !!r, a = R(() => b(), []), [o, s] = z([]), [c, l] = z([]), [u, d] = z([]), [f, p] = z(yq), [m, h] = z({}), [g, _] = z(!1), [v, y] = z(!1), [x, S] = z(!1), [C, w] = z(!1), [T, E] = z(!1), D = H.useWatch("module", e), ee = H.useWatch("submodule", e), O = H.useWatch("actions", e), k = !!D, A = !!ee, j = R(() => Lq(m, O), [m, O]), te = R(() => Pq(o, "modulename"), [o]), M = R(() => Pq(c, "submodulename"), [c]), N = R(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), P = R(() => c.find((e) => e.id === ee)?.submodulename ?? "", [ee, c]), F = wo(async () => {
67280
+ let [e] = H.useForm(), t = Nl(), [n] = Fl(), r = n.get("edit"), i = !!r, a = R(() => b(), []), [o, s] = z([]), [c, l] = z([]), [u, d] = z([]), [f, p] = z(yq), [m, h] = z({}), [g, _] = z(!1), [v, y] = z(!1), [x, S] = z(!1), [C, w] = z(!1), [T, E] = z(!1), D = H.useWatch("module", e), ee = H.useWatch("submodule", e), O = H.useWatch("actions", e), k = !!D, A = !!ee, j = R(() => Lq(m, O), [m, O]), te = R(() => Pq(o, "modulename"), [o]), M = R(() => Pq(c, "submodulename"), [c]), N = R(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), ne = R(() => c.find((e) => e.id === ee)?.submodulename ?? "", [ee, c]), P = wo(async () => {
66878
67281
  try {
66879
67282
  let e = await VM();
66880
67283
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
66881
67284
  } catch (e) {
66882
67285
  console.error("Unable to load action field rules:", e), Y.error("Unable to load action validation rules.");
66883
67286
  }
66884
- }, []), ne = wo(async (e) => {
67287
+ }, []), F = wo(async (e) => {
66885
67288
  if (!e) {
66886
67289
  s([]);
66887
67290
  return;
@@ -67005,13 +67408,13 @@ function zq() {
67005
67408
  return;
67006
67409
  }
67007
67410
  Promise.resolve().then(async () => {
67008
- await F(), await ne(a.name), r && await oe();
67411
+ await P(), await F(a.name), r && await oe();
67009
67412
  });
67010
67413
  }, [
67011
67414
  a,
67012
67415
  t,
67416
+ P,
67013
67417
  F,
67014
- ne,
67015
67418
  r,
67016
67419
  oe
67017
67420
  ]), a ? /* @__PURE__ */ Q("main", {
@@ -67204,7 +67607,7 @@ function zq() {
67204
67607
  children: [
67205
67608
  N,
67206
67609
  " / ",
67207
- P
67610
+ ne
67208
67611
  ]
67209
67612
  }),
67210
67613
  children: [/* @__PURE__ */ Q(ns, {
@@ -68106,7 +68509,7 @@ function lJ() {
68106
68509
  typeKey: "module"
68107
68510
  }), [v, y] = z(!1), [b, x] = z(!1), [S, C] = z(!1), w = Nl(), T = eJ[g.typeKey], E = R(() => iJ(n), [n]), D = H.useWatch("module", e), ee = H.useWatch("flow", e), O = H.useWatch("keyword", e), k = !!aJ(D), A = !!aJ(ee), j = !k, te = !k || !A, M = R(() => nJ(u, O), [u, O]), N = (e, t = []) => {
68108
68511
  e === "module" && r(t);
68109
- }, P = async () => {
68512
+ }, ne = async () => {
68110
68513
  p(!0);
68111
68514
  try {
68112
68515
  let e = await zM(eJ.module.dbName);
@@ -68116,14 +68519,14 @@ function lJ() {
68116
68519
  } finally {
68117
68520
  p(!1);
68118
68521
  }
68119
- }, F = async () => {
68522
+ }, P = async () => {
68120
68523
  try {
68121
68524
  let e = await VM();
68122
68525
  Array.isArray(e?.options) && e.options.length > 0 && l(e.options), e?.rules && typeof e.rules == "object" && d(e.rules);
68123
68526
  } catch (e) {
68124
68527
  console.error("Unable to load action field rules:", e), Y.error("Unable to load action validation rules.");
68125
68528
  }
68126
- }, ne = wo(async (t) => {
68529
+ }, F = wo(async (t) => {
68127
68530
  let n = aJ(t);
68128
68531
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
68129
68532
  h(!0);
@@ -68157,11 +68560,11 @@ function lJ() {
68157
68560
  }, [e]);
68158
68561
  L(() => {
68159
68562
  Promise.resolve().then(async () => {
68160
- await Promise.all([P(), F()]);
68563
+ await Promise.all([ne(), P()]);
68161
68564
  });
68162
68565
  }, []), L(() => {
68163
- Promise.resolve().then(() => ne(D));
68164
- }, [ne, D]), L(() => {
68566
+ Promise.resolve().then(() => F(D));
68567
+ }, [F, D]), L(() => {
68165
68568
  Promise.resolve().then(() => re(D, ee, i));
68166
68569
  }, [
68167
68570
  i,
@@ -69258,18 +69661,18 @@ function lY({ moduleName: e, scope: t = "", scopeConditions: n = sY, value: r =
69258
69661
  ...j.current,
69259
69662
  draft: {}
69260
69663
  }, E(nY([])), j.current.onChange?.([]);
69261
- }, []), [P, F] = z(() => /* @__PURE__ */ new Set()), [ne, re] = z("");
69262
- if (g && ne !== g) {
69664
+ }, []), [ne, P] = z(() => /* @__PURE__ */ new Set()), [F, re] = z("");
69665
+ if (g && F !== g) {
69263
69666
  re(g);
69264
69667
  let e = new Set(h.slice(0, l).map((e) => e.key));
69265
69668
  h.forEach((t) => {
69266
69669
  C[t.key] !== void 0 && e.add(t.key);
69267
- }), F(e);
69670
+ }), P(e);
69268
69671
  }
69269
69672
  let ie = Oo(/* @__PURE__ */ new Set());
69270
69673
  L(() => {
69271
69674
  h.forEach((e) => {
69272
- if (e.kind !== UJ.OPTIONS || !P.has(e.key)) return;
69675
+ if (e.kind !== UJ.OPTIONS || !ne.has(e.key)) return;
69273
69676
  let n = `${e.key}|${t}|${b}`;
69274
69677
  ie.current.has(n) || (ie.current.add(n), y(e.key, "", {
69275
69678
  ...e.fetchMeta,
@@ -69278,7 +69681,7 @@ function lY({ moduleName: e, scope: t = "", scopeConditions: n = sY, value: r =
69278
69681
  }));
69279
69682
  });
69280
69683
  }, [
69281
- P,
69684
+ ne,
69282
69685
  h,
69283
69686
  t,
69284
69687
  b,
@@ -69286,7 +69689,7 @@ function lY({ moduleName: e, scope: t = "", scopeConditions: n = sY, value: r =
69286
69689
  y
69287
69690
  ]);
69288
69691
  let ae = (e) => {
69289
- F((t) => {
69692
+ P((t) => {
69290
69693
  let n = new Set(t);
69291
69694
  return n.has(e) ? n.delete(e) : n.add(e), n;
69292
69695
  });
@@ -69365,7 +69768,7 @@ function lY({ moduleName: e, scope: t = "", scopeConditions: n = sY, value: r =
69365
69768
  children: "No filters are configured for this module. An administrator can add them under Configure → Filter."
69366
69769
  }),
69367
69770
  h.map((e) => {
69368
- let n = P.has(e.key), r = C[e.key] !== void 0 && uY(e, C[e.key]);
69771
+ let n = ne.has(e.key), r = C[e.key] !== void 0 && uY(e, C[e.key]);
69369
69772
  return /* @__PURE__ */ Q("section", {
69370
69773
  className: "cc-filter-section",
69371
69774
  children: [/* @__PURE__ */ Q("button", {
@@ -70179,8 +70582,8 @@ function ZY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
70179
70582
  j,
70180
70583
  x
70181
70584
  ]);
70182
- let N = JSON.stringify(r ?? null), P = b.get("sub") ?? "", { relation: F, subTabs: ne, activeSubKey: re, subRelations: ie } = R(() => {
70183
- let e = JSON.parse(N), t = UY(e), r = t.find((e) => e.key === P) ?? t[0] ?? null;
70585
+ let N = JSON.stringify(r ?? null), ne = b.get("sub") ?? "", { relation: P, subTabs: F, activeSubKey: re, subRelations: ie } = R(() => {
70586
+ let e = JSON.parse(N), t = UY(e), r = t.find((e) => e.key === ne) ?? t[0] ?? null;
70184
70587
  return {
70185
70588
  relation: HY(e, r),
70186
70589
  subTabs: t,
@@ -70194,7 +70597,7 @@ function ZY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
70194
70597
  };
70195
70598
  }, [
70196
70599
  N,
70197
- P,
70600
+ ne,
70198
70601
  n,
70199
70602
  g
70200
70603
  ]), { counts: ae } = YY(S && te ? ie : XY, i, m), oe = wo((e) => {
@@ -70202,7 +70605,7 @@ function ZY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
70202
70605
  let n = yY(t, 1);
70203
70606
  return n.set("sub", e), n;
70204
70607
  }, { replace: !0 });
70205
- }, [x]), se = g ? `unscoped:${JSON.stringify(BY(F))}` : VY(F, i), ce = F?.fallback ? VY(F.fallback, i) : "", le = R(() => g ? BY(F) : zY(F, i), [se]), ue = R(() => ce ? zY(F.fallback, i) : null, [ce]), de = KY(le), [fe, pe] = z({
70608
+ }, [x]), se = g ? `unscoped:${JSON.stringify(BY(P))}` : VY(P, i), ce = P?.fallback ? VY(P.fallback, i) : "", le = R(() => g ? BY(P) : zY(P, i), [se]), ue = R(() => ce ? zY(P.fallback, i) : null, [ce]), de = KY(le), [fe, pe] = z({
70206
70609
  module: "",
70207
70610
  ok: null
70208
70611
  });
@@ -70222,7 +70625,7 @@ function ZY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
70222
70625
  S,
70223
70626
  n
70224
70627
  ]);
70225
- let me = fe.module === n && fe.ok !== null, he = de && me && fe.ok === !1 && ue && !KY(ue), ge = !de || me && (fe.ok === !0 || !!he), _e = de && me && fe.ok === !1 && !he, ve = he ? ue : le, ye = typeof F?.scope == "string" ? F.scope.trim() : "", be = F?.queryParams && typeof F.queryParams == "object" ? JSON.stringify(F.queryParams) : "", { fetchData: xe, loading: Se } = gY({
70628
+ let me = fe.module === n && fe.ok !== null, he = de && me && fe.ok === !1 && ue && !KY(ue), ge = !de || me && (fe.ok === !0 || !!he), _e = de && me && fe.ok === !1 && !he, ve = he ? ue : le, ye = typeof P?.scope == "string" ? P.scope.trim() : "", be = P?.queryParams && typeof P.queryParams == "object" ? JSON.stringify(P.queryParams) : "", { fetchData: xe, loading: Se } = gY({
70226
70629
  filters: w,
70227
70630
  refreshTick: m,
70228
70631
  baseFetch: R(() => {
@@ -70356,7 +70759,7 @@ function ZY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
70356
70759
  /* @__PURE__ */ Q("section", {
70357
70760
  className: "rh-related__main",
70358
70761
  "aria-label": a ?? n,
70359
- children: [ne.length > 0 && /* @__PURE__ */ Z(rs, {
70762
+ children: [F.length > 0 && /* @__PURE__ */ Z(rs, {
70360
70763
  className: "rh-subtabs",
70361
70764
  "aria-label": `${a ?? n} sections`,
70362
70765
  value: re,
@@ -70364,7 +70767,7 @@ function ZY({ tabKey: e, active: t, module: n, relation: r, parentId: i, title:
70364
70767
  e !== re && oe(String(e));
70365
70768
  },
70366
70769
  style: { marginBottom: 12 },
70367
- options: ne.map((e) => {
70770
+ options: F.map((e) => {
70368
70771
  let t = ae[e.key];
70369
70772
  return {
70370
70773
  value: e.key,
@@ -71341,7 +71744,7 @@ function BX({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
71341
71744
  value: te[e.key],
71342
71745
  active: !!e.tab && k === e.tab,
71343
71746
  onClick: e.tab ? () => A(e.tab) : void 0
71344
- })), P = c.slice(0, d), F = c.slice(d), ne = F.some((e) => e.key === k), re = F.length ? F.map((e) => ({
71747
+ })), ne = c.slice(0, d), P = c.slice(d), F = P.some((e) => e.key === k), re = P.length ? P.map((e) => ({
71345
71748
  key: e.key,
71346
71749
  label: e.label
71347
71750
  })) : [{
@@ -71452,14 +71855,14 @@ function BX({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
71452
71855
  className: "rh-tabs",
71453
71856
  role: "tablist",
71454
71857
  "aria-label": "Sections",
71455
- children: [P.map((e) => /* @__PURE__ */ Z("button", {
71858
+ children: [ne.map((e) => /* @__PURE__ */ Z("button", {
71456
71859
  type: "button",
71457
71860
  role: "tab",
71458
71861
  "aria-selected": e.key === k,
71459
71862
  className: `rh-tabs__item${e.key === k ? " is-active" : ""}`,
71460
71863
  onClick: () => A(e.key),
71461
71864
  children: e.label
71462
- }, e.key)), (F.length > 0 || f) && /* @__PURE__ */ Z(Ho, {
71865
+ }, e.key)), (P.length > 0 || f) && /* @__PURE__ */ Z(Ho, {
71463
71866
  trigger: ["click"],
71464
71867
  menu: {
71465
71868
  items: re,
@@ -71467,9 +71870,9 @@ function BX({ moduleName: e, id: t, header: n, breadcrumb: r = null, headerActio
71467
71870
  },
71468
71871
  children: /* @__PURE__ */ Q("button", {
71469
71872
  type: "button",
71470
- className: `rh-tabs__item rh-tabs__more${ne ? " is-active" : ""}`,
71873
+ className: `rh-tabs__item rh-tabs__more${F ? " is-active" : ""}`,
71471
71874
  children: [
71472
- ne ? c.find((e) => e.key === k)?.label : "More",
71875
+ F ? c.find((e) => e.key === k)?.label : "More",
71473
71876
  " ",
71474
71877
  /* @__PURE__ */ Z($s, {})
71475
71878
  ]
@@ -71712,7 +72115,7 @@ function YX({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
71712
72115
  t.classList.add("cc-mdw--resizing"), window.addEventListener("pointermove", a), window.addEventListener("pointerup", o);
71713
72116
  }, te = (e) => {
71714
72117
  e.key === "ArrowLeft" ? (e.preventDefault(), A(O + KX)) : e.key === "ArrowRight" && (e.preventDefault(), A(O - KX));
71715
- }, M = a ? o ? "expanded" : "open" : "closed", N = C ? m : a || m, P = !C && a && h, F = !C && a && !!r, ne = {
72118
+ }, M = a ? o ? "expanded" : "open" : "closed", N = C ? m : a || m, ne = !C && a && h, P = !C && a && !!r, F = {
71716
72119
  "--cc-rail-w": `${v}px`,
71717
72120
  "--cc-rail-collapsed-w": `${y}px`,
71718
72121
  "--cc-compact-list-w": `${b}px`,
@@ -71725,11 +72128,11 @@ function YX({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
71725
72128
  `cc-mdw--${M}`,
71726
72129
  C ? "cc-mdw--window" : "cc-mdw--split",
71727
72130
  N ? "cc-mdw--rail-collapsed" : "",
71728
- P ? "cc-mdw--rail-overlay" : "",
72131
+ ne ? "cc-mdw--rail-overlay" : "",
71729
72132
  t == null ? "cc-mdw--no-rail" : "",
71730
72133
  x
71731
72134
  ].filter(Boolean).join(" "),
71732
- style: ne,
72135
+ style: F,
71733
72136
  "aria-label": S,
71734
72137
  children: [e && /* @__PURE__ */ Z("div", {
71735
72138
  className: "cc-mdw__top",
@@ -71741,7 +72144,7 @@ function YX({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
71741
72144
  className: "cc-mdw__rail",
71742
72145
  children: t
71743
72146
  }),
71744
- P && /* @__PURE__ */ Z("button", {
72147
+ ne && /* @__PURE__ */ Z("button", {
71745
72148
  type: "button",
71746
72149
  className: "cc-mdw__rail-backdrop",
71747
72150
  "aria-label": "Close filters",
@@ -71751,9 +72154,9 @@ function YX({ topBar: e = null, rail: t = null, list: n = null, compactList: r =
71751
72154
  className: "cc-mdw__list",
71752
72155
  "aria-hidden": M === "expanded" || void 0,
71753
72156
  children: [/* @__PURE__ */ Z("div", {
71754
- className: `cc-mdw__list-full${F ? " is-hidden" : ""}`,
72157
+ className: `cc-mdw__list-full${P ? " is-hidden" : ""}`,
71755
72158
  children: n
71756
- }), F && /* @__PURE__ */ Z("div", {
72159
+ }), P && /* @__PURE__ */ Z("div", {
71757
72160
  className: "cc-mdw__list-compact",
71758
72161
  children: r
71759
72162
  })]
@@ -72074,18 +72477,18 @@ function lZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
72074
72477
  });
72075
72478
  return t.observe(e), () => t.disconnect();
72076
72479
  }, [v, y]);
72077
- let N = v === "stacked" || v === "auto" && te === !0, [P, F] = Fl(), ne = P.get("tab") || ee, re = Lw(), [ie, ae] = z(0), [oe, se] = z(null), [ce, le] = z(() => /* @__PURE__ */ new Set([ne]));
72078
- ce.has(ne) || le(/* @__PURE__ */ new Set([...ce, ne]));
72480
+ let N = v === "stacked" || v === "auto" && te === !0, [ne, P] = Fl(), F = ne.get("tab") || ee, re = Lw(), [ie, ae] = z(0), [oe, se] = z(null), [ce, le] = z(() => /* @__PURE__ */ new Set([F]));
72481
+ ce.has(F) || le(/* @__PURE__ */ new Set([...ce, F]));
72079
72482
  let ue = R(() => aC(e)?.tabs ?? oZ, [e]), de = R(() => D.length ? [...ue, ...D] : ue, [ue, D]), fe = Fb(de, {
72080
72483
  id: t,
72081
72484
  moduleName: e,
72082
72485
  record: oe
72083
72486
  }), pe = (e) => e === "details" || !de.some((t) => t.key === e && typeof t.visibleWhen == "function") || fe.some((t) => t.key === e), me = (t) => D.find((e) => e.key === t)?.component ?? Iw(e, t), he = (e, t) => {
72084
- let n = new URLSearchParams(P);
72085
- n.set("tab", e), F(n, { replace: !0 }), _?.(e, t);
72487
+ let n = new URLSearchParams(ne);
72488
+ n.set("tab", e), P(n, { replace: !0 }), _?.(e, t);
72086
72489
  }, ge = (e) => {
72087
72490
  se(e), h?.(e);
72088
- }, _e = u + re, ve = () => ae((e) => e + 1), ye = ne === "details" || !pe(ne) || !me(ne), be = C === "below";
72491
+ }, _e = u + re, ve = () => ae((e) => e + 1), ye = F === "details" || !pe(F) || !me(F), be = C === "below";
72089
72492
  return /* @__PURE__ */ Q("div", {
72090
72493
  ref: O,
72091
72494
  className: `cc-detail${N ? " cc-detail--stacked" : ""}${be ? " cc-detail--tabs-below" : ""}`,
@@ -72129,7 +72532,7 @@ function lZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
72129
72532
  moduleName: e,
72130
72533
  customConfigName: n,
72131
72534
  id: t,
72132
- defaultTab: ne,
72535
+ defaultTab: F,
72133
72536
  onAction: g,
72134
72537
  onTabChange: he,
72135
72538
  onHeaderData: m,
@@ -72146,7 +72549,7 @@ function lZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
72146
72549
  }), A) : null,
72147
72550
  be && fe.length > 0 && /* @__PURE__ */ Z(cZ, {
72148
72551
  tabs: fe,
72149
- activeKey: ye ? "details" : ne,
72552
+ activeKey: ye ? "details" : F,
72150
72553
  onChange: (e) => he(e),
72151
72554
  max: w,
72152
72555
  alwaysShowMore: T,
@@ -72189,7 +72592,7 @@ function lZ({ moduleName: e, id: t, customConfigName: n, breadcrumb: r = null, s
72189
72592
  let r = pe(n) ? me(n) : null;
72190
72593
  return r ? /* @__PURE__ */ Z("div", {
72191
72594
  className: "cc-detail__tab",
72192
- hidden: n !== ne,
72595
+ hidden: n !== F,
72193
72596
  children: /* @__PURE__ */ Z(sZ, {
72194
72597
  component: r,
72195
72598
  id: t,
@@ -72456,7 +72859,7 @@ function AZ(e = {}) {
72456
72859
  if (T || d.size === 0 || g === CZ.DISABLED || b != null) return;
72457
72860
  let t = Math.min(_Z, gZ * 2 ** Math.min(y, 10)), n = Math.round(t * (.7 + u() * .6)), r = e ? 0 : n;
72458
72861
  y += 1, g !== CZ.UNAUTHORIZED && E(CZ.RECONNECTING), b = a(() => {
72459
- b = null, P();
72862
+ b = null, ne();
72460
72863
  }, r);
72461
72864
  }
72462
72865
  async function N() {
@@ -72477,7 +72880,7 @@ function AZ(e = {}) {
72477
72880
  if (!o) throw Error("ticket missing from response");
72478
72881
  return o;
72479
72882
  }
72480
- async function P() {
72883
+ async function ne() {
72481
72884
  if (T || g === CZ.DISABLED || d.size === 0 || _ && (_.readyState === 0 || _.readyState === 1)) return;
72482
72885
  let e = ++v;
72483
72886
  E(w ? CZ.RECONNECTING : CZ.CONNECTING);
@@ -72509,8 +72912,8 @@ function AZ(e = {}) {
72509
72912
  e > yZ && l() - C > yZ && (C = l(), D({ op: "ping" }));
72510
72913
  }, vZ);
72511
72914
  }
72512
- function F() {
72513
- T || g === CZ.DISABLED || _ || b != null || P();
72915
+ function P() {
72916
+ T || g === CZ.DISABLED || _ || b != null || ne();
72514
72917
  }
72515
72918
  return {
72516
72919
  subscribe(e, t) {
@@ -72520,7 +72923,7 @@ function AZ(e = {}) {
72520
72923
  return r || (r = /* @__PURE__ */ new Set(), d.set(n, r)), r.add(t), i && D({
72521
72924
  op: "subscribe",
72522
72925
  topics: [n]
72523
- }), F(), () => {
72926
+ }), P(), () => {
72524
72927
  let e = d.get(n);
72525
72928
  e && (e.delete(t), e.size === 0 && (d.delete(n), D({
72526
72929
  op: "unsubscribe",
@@ -72536,7 +72939,7 @@ function AZ(e = {}) {
72536
72939
  },
72537
72940
  getStatus: () => g,
72538
72941
  nudge() {
72539
- T || g === CZ.DISABLED || d.size === 0 || _ && _.readyState === 1 || (b != null && (o(b), b = null), y = 0, P());
72942
+ T || g === CZ.DISABLED || d.size === 0 || _ && _.readyState === 1 || (b != null && (o(b), b = null), y = 0, ne());
72540
72943
  },
72541
72944
  close() {
72542
72945
  T = !0, j(), te(), d.clear(), E(CZ.CLOSED);
@@ -72664,7 +73067,7 @@ function iQ() {
72664
73067
  }
72665
73068
  }
72666
73069
  function aQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, basePath: i, listTabs: a, recordParam: o = "id", routeRecordId: s, searchPlaceholder: c = "Search…", searchFields: l, createActions: u, relatedTopics: d = eQ, quickViewTitle: f = "Quick View", quickViewWidth: p = 420, renderQuickViewExtra: m, renderQuickView: h, renderFullView: g, renderFullViewStats: _, fullViewBreadcrumbLabel: v = "Details", listProps: y, topBarInFullView: b = !0, showTopBarSearch: x = !0, openRecordIn: S = "quick", quickViewMode: C = "docked", defaultRailCollapsed: w = !1, showRail: T = !0, listComponent: E, actionsInListToolbar: D = !1 }) {
72667
- let { tab: ee } = Pl(), O = Nl(), [k, A] = Fl(), j = Array.isArray(a) && a.length > 0, te = j ? a.find((e) => e.toLowerCase() === String(ee ?? "").toLowerCase()) : void 0, M = s || k.get(o) || "", N = S === "full", P = !!M && (N || k.get(ZZ) === $Z), F = C === "overlay", [ne, re] = z(w), ie = k.get(YZ) || "", ae = k.get(XZ) || "", oe = R(() => oY(ae), [ae]), [se, ce] = z(null), [le, ue] = z(0), de = Lw(), fe = JZ({ topics: [TZ(e)] }), pe = JZ({
73070
+ let { tab: ee } = Pl(), O = Nl(), [k, A] = Fl(), j = Array.isArray(a) && a.length > 0, te = j ? a.find((e) => e.toLowerCase() === String(ee ?? "").toLowerCase()) : void 0, M = s || k.get(o) || "", N = S === "full", ne = !!M && (N || k.get(ZZ) === $Z), P = C === "overlay", [F, re] = z(w), ie = k.get(YZ) || "", ae = k.get(XZ) || "", oe = R(() => oY(ae), [ae]), [se, ce] = z(null), [le, ue] = z(0), de = Lw(), fe = JZ({ topics: [TZ(e)] }), pe = JZ({
72668
73071
  topics: M ? [EZ(e, M)] : eQ,
72669
73072
  enabled: !!M
72670
73073
  }), me = JZ({
@@ -72821,7 +73224,7 @@ function aQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
72821
73224
  }) : null, Be = {
72822
73225
  id: M,
72823
73226
  listTab: te,
72824
- isFull: P,
73227
+ isFull: ne,
72825
73228
  recordTick: pe.tick + le + de,
72826
73229
  relatedTick: me.tick + le + de,
72827
73230
  onOpenFull: Ee,
@@ -72835,7 +73238,7 @@ function aQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
72835
73238
  ...e
72836
73239
  })
72837
73240
  }, Ve = null;
72838
- M && !P ? Ve = h ? h(Be) : /* @__PURE__ */ Z(PY, {
73241
+ M && !ne ? Ve = h ? h(Be) : /* @__PURE__ */ Z(PY, {
72839
73242
  moduleName: t,
72840
73243
  configName: n,
72841
73244
  id: M,
@@ -72844,7 +73247,7 @@ function aQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
72844
73247
  onOpenFull: Ee,
72845
73248
  onClose: ke,
72846
73249
  extra: m ? m(Be) : null
72847
- }, M) : M && P && (Ve = g ? g(Be) : /* @__PURE__ */ Z(lZ, {
73250
+ }, M) : M && ne && (Ve = g ? g(Be) : /* @__PURE__ */ Z(lZ, {
72848
73251
  moduleName: t,
72849
73252
  customConfigName: n,
72850
73253
  id: M,
@@ -72872,11 +73275,11 @@ function aQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
72872
73275
  minDetailWidth: 340,
72873
73276
  maxDetailWidthRatio: .6,
72874
73277
  widthStorageKey: `cc-quickview-width:${e}`,
72875
- detailOpen: F ? P : !!M,
72876
- detailExpanded: P,
72877
- onCloseDetail: P && !N ? Oe : ke,
72878
- railCollapsed: ne,
72879
- topBar: P && !b || !P && D ? null : /* @__PURE__ */ Z(ZX, {
73278
+ detailOpen: P ? ne : !!M,
73279
+ detailExpanded: ne,
73280
+ onCloseDetail: ne && !N ? Oe : ke,
73281
+ railCollapsed: F,
73282
+ topBar: ne && !b || !ne && D ? null : /* @__PURE__ */ Z(ZX, {
72880
73283
  title: r,
72881
73284
  searchValue: ie,
72882
73285
  onSearch: Ae,
@@ -72899,25 +73302,25 @@ function aQ({ listModule: e, detailModule: t, detailConfigName: n, title: r, bas
72899
73302
  scope: te ?? "",
72900
73303
  value: oe,
72901
73304
  onChange: je,
72902
- collapsed: ne,
73305
+ collapsed: F,
72903
73306
  onExpand: () => re(!1),
72904
73307
  onCollapse: () => re(!0)
72905
73308
  }) : null,
72906
- list: P ? null : /* @__PURE__ */ Z(xY, {
73309
+ list: ne ? null : /* @__PURE__ */ Z(xY, {
72907
73310
  component: E,
72908
73311
  listProps: Re,
72909
73312
  loading: _e,
72910
73313
  selectedRecordId: M || void 0,
72911
73314
  onOpenRecord: Te
72912
73315
  }),
72913
- detail: F && !P ? null : Ve
73316
+ detail: P && !ne ? null : Ve
72914
73317
  }),
72915
- F && /* @__PURE__ */ Z(SY, {
72916
- open: !!M && !P,
73318
+ P && /* @__PURE__ */ Z(SY, {
73319
+ open: !!M && !ne,
72917
73320
  onClose: ke,
72918
73321
  width: p,
72919
73322
  ariaLabel: f,
72920
- children: P ? null : Ve
73323
+ children: ne ? null : Ve
72921
73324
  }),
72922
73325
  /* @__PURE__ */ Z(pZ, {
72923
73326
  open: !!se,
@@ -72994,22 +73397,22 @@ function lQ({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
72994
73397
  onClose: () => w(null)
72995
73398
  }) : null;
72996
73399
  if (!e?.fetchData) return null;
72997
- let P = p === "overlay", F = !!N && !P, ne = typeof s == "function" ? s({
73400
+ let ne = p === "overlay", P = !!N && !ne, F = typeof s == "function" ? s({
72998
73401
  total: T.total,
72999
73402
  tabs: T.tabs,
73000
73403
  durationMs: T.durationMs,
73001
73404
  loading: k
73002
73405
  }) : null;
73003
73406
  return /* @__PURE__ */ Q("div", {
73004
- className: `cc-search-ws${F ? " cc-search-ws--quick" : ""}${_ ? " cc-search-ws--rail-collapsed" : ""}${g ? "" : " cc-search-ws--no-rail"}${ne ? " cc-search-ws--head" : ""}${f ? " cc-search-ws--fill" : ""}`,
73407
+ className: `cc-search-ws${P ? " cc-search-ws--quick" : ""}${_ ? " cc-search-ws--rail-collapsed" : ""}${g ? "" : " cc-search-ws--no-rail"}${F ? " cc-search-ws--head" : ""}${f ? " cc-search-ws--fill" : ""}`,
73005
73408
  style: {
73006
73409
  "--cc-search-rail-w": `${_ ? h : a}px`,
73007
73410
  "--cc-search-quick-w": `${i}px`
73008
73411
  },
73009
73412
  children: [
73010
- ne && /* @__PURE__ */ Z("div", {
73413
+ F && /* @__PURE__ */ Z("div", {
73011
73414
  className: "cc-search-ws__head",
73012
- children: ne
73415
+ children: F
73013
73416
  }),
73014
73417
  g && /* @__PURE__ */ Z("div", {
73015
73418
  className: "cc-search-ws__rail",
@@ -73039,11 +73442,11 @@ function lQ({ listProps: e, moduleName: t, filterModule: n, renderQuickView: r,
73039
73442
  })
73040
73443
  })]
73041
73444
  }),
73042
- F && /* @__PURE__ */ Z("div", {
73445
+ P && /* @__PURE__ */ Z("div", {
73043
73446
  className: "cc-search-ws__quick",
73044
73447
  children: N
73045
73448
  }),
73046
- P && /* @__PURE__ */ Z(SY, {
73449
+ ne && /* @__PURE__ */ Z(SY, {
73047
73450
  open: !!N,
73048
73451
  onClose: () => w(null),
73049
73452
  width: i,
@@ -73375,9 +73778,9 @@ async function OQ(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a
73375
73778
  }
73376
73779
  //#endregion
73377
73780
  //#region src/index.js
73378
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-25T11:31:09.689Z");
73781
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-26T14:09:32.330Z");
73379
73782
  var kQ = sK, AQ = lN(tq), jQ = lN(rq), MQ = lN(vq), NQ = lN(Aq), PQ = lN(zq), FQ = lN(Hq), IQ = lN(Gq), LQ = lN(Jq), RQ = lN(Xq), zQ = lN(lJ), BQ = lN(dJ);
73380
73783
  //#endregion
73381
- export { Np as ACTION_RULE_SURFACES, A as ADMIN_API_URL, d as ADMIN_APP_ID, k as APP_ID, s as AUTH_URL, lb as ActivityNotesCard, Qy as ActivityTab, zG as AddBatchCandidatePopup, Fy as AddFormV1, pZ as AddRecordDrawer, sK as AdminDashboard, BB as AdminDashboardContent, kQ as AdminPage, Iy as AppAlert, ea as AppButton, TM as AppShell, bk as ApprovalActionBar, ub as AssigneeAvatars, _M as AuthGuard, OC as BILLING_STATUS_FLOW, rO as BOOLEAN_API_KEYS, HE as BOOLEAN_PARSEABLE_API_KEYS, db as BULK_UPLOAD_DEFAULT_ACCEPT, fb as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Ea as Breadcrumb, MQ as BulkUploadPage, bb as BulkUploadPanel, n as CANDIDATES_URL, Wk as CONTRACT_C2C, Uk as CONTRACT_W2, O as CORE_URL, ne as CURRENCY_OPTIONS, te as CURRENCY_SYMBOLS, eu as CalendarCard, HJ as CandidateVersionGate, UX as CombinedDetailViewPage, UX as DETAILVIEWPAGE, MX as CombinedHomePage, MX as HOMEPAGE, aZ as CompactRecordList, WB as CoreThemeAdminApp, UB as CoreThemeAdminRoutes, XX as CreateActionButton, id as CustomPagination, HO as DEFAULT_HOURS_POLICY, $D as DEFAULT_RESULTS_VIEW, Ct as DETAIL_VIEW_MODE_OPTIONS, xt as DETAIL_VIEW_MODE_VALUES, Tt as DETAIL_VIEW_POPUP_PATH, fk as DayLogModal, Nb as DescriptionBlock, Nw as DetailHeaderCard, Bw as DetailViewPage, aH as DetailViewPopup, DS as DetailViewV1, Xa as DocumentViewer, sf as DynamicCards, wU as DynamicPopup, WG as DynamicPopupRoute, iu as DynamicTabs, nE as EditFormV1, CD as FIELD_TYPE_REGISTRY, Fk as FINANCE_APPROVAL_CONFIG, Ok as FINANCE_TYPE_CFO, Dk as FINANCE_TYPE_ONBOARDING_MANAGER, jk as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, kk as FINANCE_TYPE_ONLY_FINANCE, Ek as FINANCE_TYPE_SUBMISSION_MANAGER, Ak as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, mj as FileListCard, lY as FilterRail, BA as FinanceApprovalPanel, lw as FinanceAvatar, pw as FinanceBadge, Sk as FinanceDayCell, TU as FinanceDetailsBody, YG as FinanceDetailsPopup, XG as FinanceDetailsRoute, tw as FinanceDivider, uw as FinanceEmployeeCell, QC as FinanceEmptyState, nw as FinanceEquation, ow as FinanceHistoryTimeline, ZC as FinanceHoursGrid, XC as FinanceKpiRow, ew as FinanceLine, VO as FinanceListToolbar, mw as FinanceMarginBadge, fw as FinanceMoneyCell, _w as FinanceRecordsTable, hw as FinanceRowChevron, $C as FinanceSection, YC as FinanceStatusPill, dw as FinanceTextCell, wk as FinanceTimesheetAnalysis, rw as FinanceWorkflowSteps, c as GATEWAY_URL, sB as GLOBAL_DEFAULT_FIELDS, UO as HOURS_MESSAGES, Wj as Header, ff as HierarchyUserFilter, IX as HubOverview, i as JOBS_URL, AQ as LegacyAdminPage, ev as ListView, CY as ListWithQuickView, BQ as LmsHomePage, zQ as LmsTestForm, NM as Login, FY as MATCH_NOTHING, AV as MailPopup, FQ as ManageModules, IQ as ManageSubmodules, YX as MasterDetailWorkspace, mE as ModuleRowActions, aQ as ModuleWorkspace, yk as NotesPanel, cb as NotesTab, WD as OPEN_AS_OPTIONS, QY as PAGE_ICONS, kC as PAYROLL_STATUS_FLOW, iB as PLATFORM_SCOPES, AG as POPUP_CONFIGS, r as PYOPS_URL, uZ as PanelBreadcrumb, cZ as PanelTabs, xE as ParamCardView, DE as ParamListView, tk as PeriodBadgeTag, _B as PlatformSection, nH as PreviewPopup, cN as ProjectSelect, vk as ProofUploadPreview, hk as QuickLogBar, pk as QuickLogSelectionBar, jX as QuickViewCard, xX as QuickViewModuleActions, SY as QuickViewPopover, UJ as RAIL_KIND, CZ as REALTIME_STATUS, QD as RESULTS_VIEW_OPTIONS, EQ as RealtimeProvider, lZ as RecordDetailPanel, BX as RecordHub, PY as RecordQuickView, fZ as RecordSidePanel, dS as RecordUnavailable, oK as RegionBanner, mk as RejectionReasonModal, ZY as RelatedModuleTab, o as SUBMISSIONS_URL, MO as SearchBuilderV1, lQ as SearchResultsWorkspace, dQ as SearchSummaryBanner, pM as Sidebar, FX as StatStrip, PO as StatusBadge, ek as StatusBadgeTag, jQ as StickyNotesFullPage, IO as StylishDynamicTabs, RO as TemplateEditor, NQ as TestForm, RQ as TestingHomePage, Wy as TimelineGroups, lk as TimesheetDayCell, _i as TipTapEditor, aK as UserForm, JG as VendorShareDrawer, mh as ViewSummaryWidget, dH as WizardPopup, vQ as WorkspaceAppFrame, xY as WorkspaceListView, ZX as WorkspaceTopBar, y as ZINNEXT_URL, LQ as ZinnextTableView, PQ as ZinnextTestForm, Ip as actionRuleConditionMatches, fe as appNow, mn as applyIntegrationStatus, Ru as approveSubmission, _b as buildAcceptAttr, lO as buildBooleanRequest, UC as buildCsv, LC as buildDailyRows, sk as buildDayGradient, yA as buildRateHistoryEntries, zY as buildRelationConditions, gO as buildSearchRequest, BC as buildWeeklyRollup, wZ as canonicalModule, _ as clearSelectedProject, fa as colors, lA as computeFinance, YO as computeHoursPolicy, VC as computeMarginBand, Cn as conditionMatches, t as configureCoreTheme, Xt as configuredFieldLabel, tY as countActiveRows, RJ as createAllWorkflowsListFetcher, MJ as createMergedListFetcher, TJ as createModuleListFetchAdapter, AZ as createRealtimeClient, NJ as createWorkflowStageListFetcher, ae as currencyCode, ce as currencyPrefix, M as currencySymbol, qz as deactivateRegion, _J as defaultMergeRow, dn as deleteIntegrationConfig, ot as deleteModuleDocument, IC as deriveDayStats, ZO as describeCapacity, eZ as displayText, qC as downloadCsv, $J as draftToRows, I as evaluateShowIfWith, ve as extractDocumentIds, S as fetchJsonWithAuth, DQ as fetchRelatedRecords, OQ as fetchScopedRecords, rA as findEmployerRow, tA as flattenGroups, re as formatAmount, $t as formatApp, We as formatAppDateTime, gb as formatFileSize, bA as formatFinanceMoney, yC as formatHours, le as formatMoney, xC as formatPercent, N as formatRate, TQ as formatSearchCount, wQ as formatSearchDuration, Ln as generateModuleId, Cr as getActivity, zJ as getAllWorkflowsModuleList, Qe as getAppTimeZone, TC as getApprovalDate, ke as getBgcIntegrationConfig, Ie as getBgcIntegrationSummary, AC as getBillingActionStates, kD as getBooleanEligibleTypes, Tf as getCandidateVersions, co as getConfiguredFilterValues, f as getCurrentRoleName, vt as getDetailDisplayDefaults, GC as getFieldLabel, TD as getFieldType, hb as getFileExtension, Bk as getFinanceApprovalConfig, nj as getFormGroupsRaw, cB as getGlobalAiServices, aB as getGlobalDefaults, Pe as getIntegrationConfig, mt as getIntegrationConfigs, bt as getIntegrationSummary, ed as getModuleConfig, Xr as getModuleDataDetail, no as getModuleDataListWithFilters, di as getModuleDataRecordById, lt as getModuleDocuments, yW as getModuleRecordById, jC as getPayrollActionStates, nd as getPeriodBadgeConfig, eB as getRegionDetailDefaults, VD as getSearchPopup, b as getSelectedProject, D as getStoredToken, p as getStoredUser, m as getUserRoles, zu as getVMSApprove, KC as getValueStyle, BJ as getWorkflowStageModuleList, MC as getWorkflowSteps, Yz as grantPlatformAccess, Zz as hasPlatformAccess, wC as humanizeEvent, Ev as i, WC as indexFieldConfig, SC as initialsOf, KE as insertTokenAtCursor, C as invalidateGetCache, ED as isBooleanEligible, WE as isBooleanParsable, x as isTester, Jz as listPlatformAccess, $z as listPlatformAudit, Qz as listPlatformUsers, rB as listRegionRoles, nB as listRegionUsers, Gz as listRegions, ze as loadDetailDefaults, h as logout, yO as makeSearchFetcher, Om as mapListResponse, Hk as marginIncludesReferral, cA as matchLocationTax, TZ as moduleTopic, fT as n, aA as normalizeContract, tt as normalizeDetailViewMode, cX as normalizePageLayout, oY as parseRows, rZ as pickCompactFields, oe as prepareCurrencyConfig, jY as quickViewFields, AY as quickViewValueText, xb as r, ie as rateUnitLabel, F as rateUnitShort, JD as readActionButtons, vY as readPageParam, XO as reconcileHours, iZ as recordIdOf, EZ as recordTopic, Wz as regionPath, wD as registerFieldType, BD as registerSearchPopup, Vu as rejectSubmission, VY as relationSignature, ji as requiredWhenActive, ia as requiredWhenRule, Yy as resolveActivityMeta, uA as resolveAndCompute, P as resolveCurrency, qO as resolveDayKind, pj as resolveEngagementFinance, sA as resolveFinanceInputs, hJ as resolveMergeKey, hJ as resolveMergedListKey, KD as resolveOpenAs, sX as resolvePageButtons, $Y as resolvePageIcon, rX as resolvePageValue, bX as resolveQuickViewActions, Vk as resolveRejectionReason, nO as resolveResultsSearchPlaceholder, tO as resolveResultsView, rj as resolveSubmissionFinance, Xz as revokePlatformAccess, we as rollbackModuleDocuments, nY as rowsSignature, eY as rowsToDraft, Fp as ruleAppliesToSurface, Vp as rulePrimaryAction, ue as runDetailViewOpen, cE as runModuleAction, Wn as saveBgcIntegrationConfig, lB as saveGlobalAiServices, oB as saveGlobalDefaults, st as saveIntegrationConfig, Kz as saveRegion, tB as saveRegionDetailDefaults, JY as scopeConditionsFor, CQ as searchCriteriaParts, aY as serializeRows, ee as setSelectedProject, En as showIfConditions, PJ as stageCountKey, qY as supportsAnyOf, PM as t, Ge as testIntegrationConnection, Ve as toApp, j as toNumber, ZJ as toRailFields, OZ as topicsForEvent, rt as tzLabel, Kn as tzShortLabel, HD as unregisterSearchPopup, BY as unscopedConditions, xe as uploadModuleDocuments, cp as useDropdownFields, hh as useDropdownValues, _j as useEditForm, lp as useFieldConfig, up as useFilterFields, bY as useInPlaceRecordLinks, JZ as useLiveRefresh, yp as useMenuPermission, iE as useModuleActions, UZ as useRealtimeClient, qZ as useRealtimeReconnect, WZ as useRealtimeStatus, KZ as useRealtimeTopics, dZ as useRecordFields, RX as useRecordHub, Lw as useRecordRefresh, YY as useRelatedCounts, gj as useTabRows, gY as useWorkspaceList, GE as validateBooleanQuery, vb as validateBulkFile, v as withAdminAppId, a as withAppId, lN as withAuthGuard, yY as withPageParam, HY as withSubTab };
73784
+ export { Np as ACTION_RULE_SURFACES, A as ADMIN_API_URL, d as ADMIN_APP_ID, k as APP_ID, s as AUTH_URL, lb as ActivityNotesCard, Qy as ActivityTab, zG as AddBatchCandidatePopup, Fy as AddFormV1, pZ as AddRecordDrawer, sK as AdminDashboard, BB as AdminDashboardContent, kQ as AdminPage, Iy as AppAlert, ea as AppButton, TM as AppShell, bk as ApprovalActionBar, ub as AssigneeAvatars, _M as AuthGuard, OC as BILLING_STATUS_FLOW, rO as BOOLEAN_API_KEYS, HE as BOOLEAN_PARSEABLE_API_KEYS, db as BULK_UPLOAD_DEFAULT_ACCEPT, fb as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Ea as Breadcrumb, MQ as BulkUploadPage, bb as BulkUploadPanel, n as CANDIDATES_URL, Wk as CONTRACT_C2C, Uk as CONTRACT_W2, O as CORE_URL, F as CURRENCY_OPTIONS, te as CURRENCY_SYMBOLS, eu as CalendarCard, HJ as CandidateVersionGate, UX as CombinedDetailViewPage, UX as DETAILVIEWPAGE, MX as CombinedHomePage, MX as HOMEPAGE, aZ as CompactRecordList, WB as CoreThemeAdminApp, UB as CoreThemeAdminRoutes, XX as CreateActionButton, id as CustomPagination, HO as DEFAULT_HOURS_POLICY, $D as DEFAULT_RESULTS_VIEW, Ct as DETAIL_VIEW_MODE_OPTIONS, xt as DETAIL_VIEW_MODE_VALUES, Tt as DETAIL_VIEW_POPUP_PATH, fk as DayLogModal, Nb as DescriptionBlock, Nw as DetailHeaderCard, Bw as DetailViewPage, aH as DetailViewPopup, DS as DetailViewV1, Xa as DocumentViewer, sf as DynamicCards, wU as DynamicPopup, WG as DynamicPopupRoute, iu as DynamicTabs, nE as EditFormV1, CD as FIELD_TYPE_REGISTRY, Fk as FINANCE_APPROVAL_CONFIG, Ok as FINANCE_TYPE_CFO, Dk as FINANCE_TYPE_ONBOARDING_MANAGER, jk as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, kk as FINANCE_TYPE_ONLY_FINANCE, Ek as FINANCE_TYPE_SUBMISSION_MANAGER, Ak as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, mj as FileListCard, lY as FilterRail, BA as FinanceApprovalPanel, lw as FinanceAvatar, pw as FinanceBadge, Sk as FinanceDayCell, TU as FinanceDetailsBody, YG as FinanceDetailsPopup, XG as FinanceDetailsRoute, tw as FinanceDivider, uw as FinanceEmployeeCell, QC as FinanceEmptyState, nw as FinanceEquation, ow as FinanceHistoryTimeline, ZC as FinanceHoursGrid, XC as FinanceKpiRow, ew as FinanceLine, VO as FinanceListToolbar, mw as FinanceMarginBadge, fw as FinanceMoneyCell, _w as FinanceRecordsTable, hw as FinanceRowChevron, $C as FinanceSection, YC as FinanceStatusPill, dw as FinanceTextCell, wk as FinanceTimesheetAnalysis, rw as FinanceWorkflowSteps, c as GATEWAY_URL, sB as GLOBAL_DEFAULT_FIELDS, UO as HOURS_MESSAGES, Wj as Header, ff as HierarchyUserFilter, IX as HubOverview, i as JOBS_URL, AQ as LegacyAdminPage, ev as ListView, CY as ListWithQuickView, BQ as LmsHomePage, zQ as LmsTestForm, NM as Login, FY as MATCH_NOTHING, AV as MailPopup, FQ as ManageModules, IQ as ManageSubmodules, YX as MasterDetailWorkspace, mE as ModuleRowActions, aQ as ModuleWorkspace, yk as NotesPanel, cb as NotesTab, WD as OPEN_AS_OPTIONS, QY as PAGE_ICONS, kC as PAYROLL_STATUS_FLOW, iB as PLATFORM_SCOPES, AG as POPUP_CONFIGS, r as PYOPS_URL, uZ as PanelBreadcrumb, cZ as PanelTabs, xE as ParamCardView, DE as ParamListView, tk as PeriodBadgeTag, _B as PlatformSection, nH as PreviewPopup, cN as ProjectSelect, vk as ProofUploadPreview, hk as QuickLogBar, pk as QuickLogSelectionBar, jX as QuickViewCard, xX as QuickViewModuleActions, SY as QuickViewPopover, UJ as RAIL_KIND, CZ as REALTIME_STATUS, QD as RESULTS_VIEW_OPTIONS, EQ as RealtimeProvider, lZ as RecordDetailPanel, BX as RecordHub, PY as RecordQuickView, fZ as RecordSidePanel, dS as RecordUnavailable, oK as RegionBanner, mk as RejectionReasonModal, ZY as RelatedModuleTab, o as SUBMISSIONS_URL, MO as SearchBuilderV1, lQ as SearchResultsWorkspace, dQ as SearchSummaryBanner, pM as Sidebar, FX as StatStrip, PO as StatusBadge, ek as StatusBadgeTag, jQ as StickyNotesFullPage, IO as StylishDynamicTabs, RO as TemplateEditor, NQ as TestForm, RQ as TestingHomePage, Wy as TimelineGroups, lk as TimesheetDayCell, _i as TipTapEditor, aK as UserForm, JG as VendorShareDrawer, mh as ViewSummaryWidget, dH as WizardPopup, vQ as WorkspaceAppFrame, xY as WorkspaceListView, ZX as WorkspaceTopBar, y as ZINNEXT_URL, LQ as ZinnextTableView, PQ as ZinnextTestForm, Ip as actionRuleConditionMatches, fe as appNow, mn as applyIntegrationStatus, Ru as approveSubmission, _b as buildAcceptAttr, lO as buildBooleanRequest, UC as buildCsv, LC as buildDailyRows, sk as buildDayGradient, yA as buildRateHistoryEntries, zY as buildRelationConditions, gO as buildSearchRequest, BC as buildWeeklyRollup, wZ as canonicalModule, _ as clearSelectedProject, fa as colors, lA as computeFinance, YO as computeHoursPolicy, VC as computeMarginBand, Cn as conditionMatches, t as configureCoreTheme, Xt as configuredFieldLabel, tY as countActiveRows, RJ as createAllWorkflowsListFetcher, MJ as createMergedListFetcher, TJ as createModuleListFetchAdapter, AZ as createRealtimeClient, NJ as createWorkflowStageListFetcher, ae as currencyCode, ce as currencyPrefix, M as currencySymbol, qz as deactivateRegion, _J as defaultMergeRow, dn as deleteIntegrationConfig, ot as deleteModuleDocument, IC as deriveDayStats, ZO as describeCapacity, eZ as displayText, qC as downloadCsv, $J as draftToRows, I as evaluateShowIfWith, ve as extractDocumentIds, S as fetchJsonWithAuth, DQ as fetchRelatedRecords, OQ as fetchScopedRecords, rA as findEmployerRow, tA as flattenGroups, re as formatAmount, $t as formatApp, We as formatAppDateTime, gb as formatFileSize, bA as formatFinanceMoney, yC as formatHours, le as formatMoney, xC as formatPercent, N as formatRate, TQ as formatSearchCount, wQ as formatSearchDuration, Ln as generateModuleId, Cr as getActivity, zJ as getAllWorkflowsModuleList, Qe as getAppTimeZone, TC as getApprovalDate, ke as getBgcIntegrationConfig, Ie as getBgcIntegrationSummary, AC as getBillingActionStates, kD as getBooleanEligibleTypes, Tf as getCandidateVersions, co as getConfiguredFilterValues, f as getCurrentRoleName, vt as getDetailDisplayDefaults, GC as getFieldLabel, TD as getFieldType, hb as getFileExtension, Bk as getFinanceApprovalConfig, nj as getFormGroupsRaw, cB as getGlobalAiServices, aB as getGlobalDefaults, Pe as getIntegrationConfig, mt as getIntegrationConfigs, bt as getIntegrationSummary, ed as getModuleConfig, Xr as getModuleDataDetail, no as getModuleDataListWithFilters, di as getModuleDataRecordById, lt as getModuleDocuments, yW as getModuleRecordById, jC as getPayrollActionStates, nd as getPeriodBadgeConfig, eB as getRegionDetailDefaults, VD as getSearchPopup, b as getSelectedProject, D as getStoredToken, p as getStoredUser, m as getUserRoles, zu as getVMSApprove, KC as getValueStyle, BJ as getWorkflowStageModuleList, MC as getWorkflowSteps, Yz as grantPlatformAccess, Zz as hasPlatformAccess, wC as humanizeEvent, Ev as i, WC as indexFieldConfig, SC as initialsOf, KE as insertTokenAtCursor, C as invalidateGetCache, ED as isBooleanEligible, WE as isBooleanParsable, x as isTester, Jz as listPlatformAccess, $z as listPlatformAudit, Qz as listPlatformUsers, rB as listRegionRoles, nB as listRegionUsers, Gz as listRegions, ze as loadDetailDefaults, h as logout, yO as makeSearchFetcher, Om as mapListResponse, Hk as marginIncludesReferral, cA as matchLocationTax, TZ as moduleTopic, fT as n, aA as normalizeContract, tt as normalizeDetailViewMode, cX as normalizePageLayout, oY as parseRows, rZ as pickCompactFields, oe as prepareCurrencyConfig, jY as quickViewFields, AY as quickViewValueText, xb as r, ie as rateUnitLabel, P as rateUnitShort, JD as readActionButtons, vY as readPageParam, XO as reconcileHours, iZ as recordIdOf, EZ as recordTopic, Wz as regionPath, wD as registerFieldType, BD as registerSearchPopup, Vu as rejectSubmission, VY as relationSignature, ji as requiredWhenActive, ia as requiredWhenRule, Yy as resolveActivityMeta, uA as resolveAndCompute, ne as resolveCurrency, qO as resolveDayKind, pj as resolveEngagementFinance, sA as resolveFinanceInputs, hJ as resolveMergeKey, hJ as resolveMergedListKey, KD as resolveOpenAs, sX as resolvePageButtons, $Y as resolvePageIcon, rX as resolvePageValue, bX as resolveQuickViewActions, Vk as resolveRejectionReason, nO as resolveResultsSearchPlaceholder, tO as resolveResultsView, rj as resolveSubmissionFinance, Xz as revokePlatformAccess, we as rollbackModuleDocuments, nY as rowsSignature, eY as rowsToDraft, Fp as ruleAppliesToSurface, Vp as rulePrimaryAction, ue as runDetailViewOpen, cE as runModuleAction, Wn as saveBgcIntegrationConfig, lB as saveGlobalAiServices, oB as saveGlobalDefaults, st as saveIntegrationConfig, Kz as saveRegion, tB as saveRegionDetailDefaults, JY as scopeConditionsFor, CQ as searchCriteriaParts, aY as serializeRows, ee as setSelectedProject, En as showIfConditions, PJ as stageCountKey, qY as supportsAnyOf, PM as t, Ge as testIntegrationConnection, Ve as toApp, j as toNumber, ZJ as toRailFields, OZ as topicsForEvent, rt as tzLabel, Kn as tzShortLabel, HD as unregisterSearchPopup, BY as unscopedConditions, xe as uploadModuleDocuments, cp as useDropdownFields, hh as useDropdownValues, _j as useEditForm, lp as useFieldConfig, up as useFilterFields, bY as useInPlaceRecordLinks, JZ as useLiveRefresh, yp as useMenuPermission, iE as useModuleActions, UZ as useRealtimeClient, qZ as useRealtimeReconnect, WZ as useRealtimeStatus, KZ as useRealtimeTopics, dZ as useRecordFields, RX as useRecordHub, Lw as useRecordRefresh, YY as useRelatedCounts, gj as useTabRows, gY as useWorkspaceList, GE as validateBooleanQuery, vb as validateBulkFile, v as withAdminAppId, a as withAppId, lN as withAuthGuard, yY as withPageParam, HY as withSubTab };
73382
73785
 
73383
73786
  //# sourceMappingURL=index.js.map