@realtek/core-theme-live 0.0.390 → 0.0.391

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
@@ -625,9 +625,9 @@ function Vc(e) {
625
625
  value: n
626
626
  };
627
627
  }
628
- async function Hc() {
629
- let e = await T(s, "/users/manager");
630
- return (Array.isArray(e) ? e : e ? [e] : []).map(Vc).filter(Boolean);
628
+ async function Hc(e) {
629
+ let t = e ? `?jobId=${encodeURIComponent(e)}` : "", n = await T(s, `/users/manager${t}`);
630
+ return (Array.isArray(n) ? n : n ? [n] : []).map(Vc).filter(Boolean);
631
631
  }
632
632
  async function Uc(e) {
633
633
  if (!e) return { recruitersData: [] };
@@ -52624,6 +52624,7 @@ function pR({ field: e, options: t, value: n, onChange: r }) {
52624
52624
  placeholder: e.placeholder,
52625
52625
  className: "dynamic-popup__field-select",
52626
52626
  optionFilterProp: "label",
52627
+ optionRender: hR,
52627
52628
  prefix: /* @__PURE__ */ Y(uo, {})
52628
52629
  });
52629
52630
  }
@@ -52638,10 +52639,34 @@ function mR({ field: e, options: t, value: n, onChange: r }) {
52638
52639
  placeholder: e.placeholder,
52639
52640
  className: "dynamic-popup__field-select",
52640
52641
  optionFilterProp: "label",
52642
+ optionRender: hR,
52641
52643
  prefix: /* @__PURE__ */ Y(uo, {})
52642
52644
  });
52643
52645
  }
52644
- function hR({ field: e, options: t, onSearch: n, value: r, onChange: i, popupContext: a }) {
52646
+ function hR(e) {
52647
+ let t = e?.data ?? e;
52648
+ return !t?.assigned && !t?.assignedTag ? e?.label : /* @__PURE__ */ X("div", {
52649
+ style: {
52650
+ display: "flex",
52651
+ alignItems: "center",
52652
+ justifyContent: "space-between",
52653
+ gap: 8
52654
+ },
52655
+ children: [/* @__PURE__ */ Y("span", {
52656
+ style: {
52657
+ overflow: "hidden",
52658
+ textOverflow: "ellipsis",
52659
+ whiteSpace: "nowrap"
52660
+ },
52661
+ children: e?.label
52662
+ }), /* @__PURE__ */ Y(G, {
52663
+ color: "default",
52664
+ style: { marginInlineEnd: 0 },
52665
+ children: t.assignedTag ?? "Assigned"
52666
+ })]
52667
+ });
52668
+ }
52669
+ function gR({ field: e, options: t, onSearch: n, value: r, onChange: i, popupContext: a }) {
52645
52670
  let o = uR(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;
52646
52671
  async function u(t, n) {
52647
52672
  let r = Array.isArray(t) ? Array.isArray(n) ? n : t.map((e) => c.get(String(e ?? ""))).filter(Boolean) : n ?? c.get(String(t ?? ""));
@@ -52674,7 +52699,7 @@ function hR({ field: e, options: t, onSearch: n, value: r, onChange: i, popupCon
52674
52699
  prefix: /* @__PURE__ */ Y(uo, {})
52675
52700
  });
52676
52701
  }
52677
- function gR({ field: e, mentionOpts: t, onMentionSearch: n, value: r, onChange: i }) {
52702
+ function _R({ field: e, mentionOpts: t, onMentionSearch: n, value: r, onChange: i }) {
52678
52703
  let a = Number(e.maxLength) > 0 ? Number(e.maxLength) : void 0, o = String(r ?? "").length;
52679
52704
  return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(ga, {
52680
52705
  value: r,
@@ -52701,7 +52726,7 @@ function gR({ field: e, mentionOpts: t, onMentionSearch: n, value: r, onChange:
52701
52726
  ]
52702
52727
  }) : null] });
52703
52728
  }
52704
- function _R({ field: e = {}, value: t = {}, onChange: n }) {
52729
+ function vR({ field: e = {}, value: t = {}, onChange: n }) {
52705
52730
  let r = t.period ?? "Hourly", i = t.isRange ?? !1;
52706
52731
  function a(e) {
52707
52732
  n?.({
@@ -52786,7 +52811,7 @@ function _R({ field: e = {}, value: t = {}, onChange: n }) {
52786
52811
  })
52787
52812
  ] });
52788
52813
  }
52789
- function vR({ field: e, value: t, onChange: n }) {
52814
+ function yR({ field: e, value: t, onChange: n }) {
52790
52815
  return /* @__PURE__ */ Y(ca, {
52791
52816
  value: t,
52792
52817
  onChange: n,
@@ -52795,14 +52820,14 @@ function vR({ field: e, value: t, onChange: n }) {
52795
52820
  format: "YYYY-MM-DD"
52796
52821
  });
52797
52822
  }
52798
- function yR({ field: e, checked: t, onChange: n }) {
52823
+ function bR({ field: e, checked: t, onChange: n }) {
52799
52824
  return /* @__PURE__ */ Y(oa, {
52800
52825
  checked: t,
52801
52826
  onChange: n,
52802
52827
  children: e.checkboxLabel
52803
52828
  });
52804
52829
  }
52805
- function bR({ field: e, value: t, onChange: n }) {
52830
+ function xR({ field: e, value: t, onChange: n }) {
52806
52831
  return /* @__PURE__ */ Y(ma, {
52807
52832
  value: t,
52808
52833
  onChange: n,
@@ -52812,43 +52837,52 @@ function bR({ field: e, value: t, onChange: n }) {
52812
52837
  style: { width: "100%" }
52813
52838
  });
52814
52839
  }
52815
- function xR({ options: e, value: t, onChange: n }) {
52840
+ function SR({ options: e, value: t, onChange: n }) {
52816
52841
  return /* @__PURE__ */ Y(Ca.Group, {
52817
52842
  value: t,
52818
52843
  onChange: n,
52819
52844
  options: e
52820
52845
  });
52821
52846
  }
52822
- var SR = {
52847
+ var CR = {
52823
52848
  input: dR,
52824
52849
  text: dR,
52825
52850
  textarea: fR,
52826
52851
  select: pR,
52827
52852
  "multi-select": mR,
52828
- "search-select": hR,
52829
- "mention-textarea": gR,
52830
- "candidate-rate": _R,
52831
- "priority-checkbox": yR,
52832
- "date-picker": vR,
52833
- number: bR,
52834
- radio: xR
52853
+ "search-select": gR,
52854
+ "mention-textarea": _R,
52855
+ "candidate-rate": vR,
52856
+ "priority-checkbox": bR,
52857
+ "date-picker": yR,
52858
+ number: xR,
52859
+ radio: SR
52835
52860
  };
52836
- function CR(e) {
52861
+ function wR(e) {
52837
52862
  return e === "priority-checkbox" ? { valuePropName: "checked" } : {};
52838
52863
  }
52839
52864
  //#endregion
52840
52865
  //#region src/components/popups/dynamic/PopupFields.jsx
52841
- var wR = /* @__PURE__ */ new Set([
52866
+ var TR = /* @__PURE__ */ new Set([
52842
52867
  "input",
52843
52868
  "text",
52844
52869
  "textarea",
52845
52870
  "mention-textarea"
52846
52871
  ]);
52847
- function TR({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupContext: i, extraData: a, removedIds: o, setRemovedIds: s, showAlreadyAssigned: c, onValuesChange: l, getSearchHandler: u, getMentionSearchHandler: d, mentionOptions: f }) {
52872
+ function ER({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupContext: i, extraData: a, removedIds: o, setRemovedIds: s, showAlreadyAssigned: c, onValuesChange: l, getSearchHandler: u, getMentionSearchHandler: d, mentionOptions: f }) {
52848
52873
  let p = (a?.recruitersData ?? []).filter((e) => {
52849
52874
  let t = String(e?.user_id ?? e?.id ?? e?.userId ?? "");
52850
52875
  return t && !o.includes(t);
52851
- }), m = c && a, h = new Set(c ? p.map((e) => String(e?.user_id ?? e?.id ?? e?.userId ?? "").trim()).filter(Boolean) : []), g = (e) => h.size === 0 || !Array.isArray(e) ? e : e.filter((e) => !h.has(String((e && typeof e == "object" ? e.value ?? e.id : e) ?? "").trim()));
52876
+ }), m = c && a, h = new Set(c ? p.map((e) => String(e?.user_id ?? e?.id ?? e?.userId ?? "").trim()).filter(Boolean) : []), g = (e) => h.size === 0 || !Array.isArray(e) ? e : e.map((e) => {
52877
+ let t = String((e && typeof e == "object" ? e.value ?? e.id : e) ?? "").trim();
52878
+ return !h.has(t) || !e || typeof e != "object" ? e : {
52879
+ ...e,
52880
+ disabled: !0,
52881
+ assigned: !0,
52882
+ assignedTag: "Assigned",
52883
+ title: e.title ?? "Already assigned to this job"
52884
+ };
52885
+ });
52852
52886
  return !t.length && !m ? null : /* @__PURE__ */ X(J, { children: [m && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X("div", {
52853
52887
  className: "dynamic-popup__already-assigned",
52854
52888
  children: [/* @__PURE__ */ Y(Ie, {
@@ -52882,15 +52916,15 @@ function TR({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
52882
52916
  layout: "vertical",
52883
52917
  initialValues: n,
52884
52918
  onValuesChange: (e, t) => l(t),
52885
- children: ER(t).map((e) => DR(e, (e) => {
52886
- let t = g(r[e.name] ?? XL(e, i)), n = u(e), a = d(e), o = f[e.name] ?? [], s = CR(e.type), c = SR[e.type], l = [];
52919
+ children: DR(t).map((e) => OR(e, (e) => {
52920
+ let t = g(r[e.name] ?? XL(e, i)), n = u(e), a = d(e), o = f[e.name] ?? [], s = wR(e.type), c = CR[e.type], l = [];
52887
52921
  return e.required && l.push({
52888
52922
  required: !0,
52889
52923
  message: `${e.label || "This field"} is required`
52890
52924
  }), typeof e.validator == "function" && l.push({ validator: (t, n) => {
52891
52925
  let r = e.validator(n, i);
52892
52926
  return r ? Promise.reject(Error(r)) : Promise.resolve();
52893
- } }), wR.has(e.type) && l.push(Ei({
52927
+ } }), TR.has(e.type) && l.push(Ei({
52894
52928
  label: e.label,
52895
52929
  field: e.name,
52896
52930
  type: e.type
@@ -52911,7 +52945,7 @@ function TR({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
52911
52945
  }))
52912
52946
  })] });
52913
52947
  }
52914
- function ER(e) {
52948
+ function DR(e) {
52915
52949
  let t = [];
52916
52950
  for (let n of e) {
52917
52951
  let e = t[t.length - 1];
@@ -52922,7 +52956,7 @@ function ER(e) {
52922
52956
  }
52923
52957
  return t.map((e) => e.fields);
52924
52958
  }
52925
- function DR(e, t) {
52959
+ function OR(e, t) {
52926
52960
  return e.length === 1 ? t(e[0]) : /* @__PURE__ */ Y("div", {
52927
52961
  style: {
52928
52962
  display: "flex",
@@ -52940,7 +52974,7 @@ function DR(e, t) {
52940
52974
  }
52941
52975
  //#endregion
52942
52976
  //#region src/components/popups/dynamic/hooks/usePopupOptions.js
52943
- function OR(e) {
52977
+ function kR(e) {
52944
52978
  return [
52945
52979
  "select",
52946
52980
  "multi-select",
@@ -52948,15 +52982,15 @@ function OR(e) {
52948
52982
  "radio"
52949
52983
  ].includes(e?.type) && e?.dataSource === "master" && e?.masterName;
52950
52984
  }
52951
- function kR(e) {
52985
+ function AR(e) {
52952
52986
  let t = e?.data ?? e;
52953
52987
  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 : [];
52954
52988
  }
52955
- function AR(e) {
52989
+ function jR(e) {
52956
52990
  let t = String(e?.masterName ?? "").trim().toLowerCase();
52957
52991
  return t === "clientsubmissions" || t === "clientsubmissionstatus";
52958
52992
  }
52959
- function jR(e) {
52993
+ function MR(e) {
52960
52994
  if (e == null) return null;
52961
52995
  if (typeof e == "string") {
52962
52996
  let t = e.trim();
@@ -52986,36 +53020,36 @@ function jR(e) {
52986
53020
  }
52987
53021
  };
52988
53022
  }
52989
- function MR(e, t) {
52990
- return AR(t) ? jR(e) : YL(e, t);
53023
+ function NR(e, t) {
53024
+ return jR(t) ? MR(e) : YL(e, t);
52991
53025
  }
52992
- function NR(e) {
53026
+ function PR(e) {
52993
53027
  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;
52994
53028
  return {
52995
53029
  id: n,
52996
53030
  text: String(r ?? e?.clientSubmissionStatusText ?? e?.clientStatus ?? e?.clientStatusText ?? e?.["clientSubmissionStatus.clientSubmissionStatusText"] ?? "").trim()
52997
53031
  };
52998
53032
  }
52999
- function PR(e) {
53033
+ function FR(e) {
53000
53034
  let t = Number(e?.id ?? 0) || 0, n = String(e?.text ?? "").trim();
53001
53035
  return n && n.toLowerCase() === "not submitted" ? !0 : t <= 0 && !n;
53002
53036
  }
53003
- function FR(e) {
53037
+ function IR(e) {
53004
53038
  return Number(e?._raw?.id ?? e?._raw?.uniqueId ?? 0) || 0;
53005
53039
  }
53006
- function IR(e) {
53040
+ function LR(e) {
53007
53041
  let t = e?._raw?.allowedNextStatusIds;
53008
53042
  return Array.isArray(t) ? t.map(Number).filter((e) => Number.isInteger(e) && e > 0) : [];
53009
53043
  }
53010
- function LR(e) {
53044
+ function RR(e) {
53011
53045
  let t = e?.data ?? e;
53012
53046
  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;
53013
53047
  }
53014
- function RR(e) {
53015
- return (Array.isArray(e?.selectedRecords) ? e.selectedRecords.filter(Boolean) : []).some((e) => !PR(NR(e))) ? !0 : !PR(NR(e ?? {}));
53048
+ function zR(e) {
53049
+ return (Array.isArray(e?.selectedRecords) ? e.selectedRecords.filter(Boolean) : []).some((e) => !FR(PR(e))) ? !0 : !FR(PR(e ?? {}));
53016
53050
  }
53017
- async function zR(e, t) {
53018
- if (RR(e)) return e;
53051
+ async function BR(e, t) {
53052
+ if (zR(e)) return e;
53019
53053
  let n = e?.selectedIds?.[0] ?? e?.selectedRecords?.[0]?._id ?? e?.selectedRecords?.[0]?.id;
53020
53054
  if (!n) return e;
53021
53055
  let r = String(e?.moduleName ?? "submissions").trim() || "submissions", i = new URLSearchParams({
@@ -53024,7 +53058,7 @@ async function zR(e, t) {
53024
53058
  });
53025
53059
  t && i.set("app_id", t);
53026
53060
  try {
53027
- let n = LR(await x(k, `/module-data-detail?${i.toString()}`, { headers: t ? { "X-App-Id": t } : void 0 }));
53061
+ let n = RR(await x(k, `/module-data-detail?${i.toString()}`, { headers: t ? { "X-App-Id": t } : void 0 }));
53028
53062
  if (!n) return e;
53029
53063
  let r = Array.isArray(e?.selectedRecords) ? e.selectedRecords : [];
53030
53064
  return {
@@ -53038,7 +53072,7 @@ async function zR(e, t) {
53038
53072
  return console.warn("[DynamicPopup] Could not load selected submission detail for client status transition:", t), e;
53039
53073
  }
53040
53074
  }
53041
- function BR(e, t) {
53075
+ function VR(e, t) {
53042
53076
  if (!Array.isArray(e) || !e.length) return [];
53043
53077
  if (!e.some((e) => e?._raw?.isInitialStatus === !0 || e?._raw?.isTerminalStatus === !0 || Array.isArray(e?._raw?.allowedNextStatusIds))) return e;
53044
53078
  let n = Array.isArray(t?.selectedRecords) ? t.selectedRecords.filter(Boolean) : [], r = {
@@ -53052,20 +53086,20 @@ function BR(e, t) {
53052
53086
  "clientSubmissionStatus.clientSubmissionStatusText": t?.["clientSubmissionStatus.clientSubmissionStatusText"]
53053
53087
  }, i = n.length ? n : [r];
53054
53088
  return e.filter((t) => i.every((n) => {
53055
- let i = NR(n);
53056
- if (PR(i)) {
53057
- let e = NR(r);
53058
- PR(e) || (i = e);
53089
+ let i = PR(n);
53090
+ if (FR(i)) {
53091
+ let e = PR(r);
53092
+ FR(e) || (i = e);
53059
53093
  }
53060
- if (PR(i)) return t?._raw?.isInitialStatus === !0;
53094
+ if (FR(i)) return t?._raw?.isInitialStatus === !0;
53061
53095
  let a = e.find((e) => {
53062
- let t = FR(e), n = String(e?.label ?? "").trim();
53096
+ let t = IR(e), n = String(e?.label ?? "").trim();
53063
53097
  return i.id > 0 && t === i.id || i.text && n.toLowerCase() === i.text.toLowerCase();
53064
53098
  });
53065
- return !a || a?._raw?.isTerminalStatus === !0 ? !1 : IR(a).includes(FR(t));
53099
+ return !a || a?._raw?.isTerminalStatus === !0 ? !1 : LR(a).includes(IR(t));
53066
53100
  }));
53067
53101
  }
53068
- function VR({ open: e, config: t, api: n, fields: r, popupContext: i, formValues: a }) {
53102
+ function HR({ open: e, config: t, api: n, fields: r, popupContext: i, formValues: a }) {
53069
53103
  let [o, s] = L({}), [c, l] = L(null);
53070
53104
  return F(() => {
53071
53105
  e || (s({}), l(null));
@@ -53090,7 +53124,7 @@ function VR({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
53090
53124
  i
53091
53125
  ]), F(() => {
53092
53126
  if (!e || !t) return;
53093
- let n = r.filter(OR);
53127
+ let n = r.filter(kR);
53094
53128
  if (!n.length) return;
53095
53129
  let a = new AbortController();
53096
53130
  return n.forEach((e) => {
@@ -53101,9 +53135,9 @@ function VR({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
53101
53135
  }), n = String(u ?? "").trim();
53102
53136
  n && t.set("app_id", n), x(k, `/masters/dropdown?${t.toString()}`, { headers: n ? { "X-App-Id": n } : void 0 }).then(async (t) => {
53103
53137
  if (a.signal.aborted) return;
53104
- let r = kR(t).map((t) => MR(t, e)).filter(Boolean), o = i;
53105
- if (AR(e) && (o = await zR(i, n)), a.signal.aborted) return;
53106
- let c = AR(e) ? BR(r, o) : r;
53138
+ let r = AR(t).map((t) => NR(t, e)).filter(Boolean), o = i;
53139
+ if (jR(e) && (o = await BR(i, n)), a.signal.aborted) return;
53140
+ let c = jR(e) ? VR(r, o) : r;
53107
53141
  s((t) => ({
53108
53142
  ...t,
53109
53143
  [e.name]: c
@@ -53161,8 +53195,8 @@ function VR({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
53161
53195
  }
53162
53196
  //#endregion
53163
53197
  //#region src/components/popups/dynamic/hooks/usePopupSearch.js
53164
- var HR = 500, UR = 3;
53165
- function WR({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOptions: i }) {
53198
+ var UR = 500, WR = 3;
53199
+ function GR({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOptions: i }) {
53166
53200
  let [a, o] = L({}), s = $i({}), c = $i({}), l = $i({}), u = Yi((t, n) => {
53167
53201
  let a = e.searchOptions ?? e.searchFetcher;
53168
53202
  if (typeof a != "function") return;
@@ -53198,13 +53232,13 @@ function WR({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOption
53198
53232
  }, [t, f]);
53199
53233
  function m(t) {
53200
53234
  if (!t.searchFetchKey && !t.searchFetcher || typeof (e.searchOptions ?? e.searchFetcher) != "function") return;
53201
- let n = t.searchMinLength ?? UR;
53235
+ let n = t.searchMinLength ?? WR;
53202
53236
  return (e) => {
53203
53237
  clearTimeout(s.current[t.name]);
53204
53238
  let r = e.length < n ? "" : e;
53205
53239
  s.current[t.name] = setTimeout(() => {
53206
53240
  u(t, r);
53207
- }, HR);
53241
+ }, UR);
53208
53242
  };
53209
53243
  }
53210
53244
  function h(t) {
@@ -53235,7 +53269,7 @@ function WR({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOption
53235
53269
  }
53236
53270
  //#endregion
53237
53271
  //#region src/components/popups/dynamic/hooks/usePopupSubmit.js
53238
- function GR({ 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 }) {
53272
+ function KR({ 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 }) {
53239
53273
  let [f, p] = L(!1), [m, h] = L(null);
53240
53274
  async function g(e) {
53241
53275
  let t = {
@@ -53310,7 +53344,7 @@ function GR({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
53310
53344
  }
53311
53345
  //#endregion
53312
53346
  //#region src/components/popups/dynamic/DynamicPopup.jsx
53313
- function KR({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i, api: a = {} }) {
53347
+ function qR({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i, api: a = {} }) {
53314
53348
  let [o] = B.useForm(), [s, c] = L({}), [l, u] = L([]), d = B.useWatch([], o, { preserve: !0 }) ?? {}, f = I(() => ZL(n), [n]), { selectedIds: p = [], selectedRecords: m = [], moduleName: h = "" } = f, g = I(() => p.map((e, t) => {
53315
53349
  let n = m[t];
53316
53350
  return n?.id ?? n?._id ?? e;
@@ -53320,14 +53354,14 @@ function KR({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
53320
53354
  let n = f[t.initialValueKey];
53321
53355
  !t.initialValueKey || n === void 0 || (e[t.name] = t.type === "date-picker" ? zs(n) : n);
53322
53356
  }), e;
53323
- }, [_, f]), { dynamicOptions: y, setDynamicOptions: b, extraData: x } = VR({
53357
+ }, [_, f]), { dynamicOptions: y, setDynamicOptions: b, extraData: x } = HR({
53324
53358
  open: e,
53325
53359
  config: t,
53326
53360
  api: a,
53327
53361
  fields: _,
53328
53362
  popupContext: f,
53329
53363
  formValues: s
53330
- }), { mentionOptions: S, getSearchHandler: C, getMentionSearchHandler: w } = WR({
53364
+ }), { mentionOptions: S, getSearchHandler: C, getMentionSearchHandler: w } = GR({
53331
53365
  api: a,
53332
53366
  open: e,
53333
53367
  fields: _,
@@ -53343,7 +53377,7 @@ function KR({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
53343
53377
  }), O = (f.removedIds ?? []).length, k = l.length > O, A = E.some((e) => {
53344
53378
  let t = d[e.name];
53345
53379
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0);
53346
- }), { handleOk: j, confirming: ee, deleteError: M, resetSubmitState: te } = GR({
53380
+ }), { handleOk: j, confirming: ee, deleteError: M, resetSubmitState: te } = KR({
53347
53381
  form: o,
53348
53382
  config: t,
53349
53383
  api: a,
@@ -53418,7 +53452,7 @@ function KR({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
53418
53452
  deleteError: M
53419
53453
  }),
53420
53454
  /* @__PURE__ */ Y(HL, { footerNote: t.footerNote }),
53421
- /* @__PURE__ */ Y(TR, {
53455
+ /* @__PURE__ */ Y(ER, {
53422
53456
  form: o,
53423
53457
  fields: _,
53424
53458
  initialValues: v,
@@ -53438,7 +53472,7 @@ function KR({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
53438
53472
  }
53439
53473
  //#endregion
53440
53474
  //#region src/components/popups/definitions/delete/config.js
53441
- var qR = {
53475
+ var JR = {
53442
53476
  mode: "delete",
53443
53477
  getTitleText: (e, t) => `Delete ${e > 0 ? `${e} ` : ""}${t}`,
53444
53478
  titleIcon: "delete",
@@ -53448,19 +53482,19 @@ var qR = {
53448
53482
  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}?`,
53449
53483
  footerNote: "This action cannot be undone.",
53450
53484
  fields: []
53451
- }, JR = { deleteItems: async (e, t) => {
53485
+ }, YR = { deleteItems: async (e, t) => {
53452
53486
  await Ac(t.moduleName, e);
53453
- } }, YR = /* @__PURE__ */ new Map();
53454
- async function XR(e) {
53455
- return e ? (YR.has(e) || YR.set(e, Ui({ module: e }).catch((t) => (YR.delete(e), console.warn(`[in-progress gate] could not read ${e} form groups:`, t), []))), YR.get(e)) : [];
53487
+ } }, XR = /* @__PURE__ */ new Map();
53488
+ async function ZR(e) {
53489
+ return e ? (XR.has(e) || XR.set(e, Ui({ module: e }).catch((t) => (XR.delete(e), console.warn(`[in-progress gate] could not read ${e} form groups:`, t), []))), XR.get(e)) : [];
53456
53490
  }
53457
- function ZR(e = [], t) {
53491
+ function QR(e = [], t) {
53458
53492
  return e.some((e) => {
53459
53493
  let n = Te(e, t);
53460
53494
  return n && n.severity !== "allow";
53461
53495
  });
53462
53496
  }
53463
- async function QR({ targetModule: e, sourceModule: t, recordId: n, region: r } = {}) {
53497
+ async function $R({ targetModule: e, sourceModule: t, recordId: n, region: r } = {}) {
53464
53498
  let i = {
53465
53499
  severity: "allow",
53466
53500
  message: "",
@@ -53469,8 +53503,8 @@ async function QR({ targetModule: e, sourceModule: t, recordId: n, region: r } =
53469
53503
  if (!e || !t || !n) return i;
53470
53504
  let a = r ?? Mr().region;
53471
53505
  try {
53472
- let r = await XR(e);
53473
- if (!ZR(r, a)) return i;
53506
+ let r = await ZR(e);
53507
+ if (!QR(r, a)) return i;
53474
53508
  let o = await Ui({
53475
53509
  module: t,
53476
53510
  id: n
@@ -53486,13 +53520,13 @@ async function QR({ targetModule: e, sourceModule: t, recordId: n, region: r } =
53486
53520
  }
53487
53521
  //#endregion
53488
53522
  //#region src/components/popups/definitions/quick-submit/api.js
53489
- var $R = "Already submitted", ez = "submissions", tz = "candidates", nz = 864e5, rz = 90, iz = "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.", az = [
53523
+ var ez = "Already submitted", tz = "submissions", nz = "candidates", rz = 864e5, iz = 90, az = "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.", oz = [
53490
53524
  "createdAt",
53491
53525
  "createdDate",
53492
53526
  "dateCreated",
53493
53527
  "created_on",
53494
53528
  "createdOn"
53495
- ], oz = [
53529
+ ], sz = [
53496
53530
  "updatedAt",
53497
53531
  "updatedDate",
53498
53532
  "lastUpdatedAt",
@@ -53500,7 +53534,7 @@ var $R = "Already submitted", ez = "submissions", tz = "candidates", nz = 864e5,
53500
53534
  "modifiedAt",
53501
53535
  "modifiedDate"
53502
53536
  ];
53503
- function sz(e, t) {
53537
+ function cz(e, t) {
53504
53538
  for (let n of t) {
53505
53539
  let t = e?.[n];
53506
53540
  if (!t) continue;
@@ -53509,27 +53543,27 @@ function sz(e, t) {
53509
53543
  }
53510
53544
  return null;
53511
53545
  }
53512
- function cz(e) {
53513
- return sz(e, az);
53514
- }
53515
53546
  function lz(e) {
53516
- return sz(e, oz);
53547
+ return cz(e, oz);
53517
53548
  }
53518
53549
  function uz(e) {
53550
+ return cz(e, sz);
53551
+ }
53552
+ function dz(e) {
53519
53553
  if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
53520
53554
  let t = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime();
53521
- return Math.max(0, Math.floor((t(/* @__PURE__ */ new Date()) - t(e)) / nz));
53555
+ return Math.max(0, Math.floor((t(/* @__PURE__ */ new Date()) - t(e)) / rz));
53522
53556
  }
53523
- function dz(e) {
53557
+ function fz(e) {
53524
53558
  return e === null ? "" : e <= 14 ? "green" : e <= 89 ? "yellow" : "red";
53525
53559
  }
53526
- function fz(e, t = rz) {
53560
+ function pz(e, t = iz) {
53527
53561
  if (!e) return !1;
53528
- let n = Date.now() - t * nz, r = cz(e), i = lz(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
53562
+ let n = Date.now() - t * rz, r = lz(e), i = uz(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
53529
53563
  return !a && !o;
53530
53564
  }
53531
- function pz(e) {
53532
- let t = cz(e);
53565
+ function mz(e) {
53566
+ let t = lz(e);
53533
53567
  if (!t) return {
53534
53568
  createdAgo: "",
53535
53569
  createdAgoTone: ""
@@ -53537,38 +53571,38 @@ function pz(e) {
53537
53571
  let n = KL(t);
53538
53572
  return n ? {
53539
53573
  createdAgo: n,
53540
- createdAgoTone: dz(uz(t))
53574
+ createdAgoTone: fz(dz(t))
53541
53575
  } : {
53542
53576
  createdAgo: "",
53543
53577
  createdAgoTone: ""
53544
53578
  };
53545
53579
  }
53546
- function mz(e) {
53580
+ function hz(e) {
53547
53581
  return {
53548
53582
  ...e,
53549
- ...pz(e),
53550
- isStaleCandidate: fz(e)
53583
+ ...mz(e),
53584
+ isStaleCandidate: pz(e)
53551
53585
  };
53552
53586
  }
53553
- function hz(e) {
53587
+ function gz(e) {
53554
53588
  return String(e?.applicantId ?? e?._id ?? e?.id ?? "");
53555
53589
  }
53556
- var gz = null;
53557
- async function _z() {
53558
- return gz ||= Ar(tz).then((e) => e?.strategies?.duplicateCheck?.editRoute ?? "").catch(() => ""), gz;
53590
+ var _z = null;
53591
+ async function vz() {
53592
+ return _z ||= Ar(nz).then((e) => e?.strategies?.duplicateCheck?.editRoute ?? "").catch(() => ""), _z;
53559
53593
  }
53560
- async function vz(e) {
53561
- let t = hz(e);
53594
+ async function yz(e) {
53595
+ let t = gz(e);
53562
53596
  if (!t) return "";
53563
- let n = await _z();
53597
+ let n = await vz();
53564
53598
  return n ? n.replace(/:(_?id)\b/g, encodeURIComponent(t)) : "";
53565
53599
  }
53566
- async function yz({ option: e, popupContext: t, confirm: n }) {
53567
- let r = e?._raw ?? e ?? {}, i = hz(r);
53600
+ async function bz({ option: e, popupContext: t, confirm: n }) {
53601
+ let r = e?._raw ?? e ?? {}, i = gz(r);
53568
53602
  if (i) {
53569
- let e = await QR({
53570
- targetModule: ez,
53571
- sourceModule: tz,
53603
+ let e = await $R({
53604
+ targetModule: tz,
53605
+ sourceModule: nz,
53572
53606
  recordId: i
53573
53607
  });
53574
53608
  if (e.severity === "block") return new Promise((t) => {
@@ -53582,34 +53616,34 @@ async function yz({ option: e, popupContext: t, confirm: n }) {
53582
53616
  });
53583
53617
  });
53584
53618
  }
53585
- if (!fz(r)) return !0;
53619
+ if (!pz(r)) return !0;
53586
53620
  let a = t?.navigate;
53587
53621
  return !a || !i ? !1 : new Promise((e) => {
53588
53622
  n({
53589
53623
  title: "Candidate update required",
53590
- content: iz,
53624
+ content: az,
53591
53625
  okText: "OK",
53592
53626
  cancelText: "Cancel",
53593
53627
  onOk: async () => {
53594
- let t = await vz(r);
53628
+ let t = await yz(r);
53595
53629
  t && a(t), e(!1);
53596
53630
  },
53597
53631
  onCancel: () => e(!1)
53598
53632
  });
53599
53633
  });
53600
53634
  }
53601
- function bz(e, t, n) {
53635
+ function xz(e, t, n) {
53602
53636
  return {
53603
53637
  ...e,
53604
- label: `${e.label} - ${$R}`,
53638
+ label: `${e.label} - ${ez}`,
53605
53639
  disabled: !0,
53606
- title: `${$R}${t ? ` (submission ${t})` : ""}`,
53640
+ title: `${ez}${t ? ` (submission ${t})` : ""}`,
53607
53641
  alreadySubmitted: !0,
53608
53642
  existingSubmissionId: t || "",
53609
53643
  ...n ? { submittedAt: n } : {}
53610
53644
  };
53611
53645
  }
53612
- var xz = {
53646
+ var Sz = {
53613
53647
  searchOptions: async (e, t, n) => {
53614
53648
  if (e.searchFetchKey === "quickSubmitJobList") {
53615
53649
  let e = n.selectedRecords?.[0] ?? {}, r = e.id ?? e._id ?? n.selectedIds?.[0], i, a = !0;
@@ -53632,7 +53666,7 @@ var xz = {
53632
53666
  _raw: e
53633
53667
  }));
53634
53668
  if (a) return o.map((e) => {
53635
- if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return bz(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
53669
+ if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return xz(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
53636
53670
  if (e._raw?.disable) {
53637
53671
  let t = String(e._raw?.message ?? "").trim();
53638
53672
  return {
@@ -53650,7 +53684,7 @@ var xz = {
53650
53684
  }).catch(() => /* @__PURE__ */ new Map());
53651
53685
  return o.map((e) => {
53652
53686
  let t = s.get(String(e.value));
53653
- return t ? bz(e, t.submissionId, t.submittedAt) : e;
53687
+ return t ? xz(e, t.submissionId, t.submittedAt) : e;
53654
53688
  });
53655
53689
  }
53656
53690
  if (e.searchFetchKey === "quickSubmitCandidates") {
@@ -53669,17 +53703,17 @@ var xz = {
53669
53703
  });
53670
53704
  i = Array.isArray(e) ? e : [], a = await nl({
53671
53705
  jobId: r,
53672
- applicantIds: i.map(hz)
53706
+ applicantIds: i.map(gz)
53673
53707
  }).catch(() => /* @__PURE__ */ new Map());
53674
53708
  }
53675
- return i.map((e) => mz(e)).map((e) => {
53676
- let t = a.get(hz(e));
53709
+ return i.map((e) => hz(e)).map((e) => {
53710
+ let t = a.get(gz(e));
53677
53711
  if (!(t || e?.isSubmitted === !0 || e?.alreadySubmitted === !0)) return e;
53678
53712
  let n = t?.submissionId || e?.jobSubmissionId || "", r = t?.submittedAt || e?.submittedAt || "";
53679
53713
  return {
53680
53714
  ...e,
53681
53715
  disabled: !0,
53682
- optionNote: $R,
53716
+ optionNote: ez,
53683
53717
  isSubmitted: !0,
53684
53718
  alreadySubmitted: !0,
53685
53719
  existingSubmissionId: n,
@@ -53692,12 +53726,12 @@ var xz = {
53692
53726
  submit: async (e, t, n) => {
53693
53727
  let { navigate: r, selectedRecords: i = [], selectedIds: a = [], moduleName: o } = t, s = i[0] ?? {}, c, l;
53694
53728
  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 ?? "");
53695
- let u = n?.dynamicOptions?.candidate?.find((e) => hz(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;
53729
+ let u = n?.dynamicOptions?.candidate?.find((e) => gz(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;
53696
53730
  if (!c || !l) throw Error("Select both a job and a candidate to quick submit.");
53697
- if (fz(u?._raw)) throw Error(iz);
53698
- let p = await QR({
53699
- targetModule: ez,
53700
- sourceModule: tz,
53731
+ if (pz(u?._raw)) throw Error(az);
53732
+ let p = await $R({
53733
+ targetModule: tz,
53734
+ sourceModule: nz,
53701
53735
  recordId: l
53702
53736
  });
53703
53737
  if (p.severity === "block") throw Error(p.message);
@@ -53722,7 +53756,7 @@ var xz = {
53722
53756
  }).catch(() => []));
53723
53757
  return r(`/submission-create/${c}?${g.toString()}`, { state: { relevantSkillsToken: v } }), { navigated: !0 };
53724
53758
  }
53725
- }, Sz = {
53759
+ }, Cz = {
53726
53760
  title: "Submit",
53727
53761
  okText: "Submit",
53728
53762
  width: 640,
@@ -53779,9 +53813,9 @@ var xz = {
53779
53813
  type: "relative"
53780
53814
  }]
53781
53815
  },
53782
- onSelectGuard: yz
53816
+ onSelectGuard: bz
53783
53817
  }]
53784
- }, Cz = {
53818
+ }, wz = {
53785
53819
  title: "Add Notes & Share",
53786
53820
  okText: "Save & Share",
53787
53821
  width: 480,
@@ -53795,9 +53829,9 @@ var xz = {
53795
53829
  placeholder: "Add your notes on the job. Use '@' to mention someone.",
53796
53830
  mentionFetchKey: "mentionUsers"
53797
53831
  }]
53798
- }, wz = (e) => e?.data ?? e;
53799
- async function Tz({ relatedId: e, notes: t, title: n, notesFor: r }) {
53800
- return wz(await cd(k, "/notes", {
53832
+ }, Tz = (e) => e?.data ?? e;
53833
+ async function Ez({ relatedId: e, notes: t, title: n, notesFor: r }) {
53834
+ return Tz(await cd(k, "/notes", {
53801
53835
  method: "POST",
53802
53836
  body: JSON.stringify({
53803
53837
  relatedId: e,
@@ -53809,18 +53843,18 @@ async function Tz({ relatedId: e, notes: t, title: n, notesFor: r }) {
53809
53843
  }
53810
53844
  //#endregion
53811
53845
  //#region src/components/popups/definitions/add-notes/api.js
53812
- var Ez = {
53846
+ var Dz = {
53813
53847
  getMentionOptions: async (e, t) => Mc(t),
53814
53848
  submit: async (e, t) => {
53815
53849
  let n = Array.isArray(t.selectedIds) ? t.selectedIds[0] : t.selectedIds;
53816
53850
  if (!n) throw Error("Please select a record before adding a note.");
53817
- await Tz({
53851
+ await Ez({
53818
53852
  relatedId: String(n),
53819
53853
  notes: e.notes,
53820
53854
  notesFor: t.moduleName
53821
53855
  });
53822
53856
  }
53823
- }, Dz = {
53857
+ }, Oz = {
53824
53858
  name: "jobId",
53825
53859
  label: "Job Title / ID",
53826
53860
  type: "search-select",
@@ -53830,7 +53864,7 @@ var Ez = {
53830
53864
  multiSelect: !0,
53831
53865
  valueKey: "_id",
53832
53866
  labelTemplate: "{jobReferenceId} - {jobTitle} — {jobRecruitmentStatus}"
53833
- }, Oz = {
53867
+ }, kz = {
53834
53868
  name: "hiringStage",
53835
53869
  label: "Hiring stage",
53836
53870
  type: "select",
@@ -53844,22 +53878,22 @@ var Ez = {
53844
53878
  value: "pipeline"
53845
53879
  }],
53846
53880
  initialValueKey: "hiringStage"
53847
- }, kz = {
53881
+ }, Az = {
53848
53882
  title: "Tag to Jobs",
53849
53883
  okText: "Tag",
53850
53884
  width: 480,
53851
53885
  disabledUntilFilled: !0,
53852
53886
  autoSubmitWhenNoFields: !0,
53853
- getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [Oz] : [Dz, Oz]
53854
- }, Az = (e) => e?.data ?? e;
53855
- function jz(e) {
53887
+ getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [kz] : [Oz, kz]
53888
+ }, jz = (e) => e?.data ?? e;
53889
+ function Mz(e) {
53856
53890
  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;
53857
53891
  }
53858
- function Mz(e) {
53859
- return e ? Array.isArray(e.data) ? e.data.map(jz) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(jz) : Array.isArray(e) ? e.map(jz) : [] : [];
53892
+ function Nz(e) {
53893
+ return e ? Array.isArray(e.data) ? e.data.map(Mz) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(Mz) : Array.isArray(e) ? e.map(Mz) : [] : [];
53860
53894
  }
53861
- async function Nz(e = 1, t = 10) {
53862
- let n = await x(k, `/workflow/list/all?page=${e}&limit=${t}`), r = Az(n), i = Array.isArray(r) ? r : r?.data ?? [];
53895
+ async function Pz(e = 1, t = 10) {
53896
+ let n = await x(k, `/workflow/list/all?page=${e}&limit=${t}`), r = jz(n), i = Array.isArray(r) ? r : r?.data ?? [];
53863
53897
  return {
53864
53898
  items: i,
53865
53899
  total: Number(n?.total ?? r?.total) || i.length,
@@ -53867,11 +53901,11 @@ async function Nz(e = 1, t = 10) {
53867
53901
  limit: t
53868
53902
  };
53869
53903
  }
53870
- async function Pz(e, t) {
53871
- let n = Az(await x(k, `/workflow/${e}/stage/${t}`));
53904
+ async function Fz(e, t) {
53905
+ let n = jz(await x(k, `/workflow/${e}/stage/${t}`));
53872
53906
  return Array.isArray(n) ? { data: n } : n;
53873
53907
  }
53874
- async function Fz(e, t) {
53908
+ async function Iz(e, t) {
53875
53909
  if (!e || !t) return null;
53876
53910
  try {
53877
53911
  let n = new URLSearchParams({
@@ -53885,7 +53919,7 @@ async function Fz(e, t) {
53885
53919
  values: [String(t)],
53886
53920
  operator: "and"
53887
53921
  }])
53888
- }), r = Az(await x(k, `/module-data-list?${n}`));
53922
+ }), r = jz(await x(k, `/module-data-list?${n}`));
53889
53923
  if (Array.isArray(r)) return r[0] ?? null;
53890
53924
  if (r?.data && Array.isArray(r.data)) return r.data[0] ?? null;
53891
53925
  let i = r?.rows ?? r?.records ?? r?.items ?? r?.list;
@@ -53894,15 +53928,15 @@ async function Fz(e, t) {
53894
53928
  return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
53895
53929
  }
53896
53930
  }
53897
- async function Iz(e) {
53898
- return Az(await x(s, "/source/workflow-instance", {
53931
+ async function Lz(e) {
53932
+ return jz(await x(s, "/source/workflow-instance", {
53899
53933
  method: "POST",
53900
53934
  body: JSON.stringify(e)
53901
53935
  }));
53902
53936
  }
53903
53937
  //#endregion
53904
53938
  //#region src/components/popups/definitions/tag-to-job/api.js
53905
- var Lz = {
53939
+ var Rz = {
53906
53940
  pipeline: "pipeline",
53907
53941
  goodfited: "goodfited",
53908
53942
  contacted: "contacted",
@@ -53911,40 +53945,40 @@ var Lz = {
53911
53945
  interviewinprogress: "interviewInprogress",
53912
53946
  selected: "selected"
53913
53947
  };
53914
- function Rz(e, ...t) {
53948
+ function zz(e, ...t) {
53915
53949
  for (let n of t) {
53916
53950
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
53917
53951
  if (t != null && t !== "") return t;
53918
53952
  }
53919
53953
  }
53920
- function zz(e) {
53954
+ function Bz(e) {
53921
53955
  let t = String(e ?? "").trim();
53922
- return t ? Lz[t.toLowerCase()] ?? t : "";
53956
+ return t ? Rz[t.toLowerCase()] ?? t : "";
53923
53957
  }
53924
- function Bz(e, t) {
53925
- let n = Rz(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
53958
+ function Vz(e, t) {
53959
+ let n = zz(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
53926
53960
  if (!n) return null;
53927
- let r = (Rz(e, "candidateName", "candidate_name", "fullName", "name") ?? [Rz(e, "firstName", "first_name"), Rz(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
53961
+ let r = (zz(e, "candidateName", "candidate_name", "fullName", "name") ?? [zz(e, "firstName", "first_name"), zz(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
53928
53962
  candidateId: String(n),
53929
53963
  candidateName: r,
53930
- phone: Rz(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
53931
- source: Rz(e, "source", "sourceType", "candidateSource", "profileSource"),
53932
- submittedAt: Rz(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
53933
- remarks: Rz(e, "remarks", "comment", "comments", "notes"),
53934
- assignedRecruiter: Rz(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
53935
- screeningStatus: Rz(e, "screeningStatus", "screening.status", "screeningResult"),
53936
- screeningScore: Rz(e, "screeningScore", "screening.score", "score"),
53937
- assignedDate: Rz(e, "assignedDate", "assignedAt", "createdAt")
53964
+ phone: zz(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
53965
+ source: zz(e, "source", "sourceType", "candidateSource", "profileSource"),
53966
+ submittedAt: zz(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
53967
+ remarks: zz(e, "remarks", "comment", "comments", "notes"),
53968
+ assignedRecruiter: zz(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
53969
+ screeningStatus: zz(e, "screeningStatus", "screening.status", "screeningResult"),
53970
+ screeningScore: zz(e, "screeningScore", "screening.score", "score"),
53971
+ assignedDate: zz(e, "assignedDate", "assignedAt", "createdAt")
53938
53972
  };
53939
53973
  return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
53940
53974
  }
53941
- var Vz = {
53975
+ var Hz = {
53942
53976
  searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? jc(t) : [],
53943
53977
  submit: async (e, t) => {
53944
- let n = e.jobId ?? t.jobId, r = Array.isArray(n) ? n : [n].filter(Boolean), i = zz(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);
53978
+ let n = e.jobId ?? t.jobId, r = Array.isArray(n) ? n : [n].filter(Boolean), i = Bz(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);
53945
53979
  for (let e of r) for (let t = 0; t < s; t += 1) {
53946
- let n = a[t] ? String(a[t]) : "", r = Bz(o[t] ?? {}, n);
53947
- await Iz({
53980
+ let n = a[t] ? String(a[t]) : "", r = Vz(o[t] ?? {}, n);
53981
+ await Lz({
53948
53982
  jobId: e,
53949
53983
  module: "jobs",
53950
53984
  currentStage: i,
@@ -53957,7 +53991,7 @@ var Vz = {
53957
53991
  hiringStage: i
53958
53992
  });
53959
53993
  }
53960
- }, Hz = {
53994
+ }, Uz = {
53961
53995
  title: "Change Status",
53962
53996
  okText: "Apply",
53963
53997
  width: 420,
@@ -53995,18 +54029,18 @@ var Vz = {
53995
54029
  };
53996
54030
  //#endregion
53997
54031
  //#region src/components/popups/definitions/change-status/api.js
53998
- function Uz(e, t) {
54032
+ function Wz(e, t) {
53999
54033
  let n = String(e ?? "").trim().toLowerCase();
54000
54034
  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;
54001
54035
  }
54002
- var Wz = { submit: async (e, t, n) => {
54003
- let r = Uz(e.status, n?.dynamicOptions), i = r?._raw ?? {}, a = {
54036
+ var Gz = { submit: async (e, t, n) => {
54037
+ let r = Wz(e.status, n?.dynamicOptions), i = r?._raw ?? {}, a = {
54004
54038
  clientSubmissionStatusText: String(i.name ?? r?.label ?? e.status ?? "").trim(),
54005
54039
  clientSubmissionStatusId: Number(i.id ?? i.uniqueId ?? 0) || 0,
54006
54040
  clientSubmissionStatusType: String(i.type ?? "").trim()
54007
54041
  };
54008
54042
  await kc(t.moduleName, t.selectedIds, a);
54009
- } }, Gz = {
54043
+ } }, Kz = {
54010
54044
  getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
54011
54045
  titleIcon: "delete",
54012
54046
  okText: "Remove",
@@ -54015,12 +54049,12 @@ var Wz = { submit: async (e, t, n) => {
54015
54049
  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?",
54016
54050
  footerNote: "The candidate will be moved back to the pipeline.",
54017
54051
  fields: []
54018
- }, Kz = { onOk: async (e) => {
54052
+ }, qz = { onOk: async (e) => {
54019
54053
  await rl({
54020
54054
  jobId: e.jobId ?? e.selectedIds[0],
54021
54055
  candidateIds: e.selectedIds
54022
54056
  });
54023
- } }, qz = {
54057
+ } }, Jz = {
54024
54058
  title: "Add to Groups",
54025
54059
  description: "Select a group to add the selected candidate(s) to",
54026
54060
  okText: "Add to Group",
@@ -54034,7 +54068,7 @@ var Wz = { submit: async (e, t, n) => {
54034
54068
  placeholder: "Select a group",
54035
54069
  fetchOptionsKey: "candidateGroups"
54036
54070
  }]
54037
- }, Jz = {
54071
+ }, Yz = {
54038
54072
  getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? Lc() : [],
54039
54073
  submit: async (e, t, { dynamicOptions: n }) => {
54040
54074
  let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
@@ -54044,7 +54078,7 @@ var Wz = { submit: async (e, t, n) => {
54044
54078
  groupName: r?.label ?? ""
54045
54079
  });
54046
54080
  }
54047
- }, Yz = [
54081
+ }, Xz = [
54048
54082
  {
54049
54083
  title: "Name",
54050
54084
  key: "name",
@@ -54063,7 +54097,7 @@ var Wz = { submit: async (e, t, n) => {
54063
54097
  render: (e) => e || "-"
54064
54098
  }
54065
54099
  ];
54066
- function Xz({ selectedIds: e, onClose: t }) {
54100
+ function Zz({ selectedIds: e, onClose: t }) {
54067
54101
  let n = e?.[0], [r, i] = L(!0), [a, o] = L(!1), [s, c] = L({
54068
54102
  assignedUsers: [],
54069
54103
  totalSubmissions: 0,
@@ -54127,7 +54161,7 @@ function Xz({ selectedIds: e, onClose: t }) {
54127
54161
  children: "Team Members Allocated"
54128
54162
  }),
54129
54163
  /* @__PURE__ */ Y(ja, {
54130
- columns: Yz,
54164
+ columns: Xz,
54131
54165
  dataSource: m,
54132
54166
  pagination: !1,
54133
54167
  rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
@@ -54176,25 +54210,25 @@ function Xz({ selectedIds: e, onClose: t }) {
54176
54210
  })]
54177
54211
  });
54178
54212
  }
54179
- Xz.propTypes = {
54213
+ Zz.propTypes = {
54180
54214
  selectedIds: Z.array,
54181
54215
  onClose: Z.func
54182
54216
  };
54183
54217
  //#endregion
54184
54218
  //#region src/components/popups/definitions/self-assign/config.js
54185
- var Zz = {
54219
+ var Qz = {
54186
54220
  title: "Self Assign",
54187
54221
  width: 480,
54188
54222
  className: "self-assign-modal",
54189
- component: Xz
54190
- }, Qz = { submit: async () => {} };
54223
+ component: Zz
54224
+ }, $z = { submit: async () => {} };
54191
54225
  //#endregion
54192
54226
  //#region src/components/popups/definitions/others-assign/config.js
54193
- function $z(e = {}) {
54227
+ function eB(e = {}) {
54194
54228
  let t = Array.isArray(e.jobPayDetails) ? e.jobPayDetails[e.jobPayDetails.length - 1] : e.jobPayDetails ?? e.clientBudget ?? {}, n = Number(t.clientBudgetEnd), r = Number(t.clientBudgetStart);
54195
54229
  return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
54196
54230
  }
54197
- var eB = {
54231
+ var tB = {
54198
54232
  getTitleText: (e, t, n) => {
54199
54233
  let r = n?.jobTitle || n?.title || "";
54200
54234
  return r ? `Assign - ${r}` : "Assign";
@@ -54204,7 +54238,7 @@ var eB = {
54204
54238
  disabledUntilFilled: !0,
54205
54239
  showAlreadyAssigned: !0,
54206
54240
  allowRemovalOnlySubmit: !0,
54207
- getFields: (e) => ($z(e?.selectedRecords?.[0] ?? {}), [{
54241
+ getFields: (e) => (eB(e?.selectedRecords?.[0] ?? {}), [{
54208
54242
  name: "assignToUserId",
54209
54243
  label: "Assign to",
54210
54244
  type: "multi-select",
@@ -54212,8 +54246,8 @@ var eB = {
54212
54246
  placeholder: "Select recruiter(s)",
54213
54247
  fetchOptionsKey: "assignToUsers"
54214
54248
  }])
54215
- }, tB = {
54216
- getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? Hc() : [],
54249
+ }, nB = {
54250
+ getOptions: async (e, t, n) => e.fetchOptionsKey === "assignToUsers" ? Hc(n?.selectedIds?.[0]) : [],
54217
54251
  loadExtraData: async (e) => Uc(e.selectedIds[0]),
54218
54252
  submit: async (e, t, { removedIds: n, extraData: r }) => {
54219
54253
  await qc({
@@ -54223,7 +54257,7 @@ var eB = {
54223
54257
  existingRecruiters: r?.recruitersData
54224
54258
  });
54225
54259
  }
54226
- }, nB = {
54260
+ }, rB = {
54227
54261
  title: "Add Sticky Notes",
54228
54262
  getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
54229
54263
  okText: "Save",
@@ -54255,7 +54289,7 @@ var eB = {
54255
54289
  initialValueKey: "editingComments"
54256
54290
  }
54257
54291
  ]
54258
- }, rB = {
54292
+ }, iB = {
54259
54293
  getMentionOptions: async (e, t) => Mc(t),
54260
54294
  submit: async (e, t) => {
54261
54295
  let n = e.targetDate ? e.targetDate.toISOString() : "";
@@ -54271,7 +54305,7 @@ var eB = {
54271
54305
  notes: e.comments
54272
54306
  }), window.dispatchEvent(new Event("sticky-notes:refresh"));
54273
54307
  }
54274
- }, iB = {
54308
+ }, aB = {
54275
54309
  title: "Move to Onboarding",
54276
54310
  bodyText: "Are you sure you want to move this candidate to onboarding?",
54277
54311
  okText: "Yes",
@@ -54284,7 +54318,7 @@ var eB = {
54284
54318
  type: "priority-checkbox",
54285
54319
  checkboxLabel: "Send Onboarding Email"
54286
54320
  }]
54287
- }, aB = { submit: async (e, t) => {
54321
+ }, oB = { submit: async (e, t) => {
54288
54322
  await Jc({
54289
54323
  submissionId: t.selectedRecords?.[0]?.submissionId,
54290
54324
  isMail: e.sendOnboardingEmail
@@ -54292,39 +54326,39 @@ var eB = {
54292
54326
  } };
54293
54327
  //#endregion
54294
54328
  //#region src/components/popups/definitions/approve-rate/config.js
54295
- function oB(e) {
54329
+ function sB(e) {
54296
54330
  return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
54297
54331
  }
54298
- var sB = {
54332
+ var cB = {
54299
54333
  USD: "$",
54300
54334
  INR: "₹",
54301
54335
  EUR: "€",
54302
54336
  GBP: "£"
54303
54337
  };
54304
- function cB(e, t, n) {
54305
- let r = oB(e?.[t])[n];
54338
+ function lB(e, t, n) {
54339
+ let r = sB(e?.[t])[n];
54306
54340
  if (r != null && r !== "") return r;
54307
54341
  let i = e?.[`${t}.${n}`];
54308
54342
  return i != null && i !== "" ? i : void 0;
54309
54343
  }
54310
- function lB(e) {
54311
- let t = e.selectedRecords?.[0] ?? {}, n = cB(t, "candidateRate", "candidateAcceptedRate") ?? cB(t, "candidateBudget", "candidateBudgetStart");
54344
+ function uB(e) {
54345
+ let t = e.selectedRecords?.[0] ?? {}, n = lB(t, "candidateRate", "candidateAcceptedRate") ?? lB(t, "candidateBudget", "candidateBudgetStart");
54312
54346
  if (n === void 0 || Number(n) === 0) return null;
54313
- let r = cB(t, "candidateRate", "candidateAcceptedCurrency") ?? cB(t, "candidateBudget", "candidateBudgetCurrency");
54347
+ let r = lB(t, "candidateRate", "candidateAcceptedCurrency") ?? lB(t, "candidateBudget", "candidateBudgetCurrency");
54314
54348
  return {
54315
54349
  amount: n,
54316
- symbol: cB(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? cB(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? sB[String(r ?? "").toUpperCase()] ?? (r || "$"),
54317
- unit: cB(t, "candidateRate", "candidateAcceptedPayUnit") ?? cB(t, "candidateBudget", "candidateBudgetUnit") ?? ""
54350
+ symbol: lB(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? lB(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? cB[String(r ?? "").toUpperCase()] ?? (r || "$"),
54351
+ unit: lB(t, "candidateRate", "candidateAcceptedPayUnit") ?? lB(t, "candidateBudget", "candidateBudgetUnit") ?? ""
54318
54352
  };
54319
54353
  }
54320
- var uB = {
54354
+ var dB = {
54321
54355
  title: "Approve Rate",
54322
54356
  okText: "Approve",
54323
54357
  width: 520,
54324
54358
  className: "medium-modal",
54325
54359
  successMessage: "Rate approved",
54326
54360
  getBodyText: (e, t, n, r, i) => {
54327
- let a = lB(i);
54361
+ let a = uB(i);
54328
54362
  return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
54329
54363
  },
54330
54364
  fields: [
@@ -54338,7 +54372,7 @@ var uB = {
54338
54372
  inlineRow: "proposedRate",
54339
54373
  validator: (e, t) => {
54340
54374
  if (e == null || e === "") return;
54341
- let n = lB(t);
54375
+ let n = uB(t);
54342
54376
  if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
54343
54377
  }
54344
54378
  },
@@ -54406,7 +54440,7 @@ var uB = {
54406
54440
  }]
54407
54441
  }
54408
54442
  ]
54409
- }, dB = { submit: async (e, t) => {
54443
+ }, fB = { submit: async (e, t) => {
54410
54444
  let n = t.selectedIds[0];
54411
54445
  if (await Yc(n, {
54412
54446
  candidateProposedRate: e.candidateProposedRate,
@@ -54422,7 +54456,7 @@ var uB = {
54422
54456
  } };
54423
54457
  //#endregion
54424
54458
  //#region src/services/mailApproveApi.js
54425
- async function fB(e, t = {}) {
54459
+ async function pB(e, t = {}) {
54426
54460
  let n = E();
54427
54461
  if (!n) {
54428
54462
  let e = /* @__PURE__ */ Error("Authentication required");
@@ -54442,8 +54476,8 @@ async function fB(e, t = {}) {
54442
54476
  }
54443
54477
  return i.json();
54444
54478
  }
54445
- async function pB(e) {
54446
- let t = await fB(`/mail-form?${new URLSearchParams({
54479
+ async function mB(e) {
54480
+ let t = await pB(`/mail-form?${new URLSearchParams({
54447
54481
  submissionId: e,
54448
54482
  submissionType: "manager"
54449
54483
  }).toString()}`);
@@ -54451,29 +54485,29 @@ async function pB(e) {
54451
54485
  }
54452
54486
  //#endregion
54453
54487
  //#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
54454
- function mB(e) {
54488
+ function hB(e) {
54455
54489
  return Array.isArray(e) ? e[e.length - 1] : e;
54456
54490
  }
54457
- function hB(e = {}) {
54458
- let t = mB(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
54491
+ function gB(e = {}) {
54492
+ let t = hB(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
54459
54493
  return Number.isFinite(n) ? n : 0;
54460
54494
  }
54461
- function gB(e, t = {}) {
54462
- let n = mB((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = mB(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
54495
+ function _B(e, t = {}) {
54496
+ let n = hB((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = hB(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
54463
54497
  return Number.isFinite(o) ? o : 0;
54464
54498
  }
54465
- function _B(e = {}) {
54499
+ function vB(e = {}) {
54466
54500
  let t = String(e?.currencyRaw ?? "").trim().toUpperCase(), n = String(e?.currency ?? "").trim();
54467
54501
  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;
54468
54502
  }
54469
- function vB(e = {}) {
54503
+ function yB(e = {}) {
54470
54504
  return String(e?.rateUnit ?? "hr").trim().replace(/^\/+/, "") || "hr";
54471
54505
  }
54472
- function yB(e, t = {}) {
54506
+ function bB(e, t = {}) {
54473
54507
  let n = Number(e);
54474
- return Number.isFinite(n) ? `${_B(t)}${n}/${vB(t)}` : "";
54508
+ return Number.isFinite(n) ? `${vB(t)}${n}/${yB(t)}` : "";
54475
54509
  }
54476
- function bB(e, t, n) {
54510
+ function xB(e, t, n) {
54477
54511
  if (n == null || n === "") return String(e ?? "");
54478
54512
  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");
54479
54513
  r = r.replace(o, (e, t, n, r) => (a = !0, `${t}${i}${r}`));
@@ -54484,25 +54518,25 @@ function bB(e, t, n) {
54484
54518
  }
54485
54519
  return r;
54486
54520
  }
54487
- function xB(e, t, n, r, i) {
54488
- let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : hB(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : gB(r, i), l = {
54521
+ function SB(e, t, n, r, i) {
54522
+ let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : gB(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : _B(r, i), l = {
54489
54523
  proposedRate: o,
54490
54524
  jobBillRate: c
54491
54525
  }, u = String(e ?? "").replace(/{{\.?((?:proposedRate)|(?:jobBillRate))}}/g, (e, t) => {
54492
54526
  let n = l[t];
54493
54527
  return n == null ? e : String(n);
54494
54528
  });
54495
- return u = bB(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", yB(o, n)), u = bB(u, "(?:Job\\s*)?Bill\\s*Rate", yB(c, n)), u;
54529
+ return u = xB(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", bB(o, n)), u = xB(u, "(?:Job\\s*)?Bill\\s*Rate", bB(c, n)), u;
54496
54530
  }
54497
- function SB(...e) {
54531
+ function CB(...e) {
54498
54532
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
54499
54533
  }
54500
- var CB = (e, t) => !!e && e.toLowerCase() === SB(t).toLowerCase();
54501
- function wB(e, t, n) {
54502
- let r = SB(t.submittedBy);
54503
- return SB(CB(r, n) || CB(r, e.submitSource) || CB(r, e.supplierName) || CB(r, e.source) || CB(r, e.candidateSource) ? "" : r, e.signatureEmail);
54534
+ var wB = (e, t) => !!e && e.toLowerCase() === CB(t).toLowerCase();
54535
+ function TB(e, t, n) {
54536
+ let r = CB(t.submittedBy);
54537
+ return CB(wB(r, n) || wB(r, e.submitSource) || wB(r, e.supplierName) || wB(r, e.source) || wB(r, e.candidateSource) ? "" : r, e.signatureEmail);
54504
54538
  }
54505
- function TB(e, t = {}) {
54539
+ function EB(e, t = {}) {
54506
54540
  let n = t.employerName ?? e.supplierName ?? e.submitSource;
54507
54541
  return {
54508
54542
  client: t.clientName ?? e.clientName,
@@ -54511,20 +54545,20 @@ function TB(e, t = {}) {
54511
54545
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
54512
54546
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
54513
54547
  vendor: n,
54514
- submittedBy: wB(e, t, n),
54548
+ submittedBy: TB(e, t, n),
54515
54549
  submittedAt: t.createdAt ?? e.createdAt,
54516
54550
  email: t.email ?? e.email,
54517
54551
  employerLocation: t.employerLocation,
54518
54552
  employerName: t.employerName
54519
54553
  };
54520
54554
  }
54521
- function EB(e) {
54555
+ function DB(e) {
54522
54556
  let t = e?.$oid ?? e?._id?.$oid ?? e?._id ?? e?.id?.$oid ?? e?.id ?? e;
54523
54557
  if (t == null || typeof t == "object") return "";
54524
54558
  let n = String(t).trim();
54525
54559
  return /^[a-f\d]{24}$/i.test(n) ? n : "";
54526
54560
  }
54527
- function DB(...e) {
54561
+ function OB(...e) {
54528
54562
  for (let t of e) {
54529
54563
  let e = [
54530
54564
  t?.jobId,
@@ -54547,12 +54581,12 @@ function DB(...e) {
54547
54581
  t?.submission?.recordMeta?.jobId,
54548
54582
  t?.submission?.recordMeta?.JobId,
54549
54583
  t?.submission?.recordMeta?.job_id
54550
- ].map(EB).find(Boolean);
54584
+ ].map(DB).find(Boolean);
54551
54585
  if (e) return e;
54552
54586
  }
54553
54587
  return "";
54554
54588
  }
54555
- function OB(e) {
54589
+ function kB(e) {
54556
54590
  if (!e?.referralId) return {};
54557
54591
  let t = Number(e.referralRate ?? e.referalRate ?? 0) || 0, n = String(e.referralType ?? e.referalType ?? "RECURRING").trim() || "RECURRING", r = e.referralId ?? e.referalId;
54558
54592
  return {
@@ -54578,10 +54612,10 @@ function OB(e) {
54578
54612
  }
54579
54613
  };
54580
54614
  }
54581
- function kB(e = "") {
54615
+ function AB(e = "") {
54582
54616
  return String(e ?? "").replace(/map\[[^\]]*(?:resume|document|attachment|file)[^\]]*\]/gi, "").replace(/<p>\s*<\/p>/gi, "").replace(/(?:<br\s*\/?>\s*){3,}/gi, "<br><br>").trim();
54583
54617
  }
54584
- function AB(...e) {
54618
+ function jB(...e) {
54585
54619
  for (let t of e) {
54586
54620
  let e = [
54587
54621
  t?.candidateId,
@@ -54592,12 +54626,12 @@ function AB(...e) {
54592
54626
  t?.submission?.applicantId,
54593
54627
  t?.recordMeta?.candidateId,
54594
54628
  t?.recordMeta?.applicantId
54595
- ].map(EB).find(Boolean);
54629
+ ].map(DB).find(Boolean);
54596
54630
  if (e) return e;
54597
54631
  }
54598
54632
  return "";
54599
54633
  }
54600
- async function jB(e) {
54634
+ async function MB(e) {
54601
54635
  let t = e?.fileUrl ?? e?.downloadUrl ?? e?.url;
54602
54636
  if (!t) return null;
54603
54637
  let n = await fetch(t);
@@ -54605,34 +54639,34 @@ async function jB(e) {
54605
54639
  let r = await n.blob(), i = e?.fileName ?? e?.uploadedFileName ?? e?.originalName ?? e?.uniqueName ?? "resume";
54606
54640
  return new File([r], i, { type: e?.contentType || r.type || "application/octet-stream" });
54607
54641
  }
54608
- async function MB(e, t, n) {
54642
+ async function NB(e, t, n) {
54609
54643
  let r = [], i = await bt("submissions", e, "resume").catch(() => ({ data: [] }));
54610
54644
  r.push(...i?.data ?? []);
54611
- let a = AB(t?.record?.submission, n, t?.record);
54645
+ let a = jB(t?.record?.submission, n, t?.record);
54612
54646
  if (!a) {
54613
54647
  let t = await x(k, `/module/list?module=submissions&id=${encodeURIComponent(e)}`).catch(() => ({})), n = t?.data ?? t ?? {};
54614
- a = AB((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
54648
+ a = jB((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
54615
54649
  }
54616
54650
  if (a) {
54617
54651
  let e = await bt("candidates", a, "resume").catch(() => ({ data: [] }));
54618
54652
  r.push(...e?.data ?? []);
54619
54653
  }
54620
- let o = (await Promise.all(r.map(jB))).filter(Boolean), s = /* @__PURE__ */ new Set();
54654
+ let o = (await Promise.all(r.map(MB))).filter(Boolean), s = /* @__PURE__ */ new Set();
54621
54655
  return o.filter((e) => {
54622
54656
  let t = `${e.name}:${e.size}:${e.type}`;
54623
54657
  return !s.has(t) && (s.add(t), !0);
54624
54658
  });
54625
54659
  }
54626
- function NB(e = {}) {
54660
+ function PB(e = {}) {
54627
54661
  return {
54628
54662
  to: (e.to ?? e.To ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
54629
54663
  cc: (e.cc ?? e.Cc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
54630
54664
  bcc: (e.bcc ?? e.Bcc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
54631
54665
  subject: e.subject ?? e.Subject ?? "",
54632
- contents: kB(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
54666
+ contents: AB(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
54633
54667
  };
54634
54668
  }
54635
- function PB({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
54669
+ function FB({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
54636
54670
  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({
54637
54671
  to: "",
54638
54672
  cc: "",
@@ -54671,13 +54705,13 @@ function PB({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
54671
54705
  if (h === "mail") {
54672
54706
  m(!1), w(!0), E(!0);
54673
54707
  try {
54674
- let [e, t] = await Promise.all([pB(o).then(NB), MB(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
54708
+ let [e, t] = await Promise.all([mB(o).then(PB), NB(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
54675
54709
  A({
54676
- to: xB(e.to, n, _, s, a),
54677
- cc: xB(e.cc, n, _, s, a),
54678
- bcc: xB(e.bcc, n, _, s, a),
54679
- subject: xB(e.subject, n, _, s, a),
54680
- contents: xB(e.contents, n, _, s, a),
54710
+ to: SB(e.to, n, _, s, a),
54711
+ cc: SB(e.cc, n, _, s, a),
54712
+ bcc: SB(e.bcc, n, _, s, a),
54713
+ subject: SB(e.subject, n, _, s, a),
54714
+ contents: SB(e.contents, n, _, s, a),
54681
54715
  attachments: t,
54682
54716
  showCc: !!e.cc,
54683
54717
  showBcc: !!e.bcc
@@ -54696,7 +54730,7 @@ function PB({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
54696
54730
  candidateProposedRateCurrency: _.currencyRaw ?? _.currency,
54697
54731
  candidateProposedRateUnit: _.rateUnit,
54698
54732
  submitVia: "VMS",
54699
- ...OB(y)
54733
+ ...kB(y)
54700
54734
  }), q.success("Submission approved"), m(!1), v(null), b(null), i?.({ success: !0 });
54701
54735
  } catch (e) {
54702
54736
  q.error(e?.message ?? "Unable to approve submission");
@@ -54716,9 +54750,9 @@ function PB({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
54716
54750
  await Yc(o, {
54717
54751
  ...e,
54718
54752
  submitVia: "VMS",
54719
- ...OB(y)
54753
+ ...kB(y)
54720
54754
  });
54721
- let t = DB(s?.record, a);
54755
+ let t = OB(s?.record, a);
54722
54756
  if (!t) q.warning("Submission approved, but job details were not available to send mail");
54723
54757
  else try {
54724
54758
  await ed({
@@ -54772,7 +54806,7 @@ function PB({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
54772
54806
  type: kE,
54773
54807
  record: s.record,
54774
54808
  lookups: s.lookups,
54775
- identity: TB(a, s.display),
54809
+ identity: EB(a, s.display),
54776
54810
  referralOptions: d,
54777
54811
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
54778
54812
  actions: te,
@@ -54846,7 +54880,7 @@ function PB({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
54846
54880
  })
54847
54881
  ] });
54848
54882
  }
54849
- PB.propTypes = {
54883
+ FB.propTypes = {
54850
54884
  context: Z.object,
54851
54885
  selectedIds: Z.array,
54852
54886
  selectedRecords: Z.array,
@@ -54855,23 +54889,23 @@ PB.propTypes = {
54855
54889
  };
54856
54890
  //#endregion
54857
54891
  //#region src/components/popups/definitions/manager-approve/config.js
54858
- var FB = {
54892
+ var IB = {
54859
54893
  title: "Manager Approve",
54860
54894
  width: 780,
54861
54895
  className: "fa-modal manager-approve-modal",
54862
- component: PB
54863
- }, IB = { submit: async () => {} };
54896
+ component: FB
54897
+ }, LB = { submit: async () => {} };
54864
54898
  //#endregion
54865
54899
  //#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
54866
- function LB(...e) {
54900
+ function RB(...e) {
54867
54901
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
54868
54902
  }
54869
- var RB = (e, t) => !!e && e.toLowerCase() === LB(t).toLowerCase();
54870
- function zB(e, t, n) {
54871
- let r = LB(t.submittedBy);
54872
- return LB(RB(r, n) || RB(r, e.submitSource) || RB(r, e.supplierName) || RB(r, e.source) || RB(r, e.candidateSource) ? "" : r, e.signatureEmail);
54903
+ var zB = (e, t) => !!e && e.toLowerCase() === RB(t).toLowerCase();
54904
+ function BB(e, t, n) {
54905
+ let r = RB(t.submittedBy);
54906
+ return RB(zB(r, n) || zB(r, e.submitSource) || zB(r, e.supplierName) || zB(r, e.source) || zB(r, e.candidateSource) ? "" : r, e.signatureEmail);
54873
54907
  }
54874
- function BB(e, t = {}) {
54908
+ function VB(e, t = {}) {
54875
54909
  let n = t.employerName ?? e.supplierName ?? e.submitSource;
54876
54910
  return {
54877
54911
  client: t.clientName ?? e.clientName,
@@ -54880,28 +54914,28 @@ function BB(e, t = {}) {
54880
54914
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
54881
54915
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
54882
54916
  vendor: n,
54883
- submittedBy: zB(e, t, n),
54917
+ submittedBy: BB(e, t, n),
54884
54918
  submittedAt: t.createdAt ?? e.createdAt,
54885
54919
  email: t.email ?? e.email,
54886
54920
  employerLocation: t.employerLocation,
54887
54921
  employerName: t.employerName
54888
54922
  };
54889
54923
  }
54890
- function VB(e) {
54924
+ function HB(e) {
54891
54925
  let t = Array.isArray(e) ? e : [];
54892
54926
  for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
54893
54927
  return null;
54894
54928
  }
54895
- function HB(e) {
54929
+ function UB(e) {
54896
54930
  return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
54897
54931
  }
54898
- function UB({ selectedIds: e, selectedRecords: t, onClose: n }) {
54932
+ function WB({ selectedIds: e, selectedRecords: t, onClose: n }) {
54899
54933
  let r = t?.[0] ?? {}, i = e?.[0] ?? tD(r), [a, o] = L(null), [s, c] = L(""), [l, u] = L(!0);
54900
54934
  F(() => {
54901
54935
  let e = !1;
54902
54936
  return u(!0), Promise.all([HD(i, r), ve("submission", i).catch(() => [])]).then(([t, n]) => {
54903
54937
  if (e) return;
54904
- let i = VB(n);
54938
+ let i = HB(n);
54905
54939
  c(tD(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
54906
54940
  let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
54907
54941
  o({
@@ -54910,7 +54944,7 @@ function UB({ selectedIds: e, selectedRecords: t, onClose: n }) {
54910
54944
  ...t.record,
54911
54945
  submission: {
54912
54946
  ...t.record.submission,
54913
- cfoRejectionReason: a ? HB(a) : "",
54947
+ cfoRejectionReason: a ? UB(a) : "",
54914
54948
  cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
54915
54949
  }
54916
54950
  }
@@ -54958,26 +54992,26 @@ function UB({ selectedIds: e, selectedRecords: t, onClose: n }) {
54958
54992
  type: NE,
54959
54993
  record: a.record,
54960
54994
  lookups: a.lookups,
54961
- identity: BB(r, a.display),
54995
+ identity: VB(r, a.display),
54962
54996
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
54963
54997
  actions: d,
54964
54998
  onClose: () => n?.(),
54965
54999
  variant: "popup"
54966
55000
  });
54967
55001
  }
54968
- UB.propTypes = {
55002
+ WB.propTypes = {
54969
55003
  selectedIds: Z.array,
54970
55004
  selectedRecords: Z.array,
54971
55005
  onClose: Z.func
54972
55006
  };
54973
55007
  //#endregion
54974
55008
  //#region src/components/popups/definitions/manager-reapprove/config.js
54975
- var WB = {
55009
+ var GB = {
54976
55010
  title: "Re-Approve",
54977
55011
  width: 780,
54978
55012
  className: "fa-modal manager-approve-modal",
54979
- component: UB
54980
- }, GB = { submit: async () => {} }, KB = [
55013
+ component: WB
55014
+ }, KB = { submit: async () => {} }, qB = [
54981
55015
  {
54982
55016
  id: 1,
54983
55017
  name: "Re-Submission"
@@ -54990,7 +55024,7 @@ var WB = {
54990
55024
  id: 3,
54991
55025
  name: "Incomplete candidate details - (Re-Submission)"
54992
55026
  }
54993
- ], qB = {
55027
+ ], JB = {
54994
55028
  title: "Reject",
54995
55029
  okText: "Reject",
54996
55030
  okButtonDanger: !0,
@@ -55002,7 +55036,7 @@ var WB = {
55002
55036
  type: "select",
55003
55037
  required: !0,
55004
55038
  placeholder: "Select rejection reasons",
55005
- defaultOptions: KB.map((e) => ({
55039
+ defaultOptions: qB.map((e) => ({
55006
55040
  label: e.name,
55007
55041
  value: e.id
55008
55042
  }))
@@ -55013,36 +55047,20 @@ var WB = {
55013
55047
  required: !0,
55014
55048
  rows: 4
55015
55049
  }]
55016
- }, JB = { submit: async (e, t) => {
55017
- let n = KB.find((t) => String(t.id) === String(e.rejectReason));
55050
+ }, YB = { submit: async (e, t) => {
55051
+ let n = qB.find((t) => String(t.id) === String(e.rejectReason));
55018
55052
  await Qc({
55019
55053
  submissionId: t.selectedIds[0],
55020
55054
  rejectReasonId: e.rejectReason,
55021
55055
  rejectReason: n?.name ?? "",
55022
55056
  rejectReasonComments: e.rejectReasonComments
55023
55057
  });
55024
- } }, YB = {
55025
- delete: qR,
55026
- "quick-submit": Sz,
55027
- "add-notes": Cz,
55028
- "tag-to-job": kz,
55029
- "change-status": Hz,
55030
- "remove-from-shortlist": Gz,
55031
- "add-to-groups": qz,
55032
- "self-assign": Zz,
55033
- "others-assign": eB,
55034
- "sticky-notes": nB,
55035
- "move-to-onboarding": iB,
55036
- "approve-rate": uB,
55037
- "manager-approve": FB,
55038
- "manager-reapprove": WB,
55039
- reject: qB
55040
- }, XB = {
55058
+ } }, XB = {
55041
55059
  delete: JR,
55042
- "quick-submit": xz,
55043
- "add-notes": Ez,
55044
- "tag-to-job": Vz,
55045
- "change-status": Wz,
55060
+ "quick-submit": Cz,
55061
+ "add-notes": wz,
55062
+ "tag-to-job": Az,
55063
+ "change-status": Uz,
55046
55064
  "remove-from-shortlist": Kz,
55047
55065
  "add-to-groups": Jz,
55048
55066
  "self-assign": Qz,
@@ -55053,48 +55071,64 @@ var WB = {
55053
55071
  "manager-approve": IB,
55054
55072
  "manager-reapprove": GB,
55055
55073
  reject: JB
55074
+ }, ZB = {
55075
+ delete: YR,
55076
+ "quick-submit": Sz,
55077
+ "add-notes": Dz,
55078
+ "tag-to-job": Hz,
55079
+ "change-status": Gz,
55080
+ "remove-from-shortlist": qz,
55081
+ "add-to-groups": Yz,
55082
+ "self-assign": $z,
55083
+ "others-assign": nB,
55084
+ "sticky-notes": iB,
55085
+ "move-to-onboarding": oB,
55086
+ "approve-rate": fB,
55087
+ "manager-approve": LB,
55088
+ "manager-reapprove": KB,
55089
+ reject: YB
55056
55090
  };
55057
55091
  //#endregion
55058
55092
  //#region src/components/popups/AddBatchCandidatePopup.jsx
55059
- function ZB(e) {
55093
+ function QB(e) {
55060
55094
  let t = e?.data ?? e;
55061
55095
  return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
55062
55096
  }
55063
- function QB(e, ...t) {
55097
+ function $B(e, ...t) {
55064
55098
  for (let n of t) {
55065
55099
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
55066
55100
  if (t != null && t !== "") return t;
55067
55101
  }
55068
55102
  return "";
55069
55103
  }
55070
- function $B(e) {
55071
- let t = String(QB(e, "isDeleted", "deleted")).toLowerCase(), n = String(QB(e, "assignmentStatus", "status")).toLowerCase();
55104
+ function eV(e) {
55105
+ let t = String($B(e, "isDeleted", "deleted")).toLowerCase(), n = String($B(e, "assignmentStatus", "status")).toLowerCase();
55072
55106
  return t !== "true" && t !== "1" && ![
55073
55107
  "removed",
55074
55108
  "inactive",
55075
55109
  "deleted"
55076
55110
  ].includes(n);
55077
55111
  }
55078
- function eV(e) {
55079
- let t = QB(e, "candidateName", "candidate_name", "fullName", "name");
55080
- return t ? String(t) : [QB(e, "firstName", "first_name"), QB(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
55081
- }
55082
55112
  function tV(e) {
55083
- return String(QB(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
55113
+ let t = $B(e, "candidateName", "candidate_name", "fullName", "name");
55114
+ return t ? String(t) : [$B(e, "firstName", "first_name"), $B(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
55084
55115
  }
55085
55116
  function nV(e) {
55086
- return String(QB(e, "workforceEngagementId", "engagementId", "_id", "id"));
55117
+ return String($B(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
55087
55118
  }
55088
55119
  function rV(e) {
55089
- return String(QB(e, "batchName", "name", "title", "batch_name"));
55120
+ return String($B(e, "workforceEngagementId", "engagementId", "_id", "id"));
55090
55121
  }
55091
- function iV({ open: e = !0, context: t = {}, onClose: n }) {
55122
+ function iV(e) {
55123
+ return String($B(e, "batchName", "name", "title", "batch_name"));
55124
+ }
55125
+ function aV({ open: e = !0, context: t = {}, onClose: n }) {
55092
55126
  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 ?? "");
55093
55127
  F(() => {
55094
55128
  if (!e) return;
55095
55129
  let t = !1;
55096
55130
  return Promise.resolve().then(() => (t || u(!0), Promise.all([et("onboarding", 200, 0), et("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
55097
- t || (i(ZB(e)), g(new Map(ZB(n).filter($B).map((e) => [String(QB(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
55131
+ t || (i(QB(e)), g(new Map(QB(n).filter(eV).map((e) => [String($B(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
55098
55132
  }).catch((e) => {
55099
55133
  t || m(e.message || "Unable to load onboarding candidates");
55100
55134
  }).finally(() => {
@@ -55106,9 +55140,9 @@ function iV({ open: e = !0, context: t = {}, onClose: n }) {
55106
55140
  let v = I(() => {
55107
55141
  let e = s.trim().toLowerCase();
55108
55142
  return e ? r.filter((t) => [
55109
- eV(t),
55110
- QB(t, "email", "candidateEmail", "candidate_email"),
55111
- QB(t, "status", "onboardingStatus", "onboarding_status")
55143
+ tV(t),
55144
+ $B(t, "email", "candidateEmail", "candidate_email"),
55145
+ $B(t, "status", "onboardingStatus", "onboarding_status")
55112
55146
  ].some((t) => String(t).toLowerCase().includes(e))) : r;
55113
55147
  }, [r, s]);
55114
55148
  async function y() {
@@ -55116,26 +55150,26 @@ function iV({ open: e = !0, context: t = {}, onClose: n }) {
55116
55150
  m("Select a batch before adding candidates");
55117
55151
  return;
55118
55152
  }
55119
- let e = r.filter((e) => a.includes(nV(e)));
55153
+ let e = r.filter((e) => a.includes(rV(e)));
55120
55154
  if (!e.length) return;
55121
55155
  let i = e.map((e) => ({
55122
55156
  record: e,
55123
- assignment: h.get(tV(e))
55157
+ assignment: h.get(nV(e))
55124
55158
  })).filter((e) => e.assignment);
55125
55159
  if (i.length) {
55126
- let e = i.map(({ record: e }) => eV(e)).join(", ");
55160
+ let e = i.map(({ record: e }) => tV(e)).join(", ");
55127
55161
  m(`${e} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
55128
55162
  return;
55129
55163
  }
55130
55164
  f(!0), m("");
55131
55165
  try {
55132
- let { userId: r } = w(), i = rV(t.selectedRecords?.[0]) || rV(t);
55166
+ let { userId: r } = w(), i = iV(t.selectedRecords?.[0]) || iV(t);
55133
55167
  await Promise.all(e.map((e) => _i("batchCandidates", {
55134
55168
  schemaVersion: 1,
55135
55169
  batchId: _,
55136
55170
  batchName: i,
55137
- candidateId: tV(e),
55138
- workforceEngagementId: nV(e),
55171
+ candidateId: nV(e),
55172
+ workforceEngagementId: rV(e),
55139
55173
  source: "ONBOARDING",
55140
55174
  assignmentStatus: "ASSIGNED",
55141
55175
  assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -55178,22 +55212,22 @@ function iV({ open: e = !0, context: t = {}, onClose: n }) {
55178
55212
  style: { marginBottom: 12 }
55179
55213
  }),
55180
55214
  /* @__PURE__ */ Y(ja, {
55181
- rowKey: (e) => nV(e),
55215
+ rowKey: (e) => rV(e),
55182
55216
  columns: [
55183
55217
  {
55184
55218
  title: "Candidate",
55185
55219
  key: "candidate",
55186
- render: (e, t) => eV(t)
55220
+ render: (e, t) => tV(t)
55187
55221
  },
55188
55222
  {
55189
55223
  title: "Email",
55190
55224
  key: "email",
55191
- render: (e, t) => QB(t, "email", "candidateEmail", "candidate_email") || "—"
55225
+ render: (e, t) => $B(t, "email", "candidateEmail", "candidate_email") || "—"
55192
55226
  },
55193
55227
  {
55194
55228
  title: "Onboarding status",
55195
55229
  key: "status",
55196
- render: (e, t) => QB(t, "status", "onboardingStatus", "onboarding_status") || "—"
55230
+ render: (e, t) => $B(t, "status", "onboardingStatus", "onboarding_status") || "—"
55197
55231
  }
55198
55232
  ],
55199
55233
  dataSource: v,
@@ -55207,9 +55241,9 @@ function iV({ open: e = !0, context: t = {}, onClose: n }) {
55207
55241
  selectedRowKeys: a,
55208
55242
  onChange: o,
55209
55243
  getCheckboxProps: (e) => {
55210
- let t = h.get(tV(e));
55244
+ let t = h.get(nV(e));
55211
55245
  return {
55212
- disabled: !tV(e) || !nV(e) || !!t,
55246
+ disabled: !nV(e) || !rV(e) || !!t,
55213
55247
  title: t ? "Candidate is already added to a batch" : void 0
55214
55248
  };
55215
55249
  }
@@ -55221,7 +55255,7 @@ function iV({ open: e = !0, context: t = {}, onClose: n }) {
55221
55255
  }
55222
55256
  //#endregion
55223
55257
  //#region src/components/popups/dynamic/DynamicPopupRoute.jsx
55224
- var aV = {
55258
+ var oV = {
55225
55259
  text: "input",
55226
55260
  string: "input",
55227
55261
  textarea: "textarea",
@@ -55230,30 +55264,30 @@ var aV = {
55230
55264
  multiselect: "multi-select",
55231
55265
  lookup: "search-select"
55232
55266
  };
55233
- function oV(e) {
55267
+ function sV(e) {
55234
55268
  if (!e) return null;
55235
55269
  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) => ({
55236
55270
  ...e,
55237
55271
  name: e.name ?? e.field,
55238
55272
  label: e.label ?? e.field,
55239
- type: aV[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
55273
+ type: oV[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
55240
55274
  required: e.required ?? e.req === 1,
55241
55275
  options: (e.options ?? []).map((e) => ({
55242
55276
  label: e.label ?? e.name ?? e.value,
55243
55277
  value: e.value ?? e.id ?? e.label
55244
55278
  }))
55245
- }))), n = sV(e.successNavigate);
55279
+ }))), n = cV(e.successNavigate);
55246
55280
  return {
55247
55281
  title: e.label,
55248
55282
  fields: t,
55249
55283
  ...n ? { successNavigate: n } : {}
55250
55284
  };
55251
55285
  }
55252
- function sV(e) {
55286
+ function cV(e) {
55253
55287
  let t = String(e ?? "").trim();
55254
55288
  return !t || !t.startsWith("/") || t.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(t) ? null : t;
55255
55289
  }
55256
- function cV(e, t = []) {
55290
+ function lV(e, t = []) {
55257
55291
  if (!e || !Array.isArray(t) || !t.length) return e;
55258
55292
  let n = new Map(t.filter((e) => e?.name).map((e) => [String(e.name), e]));
55259
55293
  return n.size ? {
@@ -55269,12 +55303,12 @@ function cV(e, t = []) {
55269
55303
  })
55270
55304
  } : e;
55271
55305
  }
55272
- function lV({ apiMap: e = {}, extraConfigs: t = {} }) {
55306
+ function uV({ apiMap: e = {}, extraConfigs: t = {} }) {
55273
55307
  let n = I(() => ({
55274
- ...XB,
55308
+ ...ZB,
55275
55309
  ...e
55276
55310
  }), [e]), r = I(() => {
55277
- let e = { ...YB };
55311
+ let e = { ...XB };
55278
55312
  return Object.entries(t).forEach(([t, n]) => {
55279
55313
  e[t] = {
55280
55314
  ...e[t] ?? {},
@@ -55292,7 +55326,7 @@ function lV({ apiMap: e = {}, extraConfigs: t = {} }) {
55292
55326
  return $t(o.moduleName, "popup", i).then((n) => {
55293
55327
  e || c({
55294
55328
  key: t,
55295
- config: oV(n[0])
55329
+ config: sV(n[0])
55296
55330
  });
55297
55331
  }).catch(() => {
55298
55332
  e || c({
@@ -55305,7 +55339,7 @@ function lV({ apiMap: e = {}, extraConfigs: t = {} }) {
55305
55339
  }, [i, o.moduleName]);
55306
55340
  let l = I(() => {
55307
55341
  let e = r[i], t = `${o.moduleName}:${i}`, n = s.key === t ? s.config : null;
55308
- return cV(n ? {
55342
+ return lV(n ? {
55309
55343
  ...e,
55310
55344
  ...n
55311
55345
  } : e, o.popupAction?.popupFieldOverrides);
@@ -55364,11 +55398,11 @@ function lV({ apiMap: e = {}, extraConfigs: t = {} }) {
55364
55398
  }
55365
55399
  a(-1);
55366
55400
  };
55367
- return i === "add-batch-candidate" ? /* @__PURE__ */ Y(iV, {
55401
+ return i === "add-batch-candidate" ? /* @__PURE__ */ Y(aV, {
55368
55402
  open: !0,
55369
55403
  context: u,
55370
55404
  onClose: f
55371
- }) : /* @__PURE__ */ Y(KR, {
55405
+ }) : /* @__PURE__ */ Y(qR, {
55372
55406
  open: !0,
55373
55407
  config: l,
55374
55408
  context: u,
@@ -55381,7 +55415,7 @@ function lV({ apiMap: e = {}, extraConfigs: t = {} }) {
55381
55415
  }
55382
55416
  //#endregion
55383
55417
  //#region src/components/popups/definitions/vendor-share/config.js
55384
- var uV = {
55418
+ var dV = {
55385
55419
  title: "Vendor Share",
55386
55420
  maxVendorSelect: 1e3,
55387
55421
  defaultTab: "myVendor",
@@ -55415,7 +55449,7 @@ var uV = {
55415
55449
  key: "updatedOn"
55416
55450
  }
55417
55451
  ]
55418
- }, dV = {
55452
+ }, fV = {
55419
55453
  getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => Xu({
55420
55454
  jobId: e,
55421
55455
  limit: t,
@@ -55432,11 +55466,11 @@ var uV = {
55432
55466
  subject: i,
55433
55467
  contents: a
55434
55468
  })
55435
- }, fV = uV.vendorColumns.map((e) => ({
55469
+ }, pV = dV.vendorColumns.map((e) => ({
55436
55470
  ...e,
55437
55471
  render: (e) => e || "-"
55438
55472
  }));
55439
- function pV() {
55473
+ function mV() {
55440
55474
  let e = qs(), t = Ks(), { 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({
55441
55475
  to: i.join(", "),
55442
55476
  cc: "",
@@ -55445,13 +55479,13 @@ function pV() {
55445
55479
  contents: "",
55446
55480
  showCc: !1,
55447
55481
  showBcc: !1
55448
- }), [f, p] = L(!l), [m, h] = L(uV.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(uV.defaultPageSize), [A, j] = L(!1), [ee, M] = L([]);
55482
+ }), [f, p] = L(!l), [m, h] = L(dV.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(dV.defaultPageSize), [A, j] = L(!1), [ee, M] = L([]);
55449
55483
  F(() => {
55450
55484
  if (!l) return;
55451
55485
  let e = !1;
55452
55486
  j(!0);
55453
55487
  let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
55454
- return dV.getVendorList({
55488
+ return fV.getVendorList({
55455
55489
  jobId: l,
55456
55490
  limit: t,
55457
55491
  offset: n,
@@ -55474,7 +55508,7 @@ function pV() {
55474
55508
  O,
55475
55509
  g
55476
55510
  ]), F(() => {
55477
- l && dV.getMailDetails(l).then((e) => d((t) => ({
55511
+ l && fV.getMailDetails(l).then((e) => d((t) => ({
55478
55512
  ...t,
55479
55513
  subject: e.subject || t.subject,
55480
55514
  contents: e.contents || t.contents,
@@ -55499,7 +55533,7 @@ function pV() {
55499
55533
  e(-1);
55500
55534
  }
55501
55535
  function oe() {
55502
- re && dV.submit({
55536
+ re && fV.submit({
55503
55537
  jobId: l,
55504
55538
  toMail: MI(N.to),
55505
55539
  ccMail: MI(N.cc),
@@ -55580,7 +55614,7 @@ function pV() {
55580
55614
  ]
55581
55615
  }), /* @__PURE__ */ Y("div", {
55582
55616
  className: "vendor-share__vendor-tabs",
55583
- children: uV.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
55617
+ children: dV.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
55584
55618
  className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
55585
55619
  onClick: () => {
55586
55620
  h(e.key), D(1), M([]);
@@ -55598,7 +55632,7 @@ function pV() {
55598
55632
  className: "vendor-share__vendor-table-wrapper",
55599
55633
  children: /* @__PURE__ */ Y(ja, {
55600
55634
  rowKey: (e) => e.vendorId,
55601
- columns: fV,
55635
+ columns: pV,
55602
55636
  dataSource: se,
55603
55637
  loading: A,
55604
55638
  pagination: !1,
@@ -55606,7 +55640,7 @@ function pV() {
55606
55640
  rowSelection: {
55607
55641
  selectedRowKeys: ee,
55608
55642
  onChange: (e) => {
55609
- e.length > uV.maxVendorSelect || M(e);
55643
+ e.length > dV.maxVendorSelect || M(e);
55610
55644
  }
55611
55645
  },
55612
55646
  scroll: { y: "calc(100vh - 340px)" }
@@ -55640,7 +55674,7 @@ function pV() {
55640
55674
  children: [
55641
55675
  ee.length,
55642
55676
  " / ",
55643
- uV.maxVendorSelect,
55677
+ dV.maxVendorSelect,
55644
55678
  " Vendors selected"
55645
55679
  ]
55646
55680
  }) : null
@@ -55651,7 +55685,7 @@ function pV() {
55651
55685
  }
55652
55686
  //#endregion
55653
55687
  //#region src/components/form/validation.js
55654
- var mV = {
55688
+ var hV = {
55655
55689
  EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
55656
55690
  PHONE: /^[0-9]{10}$/,
55657
55691
  PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
@@ -55668,7 +55702,7 @@ var mV = {
55668
55702
  FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
55669
55703
  NO_SPACES: /^\S+$/,
55670
55704
  STARTS_WITH_CAPITAL: /^[A-Z].*$/
55671
- }, hV = {
55705
+ }, gV = {
55672
55706
  SINGLE_FILE_COUNT: 1,
55673
55707
  MULTI_FILE_COUNT: 5,
55674
55708
  MAX_FILE_SIZE: 2,
@@ -55677,7 +55711,7 @@ var mV = {
55677
55711
  "image/png",
55678
55712
  "application/pdf"
55679
55713
  ]
55680
- }, gV = {
55714
+ }, _V = {
55681
55715
  REQUIRED: (e) => "Mandatory Field",
55682
55716
  INVALID_EMAIL: "Please enter a valid email address.",
55683
55717
  INVALID_PHONE: "Phone number must contain exactly 10 digits.",
@@ -55697,16 +55731,16 @@ var mV = {
55697
55731
  NO_SPACES_ALLOWED: "Spaces are not allowed.",
55698
55732
  MUST_START_WITH_CAPITAL: "First letter must be capital.",
55699
55733
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
55700
- INVALID_FILE_SIZE: `File upload must be ${hV.MAX_FILE_SIZE} MB below.`,
55734
+ INVALID_FILE_SIZE: `File upload must be ${gV.MAX_FILE_SIZE} MB below.`,
55701
55735
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
55702
55736
  SINGLE_FILE_ONLY: "Only one file can be uploaded."
55703
- }, _V = {
55737
+ }, vV = {
55704
55738
  FIRST_NAME_MIN: 3,
55705
55739
  FIRST_NAME_MAX: 30
55706
- }, vV = {
55740
+ }, yV = {
55707
55741
  REMARKS_MIN: 10,
55708
55742
  REMARKS_MAX: 250
55709
- }, yV = {
55743
+ }, bV = {
55710
55744
  removeSpaces: (e = "") => e.replace(/\s/g, ""),
55711
55745
  capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
55712
55746
  capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
@@ -55718,132 +55752,132 @@ var mV = {
55718
55752
  let t = e.replace(/\D/g, "");
55719
55753
  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)}`;
55720
55754
  }
55721
- }, bV = {
55755
+ }, xV = {
55722
55756
  required: (e = "Field") => ({
55723
55757
  required: !0,
55724
- message: gV.REQUIRED(e)
55758
+ message: _V.REQUIRED(e)
55725
55759
  }),
55726
55760
  email: () => ({
55727
- pattern: mV.EMAIL,
55728
- message: gV.INVALID_EMAIL
55761
+ pattern: hV.EMAIL,
55762
+ message: _V.INVALID_EMAIL
55729
55763
  }),
55730
55764
  phone: () => ({
55731
- pattern: mV.PHONE,
55732
- message: gV.INVALID_PHONE
55765
+ pattern: hV.PHONE,
55766
+ message: _V.INVALID_PHONE
55733
55767
  }),
55734
55768
  password: () => ({
55735
- pattern: mV.PASSWORD,
55736
- message: gV.INVALID_PASSWORD
55769
+ pattern: hV.PASSWORD,
55770
+ message: _V.INVALID_PASSWORD
55737
55771
  }),
55738
55772
  alphabets: () => ({
55739
- pattern: mV.ALPHABETS,
55740
- message: gV.INVALID_ALPHABETS
55773
+ pattern: hV.ALPHABETS,
55774
+ message: _V.INVALID_ALPHABETS
55741
55775
  }),
55742
55776
  alphanumeric: () => ({
55743
- pattern: mV.ALPHANUMERIC,
55744
- message: gV.INVALID_ALPHANUMERIC
55777
+ pattern: hV.ALPHANUMERIC,
55778
+ message: _V.INVALID_ALPHANUMERIC
55745
55779
  }),
55746
55780
  number: () => ({
55747
- pattern: mV.NUMBER,
55748
- message: gV.INVALID_NUMBER
55781
+ pattern: hV.NUMBER,
55782
+ message: _V.INVALID_NUMBER
55749
55783
  }),
55750
55784
  url: () => ({
55751
- pattern: mV.URL,
55752
- message: gV.INVALID_URL
55785
+ pattern: hV.URL,
55786
+ message: _V.INVALID_URL
55753
55787
  }),
55754
55788
  candidateId: (e = "ID") => ({
55755
- pattern: mV.CANDIDATE_ID,
55756
- message: gV.INVALID_CANDIDATE_ID(e)
55789
+ pattern: hV.CANDIDATE_ID,
55790
+ message: _V.INVALID_CANDIDATE_ID(e)
55757
55791
  }),
55758
55792
  remarks: () => ({
55759
- pattern: mV.REMARKS,
55760
- message: gV.INVALID_REMARKS,
55761
- REMARKS_MIN: `Remarks must be at least ${vV.REMARKS_MIN} characters.`,
55762
- REMARKS_MAX: `Remarks must not exceed ${vV.REMARKS_MAX} characters.`
55793
+ pattern: hV.REMARKS,
55794
+ message: _V.INVALID_REMARKS,
55795
+ REMARKS_MIN: `Remarks must be at least ${yV.REMARKS_MIN} characters.`,
55796
+ REMARKS_MAX: `Remarks must not exceed ${yV.REMARKS_MAX} characters.`
55763
55797
  }),
55764
55798
  designation: () => ({
55765
- pattern: mV.DESIGNATION,
55766
- message: gV.INVALID_DESIGNATION
55799
+ pattern: hV.DESIGNATION,
55800
+ message: _V.INVALID_DESIGNATION
55767
55801
  }),
55768
55802
  dob: (e = !0) => ({ validator: (t, n) => {
55769
55803
  if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
55770
- if (!mV.DOB.test(n)) return Promise.reject(Error(gV.INVALID_DOB));
55804
+ if (!hV.DOB.test(n)) return Promise.reject(Error(_V.INVALID_DOB));
55771
55805
  let r = zs(n, "MM/DD/YYYY", !0);
55772
- if (!r.isValid()) return Promise.reject(Error(gV.INVALID_DOB));
55806
+ if (!r.isValid()) return Promise.reject(Error(_V.INVALID_DOB));
55773
55807
  let i = zs().endOf("day");
55774
55808
  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();
55775
55809
  } }),
55776
55810
  linkedin: () => ({
55777
- pattern: mV.LINKEDIN,
55778
- message: gV.INVALID_LINKEDIN
55811
+ pattern: hV.LINKEDIN,
55812
+ message: _V.INVALID_LINKEDIN
55779
55813
  }),
55780
55814
  companyName: () => ({
55781
- pattern: mV.COMPANY_NAME,
55782
- message: gV.INVALID_COMPANY_NAME
55815
+ pattern: hV.COMPANY_NAME,
55816
+ message: _V.INVALID_COMPANY_NAME
55783
55817
  }),
55784
55818
  firstName: () => ({
55785
- pattern: mV.FIRST_NAME,
55786
- message: gV.INVALID_FIRST_NAME,
55787
- FIRST_NAME_MIN: `First Name must be at least ${_V.FIRST_NAME_MIN} characters.`,
55788
- FIRST_NAME_MAX: `First Name must not exceed ${_V.FIRST_NAME_MAX} characters.`
55819
+ pattern: hV.FIRST_NAME,
55820
+ message: _V.INVALID_FIRST_NAME,
55821
+ FIRST_NAME_MIN: `First Name must be at least ${vV.FIRST_NAME_MIN} characters.`,
55822
+ FIRST_NAME_MAX: `First Name must not exceed ${vV.FIRST_NAME_MAX} characters.`
55789
55823
  }),
55790
55824
  firstNameMinLength: () => ({
55791
- min: _V.FIRST_NAME_MIN,
55792
- message: gV.FIRST_NAME_MIN
55825
+ min: vV.FIRST_NAME_MIN,
55826
+ message: _V.FIRST_NAME_MIN
55793
55827
  }),
55794
55828
  firstNameMaxLength: () => ({
55795
- max: _V.FIRST_NAME_MAX,
55796
- message: gV.FIRST_NAME_MAX
55829
+ max: vV.FIRST_NAME_MAX,
55830
+ message: _V.FIRST_NAME_MAX
55797
55831
  }),
55798
55832
  remarksMinLength: () => ({
55799
- min: vV.REMARKS_MIN,
55800
- message: gV.REMARKS_MIN
55833
+ min: yV.REMARKS_MIN,
55834
+ message: _V.REMARKS_MIN
55801
55835
  }),
55802
55836
  remarksMaxLength: () => ({
55803
- max: vV.REMARKS_MAX,
55804
- message: gV.REMARKS_MAX
55837
+ max: yV.REMARKS_MAX,
55838
+ message: _V.REMARKS_MAX
55805
55839
  }),
55806
55840
  fullName: () => ({
55807
- pattern: mV.FULL_NAME,
55808
- message: gV.INVALID_FULL_NAME
55841
+ pattern: hV.FULL_NAME,
55842
+ message: _V.INVALID_FULL_NAME
55809
55843
  }),
55810
55844
  noSpaces: () => ({
55811
- pattern: mV.NO_SPACES,
55812
- message: gV.NO_SPACES_ALLOWED
55845
+ pattern: hV.NO_SPACES,
55846
+ message: _V.NO_SPACES_ALLOWED
55813
55847
  }),
55814
55848
  startsWithCapital: () => ({
55815
- pattern: mV.STARTS_WITH_CAPITAL,
55816
- message: gV.MUST_START_WITH_CAPITAL
55849
+ pattern: hV.STARTS_WITH_CAPITAL,
55850
+ message: _V.MUST_START_WITH_CAPITAL
55817
55851
  }),
55818
55852
  fileUpload: () => ({ validator: (e, t) => {
55819
55853
  if (!t || t.length === 0) return Promise.resolve();
55820
55854
  for (let e of t) {
55821
55855
  let t = e.originFileObj || e;
55822
- if (!(t.size / 1024 / 1024 <= hV.MAX_FILE_SIZE)) return q.error(gV.INVALID_FILE_SIZE), Promise.reject(Error(gV.INVALID_FILE_SIZE));
55823
- if (!hV.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(gV.INVALID_FILE_TYPE));
55856
+ if (!(t.size / 1024 / 1024 <= gV.MAX_FILE_SIZE)) return q.error(_V.INVALID_FILE_SIZE), Promise.reject(Error(_V.INVALID_FILE_SIZE));
55857
+ if (!gV.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(_V.INVALID_FILE_TYPE));
55824
55858
  }
55825
55859
  return Promise.resolve();
55826
55860
  } }),
55827
55861
  singleFileUpload: () => ({ validator: (e, t) => {
55828
55862
  if (!t || t.length === 0) return Promise.resolve();
55829
- if (t.length > hV.SINGLE_FILE_COUNT) return Promise.reject(Error(gV.SINGLE_FILE_ONLY));
55863
+ if (t.length > gV.SINGLE_FILE_COUNT) return Promise.reject(Error(_V.SINGLE_FILE_ONLY));
55830
55864
  let n = t[0];
55831
- return n.size / 1024 / 1024 < hV.MAX_FILE_SIZE ? hV.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(gV.INVALID_FILE_TYPE)) : Promise.reject(Error(gV.INVALID_FILE_SIZE));
55865
+ return n.size / 1024 / 1024 < gV.MAX_FILE_SIZE ? gV.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(_V.INVALID_FILE_TYPE)) : Promise.reject(Error(_V.INVALID_FILE_SIZE));
55832
55866
  } }),
55833
55867
  multiFileUpload: () => ({ validator: (e, t) => {
55834
55868
  if (!t || t.length === 0) return Promise.resolve();
55835
- if (t.length > hV.MULTI_FILE_COUNT) return Promise.reject(Error(gV.INVALID_FILE_COUNT));
55869
+ if (t.length > gV.MULTI_FILE_COUNT) return Promise.reject(Error(_V.INVALID_FILE_COUNT));
55836
55870
  for (let e of t) {
55837
- if (!(e.size / 1024 / 1024 < hV.MAX_FILE_SIZE)) return Promise.reject(Error(gV.INVALID_FILE_SIZE));
55838
- if (!hV.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(gV.INVALID_FILE_TYPE));
55871
+ if (!(e.size / 1024 / 1024 < gV.MAX_FILE_SIZE)) return Promise.reject(Error(_V.INVALID_FILE_SIZE));
55872
+ if (!gV.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(_V.INVALID_FILE_TYPE));
55839
55873
  }
55840
55874
  return Promise.resolve();
55841
55875
  } })
55842
- }, xV = { beforeUpload: (e) => [
55876
+ }, SV = { beforeUpload: (e) => [
55843
55877
  "image/jpeg",
55844
55878
  "image/png",
55845
55879
  "application/pdf"
55846
- ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), Ia.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), Ia.LIST_IGNORE) }, SV = () => {
55880
+ ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), Ia.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), Ia.LIST_IGNORE) }, CV = () => {
55847
55881
  let [e] = B.useForm();
55848
55882
  return /* @__PURE__ */ Y("div", {
55849
55883
  style: { padding: 24 },
@@ -55863,7 +55897,7 @@ var mV = {
55863
55897
  children: /* @__PURE__ */ Y(B.Item, {
55864
55898
  label: "Email",
55865
55899
  name: "email",
55866
- rules: [bV.required("Email"), bV.email()],
55900
+ rules: [xV.required("Email"), xV.email()],
55867
55901
  children: /* @__PURE__ */ Y(V, {})
55868
55902
  })
55869
55903
  }),
@@ -55872,12 +55906,12 @@ var mV = {
55872
55906
  children: /* @__PURE__ */ Y(B.Item, {
55873
55907
  label: "Phone Number",
55874
55908
  name: "phone",
55875
- rules: [bV.required("Phone Number"), bV.phone()],
55909
+ rules: [xV.required("Phone Number"), xV.phone()],
55876
55910
  validateTrigger: ["onBlur", "onChange"],
55877
55911
  children: /* @__PURE__ */ Y(V, {
55878
55912
  maxLength: 10,
55879
55913
  onChange: (t) => {
55880
- e.setFieldsValue({ phone: yV.phoneFormatter(t.target.value) });
55914
+ e.setFieldsValue({ phone: bV.phoneFormatter(t.target.value) });
55881
55915
  }
55882
55916
  })
55883
55917
  })
@@ -55887,7 +55921,7 @@ var mV = {
55887
55921
  children: /* @__PURE__ */ Y(B.Item, {
55888
55922
  label: "Password",
55889
55923
  name: "password",
55890
- rules: [bV.required("Password"), bV.password()],
55924
+ rules: [xV.required("Password"), xV.password()],
55891
55925
  children: /* @__PURE__ */ Y(V.Password, {})
55892
55926
  })
55893
55927
  }),
@@ -55897,13 +55931,13 @@ var mV = {
55897
55931
  label: "Full Name",
55898
55932
  name: "fullName",
55899
55933
  rules: [
55900
- bV.required("Full Name"),
55901
- bV.alphabets(),
55902
- bV.firstNameMinLength(),
55903
- bV.firstNameMaxLength()
55934
+ xV.required("Full Name"),
55935
+ xV.alphabets(),
55936
+ xV.firstNameMinLength(),
55937
+ xV.firstNameMaxLength()
55904
55938
  ],
55905
55939
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
55906
- e.setFieldsValue({ fullName: yV.firstNameFormatter(t.target.value) });
55940
+ e.setFieldsValue({ fullName: bV.firstNameFormatter(t.target.value) });
55907
55941
  } })
55908
55942
  })
55909
55943
  }),
@@ -55912,9 +55946,9 @@ var mV = {
55912
55946
  children: /* @__PURE__ */ Y(B.Item, {
55913
55947
  label: "Username",
55914
55948
  name: "username",
55915
- rules: [bV.required("Username"), bV.alphanumeric()],
55949
+ rules: [xV.required("Username"), xV.alphanumeric()],
55916
55950
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
55917
- e.setFieldsValue({ username: yV.removeExtraSpaces(t.target.value) });
55951
+ e.setFieldsValue({ username: bV.removeExtraSpaces(t.target.value) });
55918
55952
  } })
55919
55953
  })
55920
55954
  }),
@@ -55923,9 +55957,9 @@ var mV = {
55923
55957
  children: /* @__PURE__ */ Y(B.Item, {
55924
55958
  label: "Website URL",
55925
55959
  name: "website",
55926
- rules: [bV.required("Website URL"), bV.url()],
55960
+ rules: [xV.required("Website URL"), xV.url()],
55927
55961
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
55928
- e.setFieldsValue({ website: yV.removeExtraSpaces(t.target.value) });
55962
+ e.setFieldsValue({ website: bV.removeExtraSpaces(t.target.value) });
55929
55963
  } })
55930
55964
  })
55931
55965
  }),
@@ -55934,9 +55968,9 @@ var mV = {
55934
55968
  children: /* @__PURE__ */ Y(B.Item, {
55935
55969
  label: "MSP Req ID",
55936
55970
  name: "mspreqID",
55937
- rules: [bV.required("MSP Req ID"), bV.candidateId("MSP Req ID")],
55971
+ rules: [xV.required("MSP Req ID"), xV.candidateId("MSP Req ID")],
55938
55972
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
55939
- e.setFieldsValue({ mspreqID: yV.removeExtraSpaces(t.target.value) });
55973
+ e.setFieldsValue({ mspreqID: bV.removeExtraSpaces(t.target.value) });
55940
55974
  } })
55941
55975
  })
55942
55976
  }),
@@ -55945,9 +55979,9 @@ var mV = {
55945
55979
  children: /* @__PURE__ */ Y(B.Item, {
55946
55980
  label: "Candidate ID",
55947
55981
  name: "candidateId",
55948
- rules: [bV.required("Candidate ID"), bV.candidateId("Candidate ID")],
55982
+ rules: [xV.required("Candidate ID"), xV.candidateId("Candidate ID")],
55949
55983
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
55950
- e.setFieldsValue({ candidateId: yV.removeExtraSpaces(t.target.value) });
55984
+ e.setFieldsValue({ candidateId: bV.removeExtraSpaces(t.target.value) });
55951
55985
  } })
55952
55986
  })
55953
55987
  }),
@@ -55957,10 +55991,10 @@ var mV = {
55957
55991
  label: "Remarks",
55958
55992
  name: "remarks",
55959
55993
  rules: [
55960
- bV.required("Remarks"),
55961
- bV.remarks(),
55962
- bV.remarksMinLength(),
55963
- bV.remarksMaxLength()
55994
+ xV.required("Remarks"),
55995
+ xV.remarks(),
55996
+ xV.remarksMinLength(),
55997
+ xV.remarksMaxLength()
55964
55998
  ],
55965
55999
  children: /* @__PURE__ */ Y(V.TextArea, { rows: 4 })
55966
56000
  })
@@ -55970,7 +56004,7 @@ var mV = {
55970
56004
  children: /* @__PURE__ */ Y(B.Item, {
55971
56005
  label: "Designation",
55972
56006
  name: "designation",
55973
- rules: [bV.required("Designation"), bV.designation()],
56007
+ rules: [xV.required("Designation"), xV.designation()],
55974
56008
  children: /* @__PURE__ */ Y(V, {})
55975
56009
  })
55976
56010
  }),
@@ -55979,12 +56013,12 @@ var mV = {
55979
56013
  children: /* @__PURE__ */ Y(B.Item, {
55980
56014
  label: "Date of Birth",
55981
56015
  name: "dob",
55982
- rules: [bV.dob()],
56016
+ rules: [xV.dob()],
55983
56017
  children: /* @__PURE__ */ Y(V, {
55984
56018
  placeholder: "MM/DD/YYYY",
55985
56019
  maxLength: 10,
55986
56020
  onChange: (t) => {
55987
- e.setFieldsValue({ dob: yV.dobFormatter(t.target.value) });
56021
+ e.setFieldsValue({ dob: bV.dobFormatter(t.target.value) });
55988
56022
  }
55989
56023
  })
55990
56024
  })
@@ -55994,7 +56028,7 @@ var mV = {
55994
56028
  children: /* @__PURE__ */ Y(B.Item, {
55995
56029
  label: "Company Name",
55996
56030
  name: "companyName",
55997
- rules: [bV.required("Company Name"), bV.companyName()],
56031
+ rules: [xV.required("Company Name"), xV.companyName()],
55998
56032
  children: /* @__PURE__ */ Y(V, {})
55999
56033
  })
56000
56034
  }),
@@ -56083,7 +56117,7 @@ var mV = {
56083
56117
  label: "Resume new",
56084
56118
  name: "resume",
56085
56119
  children: /* @__PURE__ */ Y(Ia, {
56086
- beforeUpload: xV.beforeUpload,
56120
+ beforeUpload: SV.beforeUpload,
56087
56121
  maxCount: 1,
56088
56122
  children: /* @__PURE__ */ Y(R, { children: "Upload Resume" })
56089
56123
  })
@@ -56096,10 +56130,10 @@ var mV = {
56096
56130
  name: "documents",
56097
56131
  valuePropName: "fileList",
56098
56132
  getValueFromEvent: (e) => e?.fileList,
56099
- rules: [bV.multiFileUpload()],
56133
+ rules: [xV.multiFileUpload()],
56100
56134
  children: /* @__PURE__ */ Y(Ia, {
56101
56135
  multiple: !0,
56102
- beforeUpload: xV.beforeUpload,
56136
+ beforeUpload: SV.beforeUpload,
56103
56137
  children: /* @__PURE__ */ Y(R, { children: "Upload Documents" })
56104
56138
  })
56105
56139
  })
@@ -56111,9 +56145,9 @@ var mV = {
56111
56145
  name: "file",
56112
56146
  valuePropName: "fileList",
56113
56147
  getValueFromEvent: (e) => e?.fileList,
56114
- rules: [bV.fileUpload()],
56148
+ rules: [xV.fileUpload()],
56115
56149
  children: /* @__PURE__ */ Y(Ia, {
56116
- beforeUpload: xV.beforeUpload,
56150
+ beforeUpload: SV.beforeUpload,
56117
56151
  maxCount: 1,
56118
56152
  children: /* @__PURE__ */ Y(R, { children: "Upload" })
56119
56153
  })
@@ -56173,7 +56207,7 @@ var mV = {
56173
56207
  };
56174
56208
  //#endregion
56175
56209
  //#region src/components/admin/RegionBanner.jsx
56176
- function CV({ region: e, onExit: t }) {
56210
+ function wV({ region: e, onExit: t }) {
56177
56211
  if (!e || e.isHome) return null;
56178
56212
  let n = e.label?.trim() || e.key;
56179
56213
  return /* @__PURE__ */ X("div", {
@@ -56242,25 +56276,25 @@ function CV({ region: e, onExit: t }) {
56242
56276
  ]
56243
56277
  });
56244
56278
  }
56245
- CV.propTypes = {
56279
+ wV.propTypes = {
56246
56280
  region: Z.shape({
56247
56281
  key: Z.string,
56248
56282
  label: Z.string,
56249
56283
  isHome: Z.bool
56250
56284
  }),
56251
56285
  onExit: Z.func
56252
- }, CV.defaultProps = {
56286
+ }, wV.defaultProps = {
56253
56287
  region: null,
56254
56288
  onExit: void 0
56255
56289
  };
56256
56290
  //#endregion
56257
56291
  //#region src/pages/admin/AdminPageWithShell.jsx
56258
- function wV(e) {
56292
+ function TV(e) {
56259
56293
  return /* @__PURE__ */ Y(uk, { children: /* @__PURE__ */ Y(EI, { ...e }) });
56260
56294
  }
56261
56295
  //#endregion
56262
56296
  //#region src/components/cards/StatsCards.jsx
56263
- var { Text: TV } = Fa, EV = [
56297
+ var { Text: EV } = Fa, DV = [
56264
56298
  {
56265
56299
  label: "Total Jobs",
56266
56300
  value: 1697,
@@ -56276,13 +56310,13 @@ var { Text: TV } = Fa, EV = [
56276
56310
  value: 600,
56277
56311
  icon: "user"
56278
56312
  }
56279
- ], DV = {
56313
+ ], OV = {
56280
56314
  fileText: /* @__PURE__ */ Y(Mo, {}),
56281
56315
  checkCircle: /* @__PURE__ */ Y(eo, {}),
56282
56316
  user: /* @__PURE__ */ Y(Is, {}),
56283
56317
  filter: /* @__PURE__ */ Y(Po, {})
56284
56318
  };
56285
- function OV({ stats: e = EV }) {
56319
+ function kV({ stats: e = DV }) {
56286
56320
  return /* @__PURE__ */ Y(aa, { children: /* @__PURE__ */ Y(Ta, {
56287
56321
  gutter: [12, 12],
56288
56322
  children: e.map((e) => /* @__PURE__ */ Y(z, {
@@ -56295,7 +56329,7 @@ function OV({ stats: e = EV }) {
56295
56329
  className: "stats-inner-card",
56296
56330
  children: [/* @__PURE__ */ X(U, {
56297
56331
  align: "center",
56298
- children: [DV[e.icon] ?? DV.fileText, /* @__PURE__ */ Y(TV, { children: e.label })]
56332
+ children: [OV[e.icon] ?? OV.fileText, /* @__PURE__ */ Y(EV, { children: e.label })]
56299
56333
  }), /* @__PURE__ */ Y(ka, { value: e.value })]
56300
56334
  })
56301
56335
  }, e.label))
@@ -56303,21 +56337,21 @@ function OV({ stats: e = EV }) {
56303
56337
  }
56304
56338
  //#endregion
56305
56339
  //#region src/pages/Modules/Admin/UsersSection.jsx
56306
- var { Text: kV } = Fa;
56307
- function AV(e) {
56340
+ var { Text: AV } = Fa;
56341
+ function jV(e) {
56308
56342
  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 ?? "?"}`;
56309
56343
  }
56310
- function jV(e) {
56344
+ function MV(e) {
56311
56345
  return {
56312
56346
  ...e,
56313
56347
  key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
56314
- _name: AV(e),
56348
+ _name: jV(e),
56315
56349
  _email: e.email ?? e.EMAIL ?? e.user_email ?? "",
56316
56350
  _role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
56317
56351
  _rawRef: e
56318
56352
  };
56319
56353
  }
56320
- function MV() {
56354
+ function NV() {
56321
56355
  let [e, t] = L([]), [n, r] = L(0), [i, a] = L(!1), [o, s] = L(1), [c, l] = L(10), [u, d] = L(""), f = Yi(async ({ offset: e, limit: n, searchQuery: i } = {}) => {
56322
56356
  a(!0);
56323
56357
  try {
@@ -56325,7 +56359,7 @@ function MV() {
56325
56359
  offset: e,
56326
56360
  limit: n,
56327
56361
  searchQuery: i ?? ""
56328
- }), o = (a.users ?? []).map(jV);
56362
+ }), o = (a.users ?? []).map(MV);
56329
56363
  t(o), r(a.total ?? o.length);
56330
56364
  } catch {
56331
56365
  q.error("Failed to load users");
@@ -56358,7 +56392,7 @@ function MV() {
56358
56392
  label: "Name",
56359
56393
  value: "_name",
56360
56394
  width: 220,
56361
- render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(kV, {
56395
+ render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(AV, {
56362
56396
  strong: !0,
56363
56397
  style: { fontSize: 13 },
56364
56398
  children: e
@@ -56390,7 +56424,7 @@ function MV() {
56390
56424
  }
56391
56425
  //#endregion
56392
56426
  //#region src/pages/Modules/Admin/TeamsSection.jsx
56393
- var { Text: NV } = Fa, PV = [
56427
+ var { Text: PV } = Fa, FV = [
56394
56428
  {
56395
56429
  key: "job",
56396
56430
  label: "Jobs"
@@ -56403,7 +56437,7 @@ var { Text: NV } = Fa, PV = [
56403
56437
  key: "submissions",
56404
56438
  label: "Submissions"
56405
56439
  }
56406
- ], FV = [
56440
+ ], IV = [
56407
56441
  {
56408
56442
  key: "listView",
56409
56443
  label: "List View"
@@ -56417,7 +56451,7 @@ var { Text: NV } = Fa, PV = [
56417
56451
  label: "Form"
56418
56452
  }
56419
56453
  ];
56420
- function IV({ field: e, index: t, onToggle: n, onReorder: r }) {
56454
+ function LV({ field: e, index: t, onToggle: n, onReorder: r }) {
56421
56455
  let i = $i(null), [a, o] = L(!1), [s, c] = L(!1);
56422
56456
  function l(e) {
56423
56457
  i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
@@ -56481,7 +56515,7 @@ function IV({ field: e, index: t, onToggle: n, onReorder: r }) {
56481
56515
  ]
56482
56516
  });
56483
56517
  }
56484
- function LV({ team: e, configType: t }) {
56518
+ function RV({ team: e, configType: t }) {
56485
56519
  let [n, r] = L({}), [i, a] = L(!1), [o, s] = L({}), [c, l] = L("job");
56486
56520
  F(() => {
56487
56521
  e && (a(!0), Wn(e, t).then(r).catch(() => q.error("Failed to load field config")).finally(() => a(!1)));
@@ -56532,7 +56566,7 @@ function LV({ team: e, configType: t }) {
56532
56566
  size: "small",
56533
56567
  activeKey: c,
56534
56568
  onChange: l,
56535
- items: PV.map((e) => ({
56569
+ items: FV.map((e) => ({
56536
56570
  key: e.key,
56537
56571
  label: e.label
56538
56572
  }))
@@ -56561,7 +56595,7 @@ function LV({ team: e, configType: t }) {
56561
56595
  children: [u.length === 0 && !i && /* @__PURE__ */ Y("div", {
56562
56596
  className: "uss-empty",
56563
56597
  children: "No fields found."
56564
- }), u.map((e, t) => /* @__PURE__ */ Y(IV, {
56598
+ }), u.map((e, t) => /* @__PURE__ */ Y(LV, {
56565
56599
  field: e,
56566
56600
  index: t,
56567
56601
  onToggle: f,
@@ -56575,13 +56609,13 @@ function LV({ team: e, configType: t }) {
56575
56609
  size: "small",
56576
56610
  loading: o[c],
56577
56611
  onClick: m,
56578
- children: ["Save ", PV.find((e) => e.key === c)?.label]
56612
+ children: ["Save ", FV.find((e) => e.key === c)?.label]
56579
56613
  })
56580
56614
  })
56581
56615
  ]
56582
56616
  });
56583
56617
  }
56584
- function RV() {
56618
+ function zV() {
56585
56619
  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 = Yi(async () => {
56586
56620
  p(!0);
56587
56621
  try {
@@ -56728,13 +56762,13 @@ function RV() {
56728
56762
  style: { marginBottom: 12 },
56729
56763
  children: /* @__PURE__ */ Y("div", {
56730
56764
  className: "uss-config-toggle",
56731
- children: FV.map((e) => /* @__PURE__ */ Y("button", {
56765
+ children: IV.map((e) => /* @__PURE__ */ Y("button", {
56732
56766
  className: `uss-config-btn${o === e.key ? " active" : ""}`,
56733
56767
  onClick: () => s(e.key),
56734
56768
  children: e.label
56735
56769
  }, e.key))
56736
56770
  })
56737
- }), e && /* @__PURE__ */ Y(LV, {
56771
+ }), e && /* @__PURE__ */ Y(RV, {
56738
56772
  team: e,
56739
56773
  configType: o
56740
56774
  }, `${e?.teamId}-${o}`)]
@@ -56743,12 +56777,12 @@ function RV() {
56743
56777
  }
56744
56778
  //#endregion
56745
56779
  //#region src/pages/Modules/Admin/components/RolePermPanel.jsx
56746
- var zV = [
56780
+ var BV = [
56747
56781
  "view",
56748
56782
  "add",
56749
56783
  "edit",
56750
56784
  "delete"
56751
- ], BV = {
56785
+ ], VV = {
56752
56786
  view: "View",
56753
56787
  add: "Add",
56754
56788
  edit: "Edit",
@@ -56763,18 +56797,18 @@ var zV = [
56763
56797
  reApprove: "ReApprove",
56764
56798
  sendApprove: "Send Approve"
56765
56799
  };
56766
- function VV(e) {
56767
- return BV[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
56768
- }
56769
56800
  function HV(e) {
56770
- let t = zV.filter((t) => e.includes(t)), n = e.filter((e) => !zV.includes(e)).sort();
56771
- return [...t, ...n];
56801
+ return VV[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
56772
56802
  }
56773
56803
  function UV(e) {
56774
- let t = /* @__PURE__ */ new Set();
56775
- return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), HV([...t]);
56804
+ let t = BV.filter((t) => e.includes(t)), n = e.filter((e) => !BV.includes(e)).sort();
56805
+ return [...t, ...n];
56776
56806
  }
56777
56807
  function WV(e) {
56808
+ let t = /* @__PURE__ */ new Set();
56809
+ return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), UV([...t]);
56810
+ }
56811
+ function GV(e) {
56778
56812
  let t = 0, n = 0;
56779
56813
  return Object.entries(e).forEach(([e, { permissions: r }]) => {
56780
56814
  Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
@@ -56785,7 +56819,7 @@ function WV(e) {
56785
56819
  total: n
56786
56820
  };
56787
56821
  }
56788
- function GV(e = {}) {
56822
+ function KV(e = {}) {
56789
56823
  if (!e || typeof e != "object") return e;
56790
56824
  let t = Object.keys(e).find((e) => String(e).trim().toLowerCase() === "onboarding");
56791
56825
  if (!t) return e;
@@ -56802,7 +56836,7 @@ function GV(e = {}) {
56802
56836
  }
56803
56837
  };
56804
56838
  }
56805
- function KV({ value: e, onSave: t, className: n }) {
56839
+ function qV({ value: e, onSave: t, className: n }) {
56806
56840
  let [r, i] = L(!1), [a, o] = L(e);
56807
56841
  F(() => {
56808
56842
  o(e);
@@ -56831,7 +56865,7 @@ function KV({ value: e, onSave: t, className: n }) {
56831
56865
  children: [e, /* @__PURE__ */ Y(yo, { className: "perm-name-edit-icon" })]
56832
56866
  });
56833
56867
  }
56834
- function qV({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
56868
+ function JV({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
56835
56869
  let [i, a] = L(!1), [o, s] = L(t), c = e?.value === "1", l = !!e;
56836
56870
  F(() => {
56837
56871
  s(t);
@@ -56873,13 +56907,13 @@ function qV({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
56873
56907
  })
56874
56908
  });
56875
56909
  }
56876
- function JV({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
56910
+ function YV({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
56877
56911
  let c = t?.permissions ?? {}, l = n.filter((t) => SA(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
56878
56912
  return /* @__PURE__ */ X("div", {
56879
56913
  className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
56880
56914
  children: [/* @__PURE__ */ X("div", {
56881
56915
  className: "perm-module-card-header",
56882
- children: [/* @__PURE__ */ Y(KV, {
56916
+ children: [/* @__PURE__ */ Y(qV, {
56883
56917
  value: i,
56884
56918
  onSave: (t) => o(e, t),
56885
56919
  className: "perm-module-card-name"
@@ -56893,20 +56927,20 @@ function JV({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
56893
56927
  })]
56894
56928
  }), /* @__PURE__ */ Y("div", {
56895
56929
  className: "perm-module-card-body",
56896
- children: l.map((t) => /* @__PURE__ */ Y(qV, {
56930
+ children: l.map((t) => /* @__PURE__ */ Y(JV, {
56897
56931
  entry: c[t],
56898
- label: a[t] ?? VV(t),
56932
+ label: a[t] ?? HV(t),
56899
56933
  onToggle: () => r(e, t),
56900
56934
  onLabelSave: (e) => s(t, e)
56901
56935
  }, t))
56902
56936
  })]
56903
56937
  });
56904
56938
  }
56905
- function YV({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
56939
+ function XV({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
56906
56940
  let [a, o] = L({}), [s, c] = L({}), [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(!1), h = ei(e);
56907
56941
  F(() => {
56908
56942
  h && (u(!0), m(!1), ui(h).then((e) => {
56909
- let t = GV(e);
56943
+ let t = KV(e);
56910
56944
  o(t), c(t);
56911
56945
  }).catch(() => q.error("Failed to load permissions")).finally(() => u(!1)));
56912
56946
  }, [h]);
@@ -56944,7 +56978,7 @@ function YV({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
56944
56978
  f(!1);
56945
56979
  }
56946
56980
  }
56947
- let v = I(() => Object.keys(s).sort(), [s]), y = I(() => UV(s), [s]), { enabled: b, total: x } = I(() => WV(s), [s]);
56981
+ let v = I(() => Object.keys(s).sort(), [s]), y = I(() => WV(s), [s]), { enabled: b, total: x } = I(() => GV(s), [s]);
56948
56982
  return /* @__PURE__ */ X(Oa, {
56949
56983
  spinning: l,
56950
56984
  children: [
@@ -56995,7 +57029,7 @@ function YV({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
56995
57029
  children: "No permission entries found for this role."
56996
57030
  }) : /* @__PURE__ */ Y("div", {
56997
57031
  className: "perm-cards-grid",
56998
- children: v.map((e) => /* @__PURE__ */ Y(JV, {
57032
+ children: v.map((e) => /* @__PURE__ */ Y(YV, {
56999
57033
  menuName: e,
57000
57034
  menuData: s[e],
57001
57035
  permKeys: y,
@@ -57011,7 +57045,7 @@ function YV({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
57011
57045
  }
57012
57046
  //#endregion
57013
57047
  //#region src/pages/Modules/Admin/RolesSection.jsx
57014
- var { Text: XV } = Fa, ZV = [
57048
+ var { Text: ZV } = Fa, QV = [
57015
57049
  {
57016
57050
  key: "listView",
57017
57051
  label: "List View"
@@ -57029,38 +57063,38 @@ var { Text: XV } = Fa, ZV = [
57029
57063
  label: "Permissions"
57030
57064
  }
57031
57065
  ];
57032
- function QV(e) {
57066
+ function $V(e) {
57033
57067
  return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
57034
57068
  }
57035
- function $V(e) {
57069
+ function eH(e) {
57036
57070
  return String(e || "").trim().toLowerCase();
57037
57071
  }
57038
- function eH(e) {
57072
+ function tH(e) {
57039
57073
  return e?.key || e?.collectionName || e?.value || "";
57040
57074
  }
57041
- function tH(e = [], t = []) {
57075
+ function nH(e = [], t = []) {
57042
57076
  let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
57043
57077
  return e.forEach((e) => {
57044
- let t = eH(e);
57078
+ let t = tH(e);
57045
57079
  if (!t) return;
57046
- let o = $V(e.key || t), s = $V(e.collectionName);
57080
+ let o = eH(e.key || t), s = eH(e.collectionName);
57047
57081
  e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
57048
- label: e.label || QV(t),
57082
+ label: e.label || $V(t),
57049
57083
  value: t,
57050
57084
  disabled: !!e.seeded
57051
57085
  });
57052
57086
  }), t.forEach((e) => {
57053
57087
  let t = String(e || "").trim();
57054
57088
  if (!t || r.has(t)) return;
57055
- let o = $V(t);
57089
+ let o = eH(t);
57056
57090
  a.has(o) || i.has(o) || (r.add(t), n.push({
57057
- label: QV(t),
57091
+ label: $V(t),
57058
57092
  value: t,
57059
57093
  disabled: !1
57060
57094
  }));
57061
57095
  }), n;
57062
57096
  }
57063
- function nH() {
57097
+ function rH() {
57064
57098
  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 = Yi(async () => {
57065
57099
  d(!0);
57066
57100
  try {
@@ -57074,7 +57108,7 @@ function nH() {
57074
57108
  }, []), C = Yi(async () => {
57075
57109
  _(!0);
57076
57110
  try {
57077
- let [e, t] = await Promise.all([Kr(), Li()]), n = tH(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
57111
+ let [e, t] = await Promise.all([Kr(), Li()]), n = nH(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
57078
57112
  p(n), h((e) => e.filter((e) => r.has(e)));
57079
57113
  } catch {
57080
57114
  q.error("Failed to load seed status");
@@ -57140,7 +57174,7 @@ function nH() {
57140
57174
  onClick: w,
57141
57175
  children: "Seed Field Config"
57142
57176
  })]
57143
- }), /* @__PURE__ */ Y(XV, {
57177
+ }), /* @__PURE__ */ Y(ZV, {
57144
57178
  type: "secondary",
57145
57179
  style: {
57146
57180
  display: "block",
@@ -57220,13 +57254,13 @@ function nH() {
57220
57254
  style: { marginBottom: 12 },
57221
57255
  children: /* @__PURE__ */ Y("div", {
57222
57256
  className: "uss-config-toggle",
57223
- children: ZV.map((e) => /* @__PURE__ */ Y("button", {
57257
+ children: QV.map((e) => /* @__PURE__ */ Y("button", {
57224
57258
  className: `uss-config-btn${i === e.key ? " active" : ""}`,
57225
57259
  onClick: () => a(e.key),
57226
57260
  children: e.label
57227
57261
  }, e.key))
57228
57262
  })
57229
- }), e && (i === "permissions" ? /* @__PURE__ */ Y(YV, { role: e }, e?.roleId) : /* @__PURE__ */ Y(BA, {
57263
+ }), e && (i === "permissions" ? /* @__PURE__ */ Y(XV, { role: e }, e?.roleId) : /* @__PURE__ */ Y(BA, {
57230
57264
  role: e,
57231
57265
  configType: i
57232
57266
  }, `${e?.roleId}-${i}`))]
@@ -57235,20 +57269,20 @@ function nH() {
57235
57269
  }
57236
57270
  //#endregion
57237
57271
  //#region src/pages/Modules/Admin/PermissionsPage.jsx
57238
- var rH = "perm-module-labels", iH = "perm-action-labels";
57239
- function aH(e) {
57272
+ var iH = "perm-module-labels", aH = "perm-action-labels";
57273
+ function oH(e) {
57240
57274
  try {
57241
57275
  return JSON.parse(localStorage.getItem(e) ?? "{}");
57242
57276
  } catch {
57243
57277
  return {};
57244
57278
  }
57245
57279
  }
57246
- function oH(e, t) {
57280
+ function sH(e, t) {
57247
57281
  try {
57248
57282
  localStorage.setItem(e, JSON.stringify(t));
57249
57283
  } catch {}
57250
57284
  }
57251
- function sH({ label: e, onSave: t, onDelete: n, loading: r }) {
57285
+ function cH({ label: e, onSave: t, onDelete: n, loading: r }) {
57252
57286
  let [i, a] = L(!1), [o, s] = L(e);
57253
57287
  function c() {
57254
57288
  a(!1);
@@ -57299,7 +57333,7 @@ function sH({ label: e, onSave: t, onDelete: n, loading: r }) {
57299
57333
  })]
57300
57334
  });
57301
57335
  }
57302
- function cH({ open: e, onClose: t }) {
57336
+ function lH({ open: e, onClose: t }) {
57303
57337
  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);
57304
57338
  F(() => {
57305
57339
  e && (S(), C());
@@ -57421,7 +57455,7 @@ function cH({ open: e, onClose: t }) {
57421
57455
  className: "perm-empty",
57422
57456
  style: { paddingTop: 24 },
57423
57457
  children: "No modules found"
57424
- }), i.map((e) => /* @__PURE__ */ Y(sH, {
57458
+ }), i.map((e) => /* @__PURE__ */ Y(cH, {
57425
57459
  label: e.MENUNAME,
57426
57460
  onSave: (t) => T(e.MENUID, t),
57427
57461
  onDelete: () => E(e.MENUID)
@@ -57466,7 +57500,7 @@ function cH({ open: e, onClose: t }) {
57466
57500
  className: "perm-empty",
57467
57501
  style: { paddingTop: 24 },
57468
57502
  children: "No actions found"
57469
- }), f.map((e) => /* @__PURE__ */ Y(sH, {
57503
+ }), f.map((e) => /* @__PURE__ */ Y(cH, {
57470
57504
  label: `${e.permissionName} (${e.permissionKey})`,
57471
57505
  onSave: (t) => O(e.permissionId, t),
57472
57506
  onDelete: () => k(e.permissionId)
@@ -57496,14 +57530,14 @@ function cH({ open: e, onClose: t }) {
57496
57530
  })
57497
57531
  });
57498
57532
  }
57499
- function lH() {
57500
- let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => aH(rH)), [f, p] = L(() => aH(iH)), m = Yi((e, t) => {
57533
+ function uH() {
57534
+ let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => oH(iH)), [f, p] = L(() => oH(aH)), m = Yi((e, t) => {
57501
57535
  d((n) => {
57502
57536
  let r = {
57503
57537
  ...n,
57504
57538
  [e]: t
57505
57539
  };
57506
- return oH(rH, r), r;
57540
+ return sH(iH, r), r;
57507
57541
  });
57508
57542
  }, []), h = Yi((e, t) => {
57509
57543
  p((n) => {
@@ -57511,11 +57545,11 @@ function lH() {
57511
57545
  ...n,
57512
57546
  [e]: t
57513
57547
  };
57514
- return oH(iH, r), r;
57548
+ return sH(aH, r), r;
57515
57549
  });
57516
57550
  }, []);
57517
57551
  function g() {
57518
- d({}), p({}), oH(rH, {}), oH(iH, {}), q.success("Labels reset to defaults");
57552
+ d({}), p({}), sH(iH, {}), sH(aH, {}), q.success("Labels reset to defaults");
57519
57553
  }
57520
57554
  let _ = Yi(async () => {
57521
57555
  r(!0);
@@ -57599,7 +57633,7 @@ function lH() {
57599
57633
  })]
57600
57634
  }),
57601
57635
  bodyStyle: { padding: "12px 16px" },
57602
- children: i ? /* @__PURE__ */ Y(YV, {
57636
+ children: i ? /* @__PURE__ */ Y(XV, {
57603
57637
  role: i,
57604
57638
  moduleLabels: u,
57605
57639
  actionLabels: f,
@@ -57610,7 +57644,7 @@ function lH() {
57610
57644
  children: "Select a role from the left to manage its permissions."
57611
57645
  })
57612
57646
  }),
57613
- /* @__PURE__ */ Y(cH, {
57647
+ /* @__PURE__ */ Y(lH, {
57614
57648
  open: c,
57615
57649
  onClose: () => l(!1)
57616
57650
  })
@@ -57619,7 +57653,7 @@ function lH() {
57619
57653
  }
57620
57654
  //#endregion
57621
57655
  //#region src/components/cards/OnboardingCard.jsx
57622
- var { Title: uH, Text: dH } = Fa, fH = [
57656
+ var { Title: dH, Text: fH } = Fa, pH = [
57623
57657
  {
57624
57658
  label: "In Progress",
57625
57659
  value: 107,
@@ -57645,10 +57679,10 @@ var { Title: uH, Text: dH } = Fa, fH = [
57645
57679
  color: "peach"
57646
57680
  }
57647
57681
  ];
57648
- function pH({ items: e = fH }) {
57682
+ function mH({ items: e = pH }) {
57649
57683
  return /* @__PURE__ */ Y(aa, {
57650
57684
  className: "onboarding-card",
57651
- title: /* @__PURE__ */ Y(uH, {
57685
+ title: /* @__PURE__ */ Y(dH, {
57652
57686
  level: 5,
57653
57687
  children: "Onboarding"
57654
57688
  }),
@@ -57667,7 +57701,7 @@ function pH({ items: e = fH }) {
57667
57701
  children: /* @__PURE__ */ X("div", {
57668
57702
  className: `onboarding-item ${e.color}`,
57669
57703
  children: [
57670
- /* @__PURE__ */ Y(dH, {
57704
+ /* @__PURE__ */ Y(fH, {
57671
57705
  className: "onboarding-item-label",
57672
57706
  children: e.label
57673
57707
  }),
@@ -57677,7 +57711,7 @@ function pH({ items: e = fH }) {
57677
57711
  }),
57678
57712
  /* @__PURE__ */ Y("div", {
57679
57713
  className: "onboarding-item-footer",
57680
- children: /* @__PURE__ */ Y(dH, {
57714
+ children: /* @__PURE__ */ Y(fH, {
57681
57715
  className: "onboarding-item-sub",
57682
57716
  children: e.sub
57683
57717
  })
@@ -57690,7 +57724,7 @@ function pH({ items: e = fH }) {
57690
57724
  }
57691
57725
  //#endregion
57692
57726
  //#region src/pages/Modules/LegacyAdminPage.jsx
57693
- var { Text: mH, Title: hH } = Fa, gH = [
57727
+ var { Text: hH, Title: gH } = Fa, _H = [
57694
57728
  {
57695
57729
  group: "Dashboard",
57696
57730
  items: [{
@@ -57905,7 +57939,7 @@ var { Text: mH, Title: hH } = Fa, gH = [
57905
57939
  }
57906
57940
  ]
57907
57941
  }
57908
- ], _H = [
57942
+ ], vH = [
57909
57943
  {
57910
57944
  label: "Sourced",
57911
57945
  count: 312,
@@ -57936,7 +57970,7 @@ var { Text: mH, Title: hH } = Fa, gH = [
57936
57970
  color: "#E24B4A",
57937
57971
  pct: 10
57938
57972
  }
57939
- ], vH = [
57973
+ ], yH = [
57940
57974
  {
57941
57975
  name: "Tcs",
57942
57976
  jobs: 14,
@@ -57957,7 +57991,7 @@ var { Text: mH, Title: hH } = Fa, gH = [
57957
57991
  jobs: 5,
57958
57992
  candidates: 38
57959
57993
  }
57960
- ], yH = [
57994
+ ], bH = [
57961
57995
  {
57962
57996
  text: "New candidate Ravi Kumar added to Java Developer role",
57963
57997
  time: "2 min ago",
@@ -57984,7 +58018,7 @@ var { Text: mH, Title: hH } = Fa, gH = [
57984
58018
  color: "#E24B4A"
57985
58019
  }
57986
58020
  ];
57987
- function bH() {
58021
+ function xH() {
57988
58022
  return /* @__PURE__ */ X("div", {
57989
58023
  style: {
57990
58024
  display: "flex",
@@ -57997,11 +58031,11 @@ function bH() {
57997
58031
  title: "Admin Dashboard",
57998
58032
  children: [
57999
58033
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
58000
- /* @__PURE__ */ Y(hH, {
58034
+ /* @__PURE__ */ Y(gH, {
58001
58035
  level: 5,
58002
58036
  children: "Admin Dashboard"
58003
58037
  }),
58004
- /* @__PURE__ */ Y(mH, {
58038
+ /* @__PURE__ */ Y(hH, {
58005
58039
  type: "secondary",
58006
58040
  children: "Overview of jobs, candidates, onboarding and recent activity"
58007
58041
  })
@@ -58009,7 +58043,7 @@ function bH() {
58009
58043
  }),
58010
58044
  /* @__PURE__ */ Y("div", {
58011
58045
  className: "admin-dashboard-stats",
58012
- children: /* @__PURE__ */ Y(OV, { stats: [
58046
+ children: /* @__PURE__ */ Y(kV, { stats: [
58013
58047
  {
58014
58048
  label: "Total Jobs",
58015
58049
  value: 1697,
@@ -58039,18 +58073,18 @@ function bH() {
58039
58073
  }),
58040
58074
  /* @__PURE__ */ X("div", {
58041
58075
  className: "admin-dashboard-mid-row",
58042
- children: [/* @__PURE__ */ Y(pH, {}), /* @__PURE__ */ X(CA, {
58076
+ children: [/* @__PURE__ */ Y(mH, {}), /* @__PURE__ */ X(CA, {
58043
58077
  icon: /* @__PURE__ */ Y(Va, {}),
58044
58078
  title: "Candidate Pipeline",
58045
58079
  children: [
58046
- /* @__PURE__ */ Y(mH, {
58080
+ /* @__PURE__ */ Y(hH, {
58047
58081
  type: "secondary",
58048
58082
  style: { fontSize: 12 },
58049
58083
  children: "By stage (892 total)"
58050
58084
  }),
58051
58085
  /* @__PURE__ */ Y("div", {
58052
58086
  className: "admin-pipeline-bar",
58053
- children: _H.map((e) => /* @__PURE__ */ Y("div", {
58087
+ children: vH.map((e) => /* @__PURE__ */ Y("div", {
58054
58088
  className: "admin-pipeline-seg",
58055
58089
  style: {
58056
58090
  width: `${e.pct}%`,
@@ -58060,7 +58094,7 @@ function bH() {
58060
58094
  }),
58061
58095
  /* @__PURE__ */ Y("div", {
58062
58096
  className: "admin-pipeline-legend",
58063
- children: _H.map((e) => /* @__PURE__ */ X("div", {
58097
+ children: vH.map((e) => /* @__PURE__ */ X("div", {
58064
58098
  className: "admin-pipeline-legend-item",
58065
58099
  children: [
58066
58100
  /* @__PURE__ */ Y("span", {
@@ -58074,7 +58108,7 @@ function bH() {
58074
58108
  }, e.label))
58075
58109
  }),
58076
58110
  /* @__PURE__ */ Y("div", { className: "admin-divider" }),
58077
- /* @__PURE__ */ Y(mH, {
58111
+ /* @__PURE__ */ Y(hH, {
58078
58112
  strong: !0,
58079
58113
  style: { fontSize: 12 },
58080
58114
  children: "Submission status"
@@ -58085,7 +58119,7 @@ function bH() {
58085
58119
  children: [
58086
58120
  /* @__PURE__ */ X("div", {
58087
58121
  className: "admin-sub-status-item",
58088
- children: [/* @__PURE__ */ Y(mH, {
58122
+ children: [/* @__PURE__ */ Y(hH, {
58089
58123
  style: { fontSize: 13 },
58090
58124
  children: "Pending client review"
58091
58125
  }), /* @__PURE__ */ Y("span", {
@@ -58095,7 +58129,7 @@ function bH() {
58095
58129
  }),
58096
58130
  /* @__PURE__ */ X("div", {
58097
58131
  className: "admin-sub-status-item",
58098
- children: [/* @__PURE__ */ Y(mH, {
58132
+ children: [/* @__PURE__ */ Y(hH, {
58099
58133
  style: { fontSize: 13 },
58100
58134
  children: "Client approved"
58101
58135
  }), /* @__PURE__ */ Y("span", {
@@ -58105,7 +58139,7 @@ function bH() {
58105
58139
  }),
58106
58140
  /* @__PURE__ */ X("div", {
58107
58141
  className: "admin-sub-status-item",
58108
- children: [/* @__PURE__ */ Y(mH, {
58142
+ children: [/* @__PURE__ */ Y(hH, {
58109
58143
  style: { fontSize: 13 },
58110
58144
  children: "Rejected"
58111
58145
  }), /* @__PURE__ */ Y("span", {
@@ -58128,7 +58162,7 @@ function bH() {
58128
58162
  size: "small",
58129
58163
  children: "View all"
58130
58164
  }),
58131
- children: vH.map((e) => /* @__PURE__ */ X("div", {
58165
+ children: yH.map((e) => /* @__PURE__ */ X("div", {
58132
58166
  className: "admin-client-row",
58133
58167
  children: [/* @__PURE__ */ X("div", {
58134
58168
  className: "admin-client-left",
@@ -58156,7 +58190,7 @@ function bH() {
58156
58190
  }), /* @__PURE__ */ Y(CA, {
58157
58191
  icon: /* @__PURE__ */ Y(qa, {}),
58158
58192
  title: "Recent Activity",
58159
- children: yH.map((e, t) => /* @__PURE__ */ X("div", {
58193
+ children: bH.map((e, t) => /* @__PURE__ */ X("div", {
58160
58194
  className: "admin-activity-row",
58161
58195
  children: [/* @__PURE__ */ Y("div", {
58162
58196
  className: "admin-activity-dot",
@@ -58184,7 +58218,7 @@ function bH() {
58184
58218
  children: [
58185
58219
  /* @__PURE__ */ X(z, {
58186
58220
  span: 8,
58187
- children: [/* @__PURE__ */ Y(mH, {
58221
+ children: [/* @__PURE__ */ Y(hH, {
58188
58222
  type: "secondary",
58189
58223
  style: {
58190
58224
  fontSize: 12,
@@ -58197,7 +58231,7 @@ function bH() {
58197
58231
  ["Templates", 2]
58198
58232
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
58199
58233
  className: "admin-cfg-overview-row",
58200
- children: [/* @__PURE__ */ Y(mH, {
58234
+ children: [/* @__PURE__ */ Y(hH, {
58201
58235
  style: { fontSize: 12 },
58202
58236
  children: e
58203
58237
  }), /* @__PURE__ */ X("span", {
@@ -58208,7 +58242,7 @@ function bH() {
58208
58242
  }),
58209
58243
  /* @__PURE__ */ X(z, {
58210
58244
  span: 8,
58211
- children: [/* @__PURE__ */ Y(mH, {
58245
+ children: [/* @__PURE__ */ Y(hH, {
58212
58246
  type: "secondary",
58213
58247
  style: {
58214
58248
  fontSize: 12,
@@ -58221,7 +58255,7 @@ function bH() {
58221
58255
  ["Submissions", 2]
58222
58256
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
58223
58257
  className: "admin-cfg-overview-row",
58224
- children: [/* @__PURE__ */ Y(mH, {
58258
+ children: [/* @__PURE__ */ Y(hH, {
58225
58259
  style: { fontSize: 12 },
58226
58260
  children: e
58227
58261
  }), /* @__PURE__ */ X("span", {
@@ -58232,7 +58266,7 @@ function bH() {
58232
58266
  }),
58233
58267
  /* @__PURE__ */ X(z, {
58234
58268
  span: 8,
58235
- children: [/* @__PURE__ */ Y(mH, {
58269
+ children: [/* @__PURE__ */ Y(hH, {
58236
58270
  type: "secondary",
58237
58271
  style: {
58238
58272
  fontSize: 12,
@@ -58245,10 +58279,10 @@ function bH() {
58245
58279
  ["Config Items", 19]
58246
58280
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
58247
58281
  className: "admin-cfg-overview-row",
58248
- children: [/* @__PURE__ */ Y(mH, {
58282
+ children: [/* @__PURE__ */ Y(hH, {
58249
58283
  style: { fontSize: 12 },
58250
58284
  children: e
58251
- }), /* @__PURE__ */ Y(mH, {
58285
+ }), /* @__PURE__ */ Y(hH, {
58252
58286
  strong: !0,
58253
58287
  style: { fontSize: 12 },
58254
58288
  children: t
@@ -58261,7 +58295,7 @@ function bH() {
58261
58295
  ]
58262
58296
  });
58263
58297
  }
58264
- function xH({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
58298
+ function SH({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
58265
58299
  return /* @__PURE__ */ X(Ta, {
58266
58300
  gutter: [16, 16],
58267
58301
  children: [
@@ -58280,11 +58314,11 @@ function xH({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
58280
58314
  }),
58281
58315
  children: [
58282
58316
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
58283
- /* @__PURE__ */ Y(hH, {
58317
+ /* @__PURE__ */ Y(gH, {
58284
58318
  level: 5,
58285
58319
  children: e?.heading
58286
58320
  }),
58287
- /* @__PURE__ */ Y(mH, {
58321
+ /* @__PURE__ */ Y(hH, {
58288
58322
  type: "secondary",
58289
58323
  children: e?.desc
58290
58324
  })
@@ -58298,7 +58332,7 @@ function xH({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
58298
58332
  children: /* @__PURE__ */ Y(CA, {
58299
58333
  icon: /* @__PURE__ */ Y(Va, {}),
58300
58334
  title: "Configuration Items",
58301
- extra: /* @__PURE__ */ X(mH, {
58335
+ extra: /* @__PURE__ */ X(hH, {
58302
58336
  type: "secondary",
58303
58337
  children: [
58304
58338
  n.length,
@@ -58365,7 +58399,7 @@ function xH({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
58365
58399
  title: "Section Overview",
58366
58400
  children: [/* @__PURE__ */ Y("div", {
58367
58401
  className: "admin-overview-list",
58368
- children: gH.filter((e) => e.group !== "Dashboard").map((e) => {
58402
+ children: _H.filter((e) => e.group !== "Dashboard").map((e) => {
58369
58403
  let n = e.group === t?.group;
58370
58404
  return /* @__PURE__ */ X("div", {
58371
58405
  className: `admin-overview-item${n ? " active" : ""}`,
@@ -58413,12 +58447,12 @@ function xH({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
58413
58447
  ]
58414
58448
  });
58415
58449
  }
58416
- function SH() {
58417
- let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => gH.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => gH.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
58450
+ function CH() {
58451
+ let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => _H.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => _H.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
58418
58452
  if (!a?.cards) return [];
58419
58453
  let e = n.trim().toLowerCase();
58420
58454
  return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
58421
- }, [a, n]), c = I(() => gH.map((e) => ({
58455
+ }, [a, n]), c = I(() => _H.map((e) => ({
58422
58456
  key: e.group,
58423
58457
  type: "group",
58424
58458
  label: e.group,
@@ -58467,7 +58501,7 @@ function SH() {
58467
58501
  children: "Groups"
58468
58502
  }), /* @__PURE__ */ Y("span", {
58469
58503
  className: "admin-sidebar-pill-value",
58470
- children: gH.length
58504
+ children: _H.length
58471
58505
  })]
58472
58506
  })
58473
58507
  }), /* @__PURE__ */ Y(z, {
@@ -58497,7 +58531,7 @@ function SH() {
58497
58531
  xs: 24,
58498
58532
  lg: 18,
58499
58533
  xl: 19,
58500
- children: e === "dashboard" ? /* @__PURE__ */ Y(bH, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(RM, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(vN, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(cP, {}) : a?.component === "users" ? /* @__PURE__ */ Y(MV, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(RV, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(nH, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(lH, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(bP, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(DP, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(NP, {}) : /* @__PURE__ */ Y(xH, {
58534
+ children: e === "dashboard" ? /* @__PURE__ */ Y(xH, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(RM, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(vN, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(cP, {}) : a?.component === "users" ? /* @__PURE__ */ Y(NV, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(zV, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(rH, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(uH, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(bP, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(DP, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(NP, {}) : /* @__PURE__ */ Y(SH, {
58501
58535
  activeSection: a,
58502
58536
  activeGroup: o,
58503
58537
  filteredCards: s,
@@ -58512,8 +58546,8 @@ function SH() {
58512
58546
  }
58513
58547
  //#endregion
58514
58548
  //#region src/pages/stickyNotesFullPage.jsx
58515
- var { Title: CH } = Fa;
58516
- function wH() {
58549
+ var { Title: wH } = Fa;
58550
+ function TH() {
58517
58551
  let e = qs(), { state: t } = Ks(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
58518
58552
  ...t?.request,
58519
58553
  params: {
@@ -58538,7 +58572,7 @@ function wH() {
58538
58572
  }
58539
58573
  //#endregion
58540
58574
  //#region src/pages/BulkUpload/index.jsx
58541
- var { Text: TH, Title: EH } = Fa, DH = 10485760, OH = "/templates/test_cases_flow_template.base64.txt", kH = "test_cases_flow_template.xlsx", AH = "module | subModule | step_order | description | actions | key | value | expected | scenario", jH = {
58575
+ var { Text: EH, Title: DH } = Fa, OH = 10485760, kH = "/templates/test_cases_flow_template.base64.txt", AH = "test_cases_flow_template.xlsx", jH = "module | subModule | step_order | description | actions | key | value | expected | scenario", MH = {
58542
58576
  idle: 0,
58543
58577
  module_set: 1,
58544
58578
  encoding: 1,
@@ -58547,7 +58581,7 @@ var { Text: TH, Title: EH } = Fa, DH = 10485760, OH = "/templates/test_cases_flo
58547
58581
  inserting: 3,
58548
58582
  done: 4,
58549
58583
  error: 1
58550
- }, MH = [
58584
+ }, NH = [
58551
58585
  {
58552
58586
  label: "Home",
58553
58587
  href: "/"
@@ -58561,31 +58595,31 @@ var { Text: TH, Title: EH } = Fa, DH = 10485760, OH = "/templates/test_cases_flo
58561
58595
  href: "/bulk-upload"
58562
58596
  }
58563
58597
  ];
58564
- function NH(e) {
58598
+ function PH(e) {
58565
58599
  return new Promise((t, n) => {
58566
58600
  let r = new FileReader();
58567
58601
  r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
58568
58602
  });
58569
58603
  }
58570
- function PH(e) {
58604
+ function FH(e) {
58571
58605
  return e.filter((e) => e.row_status === "valid").map((e) => {
58572
58606
  let t = { ...e };
58573
58607
  return delete t.row_status, delete t.errors, t;
58574
58608
  });
58575
58609
  }
58576
- function FH(e) {
58610
+ function IH(e) {
58577
58611
  return e.flatMap((e) => (e.errors ?? []).map((t) => ({
58578
58612
  id: e.id,
58579
58613
  ...t
58580
58614
  })));
58581
58615
  }
58582
- function IH({ errors: e }) {
58616
+ function LH({ errors: e }) {
58583
58617
  return /* @__PURE__ */ Y("div", {
58584
58618
  className: "bulk-tooltip-errors",
58585
58619
  children: (e ?? []).map((e, t) => /* @__PURE__ */ Y("div", { children: e.message }, `${e.field}-${t}`))
58586
58620
  });
58587
58621
  }
58588
- function LH({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
58622
+ function RH({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
58589
58623
  return e.length === 0 ? null : /* @__PURE__ */ X("div", {
58590
58624
  className: "bulk-error-banner",
58591
58625
  children: [/* @__PURE__ */ X("div", {
@@ -58616,7 +58650,7 @@ function LH({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
58616
58650
  })]
58617
58651
  });
58618
58652
  }
58619
- function RH({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
58653
+ function zH({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
58620
58654
  let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
58621
58655
  return /* @__PURE__ */ X(J, { children: [
58622
58656
  /* @__PURE__ */ X(Ta, {
@@ -58632,7 +58666,7 @@ function RH({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
58632
58666
  type: t === "errors" ? "primary" : "default",
58633
58667
  onClick: () => n("errors"),
58634
58668
  children: "Errors only"
58635
- })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(TH, {
58669
+ })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(EH, {
58636
58670
  type: "secondary",
58637
58671
  children: [e.length, " row(s)"]
58638
58672
  }) })]
@@ -58704,7 +58738,7 @@ function RH({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
58704
58738
  children: "Valid"
58705
58739
  }) }),
58706
58740
  /* @__PURE__ */ Y("td", { children: n ? /* @__PURE__ */ Y(K, {
58707
- title: /* @__PURE__ */ Y(IH, { errors: t }),
58741
+ title: /* @__PURE__ */ Y(LH, { errors: t }),
58708
58742
  placement: "left",
58709
58743
  children: /* @__PURE__ */ X("button", {
58710
58744
  type: "button",
@@ -58741,11 +58775,11 @@ function RH({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
58741
58775
  })
58742
58776
  ] });
58743
58777
  }
58744
- function zH() {
58778
+ function BH() {
58745
58779
  let e = qs(), t = I(() => y(), []), n = $i(null), r = $i(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) => ({
58746
58780
  value: e.modulename,
58747
58781
  label: e.modulename
58748
- })), E = FH(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = jH[c] ?? 0, A = m.find((e) => e.row_status === "invalid")?.id, j = Yi(() => {
58782
+ })), E = IH(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = MH[c] ?? 0, A = m.find((e) => e.row_status === "invalid")?.id, j = Yi(() => {
58749
58783
  s(""), l("idle"), d(!1), p(null), h([]), _("all"), b(null), S(null), n.current && (n.current.value = "");
58750
58784
  }, []);
58751
58785
  F(() => {
@@ -58771,7 +58805,7 @@ function zH() {
58771
58805
  l("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
58772
58806
  return;
58773
58807
  }
58774
- if (e.size > DH) {
58808
+ if (e.size > OH) {
58775
58809
  l("module_set"), b({ message: "File must be 10 MB or smaller." });
58776
58810
  return;
58777
58811
  }
@@ -58780,7 +58814,7 @@ function zH() {
58780
58814
  size: e.size
58781
58815
  }), l("encoding");
58782
58816
  try {
58783
- let r = await NH(e);
58817
+ let r = await PH(e);
58784
58818
  l("validating");
58785
58819
  let i = await Sk({
58786
58820
  filename: e.name,
@@ -58798,12 +58832,12 @@ function zH() {
58798
58832
  }
58799
58833
  }, te = async () => {
58800
58834
  try {
58801
- let e = await fetch(OH);
58835
+ let e = await fetch(kH);
58802
58836
  if (!e.ok) throw Error(`Template file not found (${e.status})`);
58803
58837
  let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
58804
58838
  for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
58805
58839
  let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
58806
- o.href = a, o.download = kH, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
58840
+ o.href = a, o.download = AH, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
58807
58841
  } catch (e) {
58808
58842
  console.error(e), q.error("Unable to download sample template.");
58809
58843
  }
@@ -58814,7 +58848,7 @@ function zH() {
58814
58848
  project: t?.name ?? "",
58815
58849
  module: o,
58816
58850
  uploaded_by: localStorage.getItem("user_Email") ?? "",
58817
- rows: PH(m)
58851
+ rows: FH(m)
58818
58852
  });
58819
58853
  S(n), l("done"), q.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
58820
58854
  } catch (e) {
@@ -58841,7 +58875,7 @@ function zH() {
58841
58875
  align: "middle",
58842
58876
  justify: "space-between",
58843
58877
  className: "breadcrumb-action-wrapper",
58844
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: MH }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(TH, {
58878
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: NH }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(EH, {
58845
58879
  strong: !0,
58846
58880
  children: t.name
58847
58881
  }) })]
@@ -58850,16 +58884,16 @@ function zH() {
58850
58884
  children: [
58851
58885
  /* @__PURE__ */ X("div", {
58852
58886
  className: "bulk-header",
58853
- children: [/* @__PURE__ */ Y(EH, {
58887
+ children: [/* @__PURE__ */ Y(DH, {
58854
58888
  level: 3,
58855
58889
  children: "Bulk upload test cases"
58856
58890
  }), /* @__PURE__ */ X(U, {
58857
58891
  direction: "vertical",
58858
58892
  size: 4,
58859
- children: [/* @__PURE__ */ Y(TH, {
58893
+ children: [/* @__PURE__ */ Y(EH, {
58860
58894
  type: "secondary",
58861
- children: AH
58862
- }), /* @__PURE__ */ Y(TH, {
58895
+ children: jH
58896
+ }), /* @__PURE__ */ Y(EH, {
58863
58897
  type: "secondary",
58864
58898
  children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
58865
58899
  })]
@@ -58957,7 +58991,7 @@ function zH() {
58957
58991
  className: "v1-card zt-fall",
58958
58992
  title: "3. Validation result",
58959
58993
  children: [
58960
- /* @__PURE__ */ Y(LH, {
58994
+ /* @__PURE__ */ Y(RH, {
58961
58995
  errors: E,
58962
58996
  expanded: C,
58963
58997
  onToggle: () => w((e) => !e),
@@ -58969,7 +59003,7 @@ function zH() {
58969
59003
  message: v.message,
58970
59004
  className: "bulk-inline-alert"
58971
59005
  }),
58972
- /* @__PURE__ */ Y(RH, {
59006
+ /* @__PURE__ */ Y(zH, {
58973
59007
  rows: m,
58974
59008
  view: g,
58975
59009
  onViewChange: _,
@@ -58992,17 +59026,17 @@ function zH() {
58992
59026
  /* @__PURE__ */ Y(z, {
58993
59027
  xs: 24,
58994
59028
  md: 8,
58995
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(TH, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
59029
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(EH, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
58996
59030
  }),
58997
59031
  /* @__PURE__ */ Y(z, {
58998
59032
  xs: 24,
58999
59033
  md: 8,
59000
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(TH, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
59034
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(EH, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
59001
59035
  }),
59002
59036
  /* @__PURE__ */ Y(z, {
59003
59037
  xs: 24,
59004
59038
  md: 8,
59005
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(TH, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
59039
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(EH, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
59006
59040
  })
59007
59041
  ]
59008
59042
  }),
@@ -59026,7 +59060,7 @@ function zH() {
59026
59060
  }
59027
59061
  //#endregion
59028
59062
  //#region src/services/dropdownValues/testPageValues.js
59029
- var BH = [
59063
+ var VH = [
59030
59064
  {
59031
59065
  value: "navigate",
59032
59066
  label: "Navigate"
@@ -59159,75 +59193,75 @@ var BH = [
59159
59193
  value: "wait_for_text",
59160
59194
  label: "Wait For Text"
59161
59195
  }
59162
- ], { Text: VH } = Fa, HH = [{
59196
+ ], { Text: HH } = Fa, UH = [{
59163
59197
  label: "Home",
59164
59198
  href: "/"
59165
59199
  }, {
59166
59200
  label: "Test Cases",
59167
59201
  href: "/test-cases"
59168
- }], UH = {
59202
+ }], WH = {
59169
59203
  tags: "regression",
59170
59204
  active: 1
59171
- }, WH = { module: {
59205
+ }, GH = { module: {
59172
59206
  dbName: "Modules",
59173
59207
  formField: "module",
59174
59208
  label: "Module"
59175
59209
  } };
59176
- function GH(e = []) {
59210
+ function KH(e = []) {
59177
59211
  return e.map((e) => ({
59178
59212
  value: e,
59179
59213
  label: e
59180
59214
  }));
59181
59215
  }
59182
- function KH(e = "") {
59216
+ function qH(e = "") {
59183
59217
  return String(e ?? "").trim();
59184
59218
  }
59185
- function qH(e = "") {
59186
- return KH(e).toLowerCase();
59219
+ function JH(e = "") {
59220
+ return qH(e).toLowerCase();
59187
59221
  }
59188
- function JH(e = []) {
59222
+ function YH(e = []) {
59189
59223
  let t = /* @__PURE__ */ new Map();
59190
59224
  return e.forEach((e) => {
59191
- let n = KH(e?.flow), r = n.toLowerCase();
59225
+ let n = qH(e?.flow), r = n.toLowerCase();
59192
59226
  n && !t.has(r) && t.set(r, n);
59193
59227
  }), Array.from(t.values()).map((e) => ({
59194
59228
  value: e,
59195
59229
  label: e
59196
59230
  }));
59197
59231
  }
59198
- function YH(e = [], t, n) {
59199
- let r = KH(t).toLowerCase(), i = KH(n).toLowerCase();
59232
+ function XH(e = [], t, n) {
59233
+ let r = qH(t).toLowerCase(), i = qH(n).toLowerCase();
59200
59234
  return e.reduce((e, t) => {
59201
- let n = KH(t?.module).toLowerCase(), a = KH(t?.flow).toLowerCase();
59235
+ let n = qH(t?.module).toLowerCase(), a = qH(t?.flow).toLowerCase();
59202
59236
  if (n !== r || a !== i) return e;
59203
59237
  let o = Number(t?.step_order) || 0;
59204
59238
  return Math.max(e, o);
59205
59239
  }, 0) + 1;
59206
59240
  }
59207
- function XH({ icon: e, title: t }) {
59241
+ function ZH({ icon: e, title: t }) {
59208
59242
  return /* @__PURE__ */ X(U, {
59209
59243
  size: 10,
59210
59244
  align: "center",
59211
59245
  children: [/* @__PURE__ */ Y("div", {
59212
59246
  className: "v1-section-icon-box",
59213
59247
  children: e
59214
- }), /* @__PURE__ */ Y(VH, {
59248
+ }), /* @__PURE__ */ Y(HH, {
59215
59249
  strong: !0,
59216
59250
  className: "v1-section-label",
59217
59251
  children: t
59218
59252
  })]
59219
59253
  });
59220
59254
  }
59221
- function ZH() {
59255
+ function QH() {
59222
59256
  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({
59223
59257
  open: !1,
59224
59258
  typeKey: "module"
59225
- }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = qs(), x = WH[f.typeKey], S = I(() => GH(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!KH(C), E = !!KH(w), D = !T, O = !T || !E, k = (e, t = []) => {
59259
+ }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = qs(), x = GH[f.typeKey], S = I(() => KH(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!qH(C), E = !!qH(w), D = !T, O = !T || !E, k = (e, t = []) => {
59226
59260
  e === "module" && r(t);
59227
59261
  }, A = async () => {
59228
59262
  l(!0);
59229
59263
  try {
59230
- let e = await _k(WH.module.dbName);
59264
+ let e = await _k(GH.module.dbName);
59231
59265
  r(e?.items ?? []);
59232
59266
  } catch (e) {
59233
59267
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -59235,7 +59269,7 @@ function ZH() {
59235
59269
  l(!1);
59236
59270
  }
59237
59271
  }, j = Yi(async (t) => {
59238
- let n = KH(t);
59272
+ let n = qH(t);
59239
59273
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
59240
59274
  d(!0);
59241
59275
  try {
@@ -59244,7 +59278,7 @@ function ZH() {
59244
59278
  offset: 0,
59245
59279
  module: n
59246
59280
  }), t = Array.isArray(e?.items) ? e.items : [];
59247
- a(t), s(JH(t));
59281
+ a(t), s(YH(t));
59248
59282
  } catch (e) {
59249
59283
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
59250
59284
  } finally {
@@ -59252,14 +59286,14 @@ function ZH() {
59252
59286
  }
59253
59287
  }
59254
59288
  }, [e]), ee = Yi(async (t, n, r) => {
59255
- let i = KH(t), a = KH(n);
59289
+ let i = qH(t), a = qH(n);
59256
59290
  if (!i || !a) {
59257
59291
  e.setFieldsValue({ step_order: void 0 });
59258
59292
  return;
59259
59293
  }
59260
59294
  _(!0);
59261
59295
  try {
59262
- e.setFieldsValue({ step_order: YH(r, i, a) });
59296
+ e.setFieldsValue({ step_order: XH(r, i, a) });
59263
59297
  } catch (e) {
59264
59298
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
59265
59299
  } finally {
@@ -59280,15 +59314,15 @@ function ZH() {
59280
59314
  ]);
59281
59315
  let M = async (t) => {
59282
59316
  let n = {
59283
- module: KH(t.module),
59284
- flow: KH(t.flow),
59317
+ module: qH(t.module),
59318
+ flow: qH(t.flow),
59285
59319
  step_order: Number(t.step_order),
59286
- description: KH(t.description),
59287
- keyword: qH(t.keyword),
59288
- target: KH(t.target),
59289
- value: KH(t.value),
59290
- expected: KH(t.expected),
59291
- tags: t.tags ? KH(t.tags) : UH.tags,
59320
+ description: qH(t.description),
59321
+ keyword: JH(t.keyword),
59322
+ target: qH(t.target),
59323
+ value: qH(t.value),
59324
+ expected: qH(t.expected),
59325
+ tags: t.tags ? qH(t.tags) : WH.tags,
59292
59326
  active: Number(t.active)
59293
59327
  };
59294
59328
  y(!0);
@@ -59300,26 +59334,26 @@ function ZH() {
59300
59334
  y(!1);
59301
59335
  }
59302
59336
  }, te = (t, n) => {
59303
- e.setFieldsValue({ [t]: KH(n) });
59337
+ e.setFieldsValue({ [t]: qH(n) });
59304
59338
  }, N = (t) => {
59305
59339
  e.setFieldsValue({
59306
- module: KH(t),
59340
+ module: qH(t),
59307
59341
  flow: void 0,
59308
59342
  step_order: void 0,
59309
59343
  keyword: void 0,
59310
59344
  description: void 0,
59311
59345
  target: void 0,
59312
- tags: UH.tags,
59346
+ tags: WH.tags,
59313
59347
  value: void 0,
59314
59348
  expected: void 0
59315
59349
  });
59316
59350
  }, ne = (t) => {
59317
59351
  e.setFieldsValue({
59318
- flow: KH(t),
59352
+ flow: qH(t),
59319
59353
  step_order: void 0
59320
59354
  });
59321
59355
  }, re = (e) => {
59322
- let n = WH[e];
59356
+ let n = GH[e];
59323
59357
  p({
59324
59358
  open: !0,
59325
59359
  typeKey: e
@@ -59334,7 +59368,7 @@ function ZH() {
59334
59368
  })), t.resetFields();
59335
59369
  }, ae = async () => {
59336
59370
  try {
59337
- let n = KH((await t.validateFields()).name), r = await vk({
59371
+ let n = qH((await t.validateFields()).name), r = await vk({
59338
59372
  name: n,
59339
59373
  type: x.dbName
59340
59374
  });
@@ -59352,7 +59386,7 @@ function ZH() {
59352
59386
  align: "middle",
59353
59387
  justify: "space-between",
59354
59388
  className: "breadcrumb-action-wrapper",
59355
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: HH }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
59389
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: UH }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
59356
59390
  type: "link",
59357
59391
  onClick: () => b("/zinnext-home"),
59358
59392
  children: "View Table"
@@ -59367,7 +59401,7 @@ function ZH() {
59367
59401
  children: /* @__PURE__ */ X(U, {
59368
59402
  align: "center",
59369
59403
  size: 10,
59370
- children: [/* @__PURE__ */ Y(as, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(VH, {
59404
+ children: [/* @__PURE__ */ Y(as, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(HH, {
59371
59405
  strong: !0,
59372
59406
  style: { fontSize: 16 },
59373
59407
  children: "Add Test Case"
@@ -59383,16 +59417,16 @@ function ZH() {
59383
59417
  className: "v1-required-mark",
59384
59418
  children: " *"
59385
59419
  })] }),
59386
- initialValues: UH,
59420
+ initialValues: WH,
59387
59421
  onFinish: M,
59388
59422
  autoComplete: "off",
59389
59423
  children: [/* @__PURE__ */ Y(aa, {
59390
59424
  className: "v1-card",
59391
- title: /* @__PURE__ */ Y(XH, {
59425
+ title: /* @__PURE__ */ Y(ZH, {
59392
59426
  icon: /* @__PURE__ */ Y(Mo, {}),
59393
59427
  title: "Test Case Details"
59394
59428
  }),
59395
- extra: /* @__PURE__ */ Y(VH, {
59429
+ extra: /* @__PURE__ */ Y(HH, {
59396
59430
  type: "secondary",
59397
59431
  className: "v1-card-subtitle",
59398
59432
  children: "Module, flow, step order and execution data"
@@ -59469,8 +59503,8 @@ function ZH() {
59469
59503
  disabled: O,
59470
59504
  optionFilterProp: "label",
59471
59505
  placeholder: "Select action",
59472
- options: BH,
59473
- onChange: (t) => e.setFieldsValue({ keyword: qH(t) })
59506
+ options: VH,
59507
+ onChange: (t) => e.setFieldsValue({ keyword: JH(t) })
59474
59508
  })
59475
59509
  })
59476
59510
  }),
@@ -59590,7 +59624,7 @@ function ZH() {
59590
59624
  maxLength: 100,
59591
59625
  placeholder: `Enter ${x.label.toLowerCase()} name`,
59592
59626
  onBlur: (e) => {
59593
- t.setFieldsValue({ name: KH(e.target.value) });
59627
+ t.setFieldsValue({ name: qH(e.target.value) });
59594
59628
  }
59595
59629
  })
59596
59630
  }), /* @__PURE__ */ Y(B.Item, {
@@ -59607,23 +59641,23 @@ function ZH() {
59607
59641
  }
59608
59642
  //#endregion
59609
59643
  //#region src/pages/TestingPage/ZinnextTestForm.jsx
59610
- var { Text: QH } = Fa, $H = [{
59644
+ var { Text: $H } = Fa, eU = [{
59611
59645
  label: "Home",
59612
59646
  href: "/"
59613
59647
  }, {
59614
59648
  label: "Test Cases",
59615
59649
  href: "/addTestCase"
59616
59650
  }];
59617
- function eU(e = "") {
59651
+ function tU(e = "") {
59618
59652
  return String(e ?? "").trim();
59619
59653
  }
59620
- function tU(e = [], t) {
59654
+ function nU(e = [], t) {
59621
59655
  return e.map((e) => ({
59622
59656
  value: e.id,
59623
59657
  label: e[t]
59624
59658
  }));
59625
59659
  }
59626
- var nU = [
59660
+ var rU = [
59627
59661
  {
59628
59662
  label: "Step",
59629
59663
  value: "step_order",
@@ -59662,22 +59696,22 @@ var nU = [
59662
59696
  children: "Negative"
59663
59697
  })
59664
59698
  }
59665
- ], rU = {
59699
+ ], iU = {
59666
59700
  key: !1,
59667
59701
  value: !1,
59668
59702
  expected: !1
59669
59703
  };
59670
- function iU(e, t) {
59671
- return t ? e[t] ?? rU : rU;
59672
- }
59673
59704
  function aU(e, t) {
59705
+ return t ? e[t] ?? iU : iU;
59706
+ }
59707
+ function oU(e, t) {
59674
59708
  e.setFields(t.map((e) => ({
59675
59709
  name: e,
59676
59710
  errors: []
59677
59711
  })));
59678
59712
  }
59679
- function oU() {
59680
- let [e] = B.useForm(), t = qs(), [n] = Ys(), r = n.get("edit"), i = !!r, a = I(() => y(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(BH), [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(() => iU(m, k), [m, k]), M = I(() => tU(o, "modulename"), [o]), te = I(() => tU(c, "submodulename"), [c]), N = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), ne = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), re = Yi(async () => {
59713
+ function sU() {
59714
+ let [e] = B.useForm(), t = qs(), [n] = Ys(), r = n.get("edit"), i = !!r, a = I(() => y(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(VH), [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(() => aU(m, k), [m, k]), M = I(() => nU(o, "modulename"), [o]), te = I(() => nU(c, "submodulename"), [c]), N = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), ne = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), re = Yi(async () => {
59681
59715
  try {
59682
59716
  let e = await yk();
59683
59717
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
@@ -59823,10 +59857,10 @@ function oU() {
59823
59857
  align: "middle",
59824
59858
  justify: "space-between",
59825
59859
  className: "breadcrumb-action-wrapper",
59826
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: $H }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
59860
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: eU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
59827
59861
  size: 6,
59828
59862
  className: "zt-section-title",
59829
- children: [/* @__PURE__ */ Y(os, {}), /* @__PURE__ */ Y(QH, {
59863
+ children: [/* @__PURE__ */ Y(os, {}), /* @__PURE__ */ Y($H, {
59830
59864
  strong: !0,
59831
59865
  children: a.name
59832
59866
  })]
@@ -59847,11 +59881,11 @@ function oU() {
59847
59881
  product_parent_ID: Number(a?.id),
59848
59882
  module_parent_ID: Number(n.module),
59849
59883
  submodule_parent_ID: Number(n.submodule),
59850
- description: eU(n.description),
59851
- actions: eU(n.actions),
59852
- key: eU(n.key),
59853
- value: eU(n.value),
59854
- expected: eU(n.expected),
59884
+ description: tU(n.description),
59885
+ actions: tU(n.actions),
59886
+ key: tU(n.key),
59887
+ value: tU(n.value),
59888
+ expected: tU(n.expected),
59855
59889
  scenario: +!!n.scenario,
59856
59890
  active: +!!n.active
59857
59891
  };
@@ -59917,7 +59951,7 @@ function oU() {
59917
59951
  key: void 0,
59918
59952
  value: void 0,
59919
59953
  expected: void 0
59920
- }), aU(e, [
59954
+ }), oU(e, [
59921
59955
  "actions",
59922
59956
  "key",
59923
59957
  "value",
@@ -59948,7 +59982,7 @@ function oU() {
59948
59982
  key: void 0,
59949
59983
  value: void 0,
59950
59984
  expected: void 0
59951
- }), aU(e, [
59985
+ }), oU(e, [
59952
59986
  "actions",
59953
59987
  "key",
59954
59988
  "value",
@@ -60002,7 +60036,7 @@ function oU() {
60002
60036
  /* @__PURE__ */ Y("span", { children: "Step Details" })
60003
60037
  ]
60004
60038
  }),
60005
- extra: /* @__PURE__ */ X(QH, {
60039
+ extra: /* @__PURE__ */ X($H, {
60006
60040
  type: "secondary",
60007
60041
  children: [
60008
60042
  N,
@@ -60042,13 +60076,13 @@ function oU() {
60042
60076
  placeholder: "Select action",
60043
60077
  options: f,
60044
60078
  onChange: (t) => {
60045
- let n = iU(m, t);
60079
+ let n = aU(m, t);
60046
60080
  e.setFieldsValue({
60047
60081
  actions: t,
60048
60082
  key: n.key ? e.getFieldValue("key") : void 0,
60049
60083
  value: n.value ? e.getFieldValue("value") : void 0,
60050
60084
  expected: n.expected ? e.getFieldValue("expected") : void 0
60051
- }), aU(e, [
60085
+ }), oU(e, [
60052
60086
  "key",
60053
60087
  "value",
60054
60088
  "expected"
@@ -60157,7 +60191,7 @@ function oU() {
60157
60191
  children: /* @__PURE__ */ Y(NC, {
60158
60192
  listName: "Added Steps",
60159
60193
  loading: x,
60160
- fields: nU,
60194
+ fields: rU,
60161
60195
  dataSource: u,
60162
60196
  current: 1,
60163
60197
  pageSize: Math.max(u.length, 1),
@@ -60173,7 +60207,7 @@ function oU() {
60173
60207
  }
60174
60208
  //#endregion
60175
60209
  //#region src/pages/TestingPage/ManageModules.jsx
60176
- var { Text: sU } = Fa, cU = [
60210
+ var { Text: cU } = Fa, lU = [
60177
60211
  {
60178
60212
  label: "Home",
60179
60213
  href: "/"
@@ -60187,7 +60221,7 @@ var { Text: sU } = Fa, cU = [
60187
60221
  href: "/manageModules"
60188
60222
  }
60189
60223
  ];
60190
- function lU() {
60224
+ function uU() {
60191
60225
  let e = qs(), 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 = Yi(async (e) => {
60192
60226
  if (!e) {
60193
60227
  r([]);
@@ -60255,7 +60289,7 @@ function lU() {
60255
60289
  align: "middle",
60256
60290
  justify: "space-between",
60257
60291
  className: "breadcrumb-action-wrapper",
60258
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: cU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
60292
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: lU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
60259
60293
  type: "link",
60260
60294
  onClick: () => e("/addTestCase"),
60261
60295
  children: "Back to Form"
@@ -60275,7 +60309,7 @@ function lU() {
60275
60309
  children: [
60276
60310
  /* @__PURE__ */ Y(os, {}),
60277
60311
  /* @__PURE__ */ Y("span", { children: "Project:" }),
60278
- /* @__PURE__ */ Y(sU, {
60312
+ /* @__PURE__ */ Y(cU, {
60279
60313
  strong: !0,
60280
60314
  children: t.name
60281
60315
  })
@@ -60351,7 +60385,7 @@ function lU() {
60351
60385
  children: /* @__PURE__ */ X(U, {
60352
60386
  direction: "vertical",
60353
60387
  className: "zt-modal-stack",
60354
- children: [/* @__PURE__ */ X(sU, {
60388
+ children: [/* @__PURE__ */ X(cU, {
60355
60389
  type: "secondary",
60356
60390
  children: ["Project: ", /* @__PURE__ */ Y("b", { children: t.name })]
60357
60391
  }), /* @__PURE__ */ Y(V, {
@@ -60368,7 +60402,7 @@ function lU() {
60368
60402
  }
60369
60403
  //#endregion
60370
60404
  //#region src/pages/TestingPage/ManageSubmodules.jsx
60371
- var { Text: uU } = Fa, dU = [
60405
+ var { Text: dU } = Fa, fU = [
60372
60406
  {
60373
60407
  label: "Home",
60374
60408
  href: "/"
@@ -60386,7 +60420,7 @@ var { Text: uU } = Fa, dU = [
60386
60420
  href: "/test-cases/zinnext/submodules"
60387
60421
  }
60388
60422
  ];
60389
- function fU() {
60423
+ function pU() {
60390
60424
  let e = qs(), [t] = Ys(), 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 = Yi(async (e, t) => {
60391
60425
  if (!e || !t) {
60392
60426
  a([]);
@@ -60456,7 +60490,7 @@ function fU() {
60456
60490
  align: "middle",
60457
60491
  justify: "space-between",
60458
60492
  className: "breadcrumb-action-wrapper",
60459
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: dU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
60493
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: fU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
60460
60494
  type: "link",
60461
60495
  onClick: () => e("/manageModules"),
60462
60496
  children: "Back to Modules"
@@ -60479,7 +60513,7 @@ function fU() {
60479
60513
  children: [
60480
60514
  /* @__PURE__ */ Y(os, {}),
60481
60515
  /* @__PURE__ */ Y("span", { children: "Project:" }),
60482
- /* @__PURE__ */ Y(uU, {
60516
+ /* @__PURE__ */ Y(dU, {
60483
60517
  strong: !0,
60484
60518
  children: n.name
60485
60519
  })
@@ -60489,7 +60523,7 @@ function fU() {
60489
60523
  children: [
60490
60524
  /* @__PURE__ */ Y(Va, {}),
60491
60525
  /* @__PURE__ */ Y("span", { children: "Module:" }),
60492
- /* @__PURE__ */ Y(uU, {
60526
+ /* @__PURE__ */ Y(dU, {
60493
60527
  strong: !0,
60494
60528
  children: r
60495
60529
  })
@@ -60552,7 +60586,7 @@ function fU() {
60552
60586
  children: /* @__PURE__ */ X(U, {
60553
60587
  direction: "vertical",
60554
60588
  className: "zt-modal-stack",
60555
- children: [/* @__PURE__ */ X(uU, {
60589
+ children: [/* @__PURE__ */ X(dU, {
60556
60590
  type: "secondary",
60557
60591
  children: [
60558
60592
  "Project: ",
@@ -60574,7 +60608,7 @@ function fU() {
60574
60608
  }
60575
60609
  //#endregion
60576
60610
  //#region src/pages/TestingPage/ZinnextTableView.jsx
60577
- var { Text: pU } = Fa, mU = [
60611
+ var { Text: mU } = Fa, hU = [
60578
60612
  {
60579
60613
  label: "Home",
60580
60614
  href: "/"
@@ -60588,7 +60622,7 @@ var { Text: pU } = Fa, mU = [
60588
60622
  href: "/viewTestCase"
60589
60623
  }
60590
60624
  ];
60591
- function hU() {
60625
+ function gU() {
60592
60626
  let e = qs(), [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 = Yi(async (e = {}) => {
60593
60627
  o(!0);
60594
60628
  try {
@@ -60648,7 +60682,7 @@ function hU() {
60648
60682
  align: "middle",
60649
60683
  justify: "space-between",
60650
60684
  className: "breadcrumb-action-wrapper",
60651
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: mU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
60685
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: hU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
60652
60686
  type: "link",
60653
60687
  onClick: () => e("/addTestCase"),
60654
60688
  children: "Back to Form"
@@ -60662,7 +60696,7 @@ function hU() {
60662
60696
  className: "zt-section-title",
60663
60697
  children: [/* @__PURE__ */ Y(Ts, {}), /* @__PURE__ */ Y("span", { children: "Test Flows" })]
60664
60698
  }),
60665
- extra: /* @__PURE__ */ X(pU, {
60699
+ extra: /* @__PURE__ */ X(mU, {
60666
60700
  type: "secondary",
60667
60701
  children: [r, " row(s)"]
60668
60702
  }),
@@ -60816,17 +60850,17 @@ function hU() {
60816
60850
  }
60817
60851
  //#endregion
60818
60852
  //#region src/pages/TestingPage/testHomePage.jsx
60819
- var gU = [{
60853
+ var _U = [{
60820
60854
  label: "Home",
60821
60855
  href: "/"
60822
60856
  }, {
60823
60857
  label: "Test Cases",
60824
60858
  href: "/test-cases"
60825
60859
  }];
60826
- function _U() {
60860
+ function vU() {
60827
60861
  return /* @__PURE__ */ X("main", {
60828
60862
  className: "jobs-list-page",
60829
- children: [/* @__PURE__ */ Y($r, { items: gU }), /* @__PURE__ */ Y(Eh, {
60863
+ children: [/* @__PURE__ */ Y($r, { items: _U }), /* @__PURE__ */ Y(Eh, {
60830
60864
  moduleName: "test-flows",
60831
60865
  rowKey: "id"
60832
60866
  })]
@@ -60834,85 +60868,85 @@ function _U() {
60834
60868
  }
60835
60869
  //#endregion
60836
60870
  //#region src/pages/TestingPage/lms-test-form.jsx
60837
- var { Text: vU } = Fa, yU = [{
60871
+ var { Text: yU } = Fa, bU = [{
60838
60872
  label: "Home",
60839
60873
  href: "/"
60840
60874
  }, {
60841
60875
  label: "LMS Cases",
60842
60876
  href: "/lms-cases"
60843
- }], bU = {
60877
+ }], xU = {
60844
60878
  tags: "regression",
60845
60879
  active: 1
60846
- }, xU = { module: {
60880
+ }, SU = { module: {
60847
60881
  dbName: "Modules",
60848
60882
  formField: "module",
60849
60883
  label: "Module"
60850
- } }, SU = {
60884
+ } }, CU = {
60851
60885
  key: !1,
60852
60886
  value: !1,
60853
60887
  expected: !1
60854
60888
  };
60855
- function CU(e, t) {
60856
- return t ? e[t] ?? SU : SU;
60857
- }
60858
60889
  function wU(e, t) {
60890
+ return t ? e[t] ?? CU : CU;
60891
+ }
60892
+ function TU(e, t) {
60859
60893
  e.setFields(t.map((e) => ({
60860
60894
  name: e,
60861
60895
  errors: []
60862
60896
  })));
60863
60897
  }
60864
- function TU(e = []) {
60898
+ function EU(e = []) {
60865
60899
  return e.map((e) => ({
60866
60900
  value: e,
60867
60901
  label: e
60868
60902
  }));
60869
60903
  }
60870
- function EU(e = "") {
60904
+ function DU(e = "") {
60871
60905
  return String(e ?? "").trim();
60872
60906
  }
60873
- function DU(e = []) {
60907
+ function OU(e = []) {
60874
60908
  let t = /* @__PURE__ */ new Map();
60875
60909
  return e.forEach((e) => {
60876
- let n = EU(e?.flow), r = n.toLowerCase();
60910
+ let n = DU(e?.flow), r = n.toLowerCase();
60877
60911
  n && !t.has(r) && t.set(r, n);
60878
60912
  }), Array.from(t.values()).map((e) => ({
60879
60913
  value: e,
60880
60914
  label: e
60881
60915
  }));
60882
60916
  }
60883
- function OU(e = [], t, n) {
60884
- let r = EU(t).toLowerCase(), i = EU(n).toLowerCase();
60917
+ function kU(e = [], t, n) {
60918
+ let r = DU(t).toLowerCase(), i = DU(n).toLowerCase();
60885
60919
  return e.reduce((e, t) => {
60886
- let n = EU(t?.module).toLowerCase(), a = EU(t?.flow).toLowerCase();
60920
+ let n = DU(t?.module).toLowerCase(), a = DU(t?.flow).toLowerCase();
60887
60921
  if (n !== r || a !== i) return e;
60888
60922
  let o = Number(t?.step_order) || 0;
60889
60923
  return Math.max(e, o);
60890
60924
  }, 0) + 1;
60891
60925
  }
60892
- function kU({ icon: e, title: t }) {
60926
+ function AU({ icon: e, title: t }) {
60893
60927
  return /* @__PURE__ */ X(U, {
60894
60928
  size: 10,
60895
60929
  align: "center",
60896
60930
  children: [/* @__PURE__ */ Y("div", {
60897
60931
  className: "v1-section-icon-box",
60898
60932
  children: e
60899
- }), /* @__PURE__ */ Y(vU, {
60933
+ }), /* @__PURE__ */ Y(yU, {
60900
60934
  strong: !0,
60901
60935
  className: "v1-section-label",
60902
60936
  children: t
60903
60937
  })]
60904
60938
  });
60905
60939
  }
60906
- function AU() {
60907
- let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(BH), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
60940
+ function jU() {
60941
+ let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(VH), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
60908
60942
  open: !1,
60909
60943
  typeKey: "module"
60910
- }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = qs(), T = xU[g.typeKey], E = I(() => TU(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!EU(D), j = !!EU(O), ee = !A, M = !A || !j, te = I(() => CU(u, k), [u, k]), N = (e, t = []) => {
60944
+ }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = qs(), T = SU[g.typeKey], E = I(() => EU(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!DU(D), j = !!DU(O), ee = !A, M = !A || !j, te = I(() => wU(u, k), [u, k]), N = (e, t = []) => {
60911
60945
  e === "module" && r(t);
60912
60946
  }, ne = async () => {
60913
60947
  p(!0);
60914
60948
  try {
60915
- let e = await _k(xU.module.dbName);
60949
+ let e = await _k(SU.module.dbName);
60916
60950
  r(e?.items ?? []);
60917
60951
  } catch (e) {
60918
60952
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -60927,7 +60961,7 @@ function AU() {
60927
60961
  console.error("Unable to load action field rules:", e), q.error("Unable to load action validation rules.");
60928
60962
  }
60929
60963
  }, ie = Yi(async (t) => {
60930
- let n = EU(t);
60964
+ let n = DU(t);
60931
60965
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
60932
60966
  h(!0);
60933
60967
  try {
@@ -60936,7 +60970,7 @@ function AU() {
60936
60970
  offset: 0,
60937
60971
  module: n
60938
60972
  }), t = Array.isArray(e?.items) ? e.items : [];
60939
- a(t), s(DU(t));
60973
+ a(t), s(OU(t));
60940
60974
  } catch (e) {
60941
60975
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
60942
60976
  } finally {
@@ -60944,14 +60978,14 @@ function AU() {
60944
60978
  }
60945
60979
  }
60946
60980
  }, [e]), ae = Yi(async (t, n, r) => {
60947
- let i = EU(t), a = EU(n);
60981
+ let i = DU(t), a = DU(n);
60948
60982
  if (!i || !a) {
60949
60983
  e.setFieldsValue({ step_order: void 0 });
60950
60984
  return;
60951
60985
  }
60952
60986
  x(!0);
60953
60987
  try {
60954
- e.setFieldsValue({ step_order: OU(r, i, a) });
60988
+ e.setFieldsValue({ step_order: kU(r, i, a) });
60955
60989
  } catch (e) {
60956
60990
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
60957
60991
  } finally {
@@ -60974,15 +61008,15 @@ function AU() {
60974
61008
  ]);
60975
61009
  let oe = async (t) => {
60976
61010
  let n = {
60977
- module: EU(t.module),
60978
- flow: EU(t.flow),
61011
+ module: DU(t.module),
61012
+ flow: DU(t.flow),
60979
61013
  step_order: Number(t.step_order),
60980
- description: EU(t.description),
60981
- keyword: EU(t.keyword),
60982
- target: EU(t.target),
60983
- value: EU(t.value),
60984
- expected: EU(t.expected),
60985
- tags: t.tags ? EU(t.tags) : bU.tags,
61014
+ description: DU(t.description),
61015
+ keyword: DU(t.keyword),
61016
+ target: DU(t.target),
61017
+ value: DU(t.value),
61018
+ expected: DU(t.expected),
61019
+ tags: t.tags ? DU(t.tags) : xU.tags,
60986
61020
  active: Number(t.active)
60987
61021
  };
60988
61022
  C(!0);
@@ -60994,19 +61028,19 @@ function AU() {
60994
61028
  C(!1);
60995
61029
  }
60996
61030
  }, se = (t, n) => {
60997
- e.setFieldsValue({ [t]: EU(n) });
61031
+ e.setFieldsValue({ [t]: DU(n) });
60998
61032
  }, ce = (t) => {
60999
61033
  e.setFieldsValue({
61000
- module: EU(t),
61034
+ module: DU(t),
61001
61035
  flow: void 0,
61002
61036
  step_order: void 0,
61003
61037
  keyword: void 0,
61004
61038
  description: void 0,
61005
61039
  target: void 0,
61006
- tags: bU.tags,
61040
+ tags: xU.tags,
61007
61041
  value: void 0,
61008
61042
  expected: void 0
61009
- }), wU(e, [
61043
+ }), TU(e, [
61010
61044
  "keyword",
61011
61045
  "target",
61012
61046
  "value",
@@ -61014,32 +61048,32 @@ function AU() {
61014
61048
  ]);
61015
61049
  }, le = (t) => {
61016
61050
  e.setFieldsValue({
61017
- flow: EU(t),
61051
+ flow: DU(t),
61018
61052
  step_order: void 0,
61019
61053
  keyword: void 0,
61020
61054
  target: void 0,
61021
61055
  value: void 0,
61022
61056
  expected: void 0
61023
- }), wU(e, [
61057
+ }), TU(e, [
61024
61058
  "keyword",
61025
61059
  "target",
61026
61060
  "value",
61027
61061
  "expected"
61028
61062
  ]);
61029
61063
  }, ue = (t) => {
61030
- let n = CU(u, t);
61064
+ let n = wU(u, t);
61031
61065
  e.setFieldsValue({
61032
- keyword: EU(t),
61066
+ keyword: DU(t),
61033
61067
  target: n.key ? e.getFieldValue("target") : void 0,
61034
61068
  value: n.value ? e.getFieldValue("value") : void 0,
61035
61069
  expected: n.expected ? e.getFieldValue("expected") : void 0
61036
- }), wU(e, [
61070
+ }), TU(e, [
61037
61071
  "target",
61038
61072
  "value",
61039
61073
  "expected"
61040
61074
  ]);
61041
61075
  }, de = (e) => {
61042
- let n = xU[e];
61076
+ let n = SU[e];
61043
61077
  _({
61044
61078
  open: !0,
61045
61079
  typeKey: e
@@ -61054,7 +61088,7 @@ function AU() {
61054
61088
  })), t.resetFields();
61055
61089
  }, pe = async () => {
61056
61090
  try {
61057
- let n = EU((await t.validateFields()).name), r = await vk({
61091
+ let n = DU((await t.validateFields()).name), r = await vk({
61058
61092
  name: n,
61059
61093
  type: T.dbName
61060
61094
  });
@@ -61072,7 +61106,7 @@ function AU() {
61072
61106
  align: "middle",
61073
61107
  justify: "space-between",
61074
61108
  className: "breadcrumb-action-wrapper",
61075
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: yU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61109
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y($r, { items: bU }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61076
61110
  type: "link",
61077
61111
  onClick: () => w("/lms-home"),
61078
61112
  children: "View Table"
@@ -61087,7 +61121,7 @@ function AU() {
61087
61121
  children: /* @__PURE__ */ X(U, {
61088
61122
  align: "center",
61089
61123
  size: 10,
61090
- children: [/* @__PURE__ */ Y(as, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(vU, {
61124
+ children: [/* @__PURE__ */ Y(as, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(yU, {
61091
61125
  strong: !0,
61092
61126
  style: { fontSize: 16 },
61093
61127
  children: "Add LMS Case"
@@ -61103,16 +61137,16 @@ function AU() {
61103
61137
  className: "v1-required-mark",
61104
61138
  children: " *"
61105
61139
  })] }),
61106
- initialValues: bU,
61140
+ initialValues: xU,
61107
61141
  onFinish: oe,
61108
61142
  autoComplete: "off",
61109
61143
  children: [/* @__PURE__ */ Y(aa, {
61110
61144
  className: "v1-card",
61111
- title: /* @__PURE__ */ Y(kU, {
61145
+ title: /* @__PURE__ */ Y(AU, {
61112
61146
  icon: /* @__PURE__ */ Y(Mo, {}),
61113
61147
  title: "LMS Case Details"
61114
61148
  }),
61115
- extra: /* @__PURE__ */ Y(vU, {
61149
+ extra: /* @__PURE__ */ Y(yU, {
61116
61150
  type: "secondary",
61117
61151
  className: "v1-card-subtitle",
61118
61152
  children: "Module, flow, step order and execution data"
@@ -61322,7 +61356,7 @@ function AU() {
61322
61356
  maxLength: 100,
61323
61357
  placeholder: `Enter ${T.label.toLowerCase()} name`,
61324
61358
  onBlur: (e) => {
61325
- t.setFieldsValue({ name: EU(e.target.value) });
61359
+ t.setFieldsValue({ name: DU(e.target.value) });
61326
61360
  }
61327
61361
  })
61328
61362
  }), /* @__PURE__ */ Y(B.Item, {
@@ -61339,17 +61373,17 @@ function AU() {
61339
61373
  }
61340
61374
  //#endregion
61341
61375
  //#region src/pages/TestingPage/lmsHomePage.jsx
61342
- var jU = [{
61376
+ var MU = [{
61343
61377
  label: "Home",
61344
61378
  href: "/"
61345
61379
  }, {
61346
61380
  label: "LMS Cases",
61347
61381
  href: "/lms-cases"
61348
61382
  }];
61349
- function MU() {
61383
+ function NU() {
61350
61384
  return /* @__PURE__ */ X("main", {
61351
61385
  className: "jobs-list-page",
61352
- children: [/* @__PURE__ */ Y($r, { items: jU }), /* @__PURE__ */ Y(Eh, {
61386
+ children: [/* @__PURE__ */ Y($r, { items: MU }), /* @__PURE__ */ Y(Eh, {
61353
61387
  moduleName: "lms-flows",
61354
61388
  rowKey: "id"
61355
61389
  })]
@@ -61357,7 +61391,7 @@ function MU() {
61357
61391
  }
61358
61392
  //#endregion
61359
61393
  //#region src/services/mergedListApi.js
61360
- var NU = [
61394
+ var PU = [
61361
61395
  "referenceId",
61362
61396
  "ReferenceId",
61363
61397
  "candidateId",
@@ -61368,7 +61402,7 @@ var NU = [
61368
61402
  "Id",
61369
61403
  "_id"
61370
61404
  ];
61371
- function PU(e = NU) {
61405
+ function FU(e = PU) {
61372
61406
  return function(t) {
61373
61407
  if (!t || typeof t != "object") return "";
61374
61408
  for (let n of e) {
@@ -61378,7 +61412,7 @@ function PU(e = NU) {
61378
61412
  return "";
61379
61413
  };
61380
61414
  }
61381
- function FU(e, t = NU) {
61415
+ function IU(e, t = PU) {
61382
61416
  if (!e || typeof e != "object") return [];
61383
61417
  let n = [];
61384
61418
  for (let r of t) {
@@ -61387,18 +61421,18 @@ function FU(e, t = NU) {
61387
61421
  }
61388
61422
  return n;
61389
61423
  }
61390
- var IU = PU();
61391
- function LU(e) {
61392
- return typeof e == "function" ? e : typeof e == "string" ? PU([e]) : Array.isArray(e) ? PU(e) : IU;
61424
+ var LU = FU();
61425
+ function RU(e) {
61426
+ return typeof e == "function" ? e : typeof e == "string" ? FU([e]) : Array.isArray(e) ? FU(e) : LU;
61393
61427
  }
61394
- function RU(e, t, n) {
61428
+ function zU(e, t, n) {
61395
61429
  return !t || typeof t != "object" ? e : {
61396
61430
  ...t,
61397
61431
  ...e,
61398
61432
  id: e?.id ?? t?.id ?? n
61399
61433
  };
61400
61434
  }
61401
- function zU(e, t, n = {}) {
61435
+ function BU(e, t, n = {}) {
61402
61436
  return {
61403
61437
  status: "success",
61404
61438
  total: t,
@@ -61408,7 +61442,7 @@ function zU(e, t, n = {}) {
61408
61442
  }
61409
61443
  };
61410
61444
  }
61411
- var BU = [
61445
+ var VU = [
61412
61446
  "fields",
61413
61447
  "fieldConfig",
61414
61448
  "tabs",
@@ -61417,17 +61451,17 @@ var BU = [
61417
61451
  "actions",
61418
61452
  "columnActions"
61419
61453
  ];
61420
- function VU(e) {
61454
+ function HU(e) {
61421
61455
  let t = e?.data ?? e, n = {};
61422
- for (let r of BU) {
61456
+ for (let r of VU) {
61423
61457
  let i = e?.[r] ?? t?.[r];
61424
61458
  i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
61425
61459
  }
61426
61460
  return n;
61427
61461
  }
61428
- var HU = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
61429
- function UU(e, t, n) {
61430
- let r = (Array.isArray(n) ? n : [n]).map(HU).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(HU(e?.value)) || r.includes(HU(e?.label))) : -1;
61462
+ var UU = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
61463
+ function WU(e, t, n) {
61464
+ let r = (Array.isArray(n) ? n : [n]).map(UU).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(UU(e?.value)) || r.includes(UU(e?.label))) : -1;
61431
61465
  if (i === -1) return [...e, ...t];
61432
61466
  let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
61433
61467
  ...e,
@@ -61439,31 +61473,31 @@ function UU(e, t, n) {
61439
61473
  ...e.slice(i + 1)
61440
61474
  ];
61441
61475
  }
61442
- var WU = (e, t) => Gf(e, t).rows, GU = (e, t) => {
61476
+ var GU = (e, t) => Gf(e, t).rows, KU = (e, t) => {
61443
61477
  let { rows: n, total: r } = Gf(e, t);
61444
61478
  return {
61445
61479
  rows: n,
61446
61480
  total: r
61447
61481
  };
61448
61482
  };
61449
- function KU(e, t) {
61483
+ function qU(e, t) {
61450
61484
  return function(n, r, i, a = {}) {
61451
61485
  return e(t ?? n, r, i, a);
61452
61486
  };
61453
61487
  }
61454
- function qU(e) {
61488
+ function JU(e) {
61455
61489
  return !e || typeof e != "object" || typeof (e.fetchByKeys ?? e.fetch ?? e.function) != "function" ? null : {
61456
61490
  ...e,
61457
61491
  fetchByKeys: typeof e.fetchByKeys == "function" ? e.fetchByKeys : null,
61458
61492
  fetch: typeof e.fetch == "function" ? e.fetch : null,
61459
61493
  function: typeof e.function == "function" ? e.function : null,
61460
- extractRows: typeof e.extractRows == "function" ? e.extractRows : WU,
61461
- mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : RU,
61494
+ extractRows: typeof e.extractRows == "function" ? e.extractRows : GU,
61495
+ mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : zU,
61462
61496
  fetchById: typeof e.fetchById == "function" ? e.fetchById : null
61463
61497
  };
61464
61498
  }
61465
- function JU({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
61466
- return !e && !t && !r ? [] : [qU({
61499
+ function YU({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
61500
+ return !e && !t && !r ? [] : [JU({
61467
61501
  key: i,
61468
61502
  fetchByKeys: e ? (t, n, r) => e(t, n, r) : null,
61469
61503
  function: t ? ({ moduleName: e, options: n }) => t(e, o, 0, n) : null,
@@ -61472,21 +61506,21 @@ function JU({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows:
61472
61506
  mergeRow: a
61473
61507
  })].filter(Boolean);
61474
61508
  }
61475
- function YU(e) {
61509
+ function XU(e) {
61476
61510
  if (typeof e == "function") return (t) => {
61477
61511
  let n = e(t);
61478
61512
  return n == null || n === "" ? [] : [String(n)];
61479
61513
  };
61480
- let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : NU;
61481
- return (e) => FU(e, t);
61514
+ let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : PU;
61515
+ return (e) => IU(e, t);
61482
61516
  }
61483
- function XU(e, t) {
61517
+ function ZU(e, t) {
61484
61518
  let n = /* @__PURE__ */ new Map();
61485
61519
  return e.forEach((e) => {
61486
61520
  for (let r of t(e)) n.has(r) || n.set(r, e);
61487
61521
  }), n;
61488
61522
  }
61489
- function ZU({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
61523
+ function QU({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
61490
61524
  return {
61491
61525
  moduleName: e,
61492
61526
  limit: t,
@@ -61500,7 +61534,7 @@ function ZU({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryRe
61500
61534
  source: l
61501
61535
  };
61502
61536
  }
61503
- async function QU(e, t) {
61537
+ async function $U(e, t) {
61504
61538
  if (typeof e.args == "function") {
61505
61539
  let n = e.args(t);
61506
61540
  return (e.fetch ?? e.function ?? e.fetchByKeys)(...Array.isArray(n) ? n : [n]);
@@ -61510,8 +61544,8 @@ async function QU(e, t) {
61510
61544
  let n = e.fetch ?? e.function;
61511
61545
  return typeof n == "function" ? n(t) : null;
61512
61546
  }
61513
- function $U({ fetchPrimaryPage: e, extractPrimaryPage: t = GU, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = WU, fetchSecondary: o, extractSecondaryRows: s = WU, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = RU, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
61514
- let h = Array.isArray(r) && r.length ? r.map(qU).filter(Boolean) : JU({
61547
+ function eW({ fetchPrimaryPage: e, extractPrimaryPage: t = KU, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = GU, fetchSecondary: o, extractSecondaryRows: s = GU, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = zU, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
61548
+ let h = Array.isArray(r) && r.length ? r.map(JU).filter(Boolean) : YU({
61515
61549
  fetchSecondaryByKeys: n,
61516
61550
  fetchSecondary: o,
61517
61551
  extractSecondaryRows: s,
@@ -61531,7 +61565,7 @@ function $U({ fetchPrimaryPage: e, extractPrimaryPage: t = GU, fetchSecondaryByK
61531
61565
  }
61532
61566
  async function v(e, t, n, r, i) {
61533
61567
  if (!n) return e;
61534
- let a = t.extractRows(n, r) ?? [], o = LU(t.primaryKey ?? l), s = YU(t.key), c = XU(a, s);
61568
+ let a = t.extractRows(n, r) ?? [], o = RU(t.primaryKey ?? l), s = XU(t.key), c = ZU(a, s);
61535
61569
  return Promise.all(e.map(async (e) => {
61536
61570
  let n = o(e), a = c.get(n) ?? (i() ? null : await _(t, s, r, n));
61537
61571
  return t.mergeRow(e, a, n);
@@ -61546,21 +61580,21 @@ function $U({ fetchPrimaryPage: e, extractPrimaryPage: t = GU, fetchSecondaryByK
61546
61580
  let r = {};
61547
61581
  for (let e of n) {
61548
61582
  if (!e) continue;
61549
- let t = VU(e);
61583
+ let t = HU(e);
61550
61584
  for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
61551
61585
  }
61552
- return p.length && (r.fields = UU(r.fields ?? [], p, m)), zU(e, t, r);
61586
+ return p.length && (r.fields = WU(r.fields ?? [], p, m)), BU(e, t, r);
61553
61587
  }
61554
61588
  async function x({ moduleName: e, limit: t, offset: n, options: r, primaryResponse: i, primaryRows: a, pageRows: o, total: s }) {
61555
61589
  return Promise.all(h.map(async (c) => {
61556
61590
  try {
61557
- let u = LU(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
61591
+ let u = RU(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
61558
61592
  return c.fetchByKeys && d.length === 0 ? {
61559
61593
  source: c,
61560
61594
  response: null
61561
61595
  } : {
61562
61596
  source: c,
61563
- response: await QU(c, ZU({
61597
+ response: await $U(c, QU({
61564
61598
  moduleName: e,
61565
61599
  limit: t,
61566
61600
  offset: n,
@@ -61614,25 +61648,25 @@ function $U({ fetchPrimaryPage: e, extractPrimaryPage: t = GU, fetchSecondaryByK
61614
61648
  }
61615
61649
  //#endregion
61616
61650
  //#region src/services/workflowModuleListApi.js
61617
- function eW(e, t, n = {}) {
61618
- return $U({
61619
- fetchPrimary: () => Pz(e, t),
61620
- extractPrimaryRows: Mz,
61651
+ function tW(e, t, n = {}) {
61652
+ return eW({
61653
+ fetchPrimary: () => Fz(e, t),
61654
+ extractPrimaryRows: Nz,
61621
61655
  fetchSecondary: gd,
61622
- fetchSecondaryById: Fz,
61656
+ fetchSecondaryById: Iz,
61623
61657
  secondaryFetchLimit: n.moduleFetchLimit ?? 200
61624
61658
  });
61625
61659
  }
61626
- function tW(e) {
61660
+ function nW(e) {
61627
61661
  let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
61628
61662
  return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
61629
61663
  }
61630
- function nW(e) {
61664
+ function rW(e) {
61631
61665
  let t = Array.isArray(e?.stages) ? e.stages : [];
61632
61666
  if (!t.length) return e;
61633
61667
  let n = {};
61634
61668
  for (let e of t) {
61635
- let t = tW(e?.stageName);
61669
+ let t = nW(e?.stageName);
61636
61670
  t && (n[t] = Number(e?.count) || 0);
61637
61671
  }
61638
61672
  return {
@@ -61640,19 +61674,19 @@ function nW(e) {
61640
61674
  ...e
61641
61675
  };
61642
61676
  }
61643
- var rW = (e) => {
61677
+ var iW = (e) => {
61644
61678
  let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
61645
61679
  return Number.isFinite(t) && t > 0 ? t : null;
61646
61680
  };
61647
- function iW({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
61681
+ function aW({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
61648
61682
  return function(n, r, i) {
61649
- let a = RU(n, r, i), o = rW(a);
61683
+ let a = zU(n, r, i), o = iW(a);
61650
61684
  return o != null && (a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
61651
61685
  };
61652
61686
  }
61653
- function aW(e = {}) {
61654
- let t = iW();
61655
- return $U({
61687
+ function oW(e = {}) {
61688
+ let t = aW();
61689
+ return eW({
61656
61690
  primaryKey: "_id",
61657
61691
  extraFields: e.extraFields,
61658
61692
  extraFieldsAfter: e.extraFieldsAfter,
@@ -61661,9 +61695,9 @@ function aW(e = {}) {
61661
61695
  key: "entityId",
61662
61696
  fetchByKeys: (e, t, n, r) => {
61663
61697
  let i = Math.max(1, Number(r?.limit) || 10);
61664
- return Nz(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
61698
+ return Pz(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
61665
61699
  },
61666
- extractRows: (e) => (e?.items ?? []).map(nW),
61700
+ extractRows: (e) => (e?.items ?? []).map(rW),
61667
61701
  mergeRow: (e, n, r) => {
61668
61702
  let i = t(e, n, r);
61669
61703
  return n?._id && (i.workflowId = n._id), i;
@@ -61671,17 +61705,17 @@ function aW(e = {}) {
61671
61705
  }]
61672
61706
  });
61673
61707
  }
61674
- async function oW(e, t = 10, n = 0, r = {}, i = {}) {
61675
- return Gf(await aW(i)(e, t, n, r), e);
61708
+ async function sW(e, t = 10, n = 0, r = {}, i = {}) {
61709
+ return Gf(await oW(i)(e, t, n, r), e);
61676
61710
  }
61677
- async function sW(e, t, n, r = 10, i = 0, a = {}) {
61678
- return Gf(await eW(e, t)(n, r, i, a), n);
61711
+ async function cW(e, t, n, r = 10, i = 0, a = {}) {
61712
+ return Gf(await tW(e, t)(n, r, i, a), n);
61679
61713
  }
61680
61714
  //#endregion
61681
61715
  //#region src/index.js
61682
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-09-08T13:09:55.789Z");
61683
- var cW = wV, lW = Vk(SH), uW = Vk(wH), dW = Vk(zH), fW = Vk(ZH), pW = Vk(oU), mW = Vk(lU), hW = Vk(fU), gW = Vk(hU), _W = Vk(_U), vW = Vk(AU), yW = Vk(MU);
61716
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-09-09T09:48:24.596Z");
61717
+ var lW = TV, uW = Vk(CH), dW = Vk(TH), fW = Vk(BH), pW = Vk(QH), mW = Vk(sU), hW = Vk(uU), gW = Vk(pU), _W = Vk(gU), vW = Vk(vU), yW = Vk(jU), bW = Vk(NU);
61684
61718
  //#endregion
61685
- export { D as ADMIN_API_URL, A as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, D_ as ActivityNotesCard, g_ as ActivityTab, iV as AddBatchCandidatePopup, $g as AddFormV1, wV as AdminDashboard, EI as AdminDashboardContent, cW as AdminPage, e_ as AppAlert, he as AppButton, uk as AppShell, CE as ApprovalActionBar, O_ as AssigneeAvatars, nk as AuthGuard, Wb as BILLING_STATUS_FLOW, lT as BOOLEAN_API_KEYS, JC as BOOLEAN_PARSEABLE_API_KEYS, k_ as BULK_UPLOAD_DEFAULT_ACCEPT, A_ as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, $r as Breadcrumb, dW as BulkUploadPage, R_ as BulkUploadPanel, o as CANDIDATES_URL, qE as CONTRACT_C2C, KE as CONTRACT_W2, n as CORE_URL, Yv as CURRENCY_SYMBOLS, pc as CalendarCard, AI as CoreThemeAdminApp, kI as CoreThemeAdminRoutes, hl as CustomPagination, GT as DEFAULT_HOURS_POLICY, aT as DEFAULT_RESULTS_VIEW, Lr as DETAIL_VIEW_MODE_OPTIONS, ni as DETAIL_VIEW_MODE_VALUES, Mn as DETAIL_VIEW_POPUP_PATH, hE as DayLogModal, Z_ as DescriptionBlock, Kx as DetailHeaderCard, $x as DetailViewPage, NL as DetailViewPopup, Uy as DetailViewV1, zi as DocumentViewer, _u as DynamicCards, KR as DynamicPopup, lV as DynamicPopupRoute, _c as DynamicTabs, dC as EditFormV1, kw as FIELD_TYPE_REGISTRY, RE as FINANCE_APPROVAL_CONFIG, jE as FINANCE_TYPE_CFO, AE as FINANCE_TYPE_ONBOARDING_MANAGER, PE as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, ME as FINANCE_TYPE_ONLY_FINANCE, kE as FINANCE_TYPE_SUBMISSION_MANAGER, NE as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, QD as FileListCard, jD as FinanceApprovalPanel, Tx as FinanceAvatar, kx as FinanceBadge, TE as FinanceDayCell, _x as FinanceDivider, Ex as FinanceEmployeeCell, mx as FinanceEmptyState, vx as FinanceEquation, Sx as FinanceHistoryTimeline, px as FinanceHoursGrid, fx as FinanceKpiRow, gx as FinanceLine, WT as FinanceListToolbar, Ax as FinanceMarginBadge, Ox as FinanceMoneyCell, Nx as FinanceRecordsTable, jx as FinanceRowChevron, hx as FinanceSection, dx as FinanceStatusPill, Dx as FinanceTextCell, DE as FinanceTimesheetAnalysis, yx as FinanceWorkflowSteps, O as GATEWAY_URL, WF as GLOBAL_DEFAULT_FIELDS, KT as HOURS_MESSAGES, kO as Header, Su as HierarchyUserFilter, s as JOBS_URL, lW as LegacyAdminPage, Eh as ListView, yW as LmsHomePage, vW as LmsTestForm, dk as Login, bL as MailPopup, mW as ManageModules, hW as ManageSubmodules, bC as ModuleRowActions, SE as NotesPanel, E_ as NotesTab, Xw as OPEN_AS_OPTIONS, Gb as PAYROLL_STATUS_FLOW, VF as PLATFORM_SCOPES, YB as POPUP_CONFIGS, i as PYOPS_URL, DC as ParamCardView, NC as ParamListView, iE as PeriodBadgeTag, eI as PlatformSection, jL as PreviewPopup, Bk as ProjectSelect, xE as ProofUploadPreview, vE as QuickLogBar, gE as QuickLogSelectionBar, iT as RESULTS_VIEW_OPTIONS, CV as RegionBanner, _E as RejectionReasonModal, r as SUBMISSIONS_URL, FT as SearchBuilderV1, QO as Sidebar, LT as StatusBadge, rE as StatusBadgeTag, uW as StickyNotesFullPage, zT as StylishDynamicTabs, VT as TemplateEditor, fW as TestForm, _W as TestingHomePage, c_ as TimelineGroups, fE as TimesheetDayCell, Jt as TipTapEditor, SV as UserForm, pV as VendorShareDrawer, _p as ViewSummaryWidget, zL as WizardPopup, a as ZINNEXT_URL, gW as ZinnextTableView, pW as ZinnextTestForm, je as appNow, Kn as applyIntegrationStatus, Yc as approveSubmission, F_ as buildAcceptAttr, mT as buildBooleanRequest, ax as buildCsv, $b as buildDailyRows, uE as buildDayGradient, vD as buildRateHistoryEntries, nx as buildWeeklyRollup, g as clearSelectedProject, Qt as colors, uD as computeFinance, QT as computeHoursPolicy, rx as computeMarginBand, Un as conditionMatches, v as configureCoreTheme, zr as configuredFieldLabel, aW as createAllWorkflowsListFetcher, $U as createMergedListFetcher, KU as createModuleListFetchAdapter, eW as createWorkflowStageListFetcher, Xv as currencySymbol, AF as deactivateRegion, RU as defaultMergeRow, me as deleteIntegrationConfig, Qb as deriveDayStats, eE as describeCapacity, lx as downloadCsv, wr as evaluateShowIfWith, iD as findEmployerRow, nD as flattenGroups, ny as formatAmount, Ye as formatApp, Gr as formatAppDateTime, P_ as formatFileSize, yD as formatFinanceMoney, Fb as formatHours, ry as formatMoney, Lb as formatPercent, iy as formatRate, ve as getActivity, oW as getAllWorkflowsModuleList, Ge as getAppTimeZone, Vb as getApprovalDate, Yt as getBgcIntegrationConfig, Le as getBgcIntegrationSummary, Kb as getBillingActionStates, Fw as getBooleanEligibleTypes, d as getCurrentRoleName, Mr as getDetailDisplayDefaults, sx as getFieldLabel, jw as getFieldType, N_ as getFileExtension, UE as getFinanceApprovalConfig, VD as getFormGroupsRaw, GF as getGlobalAiServices, HF as getGlobalDefaults, Ke as getIntegrationConfig, cn as getIntegrationConfigs, rn as getIntegrationSummary, dl as getModuleConfig, gr as getModuleDataDetail, qb as getPayrollActionStates, pl as getPeriodBadgeConfig, LF as getRegionDetailDefaults, qw as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, Xc as getVMSApprove, cx as getValueStyle, sW as getWorkflowStageModuleList, Jb as getWorkflowSteps, MF as grantPlatformAccess, PF as hasPlatformAccess, Bb as humanizeEvent, Zh as i, ox as indexFieldConfig, Rb as initialsOf, QC as insertTokenAtCursor, Mw as isBooleanEligible, XC as isBooleanParsable, S as isTester, jF as listPlatformAccess, IF as listPlatformAudit, FF as listPlatformUsers, BF as listRegionRoles, zF as listRegionUsers, OF as listRegions, Zr as loadDetailDefaults, h as logout, GE as marginIncludesReferral, lD as matchLocationTax, xS as n, oD as normalizeContract, Sr as normalizeDetailViewMode, z_ as r, Qv as rateUnitLabel, ey as rateUnitShort, eT as readActionButtons, $T as reconcileHours, DF as regionPath, Aw as registerFieldType, Kw as registerSearchPopup, Qc as rejectSubmission, kn as requiredWhenActive, yr as requiredWhenRule, p_ as resolveActivityMeta, dD as resolveAndCompute, XT as resolveDayKind, cD as resolveFinanceInputs, IU as resolveMergeKey, IU as resolveMergedListKey, Qw as resolveOpenAs, WE as resolveRejectionReason, cT as resolveResultsSearchPlaceholder, sT as resolveResultsView, HD as resolveSubmissionFinance, NF as revokePlatformAccess, fi as runDetailViewOpen, Ai as saveBgcIntegrationConfig, KF as saveGlobalAiServices, UF as saveGlobalDefaults, Nt as saveIntegrationConfig, kF as saveRegion, RF as saveRegionDetailDefaults, c as setSelectedProject, Jn as showIfConditions, tW as stageCountKey, fk as t, hr as testIntegrationConnection, nn as toApp, ty as toNumber, dn as tzLabel, wt as tzShortLabel, Jw as unregisterSearchPopup, jd as useDropdownFields, vp as useDropdownValues, tO as useEditForm, Md as useFieldConfig, Nd as useFilterFields, Hd as useMenuPermission, pC as useModuleActions, Xx as useRecordRefresh, eO as useTabRows, ZC as validateBooleanQuery, I_ as validateBulkFile, t as withAdminAppId, _ as withAppId, Vk as withAuthGuard };
61719
+ export { D as ADMIN_API_URL, A as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, D_ as ActivityNotesCard, g_ as ActivityTab, aV as AddBatchCandidatePopup, $g as AddFormV1, TV as AdminDashboard, EI as AdminDashboardContent, lW as AdminPage, e_ as AppAlert, he as AppButton, uk as AppShell, CE as ApprovalActionBar, O_ as AssigneeAvatars, nk as AuthGuard, Wb as BILLING_STATUS_FLOW, lT as BOOLEAN_API_KEYS, JC as BOOLEAN_PARSEABLE_API_KEYS, k_ as BULK_UPLOAD_DEFAULT_ACCEPT, A_ as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, $r as Breadcrumb, fW as BulkUploadPage, R_ as BulkUploadPanel, o as CANDIDATES_URL, qE as CONTRACT_C2C, KE as CONTRACT_W2, n as CORE_URL, Yv as CURRENCY_SYMBOLS, pc as CalendarCard, AI as CoreThemeAdminApp, kI as CoreThemeAdminRoutes, hl as CustomPagination, GT as DEFAULT_HOURS_POLICY, aT as DEFAULT_RESULTS_VIEW, Lr as DETAIL_VIEW_MODE_OPTIONS, ni as DETAIL_VIEW_MODE_VALUES, Mn as DETAIL_VIEW_POPUP_PATH, hE as DayLogModal, Z_ as DescriptionBlock, Kx as DetailHeaderCard, $x as DetailViewPage, NL as DetailViewPopup, Uy as DetailViewV1, zi as DocumentViewer, _u as DynamicCards, qR as DynamicPopup, uV as DynamicPopupRoute, _c as DynamicTabs, dC as EditFormV1, kw as FIELD_TYPE_REGISTRY, RE as FINANCE_APPROVAL_CONFIG, jE as FINANCE_TYPE_CFO, AE as FINANCE_TYPE_ONBOARDING_MANAGER, PE as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, ME as FINANCE_TYPE_ONLY_FINANCE, kE as FINANCE_TYPE_SUBMISSION_MANAGER, NE as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, QD as FileListCard, jD as FinanceApprovalPanel, Tx as FinanceAvatar, kx as FinanceBadge, TE as FinanceDayCell, _x as FinanceDivider, Ex as FinanceEmployeeCell, mx as FinanceEmptyState, vx as FinanceEquation, Sx as FinanceHistoryTimeline, px as FinanceHoursGrid, fx as FinanceKpiRow, gx as FinanceLine, WT as FinanceListToolbar, Ax as FinanceMarginBadge, Ox as FinanceMoneyCell, Nx as FinanceRecordsTable, jx as FinanceRowChevron, hx as FinanceSection, dx as FinanceStatusPill, Dx as FinanceTextCell, DE as FinanceTimesheetAnalysis, yx as FinanceWorkflowSteps, O as GATEWAY_URL, WF as GLOBAL_DEFAULT_FIELDS, KT as HOURS_MESSAGES, kO as Header, Su as HierarchyUserFilter, s as JOBS_URL, uW as LegacyAdminPage, Eh as ListView, bW as LmsHomePage, yW as LmsTestForm, dk as Login, bL as MailPopup, hW as ManageModules, gW as ManageSubmodules, bC as ModuleRowActions, SE as NotesPanel, E_ as NotesTab, Xw as OPEN_AS_OPTIONS, Gb as PAYROLL_STATUS_FLOW, VF as PLATFORM_SCOPES, XB as POPUP_CONFIGS, i as PYOPS_URL, DC as ParamCardView, NC as ParamListView, iE as PeriodBadgeTag, eI as PlatformSection, jL as PreviewPopup, Bk as ProjectSelect, xE as ProofUploadPreview, vE as QuickLogBar, gE as QuickLogSelectionBar, iT as RESULTS_VIEW_OPTIONS, wV as RegionBanner, _E as RejectionReasonModal, r as SUBMISSIONS_URL, FT as SearchBuilderV1, QO as Sidebar, LT as StatusBadge, rE as StatusBadgeTag, dW as StickyNotesFullPage, zT as StylishDynamicTabs, VT as TemplateEditor, pW as TestForm, vW as TestingHomePage, c_ as TimelineGroups, fE as TimesheetDayCell, Jt as TipTapEditor, CV as UserForm, mV as VendorShareDrawer, _p as ViewSummaryWidget, zL as WizardPopup, a as ZINNEXT_URL, _W as ZinnextTableView, mW as ZinnextTestForm, je as appNow, Kn as applyIntegrationStatus, Yc as approveSubmission, F_ as buildAcceptAttr, mT as buildBooleanRequest, ax as buildCsv, $b as buildDailyRows, uE as buildDayGradient, vD as buildRateHistoryEntries, nx as buildWeeklyRollup, g as clearSelectedProject, Qt as colors, uD as computeFinance, QT as computeHoursPolicy, rx as computeMarginBand, Un as conditionMatches, v as configureCoreTheme, zr as configuredFieldLabel, oW as createAllWorkflowsListFetcher, eW as createMergedListFetcher, qU as createModuleListFetchAdapter, tW as createWorkflowStageListFetcher, Xv as currencySymbol, AF as deactivateRegion, zU as defaultMergeRow, me as deleteIntegrationConfig, Qb as deriveDayStats, eE as describeCapacity, lx as downloadCsv, wr as evaluateShowIfWith, iD as findEmployerRow, nD as flattenGroups, ny as formatAmount, Ye as formatApp, Gr as formatAppDateTime, P_ as formatFileSize, yD as formatFinanceMoney, Fb as formatHours, ry as formatMoney, Lb as formatPercent, iy as formatRate, ve as getActivity, sW as getAllWorkflowsModuleList, Ge as getAppTimeZone, Vb as getApprovalDate, Yt as getBgcIntegrationConfig, Le as getBgcIntegrationSummary, Kb as getBillingActionStates, Fw as getBooleanEligibleTypes, d as getCurrentRoleName, Mr as getDetailDisplayDefaults, sx as getFieldLabel, jw as getFieldType, N_ as getFileExtension, UE as getFinanceApprovalConfig, VD as getFormGroupsRaw, GF as getGlobalAiServices, HF as getGlobalDefaults, Ke as getIntegrationConfig, cn as getIntegrationConfigs, rn as getIntegrationSummary, dl as getModuleConfig, gr as getModuleDataDetail, qb as getPayrollActionStates, pl as getPeriodBadgeConfig, LF as getRegionDetailDefaults, qw as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, Xc as getVMSApprove, cx as getValueStyle, cW as getWorkflowStageModuleList, Jb as getWorkflowSteps, MF as grantPlatformAccess, PF as hasPlatformAccess, Bb as humanizeEvent, Zh as i, ox as indexFieldConfig, Rb as initialsOf, QC as insertTokenAtCursor, Mw as isBooleanEligible, XC as isBooleanParsable, S as isTester, jF as listPlatformAccess, IF as listPlatformAudit, FF as listPlatformUsers, BF as listRegionRoles, zF as listRegionUsers, OF as listRegions, Zr as loadDetailDefaults, h as logout, GE as marginIncludesReferral, lD as matchLocationTax, xS as n, oD as normalizeContract, Sr as normalizeDetailViewMode, z_ as r, Qv as rateUnitLabel, ey as rateUnitShort, eT as readActionButtons, $T as reconcileHours, DF as regionPath, Aw as registerFieldType, Kw as registerSearchPopup, Qc as rejectSubmission, kn as requiredWhenActive, yr as requiredWhenRule, p_ as resolveActivityMeta, dD as resolveAndCompute, XT as resolveDayKind, cD as resolveFinanceInputs, LU as resolveMergeKey, LU as resolveMergedListKey, Qw as resolveOpenAs, WE as resolveRejectionReason, cT as resolveResultsSearchPlaceholder, sT as resolveResultsView, HD as resolveSubmissionFinance, NF as revokePlatformAccess, fi as runDetailViewOpen, Ai as saveBgcIntegrationConfig, KF as saveGlobalAiServices, UF as saveGlobalDefaults, Nt as saveIntegrationConfig, kF as saveRegion, RF as saveRegionDetailDefaults, c as setSelectedProject, Jn as showIfConditions, nW as stageCountKey, fk as t, hr as testIntegrationConnection, nn as toApp, ty as toNumber, dn as tzLabel, wt as tzShortLabel, Jw as unregisterSearchPopup, jd as useDropdownFields, vp as useDropdownValues, tO as useEditForm, Md as useFieldConfig, Nd as useFilterFields, Hd as useMenuPermission, pC as useModuleActions, Xx as useRecordRefresh, eO as useTabRows, ZC as validateBooleanQuery, I_ as validateBulkFile, t as withAdminAppId, _ as withAppId, Vk as withAuthGuard };
61686
61720
 
61687
61721
  //# sourceMappingURL=index.js.map