@realtek/core-theme-live 0.0.450 → 0.0.451

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
@@ -56021,13 +56021,13 @@ async function nV({ targetModule: e, sourceModule: t, recordId: n, region: r } =
56021
56021
  }
56022
56022
  //#endregion
56023
56023
  //#region src/components/popups/definitions/quick-submit/api.js
56024
- var rV = "Already submitted", iV = "submissions", aV = "candidates", oV = 864e5, sV = 90, cV = "This candidate was created or last updated more than 90 days ago. Only candidates created or updated within the last 90 days can be selected. Please update this candidate first.", lV = [
56024
+ var rV = "Already submitted", iV = "submissions", aV = "candidates", oV = 864e5, sV = 90, cV = "This candidate was created or last updated more than 90 days ago. Only candidates created or updated within the last 90 days can be selected. Please update this candidate first.", lV = "/candidate/edit/:id", uV = [
56025
56025
  "createdAt",
56026
56026
  "createdDate",
56027
56027
  "dateCreated",
56028
56028
  "created_on",
56029
56029
  "createdOn"
56030
- ], uV = [
56030
+ ], dV = [
56031
56031
  "updatedAt",
56032
56032
  "updatedDate",
56033
56033
  "lastUpdatedAt",
@@ -56035,7 +56035,7 @@ var rV = "Already submitted", iV = "submissions", aV = "candidates", oV = 864e5,
56035
56035
  "modifiedAt",
56036
56036
  "modifiedDate"
56037
56037
  ];
56038
- function dV(e, t) {
56038
+ function fV(e, t) {
56039
56039
  for (let n of t) {
56040
56040
  let t = e?.[n];
56041
56041
  if (!t) continue;
@@ -56044,32 +56044,32 @@ function dV(e, t) {
56044
56044
  }
56045
56045
  return null;
56046
56046
  }
56047
- function fV(e) {
56048
- return dV(e, lV);
56049
- }
56050
56047
  function pV(e) {
56051
- return dV(e, uV);
56048
+ return fV(e, uV);
56052
56049
  }
56053
56050
  function mV(e) {
56051
+ return fV(e, dV);
56052
+ }
56053
+ function hV(e) {
56054
56054
  if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
56055
56055
  let t = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime();
56056
56056
  return Math.max(0, Math.floor((t(/* @__PURE__ */ new Date()) - t(e)) / oV));
56057
56057
  }
56058
- function hV(e) {
56058
+ function gV(e) {
56059
56059
  return e === null ? "" : e <= 14 ? "green" : e <= 89 ? "yellow" : "red";
56060
56060
  }
56061
- function gV(e, t = sV) {
56061
+ function _V(e, t = sV) {
56062
56062
  if (!e) return !1;
56063
- let n = Date.now() - t * oV, r = fV(e), i = pV(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
56063
+ let n = Date.now() - t * oV, r = pV(e), i = mV(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
56064
56064
  return !a && !o;
56065
56065
  }
56066
- var _V = 6e4;
56067
- function vV(e) {
56068
- let t = fV(e), n = uV.map((t) => e?.[t]).find((e) => Uz(e)), r = n ? new Date(n?.$date ?? n) : null;
56069
- return r && !Number.isNaN(r.getTime()) && (!t || r.getTime() - t.getTime() > _V) ? r : t;
56070
- }
56066
+ var vV = 6e4;
56071
56067
  function yV(e) {
56072
- let t = vV(e);
56068
+ let t = pV(e), n = dV.map((t) => e?.[t]).find((e) => Uz(e)), r = n ? new Date(n?.$date ?? n) : null;
56069
+ return r && !Number.isNaN(r.getTime()) && (!t || r.getTime() - t.getTime() > vV) ? r : t;
56070
+ }
56071
+ function bV(e) {
56072
+ let t = yV(e);
56073
56073
  if (!t || !Uz(t)) return {
56074
56074
  createdAgo: "",
56075
56075
  createdAgoTone: ""
@@ -56077,13 +56077,13 @@ function yV(e) {
56077
56077
  let n = Wz(t);
56078
56078
  return n ? {
56079
56079
  createdAgo: n,
56080
- createdAgoTone: hV(mV(t))
56080
+ createdAgoTone: gV(hV(t))
56081
56081
  } : {
56082
56082
  createdAgo: "",
56083
56083
  createdAgoTone: ""
56084
56084
  };
56085
56085
  }
56086
- function bV(e) {
56086
+ function xV(e) {
56087
56087
  for (let t of [
56088
56088
  "applicantRefrenceId",
56089
56089
  "applicantReferanceId",
@@ -56094,29 +56094,27 @@ function bV(e) {
56094
56094
  }
56095
56095
  return "";
56096
56096
  }
56097
- function xV(e) {
56097
+ function SV(e) {
56098
56098
  return {
56099
56099
  ...e,
56100
- applicantRefrenceId: bV(e),
56101
- ...yV(e),
56102
- isStaleCandidate: gV(e)
56100
+ applicantRefrenceId: xV(e),
56101
+ ...bV(e),
56102
+ isStaleCandidate: _V(e)
56103
56103
  };
56104
56104
  }
56105
- function SV(e) {
56106
- return String(e?.applicantId ?? e?._id ?? e?.id ?? "");
56105
+ function CV(e) {
56106
+ return String(e?.applicantId ?? e?.applicant_id ?? e?.candidateId ?? e?._id ?? e?.id ?? e?.value ?? "");
56107
56107
  }
56108
- var CV = null;
56109
- async function wV() {
56110
- return CV ||= re(aV).then((e) => e?.strategies?.duplicateCheck?.editRoute ?? "").catch(() => ""), CV;
56108
+ var wV = null;
56109
+ async function TV() {
56110
+ return wV ||= re(aV).then((e) => e?.strategies?.duplicateCheck?.editRoute ?? "").catch(() => ""), wV;
56111
56111
  }
56112
- async function TV(e) {
56113
- let t = SV(e);
56114
- if (!t) return "";
56115
- let n = await wV();
56116
- return n ? n.replace(/:(_?id)\b/g, encodeURIComponent(t)) : "";
56112
+ async function EV(e) {
56113
+ let t = CV(e);
56114
+ return t ? (await TV() || lV).replace(/:(_?id)\b/g, encodeURIComponent(t)) : "";
56117
56115
  }
56118
- async function EV({ option: e, popupContext: t, confirm: n }) {
56119
- let r = e?._raw ?? e ?? {}, i = SV(r);
56116
+ async function DV({ option: e, popupContext: t, confirm: n }) {
56117
+ let r = e?._raw ?? e ?? {}, i = CV(r);
56120
56118
  if (i) {
56121
56119
  let e = await nV({
56122
56120
  targetModule: iV,
@@ -56134,7 +56132,7 @@ async function EV({ option: e, popupContext: t, confirm: n }) {
56134
56132
  });
56135
56133
  });
56136
56134
  }
56137
- if (!gV(r)) return !0;
56135
+ if (!_V(r)) return !0;
56138
56136
  let a = t?.navigate;
56139
56137
  return !a || !i ? !1 : new Promise((e) => {
56140
56138
  n({
@@ -56143,14 +56141,14 @@ async function EV({ option: e, popupContext: t, confirm: n }) {
56143
56141
  okText: "OK",
56144
56142
  cancelText: "Cancel",
56145
56143
  onOk: async () => {
56146
- let t = await TV(r);
56144
+ let t = await EV(r);
56147
56145
  t && a(t), e(!1);
56148
56146
  },
56149
56147
  onCancel: () => e(!1)
56150
56148
  });
56151
56149
  });
56152
56150
  }
56153
- function DV(e, t, n) {
56151
+ function OV(e, t, n) {
56154
56152
  return {
56155
56153
  ...e,
56156
56154
  label: `${e.label} - ${rV}`,
@@ -56161,7 +56159,7 @@ function DV(e, t, n) {
56161
56159
  ...n ? { submittedAt: n } : {}
56162
56160
  };
56163
56161
  }
56164
- var OV = {
56162
+ var kV = {
56165
56163
  searchOptions: async (e, t, n) => {
56166
56164
  if (e.searchFetchKey === "quickSubmitJobList") {
56167
56165
  let e = n.selectedRecords?.[0] ?? {}, r = e.id ?? e._id ?? n.selectedIds?.[0], i, a = !0;
@@ -56184,7 +56182,7 @@ var OV = {
56184
56182
  _raw: e
56185
56183
  }));
56186
56184
  if (a) return o.map((e) => {
56187
- if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return DV(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
56185
+ if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return OV(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
56188
56186
  if (e._raw?.disable) {
56189
56187
  let t = String(e._raw?.message ?? "").trim();
56190
56188
  return {
@@ -56202,7 +56200,7 @@ var OV = {
56202
56200
  }).catch(() => /* @__PURE__ */ new Map());
56203
56201
  return o.map((e) => {
56204
56202
  let t = s.get(String(e.value));
56205
- return t ? DV(e, t.submissionId, t.submittedAt) : e;
56203
+ return t ? OV(e, t.submissionId, t.submittedAt) : e;
56206
56204
  });
56207
56205
  }
56208
56206
  if (e.searchFetchKey === "quickSubmitCandidates") {
@@ -56221,11 +56219,11 @@ var OV = {
56221
56219
  });
56222
56220
  i = Array.isArray(e) ? e : [], a = await jl({
56223
56221
  jobId: r,
56224
- applicantIds: i.map(SV)
56222
+ applicantIds: i.map(CV)
56225
56223
  }).catch(() => /* @__PURE__ */ new Map());
56226
56224
  }
56227
- return i.map((e) => xV(e)).map((e) => {
56228
- let t = a.get(SV(e));
56225
+ return i.map((e) => SV(e)).map((e) => {
56226
+ let t = a.get(CV(e));
56229
56227
  if (!(t || e?.isSubmitted === !0 || e?.alreadySubmitted === !0)) return e;
56230
56228
  let n = t?.submissionId || e?.jobSubmissionId || "", r = t?.submittedAt || e?.submittedAt || "";
56231
56229
  return {
@@ -56244,9 +56242,9 @@ var OV = {
56244
56242
  submit: async (e, t, n) => {
56245
56243
  let { navigate: r, selectedRecords: i = [], selectedIds: a = [], moduleName: o } = t, s = i[0] ?? {}, c, l;
56246
56244
  t.jobId ? (c = t.jobId, l = s.id ?? s._id ?? a[0] ?? "") : o === "candidate" ? (c = e.jobId ?? "", l = s.id ?? s._id ?? a[0] ?? "") : (c = s.jobId ?? s.id ?? s._id ?? a[0] ?? "", l = e.candidate ?? "");
56247
- let u = n?.dynamicOptions?.candidate?.find((e) => SV(e?._raw) === String(l)), d = n?.dynamicOptions?.jobId?.find((e) => String(e?.value) === String(c)), f = u?._raw?.isSubmitted || u?._raw?.alreadySubmitted || d?.alreadySubmitted || d?._raw?.isSubmitted || d?._raw?.alreadySubmitted;
56245
+ let u = n?.dynamicOptions?.candidate?.find((e) => CV(e?._raw) === String(l)), d = n?.dynamicOptions?.jobId?.find((e) => String(e?.value) === String(c)), f = u?._raw?.isSubmitted || u?._raw?.alreadySubmitted || d?.alreadySubmitted || d?._raw?.isSubmitted || d?._raw?.alreadySubmitted;
56248
56246
  if (!c || !l) throw Error("Select both a job and a candidate to quick submit.");
56249
- if (gV(u?._raw)) throw Error(cV);
56247
+ if (_V(u?._raw)) throw Error(cV);
56250
56248
  let p = await nV({
56251
56249
  targetModule: iV,
56252
56250
  sourceModule: aV,
@@ -56274,7 +56272,7 @@ var OV = {
56274
56272
  }).catch(() => []));
56275
56273
  return r(`/submission-create/${c}?${g.toString()}`, { state: { relevantSkillsToken: v } }), { navigated: !0 };
56276
56274
  }
56277
- }, kV = {
56275
+ }, AV = {
56278
56276
  title: "Submit",
56279
56277
  okText: "Submit",
56280
56278
  width: 640,
@@ -56332,9 +56330,9 @@ var OV = {
56332
56330
  emptyText: "Not updated"
56333
56331
  }]
56334
56332
  },
56335
- onSelectGuard: EV
56333
+ onSelectGuard: DV
56336
56334
  }]
56337
- }, AV = {
56335
+ }, jV = {
56338
56336
  title: "Add Notes & Share",
56339
56337
  okText: "Save & Share",
56340
56338
  width: 480,
@@ -56348,9 +56346,9 @@ var OV = {
56348
56346
  placeholder: "Add your notes on the job. Use '@' to mention someone.",
56349
56347
  mentionFetchKey: "mentionUsers"
56350
56348
  }]
56351
- }, jV = (e) => e?.data ?? e;
56352
- async function MV({ relatedId: e, notes: t, title: n, notesFor: r }) {
56353
- return jV(await Rd(k, "/notes", {
56349
+ }, MV = (e) => e?.data ?? e;
56350
+ async function NV({ relatedId: e, notes: t, title: n, notesFor: r }) {
56351
+ return MV(await Rd(k, "/notes", {
56354
56352
  method: "POST",
56355
56353
  body: JSON.stringify({
56356
56354
  relatedId: e,
@@ -56362,18 +56360,18 @@ async function MV({ relatedId: e, notes: t, title: n, notesFor: r }) {
56362
56360
  }
56363
56361
  //#endregion
56364
56362
  //#region src/components/popups/definitions/add-notes/api.js
56365
- var NV = {
56363
+ var PV = {
56366
56364
  getMentionOptions: async (e, t) => al(t),
56367
56365
  submit: async (e, t) => {
56368
56366
  let n = Array.isArray(t.selectedIds) ? t.selectedIds[0] : t.selectedIds;
56369
56367
  if (!n) throw Error("Please select a record before adding a note.");
56370
- await MV({
56368
+ await NV({
56371
56369
  relatedId: String(n),
56372
56370
  notes: e.notes,
56373
56371
  notesFor: t.moduleName
56374
56372
  });
56375
56373
  }
56376
- }, PV = {
56374
+ }, FV = {
56377
56375
  name: "jobId",
56378
56376
  label: "Job Title / ID",
56379
56377
  type: "search-select",
@@ -56384,7 +56382,7 @@ var NV = {
56384
56382
  valueKey: "_id",
56385
56383
  labelTemplate: "{jobReferenceId} - {jobTitle} — {jobRecruitmentStatus}",
56386
56384
  initialOptionKey: "jobOption"
56387
- }, FV = {
56385
+ }, IV = {
56388
56386
  name: "hiringStage",
56389
56387
  label: "Hiring stage",
56390
56388
  type: "select",
@@ -56398,22 +56396,22 @@ var NV = {
56398
56396
  value: "pipeline"
56399
56397
  }],
56400
56398
  initialValueKey: "hiringStage"
56401
- }, IV = {
56399
+ }, LV = {
56402
56400
  title: "Tag to Jobs",
56403
56401
  okText: "Tag",
56404
56402
  width: 480,
56405
56403
  disabledUntilFilled: !0,
56406
56404
  autoSubmitWhenNoFields: !0,
56407
- getFields: (e) => e.jobId && e.hiringStage ? [] : [PV, FV]
56408
- }, LV = (e) => e?.data ?? e;
56409
- function RV(e) {
56405
+ getFields: (e) => e.jobId && e.hiringStage ? [] : [FV, IV]
56406
+ }, RV = (e) => e?.data ?? e;
56407
+ function zV(e) {
56410
56408
  return Array.isArray(e) && e.every((e) => e && typeof e == "object" && "Key" in e) ? e.reduce((e, { Key: t, Value: n }) => (e[t] = n, e), {}) : e;
56411
56409
  }
56412
- function zV(e) {
56413
- return e ? Array.isArray(e.data) ? e.data.map(RV) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(RV) : Array.isArray(e) ? e.map(RV) : [] : [];
56410
+ function BV(e) {
56411
+ return e ? Array.isArray(e.data) ? e.data.map(zV) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(zV) : Array.isArray(e) ? e.map(zV) : [] : [];
56414
56412
  }
56415
- async function BV(e = 1, t = 10) {
56416
- let n = await x(k, `/workflow/list/all?page=${e}&limit=${t}`), r = LV(n), i = Array.isArray(r) ? r : r?.data ?? [];
56413
+ async function VV(e = 1, t = 10) {
56414
+ let n = await x(k, `/workflow/list/all?page=${e}&limit=${t}`), r = RV(n), i = Array.isArray(r) ? r : r?.data ?? [];
56417
56415
  return {
56418
56416
  items: i,
56419
56417
  total: Number(n?.total ?? r?.total) || i.length,
@@ -56421,11 +56419,11 @@ async function BV(e = 1, t = 10) {
56421
56419
  limit: t
56422
56420
  };
56423
56421
  }
56424
- async function VV(e, t) {
56425
- let n = LV(await x(k, `/workflow/${e}/stage/${t}`));
56422
+ async function HV(e, t) {
56423
+ let n = RV(await x(k, `/workflow/${e}/stage/${t}`));
56426
56424
  return Array.isArray(n) ? { data: n } : n;
56427
56425
  }
56428
- async function HV(e, t) {
56426
+ async function UV(e, t) {
56429
56427
  if (!e || !t) return null;
56430
56428
  try {
56431
56429
  let n = new URLSearchParams({
@@ -56439,7 +56437,7 @@ async function HV(e, t) {
56439
56437
  values: [String(t)],
56440
56438
  operator: "and"
56441
56439
  }])
56442
- }), r = LV(await x(k, `/module-data-list?${n}`));
56440
+ }), r = RV(await x(k, `/module-data-list?${n}`));
56443
56441
  if (Array.isArray(r)) return r[0] ?? null;
56444
56442
  if (r?.data && Array.isArray(r.data)) return r.data[0] ?? null;
56445
56443
  let i = r?.rows ?? r?.records ?? r?.items ?? r?.list;
@@ -56448,15 +56446,15 @@ async function HV(e, t) {
56448
56446
  return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
56449
56447
  }
56450
56448
  }
56451
- async function UV(e) {
56452
- return LV(await x(s, "/source/workflow-instance", {
56449
+ async function WV(e) {
56450
+ return RV(await x(s, "/source/workflow-instance", {
56453
56451
  method: "POST",
56454
56452
  body: JSON.stringify(e)
56455
56453
  }));
56456
56454
  }
56457
56455
  //#endregion
56458
56456
  //#region src/components/popups/definitions/tag-to-job/api.js
56459
- var WV = {
56457
+ var GV = {
56460
56458
  pipeline: "pipeline",
56461
56459
  goodfited: "goodfited",
56462
56460
  contacted: "contacted",
@@ -56465,40 +56463,40 @@ var WV = {
56465
56463
  interviewinprogress: "interviewInprogress",
56466
56464
  selected: "selected"
56467
56465
  };
56468
- function GV(e, ...t) {
56466
+ function KV(e, ...t) {
56469
56467
  for (let n of t) {
56470
56468
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
56471
56469
  if (t != null && t !== "") return t;
56472
56470
  }
56473
56471
  }
56474
- function KV(e) {
56472
+ function qV(e) {
56475
56473
  let t = String(e ?? "").trim();
56476
- return t ? WV[t.toLowerCase()] ?? t : "";
56474
+ return t ? GV[t.toLowerCase()] ?? t : "";
56477
56475
  }
56478
- function qV(e, t) {
56479
- let n = GV(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
56476
+ function JV(e, t) {
56477
+ let n = KV(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
56480
56478
  if (!n) return null;
56481
- let r = (GV(e, "candidateName", "candidate_name", "fullName", "name") ?? [GV(e, "firstName", "first_name"), GV(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
56479
+ let r = (KV(e, "candidateName", "candidate_name", "fullName", "name") ?? [KV(e, "firstName", "first_name"), KV(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
56482
56480
  candidateId: String(n),
56483
56481
  candidateName: r,
56484
- phone: GV(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
56485
- source: GV(e, "source", "sourceType", "candidateSource", "profileSource"),
56486
- submittedAt: GV(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
56487
- remarks: GV(e, "remarks", "comment", "comments", "notes"),
56488
- assignedRecruiter: GV(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
56489
- screeningStatus: GV(e, "screeningStatus", "screening.status", "screeningResult"),
56490
- screeningScore: GV(e, "screeningScore", "screening.score", "score"),
56491
- assignedDate: GV(e, "assignedDate", "assignedAt", "createdAt")
56482
+ phone: KV(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
56483
+ source: KV(e, "source", "sourceType", "candidateSource", "profileSource"),
56484
+ submittedAt: KV(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
56485
+ remarks: KV(e, "remarks", "comment", "comments", "notes"),
56486
+ assignedRecruiter: KV(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
56487
+ screeningStatus: KV(e, "screeningStatus", "screening.status", "screeningResult"),
56488
+ screeningScore: KV(e, "screeningScore", "screening.score", "score"),
56489
+ assignedDate: KV(e, "assignedDate", "assignedAt", "createdAt")
56492
56490
  };
56493
56491
  return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
56494
56492
  }
56495
- var JV = {
56493
+ var YV = {
56496
56494
  searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? il(t) : [],
56497
56495
  submit: async (e, t) => {
56498
- let n = e.jobId ?? t.jobId, r = Array.isArray(n) ? n : [n].filter(Boolean), i = KV(e.hiringStage ?? t.hiringStage), a = Array.isArray(t.selectedIds) ? t.selectedIds : [], o = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], s = Math.max(a.length, o.length, 1);
56496
+ let n = e.jobId ?? t.jobId, r = Array.isArray(n) ? n : [n].filter(Boolean), i = qV(e.hiringStage ?? t.hiringStage), a = Array.isArray(t.selectedIds) ? t.selectedIds : [], o = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], s = Math.max(a.length, o.length, 1);
56499
56497
  for (let e of r) for (let t = 0; t < s; t += 1) {
56500
- let n = a[t] ? String(a[t]) : "", r = qV(o[t] ?? {}, n);
56501
- await UV({
56498
+ let n = a[t] ? String(a[t]) : "", r = JV(o[t] ?? {}, n);
56499
+ await WV({
56502
56500
  jobId: e,
56503
56501
  module: "jobs",
56504
56502
  currentStage: i,
@@ -56513,7 +56511,7 @@ var JV = {
56513
56511
  });
56514
56512
  if (c?.status === !1) throw Error(c?.error || "Could not update hiring stage");
56515
56513
  }
56516
- }, YV = {
56514
+ }, XV = {
56517
56515
  title: "Change Status",
56518
56516
  okText: "Apply",
56519
56517
  width: 420,
@@ -56562,19 +56560,19 @@ var JV = {
56562
56560
  };
56563
56561
  //#endregion
56564
56562
  //#region src/components/popups/definitions/change-status/api.js
56565
- function XV(e, t) {
56563
+ function ZV(e, t) {
56566
56564
  let n = String(e ?? "").trim().toLowerCase();
56567
56565
  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;
56568
56566
  }
56569
- var ZV = { submit: async (e, t, n) => {
56570
- let r = XV(e.status, n?.dynamicOptions), i = r?._raw ?? {}, a = {
56567
+ var QV = { submit: async (e, t, n) => {
56568
+ let r = ZV(e.status, n?.dynamicOptions), i = r?._raw ?? {}, a = {
56571
56569
  clientSubmissionStatusText: String(i.name ?? r?.label ?? e.status ?? "").trim(),
56572
56570
  clientSubmissionStatusId: Number(i.id ?? i.uniqueId ?? 0) || 0,
56573
56571
  clientSubmissionStatusType: String(i.type ?? "").trim(),
56574
56572
  submissionIdFieldName: String(i.submissionIdFieldName ?? "").trim()
56575
56573
  }, o = { status: a }, s = a.submissionIdFieldName || "clientSubmissionId", c = !!a.submissionIdFieldName || String(a.clientSubmissionStatusText ?? "").trim().toLowerCase() === "submitted to client", l = String(e.clientSubmissionId ?? "").trim();
56576
56574
  c && l && (o[s] = l), await nl(t.moduleName, t.selectedIds, o);
56577
- } }, QV = {
56575
+ } }, $V = {
56578
56576
  getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
56579
56577
  titleIcon: "delete",
56580
56578
  okText: "Remove",
@@ -56583,12 +56581,12 @@ var ZV = { submit: async (e, t, n) => {
56583
56581
  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?",
56584
56582
  footerNote: "The candidate will be moved back to the pipeline.",
56585
56583
  fields: []
56586
- }, $V = { onOk: async (e) => {
56584
+ }, eH = { onOk: async (e) => {
56587
56585
  await Ml({
56588
56586
  jobId: e.jobId ?? e.selectedIds[0],
56589
56587
  candidateIds: e.selectedIds
56590
56588
  });
56591
- } }, eH = {
56589
+ } }, tH = {
56592
56590
  title: "Add to Groups",
56593
56591
  description: "Select a group to add the selected candidate(s) to",
56594
56592
  okText: "Add to Group",
@@ -56602,7 +56600,7 @@ var ZV = { submit: async (e, t, n) => {
56602
56600
  placeholder: "Select a group",
56603
56601
  fetchOptionsKey: "candidateGroups"
56604
56602
  }]
56605
- }, tH = {
56603
+ }, nH = {
56606
56604
  getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? ul() : [],
56607
56605
  submit: async (e, t, { dynamicOptions: n }) => {
56608
56606
  let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
@@ -56612,7 +56610,7 @@ var ZV = { submit: async (e, t, n) => {
56612
56610
  groupName: r?.label ?? ""
56613
56611
  });
56614
56612
  }
56615
- }, nH = [
56613
+ }, rH = [
56616
56614
  {
56617
56615
  title: "Name",
56618
56616
  key: "name",
@@ -56631,7 +56629,7 @@ var ZV = { submit: async (e, t, n) => {
56631
56629
  render: (e) => e || "-"
56632
56630
  }
56633
56631
  ];
56634
- function rH({ selectedIds: e, onClose: t }) {
56632
+ function iH({ selectedIds: e, onClose: t }) {
56635
56633
  let n = e?.[0], [r, i] = L(!0), [a, o] = L(!1), [s, c] = L({
56636
56634
  assignedUsers: [],
56637
56635
  totalSubmissions: 0,
@@ -56695,7 +56693,7 @@ function rH({ selectedIds: e, onClose: t }) {
56695
56693
  children: "Team Members Allocated"
56696
56694
  }),
56697
56695
  /* @__PURE__ */ Y(io, {
56698
- columns: nH,
56696
+ columns: rH,
56699
56697
  dataSource: m,
56700
56698
  pagination: !1,
56701
56699
  rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
@@ -56744,25 +56742,25 @@ function rH({ selectedIds: e, onClose: t }) {
56744
56742
  })]
56745
56743
  });
56746
56744
  }
56747
- rH.propTypes = {
56745
+ iH.propTypes = {
56748
56746
  selectedIds: Z.array,
56749
56747
  onClose: Z.func
56750
56748
  };
56751
56749
  //#endregion
56752
56750
  //#region src/components/popups/definitions/self-assign/config.js
56753
- var iH = {
56751
+ var aH = {
56754
56752
  title: "Self Assign",
56755
56753
  width: 480,
56756
56754
  className: "self-assign-modal",
56757
- component: rH
56758
- }, aH = { submit: async () => {} };
56755
+ component: iH
56756
+ }, oH = { submit: async () => {} };
56759
56757
  //#endregion
56760
56758
  //#region src/components/popups/definitions/others-assign/config.js
56761
- function oH(e = {}) {
56759
+ function sH(e = {}) {
56762
56760
  let t = Array.isArray(e.jobPayDetails) ? e.jobPayDetails[e.jobPayDetails.length - 1] : e.jobPayDetails ?? e.clientBudget ?? {}, n = Number(t.clientBudgetEnd), r = Number(t.clientBudgetStart);
56763
56761
  return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
56764
56762
  }
56765
- var sH = {
56763
+ var cH = {
56766
56764
  getTitleText: (e, t, n) => {
56767
56765
  let r = n?.jobTitle || n?.title || "";
56768
56766
  return r ? `Assign - ${r}` : "Assign";
@@ -56772,7 +56770,7 @@ var sH = {
56772
56770
  disabledUntilFilled: !0,
56773
56771
  showAlreadyAssigned: !0,
56774
56772
  allowRemovalOnlySubmit: !0,
56775
- getFields: (e) => (oH(e?.selectedRecords?.[0] ?? {}), [{
56773
+ getFields: (e) => (sH(e?.selectedRecords?.[0] ?? {}), [{
56776
56774
  name: "assignToUserId",
56777
56775
  label: "Assign to",
56778
56776
  type: "multi-select",
@@ -56780,7 +56778,7 @@ var sH = {
56780
56778
  placeholder: "Select recruiter(s)",
56781
56779
  fetchOptionsKey: "assignToUsers"
56782
56780
  }])
56783
- }, cH = {
56781
+ }, lH = {
56784
56782
  getOptions: async (e, t, n) => e.fetchOptionsKey === "assignToUsers" ? hl(n?.selectedIds?.[0]) : [],
56785
56783
  loadExtraData: async (e) => _l(e.selectedIds[0]),
56786
56784
  removeAssignedUser: async ({ id: e }, t) => vl({
@@ -56795,7 +56793,7 @@ var sH = {
56795
56793
  existingRecruiters: r?.recruitersData
56796
56794
  });
56797
56795
  }
56798
- }, lH = {
56796
+ }, uH = {
56799
56797
  title: "Add Sticky Notes",
56800
56798
  getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
56801
56799
  okText: "Save",
@@ -56827,7 +56825,7 @@ var sH = {
56827
56825
  initialValueKey: "editingComments"
56828
56826
  }
56829
56827
  ]
56830
- }, uH = {
56828
+ }, dH = {
56831
56829
  getMentionOptions: async (e, t) => al(t),
56832
56830
  submit: async (e, t) => {
56833
56831
  let n = e.targetDate ? e.targetDate.toISOString() : "";
@@ -56843,7 +56841,7 @@ var sH = {
56843
56841
  notes: e.comments
56844
56842
  }), window.dispatchEvent(new Event("sticky-notes:refresh"));
56845
56843
  }
56846
- }, dH = {
56844
+ }, fH = {
56847
56845
  title: "Move to Onboarding",
56848
56846
  bodyText: "Are you sure you want to move this candidate to onboarding?",
56849
56847
  okText: "Yes",
@@ -56856,7 +56854,7 @@ var sH = {
56856
56854
  type: "priority-checkbox",
56857
56855
  checkboxLabel: "Send Onboarding Email"
56858
56856
  }]
56859
- }, fH = { submit: async (e, t) => {
56857
+ }, pH = { submit: async (e, t) => {
56860
56858
  await Cl({
56861
56859
  submissionId: t.selectedRecords?.[0]?.submissionId,
56862
56860
  isMail: e.sendOnboardingEmail
@@ -56864,39 +56862,39 @@ var sH = {
56864
56862
  } };
56865
56863
  //#endregion
56866
56864
  //#region src/components/popups/definitions/approve-rate/config.js
56867
- function pH(e) {
56865
+ function mH(e) {
56868
56866
  return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
56869
56867
  }
56870
- var mH = {
56868
+ var hH = {
56871
56869
  USD: "$",
56872
56870
  INR: "₹",
56873
56871
  EUR: "€",
56874
56872
  GBP: "£"
56875
56873
  };
56876
- function hH(e, t, n) {
56877
- let r = pH(e?.[t])[n];
56874
+ function gH(e, t, n) {
56875
+ let r = mH(e?.[t])[n];
56878
56876
  if (r != null && r !== "") return r;
56879
56877
  let i = e?.[`${t}.${n}`];
56880
56878
  return i != null && i !== "" ? i : void 0;
56881
56879
  }
56882
- function gH(e) {
56883
- let t = e.selectedRecords?.[0] ?? {}, n = hH(t, "candidateRate", "candidateAcceptedRate") ?? hH(t, "candidateBudget", "candidateBudgetStart");
56880
+ function _H(e) {
56881
+ let t = e.selectedRecords?.[0] ?? {}, n = gH(t, "candidateRate", "candidateAcceptedRate") ?? gH(t, "candidateBudget", "candidateBudgetStart");
56884
56882
  if (n === void 0 || Number(n) === 0) return null;
56885
- let r = hH(t, "candidateRate", "candidateAcceptedCurrency") ?? hH(t, "candidateBudget", "candidateBudgetCurrency");
56883
+ let r = gH(t, "candidateRate", "candidateAcceptedCurrency") ?? gH(t, "candidateBudget", "candidateBudgetCurrency");
56886
56884
  return {
56887
56885
  amount: n,
56888
- symbol: hH(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? hH(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? mH[String(r ?? "").toUpperCase()] ?? (r || "$"),
56889
- unit: hH(t, "candidateRate", "candidateAcceptedPayUnit") ?? hH(t, "candidateBudget", "candidateBudgetUnit") ?? ""
56886
+ symbol: gH(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? gH(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? hH[String(r ?? "").toUpperCase()] ?? (r || "$"),
56887
+ unit: gH(t, "candidateRate", "candidateAcceptedPayUnit") ?? gH(t, "candidateBudget", "candidateBudgetUnit") ?? ""
56890
56888
  };
56891
56889
  }
56892
- var _H = {
56890
+ var vH = {
56893
56891
  title: "Approve Rate",
56894
56892
  okText: "Approve",
56895
56893
  width: 520,
56896
56894
  className: "medium-modal",
56897
56895
  successMessage: "Rate approved",
56898
56896
  getBodyText: (e, t, n, r, i) => {
56899
- let a = gH(i);
56897
+ let a = _H(i);
56900
56898
  return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
56901
56899
  },
56902
56900
  fields: [
@@ -56910,7 +56908,7 @@ var _H = {
56910
56908
  inlineRow: "proposedRate",
56911
56909
  validator: (e, t) => {
56912
56910
  if (e == null || e === "") return;
56913
- let n = gH(t);
56911
+ let n = _H(t);
56914
56912
  if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
56915
56913
  }
56916
56914
  },
@@ -56978,7 +56976,7 @@ var _H = {
56978
56976
  }]
56979
56977
  }
56980
56978
  ]
56981
- }, vH = { submit: async (e, t) => {
56979
+ }, yH = { submit: async (e, t) => {
56982
56980
  let n = t.selectedIds[0];
56983
56981
  if (await wl(n, {
56984
56982
  candidateProposedRate: e.candidateProposedRate,
@@ -56994,7 +56992,7 @@ var _H = {
56994
56992
  } };
56995
56993
  //#endregion
56996
56994
  //#region src/services/mailApproveApi.js
56997
- async function yH(e, t = {}) {
56995
+ async function bH(e, t = {}) {
56998
56996
  let n = E();
56999
56997
  if (!n) {
57000
56998
  let e = /* @__PURE__ */ Error("Authentication required");
@@ -57014,8 +57012,8 @@ async function yH(e, t = {}) {
57014
57012
  }
57015
57013
  return i.json();
57016
57014
  }
57017
- async function bH(e) {
57018
- let t = await yH(`/mail-form?${new URLSearchParams({
57015
+ async function xH(e) {
57016
+ let t = await bH(`/mail-form?${new URLSearchParams({
57019
57017
  submissionId: e,
57020
57018
  submissionType: "manager"
57021
57019
  }).toString()}`);
@@ -57023,15 +57021,15 @@ async function bH(e) {
57023
57021
  }
57024
57022
  //#endregion
57025
57023
  //#region src/components/popups/definitions/manager-approve/managerApproveIdentity.js
57026
- function xH(...e) {
57024
+ function SH(...e) {
57027
57025
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
57028
57026
  }
57029
- var SH = (e, t) => !!e && e.toLowerCase() === xH(t).toLowerCase();
57030
- function CH(e, t, n) {
57031
- let r = xH(t.submittedBy);
57032
- return xH(SH(r, n) || SH(r, e.submitSource) || SH(r, e.supplierName) || SH(r, e.source) || SH(r, e.candidateSource) ? "" : r, e.recruitingUserName, e.recruitingUserEmail, e.signatureEmail);
57027
+ var CH = (e, t) => !!e && e.toLowerCase() === SH(t).toLowerCase();
57028
+ function wH(e, t, n) {
57029
+ let r = SH(t.submittedBy);
57030
+ return SH(CH(r, n) || CH(r, e.submitSource) || CH(r, e.supplierName) || CH(r, e.source) || CH(r, e.candidateSource) ? "" : r, e.recruitingUserName, e.recruitingUserEmail, e.signatureEmail);
57033
57031
  }
57034
- function wH(e, t = {}) {
57032
+ function TH(e, t = {}) {
57035
57033
  let n = BO(e, t.employerName);
57036
57034
  return {
57037
57035
  client: t.clientName ?? e.clientName,
@@ -57040,7 +57038,7 @@ function wH(e, t = {}) {
57040
57038
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
57041
57039
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
57042
57040
  vendor: n,
57043
- submittedBy: CH(e, t, n),
57041
+ submittedBy: wH(e, t, n),
57044
57042
  submittedAt: t.createdAt ?? e.createdAt,
57045
57043
  email: t.email ?? e.email,
57046
57044
  employerLocation: t.employerLocation,
@@ -57049,39 +57047,39 @@ function wH(e, t = {}) {
57049
57047
  }
57050
57048
  //#endregion
57051
57049
  //#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
57052
- function TH(e, t) {
57050
+ function EH(e, t) {
57053
57051
  try {
57054
57052
  return JSON.parse(localStorage.getItem("menuPermission") || "{}")?.[e]?.[t];
57055
57053
  } catch {
57056
57054
  return;
57057
57055
  }
57058
57056
  }
57059
- function EH() {
57060
- return TH("referrals", "view") === 1 || TH("referrals", "view") === !0 || TH("pomsa-referral", "view") === 1 || TH("pomsa-referral", "view") === !0;
57057
+ function DH() {
57058
+ return EH("referrals", "view") === 1 || EH("referrals", "view") === !0 || EH("pomsa-referral", "view") === 1 || EH("pomsa-referral", "view") === !0;
57061
57059
  }
57062
- function DH(e) {
57060
+ function OH(e) {
57063
57061
  return Array.isArray(e) ? e[e.length - 1] : e;
57064
57062
  }
57065
- function OH(e = {}) {
57066
- let t = DH(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
57063
+ function kH(e = {}) {
57064
+ let t = OH(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
57067
57065
  return Number.isFinite(n) ? n : 0;
57068
57066
  }
57069
- function kH(e, t = {}) {
57070
- let n = DH((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = DH(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
57067
+ function AH(e, t = {}) {
57068
+ let n = OH((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = OH(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
57071
57069
  return Number.isFinite(o) ? o : 0;
57072
57070
  }
57073
- function AH(e = {}) {
57071
+ function jH(e = {}) {
57074
57072
  let t = String(e?.currencyRaw ?? "").trim().toUpperCase(), n = String(e?.currency ?? "").trim();
57075
57073
  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;
57076
57074
  }
57077
- function jH(e = {}) {
57075
+ function MH(e = {}) {
57078
57076
  return String(e?.rateUnitShort || e?.rateUnit || "hr").trim().replace(/^\/+/, "") || "hr";
57079
57077
  }
57080
- function MH(e, t = {}) {
57078
+ function NH(e, t = {}) {
57081
57079
  let n = Number(e);
57082
- return Number.isFinite(n) ? `${AH(t)}${n}/${jH(t)}` : "";
57080
+ return Number.isFinite(n) ? `${jH(t)}${n}/${MH(t)}` : "";
57083
57081
  }
57084
- function NH(e, t, n) {
57082
+ function PH(e, t, n) {
57085
57083
  if (n == null || n === "") return String(e ?? "");
57086
57084
  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");
57087
57085
  r = r.replace(o, (e, t, n, r) => (a = !0, `${t}${i}${r}`));
@@ -57092,23 +57090,23 @@ function NH(e, t, n) {
57092
57090
  }
57093
57091
  return r;
57094
57092
  }
57095
- function PH(e, t, n, r, i) {
57096
- let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : OH(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : kH(r, i), l = {
57093
+ function FH(e, t, n, r, i) {
57094
+ let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : kH(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : AH(r, i), l = {
57097
57095
  proposedRate: o,
57098
57096
  jobBillRate: c
57099
57097
  }, u = String(e ?? "").replace(/{{\.?((?:proposedRate)|(?:jobBillRate))}}/g, (e, t) => {
57100
57098
  let n = l[t];
57101
57099
  return n == null ? e : String(n);
57102
57100
  });
57103
- return u = NH(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", MH(o, n)), u = NH(u, "(?:Job\\s*)?Bill\\s*Rate", MH(c, n)), u;
57101
+ return u = PH(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", NH(o, n)), u = PH(u, "(?:Job\\s*)?Bill\\s*Rate", NH(c, n)), u;
57104
57102
  }
57105
- function FH(e) {
57103
+ function IH(e) {
57106
57104
  let t = e?.$oid ?? e?._id?.$oid ?? e?._id ?? e?.id?.$oid ?? e?.id ?? e;
57107
57105
  if (t == null || typeof t == "object") return "";
57108
57106
  let n = String(t).trim();
57109
57107
  return /^[a-f\d]{24}$/i.test(n) ? n : "";
57110
57108
  }
57111
- function IH(...e) {
57109
+ function LH(...e) {
57112
57110
  for (let t of e) {
57113
57111
  let e = [
57114
57112
  t?.jobId,
@@ -57131,12 +57129,12 @@ function IH(...e) {
57131
57129
  t?.submission?.recordMeta?.jobId,
57132
57130
  t?.submission?.recordMeta?.JobId,
57133
57131
  t?.submission?.recordMeta?.job_id
57134
- ].map(FH).find(Boolean);
57132
+ ].map(IH).find(Boolean);
57135
57133
  if (e) return e;
57136
57134
  }
57137
57135
  return "";
57138
57136
  }
57139
- function LH(e) {
57137
+ function RH(e) {
57140
57138
  if (!e?.referralId) return {};
57141
57139
  let t = Number(e.referralRate ?? e.referalRate ?? 0) || 0, n = String(e.referralType ?? e.referalType ?? "RECURRING").trim() || "RECURRING", r = e.referralId ?? e.referalId;
57142
57140
  return {
@@ -57162,10 +57160,10 @@ function LH(e) {
57162
57160
  }
57163
57161
  };
57164
57162
  }
57165
- function RH(e = "") {
57163
+ function zH(e = "") {
57166
57164
  return String(e ?? "").replace(/map\[[^\]]*(?:resume|document|attachment|file)[^\]]*\]/gi, "").replace(/<p>\s*<\/p>/gi, "").replace(/(?:<br\s*\/?>\s*){3,}/gi, "<br><br>").trim();
57167
57165
  }
57168
- function zH(...e) {
57166
+ function BH(...e) {
57169
57167
  for (let t of e) {
57170
57168
  let e = [
57171
57169
  t?.candidateId,
@@ -57176,12 +57174,12 @@ function zH(...e) {
57176
57174
  t?.submission?.applicantId,
57177
57175
  t?.recordMeta?.candidateId,
57178
57176
  t?.recordMeta?.applicantId
57179
- ].map(FH).find(Boolean);
57177
+ ].map(IH).find(Boolean);
57180
57178
  if (e) return e;
57181
57179
  }
57182
57180
  return "";
57183
57181
  }
57184
- async function BH(e) {
57182
+ async function VH(e) {
57185
57183
  let t = e?.fileUrl ?? e?.downloadUrl ?? e?.url;
57186
57184
  if (!t) return null;
57187
57185
  let n = await fetch(t);
@@ -57189,34 +57187,34 @@ async function BH(e) {
57189
57187
  let r = await n.blob(), i = e?.fileName ?? e?.uploadedFileName ?? e?.originalName ?? e?.uniqueName ?? "resume";
57190
57188
  return new File([r], i, { type: e?.contentType || r.type || "application/octet-stream" });
57191
57189
  }
57192
- async function VH(e, t, n) {
57190
+ async function HH(e, t, n) {
57193
57191
  let r = [], i = await wr("submissions", e, "resume").catch(() => ({ data: [] }));
57194
57192
  r.push(...i?.data ?? []);
57195
- let a = zH(t?.record?.submission, n, t?.record);
57193
+ let a = BH(t?.record?.submission, n, t?.record);
57196
57194
  if (!a) {
57197
57195
  let t = await x(k, `/module/list?module=submissions&id=${encodeURIComponent(e)}`).catch(() => ({})), n = t?.data ?? t ?? {};
57198
- a = zH((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
57196
+ a = BH((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
57199
57197
  }
57200
57198
  if (a) {
57201
57199
  let e = await wr("candidates", a, "resume").catch(() => ({ data: [] }));
57202
57200
  r.push(...e?.data ?? []);
57203
57201
  }
57204
- let o = (await Promise.all(r.map(BH))).filter(Boolean), s = /* @__PURE__ */ new Set();
57202
+ let o = (await Promise.all(r.map(VH))).filter(Boolean), s = /* @__PURE__ */ new Set();
57205
57203
  return o.filter((e) => {
57206
57204
  let t = `${e.name}:${e.size}:${e.type}`;
57207
57205
  return !s.has(t) && (s.add(t), !0);
57208
57206
  });
57209
57207
  }
57210
- function HH(e = {}) {
57208
+ function UH(e = {}) {
57211
57209
  return {
57212
57210
  to: (e.to ?? e.To ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
57213
57211
  cc: (e.cc ?? e.Cc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
57214
57212
  bcc: (e.bcc ?? e.Bcc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
57215
57213
  subject: e.subject ?? e.Subject ?? "",
57216
- contents: RH(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
57214
+ contents: zH(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
57217
57215
  };
57218
57216
  }
57219
- function UH({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
57217
+ function WH({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
57220
57218
  let a = n?.[0] ?? {}, o = t?.[0] ?? gO(a), [s, c] = L(null), [l, u] = L(!0), [d, f] = L([]), [p, m] = L(!1), [h, g] = L("vms"), [_, v] = L(null), [y, b] = L(null), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), [D, O] = L(!1), [k, ee] = L({
57221
57219
  to: "",
57222
57220
  cc: "",
@@ -57255,13 +57253,13 @@ function UH({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
57255
57253
  if (h === "mail") {
57256
57254
  m(!1), w(!0), E(!0);
57257
57255
  try {
57258
- let [e, t] = await Promise.all([bH(o).then(HH), VH(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
57256
+ let [e, t] = await Promise.all([xH(o).then(UH), HH(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
57259
57257
  ee({
57260
- to: PH(e.to, n, _, s, a),
57261
- cc: PH(e.cc, n, _, s, a),
57262
- bcc: PH(e.bcc, n, _, s, a),
57263
- subject: PH(e.subject, n, _, s, a),
57264
- contents: PH(e.contents, n, _, s, a),
57258
+ to: FH(e.to, n, _, s, a),
57259
+ cc: FH(e.cc, n, _, s, a),
57260
+ bcc: FH(e.bcc, n, _, s, a),
57261
+ subject: FH(e.subject, n, _, s, a),
57262
+ contents: FH(e.contents, n, _, s, a),
57265
57263
  attachments: t,
57266
57264
  showCc: !!e.cc,
57267
57265
  showBcc: !!e.bcc
@@ -57280,7 +57278,7 @@ function UH({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
57280
57278
  candidateProposedRateCurrency: _.currencyRaw ?? _.currency,
57281
57279
  candidateProposedRateUnit: _.rateUnit,
57282
57280
  submitVia: "VMS",
57283
- ...LH(y)
57281
+ ...RH(y)
57284
57282
  }), q.success("Submission approved"), m(!1), v(null), b(null), i?.({ success: !0 });
57285
57283
  } catch (e) {
57286
57284
  q.error(e?.message ?? "Unable to approve submission");
@@ -57302,9 +57300,9 @@ function UH({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
57302
57300
  await wl(o, {
57303
57301
  ...e,
57304
57302
  submitVia: "VMS",
57305
- ...LH(y)
57303
+ ...RH(y)
57306
57304
  });
57307
- let t = IH(s?.record, a);
57305
+ let t = LH(s?.record, a);
57308
57306
  if (!t) q.warning("Submission approved, but job details were not available to send mail");
57309
57307
  else try {
57310
57308
  await Ad({
@@ -57358,9 +57356,9 @@ function UH({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
57358
57356
  type: HD,
57359
57357
  record: s.record,
57360
57358
  lookups: s.lookups,
57361
- identity: wH(a, s.display),
57359
+ identity: TH(a, s.display),
57362
57360
  referralOptions: d,
57363
- canViewReferral: EH(),
57361
+ canViewReferral: DH(),
57364
57362
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
57365
57363
  actions: re,
57366
57364
  onClose: () => i?.(),
@@ -57448,7 +57446,7 @@ function UH({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
57448
57446
  })
57449
57447
  ] });
57450
57448
  }
57451
- UH.propTypes = {
57449
+ WH.propTypes = {
57452
57450
  context: Z.object,
57453
57451
  selectedIds: Z.array,
57454
57452
  selectedRecords: Z.array,
@@ -57457,29 +57455,29 @@ UH.propTypes = {
57457
57455
  };
57458
57456
  //#endregion
57459
57457
  //#region src/components/popups/definitions/manager-approve/config.js
57460
- var WH = {
57458
+ var GH = {
57461
57459
  title: "Manager Approve",
57462
57460
  width: 780,
57463
57461
  className: "fa-modal manager-approve-modal",
57464
- component: UH
57465
- }, GH = { submit: async () => {} };
57462
+ component: WH
57463
+ }, KH = { submit: async () => {} };
57466
57464
  //#endregion
57467
57465
  //#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
57468
- function KH(e) {
57466
+ function qH(e) {
57469
57467
  let t = Array.isArray(e) ? e : [];
57470
57468
  for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
57471
57469
  return null;
57472
57470
  }
57473
- function qH(e) {
57471
+ function JH(e) {
57474
57472
  return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
57475
57473
  }
57476
- function JH({ selectedIds: e, selectedRecords: t, onClose: n }) {
57474
+ function YH({ selectedIds: e, selectedRecords: t, onClose: n }) {
57477
57475
  let r = t?.[0] ?? {}, i = e?.[0] ?? gO(r), [a, o] = L(null), [s, c] = L(""), [l, u] = L(!0);
57478
57476
  F(() => {
57479
57477
  let e = !1;
57480
57478
  return u(!0), Promise.all([yk(i, r), bn("submission", i).catch(() => [])]).then(([t, n]) => {
57481
57479
  if (e) return;
57482
- let i = KH(n);
57480
+ let i = qH(n);
57483
57481
  c(gO(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
57484
57482
  let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
57485
57483
  o({
@@ -57488,7 +57486,7 @@ function JH({ selectedIds: e, selectedRecords: t, onClose: n }) {
57488
57486
  ...t.record,
57489
57487
  submission: {
57490
57488
  ...t.record.submission,
57491
- cfoRejectionReason: a ? qH(a) : "",
57489
+ cfoRejectionReason: a ? JH(a) : "",
57492
57490
  cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
57493
57491
  }
57494
57492
  }
@@ -57536,26 +57534,26 @@ function JH({ selectedIds: e, selectedRecords: t, onClose: n }) {
57536
57534
  type: KD,
57537
57535
  record: a.record,
57538
57536
  lookups: a.lookups,
57539
- identity: wH(r, a.display),
57537
+ identity: TH(r, a.display),
57540
57538
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
57541
57539
  actions: d,
57542
57540
  onClose: () => n?.(),
57543
57541
  variant: "popup"
57544
57542
  });
57545
57543
  }
57546
- JH.propTypes = {
57544
+ YH.propTypes = {
57547
57545
  selectedIds: Z.array,
57548
57546
  selectedRecords: Z.array,
57549
57547
  onClose: Z.func
57550
57548
  };
57551
57549
  //#endregion
57552
57550
  //#region src/components/popups/definitions/manager-reapprove/config.js
57553
- var YH = {
57551
+ var XH = {
57554
57552
  title: "Re-Approve",
57555
57553
  width: 780,
57556
57554
  className: "fa-modal manager-approve-modal",
57557
- component: JH
57558
- }, XH = { submit: async () => {} }, ZH = [
57555
+ component: YH
57556
+ }, ZH = { submit: async () => {} }, QH = [
57559
57557
  {
57560
57558
  id: 1,
57561
57559
  name: "Re-Submission"
@@ -57568,7 +57566,7 @@ var YH = {
57568
57566
  id: 3,
57569
57567
  name: "Incomplete candidate details - (Re-Submission)"
57570
57568
  }
57571
- ], QH = {
57569
+ ], $H = {
57572
57570
  title: "Reject",
57573
57571
  okText: "Reject",
57574
57572
  okButtonDanger: !0,
@@ -57580,7 +57578,7 @@ var YH = {
57580
57578
  type: "select",
57581
57579
  required: !0,
57582
57580
  placeholder: "Select rejection reasons",
57583
- defaultOptions: ZH.map((e) => ({
57581
+ defaultOptions: QH.map((e) => ({
57584
57582
  label: e.name,
57585
57583
  value: e.id
57586
57584
  }))
@@ -57591,36 +57589,20 @@ var YH = {
57591
57589
  required: !0,
57592
57590
  rows: 4
57593
57591
  }]
57594
- }, $H = { submit: async (e, t) => {
57595
- let n = ZH.find((t) => String(t.id) === String(e.rejectReason));
57592
+ }, eU = { submit: async (e, t) => {
57593
+ let n = QH.find((t) => String(t.id) === String(e.rejectReason));
57596
57594
  await Dl({
57597
57595
  submissionId: t.selectedIds[0],
57598
57596
  rejectReasonId: e.rejectReason,
57599
57597
  rejectReason: n?.name ?? "",
57600
57598
  rejectReasonComments: e.rejectReasonComments
57601
57599
  });
57602
- } }, eU = {
57600
+ } }, tU = {
57603
57601
  delete: ZB,
57604
- "quick-submit": kV,
57605
- "add-notes": AV,
57606
- "tag-to-job": IV,
57607
- "change-status": YV,
57608
- "remove-from-shortlist": QV,
57609
- "add-to-groups": eH,
57610
- "self-assign": iH,
57611
- "others-assign": sH,
57612
- "sticky-notes": lH,
57613
- "move-to-onboarding": dH,
57614
- "approve-rate": _H,
57615
- "manager-approve": WH,
57616
- "manager-reapprove": YH,
57617
- reject: QH
57618
- }, tU = {
57619
- delete: QB,
57620
- "quick-submit": OV,
57621
- "add-notes": NV,
57622
- "tag-to-job": JV,
57623
- "change-status": ZV,
57602
+ "quick-submit": AV,
57603
+ "add-notes": jV,
57604
+ "tag-to-job": LV,
57605
+ "change-status": XV,
57624
57606
  "remove-from-shortlist": $V,
57625
57607
  "add-to-groups": tH,
57626
57608
  "self-assign": aH,
@@ -57631,48 +57613,64 @@ var YH = {
57631
57613
  "manager-approve": GH,
57632
57614
  "manager-reapprove": XH,
57633
57615
  reject: $H
57616
+ }, nU = {
57617
+ delete: QB,
57618
+ "quick-submit": kV,
57619
+ "add-notes": PV,
57620
+ "tag-to-job": YV,
57621
+ "change-status": QV,
57622
+ "remove-from-shortlist": eH,
57623
+ "add-to-groups": nH,
57624
+ "self-assign": oH,
57625
+ "others-assign": lH,
57626
+ "sticky-notes": dH,
57627
+ "move-to-onboarding": pH,
57628
+ "approve-rate": yH,
57629
+ "manager-approve": KH,
57630
+ "manager-reapprove": ZH,
57631
+ reject: eU
57634
57632
  };
57635
57633
  //#endregion
57636
57634
  //#region src/components/popups/AddBatchCandidatePopup.jsx
57637
- function nU(e) {
57635
+ function rU(e) {
57638
57636
  let t = e?.data ?? e;
57639
57637
  return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
57640
57638
  }
57641
- function rU(e, ...t) {
57639
+ function iU(e, ...t) {
57642
57640
  for (let n of t) {
57643
57641
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
57644
57642
  if (t != null && t !== "") return t;
57645
57643
  }
57646
57644
  return "";
57647
57645
  }
57648
- function iU(e) {
57649
- let t = String(rU(e, "isDeleted", "deleted")).toLowerCase(), n = String(rU(e, "assignmentStatus", "status")).toLowerCase();
57646
+ function aU(e) {
57647
+ let t = String(iU(e, "isDeleted", "deleted")).toLowerCase(), n = String(iU(e, "assignmentStatus", "status")).toLowerCase();
57650
57648
  return t !== "true" && t !== "1" && ![
57651
57649
  "removed",
57652
57650
  "inactive",
57653
57651
  "deleted"
57654
57652
  ].includes(n);
57655
57653
  }
57656
- function aU(e) {
57657
- let t = rU(e, "candidateName", "candidate_name", "fullName", "name");
57658
- return t ? String(t) : [rU(e, "firstName", "first_name"), rU(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
57659
- }
57660
57654
  function oU(e) {
57661
- return String(rU(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
57655
+ let t = iU(e, "candidateName", "candidate_name", "fullName", "name");
57656
+ return t ? String(t) : [iU(e, "firstName", "first_name"), iU(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
57662
57657
  }
57663
57658
  function sU(e) {
57664
- return String(rU(e, "workforceEngagementId", "engagementId", "_id", "id"));
57659
+ return String(iU(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
57665
57660
  }
57666
57661
  function cU(e) {
57667
- return String(rU(e, "batchName", "name", "title", "batch_name"));
57662
+ return String(iU(e, "workforceEngagementId", "engagementId", "_id", "id"));
57668
57663
  }
57669
- function lU({ open: e = !0, context: t = {}, onClose: n }) {
57664
+ function lU(e) {
57665
+ return String(iU(e, "batchName", "name", "title", "batch_name"));
57666
+ }
57667
+ function uU({ open: e = !0, context: t = {}, onClose: n }) {
57670
57668
  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 ?? "");
57671
57669
  F(() => {
57672
57670
  if (!e) return;
57673
57671
  let t = !1;
57674
57672
  return Promise.resolve().then(() => (t || u(!0), Promise.all([Di("onboarding", 200, 0), Di("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
57675
- t || (i(nU(e)), g(new Map(nU(n).filter(iU).map((e) => [String(rU(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
57673
+ t || (i(rU(e)), g(new Map(rU(n).filter(aU).map((e) => [String(iU(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
57676
57674
  }).catch((e) => {
57677
57675
  t || m(e.message || "Unable to load onboarding candidates");
57678
57676
  }).finally(() => {
@@ -57684,9 +57682,9 @@ function lU({ open: e = !0, context: t = {}, onClose: n }) {
57684
57682
  let v = I(() => {
57685
57683
  let e = s.trim().toLowerCase();
57686
57684
  return e ? r.filter((t) => [
57687
- aU(t),
57688
- rU(t, "email", "candidateEmail", "candidate_email"),
57689
- rU(t, "status", "onboardingStatus", "onboarding_status")
57685
+ oU(t),
57686
+ iU(t, "email", "candidateEmail", "candidate_email"),
57687
+ iU(t, "status", "onboardingStatus", "onboarding_status")
57690
57688
  ].some((t) => String(t).toLowerCase().includes(e))) : r;
57691
57689
  }, [r, s]);
57692
57690
  async function y() {
@@ -57694,26 +57692,26 @@ function lU({ open: e = !0, context: t = {}, onClose: n }) {
57694
57692
  m("Select a batch before adding candidates");
57695
57693
  return;
57696
57694
  }
57697
- let e = r.filter((e) => a.includes(sU(e)));
57695
+ let e = r.filter((e) => a.includes(cU(e)));
57698
57696
  if (!e.length) return;
57699
57697
  let i = e.map((e) => ({
57700
57698
  record: e,
57701
- assignment: h.get(oU(e))
57699
+ assignment: h.get(sU(e))
57702
57700
  })).filter((e) => e.assignment);
57703
57701
  if (i.length) {
57704
- let e = i.map(({ record: e }) => aU(e)).join(", ");
57702
+ let e = i.map(({ record: e }) => oU(e)).join(", ");
57705
57703
  m(`${e} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
57706
57704
  return;
57707
57705
  }
57708
57706
  f(!0), m("");
57709
57707
  try {
57710
- let { userId: r } = w(), i = cU(t.selectedRecords?.[0]) || cU(t);
57708
+ let { userId: r } = w(), i = lU(t.selectedRecords?.[0]) || lU(t);
57711
57709
  await Promise.all(e.map((e) => $e("batchCandidates", {
57712
57710
  schemaVersion: 1,
57713
57711
  batchId: _,
57714
57712
  batchName: i,
57715
- candidateId: oU(e),
57716
- workforceEngagementId: sU(e),
57713
+ candidateId: sU(e),
57714
+ workforceEngagementId: cU(e),
57717
57715
  source: "ONBOARDING",
57718
57716
  assignmentStatus: "ASSIGNED",
57719
57717
  assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -57756,22 +57754,22 @@ function lU({ open: e = !0, context: t = {}, onClose: n }) {
57756
57754
  style: { marginBottom: 12 }
57757
57755
  }),
57758
57756
  /* @__PURE__ */ Y(io, {
57759
- rowKey: (e) => sU(e),
57757
+ rowKey: (e) => cU(e),
57760
57758
  columns: [
57761
57759
  {
57762
57760
  title: "Candidate",
57763
57761
  key: "candidate",
57764
- render: (e, t) => aU(t)
57762
+ render: (e, t) => oU(t)
57765
57763
  },
57766
57764
  {
57767
57765
  title: "Email",
57768
57766
  key: "email",
57769
- render: (e, t) => rU(t, "email", "candidateEmail", "candidate_email") || "—"
57767
+ render: (e, t) => iU(t, "email", "candidateEmail", "candidate_email") || "—"
57770
57768
  },
57771
57769
  {
57772
57770
  title: "Onboarding status",
57773
57771
  key: "status",
57774
- render: (e, t) => rU(t, "status", "onboardingStatus", "onboarding_status") || "—"
57772
+ render: (e, t) => iU(t, "status", "onboardingStatus", "onboarding_status") || "—"
57775
57773
  }
57776
57774
  ],
57777
57775
  dataSource: v,
@@ -57785,9 +57783,9 @@ function lU({ open: e = !0, context: t = {}, onClose: n }) {
57785
57783
  selectedRowKeys: a,
57786
57784
  onChange: o,
57787
57785
  getCheckboxProps: (e) => {
57788
- let t = h.get(oU(e));
57786
+ let t = h.get(sU(e));
57789
57787
  return {
57790
- disabled: !oU(e) || !sU(e) || !!t,
57788
+ disabled: !sU(e) || !cU(e) || !!t,
57791
57789
  title: t ? "Candidate is already added to a batch" : void 0
57792
57790
  };
57793
57791
  }
@@ -57799,7 +57797,7 @@ function lU({ open: e = !0, context: t = {}, onClose: n }) {
57799
57797
  }
57800
57798
  //#endregion
57801
57799
  //#region src/components/popups/dynamic/DynamicPopupRoute.jsx
57802
- var uU = {
57800
+ var dU = {
57803
57801
  text: "input",
57804
57802
  string: "input",
57805
57803
  textarea: "textarea",
@@ -57808,30 +57806,30 @@ var uU = {
57808
57806
  multiselect: "multi-select",
57809
57807
  lookup: "search-select"
57810
57808
  };
57811
- function dU(e) {
57809
+ function fU(e) {
57812
57810
  if (!e) return null;
57813
57811
  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) => ({
57814
57812
  ...e,
57815
57813
  name: e.name ?? e.field,
57816
57814
  label: e.label ?? e.field,
57817
- type: uU[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
57815
+ type: dU[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
57818
57816
  required: e.required ?? e.req === 1,
57819
57817
  options: (e.options ?? []).map((e) => ({
57820
57818
  label: e.label ?? e.name ?? e.value,
57821
57819
  value: e.value ?? e.id ?? e.label
57822
57820
  }))
57823
- }))), n = fU(e.successNavigate);
57821
+ }))), n = pU(e.successNavigate);
57824
57822
  return {
57825
57823
  title: e.label,
57826
57824
  fields: t,
57827
57825
  ...n ? { successNavigate: n } : {}
57828
57826
  };
57829
57827
  }
57830
- function fU(e) {
57828
+ function pU(e) {
57831
57829
  let t = String(e ?? "").trim();
57832
57830
  return !t || !t.startsWith("/") || t.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(t) ? null : t;
57833
57831
  }
57834
- function pU(e, t = []) {
57832
+ function mU(e, t = []) {
57835
57833
  if (!e || !Array.isArray(t) || !t.length) return e;
57836
57834
  let n = new Map(t.filter((e) => e?.name).map((e) => [String(e.name), e]));
57837
57835
  return n.size ? {
@@ -57847,12 +57845,12 @@ function pU(e, t = []) {
57847
57845
  })
57848
57846
  } : e;
57849
57847
  }
57850
- function mU({ apiMap: e = {}, extraConfigs: t = {} }) {
57848
+ function hU({ apiMap: e = {}, extraConfigs: t = {} }) {
57851
57849
  let n = I(() => ({
57852
- ...tU,
57850
+ ...nU,
57853
57851
  ...e
57854
57852
  }), [e]), r = I(() => {
57855
- let e = { ...eU };
57853
+ let e = { ...tU };
57856
57854
  return Object.entries(t).forEach(([t, n]) => {
57857
57855
  e[t] = {
57858
57856
  ...e[t] ?? {},
@@ -57870,7 +57868,7 @@ function mU({ apiMap: e = {}, extraConfigs: t = {} }) {
57870
57868
  return Hi(o.moduleName, "popup", i).then((n) => {
57871
57869
  e || c({
57872
57870
  key: t,
57873
- config: dU(n[0])
57871
+ config: fU(n[0])
57874
57872
  });
57875
57873
  }).catch(() => {
57876
57874
  e || c({
@@ -57883,7 +57881,7 @@ function mU({ apiMap: e = {}, extraConfigs: t = {} }) {
57883
57881
  }, [i, o.moduleName]);
57884
57882
  let l = I(() => {
57885
57883
  let e = r[i], t = `${o.moduleName}:${i}`, n = s.key === t ? s.config : null;
57886
- return pU(n ? {
57884
+ return mU(n ? {
57887
57885
  ...e,
57888
57886
  ...n
57889
57887
  } : e, o.popupAction?.popupFieldOverrides);
@@ -57942,7 +57940,7 @@ function mU({ apiMap: e = {}, extraConfigs: t = {} }) {
57942
57940
  }
57943
57941
  a(-1);
57944
57942
  };
57945
- return i === "add-batch-candidate" ? /* @__PURE__ */ Y(lU, {
57943
+ return i === "add-batch-candidate" ? /* @__PURE__ */ Y(uU, {
57946
57944
  open: !0,
57947
57945
  context: u,
57948
57946
  onClose: f
@@ -57959,7 +57957,7 @@ function mU({ apiMap: e = {}, extraConfigs: t = {} }) {
57959
57957
  }
57960
57958
  //#endregion
57961
57959
  //#region src/components/popups/definitions/vendor-share/config.js
57962
- var hU = {
57960
+ var gU = {
57963
57961
  title: "Vendor Share",
57964
57962
  maxVendorSelect: 1e3,
57965
57963
  defaultTab: "myVendor",
@@ -57993,7 +57991,7 @@ var hU = {
57993
57991
  key: "updatedOn"
57994
57992
  }
57995
57993
  ]
57996
- }, gU = {
57994
+ }, _U = {
57997
57995
  getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => Td({
57998
57996
  jobId: e,
57999
57997
  limit: t,
@@ -58010,11 +58008,11 @@ var hU = {
58010
58008
  subject: i,
58011
58009
  contents: a
58012
58010
  })
58013
- }, _U = hU.vendorColumns.map((e) => ({
58011
+ }, vU = gU.vendorColumns.map((e) => ({
58014
58012
  ...e,
58015
58013
  render: (e) => e || "-"
58016
58014
  }));
58017
- function vU() {
58015
+ function yU() {
58018
58016
  let e = bc(), t = yc(), { 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({
58019
58017
  to: i.join(", "),
58020
58018
  cc: "",
@@ -58023,13 +58021,13 @@ function vU() {
58023
58021
  contents: "",
58024
58022
  showCc: !1,
58025
58023
  showBcc: !1
58026
- }), [f, p] = L(!l), [m, h] = L(hU.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(hU.defaultPageSize), [ee, A] = L(!1), [j, te] = L([]);
58024
+ }), [f, p] = L(!l), [m, h] = L(gU.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(gU.defaultPageSize), [ee, A] = L(!1), [j, te] = L([]);
58027
58025
  F(() => {
58028
58026
  if (!l) return;
58029
58027
  let e = !1;
58030
58028
  A(!0);
58031
58029
  let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
58032
- return gU.getVendorList({
58030
+ return _U.getVendorList({
58033
58031
  jobId: l,
58034
58032
  limit: t,
58035
58033
  offset: n,
@@ -58052,7 +58050,7 @@ function vU() {
58052
58050
  O,
58053
58051
  g
58054
58052
  ]), F(() => {
58055
- l && gU.getMailDetails(l).then((e) => d((t) => ({
58053
+ l && _U.getMailDetails(l).then((e) => d((t) => ({
58056
58054
  ...t,
58057
58055
  subject: e.subject || t.subject,
58058
58056
  contents: e.contents || t.contents,
@@ -58077,7 +58075,7 @@ function vU() {
58077
58075
  e(-1);
58078
58076
  }
58079
58077
  function ae() {
58080
- re && gU.submit({
58078
+ re && _U.submit({
58081
58079
  jobId: l,
58082
58080
  toMail: SR(ne.to),
58083
58081
  ccMail: SR(ne.cc),
@@ -58158,7 +58156,7 @@ function vU() {
58158
58156
  ]
58159
58157
  }), /* @__PURE__ */ Y("div", {
58160
58158
  className: "vendor-share__vendor-tabs",
58161
- children: hU.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
58159
+ children: gU.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
58162
58160
  className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
58163
58161
  onClick: () => {
58164
58162
  h(e.key), D(1), te([]);
@@ -58176,7 +58174,7 @@ function vU() {
58176
58174
  className: "vendor-share__vendor-table-wrapper",
58177
58175
  children: /* @__PURE__ */ Y(io, {
58178
58176
  rowKey: (e) => e.vendorId,
58179
- columns: _U,
58177
+ columns: vU,
58180
58178
  dataSource: oe,
58181
58179
  loading: ee,
58182
58180
  pagination: !1,
@@ -58184,7 +58182,7 @@ function vU() {
58184
58182
  rowSelection: {
58185
58183
  selectedRowKeys: j,
58186
58184
  onChange: (e) => {
58187
- e.length > hU.maxVendorSelect || te(e);
58185
+ e.length > gU.maxVendorSelect || te(e);
58188
58186
  }
58189
58187
  },
58190
58188
  scroll: { y: "calc(100vh - 340px)" }
@@ -58218,7 +58216,7 @@ function vU() {
58218
58216
  children: [
58219
58217
  j.length,
58220
58218
  " / ",
58221
- hU.maxVendorSelect,
58219
+ gU.maxVendorSelect,
58222
58220
  " Vendors selected"
58223
58221
  ]
58224
58222
  }) : null
@@ -58229,7 +58227,7 @@ function vU() {
58229
58227
  }
58230
58228
  //#endregion
58231
58229
  //#region src/components/form/validation.js
58232
- var yU = {
58230
+ var bU = {
58233
58231
  EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
58234
58232
  PHONE: /^[0-9]{10}$/,
58235
58233
  PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
@@ -58246,7 +58244,7 @@ var yU = {
58246
58244
  FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
58247
58245
  NO_SPACES: /^\S+$/,
58248
58246
  STARTS_WITH_CAPITAL: /^[A-Z].*$/
58249
- }, bU = {
58247
+ }, xU = {
58250
58248
  SINGLE_FILE_COUNT: 1,
58251
58249
  MULTI_FILE_COUNT: 5,
58252
58250
  MAX_FILE_SIZE: 2,
@@ -58255,7 +58253,7 @@ var yU = {
58255
58253
  "image/png",
58256
58254
  "application/pdf"
58257
58255
  ]
58258
- }, xU = {
58256
+ }, SU = {
58259
58257
  REQUIRED: (e) => "Mandatory Field",
58260
58258
  INVALID_EMAIL: "Please enter a valid email address.",
58261
58259
  INVALID_PHONE: "Phone number must contain exactly 10 digits.",
@@ -58275,16 +58273,16 @@ var yU = {
58275
58273
  NO_SPACES_ALLOWED: "Spaces are not allowed.",
58276
58274
  MUST_START_WITH_CAPITAL: "First letter must be capital.",
58277
58275
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
58278
- INVALID_FILE_SIZE: `File upload must be ${bU.MAX_FILE_SIZE} MB below.`,
58276
+ INVALID_FILE_SIZE: `File upload must be ${xU.MAX_FILE_SIZE} MB below.`,
58279
58277
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
58280
58278
  SINGLE_FILE_ONLY: "Only one file can be uploaded."
58281
- }, SU = {
58279
+ }, CU = {
58282
58280
  FIRST_NAME_MIN: 3,
58283
58281
  FIRST_NAME_MAX: 30
58284
- }, CU = {
58282
+ }, wU = {
58285
58283
  REMARKS_MIN: 10,
58286
58284
  REMARKS_MAX: 250
58287
- }, wU = {
58285
+ }, TU = {
58288
58286
  removeSpaces: (e = "") => e.replace(/\s/g, ""),
58289
58287
  capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
58290
58288
  capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
@@ -58296,132 +58294,132 @@ var yU = {
58296
58294
  let t = e.replace(/\D/g, "");
58297
58295
  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)}`;
58298
58296
  }
58299
- }, TU = {
58297
+ }, EU = {
58300
58298
  required: (e = "Field") => ({
58301
58299
  required: !0,
58302
- message: xU.REQUIRED(e)
58300
+ message: SU.REQUIRED(e)
58303
58301
  }),
58304
58302
  email: () => ({
58305
- pattern: yU.EMAIL,
58306
- message: xU.INVALID_EMAIL
58303
+ pattern: bU.EMAIL,
58304
+ message: SU.INVALID_EMAIL
58307
58305
  }),
58308
58306
  phone: () => ({
58309
- pattern: yU.PHONE,
58310
- message: xU.INVALID_PHONE
58307
+ pattern: bU.PHONE,
58308
+ message: SU.INVALID_PHONE
58311
58309
  }),
58312
58310
  password: () => ({
58313
- pattern: yU.PASSWORD,
58314
- message: xU.INVALID_PASSWORD
58311
+ pattern: bU.PASSWORD,
58312
+ message: SU.INVALID_PASSWORD
58315
58313
  }),
58316
58314
  alphabets: () => ({
58317
- pattern: yU.ALPHABETS,
58318
- message: xU.INVALID_ALPHABETS
58315
+ pattern: bU.ALPHABETS,
58316
+ message: SU.INVALID_ALPHABETS
58319
58317
  }),
58320
58318
  alphanumeric: () => ({
58321
- pattern: yU.ALPHANUMERIC,
58322
- message: xU.INVALID_ALPHANUMERIC
58319
+ pattern: bU.ALPHANUMERIC,
58320
+ message: SU.INVALID_ALPHANUMERIC
58323
58321
  }),
58324
58322
  number: () => ({
58325
- pattern: yU.NUMBER,
58326
- message: xU.INVALID_NUMBER
58323
+ pattern: bU.NUMBER,
58324
+ message: SU.INVALID_NUMBER
58327
58325
  }),
58328
58326
  url: () => ({
58329
- pattern: yU.URL,
58330
- message: xU.INVALID_URL
58327
+ pattern: bU.URL,
58328
+ message: SU.INVALID_URL
58331
58329
  }),
58332
58330
  candidateId: (e = "ID") => ({
58333
- pattern: yU.CANDIDATE_ID,
58334
- message: xU.INVALID_CANDIDATE_ID(e)
58331
+ pattern: bU.CANDIDATE_ID,
58332
+ message: SU.INVALID_CANDIDATE_ID(e)
58335
58333
  }),
58336
58334
  remarks: () => ({
58337
- pattern: yU.REMARKS,
58338
- message: xU.INVALID_REMARKS,
58339
- REMARKS_MIN: `Remarks must be at least ${CU.REMARKS_MIN} characters.`,
58340
- REMARKS_MAX: `Remarks must not exceed ${CU.REMARKS_MAX} characters.`
58335
+ pattern: bU.REMARKS,
58336
+ message: SU.INVALID_REMARKS,
58337
+ REMARKS_MIN: `Remarks must be at least ${wU.REMARKS_MIN} characters.`,
58338
+ REMARKS_MAX: `Remarks must not exceed ${wU.REMARKS_MAX} characters.`
58341
58339
  }),
58342
58340
  designation: () => ({
58343
- pattern: yU.DESIGNATION,
58344
- message: xU.INVALID_DESIGNATION
58341
+ pattern: bU.DESIGNATION,
58342
+ message: SU.INVALID_DESIGNATION
58345
58343
  }),
58346
58344
  dob: (e = !0) => ({ validator: (t, n) => {
58347
58345
  if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
58348
- if (!yU.DOB.test(n)) return Promise.reject(Error(xU.INVALID_DOB));
58346
+ if (!bU.DOB.test(n)) return Promise.reject(Error(SU.INVALID_DOB));
58349
58347
  let r = fc(n, "MM/DD/YYYY", !0);
58350
- if (!r.isValid()) return Promise.reject(Error(xU.INVALID_DOB));
58348
+ if (!r.isValid()) return Promise.reject(Error(SU.INVALID_DOB));
58351
58349
  let i = fc().endOf("day");
58352
58350
  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();
58353
58351
  } }),
58354
58352
  linkedin: () => ({
58355
- pattern: yU.LINKEDIN,
58356
- message: xU.INVALID_LINKEDIN
58353
+ pattern: bU.LINKEDIN,
58354
+ message: SU.INVALID_LINKEDIN
58357
58355
  }),
58358
58356
  companyName: () => ({
58359
- pattern: yU.COMPANY_NAME,
58360
- message: xU.INVALID_COMPANY_NAME
58357
+ pattern: bU.COMPANY_NAME,
58358
+ message: SU.INVALID_COMPANY_NAME
58361
58359
  }),
58362
58360
  firstName: () => ({
58363
- pattern: yU.FIRST_NAME,
58364
- message: xU.INVALID_FIRST_NAME,
58365
- FIRST_NAME_MIN: `First Name must be at least ${SU.FIRST_NAME_MIN} characters.`,
58366
- FIRST_NAME_MAX: `First Name must not exceed ${SU.FIRST_NAME_MAX} characters.`
58361
+ pattern: bU.FIRST_NAME,
58362
+ message: SU.INVALID_FIRST_NAME,
58363
+ FIRST_NAME_MIN: `First Name must be at least ${CU.FIRST_NAME_MIN} characters.`,
58364
+ FIRST_NAME_MAX: `First Name must not exceed ${CU.FIRST_NAME_MAX} characters.`
58367
58365
  }),
58368
58366
  firstNameMinLength: () => ({
58369
- min: SU.FIRST_NAME_MIN,
58370
- message: xU.FIRST_NAME_MIN
58367
+ min: CU.FIRST_NAME_MIN,
58368
+ message: SU.FIRST_NAME_MIN
58371
58369
  }),
58372
58370
  firstNameMaxLength: () => ({
58373
- max: SU.FIRST_NAME_MAX,
58374
- message: xU.FIRST_NAME_MAX
58371
+ max: CU.FIRST_NAME_MAX,
58372
+ message: SU.FIRST_NAME_MAX
58375
58373
  }),
58376
58374
  remarksMinLength: () => ({
58377
- min: CU.REMARKS_MIN,
58378
- message: xU.REMARKS_MIN
58375
+ min: wU.REMARKS_MIN,
58376
+ message: SU.REMARKS_MIN
58379
58377
  }),
58380
58378
  remarksMaxLength: () => ({
58381
- max: CU.REMARKS_MAX,
58382
- message: xU.REMARKS_MAX
58379
+ max: wU.REMARKS_MAX,
58380
+ message: SU.REMARKS_MAX
58383
58381
  }),
58384
58382
  fullName: () => ({
58385
- pattern: yU.FULL_NAME,
58386
- message: xU.INVALID_FULL_NAME
58383
+ pattern: bU.FULL_NAME,
58384
+ message: SU.INVALID_FULL_NAME
58387
58385
  }),
58388
58386
  noSpaces: () => ({
58389
- pattern: yU.NO_SPACES,
58390
- message: xU.NO_SPACES_ALLOWED
58387
+ pattern: bU.NO_SPACES,
58388
+ message: SU.NO_SPACES_ALLOWED
58391
58389
  }),
58392
58390
  startsWithCapital: () => ({
58393
- pattern: yU.STARTS_WITH_CAPITAL,
58394
- message: xU.MUST_START_WITH_CAPITAL
58391
+ pattern: bU.STARTS_WITH_CAPITAL,
58392
+ message: SU.MUST_START_WITH_CAPITAL
58395
58393
  }),
58396
58394
  fileUpload: () => ({ validator: (e, t) => {
58397
58395
  if (!t || t.length === 0) return Promise.resolve();
58398
58396
  for (let e of t) {
58399
58397
  let t = e.originFileObj || e;
58400
- if (!(t.size / 1024 / 1024 <= bU.MAX_FILE_SIZE)) return q.error(xU.INVALID_FILE_SIZE), Promise.reject(Error(xU.INVALID_FILE_SIZE));
58401
- if (!bU.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(xU.INVALID_FILE_TYPE));
58398
+ if (!(t.size / 1024 / 1024 <= xU.MAX_FILE_SIZE)) return q.error(SU.INVALID_FILE_SIZE), Promise.reject(Error(SU.INVALID_FILE_SIZE));
58399
+ if (!xU.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(SU.INVALID_FILE_TYPE));
58402
58400
  }
58403
58401
  return Promise.resolve();
58404
58402
  } }),
58405
58403
  singleFileUpload: () => ({ validator: (e, t) => {
58406
58404
  if (!t || t.length === 0) return Promise.resolve();
58407
- if (t.length > bU.SINGLE_FILE_COUNT) return Promise.reject(Error(xU.SINGLE_FILE_ONLY));
58405
+ if (t.length > xU.SINGLE_FILE_COUNT) return Promise.reject(Error(SU.SINGLE_FILE_ONLY));
58408
58406
  let n = t[0];
58409
- return n.size / 1024 / 1024 < bU.MAX_FILE_SIZE ? bU.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(xU.INVALID_FILE_TYPE)) : Promise.reject(Error(xU.INVALID_FILE_SIZE));
58407
+ return n.size / 1024 / 1024 < xU.MAX_FILE_SIZE ? xU.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(SU.INVALID_FILE_TYPE)) : Promise.reject(Error(SU.INVALID_FILE_SIZE));
58410
58408
  } }),
58411
58409
  multiFileUpload: () => ({ validator: (e, t) => {
58412
58410
  if (!t || t.length === 0) return Promise.resolve();
58413
- if (t.length > bU.MULTI_FILE_COUNT) return Promise.reject(Error(xU.INVALID_FILE_COUNT));
58411
+ if (t.length > xU.MULTI_FILE_COUNT) return Promise.reject(Error(SU.INVALID_FILE_COUNT));
58414
58412
  for (let e of t) {
58415
- if (!(e.size / 1024 / 1024 < bU.MAX_FILE_SIZE)) return Promise.reject(Error(xU.INVALID_FILE_SIZE));
58416
- if (!bU.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(xU.INVALID_FILE_TYPE));
58413
+ if (!(e.size / 1024 / 1024 < xU.MAX_FILE_SIZE)) return Promise.reject(Error(SU.INVALID_FILE_SIZE));
58414
+ if (!xU.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(SU.INVALID_FILE_TYPE));
58417
58415
  }
58418
58416
  return Promise.resolve();
58419
58417
  } })
58420
- }, EU = { beforeUpload: (e) => [
58418
+ }, DU = { beforeUpload: (e) => [
58421
58419
  "image/jpeg",
58422
58420
  "image/png",
58423
58421
  "application/pdf"
58424
- ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), lo.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), lo.LIST_IGNORE) }, DU = () => {
58422
+ ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), lo.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), lo.LIST_IGNORE) }, OU = () => {
58425
58423
  let [e] = B.useForm();
58426
58424
  return /* @__PURE__ */ Y("div", {
58427
58425
  style: { padding: 24 },
@@ -58441,7 +58439,7 @@ var yU = {
58441
58439
  children: /* @__PURE__ */ Y(B.Item, {
58442
58440
  label: "Email",
58443
58441
  name: "email",
58444
- rules: [TU.required("Email"), TU.email()],
58442
+ rules: [EU.required("Email"), EU.email()],
58445
58443
  children: /* @__PURE__ */ Y(V, {})
58446
58444
  })
58447
58445
  }),
@@ -58450,12 +58448,12 @@ var yU = {
58450
58448
  children: /* @__PURE__ */ Y(B.Item, {
58451
58449
  label: "Phone Number",
58452
58450
  name: "phone",
58453
- rules: [TU.required("Phone Number"), TU.phone()],
58451
+ rules: [EU.required("Phone Number"), EU.phone()],
58454
58452
  validateTrigger: ["onBlur", "onChange"],
58455
58453
  children: /* @__PURE__ */ Y(V, {
58456
58454
  maxLength: 10,
58457
58455
  onChange: (t) => {
58458
- e.setFieldsValue({ phone: wU.phoneFormatter(t.target.value) });
58456
+ e.setFieldsValue({ phone: TU.phoneFormatter(t.target.value) });
58459
58457
  }
58460
58458
  })
58461
58459
  })
@@ -58465,7 +58463,7 @@ var yU = {
58465
58463
  children: /* @__PURE__ */ Y(B.Item, {
58466
58464
  label: "Password",
58467
58465
  name: "password",
58468
- rules: [TU.required("Password"), TU.password()],
58466
+ rules: [EU.required("Password"), EU.password()],
58469
58467
  children: /* @__PURE__ */ Y(V.Password, {})
58470
58468
  })
58471
58469
  }),
@@ -58475,13 +58473,13 @@ var yU = {
58475
58473
  label: "Full Name",
58476
58474
  name: "fullName",
58477
58475
  rules: [
58478
- TU.required("Full Name"),
58479
- TU.alphabets(),
58480
- TU.firstNameMinLength(),
58481
- TU.firstNameMaxLength()
58476
+ EU.required("Full Name"),
58477
+ EU.alphabets(),
58478
+ EU.firstNameMinLength(),
58479
+ EU.firstNameMaxLength()
58482
58480
  ],
58483
58481
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
58484
- e.setFieldsValue({ fullName: wU.firstNameFormatter(t.target.value) });
58482
+ e.setFieldsValue({ fullName: TU.firstNameFormatter(t.target.value) });
58485
58483
  } })
58486
58484
  })
58487
58485
  }),
@@ -58490,9 +58488,9 @@ var yU = {
58490
58488
  children: /* @__PURE__ */ Y(B.Item, {
58491
58489
  label: "Username",
58492
58490
  name: "username",
58493
- rules: [TU.required("Username"), TU.alphanumeric()],
58491
+ rules: [EU.required("Username"), EU.alphanumeric()],
58494
58492
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
58495
- e.setFieldsValue({ username: wU.removeExtraSpaces(t.target.value) });
58493
+ e.setFieldsValue({ username: TU.removeExtraSpaces(t.target.value) });
58496
58494
  } })
58497
58495
  })
58498
58496
  }),
@@ -58501,9 +58499,9 @@ var yU = {
58501
58499
  children: /* @__PURE__ */ Y(B.Item, {
58502
58500
  label: "Website URL",
58503
58501
  name: "website",
58504
- rules: [TU.required("Website URL"), TU.url()],
58502
+ rules: [EU.required("Website URL"), EU.url()],
58505
58503
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
58506
- e.setFieldsValue({ website: wU.removeExtraSpaces(t.target.value) });
58504
+ e.setFieldsValue({ website: TU.removeExtraSpaces(t.target.value) });
58507
58505
  } })
58508
58506
  })
58509
58507
  }),
@@ -58512,9 +58510,9 @@ var yU = {
58512
58510
  children: /* @__PURE__ */ Y(B.Item, {
58513
58511
  label: "MSP Req ID",
58514
58512
  name: "mspreqID",
58515
- rules: [TU.required("MSP Req ID"), TU.candidateId("MSP Req ID")],
58513
+ rules: [EU.required("MSP Req ID"), EU.candidateId("MSP Req ID")],
58516
58514
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
58517
- e.setFieldsValue({ mspreqID: wU.removeExtraSpaces(t.target.value) });
58515
+ e.setFieldsValue({ mspreqID: TU.removeExtraSpaces(t.target.value) });
58518
58516
  } })
58519
58517
  })
58520
58518
  }),
@@ -58523,9 +58521,9 @@ var yU = {
58523
58521
  children: /* @__PURE__ */ Y(B.Item, {
58524
58522
  label: "Candidate ID",
58525
58523
  name: "candidateId",
58526
- rules: [TU.required("Candidate ID"), TU.candidateId("Candidate ID")],
58524
+ rules: [EU.required("Candidate ID"), EU.candidateId("Candidate ID")],
58527
58525
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
58528
- e.setFieldsValue({ candidateId: wU.removeExtraSpaces(t.target.value) });
58526
+ e.setFieldsValue({ candidateId: TU.removeExtraSpaces(t.target.value) });
58529
58527
  } })
58530
58528
  })
58531
58529
  }),
@@ -58535,10 +58533,10 @@ var yU = {
58535
58533
  label: "Remarks",
58536
58534
  name: "remarks",
58537
58535
  rules: [
58538
- TU.required("Remarks"),
58539
- TU.remarks(),
58540
- TU.remarksMinLength(),
58541
- TU.remarksMaxLength()
58536
+ EU.required("Remarks"),
58537
+ EU.remarks(),
58538
+ EU.remarksMinLength(),
58539
+ EU.remarksMaxLength()
58542
58540
  ],
58543
58541
  children: /* @__PURE__ */ Y(V.TextArea, { rows: 4 })
58544
58542
  })
@@ -58548,7 +58546,7 @@ var yU = {
58548
58546
  children: /* @__PURE__ */ Y(B.Item, {
58549
58547
  label: "Designation",
58550
58548
  name: "designation",
58551
- rules: [TU.required("Designation"), TU.designation()],
58549
+ rules: [EU.required("Designation"), EU.designation()],
58552
58550
  children: /* @__PURE__ */ Y(V, {})
58553
58551
  })
58554
58552
  }),
@@ -58557,12 +58555,12 @@ var yU = {
58557
58555
  children: /* @__PURE__ */ Y(B.Item, {
58558
58556
  label: "Date of Birth",
58559
58557
  name: "dob",
58560
- rules: [TU.dob()],
58558
+ rules: [EU.dob()],
58561
58559
  children: /* @__PURE__ */ Y(V, {
58562
58560
  placeholder: "MM/DD/YYYY",
58563
58561
  maxLength: 10,
58564
58562
  onChange: (t) => {
58565
- e.setFieldsValue({ dob: wU.dobFormatter(t.target.value) });
58563
+ e.setFieldsValue({ dob: TU.dobFormatter(t.target.value) });
58566
58564
  }
58567
58565
  })
58568
58566
  })
@@ -58572,7 +58570,7 @@ var yU = {
58572
58570
  children: /* @__PURE__ */ Y(B.Item, {
58573
58571
  label: "Company Name",
58574
58572
  name: "companyName",
58575
- rules: [TU.required("Company Name"), TU.companyName()],
58573
+ rules: [EU.required("Company Name"), EU.companyName()],
58576
58574
  children: /* @__PURE__ */ Y(V, {})
58577
58575
  })
58578
58576
  }),
@@ -58661,7 +58659,7 @@ var yU = {
58661
58659
  label: "Resume new",
58662
58660
  name: "resume",
58663
58661
  children: /* @__PURE__ */ Y(lo, {
58664
- beforeUpload: EU.beforeUpload,
58662
+ beforeUpload: DU.beforeUpload,
58665
58663
  maxCount: 1,
58666
58664
  children: /* @__PURE__ */ Y(R, { children: "Upload Resume" })
58667
58665
  })
@@ -58674,10 +58672,10 @@ var yU = {
58674
58672
  name: "documents",
58675
58673
  valuePropName: "fileList",
58676
58674
  getValueFromEvent: (e) => e?.fileList,
58677
- rules: [TU.multiFileUpload()],
58675
+ rules: [EU.multiFileUpload()],
58678
58676
  children: /* @__PURE__ */ Y(lo, {
58679
58677
  multiple: !0,
58680
- beforeUpload: EU.beforeUpload,
58678
+ beforeUpload: DU.beforeUpload,
58681
58679
  children: /* @__PURE__ */ Y(R, { children: "Upload Documents" })
58682
58680
  })
58683
58681
  })
@@ -58689,9 +58687,9 @@ var yU = {
58689
58687
  name: "file",
58690
58688
  valuePropName: "fileList",
58691
58689
  getValueFromEvent: (e) => e?.fileList,
58692
- rules: [TU.fileUpload()],
58690
+ rules: [EU.fileUpload()],
58693
58691
  children: /* @__PURE__ */ Y(lo, {
58694
- beforeUpload: EU.beforeUpload,
58692
+ beforeUpload: DU.beforeUpload,
58695
58693
  maxCount: 1,
58696
58694
  children: /* @__PURE__ */ Y(R, { children: "Upload" })
58697
58695
  })
@@ -58751,7 +58749,7 @@ var yU = {
58751
58749
  };
58752
58750
  //#endregion
58753
58751
  //#region src/components/admin/RegionBanner.jsx
58754
- function OU({ region: e, onExit: t }) {
58752
+ function kU({ region: e, onExit: t }) {
58755
58753
  if (!e || e.isHome) return null;
58756
58754
  let n = e.label?.trim() || e.key;
58757
58755
  return /* @__PURE__ */ X("div", {
@@ -58820,25 +58818,25 @@ function OU({ region: e, onExit: t }) {
58820
58818
  ]
58821
58819
  });
58822
58820
  }
58823
- OU.propTypes = {
58821
+ kU.propTypes = {
58824
58822
  region: Z.shape({
58825
58823
  key: Z.string,
58826
58824
  label: Z.string,
58827
58825
  isHome: Z.bool
58828
58826
  }),
58829
58827
  onExit: Z.func
58830
- }, OU.defaultProps = {
58828
+ }, kU.defaultProps = {
58831
58829
  region: null,
58832
58830
  onExit: void 0
58833
58831
  };
58834
58832
  //#endregion
58835
58833
  //#region src/pages/admin/AdminPageWithShell.jsx
58836
- function kU(e) {
58834
+ function AU(e) {
58837
58835
  return /* @__PURE__ */ Y(BA, { children: /* @__PURE__ */ Y(mR, { ...e }) });
58838
58836
  }
58839
58837
  //#endregion
58840
58838
  //#region src/components/cards/StatsCards.jsx
58841
- var { Text: AU } = co, jU = [
58839
+ var { Text: jU } = co, MU = [
58842
58840
  {
58843
58841
  label: "Total Jobs",
58844
58842
  value: 1697,
@@ -58854,13 +58852,13 @@ var { Text: AU } = co, jU = [
58854
58852
  value: 600,
58855
58853
  icon: "user"
58856
58854
  }
58857
- ], MU = {
58855
+ ], NU = {
58858
58856
  fileText: /* @__PURE__ */ Y(as, {}),
58859
58857
  checkCircle: /* @__PURE__ */ Y(Oo, {}),
58860
58858
  user: /* @__PURE__ */ Y(lc, {}),
58861
58859
  filter: /* @__PURE__ */ Y(ss, {})
58862
58860
  };
58863
- function NU({ stats: e = jU }) {
58861
+ function PU({ stats: e = MU }) {
58864
58862
  return /* @__PURE__ */ Y(Ma, { children: /* @__PURE__ */ Y(Qa, {
58865
58863
  gutter: [12, 12],
58866
58864
  children: e.map((e) => /* @__PURE__ */ Y(z, {
@@ -58873,7 +58871,7 @@ function NU({ stats: e = jU }) {
58873
58871
  className: "stats-inner-card",
58874
58872
  children: [/* @__PURE__ */ X(U, {
58875
58873
  align: "center",
58876
- children: [MU[e.icon] ?? MU.fileText, /* @__PURE__ */ Y(AU, { children: e.label })]
58874
+ children: [NU[e.icon] ?? NU.fileText, /* @__PURE__ */ Y(jU, { children: e.label })]
58877
58875
  }), /* @__PURE__ */ Y(no, { value: e.value })]
58878
58876
  })
58879
58877
  }, e.label))
@@ -58881,21 +58879,21 @@ function NU({ stats: e = jU }) {
58881
58879
  }
58882
58880
  //#endregion
58883
58881
  //#region src/pages/Modules/Admin/UsersSection.jsx
58884
- var { Text: PU } = co;
58885
- function FU(e) {
58882
+ var { Text: FU } = co;
58883
+ function IU(e) {
58886
58884
  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 ?? "?"}`;
58887
58885
  }
58888
- function IU(e) {
58886
+ function LU(e) {
58889
58887
  return {
58890
58888
  ...e,
58891
58889
  key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
58892
- _name: FU(e),
58890
+ _name: IU(e),
58893
58891
  _email: e.email ?? e.EMAIL ?? e.user_email ?? "",
58894
58892
  _role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
58895
58893
  _rawRef: e
58896
58894
  };
58897
58895
  }
58898
- function LU() {
58896
+ function RU() {
58899
58897
  let [e, t] = L([]), [n, r] = L(0), [i, a] = L(!1), [o, s] = L(1), [c, l] = L(10), [u, d] = L(""), f = Sa(async ({ offset: e, limit: n, searchQuery: i } = {}) => {
58900
58898
  a(!0);
58901
58899
  try {
@@ -58903,7 +58901,7 @@ function LU() {
58903
58901
  offset: e,
58904
58902
  limit: n,
58905
58903
  searchQuery: i ?? ""
58906
- }), o = (a.users ?? []).map(IU);
58904
+ }), o = (a.users ?? []).map(LU);
58907
58905
  t(o), r(a.total ?? o.length);
58908
58906
  } catch {
58909
58907
  q.error("Failed to load users");
@@ -58936,7 +58934,7 @@ function LU() {
58936
58934
  label: "Name",
58937
58935
  value: "_name",
58938
58936
  width: 220,
58939
- render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(PU, {
58937
+ render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(FU, {
58940
58938
  strong: !0,
58941
58939
  style: { fontSize: 13 },
58942
58940
  children: e
@@ -58968,7 +58966,7 @@ function LU() {
58968
58966
  }
58969
58967
  //#endregion
58970
58968
  //#region src/pages/Modules/Admin/TeamsSection.jsx
58971
- var { Text: RU } = co, zU = [
58969
+ var { Text: zU } = co, BU = [
58972
58970
  {
58973
58971
  key: "job",
58974
58972
  label: "Jobs"
@@ -58981,7 +58979,7 @@ var { Text: RU } = co, zU = [
58981
58979
  key: "submissions",
58982
58980
  label: "Submissions"
58983
58981
  }
58984
- ], BU = [
58982
+ ], VU = [
58985
58983
  {
58986
58984
  key: "listView",
58987
58985
  label: "List View"
@@ -58995,7 +58993,7 @@ var { Text: RU } = co, zU = [
58995
58993
  label: "Form"
58996
58994
  }
58997
58995
  ];
58998
- function VU({ field: e, index: t, onToggle: n, onReorder: r }) {
58996
+ function HU({ field: e, index: t, onToggle: n, onReorder: r }) {
58999
58997
  let i = Ea(null), [a, o] = L(!1), [s, c] = L(!1);
59000
58998
  function l(e) {
59001
58999
  i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
@@ -59059,7 +59057,7 @@ function VU({ field: e, index: t, onToggle: n, onReorder: r }) {
59059
59057
  ]
59060
59058
  });
59061
59059
  }
59062
- function HU({ team: e, configType: t }) {
59060
+ function UU({ team: e, configType: t }) {
59063
59061
  let [n, r] = L({}), [i, a] = L(!1), [o, s] = L({}), [c, l] = L("job");
59064
59062
  F(() => {
59065
59063
  e && (a(!0), se(e, t).then(r).catch(() => q.error("Failed to load field config")).finally(() => a(!1)));
@@ -59110,7 +59108,7 @@ function HU({ team: e, configType: t }) {
59110
59108
  size: "small",
59111
59109
  activeKey: c,
59112
59110
  onChange: l,
59113
- items: zU.map((e) => ({
59111
+ items: BU.map((e) => ({
59114
59112
  key: e.key,
59115
59113
  label: e.label
59116
59114
  }))
@@ -59139,7 +59137,7 @@ function HU({ team: e, configType: t }) {
59139
59137
  children: [u.length === 0 && !i && /* @__PURE__ */ Y("div", {
59140
59138
  className: "uss-empty",
59141
59139
  children: "No fields found."
59142
- }), u.map((e, t) => /* @__PURE__ */ Y(VU, {
59140
+ }), u.map((e, t) => /* @__PURE__ */ Y(HU, {
59143
59141
  field: e,
59144
59142
  index: t,
59145
59143
  onToggle: f,
@@ -59153,13 +59151,13 @@ function HU({ team: e, configType: t }) {
59153
59151
  size: "small",
59154
59152
  loading: o[c],
59155
59153
  onClick: m,
59156
- children: ["Save ", zU.find((e) => e.key === c)?.label]
59154
+ children: ["Save ", BU.find((e) => e.key === c)?.label]
59157
59155
  })
59158
59156
  })
59159
59157
  ]
59160
59158
  });
59161
59159
  }
59162
- function UU() {
59160
+ function WU() {
59163
59161
  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 = Sa(async () => {
59164
59162
  p(!0);
59165
59163
  try {
@@ -59306,13 +59304,13 @@ function UU() {
59306
59304
  style: { marginBottom: 12 },
59307
59305
  children: /* @__PURE__ */ Y("div", {
59308
59306
  className: "uss-config-toggle",
59309
- children: BU.map((e) => /* @__PURE__ */ Y("button", {
59307
+ children: VU.map((e) => /* @__PURE__ */ Y("button", {
59310
59308
  className: `uss-config-btn${o === e.key ? " active" : ""}`,
59311
59309
  onClick: () => s(e.key),
59312
59310
  children: e.label
59313
59311
  }, e.key))
59314
59312
  })
59315
- }), e && /* @__PURE__ */ Y(HU, {
59313
+ }), e && /* @__PURE__ */ Y(UU, {
59316
59314
  team: e,
59317
59315
  configType: o
59318
59316
  }, `${e?.teamId}-${o}`)]
@@ -59321,12 +59319,12 @@ function UU() {
59321
59319
  }
59322
59320
  //#endregion
59323
59321
  //#region src/pages/Modules/Admin/components/RolePermPanel.jsx
59324
- var WU = [
59322
+ var GU = [
59325
59323
  "view",
59326
59324
  "add",
59327
59325
  "edit",
59328
59326
  "delete"
59329
- ], GU = {
59327
+ ], KU = {
59330
59328
  view: "View",
59331
59329
  add: "Add",
59332
59330
  edit: "Edit",
@@ -59341,18 +59339,18 @@ var WU = [
59341
59339
  reApprove: "ReApprove",
59342
59340
  sendApprove: "Send Approve"
59343
59341
  };
59344
- function KU(e) {
59345
- return GU[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
59346
- }
59347
59342
  function qU(e) {
59348
- let t = WU.filter((t) => e.includes(t)), n = e.filter((e) => !WU.includes(e)).sort();
59349
- return [...t, ...n];
59343
+ return KU[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
59350
59344
  }
59351
59345
  function JU(e) {
59352
- let t = /* @__PURE__ */ new Set();
59353
- return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), qU([...t]);
59346
+ let t = GU.filter((t) => e.includes(t)), n = e.filter((e) => !GU.includes(e)).sort();
59347
+ return [...t, ...n];
59354
59348
  }
59355
59349
  function YU(e) {
59350
+ let t = /* @__PURE__ */ new Set();
59351
+ return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), JU([...t]);
59352
+ }
59353
+ function XU(e) {
59356
59354
  let t = 0, n = 0;
59357
59355
  return Object.entries(e).forEach(([e, { permissions: r }]) => {
59358
59356
  Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
@@ -59363,7 +59361,7 @@ function YU(e) {
59363
59361
  total: n
59364
59362
  };
59365
59363
  }
59366
- function XU(e = {}) {
59364
+ function ZU(e = {}) {
59367
59365
  if (!e || typeof e != "object") return e;
59368
59366
  let t = Object.keys(e).find((e) => String(e).trim().toLowerCase() === "onboarding");
59369
59367
  if (!t) return e;
@@ -59380,7 +59378,7 @@ function XU(e = {}) {
59380
59378
  }
59381
59379
  };
59382
59380
  }
59383
- function ZU({ value: e, onSave: t, className: n }) {
59381
+ function QU({ value: e, onSave: t, className: n }) {
59384
59382
  let [r, i] = L(!1), [a, o] = L(e);
59385
59383
  F(() => {
59386
59384
  o(e);
@@ -59409,7 +59407,7 @@ function ZU({ value: e, onSave: t, className: n }) {
59409
59407
  children: [e, /* @__PURE__ */ Y(Ko, { className: "perm-name-edit-icon" })]
59410
59408
  });
59411
59409
  }
59412
- function QU({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
59410
+ function $U({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
59413
59411
  let [i, a] = L(!1), [o, s] = L(t), c = e?.value === "1", l = !!e;
59414
59412
  F(() => {
59415
59413
  s(t);
@@ -59451,13 +59449,13 @@ function QU({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
59451
59449
  })
59452
59450
  });
59453
59451
  }
59454
- function $U({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
59452
+ function eW({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
59455
59453
  let c = t?.permissions ?? {}, l = n.filter((t) => Qj(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
59456
59454
  return /* @__PURE__ */ X("div", {
59457
59455
  className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
59458
59456
  children: [/* @__PURE__ */ X("div", {
59459
59457
  className: "perm-module-card-header",
59460
- children: [/* @__PURE__ */ Y(ZU, {
59458
+ children: [/* @__PURE__ */ Y(QU, {
59461
59459
  value: i,
59462
59460
  onSave: (t) => o(e, t),
59463
59461
  className: "perm-module-card-name"
@@ -59471,20 +59469,20 @@ function $U({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
59471
59469
  })]
59472
59470
  }), /* @__PURE__ */ Y("div", {
59473
59471
  className: "perm-module-card-body",
59474
- children: l.map((t) => /* @__PURE__ */ Y(QU, {
59472
+ children: l.map((t) => /* @__PURE__ */ Y($U, {
59475
59473
  entry: c[t],
59476
- label: a[t] ?? KU(t),
59474
+ label: a[t] ?? qU(t),
59477
59475
  onToggle: () => r(e, t),
59478
59476
  onLabelSave: (e) => s(t, e)
59479
59477
  }, t))
59480
59478
  })]
59481
59479
  });
59482
59480
  }
59483
- function eW({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
59481
+ function tW({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
59484
59482
  let [a, o] = L({}), [s, c] = L({}), [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(!1), h = De(e);
59485
59483
  F(() => {
59486
59484
  h && (u(!0), m(!1), Mt(h).then((e) => {
59487
- let t = XU(e);
59485
+ let t = ZU(e);
59488
59486
  o(t), c(t);
59489
59487
  }).catch(() => q.error("Failed to load permissions")).finally(() => u(!1)));
59490
59488
  }, [h]);
@@ -59522,7 +59520,7 @@ function eW({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
59522
59520
  f(!1);
59523
59521
  }
59524
59522
  }
59525
- let v = I(() => Object.keys(s).sort(), [s]), y = I(() => JU(s), [s]), { enabled: b, total: x } = I(() => YU(s), [s]);
59523
+ let v = I(() => Object.keys(s).sort(), [s]), y = I(() => YU(s), [s]), { enabled: b, total: x } = I(() => XU(s), [s]);
59526
59524
  return /* @__PURE__ */ X(to, {
59527
59525
  spinning: l,
59528
59526
  children: [
@@ -59573,7 +59571,7 @@ function eW({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
59573
59571
  children: "No permission entries found for this role."
59574
59572
  }) : /* @__PURE__ */ Y("div", {
59575
59573
  className: "perm-cards-grid",
59576
- children: v.map((e) => /* @__PURE__ */ Y($U, {
59574
+ children: v.map((e) => /* @__PURE__ */ Y(eW, {
59577
59575
  menuName: e,
59578
59576
  menuData: s[e],
59579
59577
  permKeys: y,
@@ -59589,7 +59587,7 @@ function eW({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
59589
59587
  }
59590
59588
  //#endregion
59591
59589
  //#region src/pages/Modules/Admin/RolesSection.jsx
59592
- var { Text: tW } = co, nW = [
59590
+ var { Text: nW } = co, rW = [
59593
59591
  {
59594
59592
  key: "listView",
59595
59593
  label: "List View"
@@ -59607,38 +59605,38 @@ var { Text: tW } = co, nW = [
59607
59605
  label: "Permissions"
59608
59606
  }
59609
59607
  ];
59610
- function rW(e) {
59608
+ function iW(e) {
59611
59609
  return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
59612
59610
  }
59613
- function iW(e) {
59611
+ function aW(e) {
59614
59612
  return String(e || "").trim().toLowerCase();
59615
59613
  }
59616
- function aW(e) {
59614
+ function oW(e) {
59617
59615
  return e?.key || e?.collectionName || e?.value || "";
59618
59616
  }
59619
- function oW(e = [], t = []) {
59617
+ function sW(e = [], t = []) {
59620
59618
  let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
59621
59619
  return e.forEach((e) => {
59622
- let t = aW(e);
59620
+ let t = oW(e);
59623
59621
  if (!t) return;
59624
- let o = iW(e.key || t), s = iW(e.collectionName);
59622
+ let o = aW(e.key || t), s = aW(e.collectionName);
59625
59623
  e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
59626
- label: e.label || rW(t),
59624
+ label: e.label || iW(t),
59627
59625
  value: t,
59628
59626
  disabled: !!e.seeded
59629
59627
  });
59630
59628
  }), t.forEach((e) => {
59631
59629
  let t = String(e || "").trim();
59632
59630
  if (!t || r.has(t)) return;
59633
- let o = iW(t);
59631
+ let o = aW(t);
59634
59632
  a.has(o) || i.has(o) || (r.add(t), n.push({
59635
- label: rW(t),
59633
+ label: iW(t),
59636
59634
  value: t,
59637
59635
  disabled: !1
59638
59636
  }));
59639
59637
  }), n;
59640
59638
  }
59641
- function sW() {
59639
+ function cW() {
59642
59640
  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 = Sa(async () => {
59643
59641
  d(!0);
59644
59642
  try {
@@ -59652,7 +59650,7 @@ function sW() {
59652
59650
  }, []), C = Sa(async () => {
59653
59651
  _(!0);
59654
59652
  try {
59655
- let [e, t] = await Promise.all([Qi(), ci()]), n = oW(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
59653
+ let [e, t] = await Promise.all([Qi(), ci()]), n = sW(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
59656
59654
  p(n), h((e) => e.filter((e) => r.has(e)));
59657
59655
  } catch {
59658
59656
  q.error("Failed to load seed status");
@@ -59718,7 +59716,7 @@ function sW() {
59718
59716
  onClick: w,
59719
59717
  children: "Seed Field Config"
59720
59718
  })]
59721
- }), /* @__PURE__ */ Y(tW, {
59719
+ }), /* @__PURE__ */ Y(nW, {
59722
59720
  type: "secondary",
59723
59721
  style: {
59724
59722
  display: "block",
@@ -59798,13 +59796,13 @@ function sW() {
59798
59796
  style: { marginBottom: 12 },
59799
59797
  children: /* @__PURE__ */ Y("div", {
59800
59798
  className: "uss-config-toggle",
59801
- children: nW.map((e) => /* @__PURE__ */ Y("button", {
59799
+ children: rW.map((e) => /* @__PURE__ */ Y("button", {
59802
59800
  className: `uss-config-btn${i === e.key ? " active" : ""}`,
59803
59801
  onClick: () => a(e.key),
59804
59802
  children: e.label
59805
59803
  }, e.key))
59806
59804
  })
59807
- }), e && (i === "permissions" ? /* @__PURE__ */ Y(eW, { role: e }, e?.roleId) : /* @__PURE__ */ Y(gM, {
59805
+ }), e && (i === "permissions" ? /* @__PURE__ */ Y(tW, { role: e }, e?.roleId) : /* @__PURE__ */ Y(gM, {
59808
59806
  role: e,
59809
59807
  configType: i
59810
59808
  }, `${e?.roleId}-${i}`))]
@@ -59813,20 +59811,20 @@ function sW() {
59813
59811
  }
59814
59812
  //#endregion
59815
59813
  //#region src/pages/Modules/Admin/PermissionsPage.jsx
59816
- var cW = "perm-module-labels", lW = "perm-action-labels";
59817
- function uW(e) {
59814
+ var lW = "perm-module-labels", uW = "perm-action-labels";
59815
+ function dW(e) {
59818
59816
  try {
59819
59817
  return JSON.parse(localStorage.getItem(e) ?? "{}");
59820
59818
  } catch {
59821
59819
  return {};
59822
59820
  }
59823
59821
  }
59824
- function dW(e, t) {
59822
+ function fW(e, t) {
59825
59823
  try {
59826
59824
  localStorage.setItem(e, JSON.stringify(t));
59827
59825
  } catch {}
59828
59826
  }
59829
- function fW({ label: e, onSave: t, onDelete: n, loading: r }) {
59827
+ function pW({ label: e, onSave: t, onDelete: n, loading: r }) {
59830
59828
  let [i, a] = L(!1), [o, s] = L(e);
59831
59829
  function c() {
59832
59830
  a(!1);
@@ -59877,7 +59875,7 @@ function fW({ label: e, onSave: t, onDelete: n, loading: r }) {
59877
59875
  })]
59878
59876
  });
59879
59877
  }
59880
- function pW({ open: e, onClose: t }) {
59878
+ function mW({ open: e, onClose: t }) {
59881
59879
  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);
59882
59880
  F(() => {
59883
59881
  e && (S(), C());
@@ -59999,7 +59997,7 @@ function pW({ open: e, onClose: t }) {
59999
59997
  className: "perm-empty",
60000
59998
  style: { paddingTop: 24 },
60001
59999
  children: "No modules found"
60002
- }), i.map((e) => /* @__PURE__ */ Y(fW, {
60000
+ }), i.map((e) => /* @__PURE__ */ Y(pW, {
60003
60001
  label: e.MENUNAME,
60004
60002
  onSave: (t) => T(e.MENUID, t),
60005
60003
  onDelete: () => E(e.MENUID)
@@ -60044,7 +60042,7 @@ function pW({ open: e, onClose: t }) {
60044
60042
  className: "perm-empty",
60045
60043
  style: { paddingTop: 24 },
60046
60044
  children: "No actions found"
60047
- }), f.map((e) => /* @__PURE__ */ Y(fW, {
60045
+ }), f.map((e) => /* @__PURE__ */ Y(pW, {
60048
60046
  label: `${e.permissionName} (${e.permissionKey})`,
60049
60047
  onSave: (t) => O(e.permissionId, t),
60050
60048
  onDelete: () => k(e.permissionId)
@@ -60074,14 +60072,14 @@ function pW({ open: e, onClose: t }) {
60074
60072
  })
60075
60073
  });
60076
60074
  }
60077
- function mW() {
60078
- let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => uW(cW)), [f, p] = L(() => uW(lW)), m = Sa((e, t) => {
60075
+ function hW() {
60076
+ let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => dW(lW)), [f, p] = L(() => dW(uW)), m = Sa((e, t) => {
60079
60077
  d((n) => {
60080
60078
  let r = {
60081
60079
  ...n,
60082
60080
  [e]: t
60083
60081
  };
60084
- return dW(cW, r), r;
60082
+ return fW(lW, r), r;
60085
60083
  });
60086
60084
  }, []), h = Sa((e, t) => {
60087
60085
  p((n) => {
@@ -60089,11 +60087,11 @@ function mW() {
60089
60087
  ...n,
60090
60088
  [e]: t
60091
60089
  };
60092
- return dW(lW, r), r;
60090
+ return fW(uW, r), r;
60093
60091
  });
60094
60092
  }, []);
60095
60093
  function g() {
60096
- d({}), p({}), dW(cW, {}), dW(lW, {}), q.success("Labels reset to defaults");
60094
+ d({}), p({}), fW(lW, {}), fW(uW, {}), q.success("Labels reset to defaults");
60097
60095
  }
60098
60096
  let _ = Sa(async () => {
60099
60097
  r(!0);
@@ -60177,7 +60175,7 @@ function mW() {
60177
60175
  })]
60178
60176
  }),
60179
60177
  bodyStyle: { padding: "12px 16px" },
60180
- children: i ? /* @__PURE__ */ Y(eW, {
60178
+ children: i ? /* @__PURE__ */ Y(tW, {
60181
60179
  role: i,
60182
60180
  moduleLabels: u,
60183
60181
  actionLabels: f,
@@ -60188,7 +60186,7 @@ function mW() {
60188
60186
  children: "Select a role from the left to manage its permissions."
60189
60187
  })
60190
60188
  }),
60191
- /* @__PURE__ */ Y(pW, {
60189
+ /* @__PURE__ */ Y(mW, {
60192
60190
  open: c,
60193
60191
  onClose: () => l(!1)
60194
60192
  })
@@ -60197,7 +60195,7 @@ function mW() {
60197
60195
  }
60198
60196
  //#endregion
60199
60197
  //#region src/components/cards/OnboardingCard.jsx
60200
- var { Title: hW, Text: gW } = co, _W = [
60198
+ var { Title: gW, Text: _W } = co, vW = [
60201
60199
  {
60202
60200
  label: "In Progress",
60203
60201
  value: 107,
@@ -60223,10 +60221,10 @@ var { Title: hW, Text: gW } = co, _W = [
60223
60221
  color: "peach"
60224
60222
  }
60225
60223
  ];
60226
- function vW({ items: e = _W }) {
60224
+ function yW({ items: e = vW }) {
60227
60225
  return /* @__PURE__ */ Y(Ma, {
60228
60226
  className: "onboarding-card",
60229
- title: /* @__PURE__ */ Y(hW, {
60227
+ title: /* @__PURE__ */ Y(gW, {
60230
60228
  level: 5,
60231
60229
  children: "Onboarding"
60232
60230
  }),
@@ -60245,7 +60243,7 @@ function vW({ items: e = _W }) {
60245
60243
  children: /* @__PURE__ */ X("div", {
60246
60244
  className: `onboarding-item ${e.color}`,
60247
60245
  children: [
60248
- /* @__PURE__ */ Y(gW, {
60246
+ /* @__PURE__ */ Y(_W, {
60249
60247
  className: "onboarding-item-label",
60250
60248
  children: e.label
60251
60249
  }),
@@ -60255,7 +60253,7 @@ function vW({ items: e = _W }) {
60255
60253
  }),
60256
60254
  /* @__PURE__ */ Y("div", {
60257
60255
  className: "onboarding-item-footer",
60258
- children: /* @__PURE__ */ Y(gW, {
60256
+ children: /* @__PURE__ */ Y(_W, {
60259
60257
  className: "onboarding-item-sub",
60260
60258
  children: e.sub
60261
60259
  })
@@ -60268,7 +60266,7 @@ function vW({ items: e = _W }) {
60268
60266
  }
60269
60267
  //#endregion
60270
60268
  //#region src/pages/Modules/LegacyAdminPage.jsx
60271
- var { Text: yW, Title: bW } = co, xW = [
60269
+ var { Text: bW, Title: xW } = co, SW = [
60272
60270
  {
60273
60271
  group: "Dashboard",
60274
60272
  items: [{
@@ -60483,7 +60481,7 @@ var { Text: yW, Title: bW } = co, xW = [
60483
60481
  }
60484
60482
  ]
60485
60483
  }
60486
- ], SW = [
60484
+ ], CW = [
60487
60485
  {
60488
60486
  label: "Sourced",
60489
60487
  count: 312,
@@ -60514,7 +60512,7 @@ var { Text: yW, Title: bW } = co, xW = [
60514
60512
  color: "#E24B4A",
60515
60513
  pct: 10
60516
60514
  }
60517
- ], CW = [
60515
+ ], wW = [
60518
60516
  {
60519
60517
  name: "Tcs",
60520
60518
  jobs: 14,
@@ -60535,7 +60533,7 @@ var { Text: yW, Title: bW } = co, xW = [
60535
60533
  jobs: 5,
60536
60534
  candidates: 38
60537
60535
  }
60538
- ], wW = [
60536
+ ], TW = [
60539
60537
  {
60540
60538
  text: "New candidate Ravi Kumar added to Java Developer role",
60541
60539
  time: "2 min ago",
@@ -60562,7 +60560,7 @@ var { Text: yW, Title: bW } = co, xW = [
60562
60560
  color: "#E24B4A"
60563
60561
  }
60564
60562
  ];
60565
- function TW() {
60563
+ function EW() {
60566
60564
  return /* @__PURE__ */ X("div", {
60567
60565
  style: {
60568
60566
  display: "flex",
@@ -60575,11 +60573,11 @@ function TW() {
60575
60573
  title: "Admin Dashboard",
60576
60574
  children: [
60577
60575
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
60578
- /* @__PURE__ */ Y(bW, {
60576
+ /* @__PURE__ */ Y(xW, {
60579
60577
  level: 5,
60580
60578
  children: "Admin Dashboard"
60581
60579
  }),
60582
- /* @__PURE__ */ Y(yW, {
60580
+ /* @__PURE__ */ Y(bW, {
60583
60581
  type: "secondary",
60584
60582
  children: "Overview of jobs, candidates, onboarding and recent activity"
60585
60583
  })
@@ -60587,7 +60585,7 @@ function TW() {
60587
60585
  }),
60588
60586
  /* @__PURE__ */ Y("div", {
60589
60587
  className: "admin-dashboard-stats",
60590
- children: /* @__PURE__ */ Y(NU, { stats: [
60588
+ children: /* @__PURE__ */ Y(PU, { stats: [
60591
60589
  {
60592
60590
  label: "Total Jobs",
60593
60591
  value: 1697,
@@ -60617,18 +60615,18 @@ function TW() {
60617
60615
  }),
60618
60616
  /* @__PURE__ */ X("div", {
60619
60617
  className: "admin-dashboard-mid-row",
60620
- children: [/* @__PURE__ */ Y(vW, {}), /* @__PURE__ */ X($j, {
60618
+ children: [/* @__PURE__ */ Y(yW, {}), /* @__PURE__ */ X($j, {
60621
60619
  icon: /* @__PURE__ */ Y(ho, {}),
60622
60620
  title: "Candidate Pipeline",
60623
60621
  children: [
60624
- /* @__PURE__ */ Y(yW, {
60622
+ /* @__PURE__ */ Y(bW, {
60625
60623
  type: "secondary",
60626
60624
  style: { fontSize: 12 },
60627
60625
  children: "By stage (892 total)"
60628
60626
  }),
60629
60627
  /* @__PURE__ */ Y("div", {
60630
60628
  className: "admin-pipeline-bar",
60631
- children: SW.map((e) => /* @__PURE__ */ Y("div", {
60629
+ children: CW.map((e) => /* @__PURE__ */ Y("div", {
60632
60630
  className: "admin-pipeline-seg",
60633
60631
  style: {
60634
60632
  width: `${e.pct}%`,
@@ -60638,7 +60636,7 @@ function TW() {
60638
60636
  }),
60639
60637
  /* @__PURE__ */ Y("div", {
60640
60638
  className: "admin-pipeline-legend",
60641
- children: SW.map((e) => /* @__PURE__ */ X("div", {
60639
+ children: CW.map((e) => /* @__PURE__ */ X("div", {
60642
60640
  className: "admin-pipeline-legend-item",
60643
60641
  children: [
60644
60642
  /* @__PURE__ */ Y("span", {
@@ -60652,7 +60650,7 @@ function TW() {
60652
60650
  }, e.label))
60653
60651
  }),
60654
60652
  /* @__PURE__ */ Y("div", { className: "admin-divider" }),
60655
- /* @__PURE__ */ Y(yW, {
60653
+ /* @__PURE__ */ Y(bW, {
60656
60654
  strong: !0,
60657
60655
  style: { fontSize: 12 },
60658
60656
  children: "Submission status"
@@ -60663,7 +60661,7 @@ function TW() {
60663
60661
  children: [
60664
60662
  /* @__PURE__ */ X("div", {
60665
60663
  className: "admin-sub-status-item",
60666
- children: [/* @__PURE__ */ Y(yW, {
60664
+ children: [/* @__PURE__ */ Y(bW, {
60667
60665
  style: { fontSize: 13 },
60668
60666
  children: "Pending client review"
60669
60667
  }), /* @__PURE__ */ Y("span", {
@@ -60673,7 +60671,7 @@ function TW() {
60673
60671
  }),
60674
60672
  /* @__PURE__ */ X("div", {
60675
60673
  className: "admin-sub-status-item",
60676
- children: [/* @__PURE__ */ Y(yW, {
60674
+ children: [/* @__PURE__ */ Y(bW, {
60677
60675
  style: { fontSize: 13 },
60678
60676
  children: "Client approved"
60679
60677
  }), /* @__PURE__ */ Y("span", {
@@ -60683,7 +60681,7 @@ function TW() {
60683
60681
  }),
60684
60682
  /* @__PURE__ */ X("div", {
60685
60683
  className: "admin-sub-status-item",
60686
- children: [/* @__PURE__ */ Y(yW, {
60684
+ children: [/* @__PURE__ */ Y(bW, {
60687
60685
  style: { fontSize: 13 },
60688
60686
  children: "Rejected"
60689
60687
  }), /* @__PURE__ */ Y("span", {
@@ -60706,7 +60704,7 @@ function TW() {
60706
60704
  size: "small",
60707
60705
  children: "View all"
60708
60706
  }),
60709
- children: CW.map((e) => /* @__PURE__ */ X("div", {
60707
+ children: wW.map((e) => /* @__PURE__ */ X("div", {
60710
60708
  className: "admin-client-row",
60711
60709
  children: [/* @__PURE__ */ X("div", {
60712
60710
  className: "admin-client-left",
@@ -60734,7 +60732,7 @@ function TW() {
60734
60732
  }), /* @__PURE__ */ Y($j, {
60735
60733
  icon: /* @__PURE__ */ Y(xo, {}),
60736
60734
  title: "Recent Activity",
60737
- children: wW.map((e, t) => /* @__PURE__ */ X("div", {
60735
+ children: TW.map((e, t) => /* @__PURE__ */ X("div", {
60738
60736
  className: "admin-activity-row",
60739
60737
  children: [/* @__PURE__ */ Y("div", {
60740
60738
  className: "admin-activity-dot",
@@ -60762,7 +60760,7 @@ function TW() {
60762
60760
  children: [
60763
60761
  /* @__PURE__ */ X(z, {
60764
60762
  span: 8,
60765
- children: [/* @__PURE__ */ Y(yW, {
60763
+ children: [/* @__PURE__ */ Y(bW, {
60766
60764
  type: "secondary",
60767
60765
  style: {
60768
60766
  fontSize: 12,
@@ -60775,7 +60773,7 @@ function TW() {
60775
60773
  ["Templates", 2]
60776
60774
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
60777
60775
  className: "admin-cfg-overview-row",
60778
- children: [/* @__PURE__ */ Y(yW, {
60776
+ children: [/* @__PURE__ */ Y(bW, {
60779
60777
  style: { fontSize: 12 },
60780
60778
  children: e
60781
60779
  }), /* @__PURE__ */ X("span", {
@@ -60786,7 +60784,7 @@ function TW() {
60786
60784
  }),
60787
60785
  /* @__PURE__ */ X(z, {
60788
60786
  span: 8,
60789
- children: [/* @__PURE__ */ Y(yW, {
60787
+ children: [/* @__PURE__ */ Y(bW, {
60790
60788
  type: "secondary",
60791
60789
  style: {
60792
60790
  fontSize: 12,
@@ -60799,7 +60797,7 @@ function TW() {
60799
60797
  ["Submissions", 2]
60800
60798
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
60801
60799
  className: "admin-cfg-overview-row",
60802
- children: [/* @__PURE__ */ Y(yW, {
60800
+ children: [/* @__PURE__ */ Y(bW, {
60803
60801
  style: { fontSize: 12 },
60804
60802
  children: e
60805
60803
  }), /* @__PURE__ */ X("span", {
@@ -60810,7 +60808,7 @@ function TW() {
60810
60808
  }),
60811
60809
  /* @__PURE__ */ X(z, {
60812
60810
  span: 8,
60813
- children: [/* @__PURE__ */ Y(yW, {
60811
+ children: [/* @__PURE__ */ Y(bW, {
60814
60812
  type: "secondary",
60815
60813
  style: {
60816
60814
  fontSize: 12,
@@ -60823,10 +60821,10 @@ function TW() {
60823
60821
  ["Config Items", 19]
60824
60822
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
60825
60823
  className: "admin-cfg-overview-row",
60826
- children: [/* @__PURE__ */ Y(yW, {
60824
+ children: [/* @__PURE__ */ Y(bW, {
60827
60825
  style: { fontSize: 12 },
60828
60826
  children: e
60829
- }), /* @__PURE__ */ Y(yW, {
60827
+ }), /* @__PURE__ */ Y(bW, {
60830
60828
  strong: !0,
60831
60829
  style: { fontSize: 12 },
60832
60830
  children: t
@@ -60839,7 +60837,7 @@ function TW() {
60839
60837
  ]
60840
60838
  });
60841
60839
  }
60842
- function EW({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
60840
+ function DW({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
60843
60841
  return /* @__PURE__ */ X(Qa, {
60844
60842
  gutter: [16, 16],
60845
60843
  children: [
@@ -60858,11 +60856,11 @@ function EW({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
60858
60856
  }),
60859
60857
  children: [
60860
60858
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
60861
- /* @__PURE__ */ Y(bW, {
60859
+ /* @__PURE__ */ Y(xW, {
60862
60860
  level: 5,
60863
60861
  children: e?.heading
60864
60862
  }),
60865
- /* @__PURE__ */ Y(yW, {
60863
+ /* @__PURE__ */ Y(bW, {
60866
60864
  type: "secondary",
60867
60865
  children: e?.desc
60868
60866
  })
@@ -60876,7 +60874,7 @@ function EW({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
60876
60874
  children: /* @__PURE__ */ Y($j, {
60877
60875
  icon: /* @__PURE__ */ Y(ho, {}),
60878
60876
  title: "Configuration Items",
60879
- extra: /* @__PURE__ */ X(yW, {
60877
+ extra: /* @__PURE__ */ X(bW, {
60880
60878
  type: "secondary",
60881
60879
  children: [
60882
60880
  n.length,
@@ -60943,7 +60941,7 @@ function EW({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
60943
60941
  title: "Section Overview",
60944
60942
  children: [/* @__PURE__ */ Y("div", {
60945
60943
  className: "admin-overview-list",
60946
- children: xW.filter((e) => e.group !== "Dashboard").map((e) => {
60944
+ children: SW.filter((e) => e.group !== "Dashboard").map((e) => {
60947
60945
  let n = e.group === t?.group;
60948
60946
  return /* @__PURE__ */ X("div", {
60949
60947
  className: `admin-overview-item${n ? " active" : ""}`,
@@ -60991,12 +60989,12 @@ function EW({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
60991
60989
  ]
60992
60990
  });
60993
60991
  }
60994
- function DW() {
60995
- let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => xW.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => xW.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
60992
+ function OW() {
60993
+ let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => SW.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => SW.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
60996
60994
  if (!a?.cards) return [];
60997
60995
  let e = n.trim().toLowerCase();
60998
60996
  return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
60999
- }, [a, n]), c = I(() => xW.map((e) => ({
60997
+ }, [a, n]), c = I(() => SW.map((e) => ({
61000
60998
  key: e.group,
61001
60999
  type: "group",
61002
61000
  label: e.group,
@@ -61045,7 +61043,7 @@ function DW() {
61045
61043
  children: "Groups"
61046
61044
  }), /* @__PURE__ */ Y("span", {
61047
61045
  className: "admin-sidebar-pill-value",
61048
- children: xW.length
61046
+ children: SW.length
61049
61047
  })]
61050
61048
  })
61051
61049
  }), /* @__PURE__ */ Y(z, {
@@ -61075,7 +61073,7 @@ function DW() {
61075
61073
  xs: 24,
61076
61074
  lg: 18,
61077
61075
  xl: 19,
61078
- children: e === "dashboard" ? /* @__PURE__ */ Y(TW, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(CP, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(aF, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(YF, {}) : a?.component === "users" ? /* @__PURE__ */ Y(LU, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(UU, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(sW, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(mW, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(sI, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(mI, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(bI, {}) : /* @__PURE__ */ Y(EW, {
61076
+ children: e === "dashboard" ? /* @__PURE__ */ Y(EW, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(CP, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(aF, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(YF, {}) : a?.component === "users" ? /* @__PURE__ */ Y(RU, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(WU, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(cW, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(hW, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(sI, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(mI, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(bI, {}) : /* @__PURE__ */ Y(DW, {
61079
61077
  activeSection: a,
61080
61078
  activeGroup: o,
61081
61079
  filteredCards: s,
@@ -61090,8 +61088,8 @@ function DW() {
61090
61088
  }
61091
61089
  //#endregion
61092
61090
  //#region src/pages/stickyNotesFullPage.jsx
61093
- var { Title: OW } = co;
61094
- function kW() {
61091
+ var { Title: kW } = co;
61092
+ function AW() {
61095
61093
  let e = bc(), { state: t } = yc(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
61096
61094
  ...t?.request,
61097
61095
  params: {
@@ -61116,7 +61114,7 @@ function kW() {
61116
61114
  }
61117
61115
  //#endregion
61118
61116
  //#region src/pages/BulkUpload/index.jsx
61119
- var { Text: AW, Title: jW } = co, MW = 10485760, NW = "/templates/test_cases_flow_template.base64.txt", PW = "test_cases_flow_template.xlsx", FW = "module | subModule | step_order | description | actions | key | value | expected | scenario", IW = {
61117
+ var { Text: jW, Title: MW } = co, NW = 10485760, PW = "/templates/test_cases_flow_template.base64.txt", FW = "test_cases_flow_template.xlsx", IW = "module | subModule | step_order | description | actions | key | value | expected | scenario", LW = {
61120
61118
  idle: 0,
61121
61119
  module_set: 1,
61122
61120
  encoding: 1,
@@ -61125,7 +61123,7 @@ var { Text: AW, Title: jW } = co, MW = 10485760, NW = "/templates/test_cases_flo
61125
61123
  inserting: 3,
61126
61124
  done: 4,
61127
61125
  error: 1
61128
- }, LW = [
61126
+ }, RW = [
61129
61127
  {
61130
61128
  label: "Home",
61131
61129
  href: "/"
@@ -61139,31 +61137,31 @@ var { Text: AW, Title: jW } = co, MW = 10485760, NW = "/templates/test_cases_flo
61139
61137
  href: "/bulk-upload"
61140
61138
  }
61141
61139
  ];
61142
- function RW(e) {
61140
+ function zW(e) {
61143
61141
  return new Promise((t, n) => {
61144
61142
  let r = new FileReader();
61145
61143
  r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
61146
61144
  });
61147
61145
  }
61148
- function zW(e) {
61146
+ function BW(e) {
61149
61147
  return e.filter((e) => e.row_status === "valid").map((e) => {
61150
61148
  let t = { ...e };
61151
61149
  return delete t.row_status, delete t.errors, t;
61152
61150
  });
61153
61151
  }
61154
- function BW(e) {
61152
+ function VW(e) {
61155
61153
  return e.flatMap((e) => (e.errors ?? []).map((t) => ({
61156
61154
  id: e.id,
61157
61155
  ...t
61158
61156
  })));
61159
61157
  }
61160
- function VW({ errors: e }) {
61158
+ function HW({ errors: e }) {
61161
61159
  return /* @__PURE__ */ Y("div", {
61162
61160
  className: "bulk-tooltip-errors",
61163
61161
  children: (e ?? []).map((e, t) => /* @__PURE__ */ Y("div", { children: e.message }, `${e.field}-${t}`))
61164
61162
  });
61165
61163
  }
61166
- function HW({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
61164
+ function UW({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
61167
61165
  return e.length === 0 ? null : /* @__PURE__ */ X("div", {
61168
61166
  className: "bulk-error-banner",
61169
61167
  children: [/* @__PURE__ */ X("div", {
@@ -61194,7 +61192,7 @@ function HW({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
61194
61192
  })]
61195
61193
  });
61196
61194
  }
61197
- function UW({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
61195
+ function WW({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
61198
61196
  let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
61199
61197
  return /* @__PURE__ */ X(J, { children: [
61200
61198
  /* @__PURE__ */ X(Qa, {
@@ -61210,7 +61208,7 @@ function UW({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
61210
61208
  type: t === "errors" ? "primary" : "default",
61211
61209
  onClick: () => n("errors"),
61212
61210
  children: "Errors only"
61213
- })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(AW, {
61211
+ })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(jW, {
61214
61212
  type: "secondary",
61215
61213
  children: [e.length, " row(s)"]
61216
61214
  }) })]
@@ -61282,7 +61280,7 @@ function UW({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
61282
61280
  children: "Valid"
61283
61281
  }) }),
61284
61282
  /* @__PURE__ */ Y("td", { children: n ? /* @__PURE__ */ Y(K, {
61285
- title: /* @__PURE__ */ Y(VW, { errors: t }),
61283
+ title: /* @__PURE__ */ Y(HW, { errors: t }),
61286
61284
  placement: "left",
61287
61285
  children: /* @__PURE__ */ X("button", {
61288
61286
  type: "button",
@@ -61319,11 +61317,11 @@ function UW({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
61319
61317
  })
61320
61318
  ] });
61321
61319
  }
61322
- function WW() {
61320
+ function GW() {
61323
61321
  let e = bc(), t = I(() => y(), []), n = Ea(null), r = Ea(null), [i, a] = L([]), [o, s] = L(""), [c, l] = L("idle"), [u, d] = L(!1), [f, p] = L(null), [m, h] = L([]), [g, _] = L("all"), [v, b] = L(null), [x, S] = L(null), [C, w] = L(!1), T = i.map((e) => ({
61324
61322
  value: e.modulename,
61325
61323
  label: e.modulename
61326
- })), E = BW(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = IW[c] ?? 0, ee = m.find((e) => e.row_status === "invalid")?.id, A = Sa(() => {
61324
+ })), E = VW(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = LW[c] ?? 0, ee = m.find((e) => e.row_status === "invalid")?.id, A = Sa(() => {
61327
61325
  s(""), l("idle"), d(!1), p(null), h([]), _("all"), b(null), S(null), n.current && (n.current.value = "");
61328
61326
  }, []);
61329
61327
  F(() => {
@@ -61349,7 +61347,7 @@ function WW() {
61349
61347
  l("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
61350
61348
  return;
61351
61349
  }
61352
- if (e.size > MW) {
61350
+ if (e.size > NW) {
61353
61351
  l("module_set"), b({ message: "File must be 10 MB or smaller." });
61354
61352
  return;
61355
61353
  }
@@ -61358,7 +61356,7 @@ function WW() {
61358
61356
  size: e.size
61359
61357
  }), l("encoding");
61360
61358
  try {
61361
- let r = await RW(e);
61359
+ let r = await zW(e);
61362
61360
  l("validating");
61363
61361
  let i = await QA({
61364
61362
  filename: e.name,
@@ -61376,12 +61374,12 @@ function WW() {
61376
61374
  }
61377
61375
  }, M = async () => {
61378
61376
  try {
61379
- let e = await fetch(NW);
61377
+ let e = await fetch(PW);
61380
61378
  if (!e.ok) throw Error(`Template file not found (${e.status})`);
61381
61379
  let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
61382
61380
  for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
61383
61381
  let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
61384
- o.href = a, o.download = PW, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
61382
+ o.href = a, o.download = FW, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
61385
61383
  } catch (e) {
61386
61384
  console.error(e), q.error("Unable to download sample template.");
61387
61385
  }
@@ -61392,7 +61390,7 @@ function WW() {
61392
61390
  project: t?.name ?? "",
61393
61391
  module: o,
61394
61392
  uploaded_by: localStorage.getItem("user_Email") ?? "",
61395
- rows: zW(m)
61393
+ rows: BW(m)
61396
61394
  });
61397
61395
  S(n), l("done"), q.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
61398
61396
  } catch (e) {
@@ -61419,7 +61417,7 @@ function WW() {
61419
61417
  align: "middle",
61420
61418
  justify: "space-between",
61421
61419
  className: "breadcrumb-action-wrapper",
61422
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: LW }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(AW, {
61420
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: RW }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(jW, {
61423
61421
  strong: !0,
61424
61422
  children: t.name
61425
61423
  }) })]
@@ -61428,16 +61426,16 @@ function WW() {
61428
61426
  children: [
61429
61427
  /* @__PURE__ */ X("div", {
61430
61428
  className: "bulk-header",
61431
- children: [/* @__PURE__ */ Y(jW, {
61429
+ children: [/* @__PURE__ */ Y(MW, {
61432
61430
  level: 3,
61433
61431
  children: "Bulk upload test cases"
61434
61432
  }), /* @__PURE__ */ X(U, {
61435
61433
  direction: "vertical",
61436
61434
  size: 4,
61437
- children: [/* @__PURE__ */ Y(AW, {
61435
+ children: [/* @__PURE__ */ Y(jW, {
61438
61436
  type: "secondary",
61439
- children: FW
61440
- }), /* @__PURE__ */ Y(AW, {
61437
+ children: IW
61438
+ }), /* @__PURE__ */ Y(jW, {
61441
61439
  type: "secondary",
61442
61440
  children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
61443
61441
  })]
@@ -61535,7 +61533,7 @@ function WW() {
61535
61533
  className: "v1-card zt-fall",
61536
61534
  title: "3. Validation result",
61537
61535
  children: [
61538
- /* @__PURE__ */ Y(HW, {
61536
+ /* @__PURE__ */ Y(UW, {
61539
61537
  errors: E,
61540
61538
  expanded: C,
61541
61539
  onToggle: () => w((e) => !e),
@@ -61547,7 +61545,7 @@ function WW() {
61547
61545
  message: v.message,
61548
61546
  className: "bulk-inline-alert"
61549
61547
  }),
61550
- /* @__PURE__ */ Y(UW, {
61548
+ /* @__PURE__ */ Y(WW, {
61551
61549
  rows: m,
61552
61550
  view: g,
61553
61551
  onViewChange: _,
@@ -61570,17 +61568,17 @@ function WW() {
61570
61568
  /* @__PURE__ */ Y(z, {
61571
61569
  xs: 24,
61572
61570
  md: 8,
61573
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(AW, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
61571
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(jW, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
61574
61572
  }),
61575
61573
  /* @__PURE__ */ Y(z, {
61576
61574
  xs: 24,
61577
61575
  md: 8,
61578
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(AW, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
61576
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(jW, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
61579
61577
  }),
61580
61578
  /* @__PURE__ */ Y(z, {
61581
61579
  xs: 24,
61582
61580
  md: 8,
61583
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(AW, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
61581
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(jW, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
61584
61582
  })
61585
61583
  ]
61586
61584
  }),
@@ -61604,7 +61602,7 @@ function WW() {
61604
61602
  }
61605
61603
  //#endregion
61606
61604
  //#region src/services/dropdownValues/testPageValues.js
61607
- var GW = [
61605
+ var KW = [
61608
61606
  {
61609
61607
  value: "navigate",
61610
61608
  label: "Navigate"
@@ -61737,75 +61735,75 @@ var GW = [
61737
61735
  value: "wait_for_text",
61738
61736
  label: "Wait For Text"
61739
61737
  }
61740
- ], { Text: KW } = co, qW = [{
61738
+ ], { Text: qW } = co, JW = [{
61741
61739
  label: "Home",
61742
61740
  href: "/"
61743
61741
  }, {
61744
61742
  label: "Test Cases",
61745
61743
  href: "/test-cases"
61746
- }], JW = {
61744
+ }], YW = {
61747
61745
  tags: "regression",
61748
61746
  active: 1
61749
- }, YW = { module: {
61747
+ }, XW = { module: {
61750
61748
  dbName: "Modules",
61751
61749
  formField: "module",
61752
61750
  label: "Module"
61753
61751
  } };
61754
- function XW(e = []) {
61752
+ function ZW(e = []) {
61755
61753
  return e.map((e) => ({
61756
61754
  value: e,
61757
61755
  label: e
61758
61756
  }));
61759
61757
  }
61760
- function ZW(e = "") {
61758
+ function QW(e = "") {
61761
61759
  return String(e ?? "").trim();
61762
61760
  }
61763
- function QW(e = "") {
61764
- return ZW(e).toLowerCase();
61761
+ function $W(e = "") {
61762
+ return QW(e).toLowerCase();
61765
61763
  }
61766
- function $W(e = []) {
61764
+ function eG(e = []) {
61767
61765
  let t = /* @__PURE__ */ new Map();
61768
61766
  return e.forEach((e) => {
61769
- let n = ZW(e?.flow), r = n.toLowerCase();
61767
+ let n = QW(e?.flow), r = n.toLowerCase();
61770
61768
  n && !t.has(r) && t.set(r, n);
61771
61769
  }), Array.from(t.values()).map((e) => ({
61772
61770
  value: e,
61773
61771
  label: e
61774
61772
  }));
61775
61773
  }
61776
- function eG(e = [], t, n) {
61777
- let r = ZW(t).toLowerCase(), i = ZW(n).toLowerCase();
61774
+ function tG(e = [], t, n) {
61775
+ let r = QW(t).toLowerCase(), i = QW(n).toLowerCase();
61778
61776
  return e.reduce((e, t) => {
61779
- let n = ZW(t?.module).toLowerCase(), a = ZW(t?.flow).toLowerCase();
61777
+ let n = QW(t?.module).toLowerCase(), a = QW(t?.flow).toLowerCase();
61780
61778
  if (n !== r || a !== i) return e;
61781
61779
  let o = Number(t?.step_order) || 0;
61782
61780
  return Math.max(e, o);
61783
61781
  }, 0) + 1;
61784
61782
  }
61785
- function tG({ icon: e, title: t }) {
61783
+ function nG({ icon: e, title: t }) {
61786
61784
  return /* @__PURE__ */ X(U, {
61787
61785
  size: 10,
61788
61786
  align: "center",
61789
61787
  children: [/* @__PURE__ */ Y("div", {
61790
61788
  className: "v1-section-icon-box",
61791
61789
  children: e
61792
- }), /* @__PURE__ */ Y(KW, {
61790
+ }), /* @__PURE__ */ Y(qW, {
61793
61791
  strong: !0,
61794
61792
  className: "v1-section-label",
61795
61793
  children: t
61796
61794
  })]
61797
61795
  });
61798
61796
  }
61799
- function nG() {
61797
+ function rG() {
61800
61798
  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({
61801
61799
  open: !1,
61802
61800
  typeKey: "module"
61803
- }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = bc(), x = YW[f.typeKey], S = I(() => XW(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!ZW(C), E = !!ZW(w), D = !T, O = !T || !E, k = (e, t = []) => {
61801
+ }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = bc(), x = XW[f.typeKey], S = I(() => ZW(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!QW(C), E = !!QW(w), D = !T, O = !T || !E, k = (e, t = []) => {
61804
61802
  e === "module" && r(t);
61805
61803
  }, ee = async () => {
61806
61804
  l(!0);
61807
61805
  try {
61808
- let e = await qA(YW.module.dbName);
61806
+ let e = await qA(XW.module.dbName);
61809
61807
  r(e?.items ?? []);
61810
61808
  } catch (e) {
61811
61809
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -61813,7 +61811,7 @@ function nG() {
61813
61811
  l(!1);
61814
61812
  }
61815
61813
  }, A = Sa(async (t) => {
61816
- let n = ZW(t);
61814
+ let n = QW(t);
61817
61815
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
61818
61816
  d(!0);
61819
61817
  try {
@@ -61822,7 +61820,7 @@ function nG() {
61822
61820
  offset: 0,
61823
61821
  module: n
61824
61822
  }), t = Array.isArray(e?.items) ? e.items : [];
61825
- a(t), s($W(t));
61823
+ a(t), s(eG(t));
61826
61824
  } catch (e) {
61827
61825
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
61828
61826
  } finally {
@@ -61830,14 +61828,14 @@ function nG() {
61830
61828
  }
61831
61829
  }
61832
61830
  }, [e]), j = Sa(async (t, n, r) => {
61833
- let i = ZW(t), a = ZW(n);
61831
+ let i = QW(t), a = QW(n);
61834
61832
  if (!i || !a) {
61835
61833
  e.setFieldsValue({ step_order: void 0 });
61836
61834
  return;
61837
61835
  }
61838
61836
  _(!0);
61839
61837
  try {
61840
- e.setFieldsValue({ step_order: eG(r, i, a) });
61838
+ e.setFieldsValue({ step_order: tG(r, i, a) });
61841
61839
  } catch (e) {
61842
61840
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
61843
61841
  } finally {
@@ -61858,15 +61856,15 @@ function nG() {
61858
61856
  ]);
61859
61857
  let te = async (t) => {
61860
61858
  let n = {
61861
- module: ZW(t.module),
61862
- flow: ZW(t.flow),
61859
+ module: QW(t.module),
61860
+ flow: QW(t.flow),
61863
61861
  step_order: Number(t.step_order),
61864
- description: ZW(t.description),
61865
- keyword: QW(t.keyword),
61866
- target: ZW(t.target),
61867
- value: ZW(t.value),
61868
- expected: ZW(t.expected),
61869
- tags: t.tags ? ZW(t.tags) : JW.tags,
61862
+ description: QW(t.description),
61863
+ keyword: $W(t.keyword),
61864
+ target: QW(t.target),
61865
+ value: QW(t.value),
61866
+ expected: QW(t.expected),
61867
+ tags: t.tags ? QW(t.tags) : YW.tags,
61870
61868
  active: Number(t.active)
61871
61869
  };
61872
61870
  y(!0);
@@ -61878,26 +61876,26 @@ function nG() {
61878
61876
  y(!1);
61879
61877
  }
61880
61878
  }, M = (t, n) => {
61881
- e.setFieldsValue({ [t]: ZW(n) });
61879
+ e.setFieldsValue({ [t]: QW(n) });
61882
61880
  }, ne = (t) => {
61883
61881
  e.setFieldsValue({
61884
- module: ZW(t),
61882
+ module: QW(t),
61885
61883
  flow: void 0,
61886
61884
  step_order: void 0,
61887
61885
  keyword: void 0,
61888
61886
  description: void 0,
61889
61887
  target: void 0,
61890
- tags: JW.tags,
61888
+ tags: YW.tags,
61891
61889
  value: void 0,
61892
61890
  expected: void 0
61893
61891
  });
61894
61892
  }, N = (t) => {
61895
61893
  e.setFieldsValue({
61896
- flow: ZW(t),
61894
+ flow: QW(t),
61897
61895
  step_order: void 0
61898
61896
  });
61899
61897
  }, re = (e) => {
61900
- let n = YW[e];
61898
+ let n = XW[e];
61901
61899
  p({
61902
61900
  open: !0,
61903
61901
  typeKey: e
@@ -61912,7 +61910,7 @@ function nG() {
61912
61910
  })), t.resetFields();
61913
61911
  }, ie = async () => {
61914
61912
  try {
61915
- let n = ZW((await t.validateFields()).name), r = await JA({
61913
+ let n = QW((await t.validateFields()).name), r = await JA({
61916
61914
  name: n,
61917
61915
  type: x.dbName
61918
61916
  });
@@ -61930,7 +61928,7 @@ function nG() {
61930
61928
  align: "middle",
61931
61929
  justify: "space-between",
61932
61930
  className: "breadcrumb-action-wrapper",
61933
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: qW }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61931
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: JW }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
61934
61932
  type: "link",
61935
61933
  onClick: () => b("/zinnext-home"),
61936
61934
  children: "View Table"
@@ -61945,7 +61943,7 @@ function nG() {
61945
61943
  children: /* @__PURE__ */ X(U, {
61946
61944
  align: "center",
61947
61945
  size: 10,
61948
- children: [/* @__PURE__ */ Y(Ms, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(KW, {
61946
+ children: [/* @__PURE__ */ Y(Ms, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(qW, {
61949
61947
  strong: !0,
61950
61948
  style: { fontSize: 16 },
61951
61949
  children: "Add Test Case"
@@ -61961,16 +61959,16 @@ function nG() {
61961
61959
  className: "v1-required-mark",
61962
61960
  children: " *"
61963
61961
  })] }),
61964
- initialValues: JW,
61962
+ initialValues: YW,
61965
61963
  onFinish: te,
61966
61964
  autoComplete: "off",
61967
61965
  children: [/* @__PURE__ */ Y(Ma, {
61968
61966
  className: "v1-card",
61969
- title: /* @__PURE__ */ Y(tG, {
61967
+ title: /* @__PURE__ */ Y(nG, {
61970
61968
  icon: /* @__PURE__ */ Y(as, {}),
61971
61969
  title: "Test Case Details"
61972
61970
  }),
61973
- extra: /* @__PURE__ */ Y(KW, {
61971
+ extra: /* @__PURE__ */ Y(qW, {
61974
61972
  type: "secondary",
61975
61973
  className: "v1-card-subtitle",
61976
61974
  children: "Module, flow, step order and execution data"
@@ -62047,8 +62045,8 @@ function nG() {
62047
62045
  disabled: O,
62048
62046
  optionFilterProp: "label",
62049
62047
  placeholder: "Select action",
62050
- options: GW,
62051
- onChange: (t) => e.setFieldsValue({ keyword: QW(t) })
62048
+ options: KW,
62049
+ onChange: (t) => e.setFieldsValue({ keyword: $W(t) })
62052
62050
  })
62053
62051
  })
62054
62052
  }),
@@ -62168,7 +62166,7 @@ function nG() {
62168
62166
  maxLength: 100,
62169
62167
  placeholder: `Enter ${x.label.toLowerCase()} name`,
62170
62168
  onBlur: (e) => {
62171
- t.setFieldsValue({ name: ZW(e.target.value) });
62169
+ t.setFieldsValue({ name: QW(e.target.value) });
62172
62170
  }
62173
62171
  })
62174
62172
  }), /* @__PURE__ */ Y(B.Item, {
@@ -62185,23 +62183,23 @@ function nG() {
62185
62183
  }
62186
62184
  //#endregion
62187
62185
  //#region src/pages/TestingPage/ZinnextTestForm.jsx
62188
- var { Text: rG } = co, iG = [{
62186
+ var { Text: iG } = co, aG = [{
62189
62187
  label: "Home",
62190
62188
  href: "/"
62191
62189
  }, {
62192
62190
  label: "Test Cases",
62193
62191
  href: "/addTestCase"
62194
62192
  }];
62195
- function aG(e = "") {
62193
+ function oG(e = "") {
62196
62194
  return String(e ?? "").trim();
62197
62195
  }
62198
- function oG(e = [], t) {
62196
+ function sG(e = [], t) {
62199
62197
  return e.map((e) => ({
62200
62198
  value: e.id,
62201
62199
  label: e[t]
62202
62200
  }));
62203
62201
  }
62204
- var sG = [
62202
+ var cG = [
62205
62203
  {
62206
62204
  label: "Step",
62207
62205
  value: "step_order",
@@ -62240,22 +62238,22 @@ var sG = [
62240
62238
  children: "Negative"
62241
62239
  })
62242
62240
  }
62243
- ], cG = {
62241
+ ], lG = {
62244
62242
  key: !1,
62245
62243
  value: !1,
62246
62244
  expected: !1
62247
62245
  };
62248
- function lG(e, t) {
62249
- return t ? e[t] ?? cG : cG;
62250
- }
62251
62246
  function uG(e, t) {
62247
+ return t ? e[t] ?? lG : lG;
62248
+ }
62249
+ function dG(e, t) {
62252
62250
  e.setFields(t.map((e) => ({
62253
62251
  name: e,
62254
62252
  errors: []
62255
62253
  })));
62256
62254
  }
62257
- function dG() {
62258
- let [e] = B.useForm(), t = bc(), [n] = Sc(), r = n.get("edit"), i = !!r, a = I(() => y(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(GW), [m, h] = L({}), [g, _] = L(!1), [v, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), ee = !!D, A = !!O, j = I(() => lG(m, k), [m, k]), te = I(() => oG(o, "modulename"), [o]), M = I(() => oG(c, "submodulename"), [c]), ne = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), N = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), re = Sa(async () => {
62255
+ function fG() {
62256
+ let [e] = B.useForm(), t = bc(), [n] = Sc(), r = n.get("edit"), i = !!r, a = I(() => y(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(KW), [m, h] = L({}), [g, _] = L(!1), [v, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), ee = !!D, A = !!O, j = I(() => uG(m, k), [m, k]), te = I(() => sG(o, "modulename"), [o]), M = I(() => sG(c, "submodulename"), [c]), ne = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), N = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), re = Sa(async () => {
62259
62257
  try {
62260
62258
  let e = await YA();
62261
62259
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
@@ -62401,10 +62399,10 @@ function dG() {
62401
62399
  align: "middle",
62402
62400
  justify: "space-between",
62403
62401
  className: "breadcrumb-action-wrapper",
62404
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: iG }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
62402
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: aG }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
62405
62403
  size: 6,
62406
62404
  className: "zt-section-title",
62407
- children: [/* @__PURE__ */ Y(Ns, {}), /* @__PURE__ */ Y(rG, {
62405
+ children: [/* @__PURE__ */ Y(Ns, {}), /* @__PURE__ */ Y(iG, {
62408
62406
  strong: !0,
62409
62407
  children: a.name
62410
62408
  })]
@@ -62425,11 +62423,11 @@ function dG() {
62425
62423
  product_parent_ID: Number(a?.id),
62426
62424
  module_parent_ID: Number(n.module),
62427
62425
  submodule_parent_ID: Number(n.submodule),
62428
- description: aG(n.description),
62429
- actions: aG(n.actions),
62430
- key: aG(n.key),
62431
- value: aG(n.value),
62432
- expected: aG(n.expected),
62426
+ description: oG(n.description),
62427
+ actions: oG(n.actions),
62428
+ key: oG(n.key),
62429
+ value: oG(n.value),
62430
+ expected: oG(n.expected),
62433
62431
  scenario: +!!n.scenario,
62434
62432
  active: +!!n.active
62435
62433
  };
@@ -62495,7 +62493,7 @@ function dG() {
62495
62493
  key: void 0,
62496
62494
  value: void 0,
62497
62495
  expected: void 0
62498
- }), uG(e, [
62496
+ }), dG(e, [
62499
62497
  "actions",
62500
62498
  "key",
62501
62499
  "value",
@@ -62526,7 +62524,7 @@ function dG() {
62526
62524
  key: void 0,
62527
62525
  value: void 0,
62528
62526
  expected: void 0
62529
- }), uG(e, [
62527
+ }), dG(e, [
62530
62528
  "actions",
62531
62529
  "key",
62532
62530
  "value",
@@ -62580,7 +62578,7 @@ function dG() {
62580
62578
  /* @__PURE__ */ Y("span", { children: "Step Details" })
62581
62579
  ]
62582
62580
  }),
62583
- extra: /* @__PURE__ */ X(rG, {
62581
+ extra: /* @__PURE__ */ X(iG, {
62584
62582
  type: "secondary",
62585
62583
  children: [
62586
62584
  ne,
@@ -62620,13 +62618,13 @@ function dG() {
62620
62618
  placeholder: "Select action",
62621
62619
  options: f,
62622
62620
  onChange: (t) => {
62623
- let n = lG(m, t);
62621
+ let n = uG(m, t);
62624
62622
  e.setFieldsValue({
62625
62623
  actions: t,
62626
62624
  key: n.key ? e.getFieldValue("key") : void 0,
62627
62625
  value: n.value ? e.getFieldValue("value") : void 0,
62628
62626
  expected: n.expected ? e.getFieldValue("expected") : void 0
62629
- }), uG(e, [
62627
+ }), dG(e, [
62630
62628
  "key",
62631
62629
  "value",
62632
62630
  "expected"
@@ -62735,7 +62733,7 @@ function dG() {
62735
62733
  children: /* @__PURE__ */ Y(Kw, {
62736
62734
  listName: "Added Steps",
62737
62735
  loading: x,
62738
- fields: sG,
62736
+ fields: cG,
62739
62737
  dataSource: u,
62740
62738
  current: 1,
62741
62739
  pageSize: Math.max(u.length, 1),
@@ -62751,7 +62749,7 @@ function dG() {
62751
62749
  }
62752
62750
  //#endregion
62753
62751
  //#region src/pages/TestingPage/ManageModules.jsx
62754
- var { Text: fG } = co, pG = [
62752
+ var { Text: pG } = co, mG = [
62755
62753
  {
62756
62754
  label: "Home",
62757
62755
  href: "/"
@@ -62765,7 +62763,7 @@ var { Text: fG } = co, pG = [
62765
62763
  href: "/manageModules"
62766
62764
  }
62767
62765
  ];
62768
- function mG() {
62766
+ function hG() {
62769
62767
  let e = bc(), t = I(() => y(), []), [n, r] = L([]), [i, a] = L({}), [o, s] = L(!1), [c, l] = L(!1), [u, d] = L(""), [f, p] = L(!1), [m, h] = L(1), [g, _] = L(10), v = Sa(async (e) => {
62770
62768
  if (!e) {
62771
62769
  r([]);
@@ -62833,7 +62831,7 @@ function mG() {
62833
62831
  align: "middle",
62834
62832
  justify: "space-between",
62835
62833
  className: "breadcrumb-action-wrapper",
62836
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: pG }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
62834
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: mG }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
62837
62835
  type: "link",
62838
62836
  onClick: () => e("/addTestCase"),
62839
62837
  children: "Back to Form"
@@ -62853,7 +62851,7 @@ function mG() {
62853
62851
  children: [
62854
62852
  /* @__PURE__ */ Y(Ns, {}),
62855
62853
  /* @__PURE__ */ Y("span", { children: "Project:" }),
62856
- /* @__PURE__ */ Y(fG, {
62854
+ /* @__PURE__ */ Y(pG, {
62857
62855
  strong: !0,
62858
62856
  children: t.name
62859
62857
  })
@@ -62929,7 +62927,7 @@ function mG() {
62929
62927
  children: /* @__PURE__ */ X(U, {
62930
62928
  direction: "vertical",
62931
62929
  className: "zt-modal-stack",
62932
- children: [/* @__PURE__ */ X(fG, {
62930
+ children: [/* @__PURE__ */ X(pG, {
62933
62931
  type: "secondary",
62934
62932
  children: ["Project: ", /* @__PURE__ */ Y("b", { children: t.name })]
62935
62933
  }), /* @__PURE__ */ Y(V, {
@@ -62946,7 +62944,7 @@ function mG() {
62946
62944
  }
62947
62945
  //#endregion
62948
62946
  //#region src/pages/TestingPage/ManageSubmodules.jsx
62949
- var { Text: hG } = co, gG = [
62947
+ var { Text: gG } = co, _G = [
62950
62948
  {
62951
62949
  label: "Home",
62952
62950
  href: "/"
@@ -62964,7 +62962,7 @@ var { Text: hG } = co, gG = [
62964
62962
  href: "/test-cases/zinnext/submodules"
62965
62963
  }
62966
62964
  ];
62967
- function _G() {
62965
+ function vG() {
62968
62966
  let e = bc(), [t] = Sc(), n = I(() => y(), []), r = t.get("module") ?? "", [i, a] = L([]), [o, s] = L(!1), [c, l] = L(!1), [u, d] = L(""), [f, p] = L(!1), [m, h] = L(1), [g, _] = L(10), v = Sa(async (e, t) => {
62969
62967
  if (!e || !t) {
62970
62968
  a([]);
@@ -63034,7 +63032,7 @@ function _G() {
63034
63032
  align: "middle",
63035
63033
  justify: "space-between",
63036
63034
  className: "breadcrumb-action-wrapper",
63037
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: gG }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
63035
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: _G }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
63038
63036
  type: "link",
63039
63037
  onClick: () => e("/manageModules"),
63040
63038
  children: "Back to Modules"
@@ -63057,7 +63055,7 @@ function _G() {
63057
63055
  children: [
63058
63056
  /* @__PURE__ */ Y(Ns, {}),
63059
63057
  /* @__PURE__ */ Y("span", { children: "Project:" }),
63060
- /* @__PURE__ */ Y(hG, {
63058
+ /* @__PURE__ */ Y(gG, {
63061
63059
  strong: !0,
63062
63060
  children: n.name
63063
63061
  })
@@ -63067,7 +63065,7 @@ function _G() {
63067
63065
  children: [
63068
63066
  /* @__PURE__ */ Y(ho, {}),
63069
63067
  /* @__PURE__ */ Y("span", { children: "Module:" }),
63070
- /* @__PURE__ */ Y(hG, {
63068
+ /* @__PURE__ */ Y(gG, {
63071
63069
  strong: !0,
63072
63070
  children: r
63073
63071
  })
@@ -63130,7 +63128,7 @@ function _G() {
63130
63128
  children: /* @__PURE__ */ X(U, {
63131
63129
  direction: "vertical",
63132
63130
  className: "zt-modal-stack",
63133
- children: [/* @__PURE__ */ X(hG, {
63131
+ children: [/* @__PURE__ */ X(gG, {
63134
63132
  type: "secondary",
63135
63133
  children: [
63136
63134
  "Project: ",
@@ -63152,7 +63150,7 @@ function _G() {
63152
63150
  }
63153
63151
  //#endregion
63154
63152
  //#region src/pages/TestingPage/ZinnextTableView.jsx
63155
- var { Text: vG } = co, yG = [
63153
+ var { Text: yG } = co, bG = [
63156
63154
  {
63157
63155
  label: "Home",
63158
63156
  href: "/"
@@ -63166,7 +63164,7 @@ var { Text: vG } = co, yG = [
63166
63164
  href: "/viewTestCase"
63167
63165
  }
63168
63166
  ];
63169
- function bG() {
63167
+ function xG() {
63170
63168
  let e = bc(), [t, n] = L([]), [r, i] = L(0), [a, o] = L(!1), s = I(() => y(), []), [c, l] = L(""), [u, d] = L(1), [f, p] = L(20), [m, h] = L(null), g = Sa(async (e = {}) => {
63171
63169
  o(!0);
63172
63170
  try {
@@ -63226,7 +63224,7 @@ function bG() {
63226
63224
  align: "middle",
63227
63225
  justify: "space-between",
63228
63226
  className: "breadcrumb-action-wrapper",
63229
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: yG }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
63227
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: bG }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
63230
63228
  type: "link",
63231
63229
  onClick: () => e("/addTestCase"),
63232
63230
  children: "Back to Form"
@@ -63240,7 +63238,7 @@ function bG() {
63240
63238
  className: "zt-section-title",
63241
63239
  children: [/* @__PURE__ */ Y(Qs, {}), /* @__PURE__ */ Y("span", { children: "Test Flows" })]
63242
63240
  }),
63243
- extra: /* @__PURE__ */ X(vG, {
63241
+ extra: /* @__PURE__ */ X(yG, {
63244
63242
  type: "secondary",
63245
63243
  children: [r, " row(s)"]
63246
63244
  }),
@@ -63394,17 +63392,17 @@ function bG() {
63394
63392
  }
63395
63393
  //#endregion
63396
63394
  //#region src/pages/TestingPage/testHomePage.jsx
63397
- var xG = [{
63395
+ var SG = [{
63398
63396
  label: "Home",
63399
63397
  href: "/"
63400
63398
  }, {
63401
63399
  label: "Test Cases",
63402
63400
  href: "/test-cases"
63403
63401
  }];
63404
- function SG() {
63402
+ function CG() {
63405
63403
  return /* @__PURE__ */ X("main", {
63406
63404
  className: "jobs-list-page",
63407
- children: [/* @__PURE__ */ Y(Ci, { items: xG }), /* @__PURE__ */ Y(bg, {
63405
+ children: [/* @__PURE__ */ Y(Ci, { items: SG }), /* @__PURE__ */ Y(bg, {
63408
63406
  moduleName: "test-flows",
63409
63407
  rowKey: "id"
63410
63408
  })]
@@ -63412,85 +63410,85 @@ function SG() {
63412
63410
  }
63413
63411
  //#endregion
63414
63412
  //#region src/pages/TestingPage/lms-test-form.jsx
63415
- var { Text: CG } = co, wG = [{
63413
+ var { Text: wG } = co, TG = [{
63416
63414
  label: "Home",
63417
63415
  href: "/"
63418
63416
  }, {
63419
63417
  label: "LMS Cases",
63420
63418
  href: "/lms-cases"
63421
- }], TG = {
63419
+ }], EG = {
63422
63420
  tags: "regression",
63423
63421
  active: 1
63424
- }, EG = { module: {
63422
+ }, DG = { module: {
63425
63423
  dbName: "Modules",
63426
63424
  formField: "module",
63427
63425
  label: "Module"
63428
- } }, DG = {
63426
+ } }, OG = {
63429
63427
  key: !1,
63430
63428
  value: !1,
63431
63429
  expected: !1
63432
63430
  };
63433
- function OG(e, t) {
63434
- return t ? e[t] ?? DG : DG;
63435
- }
63436
63431
  function kG(e, t) {
63432
+ return t ? e[t] ?? OG : OG;
63433
+ }
63434
+ function AG(e, t) {
63437
63435
  e.setFields(t.map((e) => ({
63438
63436
  name: e,
63439
63437
  errors: []
63440
63438
  })));
63441
63439
  }
63442
- function AG(e = []) {
63440
+ function jG(e = []) {
63443
63441
  return e.map((e) => ({
63444
63442
  value: e,
63445
63443
  label: e
63446
63444
  }));
63447
63445
  }
63448
- function jG(e = "") {
63446
+ function MG(e = "") {
63449
63447
  return String(e ?? "").trim();
63450
63448
  }
63451
- function MG(e = []) {
63449
+ function NG(e = []) {
63452
63450
  let t = /* @__PURE__ */ new Map();
63453
63451
  return e.forEach((e) => {
63454
- let n = jG(e?.flow), r = n.toLowerCase();
63452
+ let n = MG(e?.flow), r = n.toLowerCase();
63455
63453
  n && !t.has(r) && t.set(r, n);
63456
63454
  }), Array.from(t.values()).map((e) => ({
63457
63455
  value: e,
63458
63456
  label: e
63459
63457
  }));
63460
63458
  }
63461
- function NG(e = [], t, n) {
63462
- let r = jG(t).toLowerCase(), i = jG(n).toLowerCase();
63459
+ function PG(e = [], t, n) {
63460
+ let r = MG(t).toLowerCase(), i = MG(n).toLowerCase();
63463
63461
  return e.reduce((e, t) => {
63464
- let n = jG(t?.module).toLowerCase(), a = jG(t?.flow).toLowerCase();
63462
+ let n = MG(t?.module).toLowerCase(), a = MG(t?.flow).toLowerCase();
63465
63463
  if (n !== r || a !== i) return e;
63466
63464
  let o = Number(t?.step_order) || 0;
63467
63465
  return Math.max(e, o);
63468
63466
  }, 0) + 1;
63469
63467
  }
63470
- function PG({ icon: e, title: t }) {
63468
+ function FG({ icon: e, title: t }) {
63471
63469
  return /* @__PURE__ */ X(U, {
63472
63470
  size: 10,
63473
63471
  align: "center",
63474
63472
  children: [/* @__PURE__ */ Y("div", {
63475
63473
  className: "v1-section-icon-box",
63476
63474
  children: e
63477
- }), /* @__PURE__ */ Y(CG, {
63475
+ }), /* @__PURE__ */ Y(wG, {
63478
63476
  strong: !0,
63479
63477
  className: "v1-section-label",
63480
63478
  children: t
63481
63479
  })]
63482
63480
  });
63483
63481
  }
63484
- function FG() {
63485
- let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(GW), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
63482
+ function IG() {
63483
+ let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(KW), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
63486
63484
  open: !1,
63487
63485
  typeKey: "module"
63488
- }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = bc(), T = EG[g.typeKey], E = I(() => AG(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), ee = !!jG(D), A = !!jG(O), j = !ee, te = !ee || !A, M = I(() => OG(u, k), [u, k]), ne = (e, t = []) => {
63486
+ }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = bc(), T = DG[g.typeKey], E = I(() => jG(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), ee = !!MG(D), A = !!MG(O), j = !ee, te = !ee || !A, M = I(() => kG(u, k), [u, k]), ne = (e, t = []) => {
63489
63487
  e === "module" && r(t);
63490
63488
  }, N = async () => {
63491
63489
  p(!0);
63492
63490
  try {
63493
- let e = await qA(EG.module.dbName);
63491
+ let e = await qA(DG.module.dbName);
63494
63492
  r(e?.items ?? []);
63495
63493
  } catch (e) {
63496
63494
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -63505,7 +63503,7 @@ function FG() {
63505
63503
  console.error("Unable to load action field rules:", e), q.error("Unable to load action validation rules.");
63506
63504
  }
63507
63505
  }, P = Sa(async (t) => {
63508
- let n = jG(t);
63506
+ let n = MG(t);
63509
63507
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
63510
63508
  h(!0);
63511
63509
  try {
@@ -63514,7 +63512,7 @@ function FG() {
63514
63512
  offset: 0,
63515
63513
  module: n
63516
63514
  }), t = Array.isArray(e?.items) ? e.items : [];
63517
- a(t), s(MG(t));
63515
+ a(t), s(NG(t));
63518
63516
  } catch (e) {
63519
63517
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
63520
63518
  } finally {
@@ -63522,14 +63520,14 @@ function FG() {
63522
63520
  }
63523
63521
  }
63524
63522
  }, [e]), ie = Sa(async (t, n, r) => {
63525
- let i = jG(t), a = jG(n);
63523
+ let i = MG(t), a = MG(n);
63526
63524
  if (!i || !a) {
63527
63525
  e.setFieldsValue({ step_order: void 0 });
63528
63526
  return;
63529
63527
  }
63530
63528
  x(!0);
63531
63529
  try {
63532
- e.setFieldsValue({ step_order: NG(r, i, a) });
63530
+ e.setFieldsValue({ step_order: PG(r, i, a) });
63533
63531
  } catch (e) {
63534
63532
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
63535
63533
  } finally {
@@ -63552,15 +63550,15 @@ function FG() {
63552
63550
  ]);
63553
63551
  let ae = async (t) => {
63554
63552
  let n = {
63555
- module: jG(t.module),
63556
- flow: jG(t.flow),
63553
+ module: MG(t.module),
63554
+ flow: MG(t.flow),
63557
63555
  step_order: Number(t.step_order),
63558
- description: jG(t.description),
63559
- keyword: jG(t.keyword),
63560
- target: jG(t.target),
63561
- value: jG(t.value),
63562
- expected: jG(t.expected),
63563
- tags: t.tags ? jG(t.tags) : TG.tags,
63556
+ description: MG(t.description),
63557
+ keyword: MG(t.keyword),
63558
+ target: MG(t.target),
63559
+ value: MG(t.value),
63560
+ expected: MG(t.expected),
63561
+ tags: t.tags ? MG(t.tags) : EG.tags,
63564
63562
  active: Number(t.active)
63565
63563
  };
63566
63564
  C(!0);
@@ -63572,19 +63570,19 @@ function FG() {
63572
63570
  C(!1);
63573
63571
  }
63574
63572
  }, oe = (t, n) => {
63575
- e.setFieldsValue({ [t]: jG(n) });
63573
+ e.setFieldsValue({ [t]: MG(n) });
63576
63574
  }, se = (t) => {
63577
63575
  e.setFieldsValue({
63578
- module: jG(t),
63576
+ module: MG(t),
63579
63577
  flow: void 0,
63580
63578
  step_order: void 0,
63581
63579
  keyword: void 0,
63582
63580
  description: void 0,
63583
63581
  target: void 0,
63584
- tags: TG.tags,
63582
+ tags: EG.tags,
63585
63583
  value: void 0,
63586
63584
  expected: void 0
63587
- }), kG(e, [
63585
+ }), AG(e, [
63588
63586
  "keyword",
63589
63587
  "target",
63590
63588
  "value",
@@ -63592,32 +63590,32 @@ function FG() {
63592
63590
  ]);
63593
63591
  }, ce = (t) => {
63594
63592
  e.setFieldsValue({
63595
- flow: jG(t),
63593
+ flow: MG(t),
63596
63594
  step_order: void 0,
63597
63595
  keyword: void 0,
63598
63596
  target: void 0,
63599
63597
  value: void 0,
63600
63598
  expected: void 0
63601
- }), kG(e, [
63599
+ }), AG(e, [
63602
63600
  "keyword",
63603
63601
  "target",
63604
63602
  "value",
63605
63603
  "expected"
63606
63604
  ]);
63607
63605
  }, le = (t) => {
63608
- let n = OG(u, t);
63606
+ let n = kG(u, t);
63609
63607
  e.setFieldsValue({
63610
- keyword: jG(t),
63608
+ keyword: MG(t),
63611
63609
  target: n.key ? e.getFieldValue("target") : void 0,
63612
63610
  value: n.value ? e.getFieldValue("value") : void 0,
63613
63611
  expected: n.expected ? e.getFieldValue("expected") : void 0
63614
- }), kG(e, [
63612
+ }), AG(e, [
63615
63613
  "target",
63616
63614
  "value",
63617
63615
  "expected"
63618
63616
  ]);
63619
63617
  }, ue = (e) => {
63620
- let n = EG[e];
63618
+ let n = DG[e];
63621
63619
  _({
63622
63620
  open: !0,
63623
63621
  typeKey: e
@@ -63632,7 +63630,7 @@ function FG() {
63632
63630
  })), t.resetFields();
63633
63631
  }, fe = async () => {
63634
63632
  try {
63635
- let n = jG((await t.validateFields()).name), r = await JA({
63633
+ let n = MG((await t.validateFields()).name), r = await JA({
63636
63634
  name: n,
63637
63635
  type: T.dbName
63638
63636
  });
@@ -63650,7 +63648,7 @@ function FG() {
63650
63648
  align: "middle",
63651
63649
  justify: "space-between",
63652
63650
  className: "breadcrumb-action-wrapper",
63653
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: wG }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
63651
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Ci, { items: TG }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
63654
63652
  type: "link",
63655
63653
  onClick: () => w("/lms-home"),
63656
63654
  children: "View Table"
@@ -63665,7 +63663,7 @@ function FG() {
63665
63663
  children: /* @__PURE__ */ X(U, {
63666
63664
  align: "center",
63667
63665
  size: 10,
63668
- children: [/* @__PURE__ */ Y(Ms, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(CG, {
63666
+ children: [/* @__PURE__ */ Y(Ms, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(wG, {
63669
63667
  strong: !0,
63670
63668
  style: { fontSize: 16 },
63671
63669
  children: "Add LMS Case"
@@ -63681,16 +63679,16 @@ function FG() {
63681
63679
  className: "v1-required-mark",
63682
63680
  children: " *"
63683
63681
  })] }),
63684
- initialValues: TG,
63682
+ initialValues: EG,
63685
63683
  onFinish: ae,
63686
63684
  autoComplete: "off",
63687
63685
  children: [/* @__PURE__ */ Y(Ma, {
63688
63686
  className: "v1-card",
63689
- title: /* @__PURE__ */ Y(PG, {
63687
+ title: /* @__PURE__ */ Y(FG, {
63690
63688
  icon: /* @__PURE__ */ Y(as, {}),
63691
63689
  title: "LMS Case Details"
63692
63690
  }),
63693
- extra: /* @__PURE__ */ Y(CG, {
63691
+ extra: /* @__PURE__ */ Y(wG, {
63694
63692
  type: "secondary",
63695
63693
  className: "v1-card-subtitle",
63696
63694
  children: "Module, flow, step order and execution data"
@@ -63900,7 +63898,7 @@ function FG() {
63900
63898
  maxLength: 100,
63901
63899
  placeholder: `Enter ${T.label.toLowerCase()} name`,
63902
63900
  onBlur: (e) => {
63903
- t.setFieldsValue({ name: jG(e.target.value) });
63901
+ t.setFieldsValue({ name: MG(e.target.value) });
63904
63902
  }
63905
63903
  })
63906
63904
  }), /* @__PURE__ */ Y(B.Item, {
@@ -63917,17 +63915,17 @@ function FG() {
63917
63915
  }
63918
63916
  //#endregion
63919
63917
  //#region src/pages/TestingPage/lmsHomePage.jsx
63920
- var IG = [{
63918
+ var LG = [{
63921
63919
  label: "Home",
63922
63920
  href: "/"
63923
63921
  }, {
63924
63922
  label: "LMS Cases",
63925
63923
  href: "/lms-cases"
63926
63924
  }];
63927
- function LG() {
63925
+ function RG() {
63928
63926
  return /* @__PURE__ */ X("main", {
63929
63927
  className: "jobs-list-page",
63930
- children: [/* @__PURE__ */ Y(Ci, { items: IG }), /* @__PURE__ */ Y(bg, {
63928
+ children: [/* @__PURE__ */ Y(Ci, { items: LG }), /* @__PURE__ */ Y(bg, {
63931
63929
  moduleName: "lms-flows",
63932
63930
  rowKey: "id"
63933
63931
  })]
@@ -63935,7 +63933,7 @@ function LG() {
63935
63933
  }
63936
63934
  //#endregion
63937
63935
  //#region src/services/mergedListApi.js
63938
- var RG = [
63936
+ var zG = [
63939
63937
  "referenceId",
63940
63938
  "ReferenceId",
63941
63939
  "candidateId",
@@ -63946,7 +63944,7 @@ var RG = [
63946
63944
  "Id",
63947
63945
  "_id"
63948
63946
  ];
63949
- function zG(e = RG) {
63947
+ function BG(e = zG) {
63950
63948
  return function(t) {
63951
63949
  if (!t || typeof t != "object") return "";
63952
63950
  for (let n of e) {
@@ -63956,7 +63954,7 @@ function zG(e = RG) {
63956
63954
  return "";
63957
63955
  };
63958
63956
  }
63959
- function BG(e, t = RG) {
63957
+ function VG(e, t = zG) {
63960
63958
  if (!e || typeof e != "object") return [];
63961
63959
  let n = [];
63962
63960
  for (let r of t) {
@@ -63965,18 +63963,18 @@ function BG(e, t = RG) {
63965
63963
  }
63966
63964
  return n;
63967
63965
  }
63968
- var VG = zG();
63969
- function HG(e) {
63970
- return typeof e == "function" ? e : typeof e == "string" ? zG([e]) : Array.isArray(e) ? zG(e) : VG;
63966
+ var HG = BG();
63967
+ function UG(e) {
63968
+ return typeof e == "function" ? e : typeof e == "string" ? BG([e]) : Array.isArray(e) ? BG(e) : HG;
63971
63969
  }
63972
- function UG(e, t, n) {
63970
+ function WG(e, t, n) {
63973
63971
  return !t || typeof t != "object" ? e : {
63974
63972
  ...t,
63975
63973
  ...e,
63976
63974
  id: e?.id ?? t?.id ?? n
63977
63975
  };
63978
63976
  }
63979
- function WG(e, t, n = {}) {
63977
+ function GG(e, t, n = {}) {
63980
63978
  return {
63981
63979
  status: "success",
63982
63980
  total: t,
@@ -63986,7 +63984,7 @@ function WG(e, t, n = {}) {
63986
63984
  }
63987
63985
  };
63988
63986
  }
63989
- var GG = [
63987
+ var KG = [
63990
63988
  "fields",
63991
63989
  "fieldConfig",
63992
63990
  "tabs",
@@ -63995,17 +63993,17 @@ var GG = [
63995
63993
  "actions",
63996
63994
  "columnActions"
63997
63995
  ];
63998
- function KG(e) {
63996
+ function qG(e) {
63999
63997
  let t = e?.data ?? e, n = {};
64000
- for (let r of GG) {
63998
+ for (let r of KG) {
64001
63999
  let i = e?.[r] ?? t?.[r];
64002
64000
  i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
64003
64001
  }
64004
64002
  return n;
64005
64003
  }
64006
- var qG = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
64007
- function JG(e, t, n) {
64008
- let r = (Array.isArray(n) ? n : [n]).map(qG).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(qG(e?.value)) || r.includes(qG(e?.label))) : -1;
64004
+ var JG = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
64005
+ function YG(e, t, n) {
64006
+ let r = (Array.isArray(n) ? n : [n]).map(JG).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(JG(e?.value)) || r.includes(JG(e?.label))) : -1;
64009
64007
  if (i === -1) return [...e, ...t];
64010
64008
  let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
64011
64009
  ...e,
@@ -64017,31 +64015,31 @@ function JG(e, t, n) {
64017
64015
  ...e.slice(i + 1)
64018
64016
  ];
64019
64017
  }
64020
- var YG = (e, t) => Sp(e, t).rows, XG = (e, t) => {
64018
+ var XG = (e, t) => Sp(e, t).rows, ZG = (e, t) => {
64021
64019
  let { rows: n, total: r } = Sp(e, t);
64022
64020
  return {
64023
64021
  rows: n,
64024
64022
  total: r
64025
64023
  };
64026
64024
  };
64027
- function ZG(e, t) {
64025
+ function QG(e, t) {
64028
64026
  return function(n, r, i, a = {}) {
64029
64027
  return e(t ?? n, r, i, a);
64030
64028
  };
64031
64029
  }
64032
- function QG(e) {
64030
+ function $G(e) {
64033
64031
  return !e || typeof e != "object" || typeof (e.fetchByKeys ?? e.fetch ?? e.function) != "function" ? null : {
64034
64032
  ...e,
64035
64033
  fetchByKeys: typeof e.fetchByKeys == "function" ? e.fetchByKeys : null,
64036
64034
  fetch: typeof e.fetch == "function" ? e.fetch : null,
64037
64035
  function: typeof e.function == "function" ? e.function : null,
64038
- extractRows: typeof e.extractRows == "function" ? e.extractRows : YG,
64039
- mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : UG,
64036
+ extractRows: typeof e.extractRows == "function" ? e.extractRows : XG,
64037
+ mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : WG,
64040
64038
  fetchById: typeof e.fetchById == "function" ? e.fetchById : null
64041
64039
  };
64042
64040
  }
64043
- function $G({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
64044
- return !e && !t && !r ? [] : [QG({
64041
+ function eK({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
64042
+ return !e && !t && !r ? [] : [$G({
64045
64043
  key: i,
64046
64044
  fetchByKeys: e ? (t, n, r) => e(t, n, r) : null,
64047
64045
  function: t ? ({ moduleName: e, options: n }) => t(e, o, 0, n) : null,
@@ -64050,21 +64048,21 @@ function $G({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows:
64050
64048
  mergeRow: a
64051
64049
  })].filter(Boolean);
64052
64050
  }
64053
- function eK(e) {
64051
+ function tK(e) {
64054
64052
  if (typeof e == "function") return (t) => {
64055
64053
  let n = e(t);
64056
64054
  return n == null || n === "" ? [] : [String(n)];
64057
64055
  };
64058
- let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : RG;
64059
- return (e) => BG(e, t);
64056
+ let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : zG;
64057
+ return (e) => VG(e, t);
64060
64058
  }
64061
- function tK(e, t) {
64059
+ function nK(e, t) {
64062
64060
  let n = /* @__PURE__ */ new Map();
64063
64061
  return e.forEach((e) => {
64064
64062
  for (let r of t(e)) n.has(r) || n.set(r, e);
64065
64063
  }), n;
64066
64064
  }
64067
- function nK({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
64065
+ function rK({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
64068
64066
  return {
64069
64067
  moduleName: e,
64070
64068
  limit: t,
@@ -64078,7 +64076,7 @@ function nK({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryRe
64078
64076
  source: l
64079
64077
  };
64080
64078
  }
64081
- async function rK(e, t) {
64079
+ async function iK(e, t) {
64082
64080
  if (typeof e.args == "function") {
64083
64081
  let n = e.args(t);
64084
64082
  return (e.fetch ?? e.function ?? e.fetchByKeys)(...Array.isArray(n) ? n : [n]);
@@ -64088,8 +64086,8 @@ async function rK(e, t) {
64088
64086
  let n = e.fetch ?? e.function;
64089
64087
  return typeof n == "function" ? n(t) : null;
64090
64088
  }
64091
- function iK({ fetchPrimaryPage: e, extractPrimaryPage: t = XG, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = YG, fetchSecondary: o, extractSecondaryRows: s = YG, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = UG, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
64092
- let h = Array.isArray(r) && r.length ? r.map(QG).filter(Boolean) : $G({
64089
+ function aK({ fetchPrimaryPage: e, extractPrimaryPage: t = ZG, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = XG, fetchSecondary: o, extractSecondaryRows: s = XG, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = WG, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
64090
+ let h = Array.isArray(r) && r.length ? r.map($G).filter(Boolean) : eK({
64093
64091
  fetchSecondaryByKeys: n,
64094
64092
  fetchSecondary: o,
64095
64093
  extractSecondaryRows: s,
@@ -64109,7 +64107,7 @@ function iK({ fetchPrimaryPage: e, extractPrimaryPage: t = XG, fetchSecondaryByK
64109
64107
  }
64110
64108
  async function v(e, t, n, r, i) {
64111
64109
  if (!n) return e;
64112
- let a = t.extractRows(n, r) ?? [], o = HG(t.primaryKey ?? l), s = eK(t.key), c = tK(a, s);
64110
+ let a = t.extractRows(n, r) ?? [], o = UG(t.primaryKey ?? l), s = tK(t.key), c = nK(a, s);
64113
64111
  return Promise.all(e.map(async (e) => {
64114
64112
  let n = o(e), a = c.get(n) ?? (i() ? null : await _(t, s, r, n));
64115
64113
  return t.mergeRow(e, a, n);
@@ -64124,21 +64122,21 @@ function iK({ fetchPrimaryPage: e, extractPrimaryPage: t = XG, fetchSecondaryByK
64124
64122
  let r = {};
64125
64123
  for (let e of n) {
64126
64124
  if (!e) continue;
64127
- let t = KG(e);
64125
+ let t = qG(e);
64128
64126
  for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
64129
64127
  }
64130
- return p.length && (r.fields = JG(r.fields ?? [], p, m)), WG(e, t, r);
64128
+ return p.length && (r.fields = YG(r.fields ?? [], p, m)), GG(e, t, r);
64131
64129
  }
64132
64130
  async function x({ moduleName: e, limit: t, offset: n, options: r, primaryResponse: i, primaryRows: a, pageRows: o, total: s }) {
64133
64131
  return Promise.all(h.map(async (c) => {
64134
64132
  try {
64135
- let u = HG(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
64133
+ let u = UG(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
64136
64134
  return c.fetchByKeys && d.length === 0 ? {
64137
64135
  source: c,
64138
64136
  response: null
64139
64137
  } : {
64140
64138
  source: c,
64141
- response: await rK(c, nK({
64139
+ response: await iK(c, rK({
64142
64140
  moduleName: e,
64143
64141
  limit: t,
64144
64142
  offset: n,
@@ -64192,25 +64190,25 @@ function iK({ fetchPrimaryPage: e, extractPrimaryPage: t = XG, fetchSecondaryByK
64192
64190
  }
64193
64191
  //#endregion
64194
64192
  //#region src/services/workflowModuleListApi.js
64195
- function aK(e, t, n = {}) {
64196
- return iK({
64197
- fetchPrimary: () => VV(e, t),
64198
- extractPrimaryRows: zV,
64193
+ function oK(e, t, n = {}) {
64194
+ return aK({
64195
+ fetchPrimary: () => HV(e, t),
64196
+ extractPrimaryRows: BV,
64199
64197
  fetchSecondary: Kd,
64200
- fetchSecondaryById: HV,
64198
+ fetchSecondaryById: UV,
64201
64199
  secondaryFetchLimit: n.moduleFetchLimit ?? 200
64202
64200
  });
64203
64201
  }
64204
- function oK(e) {
64202
+ function sK(e) {
64205
64203
  let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
64206
64204
  return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
64207
64205
  }
64208
- function sK(e) {
64206
+ function cK(e) {
64209
64207
  let t = Array.isArray(e?.stages) ? e.stages : [];
64210
64208
  if (!t.length) return e;
64211
64209
  let n = {};
64212
64210
  for (let e of t) {
64213
- let t = oK(e?.stageName);
64211
+ let t = sK(e?.stageName);
64214
64212
  t && (n[t] = Number(e?.count) || 0);
64215
64213
  }
64216
64214
  return {
@@ -64218,19 +64216,19 @@ function sK(e) {
64218
64216
  ...e
64219
64217
  };
64220
64218
  }
64221
- var cK = (e) => {
64219
+ var lK = (e) => {
64222
64220
  let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
64223
64221
  return Number.isFinite(t) && t > 0 ? t : null;
64224
64222
  };
64225
- function lK({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
64223
+ function uK({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
64226
64224
  return function(n, r, i) {
64227
- let a = UG(n, r, i), o = cK(a);
64225
+ let a = WG(n, r, i), o = lK(a);
64228
64226
  return o != null && (a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
64229
64227
  };
64230
64228
  }
64231
- function uK(e = {}) {
64232
- let t = lK();
64233
- return iK({
64229
+ function dK(e = {}) {
64230
+ let t = uK();
64231
+ return aK({
64234
64232
  primaryKey: "_id",
64235
64233
  extraFields: e.extraFields,
64236
64234
  extraFieldsAfter: e.extraFieldsAfter,
@@ -64239,9 +64237,9 @@ function uK(e = {}) {
64239
64237
  key: "entityId",
64240
64238
  fetchByKeys: (e, t, n, r) => {
64241
64239
  let i = Math.max(1, Number(r?.limit) || 10);
64242
- return BV(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
64240
+ return VV(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
64243
64241
  },
64244
- extractRows: (e) => (e?.items ?? []).map(sK),
64242
+ extractRows: (e) => (e?.items ?? []).map(cK),
64245
64243
  mergeRow: (e, n, r) => {
64246
64244
  let i = t(e, n, r);
64247
64245
  return n?._id && (i.workflowId = n._id), i;
@@ -64249,17 +64247,17 @@ function uK(e = {}) {
64249
64247
  }]
64250
64248
  });
64251
64249
  }
64252
- async function dK(e, t = 10, n = 0, r = {}, i = {}) {
64253
- return Sp(await uK(i)(e, t, n, r), e);
64250
+ async function fK(e, t = 10, n = 0, r = {}, i = {}) {
64251
+ return Sp(await dK(i)(e, t, n, r), e);
64254
64252
  }
64255
- async function fK(e, t, n, r = 10, i = 0, a = {}) {
64256
- return Sp(await aK(e, t)(n, r, i, a), n);
64253
+ async function pK(e, t, n, r = 10, i = 0, a = {}) {
64254
+ return Sp(await oK(e, t)(n, r, i, a), n);
64257
64255
  }
64258
64256
  //#endregion
64259
64257
  //#region src/index.js
64260
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-10-07T11:07:30.558Z");
64261
- var pK = kU, mK = _j(DW), hK = _j(kW), gK = _j(WW), _K = _j(nG), vK = _j(dG), yK = _j(mG), bK = _j(_G), xK = _j(bG), SK = _j(SG), CK = _j(FG), wK = _j(LG);
64258
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-10-08T13:57:27.873Z");
64259
+ var mK = AU, hK = _j(OW), gK = _j(AW), _K = _j(GW), vK = _j(rG), yK = _j(fG), bK = _j(hG), xK = _j(vG), SK = _j(xG), CK = _j(CG), wK = _j(IG), TK = _j(RG);
64262
64260
  //#endregion
64263
- export { D as ADMIN_API_URL, ee as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, wv as ActivityNotesCard, pv as ActivityTab, lU as AddBatchCandidatePopup, X_ as AddFormV1, kU as AdminDashboard, mR as AdminDashboardContent, pK as AdminPage, Z_ as AppAlert, at as AppButton, BA as AppShell, ID as ApprovalActionBar, Tv as AssigneeAvatars, MA as AuthGuard, tS as BILLING_STATUS_FLOW, SE as BOOLEAN_API_KEYS, sT as BOOLEAN_PARSEABLE_API_KEYS, Ev as BULK_UPLOAD_DEFAULT_ACCEPT, Dv as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Ci as Breadcrumb, gK as BulkUploadPage, Fv as BulkUploadPanel, o as CANDIDATES_URL, oO as CONTRACT_C2C, aO as CONTRACT_W2, n as CORE_URL, nb as CURRENCY_SYMBOLS, Bc as CalendarCard, vR as CoreThemeAdminApp, _R as CoreThemeAdminRoutes, Wl as CustomPagination, iD as DEFAULT_HOURS_POLICY, vE as DEFAULT_RESULTS_VIEW, wt as DETAIL_VIEW_MODE_OPTIONS, ke as DETAIL_VIEW_MODE_VALUES, Ue as DETAIL_VIEW_POPUP_PATH, OD as DayLogModal, Jv as DescriptionBlock, aC as DetailHeaderCard, fC as DetailViewPage, jz as DetailViewPopup, ex as DetailViewV1, fa as DocumentViewer, Ku as DynamicCards, XB as DynamicPopup, mU as DynamicPopupRoute, Wc as DynamicTabs, ww as EditFormV1, HT as FIELD_TYPE_REGISTRY, ZD as FINANCE_APPROVAL_CONFIG, WD as FINANCE_TYPE_CFO, UD as FINANCE_TYPE_ONBOARDING_MANAGER, qD as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, GD as FINANCE_TYPE_ONLY_FINANCE, HD as FINANCE_TYPE_SUBMISSION_MANAGER, KD as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, kk as FileListCard, nk as FinanceApprovalPanel, IS as FinanceAvatar, BS as FinanceBadge, RD as FinanceDayCell, OS as FinanceDivider, LS as FinanceEmployeeCell, TS as FinanceEmptyState, kS as FinanceEquation, NS as FinanceHistoryTimeline, wS as FinanceHoursGrid, CS as FinanceKpiRow, DS as FinanceLine, rD as FinanceListToolbar, VS as FinanceMarginBadge, zS as FinanceMoneyCell, WS as FinanceRecordsTable, HS as FinanceRowChevron, ES as FinanceSection, SS as FinanceStatusPill, RS as FinanceTextCell, BD as FinanceTimesheetAnalysis, AS as FinanceWorkflowSteps, O as GATEWAY_URL, jL as GLOBAL_DEFAULT_FIELDS, aD as HOURS_MESSAGES, aA as Header, Zu as HierarchyUserFilter, s as JOBS_URL, mK as LegacyAdminPage, bg as ListView, wK as LmsHomePage, CK as LmsTestForm, VA as Login, vz as MailPopup, yK as ManageModules, bK as ManageSubmodules, Nw as ModuleRowActions, FD as NotesPanel, Cv as NotesTab, lE as OPEN_AS_OPTIONS, nS as PAYROLL_STATUS_FLOW, OL as PLATFORM_SCOPES, eU as POPUP_CONFIGS, i as PYOPS_URL, Bw as ParamCardView, Kw as ParamListView, _D as PeriodBadgeTag, VL as PlatformSection, kz as PreviewPopup, gj as ProjectSelect, PD as ProofUploadPreview, jD as QuickLogBar, kD as QuickLogSelectionBar, _E as RESULTS_VIEW_OPTIONS, OU as RegionBanner, AD as RejectionReasonModal, r as SUBMISSIONS_URL, JE as SearchBuilderV1, OA as Sidebar, XE as StatusBadge, gD as StatusBadgeTag, hK as StickyNotesFullPage, QE as StylishDynamicTabs, eD as TemplateEditor, _K as TestForm, SK as TestingHomePage, av as TimelineGroups, TD as TimesheetDayCell, Kr as TipTapEditor, DU as UserForm, vU as VendorShareDrawer, Jp as ViewSummaryWidget, Lz as WizardPopup, a as ZINNEXT_URL, xK as ZinnextTableView, vK as ZinnextTestForm, Wi as appNow, le as applyIntegrationStatus, wl as approveSubmission, Mv as buildAcceptAttr, DE as buildBooleanRequest, gS as buildCsv, uS as buildDailyRows, CD as buildDayGradient, FO as buildRateHistoryEntries, pS as buildWeeklyRollup, g as clearSelectedProject, En as colors, TO as computeFinance, dD as computeHoursPolicy, mS as computeMarginBand, nr as conditionMatches, v as configureCoreTheme, oi as configuredFieldLabel, uK as createAllWorkflowsListFetcher, iK as createMergedListFetcher, ZG as createModuleListFetchAdapter, aK as createWorkflowStageListFetcher, rb as currencySymbol, _L as deactivateRegion, UG as defaultMergeRow, xn as deleteIntegrationConfig, lS as deriveDayStats, pD as describeCapacity, bS as downloadCsv, Hr as evaluateShowIfWith, yO as findEmployerRow, _O as flattenGroups, ub as formatAmount, aa as formatApp, Ln as formatAppDateTime, jv as formatFileSize, IO as formatFinanceMoney, Kx as formatHours, db as formatMoney, Jx as formatPercent, fb as formatRate, bn as getActivity, dK as getAllWorkflowsModuleList, ea as getAppTimeZone, Qx as getApprovalDate, gr as getBgcIntegrationConfig, ur as getBgcIntegrationSummary, rS as getBillingActionStates, JT as getBooleanEligibleTypes, d as getCurrentRoleName, ie as getDetailDisplayDefaults, vS as getFieldLabel, WT as getFieldType, Av as getFileExtension, nO as getFinanceApprovalConfig, vk as getFormGroupsRaw, ML as getGlobalAiServices, kL as getGlobalDefaults, Lt as getIntegrationConfig, fe as getIntegrationConfigs, qi as getIntegrationSummary, Bl as getModuleConfig, te as getModuleDataDetail, iS as getPayrollActionStates, Hl as getPeriodBadgeConfig, wL as getRegionDetailDefaults, oE as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, Tl as getVMSApprove, yS as getValueStyle, fK as getWorkflowStageModuleList, aS as getWorkflowSteps, yL as grantPlatformAccess, xL as hasPlatformAccess, Zx as humanizeEvent, Gg as i, _S as indexFieldConfig, Yx as initialsOf, dT as insertTokenAtCursor, GT as isBooleanEligible, lT as isBooleanParsable, S as isTester, vL as listPlatformAccess, CL as listPlatformAudit, SL as listPlatformUsers, DL as listRegionRoles, EL as listRegionUsers, hL as listRegions, kr as loadDetailDefaults, h as logout, iO as marginIncludesReferral, wO as matchLocationTax, PC as n, xO as normalizeContract, it as normalizeDetailViewMode, Iv as r, ab as rateUnitLabel, sb as rateUnitShort, pE as readActionButtons, fD as reconcileHours, mL as regionPath, UT as registerFieldType, aE as registerSearchPopup, Dl as rejectSubmission, zn as requiredWhenActive, Ir as requiredWhenRule, uv as resolveActivityMeta, EO as resolveAndCompute, lD as resolveDayKind, CO as resolveFinanceInputs, VG as resolveMergeKey, VG as resolveMergedListKey, dE as resolveOpenAs, rO as resolveRejectionReason, xE as resolveResultsSearchPlaceholder, bE as resolveResultsView, yk as resolveSubmissionFinance, bL as revokePlatformAccess, Pt as runDetailViewOpen, pi as saveBgcIntegrationConfig, NL as saveGlobalAiServices, AL as saveGlobalDefaults, ln as saveIntegrationConfig, gL as saveRegion, TL as saveRegionDetailDefaults, c as setSelectedProject, cr as showIfConditions, oK as stageCountKey, HA as t, vi as testIntegrationConnection, me as toApp, cb as toNumber, Yi as tzLabel, Wt as tzShortLabel, sE as unregisterSearchPopup, cf as useDropdownFields, Yp as useDropdownValues, Mk as useEditForm, lf as useFieldConfig, uf as useFilterFields, yf as useMenuPermission, Ew as useModuleActions, lC as useRecordRefresh, jk as useTabRows, uT as validateBooleanQuery, Nv as validateBulkFile, t as withAdminAppId, _ as withAppId, _j as withAuthGuard };
64261
+ export { D as ADMIN_API_URL, ee as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, wv as ActivityNotesCard, pv as ActivityTab, uU as AddBatchCandidatePopup, X_ as AddFormV1, AU as AdminDashboard, mR as AdminDashboardContent, mK as AdminPage, Z_ as AppAlert, at as AppButton, BA as AppShell, ID as ApprovalActionBar, Tv as AssigneeAvatars, MA as AuthGuard, tS as BILLING_STATUS_FLOW, SE as BOOLEAN_API_KEYS, sT as BOOLEAN_PARSEABLE_API_KEYS, Ev as BULK_UPLOAD_DEFAULT_ACCEPT, Dv as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Ci as Breadcrumb, _K as BulkUploadPage, Fv as BulkUploadPanel, o as CANDIDATES_URL, oO as CONTRACT_C2C, aO as CONTRACT_W2, n as CORE_URL, nb as CURRENCY_SYMBOLS, Bc as CalendarCard, vR as CoreThemeAdminApp, _R as CoreThemeAdminRoutes, Wl as CustomPagination, iD as DEFAULT_HOURS_POLICY, vE as DEFAULT_RESULTS_VIEW, wt as DETAIL_VIEW_MODE_OPTIONS, ke as DETAIL_VIEW_MODE_VALUES, Ue as DETAIL_VIEW_POPUP_PATH, OD as DayLogModal, Jv as DescriptionBlock, aC as DetailHeaderCard, fC as DetailViewPage, jz as DetailViewPopup, ex as DetailViewV1, fa as DocumentViewer, Ku as DynamicCards, XB as DynamicPopup, hU as DynamicPopupRoute, Wc as DynamicTabs, ww as EditFormV1, HT as FIELD_TYPE_REGISTRY, ZD as FINANCE_APPROVAL_CONFIG, WD as FINANCE_TYPE_CFO, UD as FINANCE_TYPE_ONBOARDING_MANAGER, qD as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, GD as FINANCE_TYPE_ONLY_FINANCE, HD as FINANCE_TYPE_SUBMISSION_MANAGER, KD as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, kk as FileListCard, nk as FinanceApprovalPanel, IS as FinanceAvatar, BS as FinanceBadge, RD as FinanceDayCell, OS as FinanceDivider, LS as FinanceEmployeeCell, TS as FinanceEmptyState, kS as FinanceEquation, NS as FinanceHistoryTimeline, wS as FinanceHoursGrid, CS as FinanceKpiRow, DS as FinanceLine, rD as FinanceListToolbar, VS as FinanceMarginBadge, zS as FinanceMoneyCell, WS as FinanceRecordsTable, HS as FinanceRowChevron, ES as FinanceSection, SS as FinanceStatusPill, RS as FinanceTextCell, BD as FinanceTimesheetAnalysis, AS as FinanceWorkflowSteps, O as GATEWAY_URL, jL as GLOBAL_DEFAULT_FIELDS, aD as HOURS_MESSAGES, aA as Header, Zu as HierarchyUserFilter, s as JOBS_URL, hK as LegacyAdminPage, bg as ListView, TK as LmsHomePage, wK as LmsTestForm, VA as Login, vz as MailPopup, bK as ManageModules, xK as ManageSubmodules, Nw as ModuleRowActions, FD as NotesPanel, Cv as NotesTab, lE as OPEN_AS_OPTIONS, nS as PAYROLL_STATUS_FLOW, OL as PLATFORM_SCOPES, tU as POPUP_CONFIGS, i as PYOPS_URL, Bw as ParamCardView, Kw as ParamListView, _D as PeriodBadgeTag, VL as PlatformSection, kz as PreviewPopup, gj as ProjectSelect, PD as ProofUploadPreview, jD as QuickLogBar, kD as QuickLogSelectionBar, _E as RESULTS_VIEW_OPTIONS, kU as RegionBanner, AD as RejectionReasonModal, r as SUBMISSIONS_URL, JE as SearchBuilderV1, OA as Sidebar, XE as StatusBadge, gD as StatusBadgeTag, gK as StickyNotesFullPage, QE as StylishDynamicTabs, eD as TemplateEditor, vK as TestForm, CK as TestingHomePage, av as TimelineGroups, TD as TimesheetDayCell, Kr as TipTapEditor, OU as UserForm, yU as VendorShareDrawer, Jp as ViewSummaryWidget, Lz as WizardPopup, a as ZINNEXT_URL, SK as ZinnextTableView, yK as ZinnextTestForm, Wi as appNow, le as applyIntegrationStatus, wl as approveSubmission, Mv as buildAcceptAttr, DE as buildBooleanRequest, gS as buildCsv, uS as buildDailyRows, CD as buildDayGradient, FO as buildRateHistoryEntries, pS as buildWeeklyRollup, g as clearSelectedProject, En as colors, TO as computeFinance, dD as computeHoursPolicy, mS as computeMarginBand, nr as conditionMatches, v as configureCoreTheme, oi as configuredFieldLabel, dK as createAllWorkflowsListFetcher, aK as createMergedListFetcher, QG as createModuleListFetchAdapter, oK as createWorkflowStageListFetcher, rb as currencySymbol, _L as deactivateRegion, WG as defaultMergeRow, xn as deleteIntegrationConfig, lS as deriveDayStats, pD as describeCapacity, bS as downloadCsv, Hr as evaluateShowIfWith, yO as findEmployerRow, _O as flattenGroups, ub as formatAmount, aa as formatApp, Ln as formatAppDateTime, jv as formatFileSize, IO as formatFinanceMoney, Kx as formatHours, db as formatMoney, Jx as formatPercent, fb as formatRate, bn as getActivity, fK as getAllWorkflowsModuleList, ea as getAppTimeZone, Qx as getApprovalDate, gr as getBgcIntegrationConfig, ur as getBgcIntegrationSummary, rS as getBillingActionStates, JT as getBooleanEligibleTypes, d as getCurrentRoleName, ie as getDetailDisplayDefaults, vS as getFieldLabel, WT as getFieldType, Av as getFileExtension, nO as getFinanceApprovalConfig, vk as getFormGroupsRaw, ML as getGlobalAiServices, kL as getGlobalDefaults, Lt as getIntegrationConfig, fe as getIntegrationConfigs, qi as getIntegrationSummary, Bl as getModuleConfig, te as getModuleDataDetail, iS as getPayrollActionStates, Hl as getPeriodBadgeConfig, wL as getRegionDetailDefaults, oE as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, Tl as getVMSApprove, yS as getValueStyle, pK as getWorkflowStageModuleList, aS as getWorkflowSteps, yL as grantPlatformAccess, xL as hasPlatformAccess, Zx as humanizeEvent, Gg as i, _S as indexFieldConfig, Yx as initialsOf, dT as insertTokenAtCursor, GT as isBooleanEligible, lT as isBooleanParsable, S as isTester, vL as listPlatformAccess, CL as listPlatformAudit, SL as listPlatformUsers, DL as listRegionRoles, EL as listRegionUsers, hL as listRegions, kr as loadDetailDefaults, h as logout, iO as marginIncludesReferral, wO as matchLocationTax, PC as n, xO as normalizeContract, it as normalizeDetailViewMode, Iv as r, ab as rateUnitLabel, sb as rateUnitShort, pE as readActionButtons, fD as reconcileHours, mL as regionPath, UT as registerFieldType, aE as registerSearchPopup, Dl as rejectSubmission, zn as requiredWhenActive, Ir as requiredWhenRule, uv as resolveActivityMeta, EO as resolveAndCompute, lD as resolveDayKind, CO as resolveFinanceInputs, HG as resolveMergeKey, HG as resolveMergedListKey, dE as resolveOpenAs, rO as resolveRejectionReason, xE as resolveResultsSearchPlaceholder, bE as resolveResultsView, yk as resolveSubmissionFinance, bL as revokePlatformAccess, Pt as runDetailViewOpen, pi as saveBgcIntegrationConfig, NL as saveGlobalAiServices, AL as saveGlobalDefaults, ln as saveIntegrationConfig, gL as saveRegion, TL as saveRegionDetailDefaults, c as setSelectedProject, cr as showIfConditions, sK as stageCountKey, HA as t, vi as testIntegrationConnection, me as toApp, cb as toNumber, Yi as tzLabel, Wt as tzShortLabel, sE as unregisterSearchPopup, cf as useDropdownFields, Yp as useDropdownValues, Mk as useEditForm, lf as useFieldConfig, uf as useFilterFields, yf as useMenuPermission, Ew as useModuleActions, lC as useRecordRefresh, jk as useTabRows, uT as validateBooleanQuery, Nv as validateBulkFile, t as withAdminAppId, _ as withAppId, _j as withAuthGuard };
64264
64262
 
64265
64263
  //# sourceMappingURL=index.js.map