@realtek/core-theme-live 0.0.416 → 0.0.417

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
@@ -53541,40 +53541,83 @@ function rz(e) {
53541
53541
  })]
53542
53542
  });
53543
53543
  }
53544
- function iz({ field: e, options: t, onSearch: n, value: r, onChange: i, popupContext: a }) {
53545
- let o = QR(t), s = e.optionLayout, c = new Map(o.map((e) => [String(e?.value ?? ""), e])), l = e.multiSelect || e.multiple || e.mode === "multiple" ? "multiple" : e.mode;
53546
- async function u(t, n) {
53547
- let r = Array.isArray(t) ? Array.isArray(n) ? n : t.map((e) => c.get(String(e ?? ""))).filter(Boolean) : n ?? c.get(String(t ?? ""));
53544
+ var iz = 3;
53545
+ function az({ field: e, options: t, onSearch: n, searchLoading: r = !1, value: i, onChange: a, popupContext: o }) {
53546
+ let s = QR(t), c = e.optionLayout, l = new Map(s.map((e) => [String(e?.value ?? ""), e])), u = e.multiSelect || e.multiple || e.mode === "multiple" ? "multiple" : e.mode, d = u === "multiple" || u === "tags", f = e.searchMinLength ?? iz, [p, m] = L(""), h = ra(null), g = ra(!1);
53547
+ async function _(t, n) {
53548
+ let r = Array.isArray(t) ? Array.isArray(n) ? n : t.map((e) => l.get(String(e ?? ""))).filter(Boolean) : n ?? l.get(String(t ?? ""));
53548
53549
  (typeof e.onSelectGuard != "function" || await e.onSelectGuard({
53549
53550
  value: t,
53550
53551
  option: r,
53551
53552
  field: e,
53552
- popupContext: a,
53553
+ popupContext: o,
53553
53554
  confirm: Sa.confirm
53554
- }) !== !1) && i?.(t);
53555
+ }) !== !1) && a?.(t);
53555
53556
  }
53556
- return /* @__PURE__ */ Y(H, {
53557
- mode: l,
53557
+ function v(e) {
53558
+ m(e), g.current = !1, n?.(e);
53559
+ }
53560
+ function y(e) {
53561
+ e.key === "Enter" && r && n && !d && p.trim() && (g.current = !0, e.preventDefault());
53562
+ }
53563
+ F(() => {
53564
+ if (r || !g.current) return;
53565
+ g.current = !1;
53566
+ let e = s.find((e) => e && !e.disabled);
53567
+ e && Promise.resolve(_(e.value, e)).finally(() => h.current?.blur());
53568
+ }, [r]);
53569
+ let b = !!n && p.trim().length > 0 && p.trim().length < f, x = /* @__PURE__ */ X("div", {
53570
+ className: "dynamic-popup__search-status",
53571
+ role: "status",
53572
+ "aria-live": "polite",
53573
+ style: {
53574
+ display: "flex",
53575
+ alignItems: "center",
53576
+ gap: 8,
53577
+ padding: "10px 12px",
53578
+ color: "#8c8c8c"
53579
+ },
53580
+ children: [/* @__PURE__ */ Y(Ma, { size: "small" }), /* @__PURE__ */ Y("span", { children: p.trim().length >= f ? `Searching "${p.trim()}"…` : "Loading…" })]
53581
+ }), S = e.notFoundContent ?? null;
53582
+ return n && r ? S = x : n && S === null && p.trim().length >= f && (S = /* @__PURE__ */ Y("div", {
53583
+ style: {
53584
+ padding: "10px 12px",
53585
+ color: "#8c8c8c"
53586
+ },
53587
+ children: "No matches found"
53588
+ })), /* @__PURE__ */ Y(H, {
53589
+ ref: h,
53590
+ mode: u,
53558
53591
  showSearch: !0,
53559
53592
  filterOption: !1,
53560
- notFoundContent: e.notFoundContent ?? null,
53561
- value: r,
53562
- onChange: u,
53563
- options: o,
53593
+ notFoundContent: S,
53594
+ loading: !!n && r,
53595
+ value: i,
53596
+ onChange: _,
53597
+ options: s,
53564
53598
  placeholder: e.placeholder,
53565
- onSearch: n,
53566
- className: `dynamic-popup__field-select${s ? " dynamic-popup__field-select--rich" : ""}`,
53567
- popupClassName: s ? "dynamic-popup__option-dropdown" : void 0,
53568
- listHeight: s ? 340 : void 0,
53599
+ onSearch: n ? v : void 0,
53600
+ onKeyDown: y,
53601
+ popupRender: n ? (e) => /* @__PURE__ */ X(J, { children: [b && !r ? /* @__PURE__ */ Y("div", {
53602
+ style: {
53603
+ padding: "6px 12px",
53604
+ fontSize: 12,
53605
+ color: "#8c8c8c"
53606
+ },
53607
+ children: `Type at least ${f} characters to search — showing recent`
53608
+ }) : null, r ? x : e] }) : void 0,
53609
+ className: `dynamic-popup__field-select${c ? " dynamic-popup__field-select--rich" : ""}`,
53610
+ popupClassName: c ? "dynamic-popup__option-dropdown" : void 0,
53611
+ listHeight: c ? 340 : void 0,
53569
53612
  optionLabelProp: "label",
53570
- optionRender: s ? (e) => /* @__PURE__ */ Y(qR, {
53613
+ optionRender: c ? (e) => /* @__PURE__ */ Y(qR, {
53571
53614
  option: e?.data ?? e,
53572
- layout: s
53615
+ layout: c
53573
53616
  }) : void 0,
53574
53617
  prefix: /* @__PURE__ */ Y(ho, {})
53575
53618
  });
53576
53619
  }
53577
- function az({ field: e, mentionOpts: t, onMentionSearch: n, value: r, onChange: i }) {
53620
+ function oz({ field: e, mentionOpts: t, onMentionSearch: n, value: r, onChange: i }) {
53578
53621
  let a = Number(e.maxLength) > 0 ? Number(e.maxLength) : void 0, o = String(r ?? "").length;
53579
53622
  return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(ba, {
53580
53623
  value: r,
@@ -53601,7 +53644,7 @@ function az({ field: e, mentionOpts: t, onMentionSearch: n, value: r, onChange:
53601
53644
  ]
53602
53645
  }) : null] });
53603
53646
  }
53604
- function oz({ field: e = {}, value: t = {}, onChange: n }) {
53647
+ function sz({ field: e = {}, value: t = {}, onChange: n }) {
53605
53648
  let r = t.period ?? "Hourly", i = t.isRange ?? !1;
53606
53649
  function a(e) {
53607
53650
  n?.({
@@ -53686,7 +53729,7 @@ function oz({ field: e = {}, value: t = {}, onChange: n }) {
53686
53729
  })
53687
53730
  ] });
53688
53731
  }
53689
- function sz({ field: e, value: t, onChange: n }) {
53732
+ function cz({ field: e, value: t, onChange: n }) {
53690
53733
  return /* @__PURE__ */ Y(fa, {
53691
53734
  value: t,
53692
53735
  onChange: n,
@@ -53695,14 +53738,14 @@ function sz({ field: e, value: t, onChange: n }) {
53695
53738
  format: "YYYY-MM-DD"
53696
53739
  });
53697
53740
  }
53698
- function cz({ field: e, checked: t, onChange: n }) {
53741
+ function lz({ field: e, checked: t, onChange: n }) {
53699
53742
  return /* @__PURE__ */ Y(ua, {
53700
53743
  checked: t,
53701
53744
  onChange: n,
53702
53745
  children: e.checkboxLabel
53703
53746
  });
53704
53747
  }
53705
- function lz({ field: e, value: t, onChange: n }) {
53748
+ function uz({ field: e, value: t, onChange: n }) {
53706
53749
  return /* @__PURE__ */ Y(va, {
53707
53750
  value: t,
53708
53751
  onChange: n,
@@ -53712,45 +53755,45 @@ function lz({ field: e, value: t, onChange: n }) {
53712
53755
  style: { width: "100%" }
53713
53756
  });
53714
53757
  }
53715
- function uz({ options: e, value: t, onChange: n }) {
53758
+ function dz({ options: e, value: t, onChange: n }) {
53716
53759
  return /* @__PURE__ */ Y(Da.Group, {
53717
53760
  value: t,
53718
53761
  onChange: n,
53719
53762
  options: e
53720
53763
  });
53721
53764
  }
53722
- var dz = {
53765
+ var fz = {
53723
53766
  input: $R,
53724
53767
  text: $R,
53725
53768
  textarea: ez,
53726
53769
  select: tz,
53727
53770
  "multi-select": nz,
53728
- "search-select": iz,
53729
- "mention-textarea": az,
53730
- "candidate-rate": oz,
53731
- "priority-checkbox": cz,
53732
- "date-picker": sz,
53733
- number: lz,
53734
- radio: uz
53771
+ "search-select": az,
53772
+ "mention-textarea": oz,
53773
+ "candidate-rate": sz,
53774
+ "priority-checkbox": lz,
53775
+ "date-picker": cz,
53776
+ number: uz,
53777
+ radio: dz
53735
53778
  };
53736
- function fz(e) {
53779
+ function pz(e) {
53737
53780
  return e === "priority-checkbox" ? { valuePropName: "checked" } : {};
53738
53781
  }
53739
53782
  //#endregion
53740
53783
  //#region src/components/popups/dynamic/PopupFields.jsx
53741
- var pz = /* @__PURE__ */ new Set([
53784
+ var mz = /* @__PURE__ */ new Set([
53742
53785
  "input",
53743
53786
  "text",
53744
53787
  "textarea",
53745
53788
  "mention-textarea"
53746
53789
  ]);
53747
- function mz({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupContext: i, extraData: a, removedIds: o, setRemovedIds: s, onRemoveAssigned: c, showAlreadyAssigned: l, onValuesChange: u, getSearchHandler: d, getMentionSearchHandler: f, mentionOptions: p }) {
53748
- let [m, h] = L([]), g = (a?.recruitersData ?? []).filter((e) => {
53790
+ function hz({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupContext: i, extraData: a, removedIds: o, setRemovedIds: s, onRemoveAssigned: c, showAlreadyAssigned: l, onValuesChange: u, getSearchHandler: d, searchLoading: f = {}, getMentionSearchHandler: p, mentionOptions: m }) {
53791
+ let [h, g] = L([]), _ = (a?.recruitersData ?? []).filter((e) => {
53749
53792
  let t = String(e?.user_id ?? e?.id ?? e?.userId ?? "");
53750
53793
  return t && !o.includes(t);
53751
- }), _ = l && a, v = new Set(l ? g.map((e) => String(e?.user_id ?? e?.id ?? e?.userId ?? "").trim()).filter(Boolean) : []), y = (e) => v.size === 0 || !Array.isArray(e) ? e : e.map((e) => {
53794
+ }), v = l && a, y = new Set(l ? _.map((e) => String(e?.user_id ?? e?.id ?? e?.userId ?? "").trim()).filter(Boolean) : []), b = (e) => y.size === 0 || !Array.isArray(e) ? e : e.map((e) => {
53752
53795
  let t = String((e && typeof e == "object" ? e.value ?? e.id : e) ?? "").trim();
53753
- return !v.has(t) || !e || typeof e != "object" ? e : {
53796
+ return !y.has(t) || !e || typeof e != "object" ? e : {
53754
53797
  ...e,
53755
53798
  disabled: !0,
53756
53799
  assigned: !0,
@@ -53758,7 +53801,7 @@ function mz({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
53758
53801
  title: e.title ?? "Already assigned to this job"
53759
53802
  };
53760
53803
  });
53761
- return !t.length && !_ ? null : /* @__PURE__ */ X(J, { children: [_ && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X("div", {
53804
+ return !t.length && !v ? null : /* @__PURE__ */ X(J, { children: [v && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X("div", {
53762
53805
  className: "dynamic-popup__already-assigned",
53763
53806
  children: [/* @__PURE__ */ Y(P, {
53764
53807
  variant: "caption",
@@ -53771,17 +53814,17 @@ function mz({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
53771
53814
  flexWrap: "wrap",
53772
53815
  gap: 6
53773
53816
  },
53774
- children: g.length === 0 ? /* @__PURE__ */ Y(P, {
53817
+ children: _.length === 0 ? /* @__PURE__ */ Y(P, {
53775
53818
  variant: "caption",
53776
53819
  color: "secondary",
53777
53820
  children: "No one is currently assigned to this job."
53778
- }) : g.map((e) => {
53779
- let t = String(e?.user_id ?? e?.id ?? e?.userId ?? ""), n = e?.name ?? e?.user_name ?? e?.userName ?? e?.email ?? "Assigned user", r = m.includes(t);
53821
+ }) : _.map((e) => {
53822
+ let t = String(e?.user_id ?? e?.id ?? e?.userId ?? ""), n = e?.name ?? e?.user_name ?? e?.userName ?? e?.email ?? "Assigned user", r = h.includes(t);
53780
53823
  return /* @__PURE__ */ X(G, {
53781
53824
  closable: !r,
53782
53825
  onClose: async (n) => {
53783
53826
  if (n.preventDefault(), !(!t || r)) {
53784
- h((e) => Array.from(/* @__PURE__ */ new Set([...e, t])));
53827
+ g((e) => Array.from(/* @__PURE__ */ new Set([...e, t])));
53785
53828
  try {
53786
53829
  typeof c == "function" && await c({
53787
53830
  id: t,
@@ -53790,7 +53833,7 @@ function mz({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
53790
53833
  } catch (e) {
53791
53834
  q.error(e?.message ?? "Failed to unassign user");
53792
53835
  } finally {
53793
- h((e) => e.filter((e) => e !== t));
53836
+ g((e) => e.filter((e) => e !== t));
53794
53837
  }
53795
53838
  }
53796
53839
  },
@@ -53806,15 +53849,15 @@ function mz({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
53806
53849
  layout: "vertical",
53807
53850
  initialValues: n,
53808
53851
  onValuesChange: (e, t) => u(t),
53809
- children: hz(t).map((e) => gz(e, (e) => {
53810
- let t = y(r[e.name] ?? RR(e, i)), n = d(e), a = f(e), o = p[e.name] ?? [], s = fz(e.type), c = dz[e.type], l = [];
53852
+ children: gz(t).map((e) => _z(e, (e) => {
53853
+ let t = b(r[e.name] ?? RR(e, i)), n = d(e), a = p(e), o = m[e.name] ?? [], s = pz(e.type), c = fz[e.type], l = [];
53811
53854
  return e.required && l.push({
53812
53855
  required: !0,
53813
53856
  message: `${e.label || "This field"} is required`
53814
53857
  }), typeof e.validator == "function" && l.push({ validator: (t, n) => {
53815
53858
  let r = e.validator(n, i);
53816
53859
  return r ? Promise.reject(Error(r)) : Promise.resolve();
53817
- } }), pz.has(e.type) && l.push(Ti({
53860
+ } }), mz.has(e.type) && l.push(Ti({
53818
53861
  label: e.label,
53819
53862
  field: e.name,
53820
53863
  type: e.type
@@ -53827,6 +53870,7 @@ function mz({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
53827
53870
  field: e,
53828
53871
  options: t,
53829
53872
  onSearch: n,
53873
+ searchLoading: !!f[e.name],
53830
53874
  mentionOpts: o,
53831
53875
  onMentionSearch: a,
53832
53876
  popupContext: i
@@ -53835,7 +53879,7 @@ function mz({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
53835
53879
  }))
53836
53880
  })] });
53837
53881
  }
53838
- function hz(e) {
53882
+ function gz(e) {
53839
53883
  let t = [];
53840
53884
  for (let n of e) {
53841
53885
  let e = t[t.length - 1];
@@ -53846,7 +53890,7 @@ function hz(e) {
53846
53890
  }
53847
53891
  return t.map((e) => e.fields);
53848
53892
  }
53849
- function gz(e, t) {
53893
+ function _z(e, t) {
53850
53894
  return e.length === 1 ? t(e[0]) : /* @__PURE__ */ Y("div", {
53851
53895
  style: {
53852
53896
  display: "flex",
@@ -53864,7 +53908,7 @@ function gz(e, t) {
53864
53908
  }
53865
53909
  //#endregion
53866
53910
  //#region src/components/popups/dynamic/hooks/usePopupOptions.js
53867
- function _z(e) {
53911
+ function vz(e) {
53868
53912
  return [
53869
53913
  "select",
53870
53914
  "multi-select",
@@ -53872,15 +53916,15 @@ function _z(e) {
53872
53916
  "radio"
53873
53917
  ].includes(e?.type) && e?.dataSource === "master" && e?.masterName;
53874
53918
  }
53875
- function vz(e) {
53919
+ function yz(e) {
53876
53920
  let t = e?.data ?? e;
53877
53921
  return Array.isArray(t) ? t : Array.isArray(t?.data) ? t.data : Array.isArray(t?.items) ? t.items : Array.isArray(t?.rows) ? t.rows : Array.isArray(t?.records) ? t.records : [];
53878
53922
  }
53879
- function yz(e) {
53923
+ function bz(e) {
53880
53924
  let t = String(e?.masterName ?? "").trim().toLowerCase();
53881
53925
  return t === "clientsubmissions" || t === "clientsubmissionstatus";
53882
53926
  }
53883
- function bz(e) {
53927
+ function xz(e) {
53884
53928
  if (e == null) return null;
53885
53929
  if (typeof e == "string") {
53886
53930
  let t = e.trim();
@@ -53910,36 +53954,36 @@ function bz(e) {
53910
53954
  }
53911
53955
  };
53912
53956
  }
53913
- function xz(e, t) {
53914
- return yz(t) ? bz(e) : LR(e, t);
53957
+ function Sz(e, t) {
53958
+ return bz(t) ? xz(e) : LR(e, t);
53915
53959
  }
53916
- function Sz(e) {
53960
+ function Cz(e) {
53917
53961
  let t = e?.clientSubmissionStatus, n = Number((t && typeof t == "object" ? t?.clientSubmissionStatusId ?? t?.id ?? t?.uniqueId : void 0) ?? e?.clientSubmissionStatusId ?? e?.clientStatusId ?? e?.["clientSubmissionStatus.clientSubmissionStatusId"] ?? 0) || 0, r = t && typeof t == "object" ? t?.clientSubmissionStatusText ?? t?.name ?? t?.text ?? t?.label : t;
53918
53962
  return {
53919
53963
  id: n,
53920
53964
  text: String(r ?? e?.clientSubmissionStatusText ?? e?.clientStatus ?? e?.clientStatusText ?? e?.["clientSubmissionStatus.clientSubmissionStatusText"] ?? "").trim()
53921
53965
  };
53922
53966
  }
53923
- function Cz(e) {
53967
+ function wz(e) {
53924
53968
  let t = Number(e?.id ?? 0) || 0, n = String(e?.text ?? "").trim();
53925
53969
  return n && n.toLowerCase() === "not submitted" ? !0 : t <= 0 && !n;
53926
53970
  }
53927
- function wz(e) {
53971
+ function Tz(e) {
53928
53972
  return Number(e?._raw?.id ?? e?._raw?.uniqueId ?? 0) || 0;
53929
53973
  }
53930
- function Tz(e) {
53974
+ function Ez(e) {
53931
53975
  let t = e?._raw?.allowedNextStatusIds;
53932
53976
  return Array.isArray(t) ? t.map(Number).filter((e) => Number.isInteger(e) && e > 0) : [];
53933
53977
  }
53934
- function Ez(e) {
53978
+ function Dz(e) {
53935
53979
  let t = e?.data ?? e;
53936
53980
  return t ? Array.isArray(t) ? t[0] ?? null : t?.record && typeof t.record == "object" ? t.record : t?.data && typeof t.data == "object" && !Array.isArray(t.data) ? t.data : typeof t == "object" ? t : null : null;
53937
53981
  }
53938
- function Dz(e) {
53939
- return (Array.isArray(e?.selectedRecords) ? e.selectedRecords.filter(Boolean) : []).some((e) => !Cz(Sz(e))) ? !0 : !Cz(Sz(e ?? {}));
53982
+ function Oz(e) {
53983
+ return (Array.isArray(e?.selectedRecords) ? e.selectedRecords.filter(Boolean) : []).some((e) => !wz(Cz(e))) ? !0 : !wz(Cz(e ?? {}));
53940
53984
  }
53941
- async function Oz(e, t) {
53942
- if (Dz(e)) return e;
53985
+ async function kz(e, t) {
53986
+ if (Oz(e)) return e;
53943
53987
  let n = e?.selectedIds?.[0] ?? e?.selectedRecords?.[0]?._id ?? e?.selectedRecords?.[0]?.id;
53944
53988
  if (!n) return e;
53945
53989
  let r = String(e?.moduleName ?? "submissions").trim() || "submissions", i = new URLSearchParams({
@@ -53948,7 +53992,7 @@ async function Oz(e, t) {
53948
53992
  });
53949
53993
  t && i.set("app_id", t);
53950
53994
  try {
53951
- let n = Ez(await x(k, `/module-data-detail?${i.toString()}`, { headers: t ? { "X-App-Id": t } : void 0 }));
53995
+ let n = Dz(await x(k, `/module-data-detail?${i.toString()}`, { headers: t ? { "X-App-Id": t } : void 0 }));
53952
53996
  if (!n) return e;
53953
53997
  let r = Array.isArray(e?.selectedRecords) ? e.selectedRecords : [];
53954
53998
  return {
@@ -53962,7 +54006,7 @@ async function Oz(e, t) {
53962
54006
  return console.warn("[DynamicPopup] Could not load selected submission detail for client status transition:", t), e;
53963
54007
  }
53964
54008
  }
53965
- function kz(e, t) {
54009
+ function Az(e, t) {
53966
54010
  if (!Array.isArray(e) || !e.length) return [];
53967
54011
  if (!e.some((e) => e?._raw?.isInitialStatus === !0 || e?._raw?.isTerminalStatus === !0 || Array.isArray(e?._raw?.allowedNextStatusIds))) return e;
53968
54012
  let n = Array.isArray(t?.selectedRecords) ? t.selectedRecords.filter(Boolean) : [], r = {
@@ -53976,20 +54020,20 @@ function kz(e, t) {
53976
54020
  "clientSubmissionStatus.clientSubmissionStatusText": t?.["clientSubmissionStatus.clientSubmissionStatusText"]
53977
54021
  }, i = n.length ? n : [r];
53978
54022
  return e.filter((t) => i.every((n) => {
53979
- let i = Sz(n);
53980
- if (Cz(i)) {
53981
- let e = Sz(r);
53982
- Cz(e) || (i = e);
54023
+ let i = Cz(n);
54024
+ if (wz(i)) {
54025
+ let e = Cz(r);
54026
+ wz(e) || (i = e);
53983
54027
  }
53984
- if (Cz(i)) return t?._raw?.isInitialStatus === !0;
54028
+ if (wz(i)) return t?._raw?.isInitialStatus === !0;
53985
54029
  let a = e.find((e) => {
53986
- let t = wz(e), n = String(e?.label ?? "").trim();
54030
+ let t = Tz(e), n = String(e?.label ?? "").trim();
53987
54031
  return i.id > 0 && t === i.id || i.text && n.toLowerCase() === i.text.toLowerCase();
53988
54032
  });
53989
- return !a || a?._raw?.isTerminalStatus === !0 ? !1 : Tz(a).includes(wz(t));
54033
+ return !a || a?._raw?.isTerminalStatus === !0 ? !1 : Ez(a).includes(Tz(t));
53990
54034
  }));
53991
54035
  }
53992
- function Az({ open: e, config: t, api: n, fields: r, popupContext: i, formValues: a }) {
54036
+ function jz({ open: e, config: t, api: n, fields: r, popupContext: i, formValues: a }) {
53993
54037
  let [o, s] = L({}), [c, l] = L(null);
53994
54038
  return F(() => {
53995
54039
  e || (s({}), l(null));
@@ -54014,7 +54058,7 @@ function Az({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
54014
54058
  i
54015
54059
  ]), F(() => {
54016
54060
  if (!e || !t) return;
54017
- let n = r.filter(_z);
54061
+ let n = r.filter(vz);
54018
54062
  if (!n.length) return;
54019
54063
  let a = new AbortController();
54020
54064
  return n.forEach((e) => {
@@ -54025,9 +54069,9 @@ function Az({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
54025
54069
  }), n = String(u ?? "").trim();
54026
54070
  n && t.set("app_id", n), x(k, `/masters/dropdown?${t.toString()}`, { headers: n ? { "X-App-Id": n } : void 0 }).then(async (t) => {
54027
54071
  if (a.signal.aborted) return;
54028
- let r = vz(t).map((t) => xz(t, e)).filter(Boolean), o = i;
54029
- if (yz(e) && (o = await Oz(i, n)), a.signal.aborted) return;
54030
- let c = yz(e) ? kz(r, o) : r;
54072
+ let r = yz(t).map((t) => Sz(t, e)).filter(Boolean), o = i;
54073
+ if (bz(e) && (o = await kz(i, n)), a.signal.aborted) return;
54074
+ let c = bz(e) ? Az(r, o) : r;
54031
54075
  s((t) => ({
54032
54076
  ...t,
54033
54077
  [e.name]: c
@@ -54085,61 +54129,77 @@ function Az({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
54085
54129
  }
54086
54130
  //#endregion
54087
54131
  //#region src/components/popups/dynamic/hooks/usePopupSearch.js
54088
- var jz = 500, Mz = 3;
54089
- function Nz({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOptions: i }) {
54090
- let [a, o] = L({}), s = ra({}), c = ra({}), l = ra({}), u = $i((t, n) => {
54091
- let a = e.searchOptions ?? e.searchFetcher;
54092
- if (typeof a != "function") return;
54093
- c.current[t.name]?.abort();
54094
- let o = new AbortController();
54095
- return c.current[t.name] = o, Promise.resolve(a(t, n, r)).then((e) => {
54096
- if (o.signal.aborted) return;
54097
- let n = (Array.isArray(e) ? e : e?.items ?? e?.list ?? []).map((e) => LR(e, t)), a = t.initialOptionKey ? r[t.initialOptionKey] : null, s = Array.isArray(a) ? a : a ? [a] : [], c = new Set(n.map((e) => e.value)), l = s.filter((e) => !c.has(e.value));
54098
- i((e) => ({
54099
- ...e,
54100
- [t.name]: l.length ? [...l, ...n] : n
54101
- }));
54132
+ var Mz = 400, Nz = 3, Pz = Object.freeze({});
54133
+ function Fz({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOptions: i, getFieldValue: a }) {
54134
+ let [o, s] = L({}), [c, l] = L({}), u = $i((e, t) => {
54135
+ l((n) => !!n[e] === t ? n : {
54136
+ ...n,
54137
+ [e]: t
54138
+ });
54139
+ }, []), d = ra({}), f = ra({}), p = ra({}), m = $i((t, n) => {
54140
+ let o = e.searchOptions ?? e.searchFetcher;
54141
+ if (typeof o != "function") return;
54142
+ f.current[t.name]?.abort();
54143
+ let s = new AbortController();
54144
+ return f.current[t.name] = s, u(t.name, !0), Promise.resolve(o(t, n, r)).then((e) => {
54145
+ if (s.signal.aborted) return;
54146
+ let n = (Array.isArray(e) ? e : e?.items ?? e?.list ?? []).map((e) => LR(e, t)), o = t.initialOptionKey ? r[t.initialOptionKey] : null, c = Array.isArray(o) ? o : o ? [o] : [], l = new Set(n.map((e) => e.value)), d = c.filter((e) => !l.has(e.value)), f = a?.(t.name), p = new Set((Array.isArray(f) ? f : [f]).filter((e) => e != null && e !== "").map(String));
54147
+ i((e) => {
54148
+ let r = p.size ? (e[t.name] ?? []).filter((e) => p.has(String(e?.value)) && !l.has(e?.value) && !d.some((t) => t.value === e?.value)) : [];
54149
+ return {
54150
+ ...e,
54151
+ [t.name]: [
54152
+ ...d,
54153
+ ...n,
54154
+ ...r
54155
+ ]
54156
+ };
54157
+ }), u(t.name, !1);
54102
54158
  }).catch((e) => {
54103
- o.signal.aborted || console.error(`[DynamicPopup] Search failed for field "${t.name}":`, e);
54104
- }), o;
54159
+ s.signal.aborted || (u(t.name, !1), console.error(`[DynamicPopup] Search failed for field "${t.name}":`, e));
54160
+ }), s;
54105
54161
  }, [
54106
54162
  e,
54107
54163
  r,
54108
- i
54109
- ]), d = n.filter((e) => (e.searchFetchKey || e.searchFetcher) && e.preloadOptions !== !1), f = d.map((e) => e.name).join("|"), p = ra({
54110
- runSearch: u,
54111
- preloadFields: d
54164
+ i,
54165
+ a,
54166
+ u
54167
+ ]), h = n.filter((e) => (e.searchFetchKey || e.searchFetcher) && e.preloadOptions !== !1), g = h.map((e) => e.name).join("|"), _ = ra({
54168
+ runSearch: m,
54169
+ preloadFields: h
54112
54170
  });
54113
54171
  F(() => {
54114
- p.current = {
54115
- runSearch: u,
54116
- preloadFields: d
54172
+ _.current = {
54173
+ runSearch: m,
54174
+ preloadFields: h
54117
54175
  };
54118
54176
  }), F(() => {
54119
- if (!t || !f) return;
54120
- let { runSearch: e, preloadFields: n } = p.current, r = n.map((t) => e(t, "")).filter(Boolean);
54121
- return () => r.forEach((e) => e.abort());
54122
- }, [t, f]);
54123
- function m(t) {
54177
+ if (!t || !g) return;
54178
+ let { runSearch: e, preloadFields: n } = _.current, r = n.map((t) => e(t, "")).filter(Boolean);
54179
+ return () => {
54180
+ r.forEach((e) => e.abort()), l({});
54181
+ };
54182
+ }, [t, g]);
54183
+ function v(t) {
54124
54184
  if (!t.searchFetchKey && !t.searchFetcher || typeof (e.searchOptions ?? e.searchFetcher) != "function") return;
54125
- let n = t.searchMinLength ?? Mz;
54185
+ let n = t.searchMinLength ?? Nz;
54126
54186
  return (e) => {
54127
- clearTimeout(s.current[t.name]);
54187
+ clearTimeout(d.current[t.name]), u(t.name, !0);
54128
54188
  let r = e.length < n ? "" : e;
54129
- s.current[t.name] = setTimeout(() => {
54130
- u(t, r);
54131
- }, jz);
54189
+ d.current[t.name] = setTimeout(() => {
54190
+ m(t, r);
54191
+ }, Mz);
54132
54192
  };
54133
54193
  }
54134
- function h(t) {
54194
+ function y(t) {
54135
54195
  let n = e.getMentionOptions ?? e.mentionFetcher;
54136
54196
  if (typeof n == "function") return (e) => {
54137
- l.current[t.name]?.abort();
54197
+ p.current[t.name]?.abort();
54138
54198
  let i = new AbortController();
54139
- l.current[t.name] = i, Promise.resolve(n(t, e, r)).then((e) => {
54199
+ p.current[t.name] = i, Promise.resolve(n(t, e, r)).then((e) => {
54140
54200
  if (i.signal.aborted) return;
54141
54201
  let n = Array.isArray(e) ? e : e?.items ?? e?.list ?? [];
54142
- o((e) => ({
54202
+ s((e) => ({
54143
54203
  ...e,
54144
54204
  [t.name]: n.map((e) => ({
54145
54205
  value: e.user_name ?? e.userName ?? e.username ?? String(e),
@@ -54152,14 +54212,15 @@ function Nz({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOption
54152
54212
  };
54153
54213
  }
54154
54214
  return {
54155
- mentionOptions: a,
54156
- getSearchHandler: m,
54157
- getMentionSearchHandler: h
54215
+ mentionOptions: o,
54216
+ searchLoading: t ? c : Pz,
54217
+ getSearchHandler: v,
54218
+ getMentionSearchHandler: y
54158
54219
  };
54159
54220
  }
54160
54221
  //#endregion
54161
54222
  //#region src/components/popups/dynamic/hooks/usePopupSubmit.js
54162
- function Pz({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynamicOptions: a, extraData: o, removedIds: s, removalOnlySubmit: c = !1, fields: l, onClose: u, onSubmit: d }) {
54223
+ function Iz({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynamicOptions: a, extraData: o, removedIds: s, removalOnlySubmit: c = !1, fields: l, onClose: u, onSubmit: d }) {
54163
54224
  let [f, p] = L(!1), [m, h] = L(null);
54164
54225
  async function g(e) {
54165
54226
  let t = {
@@ -54234,10 +54295,10 @@ function Pz({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
54234
54295
  }
54235
54296
  //#endregion
54236
54297
  //#region src/components/popups/dynamic/DynamicPopup.jsx
54237
- function Fz(e) {
54298
+ function Lz(e) {
54238
54299
  return !!(e.multiSelect || e.multiple || e.mode === "multiple");
54239
54300
  }
54240
- function Iz({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i, api: a = {} }) {
54301
+ function Rz({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i, api: a = {} }) {
54241
54302
  let [o] = B.useForm(), [s, c] = L({}), [l, u] = L([]), d = B.useWatch([], o, { preserve: !0 }) ?? {}, f = I(() => zR(n), [n]), { selectedIds: p = [], selectedRecords: m = [], moduleName: h = "" } = f, g = I(() => p.map((e, t) => {
54242
54303
  let n = m[t];
54243
54304
  return n?.id ?? n?._id ?? e;
@@ -54247,25 +54308,26 @@ function Iz({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
54247
54308
  if (t.initialOptionKey) {
54248
54309
  let n = f[t.initialOptionKey], r = Array.isArray(n) ? n : n ? [n] : [];
54249
54310
  if (!r.length) return;
54250
- e[t.name] = Fz(t) ? r.map((e) => e.value) : r[0].value;
54311
+ e[t.name] = Lz(t) ? r.map((e) => e.value) : r[0].value;
54251
54312
  return;
54252
54313
  }
54253
54314
  let n = f[t.initialValueKey];
54254
54315
  !t.initialValueKey || n === void 0 || (e[t.name] = t.type === "date-picker" ? Us(n) : n);
54255
54316
  }), e;
54256
- }, [_, f]), { dynamicOptions: y, setDynamicOptions: b, extraData: x } = Az({
54317
+ }, [_, f]), { dynamicOptions: y, setDynamicOptions: b, extraData: x } = jz({
54257
54318
  open: e,
54258
54319
  config: t,
54259
54320
  api: a,
54260
54321
  fields: _,
54261
54322
  popupContext: f,
54262
54323
  formValues: s
54263
- }), { mentionOptions: S, getSearchHandler: C, getMentionSearchHandler: w } = Nz({
54324
+ }), { mentionOptions: S, searchLoading: C, getSearchHandler: w, getMentionSearchHandler: T } = Fz({
54264
54325
  api: a,
54265
54326
  open: e,
54266
54327
  fields: _,
54267
54328
  popupContext: f,
54268
- setDynamicOptions: b
54329
+ setDynamicOptions: b,
54330
+ getFieldValue: $i((e) => o.getFieldValue(e), [o])
54269
54331
  });
54270
54332
  F(() => {
54271
54333
  if (!e) return;
@@ -54283,16 +54345,16 @@ function Iz({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
54283
54345
  _,
54284
54346
  f
54285
54347
  ]);
54286
- function T(e) {
54348
+ function E(e) {
54287
54349
  typeof r == "function" && r(e);
54288
54350
  }
54289
- let E = _.filter((e) => e.required), D = E.every((e) => {
54351
+ let D = _.filter((e) => e.required), O = D.every((e) => {
54290
54352
  let t = d[e.name];
54291
54353
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0 || typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0);
54292
- }), O = (f.removedIds ?? []).length, k = l.length > O, A = E.some((e) => {
54354
+ }), k = (f.removedIds ?? []).length, A = l.length > k, j = D.some((e) => {
54293
54355
  let t = d[e.name];
54294
54356
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0);
54295
- }), { handleOk: j, confirming: ee, deleteError: te, resetSubmitState: M } = Pz({
54357
+ }), { handleOk: ee, confirming: te, deleteError: M, resetSubmitState: N } = Iz({
54296
54358
  form: o,
54297
54359
  config: t,
54298
54360
  api: a,
@@ -54301,73 +54363,73 @@ function Iz({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
54301
54363
  dynamicOptions: y,
54302
54364
  extraData: x,
54303
54365
  removedIds: l,
54304
- removalOnlySubmit: !!t?.allowRemovalOnlySubmit && k && !A,
54366
+ removalOnlySubmit: !!t?.allowRemovalOnlySubmit && A && !j,
54305
54367
  fields: _,
54306
- onClose: T,
54368
+ onClose: E,
54307
54369
  onSubmit: i
54308
54370
  });
54309
54371
  F(() => {
54310
- e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []), M());
54372
+ e && (o.resetFields(), c(v ?? {}), u(f.removedIds ?? []), N());
54311
54373
  }, [e, v]);
54312
- let N = !!t?.autoSubmitWhenNoFields && _.length === 0;
54374
+ let ne = !!t?.autoSubmitWhenNoFields && _.length === 0;
54313
54375
  F(() => {
54314
- !e || !N || j();
54315
- }, [e, N]);
54316
- let ne = p.length, re = String(h).replace(/s$/i, ""), ie = ne === 1 ? re : h, ae = m[0] ?? {}, oe = t?.getTitleText ? t.getTitleText(ne, ie, ae, f) : 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, f) : t?.bodyText ?? null, le = typeof t?.getNote == "function" ? t.getNote(f) : t?.note, ue = t?.disabledUntilFilled && !D && !k;
54317
- if (!t || !e || N) return null;
54318
- let de = t.component;
54319
- return de ? /* @__PURE__ */ Y(Sa, {
54376
+ !e || !ne || ee();
54377
+ }, [e, ne]);
54378
+ let re = p.length, ie = String(h).replace(/s$/i, ""), ae = re === 1 ? ie : h, oe = m[0] ?? {}, se = t?.getTitleText ? t.getTitleText(re, ae, oe, f) : t?.title, ce = re === 1 ? oe.jobTitle ?? oe.title ?? oe.name ?? oe.fullName ?? oe.candidateName ?? null : null, le = t?.getBodyText ? t.getBodyText(re, ie, ae, ce, f) : t?.bodyText ?? null, ue = typeof t?.getNote == "function" ? t.getNote(f) : t?.note, de = t?.disabledUntilFilled && !O && !A;
54379
+ if (!t || !e || ne) return null;
54380
+ let fe = t.component;
54381
+ return fe ? /* @__PURE__ */ Y(Sa, {
54320
54382
  open: e,
54321
54383
  title: t.title || t.getTitleText ? /* @__PURE__ */ Y(OR, {
54322
- titleText: oe,
54384
+ titleText: se,
54323
54385
  titleIcon: t.titleIcon
54324
54386
  }) : null,
54325
54387
  footer: null,
54326
54388
  width: t.width ?? 760,
54327
54389
  centered: !0,
54328
54390
  maskClosable: !1,
54329
- onCancel: () => T(),
54391
+ onCancel: () => E(),
54330
54392
  className: `dynamic-popup${t.className ? ` ${t.className}` : ""}`,
54331
- children: /* @__PURE__ */ Y(de, {
54393
+ children: /* @__PURE__ */ Y(fe, {
54332
54394
  context: f,
54333
54395
  selectedIds: g,
54334
54396
  selectedRecords: m,
54335
54397
  moduleName: h,
54336
- onClose: T
54398
+ onClose: E
54337
54399
  })
54338
54400
  }) : /* @__PURE__ */ X(Sa, {
54339
54401
  open: e,
54340
54402
  title: /* @__PURE__ */ Y(OR, {
54341
- titleText: oe,
54403
+ titleText: se,
54342
54404
  titleIcon: t.titleIcon
54343
54405
  }),
54344
54406
  okText: t.okText || "OK",
54345
54407
  cancelText: t.cancelText ?? "Cancel",
54346
- onOk: j,
54347
- onCancel: () => T(),
54408
+ onOk: ee,
54409
+ onCancel: () => E(),
54348
54410
  okButtonProps: {
54349
54411
  danger: t.okButtonDanger,
54350
- disabled: ue,
54351
- loading: ee
54412
+ disabled: de,
54413
+ loading: te
54352
54414
  },
54353
- cancelButtonProps: { disabled: ee },
54354
- closable: !ee,
54415
+ cancelButtonProps: { disabled: te },
54416
+ closable: !te,
54355
54417
  maskClosable: !1,
54356
54418
  width: t.width ?? 480,
54357
54419
  centered: !0,
54358
54420
  className: `dynamic-popup${t.className ? ` ${t.className}` : ""}`,
54359
54421
  children: [
54360
54422
  /* @__PURE__ */ Y(kR, {
54361
- note: le,
54423
+ note: ue,
54362
54424
  description: t.description,
54363
54425
  showSelectedCount: t.showSelectedCount,
54364
- count: ne,
54365
- itemLabel: ie,
54366
- bodyText: ce,
54367
- deleteError: te
54426
+ count: re,
54427
+ itemLabel: ae,
54428
+ bodyText: le,
54429
+ deleteError: M
54368
54430
  }),
54369
54431
  /* @__PURE__ */ Y(AR, { footerNote: t.footerNote }),
54370
- /* @__PURE__ */ Y(mz, {
54432
+ /* @__PURE__ */ Y(hz, {
54371
54433
  form: o,
54372
54434
  fields: _,
54373
54435
  initialValues: v,
@@ -54379,8 +54441,9 @@ function Iz({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
54379
54441
  onRemoveAssigned: a.removeAssignedUser ? (e) => a.removeAssignedUser(e, f) : void 0,
54380
54442
  showAlreadyAssigned: t.showAlreadyAssigned,
54381
54443
  onValuesChange: c,
54382
- getSearchHandler: C,
54383
- getMentionSearchHandler: w,
54444
+ getSearchHandler: w,
54445
+ searchLoading: C,
54446
+ getMentionSearchHandler: T,
54384
54447
  mentionOptions: S
54385
54448
  })
54386
54449
  ]
@@ -54388,7 +54451,7 @@ function Iz({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
54388
54451
  }
54389
54452
  //#endregion
54390
54453
  //#region src/components/popups/definitions/delete/config.js
54391
- var Lz = {
54454
+ var zz = {
54392
54455
  mode: "delete",
54393
54456
  getTitleText: (e, t) => `Delete ${e > 0 ? `${e} ` : ""}${t}`,
54394
54457
  titleIcon: "delete",
@@ -54398,19 +54461,19 @@ var Lz = {
54398
54461
  getBodyText: (e, t, n, r) => r ? `Are you sure you want to delete the ${r} ${t}?` : e > 1 ? `Are you sure you want to delete ${e} selected ${n}?` : `Are you sure you want to delete this ${t}?`,
54399
54462
  footerNote: "This action cannot be undone.",
54400
54463
  fields: []
54401
- }, Rz = { deleteItems: async (e, t) => {
54464
+ }, Bz = { deleteItems: async (e, t) => {
54402
54465
  await Pc(t.moduleName, e);
54403
- } }, zz = /* @__PURE__ */ new Map();
54404
- async function Bz(e) {
54405
- return e ? (zz.has(e) || zz.set(e, qi({ module: e }).catch((t) => (zz.delete(e), console.warn(`[in-progress gate] could not read ${e} form groups:`, t), []))), zz.get(e)) : [];
54466
+ } }, Vz = /* @__PURE__ */ new Map();
54467
+ async function Hz(e) {
54468
+ return e ? (Vz.has(e) || Vz.set(e, qi({ module: e }).catch((t) => (Vz.delete(e), console.warn(`[in-progress gate] could not read ${e} form groups:`, t), []))), Vz.get(e)) : [];
54406
54469
  }
54407
- function Vz(e = [], t) {
54470
+ function Uz(e = [], t) {
54408
54471
  return e.some((e) => {
54409
54472
  let n = Ee(e, t);
54410
54473
  return n && n.severity !== "allow";
54411
54474
  });
54412
54475
  }
54413
- async function Hz({ targetModule: e, sourceModule: t, recordId: n, region: r } = {}) {
54476
+ async function Wz({ targetModule: e, sourceModule: t, recordId: n, region: r } = {}) {
54414
54477
  let i = {
54415
54478
  severity: "allow",
54416
54479
  message: "",
@@ -54419,8 +54482,8 @@ async function Hz({ targetModule: e, sourceModule: t, recordId: n, region: r } =
54419
54482
  if (!e || !t || !n) return i;
54420
54483
  let a = r ?? Vr().region;
54421
54484
  try {
54422
- let r = await Bz(e);
54423
- if (!Vz(r, a)) return i;
54485
+ let r = await Hz(e);
54486
+ if (!Uz(r, a)) return i;
54424
54487
  let o = await qi({
54425
54488
  module: t,
54426
54489
  id: n
@@ -54436,13 +54499,13 @@ async function Hz({ targetModule: e, sourceModule: t, recordId: n, region: r } =
54436
54499
  }
54437
54500
  //#endregion
54438
54501
  //#region src/components/popups/definitions/quick-submit/api.js
54439
- var Uz = "Already submitted", Wz = "submissions", Gz = "candidates", Kz = 864e5, qz = 90, Jz = "This candidate was created or last updated more than 90 days ago. Only candidates created or updated within the last 90 days can be selected. Please update this candidate first.", Yz = [
54502
+ var Gz = "Already submitted", Kz = "submissions", qz = "candidates", Jz = 864e5, Yz = 90, Xz = "This candidate was created or last updated more than 90 days ago. Only candidates created or updated within the last 90 days can be selected. Please update this candidate first.", Zz = [
54440
54503
  "createdAt",
54441
54504
  "createdDate",
54442
54505
  "dateCreated",
54443
54506
  "created_on",
54444
54507
  "createdOn"
54445
- ], Xz = [
54508
+ ], Qz = [
54446
54509
  "updatedAt",
54447
54510
  "updatedDate",
54448
54511
  "lastUpdatedAt",
@@ -54450,7 +54513,7 @@ var Uz = "Already submitted", Wz = "submissions", Gz = "candidates", Kz = 864e5,
54450
54513
  "modifiedAt",
54451
54514
  "modifiedDate"
54452
54515
  ];
54453
- function Zz(e, t) {
54516
+ function $z(e, t) {
54454
54517
  for (let n of t) {
54455
54518
  let t = e?.[n];
54456
54519
  if (!t) continue;
@@ -54459,27 +54522,27 @@ function Zz(e, t) {
54459
54522
  }
54460
54523
  return null;
54461
54524
  }
54462
- function Qz(e) {
54463
- return Zz(e, Yz);
54525
+ function eB(e) {
54526
+ return $z(e, Zz);
54464
54527
  }
54465
- function $z(e) {
54466
- return Zz(e, Xz);
54528
+ function tB(e) {
54529
+ return $z(e, Qz);
54467
54530
  }
54468
- function eB(e) {
54531
+ function nB(e) {
54469
54532
  if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
54470
54533
  let t = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime();
54471
- return Math.max(0, Math.floor((t(/* @__PURE__ */ new Date()) - t(e)) / Kz));
54534
+ return Math.max(0, Math.floor((t(/* @__PURE__ */ new Date()) - t(e)) / Jz));
54472
54535
  }
54473
- function tB(e) {
54536
+ function rB(e) {
54474
54537
  return e === null ? "" : e <= 14 ? "green" : e <= 89 ? "yellow" : "red";
54475
54538
  }
54476
- function nB(e, t = qz) {
54539
+ function iB(e, t = Yz) {
54477
54540
  if (!e) return !1;
54478
- let n = Date.now() - t * Kz, r = Qz(e), i = $z(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
54541
+ let n = Date.now() - t * Jz, r = eB(e), i = tB(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
54479
54542
  return !a && !o;
54480
54543
  }
54481
- function rB(e) {
54482
- let t = Qz(e);
54544
+ function aB(e) {
54545
+ let t = eB(e);
54483
54546
  if (!t) return {
54484
54547
  createdAgo: "",
54485
54548
  createdAgoTone: ""
@@ -54487,38 +54550,38 @@ function rB(e) {
54487
54550
  let n = PR(t);
54488
54551
  return n ? {
54489
54552
  createdAgo: n,
54490
- createdAgoTone: tB(eB(t))
54553
+ createdAgoTone: rB(nB(t))
54491
54554
  } : {
54492
54555
  createdAgo: "",
54493
54556
  createdAgoTone: ""
54494
54557
  };
54495
54558
  }
54496
- function iB(e) {
54559
+ function oB(e) {
54497
54560
  return {
54498
54561
  ...e,
54499
- ...rB(e),
54500
- isStaleCandidate: nB(e)
54562
+ ...aB(e),
54563
+ isStaleCandidate: iB(e)
54501
54564
  };
54502
54565
  }
54503
- function aB(e) {
54566
+ function sB(e) {
54504
54567
  return String(e?.applicantId ?? e?._id ?? e?.id ?? "");
54505
54568
  }
54506
- var oB = null;
54507
- async function sB() {
54508
- return oB ||= zr(Gz).then((e) => e?.strategies?.duplicateCheck?.editRoute ?? "").catch(() => ""), oB;
54569
+ var cB = null;
54570
+ async function lB() {
54571
+ return cB ||= zr(qz).then((e) => e?.strategies?.duplicateCheck?.editRoute ?? "").catch(() => ""), cB;
54509
54572
  }
54510
- async function cB(e) {
54511
- let t = aB(e);
54573
+ async function uB(e) {
54574
+ let t = sB(e);
54512
54575
  if (!t) return "";
54513
- let n = await sB();
54576
+ let n = await lB();
54514
54577
  return n ? n.replace(/:(_?id)\b/g, encodeURIComponent(t)) : "";
54515
54578
  }
54516
- async function lB({ option: e, popupContext: t, confirm: n }) {
54517
- let r = e?._raw ?? e ?? {}, i = aB(r);
54579
+ async function dB({ option: e, popupContext: t, confirm: n }) {
54580
+ let r = e?._raw ?? e ?? {}, i = sB(r);
54518
54581
  if (i) {
54519
- let e = await Hz({
54520
- targetModule: Wz,
54521
- sourceModule: Gz,
54582
+ let e = await Wz({
54583
+ targetModule: Kz,
54584
+ sourceModule: qz,
54522
54585
  recordId: i
54523
54586
  });
54524
54587
  if (e.severity === "block") return new Promise((t) => {
@@ -54532,34 +54595,34 @@ async function lB({ option: e, popupContext: t, confirm: n }) {
54532
54595
  });
54533
54596
  });
54534
54597
  }
54535
- if (!nB(r)) return !0;
54598
+ if (!iB(r)) return !0;
54536
54599
  let a = t?.navigate;
54537
54600
  return !a || !i ? !1 : new Promise((e) => {
54538
54601
  n({
54539
54602
  title: "Candidate update required",
54540
- content: Jz,
54603
+ content: Xz,
54541
54604
  okText: "OK",
54542
54605
  cancelText: "Cancel",
54543
54606
  onOk: async () => {
54544
- let t = await cB(r);
54607
+ let t = await uB(r);
54545
54608
  t && a(t), e(!1);
54546
54609
  },
54547
54610
  onCancel: () => e(!1)
54548
54611
  });
54549
54612
  });
54550
54613
  }
54551
- function uB(e, t, n) {
54614
+ function fB(e, t, n) {
54552
54615
  return {
54553
54616
  ...e,
54554
- label: `${e.label} - ${Uz}`,
54617
+ label: `${e.label} - ${Gz}`,
54555
54618
  disabled: !0,
54556
- title: `${Uz}${t ? ` (submission ${t})` : ""}`,
54619
+ title: `${Gz}${t ? ` (submission ${t})` : ""}`,
54557
54620
  alreadySubmitted: !0,
54558
54621
  existingSubmissionId: t || "",
54559
54622
  ...n ? { submittedAt: n } : {}
54560
54623
  };
54561
54624
  }
54562
- var dB = {
54625
+ var pB = {
54563
54626
  searchOptions: async (e, t, n) => {
54564
54627
  if (e.searchFetchKey === "quickSubmitJobList") {
54565
54628
  let e = n.selectedRecords?.[0] ?? {}, r = e.id ?? e._id ?? n.selectedIds?.[0], i, a = !0;
@@ -54582,7 +54645,7 @@ var dB = {
54582
54645
  _raw: e
54583
54646
  }));
54584
54647
  if (a) return o.map((e) => {
54585
- if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return uB(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
54648
+ if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return fB(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
54586
54649
  if (e._raw?.disable) {
54587
54650
  let t = String(e._raw?.message ?? "").trim();
54588
54651
  return {
@@ -54600,7 +54663,7 @@ var dB = {
54600
54663
  }).catch(() => /* @__PURE__ */ new Map());
54601
54664
  return o.map((e) => {
54602
54665
  let t = s.get(String(e.value));
54603
- return t ? uB(e, t.submissionId, t.submittedAt) : e;
54666
+ return t ? fB(e, t.submissionId, t.submittedAt) : e;
54604
54667
  });
54605
54668
  }
54606
54669
  if (e.searchFetchKey === "quickSubmitCandidates") {
@@ -54619,17 +54682,17 @@ var dB = {
54619
54682
  });
54620
54683
  i = Array.isArray(e) ? e : [], a = await cl({
54621
54684
  jobId: r,
54622
- applicantIds: i.map(aB)
54685
+ applicantIds: i.map(sB)
54623
54686
  }).catch(() => /* @__PURE__ */ new Map());
54624
54687
  }
54625
- return i.map((e) => iB(e)).map((e) => {
54626
- let t = a.get(aB(e));
54688
+ return i.map((e) => oB(e)).map((e) => {
54689
+ let t = a.get(sB(e));
54627
54690
  if (!(t || e?.isSubmitted === !0 || e?.alreadySubmitted === !0)) return e;
54628
54691
  let n = t?.submissionId || e?.jobSubmissionId || "", r = t?.submittedAt || e?.submittedAt || "";
54629
54692
  return {
54630
54693
  ...e,
54631
54694
  disabled: !0,
54632
- optionNote: Uz,
54695
+ optionNote: Gz,
54633
54696
  isSubmitted: !0,
54634
54697
  alreadySubmitted: !0,
54635
54698
  existingSubmissionId: n,
@@ -54642,12 +54705,12 @@ var dB = {
54642
54705
  submit: async (e, t, n) => {
54643
54706
  let { navigate: r, selectedRecords: i = [], selectedIds: a = [], moduleName: o } = t, s = i[0] ?? {}, c, l;
54644
54707
  t.jobId ? (c = t.jobId, l = s.id ?? s._id ?? a[0] ?? "") : o === "candidate" ? (c = e.jobId ?? "", l = s.id ?? s._id ?? a[0] ?? "") : (c = s.jobId ?? s.id ?? s._id ?? a[0] ?? "", l = e.candidate ?? "");
54645
- let u = n?.dynamicOptions?.candidate?.find((e) => aB(e?._raw) === String(l)), d = n?.dynamicOptions?.jobId?.find((e) => String(e?.value) === String(c)), f = u?._raw?.isSubmitted || u?._raw?.alreadySubmitted || d?.alreadySubmitted || d?._raw?.isSubmitted || d?._raw?.alreadySubmitted;
54708
+ let u = n?.dynamicOptions?.candidate?.find((e) => sB(e?._raw) === String(l)), d = n?.dynamicOptions?.jobId?.find((e) => String(e?.value) === String(c)), f = u?._raw?.isSubmitted || u?._raw?.alreadySubmitted || d?.alreadySubmitted || d?._raw?.isSubmitted || d?._raw?.alreadySubmitted;
54646
54709
  if (!c || !l) throw Error("Select both a job and a candidate to quick submit.");
54647
- if (nB(u?._raw)) throw Error(Jz);
54648
- let p = await Hz({
54649
- targetModule: Wz,
54650
- sourceModule: Gz,
54710
+ if (iB(u?._raw)) throw Error(Xz);
54711
+ let p = await Wz({
54712
+ targetModule: Kz,
54713
+ sourceModule: qz,
54651
54714
  recordId: l
54652
54715
  });
54653
54716
  if (p.severity === "block") throw Error(p.message);
@@ -54672,7 +54735,7 @@ var dB = {
54672
54735
  }).catch(() => []));
54673
54736
  return r(`/submission-create/${c}?${g.toString()}`, { state: { relevantSkillsToken: v } }), { navigated: !0 };
54674
54737
  }
54675
- }, fB = {
54738
+ }, mB = {
54676
54739
  title: "Submit",
54677
54740
  okText: "Submit",
54678
54741
  width: 640,
@@ -54729,9 +54792,9 @@ var dB = {
54729
54792
  type: "relative"
54730
54793
  }]
54731
54794
  },
54732
- onSelectGuard: lB
54795
+ onSelectGuard: dB
54733
54796
  }]
54734
- }, pB = {
54797
+ }, hB = {
54735
54798
  title: "Add Notes & Share",
54736
54799
  okText: "Save & Share",
54737
54800
  width: 480,
@@ -54745,9 +54808,9 @@ var dB = {
54745
54808
  placeholder: "Add your notes on the job. Use '@' to mention someone.",
54746
54809
  mentionFetchKey: "mentionUsers"
54747
54810
  }]
54748
- }, mB = (e) => e?.data ?? e;
54749
- async function hB({ relatedId: e, notes: t, title: n, notesFor: r }) {
54750
- return mB(await hd(k, "/notes", {
54811
+ }, gB = (e) => e?.data ?? e;
54812
+ async function _B({ relatedId: e, notes: t, title: n, notesFor: r }) {
54813
+ return gB(await hd(k, "/notes", {
54751
54814
  method: "POST",
54752
54815
  body: JSON.stringify({
54753
54816
  relatedId: e,
@@ -54759,18 +54822,18 @@ async function hB({ relatedId: e, notes: t, title: n, notesFor: r }) {
54759
54822
  }
54760
54823
  //#endregion
54761
54824
  //#region src/components/popups/definitions/add-notes/api.js
54762
- var gB = {
54825
+ var vB = {
54763
54826
  getMentionOptions: async (e, t) => Ic(t),
54764
54827
  submit: async (e, t) => {
54765
54828
  let n = Array.isArray(t.selectedIds) ? t.selectedIds[0] : t.selectedIds;
54766
54829
  if (!n) throw Error("Please select a record before adding a note.");
54767
- await hB({
54830
+ await _B({
54768
54831
  relatedId: String(n),
54769
54832
  notes: e.notes,
54770
54833
  notesFor: t.moduleName
54771
54834
  });
54772
54835
  }
54773
- }, _B = {
54836
+ }, yB = {
54774
54837
  name: "jobId",
54775
54838
  label: "Job Title / ID",
54776
54839
  type: "search-select",
@@ -54781,7 +54844,7 @@ var gB = {
54781
54844
  valueKey: "_id",
54782
54845
  labelTemplate: "{jobReferenceId} - {jobTitle} — {jobRecruitmentStatus}",
54783
54846
  initialOptionKey: "jobOption"
54784
- }, vB = {
54847
+ }, bB = {
54785
54848
  name: "hiringStage",
54786
54849
  label: "Hiring stage",
54787
54850
  type: "select",
@@ -54795,22 +54858,22 @@ var gB = {
54795
54858
  value: "pipeline"
54796
54859
  }],
54797
54860
  initialValueKey: "hiringStage"
54798
- }, yB = {
54861
+ }, xB = {
54799
54862
  title: "Tag to Jobs",
54800
54863
  okText: "Tag",
54801
54864
  width: 480,
54802
54865
  disabledUntilFilled: !0,
54803
54866
  autoSubmitWhenNoFields: !0,
54804
- getFields: (e) => e.jobId && e.hiringStage ? [] : [_B, vB]
54805
- }, bB = (e) => e?.data ?? e;
54806
- function xB(e) {
54867
+ getFields: (e) => e.jobId && e.hiringStage ? [] : [yB, bB]
54868
+ }, SB = (e) => e?.data ?? e;
54869
+ function CB(e) {
54807
54870
  return Array.isArray(e) && e.every((e) => e && typeof e == "object" && "Key" in e) ? e.reduce((e, { Key: t, Value: n }) => (e[t] = n, e), {}) : e;
54808
54871
  }
54809
- function SB(e) {
54810
- return e ? Array.isArray(e.data) ? e.data.map(xB) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(xB) : Array.isArray(e) ? e.map(xB) : [] : [];
54872
+ function wB(e) {
54873
+ return e ? Array.isArray(e.data) ? e.data.map(CB) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(CB) : Array.isArray(e) ? e.map(CB) : [] : [];
54811
54874
  }
54812
- async function CB(e = 1, t = 10) {
54813
- let n = await x(k, `/workflow/list/all?page=${e}&limit=${t}`), r = bB(n), i = Array.isArray(r) ? r : r?.data ?? [];
54875
+ async function TB(e = 1, t = 10) {
54876
+ let n = await x(k, `/workflow/list/all?page=${e}&limit=${t}`), r = SB(n), i = Array.isArray(r) ? r : r?.data ?? [];
54814
54877
  return {
54815
54878
  items: i,
54816
54879
  total: Number(n?.total ?? r?.total) || i.length,
@@ -54818,11 +54881,11 @@ async function CB(e = 1, t = 10) {
54818
54881
  limit: t
54819
54882
  };
54820
54883
  }
54821
- async function wB(e, t) {
54822
- let n = bB(await x(k, `/workflow/${e}/stage/${t}`));
54884
+ async function EB(e, t) {
54885
+ let n = SB(await x(k, `/workflow/${e}/stage/${t}`));
54823
54886
  return Array.isArray(n) ? { data: n } : n;
54824
54887
  }
54825
- async function TB(e, t) {
54888
+ async function DB(e, t) {
54826
54889
  if (!e || !t) return null;
54827
54890
  try {
54828
54891
  let n = new URLSearchParams({
@@ -54836,7 +54899,7 @@ async function TB(e, t) {
54836
54899
  values: [String(t)],
54837
54900
  operator: "and"
54838
54901
  }])
54839
- }), r = bB(await x(k, `/module-data-list?${n}`));
54902
+ }), r = SB(await x(k, `/module-data-list?${n}`));
54840
54903
  if (Array.isArray(r)) return r[0] ?? null;
54841
54904
  if (r?.data && Array.isArray(r.data)) return r.data[0] ?? null;
54842
54905
  let i = r?.rows ?? r?.records ?? r?.items ?? r?.list;
@@ -54845,15 +54908,15 @@ async function TB(e, t) {
54845
54908
  return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
54846
54909
  }
54847
54910
  }
54848
- async function EB(e) {
54849
- return bB(await x(s, "/source/workflow-instance", {
54911
+ async function OB(e) {
54912
+ return SB(await x(s, "/source/workflow-instance", {
54850
54913
  method: "POST",
54851
54914
  body: JSON.stringify(e)
54852
54915
  }));
54853
54916
  }
54854
54917
  //#endregion
54855
54918
  //#region src/components/popups/definitions/tag-to-job/api.js
54856
- var DB = {
54919
+ var kB = {
54857
54920
  pipeline: "pipeline",
54858
54921
  goodfited: "goodfited",
54859
54922
  contacted: "contacted",
@@ -54862,40 +54925,40 @@ var DB = {
54862
54925
  interviewinprogress: "interviewInprogress",
54863
54926
  selected: "selected"
54864
54927
  };
54865
- function OB(e, ...t) {
54928
+ function AB(e, ...t) {
54866
54929
  for (let n of t) {
54867
54930
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
54868
54931
  if (t != null && t !== "") return t;
54869
54932
  }
54870
54933
  }
54871
- function kB(e) {
54934
+ function jB(e) {
54872
54935
  let t = String(e ?? "").trim();
54873
- return t ? DB[t.toLowerCase()] ?? t : "";
54936
+ return t ? kB[t.toLowerCase()] ?? t : "";
54874
54937
  }
54875
- function AB(e, t) {
54876
- let n = OB(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
54938
+ function MB(e, t) {
54939
+ let n = AB(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
54877
54940
  if (!n) return null;
54878
- let r = (OB(e, "candidateName", "candidate_name", "fullName", "name") ?? [OB(e, "firstName", "first_name"), OB(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
54941
+ let r = (AB(e, "candidateName", "candidate_name", "fullName", "name") ?? [AB(e, "firstName", "first_name"), AB(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
54879
54942
  candidateId: String(n),
54880
54943
  candidateName: r,
54881
- phone: OB(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
54882
- source: OB(e, "source", "sourceType", "candidateSource", "profileSource"),
54883
- submittedAt: OB(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
54884
- remarks: OB(e, "remarks", "comment", "comments", "notes"),
54885
- assignedRecruiter: OB(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
54886
- screeningStatus: OB(e, "screeningStatus", "screening.status", "screeningResult"),
54887
- screeningScore: OB(e, "screeningScore", "screening.score", "score"),
54888
- assignedDate: OB(e, "assignedDate", "assignedAt", "createdAt")
54944
+ phone: AB(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
54945
+ source: AB(e, "source", "sourceType", "candidateSource", "profileSource"),
54946
+ submittedAt: AB(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
54947
+ remarks: AB(e, "remarks", "comment", "comments", "notes"),
54948
+ assignedRecruiter: AB(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
54949
+ screeningStatus: AB(e, "screeningStatus", "screening.status", "screeningResult"),
54950
+ screeningScore: AB(e, "screeningScore", "screening.score", "score"),
54951
+ assignedDate: AB(e, "assignedDate", "assignedAt", "createdAt")
54889
54952
  };
54890
54953
  return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
54891
54954
  }
54892
- var jB = {
54955
+ var NB = {
54893
54956
  searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? Fc(t) : [],
54894
54957
  submit: async (e, t) => {
54895
- let n = e.jobId ?? t.jobId, r = Array.isArray(n) ? n : [n].filter(Boolean), i = kB(e.hiringStage ?? t.hiringStage), a = Array.isArray(t.selectedIds) ? t.selectedIds : [], o = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], s = Math.max(a.length, o.length, 1);
54958
+ let n = e.jobId ?? t.jobId, r = Array.isArray(n) ? n : [n].filter(Boolean), i = jB(e.hiringStage ?? t.hiringStage), a = Array.isArray(t.selectedIds) ? t.selectedIds : [], o = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], s = Math.max(a.length, o.length, 1);
54896
54959
  for (let e of r) for (let t = 0; t < s; t += 1) {
54897
- let n = a[t] ? String(a[t]) : "", r = AB(o[t] ?? {}, n);
54898
- await EB({
54960
+ let n = a[t] ? String(a[t]) : "", r = MB(o[t] ?? {}, n);
54961
+ await OB({
54899
54962
  jobId: e,
54900
54963
  module: "jobs",
54901
54964
  currentStage: i,
@@ -54910,7 +54973,7 @@ var jB = {
54910
54973
  });
54911
54974
  if (c?.status === !1) throw Error(c?.error || "Could not update hiring stage");
54912
54975
  }
54913
- }, MB = {
54976
+ }, PB = {
54914
54977
  title: "Change Status",
54915
54978
  okText: "Apply",
54916
54979
  width: 420,
@@ -54948,18 +55011,18 @@ var jB = {
54948
55011
  };
54949
55012
  //#endregion
54950
55013
  //#region src/components/popups/definitions/change-status/api.js
54951
- function NB(e, t) {
55014
+ function FB(e, t) {
54952
55015
  let n = String(e ?? "").trim().toLowerCase();
54953
55016
  return (Array.isArray(t?.status) ? t.status : []).find((e) => String(e?.value ?? "").trim().toLowerCase() === n || String(e?.label ?? "").trim().toLowerCase() === n || String(e?._raw?.name ?? "").trim().toLowerCase() === n) ?? null;
54954
55017
  }
54955
- var PB = { submit: async (e, t, n) => {
54956
- let r = NB(e.status, n?.dynamicOptions), i = r?._raw ?? {}, a = {
55018
+ var IB = { submit: async (e, t, n) => {
55019
+ let r = FB(e.status, n?.dynamicOptions), i = r?._raw ?? {}, a = {
54957
55020
  clientSubmissionStatusText: String(i.name ?? r?.label ?? e.status ?? "").trim(),
54958
55021
  clientSubmissionStatusId: Number(i.id ?? i.uniqueId ?? 0) || 0,
54959
55022
  clientSubmissionStatusType: String(i.type ?? "").trim()
54960
55023
  };
54961
55024
  await Nc(t.moduleName, t.selectedIds, a);
54962
- } }, FB = {
55025
+ } }, LB = {
54963
55026
  getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
54964
55027
  titleIcon: "delete",
54965
55028
  okText: "Remove",
@@ -54968,12 +55031,12 @@ var PB = { submit: async (e, t, n) => {
54968
55031
  getBodyText: (e) => e > 1 ? `Are you sure you want to remove ${e} selected candidates from the shortlist?` : "Are you sure you want to remove this candidate from the shortlist?",
54969
55032
  footerNote: "The candidate will be moved back to the pipeline.",
54970
55033
  fields: []
54971
- }, IB = { onOk: async (e) => {
55034
+ }, RB = { onOk: async (e) => {
54972
55035
  await ll({
54973
55036
  jobId: e.jobId ?? e.selectedIds[0],
54974
55037
  candidateIds: e.selectedIds
54975
55038
  });
54976
- } }, LB = {
55039
+ } }, zB = {
54977
55040
  title: "Add to Groups",
54978
55041
  description: "Select a group to add the selected candidate(s) to",
54979
55042
  okText: "Add to Group",
@@ -54987,7 +55050,7 @@ var PB = { submit: async (e, t, n) => {
54987
55050
  placeholder: "Select a group",
54988
55051
  fetchOptionsKey: "candidateGroups"
54989
55052
  }]
54990
- }, RB = {
55053
+ }, BB = {
54991
55054
  getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? Vc() : [],
54992
55055
  submit: async (e, t, { dynamicOptions: n }) => {
54993
55056
  let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
@@ -54997,7 +55060,7 @@ var PB = { submit: async (e, t, n) => {
54997
55060
  groupName: r?.label ?? ""
54998
55061
  });
54999
55062
  }
55000
- }, zB = [
55063
+ }, VB = [
55001
55064
  {
55002
55065
  title: "Name",
55003
55066
  key: "name",
@@ -55016,7 +55079,7 @@ var PB = { submit: async (e, t, n) => {
55016
55079
  render: (e) => e || "-"
55017
55080
  }
55018
55081
  ];
55019
- function BB({ selectedIds: e, onClose: t }) {
55082
+ function HB({ selectedIds: e, onClose: t }) {
55020
55083
  let n = e?.[0], [r, i] = L(!0), [a, o] = L(!1), [s, c] = L({
55021
55084
  assignedUsers: [],
55022
55085
  totalSubmissions: 0,
@@ -55080,7 +55143,7 @@ function BB({ selectedIds: e, onClose: t }) {
55080
55143
  children: "Team Members Allocated"
55081
55144
  }),
55082
55145
  /* @__PURE__ */ Y(Fa, {
55083
- columns: zB,
55146
+ columns: VB,
55084
55147
  dataSource: m,
55085
55148
  pagination: !1,
55086
55149
  rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
@@ -55129,25 +55192,25 @@ function BB({ selectedIds: e, onClose: t }) {
55129
55192
  })]
55130
55193
  });
55131
55194
  }
55132
- BB.propTypes = {
55195
+ HB.propTypes = {
55133
55196
  selectedIds: Z.array,
55134
55197
  onClose: Z.func
55135
55198
  };
55136
55199
  //#endregion
55137
55200
  //#region src/components/popups/definitions/self-assign/config.js
55138
- var VB = {
55201
+ var UB = {
55139
55202
  title: "Self Assign",
55140
55203
  width: 480,
55141
55204
  className: "self-assign-modal",
55142
- component: BB
55143
- }, HB = { submit: async () => {} };
55205
+ component: HB
55206
+ }, WB = { submit: async () => {} };
55144
55207
  //#endregion
55145
55208
  //#region src/components/popups/definitions/others-assign/config.js
55146
- function UB(e = {}) {
55209
+ function GB(e = {}) {
55147
55210
  let t = Array.isArray(e.jobPayDetails) ? e.jobPayDetails[e.jobPayDetails.length - 1] : e.jobPayDetails ?? e.clientBudget ?? {}, n = Number(t.clientBudgetEnd), r = Number(t.clientBudgetStart);
55148
55211
  return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
55149
55212
  }
55150
- var WB = {
55213
+ var KB = {
55151
55214
  getTitleText: (e, t, n) => {
55152
55215
  let r = n?.jobTitle || n?.title || "";
55153
55216
  return r ? `Assign - ${r}` : "Assign";
@@ -55157,7 +55220,7 @@ var WB = {
55157
55220
  disabledUntilFilled: !0,
55158
55221
  showAlreadyAssigned: !0,
55159
55222
  allowRemovalOnlySubmit: !0,
55160
- getFields: (e) => (UB(e?.selectedRecords?.[0] ?? {}), [{
55223
+ getFields: (e) => (GB(e?.selectedRecords?.[0] ?? {}), [{
55161
55224
  name: "assignToUserId",
55162
55225
  label: "Assign to",
55163
55226
  type: "multi-select",
@@ -55165,7 +55228,7 @@ var WB = {
55165
55228
  placeholder: "Select recruiter(s)",
55166
55229
  fetchOptionsKey: "assignToUsers"
55167
55230
  }])
55168
- }, GB = {
55231
+ }, qB = {
55169
55232
  getOptions: async (e, t, n) => e.fetchOptionsKey === "assignToUsers" ? Kc(n?.selectedIds?.[0]) : [],
55170
55233
  loadExtraData: async (e) => Jc(e.selectedIds[0]),
55171
55234
  removeAssignedUser: async ({ id: e }, t) => Yc({
@@ -55180,7 +55243,7 @@ var WB = {
55180
55243
  existingRecruiters: r?.recruitersData
55181
55244
  });
55182
55245
  }
55183
- }, KB = {
55246
+ }, JB = {
55184
55247
  title: "Add Sticky Notes",
55185
55248
  getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
55186
55249
  okText: "Save",
@@ -55212,7 +55275,7 @@ var WB = {
55212
55275
  initialValueKey: "editingComments"
55213
55276
  }
55214
55277
  ]
55215
- }, qB = {
55278
+ }, YB = {
55216
55279
  getMentionOptions: async (e, t) => Ic(t),
55217
55280
  submit: async (e, t) => {
55218
55281
  let n = e.targetDate ? e.targetDate.toISOString() : "";
@@ -55228,7 +55291,7 @@ var WB = {
55228
55291
  notes: e.comments
55229
55292
  }), window.dispatchEvent(new Event("sticky-notes:refresh"));
55230
55293
  }
55231
- }, JB = {
55294
+ }, XB = {
55232
55295
  title: "Move to Onboarding",
55233
55296
  bodyText: "Are you sure you want to move this candidate to onboarding?",
55234
55297
  okText: "Yes",
@@ -55241,7 +55304,7 @@ var WB = {
55241
55304
  type: "priority-checkbox",
55242
55305
  checkboxLabel: "Send Onboarding Email"
55243
55306
  }]
55244
- }, YB = { submit: async (e, t) => {
55307
+ }, ZB = { submit: async (e, t) => {
55245
55308
  await el({
55246
55309
  submissionId: t.selectedRecords?.[0]?.submissionId,
55247
55310
  isMail: e.sendOnboardingEmail
@@ -55249,39 +55312,39 @@ var WB = {
55249
55312
  } };
55250
55313
  //#endregion
55251
55314
  //#region src/components/popups/definitions/approve-rate/config.js
55252
- function XB(e) {
55315
+ function QB(e) {
55253
55316
  return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
55254
55317
  }
55255
- var ZB = {
55318
+ var $B = {
55256
55319
  USD: "$",
55257
55320
  INR: "₹",
55258
55321
  EUR: "€",
55259
55322
  GBP: "£"
55260
55323
  };
55261
- function QB(e, t, n) {
55262
- let r = XB(e?.[t])[n];
55324
+ function eV(e, t, n) {
55325
+ let r = QB(e?.[t])[n];
55263
55326
  if (r != null && r !== "") return r;
55264
55327
  let i = e?.[`${t}.${n}`];
55265
55328
  return i != null && i !== "" ? i : void 0;
55266
55329
  }
55267
- function $B(e) {
55268
- let t = e.selectedRecords?.[0] ?? {}, n = QB(t, "candidateRate", "candidateAcceptedRate") ?? QB(t, "candidateBudget", "candidateBudgetStart");
55330
+ function tV(e) {
55331
+ let t = e.selectedRecords?.[0] ?? {}, n = eV(t, "candidateRate", "candidateAcceptedRate") ?? eV(t, "candidateBudget", "candidateBudgetStart");
55269
55332
  if (n === void 0 || Number(n) === 0) return null;
55270
- let r = QB(t, "candidateRate", "candidateAcceptedCurrency") ?? QB(t, "candidateBudget", "candidateBudgetCurrency");
55333
+ let r = eV(t, "candidateRate", "candidateAcceptedCurrency") ?? eV(t, "candidateBudget", "candidateBudgetCurrency");
55271
55334
  return {
55272
55335
  amount: n,
55273
- symbol: QB(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? QB(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? ZB[String(r ?? "").toUpperCase()] ?? (r || "$"),
55274
- unit: QB(t, "candidateRate", "candidateAcceptedPayUnit") ?? QB(t, "candidateBudget", "candidateBudgetUnit") ?? ""
55336
+ symbol: eV(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? eV(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? $B[String(r ?? "").toUpperCase()] ?? (r || "$"),
55337
+ unit: eV(t, "candidateRate", "candidateAcceptedPayUnit") ?? eV(t, "candidateBudget", "candidateBudgetUnit") ?? ""
55275
55338
  };
55276
55339
  }
55277
- var eV = {
55340
+ var nV = {
55278
55341
  title: "Approve Rate",
55279
55342
  okText: "Approve",
55280
55343
  width: 520,
55281
55344
  className: "medium-modal",
55282
55345
  successMessage: "Rate approved",
55283
55346
  getBodyText: (e, t, n, r, i) => {
55284
- let a = $B(i);
55347
+ let a = tV(i);
55285
55348
  return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
55286
55349
  },
55287
55350
  fields: [
@@ -55295,7 +55358,7 @@ var eV = {
55295
55358
  inlineRow: "proposedRate",
55296
55359
  validator: (e, t) => {
55297
55360
  if (e == null || e === "") return;
55298
- let n = $B(t);
55361
+ let n = tV(t);
55299
55362
  if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
55300
55363
  }
55301
55364
  },
@@ -55363,7 +55426,7 @@ var eV = {
55363
55426
  }]
55364
55427
  }
55365
55428
  ]
55366
- }, tV = { submit: async (e, t) => {
55429
+ }, rV = { submit: async (e, t) => {
55367
55430
  let n = t.selectedIds[0];
55368
55431
  if (await tl(n, {
55369
55432
  candidateProposedRate: e.candidateProposedRate,
@@ -55379,7 +55442,7 @@ var eV = {
55379
55442
  } };
55380
55443
  //#endregion
55381
55444
  //#region src/services/mailApproveApi.js
55382
- async function nV(e, t = {}) {
55445
+ async function iV(e, t = {}) {
55383
55446
  let n = E();
55384
55447
  if (!n) {
55385
55448
  let e = /* @__PURE__ */ Error("Authentication required");
@@ -55399,8 +55462,8 @@ async function nV(e, t = {}) {
55399
55462
  }
55400
55463
  return i.json();
55401
55464
  }
55402
- async function rV(e) {
55403
- let t = await nV(`/mail-form?${new URLSearchParams({
55465
+ async function aV(e) {
55466
+ let t = await iV(`/mail-form?${new URLSearchParams({
55404
55467
  submissionId: e,
55405
55468
  submissionType: "manager"
55406
55469
  }).toString()}`);
@@ -55408,15 +55471,15 @@ async function rV(e) {
55408
55471
  }
55409
55472
  //#endregion
55410
55473
  //#region src/components/popups/definitions/manager-approve/managerApproveIdentity.js
55411
- function iV(...e) {
55474
+ function oV(...e) {
55412
55475
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
55413
55476
  }
55414
- var aV = (e, t) => !!e && e.toLowerCase() === iV(t).toLowerCase();
55415
- function oV(e, t, n) {
55416
- let r = iV(t.submittedBy);
55417
- return iV(aV(r, n) || aV(r, e.submitSource) || aV(r, e.supplierName) || aV(r, e.source) || aV(r, e.candidateSource) ? "" : r, e.recruitingUserName, e.recruitingUserEmail, e.signatureEmail);
55477
+ var sV = (e, t) => !!e && e.toLowerCase() === oV(t).toLowerCase();
55478
+ function cV(e, t, n) {
55479
+ let r = oV(t.submittedBy);
55480
+ return oV(sV(r, n) || sV(r, e.submitSource) || sV(r, e.supplierName) || sV(r, e.source) || sV(r, e.candidateSource) ? "" : r, e.recruitingUserName, e.recruitingUserEmail, e.signatureEmail);
55418
55481
  }
55419
- function sV(e, t = {}) {
55482
+ function lV(e, t = {}) {
55420
55483
  let n = qD(e, t.employerName);
55421
55484
  return {
55422
55485
  client: t.clientName ?? e.clientName,
@@ -55425,7 +55488,7 @@ function sV(e, t = {}) {
55425
55488
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
55426
55489
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
55427
55490
  vendor: n,
55428
- submittedBy: oV(e, t, n),
55491
+ submittedBy: cV(e, t, n),
55429
55492
  submittedAt: t.createdAt ?? e.createdAt,
55430
55493
  email: t.email ?? e.email,
55431
55494
  employerLocation: t.employerLocation,
@@ -55434,29 +55497,29 @@ function sV(e, t = {}) {
55434
55497
  }
55435
55498
  //#endregion
55436
55499
  //#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
55437
- function cV(e) {
55500
+ function uV(e) {
55438
55501
  return Array.isArray(e) ? e[e.length - 1] : e;
55439
55502
  }
55440
- function lV(e = {}) {
55441
- let t = cV(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
55503
+ function dV(e = {}) {
55504
+ let t = uV(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
55442
55505
  return Number.isFinite(n) ? n : 0;
55443
55506
  }
55444
- function uV(e, t = {}) {
55445
- let n = cV((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = cV(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
55507
+ function fV(e, t = {}) {
55508
+ let n = uV((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = uV(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
55446
55509
  return Number.isFinite(o) ? o : 0;
55447
55510
  }
55448
- function dV(e = {}) {
55511
+ function pV(e = {}) {
55449
55512
  let t = String(e?.currencyRaw ?? "").trim().toUpperCase(), n = String(e?.currency ?? "").trim();
55450
55513
  return n && !/^[A-Z]{3}$/i.test(n) ? n : t === "USD" || n.toUpperCase() === "USD" ? "$" : t === "INR" || n.toUpperCase() === "INR" ? "₹" : t === "EUR" || n.toUpperCase() === "EUR" ? "€" : t === "GBP" || n.toUpperCase() === "GBP" ? "£" : n || t;
55451
55514
  }
55452
- function fV(e = {}) {
55515
+ function mV(e = {}) {
55453
55516
  return String(e?.rateUnit ?? "hr").trim().replace(/^\/+/, "") || "hr";
55454
55517
  }
55455
- function pV(e, t = {}) {
55518
+ function hV(e, t = {}) {
55456
55519
  let n = Number(e);
55457
- return Number.isFinite(n) ? `${dV(t)}${n}/${fV(t)}` : "";
55520
+ return Number.isFinite(n) ? `${pV(t)}${n}/${mV(t)}` : "";
55458
55521
  }
55459
- function mV(e, t, n) {
55522
+ function gV(e, t, n) {
55460
55523
  if (n == null || n === "") return String(e ?? "");
55461
55524
  let r = String(e ?? ""), i = String(n), a = !1, o = RegExp(`(<(?:td|th)[^>]*>[\\s\\S]*?${t}[\\s\\S]*?</(?:td|th)>\\s*<(?:td|th)[^>]*>)([\\s\\S]*?)(</(?:td|th)>)`, "gi");
55462
55525
  r = r.replace(o, (e, t, n, r) => (a = !0, `${t}${i}${r}`));
@@ -55467,23 +55530,23 @@ function mV(e, t, n) {
55467
55530
  }
55468
55531
  return r;
55469
55532
  }
55470
- function hV(e, t, n, r, i) {
55471
- let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : lV(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : uV(r, i), l = {
55533
+ function _V(e, t, n, r, i) {
55534
+ let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : dV(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : fV(r, i), l = {
55472
55535
  proposedRate: o,
55473
55536
  jobBillRate: c
55474
55537
  }, u = String(e ?? "").replace(/{{\.?((?:proposedRate)|(?:jobBillRate))}}/g, (e, t) => {
55475
55538
  let n = l[t];
55476
55539
  return n == null ? e : String(n);
55477
55540
  });
55478
- return u = mV(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", pV(o, n)), u = mV(u, "(?:Job\\s*)?Bill\\s*Rate", pV(c, n)), u;
55541
+ return u = gV(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", hV(o, n)), u = gV(u, "(?:Job\\s*)?Bill\\s*Rate", hV(c, n)), u;
55479
55542
  }
55480
- function gV(e) {
55543
+ function vV(e) {
55481
55544
  let t = e?.$oid ?? e?._id?.$oid ?? e?._id ?? e?.id?.$oid ?? e?.id ?? e;
55482
55545
  if (t == null || typeof t == "object") return "";
55483
55546
  let n = String(t).trim();
55484
55547
  return /^[a-f\d]{24}$/i.test(n) ? n : "";
55485
55548
  }
55486
- function _V(...e) {
55549
+ function yV(...e) {
55487
55550
  for (let t of e) {
55488
55551
  let e = [
55489
55552
  t?.jobId,
@@ -55506,12 +55569,12 @@ function _V(...e) {
55506
55569
  t?.submission?.recordMeta?.jobId,
55507
55570
  t?.submission?.recordMeta?.JobId,
55508
55571
  t?.submission?.recordMeta?.job_id
55509
- ].map(gV).find(Boolean);
55572
+ ].map(vV).find(Boolean);
55510
55573
  if (e) return e;
55511
55574
  }
55512
55575
  return "";
55513
55576
  }
55514
- function vV(e) {
55577
+ function bV(e) {
55515
55578
  if (!e?.referralId) return {};
55516
55579
  let t = Number(e.referralRate ?? e.referalRate ?? 0) || 0, n = String(e.referralType ?? e.referalType ?? "RECURRING").trim() || "RECURRING", r = e.referralId ?? e.referalId;
55517
55580
  return {
@@ -55537,10 +55600,10 @@ function vV(e) {
55537
55600
  }
55538
55601
  };
55539
55602
  }
55540
- function yV(e = "") {
55603
+ function xV(e = "") {
55541
55604
  return String(e ?? "").replace(/map\[[^\]]*(?:resume|document|attachment|file)[^\]]*\]/gi, "").replace(/<p>\s*<\/p>/gi, "").replace(/(?:<br\s*\/?>\s*){3,}/gi, "<br><br>").trim();
55542
55605
  }
55543
- function bV(...e) {
55606
+ function SV(...e) {
55544
55607
  for (let t of e) {
55545
55608
  let e = [
55546
55609
  t?.candidateId,
@@ -55551,12 +55614,12 @@ function bV(...e) {
55551
55614
  t?.submission?.applicantId,
55552
55615
  t?.recordMeta?.candidateId,
55553
55616
  t?.recordMeta?.applicantId
55554
- ].map(gV).find(Boolean);
55617
+ ].map(vV).find(Boolean);
55555
55618
  if (e) return e;
55556
55619
  }
55557
55620
  return "";
55558
55621
  }
55559
- async function xV(e) {
55622
+ async function CV(e) {
55560
55623
  let t = e?.fileUrl ?? e?.downloadUrl ?? e?.url;
55561
55624
  if (!t) return null;
55562
55625
  let n = await fetch(t);
@@ -55564,34 +55627,34 @@ async function xV(e) {
55564
55627
  let r = await n.blob(), i = e?.fileName ?? e?.uploadedFileName ?? e?.originalName ?? e?.uniqueName ?? "resume";
55565
55628
  return new File([r], i, { type: e?.contentType || r.type || "application/octet-stream" });
55566
55629
  }
55567
- async function SV(e, t, n) {
55630
+ async function wV(e, t, n) {
55568
55631
  let r = [], i = await nt("submissions", e, "resume").catch(() => ({ data: [] }));
55569
55632
  r.push(...i?.data ?? []);
55570
- let a = bV(t?.record?.submission, n, t?.record);
55633
+ let a = SV(t?.record?.submission, n, t?.record);
55571
55634
  if (!a) {
55572
55635
  let t = await x(k, `/module/list?module=submissions&id=${encodeURIComponent(e)}`).catch(() => ({})), n = t?.data ?? t ?? {};
55573
- a = bV((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
55636
+ a = SV((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
55574
55637
  }
55575
55638
  if (a) {
55576
55639
  let e = await nt("candidates", a, "resume").catch(() => ({ data: [] }));
55577
55640
  r.push(...e?.data ?? []);
55578
55641
  }
55579
- let o = (await Promise.all(r.map(xV))).filter(Boolean), s = /* @__PURE__ */ new Set();
55642
+ let o = (await Promise.all(r.map(CV))).filter(Boolean), s = /* @__PURE__ */ new Set();
55580
55643
  return o.filter((e) => {
55581
55644
  let t = `${e.name}:${e.size}:${e.type}`;
55582
55645
  return !s.has(t) && (s.add(t), !0);
55583
55646
  });
55584
55647
  }
55585
- function CV(e = {}) {
55648
+ function TV(e = {}) {
55586
55649
  return {
55587
55650
  to: (e.to ?? e.To ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
55588
55651
  cc: (e.cc ?? e.Cc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
55589
55652
  bcc: (e.bcc ?? e.Bcc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
55590
55653
  subject: e.subject ?? e.Subject ?? "",
55591
- contents: yV(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
55654
+ contents: xV(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
55592
55655
  };
55593
55656
  }
55594
- function wV({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
55657
+ function EV({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
55595
55658
  let a = n?.[0] ?? {}, o = t?.[0] ?? TD(a), [s, c] = L(null), [l, u] = L(!0), [d, f] = L([]), [p, m] = L(!1), [h, g] = L("vms"), [_, v] = L(null), [y, b] = L(null), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), [D, O] = L(!1), [k, A] = L({
55596
55659
  to: "",
55597
55660
  cc: "",
@@ -55630,13 +55693,13 @@ function wV({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
55630
55693
  if (h === "mail") {
55631
55694
  m(!1), w(!0), E(!0);
55632
55695
  try {
55633
- let [e, t] = await Promise.all([rV(o).then(CV), SV(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
55696
+ let [e, t] = await Promise.all([aV(o).then(TV), wV(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
55634
55697
  A({
55635
- to: hV(e.to, n, _, s, a),
55636
- cc: hV(e.cc, n, _, s, a),
55637
- bcc: hV(e.bcc, n, _, s, a),
55638
- subject: hV(e.subject, n, _, s, a),
55639
- contents: hV(e.contents, n, _, s, a),
55698
+ to: _V(e.to, n, _, s, a),
55699
+ cc: _V(e.cc, n, _, s, a),
55700
+ bcc: _V(e.bcc, n, _, s, a),
55701
+ subject: _V(e.subject, n, _, s, a),
55702
+ contents: _V(e.contents, n, _, s, a),
55640
55703
  attachments: t,
55641
55704
  showCc: !!e.cc,
55642
55705
  showBcc: !!e.bcc
@@ -55655,7 +55718,7 @@ function wV({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
55655
55718
  candidateProposedRateCurrency: _.currencyRaw ?? _.currency,
55656
55719
  candidateProposedRateUnit: _.rateUnit,
55657
55720
  submitVia: "VMS",
55658
- ...vV(y)
55721
+ ...bV(y)
55659
55722
  }), q.success("Submission approved"), m(!1), v(null), b(null), i?.({ success: !0 });
55660
55723
  } catch (e) {
55661
55724
  q.error(e?.message ?? "Unable to approve submission");
@@ -55677,9 +55740,9 @@ function wV({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
55677
55740
  await tl(o, {
55678
55741
  ...e,
55679
55742
  submitVia: "VMS",
55680
- ...vV(y)
55743
+ ...bV(y)
55681
55744
  });
55682
- let t = _V(s?.record, a);
55745
+ let t = yV(s?.record, a);
55683
55746
  if (!t) q.warning("Submission approved, but job details were not available to send mail");
55684
55747
  else try {
55685
55748
  await sd({
@@ -55733,7 +55796,7 @@ function wV({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
55733
55796
  type: $E,
55734
55797
  record: s.record,
55735
55798
  lookups: s.lookups,
55736
- identity: sV(a, s.display),
55799
+ identity: lV(a, s.display),
55737
55800
  referralOptions: d,
55738
55801
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
55739
55802
  actions: re,
@@ -55822,7 +55885,7 @@ function wV({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
55822
55885
  })
55823
55886
  ] });
55824
55887
  }
55825
- wV.propTypes = {
55888
+ EV.propTypes = {
55826
55889
  context: Z.object,
55827
55890
  selectedIds: Z.array,
55828
55891
  selectedRecords: Z.array,
@@ -55831,29 +55894,29 @@ wV.propTypes = {
55831
55894
  };
55832
55895
  //#endregion
55833
55896
  //#region src/components/popups/definitions/manager-approve/config.js
55834
- var TV = {
55897
+ var DV = {
55835
55898
  title: "Manager Approve",
55836
55899
  width: 780,
55837
55900
  className: "fa-modal manager-approve-modal",
55838
- component: wV
55839
- }, EV = { submit: async () => {} };
55901
+ component: EV
55902
+ }, OV = { submit: async () => {} };
55840
55903
  //#endregion
55841
55904
  //#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
55842
- function DV(e) {
55905
+ function kV(e) {
55843
55906
  let t = Array.isArray(e) ? e : [];
55844
55907
  for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
55845
55908
  return null;
55846
55909
  }
55847
- function OV(e) {
55910
+ function AV(e) {
55848
55911
  return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
55849
55912
  }
55850
- function kV({ selectedIds: e, selectedRecords: t, onClose: n }) {
55913
+ function jV({ selectedIds: e, selectedRecords: t, onClose: n }) {
55851
55914
  let r = t?.[0] ?? {}, i = e?.[0] ?? TD(r), [a, o] = L(null), [s, c] = L(""), [l, u] = L(!0);
55852
55915
  F(() => {
55853
55916
  let e = !1;
55854
55917
  return u(!0), Promise.all([yO(i, r), re("submission", i).catch(() => [])]).then(([t, n]) => {
55855
55918
  if (e) return;
55856
- let i = DV(n);
55919
+ let i = kV(n);
55857
55920
  c(TD(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
55858
55921
  let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
55859
55922
  o({
@@ -55862,7 +55925,7 @@ function kV({ selectedIds: e, selectedRecords: t, onClose: n }) {
55862
55925
  ...t.record,
55863
55926
  submission: {
55864
55927
  ...t.record.submission,
55865
- cfoRejectionReason: a ? OV(a) : "",
55928
+ cfoRejectionReason: a ? AV(a) : "",
55866
55929
  cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
55867
55930
  }
55868
55931
  }
@@ -55910,26 +55973,26 @@ function kV({ selectedIds: e, selectedRecords: t, onClose: n }) {
55910
55973
  type: rD,
55911
55974
  record: a.record,
55912
55975
  lookups: a.lookups,
55913
- identity: sV(r, a.display),
55976
+ identity: lV(r, a.display),
55914
55977
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
55915
55978
  actions: d,
55916
55979
  onClose: () => n?.(),
55917
55980
  variant: "popup"
55918
55981
  });
55919
55982
  }
55920
- kV.propTypes = {
55983
+ jV.propTypes = {
55921
55984
  selectedIds: Z.array,
55922
55985
  selectedRecords: Z.array,
55923
55986
  onClose: Z.func
55924
55987
  };
55925
55988
  //#endregion
55926
55989
  //#region src/components/popups/definitions/manager-reapprove/config.js
55927
- var AV = {
55990
+ var MV = {
55928
55991
  title: "Re-Approve",
55929
55992
  width: 780,
55930
55993
  className: "fa-modal manager-approve-modal",
55931
- component: kV
55932
- }, jV = { submit: async () => {} }, MV = [
55994
+ component: jV
55995
+ }, NV = { submit: async () => {} }, PV = [
55933
55996
  {
55934
55997
  id: 1,
55935
55998
  name: "Re-Submission"
@@ -55942,7 +56005,7 @@ var AV = {
55942
56005
  id: 3,
55943
56006
  name: "Incomplete candidate details - (Re-Submission)"
55944
56007
  }
55945
- ], NV = {
56008
+ ], FV = {
55946
56009
  title: "Reject",
55947
56010
  okText: "Reject",
55948
56011
  okButtonDanger: !0,
@@ -55954,7 +56017,7 @@ var AV = {
55954
56017
  type: "select",
55955
56018
  required: !0,
55956
56019
  placeholder: "Select rejection reasons",
55957
- defaultOptions: MV.map((e) => ({
56020
+ defaultOptions: PV.map((e) => ({
55958
56021
  label: e.name,
55959
56022
  value: e.id
55960
56023
  }))
@@ -55965,88 +56028,88 @@ var AV = {
55965
56028
  required: !0,
55966
56029
  rows: 4
55967
56030
  }]
55968
- }, PV = { submit: async (e, t) => {
55969
- let n = MV.find((t) => String(t.id) === String(e.rejectReason));
56031
+ }, IV = { submit: async (e, t) => {
56032
+ let n = PV.find((t) => String(t.id) === String(e.rejectReason));
55970
56033
  await il({
55971
56034
  submissionId: t.selectedIds[0],
55972
56035
  rejectReasonId: e.rejectReason,
55973
56036
  rejectReason: n?.name ?? "",
55974
56037
  rejectReasonComments: e.rejectReasonComments
55975
56038
  });
55976
- } }, FV = {
55977
- delete: Lz,
55978
- "quick-submit": fB,
55979
- "add-notes": pB,
55980
- "tag-to-job": yB,
55981
- "change-status": MB,
55982
- "remove-from-shortlist": FB,
55983
- "add-to-groups": LB,
55984
- "self-assign": VB,
55985
- "others-assign": WB,
55986
- "sticky-notes": KB,
55987
- "move-to-onboarding": JB,
55988
- "approve-rate": eV,
55989
- "manager-approve": TV,
55990
- "manager-reapprove": AV,
55991
- reject: NV
55992
- }, IV = {
55993
- delete: Rz,
55994
- "quick-submit": dB,
55995
- "add-notes": gB,
55996
- "tag-to-job": jB,
56039
+ } }, LV = {
56040
+ delete: zz,
56041
+ "quick-submit": mB,
56042
+ "add-notes": hB,
56043
+ "tag-to-job": xB,
55997
56044
  "change-status": PB,
55998
- "remove-from-shortlist": IB,
55999
- "add-to-groups": RB,
56000
- "self-assign": HB,
56001
- "others-assign": GB,
56002
- "sticky-notes": qB,
56003
- "move-to-onboarding": YB,
56004
- "approve-rate": tV,
56005
- "manager-approve": EV,
56006
- "manager-reapprove": jV,
56007
- reject: PV
56045
+ "remove-from-shortlist": LB,
56046
+ "add-to-groups": zB,
56047
+ "self-assign": UB,
56048
+ "others-assign": KB,
56049
+ "sticky-notes": JB,
56050
+ "move-to-onboarding": XB,
56051
+ "approve-rate": nV,
56052
+ "manager-approve": DV,
56053
+ "manager-reapprove": MV,
56054
+ reject: FV
56055
+ }, RV = {
56056
+ delete: Bz,
56057
+ "quick-submit": pB,
56058
+ "add-notes": vB,
56059
+ "tag-to-job": NB,
56060
+ "change-status": IB,
56061
+ "remove-from-shortlist": RB,
56062
+ "add-to-groups": BB,
56063
+ "self-assign": WB,
56064
+ "others-assign": qB,
56065
+ "sticky-notes": YB,
56066
+ "move-to-onboarding": ZB,
56067
+ "approve-rate": rV,
56068
+ "manager-approve": OV,
56069
+ "manager-reapprove": NV,
56070
+ reject: IV
56008
56071
  };
56009
56072
  //#endregion
56010
56073
  //#region src/components/popups/AddBatchCandidatePopup.jsx
56011
- function LV(e) {
56074
+ function zV(e) {
56012
56075
  let t = e?.data ?? e;
56013
56076
  return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
56014
56077
  }
56015
- function RV(e, ...t) {
56078
+ function BV(e, ...t) {
56016
56079
  for (let n of t) {
56017
56080
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
56018
56081
  if (t != null && t !== "") return t;
56019
56082
  }
56020
56083
  return "";
56021
56084
  }
56022
- function zV(e) {
56023
- let t = String(RV(e, "isDeleted", "deleted")).toLowerCase(), n = String(RV(e, "assignmentStatus", "status")).toLowerCase();
56085
+ function VV(e) {
56086
+ let t = String(BV(e, "isDeleted", "deleted")).toLowerCase(), n = String(BV(e, "assignmentStatus", "status")).toLowerCase();
56024
56087
  return t !== "true" && t !== "1" && ![
56025
56088
  "removed",
56026
56089
  "inactive",
56027
56090
  "deleted"
56028
56091
  ].includes(n);
56029
56092
  }
56030
- function BV(e) {
56031
- let t = RV(e, "candidateName", "candidate_name", "fullName", "name");
56032
- return t ? String(t) : [RV(e, "firstName", "first_name"), RV(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
56033
- }
56034
- function VV(e) {
56035
- return String(RV(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
56036
- }
56037
56093
  function HV(e) {
56038
- return String(RV(e, "workforceEngagementId", "engagementId", "_id", "id"));
56094
+ let t = BV(e, "candidateName", "candidate_name", "fullName", "name");
56095
+ return t ? String(t) : [BV(e, "firstName", "first_name"), BV(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
56039
56096
  }
56040
56097
  function UV(e) {
56041
- return String(RV(e, "batchName", "name", "title", "batch_name"));
56098
+ return String(BV(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
56099
+ }
56100
+ function WV(e) {
56101
+ return String(BV(e, "workforceEngagementId", "engagementId", "_id", "id"));
56042
56102
  }
56043
- function WV({ open: e = !0, context: t = {}, onClose: n }) {
56103
+ function GV(e) {
56104
+ return String(BV(e, "batchName", "name", "title", "batch_name"));
56105
+ }
56106
+ function KV({ open: e = !0, context: t = {}, onClose: n }) {
56044
56107
  let [r, i] = L([]), [a, o] = L([]), [s, c] = L(""), [l, u] = L(!0), [d, f] = L(!1), [p, m] = L(""), [h, g] = L(/* @__PURE__ */ new Map()), _ = String(t.selectedIds?.[0] ?? t.selectedRecords?.[0]?._id ?? t.selectedRecords?.[0]?.id ?? t.batchId ?? "");
56045
56108
  F(() => {
56046
56109
  if (!e) return;
56047
56110
  let t = !1;
56048
56111
  return Promise.resolve().then(() => (t || u(!0), Promise.all([ce("onboarding", 200, 0), ce("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
56049
- t || (i(LV(e)), g(new Map(LV(n).filter(zV).map((e) => [String(RV(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
56112
+ t || (i(zV(e)), g(new Map(zV(n).filter(VV).map((e) => [String(BV(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
56050
56113
  }).catch((e) => {
56051
56114
  t || m(e.message || "Unable to load onboarding candidates");
56052
56115
  }).finally(() => {
@@ -56058,9 +56121,9 @@ function WV({ open: e = !0, context: t = {}, onClose: n }) {
56058
56121
  let v = I(() => {
56059
56122
  let e = s.trim().toLowerCase();
56060
56123
  return e ? r.filter((t) => [
56061
- BV(t),
56062
- RV(t, "email", "candidateEmail", "candidate_email"),
56063
- RV(t, "status", "onboardingStatus", "onboarding_status")
56124
+ HV(t),
56125
+ BV(t, "email", "candidateEmail", "candidate_email"),
56126
+ BV(t, "status", "onboardingStatus", "onboarding_status")
56064
56127
  ].some((t) => String(t).toLowerCase().includes(e))) : r;
56065
56128
  }, [r, s]);
56066
56129
  async function y() {
@@ -56068,26 +56131,26 @@ function WV({ open: e = !0, context: t = {}, onClose: n }) {
56068
56131
  m("Select a batch before adding candidates");
56069
56132
  return;
56070
56133
  }
56071
- let e = r.filter((e) => a.includes(HV(e)));
56134
+ let e = r.filter((e) => a.includes(WV(e)));
56072
56135
  if (!e.length) return;
56073
56136
  let i = e.map((e) => ({
56074
56137
  record: e,
56075
- assignment: h.get(VV(e))
56138
+ assignment: h.get(UV(e))
56076
56139
  })).filter((e) => e.assignment);
56077
56140
  if (i.length) {
56078
- let e = i.map(({ record: e }) => BV(e)).join(", ");
56141
+ let e = i.map(({ record: e }) => HV(e)).join(", ");
56079
56142
  m(`${e} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
56080
56143
  return;
56081
56144
  }
56082
56145
  f(!0), m("");
56083
56146
  try {
56084
- let { userId: r } = w(), i = UV(t.selectedRecords?.[0]) || UV(t);
56147
+ let { userId: r } = w(), i = GV(t.selectedRecords?.[0]) || GV(t);
56085
56148
  await Promise.all(e.map((e) => Lt("batchCandidates", {
56086
56149
  schemaVersion: 1,
56087
56150
  batchId: _,
56088
56151
  batchName: i,
56089
- candidateId: VV(e),
56090
- workforceEngagementId: HV(e),
56152
+ candidateId: UV(e),
56153
+ workforceEngagementId: WV(e),
56091
56154
  source: "ONBOARDING",
56092
56155
  assignmentStatus: "ASSIGNED",
56093
56156
  assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -56130,22 +56193,22 @@ function WV({ open: e = !0, context: t = {}, onClose: n }) {
56130
56193
  style: { marginBottom: 12 }
56131
56194
  }),
56132
56195
  /* @__PURE__ */ Y(Fa, {
56133
- rowKey: (e) => HV(e),
56196
+ rowKey: (e) => WV(e),
56134
56197
  columns: [
56135
56198
  {
56136
56199
  title: "Candidate",
56137
56200
  key: "candidate",
56138
- render: (e, t) => BV(t)
56201
+ render: (e, t) => HV(t)
56139
56202
  },
56140
56203
  {
56141
56204
  title: "Email",
56142
56205
  key: "email",
56143
- render: (e, t) => RV(t, "email", "candidateEmail", "candidate_email") || "—"
56206
+ render: (e, t) => BV(t, "email", "candidateEmail", "candidate_email") || "—"
56144
56207
  },
56145
56208
  {
56146
56209
  title: "Onboarding status",
56147
56210
  key: "status",
56148
- render: (e, t) => RV(t, "status", "onboardingStatus", "onboarding_status") || "—"
56211
+ render: (e, t) => BV(t, "status", "onboardingStatus", "onboarding_status") || "—"
56149
56212
  }
56150
56213
  ],
56151
56214
  dataSource: v,
@@ -56159,9 +56222,9 @@ function WV({ open: e = !0, context: t = {}, onClose: n }) {
56159
56222
  selectedRowKeys: a,
56160
56223
  onChange: o,
56161
56224
  getCheckboxProps: (e) => {
56162
- let t = h.get(VV(e));
56225
+ let t = h.get(UV(e));
56163
56226
  return {
56164
- disabled: !VV(e) || !HV(e) || !!t,
56227
+ disabled: !UV(e) || !WV(e) || !!t,
56165
56228
  title: t ? "Candidate is already added to a batch" : void 0
56166
56229
  };
56167
56230
  }
@@ -56173,7 +56236,7 @@ function WV({ open: e = !0, context: t = {}, onClose: n }) {
56173
56236
  }
56174
56237
  //#endregion
56175
56238
  //#region src/components/popups/dynamic/DynamicPopupRoute.jsx
56176
- var GV = {
56239
+ var qV = {
56177
56240
  text: "input",
56178
56241
  string: "input",
56179
56242
  textarea: "textarea",
@@ -56182,30 +56245,30 @@ var GV = {
56182
56245
  multiselect: "multi-select",
56183
56246
  lookup: "search-select"
56184
56247
  };
56185
- function KV(e) {
56248
+ function JV(e) {
56186
56249
  if (!e) return null;
56187
56250
  let t = [...e.groups ?? []].sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)).flatMap((e) => [...e.fields ?? []].filter((e) => e.show !== 0 && e.show !== !1).sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)).map((e) => ({
56188
56251
  ...e,
56189
56252
  name: e.name ?? e.field,
56190
56253
  label: e.label ?? e.field,
56191
- type: GV[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
56254
+ type: qV[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
56192
56255
  required: e.required ?? e.req === 1,
56193
56256
  options: (e.options ?? []).map((e) => ({
56194
56257
  label: e.label ?? e.name ?? e.value,
56195
56258
  value: e.value ?? e.id ?? e.label
56196
56259
  }))
56197
- }))), n = qV(e.successNavigate);
56260
+ }))), n = YV(e.successNavigate);
56198
56261
  return {
56199
56262
  title: e.label,
56200
56263
  fields: t,
56201
56264
  ...n ? { successNavigate: n } : {}
56202
56265
  };
56203
56266
  }
56204
- function qV(e) {
56267
+ function YV(e) {
56205
56268
  let t = String(e ?? "").trim();
56206
56269
  return !t || !t.startsWith("/") || t.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(t) ? null : t;
56207
56270
  }
56208
- function JV(e, t = []) {
56271
+ function XV(e, t = []) {
56209
56272
  if (!e || !Array.isArray(t) || !t.length) return e;
56210
56273
  let n = new Map(t.filter((e) => e?.name).map((e) => [String(e.name), e]));
56211
56274
  return n.size ? {
@@ -56221,12 +56284,12 @@ function JV(e, t = []) {
56221
56284
  })
56222
56285
  } : e;
56223
56286
  }
56224
- function YV({ apiMap: e = {}, extraConfigs: t = {} }) {
56287
+ function ZV({ apiMap: e = {}, extraConfigs: t = {} }) {
56225
56288
  let n = I(() => ({
56226
- ...IV,
56289
+ ...RV,
56227
56290
  ...e
56228
56291
  }), [e]), r = I(() => {
56229
- let e = { ...FV };
56292
+ let e = { ...LV };
56230
56293
  return Object.entries(t).forEach(([t, n]) => {
56231
56294
  e[t] = {
56232
56295
  ...e[t] ?? {},
@@ -56244,7 +56307,7 @@ function YV({ apiMap: e = {}, extraConfigs: t = {} }) {
56244
56307
  return qe(o.moduleName, "popup", i).then((n) => {
56245
56308
  e || c({
56246
56309
  key: t,
56247
- config: KV(n[0])
56310
+ config: JV(n[0])
56248
56311
  });
56249
56312
  }).catch(() => {
56250
56313
  e || c({
@@ -56257,7 +56320,7 @@ function YV({ apiMap: e = {}, extraConfigs: t = {} }) {
56257
56320
  }, [i, o.moduleName]);
56258
56321
  let l = I(() => {
56259
56322
  let e = r[i], t = `${o.moduleName}:${i}`, n = s.key === t ? s.config : null;
56260
- return JV(n ? {
56323
+ return XV(n ? {
56261
56324
  ...e,
56262
56325
  ...n
56263
56326
  } : e, o.popupAction?.popupFieldOverrides);
@@ -56316,11 +56379,11 @@ function YV({ apiMap: e = {}, extraConfigs: t = {} }) {
56316
56379
  }
56317
56380
  a(-1);
56318
56381
  };
56319
- return i === "add-batch-candidate" ? /* @__PURE__ */ Y(WV, {
56382
+ return i === "add-batch-candidate" ? /* @__PURE__ */ Y(KV, {
56320
56383
  open: !0,
56321
56384
  context: u,
56322
56385
  onClose: f
56323
- }) : /* @__PURE__ */ Y(Iz, {
56386
+ }) : /* @__PURE__ */ Y(Rz, {
56324
56387
  open: !0,
56325
56388
  config: l,
56326
56389
  context: u,
@@ -56333,7 +56396,7 @@ function YV({ apiMap: e = {}, extraConfigs: t = {} }) {
56333
56396
  }
56334
56397
  //#endregion
56335
56398
  //#region src/components/popups/definitions/vendor-share/config.js
56336
- var XV = {
56399
+ var QV = {
56337
56400
  title: "Vendor Share",
56338
56401
  maxVendorSelect: 1e3,
56339
56402
  defaultTab: "myVendor",
@@ -56367,7 +56430,7 @@ var XV = {
56367
56430
  key: "updatedOn"
56368
56431
  }
56369
56432
  ]
56370
- }, ZV = {
56433
+ }, $V = {
56371
56434
  getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => nd({
56372
56435
  jobId: e,
56373
56436
  limit: t,
@@ -56384,11 +56447,11 @@ var XV = {
56384
56447
  subject: i,
56385
56448
  contents: a
56386
56449
  })
56387
- }, QV = XV.vendorColumns.map((e) => ({
56450
+ }, eH = QV.vendorColumns.map((e) => ({
56388
56451
  ...e,
56389
56452
  render: (e) => e || "-"
56390
56453
  }));
56391
- function $V() {
56454
+ function tH() {
56392
56455
  let e = Zs(), t = Xs(), { selectedIds: n = [], selectedRecords: r = [], recipients: i = [], subject: a = "", onSend: o, moduleName: s = "", popupAction: c = {} } = t.state ?? {}, l = n[0] ?? r[0]?._id ?? r[0]?.id, [u, d] = L({
56393
56456
  to: i.join(", "),
56394
56457
  cc: "",
@@ -56397,13 +56460,13 @@ function $V() {
56397
56460
  contents: "",
56398
56461
  showCc: !1,
56399
56462
  showBcc: !1
56400
- }), [f, p] = L(!l), [m, h] = L(XV.defaultTab), [g, _] = L(""), [v, y] = L([]), [b, x] = L(0), [S, C] = L(0), [w, T] = L(0), [E, D] = L(1), [O, k] = L(XV.defaultPageSize), [A, j] = L(!1), [ee, te] = L([]);
56463
+ }), [f, p] = L(!l), [m, h] = L(QV.defaultTab), [g, _] = L(""), [v, y] = L([]), [b, x] = L(0), [S, C] = L(0), [w, T] = L(0), [E, D] = L(1), [O, k] = L(QV.defaultPageSize), [A, j] = L(!1), [ee, te] = L([]);
56401
56464
  F(() => {
56402
56465
  if (!l) return;
56403
56466
  let e = !1;
56404
56467
  j(!0);
56405
56468
  let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
56406
- return ZV.getVendorList({
56469
+ return $V.getVendorList({
56407
56470
  jobId: l,
56408
56471
  limit: t,
56409
56472
  offset: n,
@@ -56426,7 +56489,7 @@ function $V() {
56426
56489
  O,
56427
56490
  g
56428
56491
  ]), F(() => {
56429
- l && ZV.getMailDetails(l).then((e) => d((t) => ({
56492
+ l && $V.getMailDetails(l).then((e) => d((t) => ({
56430
56493
  ...t,
56431
56494
  subject: e.subject || t.subject,
56432
56495
  contents: e.contents || t.contents,
@@ -56451,7 +56514,7 @@ function $V() {
56451
56514
  e(-1);
56452
56515
  }
56453
56516
  function oe() {
56454
- re && ZV.submit({
56517
+ re && $V.submit({
56455
56518
  jobId: l,
56456
56519
  toMail: hL(N.to),
56457
56520
  ccMail: hL(N.cc),
@@ -56532,7 +56595,7 @@ function $V() {
56532
56595
  ]
56533
56596
  }), /* @__PURE__ */ Y("div", {
56534
56597
  className: "vendor-share__vendor-tabs",
56535
- children: XV.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
56598
+ children: QV.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
56536
56599
  className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
56537
56600
  onClick: () => {
56538
56601
  h(e.key), D(1), te([]);
@@ -56550,7 +56613,7 @@ function $V() {
56550
56613
  className: "vendor-share__vendor-table-wrapper",
56551
56614
  children: /* @__PURE__ */ Y(Fa, {
56552
56615
  rowKey: (e) => e.vendorId,
56553
- columns: QV,
56616
+ columns: eH,
56554
56617
  dataSource: se,
56555
56618
  loading: A,
56556
56619
  pagination: !1,
@@ -56558,7 +56621,7 @@ function $V() {
56558
56621
  rowSelection: {
56559
56622
  selectedRowKeys: ee,
56560
56623
  onChange: (e) => {
56561
- e.length > XV.maxVendorSelect || te(e);
56624
+ e.length > QV.maxVendorSelect || te(e);
56562
56625
  }
56563
56626
  },
56564
56627
  scroll: { y: "calc(100vh - 340px)" }
@@ -56592,7 +56655,7 @@ function $V() {
56592
56655
  children: [
56593
56656
  ee.length,
56594
56657
  " / ",
56595
- XV.maxVendorSelect,
56658
+ QV.maxVendorSelect,
56596
56659
  " Vendors selected"
56597
56660
  ]
56598
56661
  }) : null
@@ -56603,7 +56666,7 @@ function $V() {
56603
56666
  }
56604
56667
  //#endregion
56605
56668
  //#region src/components/form/validation.js
56606
- var eH = {
56669
+ var nH = {
56607
56670
  EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
56608
56671
  PHONE: /^[0-9]{10}$/,
56609
56672
  PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
@@ -56620,7 +56683,7 @@ var eH = {
56620
56683
  FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
56621
56684
  NO_SPACES: /^\S+$/,
56622
56685
  STARTS_WITH_CAPITAL: /^[A-Z].*$/
56623
- }, tH = {
56686
+ }, rH = {
56624
56687
  SINGLE_FILE_COUNT: 1,
56625
56688
  MULTI_FILE_COUNT: 5,
56626
56689
  MAX_FILE_SIZE: 2,
@@ -56629,7 +56692,7 @@ var eH = {
56629
56692
  "image/png",
56630
56693
  "application/pdf"
56631
56694
  ]
56632
- }, nH = {
56695
+ }, iH = {
56633
56696
  REQUIRED: (e) => "Mandatory Field",
56634
56697
  INVALID_EMAIL: "Please enter a valid email address.",
56635
56698
  INVALID_PHONE: "Phone number must contain exactly 10 digits.",
@@ -56649,16 +56712,16 @@ var eH = {
56649
56712
  NO_SPACES_ALLOWED: "Spaces are not allowed.",
56650
56713
  MUST_START_WITH_CAPITAL: "First letter must be capital.",
56651
56714
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
56652
- INVALID_FILE_SIZE: `File upload must be ${tH.MAX_FILE_SIZE} MB below.`,
56715
+ INVALID_FILE_SIZE: `File upload must be ${rH.MAX_FILE_SIZE} MB below.`,
56653
56716
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
56654
56717
  SINGLE_FILE_ONLY: "Only one file can be uploaded."
56655
- }, rH = {
56718
+ }, aH = {
56656
56719
  FIRST_NAME_MIN: 3,
56657
56720
  FIRST_NAME_MAX: 30
56658
- }, iH = {
56721
+ }, oH = {
56659
56722
  REMARKS_MIN: 10,
56660
56723
  REMARKS_MAX: 250
56661
- }, aH = {
56724
+ }, sH = {
56662
56725
  removeSpaces: (e = "") => e.replace(/\s/g, ""),
56663
56726
  capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
56664
56727
  capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
@@ -56670,132 +56733,132 @@ var eH = {
56670
56733
  let t = e.replace(/\D/g, "");
56671
56734
  return t.length <= 2 ? t : t.length <= 4 ? `${t.slice(0, 2)}/${t.slice(2)}` : `${t.slice(0, 2)}/${t.slice(2, 4)}/${t.slice(4, 8)}`;
56672
56735
  }
56673
- }, oH = {
56736
+ }, cH = {
56674
56737
  required: (e = "Field") => ({
56675
56738
  required: !0,
56676
- message: nH.REQUIRED(e)
56739
+ message: iH.REQUIRED(e)
56677
56740
  }),
56678
56741
  email: () => ({
56679
- pattern: eH.EMAIL,
56680
- message: nH.INVALID_EMAIL
56742
+ pattern: nH.EMAIL,
56743
+ message: iH.INVALID_EMAIL
56681
56744
  }),
56682
56745
  phone: () => ({
56683
- pattern: eH.PHONE,
56684
- message: nH.INVALID_PHONE
56746
+ pattern: nH.PHONE,
56747
+ message: iH.INVALID_PHONE
56685
56748
  }),
56686
56749
  password: () => ({
56687
- pattern: eH.PASSWORD,
56688
- message: nH.INVALID_PASSWORD
56750
+ pattern: nH.PASSWORD,
56751
+ message: iH.INVALID_PASSWORD
56689
56752
  }),
56690
56753
  alphabets: () => ({
56691
- pattern: eH.ALPHABETS,
56692
- message: nH.INVALID_ALPHABETS
56754
+ pattern: nH.ALPHABETS,
56755
+ message: iH.INVALID_ALPHABETS
56693
56756
  }),
56694
56757
  alphanumeric: () => ({
56695
- pattern: eH.ALPHANUMERIC,
56696
- message: nH.INVALID_ALPHANUMERIC
56758
+ pattern: nH.ALPHANUMERIC,
56759
+ message: iH.INVALID_ALPHANUMERIC
56697
56760
  }),
56698
56761
  number: () => ({
56699
- pattern: eH.NUMBER,
56700
- message: nH.INVALID_NUMBER
56762
+ pattern: nH.NUMBER,
56763
+ message: iH.INVALID_NUMBER
56701
56764
  }),
56702
56765
  url: () => ({
56703
- pattern: eH.URL,
56704
- message: nH.INVALID_URL
56766
+ pattern: nH.URL,
56767
+ message: iH.INVALID_URL
56705
56768
  }),
56706
56769
  candidateId: (e = "ID") => ({
56707
- pattern: eH.CANDIDATE_ID,
56708
- message: nH.INVALID_CANDIDATE_ID(e)
56770
+ pattern: nH.CANDIDATE_ID,
56771
+ message: iH.INVALID_CANDIDATE_ID(e)
56709
56772
  }),
56710
56773
  remarks: () => ({
56711
- pattern: eH.REMARKS,
56712
- message: nH.INVALID_REMARKS,
56713
- REMARKS_MIN: `Remarks must be at least ${iH.REMARKS_MIN} characters.`,
56714
- REMARKS_MAX: `Remarks must not exceed ${iH.REMARKS_MAX} characters.`
56774
+ pattern: nH.REMARKS,
56775
+ message: iH.INVALID_REMARKS,
56776
+ REMARKS_MIN: `Remarks must be at least ${oH.REMARKS_MIN} characters.`,
56777
+ REMARKS_MAX: `Remarks must not exceed ${oH.REMARKS_MAX} characters.`
56715
56778
  }),
56716
56779
  designation: () => ({
56717
- pattern: eH.DESIGNATION,
56718
- message: nH.INVALID_DESIGNATION
56780
+ pattern: nH.DESIGNATION,
56781
+ message: iH.INVALID_DESIGNATION
56719
56782
  }),
56720
56783
  dob: (e = !0) => ({ validator: (t, n) => {
56721
56784
  if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
56722
- if (!eH.DOB.test(n)) return Promise.reject(Error(nH.INVALID_DOB));
56785
+ if (!nH.DOB.test(n)) return Promise.reject(Error(iH.INVALID_DOB));
56723
56786
  let r = Us(n, "MM/DD/YYYY", !0);
56724
- if (!r.isValid()) return Promise.reject(Error(nH.INVALID_DOB));
56787
+ if (!r.isValid()) return Promise.reject(Error(iH.INVALID_DOB));
56725
56788
  let i = Us().endOf("day");
56726
56789
  return r.isAfter(i) ? Promise.reject(/* @__PURE__ */ Error("Date of Birth cannot be a future date.")) : i.diff(r, "year") < 21 ? Promise.reject(/* @__PURE__ */ Error("Age must be at least 21 years.")) : Promise.resolve();
56727
56790
  } }),
56728
56791
  linkedin: () => ({
56729
- pattern: eH.LINKEDIN,
56730
- message: nH.INVALID_LINKEDIN
56792
+ pattern: nH.LINKEDIN,
56793
+ message: iH.INVALID_LINKEDIN
56731
56794
  }),
56732
56795
  companyName: () => ({
56733
- pattern: eH.COMPANY_NAME,
56734
- message: nH.INVALID_COMPANY_NAME
56796
+ pattern: nH.COMPANY_NAME,
56797
+ message: iH.INVALID_COMPANY_NAME
56735
56798
  }),
56736
56799
  firstName: () => ({
56737
- pattern: eH.FIRST_NAME,
56738
- message: nH.INVALID_FIRST_NAME,
56739
- FIRST_NAME_MIN: `First Name must be at least ${rH.FIRST_NAME_MIN} characters.`,
56740
- FIRST_NAME_MAX: `First Name must not exceed ${rH.FIRST_NAME_MAX} characters.`
56800
+ pattern: nH.FIRST_NAME,
56801
+ message: iH.INVALID_FIRST_NAME,
56802
+ FIRST_NAME_MIN: `First Name must be at least ${aH.FIRST_NAME_MIN} characters.`,
56803
+ FIRST_NAME_MAX: `First Name must not exceed ${aH.FIRST_NAME_MAX} characters.`
56741
56804
  }),
56742
56805
  firstNameMinLength: () => ({
56743
- min: rH.FIRST_NAME_MIN,
56744
- message: nH.FIRST_NAME_MIN
56806
+ min: aH.FIRST_NAME_MIN,
56807
+ message: iH.FIRST_NAME_MIN
56745
56808
  }),
56746
56809
  firstNameMaxLength: () => ({
56747
- max: rH.FIRST_NAME_MAX,
56748
- message: nH.FIRST_NAME_MAX
56810
+ max: aH.FIRST_NAME_MAX,
56811
+ message: iH.FIRST_NAME_MAX
56749
56812
  }),
56750
56813
  remarksMinLength: () => ({
56751
- min: iH.REMARKS_MIN,
56752
- message: nH.REMARKS_MIN
56814
+ min: oH.REMARKS_MIN,
56815
+ message: iH.REMARKS_MIN
56753
56816
  }),
56754
56817
  remarksMaxLength: () => ({
56755
- max: iH.REMARKS_MAX,
56756
- message: nH.REMARKS_MAX
56818
+ max: oH.REMARKS_MAX,
56819
+ message: iH.REMARKS_MAX
56757
56820
  }),
56758
56821
  fullName: () => ({
56759
- pattern: eH.FULL_NAME,
56760
- message: nH.INVALID_FULL_NAME
56822
+ pattern: nH.FULL_NAME,
56823
+ message: iH.INVALID_FULL_NAME
56761
56824
  }),
56762
56825
  noSpaces: () => ({
56763
- pattern: eH.NO_SPACES,
56764
- message: nH.NO_SPACES_ALLOWED
56826
+ pattern: nH.NO_SPACES,
56827
+ message: iH.NO_SPACES_ALLOWED
56765
56828
  }),
56766
56829
  startsWithCapital: () => ({
56767
- pattern: eH.STARTS_WITH_CAPITAL,
56768
- message: nH.MUST_START_WITH_CAPITAL
56830
+ pattern: nH.STARTS_WITH_CAPITAL,
56831
+ message: iH.MUST_START_WITH_CAPITAL
56769
56832
  }),
56770
56833
  fileUpload: () => ({ validator: (e, t) => {
56771
56834
  if (!t || t.length === 0) return Promise.resolve();
56772
56835
  for (let e of t) {
56773
56836
  let t = e.originFileObj || e;
56774
- if (!(t.size / 1024 / 1024 <= tH.MAX_FILE_SIZE)) return q.error(nH.INVALID_FILE_SIZE), Promise.reject(Error(nH.INVALID_FILE_SIZE));
56775
- if (!tH.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(nH.INVALID_FILE_TYPE));
56837
+ if (!(t.size / 1024 / 1024 <= rH.MAX_FILE_SIZE)) return q.error(iH.INVALID_FILE_SIZE), Promise.reject(Error(iH.INVALID_FILE_SIZE));
56838
+ if (!rH.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(iH.INVALID_FILE_TYPE));
56776
56839
  }
56777
56840
  return Promise.resolve();
56778
56841
  } }),
56779
56842
  singleFileUpload: () => ({ validator: (e, t) => {
56780
56843
  if (!t || t.length === 0) return Promise.resolve();
56781
- if (t.length > tH.SINGLE_FILE_COUNT) return Promise.reject(Error(nH.SINGLE_FILE_ONLY));
56844
+ if (t.length > rH.SINGLE_FILE_COUNT) return Promise.reject(Error(iH.SINGLE_FILE_ONLY));
56782
56845
  let n = t[0];
56783
- return n.size / 1024 / 1024 < tH.MAX_FILE_SIZE ? tH.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(nH.INVALID_FILE_TYPE)) : Promise.reject(Error(nH.INVALID_FILE_SIZE));
56846
+ return n.size / 1024 / 1024 < rH.MAX_FILE_SIZE ? rH.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(iH.INVALID_FILE_TYPE)) : Promise.reject(Error(iH.INVALID_FILE_SIZE));
56784
56847
  } }),
56785
56848
  multiFileUpload: () => ({ validator: (e, t) => {
56786
56849
  if (!t || t.length === 0) return Promise.resolve();
56787
- if (t.length > tH.MULTI_FILE_COUNT) return Promise.reject(Error(nH.INVALID_FILE_COUNT));
56850
+ if (t.length > rH.MULTI_FILE_COUNT) return Promise.reject(Error(iH.INVALID_FILE_COUNT));
56788
56851
  for (let e of t) {
56789
- if (!(e.size / 1024 / 1024 < tH.MAX_FILE_SIZE)) return Promise.reject(Error(nH.INVALID_FILE_SIZE));
56790
- if (!tH.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(nH.INVALID_FILE_TYPE));
56852
+ if (!(e.size / 1024 / 1024 < rH.MAX_FILE_SIZE)) return Promise.reject(Error(iH.INVALID_FILE_SIZE));
56853
+ if (!rH.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(iH.INVALID_FILE_TYPE));
56791
56854
  }
56792
56855
  return Promise.resolve();
56793
56856
  } })
56794
- }, sH = { beforeUpload: (e) => [
56857
+ }, lH = { beforeUpload: (e) => [
56795
56858
  "image/jpeg",
56796
56859
  "image/png",
56797
56860
  "application/pdf"
56798
- ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), Ba.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), Ba.LIST_IGNORE) }, cH = () => {
56861
+ ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), Ba.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), Ba.LIST_IGNORE) }, uH = () => {
56799
56862
  let [e] = B.useForm();
56800
56863
  return /* @__PURE__ */ Y("div", {
56801
56864
  style: { padding: 24 },
@@ -56815,7 +56878,7 @@ var eH = {
56815
56878
  children: /* @__PURE__ */ Y(B.Item, {
56816
56879
  label: "Email",
56817
56880
  name: "email",
56818
- rules: [oH.required("Email"), oH.email()],
56881
+ rules: [cH.required("Email"), cH.email()],
56819
56882
  children: /* @__PURE__ */ Y(V, {})
56820
56883
  })
56821
56884
  }),
@@ -56824,12 +56887,12 @@ var eH = {
56824
56887
  children: /* @__PURE__ */ Y(B.Item, {
56825
56888
  label: "Phone Number",
56826
56889
  name: "phone",
56827
- rules: [oH.required("Phone Number"), oH.phone()],
56890
+ rules: [cH.required("Phone Number"), cH.phone()],
56828
56891
  validateTrigger: ["onBlur", "onChange"],
56829
56892
  children: /* @__PURE__ */ Y(V, {
56830
56893
  maxLength: 10,
56831
56894
  onChange: (t) => {
56832
- e.setFieldsValue({ phone: aH.phoneFormatter(t.target.value) });
56895
+ e.setFieldsValue({ phone: sH.phoneFormatter(t.target.value) });
56833
56896
  }
56834
56897
  })
56835
56898
  })
@@ -56839,7 +56902,7 @@ var eH = {
56839
56902
  children: /* @__PURE__ */ Y(B.Item, {
56840
56903
  label: "Password",
56841
56904
  name: "password",
56842
- rules: [oH.required("Password"), oH.password()],
56905
+ rules: [cH.required("Password"), cH.password()],
56843
56906
  children: /* @__PURE__ */ Y(V.Password, {})
56844
56907
  })
56845
56908
  }),
@@ -56849,13 +56912,13 @@ var eH = {
56849
56912
  label: "Full Name",
56850
56913
  name: "fullName",
56851
56914
  rules: [
56852
- oH.required("Full Name"),
56853
- oH.alphabets(),
56854
- oH.firstNameMinLength(),
56855
- oH.firstNameMaxLength()
56915
+ cH.required("Full Name"),
56916
+ cH.alphabets(),
56917
+ cH.firstNameMinLength(),
56918
+ cH.firstNameMaxLength()
56856
56919
  ],
56857
56920
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
56858
- e.setFieldsValue({ fullName: aH.firstNameFormatter(t.target.value) });
56921
+ e.setFieldsValue({ fullName: sH.firstNameFormatter(t.target.value) });
56859
56922
  } })
56860
56923
  })
56861
56924
  }),
@@ -56864,9 +56927,9 @@ var eH = {
56864
56927
  children: /* @__PURE__ */ Y(B.Item, {
56865
56928
  label: "Username",
56866
56929
  name: "username",
56867
- rules: [oH.required("Username"), oH.alphanumeric()],
56930
+ rules: [cH.required("Username"), cH.alphanumeric()],
56868
56931
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
56869
- e.setFieldsValue({ username: aH.removeExtraSpaces(t.target.value) });
56932
+ e.setFieldsValue({ username: sH.removeExtraSpaces(t.target.value) });
56870
56933
  } })
56871
56934
  })
56872
56935
  }),
@@ -56875,9 +56938,9 @@ var eH = {
56875
56938
  children: /* @__PURE__ */ Y(B.Item, {
56876
56939
  label: "Website URL",
56877
56940
  name: "website",
56878
- rules: [oH.required("Website URL"), oH.url()],
56941
+ rules: [cH.required("Website URL"), cH.url()],
56879
56942
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
56880
- e.setFieldsValue({ website: aH.removeExtraSpaces(t.target.value) });
56943
+ e.setFieldsValue({ website: sH.removeExtraSpaces(t.target.value) });
56881
56944
  } })
56882
56945
  })
56883
56946
  }),
@@ -56886,9 +56949,9 @@ var eH = {
56886
56949
  children: /* @__PURE__ */ Y(B.Item, {
56887
56950
  label: "MSP Req ID",
56888
56951
  name: "mspreqID",
56889
- rules: [oH.required("MSP Req ID"), oH.candidateId("MSP Req ID")],
56952
+ rules: [cH.required("MSP Req ID"), cH.candidateId("MSP Req ID")],
56890
56953
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
56891
- e.setFieldsValue({ mspreqID: aH.removeExtraSpaces(t.target.value) });
56954
+ e.setFieldsValue({ mspreqID: sH.removeExtraSpaces(t.target.value) });
56892
56955
  } })
56893
56956
  })
56894
56957
  }),
@@ -56897,9 +56960,9 @@ var eH = {
56897
56960
  children: /* @__PURE__ */ Y(B.Item, {
56898
56961
  label: "Candidate ID",
56899
56962
  name: "candidateId",
56900
- rules: [oH.required("Candidate ID"), oH.candidateId("Candidate ID")],
56963
+ rules: [cH.required("Candidate ID"), cH.candidateId("Candidate ID")],
56901
56964
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
56902
- e.setFieldsValue({ candidateId: aH.removeExtraSpaces(t.target.value) });
56965
+ e.setFieldsValue({ candidateId: sH.removeExtraSpaces(t.target.value) });
56903
56966
  } })
56904
56967
  })
56905
56968
  }),
@@ -56909,10 +56972,10 @@ var eH = {
56909
56972
  label: "Remarks",
56910
56973
  name: "remarks",
56911
56974
  rules: [
56912
- oH.required("Remarks"),
56913
- oH.remarks(),
56914
- oH.remarksMinLength(),
56915
- oH.remarksMaxLength()
56975
+ cH.required("Remarks"),
56976
+ cH.remarks(),
56977
+ cH.remarksMinLength(),
56978
+ cH.remarksMaxLength()
56916
56979
  ],
56917
56980
  children: /* @__PURE__ */ Y(V.TextArea, { rows: 4 })
56918
56981
  })
@@ -56922,7 +56985,7 @@ var eH = {
56922
56985
  children: /* @__PURE__ */ Y(B.Item, {
56923
56986
  label: "Designation",
56924
56987
  name: "designation",
56925
- rules: [oH.required("Designation"), oH.designation()],
56988
+ rules: [cH.required("Designation"), cH.designation()],
56926
56989
  children: /* @__PURE__ */ Y(V, {})
56927
56990
  })
56928
56991
  }),
@@ -56931,12 +56994,12 @@ var eH = {
56931
56994
  children: /* @__PURE__ */ Y(B.Item, {
56932
56995
  label: "Date of Birth",
56933
56996
  name: "dob",
56934
- rules: [oH.dob()],
56997
+ rules: [cH.dob()],
56935
56998
  children: /* @__PURE__ */ Y(V, {
56936
56999
  placeholder: "MM/DD/YYYY",
56937
57000
  maxLength: 10,
56938
57001
  onChange: (t) => {
56939
- e.setFieldsValue({ dob: aH.dobFormatter(t.target.value) });
57002
+ e.setFieldsValue({ dob: sH.dobFormatter(t.target.value) });
56940
57003
  }
56941
57004
  })
56942
57005
  })
@@ -56946,7 +57009,7 @@ var eH = {
56946
57009
  children: /* @__PURE__ */ Y(B.Item, {
56947
57010
  label: "Company Name",
56948
57011
  name: "companyName",
56949
- rules: [oH.required("Company Name"), oH.companyName()],
57012
+ rules: [cH.required("Company Name"), cH.companyName()],
56950
57013
  children: /* @__PURE__ */ Y(V, {})
56951
57014
  })
56952
57015
  }),
@@ -57035,7 +57098,7 @@ var eH = {
57035
57098
  label: "Resume new",
57036
57099
  name: "resume",
57037
57100
  children: /* @__PURE__ */ Y(Ba, {
57038
- beforeUpload: sH.beforeUpload,
57101
+ beforeUpload: lH.beforeUpload,
57039
57102
  maxCount: 1,
57040
57103
  children: /* @__PURE__ */ Y(R, { children: "Upload Resume" })
57041
57104
  })
@@ -57048,10 +57111,10 @@ var eH = {
57048
57111
  name: "documents",
57049
57112
  valuePropName: "fileList",
57050
57113
  getValueFromEvent: (e) => e?.fileList,
57051
- rules: [oH.multiFileUpload()],
57114
+ rules: [cH.multiFileUpload()],
57052
57115
  children: /* @__PURE__ */ Y(Ba, {
57053
57116
  multiple: !0,
57054
- beforeUpload: sH.beforeUpload,
57117
+ beforeUpload: lH.beforeUpload,
57055
57118
  children: /* @__PURE__ */ Y(R, { children: "Upload Documents" })
57056
57119
  })
57057
57120
  })
@@ -57063,9 +57126,9 @@ var eH = {
57063
57126
  name: "file",
57064
57127
  valuePropName: "fileList",
57065
57128
  getValueFromEvent: (e) => e?.fileList,
57066
- rules: [oH.fileUpload()],
57129
+ rules: [cH.fileUpload()],
57067
57130
  children: /* @__PURE__ */ Y(Ba, {
57068
- beforeUpload: sH.beforeUpload,
57131
+ beforeUpload: lH.beforeUpload,
57069
57132
  maxCount: 1,
57070
57133
  children: /* @__PURE__ */ Y(R, { children: "Upload" })
57071
57134
  })
@@ -57125,7 +57188,7 @@ var eH = {
57125
57188
  };
57126
57189
  //#endregion
57127
57190
  //#region src/components/admin/RegionBanner.jsx
57128
- function lH({ region: e, onExit: t }) {
57191
+ function dH({ region: e, onExit: t }) {
57129
57192
  if (!e || e.isHome) return null;
57130
57193
  let n = e.label?.trim() || e.key;
57131
57194
  return /* @__PURE__ */ X("div", {
@@ -57194,25 +57257,25 @@ function lH({ region: e, onExit: t }) {
57194
57257
  ]
57195
57258
  });
57196
57259
  }
57197
- lH.propTypes = {
57260
+ dH.propTypes = {
57198
57261
  region: Z.shape({
57199
57262
  key: Z.string,
57200
57263
  label: Z.string,
57201
57264
  isHome: Z.bool
57202
57265
  }),
57203
57266
  onExit: Z.func
57204
- }, lH.defaultProps = {
57267
+ }, dH.defaultProps = {
57205
57268
  region: null,
57206
57269
  onExit: void 0
57207
57270
  };
57208
57271
  //#endregion
57209
57272
  //#region src/pages/admin/AdminPageWithShell.jsx
57210
- function uH(e) {
57273
+ function fH(e) {
57211
57274
  return /* @__PURE__ */ Y(Bk, { children: /* @__PURE__ */ Y(sL, { ...e }) });
57212
57275
  }
57213
57276
  //#endregion
57214
57277
  //#region src/components/cards/StatsCards.jsx
57215
- var { Text: dH } = za, fH = [
57278
+ var { Text: pH } = za, mH = [
57216
57279
  {
57217
57280
  label: "Total Jobs",
57218
57281
  value: 1697,
@@ -57228,13 +57291,13 @@ var { Text: dH } = za, fH = [
57228
57291
  value: 600,
57229
57292
  icon: "user"
57230
57293
  }
57231
- ], pH = {
57294
+ ], hH = {
57232
57295
  fileText: /* @__PURE__ */ Y(Io, {}),
57233
57296
  checkCircle: /* @__PURE__ */ Y(io, {}),
57234
57297
  user: /* @__PURE__ */ Y(Bs, {}),
57235
57298
  filter: /* @__PURE__ */ Y(Ro, {})
57236
57299
  };
57237
- function mH({ stats: e = fH }) {
57300
+ function gH({ stats: e = mH }) {
57238
57301
  return /* @__PURE__ */ Y(la, { children: /* @__PURE__ */ Y(ka, {
57239
57302
  gutter: [12, 12],
57240
57303
  children: e.map((e) => /* @__PURE__ */ Y(z, {
@@ -57247,7 +57310,7 @@ function mH({ stats: e = fH }) {
57247
57310
  className: "stats-inner-card",
57248
57311
  children: [/* @__PURE__ */ X(U, {
57249
57312
  align: "center",
57250
- children: [pH[e.icon] ?? pH.fileText, /* @__PURE__ */ Y(dH, { children: e.label })]
57313
+ children: [hH[e.icon] ?? hH.fileText, /* @__PURE__ */ Y(pH, { children: e.label })]
57251
57314
  }), /* @__PURE__ */ Y(Na, { value: e.value })]
57252
57315
  })
57253
57316
  }, e.label))
@@ -57255,21 +57318,21 @@ function mH({ stats: e = fH }) {
57255
57318
  }
57256
57319
  //#endregion
57257
57320
  //#region src/pages/Modules/Admin/UsersSection.jsx
57258
- var { Text: hH } = za;
57259
- function gH(e) {
57321
+ var { Text: _H } = za;
57322
+ function vH(e) {
57260
57323
  return e?.USER_NAME ?? e?.user_name ?? e?.username ?? e?.name ?? e?.full_name ?? e?.fullName ?? e?.email ?? `User ${e?.USER_ID ?? e?.user_id ?? "?"}`;
57261
57324
  }
57262
- function _H(e) {
57325
+ function yH(e) {
57263
57326
  return {
57264
57327
  ...e,
57265
57328
  key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
57266
- _name: gH(e),
57329
+ _name: vH(e),
57267
57330
  _email: e.email ?? e.EMAIL ?? e.user_email ?? "",
57268
57331
  _role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
57269
57332
  _rawRef: e
57270
57333
  };
57271
57334
  }
57272
- function vH() {
57335
+ function bH() {
57273
57336
  let [e, t] = L([]), [n, r] = L(0), [i, a] = L(!1), [o, s] = L(1), [c, l] = L(10), [u, d] = L(""), f = $i(async ({ offset: e, limit: n, searchQuery: i } = {}) => {
57274
57337
  a(!0);
57275
57338
  try {
@@ -57277,7 +57340,7 @@ function vH() {
57277
57340
  offset: e,
57278
57341
  limit: n,
57279
57342
  searchQuery: i ?? ""
57280
- }), o = (a.users ?? []).map(_H);
57343
+ }), o = (a.users ?? []).map(yH);
57281
57344
  t(o), r(a.total ?? o.length);
57282
57345
  } catch {
57283
57346
  q.error("Failed to load users");
@@ -57310,7 +57373,7 @@ function vH() {
57310
57373
  label: "Name",
57311
57374
  value: "_name",
57312
57375
  width: 220,
57313
- render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(hH, {
57376
+ render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(_H, {
57314
57377
  strong: !0,
57315
57378
  style: { fontSize: 13 },
57316
57379
  children: e
@@ -57342,7 +57405,7 @@ function vH() {
57342
57405
  }
57343
57406
  //#endregion
57344
57407
  //#region src/pages/Modules/Admin/TeamsSection.jsx
57345
- var { Text: yH } = za, bH = [
57408
+ var { Text: xH } = za, SH = [
57346
57409
  {
57347
57410
  key: "job",
57348
57411
  label: "Jobs"
@@ -57355,7 +57418,7 @@ var { Text: yH } = za, bH = [
57355
57418
  key: "submissions",
57356
57419
  label: "Submissions"
57357
57420
  }
57358
- ], xH = [
57421
+ ], CH = [
57359
57422
  {
57360
57423
  key: "listView",
57361
57424
  label: "List View"
@@ -57369,7 +57432,7 @@ var { Text: yH } = za, bH = [
57369
57432
  label: "Form"
57370
57433
  }
57371
57434
  ];
57372
- function SH({ field: e, index: t, onToggle: n, onReorder: r }) {
57435
+ function wH({ field: e, index: t, onToggle: n, onReorder: r }) {
57373
57436
  let i = ra(null), [a, o] = L(!1), [s, c] = L(!1);
57374
57437
  function l(e) {
57375
57438
  i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
@@ -57433,7 +57496,7 @@ function SH({ field: e, index: t, onToggle: n, onReorder: r }) {
57433
57496
  ]
57434
57497
  });
57435
57498
  }
57436
- function CH({ team: e, configType: t }) {
57499
+ function TH({ team: e, configType: t }) {
57437
57500
  let [n, r] = L({}), [i, a] = L(!1), [o, s] = L({}), [c, l] = L("job");
57438
57501
  F(() => {
57439
57502
  e && (a(!0), $n(e, t).then(r).catch(() => q.error("Failed to load field config")).finally(() => a(!1)));
@@ -57484,7 +57547,7 @@ function CH({ team: e, configType: t }) {
57484
57547
  size: "small",
57485
57548
  activeKey: c,
57486
57549
  onChange: l,
57487
- items: bH.map((e) => ({
57550
+ items: SH.map((e) => ({
57488
57551
  key: e.key,
57489
57552
  label: e.label
57490
57553
  }))
@@ -57513,7 +57576,7 @@ function CH({ team: e, configType: t }) {
57513
57576
  children: [u.length === 0 && !i && /* @__PURE__ */ Y("div", {
57514
57577
  className: "uss-empty",
57515
57578
  children: "No fields found."
57516
- }), u.map((e, t) => /* @__PURE__ */ Y(SH, {
57579
+ }), u.map((e, t) => /* @__PURE__ */ Y(wH, {
57517
57580
  field: e,
57518
57581
  index: t,
57519
57582
  onToggle: f,
@@ -57527,13 +57590,13 @@ function CH({ team: e, configType: t }) {
57527
57590
  size: "small",
57528
57591
  loading: o[c],
57529
57592
  onClick: m,
57530
- children: ["Save ", bH.find((e) => e.key === c)?.label]
57593
+ children: ["Save ", SH.find((e) => e.key === c)?.label]
57531
57594
  })
57532
57595
  })
57533
57596
  ]
57534
57597
  });
57535
57598
  }
57536
- function wH() {
57599
+ function EH() {
57537
57600
  let [e, t] = L(null), [n, r] = L(!1), [i, a] = L(!1), [o, s] = L("listView"), [c, l] = L([]), [u, d] = L(0), [f, p] = L(!1), [m, h] = L(""), [g, _] = L(!1), v = $i(async () => {
57538
57601
  p(!0);
57539
57602
  try {
@@ -57680,13 +57743,13 @@ function wH() {
57680
57743
  style: { marginBottom: 12 },
57681
57744
  children: /* @__PURE__ */ Y("div", {
57682
57745
  className: "uss-config-toggle",
57683
- children: xH.map((e) => /* @__PURE__ */ Y("button", {
57746
+ children: CH.map((e) => /* @__PURE__ */ Y("button", {
57684
57747
  className: `uss-config-btn${o === e.key ? " active" : ""}`,
57685
57748
  onClick: () => s(e.key),
57686
57749
  children: e.label
57687
57750
  }, e.key))
57688
57751
  })
57689
- }), e && /* @__PURE__ */ Y(CH, {
57752
+ }), e && /* @__PURE__ */ Y(TH, {
57690
57753
  team: e,
57691
57754
  configType: o
57692
57755
  }, `${e?.teamId}-${o}`)]
@@ -57695,12 +57758,12 @@ function wH() {
57695
57758
  }
57696
57759
  //#endregion
57697
57760
  //#region src/pages/Modules/Admin/components/RolePermPanel.jsx
57698
- var TH = [
57761
+ var DH = [
57699
57762
  "view",
57700
57763
  "add",
57701
57764
  "edit",
57702
57765
  "delete"
57703
- ], EH = {
57766
+ ], OH = {
57704
57767
  view: "View",
57705
57768
  add: "Add",
57706
57769
  edit: "Edit",
@@ -57715,18 +57778,18 @@ var TH = [
57715
57778
  reApprove: "ReApprove",
57716
57779
  sendApprove: "Send Approve"
57717
57780
  };
57718
- function DH(e) {
57719
- return EH[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
57781
+ function kH(e) {
57782
+ return OH[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
57720
57783
  }
57721
- function OH(e) {
57722
- let t = TH.filter((t) => e.includes(t)), n = e.filter((e) => !TH.includes(e)).sort();
57784
+ function AH(e) {
57785
+ let t = DH.filter((t) => e.includes(t)), n = e.filter((e) => !DH.includes(e)).sort();
57723
57786
  return [...t, ...n];
57724
57787
  }
57725
- function kH(e) {
57788
+ function jH(e) {
57726
57789
  let t = /* @__PURE__ */ new Set();
57727
- return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), OH([...t]);
57790
+ return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), AH([...t]);
57728
57791
  }
57729
- function AH(e) {
57792
+ function MH(e) {
57730
57793
  let t = 0, n = 0;
57731
57794
  return Object.entries(e).forEach(([e, { permissions: r }]) => {
57732
57795
  Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
@@ -57737,7 +57800,7 @@ function AH(e) {
57737
57800
  total: n
57738
57801
  };
57739
57802
  }
57740
- function jH(e = {}) {
57803
+ function NH(e = {}) {
57741
57804
  if (!e || typeof e != "object") return e;
57742
57805
  let t = Object.keys(e).find((e) => String(e).trim().toLowerCase() === "onboarding");
57743
57806
  if (!t) return e;
@@ -57754,7 +57817,7 @@ function jH(e = {}) {
57754
57817
  }
57755
57818
  };
57756
57819
  }
57757
- function MH({ value: e, onSave: t, className: n }) {
57820
+ function PH({ value: e, onSave: t, className: n }) {
57758
57821
  let [r, i] = L(!1), [a, o] = L(e);
57759
57822
  F(() => {
57760
57823
  o(e);
@@ -57783,7 +57846,7 @@ function MH({ value: e, onSave: t, className: n }) {
57783
57846
  children: [e, /* @__PURE__ */ Y(Co, { className: "perm-name-edit-icon" })]
57784
57847
  });
57785
57848
  }
57786
- function NH({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
57849
+ function FH({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
57787
57850
  let [i, a] = L(!1), [o, s] = L(t), c = e?.value === "1", l = !!e;
57788
57851
  F(() => {
57789
57852
  s(t);
@@ -57825,13 +57888,13 @@ function NH({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
57825
57888
  })
57826
57889
  });
57827
57890
  }
57828
- function PH({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
57891
+ function IH({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
57829
57892
  let c = t?.permissions ?? {}, l = n.filter((t) => QA(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
57830
57893
  return /* @__PURE__ */ X("div", {
57831
57894
  className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
57832
57895
  children: [/* @__PURE__ */ X("div", {
57833
57896
  className: "perm-module-card-header",
57834
- children: [/* @__PURE__ */ Y(MH, {
57897
+ children: [/* @__PURE__ */ Y(PH, {
57835
57898
  value: i,
57836
57899
  onSave: (t) => o(e, t),
57837
57900
  className: "perm-module-card-name"
@@ -57845,20 +57908,20 @@ function PH({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
57845
57908
  })]
57846
57909
  }), /* @__PURE__ */ Y("div", {
57847
57910
  className: "perm-module-card-body",
57848
- children: l.map((t) => /* @__PURE__ */ Y(NH, {
57911
+ children: l.map((t) => /* @__PURE__ */ Y(FH, {
57849
57912
  entry: c[t],
57850
- label: a[t] ?? DH(t),
57913
+ label: a[t] ?? kH(t),
57851
57914
  onToggle: () => r(e, t),
57852
57915
  onLabelSave: (e) => s(t, e)
57853
57916
  }, t))
57854
57917
  })]
57855
57918
  });
57856
57919
  }
57857
- function FH({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
57920
+ function LH({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
57858
57921
  let [a, o] = L({}), [s, c] = L({}), [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(!1), h = zn(e);
57859
57922
  F(() => {
57860
57923
  h && (u(!0), m(!1), kr(h).then((e) => {
57861
- let t = jH(e);
57924
+ let t = NH(e);
57862
57925
  o(t), c(t);
57863
57926
  }).catch(() => q.error("Failed to load permissions")).finally(() => u(!1)));
57864
57927
  }, [h]);
@@ -57896,7 +57959,7 @@ function FH({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
57896
57959
  f(!1);
57897
57960
  }
57898
57961
  }
57899
- let v = I(() => Object.keys(s).sort(), [s]), y = I(() => kH(s), [s]), { enabled: b, total: x } = I(() => AH(s), [s]);
57962
+ let v = I(() => Object.keys(s).sort(), [s]), y = I(() => jH(s), [s]), { enabled: b, total: x } = I(() => MH(s), [s]);
57900
57963
  return /* @__PURE__ */ X(Ma, {
57901
57964
  spinning: l,
57902
57965
  children: [
@@ -57947,7 +58010,7 @@ function FH({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
57947
58010
  children: "No permission entries found for this role."
57948
58011
  }) : /* @__PURE__ */ Y("div", {
57949
58012
  className: "perm-cards-grid",
57950
- children: v.map((e) => /* @__PURE__ */ Y(PH, {
58013
+ children: v.map((e) => /* @__PURE__ */ Y(IH, {
57951
58014
  menuName: e,
57952
58015
  menuData: s[e],
57953
58016
  permKeys: y,
@@ -57963,7 +58026,7 @@ function FH({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
57963
58026
  }
57964
58027
  //#endregion
57965
58028
  //#region src/pages/Modules/Admin/RolesSection.jsx
57966
- var { Text: IH } = za, LH = [
58029
+ var { Text: RH } = za, zH = [
57967
58030
  {
57968
58031
  key: "listView",
57969
58032
  label: "List View"
@@ -57981,38 +58044,38 @@ var { Text: IH } = za, LH = [
57981
58044
  label: "Permissions"
57982
58045
  }
57983
58046
  ];
57984
- function RH(e) {
58047
+ function BH(e) {
57985
58048
  return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
57986
58049
  }
57987
- function zH(e) {
58050
+ function VH(e) {
57988
58051
  return String(e || "").trim().toLowerCase();
57989
58052
  }
57990
- function BH(e) {
58053
+ function HH(e) {
57991
58054
  return e?.key || e?.collectionName || e?.value || "";
57992
58055
  }
57993
- function VH(e = [], t = []) {
58056
+ function UH(e = [], t = []) {
57994
58057
  let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
57995
58058
  return e.forEach((e) => {
57996
- let t = BH(e);
58059
+ let t = HH(e);
57997
58060
  if (!t) return;
57998
- let o = zH(e.key || t), s = zH(e.collectionName);
58061
+ let o = VH(e.key || t), s = VH(e.collectionName);
57999
58062
  e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
58000
- label: e.label || RH(t),
58063
+ label: e.label || BH(t),
58001
58064
  value: t,
58002
58065
  disabled: !!e.seeded
58003
58066
  });
58004
58067
  }), t.forEach((e) => {
58005
58068
  let t = String(e || "").trim();
58006
58069
  if (!t || r.has(t)) return;
58007
- let o = zH(t);
58070
+ let o = VH(t);
58008
58071
  a.has(o) || i.has(o) || (r.add(t), n.push({
58009
- label: RH(t),
58072
+ label: BH(t),
58010
58073
  value: t,
58011
58074
  disabled: !1
58012
58075
  }));
58013
58076
  }), n;
58014
58077
  }
58015
- function HH() {
58078
+ function WH() {
58016
58079
  let [e, t] = L(null), [n, r] = L(!1), [i, a] = L("listView"), [o, s] = L([]), [c, l] = L(0), [u, d] = L(!1), [f, p] = L([]), [m, h] = L([]), [g, _] = L(!1), [v, y] = L(!1), b = I(() => f.filter((e) => !e.disabled), [f]), x = !g && b.length === 0, S = $i(async () => {
58017
58080
  d(!0);
58018
58081
  try {
@@ -58026,7 +58089,7 @@ function HH() {
58026
58089
  }, []), C = $i(async () => {
58027
58090
  _(!0);
58028
58091
  try {
58029
- let [e, t] = await Promise.all([gn(), qt()]), n = VH(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
58092
+ let [e, t] = await Promise.all([gn(), qt()]), n = UH(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
58030
58093
  p(n), h((e) => e.filter((e) => r.has(e)));
58031
58094
  } catch {
58032
58095
  q.error("Failed to load seed status");
@@ -58092,7 +58155,7 @@ function HH() {
58092
58155
  onClick: w,
58093
58156
  children: "Seed Field Config"
58094
58157
  })]
58095
- }), /* @__PURE__ */ Y(IH, {
58158
+ }), /* @__PURE__ */ Y(RH, {
58096
58159
  type: "secondary",
58097
58160
  style: {
58098
58161
  display: "block",
@@ -58172,13 +58235,13 @@ function HH() {
58172
58235
  style: { marginBottom: 12 },
58173
58236
  children: /* @__PURE__ */ Y("div", {
58174
58237
  className: "uss-config-toggle",
58175
- children: LH.map((e) => /* @__PURE__ */ Y("button", {
58238
+ children: zH.map((e) => /* @__PURE__ */ Y("button", {
58176
58239
  className: `uss-config-btn${i === e.key ? " active" : ""}`,
58177
58240
  onClick: () => a(e.key),
58178
58241
  children: e.label
58179
58242
  }, e.key))
58180
58243
  })
58181
- }), e && (i === "permissions" ? /* @__PURE__ */ Y(FH, { role: e }, e?.roleId) : /* @__PURE__ */ Y(gj, {
58244
+ }), e && (i === "permissions" ? /* @__PURE__ */ Y(LH, { role: e }, e?.roleId) : /* @__PURE__ */ Y(gj, {
58182
58245
  role: e,
58183
58246
  configType: i
58184
58247
  }, `${e?.roleId}-${i}`))]
@@ -58187,20 +58250,20 @@ function HH() {
58187
58250
  }
58188
58251
  //#endregion
58189
58252
  //#region src/pages/Modules/Admin/PermissionsPage.jsx
58190
- var UH = "perm-module-labels", WH = "perm-action-labels";
58191
- function GH(e) {
58253
+ var GH = "perm-module-labels", KH = "perm-action-labels";
58254
+ function qH(e) {
58192
58255
  try {
58193
58256
  return JSON.parse(localStorage.getItem(e) ?? "{}");
58194
58257
  } catch {
58195
58258
  return {};
58196
58259
  }
58197
58260
  }
58198
- function KH(e, t) {
58261
+ function JH(e, t) {
58199
58262
  try {
58200
58263
  localStorage.setItem(e, JSON.stringify(t));
58201
58264
  } catch {}
58202
58265
  }
58203
- function qH({ label: e, onSave: t, onDelete: n, loading: r }) {
58266
+ function YH({ label: e, onSave: t, onDelete: n, loading: r }) {
58204
58267
  let [i, a] = L(!1), [o, s] = L(e);
58205
58268
  function c() {
58206
58269
  a(!1);
@@ -58251,7 +58314,7 @@ function qH({ label: e, onSave: t, onDelete: n, loading: r }) {
58251
58314
  })]
58252
58315
  });
58253
58316
  }
58254
- function JH({ open: e, onClose: t }) {
58317
+ function XH({ open: e, onClose: t }) {
58255
58318
  let [n, r] = L("modules"), [i, a] = L([]), [o, s] = L(!1), [c, l] = L(""), [u, d] = L(!1), [f, p] = L([]), [m, h] = L(!1), [g, _] = L(""), [v, y] = L(""), [b, x] = L(!1);
58256
58319
  F(() => {
58257
58320
  e && (S(), C());
@@ -58373,7 +58436,7 @@ function JH({ open: e, onClose: t }) {
58373
58436
  className: "perm-empty",
58374
58437
  style: { paddingTop: 24 },
58375
58438
  children: "No modules found"
58376
- }), i.map((e) => /* @__PURE__ */ Y(qH, {
58439
+ }), i.map((e) => /* @__PURE__ */ Y(YH, {
58377
58440
  label: e.MENUNAME,
58378
58441
  onSave: (t) => T(e.MENUID, t),
58379
58442
  onDelete: () => E(e.MENUID)
@@ -58418,7 +58481,7 @@ function JH({ open: e, onClose: t }) {
58418
58481
  className: "perm-empty",
58419
58482
  style: { paddingTop: 24 },
58420
58483
  children: "No actions found"
58421
- }), f.map((e) => /* @__PURE__ */ Y(qH, {
58484
+ }), f.map((e) => /* @__PURE__ */ Y(YH, {
58422
58485
  label: `${e.permissionName} (${e.permissionKey})`,
58423
58486
  onSave: (t) => O(e.permissionId, t),
58424
58487
  onDelete: () => k(e.permissionId)
@@ -58448,14 +58511,14 @@ function JH({ open: e, onClose: t }) {
58448
58511
  })
58449
58512
  });
58450
58513
  }
58451
- function YH() {
58452
- let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => GH(UH)), [f, p] = L(() => GH(WH)), m = $i((e, t) => {
58514
+ function ZH() {
58515
+ let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => qH(GH)), [f, p] = L(() => qH(KH)), m = $i((e, t) => {
58453
58516
  d((n) => {
58454
58517
  let r = {
58455
58518
  ...n,
58456
58519
  [e]: t
58457
58520
  };
58458
- return KH(UH, r), r;
58521
+ return JH(GH, r), r;
58459
58522
  });
58460
58523
  }, []), h = $i((e, t) => {
58461
58524
  p((n) => {
@@ -58463,11 +58526,11 @@ function YH() {
58463
58526
  ...n,
58464
58527
  [e]: t
58465
58528
  };
58466
- return KH(WH, r), r;
58529
+ return JH(KH, r), r;
58467
58530
  });
58468
58531
  }, []);
58469
58532
  function g() {
58470
- d({}), p({}), KH(UH, {}), KH(WH, {}), q.success("Labels reset to defaults");
58533
+ d({}), p({}), JH(GH, {}), JH(KH, {}), q.success("Labels reset to defaults");
58471
58534
  }
58472
58535
  let _ = $i(async () => {
58473
58536
  r(!0);
@@ -58551,7 +58614,7 @@ function YH() {
58551
58614
  })]
58552
58615
  }),
58553
58616
  bodyStyle: { padding: "12px 16px" },
58554
- children: i ? /* @__PURE__ */ Y(FH, {
58617
+ children: i ? /* @__PURE__ */ Y(LH, {
58555
58618
  role: i,
58556
58619
  moduleLabels: u,
58557
58620
  actionLabels: f,
@@ -58562,7 +58625,7 @@ function YH() {
58562
58625
  children: "Select a role from the left to manage its permissions."
58563
58626
  })
58564
58627
  }),
58565
- /* @__PURE__ */ Y(JH, {
58628
+ /* @__PURE__ */ Y(XH, {
58566
58629
  open: c,
58567
58630
  onClose: () => l(!1)
58568
58631
  })
@@ -58571,7 +58634,7 @@ function YH() {
58571
58634
  }
58572
58635
  //#endregion
58573
58636
  //#region src/components/cards/OnboardingCard.jsx
58574
- var { Title: XH, Text: ZH } = za, QH = [
58637
+ var { Title: QH, Text: $H } = za, eU = [
58575
58638
  {
58576
58639
  label: "In Progress",
58577
58640
  value: 107,
@@ -58597,10 +58660,10 @@ var { Title: XH, Text: ZH } = za, QH = [
58597
58660
  color: "peach"
58598
58661
  }
58599
58662
  ];
58600
- function $H({ items: e = QH }) {
58663
+ function tU({ items: e = eU }) {
58601
58664
  return /* @__PURE__ */ Y(la, {
58602
58665
  className: "onboarding-card",
58603
- title: /* @__PURE__ */ Y(XH, {
58666
+ title: /* @__PURE__ */ Y(QH, {
58604
58667
  level: 5,
58605
58668
  children: "Onboarding"
58606
58669
  }),
@@ -58619,7 +58682,7 @@ function $H({ items: e = QH }) {
58619
58682
  children: /* @__PURE__ */ X("div", {
58620
58683
  className: `onboarding-item ${e.color}`,
58621
58684
  children: [
58622
- /* @__PURE__ */ Y(ZH, {
58685
+ /* @__PURE__ */ Y($H, {
58623
58686
  className: "onboarding-item-label",
58624
58687
  children: e.label
58625
58688
  }),
@@ -58629,7 +58692,7 @@ function $H({ items: e = QH }) {
58629
58692
  }),
58630
58693
  /* @__PURE__ */ Y("div", {
58631
58694
  className: "onboarding-item-footer",
58632
- children: /* @__PURE__ */ Y(ZH, {
58695
+ children: /* @__PURE__ */ Y($H, {
58633
58696
  className: "onboarding-item-sub",
58634
58697
  children: e.sub
58635
58698
  })
@@ -58642,7 +58705,7 @@ function $H({ items: e = QH }) {
58642
58705
  }
58643
58706
  //#endregion
58644
58707
  //#region src/pages/Modules/LegacyAdminPage.jsx
58645
- var { Text: eU, Title: tU } = za, nU = [
58708
+ var { Text: nU, Title: rU } = za, iU = [
58646
58709
  {
58647
58710
  group: "Dashboard",
58648
58711
  items: [{
@@ -58857,7 +58920,7 @@ var { Text: eU, Title: tU } = za, nU = [
58857
58920
  }
58858
58921
  ]
58859
58922
  }
58860
- ], rU = [
58923
+ ], aU = [
58861
58924
  {
58862
58925
  label: "Sourced",
58863
58926
  count: 312,
@@ -58888,7 +58951,7 @@ var { Text: eU, Title: tU } = za, nU = [
58888
58951
  color: "#E24B4A",
58889
58952
  pct: 10
58890
58953
  }
58891
- ], iU = [
58954
+ ], oU = [
58892
58955
  {
58893
58956
  name: "Tcs",
58894
58957
  jobs: 14,
@@ -58909,7 +58972,7 @@ var { Text: eU, Title: tU } = za, nU = [
58909
58972
  jobs: 5,
58910
58973
  candidates: 38
58911
58974
  }
58912
- ], aU = [
58975
+ ], sU = [
58913
58976
  {
58914
58977
  text: "New candidate Ravi Kumar added to Java Developer role",
58915
58978
  time: "2 min ago",
@@ -58936,7 +58999,7 @@ var { Text: eU, Title: tU } = za, nU = [
58936
58999
  color: "#E24B4A"
58937
59000
  }
58938
59001
  ];
58939
- function oU() {
59002
+ function cU() {
58940
59003
  return /* @__PURE__ */ X("div", {
58941
59004
  style: {
58942
59005
  display: "flex",
@@ -58949,11 +59012,11 @@ function oU() {
58949
59012
  title: "Admin Dashboard",
58950
59013
  children: [
58951
59014
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
58952
- /* @__PURE__ */ Y(tU, {
59015
+ /* @__PURE__ */ Y(rU, {
58953
59016
  level: 5,
58954
59017
  children: "Admin Dashboard"
58955
59018
  }),
58956
- /* @__PURE__ */ Y(eU, {
59019
+ /* @__PURE__ */ Y(nU, {
58957
59020
  type: "secondary",
58958
59021
  children: "Overview of jobs, candidates, onboarding and recent activity"
58959
59022
  })
@@ -58961,7 +59024,7 @@ function oU() {
58961
59024
  }),
58962
59025
  /* @__PURE__ */ Y("div", {
58963
59026
  className: "admin-dashboard-stats",
58964
- children: /* @__PURE__ */ Y(mH, { stats: [
59027
+ children: /* @__PURE__ */ Y(gH, { stats: [
58965
59028
  {
58966
59029
  label: "Total Jobs",
58967
59030
  value: 1697,
@@ -58991,18 +59054,18 @@ function oU() {
58991
59054
  }),
58992
59055
  /* @__PURE__ */ X("div", {
58993
59056
  className: "admin-dashboard-mid-row",
58994
- children: [/* @__PURE__ */ Y($H, {}), /* @__PURE__ */ X($A, {
59057
+ children: [/* @__PURE__ */ Y(tU, {}), /* @__PURE__ */ X($A, {
58995
59058
  icon: /* @__PURE__ */ Y(Ga, {}),
58996
59059
  title: "Candidate Pipeline",
58997
59060
  children: [
58998
- /* @__PURE__ */ Y(eU, {
59061
+ /* @__PURE__ */ Y(nU, {
58999
59062
  type: "secondary",
59000
59063
  style: { fontSize: 12 },
59001
59064
  children: "By stage (892 total)"
59002
59065
  }),
59003
59066
  /* @__PURE__ */ Y("div", {
59004
59067
  className: "admin-pipeline-bar",
59005
- children: rU.map((e) => /* @__PURE__ */ Y("div", {
59068
+ children: aU.map((e) => /* @__PURE__ */ Y("div", {
59006
59069
  className: "admin-pipeline-seg",
59007
59070
  style: {
59008
59071
  width: `${e.pct}%`,
@@ -59012,7 +59075,7 @@ function oU() {
59012
59075
  }),
59013
59076
  /* @__PURE__ */ Y("div", {
59014
59077
  className: "admin-pipeline-legend",
59015
- children: rU.map((e) => /* @__PURE__ */ X("div", {
59078
+ children: aU.map((e) => /* @__PURE__ */ X("div", {
59016
59079
  className: "admin-pipeline-legend-item",
59017
59080
  children: [
59018
59081
  /* @__PURE__ */ Y("span", {
@@ -59026,7 +59089,7 @@ function oU() {
59026
59089
  }, e.label))
59027
59090
  }),
59028
59091
  /* @__PURE__ */ Y("div", { className: "admin-divider" }),
59029
- /* @__PURE__ */ Y(eU, {
59092
+ /* @__PURE__ */ Y(nU, {
59030
59093
  strong: !0,
59031
59094
  style: { fontSize: 12 },
59032
59095
  children: "Submission status"
@@ -59037,7 +59100,7 @@ function oU() {
59037
59100
  children: [
59038
59101
  /* @__PURE__ */ X("div", {
59039
59102
  className: "admin-sub-status-item",
59040
- children: [/* @__PURE__ */ Y(eU, {
59103
+ children: [/* @__PURE__ */ Y(nU, {
59041
59104
  style: { fontSize: 13 },
59042
59105
  children: "Pending client review"
59043
59106
  }), /* @__PURE__ */ Y("span", {
@@ -59047,7 +59110,7 @@ function oU() {
59047
59110
  }),
59048
59111
  /* @__PURE__ */ X("div", {
59049
59112
  className: "admin-sub-status-item",
59050
- children: [/* @__PURE__ */ Y(eU, {
59113
+ children: [/* @__PURE__ */ Y(nU, {
59051
59114
  style: { fontSize: 13 },
59052
59115
  children: "Client approved"
59053
59116
  }), /* @__PURE__ */ Y("span", {
@@ -59057,7 +59120,7 @@ function oU() {
59057
59120
  }),
59058
59121
  /* @__PURE__ */ X("div", {
59059
59122
  className: "admin-sub-status-item",
59060
- children: [/* @__PURE__ */ Y(eU, {
59123
+ children: [/* @__PURE__ */ Y(nU, {
59061
59124
  style: { fontSize: 13 },
59062
59125
  children: "Rejected"
59063
59126
  }), /* @__PURE__ */ Y("span", {
@@ -59080,7 +59143,7 @@ function oU() {
59080
59143
  size: "small",
59081
59144
  children: "View all"
59082
59145
  }),
59083
- children: iU.map((e) => /* @__PURE__ */ X("div", {
59146
+ children: oU.map((e) => /* @__PURE__ */ X("div", {
59084
59147
  className: "admin-client-row",
59085
59148
  children: [/* @__PURE__ */ X("div", {
59086
59149
  className: "admin-client-left",
@@ -59108,7 +59171,7 @@ function oU() {
59108
59171
  }), /* @__PURE__ */ Y($A, {
59109
59172
  icon: /* @__PURE__ */ Y(Za, {}),
59110
59173
  title: "Recent Activity",
59111
- children: aU.map((e, t) => /* @__PURE__ */ X("div", {
59174
+ children: sU.map((e, t) => /* @__PURE__ */ X("div", {
59112
59175
  className: "admin-activity-row",
59113
59176
  children: [/* @__PURE__ */ Y("div", {
59114
59177
  className: "admin-activity-dot",
@@ -59136,7 +59199,7 @@ function oU() {
59136
59199
  children: [
59137
59200
  /* @__PURE__ */ X(z, {
59138
59201
  span: 8,
59139
- children: [/* @__PURE__ */ Y(eU, {
59202
+ children: [/* @__PURE__ */ Y(nU, {
59140
59203
  type: "secondary",
59141
59204
  style: {
59142
59205
  fontSize: 12,
@@ -59149,7 +59212,7 @@ function oU() {
59149
59212
  ["Templates", 2]
59150
59213
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
59151
59214
  className: "admin-cfg-overview-row",
59152
- children: [/* @__PURE__ */ Y(eU, {
59215
+ children: [/* @__PURE__ */ Y(nU, {
59153
59216
  style: { fontSize: 12 },
59154
59217
  children: e
59155
59218
  }), /* @__PURE__ */ X("span", {
@@ -59160,7 +59223,7 @@ function oU() {
59160
59223
  }),
59161
59224
  /* @__PURE__ */ X(z, {
59162
59225
  span: 8,
59163
- children: [/* @__PURE__ */ Y(eU, {
59226
+ children: [/* @__PURE__ */ Y(nU, {
59164
59227
  type: "secondary",
59165
59228
  style: {
59166
59229
  fontSize: 12,
@@ -59173,7 +59236,7 @@ function oU() {
59173
59236
  ["Submissions", 2]
59174
59237
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
59175
59238
  className: "admin-cfg-overview-row",
59176
- children: [/* @__PURE__ */ Y(eU, {
59239
+ children: [/* @__PURE__ */ Y(nU, {
59177
59240
  style: { fontSize: 12 },
59178
59241
  children: e
59179
59242
  }), /* @__PURE__ */ X("span", {
@@ -59184,7 +59247,7 @@ function oU() {
59184
59247
  }),
59185
59248
  /* @__PURE__ */ X(z, {
59186
59249
  span: 8,
59187
- children: [/* @__PURE__ */ Y(eU, {
59250
+ children: [/* @__PURE__ */ Y(nU, {
59188
59251
  type: "secondary",
59189
59252
  style: {
59190
59253
  fontSize: 12,
@@ -59197,10 +59260,10 @@ function oU() {
59197
59260
  ["Config Items", 19]
59198
59261
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
59199
59262
  className: "admin-cfg-overview-row",
59200
- children: [/* @__PURE__ */ Y(eU, {
59263
+ children: [/* @__PURE__ */ Y(nU, {
59201
59264
  style: { fontSize: 12 },
59202
59265
  children: e
59203
- }), /* @__PURE__ */ Y(eU, {
59266
+ }), /* @__PURE__ */ Y(nU, {
59204
59267
  strong: !0,
59205
59268
  style: { fontSize: 12 },
59206
59269
  children: t
@@ -59213,7 +59276,7 @@ function oU() {
59213
59276
  ]
59214
59277
  });
59215
59278
  }
59216
- function sU({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
59279
+ function lU({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
59217
59280
  return /* @__PURE__ */ X(ka, {
59218
59281
  gutter: [16, 16],
59219
59282
  children: [
@@ -59232,11 +59295,11 @@ function sU({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
59232
59295
  }),
59233
59296
  children: [
59234
59297
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
59235
- /* @__PURE__ */ Y(tU, {
59298
+ /* @__PURE__ */ Y(rU, {
59236
59299
  level: 5,
59237
59300
  children: e?.heading
59238
59301
  }),
59239
- /* @__PURE__ */ Y(eU, {
59302
+ /* @__PURE__ */ Y(nU, {
59240
59303
  type: "secondary",
59241
59304
  children: e?.desc
59242
59305
  })
@@ -59250,7 +59313,7 @@ function sU({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
59250
59313
  children: /* @__PURE__ */ Y($A, {
59251
59314
  icon: /* @__PURE__ */ Y(Ga, {}),
59252
59315
  title: "Configuration Items",
59253
- extra: /* @__PURE__ */ X(eU, {
59316
+ extra: /* @__PURE__ */ X(nU, {
59254
59317
  type: "secondary",
59255
59318
  children: [
59256
59319
  n.length,
@@ -59317,7 +59380,7 @@ function sU({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
59317
59380
  title: "Section Overview",
59318
59381
  children: [/* @__PURE__ */ Y("div", {
59319
59382
  className: "admin-overview-list",
59320
- children: nU.filter((e) => e.group !== "Dashboard").map((e) => {
59383
+ children: iU.filter((e) => e.group !== "Dashboard").map((e) => {
59321
59384
  let n = e.group === t?.group;
59322
59385
  return /* @__PURE__ */ X("div", {
59323
59386
  className: `admin-overview-item${n ? " active" : ""}`,
@@ -59365,12 +59428,12 @@ function sU({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
59365
59428
  ]
59366
59429
  });
59367
59430
  }
59368
- function cU() {
59369
- let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => nU.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => nU.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
59431
+ function uU() {
59432
+ let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => iU.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => iU.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
59370
59433
  if (!a?.cards) return [];
59371
59434
  let e = n.trim().toLowerCase();
59372
59435
  return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
59373
- }, [a, n]), c = I(() => nU.map((e) => ({
59436
+ }, [a, n]), c = I(() => iU.map((e) => ({
59374
59437
  key: e.group,
59375
59438
  type: "group",
59376
59439
  label: e.group,
@@ -59419,7 +59482,7 @@ function cU() {
59419
59482
  children: "Groups"
59420
59483
  }), /* @__PURE__ */ Y("span", {
59421
59484
  className: "admin-sidebar-pill-value",
59422
- children: nU.length
59485
+ children: iU.length
59423
59486
  })]
59424
59487
  })
59425
59488
  }), /* @__PURE__ */ Y(z, {
@@ -59449,7 +59512,7 @@ function cU() {
59449
59512
  xs: 24,
59450
59513
  lg: 18,
59451
59514
  xl: 19,
59452
- children: e === "dashboard" ? /* @__PURE__ */ Y(oU, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(vN, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(QN, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(HP, {}) : a?.component === "users" ? /* @__PURE__ */ Y(vH, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(wH, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(HH, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(YH, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(eF, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(sF, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(pF, {}) : /* @__PURE__ */ Y(sU, {
59515
+ children: e === "dashboard" ? /* @__PURE__ */ Y(cU, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(vN, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(QN, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(HP, {}) : a?.component === "users" ? /* @__PURE__ */ Y(bH, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(EH, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(WH, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(ZH, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(eF, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(sF, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(pF, {}) : /* @__PURE__ */ Y(lU, {
59453
59516
  activeSection: a,
59454
59517
  activeGroup: o,
59455
59518
  filteredCards: s,
@@ -59464,8 +59527,8 @@ function cU() {
59464
59527
  }
59465
59528
  //#endregion
59466
59529
  //#region src/pages/stickyNotesFullPage.jsx
59467
- var { Title: lU } = za;
59468
- function uU() {
59530
+ var { Title: dU } = za;
59531
+ function fU() {
59469
59532
  let e = Zs(), { state: t } = Xs(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
59470
59533
  ...t?.request,
59471
59534
  params: {
@@ -59490,7 +59553,7 @@ function uU() {
59490
59553
  }
59491
59554
  //#endregion
59492
59555
  //#region src/pages/BulkUpload/index.jsx
59493
- var { Text: dU, Title: fU } = za, pU = 10485760, mU = "/templates/test_cases_flow_template.base64.txt", hU = "test_cases_flow_template.xlsx", gU = "module | subModule | step_order | description | actions | key | value | expected | scenario", _U = {
59556
+ var { Text: pU, Title: mU } = za, hU = 10485760, gU = "/templates/test_cases_flow_template.base64.txt", _U = "test_cases_flow_template.xlsx", vU = "module | subModule | step_order | description | actions | key | value | expected | scenario", yU = {
59494
59557
  idle: 0,
59495
59558
  module_set: 1,
59496
59559
  encoding: 1,
@@ -59499,7 +59562,7 @@ var { Text: dU, Title: fU } = za, pU = 10485760, mU = "/templates/test_cases_flo
59499
59562
  inserting: 3,
59500
59563
  done: 4,
59501
59564
  error: 1
59502
- }, vU = [
59565
+ }, bU = [
59503
59566
  {
59504
59567
  label: "Home",
59505
59568
  href: "/"
@@ -59513,31 +59576,31 @@ var { Text: dU, Title: fU } = za, pU = 10485760, mU = "/templates/test_cases_flo
59513
59576
  href: "/bulk-upload"
59514
59577
  }
59515
59578
  ];
59516
- function yU(e) {
59579
+ function xU(e) {
59517
59580
  return new Promise((t, n) => {
59518
59581
  let r = new FileReader();
59519
59582
  r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
59520
59583
  });
59521
59584
  }
59522
- function bU(e) {
59585
+ function SU(e) {
59523
59586
  return e.filter((e) => e.row_status === "valid").map((e) => {
59524
59587
  let t = { ...e };
59525
59588
  return delete t.row_status, delete t.errors, t;
59526
59589
  });
59527
59590
  }
59528
- function xU(e) {
59591
+ function CU(e) {
59529
59592
  return e.flatMap((e) => (e.errors ?? []).map((t) => ({
59530
59593
  id: e.id,
59531
59594
  ...t
59532
59595
  })));
59533
59596
  }
59534
- function SU({ errors: e }) {
59597
+ function wU({ errors: e }) {
59535
59598
  return /* @__PURE__ */ Y("div", {
59536
59599
  className: "bulk-tooltip-errors",
59537
59600
  children: (e ?? []).map((e, t) => /* @__PURE__ */ Y("div", { children: e.message }, `${e.field}-${t}`))
59538
59601
  });
59539
59602
  }
59540
- function CU({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
59603
+ function TU({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
59541
59604
  return e.length === 0 ? null : /* @__PURE__ */ X("div", {
59542
59605
  className: "bulk-error-banner",
59543
59606
  children: [/* @__PURE__ */ X("div", {
@@ -59568,7 +59631,7 @@ function CU({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
59568
59631
  })]
59569
59632
  });
59570
59633
  }
59571
- function wU({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
59634
+ function EU({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
59572
59635
  let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
59573
59636
  return /* @__PURE__ */ X(J, { children: [
59574
59637
  /* @__PURE__ */ X(ka, {
@@ -59584,7 +59647,7 @@ function wU({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
59584
59647
  type: t === "errors" ? "primary" : "default",
59585
59648
  onClick: () => n("errors"),
59586
59649
  children: "Errors only"
59587
- })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(dU, {
59650
+ })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(pU, {
59588
59651
  type: "secondary",
59589
59652
  children: [e.length, " row(s)"]
59590
59653
  }) })]
@@ -59656,7 +59719,7 @@ function wU({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
59656
59719
  children: "Valid"
59657
59720
  }) }),
59658
59721
  /* @__PURE__ */ Y("td", { children: n ? /* @__PURE__ */ Y(K, {
59659
- title: /* @__PURE__ */ Y(SU, { errors: t }),
59722
+ title: /* @__PURE__ */ Y(wU, { errors: t }),
59660
59723
  placement: "left",
59661
59724
  children: /* @__PURE__ */ X("button", {
59662
59725
  type: "button",
@@ -59693,11 +59756,11 @@ function wU({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
59693
59756
  })
59694
59757
  ] });
59695
59758
  }
59696
- function TU() {
59759
+ function DU() {
59697
59760
  let e = Zs(), t = I(() => y(), []), n = ra(null), r = ra(null), [i, a] = L([]), [o, s] = L(""), [c, l] = L("idle"), [u, d] = L(!1), [f, p] = L(null), [m, h] = L([]), [g, _] = L("all"), [v, b] = L(null), [x, S] = L(null), [C, w] = L(!1), T = i.map((e) => ({
59698
59761
  value: e.modulename,
59699
59762
  label: e.modulename
59700
- })), E = xU(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = _U[c] ?? 0, A = m.find((e) => e.row_status === "invalid")?.id, j = $i(() => {
59763
+ })), E = CU(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = yU[c] ?? 0, A = m.find((e) => e.row_status === "invalid")?.id, j = $i(() => {
59701
59764
  s(""), l("idle"), d(!1), p(null), h([]), _("all"), b(null), S(null), n.current && (n.current.value = "");
59702
59765
  }, []);
59703
59766
  F(() => {
@@ -59723,7 +59786,7 @@ function TU() {
59723
59786
  l("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
59724
59787
  return;
59725
59788
  }
59726
- if (e.size > pU) {
59789
+ if (e.size > hU) {
59727
59790
  l("module_set"), b({ message: "File must be 10 MB or smaller." });
59728
59791
  return;
59729
59792
  }
@@ -59732,7 +59795,7 @@ function TU() {
59732
59795
  size: e.size
59733
59796
  }), l("encoding");
59734
59797
  try {
59735
- let r = await yU(e);
59798
+ let r = await xU(e);
59736
59799
  l("validating");
59737
59800
  let i = await Qk({
59738
59801
  filename: e.name,
@@ -59750,12 +59813,12 @@ function TU() {
59750
59813
  }
59751
59814
  }, M = async () => {
59752
59815
  try {
59753
- let e = await fetch(mU);
59816
+ let e = await fetch(gU);
59754
59817
  if (!e.ok) throw Error(`Template file not found (${e.status})`);
59755
59818
  let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
59756
59819
  for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
59757
59820
  let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
59758
- o.href = a, o.download = hU, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
59821
+ o.href = a, o.download = _U, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
59759
59822
  } catch (e) {
59760
59823
  console.error(e), q.error("Unable to download sample template.");
59761
59824
  }
@@ -59766,7 +59829,7 @@ function TU() {
59766
59829
  project: t?.name ?? "",
59767
59830
  module: o,
59768
59831
  uploaded_by: localStorage.getItem("user_Email") ?? "",
59769
- rows: bU(m)
59832
+ rows: SU(m)
59770
59833
  });
59771
59834
  S(n), l("done"), q.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
59772
59835
  } catch (e) {
@@ -59793,7 +59856,7 @@ function TU() {
59793
59856
  align: "middle",
59794
59857
  justify: "space-between",
59795
59858
  className: "breadcrumb-action-wrapper",
59796
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: vU }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(dU, {
59859
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: bU }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(pU, {
59797
59860
  strong: !0,
59798
59861
  children: t.name
59799
59862
  }) })]
@@ -59802,16 +59865,16 @@ function TU() {
59802
59865
  children: [
59803
59866
  /* @__PURE__ */ X("div", {
59804
59867
  className: "bulk-header",
59805
- children: [/* @__PURE__ */ Y(fU, {
59868
+ children: [/* @__PURE__ */ Y(mU, {
59806
59869
  level: 3,
59807
59870
  children: "Bulk upload test cases"
59808
59871
  }), /* @__PURE__ */ X(U, {
59809
59872
  direction: "vertical",
59810
59873
  size: 4,
59811
- children: [/* @__PURE__ */ Y(dU, {
59874
+ children: [/* @__PURE__ */ Y(pU, {
59812
59875
  type: "secondary",
59813
- children: gU
59814
- }), /* @__PURE__ */ Y(dU, {
59876
+ children: vU
59877
+ }), /* @__PURE__ */ Y(pU, {
59815
59878
  type: "secondary",
59816
59879
  children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
59817
59880
  })]
@@ -59909,7 +59972,7 @@ function TU() {
59909
59972
  className: "v1-card zt-fall",
59910
59973
  title: "3. Validation result",
59911
59974
  children: [
59912
- /* @__PURE__ */ Y(CU, {
59975
+ /* @__PURE__ */ Y(TU, {
59913
59976
  errors: E,
59914
59977
  expanded: C,
59915
59978
  onToggle: () => w((e) => !e),
@@ -59921,7 +59984,7 @@ function TU() {
59921
59984
  message: v.message,
59922
59985
  className: "bulk-inline-alert"
59923
59986
  }),
59924
- /* @__PURE__ */ Y(wU, {
59987
+ /* @__PURE__ */ Y(EU, {
59925
59988
  rows: m,
59926
59989
  view: g,
59927
59990
  onViewChange: _,
@@ -59944,17 +60007,17 @@ function TU() {
59944
60007
  /* @__PURE__ */ Y(z, {
59945
60008
  xs: 24,
59946
60009
  md: 8,
59947
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(dU, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
60010
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(pU, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
59948
60011
  }),
59949
60012
  /* @__PURE__ */ Y(z, {
59950
60013
  xs: 24,
59951
60014
  md: 8,
59952
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(dU, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
60015
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(pU, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
59953
60016
  }),
59954
60017
  /* @__PURE__ */ Y(z, {
59955
60018
  xs: 24,
59956
60019
  md: 8,
59957
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(dU, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
60020
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(pU, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
59958
60021
  })
59959
60022
  ]
59960
60023
  }),
@@ -59978,7 +60041,7 @@ function TU() {
59978
60041
  }
59979
60042
  //#endregion
59980
60043
  //#region src/services/dropdownValues/testPageValues.js
59981
- var EU = [
60044
+ var OU = [
59982
60045
  {
59983
60046
  value: "navigate",
59984
60047
  label: "Navigate"
@@ -60111,75 +60174,75 @@ var EU = [
60111
60174
  value: "wait_for_text",
60112
60175
  label: "Wait For Text"
60113
60176
  }
60114
- ], { Text: DU } = za, OU = [{
60177
+ ], { Text: kU } = za, AU = [{
60115
60178
  label: "Home",
60116
60179
  href: "/"
60117
60180
  }, {
60118
60181
  label: "Test Cases",
60119
60182
  href: "/test-cases"
60120
- }], kU = {
60183
+ }], jU = {
60121
60184
  tags: "regression",
60122
60185
  active: 1
60123
- }, AU = { module: {
60186
+ }, MU = { module: {
60124
60187
  dbName: "Modules",
60125
60188
  formField: "module",
60126
60189
  label: "Module"
60127
60190
  } };
60128
- function jU(e = []) {
60191
+ function NU(e = []) {
60129
60192
  return e.map((e) => ({
60130
60193
  value: e,
60131
60194
  label: e
60132
60195
  }));
60133
60196
  }
60134
- function MU(e = "") {
60197
+ function PU(e = "") {
60135
60198
  return String(e ?? "").trim();
60136
60199
  }
60137
- function NU(e = "") {
60138
- return MU(e).toLowerCase();
60200
+ function FU(e = "") {
60201
+ return PU(e).toLowerCase();
60139
60202
  }
60140
- function PU(e = []) {
60203
+ function IU(e = []) {
60141
60204
  let t = /* @__PURE__ */ new Map();
60142
60205
  return e.forEach((e) => {
60143
- let n = MU(e?.flow), r = n.toLowerCase();
60206
+ let n = PU(e?.flow), r = n.toLowerCase();
60144
60207
  n && !t.has(r) && t.set(r, n);
60145
60208
  }), Array.from(t.values()).map((e) => ({
60146
60209
  value: e,
60147
60210
  label: e
60148
60211
  }));
60149
60212
  }
60150
- function FU(e = [], t, n) {
60151
- let r = MU(t).toLowerCase(), i = MU(n).toLowerCase();
60213
+ function LU(e = [], t, n) {
60214
+ let r = PU(t).toLowerCase(), i = PU(n).toLowerCase();
60152
60215
  return e.reduce((e, t) => {
60153
- let n = MU(t?.module).toLowerCase(), a = MU(t?.flow).toLowerCase();
60216
+ let n = PU(t?.module).toLowerCase(), a = PU(t?.flow).toLowerCase();
60154
60217
  if (n !== r || a !== i) return e;
60155
60218
  let o = Number(t?.step_order) || 0;
60156
60219
  return Math.max(e, o);
60157
60220
  }, 0) + 1;
60158
60221
  }
60159
- function IU({ icon: e, title: t }) {
60222
+ function RU({ icon: e, title: t }) {
60160
60223
  return /* @__PURE__ */ X(U, {
60161
60224
  size: 10,
60162
60225
  align: "center",
60163
60226
  children: [/* @__PURE__ */ Y("div", {
60164
60227
  className: "v1-section-icon-box",
60165
60228
  children: e
60166
- }), /* @__PURE__ */ Y(DU, {
60229
+ }), /* @__PURE__ */ Y(kU, {
60167
60230
  strong: !0,
60168
60231
  className: "v1-section-label",
60169
60232
  children: t
60170
60233
  })]
60171
60234
  });
60172
60235
  }
60173
- function LU() {
60236
+ function zU() {
60174
60237
  let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(!1), [u, d] = L(!1), [f, p] = L({
60175
60238
  open: !1,
60176
60239
  typeKey: "module"
60177
- }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = Zs(), x = AU[f.typeKey], S = I(() => jU(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!MU(C), E = !!MU(w), D = !T, O = !T || !E, k = (e, t = []) => {
60240
+ }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = Zs(), x = MU[f.typeKey], S = I(() => NU(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!PU(C), E = !!PU(w), D = !T, O = !T || !E, k = (e, t = []) => {
60178
60241
  e === "module" && r(t);
60179
60242
  }, A = async () => {
60180
60243
  l(!0);
60181
60244
  try {
60182
- let e = await qk(AU.module.dbName);
60245
+ let e = await qk(MU.module.dbName);
60183
60246
  r(e?.items ?? []);
60184
60247
  } catch (e) {
60185
60248
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -60187,7 +60250,7 @@ function LU() {
60187
60250
  l(!1);
60188
60251
  }
60189
60252
  }, j = $i(async (t) => {
60190
- let n = MU(t);
60253
+ let n = PU(t);
60191
60254
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
60192
60255
  d(!0);
60193
60256
  try {
@@ -60196,7 +60259,7 @@ function LU() {
60196
60259
  offset: 0,
60197
60260
  module: n
60198
60261
  }), t = Array.isArray(e?.items) ? e.items : [];
60199
- a(t), s(PU(t));
60262
+ a(t), s(IU(t));
60200
60263
  } catch (e) {
60201
60264
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
60202
60265
  } finally {
@@ -60204,14 +60267,14 @@ function LU() {
60204
60267
  }
60205
60268
  }
60206
60269
  }, [e]), ee = $i(async (t, n, r) => {
60207
- let i = MU(t), a = MU(n);
60270
+ let i = PU(t), a = PU(n);
60208
60271
  if (!i || !a) {
60209
60272
  e.setFieldsValue({ step_order: void 0 });
60210
60273
  return;
60211
60274
  }
60212
60275
  _(!0);
60213
60276
  try {
60214
- e.setFieldsValue({ step_order: FU(r, i, a) });
60277
+ e.setFieldsValue({ step_order: LU(r, i, a) });
60215
60278
  } catch (e) {
60216
60279
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
60217
60280
  } finally {
@@ -60232,15 +60295,15 @@ function LU() {
60232
60295
  ]);
60233
60296
  let te = async (t) => {
60234
60297
  let n = {
60235
- module: MU(t.module),
60236
- flow: MU(t.flow),
60298
+ module: PU(t.module),
60299
+ flow: PU(t.flow),
60237
60300
  step_order: Number(t.step_order),
60238
- description: MU(t.description),
60239
- keyword: NU(t.keyword),
60240
- target: MU(t.target),
60241
- value: MU(t.value),
60242
- expected: MU(t.expected),
60243
- tags: t.tags ? MU(t.tags) : kU.tags,
60301
+ description: PU(t.description),
60302
+ keyword: FU(t.keyword),
60303
+ target: PU(t.target),
60304
+ value: PU(t.value),
60305
+ expected: PU(t.expected),
60306
+ tags: t.tags ? PU(t.tags) : jU.tags,
60244
60307
  active: Number(t.active)
60245
60308
  };
60246
60309
  y(!0);
@@ -60252,26 +60315,26 @@ function LU() {
60252
60315
  y(!1);
60253
60316
  }
60254
60317
  }, M = (t, n) => {
60255
- e.setFieldsValue({ [t]: MU(n) });
60318
+ e.setFieldsValue({ [t]: PU(n) });
60256
60319
  }, N = (t) => {
60257
60320
  e.setFieldsValue({
60258
- module: MU(t),
60321
+ module: PU(t),
60259
60322
  flow: void 0,
60260
60323
  step_order: void 0,
60261
60324
  keyword: void 0,
60262
60325
  description: void 0,
60263
60326
  target: void 0,
60264
- tags: kU.tags,
60327
+ tags: jU.tags,
60265
60328
  value: void 0,
60266
60329
  expected: void 0
60267
60330
  });
60268
60331
  }, ne = (t) => {
60269
60332
  e.setFieldsValue({
60270
- flow: MU(t),
60333
+ flow: PU(t),
60271
60334
  step_order: void 0
60272
60335
  });
60273
60336
  }, re = (e) => {
60274
- let n = AU[e];
60337
+ let n = MU[e];
60275
60338
  p({
60276
60339
  open: !0,
60277
60340
  typeKey: e
@@ -60286,7 +60349,7 @@ function LU() {
60286
60349
  })), t.resetFields();
60287
60350
  }, ae = async () => {
60288
60351
  try {
60289
- let n = MU((await t.validateFields()).name), r = await Jk({
60352
+ let n = PU((await t.validateFields()).name), r = await Jk({
60290
60353
  name: n,
60291
60354
  type: x.dbName
60292
60355
  });
@@ -60304,7 +60367,7 @@ function LU() {
60304
60367
  align: "middle",
60305
60368
  justify: "space-between",
60306
60369
  className: "breadcrumb-action-wrapper",
60307
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: OU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
60370
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: AU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
60308
60371
  type: "link",
60309
60372
  onClick: () => b("/zinnext-home"),
60310
60373
  children: "View Table"
@@ -60319,7 +60382,7 @@ function LU() {
60319
60382
  children: /* @__PURE__ */ X(U, {
60320
60383
  align: "center",
60321
60384
  size: 10,
60322
- children: [/* @__PURE__ */ Y(ls, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(DU, {
60385
+ children: [/* @__PURE__ */ Y(ls, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(kU, {
60323
60386
  strong: !0,
60324
60387
  style: { fontSize: 16 },
60325
60388
  children: "Add Test Case"
@@ -60335,16 +60398,16 @@ function LU() {
60335
60398
  className: "v1-required-mark",
60336
60399
  children: " *"
60337
60400
  })] }),
60338
- initialValues: kU,
60401
+ initialValues: jU,
60339
60402
  onFinish: te,
60340
60403
  autoComplete: "off",
60341
60404
  children: [/* @__PURE__ */ Y(la, {
60342
60405
  className: "v1-card",
60343
- title: /* @__PURE__ */ Y(IU, {
60406
+ title: /* @__PURE__ */ Y(RU, {
60344
60407
  icon: /* @__PURE__ */ Y(Io, {}),
60345
60408
  title: "Test Case Details"
60346
60409
  }),
60347
- extra: /* @__PURE__ */ Y(DU, {
60410
+ extra: /* @__PURE__ */ Y(kU, {
60348
60411
  type: "secondary",
60349
60412
  className: "v1-card-subtitle",
60350
60413
  children: "Module, flow, step order and execution data"
@@ -60421,8 +60484,8 @@ function LU() {
60421
60484
  disabled: O,
60422
60485
  optionFilterProp: "label",
60423
60486
  placeholder: "Select action",
60424
- options: EU,
60425
- onChange: (t) => e.setFieldsValue({ keyword: NU(t) })
60487
+ options: OU,
60488
+ onChange: (t) => e.setFieldsValue({ keyword: FU(t) })
60426
60489
  })
60427
60490
  })
60428
60491
  }),
@@ -60542,7 +60605,7 @@ function LU() {
60542
60605
  maxLength: 100,
60543
60606
  placeholder: `Enter ${x.label.toLowerCase()} name`,
60544
60607
  onBlur: (e) => {
60545
- t.setFieldsValue({ name: MU(e.target.value) });
60608
+ t.setFieldsValue({ name: PU(e.target.value) });
60546
60609
  }
60547
60610
  })
60548
60611
  }), /* @__PURE__ */ Y(B.Item, {
@@ -60559,23 +60622,23 @@ function LU() {
60559
60622
  }
60560
60623
  //#endregion
60561
60624
  //#region src/pages/TestingPage/ZinnextTestForm.jsx
60562
- var { Text: RU } = za, zU = [{
60625
+ var { Text: BU } = za, VU = [{
60563
60626
  label: "Home",
60564
60627
  href: "/"
60565
60628
  }, {
60566
60629
  label: "Test Cases",
60567
60630
  href: "/addTestCase"
60568
60631
  }];
60569
- function BU(e = "") {
60632
+ function HU(e = "") {
60570
60633
  return String(e ?? "").trim();
60571
60634
  }
60572
- function VU(e = [], t) {
60635
+ function UU(e = [], t) {
60573
60636
  return e.map((e) => ({
60574
60637
  value: e.id,
60575
60638
  label: e[t]
60576
60639
  }));
60577
60640
  }
60578
- var HU = [
60641
+ var WU = [
60579
60642
  {
60580
60643
  label: "Step",
60581
60644
  value: "step_order",
@@ -60614,22 +60677,22 @@ var HU = [
60614
60677
  children: "Negative"
60615
60678
  })
60616
60679
  }
60617
- ], UU = {
60680
+ ], GU = {
60618
60681
  key: !1,
60619
60682
  value: !1,
60620
60683
  expected: !1
60621
60684
  };
60622
- function WU(e, t) {
60623
- return t ? e[t] ?? UU : UU;
60685
+ function KU(e, t) {
60686
+ return t ? e[t] ?? GU : GU;
60624
60687
  }
60625
- function GU(e, t) {
60688
+ function qU(e, t) {
60626
60689
  e.setFields(t.map((e) => ({
60627
60690
  name: e,
60628
60691
  errors: []
60629
60692
  })));
60630
60693
  }
60631
- function KU() {
60632
- let [e] = B.useForm(), t = Zs(), [n] = $s(), r = n.get("edit"), i = !!r, a = I(() => y(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(EU), [m, h] = L({}), [g, _] = L(!1), [v, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), A = !!D, j = !!O, ee = I(() => WU(m, k), [m, k]), te = I(() => VU(o, "modulename"), [o]), M = I(() => VU(c, "submodulename"), [c]), N = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), ne = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), re = $i(async () => {
60694
+ function JU() {
60695
+ let [e] = B.useForm(), t = Zs(), [n] = $s(), r = n.get("edit"), i = !!r, a = I(() => y(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(OU), [m, h] = L({}), [g, _] = L(!1), [v, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), A = !!D, j = !!O, ee = I(() => KU(m, k), [m, k]), te = I(() => UU(o, "modulename"), [o]), M = I(() => UU(c, "submodulename"), [c]), N = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), ne = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), re = $i(async () => {
60633
60696
  try {
60634
60697
  let e = await Yk();
60635
60698
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
@@ -60775,10 +60838,10 @@ function KU() {
60775
60838
  align: "middle",
60776
60839
  justify: "space-between",
60777
60840
  className: "breadcrumb-action-wrapper",
60778
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: zU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
60841
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: VU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
60779
60842
  size: 6,
60780
60843
  className: "zt-section-title",
60781
- children: [/* @__PURE__ */ Y(us, {}), /* @__PURE__ */ Y(RU, {
60844
+ children: [/* @__PURE__ */ Y(us, {}), /* @__PURE__ */ Y(BU, {
60782
60845
  strong: !0,
60783
60846
  children: a.name
60784
60847
  })]
@@ -60799,11 +60862,11 @@ function KU() {
60799
60862
  product_parent_ID: Number(a?.id),
60800
60863
  module_parent_ID: Number(n.module),
60801
60864
  submodule_parent_ID: Number(n.submodule),
60802
- description: BU(n.description),
60803
- actions: BU(n.actions),
60804
- key: BU(n.key),
60805
- value: BU(n.value),
60806
- expected: BU(n.expected),
60865
+ description: HU(n.description),
60866
+ actions: HU(n.actions),
60867
+ key: HU(n.key),
60868
+ value: HU(n.value),
60869
+ expected: HU(n.expected),
60807
60870
  scenario: +!!n.scenario,
60808
60871
  active: +!!n.active
60809
60872
  };
@@ -60869,7 +60932,7 @@ function KU() {
60869
60932
  key: void 0,
60870
60933
  value: void 0,
60871
60934
  expected: void 0
60872
- }), GU(e, [
60935
+ }), qU(e, [
60873
60936
  "actions",
60874
60937
  "key",
60875
60938
  "value",
@@ -60900,7 +60963,7 @@ function KU() {
60900
60963
  key: void 0,
60901
60964
  value: void 0,
60902
60965
  expected: void 0
60903
- }), GU(e, [
60966
+ }), qU(e, [
60904
60967
  "actions",
60905
60968
  "key",
60906
60969
  "value",
@@ -60954,7 +61017,7 @@ function KU() {
60954
61017
  /* @__PURE__ */ Y("span", { children: "Step Details" })
60955
61018
  ]
60956
61019
  }),
60957
- extra: /* @__PURE__ */ X(RU, {
61020
+ extra: /* @__PURE__ */ X(BU, {
60958
61021
  type: "secondary",
60959
61022
  children: [
60960
61023
  N,
@@ -60994,13 +61057,13 @@ function KU() {
60994
61057
  placeholder: "Select action",
60995
61058
  options: f,
60996
61059
  onChange: (t) => {
60997
- let n = WU(m, t);
61060
+ let n = KU(m, t);
60998
61061
  e.setFieldsValue({
60999
61062
  actions: t,
61000
61063
  key: n.key ? e.getFieldValue("key") : void 0,
61001
61064
  value: n.value ? e.getFieldValue("value") : void 0,
61002
61065
  expected: n.expected ? e.getFieldValue("expected") : void 0
61003
- }), GU(e, [
61066
+ }), qU(e, [
61004
61067
  "key",
61005
61068
  "value",
61006
61069
  "expected"
@@ -61109,7 +61172,7 @@ function KU() {
61109
61172
  children: /* @__PURE__ */ Y(rw, {
61110
61173
  listName: "Added Steps",
61111
61174
  loading: x,
61112
- fields: HU,
61175
+ fields: WU,
61113
61176
  dataSource: u,
61114
61177
  current: 1,
61115
61178
  pageSize: Math.max(u.length, 1),
@@ -61125,7 +61188,7 @@ function KU() {
61125
61188
  }
61126
61189
  //#endregion
61127
61190
  //#region src/pages/TestingPage/ManageModules.jsx
61128
- var { Text: qU } = za, JU = [
61191
+ var { Text: YU } = za, XU = [
61129
61192
  {
61130
61193
  label: "Home",
61131
61194
  href: "/"
@@ -61139,7 +61202,7 @@ var { Text: qU } = za, JU = [
61139
61202
  href: "/manageModules"
61140
61203
  }
61141
61204
  ];
61142
- function YU() {
61205
+ function ZU() {
61143
61206
  let e = Zs(), t = I(() => y(), []), [n, r] = L([]), [i, a] = L({}), [o, s] = L(!1), [c, l] = L(!1), [u, d] = L(""), [f, p] = L(!1), [m, h] = L(1), [g, _] = L(10), v = $i(async (e) => {
61144
61207
  if (!e) {
61145
61208
  r([]);
@@ -61207,7 +61270,7 @@ function YU() {
61207
61270
  align: "middle",
61208
61271
  justify: "space-between",
61209
61272
  className: "breadcrumb-action-wrapper",
61210
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: JU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61273
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: XU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61211
61274
  type: "link",
61212
61275
  onClick: () => e("/addTestCase"),
61213
61276
  children: "Back to Form"
@@ -61227,7 +61290,7 @@ function YU() {
61227
61290
  children: [
61228
61291
  /* @__PURE__ */ Y(us, {}),
61229
61292
  /* @__PURE__ */ Y("span", { children: "Project:" }),
61230
- /* @__PURE__ */ Y(qU, {
61293
+ /* @__PURE__ */ Y(YU, {
61231
61294
  strong: !0,
61232
61295
  children: t.name
61233
61296
  })
@@ -61303,7 +61366,7 @@ function YU() {
61303
61366
  children: /* @__PURE__ */ X(U, {
61304
61367
  direction: "vertical",
61305
61368
  className: "zt-modal-stack",
61306
- children: [/* @__PURE__ */ X(qU, {
61369
+ children: [/* @__PURE__ */ X(YU, {
61307
61370
  type: "secondary",
61308
61371
  children: ["Project: ", /* @__PURE__ */ Y("b", { children: t.name })]
61309
61372
  }), /* @__PURE__ */ Y(V, {
@@ -61320,7 +61383,7 @@ function YU() {
61320
61383
  }
61321
61384
  //#endregion
61322
61385
  //#region src/pages/TestingPage/ManageSubmodules.jsx
61323
- var { Text: XU } = za, ZU = [
61386
+ var { Text: QU } = za, $U = [
61324
61387
  {
61325
61388
  label: "Home",
61326
61389
  href: "/"
@@ -61338,7 +61401,7 @@ var { Text: XU } = za, ZU = [
61338
61401
  href: "/test-cases/zinnext/submodules"
61339
61402
  }
61340
61403
  ];
61341
- function QU() {
61404
+ function eW() {
61342
61405
  let e = Zs(), [t] = $s(), n = I(() => y(), []), r = t.get("module") ?? "", [i, a] = L([]), [o, s] = L(!1), [c, l] = L(!1), [u, d] = L(""), [f, p] = L(!1), [m, h] = L(1), [g, _] = L(10), v = $i(async (e, t) => {
61343
61406
  if (!e || !t) {
61344
61407
  a([]);
@@ -61408,7 +61471,7 @@ function QU() {
61408
61471
  align: "middle",
61409
61472
  justify: "space-between",
61410
61473
  className: "breadcrumb-action-wrapper",
61411
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: ZU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61474
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: $U }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61412
61475
  type: "link",
61413
61476
  onClick: () => e("/manageModules"),
61414
61477
  children: "Back to Modules"
@@ -61431,7 +61494,7 @@ function QU() {
61431
61494
  children: [
61432
61495
  /* @__PURE__ */ Y(us, {}),
61433
61496
  /* @__PURE__ */ Y("span", { children: "Project:" }),
61434
- /* @__PURE__ */ Y(XU, {
61497
+ /* @__PURE__ */ Y(QU, {
61435
61498
  strong: !0,
61436
61499
  children: n.name
61437
61500
  })
@@ -61441,7 +61504,7 @@ function QU() {
61441
61504
  children: [
61442
61505
  /* @__PURE__ */ Y(Ga, {}),
61443
61506
  /* @__PURE__ */ Y("span", { children: "Module:" }),
61444
- /* @__PURE__ */ Y(XU, {
61507
+ /* @__PURE__ */ Y(QU, {
61445
61508
  strong: !0,
61446
61509
  children: r
61447
61510
  })
@@ -61504,7 +61567,7 @@ function QU() {
61504
61567
  children: /* @__PURE__ */ X(U, {
61505
61568
  direction: "vertical",
61506
61569
  className: "zt-modal-stack",
61507
- children: [/* @__PURE__ */ X(XU, {
61570
+ children: [/* @__PURE__ */ X(QU, {
61508
61571
  type: "secondary",
61509
61572
  children: [
61510
61573
  "Project: ",
@@ -61526,7 +61589,7 @@ function QU() {
61526
61589
  }
61527
61590
  //#endregion
61528
61591
  //#region src/pages/TestingPage/ZinnextTableView.jsx
61529
- var { Text: $U } = za, eW = [
61592
+ var { Text: tW } = za, nW = [
61530
61593
  {
61531
61594
  label: "Home",
61532
61595
  href: "/"
@@ -61540,7 +61603,7 @@ var { Text: $U } = za, eW = [
61540
61603
  href: "/viewTestCase"
61541
61604
  }
61542
61605
  ];
61543
- function tW() {
61606
+ function rW() {
61544
61607
  let e = Zs(), [t, n] = L([]), [r, i] = L(0), [a, o] = L(!1), s = I(() => y(), []), [c, l] = L(""), [u, d] = L(1), [f, p] = L(20), [m, h] = L(null), g = $i(async (e = {}) => {
61545
61608
  o(!0);
61546
61609
  try {
@@ -61600,7 +61663,7 @@ function tW() {
61600
61663
  align: "middle",
61601
61664
  justify: "space-between",
61602
61665
  className: "breadcrumb-action-wrapper",
61603
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: eW }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61666
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: nW }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61604
61667
  type: "link",
61605
61668
  onClick: () => e("/addTestCase"),
61606
61669
  children: "Back to Form"
@@ -61614,7 +61677,7 @@ function tW() {
61614
61677
  className: "zt-section-title",
61615
61678
  children: [/* @__PURE__ */ Y(ks, {}), /* @__PURE__ */ Y("span", { children: "Test Flows" })]
61616
61679
  }),
61617
- extra: /* @__PURE__ */ X($U, {
61680
+ extra: /* @__PURE__ */ X(tW, {
61618
61681
  type: "secondary",
61619
61682
  children: [r, " row(s)"]
61620
61683
  }),
@@ -61768,17 +61831,17 @@ function tW() {
61768
61831
  }
61769
61832
  //#endregion
61770
61833
  //#region src/pages/TestingPage/testHomePage.jsx
61771
- var nW = [{
61834
+ var iW = [{
61772
61835
  label: "Home",
61773
61836
  href: "/"
61774
61837
  }, {
61775
61838
  label: "Test Cases",
61776
61839
  href: "/test-cases"
61777
61840
  }];
61778
- function rW() {
61841
+ function aW() {
61779
61842
  return /* @__PURE__ */ X("main", {
61780
61843
  className: "jobs-list-page",
61781
- children: [/* @__PURE__ */ Y(ri, { items: nW }), /* @__PURE__ */ Y(Bh, {
61844
+ children: [/* @__PURE__ */ Y(ri, { items: iW }), /* @__PURE__ */ Y(Bh, {
61782
61845
  moduleName: "test-flows",
61783
61846
  rowKey: "id"
61784
61847
  })]
@@ -61786,85 +61849,85 @@ function rW() {
61786
61849
  }
61787
61850
  //#endregion
61788
61851
  //#region src/pages/TestingPage/lms-test-form.jsx
61789
- var { Text: iW } = za, aW = [{
61852
+ var { Text: oW } = za, sW = [{
61790
61853
  label: "Home",
61791
61854
  href: "/"
61792
61855
  }, {
61793
61856
  label: "LMS Cases",
61794
61857
  href: "/lms-cases"
61795
- }], oW = {
61858
+ }], cW = {
61796
61859
  tags: "regression",
61797
61860
  active: 1
61798
- }, sW = { module: {
61861
+ }, lW = { module: {
61799
61862
  dbName: "Modules",
61800
61863
  formField: "module",
61801
61864
  label: "Module"
61802
- } }, cW = {
61865
+ } }, uW = {
61803
61866
  key: !1,
61804
61867
  value: !1,
61805
61868
  expected: !1
61806
61869
  };
61807
- function lW(e, t) {
61808
- return t ? e[t] ?? cW : cW;
61870
+ function dW(e, t) {
61871
+ return t ? e[t] ?? uW : uW;
61809
61872
  }
61810
- function uW(e, t) {
61873
+ function fW(e, t) {
61811
61874
  e.setFields(t.map((e) => ({
61812
61875
  name: e,
61813
61876
  errors: []
61814
61877
  })));
61815
61878
  }
61816
- function dW(e = []) {
61879
+ function pW(e = []) {
61817
61880
  return e.map((e) => ({
61818
61881
  value: e,
61819
61882
  label: e
61820
61883
  }));
61821
61884
  }
61822
- function fW(e = "") {
61885
+ function mW(e = "") {
61823
61886
  return String(e ?? "").trim();
61824
61887
  }
61825
- function pW(e = []) {
61888
+ function hW(e = []) {
61826
61889
  let t = /* @__PURE__ */ new Map();
61827
61890
  return e.forEach((e) => {
61828
- let n = fW(e?.flow), r = n.toLowerCase();
61891
+ let n = mW(e?.flow), r = n.toLowerCase();
61829
61892
  n && !t.has(r) && t.set(r, n);
61830
61893
  }), Array.from(t.values()).map((e) => ({
61831
61894
  value: e,
61832
61895
  label: e
61833
61896
  }));
61834
61897
  }
61835
- function mW(e = [], t, n) {
61836
- let r = fW(t).toLowerCase(), i = fW(n).toLowerCase();
61898
+ function gW(e = [], t, n) {
61899
+ let r = mW(t).toLowerCase(), i = mW(n).toLowerCase();
61837
61900
  return e.reduce((e, t) => {
61838
- let n = fW(t?.module).toLowerCase(), a = fW(t?.flow).toLowerCase();
61901
+ let n = mW(t?.module).toLowerCase(), a = mW(t?.flow).toLowerCase();
61839
61902
  if (n !== r || a !== i) return e;
61840
61903
  let o = Number(t?.step_order) || 0;
61841
61904
  return Math.max(e, o);
61842
61905
  }, 0) + 1;
61843
61906
  }
61844
- function hW({ icon: e, title: t }) {
61907
+ function _W({ icon: e, title: t }) {
61845
61908
  return /* @__PURE__ */ X(U, {
61846
61909
  size: 10,
61847
61910
  align: "center",
61848
61911
  children: [/* @__PURE__ */ Y("div", {
61849
61912
  className: "v1-section-icon-box",
61850
61913
  children: e
61851
- }), /* @__PURE__ */ Y(iW, {
61914
+ }), /* @__PURE__ */ Y(oW, {
61852
61915
  strong: !0,
61853
61916
  className: "v1-section-label",
61854
61917
  children: t
61855
61918
  })]
61856
61919
  });
61857
61920
  }
61858
- function gW() {
61859
- let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(EU), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
61921
+ function vW() {
61922
+ let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(OU), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
61860
61923
  open: !1,
61861
61924
  typeKey: "module"
61862
- }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = Zs(), T = sW[g.typeKey], E = I(() => dW(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!fW(D), j = !!fW(O), ee = !A, te = !A || !j, M = I(() => lW(u, k), [u, k]), N = (e, t = []) => {
61925
+ }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = Zs(), T = lW[g.typeKey], E = I(() => pW(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!mW(D), j = !!mW(O), ee = !A, te = !A || !j, M = I(() => dW(u, k), [u, k]), N = (e, t = []) => {
61863
61926
  e === "module" && r(t);
61864
61927
  }, ne = async () => {
61865
61928
  p(!0);
61866
61929
  try {
61867
- let e = await qk(sW.module.dbName);
61930
+ let e = await qk(lW.module.dbName);
61868
61931
  r(e?.items ?? []);
61869
61932
  } catch (e) {
61870
61933
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -61879,7 +61942,7 @@ function gW() {
61879
61942
  console.error("Unable to load action field rules:", e), q.error("Unable to load action validation rules.");
61880
61943
  }
61881
61944
  }, ie = $i(async (t) => {
61882
- let n = fW(t);
61945
+ let n = mW(t);
61883
61946
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
61884
61947
  h(!0);
61885
61948
  try {
@@ -61888,7 +61951,7 @@ function gW() {
61888
61951
  offset: 0,
61889
61952
  module: n
61890
61953
  }), t = Array.isArray(e?.items) ? e.items : [];
61891
- a(t), s(pW(t));
61954
+ a(t), s(hW(t));
61892
61955
  } catch (e) {
61893
61956
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
61894
61957
  } finally {
@@ -61896,14 +61959,14 @@ function gW() {
61896
61959
  }
61897
61960
  }
61898
61961
  }, [e]), ae = $i(async (t, n, r) => {
61899
- let i = fW(t), a = fW(n);
61962
+ let i = mW(t), a = mW(n);
61900
61963
  if (!i || !a) {
61901
61964
  e.setFieldsValue({ step_order: void 0 });
61902
61965
  return;
61903
61966
  }
61904
61967
  x(!0);
61905
61968
  try {
61906
- e.setFieldsValue({ step_order: mW(r, i, a) });
61969
+ e.setFieldsValue({ step_order: gW(r, i, a) });
61907
61970
  } catch (e) {
61908
61971
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
61909
61972
  } finally {
@@ -61926,15 +61989,15 @@ function gW() {
61926
61989
  ]);
61927
61990
  let oe = async (t) => {
61928
61991
  let n = {
61929
- module: fW(t.module),
61930
- flow: fW(t.flow),
61992
+ module: mW(t.module),
61993
+ flow: mW(t.flow),
61931
61994
  step_order: Number(t.step_order),
61932
- description: fW(t.description),
61933
- keyword: fW(t.keyword),
61934
- target: fW(t.target),
61935
- value: fW(t.value),
61936
- expected: fW(t.expected),
61937
- tags: t.tags ? fW(t.tags) : oW.tags,
61995
+ description: mW(t.description),
61996
+ keyword: mW(t.keyword),
61997
+ target: mW(t.target),
61998
+ value: mW(t.value),
61999
+ expected: mW(t.expected),
62000
+ tags: t.tags ? mW(t.tags) : cW.tags,
61938
62001
  active: Number(t.active)
61939
62002
  };
61940
62003
  C(!0);
@@ -61946,19 +62009,19 @@ function gW() {
61946
62009
  C(!1);
61947
62010
  }
61948
62011
  }, se = (t, n) => {
61949
- e.setFieldsValue({ [t]: fW(n) });
62012
+ e.setFieldsValue({ [t]: mW(n) });
61950
62013
  }, ce = (t) => {
61951
62014
  e.setFieldsValue({
61952
- module: fW(t),
62015
+ module: mW(t),
61953
62016
  flow: void 0,
61954
62017
  step_order: void 0,
61955
62018
  keyword: void 0,
61956
62019
  description: void 0,
61957
62020
  target: void 0,
61958
- tags: oW.tags,
62021
+ tags: cW.tags,
61959
62022
  value: void 0,
61960
62023
  expected: void 0
61961
- }), uW(e, [
62024
+ }), fW(e, [
61962
62025
  "keyword",
61963
62026
  "target",
61964
62027
  "value",
@@ -61966,32 +62029,32 @@ function gW() {
61966
62029
  ]);
61967
62030
  }, le = (t) => {
61968
62031
  e.setFieldsValue({
61969
- flow: fW(t),
62032
+ flow: mW(t),
61970
62033
  step_order: void 0,
61971
62034
  keyword: void 0,
61972
62035
  target: void 0,
61973
62036
  value: void 0,
61974
62037
  expected: void 0
61975
- }), uW(e, [
62038
+ }), fW(e, [
61976
62039
  "keyword",
61977
62040
  "target",
61978
62041
  "value",
61979
62042
  "expected"
61980
62043
  ]);
61981
62044
  }, ue = (t) => {
61982
- let n = lW(u, t);
62045
+ let n = dW(u, t);
61983
62046
  e.setFieldsValue({
61984
- keyword: fW(t),
62047
+ keyword: mW(t),
61985
62048
  target: n.key ? e.getFieldValue("target") : void 0,
61986
62049
  value: n.value ? e.getFieldValue("value") : void 0,
61987
62050
  expected: n.expected ? e.getFieldValue("expected") : void 0
61988
- }), uW(e, [
62051
+ }), fW(e, [
61989
62052
  "target",
61990
62053
  "value",
61991
62054
  "expected"
61992
62055
  ]);
61993
62056
  }, de = (e) => {
61994
- let n = sW[e];
62057
+ let n = lW[e];
61995
62058
  _({
61996
62059
  open: !0,
61997
62060
  typeKey: e
@@ -62006,7 +62069,7 @@ function gW() {
62006
62069
  })), t.resetFields();
62007
62070
  }, pe = async () => {
62008
62071
  try {
62009
- let n = fW((await t.validateFields()).name), r = await Jk({
62072
+ let n = mW((await t.validateFields()).name), r = await Jk({
62010
62073
  name: n,
62011
62074
  type: T.dbName
62012
62075
  });
@@ -62024,7 +62087,7 @@ function gW() {
62024
62087
  align: "middle",
62025
62088
  justify: "space-between",
62026
62089
  className: "breadcrumb-action-wrapper",
62027
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: aW }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
62090
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(ri, { items: sW }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
62028
62091
  type: "link",
62029
62092
  onClick: () => w("/lms-home"),
62030
62093
  children: "View Table"
@@ -62039,7 +62102,7 @@ function gW() {
62039
62102
  children: /* @__PURE__ */ X(U, {
62040
62103
  align: "center",
62041
62104
  size: 10,
62042
- children: [/* @__PURE__ */ Y(ls, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(iW, {
62105
+ children: [/* @__PURE__ */ Y(ls, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(oW, {
62043
62106
  strong: !0,
62044
62107
  style: { fontSize: 16 },
62045
62108
  children: "Add LMS Case"
@@ -62055,16 +62118,16 @@ function gW() {
62055
62118
  className: "v1-required-mark",
62056
62119
  children: " *"
62057
62120
  })] }),
62058
- initialValues: oW,
62121
+ initialValues: cW,
62059
62122
  onFinish: oe,
62060
62123
  autoComplete: "off",
62061
62124
  children: [/* @__PURE__ */ Y(la, {
62062
62125
  className: "v1-card",
62063
- title: /* @__PURE__ */ Y(hW, {
62126
+ title: /* @__PURE__ */ Y(_W, {
62064
62127
  icon: /* @__PURE__ */ Y(Io, {}),
62065
62128
  title: "LMS Case Details"
62066
62129
  }),
62067
- extra: /* @__PURE__ */ Y(iW, {
62130
+ extra: /* @__PURE__ */ Y(oW, {
62068
62131
  type: "secondary",
62069
62132
  className: "v1-card-subtitle",
62070
62133
  children: "Module, flow, step order and execution data"
@@ -62274,7 +62337,7 @@ function gW() {
62274
62337
  maxLength: 100,
62275
62338
  placeholder: `Enter ${T.label.toLowerCase()} name`,
62276
62339
  onBlur: (e) => {
62277
- t.setFieldsValue({ name: fW(e.target.value) });
62340
+ t.setFieldsValue({ name: mW(e.target.value) });
62278
62341
  }
62279
62342
  })
62280
62343
  }), /* @__PURE__ */ Y(B.Item, {
@@ -62291,17 +62354,17 @@ function gW() {
62291
62354
  }
62292
62355
  //#endregion
62293
62356
  //#region src/pages/TestingPage/lmsHomePage.jsx
62294
- var _W = [{
62357
+ var yW = [{
62295
62358
  label: "Home",
62296
62359
  href: "/"
62297
62360
  }, {
62298
62361
  label: "LMS Cases",
62299
62362
  href: "/lms-cases"
62300
62363
  }];
62301
- function vW() {
62364
+ function bW() {
62302
62365
  return /* @__PURE__ */ X("main", {
62303
62366
  className: "jobs-list-page",
62304
- children: [/* @__PURE__ */ Y(ri, { items: _W }), /* @__PURE__ */ Y(Bh, {
62367
+ children: [/* @__PURE__ */ Y(ri, { items: yW }), /* @__PURE__ */ Y(Bh, {
62305
62368
  moduleName: "lms-flows",
62306
62369
  rowKey: "id"
62307
62370
  })]
@@ -62309,7 +62372,7 @@ function vW() {
62309
62372
  }
62310
62373
  //#endregion
62311
62374
  //#region src/services/mergedListApi.js
62312
- var yW = [
62375
+ var xW = [
62313
62376
  "referenceId",
62314
62377
  "ReferenceId",
62315
62378
  "candidateId",
@@ -62320,7 +62383,7 @@ var yW = [
62320
62383
  "Id",
62321
62384
  "_id"
62322
62385
  ];
62323
- function bW(e = yW) {
62386
+ function SW(e = xW) {
62324
62387
  return function(t) {
62325
62388
  if (!t || typeof t != "object") return "";
62326
62389
  for (let n of e) {
@@ -62330,7 +62393,7 @@ function bW(e = yW) {
62330
62393
  return "";
62331
62394
  };
62332
62395
  }
62333
- function xW(e, t = yW) {
62396
+ function CW(e, t = xW) {
62334
62397
  if (!e || typeof e != "object") return [];
62335
62398
  let n = [];
62336
62399
  for (let r of t) {
@@ -62339,18 +62402,18 @@ function xW(e, t = yW) {
62339
62402
  }
62340
62403
  return n;
62341
62404
  }
62342
- var SW = bW();
62343
- function CW(e) {
62344
- return typeof e == "function" ? e : typeof e == "string" ? bW([e]) : Array.isArray(e) ? bW(e) : SW;
62405
+ var wW = SW();
62406
+ function TW(e) {
62407
+ return typeof e == "function" ? e : typeof e == "string" ? SW([e]) : Array.isArray(e) ? SW(e) : wW;
62345
62408
  }
62346
- function wW(e, t, n) {
62409
+ function EW(e, t, n) {
62347
62410
  return !t || typeof t != "object" ? e : {
62348
62411
  ...t,
62349
62412
  ...e,
62350
62413
  id: e?.id ?? t?.id ?? n
62351
62414
  };
62352
62415
  }
62353
- function TW(e, t, n = {}) {
62416
+ function DW(e, t, n = {}) {
62354
62417
  return {
62355
62418
  status: "success",
62356
62419
  total: t,
@@ -62360,7 +62423,7 @@ function TW(e, t, n = {}) {
62360
62423
  }
62361
62424
  };
62362
62425
  }
62363
- var EW = [
62426
+ var OW = [
62364
62427
  "fields",
62365
62428
  "fieldConfig",
62366
62429
  "tabs",
@@ -62369,17 +62432,17 @@ var EW = [
62369
62432
  "actions",
62370
62433
  "columnActions"
62371
62434
  ];
62372
- function DW(e) {
62435
+ function kW(e) {
62373
62436
  let t = e?.data ?? e, n = {};
62374
- for (let r of EW) {
62437
+ for (let r of OW) {
62375
62438
  let i = e?.[r] ?? t?.[r];
62376
62439
  i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
62377
62440
  }
62378
62441
  return n;
62379
62442
  }
62380
- var OW = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
62381
- function kW(e, t, n) {
62382
- let r = (Array.isArray(n) ? n : [n]).map(OW).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(OW(e?.value)) || r.includes(OW(e?.label))) : -1;
62443
+ var AW = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
62444
+ function jW(e, t, n) {
62445
+ let r = (Array.isArray(n) ? n : [n]).map(AW).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(AW(e?.value)) || r.includes(AW(e?.label))) : -1;
62383
62446
  if (i === -1) return [...e, ...t];
62384
62447
  let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
62385
62448
  ...e,
@@ -62391,31 +62454,31 @@ function kW(e, t, n) {
62391
62454
  ...e.slice(i + 1)
62392
62455
  ];
62393
62456
  }
62394
- var AW = (e, t) => $f(e, t).rows, jW = (e, t) => {
62457
+ var MW = (e, t) => $f(e, t).rows, NW = (e, t) => {
62395
62458
  let { rows: n, total: r } = $f(e, t);
62396
62459
  return {
62397
62460
  rows: n,
62398
62461
  total: r
62399
62462
  };
62400
62463
  };
62401
- function MW(e, t) {
62464
+ function PW(e, t) {
62402
62465
  return function(n, r, i, a = {}) {
62403
62466
  return e(t ?? n, r, i, a);
62404
62467
  };
62405
62468
  }
62406
- function NW(e) {
62469
+ function FW(e) {
62407
62470
  return !e || typeof e != "object" || typeof (e.fetchByKeys ?? e.fetch ?? e.function) != "function" ? null : {
62408
62471
  ...e,
62409
62472
  fetchByKeys: typeof e.fetchByKeys == "function" ? e.fetchByKeys : null,
62410
62473
  fetch: typeof e.fetch == "function" ? e.fetch : null,
62411
62474
  function: typeof e.function == "function" ? e.function : null,
62412
- extractRows: typeof e.extractRows == "function" ? e.extractRows : AW,
62413
- mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : wW,
62475
+ extractRows: typeof e.extractRows == "function" ? e.extractRows : MW,
62476
+ mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : EW,
62414
62477
  fetchById: typeof e.fetchById == "function" ? e.fetchById : null
62415
62478
  };
62416
62479
  }
62417
- function PW({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
62418
- return !e && !t && !r ? [] : [NW({
62480
+ function IW({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
62481
+ return !e && !t && !r ? [] : [FW({
62419
62482
  key: i,
62420
62483
  fetchByKeys: e ? (t, n, r) => e(t, n, r) : null,
62421
62484
  function: t ? ({ moduleName: e, options: n }) => t(e, o, 0, n) : null,
@@ -62424,21 +62487,21 @@ function PW({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows:
62424
62487
  mergeRow: a
62425
62488
  })].filter(Boolean);
62426
62489
  }
62427
- function FW(e) {
62490
+ function LW(e) {
62428
62491
  if (typeof e == "function") return (t) => {
62429
62492
  let n = e(t);
62430
62493
  return n == null || n === "" ? [] : [String(n)];
62431
62494
  };
62432
- let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : yW;
62433
- return (e) => xW(e, t);
62495
+ let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : xW;
62496
+ return (e) => CW(e, t);
62434
62497
  }
62435
- function IW(e, t) {
62498
+ function RW(e, t) {
62436
62499
  let n = /* @__PURE__ */ new Map();
62437
62500
  return e.forEach((e) => {
62438
62501
  for (let r of t(e)) n.has(r) || n.set(r, e);
62439
62502
  }), n;
62440
62503
  }
62441
- function LW({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
62504
+ function zW({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
62442
62505
  return {
62443
62506
  moduleName: e,
62444
62507
  limit: t,
@@ -62452,7 +62515,7 @@ function LW({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryRe
62452
62515
  source: l
62453
62516
  };
62454
62517
  }
62455
- async function RW(e, t) {
62518
+ async function BW(e, t) {
62456
62519
  if (typeof e.args == "function") {
62457
62520
  let n = e.args(t);
62458
62521
  return (e.fetch ?? e.function ?? e.fetchByKeys)(...Array.isArray(n) ? n : [n]);
@@ -62462,8 +62525,8 @@ async function RW(e, t) {
62462
62525
  let n = e.fetch ?? e.function;
62463
62526
  return typeof n == "function" ? n(t) : null;
62464
62527
  }
62465
- function zW({ fetchPrimaryPage: e, extractPrimaryPage: t = jW, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = AW, fetchSecondary: o, extractSecondaryRows: s = AW, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = wW, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
62466
- let h = Array.isArray(r) && r.length ? r.map(NW).filter(Boolean) : PW({
62528
+ function VW({ fetchPrimaryPage: e, extractPrimaryPage: t = NW, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = MW, fetchSecondary: o, extractSecondaryRows: s = MW, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = EW, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
62529
+ let h = Array.isArray(r) && r.length ? r.map(FW).filter(Boolean) : IW({
62467
62530
  fetchSecondaryByKeys: n,
62468
62531
  fetchSecondary: o,
62469
62532
  extractSecondaryRows: s,
@@ -62483,7 +62546,7 @@ function zW({ fetchPrimaryPage: e, extractPrimaryPage: t = jW, fetchSecondaryByK
62483
62546
  }
62484
62547
  async function v(e, t, n, r, i) {
62485
62548
  if (!n) return e;
62486
- let a = t.extractRows(n, r) ?? [], o = CW(t.primaryKey ?? l), s = FW(t.key), c = IW(a, s);
62549
+ let a = t.extractRows(n, r) ?? [], o = TW(t.primaryKey ?? l), s = LW(t.key), c = RW(a, s);
62487
62550
  return Promise.all(e.map(async (e) => {
62488
62551
  let n = o(e), a = c.get(n) ?? (i() ? null : await _(t, s, r, n));
62489
62552
  return t.mergeRow(e, a, n);
@@ -62498,21 +62561,21 @@ function zW({ fetchPrimaryPage: e, extractPrimaryPage: t = jW, fetchSecondaryByK
62498
62561
  let r = {};
62499
62562
  for (let e of n) {
62500
62563
  if (!e) continue;
62501
- let t = DW(e);
62564
+ let t = kW(e);
62502
62565
  for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
62503
62566
  }
62504
- return p.length && (r.fields = kW(r.fields ?? [], p, m)), TW(e, t, r);
62567
+ return p.length && (r.fields = jW(r.fields ?? [], p, m)), DW(e, t, r);
62505
62568
  }
62506
62569
  async function x({ moduleName: e, limit: t, offset: n, options: r, primaryResponse: i, primaryRows: a, pageRows: o, total: s }) {
62507
62570
  return Promise.all(h.map(async (c) => {
62508
62571
  try {
62509
- let u = CW(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
62572
+ let u = TW(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
62510
62573
  return c.fetchByKeys && d.length === 0 ? {
62511
62574
  source: c,
62512
62575
  response: null
62513
62576
  } : {
62514
62577
  source: c,
62515
- response: await RW(c, LW({
62578
+ response: await BW(c, zW({
62516
62579
  moduleName: e,
62517
62580
  limit: t,
62518
62581
  offset: n,
@@ -62566,25 +62629,25 @@ function zW({ fetchPrimaryPage: e, extractPrimaryPage: t = jW, fetchSecondaryByK
62566
62629
  }
62567
62630
  //#endregion
62568
62631
  //#region src/services/workflowModuleListApi.js
62569
- function BW(e, t, n = {}) {
62570
- return zW({
62571
- fetchPrimary: () => wB(e, t),
62572
- extractPrimaryRows: SB,
62632
+ function HW(e, t, n = {}) {
62633
+ return VW({
62634
+ fetchPrimary: () => EB(e, t),
62635
+ extractPrimaryRows: wB,
62573
62636
  fetchSecondary: Cd,
62574
- fetchSecondaryById: TB,
62637
+ fetchSecondaryById: DB,
62575
62638
  secondaryFetchLimit: n.moduleFetchLimit ?? 200
62576
62639
  });
62577
62640
  }
62578
- function VW(e) {
62641
+ function UW(e) {
62579
62642
  let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
62580
62643
  return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
62581
62644
  }
62582
- function HW(e) {
62645
+ function WW(e) {
62583
62646
  let t = Array.isArray(e?.stages) ? e.stages : [];
62584
62647
  if (!t.length) return e;
62585
62648
  let n = {};
62586
62649
  for (let e of t) {
62587
- let t = VW(e?.stageName);
62650
+ let t = UW(e?.stageName);
62588
62651
  t && (n[t] = Number(e?.count) || 0);
62589
62652
  }
62590
62653
  return {
@@ -62592,19 +62655,19 @@ function HW(e) {
62592
62655
  ...e
62593
62656
  };
62594
62657
  }
62595
- var UW = (e) => {
62658
+ var GW = (e) => {
62596
62659
  let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
62597
62660
  return Number.isFinite(t) && t > 0 ? t : null;
62598
62661
  };
62599
- function WW({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
62662
+ function KW({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
62600
62663
  return function(n, r, i) {
62601
- let a = wW(n, r, i), o = UW(a);
62664
+ let a = EW(n, r, i), o = GW(a);
62602
62665
  return o != null && (a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
62603
62666
  };
62604
62667
  }
62605
- function GW(e = {}) {
62606
- let t = WW();
62607
- return zW({
62668
+ function qW(e = {}) {
62669
+ let t = KW();
62670
+ return VW({
62608
62671
  primaryKey: "_id",
62609
62672
  extraFields: e.extraFields,
62610
62673
  extraFieldsAfter: e.extraFieldsAfter,
@@ -62613,9 +62676,9 @@ function GW(e = {}) {
62613
62676
  key: "entityId",
62614
62677
  fetchByKeys: (e, t, n, r) => {
62615
62678
  let i = Math.max(1, Number(r?.limit) || 10);
62616
- return CB(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
62679
+ return TB(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
62617
62680
  },
62618
- extractRows: (e) => (e?.items ?? []).map(HW),
62681
+ extractRows: (e) => (e?.items ?? []).map(WW),
62619
62682
  mergeRow: (e, n, r) => {
62620
62683
  let i = t(e, n, r);
62621
62684
  return n?._id && (i.workflowId = n._id), i;
@@ -62623,17 +62686,17 @@ function GW(e = {}) {
62623
62686
  }]
62624
62687
  });
62625
62688
  }
62626
- async function KW(e, t = 10, n = 0, r = {}, i = {}) {
62627
- return $f(await GW(i)(e, t, n, r), e);
62689
+ async function JW(e, t = 10, n = 0, r = {}, i = {}) {
62690
+ return $f(await qW(i)(e, t, n, r), e);
62628
62691
  }
62629
- async function qW(e, t, n, r = 10, i = 0, a = {}) {
62630
- return $f(await BW(e, t)(n, r, i, a), n);
62692
+ async function YW(e, t, n, r = 10, i = 0, a = {}) {
62693
+ return $f(await HW(e, t)(n, r, i, a), n);
62631
62694
  }
62632
62695
  //#endregion
62633
62696
  //#region src/index.js
62634
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-09-18T15:52:13.293Z");
62635
- var JW = uH, YW = _A(cU), XW = _A(uU), ZW = _A(TU), QW = _A(LU), $W = _A(KU), eG = _A(YU), tG = _A(QU), nG = _A(tW), rG = _A(rW), iG = _A(gW), aG = _A(vW);
62697
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-09-21T09:27:58.607Z");
62698
+ var XW = fH, ZW = _A(uU), QW = _A(fU), $W = _A(DU), eG = _A(zU), tG = _A(JU), nG = _A(ZU), rG = _A(eW), iG = _A(rW), aG = _A(aW), oG = _A(vW), sG = _A(bW);
62636
62699
  //#endregion
62637
- export { D as ADMIN_API_URL, A as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, V_ as ActivityNotesCard, A_ as ActivityTab, WV as AddBatchCandidatePopup, p_ as AddFormV1, uH as AdminDashboard, sL as AdminDashboardContent, JW as AdminPage, m_ as AppAlert, Di as AppButton, Bk as AppShell, qE as ApprovalActionBar, H_ as AssigneeAvatars, Mk as AuthGuard, mx as BILLING_STATUS_FLOW, NT as BOOLEAN_API_KEYS, vw as BOOLEAN_PARSEABLE_API_KEYS, U_ as BULK_UPLOAD_DEFAULT_ACCEPT, W_ as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, ri as Breadcrumb, ZW as BulkUploadPage, Q_ as BulkUploadPanel, o as CANDIDATES_URL, _D as CONTRACT_C2C, gD as CONTRACT_W2, n as CORE_URL, gy as CURRENCY_SYMBOLS, _c as CalendarCard, dL as CoreThemeAdminApp, uL as CoreThemeAdminRoutes, xl as CustomPagination, hE as DEFAULT_HOURS_POLICY, kT as DEFAULT_RESULTS_VIEW, gi as DETAIL_VIEW_MODE_OPTIONS, Vn as DETAIL_VIEW_MODE_VALUES, Xn as DETAIL_VIEW_POPUP_PATH, zE as DayLogModal, dv as DescriptionBlock, gS as DetailHeaderCard, CS as DetailViewPage, xR as DetailViewPopup, pb as DetailViewV1, Ui as DocumentViewer, Cu as DynamicCards, Iz as DynamicPopup, YV as DynamicPopupRoute, xc as DynamicTabs, FC as EditFormV1, $w as FIELD_TYPE_REGISTRY, cD as FINANCE_APPROVAL_CONFIG, tD as FINANCE_TYPE_CFO, eD as FINANCE_TYPE_ONBOARDING_MANAGER, iD as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, nD as FINANCE_TYPE_ONLY_FINANCE, $E as FINANCE_TYPE_SUBMISSION_MANAGER, rD as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, kO as FileListCard, cO as FinanceApprovalPanel, Yx as FinanceAvatar, $x as FinanceBadge, YE as FinanceDayCell, Vx as FinanceDivider, Xx as FinanceEmployeeCell, Rx as FinanceEmptyState, Hx as FinanceEquation, Kx as FinanceHistoryTimeline, Lx as FinanceHoursGrid, Ix as FinanceKpiRow, Bx as FinanceLine, mE as FinanceListToolbar, eS as FinanceMarginBadge, Qx as FinanceMoneyCell, rS as FinanceRecordsTable, tS as FinanceRowChevron, zx as FinanceSection, Fx as FinanceStatusPill, Zx as FinanceTextCell, ZE as FinanceTimesheetAnalysis, Ux as FinanceWorkflowSteps, O as GATEWAY_URL, wI as GLOBAL_DEFAULT_FIELDS, gE as HOURS_MESSAGES, ak as Header, Ou as HierarchyUserFilter, s as JOBS_URL, YW as LegacyAdminPage, Bh as ListView, aG as LmsHomePage, iG as LmsTestForm, Vk as Login, cR as MailPopup, eG as ManageModules, tG as ManageSubmodules, WC as ModuleRowActions, KE as NotesPanel, B_ as NotesTab, bT as OPEN_AS_OPTIONS, hx as PAYROLL_STATUS_FLOW, xI as PLATFORM_SCOPES, FV as POPUP_CONFIGS, i as PYOPS_URL, ZC as ParamCardView, rw as ParamListView, OE as PeriodBadgeTag, PI as PlatformSection, yR as PreviewPopup, gA as ProjectSelect, GE as ProofUploadPreview, HE as QuickLogBar, BE as QuickLogSelectionBar, OT as RESULTS_VIEW_OPTIONS, lH as RegionBanner, VE as RejectionReasonModal, r as SUBMISSIONS_URL, aE as SearchBuilderV1, Ok as Sidebar, sE as StatusBadge, DE as StatusBadgeTag, XW as StickyNotesFullPage, lE as StylishDynamicTabs, dE as TemplateEditor, QW as TestForm, rG as TestingHomePage, S_ as TimelineGroups, IE as TimesheetDayCell, nn as TipTapEditor, cH as UserForm, $V as VendorShareDrawer, Tp as ViewSummaryWidget, DR as WizardPopup, a as ZINNEXT_URL, nG as ZinnextTableView, $W as ZinnextTestForm, Ke as appNow, tr as applyIntegrationStatus, tl as approveSubmission, Y_ as buildAcceptAttr, RT as buildBooleanRequest, kx as buildCsv, Cx as buildDailyRows, PE as buildDayGradient, HD as buildRateHistoryEntries, Ex as buildWeeklyRollup, g as clearSelectedProject, Yr as colors, PD as computeFinance, SE as computeHoursPolicy, Dx as computeMarginBand, qn as conditionMatches, v as configureCoreTheme, Ur as configuredFieldLabel, GW as createAllWorkflowsListFetcher, zW as createMergedListFetcher, MW as createModuleListFetchAdapter, BW as createWorkflowStageListFetcher, _y as currencySymbol, uI as deactivateRegion, wW as defaultMergeRow, ye as deleteIntegrationConfig, Sx as deriveDayStats, wE as describeCapacity, Nx as downloadCsv, Or as evaluateShowIfWith, OD as findEmployerRow, ED as flattenGroups, Cy as formatAmount, dn as formatApp, sn as formatAppDateTime, J_ as formatFileSize, UD as formatFinanceMoney, ax as formatHours, wy as formatMoney, sx as formatPercent, Ty as formatRate, re as getActivity, KW as getAllWorkflowsModuleList, hn as getAppTimeZone, dx as getApprovalDate, Ne as getBgcIntegrationConfig, Qe as getBgcIntegrationSummary, gx as getBillingActionStates, aT as getBooleanEligibleTypes, d as getCurrentRoleName, Vr as getDetailDisplayDefaults, jx as getFieldLabel, tT as getFieldType, q_ as getFileExtension, pD as getFinanceApprovalConfig, vO as getFormGroupsRaw, TI as getGlobalAiServices, SI as getGlobalDefaults, Dt as getIntegrationConfig, te as getIntegrationConfigs, Un as getIntegrationSummary, _l as getModuleConfig, st as getModuleDataDetail, _x as getPayrollActionStates, yl as getPeriodBadgeConfig, _I as getRegionDetailDefaults, _T as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, nl as getVMSApprove, Mx as getValueStyle, qW as getWorkflowStageModuleList, vx as getWorkflowSteps, fI as grantPlatformAccess, mI as hasPlatformAccess, ux as humanizeEvent, dg as i, Ax as indexFieldConfig, cx as initialsOf, Sw as insertTokenAtCursor, nT as isBooleanEligible, bw as isBooleanParsable, S as isTester, dI as listPlatformAccess, gI as listPlatformAudit, hI as listPlatformUsers, bI as listRegionRoles, yI as listRegionUsers, cI as listRegions, oi as loadDetailDefaults, h as logout, hD as marginIncludesReferral, ND as matchLocationTax, GS as n, AD as normalizeContract, Kr as normalizeDetailViewMode, $_ as r, yy as rateUnitLabel, xy as rateUnitShort, wT as readActionButtons, CE as reconcileHours, sI as regionPath, eT as registerFieldType, gT as registerSearchPopup, il as rejectSubmission, Nn as requiredWhenActive, Cr as requiredWhenRule, D_ as resolveActivityMeta, FD as resolveAndCompute, bE as resolveDayKind, MD as resolveFinanceInputs, SW as resolveMergeKey, SW as resolveMergedListKey, ST as resolveOpenAs, mD as resolveRejectionReason, MT as resolveResultsSearchPlaceholder, jT as resolveResultsView, yO as resolveSubmissionFinance, pI as revokePlatformAccess, jr as runDetailViewOpen, fe as saveBgcIntegrationConfig, EI as saveGlobalAiServices, CI as saveGlobalDefaults, Se as saveIntegrationConfig, lI as saveRegion, vI as saveRegionDetailDefaults, c as setSelectedProject, Qn as showIfConditions, VW as stageCountKey, Hk as t, dt as testIntegrationConnection, ee as toApp, Sy as toNumber, Gn as tzLabel, di as tzShortLabel, vT as unregisterSearchPopup, Rd as useDropdownFields, Ep as useDropdownValues, MO as useEditForm, zd as useFieldConfig, Bd as useFilterFields, Yd as useMenuPermission, LC as useModuleActions, bS as useRecordRefresh, jO as useTabRows, xw as validateBooleanQuery, X_ as validateBulkFile, t as withAdminAppId, _ as withAppId, _A as withAuthGuard };
62700
+ export { D as ADMIN_API_URL, A as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, V_ as ActivityNotesCard, A_ as ActivityTab, KV as AddBatchCandidatePopup, p_ as AddFormV1, fH as AdminDashboard, sL as AdminDashboardContent, XW as AdminPage, m_ as AppAlert, Di as AppButton, Bk as AppShell, qE as ApprovalActionBar, H_ as AssigneeAvatars, Mk as AuthGuard, mx as BILLING_STATUS_FLOW, NT as BOOLEAN_API_KEYS, vw as BOOLEAN_PARSEABLE_API_KEYS, U_ as BULK_UPLOAD_DEFAULT_ACCEPT, W_ as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, ri as Breadcrumb, $W as BulkUploadPage, Q_ as BulkUploadPanel, o as CANDIDATES_URL, _D as CONTRACT_C2C, gD as CONTRACT_W2, n as CORE_URL, gy as CURRENCY_SYMBOLS, _c as CalendarCard, dL as CoreThemeAdminApp, uL as CoreThemeAdminRoutes, xl as CustomPagination, hE as DEFAULT_HOURS_POLICY, kT as DEFAULT_RESULTS_VIEW, gi as DETAIL_VIEW_MODE_OPTIONS, Vn as DETAIL_VIEW_MODE_VALUES, Xn as DETAIL_VIEW_POPUP_PATH, zE as DayLogModal, dv as DescriptionBlock, gS as DetailHeaderCard, CS as DetailViewPage, xR as DetailViewPopup, pb as DetailViewV1, Ui as DocumentViewer, Cu as DynamicCards, Rz as DynamicPopup, ZV as DynamicPopupRoute, xc as DynamicTabs, FC as EditFormV1, $w as FIELD_TYPE_REGISTRY, cD as FINANCE_APPROVAL_CONFIG, tD as FINANCE_TYPE_CFO, eD as FINANCE_TYPE_ONBOARDING_MANAGER, iD as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, nD as FINANCE_TYPE_ONLY_FINANCE, $E as FINANCE_TYPE_SUBMISSION_MANAGER, rD as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, kO as FileListCard, cO as FinanceApprovalPanel, Yx as FinanceAvatar, $x as FinanceBadge, YE as FinanceDayCell, Vx as FinanceDivider, Xx as FinanceEmployeeCell, Rx as FinanceEmptyState, Hx as FinanceEquation, Kx as FinanceHistoryTimeline, Lx as FinanceHoursGrid, Ix as FinanceKpiRow, Bx as FinanceLine, mE as FinanceListToolbar, eS as FinanceMarginBadge, Qx as FinanceMoneyCell, rS as FinanceRecordsTable, tS as FinanceRowChevron, zx as FinanceSection, Fx as FinanceStatusPill, Zx as FinanceTextCell, ZE as FinanceTimesheetAnalysis, Ux as FinanceWorkflowSteps, O as GATEWAY_URL, wI as GLOBAL_DEFAULT_FIELDS, gE as HOURS_MESSAGES, ak as Header, Ou as HierarchyUserFilter, s as JOBS_URL, ZW as LegacyAdminPage, Bh as ListView, sG as LmsHomePage, oG as LmsTestForm, Vk as Login, cR as MailPopup, nG as ManageModules, rG as ManageSubmodules, WC as ModuleRowActions, KE as NotesPanel, B_ as NotesTab, bT as OPEN_AS_OPTIONS, hx as PAYROLL_STATUS_FLOW, xI as PLATFORM_SCOPES, LV as POPUP_CONFIGS, i as PYOPS_URL, ZC as ParamCardView, rw as ParamListView, OE as PeriodBadgeTag, PI as PlatformSection, yR as PreviewPopup, gA as ProjectSelect, GE as ProofUploadPreview, HE as QuickLogBar, BE as QuickLogSelectionBar, OT as RESULTS_VIEW_OPTIONS, dH as RegionBanner, VE as RejectionReasonModal, r as SUBMISSIONS_URL, aE as SearchBuilderV1, Ok as Sidebar, sE as StatusBadge, DE as StatusBadgeTag, QW as StickyNotesFullPage, lE as StylishDynamicTabs, dE as TemplateEditor, eG as TestForm, aG as TestingHomePage, S_ as TimelineGroups, IE as TimesheetDayCell, nn as TipTapEditor, uH as UserForm, tH as VendorShareDrawer, Tp as ViewSummaryWidget, DR as WizardPopup, a as ZINNEXT_URL, iG as ZinnextTableView, tG as ZinnextTestForm, Ke as appNow, tr as applyIntegrationStatus, tl as approveSubmission, Y_ as buildAcceptAttr, RT as buildBooleanRequest, kx as buildCsv, Cx as buildDailyRows, PE as buildDayGradient, HD as buildRateHistoryEntries, Ex as buildWeeklyRollup, g as clearSelectedProject, Yr as colors, PD as computeFinance, SE as computeHoursPolicy, Dx as computeMarginBand, qn as conditionMatches, v as configureCoreTheme, Ur as configuredFieldLabel, qW as createAllWorkflowsListFetcher, VW as createMergedListFetcher, PW as createModuleListFetchAdapter, HW as createWorkflowStageListFetcher, _y as currencySymbol, uI as deactivateRegion, EW as defaultMergeRow, ye as deleteIntegrationConfig, Sx as deriveDayStats, wE as describeCapacity, Nx as downloadCsv, Or as evaluateShowIfWith, OD as findEmployerRow, ED as flattenGroups, Cy as formatAmount, dn as formatApp, sn as formatAppDateTime, J_ as formatFileSize, UD as formatFinanceMoney, ax as formatHours, wy as formatMoney, sx as formatPercent, Ty as formatRate, re as getActivity, JW as getAllWorkflowsModuleList, hn as getAppTimeZone, dx as getApprovalDate, Ne as getBgcIntegrationConfig, Qe as getBgcIntegrationSummary, gx as getBillingActionStates, aT as getBooleanEligibleTypes, d as getCurrentRoleName, Vr as getDetailDisplayDefaults, jx as getFieldLabel, tT as getFieldType, q_ as getFileExtension, pD as getFinanceApprovalConfig, vO as getFormGroupsRaw, TI as getGlobalAiServices, SI as getGlobalDefaults, Dt as getIntegrationConfig, te as getIntegrationConfigs, Un as getIntegrationSummary, _l as getModuleConfig, st as getModuleDataDetail, _x as getPayrollActionStates, yl as getPeriodBadgeConfig, _I as getRegionDetailDefaults, _T as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, nl as getVMSApprove, Mx as getValueStyle, YW as getWorkflowStageModuleList, vx as getWorkflowSteps, fI as grantPlatformAccess, mI as hasPlatformAccess, ux as humanizeEvent, dg as i, Ax as indexFieldConfig, cx as initialsOf, Sw as insertTokenAtCursor, nT as isBooleanEligible, bw as isBooleanParsable, S as isTester, dI as listPlatformAccess, gI as listPlatformAudit, hI as listPlatformUsers, bI as listRegionRoles, yI as listRegionUsers, cI as listRegions, oi as loadDetailDefaults, h as logout, hD as marginIncludesReferral, ND as matchLocationTax, GS as n, AD as normalizeContract, Kr as normalizeDetailViewMode, $_ as r, yy as rateUnitLabel, xy as rateUnitShort, wT as readActionButtons, CE as reconcileHours, sI as regionPath, eT as registerFieldType, gT as registerSearchPopup, il as rejectSubmission, Nn as requiredWhenActive, Cr as requiredWhenRule, D_ as resolveActivityMeta, FD as resolveAndCompute, bE as resolveDayKind, MD as resolveFinanceInputs, wW as resolveMergeKey, wW as resolveMergedListKey, ST as resolveOpenAs, mD as resolveRejectionReason, MT as resolveResultsSearchPlaceholder, jT as resolveResultsView, yO as resolveSubmissionFinance, pI as revokePlatformAccess, jr as runDetailViewOpen, fe as saveBgcIntegrationConfig, EI as saveGlobalAiServices, CI as saveGlobalDefaults, Se as saveIntegrationConfig, lI as saveRegion, vI as saveRegionDetailDefaults, c as setSelectedProject, Qn as showIfConditions, UW as stageCountKey, Hk as t, dt as testIntegrationConnection, ee as toApp, Sy as toNumber, Gn as tzLabel, di as tzShortLabel, vT as unregisterSearchPopup, Rd as useDropdownFields, Ep as useDropdownValues, MO as useEditForm, zd as useFieldConfig, Bd as useFilterFields, Yd as useMenuPermission, LC as useModuleActions, bS as useRecordRefresh, jO as useTabRows, xw as validateBooleanQuery, X_ as validateBulkFile, t as withAdminAppId, _ as withAppId, _A as withAuthGuard };
62638
62701
 
62639
62702
  //# sourceMappingURL=index.js.map