@realtek/core-theme 0.0.337 → 0.0.338

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
@@ -48695,6 +48695,10 @@ function KP({ field: e, options: t, value: n, onChange: r }) {
48695
48695
  function qP({ field: e, options: t, onSearch: n, value: r, onChange: i, popupContext: a }) {
48696
48696
  let o = HP(t), s = e.optionLayout, c = new Map(o.map((e) => [String(e?.value ?? ""), e]));
48697
48697
  async function l(t, n) {
48698
+ if (e.multiple) {
48699
+ i?.(Array.isArray(t) ? t : []);
48700
+ return;
48701
+ }
48698
48702
  let r = n ?? c.get(String(t ?? ""));
48699
48703
  (typeof e.onSelectGuard != "function" || await e.onSelectGuard({
48700
48704
  value: t,
@@ -48705,6 +48709,7 @@ function qP({ field: e, options: t, onSearch: n, value: r, onChange: i, popupCon
48705
48709
  }) !== !1) && i?.(t);
48706
48710
  }
48707
48711
  return /* @__PURE__ */ Y(H, {
48712
+ mode: e.multiple ? "multiple" : void 0,
48708
48713
  showSearch: !0,
48709
48714
  filterOption: !1,
48710
48715
  notFoundContent: e.notFoundContent ?? null,
@@ -49318,7 +49323,7 @@ function CF({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
49318
49323
  }
49319
49324
  if (typeof n.submit == "function") {
49320
49325
  p(!0), Promise.resolve(g({})).then((e) => {
49321
- e?.navigated || (q.success(t.successMessage || "Saved successfully"), u({ success: !0 }));
49326
+ e?.cancelled || e?.navigated || (q.success(t.successMessage || "Saved successfully"), u({ success: !0 }));
49322
49327
  }).catch((e) => {
49323
49328
  q.error(e?.message || "Failed. Please try again.");
49324
49329
  }).finally(() => p(!1));
@@ -49329,7 +49334,7 @@ function CF({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
49329
49334
  }
49330
49335
  if (c) {
49331
49336
  p(!0), Promise.resolve(g(e.getFieldsValue())).then((e) => {
49332
- e?.navigated || (q.success(t.successMessage || "Saved successfully"), u({ success: !0 }));
49337
+ e?.cancelled || e?.navigated || (q.success(t.successMessage || "Saved successfully"), u({ success: !0 }));
49333
49338
  }).catch((e) => {
49334
49339
  q.error(e?.message || "Failed. Please try again.");
49335
49340
  }).finally(() => p(!1));
@@ -49338,7 +49343,8 @@ function CF({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
49338
49343
  e.validateFields().then(async (e) => {
49339
49344
  p(!0);
49340
49345
  try {
49341
- if ((await g(e))?.navigated) return;
49346
+ let n = await g(e);
49347
+ if (n?.cancelled || n?.navigated) return;
49342
49348
  q.success(t.successMessage || "Saved successfully"), u({ success: !0 });
49343
49349
  } catch (e) {
49344
49350
  q.error(e?.message || "Failed. Please try again.");
@@ -49874,6 +49880,7 @@ var iI = {
49874
49880
  name: "jobId",
49875
49881
  label: "Job Title / ID",
49876
49882
  type: "search-select",
49883
+ multiple: !0,
49877
49884
  required: !0,
49878
49885
  placeholder: "Minimum 3 characters",
49879
49886
  searchFetchKey: "tagToJobJobList",
@@ -49959,54 +49966,211 @@ var hI = {
49959
49966
  shortlisted: "shortlisted",
49960
49967
  interviewinprogress: "interviewInprogress",
49961
49968
  selected: "selected"
49962
- };
49963
- function gI(e, ...t) {
49969
+ }, gI = "Already submitted";
49970
+ function _I(e, ...t) {
49964
49971
  for (let n of t) {
49965
49972
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
49966
49973
  if (t != null && t !== "") return t;
49967
49974
  }
49968
49975
  }
49969
- function _I(e) {
49976
+ function vI(e) {
49970
49977
  let t = String(e ?? "").trim();
49971
49978
  return t ? hI[t.toLowerCase()] ?? t : "";
49972
49979
  }
49973
- function vI(e, t) {
49974
- let n = gI(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
49980
+ function yI(e, t = "") {
49981
+ return String(_I(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t ?? "");
49982
+ }
49983
+ function bI(e) {
49984
+ return String(_I(e, "_id", "id", "candidateId", "candidate_id", "applicantId", "applicantID") ?? "");
49985
+ }
49986
+ function xI(e, t, n) {
49987
+ let r = String(e.jobTitle ?? "").trim();
49988
+ return {
49989
+ ...e,
49990
+ jobTitle: r ? `${r} (${gI})` : `(${gI})`,
49991
+ disabled: !0,
49992
+ title: gI,
49993
+ alreadySubmitted: !0,
49994
+ existingSubmissionId: t || "",
49995
+ ...n ? { submittedAt: n } : {}
49996
+ };
49997
+ }
49998
+ function SI(e, t) {
49999
+ let n = String(t ?? "").trim();
50000
+ return n ? /already submitted/i.test(n) ? `${e} (${gI})` : /fulfilled/i.test(n) ? `${e} (Fullfilled)` : `${e} (${n})` : e;
50001
+ }
50002
+ function CI(e) {
50003
+ let t = String(e.jobReferenceId ?? e.clientJobReferenceId ?? "").trim(), n = String(e.jobTitle ?? "").trim();
50004
+ return {
50005
+ ...e,
50006
+ jobReferenceId: t,
50007
+ jobTitle: n
50008
+ };
50009
+ }
50010
+ function wI(e) {
50011
+ return EI(e).map((e) => e.id);
50012
+ }
50013
+ function TI(e, t = "") {
50014
+ return (_I(e, "candidateName", "candidate_name", "fullName", "name") ?? [_I(e, "firstName", "first_name"), _I(e, "lastName", "last_name")].filter(Boolean).join(" ") ?? t) || "Unknown candidate";
50015
+ }
50016
+ function EI(e) {
50017
+ let t = Array.isArray(e?.selectedIds) ? e.selectedIds : [], n = Array.isArray(e?.selectedRecords) ? e.selectedRecords : [], r = [], i = /* @__PURE__ */ new Set(), a = Math.max(t.length, n.length);
50018
+ for (let e = 0; e < a; e += 1) {
50019
+ let a = n[e] ?? {}, o = t[e] ? String(t[e]) : "", s = yI(a, o);
50020
+ !s || i.has(s) || (i.add(s), r.push({
50021
+ id: s,
50022
+ name: TI(a, o),
50023
+ record: a,
50024
+ selectedId: o || s
50025
+ }));
50026
+ }
50027
+ return r;
50028
+ }
50029
+ function DI(e, t) {
50030
+ return Array.isArray(e?.jobId) ? e.jobId.map(String).filter(Boolean) : e?.jobId ? [String(e.jobId)] : Array.isArray(t?.jobId) ? t.jobId.map(String).filter(Boolean) : t?.jobId ? [String(t.jobId)] : [];
50031
+ }
50032
+ function OI(e, t = "") {
50033
+ let n = String(e?.jobTitle ?? e?._raw?.jobTitle ?? "").trim();
50034
+ if (n) return n;
50035
+ let r = String(e?.label ?? e?._raw?.label ?? "").trim();
50036
+ return r.includes(" - ") ? r.split(" - ").slice(1).join(" - ").trim() : r || String(t ?? "");
50037
+ }
50038
+ function kI(e, t = "") {
50039
+ return OI(e, t);
50040
+ }
50041
+ function AI(e, t, n) {
50042
+ let r = [...new Set(DI(e, t))], i = Array.isArray(n?.dynamicOptions?.jobId) ? n.dynamicOptions.jobId : [], a = new Map(i.map((e) => [String(e?._id ?? e?.value ?? ""), e]));
50043
+ return r.map((e) => {
50044
+ let t = a.get(String(e)) ?? {};
50045
+ return {
50046
+ id: String(e),
50047
+ label: kI(t, e),
50048
+ record: t
50049
+ };
50050
+ });
50051
+ }
50052
+ function jI(e) {
50053
+ return e.filter((e) => e.blockedCandidates.length > 0).map((e) => `${e.job.label} - ${e.blockedCandidates.map((e) => e.name).join(", ")}`).join(" | ");
50054
+ }
50055
+ function MI(e) {
50056
+ return e.filter((e) => e.allowedCandidates.length > 0).map((e) => `${e.job.label} - ${e.allowedCandidates.map((e) => e.name).join(", ")}`).join(" | ");
50057
+ }
50058
+ function NI(e, t) {
50059
+ let n = bI(e);
49975
50060
  if (!n) return null;
49976
- let r = (gI(e, "candidateName", "candidate_name", "fullName", "name") ?? [gI(e, "firstName", "first_name"), gI(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
50061
+ let r = TI(e, t) || void 0, i = {
49977
50062
  candidateId: String(n),
49978
50063
  candidateName: r,
49979
- phone: gI(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
49980
- source: gI(e, "source", "sourceType", "candidateSource", "profileSource"),
49981
- submittedAt: gI(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
49982
- remarks: gI(e, "remarks", "comment", "comments", "notes"),
49983
- assignedRecruiter: gI(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
49984
- screeningStatus: gI(e, "screeningStatus", "screening.status", "screeningResult"),
49985
- screeningScore: gI(e, "screeningScore", "screening.score", "score"),
49986
- assignedDate: gI(e, "assignedDate", "assignedAt", "createdAt")
50064
+ phone: _I(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
50065
+ source: _I(e, "source", "sourceType", "candidateSource", "profileSource"),
50066
+ submittedAt: _I(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
50067
+ remarks: _I(e, "remarks", "comment", "comments", "notes"),
50068
+ assignedRecruiter: _I(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
50069
+ screeningStatus: _I(e, "screeningStatus", "screening.status", "screeningResult"),
50070
+ screeningScore: _I(e, "screeningScore", "screening.score", "score"),
50071
+ assignedDate: _I(e, "assignedDate", "assignedAt", "createdAt")
49987
50072
  };
49988
50073
  return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
49989
50074
  }
49990
- var yI = {
49991
- searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? Ys(t) : [],
49992
- submit: async (e, t) => {
49993
- let n = e.jobId ?? t.jobId, r = _I(e.hiringStage ?? t.hiringStage), i = Array.isArray(t.selectedIds) ? t.selectedIds : [], a = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], o = Math.max(i.length, a.length, 1);
49994
- for (let e = 0; e < o; e += 1) {
49995
- let t = i[e] ? String(i[e]) : "", o = vI(a[e] ?? {}, t);
49996
- await mI({
49997
- jobId: n,
49998
- module: "jobs",
49999
- currentStage: r,
50000
- ...o ? { candidateDetails: o } : {}
50075
+ var PI = {
50076
+ searchOptions: async (e, t, n) => {
50077
+ if (e.searchFetchKey === "tagToJobJobList") {
50078
+ let e = wI(n), r = e.length === 1 ? e[0] : "", i, a = !1;
50079
+ if (r) try {
50080
+ i = await vc({
50081
+ searchQuery: t,
50082
+ candidateId: r
50083
+ }), a = !0;
50084
+ } catch {
50085
+ a = !1;
50086
+ }
50087
+ Array.isArray(i) || (i = await Ys(t));
50088
+ let o = i.map(CI);
50089
+ if (a) return o.map((e) => {
50090
+ if (e?.isSubmitted || e?.alreadySubmitted) return xI(e, e?.jobSubmissionId || e?.submissionId || "", e?.submittedAt || "");
50091
+ if (e?.disable) {
50092
+ let t = String(e?.message ?? "").trim();
50093
+ return {
50094
+ ...e,
50095
+ jobTitle: e.jobTitle ? SI(e.jobTitle, t) : `(${t})`,
50096
+ disabled: !0,
50097
+ optionNote: t,
50098
+ title: t
50099
+ };
50100
+ }
50101
+ return e;
50102
+ });
50103
+ if (!r) return o;
50104
+ let s = await bc({
50105
+ applicantId: r,
50106
+ jobIds: o.map((e) => e._id).filter(Boolean)
50107
+ }).catch(() => /* @__PURE__ */ new Map());
50108
+ return o.map((e) => {
50109
+ let t = s.get(String(e._id));
50110
+ return t ? xI(e, t.submissionId, t.submittedAt) : e;
50111
+ });
50112
+ }
50113
+ return [];
50114
+ },
50115
+ submit: async (e, t, n) => {
50116
+ let r = vI(e.hiringStage ?? t.hiringStage), i = EI(t), a = AI(e, t, n);
50117
+ if (!a.length || !i.length) return { cancelled: !0 };
50118
+ let o = [];
50119
+ for (let e of a) {
50120
+ let t = await bc({
50121
+ jobId: e.id,
50122
+ applicantIds: i.map((e) => e.id)
50123
+ }).catch(() => /* @__PURE__ */ new Map());
50124
+ o.push({
50125
+ job: e,
50126
+ blockedCandidates: i.filter((e) => t.has(String(e.id))),
50127
+ allowedCandidates: i.filter((e) => !t.has(String(e.id)))
50128
+ });
50129
+ }
50130
+ let s = jI(o), c = MI(o), l = o.filter((e) => e.allowedCandidates.length > 0);
50131
+ if (!l.length) return await At({
50132
+ tone: "duplicate",
50133
+ title: "Selected candidates are already submitted",
50134
+ body: "Every selected candidate is already submitted to the selected jobs. Choose different jobs to continue.",
50135
+ facts: [{
50136
+ label: "Blocked combinations",
50137
+ value: s
50138
+ }],
50139
+ okText: "Close"
50140
+ }), { cancelled: !0 };
50141
+ if (o.some((e) => e.blockedCandidates.length > 0) && !await ie({
50142
+ tone: "duplicate",
50143
+ title: "Some candidate-job combinations are already submitted",
50144
+ body: "Those combinations will be skipped. Continue tagging the remaining valid combinations?",
50145
+ facts: [{
50146
+ label: "Will be skipped",
50147
+ value: s
50148
+ }, {
50149
+ label: "Will be tagged",
50150
+ value: c
50151
+ }],
50152
+ okText: "Tag remaining",
50153
+ cancelText: "Cancel",
50154
+ footnote: "Already submitted combinations will be left unchanged."
50155
+ })) return { cancelled: !0 };
50156
+ for (let e of l) {
50157
+ for (let t of e.allowedCandidates) {
50158
+ let n = NI(t.record ?? {}, t.selectedId);
50159
+ await mI({
50160
+ jobId: e.job.id,
50161
+ module: "jobs",
50162
+ currentStage: r,
50163
+ ...n ? { candidateDetails: n } : {}
50164
+ });
50165
+ }
50166
+ await ec({
50167
+ jobId: e.job.id,
50168
+ candidateIds: e.allowedCandidates.map((e) => e.selectedId || e.id),
50169
+ hiringStage: r
50001
50170
  });
50002
50171
  }
50003
- await ec({
50004
- jobId: n,
50005
- candidateIds: t.selectedIds,
50006
- hiringStage: r
50007
- });
50008
50172
  }
50009
- }, bI = {
50173
+ }, FI = {
50010
50174
  title: "Change Status",
50011
50175
  okText: "Apply",
50012
50176
  width: 420,
@@ -50044,18 +50208,18 @@ var yI = {
50044
50208
  };
50045
50209
  //#endregion
50046
50210
  //#region src/components/popups/definitions/change-status/api.js
50047
- function xI(e, t) {
50211
+ function II(e, t) {
50048
50212
  let n = String(e ?? "").trim().toLowerCase();
50049
50213
  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;
50050
50214
  }
50051
- var SI = { submit: async (e, t, n) => {
50052
- let r = xI(e.status, n?.dynamicOptions), i = r?._raw ?? {}, a = {
50215
+ var LI = { submit: async (e, t, n) => {
50216
+ let r = II(e.status, n?.dynamicOptions), i = r?._raw ?? {}, a = {
50053
50217
  clientSubmissionStatusText: String(i.name ?? r?.label ?? e.status ?? "").trim(),
50054
50218
  clientSubmissionStatusId: Number(i.id ?? i.uniqueId ?? 0) || 0,
50055
50219
  clientSubmissionStatusType: String(i.type ?? "").trim()
50056
50220
  };
50057
50221
  await qs(t.moduleName, t.selectedIds, a);
50058
- } }, CI = {
50222
+ } }, RI = {
50059
50223
  getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
50060
50224
  titleIcon: "delete",
50061
50225
  okText: "Remove",
@@ -50064,12 +50228,12 @@ var SI = { submit: async (e, t, n) => {
50064
50228
  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?",
50065
50229
  footerNote: "The candidate will be moved back to the pipeline.",
50066
50230
  fields: []
50067
- }, wI = { onOk: async (e) => {
50231
+ }, zI = { onOk: async (e) => {
50068
50232
  await xc({
50069
50233
  jobId: e.jobId ?? e.selectedIds[0],
50070
50234
  candidateIds: e.selectedIds
50071
50235
  });
50072
- } }, TI = {
50236
+ } }, BI = {
50073
50237
  title: "Add to Groups",
50074
50238
  description: "Select a group to add the selected candidate(s) to",
50075
50239
  okText: "Add to Group",
@@ -50083,7 +50247,7 @@ var SI = { submit: async (e, t, n) => {
50083
50247
  placeholder: "Select a group",
50084
50248
  fetchOptionsKey: "candidateGroups"
50085
50249
  }]
50086
- }, EI = {
50250
+ }, VI = {
50087
50251
  getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? tc() : [],
50088
50252
  submit: async (e, t, { dynamicOptions: n }) => {
50089
50253
  let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
@@ -50093,7 +50257,7 @@ var SI = { submit: async (e, t, n) => {
50093
50257
  groupName: r?.label ?? ""
50094
50258
  });
50095
50259
  }
50096
- }, DI = [
50260
+ }, HI = [
50097
50261
  {
50098
50262
  title: "Name",
50099
50263
  key: "name",
@@ -50112,7 +50276,7 @@ var SI = { submit: async (e, t, n) => {
50112
50276
  render: (e) => e || "-"
50113
50277
  }
50114
50278
  ];
50115
- function OI({ selectedIds: e, onClose: t }) {
50279
+ function UI({ selectedIds: e, onClose: t }) {
50116
50280
  let n = e?.[0], [r, i] = L(!0), [a, o] = L(!1), [s, c] = L({
50117
50281
  assignedUsers: [],
50118
50282
  totalSubmissions: 0,
@@ -50176,7 +50340,7 @@ function OI({ selectedIds: e, onClose: t }) {
50176
50340
  children: "Team Members Allocated"
50177
50341
  }),
50178
50342
  /* @__PURE__ */ Y(ea, {
50179
- columns: DI,
50343
+ columns: HI,
50180
50344
  dataSource: m,
50181
50345
  pagination: !1,
50182
50346
  rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
@@ -50225,25 +50389,25 @@ function OI({ selectedIds: e, onClose: t }) {
50225
50389
  })]
50226
50390
  });
50227
50391
  }
50228
- OI.propTypes = {
50392
+ UI.propTypes = {
50229
50393
  selectedIds: Z.array,
50230
50394
  onClose: Z.func
50231
50395
  };
50232
50396
  //#endregion
50233
50397
  //#region src/components/popups/definitions/self-assign/config.js
50234
- var kI = {
50398
+ var WI = {
50235
50399
  title: "Self Assign",
50236
50400
  width: 480,
50237
50401
  className: "self-assign-modal",
50238
- component: OI
50239
- }, AI = { submit: async () => {} };
50402
+ component: UI
50403
+ }, GI = { submit: async () => {} };
50240
50404
  //#endregion
50241
50405
  //#region src/components/popups/definitions/others-assign/config.js
50242
- function jI(e = {}) {
50406
+ function KI(e = {}) {
50243
50407
  let t = Array.isArray(e.jobPayDetails) ? e.jobPayDetails[e.jobPayDetails.length - 1] : e.jobPayDetails ?? e.clientBudget ?? {}, n = Number(t.clientBudgetEnd), r = Number(t.clientBudgetStart);
50244
50408
  return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
50245
50409
  }
50246
- var MI = {
50410
+ var qI = {
50247
50411
  getTitleText: (e, t, n) => {
50248
50412
  let r = n?.jobTitle || n?.title || "";
50249
50413
  return r ? `Assign - ${r}` : "Assign";
@@ -50253,7 +50417,7 @@ var MI = {
50253
50417
  disabledUntilFilled: !0,
50254
50418
  showAlreadyAssigned: !0,
50255
50419
  allowRemovalOnlySubmit: !0,
50256
- getFields: (e) => (jI(e?.selectedRecords?.[0] ?? {}), [{
50420
+ getFields: (e) => (KI(e?.selectedRecords?.[0] ?? {}), [{
50257
50421
  name: "assignToUserId",
50258
50422
  label: "Assign to",
50259
50423
  type: "multi-select",
@@ -50261,7 +50425,7 @@ var MI = {
50261
50425
  placeholder: "Select recruiter(s)",
50262
50426
  fetchOptionsKey: "assignToUsers"
50263
50427
  }])
50264
- }, NI = {
50428
+ }, JI = {
50265
50429
  getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? oc() : [],
50266
50430
  loadExtraData: async (e) => sc(e.selectedIds[0]),
50267
50431
  submit: async (e, t, { removedIds: n, extraData: r }) => {
@@ -50272,7 +50436,7 @@ var MI = {
50272
50436
  existingRecruiters: r?.recruitersData
50273
50437
  });
50274
50438
  }
50275
- }, PI = {
50439
+ }, YI = {
50276
50440
  title: "Add Sticky Notes",
50277
50441
  getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
50278
50442
  okText: "Save",
@@ -50304,7 +50468,7 @@ var MI = {
50304
50468
  initialValueKey: "editingComments"
50305
50469
  }
50306
50470
  ]
50307
- }, FI = {
50471
+ }, XI = {
50308
50472
  getMentionOptions: async (e, t) => Xs(t),
50309
50473
  submit: async (e, t) => {
50310
50474
  let n = e.targetDate ? e.targetDate.toISOString() : "";
@@ -50320,7 +50484,7 @@ var MI = {
50320
50484
  notes: e.comments
50321
50485
  }), window.dispatchEvent(new Event("sticky-notes:refresh"));
50322
50486
  }
50323
- }, II = {
50487
+ }, ZI = {
50324
50488
  title: "Move to Onboarding",
50325
50489
  bodyText: "Are you sure you want to move this candidate to onboarding?",
50326
50490
  okText: "Yes",
@@ -50333,7 +50497,7 @@ var MI = {
50333
50497
  type: "priority-checkbox",
50334
50498
  checkboxLabel: "Send Onboarding Email"
50335
50499
  }]
50336
- }, LI = { submit: async (e, t) => {
50500
+ }, QI = { submit: async (e, t) => {
50337
50501
  await fc({
50338
50502
  submissionId: t.selectedRecords?.[0]?.submissionId,
50339
50503
  isMail: e.sendOnboardingEmail
@@ -50341,39 +50505,39 @@ var MI = {
50341
50505
  } };
50342
50506
  //#endregion
50343
50507
  //#region src/components/popups/definitions/approve-rate/config.js
50344
- function RI(e) {
50508
+ function $I(e) {
50345
50509
  return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
50346
50510
  }
50347
- var zI = {
50511
+ var eL = {
50348
50512
  USD: "$",
50349
50513
  INR: "₹",
50350
50514
  EUR: "€",
50351
50515
  GBP: "£"
50352
50516
  };
50353
- function BI(e, t, n) {
50354
- let r = RI(e?.[t])[n];
50517
+ function tL(e, t, n) {
50518
+ let r = $I(e?.[t])[n];
50355
50519
  if (r != null && r !== "") return r;
50356
50520
  let i = e?.[`${t}.${n}`];
50357
50521
  return i != null && i !== "" ? i : void 0;
50358
50522
  }
50359
- function VI(e) {
50360
- let t = e.selectedRecords?.[0] ?? {}, n = BI(t, "candidateRate", "candidateAcceptedRate") ?? BI(t, "candidateBudget", "candidateBudgetStart");
50523
+ function nL(e) {
50524
+ let t = e.selectedRecords?.[0] ?? {}, n = tL(t, "candidateRate", "candidateAcceptedRate") ?? tL(t, "candidateBudget", "candidateBudgetStart");
50361
50525
  if (n === void 0 || Number(n) === 0) return null;
50362
- let r = BI(t, "candidateRate", "candidateAcceptedCurrency") ?? BI(t, "candidateBudget", "candidateBudgetCurrency");
50526
+ let r = tL(t, "candidateRate", "candidateAcceptedCurrency") ?? tL(t, "candidateBudget", "candidateBudgetCurrency");
50363
50527
  return {
50364
50528
  amount: n,
50365
- symbol: BI(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? BI(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? zI[String(r ?? "").toUpperCase()] ?? (r || "$"),
50366
- unit: BI(t, "candidateRate", "candidateAcceptedPayUnit") ?? BI(t, "candidateBudget", "candidateBudgetUnit") ?? ""
50529
+ symbol: tL(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? tL(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? eL[String(r ?? "").toUpperCase()] ?? (r || "$"),
50530
+ unit: tL(t, "candidateRate", "candidateAcceptedPayUnit") ?? tL(t, "candidateBudget", "candidateBudgetUnit") ?? ""
50367
50531
  };
50368
50532
  }
50369
- var HI = {
50533
+ var rL = {
50370
50534
  title: "Approve Rate",
50371
50535
  okText: "Approve",
50372
50536
  width: 520,
50373
50537
  className: "medium-modal",
50374
50538
  successMessage: "Rate approved",
50375
50539
  getBodyText: (e, t, n, r, i) => {
50376
- let a = VI(i);
50540
+ let a = nL(i);
50377
50541
  return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
50378
50542
  },
50379
50543
  fields: [
@@ -50387,7 +50551,7 @@ var HI = {
50387
50551
  inlineRow: "proposedRate",
50388
50552
  validator: (e, t) => {
50389
50553
  if (e == null || e === "") return;
50390
- let n = VI(t);
50554
+ let n = nL(t);
50391
50555
  if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
50392
50556
  }
50393
50557
  },
@@ -50455,7 +50619,7 @@ var HI = {
50455
50619
  }]
50456
50620
  }
50457
50621
  ]
50458
- }, UI = { submit: async (e, t) => {
50622
+ }, iL = { submit: async (e, t) => {
50459
50623
  let n = t.selectedIds[0];
50460
50624
  if (await pc(n, {
50461
50625
  candidateProposedRate: e.candidateProposedRate,
@@ -50471,7 +50635,7 @@ var HI = {
50471
50635
  } };
50472
50636
  //#endregion
50473
50637
  //#region src/services/mailApproveApi.js
50474
- async function WI(e, t = {}) {
50638
+ async function aL(e, t = {}) {
50475
50639
  let n = C();
50476
50640
  if (!n) {
50477
50641
  let e = /* @__PURE__ */ Error("Authentication required");
@@ -50491,8 +50655,8 @@ async function WI(e, t = {}) {
50491
50655
  }
50492
50656
  return r.json();
50493
50657
  }
50494
- async function GI(e) {
50495
- let t = await WI(`/mail-form?${new URLSearchParams({
50658
+ async function oL(e) {
50659
+ let t = await aL(`/mail-form?${new URLSearchParams({
50496
50660
  submissionId: e,
50497
50661
  submissionType: "manager"
50498
50662
  }).toString()}`);
@@ -50500,29 +50664,29 @@ async function GI(e) {
50500
50664
  }
50501
50665
  //#endregion
50502
50666
  //#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
50503
- function KI(e) {
50667
+ function sL(e) {
50504
50668
  return Array.isArray(e) ? e[e.length - 1] : e;
50505
50669
  }
50506
- function qI(e = {}) {
50507
- let t = KI(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
50670
+ function cL(e = {}) {
50671
+ let t = sL(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
50508
50672
  return Number.isFinite(n) ? n : 0;
50509
50673
  }
50510
- function JI(e, t = {}) {
50511
- let n = KI((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = KI(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
50674
+ function lL(e, t = {}) {
50675
+ let n = sL((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = sL(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
50512
50676
  return Number.isFinite(o) ? o : 0;
50513
50677
  }
50514
- function YI(e = {}) {
50678
+ function uL(e = {}) {
50515
50679
  let t = String(e?.currencyRaw ?? "").trim().toUpperCase(), n = String(e?.currency ?? "").trim();
50516
50680
  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;
50517
50681
  }
50518
- function XI(e = {}) {
50682
+ function dL(e = {}) {
50519
50683
  return String(e?.rateUnit ?? "hr").trim().replace(/^\/+/, "") || "hr";
50520
50684
  }
50521
- function ZI(e, t = {}) {
50685
+ function fL(e, t = {}) {
50522
50686
  let n = Number(e);
50523
- return Number.isFinite(n) ? `${YI(t)}${n}/${XI(t)}` : "";
50687
+ return Number.isFinite(n) ? `${uL(t)}${n}/${dL(t)}` : "";
50524
50688
  }
50525
- function QI(e, t, n) {
50689
+ function pL(e, t, n) {
50526
50690
  if (n == null || n === "") return String(e ?? "");
50527
50691
  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");
50528
50692
  r = r.replace(o, (e, t, n, r) => (a = !0, `${t}${i}${r}`));
@@ -50533,25 +50697,25 @@ function QI(e, t, n) {
50533
50697
  }
50534
50698
  return r;
50535
50699
  }
50536
- function $I(e, t, n, r, i) {
50537
- let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : qI(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : JI(r, i), l = {
50700
+ function mL(e, t, n, r, i) {
50701
+ let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : cL(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : lL(r, i), l = {
50538
50702
  proposedRate: o,
50539
50703
  jobBillRate: c
50540
50704
  }, u = String(e ?? "").replace(/{{\.?((?:proposedRate)|(?:jobBillRate))}}/g, (e, t) => {
50541
50705
  let n = l[t];
50542
50706
  return n == null ? e : String(n);
50543
50707
  });
50544
- return u = QI(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", ZI(o, n)), u = QI(u, "(?:Job\\s*)?Bill\\s*Rate", ZI(c, n)), u;
50708
+ return u = pL(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", fL(o, n)), u = pL(u, "(?:Job\\s*)?Bill\\s*Rate", fL(c, n)), u;
50545
50709
  }
50546
- function eL(...e) {
50710
+ function hL(...e) {
50547
50711
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
50548
50712
  }
50549
- var tL = (e, t) => !!e && e.toLowerCase() === eL(t).toLowerCase();
50550
- function nL(e, t, n) {
50551
- let r = eL(t.submittedBy);
50552
- return eL(tL(r, n) || tL(r, e.submitSource) || tL(r, e.supplierName) || tL(r, e.source) || tL(r, e.candidateSource) ? "" : r, e.signatureEmail);
50713
+ var gL = (e, t) => !!e && e.toLowerCase() === hL(t).toLowerCase();
50714
+ function _L(e, t, n) {
50715
+ let r = hL(t.submittedBy);
50716
+ return hL(gL(r, n) || gL(r, e.submitSource) || gL(r, e.supplierName) || gL(r, e.source) || gL(r, e.candidateSource) ? "" : r, e.signatureEmail);
50553
50717
  }
50554
- function rL(e, t = {}) {
50718
+ function vL(e, t = {}) {
50555
50719
  let n = t.employerName ?? e.supplierName ?? e.submitSource;
50556
50720
  return {
50557
50721
  client: t.clientName ?? e.clientName,
@@ -50560,20 +50724,20 @@ function rL(e, t = {}) {
50560
50724
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
50561
50725
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
50562
50726
  vendor: n,
50563
- submittedBy: nL(e, t, n),
50727
+ submittedBy: _L(e, t, n),
50564
50728
  submittedAt: t.createdAt ?? e.createdAt,
50565
50729
  email: t.email ?? e.email,
50566
50730
  employerLocation: t.employerLocation,
50567
50731
  employerName: t.employerName
50568
50732
  };
50569
50733
  }
50570
- function iL(e) {
50734
+ function yL(e) {
50571
50735
  let t = e?.$oid ?? e?._id?.$oid ?? e?._id ?? e?.id?.$oid ?? e?.id ?? e;
50572
50736
  if (t == null || typeof t == "object") return "";
50573
50737
  let n = String(t).trim();
50574
50738
  return /^[a-f\d]{24}$/i.test(n) ? n : "";
50575
50739
  }
50576
- function aL(...e) {
50740
+ function bL(...e) {
50577
50741
  for (let t of e) {
50578
50742
  let e = [
50579
50743
  t?.jobId,
@@ -50596,12 +50760,12 @@ function aL(...e) {
50596
50760
  t?.submission?.recordMeta?.jobId,
50597
50761
  t?.submission?.recordMeta?.JobId,
50598
50762
  t?.submission?.recordMeta?.job_id
50599
- ].map(iL).find(Boolean);
50763
+ ].map(yL).find(Boolean);
50600
50764
  if (e) return e;
50601
50765
  }
50602
50766
  return "";
50603
50767
  }
50604
- function oL(e) {
50768
+ function xL(e) {
50605
50769
  if (!e?.referralId) return {};
50606
50770
  let t = Number(e.referralRate ?? e.referalRate ?? 0) || 0, n = String(e.referralType ?? e.referalType ?? "RECURRING").trim() || "RECURRING", r = e.referralId ?? e.referalId;
50607
50771
  return {
@@ -50627,10 +50791,10 @@ function oL(e) {
50627
50791
  }
50628
50792
  };
50629
50793
  }
50630
- function sL(e = "") {
50794
+ function SL(e = "") {
50631
50795
  return String(e ?? "").replace(/map\[[^\]]*(?:resume|document|attachment|file)[^\]]*\]/gi, "").replace(/<p>\s*<\/p>/gi, "").replace(/(?:<br\s*\/?>\s*){3,}/gi, "<br><br>").trim();
50632
50796
  }
50633
- function cL(...e) {
50797
+ function CL(...e) {
50634
50798
  for (let t of e) {
50635
50799
  let e = [
50636
50800
  t?.candidateId,
@@ -50641,12 +50805,12 @@ function cL(...e) {
50641
50805
  t?.submission?.applicantId,
50642
50806
  t?.recordMeta?.candidateId,
50643
50807
  t?.recordMeta?.applicantId
50644
- ].map(iL).find(Boolean);
50808
+ ].map(yL).find(Boolean);
50645
50809
  if (e) return e;
50646
50810
  }
50647
50811
  return "";
50648
50812
  }
50649
- async function lL(e) {
50813
+ async function wL(e) {
50650
50814
  let t = e?.fileUrl ?? e?.downloadUrl ?? e?.url;
50651
50815
  if (!t) return null;
50652
50816
  let n = await fetch(t);
@@ -50654,34 +50818,34 @@ async function lL(e) {
50654
50818
  let r = await n.blob(), i = e?.fileName ?? e?.uploadedFileName ?? e?.originalName ?? e?.uniqueName ?? "resume";
50655
50819
  return new File([r], i, { type: e?.contentType || r.type || "application/octet-stream" });
50656
50820
  }
50657
- async function uL(e, t, n) {
50821
+ async function TL(e, t, n) {
50658
50822
  let r = [], i = await kn("submissions", e, "resume").catch(() => ({ data: [] }));
50659
50823
  r.push(...i?.data ?? []);
50660
- let a = cL(t?.record?.submission, n, t?.record);
50824
+ let a = CL(t?.record?.submission, n, t?.record);
50661
50825
  if (!a) {
50662
50826
  let t = await v(E, `/module/list?module=submissions&id=${encodeURIComponent(e)}`).catch(() => ({})), n = t?.data ?? t ?? {};
50663
- a = cL((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
50827
+ a = CL((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
50664
50828
  }
50665
50829
  if (a) {
50666
50830
  let e = await kn("candidates", a, "resume").catch(() => ({ data: [] }));
50667
50831
  r.push(...e?.data ?? []);
50668
50832
  }
50669
- let o = (await Promise.all(r.map(lL))).filter(Boolean), s = /* @__PURE__ */ new Set();
50833
+ let o = (await Promise.all(r.map(wL))).filter(Boolean), s = /* @__PURE__ */ new Set();
50670
50834
  return o.filter((e) => {
50671
50835
  let t = `${e.name}:${e.size}:${e.type}`;
50672
50836
  return !s.has(t) && (s.add(t), !0);
50673
50837
  });
50674
50838
  }
50675
- function dL(e = {}) {
50839
+ function EL(e = {}) {
50676
50840
  return {
50677
50841
  to: (e.to ?? e.To ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
50678
50842
  cc: (e.cc ?? e.Cc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
50679
50843
  bcc: (e.bcc ?? e.Bcc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
50680
50844
  subject: e.subject ?? e.Subject ?? "",
50681
- contents: sL(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
50845
+ contents: SL(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
50682
50846
  };
50683
50847
  }
50684
- function fL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
50848
+ function DL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
50685
50849
  let a = n?.[0] ?? {}, o = t?.[0] ?? Iw(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({
50686
50850
  to: "",
50687
50851
  cc: "",
@@ -50720,13 +50884,13 @@ function fL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50720
50884
  if (h === "mail") {
50721
50885
  m(!1), w(!0), E(!0);
50722
50886
  try {
50723
- let [e, t] = await Promise.all([GI(o).then(dL), uL(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
50887
+ let [e, t] = await Promise.all([oL(o).then(EL), TL(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
50724
50888
  A({
50725
- to: $I(e.to, n, _, s, a),
50726
- cc: $I(e.cc, n, _, s, a),
50727
- bcc: $I(e.bcc, n, _, s, a),
50728
- subject: $I(e.subject, n, _, s, a),
50729
- contents: $I(e.contents, n, _, s, a),
50889
+ to: mL(e.to, n, _, s, a),
50890
+ cc: mL(e.cc, n, _, s, a),
50891
+ bcc: mL(e.bcc, n, _, s, a),
50892
+ subject: mL(e.subject, n, _, s, a),
50893
+ contents: mL(e.contents, n, _, s, a),
50730
50894
  attachments: t,
50731
50895
  showCc: !!e.cc,
50732
50896
  showBcc: !!e.bcc
@@ -50745,7 +50909,7 @@ function fL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50745
50909
  candidateProposedRateCurrency: _.currencyRaw ?? _.currency,
50746
50910
  candidateProposedRateUnit: _.rateUnit,
50747
50911
  submitVia: "VMS",
50748
- ...oL(y)
50912
+ ...xL(y)
50749
50913
  }), q.success("Submission approved"), m(!1), v(null), b(null), i?.({ success: !0 });
50750
50914
  } catch (e) {
50751
50915
  q.error(e?.message ?? "Unable to approve submission");
@@ -50765,9 +50929,9 @@ function fL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50765
50929
  await pc(o, {
50766
50930
  ...e,
50767
50931
  submitVia: "VMS",
50768
- ...oL(y)
50932
+ ...xL(y)
50769
50933
  });
50770
- let t = aL(s?.record, a);
50934
+ let t = bL(s?.record, a);
50771
50935
  if (!t) q.warning("Submission approved, but job details were not available to send mail");
50772
50936
  else try {
50773
50937
  await du({
@@ -50821,7 +50985,7 @@ function fL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50821
50985
  type: uw,
50822
50986
  record: s.record,
50823
50987
  lookups: s.lookups,
50824
- identity: rL(a, s.display),
50988
+ identity: vL(a, s.display),
50825
50989
  referralOptions: d,
50826
50990
  onAddReferral: () => e?.navigate?.("/referrals-create"),
50827
50991
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
@@ -50896,7 +51060,7 @@ function fL({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
50896
51060
  })
50897
51061
  ] });
50898
51062
  }
50899
- fL.propTypes = {
51063
+ DL.propTypes = {
50900
51064
  context: Z.object,
50901
51065
  selectedIds: Z.array,
50902
51066
  selectedRecords: Z.array,
@@ -50905,23 +51069,23 @@ fL.propTypes = {
50905
51069
  };
50906
51070
  //#endregion
50907
51071
  //#region src/components/popups/definitions/manager-approve/config.js
50908
- var pL = {
51072
+ var OL = {
50909
51073
  title: "Manager Approve",
50910
51074
  width: 780,
50911
51075
  className: "fa-modal manager-approve-modal",
50912
- component: fL
50913
- }, mL = { submit: async () => {} };
51076
+ component: DL
51077
+ }, kL = { submit: async () => {} };
50914
51078
  //#endregion
50915
51079
  //#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
50916
- function hL(...e) {
51080
+ function AL(...e) {
50917
51081
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
50918
51082
  }
50919
- var gL = (e, t) => !!e && e.toLowerCase() === hL(t).toLowerCase();
50920
- function _L(e, t, n) {
50921
- let r = hL(t.submittedBy);
50922
- return hL(gL(r, n) || gL(r, e.submitSource) || gL(r, e.supplierName) || gL(r, e.source) || gL(r, e.candidateSource) ? "" : r, e.signatureEmail);
51083
+ var jL = (e, t) => !!e && e.toLowerCase() === AL(t).toLowerCase();
51084
+ function ML(e, t, n) {
51085
+ let r = AL(t.submittedBy);
51086
+ return AL(jL(r, n) || jL(r, e.submitSource) || jL(r, e.supplierName) || jL(r, e.source) || jL(r, e.candidateSource) ? "" : r, e.signatureEmail);
50923
51087
  }
50924
- function vL(e, t = {}) {
51088
+ function NL(e, t = {}) {
50925
51089
  let n = t.employerName ?? e.supplierName ?? e.submitSource;
50926
51090
  return {
50927
51091
  client: t.clientName ?? e.clientName,
@@ -50930,28 +51094,28 @@ function vL(e, t = {}) {
50930
51094
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
50931
51095
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
50932
51096
  vendor: n,
50933
- submittedBy: _L(e, t, n),
51097
+ submittedBy: ML(e, t, n),
50934
51098
  submittedAt: t.createdAt ?? e.createdAt,
50935
51099
  email: t.email ?? e.email,
50936
51100
  employerLocation: t.employerLocation,
50937
51101
  employerName: t.employerName
50938
51102
  };
50939
51103
  }
50940
- function yL(e) {
51104
+ function PL(e) {
50941
51105
  let t = Array.isArray(e) ? e : [];
50942
51106
  for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
50943
51107
  return null;
50944
51108
  }
50945
- function bL(e) {
51109
+ function FL(e) {
50946
51110
  return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
50947
51111
  }
50948
- function xL({ selectedIds: e, selectedRecords: t, onClose: n }) {
51112
+ function IL({ selectedIds: e, selectedRecords: t, onClose: n }) {
50949
51113
  let r = t?.[0] ?? {}, i = e?.[0] ?? Iw(r), [a, o] = L(null), [s, c] = L(""), [l, u] = L(!0);
50950
51114
  F(() => {
50951
51115
  let e = !1;
50952
51116
  return u(!0), Promise.all([CT(i, r), Hr("submission", i).catch(() => [])]).then(([t, n]) => {
50953
51117
  if (e) return;
50954
- let i = yL(n);
51118
+ let i = PL(n);
50955
51119
  c(Iw(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
50956
51120
  let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
50957
51121
  o({
@@ -50960,7 +51124,7 @@ function xL({ selectedIds: e, selectedRecords: t, onClose: n }) {
50960
51124
  ...t.record,
50961
51125
  submission: {
50962
51126
  ...t.record.submission,
50963
- cfoRejectionReason: a ? bL(a) : "",
51127
+ cfoRejectionReason: a ? FL(a) : "",
50964
51128
  cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
50965
51129
  }
50966
51130
  }
@@ -51008,26 +51172,26 @@ function xL({ selectedIds: e, selectedRecords: t, onClose: n }) {
51008
51172
  type: mw,
51009
51173
  record: a.record,
51010
51174
  lookups: a.lookups,
51011
- identity: vL(r, a.display),
51175
+ identity: NL(r, a.display),
51012
51176
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
51013
51177
  actions: d,
51014
51178
  onClose: () => n?.(),
51015
51179
  variant: "popup"
51016
51180
  });
51017
51181
  }
51018
- xL.propTypes = {
51182
+ IL.propTypes = {
51019
51183
  selectedIds: Z.array,
51020
51184
  selectedRecords: Z.array,
51021
51185
  onClose: Z.func
51022
51186
  };
51023
51187
  //#endregion
51024
51188
  //#region src/components/popups/definitions/manager-reapprove/config.js
51025
- var SL = {
51189
+ var LL = {
51026
51190
  title: "Re-Approve",
51027
51191
  width: 780,
51028
51192
  className: "fa-modal manager-approve-modal",
51029
- component: xL
51030
- }, CL = { submit: async () => {} }, wL = [
51193
+ component: IL
51194
+ }, RL = { submit: async () => {} }, zL = [
51031
51195
  {
51032
51196
  id: 1,
51033
51197
  name: "Re-Submission"
@@ -51040,7 +51204,7 @@ var SL = {
51040
51204
  id: 3,
51041
51205
  name: "Incomplete candidate details - (Re-Submission)"
51042
51206
  }
51043
- ], TL = {
51207
+ ], BL = {
51044
51208
  title: "Reject",
51045
51209
  okText: "Reject",
51046
51210
  okButtonDanger: !0,
@@ -51052,7 +51216,7 @@ var SL = {
51052
51216
  type: "select",
51053
51217
  required: !0,
51054
51218
  placeholder: "Select rejection reasons",
51055
- defaultOptions: wL.map((e) => ({
51219
+ defaultOptions: zL.map((e) => ({
51056
51220
  label: e.name,
51057
51221
  value: e.id
51058
51222
  }))
@@ -51063,88 +51227,88 @@ var SL = {
51063
51227
  required: !0,
51064
51228
  rows: 4
51065
51229
  }]
51066
- }, EL = { submit: async (e, t) => {
51067
- let n = wL.find((t) => String(t.id) === String(e.rejectReason));
51230
+ }, VL = { submit: async (e, t) => {
51231
+ let n = zL.find((t) => String(t.id) === String(e.rejectReason));
51068
51232
  await gc({
51069
51233
  submissionId: t.selectedIds[0],
51070
51234
  rejectReasonId: e.rejectReason,
51071
51235
  rejectReason: n?.name ?? "",
51072
51236
  rejectReasonComments: e.rejectReasonComments
51073
51237
  });
51074
- } }, DL = {
51238
+ } }, HL = {
51075
51239
  delete: TF,
51076
51240
  "quick-submit": eI,
51077
51241
  "add-notes": tI,
51078
51242
  "tag-to-job": sI,
51079
- "change-status": bI,
51080
- "remove-from-shortlist": CI,
51081
- "add-to-groups": TI,
51082
- "self-assign": kI,
51083
- "others-assign": MI,
51084
- "sticky-notes": PI,
51085
- "move-to-onboarding": II,
51086
- "approve-rate": HI,
51087
- "manager-approve": pL,
51088
- "manager-reapprove": SL,
51089
- reject: TL
51090
- }, OL = {
51243
+ "change-status": FI,
51244
+ "remove-from-shortlist": RI,
51245
+ "add-to-groups": BI,
51246
+ "self-assign": WI,
51247
+ "others-assign": qI,
51248
+ "sticky-notes": YI,
51249
+ "move-to-onboarding": ZI,
51250
+ "approve-rate": rL,
51251
+ "manager-approve": OL,
51252
+ "manager-reapprove": LL,
51253
+ reject: BL
51254
+ }, UL = {
51091
51255
  delete: EF,
51092
51256
  "quick-submit": $F,
51093
51257
  "add-notes": iI,
51094
- "tag-to-job": yI,
51095
- "change-status": SI,
51096
- "remove-from-shortlist": wI,
51097
- "add-to-groups": EI,
51098
- "self-assign": AI,
51099
- "others-assign": NI,
51100
- "sticky-notes": FI,
51101
- "move-to-onboarding": LI,
51102
- "approve-rate": UI,
51103
- "manager-approve": mL,
51104
- "manager-reapprove": CL,
51105
- reject: EL
51258
+ "tag-to-job": PI,
51259
+ "change-status": LI,
51260
+ "remove-from-shortlist": zI,
51261
+ "add-to-groups": VI,
51262
+ "self-assign": GI,
51263
+ "others-assign": JI,
51264
+ "sticky-notes": XI,
51265
+ "move-to-onboarding": QI,
51266
+ "approve-rate": iL,
51267
+ "manager-approve": kL,
51268
+ "manager-reapprove": RL,
51269
+ reject: VL
51106
51270
  };
51107
51271
  //#endregion
51108
51272
  //#region src/components/popups/AddBatchCandidatePopup.jsx
51109
- function kL(e) {
51273
+ function WL(e) {
51110
51274
  let t = e?.data ?? e;
51111
51275
  return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
51112
51276
  }
51113
- function AL(e, ...t) {
51277
+ function GL(e, ...t) {
51114
51278
  for (let n of t) {
51115
51279
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
51116
51280
  if (t != null && t !== "") return t;
51117
51281
  }
51118
51282
  return "";
51119
51283
  }
51120
- function jL(e) {
51121
- let t = String(AL(e, "isDeleted", "deleted")).toLowerCase(), n = String(AL(e, "assignmentStatus", "status")).toLowerCase();
51284
+ function KL(e) {
51285
+ let t = String(GL(e, "isDeleted", "deleted")).toLowerCase(), n = String(GL(e, "assignmentStatus", "status")).toLowerCase();
51122
51286
  return t !== "true" && t !== "1" && ![
51123
51287
  "removed",
51124
51288
  "inactive",
51125
51289
  "deleted"
51126
51290
  ].includes(n);
51127
51291
  }
51128
- function ML(e) {
51129
- let t = AL(e, "candidateName", "candidate_name", "fullName", "name");
51130
- return t ? String(t) : [AL(e, "firstName", "first_name"), AL(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
51292
+ function qL(e) {
51293
+ let t = GL(e, "candidateName", "candidate_name", "fullName", "name");
51294
+ return t ? String(t) : [GL(e, "firstName", "first_name"), GL(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
51131
51295
  }
51132
- function NL(e) {
51133
- return String(AL(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
51296
+ function JL(e) {
51297
+ return String(GL(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
51134
51298
  }
51135
- function PL(e) {
51136
- return String(AL(e, "workforceEngagementId", "engagementId", "_id", "id"));
51299
+ function YL(e) {
51300
+ return String(GL(e, "workforceEngagementId", "engagementId", "_id", "id"));
51137
51301
  }
51138
- function FL(e) {
51139
- return String(AL(e, "batchName", "name", "title", "batch_name"));
51302
+ function XL(e) {
51303
+ return String(GL(e, "batchName", "name", "title", "batch_name"));
51140
51304
  }
51141
- function IL({ open: e = !0, context: t = {}, onClose: n }) {
51305
+ function ZL({ open: e = !0, context: t = {}, onClose: n }) {
51142
51306
  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 ?? "");
51143
51307
  F(() => {
51144
51308
  if (!e) return;
51145
51309
  let t = !1;
51146
51310
  return Promise.resolve().then(() => (t || u(!0), Promise.all([ii("onboarding", 200, 0), ii("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
51147
- t || (i(kL(e)), g(new Map(kL(n).filter(jL).map((e) => [String(AL(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
51311
+ t || (i(WL(e)), g(new Map(WL(n).filter(KL).map((e) => [String(GL(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
51148
51312
  }).catch((e) => {
51149
51313
  t || m(e.message || "Unable to load onboarding candidates");
51150
51314
  }).finally(() => {
@@ -51156,9 +51320,9 @@ function IL({ open: e = !0, context: t = {}, onClose: n }) {
51156
51320
  let v = I(() => {
51157
51321
  let e = s.trim().toLowerCase();
51158
51322
  return e ? r.filter((t) => [
51159
- ML(t),
51160
- AL(t, "email", "candidateEmail", "candidate_email"),
51161
- AL(t, "status", "onboardingStatus", "onboarding_status")
51323
+ qL(t),
51324
+ GL(t, "email", "candidateEmail", "candidate_email"),
51325
+ GL(t, "status", "onboardingStatus", "onboarding_status")
51162
51326
  ].some((t) => String(t).toLowerCase().includes(e))) : r;
51163
51327
  }, [r, s]);
51164
51328
  async function y() {
@@ -51166,26 +51330,26 @@ function IL({ open: e = !0, context: t = {}, onClose: n }) {
51166
51330
  m("Select a batch before adding candidates");
51167
51331
  return;
51168
51332
  }
51169
- let e = r.filter((e) => a.includes(PL(e)));
51333
+ let e = r.filter((e) => a.includes(YL(e)));
51170
51334
  if (!e.length) return;
51171
51335
  let i = e.map((e) => ({
51172
51336
  record: e,
51173
- assignment: h.get(NL(e))
51337
+ assignment: h.get(JL(e))
51174
51338
  })).filter((e) => e.assignment);
51175
51339
  if (i.length) {
51176
- let e = i.map(({ record: e }) => ML(e)).join(", ");
51340
+ let e = i.map(({ record: e }) => qL(e)).join(", ");
51177
51341
  m(`${e} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
51178
51342
  return;
51179
51343
  }
51180
51344
  f(!0), m("");
51181
51345
  try {
51182
- let { userId: r } = x(), i = FL(t.selectedRecords?.[0]) || FL(t);
51346
+ let { userId: r } = x(), i = XL(t.selectedRecords?.[0]) || XL(t);
51183
51347
  await Promise.all(e.map((e) => It("batchCandidates", {
51184
51348
  schemaVersion: 1,
51185
51349
  batchId: _,
51186
51350
  batchName: i,
51187
- candidateId: NL(e),
51188
- workforceEngagementId: PL(e),
51351
+ candidateId: JL(e),
51352
+ workforceEngagementId: YL(e),
51189
51353
  source: "ONBOARDING",
51190
51354
  assignmentStatus: "ASSIGNED",
51191
51355
  assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -51228,22 +51392,22 @@ function IL({ open: e = !0, context: t = {}, onClose: n }) {
51228
51392
  style: { marginBottom: 12 }
51229
51393
  }),
51230
51394
  /* @__PURE__ */ Y(ea, {
51231
- rowKey: (e) => PL(e),
51395
+ rowKey: (e) => YL(e),
51232
51396
  columns: [
51233
51397
  {
51234
51398
  title: "Candidate",
51235
51399
  key: "candidate",
51236
- render: (e, t) => ML(t)
51400
+ render: (e, t) => qL(t)
51237
51401
  },
51238
51402
  {
51239
51403
  title: "Email",
51240
51404
  key: "email",
51241
- render: (e, t) => AL(t, "email", "candidateEmail", "candidate_email") || "—"
51405
+ render: (e, t) => GL(t, "email", "candidateEmail", "candidate_email") || "—"
51242
51406
  },
51243
51407
  {
51244
51408
  title: "Onboarding status",
51245
51409
  key: "status",
51246
- render: (e, t) => AL(t, "status", "onboardingStatus", "onboarding_status") || "—"
51410
+ render: (e, t) => GL(t, "status", "onboardingStatus", "onboarding_status") || "—"
51247
51411
  }
51248
51412
  ],
51249
51413
  dataSource: v,
@@ -51257,9 +51421,9 @@ function IL({ open: e = !0, context: t = {}, onClose: n }) {
51257
51421
  selectedRowKeys: a,
51258
51422
  onChange: o,
51259
51423
  getCheckboxProps: (e) => {
51260
- let t = h.get(NL(e));
51424
+ let t = h.get(JL(e));
51261
51425
  return {
51262
- disabled: !NL(e) || !PL(e) || !!t,
51426
+ disabled: !JL(e) || !YL(e) || !!t,
51263
51427
  title: t ? "Candidate is already added to a batch" : void 0
51264
51428
  };
51265
51429
  }
@@ -51271,7 +51435,7 @@ function IL({ open: e = !0, context: t = {}, onClose: n }) {
51271
51435
  }
51272
51436
  //#endregion
51273
51437
  //#region src/components/popups/dynamic/DynamicPopupRoute.jsx
51274
- var LL = {
51438
+ var QL = {
51275
51439
  text: "input",
51276
51440
  string: "input",
51277
51441
  textarea: "textarea",
@@ -51280,30 +51444,30 @@ var LL = {
51280
51444
  multiselect: "multi-select",
51281
51445
  lookup: "search-select"
51282
51446
  };
51283
- function RL(e) {
51447
+ function $L(e) {
51284
51448
  if (!e) return null;
51285
51449
  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) => ({
51286
51450
  ...e,
51287
51451
  name: e.name ?? e.field,
51288
51452
  label: e.label ?? e.field,
51289
- type: LL[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
51453
+ type: QL[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
51290
51454
  required: e.required ?? e.req === 1,
51291
51455
  options: (e.options ?? []).map((e) => ({
51292
51456
  label: e.label ?? e.name ?? e.value,
51293
51457
  value: e.value ?? e.id ?? e.label
51294
51458
  }))
51295
- }))), n = zL(e.successNavigate);
51459
+ }))), n = eR(e.successNavigate);
51296
51460
  return {
51297
51461
  title: e.label,
51298
51462
  fields: t,
51299
51463
  ...n ? { successNavigate: n } : {}
51300
51464
  };
51301
51465
  }
51302
- function zL(e) {
51466
+ function eR(e) {
51303
51467
  let t = String(e ?? "").trim();
51304
51468
  return !t || !t.startsWith("/") || t.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(t) ? null : t;
51305
51469
  }
51306
- function BL(e, t = []) {
51470
+ function tR(e, t = []) {
51307
51471
  if (!e || !Array.isArray(t) || !t.length) return e;
51308
51472
  let n = new Map(t.filter((e) => e?.name).map((e) => [String(e.name), e]));
51309
51473
  return n.size ? {
@@ -51319,12 +51483,12 @@ function BL(e, t = []) {
51319
51483
  })
51320
51484
  } : e;
51321
51485
  }
51322
- function VL({ apiMap: e = {}, extraConfigs: t = {} }) {
51486
+ function nR({ apiMap: e = {}, extraConfigs: t = {} }) {
51323
51487
  let n = I(() => ({
51324
- ...OL,
51488
+ ...UL,
51325
51489
  ...e
51326
51490
  }), [e]), r = I(() => {
51327
- let e = { ...DL };
51491
+ let e = { ...HL };
51328
51492
  return Object.entries(t).forEach(([t, n]) => {
51329
51493
  e[t] = {
51330
51494
  ...e[t] ?? {},
@@ -51342,7 +51506,7 @@ function VL({ apiMap: e = {}, extraConfigs: t = {} }) {
51342
51506
  return ti(o.moduleName, "popup", i).then((n) => {
51343
51507
  e || c({
51344
51508
  key: t,
51345
- config: RL(n[0])
51509
+ config: $L(n[0])
51346
51510
  });
51347
51511
  }).catch(() => {
51348
51512
  e || c({
@@ -51355,7 +51519,7 @@ function VL({ apiMap: e = {}, extraConfigs: t = {} }) {
51355
51519
  }, [i, o.moduleName]);
51356
51520
  let l = I(() => {
51357
51521
  let e = r[i], t = `${o.moduleName}:${i}`, n = s.key === t ? s.config : null;
51358
- return BL(n ? {
51522
+ return tR(n ? {
51359
51523
  ...e,
51360
51524
  ...n
51361
51525
  } : e, o.popupAction?.popupFieldOverrides);
@@ -51414,7 +51578,7 @@ function VL({ apiMap: e = {}, extraConfigs: t = {} }) {
51414
51578
  }
51415
51579
  a(-1);
51416
51580
  };
51417
- return i === "add-batch-candidate" ? /* @__PURE__ */ Y(IL, {
51581
+ return i === "add-batch-candidate" ? /* @__PURE__ */ Y(ZL, {
51418
51582
  open: !0,
51419
51583
  context: u,
51420
51584
  onClose: f
@@ -51431,7 +51595,7 @@ function VL({ apiMap: e = {}, extraConfigs: t = {} }) {
51431
51595
  }
51432
51596
  //#endregion
51433
51597
  //#region src/components/popups/definitions/vendor-share/config.js
51434
- var HL = {
51598
+ var rR = {
51435
51599
  title: "Vendor Share",
51436
51600
  maxVendorSelect: 1e3,
51437
51601
  defaultTab: "myVendor",
@@ -51465,7 +51629,7 @@ var HL = {
51465
51629
  key: "updatedOn"
51466
51630
  }
51467
51631
  ]
51468
- }, UL = {
51632
+ }, iR = {
51469
51633
  getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => cu({
51470
51634
  jobId: e,
51471
51635
  limit: t,
@@ -51482,11 +51646,11 @@ var HL = {
51482
51646
  subject: i,
51483
51647
  contents: a
51484
51648
  })
51485
- }, WL = HL.vendorColumns.map((e) => ({
51649
+ }, aR = rR.vendorColumns.map((e) => ({
51486
51650
  ...e,
51487
51651
  render: (e) => e || "-"
51488
51652
  }));
51489
- function GL() {
51653
+ function oR() {
51490
51654
  let e = ds(), t = us(), { 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({
51491
51655
  to: i.join(", "),
51492
51656
  cc: "",
@@ -51495,13 +51659,13 @@ function GL() {
51495
51659
  contents: "",
51496
51660
  showCc: !1,
51497
51661
  showBcc: !1
51498
- }), [f, p] = L(!l), [m, h] = L(HL.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(HL.defaultPageSize), [A, j] = L(!1), [M, ee] = L([]);
51662
+ }), [f, p] = L(!l), [m, h] = L(rR.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(rR.defaultPageSize), [A, j] = L(!1), [M, ee] = L([]);
51499
51663
  F(() => {
51500
51664
  if (!l) return;
51501
51665
  let e = !1;
51502
51666
  j(!0);
51503
51667
  let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
51504
- return UL.getVendorList({
51668
+ return iR.getVendorList({
51505
51669
  jobId: l,
51506
51670
  limit: t,
51507
51671
  offset: n,
@@ -51524,7 +51688,7 @@ function GL() {
51524
51688
  O,
51525
51689
  g
51526
51690
  ]), F(() => {
51527
- l && UL.getMailDetails(l).then((e) => d((t) => ({
51691
+ l && iR.getMailDetails(l).then((e) => d((t) => ({
51528
51692
  ...t,
51529
51693
  subject: e.subject || t.subject,
51530
51694
  contents: e.contents || t.contents,
@@ -51549,7 +51713,7 @@ function GL() {
51549
51713
  e(-1);
51550
51714
  }
51551
51715
  function ae() {
51552
- re && UL.submit({
51716
+ re && iR.submit({
51553
51717
  jobId: l,
51554
51718
  toMail: oN(N.to),
51555
51719
  ccMail: oN(N.cc),
@@ -51630,7 +51794,7 @@ function GL() {
51630
51794
  ]
51631
51795
  }), /* @__PURE__ */ Y("div", {
51632
51796
  className: "vendor-share__vendor-tabs",
51633
- children: HL.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
51797
+ children: rR.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
51634
51798
  className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
51635
51799
  onClick: () => {
51636
51800
  h(e.key), D(1), ee([]);
@@ -51648,7 +51812,7 @@ function GL() {
51648
51812
  className: "vendor-share__vendor-table-wrapper",
51649
51813
  children: /* @__PURE__ */ Y(ea, {
51650
51814
  rowKey: (e) => e.vendorId,
51651
- columns: WL,
51815
+ columns: aR,
51652
51816
  dataSource: oe,
51653
51817
  loading: A,
51654
51818
  pagination: !1,
@@ -51656,7 +51820,7 @@ function GL() {
51656
51820
  rowSelection: {
51657
51821
  selectedRowKeys: M,
51658
51822
  onChange: (e) => {
51659
- e.length > HL.maxVendorSelect || ee(e);
51823
+ e.length > rR.maxVendorSelect || ee(e);
51660
51824
  }
51661
51825
  },
51662
51826
  scroll: { y: "calc(100vh - 340px)" }
@@ -51690,7 +51854,7 @@ function GL() {
51690
51854
  children: [
51691
51855
  M.length,
51692
51856
  " / ",
51693
- HL.maxVendorSelect,
51857
+ rR.maxVendorSelect,
51694
51858
  " Vendors selected"
51695
51859
  ]
51696
51860
  }) : null
@@ -51701,7 +51865,7 @@ function GL() {
51701
51865
  }
51702
51866
  //#endregion
51703
51867
  //#region src/components/form/validation.js
51704
- var KL = {
51868
+ var sR = {
51705
51869
  EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
51706
51870
  PHONE: /^[0-9]{10}$/,
51707
51871
  PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
@@ -51718,7 +51882,7 @@ var KL = {
51718
51882
  FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
51719
51883
  NO_SPACES: /^\S+$/,
51720
51884
  STARTS_WITH_CAPITAL: /^[A-Z].*$/
51721
- }, qL = {
51885
+ }, cR = {
51722
51886
  SINGLE_FILE_COUNT: 1,
51723
51887
  MULTI_FILE_COUNT: 5,
51724
51888
  MAX_FILE_SIZE: 2,
@@ -51727,7 +51891,7 @@ var KL = {
51727
51891
  "image/png",
51728
51892
  "application/pdf"
51729
51893
  ]
51730
- }, JL = {
51894
+ }, lR = {
51731
51895
  REQUIRED: (e) => "Mandatory Field",
51732
51896
  INVALID_EMAIL: "Please enter a valid email address.",
51733
51897
  INVALID_PHONE: "Phone number must contain exactly 10 digits.",
@@ -51747,16 +51911,16 @@ var KL = {
51747
51911
  NO_SPACES_ALLOWED: "Spaces are not allowed.",
51748
51912
  MUST_START_WITH_CAPITAL: "First letter must be capital.",
51749
51913
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
51750
- INVALID_FILE_SIZE: `File upload must be ${qL.MAX_FILE_SIZE} MB below.`,
51914
+ INVALID_FILE_SIZE: `File upload must be ${cR.MAX_FILE_SIZE} MB below.`,
51751
51915
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
51752
51916
  SINGLE_FILE_ONLY: "Only one file can be uploaded."
51753
- }, YL = {
51917
+ }, uR = {
51754
51918
  FIRST_NAME_MIN: 3,
51755
51919
  FIRST_NAME_MAX: 30
51756
- }, XL = {
51920
+ }, dR = {
51757
51921
  REMARKS_MIN: 10,
51758
51922
  REMARKS_MAX: 250
51759
- }, ZL = {
51923
+ }, fR = {
51760
51924
  removeSpaces: (e = "") => e.replace(/\s/g, ""),
51761
51925
  capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
51762
51926
  capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
@@ -51768,132 +51932,132 @@ var KL = {
51768
51932
  let t = e.replace(/\D/g, "");
51769
51933
  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)}`;
51770
51934
  }
51771
- }, QL = {
51935
+ }, pR = {
51772
51936
  required: (e = "Field") => ({
51773
51937
  required: !0,
51774
- message: JL.REQUIRED(e)
51938
+ message: lR.REQUIRED(e)
51775
51939
  }),
51776
51940
  email: () => ({
51777
- pattern: KL.EMAIL,
51778
- message: JL.INVALID_EMAIL
51941
+ pattern: sR.EMAIL,
51942
+ message: lR.INVALID_EMAIL
51779
51943
  }),
51780
51944
  phone: () => ({
51781
- pattern: KL.PHONE,
51782
- message: JL.INVALID_PHONE
51945
+ pattern: sR.PHONE,
51946
+ message: lR.INVALID_PHONE
51783
51947
  }),
51784
51948
  password: () => ({
51785
- pattern: KL.PASSWORD,
51786
- message: JL.INVALID_PASSWORD
51949
+ pattern: sR.PASSWORD,
51950
+ message: lR.INVALID_PASSWORD
51787
51951
  }),
51788
51952
  alphabets: () => ({
51789
- pattern: KL.ALPHABETS,
51790
- message: JL.INVALID_ALPHABETS
51953
+ pattern: sR.ALPHABETS,
51954
+ message: lR.INVALID_ALPHABETS
51791
51955
  }),
51792
51956
  alphanumeric: () => ({
51793
- pattern: KL.ALPHANUMERIC,
51794
- message: JL.INVALID_ALPHANUMERIC
51957
+ pattern: sR.ALPHANUMERIC,
51958
+ message: lR.INVALID_ALPHANUMERIC
51795
51959
  }),
51796
51960
  number: () => ({
51797
- pattern: KL.NUMBER,
51798
- message: JL.INVALID_NUMBER
51961
+ pattern: sR.NUMBER,
51962
+ message: lR.INVALID_NUMBER
51799
51963
  }),
51800
51964
  url: () => ({
51801
- pattern: KL.URL,
51802
- message: JL.INVALID_URL
51965
+ pattern: sR.URL,
51966
+ message: lR.INVALID_URL
51803
51967
  }),
51804
51968
  candidateId: (e = "ID") => ({
51805
- pattern: KL.CANDIDATE_ID,
51806
- message: JL.INVALID_CANDIDATE_ID(e)
51969
+ pattern: sR.CANDIDATE_ID,
51970
+ message: lR.INVALID_CANDIDATE_ID(e)
51807
51971
  }),
51808
51972
  remarks: () => ({
51809
- pattern: KL.REMARKS,
51810
- message: JL.INVALID_REMARKS,
51811
- REMARKS_MIN: `Remarks must be at least ${XL.REMARKS_MIN} characters.`,
51812
- REMARKS_MAX: `Remarks must not exceed ${XL.REMARKS_MAX} characters.`
51973
+ pattern: sR.REMARKS,
51974
+ message: lR.INVALID_REMARKS,
51975
+ REMARKS_MIN: `Remarks must be at least ${dR.REMARKS_MIN} characters.`,
51976
+ REMARKS_MAX: `Remarks must not exceed ${dR.REMARKS_MAX} characters.`
51813
51977
  }),
51814
51978
  designation: () => ({
51815
- pattern: KL.DESIGNATION,
51816
- message: JL.INVALID_DESIGNATION
51979
+ pattern: sR.DESIGNATION,
51980
+ message: lR.INVALID_DESIGNATION
51817
51981
  }),
51818
51982
  dob: (e = !0) => ({ validator: (t, n) => {
51819
51983
  if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
51820
- if (!KL.DOB.test(n)) return Promise.reject(Error(JL.INVALID_DOB));
51984
+ if (!sR.DOB.test(n)) return Promise.reject(Error(lR.INVALID_DOB));
51821
51985
  let r = rs(n, "MM/DD/YYYY", !0);
51822
- if (!r.isValid()) return Promise.reject(Error(JL.INVALID_DOB));
51986
+ if (!r.isValid()) return Promise.reject(Error(lR.INVALID_DOB));
51823
51987
  let i = rs().endOf("day");
51824
51988
  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();
51825
51989
  } }),
51826
51990
  linkedin: () => ({
51827
- pattern: KL.LINKEDIN,
51828
- message: JL.INVALID_LINKEDIN
51991
+ pattern: sR.LINKEDIN,
51992
+ message: lR.INVALID_LINKEDIN
51829
51993
  }),
51830
51994
  companyName: () => ({
51831
- pattern: KL.COMPANY_NAME,
51832
- message: JL.INVALID_COMPANY_NAME
51995
+ pattern: sR.COMPANY_NAME,
51996
+ message: lR.INVALID_COMPANY_NAME
51833
51997
  }),
51834
51998
  firstName: () => ({
51835
- pattern: KL.FIRST_NAME,
51836
- message: JL.INVALID_FIRST_NAME,
51837
- FIRST_NAME_MIN: `First Name must be at least ${YL.FIRST_NAME_MIN} characters.`,
51838
- FIRST_NAME_MAX: `First Name must not exceed ${YL.FIRST_NAME_MAX} characters.`
51999
+ pattern: sR.FIRST_NAME,
52000
+ message: lR.INVALID_FIRST_NAME,
52001
+ FIRST_NAME_MIN: `First Name must be at least ${uR.FIRST_NAME_MIN} characters.`,
52002
+ FIRST_NAME_MAX: `First Name must not exceed ${uR.FIRST_NAME_MAX} characters.`
51839
52003
  }),
51840
52004
  firstNameMinLength: () => ({
51841
- min: YL.FIRST_NAME_MIN,
51842
- message: JL.FIRST_NAME_MIN
52005
+ min: uR.FIRST_NAME_MIN,
52006
+ message: lR.FIRST_NAME_MIN
51843
52007
  }),
51844
52008
  firstNameMaxLength: () => ({
51845
- max: YL.FIRST_NAME_MAX,
51846
- message: JL.FIRST_NAME_MAX
52009
+ max: uR.FIRST_NAME_MAX,
52010
+ message: lR.FIRST_NAME_MAX
51847
52011
  }),
51848
52012
  remarksMinLength: () => ({
51849
- min: XL.REMARKS_MIN,
51850
- message: JL.REMARKS_MIN
52013
+ min: dR.REMARKS_MIN,
52014
+ message: lR.REMARKS_MIN
51851
52015
  }),
51852
52016
  remarksMaxLength: () => ({
51853
- max: XL.REMARKS_MAX,
51854
- message: JL.REMARKS_MAX
52017
+ max: dR.REMARKS_MAX,
52018
+ message: lR.REMARKS_MAX
51855
52019
  }),
51856
52020
  fullName: () => ({
51857
- pattern: KL.FULL_NAME,
51858
- message: JL.INVALID_FULL_NAME
52021
+ pattern: sR.FULL_NAME,
52022
+ message: lR.INVALID_FULL_NAME
51859
52023
  }),
51860
52024
  noSpaces: () => ({
51861
- pattern: KL.NO_SPACES,
51862
- message: JL.NO_SPACES_ALLOWED
52025
+ pattern: sR.NO_SPACES,
52026
+ message: lR.NO_SPACES_ALLOWED
51863
52027
  }),
51864
52028
  startsWithCapital: () => ({
51865
- pattern: KL.STARTS_WITH_CAPITAL,
51866
- message: JL.MUST_START_WITH_CAPITAL
52029
+ pattern: sR.STARTS_WITH_CAPITAL,
52030
+ message: lR.MUST_START_WITH_CAPITAL
51867
52031
  }),
51868
52032
  fileUpload: () => ({ validator: (e, t) => {
51869
52033
  if (!t || t.length === 0) return Promise.resolve();
51870
52034
  for (let e of t) {
51871
52035
  let t = e.originFileObj || e;
51872
- if (!(t.size / 1024 / 1024 <= qL.MAX_FILE_SIZE)) return q.error(JL.INVALID_FILE_SIZE), Promise.reject(Error(JL.INVALID_FILE_SIZE));
51873
- if (!qL.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(JL.INVALID_FILE_TYPE));
52036
+ if (!(t.size / 1024 / 1024 <= cR.MAX_FILE_SIZE)) return q.error(lR.INVALID_FILE_SIZE), Promise.reject(Error(lR.INVALID_FILE_SIZE));
52037
+ if (!cR.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(lR.INVALID_FILE_TYPE));
51874
52038
  }
51875
52039
  return Promise.resolve();
51876
52040
  } }),
51877
52041
  singleFileUpload: () => ({ validator: (e, t) => {
51878
52042
  if (!t || t.length === 0) return Promise.resolve();
51879
- if (t.length > qL.SINGLE_FILE_COUNT) return Promise.reject(Error(JL.SINGLE_FILE_ONLY));
52043
+ if (t.length > cR.SINGLE_FILE_COUNT) return Promise.reject(Error(lR.SINGLE_FILE_ONLY));
51880
52044
  let n = t[0];
51881
- return n.size / 1024 / 1024 < qL.MAX_FILE_SIZE ? qL.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(JL.INVALID_FILE_TYPE)) : Promise.reject(Error(JL.INVALID_FILE_SIZE));
52045
+ return n.size / 1024 / 1024 < cR.MAX_FILE_SIZE ? cR.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(lR.INVALID_FILE_TYPE)) : Promise.reject(Error(lR.INVALID_FILE_SIZE));
51882
52046
  } }),
51883
52047
  multiFileUpload: () => ({ validator: (e, t) => {
51884
52048
  if (!t || t.length === 0) return Promise.resolve();
51885
- if (t.length > qL.MULTI_FILE_COUNT) return Promise.reject(Error(JL.INVALID_FILE_COUNT));
52049
+ if (t.length > cR.MULTI_FILE_COUNT) return Promise.reject(Error(lR.INVALID_FILE_COUNT));
51886
52050
  for (let e of t) {
51887
- if (!(e.size / 1024 / 1024 < qL.MAX_FILE_SIZE)) return Promise.reject(Error(JL.INVALID_FILE_SIZE));
51888
- if (!qL.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(JL.INVALID_FILE_TYPE));
52051
+ if (!(e.size / 1024 / 1024 < cR.MAX_FILE_SIZE)) return Promise.reject(Error(lR.INVALID_FILE_SIZE));
52052
+ if (!cR.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(lR.INVALID_FILE_TYPE));
51889
52053
  }
51890
52054
  return Promise.resolve();
51891
52055
  } })
51892
- }, $L = { beforeUpload: (e) => [
52056
+ }, mR = { beforeUpload: (e) => [
51893
52057
  "image/jpeg",
51894
52058
  "image/png",
51895
52059
  "application/pdf"
51896
- ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), aa.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), aa.LIST_IGNORE) }, eR = () => {
52060
+ ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), aa.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), aa.LIST_IGNORE) }, hR = () => {
51897
52061
  let [e] = B.useForm();
51898
52062
  return /* @__PURE__ */ Y("div", {
51899
52063
  style: { padding: 24 },
@@ -51913,7 +52077,7 @@ var KL = {
51913
52077
  children: /* @__PURE__ */ Y(B.Item, {
51914
52078
  label: "Email",
51915
52079
  name: "email",
51916
- rules: [QL.required("Email"), QL.email()],
52080
+ rules: [pR.required("Email"), pR.email()],
51917
52081
  children: /* @__PURE__ */ Y(V, {})
51918
52082
  })
51919
52083
  }),
@@ -51922,12 +52086,12 @@ var KL = {
51922
52086
  children: /* @__PURE__ */ Y(B.Item, {
51923
52087
  label: "Phone Number",
51924
52088
  name: "phone",
51925
- rules: [QL.required("Phone Number"), QL.phone()],
52089
+ rules: [pR.required("Phone Number"), pR.phone()],
51926
52090
  validateTrigger: ["onBlur", "onChange"],
51927
52091
  children: /* @__PURE__ */ Y(V, {
51928
52092
  maxLength: 10,
51929
52093
  onChange: (t) => {
51930
- e.setFieldsValue({ phone: ZL.phoneFormatter(t.target.value) });
52094
+ e.setFieldsValue({ phone: fR.phoneFormatter(t.target.value) });
51931
52095
  }
51932
52096
  })
51933
52097
  })
@@ -51937,7 +52101,7 @@ var KL = {
51937
52101
  children: /* @__PURE__ */ Y(B.Item, {
51938
52102
  label: "Password",
51939
52103
  name: "password",
51940
- rules: [QL.required("Password"), QL.password()],
52104
+ rules: [pR.required("Password"), pR.password()],
51941
52105
  children: /* @__PURE__ */ Y(V.Password, {})
51942
52106
  })
51943
52107
  }),
@@ -51947,13 +52111,13 @@ var KL = {
51947
52111
  label: "Full Name",
51948
52112
  name: "fullName",
51949
52113
  rules: [
51950
- QL.required("Full Name"),
51951
- QL.alphabets(),
51952
- QL.firstNameMinLength(),
51953
- QL.firstNameMaxLength()
52114
+ pR.required("Full Name"),
52115
+ pR.alphabets(),
52116
+ pR.firstNameMinLength(),
52117
+ pR.firstNameMaxLength()
51954
52118
  ],
51955
52119
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
51956
- e.setFieldsValue({ fullName: ZL.firstNameFormatter(t.target.value) });
52120
+ e.setFieldsValue({ fullName: fR.firstNameFormatter(t.target.value) });
51957
52121
  } })
51958
52122
  })
51959
52123
  }),
@@ -51962,9 +52126,9 @@ var KL = {
51962
52126
  children: /* @__PURE__ */ Y(B.Item, {
51963
52127
  label: "Username",
51964
52128
  name: "username",
51965
- rules: [QL.required("Username"), QL.alphanumeric()],
52129
+ rules: [pR.required("Username"), pR.alphanumeric()],
51966
52130
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
51967
- e.setFieldsValue({ username: ZL.removeExtraSpaces(t.target.value) });
52131
+ e.setFieldsValue({ username: fR.removeExtraSpaces(t.target.value) });
51968
52132
  } })
51969
52133
  })
51970
52134
  }),
@@ -51973,9 +52137,9 @@ var KL = {
51973
52137
  children: /* @__PURE__ */ Y(B.Item, {
51974
52138
  label: "Website URL",
51975
52139
  name: "website",
51976
- rules: [QL.required("Website URL"), QL.url()],
52140
+ rules: [pR.required("Website URL"), pR.url()],
51977
52141
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
51978
- e.setFieldsValue({ website: ZL.removeExtraSpaces(t.target.value) });
52142
+ e.setFieldsValue({ website: fR.removeExtraSpaces(t.target.value) });
51979
52143
  } })
51980
52144
  })
51981
52145
  }),
@@ -51984,9 +52148,9 @@ var KL = {
51984
52148
  children: /* @__PURE__ */ Y(B.Item, {
51985
52149
  label: "MSP Req ID",
51986
52150
  name: "mspreqID",
51987
- rules: [QL.required("MSP Req ID"), QL.candidateId("MSP Req ID")],
52151
+ rules: [pR.required("MSP Req ID"), pR.candidateId("MSP Req ID")],
51988
52152
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
51989
- e.setFieldsValue({ mspreqID: ZL.removeExtraSpaces(t.target.value) });
52153
+ e.setFieldsValue({ mspreqID: fR.removeExtraSpaces(t.target.value) });
51990
52154
  } })
51991
52155
  })
51992
52156
  }),
@@ -51995,9 +52159,9 @@ var KL = {
51995
52159
  children: /* @__PURE__ */ Y(B.Item, {
51996
52160
  label: "Candidate ID",
51997
52161
  name: "candidateId",
51998
- rules: [QL.required("Candidate ID"), QL.candidateId("Candidate ID")],
52162
+ rules: [pR.required("Candidate ID"), pR.candidateId("Candidate ID")],
51999
52163
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
52000
- e.setFieldsValue({ candidateId: ZL.removeExtraSpaces(t.target.value) });
52164
+ e.setFieldsValue({ candidateId: fR.removeExtraSpaces(t.target.value) });
52001
52165
  } })
52002
52166
  })
52003
52167
  }),
@@ -52007,10 +52171,10 @@ var KL = {
52007
52171
  label: "Remarks",
52008
52172
  name: "remarks",
52009
52173
  rules: [
52010
- QL.required("Remarks"),
52011
- QL.remarks(),
52012
- QL.remarksMinLength(),
52013
- QL.remarksMaxLength()
52174
+ pR.required("Remarks"),
52175
+ pR.remarks(),
52176
+ pR.remarksMinLength(),
52177
+ pR.remarksMaxLength()
52014
52178
  ],
52015
52179
  children: /* @__PURE__ */ Y(V.TextArea, { rows: 4 })
52016
52180
  })
@@ -52020,7 +52184,7 @@ var KL = {
52020
52184
  children: /* @__PURE__ */ Y(B.Item, {
52021
52185
  label: "Designation",
52022
52186
  name: "designation",
52023
- rules: [QL.required("Designation"), QL.designation()],
52187
+ rules: [pR.required("Designation"), pR.designation()],
52024
52188
  children: /* @__PURE__ */ Y(V, {})
52025
52189
  })
52026
52190
  }),
@@ -52029,12 +52193,12 @@ var KL = {
52029
52193
  children: /* @__PURE__ */ Y(B.Item, {
52030
52194
  label: "Date of Birth",
52031
52195
  name: "dob",
52032
- rules: [QL.dob()],
52196
+ rules: [pR.dob()],
52033
52197
  children: /* @__PURE__ */ Y(V, {
52034
52198
  placeholder: "MM/DD/YYYY",
52035
52199
  maxLength: 10,
52036
52200
  onChange: (t) => {
52037
- e.setFieldsValue({ dob: ZL.dobFormatter(t.target.value) });
52201
+ e.setFieldsValue({ dob: fR.dobFormatter(t.target.value) });
52038
52202
  }
52039
52203
  })
52040
52204
  })
@@ -52044,7 +52208,7 @@ var KL = {
52044
52208
  children: /* @__PURE__ */ Y(B.Item, {
52045
52209
  label: "Company Name",
52046
52210
  name: "companyName",
52047
- rules: [QL.required("Company Name"), QL.companyName()],
52211
+ rules: [pR.required("Company Name"), pR.companyName()],
52048
52212
  children: /* @__PURE__ */ Y(V, {})
52049
52213
  })
52050
52214
  }),
@@ -52133,7 +52297,7 @@ var KL = {
52133
52297
  label: "Resume new",
52134
52298
  name: "resume",
52135
52299
  children: /* @__PURE__ */ Y(aa, {
52136
- beforeUpload: $L.beforeUpload,
52300
+ beforeUpload: mR.beforeUpload,
52137
52301
  maxCount: 1,
52138
52302
  children: /* @__PURE__ */ Y(R, { children: "Upload Resume" })
52139
52303
  })
@@ -52146,10 +52310,10 @@ var KL = {
52146
52310
  name: "documents",
52147
52311
  valuePropName: "fileList",
52148
52312
  getValueFromEvent: (e) => e?.fileList,
52149
- rules: [QL.multiFileUpload()],
52313
+ rules: [pR.multiFileUpload()],
52150
52314
  children: /* @__PURE__ */ Y(aa, {
52151
52315
  multiple: !0,
52152
- beforeUpload: $L.beforeUpload,
52316
+ beforeUpload: mR.beforeUpload,
52153
52317
  children: /* @__PURE__ */ Y(R, { children: "Upload Documents" })
52154
52318
  })
52155
52319
  })
@@ -52161,9 +52325,9 @@ var KL = {
52161
52325
  name: "file",
52162
52326
  valuePropName: "fileList",
52163
52327
  getValueFromEvent: (e) => e?.fileList,
52164
- rules: [QL.fileUpload()],
52328
+ rules: [pR.fileUpload()],
52165
52329
  children: /* @__PURE__ */ Y(aa, {
52166
- beforeUpload: $L.beforeUpload,
52330
+ beforeUpload: mR.beforeUpload,
52167
52331
  maxCount: 1,
52168
52332
  children: /* @__PURE__ */ Y(R, { children: "Upload" })
52169
52333
  })
@@ -52223,12 +52387,12 @@ var KL = {
52223
52387
  };
52224
52388
  //#endregion
52225
52389
  //#region src/pages/admin/AdminPageWithShell.jsx
52226
- function tR(e) {
52390
+ function gR(e) {
52227
52391
  return /* @__PURE__ */ Y(HE, { children: /* @__PURE__ */ Y(tN, { ...e }) });
52228
52392
  }
52229
52393
  //#endregion
52230
52394
  //#region src/components/cards/StatsCards.jsx
52231
- var { Text: nR } = ia, rR = [
52395
+ var { Text: _R } = ia, vR = [
52232
52396
  {
52233
52397
  label: "Total Jobs",
52234
52398
  value: 1697,
@@ -52244,13 +52408,13 @@ var { Text: nR } = ia, rR = [
52244
52408
  value: 600,
52245
52409
  icon: "user"
52246
52410
  }
52247
- ], iR = {
52411
+ ], yR = {
52248
52412
  fileText: /* @__PURE__ */ Y($a, {}),
52249
52413
  checkCircle: /* @__PURE__ */ Y(Sa, {}),
52250
52414
  user: /* @__PURE__ */ Y(es, {}),
52251
52415
  filter: /* @__PURE__ */ Y(to, {})
52252
52416
  };
52253
- function aR({ stats: e = rR }) {
52417
+ function bR({ stats: e = vR }) {
52254
52418
  return /* @__PURE__ */ Y(Oi, { children: /* @__PURE__ */ Y(Ji, {
52255
52419
  gutter: [12, 12],
52256
52420
  children: e.map((e) => /* @__PURE__ */ Y(z, {
@@ -52263,7 +52427,7 @@ function aR({ stats: e = rR }) {
52263
52427
  className: "stats-inner-card",
52264
52428
  children: [/* @__PURE__ */ X(U, {
52265
52429
  align: "center",
52266
- children: [iR[e.icon] ?? iR.fileText, /* @__PURE__ */ Y(nR, { children: e.label })]
52430
+ children: [yR[e.icon] ?? yR.fileText, /* @__PURE__ */ Y(_R, { children: e.label })]
52267
52431
  }), /* @__PURE__ */ Y(Qi, { value: e.value })]
52268
52432
  })
52269
52433
  }, e.label))
@@ -52271,21 +52435,21 @@ function aR({ stats: e = rR }) {
52271
52435
  }
52272
52436
  //#endregion
52273
52437
  //#region src/pages/Modules/Admin/UsersSection.jsx
52274
- var { Text: oR } = ia;
52275
- function sR(e) {
52438
+ var { Text: xR } = ia;
52439
+ function SR(e) {
52276
52440
  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 ?? "?"}`;
52277
52441
  }
52278
- function cR(e) {
52442
+ function CR(e) {
52279
52443
  return {
52280
52444
  ...e,
52281
52445
  key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
52282
- _name: sR(e),
52446
+ _name: SR(e),
52283
52447
  _email: e.email ?? e.EMAIL ?? e.user_email ?? "",
52284
52448
  _role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
52285
52449
  _rawRef: e
52286
52450
  };
52287
52451
  }
52288
- function lR() {
52452
+ function wR() {
52289
52453
  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 } = {}) => {
52290
52454
  a(!0);
52291
52455
  try {
@@ -52293,7 +52457,7 @@ function lR() {
52293
52457
  offset: e,
52294
52458
  limit: n,
52295
52459
  searchQuery: i ?? ""
52296
- }), o = (a.users ?? []).map(cR);
52460
+ }), o = (a.users ?? []).map(CR);
52297
52461
  t(o), r(a.total ?? o.length);
52298
52462
  } catch {
52299
52463
  q.error("Failed to load users");
@@ -52326,7 +52490,7 @@ function lR() {
52326
52490
  label: "Name",
52327
52491
  value: "_name",
52328
52492
  width: 220,
52329
- render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(oR, {
52493
+ render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(xR, {
52330
52494
  strong: !0,
52331
52495
  style: { fontSize: 13 },
52332
52496
  children: e
@@ -52358,7 +52522,7 @@ function lR() {
52358
52522
  }
52359
52523
  //#endregion
52360
52524
  //#region src/pages/Modules/Admin/TeamsSection.jsx
52361
- var { Text: uR } = ia, dR = [
52525
+ var { Text: TR } = ia, ER = [
52362
52526
  {
52363
52527
  key: "job",
52364
52528
  label: "Jobs"
@@ -52371,7 +52535,7 @@ var { Text: uR } = ia, dR = [
52371
52535
  key: "submissions",
52372
52536
  label: "Submissions"
52373
52537
  }
52374
- ], fR = [
52538
+ ], DR = [
52375
52539
  {
52376
52540
  key: "listView",
52377
52541
  label: "List View"
@@ -52385,7 +52549,7 @@ var { Text: uR } = ia, dR = [
52385
52549
  label: "Form"
52386
52550
  }
52387
52551
  ];
52388
- function pR({ field: e, index: t, onToggle: n, onReorder: r }) {
52552
+ function OR({ field: e, index: t, onToggle: n, onReorder: r }) {
52389
52553
  let i = Si(null), [a, o] = L(!1), [s, c] = L(!1);
52390
52554
  function l(e) {
52391
52555
  i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
@@ -52449,7 +52613,7 @@ function pR({ field: e, index: t, onToggle: n, onReorder: r }) {
52449
52613
  ]
52450
52614
  });
52451
52615
  }
52452
- function mR({ team: e, configType: t }) {
52616
+ function kR({ team: e, configType: t }) {
52453
52617
  let [n, r] = L({}), [i, a] = L(!1), [o, s] = L({}), [c, l] = L("job");
52454
52618
  F(() => {
52455
52619
  e && (a(!0), Nt(e, t).then(r).catch(() => q.error("Failed to load field config")).finally(() => a(!1)));
@@ -52500,7 +52664,7 @@ function mR({ team: e, configType: t }) {
52500
52664
  size: "small",
52501
52665
  activeKey: c,
52502
52666
  onChange: l,
52503
- items: dR.map((e) => ({
52667
+ items: ER.map((e) => ({
52504
52668
  key: e.key,
52505
52669
  label: e.label
52506
52670
  }))
@@ -52529,7 +52693,7 @@ function mR({ team: e, configType: t }) {
52529
52693
  children: [u.length === 0 && !i && /* @__PURE__ */ Y("div", {
52530
52694
  className: "uss-empty",
52531
52695
  children: "No fields found."
52532
- }), u.map((e, t) => /* @__PURE__ */ Y(pR, {
52696
+ }), u.map((e, t) => /* @__PURE__ */ Y(OR, {
52533
52697
  field: e,
52534
52698
  index: t,
52535
52699
  onToggle: f,
@@ -52543,13 +52707,13 @@ function mR({ team: e, configType: t }) {
52543
52707
  size: "small",
52544
52708
  loading: o[c],
52545
52709
  onClick: m,
52546
- children: ["Save ", dR.find((e) => e.key === c)?.label]
52710
+ children: ["Save ", ER.find((e) => e.key === c)?.label]
52547
52711
  })
52548
52712
  })
52549
52713
  ]
52550
52714
  });
52551
52715
  }
52552
- function hR() {
52716
+ function AR() {
52553
52717
  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 () => {
52554
52718
  p(!0);
52555
52719
  try {
@@ -52696,13 +52860,13 @@ function hR() {
52696
52860
  style: { marginBottom: 12 },
52697
52861
  children: /* @__PURE__ */ Y("div", {
52698
52862
  className: "uss-config-toggle",
52699
- children: fR.map((e) => /* @__PURE__ */ Y("button", {
52863
+ children: DR.map((e) => /* @__PURE__ */ Y("button", {
52700
52864
  className: `uss-config-btn${o === e.key ? " active" : ""}`,
52701
52865
  onClick: () => s(e.key),
52702
52866
  children: e.label
52703
52867
  }, e.key))
52704
52868
  })
52705
- }), e && /* @__PURE__ */ Y(mR, {
52869
+ }), e && /* @__PURE__ */ Y(kR, {
52706
52870
  team: e,
52707
52871
  configType: o
52708
52872
  }, `${e?.teamId}-${o}`)]
@@ -52711,12 +52875,12 @@ function hR() {
52711
52875
  }
52712
52876
  //#endregion
52713
52877
  //#region src/pages/Modules/Admin/components/RolePermPanel.jsx
52714
- var gR = [
52878
+ var jR = [
52715
52879
  "view",
52716
52880
  "add",
52717
52881
  "edit",
52718
52882
  "delete"
52719
- ], _R = {
52883
+ ], MR = {
52720
52884
  view: "View",
52721
52885
  add: "Add",
52722
52886
  edit: "Edit",
@@ -52731,18 +52895,18 @@ var gR = [
52731
52895
  reApprove: "ReApprove",
52732
52896
  sendApprove: "Send Approve"
52733
52897
  };
52734
- function vR(e) {
52735
- return _R[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
52898
+ function NR(e) {
52899
+ return MR[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
52736
52900
  }
52737
- function yR(e) {
52738
- let t = gR.filter((t) => e.includes(t)), n = e.filter((e) => !gR.includes(e)).sort();
52901
+ function PR(e) {
52902
+ let t = jR.filter((t) => e.includes(t)), n = e.filter((e) => !jR.includes(e)).sort();
52739
52903
  return [...t, ...n];
52740
52904
  }
52741
- function bR(e) {
52905
+ function FR(e) {
52742
52906
  let t = /* @__PURE__ */ new Set();
52743
- return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), yR([...t]);
52907
+ return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), PR([...t]);
52744
52908
  }
52745
- function xR(e) {
52909
+ function IR(e) {
52746
52910
  let t = 0, n = 0;
52747
52911
  return Object.entries(e).forEach(([e, { permissions: r }]) => {
52748
52912
  Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
@@ -52753,7 +52917,7 @@ function xR(e) {
52753
52917
  total: n
52754
52918
  };
52755
52919
  }
52756
- function SR(e = {}) {
52920
+ function LR(e = {}) {
52757
52921
  if (!e || typeof e != "object") return e;
52758
52922
  let t = Object.keys(e).find((e) => String(e).trim().toLowerCase() === "onboarding");
52759
52923
  if (!t) return e;
@@ -52770,7 +52934,7 @@ function SR(e = {}) {
52770
52934
  }
52771
52935
  };
52772
52936
  }
52773
- function CR({ value: e, onSave: t, className: n }) {
52937
+ function RR({ value: e, onSave: t, className: n }) {
52774
52938
  let [r, i] = L(!1), [a, o] = L(e);
52775
52939
  F(() => {
52776
52940
  o(e);
@@ -52799,7 +52963,7 @@ function CR({ value: e, onSave: t, className: n }) {
52799
52963
  children: [e, /* @__PURE__ */ Y(Ba, { className: "perm-name-edit-icon" })]
52800
52964
  });
52801
52965
  }
52802
- function wR({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
52966
+ function zR({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
52803
52967
  let [i, a] = L(!1), [o, s] = L(t), c = e?.value === "1", l = !!e;
52804
52968
  F(() => {
52805
52969
  s(t);
@@ -52841,13 +53005,13 @@ function wR({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
52841
53005
  })
52842
53006
  });
52843
53007
  }
52844
- function TR({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
53008
+ function BR({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
52845
53009
  let c = t?.permissions ?? {}, l = n.filter((t) => QD(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
52846
53010
  return /* @__PURE__ */ X("div", {
52847
53011
  className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
52848
53012
  children: [/* @__PURE__ */ X("div", {
52849
53013
  className: "perm-module-card-header",
52850
- children: [/* @__PURE__ */ Y(CR, {
53014
+ children: [/* @__PURE__ */ Y(RR, {
52851
53015
  value: i,
52852
53016
  onSave: (t) => o(e, t),
52853
53017
  className: "perm-module-card-name"
@@ -52861,20 +53025,20 @@ function TR({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
52861
53025
  })]
52862
53026
  }), /* @__PURE__ */ Y("div", {
52863
53027
  className: "perm-module-card-body",
52864
- children: l.map((t) => /* @__PURE__ */ Y(wR, {
53028
+ children: l.map((t) => /* @__PURE__ */ Y(zR, {
52865
53029
  entry: c[t],
52866
- label: a[t] ?? vR(t),
53030
+ label: a[t] ?? NR(t),
52867
53031
  onToggle: () => r(e, t),
52868
53032
  onLabelSave: (e) => s(t, e)
52869
53033
  }, t))
52870
53034
  })]
52871
53035
  });
52872
53036
  }
52873
- function ER({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
53037
+ function VR({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
52874
53038
  let [a, o] = L({}), [s, c] = L({}), [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(!1), h = li(e);
52875
53039
  F(() => {
52876
53040
  h && (u(!0), m(!1), De(h).then((e) => {
52877
- let t = SR(e);
53041
+ let t = LR(e);
52878
53042
  o(t), c(t);
52879
53043
  }).catch(() => q.error("Failed to load permissions")).finally(() => u(!1)));
52880
53044
  }, [h]);
@@ -52912,7 +53076,7 @@ function ER({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
52912
53076
  f(!1);
52913
53077
  }
52914
53078
  }
52915
- let v = I(() => Object.keys(s).sort(), [s]), y = I(() => bR(s), [s]), { enabled: b, total: x } = I(() => xR(s), [s]);
53079
+ let v = I(() => Object.keys(s).sort(), [s]), y = I(() => FR(s), [s]), { enabled: b, total: x } = I(() => IR(s), [s]);
52916
53080
  return /* @__PURE__ */ X(Zi, {
52917
53081
  spinning: l,
52918
53082
  children: [
@@ -52963,7 +53127,7 @@ function ER({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
52963
53127
  children: "No permission entries found for this role."
52964
53128
  }) : /* @__PURE__ */ Y("div", {
52965
53129
  className: "perm-cards-grid",
52966
- children: v.map((e) => /* @__PURE__ */ Y(TR, {
53130
+ children: v.map((e) => /* @__PURE__ */ Y(BR, {
52967
53131
  menuName: e,
52968
53132
  menuData: s[e],
52969
53133
  permKeys: y,
@@ -52979,7 +53143,7 @@ function ER({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
52979
53143
  }
52980
53144
  //#endregion
52981
53145
  //#region src/pages/Modules/Admin/RolesSection.jsx
52982
- var { Text: DR } = ia, OR = [
53146
+ var { Text: HR } = ia, UR = [
52983
53147
  {
52984
53148
  key: "listView",
52985
53149
  label: "List View"
@@ -52997,38 +53161,38 @@ var { Text: DR } = ia, OR = [
52997
53161
  label: "Permissions"
52998
53162
  }
52999
53163
  ];
53000
- function kR(e) {
53164
+ function WR(e) {
53001
53165
  return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
53002
53166
  }
53003
- function AR(e) {
53167
+ function GR(e) {
53004
53168
  return String(e || "").trim().toLowerCase();
53005
53169
  }
53006
- function jR(e) {
53170
+ function KR(e) {
53007
53171
  return e?.key || e?.collectionName || e?.value || "";
53008
53172
  }
53009
- function MR(e = [], t = []) {
53173
+ function qR(e = [], t = []) {
53010
53174
  let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
53011
53175
  return e.forEach((e) => {
53012
- let t = jR(e);
53176
+ let t = KR(e);
53013
53177
  if (!t) return;
53014
- let o = AR(e.key || t), s = AR(e.collectionName);
53178
+ let o = GR(e.key || t), s = GR(e.collectionName);
53015
53179
  e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
53016
- label: e.label || kR(t),
53180
+ label: e.label || WR(t),
53017
53181
  value: t,
53018
53182
  disabled: !!e.seeded
53019
53183
  });
53020
53184
  }), t.forEach((e) => {
53021
53185
  let t = String(e || "").trim();
53022
53186
  if (!t || r.has(t)) return;
53023
- let o = AR(t);
53187
+ let o = GR(t);
53024
53188
  a.has(o) || i.has(o) || (r.add(t), n.push({
53025
- label: kR(t),
53189
+ label: WR(t),
53026
53190
  value: t,
53027
53191
  disabled: !1
53028
53192
  }));
53029
53193
  }), n;
53030
53194
  }
53031
- function NR() {
53195
+ function JR() {
53032
53196
  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 () => {
53033
53197
  d(!0);
53034
53198
  try {
@@ -53042,7 +53206,7 @@ function NR() {
53042
53206
  }, []), C = yi(async () => {
53043
53207
  _(!0);
53044
53208
  try {
53045
- let [e, t] = await Promise.all([Zr(), An()]), n = MR(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
53209
+ let [e, t] = await Promise.all([Zr(), An()]), n = qR(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
53046
53210
  p(n), h((e) => e.filter((e) => r.has(e)));
53047
53211
  } catch {
53048
53212
  q.error("Failed to load seed status");
@@ -53108,7 +53272,7 @@ function NR() {
53108
53272
  onClick: w,
53109
53273
  children: "Seed Field Config"
53110
53274
  })]
53111
- }), /* @__PURE__ */ Y(DR, {
53275
+ }), /* @__PURE__ */ Y(HR, {
53112
53276
  type: "secondary",
53113
53277
  style: {
53114
53278
  display: "block",
@@ -53188,13 +53352,13 @@ function NR() {
53188
53352
  style: { marginBottom: 12 },
53189
53353
  children: /* @__PURE__ */ Y("div", {
53190
53354
  className: "uss-config-toggle",
53191
- children: OR.map((e) => /* @__PURE__ */ Y("button", {
53355
+ children: UR.map((e) => /* @__PURE__ */ Y("button", {
53192
53356
  className: `uss-config-btn${i === e.key ? " active" : ""}`,
53193
53357
  onClick: () => a(e.key),
53194
53358
  children: e.label
53195
53359
  }, e.key))
53196
53360
  })
53197
- }), e && (i === "permissions" ? /* @__PURE__ */ Y(ER, { role: e }, e?.roleId) : /* @__PURE__ */ Y(gO, {
53361
+ }), e && (i === "permissions" ? /* @__PURE__ */ Y(VR, { role: e }, e?.roleId) : /* @__PURE__ */ Y(gO, {
53198
53362
  role: e,
53199
53363
  configType: i
53200
53364
  }, `${e?.roleId}-${i}`))]
@@ -53203,20 +53367,20 @@ function NR() {
53203
53367
  }
53204
53368
  //#endregion
53205
53369
  //#region src/pages/Modules/Admin/PermissionsPage.jsx
53206
- var PR = "perm-module-labels", FR = "perm-action-labels";
53207
- function IR(e) {
53370
+ var YR = "perm-module-labels", XR = "perm-action-labels";
53371
+ function ZR(e) {
53208
53372
  try {
53209
53373
  return JSON.parse(localStorage.getItem(e) ?? "{}");
53210
53374
  } catch {
53211
53375
  return {};
53212
53376
  }
53213
53377
  }
53214
- function LR(e, t) {
53378
+ function QR(e, t) {
53215
53379
  try {
53216
53380
  localStorage.setItem(e, JSON.stringify(t));
53217
53381
  } catch {}
53218
53382
  }
53219
- function RR({ label: e, onSave: t, onDelete: n, loading: r }) {
53383
+ function $R({ label: e, onSave: t, onDelete: n, loading: r }) {
53220
53384
  let [i, a] = L(!1), [o, s] = L(e);
53221
53385
  function c() {
53222
53386
  a(!1);
@@ -53267,7 +53431,7 @@ function RR({ label: e, onSave: t, onDelete: n, loading: r }) {
53267
53431
  })]
53268
53432
  });
53269
53433
  }
53270
- function zR({ open: e, onClose: t }) {
53434
+ function ez({ open: e, onClose: t }) {
53271
53435
  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);
53272
53436
  F(() => {
53273
53437
  e && (S(), C());
@@ -53389,7 +53553,7 @@ function zR({ open: e, onClose: t }) {
53389
53553
  className: "perm-empty",
53390
53554
  style: { paddingTop: 24 },
53391
53555
  children: "No modules found"
53392
- }), i.map((e) => /* @__PURE__ */ Y(RR, {
53556
+ }), i.map((e) => /* @__PURE__ */ Y($R, {
53393
53557
  label: e.MENUNAME,
53394
53558
  onSave: (t) => T(e.MENUID, t),
53395
53559
  onDelete: () => E(e.MENUID)
@@ -53434,7 +53598,7 @@ function zR({ open: e, onClose: t }) {
53434
53598
  className: "perm-empty",
53435
53599
  style: { paddingTop: 24 },
53436
53600
  children: "No actions found"
53437
- }), f.map((e) => /* @__PURE__ */ Y(RR, {
53601
+ }), f.map((e) => /* @__PURE__ */ Y($R, {
53438
53602
  label: `${e.permissionName} (${e.permissionKey})`,
53439
53603
  onSave: (t) => O(e.permissionId, t),
53440
53604
  onDelete: () => k(e.permissionId)
@@ -53464,14 +53628,14 @@ function zR({ open: e, onClose: t }) {
53464
53628
  })
53465
53629
  });
53466
53630
  }
53467
- function BR() {
53468
- let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => IR(PR)), [f, p] = L(() => IR(FR)), m = yi((e, t) => {
53631
+ function tz() {
53632
+ let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => ZR(YR)), [f, p] = L(() => ZR(XR)), m = yi((e, t) => {
53469
53633
  d((n) => {
53470
53634
  let r = {
53471
53635
  ...n,
53472
53636
  [e]: t
53473
53637
  };
53474
- return LR(PR, r), r;
53638
+ return QR(YR, r), r;
53475
53639
  });
53476
53640
  }, []), h = yi((e, t) => {
53477
53641
  p((n) => {
@@ -53479,11 +53643,11 @@ function BR() {
53479
53643
  ...n,
53480
53644
  [e]: t
53481
53645
  };
53482
- return LR(FR, r), r;
53646
+ return QR(XR, r), r;
53483
53647
  });
53484
53648
  }, []);
53485
53649
  function g() {
53486
- d({}), p({}), LR(PR, {}), LR(FR, {}), q.success("Labels reset to defaults");
53650
+ d({}), p({}), QR(YR, {}), QR(XR, {}), q.success("Labels reset to defaults");
53487
53651
  }
53488
53652
  let _ = yi(async () => {
53489
53653
  r(!0);
@@ -53567,7 +53731,7 @@ function BR() {
53567
53731
  })]
53568
53732
  }),
53569
53733
  bodyStyle: { padding: "12px 16px" },
53570
- children: i ? /* @__PURE__ */ Y(ER, {
53734
+ children: i ? /* @__PURE__ */ Y(VR, {
53571
53735
  role: i,
53572
53736
  moduleLabels: u,
53573
53737
  actionLabels: f,
@@ -53578,7 +53742,7 @@ function BR() {
53578
53742
  children: "Select a role from the left to manage its permissions."
53579
53743
  })
53580
53744
  }),
53581
- /* @__PURE__ */ Y(zR, {
53745
+ /* @__PURE__ */ Y(ez, {
53582
53746
  open: c,
53583
53747
  onClose: () => l(!1)
53584
53748
  })
@@ -53587,7 +53751,7 @@ function BR() {
53587
53751
  }
53588
53752
  //#endregion
53589
53753
  //#region src/components/cards/OnboardingCard.jsx
53590
- var { Title: VR, Text: HR } = ia, UR = [
53754
+ var { Title: nz, Text: rz } = ia, iz = [
53591
53755
  {
53592
53756
  label: "In Progress",
53593
53757
  value: 107,
@@ -53613,10 +53777,10 @@ var { Title: VR, Text: HR } = ia, UR = [
53613
53777
  color: "peach"
53614
53778
  }
53615
53779
  ];
53616
- function WR({ items: e = UR }) {
53780
+ function az({ items: e = iz }) {
53617
53781
  return /* @__PURE__ */ Y(Oi, {
53618
53782
  className: "onboarding-card",
53619
- title: /* @__PURE__ */ Y(VR, {
53783
+ title: /* @__PURE__ */ Y(nz, {
53620
53784
  level: 5,
53621
53785
  children: "Onboarding"
53622
53786
  }),
@@ -53635,7 +53799,7 @@ function WR({ items: e = UR }) {
53635
53799
  children: /* @__PURE__ */ X("div", {
53636
53800
  className: `onboarding-item ${e.color}`,
53637
53801
  children: [
53638
- /* @__PURE__ */ Y(HR, {
53802
+ /* @__PURE__ */ Y(rz, {
53639
53803
  className: "onboarding-item-label",
53640
53804
  children: e.label
53641
53805
  }),
@@ -53645,7 +53809,7 @@ function WR({ items: e = UR }) {
53645
53809
  }),
53646
53810
  /* @__PURE__ */ Y("div", {
53647
53811
  className: "onboarding-item-footer",
53648
- children: /* @__PURE__ */ Y(HR, {
53812
+ children: /* @__PURE__ */ Y(rz, {
53649
53813
  className: "onboarding-item-sub",
53650
53814
  children: e.sub
53651
53815
  })
@@ -53658,7 +53822,7 @@ function WR({ items: e = UR }) {
53658
53822
  }
53659
53823
  //#endregion
53660
53824
  //#region src/pages/Modules/LegacyAdminPage.jsx
53661
- var { Text: GR, Title: KR } = ia, qR = [
53825
+ var { Text: oz, Title: sz } = ia, cz = [
53662
53826
  {
53663
53827
  group: "Dashboard",
53664
53828
  items: [{
@@ -53873,7 +54037,7 @@ var { Text: GR, Title: KR } = ia, qR = [
53873
54037
  }
53874
54038
  ]
53875
54039
  }
53876
- ], JR = [
54040
+ ], lz = [
53877
54041
  {
53878
54042
  label: "Sourced",
53879
54043
  count: 312,
@@ -53904,7 +54068,7 @@ var { Text: GR, Title: KR } = ia, qR = [
53904
54068
  color: "#E24B4A",
53905
54069
  pct: 10
53906
54070
  }
53907
- ], YR = [
54071
+ ], uz = [
53908
54072
  {
53909
54073
  name: "Tcs",
53910
54074
  jobs: 14,
@@ -53925,7 +54089,7 @@ var { Text: GR, Title: KR } = ia, qR = [
53925
54089
  jobs: 5,
53926
54090
  candidates: 38
53927
54091
  }
53928
- ], XR = [
54092
+ ], dz = [
53929
54093
  {
53930
54094
  text: "New candidate Ravi Kumar added to Java Developer role",
53931
54095
  time: "2 min ago",
@@ -53952,7 +54116,7 @@ var { Text: GR, Title: KR } = ia, qR = [
53952
54116
  color: "#E24B4A"
53953
54117
  }
53954
54118
  ];
53955
- function ZR() {
54119
+ function fz() {
53956
54120
  return /* @__PURE__ */ X("div", {
53957
54121
  style: {
53958
54122
  display: "flex",
@@ -53965,11 +54129,11 @@ function ZR() {
53965
54129
  title: "Admin Dashboard",
53966
54130
  children: [
53967
54131
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
53968
- /* @__PURE__ */ Y(KR, {
54132
+ /* @__PURE__ */ Y(sz, {
53969
54133
  level: 5,
53970
54134
  children: "Admin Dashboard"
53971
54135
  }),
53972
- /* @__PURE__ */ Y(GR, {
54136
+ /* @__PURE__ */ Y(oz, {
53973
54137
  type: "secondary",
53974
54138
  children: "Overview of jobs, candidates, onboarding and recent activity"
53975
54139
  })
@@ -53977,7 +54141,7 @@ function ZR() {
53977
54141
  }),
53978
54142
  /* @__PURE__ */ Y("div", {
53979
54143
  className: "admin-dashboard-stats",
53980
- children: /* @__PURE__ */ Y(aR, { stats: [
54144
+ children: /* @__PURE__ */ Y(bR, { stats: [
53981
54145
  {
53982
54146
  label: "Total Jobs",
53983
54147
  value: 1697,
@@ -54007,18 +54171,18 @@ function ZR() {
54007
54171
  }),
54008
54172
  /* @__PURE__ */ X("div", {
54009
54173
  className: "admin-dashboard-mid-row",
54010
- children: [/* @__PURE__ */ Y(WR, {}), /* @__PURE__ */ X($D, {
54174
+ children: [/* @__PURE__ */ Y(az, {}), /* @__PURE__ */ X($D, {
54011
54175
  icon: /* @__PURE__ */ Y(ua, {}),
54012
54176
  title: "Candidate Pipeline",
54013
54177
  children: [
54014
- /* @__PURE__ */ Y(GR, {
54178
+ /* @__PURE__ */ Y(oz, {
54015
54179
  type: "secondary",
54016
54180
  style: { fontSize: 12 },
54017
54181
  children: "By stage (892 total)"
54018
54182
  }),
54019
54183
  /* @__PURE__ */ Y("div", {
54020
54184
  className: "admin-pipeline-bar",
54021
- children: JR.map((e) => /* @__PURE__ */ Y("div", {
54185
+ children: lz.map((e) => /* @__PURE__ */ Y("div", {
54022
54186
  className: "admin-pipeline-seg",
54023
54187
  style: {
54024
54188
  width: `${e.pct}%`,
@@ -54028,7 +54192,7 @@ function ZR() {
54028
54192
  }),
54029
54193
  /* @__PURE__ */ Y("div", {
54030
54194
  className: "admin-pipeline-legend",
54031
- children: JR.map((e) => /* @__PURE__ */ X("div", {
54195
+ children: lz.map((e) => /* @__PURE__ */ X("div", {
54032
54196
  className: "admin-pipeline-legend-item",
54033
54197
  children: [
54034
54198
  /* @__PURE__ */ Y("span", {
@@ -54042,7 +54206,7 @@ function ZR() {
54042
54206
  }, e.label))
54043
54207
  }),
54044
54208
  /* @__PURE__ */ Y("div", { className: "admin-divider" }),
54045
- /* @__PURE__ */ Y(GR, {
54209
+ /* @__PURE__ */ Y(oz, {
54046
54210
  strong: !0,
54047
54211
  style: { fontSize: 12 },
54048
54212
  children: "Submission status"
@@ -54053,7 +54217,7 @@ function ZR() {
54053
54217
  children: [
54054
54218
  /* @__PURE__ */ X("div", {
54055
54219
  className: "admin-sub-status-item",
54056
- children: [/* @__PURE__ */ Y(GR, {
54220
+ children: [/* @__PURE__ */ Y(oz, {
54057
54221
  style: { fontSize: 13 },
54058
54222
  children: "Pending client review"
54059
54223
  }), /* @__PURE__ */ Y("span", {
@@ -54063,7 +54227,7 @@ function ZR() {
54063
54227
  }),
54064
54228
  /* @__PURE__ */ X("div", {
54065
54229
  className: "admin-sub-status-item",
54066
- children: [/* @__PURE__ */ Y(GR, {
54230
+ children: [/* @__PURE__ */ Y(oz, {
54067
54231
  style: { fontSize: 13 },
54068
54232
  children: "Client approved"
54069
54233
  }), /* @__PURE__ */ Y("span", {
@@ -54073,7 +54237,7 @@ function ZR() {
54073
54237
  }),
54074
54238
  /* @__PURE__ */ X("div", {
54075
54239
  className: "admin-sub-status-item",
54076
- children: [/* @__PURE__ */ Y(GR, {
54240
+ children: [/* @__PURE__ */ Y(oz, {
54077
54241
  style: { fontSize: 13 },
54078
54242
  children: "Rejected"
54079
54243
  }), /* @__PURE__ */ Y("span", {
@@ -54096,7 +54260,7 @@ function ZR() {
54096
54260
  size: "small",
54097
54261
  children: "View all"
54098
54262
  }),
54099
- children: YR.map((e) => /* @__PURE__ */ X("div", {
54263
+ children: uz.map((e) => /* @__PURE__ */ X("div", {
54100
54264
  className: "admin-client-row",
54101
54265
  children: [/* @__PURE__ */ X("div", {
54102
54266
  className: "admin-client-left",
@@ -54124,7 +54288,7 @@ function ZR() {
54124
54288
  }), /* @__PURE__ */ Y($D, {
54125
54289
  icon: /* @__PURE__ */ Y(ha, {}),
54126
54290
  title: "Recent Activity",
54127
- children: XR.map((e, t) => /* @__PURE__ */ X("div", {
54291
+ children: dz.map((e, t) => /* @__PURE__ */ X("div", {
54128
54292
  className: "admin-activity-row",
54129
54293
  children: [/* @__PURE__ */ Y("div", {
54130
54294
  className: "admin-activity-dot",
@@ -54152,7 +54316,7 @@ function ZR() {
54152
54316
  children: [
54153
54317
  /* @__PURE__ */ X(z, {
54154
54318
  span: 8,
54155
- children: [/* @__PURE__ */ Y(GR, {
54319
+ children: [/* @__PURE__ */ Y(oz, {
54156
54320
  type: "secondary",
54157
54321
  style: {
54158
54322
  fontSize: 12,
@@ -54165,7 +54329,7 @@ function ZR() {
54165
54329
  ["Templates", 2]
54166
54330
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
54167
54331
  className: "admin-cfg-overview-row",
54168
- children: [/* @__PURE__ */ Y(GR, {
54332
+ children: [/* @__PURE__ */ Y(oz, {
54169
54333
  style: { fontSize: 12 },
54170
54334
  children: e
54171
54335
  }), /* @__PURE__ */ X("span", {
@@ -54176,7 +54340,7 @@ function ZR() {
54176
54340
  }),
54177
54341
  /* @__PURE__ */ X(z, {
54178
54342
  span: 8,
54179
- children: [/* @__PURE__ */ Y(GR, {
54343
+ children: [/* @__PURE__ */ Y(oz, {
54180
54344
  type: "secondary",
54181
54345
  style: {
54182
54346
  fontSize: 12,
@@ -54189,7 +54353,7 @@ function ZR() {
54189
54353
  ["Submissions", 2]
54190
54354
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
54191
54355
  className: "admin-cfg-overview-row",
54192
- children: [/* @__PURE__ */ Y(GR, {
54356
+ children: [/* @__PURE__ */ Y(oz, {
54193
54357
  style: { fontSize: 12 },
54194
54358
  children: e
54195
54359
  }), /* @__PURE__ */ X("span", {
@@ -54200,7 +54364,7 @@ function ZR() {
54200
54364
  }),
54201
54365
  /* @__PURE__ */ X(z, {
54202
54366
  span: 8,
54203
- children: [/* @__PURE__ */ Y(GR, {
54367
+ children: [/* @__PURE__ */ Y(oz, {
54204
54368
  type: "secondary",
54205
54369
  style: {
54206
54370
  fontSize: 12,
@@ -54213,10 +54377,10 @@ function ZR() {
54213
54377
  ["Config Items", 19]
54214
54378
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
54215
54379
  className: "admin-cfg-overview-row",
54216
- children: [/* @__PURE__ */ Y(GR, {
54380
+ children: [/* @__PURE__ */ Y(oz, {
54217
54381
  style: { fontSize: 12 },
54218
54382
  children: e
54219
- }), /* @__PURE__ */ Y(GR, {
54383
+ }), /* @__PURE__ */ Y(oz, {
54220
54384
  strong: !0,
54221
54385
  style: { fontSize: 12 },
54222
54386
  children: t
@@ -54229,7 +54393,7 @@ function ZR() {
54229
54393
  ]
54230
54394
  });
54231
54395
  }
54232
- function QR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
54396
+ function pz({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
54233
54397
  return /* @__PURE__ */ X(Ji, {
54234
54398
  gutter: [16, 16],
54235
54399
  children: [
@@ -54248,11 +54412,11 @@ function QR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
54248
54412
  }),
54249
54413
  children: [
54250
54414
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
54251
- /* @__PURE__ */ Y(KR, {
54415
+ /* @__PURE__ */ Y(sz, {
54252
54416
  level: 5,
54253
54417
  children: e?.heading
54254
54418
  }),
54255
- /* @__PURE__ */ Y(GR, {
54419
+ /* @__PURE__ */ Y(oz, {
54256
54420
  type: "secondary",
54257
54421
  children: e?.desc
54258
54422
  })
@@ -54266,7 +54430,7 @@ function QR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
54266
54430
  children: /* @__PURE__ */ Y($D, {
54267
54431
  icon: /* @__PURE__ */ Y(ua, {}),
54268
54432
  title: "Configuration Items",
54269
- extra: /* @__PURE__ */ X(GR, {
54433
+ extra: /* @__PURE__ */ X(oz, {
54270
54434
  type: "secondary",
54271
54435
  children: [
54272
54436
  n.length,
@@ -54333,7 +54497,7 @@ function QR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
54333
54497
  title: "Section Overview",
54334
54498
  children: [/* @__PURE__ */ Y("div", {
54335
54499
  className: "admin-overview-list",
54336
- children: qR.filter((e) => e.group !== "Dashboard").map((e) => {
54500
+ children: cz.filter((e) => e.group !== "Dashboard").map((e) => {
54337
54501
  let n = e.group === t?.group;
54338
54502
  return /* @__PURE__ */ X("div", {
54339
54503
  className: `admin-overview-item${n ? " active" : ""}`,
@@ -54381,12 +54545,12 @@ function QR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
54381
54545
  ]
54382
54546
  });
54383
54547
  }
54384
- function $R() {
54385
- let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => qR.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => qR.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
54548
+ function mz() {
54549
+ let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => cz.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => cz.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
54386
54550
  if (!a?.cards) return [];
54387
54551
  let e = n.trim().toLowerCase();
54388
54552
  return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
54389
- }, [a, n]), c = I(() => qR.map((e) => ({
54553
+ }, [a, n]), c = I(() => cz.map((e) => ({
54390
54554
  key: e.group,
54391
54555
  type: "group",
54392
54556
  label: e.group,
@@ -54435,7 +54599,7 @@ function $R() {
54435
54599
  children: "Groups"
54436
54600
  }), /* @__PURE__ */ Y("span", {
54437
54601
  className: "admin-sidebar-pill-value",
54438
- children: qR.length
54602
+ children: cz.length
54439
54603
  })]
54440
54604
  })
54441
54605
  }), /* @__PURE__ */ Y(z, {
@@ -54465,7 +54629,7 @@ function $R() {
54465
54629
  xs: 24,
54466
54630
  lg: 18,
54467
54631
  xl: 19,
54468
- children: e === "dashboard" ? /* @__PURE__ */ Y(ZR, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(cA, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(FA, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(wj, {}) : a?.component === "users" ? /* @__PURE__ */ Y(lR, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(hR, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(NR, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(BR, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(Ij, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(Bj, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(Kj, {}) : /* @__PURE__ */ Y(QR, {
54632
+ children: e === "dashboard" ? /* @__PURE__ */ Y(fz, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(cA, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(FA, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(wj, {}) : a?.component === "users" ? /* @__PURE__ */ Y(wR, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(AR, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(JR, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(tz, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(Ij, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(Bj, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(Kj, {}) : /* @__PURE__ */ Y(pz, {
54469
54633
  activeSection: a,
54470
54634
  activeGroup: o,
54471
54635
  filteredCards: s,
@@ -54480,8 +54644,8 @@ function $R() {
54480
54644
  }
54481
54645
  //#endregion
54482
54646
  //#region src/pages/stickyNotesFullPage.jsx
54483
- var { Title: ez } = ia;
54484
- function tz() {
54647
+ var { Title: hz } = ia;
54648
+ function gz() {
54485
54649
  let e = ds(), { state: t } = us(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
54486
54650
  ...t?.request,
54487
54651
  params: {
@@ -54506,7 +54670,7 @@ function tz() {
54506
54670
  }
54507
54671
  //#endregion
54508
54672
  //#region src/pages/BulkUpload/index.jsx
54509
- var { Text: nz, Title: rz } = ia, iz = 10485760, az = "/templates/test_cases_flow_template.base64.txt", oz = "test_cases_flow_template.xlsx", sz = "module | subModule | step_order | description | actions | key | value | expected | scenario", cz = {
54673
+ var { Text: _z, Title: vz } = ia, yz = 10485760, bz = "/templates/test_cases_flow_template.base64.txt", xz = "test_cases_flow_template.xlsx", Sz = "module | subModule | step_order | description | actions | key | value | expected | scenario", Cz = {
54510
54674
  idle: 0,
54511
54675
  module_set: 1,
54512
54676
  encoding: 1,
@@ -54515,7 +54679,7 @@ var { Text: nz, Title: rz } = ia, iz = 10485760, az = "/templates/test_cases_flo
54515
54679
  inserting: 3,
54516
54680
  done: 4,
54517
54681
  error: 1
54518
- }, lz = [
54682
+ }, wz = [
54519
54683
  {
54520
54684
  label: "Home",
54521
54685
  href: "/"
@@ -54529,31 +54693,31 @@ var { Text: nz, Title: rz } = ia, iz = 10485760, az = "/templates/test_cases_flo
54529
54693
  href: "/bulk-upload"
54530
54694
  }
54531
54695
  ];
54532
- function uz(e) {
54696
+ function Tz(e) {
54533
54697
  return new Promise((t, n) => {
54534
54698
  let r = new FileReader();
54535
54699
  r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
54536
54700
  });
54537
54701
  }
54538
- function dz(e) {
54702
+ function Ez(e) {
54539
54703
  return e.filter((e) => e.row_status === "valid").map((e) => {
54540
54704
  let t = { ...e };
54541
54705
  return delete t.row_status, delete t.errors, t;
54542
54706
  });
54543
54707
  }
54544
- function fz(e) {
54708
+ function Dz(e) {
54545
54709
  return e.flatMap((e) => (e.errors ?? []).map((t) => ({
54546
54710
  id: e.id,
54547
54711
  ...t
54548
54712
  })));
54549
54713
  }
54550
- function pz({ errors: e }) {
54714
+ function Oz({ errors: e }) {
54551
54715
  return /* @__PURE__ */ Y("div", {
54552
54716
  className: "bulk-tooltip-errors",
54553
54717
  children: (e ?? []).map((e, t) => /* @__PURE__ */ Y("div", { children: e.message }, `${e.field}-${t}`))
54554
54718
  });
54555
54719
  }
54556
- function mz({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
54720
+ function kz({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
54557
54721
  return e.length === 0 ? null : /* @__PURE__ */ X("div", {
54558
54722
  className: "bulk-error-banner",
54559
54723
  children: [/* @__PURE__ */ X("div", {
@@ -54584,7 +54748,7 @@ function mz({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
54584
54748
  })]
54585
54749
  });
54586
54750
  }
54587
- function hz({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
54751
+ function Az({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
54588
54752
  let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
54589
54753
  return /* @__PURE__ */ X(J, { children: [
54590
54754
  /* @__PURE__ */ X(Ji, {
@@ -54600,7 +54764,7 @@ function hz({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
54600
54764
  type: t === "errors" ? "primary" : "default",
54601
54765
  onClick: () => n("errors"),
54602
54766
  children: "Errors only"
54603
- })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(nz, {
54767
+ })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(_z, {
54604
54768
  type: "secondary",
54605
54769
  children: [e.length, " row(s)"]
54606
54770
  }) })]
@@ -54672,7 +54836,7 @@ function hz({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
54672
54836
  children: "Valid"
54673
54837
  }) }),
54674
54838
  /* @__PURE__ */ Y("td", { children: n ? /* @__PURE__ */ Y(K, {
54675
- title: /* @__PURE__ */ Y(pz, { errors: t }),
54839
+ title: /* @__PURE__ */ Y(Oz, { errors: t }),
54676
54840
  placement: "left",
54677
54841
  children: /* @__PURE__ */ X("button", {
54678
54842
  type: "button",
@@ -54709,11 +54873,11 @@ function hz({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
54709
54873
  })
54710
54874
  ] });
54711
54875
  }
54712
- function gz() {
54876
+ function jz() {
54713
54877
  let e = ds(), t = I(() => g(), []), n = Si(null), r = Si(null), [i, a] = L([]), [o, s] = L(""), [c, l] = L("idle"), [u, d] = L(!1), [f, p] = L(null), [m, h] = L([]), [_, v] = L("all"), [y, b] = L(null), [x, S] = L(null), [C, w] = L(!1), T = i.map((e) => ({
54714
54878
  value: e.modulename,
54715
54879
  label: e.modulename
54716
- })), E = fz(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = cz[c] ?? 0, A = m.find((e) => e.row_status === "invalid")?.id, j = yi(() => {
54880
+ })), E = Dz(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = Cz[c] ?? 0, A = m.find((e) => e.row_status === "invalid")?.id, j = yi(() => {
54717
54881
  s(""), l("idle"), d(!1), p(null), h([]), v("all"), b(null), S(null), n.current && (n.current.value = "");
54718
54882
  }, []);
54719
54883
  F(() => {
@@ -54739,7 +54903,7 @@ function gz() {
54739
54903
  l("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
54740
54904
  return;
54741
54905
  }
54742
- if (e.size > iz) {
54906
+ if (e.size > yz) {
54743
54907
  l("module_set"), b({ message: "File must be 10 MB or smaller." });
54744
54908
  return;
54745
54909
  }
@@ -54748,7 +54912,7 @@ function gz() {
54748
54912
  size: e.size
54749
54913
  }), l("encoding");
54750
54914
  try {
54751
- let r = await uz(e);
54915
+ let r = await Tz(e);
54752
54916
  l("validating");
54753
54917
  let i = await eD({
54754
54918
  filename: e.name,
@@ -54766,12 +54930,12 @@ function gz() {
54766
54930
  }
54767
54931
  }, te = async () => {
54768
54932
  try {
54769
- let e = await fetch(az);
54933
+ let e = await fetch(bz);
54770
54934
  if (!e.ok) throw Error(`Template file not found (${e.status})`);
54771
54935
  let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
54772
54936
  for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
54773
54937
  let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
54774
- o.href = a, o.download = oz, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
54938
+ o.href = a, o.download = xz, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
54775
54939
  } catch (e) {
54776
54940
  console.error(e), q.error("Unable to download sample template.");
54777
54941
  }
@@ -54782,7 +54946,7 @@ function gz() {
54782
54946
  project: t?.name ?? "",
54783
54947
  module: o,
54784
54948
  uploaded_by: localStorage.getItem("user_Email") ?? "",
54785
- rows: dz(m)
54949
+ rows: Ez(m)
54786
54950
  });
54787
54951
  S(n), l("done"), q.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
54788
54952
  } catch (e) {
@@ -54809,7 +54973,7 @@ function gz() {
54809
54973
  align: "middle",
54810
54974
  justify: "space-between",
54811
54975
  className: "breadcrumb-action-wrapper",
54812
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: lz }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(nz, {
54976
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: wz }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(_z, {
54813
54977
  strong: !0,
54814
54978
  children: t.name
54815
54979
  }) })]
@@ -54818,16 +54982,16 @@ function gz() {
54818
54982
  children: [
54819
54983
  /* @__PURE__ */ X("div", {
54820
54984
  className: "bulk-header",
54821
- children: [/* @__PURE__ */ Y(rz, {
54985
+ children: [/* @__PURE__ */ Y(vz, {
54822
54986
  level: 3,
54823
54987
  children: "Bulk upload test cases"
54824
54988
  }), /* @__PURE__ */ X(U, {
54825
54989
  direction: "vertical",
54826
54990
  size: 4,
54827
- children: [/* @__PURE__ */ Y(nz, {
54991
+ children: [/* @__PURE__ */ Y(_z, {
54828
54992
  type: "secondary",
54829
- children: sz
54830
- }), /* @__PURE__ */ Y(nz, {
54993
+ children: Sz
54994
+ }), /* @__PURE__ */ Y(_z, {
54831
54995
  type: "secondary",
54832
54996
  children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
54833
54997
  })]
@@ -54925,7 +55089,7 @@ function gz() {
54925
55089
  className: "v1-card zt-fall",
54926
55090
  title: "3. Validation result",
54927
55091
  children: [
54928
- /* @__PURE__ */ Y(mz, {
55092
+ /* @__PURE__ */ Y(kz, {
54929
55093
  errors: E,
54930
55094
  expanded: C,
54931
55095
  onToggle: () => w((e) => !e),
@@ -54937,7 +55101,7 @@ function gz() {
54937
55101
  message: y.message,
54938
55102
  className: "bulk-inline-alert"
54939
55103
  }),
54940
- /* @__PURE__ */ Y(hz, {
55104
+ /* @__PURE__ */ Y(Az, {
54941
55105
  rows: m,
54942
55106
  view: _,
54943
55107
  onViewChange: v,
@@ -54960,17 +55124,17 @@ function gz() {
54960
55124
  /* @__PURE__ */ Y(z, {
54961
55125
  xs: 24,
54962
55126
  md: 8,
54963
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(nz, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
55127
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(_z, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
54964
55128
  }),
54965
55129
  /* @__PURE__ */ Y(z, {
54966
55130
  xs: 24,
54967
55131
  md: 8,
54968
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(nz, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
55132
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(_z, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
54969
55133
  }),
54970
55134
  /* @__PURE__ */ Y(z, {
54971
55135
  xs: 24,
54972
55136
  md: 8,
54973
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(nz, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
55137
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(_z, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
54974
55138
  })
54975
55139
  ]
54976
55140
  }),
@@ -54994,7 +55158,7 @@ function gz() {
54994
55158
  }
54995
55159
  //#endregion
54996
55160
  //#region src/services/dropdownValues/testPageValues.js
54997
- var _z = [
55161
+ var Mz = [
54998
55162
  {
54999
55163
  value: "navigate",
55000
55164
  label: "Navigate"
@@ -55127,75 +55291,75 @@ var _z = [
55127
55291
  value: "wait_for_text",
55128
55292
  label: "Wait For Text"
55129
55293
  }
55130
- ], { Text: vz } = ia, yz = [{
55294
+ ], { Text: Nz } = ia, Pz = [{
55131
55295
  label: "Home",
55132
55296
  href: "/"
55133
55297
  }, {
55134
55298
  label: "Test Cases",
55135
55299
  href: "/test-cases"
55136
- }], bz = {
55300
+ }], Fz = {
55137
55301
  tags: "regression",
55138
55302
  active: 1
55139
- }, xz = { module: {
55303
+ }, Iz = { module: {
55140
55304
  dbName: "Modules",
55141
55305
  formField: "module",
55142
55306
  label: "Module"
55143
55307
  } };
55144
- function Sz(e = []) {
55308
+ function Lz(e = []) {
55145
55309
  return e.map((e) => ({
55146
55310
  value: e,
55147
55311
  label: e
55148
55312
  }));
55149
55313
  }
55150
- function Cz(e = "") {
55314
+ function Rz(e = "") {
55151
55315
  return String(e ?? "").trim();
55152
55316
  }
55153
- function wz(e = "") {
55154
- return Cz(e).toLowerCase();
55317
+ function zz(e = "") {
55318
+ return Rz(e).toLowerCase();
55155
55319
  }
55156
- function Tz(e = []) {
55320
+ function Bz(e = []) {
55157
55321
  let t = /* @__PURE__ */ new Map();
55158
55322
  return e.forEach((e) => {
55159
- let n = Cz(e?.flow), r = n.toLowerCase();
55323
+ let n = Rz(e?.flow), r = n.toLowerCase();
55160
55324
  n && !t.has(r) && t.set(r, n);
55161
55325
  }), Array.from(t.values()).map((e) => ({
55162
55326
  value: e,
55163
55327
  label: e
55164
55328
  }));
55165
55329
  }
55166
- function Ez(e = [], t, n) {
55167
- let r = Cz(t).toLowerCase(), i = Cz(n).toLowerCase();
55330
+ function Vz(e = [], t, n) {
55331
+ let r = Rz(t).toLowerCase(), i = Rz(n).toLowerCase();
55168
55332
  return e.reduce((e, t) => {
55169
- let n = Cz(t?.module).toLowerCase(), a = Cz(t?.flow).toLowerCase();
55333
+ let n = Rz(t?.module).toLowerCase(), a = Rz(t?.flow).toLowerCase();
55170
55334
  if (n !== r || a !== i) return e;
55171
55335
  let o = Number(t?.step_order) || 0;
55172
55336
  return Math.max(e, o);
55173
55337
  }, 0) + 1;
55174
55338
  }
55175
- function Dz({ icon: e, title: t }) {
55339
+ function Hz({ icon: e, title: t }) {
55176
55340
  return /* @__PURE__ */ X(U, {
55177
55341
  size: 10,
55178
55342
  align: "center",
55179
55343
  children: [/* @__PURE__ */ Y("div", {
55180
55344
  className: "v1-section-icon-box",
55181
55345
  children: e
55182
- }), /* @__PURE__ */ Y(vz, {
55346
+ }), /* @__PURE__ */ Y(Nz, {
55183
55347
  strong: !0,
55184
55348
  className: "v1-section-label",
55185
55349
  children: t
55186
55350
  })]
55187
55351
  });
55188
55352
  }
55189
- function Oz() {
55353
+ function Uz() {
55190
55354
  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({
55191
55355
  open: !1,
55192
55356
  typeKey: "module"
55193
- }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ds(), x = xz[f.typeKey], S = I(() => Sz(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!Cz(C), E = !!Cz(w), D = !T, O = !T || !E, k = (e, t = []) => {
55357
+ }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ds(), x = Iz[f.typeKey], S = I(() => Lz(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!Rz(C), E = !!Rz(w), D = !T, O = !T || !E, k = (e, t = []) => {
55194
55358
  e === "module" && r(t);
55195
55359
  }, A = async () => {
55196
55360
  l(!0);
55197
55361
  try {
55198
- let e = await YE(xz.module.dbName);
55362
+ let e = await YE(Iz.module.dbName);
55199
55363
  r(e?.items ?? []);
55200
55364
  } catch (e) {
55201
55365
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -55203,7 +55367,7 @@ function Oz() {
55203
55367
  l(!1);
55204
55368
  }
55205
55369
  }, j = yi(async (t) => {
55206
- let n = Cz(t);
55370
+ let n = Rz(t);
55207
55371
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
55208
55372
  d(!0);
55209
55373
  try {
@@ -55212,7 +55376,7 @@ function Oz() {
55212
55376
  offset: 0,
55213
55377
  module: n
55214
55378
  }), t = Array.isArray(e?.items) ? e.items : [];
55215
- a(t), s(Tz(t));
55379
+ a(t), s(Bz(t));
55216
55380
  } catch (e) {
55217
55381
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
55218
55382
  } finally {
@@ -55220,14 +55384,14 @@ function Oz() {
55220
55384
  }
55221
55385
  }
55222
55386
  }, [e]), M = yi(async (t, n, r) => {
55223
- let i = Cz(t), a = Cz(n);
55387
+ let i = Rz(t), a = Rz(n);
55224
55388
  if (!i || !a) {
55225
55389
  e.setFieldsValue({ step_order: void 0 });
55226
55390
  return;
55227
55391
  }
55228
55392
  _(!0);
55229
55393
  try {
55230
- e.setFieldsValue({ step_order: Ez(r, i, a) });
55394
+ e.setFieldsValue({ step_order: Vz(r, i, a) });
55231
55395
  } catch (e) {
55232
55396
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
55233
55397
  } finally {
@@ -55248,15 +55412,15 @@ function Oz() {
55248
55412
  ]);
55249
55413
  let ee = async (t) => {
55250
55414
  let n = {
55251
- module: Cz(t.module),
55252
- flow: Cz(t.flow),
55415
+ module: Rz(t.module),
55416
+ flow: Rz(t.flow),
55253
55417
  step_order: Number(t.step_order),
55254
- description: Cz(t.description),
55255
- keyword: wz(t.keyword),
55256
- target: Cz(t.target),
55257
- value: Cz(t.value),
55258
- expected: Cz(t.expected),
55259
- tags: t.tags ? Cz(t.tags) : bz.tags,
55418
+ description: Rz(t.description),
55419
+ keyword: zz(t.keyword),
55420
+ target: Rz(t.target),
55421
+ value: Rz(t.value),
55422
+ expected: Rz(t.expected),
55423
+ tags: t.tags ? Rz(t.tags) : Fz.tags,
55260
55424
  active: Number(t.active)
55261
55425
  };
55262
55426
  y(!0);
@@ -55268,26 +55432,26 @@ function Oz() {
55268
55432
  y(!1);
55269
55433
  }
55270
55434
  }, te = (t, n) => {
55271
- e.setFieldsValue({ [t]: Cz(n) });
55435
+ e.setFieldsValue({ [t]: Rz(n) });
55272
55436
  }, N = (t) => {
55273
55437
  e.setFieldsValue({
55274
- module: Cz(t),
55438
+ module: Rz(t),
55275
55439
  flow: void 0,
55276
55440
  step_order: void 0,
55277
55441
  keyword: void 0,
55278
55442
  description: void 0,
55279
55443
  target: void 0,
55280
- tags: bz.tags,
55444
+ tags: Fz.tags,
55281
55445
  value: void 0,
55282
55446
  expected: void 0
55283
55447
  });
55284
55448
  }, ne = (t) => {
55285
55449
  e.setFieldsValue({
55286
- flow: Cz(t),
55450
+ flow: Rz(t),
55287
55451
  step_order: void 0
55288
55452
  });
55289
55453
  }, re = (e) => {
55290
- let n = xz[e];
55454
+ let n = Iz[e];
55291
55455
  p({
55292
55456
  open: !0,
55293
55457
  typeKey: e
@@ -55302,7 +55466,7 @@ function Oz() {
55302
55466
  })), t.resetFields();
55303
55467
  }, ie = async () => {
55304
55468
  try {
55305
- let n = Cz((await t.validateFields()).name), r = await XE({
55469
+ let n = Rz((await t.validateFields()).name), r = await XE({
55306
55470
  name: n,
55307
55471
  type: x.dbName
55308
55472
  });
@@ -55320,7 +55484,7 @@ function Oz() {
55320
55484
  align: "middle",
55321
55485
  justify: "space-between",
55322
55486
  className: "breadcrumb-action-wrapper",
55323
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: yz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
55487
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Pz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
55324
55488
  type: "link",
55325
55489
  onClick: () => b("/zinnext-home"),
55326
55490
  children: "View Table"
@@ -55335,7 +55499,7 @@ function Oz() {
55335
55499
  children: /* @__PURE__ */ X(U, {
55336
55500
  align: "center",
55337
55501
  size: 10,
55338
- children: [/* @__PURE__ */ Y(To, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(vz, {
55502
+ children: [/* @__PURE__ */ Y(To, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(Nz, {
55339
55503
  strong: !0,
55340
55504
  style: { fontSize: 16 },
55341
55505
  children: "Add Test Case"
@@ -55351,16 +55515,16 @@ function Oz() {
55351
55515
  className: "v1-required-mark",
55352
55516
  children: " *"
55353
55517
  })] }),
55354
- initialValues: bz,
55518
+ initialValues: Fz,
55355
55519
  onFinish: ee,
55356
55520
  autoComplete: "off",
55357
55521
  children: [/* @__PURE__ */ Y(Oi, {
55358
55522
  className: "v1-card",
55359
- title: /* @__PURE__ */ Y(Dz, {
55523
+ title: /* @__PURE__ */ Y(Hz, {
55360
55524
  icon: /* @__PURE__ */ Y($a, {}),
55361
55525
  title: "Test Case Details"
55362
55526
  }),
55363
- extra: /* @__PURE__ */ Y(vz, {
55527
+ extra: /* @__PURE__ */ Y(Nz, {
55364
55528
  type: "secondary",
55365
55529
  className: "v1-card-subtitle",
55366
55530
  children: "Module, flow, step order and execution data"
@@ -55437,8 +55601,8 @@ function Oz() {
55437
55601
  disabled: O,
55438
55602
  optionFilterProp: "label",
55439
55603
  placeholder: "Select action",
55440
- options: _z,
55441
- onChange: (t) => e.setFieldsValue({ keyword: wz(t) })
55604
+ options: Mz,
55605
+ onChange: (t) => e.setFieldsValue({ keyword: zz(t) })
55442
55606
  })
55443
55607
  })
55444
55608
  }),
@@ -55558,7 +55722,7 @@ function Oz() {
55558
55722
  maxLength: 100,
55559
55723
  placeholder: `Enter ${x.label.toLowerCase()} name`,
55560
55724
  onBlur: (e) => {
55561
- t.setFieldsValue({ name: Cz(e.target.value) });
55725
+ t.setFieldsValue({ name: Rz(e.target.value) });
55562
55726
  }
55563
55727
  })
55564
55728
  }), /* @__PURE__ */ Y(B.Item, {
@@ -55575,23 +55739,23 @@ function Oz() {
55575
55739
  }
55576
55740
  //#endregion
55577
55741
  //#region src/pages/TestingPage/ZinnextTestForm.jsx
55578
- var { Text: kz } = ia, Az = [{
55742
+ var { Text: Wz } = ia, Gz = [{
55579
55743
  label: "Home",
55580
55744
  href: "/"
55581
55745
  }, {
55582
55746
  label: "Test Cases",
55583
55747
  href: "/addTestCase"
55584
55748
  }];
55585
- function jz(e = "") {
55749
+ function Kz(e = "") {
55586
55750
  return String(e ?? "").trim();
55587
55751
  }
55588
- function Mz(e = [], t) {
55752
+ function qz(e = [], t) {
55589
55753
  return e.map((e) => ({
55590
55754
  value: e.id,
55591
55755
  label: e[t]
55592
55756
  }));
55593
55757
  }
55594
- var Nz = [
55758
+ var Jz = [
55595
55759
  {
55596
55760
  label: "Step",
55597
55761
  value: "step_order",
@@ -55630,22 +55794,22 @@ var Nz = [
55630
55794
  children: "Negative"
55631
55795
  })
55632
55796
  }
55633
- ], Pz = {
55797
+ ], Yz = {
55634
55798
  key: !1,
55635
55799
  value: !1,
55636
55800
  expected: !1
55637
55801
  };
55638
- function Fz(e, t) {
55639
- return t ? e[t] ?? Pz : Pz;
55802
+ function Xz(e, t) {
55803
+ return t ? e[t] ?? Yz : Yz;
55640
55804
  }
55641
- function Iz(e, t) {
55805
+ function Zz(e, t) {
55642
55806
  e.setFields(t.map((e) => ({
55643
55807
  name: e,
55644
55808
  errors: []
55645
55809
  })));
55646
55810
  }
55647
- function Lz() {
55648
- let [e] = B.useForm(), t = ds(), [n] = ps(), r = n.get("edit"), i = !!r, a = I(() => g(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(_z), [m, h] = L({}), [_, v] = L(!1), [y, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), A = !!D, j = !!O, M = I(() => Fz(m, k), [m, k]), ee = I(() => Mz(o, "modulename"), [o]), te = I(() => Mz(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 () => {
55811
+ function Qz() {
55812
+ let [e] = B.useForm(), t = ds(), [n] = ps(), r = n.get("edit"), i = !!r, a = I(() => g(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(Mz), [m, h] = L({}), [_, v] = L(!1), [y, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), A = !!D, j = !!O, M = I(() => Xz(m, k), [m, k]), ee = I(() => qz(o, "modulename"), [o]), te = I(() => qz(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 () => {
55649
55813
  try {
55650
55814
  let e = await ZE();
55651
55815
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
@@ -55791,10 +55955,10 @@ function Lz() {
55791
55955
  align: "middle",
55792
55956
  justify: "space-between",
55793
55957
  className: "breadcrumb-action-wrapper",
55794
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Az }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
55958
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Gz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
55795
55959
  size: 6,
55796
55960
  className: "zt-section-title",
55797
- children: [/* @__PURE__ */ Y(Eo, {}), /* @__PURE__ */ Y(kz, {
55961
+ children: [/* @__PURE__ */ Y(Eo, {}), /* @__PURE__ */ Y(Wz, {
55798
55962
  strong: !0,
55799
55963
  children: a.name
55800
55964
  })]
@@ -55815,11 +55979,11 @@ function Lz() {
55815
55979
  product_parent_ID: Number(a?.id),
55816
55980
  module_parent_ID: Number(n.module),
55817
55981
  submodule_parent_ID: Number(n.submodule),
55818
- description: jz(n.description),
55819
- actions: jz(n.actions),
55820
- key: jz(n.key),
55821
- value: jz(n.value),
55822
- expected: jz(n.expected),
55982
+ description: Kz(n.description),
55983
+ actions: Kz(n.actions),
55984
+ key: Kz(n.key),
55985
+ value: Kz(n.value),
55986
+ expected: Kz(n.expected),
55823
55987
  scenario: +!!n.scenario,
55824
55988
  active: +!!n.active
55825
55989
  };
@@ -55885,7 +56049,7 @@ function Lz() {
55885
56049
  key: void 0,
55886
56050
  value: void 0,
55887
56051
  expected: void 0
55888
- }), Iz(e, [
56052
+ }), Zz(e, [
55889
56053
  "actions",
55890
56054
  "key",
55891
56055
  "value",
@@ -55916,7 +56080,7 @@ function Lz() {
55916
56080
  key: void 0,
55917
56081
  value: void 0,
55918
56082
  expected: void 0
55919
- }), Iz(e, [
56083
+ }), Zz(e, [
55920
56084
  "actions",
55921
56085
  "key",
55922
56086
  "value",
@@ -55970,7 +56134,7 @@ function Lz() {
55970
56134
  /* @__PURE__ */ Y("span", { children: "Step Details" })
55971
56135
  ]
55972
56136
  }),
55973
- extra: /* @__PURE__ */ X(kz, {
56137
+ extra: /* @__PURE__ */ X(Wz, {
55974
56138
  type: "secondary",
55975
56139
  children: [
55976
56140
  N,
@@ -56010,13 +56174,13 @@ function Lz() {
56010
56174
  placeholder: "Select action",
56011
56175
  options: f,
56012
56176
  onChange: (t) => {
56013
- let n = Fz(m, t);
56177
+ let n = Xz(m, t);
56014
56178
  e.setFieldsValue({
56015
56179
  actions: t,
56016
56180
  key: n.key ? e.getFieldValue("key") : void 0,
56017
56181
  value: n.value ? e.getFieldValue("value") : void 0,
56018
56182
  expected: n.expected ? e.getFieldValue("expected") : void 0
56019
- }), Iz(e, [
56183
+ }), Zz(e, [
56020
56184
  "key",
56021
56185
  "value",
56022
56186
  "expected"
@@ -56125,7 +56289,7 @@ function Lz() {
56125
56289
  children: /* @__PURE__ */ Y(mS, {
56126
56290
  listName: "Added Steps",
56127
56291
  loading: x,
56128
- fields: Nz,
56292
+ fields: Jz,
56129
56293
  dataSource: u,
56130
56294
  current: 1,
56131
56295
  pageSize: Math.max(u.length, 1),
@@ -56141,7 +56305,7 @@ function Lz() {
56141
56305
  }
56142
56306
  //#endregion
56143
56307
  //#region src/pages/TestingPage/ManageModules.jsx
56144
- var { Text: Rz } = ia, zz = [
56308
+ var { Text: $z } = ia, eB = [
56145
56309
  {
56146
56310
  label: "Home",
56147
56311
  href: "/"
@@ -56155,7 +56319,7 @@ var { Text: Rz } = ia, zz = [
56155
56319
  href: "/manageModules"
56156
56320
  }
56157
56321
  ];
56158
- function Bz() {
56322
+ function tB() {
56159
56323
  let e = ds(), t = I(() => g(), []), [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), [_, v] = L(10), y = yi(async (e) => {
56160
56324
  if (!e) {
56161
56325
  r([]);
@@ -56223,7 +56387,7 @@ function Bz() {
56223
56387
  align: "middle",
56224
56388
  justify: "space-between",
56225
56389
  className: "breadcrumb-action-wrapper",
56226
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: zz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
56390
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: eB }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
56227
56391
  type: "link",
56228
56392
  onClick: () => e("/addTestCase"),
56229
56393
  children: "Back to Form"
@@ -56243,7 +56407,7 @@ function Bz() {
56243
56407
  children: [
56244
56408
  /* @__PURE__ */ Y(Eo, {}),
56245
56409
  /* @__PURE__ */ Y("span", { children: "Project:" }),
56246
- /* @__PURE__ */ Y(Rz, {
56410
+ /* @__PURE__ */ Y($z, {
56247
56411
  strong: !0,
56248
56412
  children: t.name
56249
56413
  })
@@ -56319,7 +56483,7 @@ function Bz() {
56319
56483
  children: /* @__PURE__ */ X(U, {
56320
56484
  direction: "vertical",
56321
56485
  className: "zt-modal-stack",
56322
- children: [/* @__PURE__ */ X(Rz, {
56486
+ children: [/* @__PURE__ */ X($z, {
56323
56487
  type: "secondary",
56324
56488
  children: ["Project: ", /* @__PURE__ */ Y("b", { children: t.name })]
56325
56489
  }), /* @__PURE__ */ Y(V, {
@@ -56336,7 +56500,7 @@ function Bz() {
56336
56500
  }
56337
56501
  //#endregion
56338
56502
  //#region src/pages/TestingPage/ManageSubmodules.jsx
56339
- var { Text: Vz } = ia, Hz = [
56503
+ var { Text: nB } = ia, rB = [
56340
56504
  {
56341
56505
  label: "Home",
56342
56506
  href: "/"
@@ -56354,7 +56518,7 @@ var { Text: Vz } = ia, Hz = [
56354
56518
  href: "/test-cases/zinnext/submodules"
56355
56519
  }
56356
56520
  ];
56357
- function Uz() {
56521
+ function iB() {
56358
56522
  let e = ds(), [t] = ps(), n = I(() => g(), []), 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), [_, v] = L(10), y = yi(async (e, t) => {
56359
56523
  if (!e || !t) {
56360
56524
  a([]);
@@ -56424,7 +56588,7 @@ function Uz() {
56424
56588
  align: "middle",
56425
56589
  justify: "space-between",
56426
56590
  className: "breadcrumb-action-wrapper",
56427
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Hz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
56591
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: rB }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
56428
56592
  type: "link",
56429
56593
  onClick: () => e("/manageModules"),
56430
56594
  children: "Back to Modules"
@@ -56447,7 +56611,7 @@ function Uz() {
56447
56611
  children: [
56448
56612
  /* @__PURE__ */ Y(Eo, {}),
56449
56613
  /* @__PURE__ */ Y("span", { children: "Project:" }),
56450
- /* @__PURE__ */ Y(Vz, {
56614
+ /* @__PURE__ */ Y(nB, {
56451
56615
  strong: !0,
56452
56616
  children: n.name
56453
56617
  })
@@ -56457,7 +56621,7 @@ function Uz() {
56457
56621
  children: [
56458
56622
  /* @__PURE__ */ Y(ua, {}),
56459
56623
  /* @__PURE__ */ Y("span", { children: "Module:" }),
56460
- /* @__PURE__ */ Y(Vz, {
56624
+ /* @__PURE__ */ Y(nB, {
56461
56625
  strong: !0,
56462
56626
  children: r
56463
56627
  })
@@ -56520,7 +56684,7 @@ function Uz() {
56520
56684
  children: /* @__PURE__ */ X(U, {
56521
56685
  direction: "vertical",
56522
56686
  className: "zt-modal-stack",
56523
- children: [/* @__PURE__ */ X(Vz, {
56687
+ children: [/* @__PURE__ */ X(nB, {
56524
56688
  type: "secondary",
56525
56689
  children: [
56526
56690
  "Project: ",
@@ -56542,7 +56706,7 @@ function Uz() {
56542
56706
  }
56543
56707
  //#endregion
56544
56708
  //#region src/pages/TestingPage/ZinnextTableView.jsx
56545
- var { Text: Wz } = ia, Gz = [
56709
+ var { Text: aB } = ia, oB = [
56546
56710
  {
56547
56711
  label: "Home",
56548
56712
  href: "/"
@@ -56556,7 +56720,7 @@ var { Text: Wz } = ia, Gz = [
56556
56720
  href: "/viewTestCase"
56557
56721
  }
56558
56722
  ];
56559
- function Kz() {
56723
+ function sB() {
56560
56724
  let e = ds(), [t, n] = L([]), [r, i] = L(0), [a, o] = L(!1), s = I(() => g(), []), [c, l] = L(""), [u, d] = L(1), [f, p] = L(20), [m, h] = L(null), _ = yi(async (e = {}) => {
56561
56725
  o(!0);
56562
56726
  try {
@@ -56616,7 +56780,7 @@ function Kz() {
56616
56780
  align: "middle",
56617
56781
  justify: "space-between",
56618
56782
  className: "breadcrumb-action-wrapper",
56619
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Gz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
56783
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: oB }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
56620
56784
  type: "link",
56621
56785
  onClick: () => e("/addTestCase"),
56622
56786
  children: "Back to Form"
@@ -56630,7 +56794,7 @@ function Kz() {
56630
56794
  className: "zt-section-title",
56631
56795
  children: [/* @__PURE__ */ Y(Uo, {}), /* @__PURE__ */ Y("span", { children: "Test Flows" })]
56632
56796
  }),
56633
- extra: /* @__PURE__ */ X(Wz, {
56797
+ extra: /* @__PURE__ */ X(aB, {
56634
56798
  type: "secondary",
56635
56799
  children: [r, " row(s)"]
56636
56800
  }),
@@ -56784,17 +56948,17 @@ function Kz() {
56784
56948
  }
56785
56949
  //#endregion
56786
56950
  //#region src/pages/TestingPage/testHomePage.jsx
56787
- var qz = [{
56951
+ var cB = [{
56788
56952
  label: "Home",
56789
56953
  href: "/"
56790
56954
  }, {
56791
56955
  label: "Test Cases",
56792
56956
  href: "/test-cases"
56793
56957
  }];
56794
- function Jz() {
56958
+ function lB() {
56795
56959
  return /* @__PURE__ */ X("main", {
56796
56960
  className: "jobs-list-page",
56797
- children: [/* @__PURE__ */ Y(Fr, { items: qz }), /* @__PURE__ */ Y(Pm, {
56961
+ children: [/* @__PURE__ */ Y(Fr, { items: cB }), /* @__PURE__ */ Y(Pm, {
56798
56962
  moduleName: "test-flows",
56799
56963
  rowKey: "id"
56800
56964
  })]
@@ -56802,85 +56966,85 @@ function Jz() {
56802
56966
  }
56803
56967
  //#endregion
56804
56968
  //#region src/pages/TestingPage/lms-test-form.jsx
56805
- var { Text: Yz } = ia, Xz = [{
56969
+ var { Text: uB } = ia, dB = [{
56806
56970
  label: "Home",
56807
56971
  href: "/"
56808
56972
  }, {
56809
56973
  label: "LMS Cases",
56810
56974
  href: "/lms-cases"
56811
- }], Zz = {
56975
+ }], fB = {
56812
56976
  tags: "regression",
56813
56977
  active: 1
56814
- }, Qz = { module: {
56978
+ }, pB = { module: {
56815
56979
  dbName: "Modules",
56816
56980
  formField: "module",
56817
56981
  label: "Module"
56818
- } }, $z = {
56982
+ } }, mB = {
56819
56983
  key: !1,
56820
56984
  value: !1,
56821
56985
  expected: !1
56822
56986
  };
56823
- function eB(e, t) {
56824
- return t ? e[t] ?? $z : $z;
56987
+ function hB(e, t) {
56988
+ return t ? e[t] ?? mB : mB;
56825
56989
  }
56826
- function tB(e, t) {
56990
+ function gB(e, t) {
56827
56991
  e.setFields(t.map((e) => ({
56828
56992
  name: e,
56829
56993
  errors: []
56830
56994
  })));
56831
56995
  }
56832
- function nB(e = []) {
56996
+ function _B(e = []) {
56833
56997
  return e.map((e) => ({
56834
56998
  value: e,
56835
56999
  label: e
56836
57000
  }));
56837
57001
  }
56838
- function rB(e = "") {
57002
+ function vB(e = "") {
56839
57003
  return String(e ?? "").trim();
56840
57004
  }
56841
- function iB(e = []) {
57005
+ function yB(e = []) {
56842
57006
  let t = /* @__PURE__ */ new Map();
56843
57007
  return e.forEach((e) => {
56844
- let n = rB(e?.flow), r = n.toLowerCase();
57008
+ let n = vB(e?.flow), r = n.toLowerCase();
56845
57009
  n && !t.has(r) && t.set(r, n);
56846
57010
  }), Array.from(t.values()).map((e) => ({
56847
57011
  value: e,
56848
57012
  label: e
56849
57013
  }));
56850
57014
  }
56851
- function aB(e = [], t, n) {
56852
- let r = rB(t).toLowerCase(), i = rB(n).toLowerCase();
57015
+ function bB(e = [], t, n) {
57016
+ let r = vB(t).toLowerCase(), i = vB(n).toLowerCase();
56853
57017
  return e.reduce((e, t) => {
56854
- let n = rB(t?.module).toLowerCase(), a = rB(t?.flow).toLowerCase();
57018
+ let n = vB(t?.module).toLowerCase(), a = vB(t?.flow).toLowerCase();
56855
57019
  if (n !== r || a !== i) return e;
56856
57020
  let o = Number(t?.step_order) || 0;
56857
57021
  return Math.max(e, o);
56858
57022
  }, 0) + 1;
56859
57023
  }
56860
- function oB({ icon: e, title: t }) {
57024
+ function xB({ icon: e, title: t }) {
56861
57025
  return /* @__PURE__ */ X(U, {
56862
57026
  size: 10,
56863
57027
  align: "center",
56864
57028
  children: [/* @__PURE__ */ Y("div", {
56865
57029
  className: "v1-section-icon-box",
56866
57030
  children: e
56867
- }), /* @__PURE__ */ Y(Yz, {
57031
+ }), /* @__PURE__ */ Y(uB, {
56868
57032
  strong: !0,
56869
57033
  className: "v1-section-label",
56870
57034
  children: t
56871
57035
  })]
56872
57036
  });
56873
57037
  }
56874
- function sB() {
56875
- let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(_z), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
57038
+ function SB() {
57039
+ let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(Mz), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
56876
57040
  open: !1,
56877
57041
  typeKey: "module"
56878
- }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ds(), T = Qz[g.typeKey], E = I(() => nB(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!rB(D), j = !!rB(O), M = !A, ee = !A || !j, te = I(() => eB(u, k), [u, k]), N = (e, t = []) => {
57042
+ }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ds(), T = pB[g.typeKey], E = I(() => _B(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!vB(D), j = !!vB(O), M = !A, ee = !A || !j, te = I(() => hB(u, k), [u, k]), N = (e, t = []) => {
56879
57043
  e === "module" && r(t);
56880
57044
  }, ne = async () => {
56881
57045
  p(!0);
56882
57046
  try {
56883
- let e = await YE(Qz.module.dbName);
57047
+ let e = await YE(pB.module.dbName);
56884
57048
  r(e?.items ?? []);
56885
57049
  } catch (e) {
56886
57050
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -56895,7 +57059,7 @@ function sB() {
56895
57059
  console.error("Unable to load action field rules:", e), q.error("Unable to load action validation rules.");
56896
57060
  }
56897
57061
  }, P = yi(async (t) => {
56898
- let n = rB(t);
57062
+ let n = vB(t);
56899
57063
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
56900
57064
  h(!0);
56901
57065
  try {
@@ -56904,7 +57068,7 @@ function sB() {
56904
57068
  offset: 0,
56905
57069
  module: n
56906
57070
  }), t = Array.isArray(e?.items) ? e.items : [];
56907
- a(t), s(iB(t));
57071
+ a(t), s(yB(t));
56908
57072
  } catch (e) {
56909
57073
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
56910
57074
  } finally {
@@ -56912,14 +57076,14 @@ function sB() {
56912
57076
  }
56913
57077
  }
56914
57078
  }, [e]), ie = yi(async (t, n, r) => {
56915
- let i = rB(t), a = rB(n);
57079
+ let i = vB(t), a = vB(n);
56916
57080
  if (!i || !a) {
56917
57081
  e.setFieldsValue({ step_order: void 0 });
56918
57082
  return;
56919
57083
  }
56920
57084
  x(!0);
56921
57085
  try {
56922
- e.setFieldsValue({ step_order: aB(r, i, a) });
57086
+ e.setFieldsValue({ step_order: bB(r, i, a) });
56923
57087
  } catch (e) {
56924
57088
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
56925
57089
  } finally {
@@ -56942,15 +57106,15 @@ function sB() {
56942
57106
  ]);
56943
57107
  let ae = async (t) => {
56944
57108
  let n = {
56945
- module: rB(t.module),
56946
- flow: rB(t.flow),
57109
+ module: vB(t.module),
57110
+ flow: vB(t.flow),
56947
57111
  step_order: Number(t.step_order),
56948
- description: rB(t.description),
56949
- keyword: rB(t.keyword),
56950
- target: rB(t.target),
56951
- value: rB(t.value),
56952
- expected: rB(t.expected),
56953
- tags: t.tags ? rB(t.tags) : Zz.tags,
57112
+ description: vB(t.description),
57113
+ keyword: vB(t.keyword),
57114
+ target: vB(t.target),
57115
+ value: vB(t.value),
57116
+ expected: vB(t.expected),
57117
+ tags: t.tags ? vB(t.tags) : fB.tags,
56954
57118
  active: Number(t.active)
56955
57119
  };
56956
57120
  C(!0);
@@ -56962,19 +57126,19 @@ function sB() {
56962
57126
  C(!1);
56963
57127
  }
56964
57128
  }, oe = (t, n) => {
56965
- e.setFieldsValue({ [t]: rB(n) });
57129
+ e.setFieldsValue({ [t]: vB(n) });
56966
57130
  }, se = (t) => {
56967
57131
  e.setFieldsValue({
56968
- module: rB(t),
57132
+ module: vB(t),
56969
57133
  flow: void 0,
56970
57134
  step_order: void 0,
56971
57135
  keyword: void 0,
56972
57136
  description: void 0,
56973
57137
  target: void 0,
56974
- tags: Zz.tags,
57138
+ tags: fB.tags,
56975
57139
  value: void 0,
56976
57140
  expected: void 0
56977
- }), tB(e, [
57141
+ }), gB(e, [
56978
57142
  "keyword",
56979
57143
  "target",
56980
57144
  "value",
@@ -56982,32 +57146,32 @@ function sB() {
56982
57146
  ]);
56983
57147
  }, ce = (t) => {
56984
57148
  e.setFieldsValue({
56985
- flow: rB(t),
57149
+ flow: vB(t),
56986
57150
  step_order: void 0,
56987
57151
  keyword: void 0,
56988
57152
  target: void 0,
56989
57153
  value: void 0,
56990
57154
  expected: void 0
56991
- }), tB(e, [
57155
+ }), gB(e, [
56992
57156
  "keyword",
56993
57157
  "target",
56994
57158
  "value",
56995
57159
  "expected"
56996
57160
  ]);
56997
57161
  }, le = (t) => {
56998
- let n = eB(u, t);
57162
+ let n = hB(u, t);
56999
57163
  e.setFieldsValue({
57000
- keyword: rB(t),
57164
+ keyword: vB(t),
57001
57165
  target: n.key ? e.getFieldValue("target") : void 0,
57002
57166
  value: n.value ? e.getFieldValue("value") : void 0,
57003
57167
  expected: n.expected ? e.getFieldValue("expected") : void 0
57004
- }), tB(e, [
57168
+ }), gB(e, [
57005
57169
  "target",
57006
57170
  "value",
57007
57171
  "expected"
57008
57172
  ]);
57009
57173
  }, ue = (e) => {
57010
- let n = Qz[e];
57174
+ let n = pB[e];
57011
57175
  _({
57012
57176
  open: !0,
57013
57177
  typeKey: e
@@ -57022,7 +57186,7 @@ function sB() {
57022
57186
  })), t.resetFields();
57023
57187
  }, fe = async () => {
57024
57188
  try {
57025
- let n = rB((await t.validateFields()).name), r = await XE({
57189
+ let n = vB((await t.validateFields()).name), r = await XE({
57026
57190
  name: n,
57027
57191
  type: T.dbName
57028
57192
  });
@@ -57040,7 +57204,7 @@ function sB() {
57040
57204
  align: "middle",
57041
57205
  justify: "space-between",
57042
57206
  className: "breadcrumb-action-wrapper",
57043
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Xz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
57207
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: dB }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
57044
57208
  type: "link",
57045
57209
  onClick: () => w("/lms-home"),
57046
57210
  children: "View Table"
@@ -57055,7 +57219,7 @@ function sB() {
57055
57219
  children: /* @__PURE__ */ X(U, {
57056
57220
  align: "center",
57057
57221
  size: 10,
57058
- children: [/* @__PURE__ */ Y(To, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(Yz, {
57222
+ children: [/* @__PURE__ */ Y(To, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(uB, {
57059
57223
  strong: !0,
57060
57224
  style: { fontSize: 16 },
57061
57225
  children: "Add LMS Case"
@@ -57071,16 +57235,16 @@ function sB() {
57071
57235
  className: "v1-required-mark",
57072
57236
  children: " *"
57073
57237
  })] }),
57074
- initialValues: Zz,
57238
+ initialValues: fB,
57075
57239
  onFinish: ae,
57076
57240
  autoComplete: "off",
57077
57241
  children: [/* @__PURE__ */ Y(Oi, {
57078
57242
  className: "v1-card",
57079
- title: /* @__PURE__ */ Y(oB, {
57243
+ title: /* @__PURE__ */ Y(xB, {
57080
57244
  icon: /* @__PURE__ */ Y($a, {}),
57081
57245
  title: "LMS Case Details"
57082
57246
  }),
57083
- extra: /* @__PURE__ */ Y(Yz, {
57247
+ extra: /* @__PURE__ */ Y(uB, {
57084
57248
  type: "secondary",
57085
57249
  className: "v1-card-subtitle",
57086
57250
  children: "Module, flow, step order and execution data"
@@ -57290,7 +57454,7 @@ function sB() {
57290
57454
  maxLength: 100,
57291
57455
  placeholder: `Enter ${T.label.toLowerCase()} name`,
57292
57456
  onBlur: (e) => {
57293
- t.setFieldsValue({ name: rB(e.target.value) });
57457
+ t.setFieldsValue({ name: vB(e.target.value) });
57294
57458
  }
57295
57459
  })
57296
57460
  }), /* @__PURE__ */ Y(B.Item, {
@@ -57307,17 +57471,17 @@ function sB() {
57307
57471
  }
57308
57472
  //#endregion
57309
57473
  //#region src/pages/TestingPage/lmsHomePage.jsx
57310
- var cB = [{
57474
+ var CB = [{
57311
57475
  label: "Home",
57312
57476
  href: "/"
57313
57477
  }, {
57314
57478
  label: "LMS Cases",
57315
57479
  href: "/lms-cases"
57316
57480
  }];
57317
- function lB() {
57481
+ function wB() {
57318
57482
  return /* @__PURE__ */ X("main", {
57319
57483
  className: "jobs-list-page",
57320
- children: [/* @__PURE__ */ Y(Fr, { items: cB }), /* @__PURE__ */ Y(Pm, {
57484
+ children: [/* @__PURE__ */ Y(Fr, { items: CB }), /* @__PURE__ */ Y(Pm, {
57321
57485
  moduleName: "lms-flows",
57322
57486
  rowKey: "id"
57323
57487
  })]
@@ -57325,7 +57489,7 @@ function lB() {
57325
57489
  }
57326
57490
  //#endregion
57327
57491
  //#region src/services/mergedListApi.js
57328
- var uB = [
57492
+ var TB = [
57329
57493
  "referenceId",
57330
57494
  "ReferenceId",
57331
57495
  "candidateId",
@@ -57336,7 +57500,7 @@ var uB = [
57336
57500
  "Id",
57337
57501
  "_id"
57338
57502
  ];
57339
- function dB(e = uB) {
57503
+ function EB(e = TB) {
57340
57504
  return function(t) {
57341
57505
  if (!t || typeof t != "object") return "";
57342
57506
  for (let n of e) {
@@ -57346,7 +57510,7 @@ function dB(e = uB) {
57346
57510
  return "";
57347
57511
  };
57348
57512
  }
57349
- function fB(e, t = uB) {
57513
+ function DB(e, t = TB) {
57350
57514
  if (!e || typeof e != "object") return [];
57351
57515
  let n = [];
57352
57516
  for (let r of t) {
@@ -57355,18 +57519,18 @@ function fB(e, t = uB) {
57355
57519
  }
57356
57520
  return n;
57357
57521
  }
57358
- var pB = dB();
57359
- function mB(e) {
57360
- return typeof e == "function" ? e : typeof e == "string" ? dB([e]) : Array.isArray(e) ? dB(e) : pB;
57522
+ var OB = EB();
57523
+ function kB(e) {
57524
+ return typeof e == "function" ? e : typeof e == "string" ? EB([e]) : Array.isArray(e) ? EB(e) : OB;
57361
57525
  }
57362
- function hB(e, t, n) {
57526
+ function AB(e, t, n) {
57363
57527
  return !t || typeof t != "object" ? e : {
57364
57528
  ...t,
57365
57529
  ...e,
57366
57530
  id: e?.id ?? t?.id ?? n
57367
57531
  };
57368
57532
  }
57369
- function gB(e, t, n = {}) {
57533
+ function jB(e, t, n = {}) {
57370
57534
  return {
57371
57535
  status: "success",
57372
57536
  total: t,
@@ -57376,7 +57540,7 @@ function gB(e, t, n = {}) {
57376
57540
  }
57377
57541
  };
57378
57542
  }
57379
- var _B = [
57543
+ var MB = [
57380
57544
  "fields",
57381
57545
  "fieldConfig",
57382
57546
  "tabs",
@@ -57385,17 +57549,17 @@ var _B = [
57385
57549
  "actions",
57386
57550
  "columnActions"
57387
57551
  ];
57388
- function vB(e) {
57552
+ function NB(e) {
57389
57553
  let t = e?.data ?? e, n = {};
57390
- for (let r of _B) {
57554
+ for (let r of MB) {
57391
57555
  let i = e?.[r] ?? t?.[r];
57392
57556
  i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
57393
57557
  }
57394
57558
  return n;
57395
57559
  }
57396
- var yB = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
57397
- function bB(e, t, n) {
57398
- let r = (Array.isArray(n) ? n : [n]).map(yB).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(yB(e?.value)) || r.includes(yB(e?.label))) : -1;
57560
+ var PB = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
57561
+ function FB(e, t, n) {
57562
+ let r = (Array.isArray(n) ? n : [n]).map(PB).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(PB(e?.value)) || r.includes(PB(e?.label))) : -1;
57399
57563
  if (i === -1) return [...e, ...t];
57400
57564
  let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
57401
57565
  ...e,
@@ -57407,31 +57571,31 @@ function bB(e, t, n) {
57407
57571
  ...e.slice(i + 1)
57408
57572
  ];
57409
57573
  }
57410
- var xB = (e, t) => ef(e, t).rows, SB = (e, t) => {
57574
+ var IB = (e, t) => ef(e, t).rows, LB = (e, t) => {
57411
57575
  let { rows: n, total: r } = ef(e, t);
57412
57576
  return {
57413
57577
  rows: n,
57414
57578
  total: r
57415
57579
  };
57416
57580
  };
57417
- function CB(e, t) {
57581
+ function RB(e, t) {
57418
57582
  return function(n, r, i, a = {}) {
57419
57583
  return e(t ?? n, r, i, a);
57420
57584
  };
57421
57585
  }
57422
- function wB(e) {
57586
+ function zB(e) {
57423
57587
  return !e || typeof e != "object" || typeof (e.fetchByKeys ?? e.fetch ?? e.function) != "function" ? null : {
57424
57588
  ...e,
57425
57589
  fetchByKeys: typeof e.fetchByKeys == "function" ? e.fetchByKeys : null,
57426
57590
  fetch: typeof e.fetch == "function" ? e.fetch : null,
57427
57591
  function: typeof e.function == "function" ? e.function : null,
57428
- extractRows: typeof e.extractRows == "function" ? e.extractRows : xB,
57429
- mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : hB,
57592
+ extractRows: typeof e.extractRows == "function" ? e.extractRows : IB,
57593
+ mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : AB,
57430
57594
  fetchById: typeof e.fetchById == "function" ? e.fetchById : null
57431
57595
  };
57432
57596
  }
57433
- function TB({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
57434
- return !e && !t && !r ? [] : [wB({
57597
+ function BB({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
57598
+ return !e && !t && !r ? [] : [zB({
57435
57599
  key: i,
57436
57600
  fetchByKeys: e ? (t, n, r) => e(t, n, r) : null,
57437
57601
  function: t ? ({ moduleName: e, options: n }) => t(e, o, 0, n) : null,
@@ -57440,21 +57604,21 @@ function TB({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows:
57440
57604
  mergeRow: a
57441
57605
  })].filter(Boolean);
57442
57606
  }
57443
- function EB(e) {
57607
+ function VB(e) {
57444
57608
  if (typeof e == "function") return (t) => {
57445
57609
  let n = e(t);
57446
57610
  return n == null || n === "" ? [] : [String(n)];
57447
57611
  };
57448
- let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : uB;
57449
- return (e) => fB(e, t);
57612
+ let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : TB;
57613
+ return (e) => DB(e, t);
57450
57614
  }
57451
- function DB(e, t) {
57615
+ function HB(e, t) {
57452
57616
  let n = /* @__PURE__ */ new Map();
57453
57617
  return e.forEach((e) => {
57454
57618
  for (let r of t(e)) n.has(r) || n.set(r, e);
57455
57619
  }), n;
57456
57620
  }
57457
- function OB({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
57621
+ function UB({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
57458
57622
  return {
57459
57623
  moduleName: e,
57460
57624
  limit: t,
@@ -57468,7 +57632,7 @@ function OB({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryRe
57468
57632
  source: l
57469
57633
  };
57470
57634
  }
57471
- async function kB(e, t) {
57635
+ async function WB(e, t) {
57472
57636
  if (typeof e.args == "function") {
57473
57637
  let n = e.args(t);
57474
57638
  return (e.fetch ?? e.function ?? e.fetchByKeys)(...Array.isArray(n) ? n : [n]);
@@ -57478,8 +57642,8 @@ async function kB(e, t) {
57478
57642
  let n = e.fetch ?? e.function;
57479
57643
  return typeof n == "function" ? n(t) : null;
57480
57644
  }
57481
- function AB({ fetchPrimaryPage: e, extractPrimaryPage: t = SB, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = xB, fetchSecondary: o, extractSecondaryRows: s = xB, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = hB, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
57482
- let h = Array.isArray(r) && r.length ? r.map(wB).filter(Boolean) : TB({
57645
+ function GB({ fetchPrimaryPage: e, extractPrimaryPage: t = LB, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = IB, fetchSecondary: o, extractSecondaryRows: s = IB, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = AB, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
57646
+ let h = Array.isArray(r) && r.length ? r.map(zB).filter(Boolean) : BB({
57483
57647
  fetchSecondaryByKeys: n,
57484
57648
  fetchSecondary: o,
57485
57649
  extractSecondaryRows: s,
@@ -57499,7 +57663,7 @@ function AB({ fetchPrimaryPage: e, extractPrimaryPage: t = SB, fetchSecondaryByK
57499
57663
  }
57500
57664
  async function v(e, t, n, r, i) {
57501
57665
  if (!n) return e;
57502
- let a = t.extractRows(n, r) ?? [], o = mB(t.primaryKey ?? l), s = EB(t.key), c = DB(a, s);
57666
+ let a = t.extractRows(n, r) ?? [], o = kB(t.primaryKey ?? l), s = VB(t.key), c = HB(a, s);
57503
57667
  return Promise.all(e.map(async (e) => {
57504
57668
  let n = o(e), a = c.get(n) ?? (i() ? null : await _(t, s, r, n));
57505
57669
  return t.mergeRow(e, a, n);
@@ -57514,21 +57678,21 @@ function AB({ fetchPrimaryPage: e, extractPrimaryPage: t = SB, fetchSecondaryByK
57514
57678
  let r = {};
57515
57679
  for (let e of n) {
57516
57680
  if (!e) continue;
57517
- let t = vB(e);
57681
+ let t = NB(e);
57518
57682
  for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
57519
57683
  }
57520
- return p.length && (r.fields = bB(r.fields ?? [], p, m)), gB(e, t, r);
57684
+ return p.length && (r.fields = FB(r.fields ?? [], p, m)), jB(e, t, r);
57521
57685
  }
57522
57686
  async function x({ moduleName: e, limit: t, offset: n, options: r, primaryResponse: i, primaryRows: a, pageRows: o, total: s }) {
57523
57687
  return Promise.all(h.map(async (c) => {
57524
57688
  try {
57525
- let u = mB(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
57689
+ let u = kB(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
57526
57690
  return c.fetchByKeys && d.length === 0 ? {
57527
57691
  source: c,
57528
57692
  response: null
57529
57693
  } : {
57530
57694
  source: c,
57531
- response: await kB(c, OB({
57695
+ response: await WB(c, UB({
57532
57696
  moduleName: e,
57533
57697
  limit: t,
57534
57698
  offset: n,
@@ -57582,8 +57746,8 @@ function AB({ fetchPrimaryPage: e, extractPrimaryPage: t = SB, fetchSecondaryByK
57582
57746
  }
57583
57747
  //#endregion
57584
57748
  //#region src/services/workflowModuleListApi.js
57585
- function jB(e, t, n = {}) {
57586
- return AB({
57749
+ function KB(e, t, n = {}) {
57750
+ return GB({
57587
57751
  fetchPrimary: () => fI(e, t),
57588
57752
  extractPrimaryRows: uI,
57589
57753
  fetchSecondary: Tu,
@@ -57591,16 +57755,16 @@ function jB(e, t, n = {}) {
57591
57755
  secondaryFetchLimit: n.moduleFetchLimit ?? 200
57592
57756
  });
57593
57757
  }
57594
- function MB(e) {
57758
+ function qB(e) {
57595
57759
  let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
57596
57760
  return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
57597
57761
  }
57598
- function NB(e) {
57762
+ function JB(e) {
57599
57763
  let t = Array.isArray(e?.stages) ? e.stages : [];
57600
57764
  if (!t.length) return e;
57601
57765
  let n = {};
57602
57766
  for (let e of t) {
57603
- let t = MB(e?.stageName);
57767
+ let t = qB(e?.stageName);
57604
57768
  t && (n[t] = Number(e?.count) || 0);
57605
57769
  }
57606
57770
  return {
@@ -57608,19 +57772,19 @@ function NB(e) {
57608
57772
  ...e
57609
57773
  };
57610
57774
  }
57611
- var PB = (e) => {
57775
+ var YB = (e) => {
57612
57776
  let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
57613
57777
  return Number.isFinite(t) && t > 0 ? t : null;
57614
57778
  };
57615
- function FB({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
57779
+ function XB({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
57616
57780
  return function(n, r, i) {
57617
- let a = hB(n, r, i), o = PB(a);
57781
+ let a = AB(n, r, i), o = YB(a);
57618
57782
  return o != null && (a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
57619
57783
  };
57620
57784
  }
57621
- function IB(e = {}) {
57622
- let t = FB();
57623
- return AB({
57785
+ function ZB(e = {}) {
57786
+ let t = XB();
57787
+ return GB({
57624
57788
  primaryKey: "_id",
57625
57789
  extraFields: e.extraFields,
57626
57790
  extraFieldsAfter: e.extraFieldsAfter,
@@ -57631,7 +57795,7 @@ function IB(e = {}) {
57631
57795
  let i = Math.max(1, Number(r?.limit) || 10);
57632
57796
  return dI(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
57633
57797
  },
57634
- extractRows: (e) => (e?.items ?? []).map(NB),
57798
+ extractRows: (e) => (e?.items ?? []).map(JB),
57635
57799
  mergeRow: (e, n, r) => {
57636
57800
  let i = t(e, n, r);
57637
57801
  return n?._id && (i.workflowId = n._id), i;
@@ -57639,17 +57803,17 @@ function IB(e = {}) {
57639
57803
  }]
57640
57804
  });
57641
57805
  }
57642
- async function LB(e, t = 10, n = 0, r = {}, i = {}) {
57643
- return ef(await IB(i)(e, t, n, r), e);
57806
+ async function QB(e, t = 10, n = 0, r = {}, i = {}) {
57807
+ return ef(await ZB(i)(e, t, n, r), e);
57644
57808
  }
57645
- async function RB(e, t, n, r = 10, i = 0, a = {}) {
57646
- return ef(await jB(e, t)(n, r, i, a), n);
57809
+ async function $B(e, t, n, r = 10, i = 0, a = {}) {
57810
+ return ef(await KB(e, t)(n, r, i, a), n);
57647
57811
  }
57648
57812
  //#endregion
57649
57813
  //#region src/index.js
57650
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-08-21T13:28:17.501Z");
57651
- var zB = tR, BB = yD($R), VB = yD(tz), HB = yD(gz), UB = yD(Oz), WB = yD(Lz), GB = yD(Bz), KB = yD(Uz), qB = yD(Kz), JB = yD(Jz), YB = yD(sB), XB = yD(lB);
57814
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-08-24T09:45:01.778Z");
57815
+ var eV = gR, tV = yD(mz), nV = yD(gz), rV = yD(jz), iV = yD(Uz), aV = yD(Qz), oV = yD(tB), sV = yD(iB), cV = yD(sB), lV = yD(lB), uV = yD(SB), dV = yD(wB);
57652
57816
  //#endregion
57653
- export { w as ADMIN_API_URL, D as ADMIN_APP_ID, l as APP_ID, E as AUTH_URL, kg as ActivityNotesCard, wg as ActivityTab, IL as AddBatchCandidatePopup, sg as AddFormV1, tR as AdminDashboard, tN as AdminDashboardContent, zB as AdminPage, cg as AppAlert, er as AppButton, HE as AppShell, iw as ApprovalActionBar, Ag as AssigneeAvatars, FE as AuthGuard, zy as BILLING_STATUS_FLOW, qS as BOOLEAN_API_KEYS, HS as BOOLEAN_PARSEABLE_API_KEYS, jg as BULK_UPLOAD_DEFAULT_ACCEPT, Mg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Fr as Breadcrumb, HB as BulkUploadPage, Bg as BulkUploadPanel, a as CANDIDATES_URL, Ow as CONTRACT_C2C, Dw as CONTRACT_W2, J_ as CURRENCY_SYMBOLS, js as CalendarCard, aN as CoreThemeAdminApp, iN as CoreThemeAdminRoutes, Mc as CustomPagination, EC as DEFAULT_HOURS_POLICY, XC as DayLogModal, $g as DescriptionBlock, Vb as DetailHeaderCard, Jb as DetailViewPage, Rv as DetailViewV1, oe as DocumentViewer, Ml as DynamicCards, wF as DynamicPopup, VL as DynamicPopupRoute, Fs as DynamicTabs, Kx as EditFormV1, TS as FIELD_TYPE_REGISTRY, yw as FINANCE_APPROVAL_CONFIG, fw as FINANCE_TYPE_CFO, dw as FINANCE_TYPE_ONBOARDING_MANAGER, hw as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, pw as FINANCE_TYPE_ONLY_FINANCE, uw as FINANCE_TYPE_SUBMISSION_MANAGER, mw as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, NT as FileListCard, fT as FinanceApprovalPanel, bb as FinanceAvatar, wb as FinanceBadge, ow as FinanceDayCell, fb as FinanceDivider, xb as FinanceEmployeeCell, lb as FinanceEmptyState, pb as FinanceEquation, _b as FinanceHistoryTimeline, cb as FinanceHoursGrid, sb as FinanceKpiRow, db as FinanceLine, TC as FinanceListToolbar, Tb as FinanceMarginBadge, Cb as FinanceMoneyCell, Ob as FinanceRecordsTable, Eb as FinanceRowChevron, ub as FinanceSection, ob as FinanceStatusPill, Sb as FinanceTextCell, cw as FinanceTimesheetAnalysis, mb as FinanceWorkflowSteps, DC as HOURS_MESSAGES, cE as Header, Ll as HierarchyUserFilter, t as JOBS_URL, BB as LegacyAdminPage, Pm as ListView, XB as LmsHomePage, YB as LmsTestForm, UE as Login, PN as MailPopup, GB as ManageModules, KB as ManageSubmodules, tS as ModuleRowActions, rw as NotesPanel, Og as NotesTab, By as PAYROLL_STATUS_FLOW, DL as POPUP_CONFIGS, cS as ParamCardView, mS as ParamListView, zC as PeriodBadgeTag, dP as PreviewPopup, vD as ProjectSelect, nw as ProofUploadPreview, $C as QuickLogBar, ZC as QuickLogSelectionBar, QC as RejectionReasonModal, o as SUBMISSIONS_URL, gC as SearchBuilderV1, jE as Sidebar, vC as StatusBadge, RC as StatusBadgeTag, VB as StickyNotesFullPage, bC as StylishDynamicTabs, SC as TemplateEditor, UB as TestForm, JB as TestingHomePage, gg as TimelineGroups, qC as TimesheetDayCell, Xr as TipTapEditor, eR as UserForm, GL as VendorShareDrawer, Df as ViewSummaryWidget, _P as WizardPopup, qB as ZinnextTableView, WB as ZinnextTestForm, et as appNow, Mt as applyIntegrationStatus, pc as approveSubmission, Lg as buildAcceptAttr, QS as buildBooleanRequest, eb as buildCsv, Jy as buildDailyRows, GC as buildDayGradient, $w as buildRateHistoryEntries, Zy as buildWeeklyRollup, h as clearSelectedProject, ue as colors, Gw as computeFinance, NC as computeHoursPolicy, Qy as computeMarginBand, Ln as conditionMatches, r as configureCoreTheme, Qt as configuredFieldLabel, IB as createAllWorkflowsListFetcher, AB as createMergedListFetcher, CB as createModuleListFetchAdapter, jB as createWorkflowStageListFetcher, Y_ as currencySymbol, hB as defaultMergeRow, Rr as deleteIntegrationConfig, qy as deriveDayStats, FC as describeCapacity, ib as downloadCsv, dr as evaluateShowIfWith, zw as findEmployerRow, Lw as flattenGroups, tv as formatAmount, qn as formatApp, ee as formatAppDateTime, Ig as formatFileSize, eT as formatFinanceMoney, Ay as formatHours, nv as formatMoney, My as formatPercent, rv as formatRate, Hr as getActivity, LB as getAllWorkflowsModuleList, Un as getAppTimeZone, Iy as getApprovalDate, qr as getBgcIntegrationConfig, ai as getBgcIntegrationSummary, Vy as getBillingActionStates, kS as getBooleanEligibleTypes, u as getCurrentRoleName, nb as getFieldLabel, DS as getFieldType, Fg as getFileExtension, ww as getFinanceApprovalConfig, ST as getFormGroupsRaw, xt as getIntegrationConfig, he as getIntegrationConfigs, de as getIntegrationSummary, kc as getModuleConfig, wn as getModuleDataDetail, Hy as getPayrollActionStates, jc as getPeriodBadgeConfig, g as getSelectedProject, C as getStoredToken, d as getStoredUser, f as getUserRoles, mc as getVMSApprove, rb as getValueStyle, RB as getWorkflowStageModuleList, Uy as getWorkflowSteps, Fy as humanizeEvent, ah as i, tb as indexFieldConfig, Ny as initialsOf, KS as insertTokenAtCursor, OS as isBooleanEligible, WS as isBooleanParsable, y as isTester, m as logout, Ew as marginIncludesReferral, Ww as matchLocationTax, nx as n, Vw as normalizeContract, Vg as r, Z_ as rateUnitLabel, $_ as rateUnitShort, PC as reconcileHours, ES as registerFieldType, gc as rejectSubmission, xg as resolveActivityMeta, Kw as resolveAndCompute, jC as resolveDayKind, Uw as resolveFinanceInputs, pB as resolveMergeKey, pB as resolveMergedListKey, Tw as resolveRejectionReason, CT as resolveSubmissionFinance, Vt as saveBgcIntegrationConfig, lt as saveIntegrationConfig, s as setSelectedProject, cn as showIfConditions, MB as stageCountKey, WE as t, Rn as testIntegrationConnection, Xe as toApp, ev as toNumber, it as tzLabel, ve as tzShortLabel, Vu as useDropdownFields, Of as useDropdownValues, PT as useEditForm, Hu as useFieldConfig, Uu as useFilterFields, Qu as useMenuPermission, Jx as useModuleActions, Gb as useRecordRefresh, GS as validateBooleanQuery, Rg as validateBulkFile, n as withAdminAppId, i as withAppId, yD as withAuthGuard };
57817
+ export { w as ADMIN_API_URL, D as ADMIN_APP_ID, l as APP_ID, E as AUTH_URL, kg as ActivityNotesCard, wg as ActivityTab, ZL as AddBatchCandidatePopup, sg as AddFormV1, gR as AdminDashboard, tN as AdminDashboardContent, eV as AdminPage, cg as AppAlert, er as AppButton, HE as AppShell, iw as ApprovalActionBar, Ag as AssigneeAvatars, FE as AuthGuard, zy as BILLING_STATUS_FLOW, qS as BOOLEAN_API_KEYS, HS as BOOLEAN_PARSEABLE_API_KEYS, jg as BULK_UPLOAD_DEFAULT_ACCEPT, Mg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Fr as Breadcrumb, rV as BulkUploadPage, Bg as BulkUploadPanel, a as CANDIDATES_URL, Ow as CONTRACT_C2C, Dw as CONTRACT_W2, J_ as CURRENCY_SYMBOLS, js as CalendarCard, aN as CoreThemeAdminApp, iN as CoreThemeAdminRoutes, Mc as CustomPagination, EC as DEFAULT_HOURS_POLICY, XC as DayLogModal, $g as DescriptionBlock, Vb as DetailHeaderCard, Jb as DetailViewPage, Rv as DetailViewV1, oe as DocumentViewer, Ml as DynamicCards, wF as DynamicPopup, nR as DynamicPopupRoute, Fs as DynamicTabs, Kx as EditFormV1, TS as FIELD_TYPE_REGISTRY, yw as FINANCE_APPROVAL_CONFIG, fw as FINANCE_TYPE_CFO, dw as FINANCE_TYPE_ONBOARDING_MANAGER, hw as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, pw as FINANCE_TYPE_ONLY_FINANCE, uw as FINANCE_TYPE_SUBMISSION_MANAGER, mw as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, NT as FileListCard, fT as FinanceApprovalPanel, bb as FinanceAvatar, wb as FinanceBadge, ow as FinanceDayCell, fb as FinanceDivider, xb as FinanceEmployeeCell, lb as FinanceEmptyState, pb as FinanceEquation, _b as FinanceHistoryTimeline, cb as FinanceHoursGrid, sb as FinanceKpiRow, db as FinanceLine, TC as FinanceListToolbar, Tb as FinanceMarginBadge, Cb as FinanceMoneyCell, Ob as FinanceRecordsTable, Eb as FinanceRowChevron, ub as FinanceSection, ob as FinanceStatusPill, Sb as FinanceTextCell, cw as FinanceTimesheetAnalysis, mb as FinanceWorkflowSteps, DC as HOURS_MESSAGES, cE as Header, Ll as HierarchyUserFilter, t as JOBS_URL, tV as LegacyAdminPage, Pm as ListView, dV as LmsHomePage, uV as LmsTestForm, UE as Login, PN as MailPopup, oV as ManageModules, sV as ManageSubmodules, tS as ModuleRowActions, rw as NotesPanel, Og as NotesTab, By as PAYROLL_STATUS_FLOW, HL as POPUP_CONFIGS, cS as ParamCardView, mS as ParamListView, zC as PeriodBadgeTag, dP as PreviewPopup, vD as ProjectSelect, nw as ProofUploadPreview, $C as QuickLogBar, ZC as QuickLogSelectionBar, QC as RejectionReasonModal, o as SUBMISSIONS_URL, gC as SearchBuilderV1, jE as Sidebar, vC as StatusBadge, RC as StatusBadgeTag, nV as StickyNotesFullPage, bC as StylishDynamicTabs, SC as TemplateEditor, iV as TestForm, lV as TestingHomePage, gg as TimelineGroups, qC as TimesheetDayCell, Xr as TipTapEditor, hR as UserForm, oR as VendorShareDrawer, Df as ViewSummaryWidget, _P as WizardPopup, cV as ZinnextTableView, aV as ZinnextTestForm, et as appNow, Mt as applyIntegrationStatus, pc as approveSubmission, Lg as buildAcceptAttr, QS as buildBooleanRequest, eb as buildCsv, Jy as buildDailyRows, GC as buildDayGradient, $w as buildRateHistoryEntries, Zy as buildWeeklyRollup, h as clearSelectedProject, ue as colors, Gw as computeFinance, NC as computeHoursPolicy, Qy as computeMarginBand, Ln as conditionMatches, r as configureCoreTheme, Qt as configuredFieldLabel, ZB as createAllWorkflowsListFetcher, GB as createMergedListFetcher, RB as createModuleListFetchAdapter, KB as createWorkflowStageListFetcher, Y_ as currencySymbol, AB as defaultMergeRow, Rr as deleteIntegrationConfig, qy as deriveDayStats, FC as describeCapacity, ib as downloadCsv, dr as evaluateShowIfWith, zw as findEmployerRow, Lw as flattenGroups, tv as formatAmount, qn as formatApp, ee as formatAppDateTime, Ig as formatFileSize, eT as formatFinanceMoney, Ay as formatHours, nv as formatMoney, My as formatPercent, rv as formatRate, Hr as getActivity, QB as getAllWorkflowsModuleList, Un as getAppTimeZone, Iy as getApprovalDate, qr as getBgcIntegrationConfig, ai as getBgcIntegrationSummary, Vy as getBillingActionStates, kS as getBooleanEligibleTypes, u as getCurrentRoleName, nb as getFieldLabel, DS as getFieldType, Fg as getFileExtension, ww as getFinanceApprovalConfig, ST as getFormGroupsRaw, xt as getIntegrationConfig, he as getIntegrationConfigs, de as getIntegrationSummary, kc as getModuleConfig, wn as getModuleDataDetail, Hy as getPayrollActionStates, jc as getPeriodBadgeConfig, g as getSelectedProject, C as getStoredToken, d as getStoredUser, f as getUserRoles, mc as getVMSApprove, rb as getValueStyle, $B as getWorkflowStageModuleList, Uy as getWorkflowSteps, Fy as humanizeEvent, ah as i, tb as indexFieldConfig, Ny as initialsOf, KS as insertTokenAtCursor, OS as isBooleanEligible, WS as isBooleanParsable, y as isTester, m as logout, Ew as marginIncludesReferral, Ww as matchLocationTax, nx as n, Vw as normalizeContract, Vg as r, Z_ as rateUnitLabel, $_ as rateUnitShort, PC as reconcileHours, ES as registerFieldType, gc as rejectSubmission, xg as resolveActivityMeta, Kw as resolveAndCompute, jC as resolveDayKind, Uw as resolveFinanceInputs, OB as resolveMergeKey, OB as resolveMergedListKey, Tw as resolveRejectionReason, CT as resolveSubmissionFinance, Vt as saveBgcIntegrationConfig, lt as saveIntegrationConfig, s as setSelectedProject, cn as showIfConditions, qB as stageCountKey, WE as t, Rn as testIntegrationConnection, Xe as toApp, ev as toNumber, it as tzLabel, ve as tzShortLabel, Vu as useDropdownFields, Of as useDropdownValues, PT as useEditForm, Hu as useFieldConfig, Uu as useFilterFields, Qu as useMenuPermission, Jx as useModuleActions, Gb as useRecordRefresh, GS as validateBooleanQuery, Rg as validateBulkFile, n as withAdminAppId, i as withAppId, yD as withAuthGuard };
57654
57818
 
57655
57819
  //# sourceMappingURL=index.js.map