@realtek/core-theme 0.0.324 → 0.0.326

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-lib/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, w as T, x as E, y as D } from "./authApi-Bo6Jd4q3.js";
3
- import { $ as O, $n as k, $r as ee, $t as A, A as j, An as te, Ar as ne, At as M, B as re, Bn as ie, Br as N, Bt as ae, C as oe, Cn as se, Cr as ce, Ct as le, D as ue, Dn as de, Dr as fe, Dt as pe, E as me, En as he, Er as ge, Et as _e, F as ve, Fn as ye, Fr as be, Ft as xe, G as Se, Gn as Ce, Gr as P, Gt as we, H as Te, Hn as Ee, Hr as De, Ht as Oe, I as ke, In as Ae, Ir as je, It as Me, J as Ne, Jn as Pe, Jr as Fe, Jt as Ie, K as Le, Kn as Re, Kr as ze, Kt as Be, L as Ve, Ln as He, Lr as Ue, Lt as We, M as Ge, Mn as Ke, Mr as qe, Mt as Je, N as Ye, Nn as Xe, Nr as Ze, Nt as Qe, O as $e, On as et, Or as tt, Ot as nt, P as rt, Pn as it, Pr as at, Pt as ot, Q as st, Qn as ct, Qr as lt, Qt as ut, R as dt, Rn as ft, Rr as pt, Rt as mt, S as ht, Sn as gt, Sr as _t, St as vt, T as yt, Tn as bt, Tr as xt, Tt as St, U as Ct, Un as wt, Ur as Tt, Ut as Et, V as Dt, Vn as Ot, Vr as kt, Vt as At, W as jt, Wn as Mt, Wr as Nt, Wt as Pt, X as Ft, Xn as It, Xr as Lt, Xt as Rt, Y as zt, Yn as Bt, Yr as Vt, Yt as Ht, Z as Ut, Zn as Wt, Zr as Gt, Zt as Kt, _ as qt, _i as Jt, _n as Yt, _r as Xt, _t as Zt, a as Qt, ai as $t, an as en, ar as tn, at as nn, b as rn, bn as an, br as on, bt as sn, c as cn, ci as ln, cn as un, cr as dn, ct as fn, d as pn, di as mn, dn as hn, dr as gn, dt as _n, ei as vn, en as yn, er as bn, et as xn, f as Sn, fi as Cn, fn as wn, fr as Tn, ft as En, g as Dn, gi as On, gn as kn, gr as An, gt as jn, h as Mn, hi as Nn, hn as Pn, hr as Fn, ht as In, i as Ln, ii as Rn, in as zn, ir as Bn, it as Vn, j as Hn, jn as Un, jr as Wn, jt as Gn, k as Kn, kn as qn, kr as Jn, kt as Yn, l as Xn, li as Zn, ln as Qn, lr as $n, lt as er, m as tr, mi as nr, mn as rr, mr as ir, mt as ar, n as or, ni as sr, nn as cr, nr as lr, nt as ur, o as dr, oi as fr, on as pr, or as mr, ot as hr, p as gr, pi as _r, pn as vr, pr as yr, pt as br, q as xr, qn as Sr, qr as Cr, qt as wr, r as Tr, ri as Er, rn as Dr, rr as Or, rt as kr, s as Ar, si as jr, sn as Mr, sr as Nr, st as Pr, t as Fr, ti as Ir, tn as Lr, tr as Rr, tt as zr, u as Br, ui as Vr, un as Hr, ur as Ur, ut as Wr, v as Gr, vn as Kr, vr as qr, vt as Jr, w as Yr, wn as Xr, wr as Zr, wt as Qr, x as $r, xn as ei, xr as ti, xt as ni, y as ri, yn as ii, yr as ai, yt as oi, z as si, zn as ci, zr as li, zt as ui } from "./Breadcrumb-BwhTcL2X.js";
2
+ import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, w as T, x as E, y as D } from "./authApi-BTcAcDDa.js";
3
+ import { $ as O, $n as k, $r as ee, $t as A, A as j, An as te, Ar as ne, At as M, B as re, Bn as ie, Br as N, Bt as ae, C as oe, Cn as se, Cr as ce, Ct as le, D as ue, Dn as de, Dr as fe, Dt as pe, E as me, En as he, Er as ge, Et as _e, F as ve, Fn as ye, Fr as be, Ft as xe, G as Se, Gn as Ce, Gr as P, Gt as we, H as Te, Hn as Ee, Hr as De, Ht as Oe, I as ke, In as Ae, Ir as je, It as Me, J as Ne, Jn as Pe, Jr as Fe, Jt as Ie, K as Le, Kn as Re, Kr as ze, Kt as Be, L as Ve, Ln as He, Lr as Ue, Lt as We, M as Ge, Mn as Ke, Mr as qe, Mt as Je, N as Ye, Nn as Xe, Nr as Ze, Nt as Qe, O as $e, On as et, Or as tt, Ot as nt, P as rt, Pn as it, Pr as at, Pt as ot, Q as st, Qn as ct, Qr as lt, Qt as ut, R as dt, Rn as ft, Rr as pt, Rt as mt, S as ht, Sn as gt, Sr as _t, St as vt, T as yt, Tn as bt, Tr as xt, Tt as St, U as Ct, Un as wt, Ur as Tt, Ut as Et, V as Dt, Vn as Ot, Vr as kt, Vt as At, W as jt, Wn as Mt, Wr as Nt, Wt as Pt, X as Ft, Xn as It, Xr as Lt, Xt as Rt, Y as zt, Yn as Bt, Yr as Vt, Yt as Ht, Z as Ut, Zn as Wt, Zr as Gt, Zt as Kt, _ as qt, _i as Jt, _n as Yt, _r as Xt, _t as Zt, a as Qt, ai as $t, an as en, ar as tn, at as nn, b as rn, bn as an, br as on, bt as sn, c as cn, ci as ln, cn as un, cr as dn, ct as fn, d as pn, di as mn, dn as hn, dr as gn, dt as _n, ei as vn, en as yn, er as bn, et as xn, f as Sn, fi as Cn, fn as wn, fr as Tn, ft as En, g as Dn, gi as On, gn as kn, gr as An, gt as jn, h as Mn, hi as Nn, hn as Pn, hr as Fn, ht as In, i as Ln, ii as Rn, in as zn, ir as Bn, it as Vn, j as Hn, jn as Un, jr as Wn, jt as Gn, k as Kn, kn as qn, kr as Jn, kt as Yn, l as Xn, li as Zn, ln as Qn, lr as $n, lt as er, m as tr, mi as nr, mn as rr, mr as ir, mt as ar, n as or, ni as sr, nn as cr, nr as lr, nt as ur, o as dr, oi as fr, on as pr, or as mr, ot as hr, p as gr, pi as _r, pn as vr, pr as yr, pt as br, q as xr, qn as Sr, qr as Cr, qt as wr, r as Tr, ri as Er, rn as Dr, rr as Or, rt as kr, s as Ar, si as jr, sn as Mr, sr as Nr, st as Pr, t as Fr, ti as Ir, tn as Lr, tr as Rr, tt as zr, u as Br, ui as Vr, un as Hr, ur as Ur, ut as Wr, v as Gr, vn as Kr, vr as qr, vt as Jr, w as Yr, wn as Xr, wr as Zr, wt as Qr, x as $r, xn as ei, xr as ti, xt as ni, y as ri, yn as ii, yr as ai, yt as oi, z as si, zn as ci, zr as li, zt as ui } from "./Breadcrumb-CIq_tofq.js";
4
4
  import { r as di } from "./diceCandidateMapper-CjMFuVFe.js";
5
5
  import { t as fi } from "./formGroupsCache-JeC59oNe.js";
6
- import { n as pi, r as mi } from "./addFormApi-K8iXom4n.js";
6
+ import { n as pi, r as mi } from "./addFormApi-Dv5Hy1Wj.js";
7
7
  import hi, { Fragment as gi, createContext as _i, forwardRef as vi, useCallback as yi, useContext as bi, useEffect as F, useImperativeHandle as xi, useMemo as I, useRef as Si, useState as L } from "react";
8
8
  import { Alert as Ci, AutoComplete as wi, Avatar as Ti, Badge as Ei, Breadcrumb as Di, Button as R, Card as Oi, Checkbox as ki, Col as z, Collapse as Ai, DatePicker as ji, Divider as Mi, Drawer as Ni, Dropdown as Pi, Empty as Fi, Flex as Ii, Form as B, Input as V, InputNumber as Li, Layout as Ri, Mentions as zi, Menu as Bi, Modal as Vi, Pagination as Hi, Popconfirm as Ui, Popover as Wi, Progress as Gi, Radio as Ki, Result as qi, Row as Ji, Select as H, Skeleton as Yi, Slider as Xi, Space as U, Spin as Zi, Statistic as Qi, Steps as $i, Switch as W, Table as ea, Tabs as ta, Tag as G, TimePicker as na, Tooltip as K, Tree as ra, Typography as ia, Upload as aa, message as q } from "antd";
9
9
  import { AimOutlined as oa, ApartmentOutlined as sa, ApiOutlined as ca, AppstoreAddOutlined as la, AppstoreOutlined as ua, ArrowDownOutlined as da, ArrowLeftOutlined as fa, ArrowUpOutlined as pa, BankOutlined as ma, BellOutlined as ha, BgColorsOutlined as ga, BuildOutlined as _a, CalendarOutlined as va, CaretDownOutlined as ya, CaretUpOutlined as ba, CheckCircleFilled as xa, CheckCircleOutlined as Sa, CheckOutlined as Ca, ClearOutlined as wa, ClockCircleOutlined as Ta, CloseCircleFilled as Ea, CloseCircleOutlined as Da, CloseOutlined as Oa, CloudDownloadOutlined as ka, CloudUploadOutlined as Aa, CopyOutlined as ja, CrownOutlined as Ma, DashboardOutlined as Na, DatabaseOutlined as Pa, DeleteOutlined as Fa, DollarCircleFilled as Ia, DollarOutlined as La, DownOutlined as Ra, DownloadOutlined as za, EditOutlined as Ba, EnvironmentOutlined as Va, ExclamationCircleFilled as Ha, ExclamationCircleOutlined as Ua, ExportOutlined as Wa, EyeOutlined as Ga, FieldTimeOutlined as Ka, FileDoneOutlined as qa, FileExcelOutlined as Ja, FileImageOutlined as Ya, FileOutlined as Xa, FilePdfOutlined as Za, FileTextFilled as Qa, FileTextOutlined as $a, FileWordOutlined as eo, FilterOutlined as to, HistoryOutlined as no, HolderOutlined as ro, HomeOutlined as io, IdcardOutlined as ao, InboxOutlined as oo, InfoCircleOutlined as so, LaptopOutlined as co, LeftOutlined as lo, LinkOutlined as uo, LinkedinFilled as fo, LockOutlined as po, LogoutOutlined as mo, MailOutlined as ho, MenuOutlined as go, MergeCellsOutlined as _o, MessageOutlined as vo, MinusCircleOutlined as yo, MoreOutlined as bo, PaperClipOutlined as xo, PhoneOutlined as So, PlayCircleOutlined as Co, PlusOutlined as wo, ProfileOutlined as To, ProjectOutlined as Eo, RedoOutlined as Do, ReloadOutlined as Oo, RestOutlined as ko, RightOutlined as Ao, RiseOutlined as jo, SafetyCertificateOutlined as Mo, SafetyOutlined as No, SaveOutlined as Po, SearchOutlined as Fo, SendOutlined as Io, SettingOutlined as Lo, ShareAltOutlined as Ro, SnippetsOutlined as zo, SolutionOutlined as Bo, SwapOutlined as Vo, SyncOutlined as Ho, TableOutlined as Uo, TagsOutlined as Wo, TeamOutlined as Go, ThunderboltOutlined as Ko, ToolOutlined as qo, UndoOutlined as Jo, UnlockOutlined as Yo, UnorderedListOutlined as Xo, UpOutlined as Zo, UploadOutlined as Qo, UserAddOutlined as $o, UserOutlined as es, UserSwitchOutlined as ts, WarningOutlined as ns } from "@ant-design/icons";
@@ -13140,10 +13140,13 @@ function Pb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13140
13140
  let [P, we] = L({
13141
13141
  sourceDefaultTab: l,
13142
13142
  selectedTab: l
13143
- }), Te = P.sourceDefaultTab === l ? P.selectedTab : l, Ee = ge.some((e) => e.key === Te) ? Te : ge[0]?.key, De = (e) => !e.allowedTabs?.length || e.allowedTabs.some((e) => kb(e) === kb(Ee)), Oe = Se.filter((e) => e.detailPlacement === "primary" && Ce(e) && De(e)), ke = Se.filter((e) => e.detailPlacement !== "primary" && Ce(e) && De(e));
13143
+ }), Te = P.sourceDefaultTab === l ? P.selectedTab : l, Ee = ge.some((e) => e.key === Te) ? Te : ge[0]?.key, De = new Set(ge.map((e) => kb(e.key))), Oe = (e) => {
13144
+ let t = e.allowedTabs ?? [];
13145
+ return !t.length || t.some((e) => kb(e) === kb(Ee)) || ye && t.some((e) => kb(e) === kb(ye)) ? !0 : !t.some((e) => De.has(kb(e))) && !ye;
13146
+ }, ke = Se.filter((e) => e.detailPlacement === "primary" && Ce(e) && Oe(e)), Ae = Se.filter((e) => e.detailPlacement !== "primary" && Ce(e) && Oe(e));
13144
13147
  if (!ne) return null;
13145
- let Ae = (n) => {
13146
- let r = [...Oe, ...ke].find((e) => e.key === n);
13148
+ let je = (n) => {
13149
+ let r = [...ke, ...Ae].find((e) => e.key === n);
13147
13150
  if (r?.actionType === "document" && r.documentField) {
13148
13151
  let n = Nb(m, r.documentField);
13149
13152
  if (n.length) {
@@ -13211,7 +13214,7 @@ function Pb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13211
13214
  id: t,
13212
13215
  action: r
13213
13216
  });
13214
- }, je = (n) => {
13217
+ }, Me = (n) => {
13215
13218
  we({
13216
13219
  sourceDefaultTab: l,
13217
13220
  selectedTab: n
@@ -13219,7 +13222,7 @@ function Pb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13219
13222
  moduleName: e,
13220
13223
  id: t
13221
13224
  });
13222
- }, Me = ke.map((e) => {
13225
+ }, Ne = Ae.map((e) => {
13223
13226
  let t = hd(e, he, ye ?? void 0), n = !t && jb(e, he, y, ye ?? void 0);
13224
13227
  return {
13225
13228
  key: e.key,
@@ -13227,20 +13230,20 @@ function Pb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13227
13230
  danger: e.danger,
13228
13231
  disabled: !!t || !!n,
13229
13232
  title: n || void 0,
13230
- onClick: t || n ? void 0 : () => Ae(e.key)
13233
+ onClick: t || n ? void 0 : () => je(e.key)
13231
13234
  };
13232
- }), Ne = ly(k)?.header;
13233
- if (Ne?.variant === "finance") {
13235
+ }), Pe = ly(k)?.header;
13236
+ if (Pe?.variant === "finance") {
13234
13237
  let t = (e) => e == null ? "" : Array.isArray(e) ? e.map(t).filter(Boolean).join(", ") : String(typeof e == "object" ? e.value ?? e.label ?? e.name ?? e.id ?? "" : e), n = {};
13235
13238
  for (let e of m ?? []) for (let t of e.fields ?? []) t?.field != null && (n[t.field] = t.value);
13236
- let r = (e) => t(n[e]), i = r(Ne.statusField), a = (Ne.chips ?? []).map((e) => ({
13239
+ let r = (e) => t(n[e]), i = r(Pe.statusField), a = (Pe.chips ?? []).map((e) => ({
13237
13240
  key: e.field,
13238
13241
  icon: e.icon ? Sb[e.icon] : void 0,
13239
13242
  label: e.label,
13240
13243
  value: r(e.field) || "—",
13241
13244
  badge: e.badgeField && r(e.badgeField) || void 0,
13242
13245
  tooltip: e.tooltip
13243
- })), o = c ? [] : Oe.map((e) => {
13246
+ })), o = c ? [] : ke.map((e) => {
13244
13247
  let t = hd(e, he, ye ?? void 0), n = !t && jb(e, he, y, ye ?? void 0);
13245
13248
  return {
13246
13249
  key: e.key,
@@ -13249,7 +13252,7 @@ function Pb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13249
13252
  enabled: !t && !n,
13250
13253
  variant: e.tone,
13251
13254
  disabledReason: n || void 0,
13252
- onClick: t || n ? void 0 : () => Ae(e.key)
13255
+ onClick: t || n ? void 0 : () => je(e.key)
13253
13256
  };
13254
13257
  }), s = i ? Iy(e, i) : [];
13255
13258
  return /* @__PURE__ */ X("div", {
@@ -13385,23 +13388,23 @@ function Pb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13385
13388
  children: [
13386
13389
  /* @__PURE__ */ X("div", {
13387
13390
  className: "znx-dh-actions",
13388
- children: [Oe.map((e) => {
13391
+ children: [ke.map((e) => {
13389
13392
  let t = hd(e, he, ye ?? void 0), n = !t && jb(e, he, y, ye ?? void 0), r = /* @__PURE__ */ Y(R, {
13390
13393
  type: "text",
13391
13394
  disabled: !!t || !!n,
13392
13395
  className: `znx-dh-btn znx-dh-btn--${t ? t.tone : e.tone ?? "primary"}${t ? " znx-dh-btn--done" : ""}`,
13393
13396
  icon: t ? /* @__PURE__ */ Y(Sa, {}) : e.icon ? Sb[e.icon] : void 0,
13394
- onClick: t || n ? void 0 : () => Ae(e.key),
13397
+ onClick: t || n ? void 0 : () => je(e.key),
13395
13398
  children: t ? t.label : e.label
13396
13399
  }, e.key);
13397
13400
  return n ? /* @__PURE__ */ Y(K, {
13398
13401
  title: n,
13399
13402
  children: /* @__PURE__ */ Y("span", { children: r })
13400
13403
  }, e.key) : r;
13401
- }), ke.length > 0 && /* @__PURE__ */ Y(Pi, {
13404
+ }), Ae.length > 0 && /* @__PURE__ */ Y(Pi, {
13402
13405
  trigger: ["click"],
13403
13406
  placement: "bottomRight",
13404
- menu: { items: Me },
13407
+ menu: { items: Ne },
13405
13408
  children: /* @__PURE__ */ Y(R, {
13406
13409
  type: "text",
13407
13410
  className: "znx-dh-more",
@@ -13433,7 +13436,7 @@ function Pb({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13433
13436
  children: ge.map((e) => /* @__PURE__ */ Y("button", {
13434
13437
  type: "button",
13435
13438
  className: `znx-dh-tab${Ee === e.key ? " is-active" : ""}`,
13436
- onClick: () => je(e.key),
13439
+ onClick: () => Me(e.key),
13437
13440
  children: e.label
13438
13441
  }, e.key))
13439
13442
  })]
@@ -20958,7 +20961,7 @@ async function cT(e, t) {
20958
20961
  };
20959
20962
  }
20960
20963
  async function lT(e, t) {
20961
- let { fetchFormGroupsPayload: n } = await import("./addFormApi-K8iXom4n.js").then((e) => e.t), r = await n({
20964
+ let { fetchFormGroupsPayload: n } = await import("./addFormApi-Dv5Hy1Wj.js").then((e) => e.t), r = await n({
20962
20965
  module: e,
20963
20966
  id: t
20964
20967
  });
@@ -21840,16 +21843,29 @@ function TE(e) {
21840
21843
  return !t || CE.has(t) ? "" : SE[t] ?? t;
21841
21844
  }
21842
21845
  function EE({ children: e }) {
21843
- let t = us(), n = TE(t.pathname), { canView: r } = Qu(n);
21844
- return n && !r ? /* @__PURE__ */ Y(os, {
21845
- to: "/dashboard",
21846
- replace: !0,
21847
- state: {
21848
- accessDenied: !0,
21849
- deniedPath: t.pathname,
21850
- deniedModule: n
21851
- }
21852
- }) : e;
21846
+ let t = us(), n = ds(), r = TE(t.pathname), { canView: i } = Qu(r);
21847
+ if (r && !i) {
21848
+ let e = r.replace(/[-_]+/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
21849
+ return /* @__PURE__ */ Y("div", {
21850
+ className: "ct-auth-guard",
21851
+ children: /* @__PURE__ */ Y("div", {
21852
+ className: "ct-auth-guard__card",
21853
+ children: /* @__PURE__ */ Y(qi, {
21854
+ status: "403",
21855
+ icon: /* @__PURE__ */ Y(po, { className: "ct-auth-guard__icon" }),
21856
+ title: "Access Denied",
21857
+ subTitle: `You do not have View access to the ${e} module. Please contact your administrator if you need access.`,
21858
+ extra: /* @__PURE__ */ Y(R, {
21859
+ type: "primary",
21860
+ size: "large",
21861
+ onClick: () => n("/dashboard"),
21862
+ children: "Go to Dashboard"
21863
+ })
21864
+ })
21865
+ })
21866
+ });
21867
+ }
21868
+ return e;
21853
21869
  }
21854
21870
  //#endregion
21855
21871
  //#region src/components/layouts/AppShell.jsx
@@ -44431,7 +44447,42 @@ function hM() {
44431
44447
  });
44432
44448
  }
44433
44449
  function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44434
- let [i] = B.useForm(), [a, o] = L(!1), s = !!t;
44450
+ let [i] = B.useForm(), [a, o] = L(!1), s = !!t, c = B.useWatch("masterName", i), l = B.useWatch("masterFeeds", i) ?? [], u = [
44451
+ "clientsubmissionstatus",
44452
+ "clientsubmission",
44453
+ "clientsubmissions"
44454
+ ].includes(String(c ?? t?.masterName ?? "").trim().toLowerCase()), d = l.map((e) => ({
44455
+ label: String(e?.name ?? "").trim() || `Status ${e?.uniqueId ?? ""}`,
44456
+ value: Number(e?.uniqueId)
44457
+ })).filter((e) => Number.isInteger(e.value) && e.value > 0);
44458
+ function f(e, t) {
44459
+ if (!t) {
44460
+ i.setFieldValue([
44461
+ "masterFeeds",
44462
+ e,
44463
+ "isInitialStatus"
44464
+ ], !1);
44465
+ return;
44466
+ }
44467
+ (i.getFieldValue("masterFeeds") ?? []).forEach((t, n) => {
44468
+ i.setFieldValue([
44469
+ "masterFeeds",
44470
+ n,
44471
+ "isInitialStatus"
44472
+ ], n === e);
44473
+ });
44474
+ }
44475
+ function p(e, t) {
44476
+ i.setFieldValue([
44477
+ "masterFeeds",
44478
+ e,
44479
+ "isTerminalStatus"
44480
+ ], t), t && i.setFieldValue([
44481
+ "masterFeeds",
44482
+ e,
44483
+ "allowedNextStatusIds"
44484
+ ], []);
44485
+ }
44435
44486
  F(() => {
44436
44487
  e && queueMicrotask(() => {
44437
44488
  i.resetFields(), i.setFieldsValue({
@@ -44450,26 +44501,49 @@ function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44450
44501
  e,
44451
44502
  t,
44452
44503
  i
44504
+ ]), F(() => {
44505
+ !e || !u || (Number(i.getFieldValue("schemaVersion")) || 1) < 2 && i.setFieldValue("schemaVersion", 2);
44506
+ }, [
44507
+ e,
44508
+ u,
44509
+ i
44453
44510
  ]);
44454
- async function c() {
44455
- let e = await i.validateFields(), n = rM(), a = (e.masterFeeds ?? []).map((e, t) => ({
44456
- uniqueId: Number(e.uniqueId) || t + 1,
44457
- name: String(e.name ?? "").trim(),
44458
- type: String(e.type ?? "").trim(),
44459
- status: e.status !== !1,
44460
- isdeleted: e.isdeleted === !0
44461
- })).filter((e) => e.name), c = {
44511
+ async function m() {
44512
+ let e = await i.validateFields(), n = rM(), a = [
44513
+ "clientsubmissionstatus",
44514
+ "clientsubmission",
44515
+ "clientsubmissions"
44516
+ ].includes(String(e.masterName ?? "").trim().toLowerCase()), c = (e.masterFeeds ?? []).map((e, t) => {
44517
+ let n = Number(e.uniqueId) || t + 1, r = a && e.isTerminalStatus === !0, i = a && !r ? [...new Set((e.allowedNextStatusIds ?? []).map(Number).filter((e) => Number.isInteger(e) && e > 0 && e !== n))] : [];
44518
+ return {
44519
+ uniqueId: n,
44520
+ name: String(e.name ?? "").trim(),
44521
+ type: String(e.type ?? "").trim(),
44522
+ status: e.status !== !1,
44523
+ ...a ? {
44524
+ isInitialStatus: e.isInitialStatus === !0,
44525
+ isTerminalStatus: r,
44526
+ allowedNextStatusIds: i
44527
+ } : {},
44528
+ isdeleted: e.isdeleted === !0
44529
+ };
44530
+ }).filter((e) => e.name);
44531
+ if (a && c.filter((e) => e.status && !e.isdeleted && e.isInitialStatus).length !== 1) {
44532
+ q.error("Client Submission Status must have exactly one active Initial Status.");
44533
+ return;
44534
+ }
44535
+ let l = {
44462
44536
  ...n,
44463
44537
  tid: n.tenantId,
44464
44538
  bid: n.businessId,
44465
44539
  buid: n.businessUnitId,
44466
- schemaVersion: Number(e.schemaVersion) || 1,
44540
+ schemaVersion: a ? Math.max(2, Number(e.schemaVersion) || 2) : Number(e.schemaVersion) || 1,
44467
44541
  masterName: e.masterName.trim(),
44468
- masterFeeds: a
44542
+ masterFeeds: c
44469
44543
  };
44470
44544
  o(!0);
44471
44545
  try {
44472
- s ? await Vr(nM, tM(t), c) : await It(nM, c), q.success(s ? "Master value updated" : "Master value created"), r();
44546
+ s ? await Vr(nM, tM(t), l) : await It(nM, l), q.success(s ? "Master value updated" : "Master value created"), r();
44473
44547
  } catch (e) {
44474
44548
  q.error(e?.message || "Could not save master value");
44475
44549
  } finally {
@@ -44479,11 +44553,11 @@ function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44479
44553
  return /* @__PURE__ */ Y(Vi, {
44480
44554
  open: e,
44481
44555
  onCancel: n,
44482
- onOk: c,
44556
+ onOk: m,
44483
44557
  confirmLoading: a,
44484
44558
  destroyOnHidden: !0,
44485
44559
  title: s ? "Edit Master Feed" : "New Master Feed",
44486
- width: 760,
44560
+ width: 1040,
44487
44561
  children: /* @__PURE__ */ X(B, {
44488
44562
  form: i,
44489
44563
  layout: "vertical",
@@ -44596,6 +44670,70 @@ function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44596
44670
  }]
44597
44671
  })
44598
44672
  }),
44673
+ u && /* @__PURE__ */ X(J, { children: [
44674
+ /* @__PURE__ */ Y(B.Item, {
44675
+ name: [t, "isInitialStatus"],
44676
+ label: "Initial",
44677
+ initialValue: !1,
44678
+ tooltip: "The initial status is the only option shown before a candidate has a client submission status. Only one active initial status is allowed.",
44679
+ children: /* @__PURE__ */ Y(H, {
44680
+ style: { width: 100 },
44681
+ onChange: (e) => f(t, e === !0),
44682
+ options: [{
44683
+ label: "Yes",
44684
+ value: !0
44685
+ }, {
44686
+ label: "No",
44687
+ value: !1
44688
+ }]
44689
+ })
44690
+ }),
44691
+ /* @__PURE__ */ Y(B.Item, {
44692
+ name: [t, "isTerminalStatus"],
44693
+ label: "Terminal",
44694
+ initialValue: !1,
44695
+ tooltip: "Terminal statuses end the configured flow and cannot have Allowed Next Statuses.",
44696
+ children: /* @__PURE__ */ Y(H, {
44697
+ style: { width: 105 },
44698
+ onChange: (e) => p(t, e === !0),
44699
+ options: [{
44700
+ label: "Yes",
44701
+ value: !0
44702
+ }, {
44703
+ label: "No",
44704
+ value: !1
44705
+ }]
44706
+ })
44707
+ }),
44708
+ /* @__PURE__ */ Y(B.Item, {
44709
+ noStyle: !0,
44710
+ shouldUpdate: (e, n) => e?.masterFeeds?.[t]?.isTerminalStatus !== n?.masterFeeds?.[t]?.isTerminalStatus || e?.masterFeeds?.[t]?.uniqueId !== n?.masterFeeds?.[t]?.uniqueId || e?.masterFeeds !== n?.masterFeeds,
44711
+ children: ({ getFieldValue: e }) => {
44712
+ let n = e([
44713
+ "masterFeeds",
44714
+ t,
44715
+ "isTerminalStatus"
44716
+ ]) === !0, r = Number(e([
44717
+ "masterFeeds",
44718
+ t,
44719
+ "uniqueId"
44720
+ ]));
44721
+ return /* @__PURE__ */ Y(B.Item, {
44722
+ name: [t, "allowedNextStatusIds"],
44723
+ label: "Allowed Next Statuses",
44724
+ tooltip: n ? "Terminal statuses cannot move to another status." : "Only these statuses will appear after the current status is saved.",
44725
+ children: /* @__PURE__ */ Y(H, {
44726
+ mode: "multiple",
44727
+ allowClear: !0,
44728
+ disabled: n,
44729
+ placeholder: n ? "Terminal status" : "Select next statuses",
44730
+ style: { minWidth: 280 },
44731
+ options: d.filter((e) => e.value !== r)
44732
+ })
44733
+ });
44734
+ }
44735
+ })
44736
+ ] }),
44599
44737
  /* @__PURE__ */ Y(K, {
44600
44738
  title: "Remove row",
44601
44739
  children: /* @__PURE__ */ Y(R, {
@@ -44613,7 +44751,12 @@ function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44613
44751
  name: "",
44614
44752
  type: "neutral",
44615
44753
  status: !0,
44616
- isdeleted: !1
44754
+ isdeleted: !1,
44755
+ ...u ? {
44756
+ isInitialStatus: !1,
44757
+ isTerminalStatus: !1,
44758
+ allowedNextStatusIds: []
44759
+ } : {}
44617
44760
  }),
44618
44761
  children: "Add feed value"
44619
44762
  })]
@@ -48100,23 +48243,118 @@ function qP(e) {
48100
48243
  return t === "clientsubmissions" || t === "clientsubmissionstatus";
48101
48244
  }
48102
48245
  function JP(e) {
48103
- return qP(e) ? {
48104
- ...e,
48105
- labelKey: e.labelKey || "clientSubmissionStatusText",
48106
- valueKey: e.valueKey || "clientSubmissionStatusText"
48107
- } : e;
48246
+ if (e == null) return null;
48247
+ if (typeof e == "string") {
48248
+ let t = e.trim();
48249
+ return t ? {
48250
+ label: t,
48251
+ value: t,
48252
+ _raw: { name: t }
48253
+ } : null;
48254
+ }
48255
+ let t = String(e?.name ?? e?.clientSubmissionStatusText ?? e?.label ?? e?.text ?? "").trim();
48256
+ if (!t) return null;
48257
+ let n = Number(e?.id ?? e?.uniqueId ?? e?.clientSubmissionStatusId ?? e?.value ?? 0) || 0;
48258
+ return {
48259
+ label: t,
48260
+ value: t,
48261
+ _raw: {
48262
+ ...e,
48263
+ ...n > 0 ? {
48264
+ id: n,
48265
+ uniqueId: n
48266
+ } : {},
48267
+ name: t,
48268
+ type: String(e?.type ?? e?.clientSubmissionStatusType ?? "").trim(),
48269
+ isInitialStatus: e?.isInitialStatus === !0,
48270
+ isTerminalStatus: e?.isTerminalStatus === !0,
48271
+ allowedNextStatusIds: Array.isArray(e?.allowedNextStatusIds) ? e.allowedNextStatusIds.map(Number).filter((e) => Number.isInteger(e) && e > 0) : []
48272
+ }
48273
+ };
48108
48274
  }
48109
48275
  function YP(e, t) {
48110
- let n = fP(e, JP(t));
48111
- return qP(t) ? {
48112
- ...n,
48113
- value: String(n.label ?? "")
48114
- } : n;
48276
+ return qP(t) ? JP(e) : fP(e, t);
48277
+ }
48278
+ function XP(e) {
48279
+ let t = e?.clientSubmissionStatus, n = Number((t && typeof t == "object" ? t?.clientSubmissionStatusId ?? t?.id ?? t?.uniqueId : void 0) ?? e?.clientSubmissionStatusId ?? e?.clientStatusId ?? e?.["clientSubmissionStatus.clientSubmissionStatusId"] ?? 0) || 0, r = t && typeof t == "object" ? t?.clientSubmissionStatusText ?? t?.name ?? t?.text ?? t?.label : t;
48280
+ return {
48281
+ id: n,
48282
+ text: String(r ?? e?.clientSubmissionStatusText ?? e?.clientStatus ?? e?.clientStatusText ?? e?.["clientSubmissionStatus.clientSubmissionStatusText"] ?? "").trim()
48283
+ };
48284
+ }
48285
+ function ZP(e) {
48286
+ let t = Number(e?.id ?? 0) || 0, n = String(e?.text ?? "").trim();
48287
+ return n && n.toLowerCase() === "not submitted" ? !0 : t <= 0 && !n;
48288
+ }
48289
+ function QP(e) {
48290
+ return Number(e?._raw?.id ?? e?._raw?.uniqueId ?? 0) || 0;
48291
+ }
48292
+ function $P(e) {
48293
+ let t = e?._raw?.allowedNextStatusIds;
48294
+ return Array.isArray(t) ? t.map(Number).filter((e) => Number.isInteger(e) && e > 0) : [];
48115
48295
  }
48116
- function XP({ open: e, config: t, api: n, fields: r, popupContext: i, formValues: a }) {
48117
- let [o, s] = L({}), [c, l] = L(null);
48296
+ function eF(e) {
48297
+ let t = e?.data ?? e;
48298
+ return t ? Array.isArray(t) ? t[0] ?? null : t?.record && typeof t.record == "object" ? t.record : t?.data && typeof t.data == "object" && !Array.isArray(t.data) ? t.data : typeof t == "object" ? t : null : null;
48299
+ }
48300
+ function tF(e) {
48301
+ return (Array.isArray(e?.selectedRecords) ? e.selectedRecords.filter(Boolean) : []).some((e) => !ZP(XP(e))) ? !0 : !ZP(XP(e ?? {}));
48302
+ }
48303
+ async function nF(e, t) {
48304
+ if (tF(e)) return e;
48305
+ let n = e?.selectedIds?.[0] ?? e?.selectedRecords?.[0]?._id ?? e?.selectedRecords?.[0]?.id;
48306
+ if (!n) return e;
48307
+ let r = String(e?.moduleName ?? "submissions").trim() || "submissions", i = new URLSearchParams({
48308
+ module: r,
48309
+ id: String(n)
48310
+ });
48311
+ t && i.set("app_id", t);
48312
+ try {
48313
+ let n = eF(await v(E, `/module-data-detail?${i.toString()}`, { headers: t ? { "X-App-Id": t } : void 0 }));
48314
+ if (!n) return e;
48315
+ let r = Array.isArray(e?.selectedRecords) ? e.selectedRecords : [];
48316
+ return {
48317
+ ...e,
48318
+ selectedRecords: r.length ? r.map((e, t) => t === 0 ? {
48319
+ ...e,
48320
+ ...n
48321
+ } : e) : [n]
48322
+ };
48323
+ } catch (t) {
48324
+ return console.warn("[DynamicPopup] Could not load selected submission detail for client status transition:", t), e;
48325
+ }
48326
+ }
48327
+ function rF(e, t) {
48328
+ if (!Array.isArray(e) || !e.length) return [];
48329
+ if (!e.some((e) => e?._raw?.isInitialStatus === !0 || e?._raw?.isTerminalStatus === !0 || Array.isArray(e?._raw?.allowedNextStatusIds))) return e;
48330
+ let n = Array.isArray(t?.selectedRecords) ? t.selectedRecords.filter(Boolean) : [], r = {
48331
+ clientSubmissionStatus: t?.clientSubmissionStatus,
48332
+ clientSubmissionStatusId: t?.clientSubmissionStatusId,
48333
+ clientSubmissionStatusText: t?.clientSubmissionStatusText,
48334
+ clientStatus: t?.clientStatus,
48335
+ clientStatusId: t?.clientStatusId,
48336
+ clientStatusText: t?.clientStatusText,
48337
+ "clientSubmissionStatus.clientSubmissionStatusId": t?.["clientSubmissionStatus.clientSubmissionStatusId"],
48338
+ "clientSubmissionStatus.clientSubmissionStatusText": t?.["clientSubmissionStatus.clientSubmissionStatusText"]
48339
+ }, i = n.length ? n : [r];
48340
+ return e.filter((t) => i.every((n) => {
48341
+ let i = XP(n);
48342
+ if (ZP(i)) {
48343
+ let e = XP(r);
48344
+ ZP(e) || (i = e);
48345
+ }
48346
+ if (ZP(i)) return t?._raw?.isInitialStatus === !0;
48347
+ let a = e.find((e) => {
48348
+ let t = QP(e), n = String(e?.label ?? "").trim();
48349
+ return i.id > 0 && t === i.id || i.text && n.toLowerCase() === i.text.toLowerCase();
48350
+ });
48351
+ return !a || a?._raw?.isTerminalStatus === !0 ? !1 : $P(a).includes(QP(t));
48352
+ }));
48353
+ }
48354
+ function iF({ open: e, config: t, api: n, fields: r, popupContext: i, formValues: a }) {
48355
+ let [o, s] = L({}), [c, u] = L(null);
48118
48356
  return F(() => {
48119
- e || (s({}), l(null));
48357
+ e || (s({}), u(null));
48120
48358
  }, [e]), F(() => {
48121
48359
  if (!e || !t || !n.getOptions) return;
48122
48360
  let a = new AbortController();
@@ -48140,28 +48378,31 @@ function XP({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
48140
48378
  if (!e || !t) return;
48141
48379
  let n = r.filter(GP);
48142
48380
  if (!n.length) return;
48143
- let i = new AbortController();
48381
+ let a = new AbortController();
48144
48382
  return n.forEach((e) => {
48145
48383
  let t = new URLSearchParams({
48146
48384
  masterName: e.masterName,
48147
48385
  offset: "0",
48148
48386
  limit: String(e.limit ?? 50)
48149
- });
48150
- v(E, `/masters/dropdown?${t.toString()}`).then((t) => {
48151
- if (i.signal.aborted) return;
48152
- let n = KP(t).map((t) => YP(t, e));
48387
+ }), n = String(l ?? "").trim();
48388
+ n && t.set("app_id", n), v(E, `/masters/dropdown?${t.toString()}`, { headers: n ? { "X-App-Id": n } : void 0 }).then(async (t) => {
48389
+ if (a.signal.aborted) return;
48390
+ let r = KP(t).map((t) => YP(t, e)).filter(Boolean), o = i;
48391
+ if (qP(e) && (o = await nF(i, n)), a.signal.aborted) return;
48392
+ let c = qP(e) ? rF(r, o) : r;
48153
48393
  s((t) => ({
48154
48394
  ...t,
48155
- [e.name]: n
48395
+ [e.name]: c
48156
48396
  }));
48157
48397
  }).catch((t) => {
48158
- i.signal.aborted || console.error(`[DynamicPopup] Failed to load master options for field "${e.name}":`, t);
48398
+ a.signal.aborted || console.error(`[DynamicPopup] Failed to load master options for field "${e.name}":`, t);
48159
48399
  });
48160
- }), () => i.abort();
48400
+ }), () => a.abort();
48161
48401
  }, [
48162
48402
  e,
48163
48403
  t,
48164
- r
48404
+ r,
48405
+ i
48165
48406
  ]), F(() => {
48166
48407
  if (!e || !t || !n.getOptions) return;
48167
48408
  let o = r.filter((e) => e.fetchOptionsKey && e.fetchOptionsParamKey);
@@ -48189,9 +48430,9 @@ function XP({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
48189
48430
  if (!e || !t || !n.loadExtraData) return;
48190
48431
  let r = new AbortController();
48191
48432
  return Promise.resolve(n.loadExtraData(i)).then((e) => {
48192
- r.signal.aborted || l(e);
48433
+ r.signal.aborted || u(e);
48193
48434
  }).catch((e) => {
48194
- r.signal.aborted || (console.error("[DynamicPopup] Failed to load extra data:", e), l(null));
48435
+ r.signal.aborted || (console.error("[DynamicPopup] Failed to load extra data:", e), u(null));
48195
48436
  }), () => r.abort();
48196
48437
  }, [
48197
48438
  e,
@@ -48206,8 +48447,8 @@ function XP({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
48206
48447
  }
48207
48448
  //#endregion
48208
48449
  //#region src/components/popups/dynamic/hooks/usePopupSearch.js
48209
- var ZP = 500, QP = 3;
48210
- function $P({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOptions: i }) {
48450
+ var aF = 500, oF = 3;
48451
+ function sF({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOptions: i }) {
48211
48452
  let [a, o] = L({}), s = Si({}), c = Si({}), l = Si({}), u = yi((t, n) => {
48212
48453
  let a = e.searchOptions ?? e.searchFetcher;
48213
48454
  if (typeof a != "function") return;
@@ -48243,13 +48484,13 @@ function $P({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOption
48243
48484
  }, [t, f]);
48244
48485
  function m(t) {
48245
48486
  if (!t.searchFetchKey && !t.searchFetcher || typeof (e.searchOptions ?? e.searchFetcher) != "function") return;
48246
- let n = t.searchMinLength ?? QP;
48487
+ let n = t.searchMinLength ?? oF;
48247
48488
  return (e) => {
48248
48489
  clearTimeout(s.current[t.name]);
48249
48490
  let r = e.length < n ? "" : e;
48250
48491
  s.current[t.name] = setTimeout(() => {
48251
48492
  u(t, r);
48252
- }, ZP);
48493
+ }, aF);
48253
48494
  };
48254
48495
  }
48255
48496
  function h(t) {
@@ -48280,7 +48521,7 @@ function $P({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOption
48280
48521
  }
48281
48522
  //#endregion
48282
48523
  //#region src/components/popups/dynamic/hooks/usePopupSubmit.js
48283
- function eF({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynamicOptions: a, extraData: o, removedIds: s, removalOnlySubmit: c = !1, fields: l, onClose: u, onSubmit: d }) {
48524
+ function cF({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynamicOptions: a, extraData: o, removedIds: s, removalOnlySubmit: c = !1, fields: l, onClose: u, onSubmit: d }) {
48284
48525
  let [f, p] = L(!1), [m, h] = L(null);
48285
48526
  async function g(e) {
48286
48527
  let t = {
@@ -48355,7 +48596,7 @@ function eF({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
48355
48596
  }
48356
48597
  //#endregion
48357
48598
  //#region src/components/popups/dynamic/DynamicPopup.jsx
48358
- function tF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i, api: a = {} }) {
48599
+ function lF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i, api: a = {} }) {
48359
48600
  let [o] = B.useForm(), [s, c] = L({}), [l, u] = L([]), d = B.useWatch([], o, { preserve: !0 }) ?? {}, f = I(() => mP(n), [n]), { selectedIds: p = [], selectedRecords: m = [], moduleName: h = "" } = f, g = I(() => p.map((e, t) => {
48360
48601
  let n = m[t];
48361
48602
  return n?.id ?? n?._id ?? e;
@@ -48365,14 +48606,14 @@ function tF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48365
48606
  let n = f[t.initialValueKey];
48366
48607
  !t.initialValueKey || n === void 0 || (e[t.name] = t.type === "date-picker" ? rs(n) : n);
48367
48608
  }), e;
48368
- }, [_, f]), { dynamicOptions: y, setDynamicOptions: b, extraData: x } = XP({
48609
+ }, [_, f]), { dynamicOptions: y, setDynamicOptions: b, extraData: x } = iF({
48369
48610
  open: e,
48370
48611
  config: t,
48371
48612
  api: a,
48372
48613
  fields: _,
48373
48614
  popupContext: f,
48374
48615
  formValues: s
48375
- }), { mentionOptions: S, getSearchHandler: C, getMentionSearchHandler: w } = $P({
48616
+ }), { mentionOptions: S, getSearchHandler: C, getMentionSearchHandler: w } = sF({
48376
48617
  api: a,
48377
48618
  open: e,
48378
48619
  fields: _,
@@ -48388,7 +48629,7 @@ function tF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48388
48629
  }), O = (f.removedIds ?? []).length, k = l.length > O, ee = E.some((e) => {
48389
48630
  let t = d[e.name];
48390
48631
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0);
48391
- }), { handleOk: A, confirming: j, deleteError: te, resetSubmitState: ne } = eF({
48632
+ }), { handleOk: A, confirming: j, deleteError: te, resetSubmitState: ne } = cF({
48392
48633
  form: o,
48393
48634
  config: t,
48394
48635
  api: a,
@@ -48483,7 +48724,7 @@ function tF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48483
48724
  }
48484
48725
  //#endregion
48485
48726
  //#region src/components/popups/definitions/delete/config.js
48486
- var nF = {
48727
+ var uF = {
48487
48728
  mode: "delete",
48488
48729
  getTitleText: (e, t) => `Delete ${e > 0 ? `${e} ` : ""}${t}`,
48489
48730
  titleIcon: "delete",
@@ -48493,19 +48734,19 @@ var nF = {
48493
48734
  getBodyText: (e, t, n, r) => r ? `Are you sure you want to delete the ${r} ${t}?` : e > 1 ? `Are you sure you want to delete ${e} selected ${n}?` : `Are you sure you want to delete this ${t}?`,
48494
48735
  footerNote: "This action cannot be undone.",
48495
48736
  fields: []
48496
- }, rF = { deleteItems: async (e, t) => {
48737
+ }, dF = { deleteItems: async (e, t) => {
48497
48738
  await Js(t.moduleName, e);
48498
- } }, iF = /* @__PURE__ */ new Map();
48499
- async function aF(e) {
48500
- return e ? (iF.has(e) || iF.set(e, mi({ module: e }).catch((t) => (iF.delete(e), console.warn(`[in-progress gate] could not read ${e} form groups:`, t), []))), iF.get(e)) : [];
48739
+ } }, fF = /* @__PURE__ */ new Map();
48740
+ async function pF(e) {
48741
+ return e ? (fF.has(e) || fF.set(e, mi({ module: e }).catch((t) => (fF.delete(e), console.warn(`[in-progress gate] could not read ${e} form groups:`, t), []))), fF.get(e)) : [];
48501
48742
  }
48502
- function oF(e = [], t) {
48743
+ function mF(e = [], t) {
48503
48744
  return e.some((e) => {
48504
48745
  let n = oe(e, t);
48505
48746
  return n && n.severity !== "allow";
48506
48747
  });
48507
48748
  }
48508
- async function sF({ targetModule: e, sourceModule: t, recordId: n, region: r } = {}) {
48749
+ async function hF({ targetModule: e, sourceModule: t, recordId: n, region: r } = {}) {
48509
48750
  let i = {
48510
48751
  severity: "allow",
48511
48752
  message: "",
@@ -48514,8 +48755,8 @@ async function sF({ targetModule: e, sourceModule: t, recordId: n, region: r } =
48514
48755
  if (!e || !t || !n) return i;
48515
48756
  let a = r ?? ci().region;
48516
48757
  try {
48517
- let r = await aF(e);
48518
- if (!oF(r, a)) return i;
48758
+ let r = await pF(e);
48759
+ if (!mF(r, a)) return i;
48519
48760
  let o = await mi({
48520
48761
  module: t,
48521
48762
  id: n
@@ -48531,13 +48772,13 @@ async function sF({ targetModule: e, sourceModule: t, recordId: n, region: r } =
48531
48772
  }
48532
48773
  //#endregion
48533
48774
  //#region src/components/popups/definitions/quick-submit/api.js
48534
- var cF = "Already submitted", lF = "submissions", uF = "candidates", dF = 864e5, fF = 90, pF = "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.", mF = [
48775
+ var gF = "Already submitted", _F = "submissions", vF = "candidates", yF = 864e5, bF = 90, xF = "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.", SF = [
48535
48776
  "createdAt",
48536
48777
  "createdDate",
48537
48778
  "dateCreated",
48538
48779
  "created_on",
48539
48780
  "createdOn"
48540
- ], hF = [
48781
+ ], CF = [
48541
48782
  "updatedAt",
48542
48783
  "updatedDate",
48543
48784
  "lastUpdatedAt",
@@ -48545,7 +48786,7 @@ var cF = "Already submitted", lF = "submissions", uF = "candidates", dF = 864e5,
48545
48786
  "modifiedAt",
48546
48787
  "modifiedDate"
48547
48788
  ];
48548
- function gF(e, t) {
48789
+ function wF(e, t) {
48549
48790
  for (let n of t) {
48550
48791
  let t = e?.[n];
48551
48792
  if (!t) continue;
@@ -48554,27 +48795,27 @@ function gF(e, t) {
48554
48795
  }
48555
48796
  return null;
48556
48797
  }
48557
- function _F(e) {
48558
- return gF(e, mF);
48798
+ function TF(e) {
48799
+ return wF(e, SF);
48559
48800
  }
48560
- function vF(e) {
48561
- return gF(e, hF);
48801
+ function EF(e) {
48802
+ return wF(e, CF);
48562
48803
  }
48563
- function yF(e) {
48804
+ function DF(e) {
48564
48805
  if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
48565
48806
  let t = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime();
48566
- return Math.max(0, Math.floor((t(/* @__PURE__ */ new Date()) - t(e)) / dF));
48807
+ return Math.max(0, Math.floor((t(/* @__PURE__ */ new Date()) - t(e)) / yF));
48567
48808
  }
48568
- function bF(e) {
48809
+ function OF(e) {
48569
48810
  return e === null ? "" : e <= 14 ? "green" : e <= 89 ? "yellow" : "red";
48570
48811
  }
48571
- function xF(e, t = fF) {
48812
+ function kF(e, t = bF) {
48572
48813
  if (!e) return !1;
48573
- let n = Date.now() - t * dF, r = _F(e), i = vF(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
48814
+ let n = Date.now() - t * yF, r = TF(e), i = EF(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
48574
48815
  return !a && !o;
48575
48816
  }
48576
- function SF(e) {
48577
- let t = _F(e);
48817
+ function AF(e) {
48818
+ let t = TF(e);
48578
48819
  if (!t) return {
48579
48820
  createdAgo: "",
48580
48821
  createdAgoTone: ""
@@ -48582,38 +48823,38 @@ function SF(e) {
48582
48823
  let n = lP(t);
48583
48824
  return n ? {
48584
48825
  createdAgo: n,
48585
- createdAgoTone: bF(yF(t))
48826
+ createdAgoTone: OF(DF(t))
48586
48827
  } : {
48587
48828
  createdAgo: "",
48588
48829
  createdAgoTone: ""
48589
48830
  };
48590
48831
  }
48591
- function CF(e) {
48832
+ function jF(e) {
48592
48833
  return {
48593
48834
  ...e,
48594
- ...SF(e),
48595
- isStaleCandidate: xF(e)
48835
+ ...AF(e),
48836
+ isStaleCandidate: kF(e)
48596
48837
  };
48597
48838
  }
48598
- function wF(e) {
48839
+ function MF(e) {
48599
48840
  return String(e?.applicantId ?? e?._id ?? e?.id ?? "");
48600
48841
  }
48601
- var TF = null;
48602
- async function EF() {
48603
- return TF ||= Ze(uF).then((e) => e?.strategies?.duplicateCheck?.editRoute ?? "").catch(() => ""), TF;
48842
+ var NF = null;
48843
+ async function PF() {
48844
+ return NF ||= Ze(vF).then((e) => e?.strategies?.duplicateCheck?.editRoute ?? "").catch(() => ""), NF;
48604
48845
  }
48605
- async function DF(e) {
48606
- let t = wF(e);
48846
+ async function FF(e) {
48847
+ let t = MF(e);
48607
48848
  if (!t) return "";
48608
- let n = await EF();
48849
+ let n = await PF();
48609
48850
  return n ? n.replace(/:(_?id)\b/g, encodeURIComponent(t)) : "";
48610
48851
  }
48611
- async function OF({ option: e, popupContext: t, confirm: n }) {
48612
- let r = e?._raw ?? e ?? {}, i = wF(r);
48852
+ async function IF({ option: e, popupContext: t, confirm: n }) {
48853
+ let r = e?._raw ?? e ?? {}, i = MF(r);
48613
48854
  if (i) {
48614
- let e = await sF({
48615
- targetModule: lF,
48616
- sourceModule: uF,
48855
+ let e = await hF({
48856
+ targetModule: _F,
48857
+ sourceModule: vF,
48617
48858
  recordId: i
48618
48859
  });
48619
48860
  if (e.severity === "block") return new Promise((t) => {
@@ -48627,34 +48868,34 @@ async function OF({ option: e, popupContext: t, confirm: n }) {
48627
48868
  });
48628
48869
  });
48629
48870
  }
48630
- if (!xF(r)) return !0;
48871
+ if (!kF(r)) return !0;
48631
48872
  let a = t?.navigate;
48632
48873
  return !a || !i ? !1 : new Promise((e) => {
48633
48874
  n({
48634
48875
  title: "Candidate update required",
48635
- content: pF,
48876
+ content: xF,
48636
48877
  okText: "OK",
48637
48878
  cancelText: "Cancel",
48638
48879
  onOk: async () => {
48639
- let t = await DF(r);
48880
+ let t = await FF(r);
48640
48881
  t && a(t), e(!1);
48641
48882
  },
48642
48883
  onCancel: () => e(!1)
48643
48884
  });
48644
48885
  });
48645
48886
  }
48646
- function kF(e, t, n) {
48887
+ function LF(e, t, n) {
48647
48888
  return {
48648
48889
  ...e,
48649
- label: `${e.label} - ${cF}`,
48890
+ label: `${e.label} - ${gF}`,
48650
48891
  disabled: !0,
48651
- title: `${cF}${t ? ` (submission ${t})` : ""}`,
48892
+ title: `${gF}${t ? ` (submission ${t})` : ""}`,
48652
48893
  alreadySubmitted: !0,
48653
48894
  existingSubmissionId: t || "",
48654
48895
  ...n ? { submittedAt: n } : {}
48655
48896
  };
48656
48897
  }
48657
- var AF = {
48898
+ var RF = {
48658
48899
  searchOptions: async (e, t, n) => {
48659
48900
  if (e.searchFetchKey === "quickSubmitJobList") {
48660
48901
  let e = n.selectedRecords?.[0] ?? {}, r = e.id ?? e._id ?? n.selectedIds?.[0], i, a = !0;
@@ -48677,7 +48918,7 @@ var AF = {
48677
48918
  _raw: e
48678
48919
  }));
48679
48920
  if (a) return o.map((e) => {
48680
- if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return kF(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
48921
+ if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return LF(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
48681
48922
  if (e._raw?.disable) {
48682
48923
  let t = String(e._raw?.message ?? "").trim();
48683
48924
  return {
@@ -48695,7 +48936,7 @@ var AF = {
48695
48936
  }).catch(() => /* @__PURE__ */ new Map());
48696
48937
  return o.map((e) => {
48697
48938
  let t = s.get(String(e.value));
48698
- return t ? kF(e, t.submissionId, t.submittedAt) : e;
48939
+ return t ? LF(e, t.submissionId, t.submittedAt) : e;
48699
48940
  });
48700
48941
  }
48701
48942
  if (e.searchFetchKey === "quickSubmitCandidates") {
@@ -48714,17 +48955,17 @@ var AF = {
48714
48955
  });
48715
48956
  i = Array.isArray(e) ? e : [], a = await bc({
48716
48957
  jobId: r,
48717
- applicantIds: i.map(wF)
48958
+ applicantIds: i.map(MF)
48718
48959
  }).catch(() => /* @__PURE__ */ new Map());
48719
48960
  }
48720
- return i.map((e) => CF(e)).map((e) => {
48721
- let t = a.get(wF(e));
48961
+ return i.map((e) => jF(e)).map((e) => {
48962
+ let t = a.get(MF(e));
48722
48963
  if (!(t || e?.isSubmitted === !0 || e?.alreadySubmitted === !0)) return e;
48723
48964
  let n = t?.submissionId || e?.jobSubmissionId || "", r = t?.submittedAt || e?.submittedAt || "";
48724
48965
  return {
48725
48966
  ...e,
48726
48967
  disabled: !0,
48727
- optionNote: cF,
48968
+ optionNote: gF,
48728
48969
  isSubmitted: !0,
48729
48970
  alreadySubmitted: !0,
48730
48971
  existingSubmissionId: n,
@@ -48737,12 +48978,12 @@ var AF = {
48737
48978
  submit: async (e, t, n) => {
48738
48979
  let { navigate: r, selectedRecords: i = [], selectedIds: a = [], moduleName: o } = t, s = i[0] ?? {}, c, l;
48739
48980
  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 ?? "");
48740
- let u = n?.dynamicOptions?.candidate?.find((e) => wF(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;
48981
+ let u = n?.dynamicOptions?.candidate?.find((e) => MF(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;
48741
48982
  if (!c || !l) throw Error("Select both a job and a candidate to quick submit.");
48742
- if (xF(u?._raw)) throw Error(pF);
48743
- let p = await sF({
48744
- targetModule: lF,
48745
- sourceModule: uF,
48983
+ if (kF(u?._raw)) throw Error(xF);
48984
+ let p = await hF({
48985
+ targetModule: _F,
48986
+ sourceModule: vF,
48746
48987
  recordId: l
48747
48988
  });
48748
48989
  if (p.severity === "block") throw Error(p.message);
@@ -48767,7 +49008,7 @@ var AF = {
48767
49008
  }).catch(() => []));
48768
49009
  return r(`/submission-create/${c}?${g.toString()}`, { state: { relevantSkillsToken: v } }), { navigated: !0 };
48769
49010
  }
48770
- }, jF = {
49011
+ }, zF = {
48771
49012
  title: "Submit",
48772
49013
  okText: "Submit",
48773
49014
  width: 640,
@@ -48824,9 +49065,9 @@ var AF = {
48824
49065
  type: "relative"
48825
49066
  }]
48826
49067
  },
48827
- onSelectGuard: OF
49068
+ onSelectGuard: IF
48828
49069
  }]
48829
- }, MF = {
49070
+ }, BF = {
48830
49071
  title: "Add Notes & Share",
48831
49072
  okText: "Save & Share",
48832
49073
  width: 480,
@@ -48840,9 +49081,9 @@ var AF = {
48840
49081
  placeholder: "Add your notes on the job. Use '@' to mention someone.",
48841
49082
  mentionFetchKey: "mentionUsers"
48842
49083
  }]
48843
- }, NF = (e) => e?.data ?? e;
48844
- async function PF({ relatedId: e, notes: t, title: n, notesFor: r }) {
48845
- return NF(await _u(E, "/notes", {
49084
+ }, VF = (e) => e?.data ?? e;
49085
+ async function HF({ relatedId: e, notes: t, title: n, notesFor: r }) {
49086
+ return VF(await _u(E, "/notes", {
48846
49087
  method: "POST",
48847
49088
  body: JSON.stringify({
48848
49089
  relatedId: e,
@@ -48854,18 +49095,18 @@ async function PF({ relatedId: e, notes: t, title: n, notesFor: r }) {
48854
49095
  }
48855
49096
  //#endregion
48856
49097
  //#region src/components/popups/definitions/add-notes/api.js
48857
- var FF = {
49098
+ var UF = {
48858
49099
  getMentionOptions: async (e, t) => Xs(t),
48859
49100
  submit: async (e, t) => {
48860
49101
  let n = Array.isArray(t.selectedIds) ? t.selectedIds[0] : t.selectedIds;
48861
49102
  if (!n) throw Error("Please select a record before adding a note.");
48862
- await PF({
49103
+ await HF({
48863
49104
  relatedId: String(n),
48864
49105
  notes: e.notes,
48865
49106
  notesFor: t.moduleName
48866
49107
  });
48867
49108
  }
48868
- }, IF = {
49109
+ }, WF = {
48869
49110
  name: "jobId",
48870
49111
  label: "Job Title / ID",
48871
49112
  type: "search-select",
@@ -48874,7 +49115,7 @@ var FF = {
48874
49115
  searchFetchKey: "tagToJobJobList",
48875
49116
  valueKey: "_id",
48876
49117
  labelTemplate: "{jobReferenceId} - {jobTitle}"
48877
- }, LF = {
49118
+ }, GF = {
48878
49119
  name: "hiringStage",
48879
49120
  label: "Hiring stage",
48880
49121
  type: "select",
@@ -48888,22 +49129,22 @@ var FF = {
48888
49129
  value: "pipeline"
48889
49130
  }],
48890
49131
  initialValueKey: "hiringStage"
48891
- }, RF = {
49132
+ }, KF = {
48892
49133
  title: "Tag to Job",
48893
49134
  okText: "Tag",
48894
49135
  width: 480,
48895
49136
  disabledUntilFilled: !0,
48896
49137
  autoSubmitWhenNoFields: !0,
48897
- getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [LF] : [IF, LF]
48898
- }, zF = (e) => e?.data ?? e;
48899
- function BF(e) {
49138
+ getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [GF] : [WF, GF]
49139
+ }, qF = (e) => e?.data ?? e;
49140
+ function JF(e) {
48900
49141
  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;
48901
49142
  }
48902
- function VF(e) {
48903
- return e ? Array.isArray(e.data) ? e.data.map(BF) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(BF) : Array.isArray(e) ? e.map(BF) : [] : [];
49143
+ function YF(e) {
49144
+ return e ? Array.isArray(e.data) ? e.data.map(JF) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(JF) : Array.isArray(e) ? e.map(JF) : [] : [];
48904
49145
  }
48905
- async function HF(e = 1, t = 10) {
48906
- let n = await v(E, `/workflow/list/all?page=${e}&limit=${t}`), r = zF(n), i = Array.isArray(r) ? r : r?.data ?? [];
49146
+ async function XF(e = 1, t = 10) {
49147
+ let n = await v(E, `/workflow/list/all?page=${e}&limit=${t}`), r = qF(n), i = Array.isArray(r) ? r : r?.data ?? [];
48907
49148
  return {
48908
49149
  items: i,
48909
49150
  total: Number(n?.total ?? r?.total) || i.length,
@@ -48911,11 +49152,11 @@ async function HF(e = 1, t = 10) {
48911
49152
  limit: t
48912
49153
  };
48913
49154
  }
48914
- async function UF(e, t) {
48915
- let n = zF(await v(E, `/workflow/${e}/stage/${t}`));
49155
+ async function ZF(e, t) {
49156
+ let n = qF(await v(E, `/workflow/${e}/stage/${t}`));
48916
49157
  return Array.isArray(n) ? { data: n } : n;
48917
49158
  }
48918
- async function WF(e, t) {
49159
+ async function QF(e, t) {
48919
49160
  if (!e || !t) return null;
48920
49161
  try {
48921
49162
  let n = new URLSearchParams({
@@ -48929,7 +49170,7 @@ async function WF(e, t) {
48929
49170
  values: [String(t)],
48930
49171
  operator: "and"
48931
49172
  }])
48932
- }), r = zF(await v(E, `/module-data-list?${n}`));
49173
+ }), r = qF(await v(E, `/module-data-list?${n}`));
48933
49174
  if (Array.isArray(r)) return r[0] ?? null;
48934
49175
  if (r?.data && Array.isArray(r.data)) return r.data[0] ?? null;
48935
49176
  let i = r?.rows ?? r?.records ?? r?.items ?? r?.list;
@@ -48938,15 +49179,15 @@ async function WF(e, t) {
48938
49179
  return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
48939
49180
  }
48940
49181
  }
48941
- async function GF(e) {
48942
- return zF(await v(t, "/source/workflow-instance", {
49182
+ async function $F(e) {
49183
+ return qF(await v(t, "/source/workflow-instance", {
48943
49184
  method: "POST",
48944
49185
  body: JSON.stringify(e)
48945
49186
  }));
48946
49187
  }
48947
49188
  //#endregion
48948
49189
  //#region src/components/popups/definitions/tag-to-job/api.js
48949
- var KF = {
49190
+ var eI = {
48950
49191
  pipeline: "pipeline",
48951
49192
  goodfited: "goodfited",
48952
49193
  contacted: "contacted",
@@ -48955,40 +49196,40 @@ var KF = {
48955
49196
  interviewinprogress: "interviewInprogress",
48956
49197
  selected: "selected"
48957
49198
  };
48958
- function qF(e, ...t) {
49199
+ function tI(e, ...t) {
48959
49200
  for (let n of t) {
48960
49201
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
48961
49202
  if (t != null && t !== "") return t;
48962
49203
  }
48963
49204
  }
48964
- function JF(e) {
49205
+ function nI(e) {
48965
49206
  let t = String(e ?? "").trim();
48966
- return t ? KF[t.toLowerCase()] ?? t : "";
49207
+ return t ? eI[t.toLowerCase()] ?? t : "";
48967
49208
  }
48968
- function YF(e, t) {
48969
- let n = qF(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
49209
+ function rI(e, t) {
49210
+ let n = tI(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
48970
49211
  if (!n) return null;
48971
- let r = (qF(e, "candidateName", "candidate_name", "fullName", "name") ?? [qF(e, "firstName", "first_name"), qF(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
49212
+ let r = (tI(e, "candidateName", "candidate_name", "fullName", "name") ?? [tI(e, "firstName", "first_name"), tI(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
48972
49213
  candidateId: String(n),
48973
49214
  candidateName: r,
48974
- phone: qF(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
48975
- source: qF(e, "source", "sourceType", "candidateSource", "profileSource"),
48976
- submittedAt: qF(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
48977
- remarks: qF(e, "remarks", "comment", "comments", "notes"),
48978
- assignedRecruiter: qF(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
48979
- screeningStatus: qF(e, "screeningStatus", "screening.status", "screeningResult"),
48980
- screeningScore: qF(e, "screeningScore", "screening.score", "score"),
48981
- assignedDate: qF(e, "assignedDate", "assignedAt", "createdAt")
49215
+ phone: tI(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
49216
+ source: tI(e, "source", "sourceType", "candidateSource", "profileSource"),
49217
+ submittedAt: tI(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
49218
+ remarks: tI(e, "remarks", "comment", "comments", "notes"),
49219
+ assignedRecruiter: tI(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
49220
+ screeningStatus: tI(e, "screeningStatus", "screening.status", "screeningResult"),
49221
+ screeningScore: tI(e, "screeningScore", "screening.score", "score"),
49222
+ assignedDate: tI(e, "assignedDate", "assignedAt", "createdAt")
48982
49223
  };
48983
49224
  return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
48984
49225
  }
48985
- var XF = {
49226
+ var iI = {
48986
49227
  searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? Ys(t) : [],
48987
49228
  submit: async (e, t) => {
48988
- let n = e.jobId ?? t.jobId, r = JF(e.hiringStage ?? t.hiringStage), i = Array.isArray(t.selectedIds) ? t.selectedIds : [], a = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], o = Math.max(i.length, a.length, 1);
49229
+ let n = e.jobId ?? t.jobId, r = nI(e.hiringStage ?? t.hiringStage), i = Array.isArray(t.selectedIds) ? t.selectedIds : [], a = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], o = Math.max(i.length, a.length, 1);
48989
49230
  for (let e = 0; e < o; e += 1) {
48990
- let t = i[e] ? String(i[e]) : "", o = YF(a[e] ?? {}, t);
48991
- await GF({
49231
+ let t = i[e] ? String(i[e]) : "", o = rI(a[e] ?? {}, t);
49232
+ await $F({
48992
49233
  jobId: n,
48993
49234
  module: "jobs",
48994
49235
  currentStage: r,
@@ -49001,7 +49242,7 @@ var XF = {
49001
49242
  hiringStage: r
49002
49243
  });
49003
49244
  }
49004
- }, ZF = {
49245
+ }, aI = {
49005
49246
  title: "Change Status",
49006
49247
  okText: "Apply",
49007
49248
  width: 420,
@@ -49014,8 +49255,8 @@ var XF = {
49014
49255
  placeholder: "Select a status",
49015
49256
  dataSource: "master",
49016
49257
  masterName: "clientSubmissions",
49017
- labelKey: "clientSubmissionStatusText",
49018
- valueKey: "clientSubmissionStatusText",
49258
+ labelKey: "name",
49259
+ valueKey: "name",
49019
49260
  initialValueKey: "currentStatus",
49020
49261
  defaultOptions: [
49021
49262
  {
@@ -49039,17 +49280,18 @@ var XF = {
49039
49280
  };
49040
49281
  //#endregion
49041
49282
  //#region src/components/popups/definitions/change-status/api.js
49042
- function QF(e, t) {
49043
- return (t?.status ?? []).find((t) => String(t?.value ?? "") === String(e ?? "")) ?? null;
49044
- }
49045
- var $F = { submit: async (e, t, n) => {
49046
- let r = QF(e.status, n?.dynamicOptions)?._raw ?? {}, i = {
49047
- clientSubmissionStatusText: String(e.status ?? "").trim(),
49048
- clientSubmissionStatusId: Number(r.id ?? r.uniqueId ?? 0) || 0,
49049
- clientSubmissionStatusType: String(r.type ?? "").trim()
49283
+ function oI(e, t) {
49284
+ let n = String(e ?? "").trim().toLowerCase();
49285
+ 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;
49286
+ }
49287
+ var sI = { submit: async (e, t, n) => {
49288
+ let r = oI(e.status, n?.dynamicOptions), i = r?._raw ?? {}, a = {
49289
+ clientSubmissionStatusText: String(i.name ?? r?.label ?? e.status ?? "").trim(),
49290
+ clientSubmissionStatusId: Number(i.id ?? i.uniqueId ?? 0) || 0,
49291
+ clientSubmissionStatusType: String(i.type ?? "").trim()
49050
49292
  };
49051
- await qs(t.moduleName, t.selectedIds, i);
49052
- } }, eI = {
49293
+ await qs(t.moduleName, t.selectedIds, a);
49294
+ } }, cI = {
49053
49295
  getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
49054
49296
  titleIcon: "delete",
49055
49297
  okText: "Remove",
@@ -49058,12 +49300,12 @@ var $F = { submit: async (e, t, n) => {
49058
49300
  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?",
49059
49301
  footerNote: "The candidate will be moved back to the pipeline.",
49060
49302
  fields: []
49061
- }, tI = { onOk: async (e) => {
49303
+ }, lI = { onOk: async (e) => {
49062
49304
  await xc({
49063
49305
  jobId: e.jobId ?? e.selectedIds[0],
49064
49306
  candidateIds: e.selectedIds
49065
49307
  });
49066
- } }, nI = {
49308
+ } }, uI = {
49067
49309
  title: "Add to Groups",
49068
49310
  description: "Select a group to add the selected candidate(s) to",
49069
49311
  okText: "Add to Group",
@@ -49077,7 +49319,7 @@ var $F = { submit: async (e, t, n) => {
49077
49319
  placeholder: "Select a group",
49078
49320
  fetchOptionsKey: "candidateGroups"
49079
49321
  }]
49080
- }, rI = {
49322
+ }, dI = {
49081
49323
  getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? tc() : [],
49082
49324
  submit: async (e, t, { dynamicOptions: n }) => {
49083
49325
  let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
@@ -49087,7 +49329,7 @@ var $F = { submit: async (e, t, n) => {
49087
49329
  groupName: r?.label ?? ""
49088
49330
  });
49089
49331
  }
49090
- }, iI = [
49332
+ }, fI = [
49091
49333
  {
49092
49334
  title: "Name",
49093
49335
  key: "name",
@@ -49106,7 +49348,7 @@ var $F = { submit: async (e, t, n) => {
49106
49348
  render: (e) => e || "-"
49107
49349
  }
49108
49350
  ];
49109
- function aI({ selectedIds: e, onClose: t }) {
49351
+ function pI({ selectedIds: e, onClose: t }) {
49110
49352
  let n = e?.[0], [r, i] = L(!0), [a, o] = L(!1), [s, c] = L({
49111
49353
  assignedUsers: [],
49112
49354
  totalSubmissions: 0,
@@ -49170,7 +49412,7 @@ function aI({ selectedIds: e, onClose: t }) {
49170
49412
  children: "Team Members Allocated"
49171
49413
  }),
49172
49414
  /* @__PURE__ */ Y(ea, {
49173
- columns: iI,
49415
+ columns: fI,
49174
49416
  dataSource: m,
49175
49417
  pagination: !1,
49176
49418
  rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
@@ -49219,25 +49461,25 @@ function aI({ selectedIds: e, onClose: t }) {
49219
49461
  })]
49220
49462
  });
49221
49463
  }
49222
- aI.propTypes = {
49464
+ pI.propTypes = {
49223
49465
  selectedIds: Z.array,
49224
49466
  onClose: Z.func
49225
49467
  };
49226
49468
  //#endregion
49227
49469
  //#region src/components/popups/definitions/self-assign/config.js
49228
- var oI = {
49470
+ var mI = {
49229
49471
  title: "Self Assign",
49230
49472
  width: 480,
49231
49473
  className: "self-assign-modal",
49232
- component: aI
49233
- }, sI = { submit: async () => {} };
49474
+ component: pI
49475
+ }, hI = { submit: async () => {} };
49234
49476
  //#endregion
49235
49477
  //#region src/components/popups/definitions/others-assign/config.js
49236
- function cI(e = {}) {
49478
+ function gI(e = {}) {
49237
49479
  let t = Array.isArray(e.jobPayDetails) ? e.jobPayDetails[e.jobPayDetails.length - 1] : e.jobPayDetails ?? e.clientBudget ?? {}, n = Number(t.clientBudgetEnd), r = Number(t.clientBudgetStart);
49238
49480
  return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
49239
49481
  }
49240
- var lI = {
49482
+ var _I = {
49241
49483
  getTitleText: (e, t, n) => {
49242
49484
  let r = n?.jobTitle || n?.title || "";
49243
49485
  return r ? `Assign - ${r}` : "Assign";
@@ -49247,7 +49489,7 @@ var lI = {
49247
49489
  disabledUntilFilled: !0,
49248
49490
  showAlreadyAssigned: !0,
49249
49491
  allowRemovalOnlySubmit: !0,
49250
- getFields: (e) => (cI(e?.selectedRecords?.[0] ?? {}), [{
49492
+ getFields: (e) => (gI(e?.selectedRecords?.[0] ?? {}), [{
49251
49493
  name: "assignToUserId",
49252
49494
  label: "Assign to",
49253
49495
  type: "multi-select",
@@ -49255,7 +49497,7 @@ var lI = {
49255
49497
  placeholder: "Select recruiter(s)",
49256
49498
  fetchOptionsKey: "assignToUsers"
49257
49499
  }])
49258
- }, uI = {
49500
+ }, vI = {
49259
49501
  getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? oc() : [],
49260
49502
  loadExtraData: async (e) => sc(e.selectedIds[0]),
49261
49503
  submit: async (e, t, { removedIds: n, extraData: r }) => {
@@ -49266,7 +49508,7 @@ var lI = {
49266
49508
  existingRecruiters: r?.recruitersData
49267
49509
  });
49268
49510
  }
49269
- }, dI = {
49511
+ }, yI = {
49270
49512
  title: "Add Sticky Notes",
49271
49513
  getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
49272
49514
  okText: "Save",
@@ -49298,7 +49540,7 @@ var lI = {
49298
49540
  initialValueKey: "editingComments"
49299
49541
  }
49300
49542
  ]
49301
- }, fI = {
49543
+ }, bI = {
49302
49544
  getMentionOptions: async (e, t) => Xs(t),
49303
49545
  submit: async (e, t) => {
49304
49546
  let n = e.targetDate ? e.targetDate.toISOString() : "";
@@ -49314,7 +49556,7 @@ var lI = {
49314
49556
  notes: e.comments
49315
49557
  }), window.dispatchEvent(new Event("sticky-notes:refresh"));
49316
49558
  }
49317
- }, pI = {
49559
+ }, xI = {
49318
49560
  title: "Move to Onboarding",
49319
49561
  bodyText: "Are you sure you want to move this candidate to onboarding?",
49320
49562
  okText: "Yes",
@@ -49327,7 +49569,7 @@ var lI = {
49327
49569
  type: "priority-checkbox",
49328
49570
  checkboxLabel: "Send Onboarding Email"
49329
49571
  }]
49330
- }, mI = { submit: async (e, t) => {
49572
+ }, SI = { submit: async (e, t) => {
49331
49573
  await fc({
49332
49574
  submissionId: t.selectedRecords?.[0]?.submissionId,
49333
49575
  isMail: e.sendOnboardingEmail
@@ -49335,39 +49577,39 @@ var lI = {
49335
49577
  } };
49336
49578
  //#endregion
49337
49579
  //#region src/components/popups/definitions/approve-rate/config.js
49338
- function hI(e) {
49580
+ function CI(e) {
49339
49581
  return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
49340
49582
  }
49341
- var gI = {
49583
+ var wI = {
49342
49584
  USD: "$",
49343
49585
  INR: "₹",
49344
49586
  EUR: "€",
49345
49587
  GBP: "£"
49346
49588
  };
49347
- function _I(e, t, n) {
49348
- let r = hI(e?.[t])[n];
49589
+ function TI(e, t, n) {
49590
+ let r = CI(e?.[t])[n];
49349
49591
  if (r != null && r !== "") return r;
49350
49592
  let i = e?.[`${t}.${n}`];
49351
49593
  return i != null && i !== "" ? i : void 0;
49352
49594
  }
49353
- function vI(e) {
49354
- let t = e.selectedRecords?.[0] ?? {}, n = _I(t, "candidateRate", "candidateAcceptedRate") ?? _I(t, "candidateBudget", "candidateBudgetStart");
49595
+ function EI(e) {
49596
+ let t = e.selectedRecords?.[0] ?? {}, n = TI(t, "candidateRate", "candidateAcceptedRate") ?? TI(t, "candidateBudget", "candidateBudgetStart");
49355
49597
  if (n === void 0 || Number(n) === 0) return null;
49356
- let r = _I(t, "candidateRate", "candidateAcceptedCurrency") ?? _I(t, "candidateBudget", "candidateBudgetCurrency");
49598
+ let r = TI(t, "candidateRate", "candidateAcceptedCurrency") ?? TI(t, "candidateBudget", "candidateBudgetCurrency");
49357
49599
  return {
49358
49600
  amount: n,
49359
- symbol: _I(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? _I(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? gI[String(r ?? "").toUpperCase()] ?? (r || "$"),
49360
- unit: _I(t, "candidateRate", "candidateAcceptedPayUnit") ?? _I(t, "candidateBudget", "candidateBudgetUnit") ?? ""
49601
+ symbol: TI(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? TI(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? wI[String(r ?? "").toUpperCase()] ?? (r || "$"),
49602
+ unit: TI(t, "candidateRate", "candidateAcceptedPayUnit") ?? TI(t, "candidateBudget", "candidateBudgetUnit") ?? ""
49361
49603
  };
49362
49604
  }
49363
- var yI = {
49605
+ var DI = {
49364
49606
  title: "Approve Rate",
49365
49607
  okText: "Approve",
49366
49608
  width: 520,
49367
49609
  className: "medium-modal",
49368
49610
  successMessage: "Rate approved",
49369
49611
  getBodyText: (e, t, n, r, i) => {
49370
- let a = vI(i);
49612
+ let a = EI(i);
49371
49613
  return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
49372
49614
  },
49373
49615
  fields: [
@@ -49381,7 +49623,7 @@ var yI = {
49381
49623
  inlineRow: "proposedRate",
49382
49624
  validator: (e, t) => {
49383
49625
  if (e == null || e === "") return;
49384
- let n = vI(t);
49626
+ let n = EI(t);
49385
49627
  if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
49386
49628
  }
49387
49629
  },
@@ -49449,7 +49691,7 @@ var yI = {
49449
49691
  }]
49450
49692
  }
49451
49693
  ]
49452
- }, bI = { submit: async (e, t) => {
49694
+ }, OI = { submit: async (e, t) => {
49453
49695
  let n = t.selectedIds[0];
49454
49696
  if (await pc(n, {
49455
49697
  candidateProposedRate: e.candidateProposedRate,
@@ -49465,7 +49707,7 @@ var yI = {
49465
49707
  } };
49466
49708
  //#endregion
49467
49709
  //#region src/services/mailApproveApi.js
49468
- async function xI(e, t = {}) {
49710
+ async function kI(e, t = {}) {
49469
49711
  let n = C();
49470
49712
  if (!n) {
49471
49713
  let e = /* @__PURE__ */ Error("Authentication required");
@@ -49485,8 +49727,8 @@ async function xI(e, t = {}) {
49485
49727
  }
49486
49728
  return r.json();
49487
49729
  }
49488
- async function SI(e) {
49489
- let t = await xI(`/mail-form?${new URLSearchParams({
49730
+ async function AI(e) {
49731
+ let t = await kI(`/mail-form?${new URLSearchParams({
49490
49732
  submissionId: e,
49491
49733
  submissionType: "manager"
49492
49734
  }).toString()}`);
@@ -49494,29 +49736,29 @@ async function SI(e) {
49494
49736
  }
49495
49737
  //#endregion
49496
49738
  //#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
49497
- function CI(e) {
49739
+ function jI(e) {
49498
49740
  return Array.isArray(e) ? e[e.length - 1] : e;
49499
49741
  }
49500
- function wI(e = {}) {
49501
- let t = CI(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
49742
+ function MI(e = {}) {
49743
+ let t = jI(e?.proposedRate)?.candidateProposedRate ?? e?.candidateProposedRate ?? e?.proposedRateValue, n = Number(t);
49502
49744
  return Number.isFinite(n) ? n : 0;
49503
49745
  }
49504
- function TI(e, t = {}) {
49505
- let n = CI((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = CI(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
49746
+ function NI(e, t = {}) {
49747
+ let n = jI((e?.record?.job ?? e?.job ?? t?.job ?? {})?.jobPayDetails) ?? {}, r = e?.record?.submission ?? t ?? {}, i = jI(r?.clientBudget) ?? r?.clientBudget ?? {}, a = n?.clientBudgetEnd ?? n?.clientBudgetStart ?? i?.clientBudgetEnd ?? i?.clientBudgetStart, o = Number(a);
49506
49748
  return Number.isFinite(o) ? o : 0;
49507
49749
  }
49508
- function EI(e = {}) {
49750
+ function PI(e = {}) {
49509
49751
  let t = String(e?.currencyRaw ?? "").trim().toUpperCase(), n = String(e?.currency ?? "").trim();
49510
49752
  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;
49511
49753
  }
49512
- function DI(e = {}) {
49754
+ function FI(e = {}) {
49513
49755
  return String(e?.rateUnit ?? "hr").trim().replace(/^\/+/, "") || "hr";
49514
49756
  }
49515
- function OI(e, t = {}) {
49757
+ function II(e, t = {}) {
49516
49758
  let n = Number(e);
49517
- return Number.isFinite(n) ? `${EI(t)}${n}/${DI(t)}` : "";
49759
+ return Number.isFinite(n) ? `${PI(t)}${n}/${FI(t)}` : "";
49518
49760
  }
49519
- function kI(e, t, n) {
49761
+ function LI(e, t, n) {
49520
49762
  if (n == null || n === "") return String(e ?? "");
49521
49763
  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");
49522
49764
  r = r.replace(o, (e, t, n, r) => (a = !0, `${t}${i}${r}`));
@@ -49527,25 +49769,25 @@ function kI(e, t, n) {
49527
49769
  }
49528
49770
  return r;
49529
49771
  }
49530
- function AI(e, t, n, r, i) {
49531
- let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : wI(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : TI(r, i), l = {
49772
+ function RI(e, t, n, r, i) {
49773
+ let a = Number(n?.proposedRate), o = Number.isFinite(a) ? a : MI(t), s = Number(n?.clientJobRate), c = Number.isFinite(s) && s > 0 ? s : NI(r, i), l = {
49532
49774
  proposedRate: o,
49533
49775
  jobBillRate: c
49534
49776
  }, u = String(e ?? "").replace(/{{\.?((?:proposedRate)|(?:jobBillRate))}}/g, (e, t) => {
49535
49777
  let n = l[t];
49536
49778
  return n == null ? e : String(n);
49537
49779
  });
49538
- return u = kI(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", OI(o, n)), u = kI(u, "(?:Job\\s*)?Bill\\s*Rate", OI(c, n)), u;
49780
+ return u = LI(u, "(?:Proposed\\s*Rate|Pay\\s*Rate)", II(o, n)), u = LI(u, "(?:Job\\s*)?Bill\\s*Rate", II(c, n)), u;
49539
49781
  }
49540
- function jI(...e) {
49782
+ function zI(...e) {
49541
49783
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
49542
49784
  }
49543
- var MI = (e, t) => !!e && e.toLowerCase() === jI(t).toLowerCase();
49544
- function NI(e, t, n) {
49545
- let r = jI(t.submittedBy);
49546
- return jI(MI(r, n) || MI(r, e.submitSource) || MI(r, e.supplierName) || MI(r, e.source) || MI(r, e.candidateSource) ? "" : r, e.signatureEmail);
49785
+ var BI = (e, t) => !!e && e.toLowerCase() === zI(t).toLowerCase();
49786
+ function VI(e, t, n) {
49787
+ let r = zI(t.submittedBy);
49788
+ return zI(BI(r, n) || BI(r, e.submitSource) || BI(r, e.supplierName) || BI(r, e.source) || BI(r, e.candidateSource) ? "" : r, e.signatureEmail);
49547
49789
  }
49548
- function PI(e, t = {}) {
49790
+ function HI(e, t = {}) {
49549
49791
  let n = t.employerName ?? e.supplierName ?? e.submitSource;
49550
49792
  return {
49551
49793
  client: t.clientName ?? e.clientName,
@@ -49554,20 +49796,20 @@ function PI(e, t = {}) {
49554
49796
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
49555
49797
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
49556
49798
  vendor: n,
49557
- submittedBy: NI(e, t, n),
49799
+ submittedBy: VI(e, t, n),
49558
49800
  submittedAt: t.createdAt ?? e.createdAt,
49559
49801
  email: t.email ?? e.email,
49560
49802
  employerLocation: t.employerLocation,
49561
49803
  employerName: t.employerName
49562
49804
  };
49563
49805
  }
49564
- function FI(e) {
49806
+ function UI(e) {
49565
49807
  let t = e?.$oid ?? e?._id?.$oid ?? e?._id ?? e?.id?.$oid ?? e?.id ?? e;
49566
49808
  if (t == null || typeof t == "object") return "";
49567
49809
  let n = String(t).trim();
49568
49810
  return /^[a-f\d]{24}$/i.test(n) ? n : "";
49569
49811
  }
49570
- function II(...e) {
49812
+ function WI(...e) {
49571
49813
  for (let t of e) {
49572
49814
  let e = [
49573
49815
  t?.jobId,
@@ -49590,12 +49832,12 @@ function II(...e) {
49590
49832
  t?.submission?.recordMeta?.jobId,
49591
49833
  t?.submission?.recordMeta?.JobId,
49592
49834
  t?.submission?.recordMeta?.job_id
49593
- ].map(FI).find(Boolean);
49835
+ ].map(UI).find(Boolean);
49594
49836
  if (e) return e;
49595
49837
  }
49596
49838
  return "";
49597
49839
  }
49598
- function LI(e) {
49840
+ function GI(e) {
49599
49841
  if (!e?.referralId) return {};
49600
49842
  let t = Number(e.referralRate ?? e.referalRate ?? 0) || 0, n = String(e.referralType ?? e.referalType ?? "RECURRING").trim() || "RECURRING", r = e.referralId ?? e.referalId;
49601
49843
  return {
@@ -49621,10 +49863,10 @@ function LI(e) {
49621
49863
  }
49622
49864
  };
49623
49865
  }
49624
- function RI(e = "") {
49866
+ function KI(e = "") {
49625
49867
  return String(e ?? "").replace(/map\[[^\]]*(?:resume|document|attachment|file)[^\]]*\]/gi, "").replace(/<p>\s*<\/p>/gi, "").replace(/(?:<br\s*\/?>\s*){3,}/gi, "<br><br>").trim();
49626
49868
  }
49627
- function zI(...e) {
49869
+ function qI(...e) {
49628
49870
  for (let t of e) {
49629
49871
  let e = [
49630
49872
  t?.candidateId,
@@ -49635,12 +49877,12 @@ function zI(...e) {
49635
49877
  t?.submission?.applicantId,
49636
49878
  t?.recordMeta?.candidateId,
49637
49879
  t?.recordMeta?.applicantId
49638
- ].map(FI).find(Boolean);
49880
+ ].map(UI).find(Boolean);
49639
49881
  if (e) return e;
49640
49882
  }
49641
49883
  return "";
49642
49884
  }
49643
- async function BI(e) {
49885
+ async function JI(e) {
49644
49886
  let t = e?.fileUrl ?? e?.downloadUrl ?? e?.url;
49645
49887
  if (!t) return null;
49646
49888
  let n = await fetch(t);
@@ -49648,34 +49890,34 @@ async function BI(e) {
49648
49890
  let r = await n.blob(), i = e?.fileName ?? e?.uploadedFileName ?? e?.originalName ?? e?.uniqueName ?? "resume";
49649
49891
  return new File([r], i, { type: e?.contentType || r.type || "application/octet-stream" });
49650
49892
  }
49651
- async function VI(e, t, n) {
49893
+ async function YI(e, t, n) {
49652
49894
  let r = [], i = await kn("submissions", e, "resume").catch(() => ({ data: [] }));
49653
49895
  r.push(...i?.data ?? []);
49654
- let a = zI(t?.record?.submission, n, t?.record);
49896
+ let a = qI(t?.record?.submission, n, t?.record);
49655
49897
  if (!a) {
49656
49898
  let t = await v(E, `/module/list?module=submissions&id=${encodeURIComponent(e)}`).catch(() => ({})), n = t?.data ?? t ?? {};
49657
- a = zI((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
49899
+ a = qI((Array.isArray(n?.data) ? n.data : Array.isArray(n) ? n : [])[0]);
49658
49900
  }
49659
49901
  if (a) {
49660
49902
  let e = await kn("candidates", a, "resume").catch(() => ({ data: [] }));
49661
49903
  r.push(...e?.data ?? []);
49662
49904
  }
49663
- let o = (await Promise.all(r.map(BI))).filter(Boolean), s = /* @__PURE__ */ new Set();
49905
+ let o = (await Promise.all(r.map(JI))).filter(Boolean), s = /* @__PURE__ */ new Set();
49664
49906
  return o.filter((e) => {
49665
49907
  let t = `${e.name}:${e.size}:${e.type}`;
49666
49908
  return !s.has(t) && (s.add(t), !0);
49667
49909
  });
49668
49910
  }
49669
- function HI(e = {}) {
49911
+ function XI(e = {}) {
49670
49912
  return {
49671
49913
  to: (e.to ?? e.To ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
49672
49914
  cc: (e.cc ?? e.Cc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
49673
49915
  bcc: (e.bcc ?? e.Bcc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
49674
49916
  subject: e.subject ?? e.Subject ?? "",
49675
- contents: RI(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
49917
+ contents: KI(e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? "")
49676
49918
  };
49677
49919
  }
49678
- function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
49920
+ function ZI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
49679
49921
  let a = n?.[0] ?? {}, o = t?.[0] ?? Cw(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({
49680
49922
  to: "",
49681
49923
  cc: "",
@@ -49714,13 +49956,13 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49714
49956
  if (h === "mail") {
49715
49957
  m(!1), w(!0), E(!0);
49716
49958
  try {
49717
- let [e, t] = await Promise.all([SI(o).then(HI), VI(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
49959
+ let [e, t] = await Promise.all([AI(o).then(XI), YI(o, s, a).catch((e) => (console.warn("Unable to resolve resume attachment:", e), []))]), n = s?.record?.submission ?? a;
49718
49960
  ee({
49719
- to: AI(e.to, n, _, s, a),
49720
- cc: AI(e.cc, n, _, s, a),
49721
- bcc: AI(e.bcc, n, _, s, a),
49722
- subject: AI(e.subject, n, _, s, a),
49723
- contents: AI(e.contents, n, _, s, a),
49961
+ to: RI(e.to, n, _, s, a),
49962
+ cc: RI(e.cc, n, _, s, a),
49963
+ bcc: RI(e.bcc, n, _, s, a),
49964
+ subject: RI(e.subject, n, _, s, a),
49965
+ contents: RI(e.contents, n, _, s, a),
49724
49966
  attachments: t,
49725
49967
  showCc: !!e.cc,
49726
49968
  showBcc: !!e.bcc
@@ -49739,7 +49981,7 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49739
49981
  candidateProposedRateCurrency: _.currencyRaw ?? _.currency,
49740
49982
  candidateProposedRateUnit: _.rateUnit,
49741
49983
  submitVia: "VMS",
49742
- ...LI(y)
49984
+ ...GI(y)
49743
49985
  }), q.success("Submission approved"), m(!1), v(null), b(null), i?.({ success: !0 });
49744
49986
  } catch (e) {
49745
49987
  q.error(e?.message ?? "Unable to approve submission");
@@ -49759,9 +50001,9 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49759
50001
  await pc(o, {
49760
50002
  ...e,
49761
50003
  submitVia: "VMS",
49762
- ...LI(y)
50004
+ ...GI(y)
49763
50005
  });
49764
- let t = II(s?.record, a);
50006
+ let t = WI(s?.record, a);
49765
50007
  if (!t) q.warning("Submission approved, but job details were not available to send mail");
49766
50008
  else try {
49767
50009
  await du({
@@ -49815,7 +50057,7 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49815
50057
  type: ZC,
49816
50058
  record: s.record,
49817
50059
  lookups: s.lookups,
49818
- identity: PI(a, s.display),
50060
+ identity: HI(a, s.display),
49819
50061
  referralOptions: d,
49820
50062
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
49821
50063
  actions: ne,
@@ -49889,7 +50131,7 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49889
50131
  })
49890
50132
  ] });
49891
50133
  }
49892
- UI.propTypes = {
50134
+ ZI.propTypes = {
49893
50135
  context: Z.object,
49894
50136
  selectedIds: Z.array,
49895
50137
  selectedRecords: Z.array,
@@ -49898,23 +50140,23 @@ UI.propTypes = {
49898
50140
  };
49899
50141
  //#endregion
49900
50142
  //#region src/components/popups/definitions/manager-approve/config.js
49901
- var WI = {
50143
+ var QI = {
49902
50144
  title: "Manager Approve",
49903
50145
  width: 780,
49904
50146
  className: "fa-modal manager-approve-modal",
49905
- component: UI
49906
- }, GI = { submit: async () => {} };
50147
+ component: ZI
50148
+ }, $I = { submit: async () => {} };
49907
50149
  //#endregion
49908
50150
  //#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
49909
- function KI(...e) {
50151
+ function eL(...e) {
49910
50152
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
49911
50153
  }
49912
- var qI = (e, t) => !!e && e.toLowerCase() === KI(t).toLowerCase();
49913
- function JI(e, t, n) {
49914
- let r = KI(t.submittedBy);
49915
- return KI(qI(r, n) || qI(r, e.submitSource) || qI(r, e.supplierName) || qI(r, e.source) || qI(r, e.candidateSource) ? "" : r, e.signatureEmail);
50154
+ var tL = (e, t) => !!e && e.toLowerCase() === eL(t).toLowerCase();
50155
+ function nL(e, t, n) {
50156
+ let r = eL(t.submittedBy);
50157
+ return eL(tL(r, n) || tL(r, e.submitSource) || tL(r, e.supplierName) || tL(r, e.source) || tL(r, e.candidateSource) ? "" : r, e.signatureEmail);
49916
50158
  }
49917
- function YI(e, t = {}) {
50159
+ function rL(e, t = {}) {
49918
50160
  let n = t.employerName ?? e.supplierName ?? e.submitSource;
49919
50161
  return {
49920
50162
  client: t.clientName ?? e.clientName,
@@ -49923,28 +50165,28 @@ function YI(e, t = {}) {
49923
50165
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
49924
50166
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
49925
50167
  vendor: n,
49926
- submittedBy: JI(e, t, n),
50168
+ submittedBy: nL(e, t, n),
49927
50169
  submittedAt: t.createdAt ?? e.createdAt,
49928
50170
  email: t.email ?? e.email,
49929
50171
  employerLocation: t.employerLocation,
49930
50172
  employerName: t.employerName
49931
50173
  };
49932
50174
  }
49933
- function XI(e) {
50175
+ function iL(e) {
49934
50176
  let t = Array.isArray(e) ? e : [];
49935
50177
  for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
49936
50178
  return null;
49937
50179
  }
49938
- function ZI(e) {
50180
+ function aL(e) {
49939
50181
  return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
49940
50182
  }
49941
- function QI({ selectedIds: e, selectedRecords: t, onClose: n }) {
50183
+ function oL({ selectedIds: e, selectedRecords: t, onClose: n }) {
49942
50184
  let r = t?.[0] ?? {}, i = e?.[0] ?? Cw(r), [a, o] = L(null), [s, c] = L(""), [l, u] = L(!0);
49943
50185
  F(() => {
49944
50186
  let e = !1;
49945
50187
  return u(!0), Promise.all([uT(i, r), Hr("submission", i).catch(() => [])]).then(([t, n]) => {
49946
50188
  if (e) return;
49947
- let i = XI(n);
50189
+ let i = iL(n);
49948
50190
  c(Cw(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
49949
50191
  let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
49950
50192
  o({
@@ -49953,7 +50195,7 @@ function QI({ selectedIds: e, selectedRecords: t, onClose: n }) {
49953
50195
  ...t.record,
49954
50196
  submission: {
49955
50197
  ...t.record.submission,
49956
- cfoRejectionReason: a ? ZI(a) : "",
50198
+ cfoRejectionReason: a ? aL(a) : "",
49957
50199
  cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
49958
50200
  }
49959
50201
  }
@@ -50001,26 +50243,26 @@ function QI({ selectedIds: e, selectedRecords: t, onClose: n }) {
50001
50243
  type: tw,
50002
50244
  record: a.record,
50003
50245
  lookups: a.lookups,
50004
- identity: YI(r, a.display),
50246
+ identity: rL(r, a.display),
50005
50247
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
50006
50248
  actions: d,
50007
50249
  onClose: () => n?.(),
50008
50250
  variant: "popup"
50009
50251
  });
50010
50252
  }
50011
- QI.propTypes = {
50253
+ oL.propTypes = {
50012
50254
  selectedIds: Z.array,
50013
50255
  selectedRecords: Z.array,
50014
50256
  onClose: Z.func
50015
50257
  };
50016
50258
  //#endregion
50017
50259
  //#region src/components/popups/definitions/manager-reapprove/config.js
50018
- var $I = {
50260
+ var sL = {
50019
50261
  title: "Re-Approve",
50020
50262
  width: 780,
50021
50263
  className: "fa-modal manager-approve-modal",
50022
- component: QI
50023
- }, eL = { submit: async () => {} }, tL = [
50264
+ component: oL
50265
+ }, cL = { submit: async () => {} }, lL = [
50024
50266
  {
50025
50267
  id: 1,
50026
50268
  name: "Re-Submission"
@@ -50033,7 +50275,7 @@ var $I = {
50033
50275
  id: 3,
50034
50276
  name: "Incomplete candidate details - (Re-Submission)"
50035
50277
  }
50036
- ], nL = {
50278
+ ], uL = {
50037
50279
  title: "Reject",
50038
50280
  okText: "Reject",
50039
50281
  okButtonDanger: !0,
@@ -50045,7 +50287,7 @@ var $I = {
50045
50287
  type: "select",
50046
50288
  required: !0,
50047
50289
  placeholder: "Select rejection reasons",
50048
- defaultOptions: tL.map((e) => ({
50290
+ defaultOptions: lL.map((e) => ({
50049
50291
  label: e.name,
50050
50292
  value: e.id
50051
50293
  }))
@@ -50056,88 +50298,88 @@ var $I = {
50056
50298
  required: !0,
50057
50299
  rows: 4
50058
50300
  }]
50059
- }, rL = { submit: async (e, t) => {
50060
- let n = tL.find((t) => String(t.id) === String(e.rejectReason));
50301
+ }, dL = { submit: async (e, t) => {
50302
+ let n = lL.find((t) => String(t.id) === String(e.rejectReason));
50061
50303
  await gc({
50062
50304
  submissionId: t.selectedIds[0],
50063
50305
  rejectReasonId: e.rejectReason,
50064
50306
  rejectReason: n?.name ?? "",
50065
50307
  rejectReasonComments: e.rejectReasonComments
50066
50308
  });
50067
- } }, iL = {
50068
- delete: nF,
50069
- "quick-submit": jF,
50070
- "add-notes": MF,
50071
- "tag-to-job": RF,
50072
- "change-status": ZF,
50073
- "remove-from-shortlist": eI,
50074
- "add-to-groups": nI,
50075
- "self-assign": oI,
50076
- "others-assign": lI,
50077
- "sticky-notes": dI,
50078
- "move-to-onboarding": pI,
50079
- "approve-rate": yI,
50080
- "manager-approve": WI,
50081
- "manager-reapprove": $I,
50082
- reject: nL
50083
- }, aL = {
50084
- delete: rF,
50085
- "quick-submit": AF,
50086
- "add-notes": FF,
50087
- "tag-to-job": XF,
50088
- "change-status": $F,
50089
- "remove-from-shortlist": tI,
50090
- "add-to-groups": rI,
50091
- "self-assign": sI,
50092
- "others-assign": uI,
50093
- "sticky-notes": fI,
50094
- "move-to-onboarding": mI,
50095
- "approve-rate": bI,
50096
- "manager-approve": GI,
50097
- "manager-reapprove": eL,
50098
- reject: rL
50309
+ } }, fL = {
50310
+ delete: uF,
50311
+ "quick-submit": zF,
50312
+ "add-notes": BF,
50313
+ "tag-to-job": KF,
50314
+ "change-status": aI,
50315
+ "remove-from-shortlist": cI,
50316
+ "add-to-groups": uI,
50317
+ "self-assign": mI,
50318
+ "others-assign": _I,
50319
+ "sticky-notes": yI,
50320
+ "move-to-onboarding": xI,
50321
+ "approve-rate": DI,
50322
+ "manager-approve": QI,
50323
+ "manager-reapprove": sL,
50324
+ reject: uL
50325
+ }, pL = {
50326
+ delete: dF,
50327
+ "quick-submit": RF,
50328
+ "add-notes": UF,
50329
+ "tag-to-job": iI,
50330
+ "change-status": sI,
50331
+ "remove-from-shortlist": lI,
50332
+ "add-to-groups": dI,
50333
+ "self-assign": hI,
50334
+ "others-assign": vI,
50335
+ "sticky-notes": bI,
50336
+ "move-to-onboarding": SI,
50337
+ "approve-rate": OI,
50338
+ "manager-approve": $I,
50339
+ "manager-reapprove": cL,
50340
+ reject: dL
50099
50341
  };
50100
50342
  //#endregion
50101
50343
  //#region src/components/popups/AddBatchCandidatePopup.jsx
50102
- function oL(e) {
50344
+ function mL(e) {
50103
50345
  let t = e?.data ?? e;
50104
50346
  return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
50105
50347
  }
50106
- function sL(e, ...t) {
50348
+ function hL(e, ...t) {
50107
50349
  for (let n of t) {
50108
50350
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
50109
50351
  if (t != null && t !== "") return t;
50110
50352
  }
50111
50353
  return "";
50112
50354
  }
50113
- function cL(e) {
50114
- let t = String(sL(e, "isDeleted", "deleted")).toLowerCase(), n = String(sL(e, "assignmentStatus", "status")).toLowerCase();
50355
+ function gL(e) {
50356
+ let t = String(hL(e, "isDeleted", "deleted")).toLowerCase(), n = String(hL(e, "assignmentStatus", "status")).toLowerCase();
50115
50357
  return t !== "true" && t !== "1" && ![
50116
50358
  "removed",
50117
50359
  "inactive",
50118
50360
  "deleted"
50119
50361
  ].includes(n);
50120
50362
  }
50121
- function lL(e) {
50122
- let t = sL(e, "candidateName", "candidate_name", "fullName", "name");
50123
- return t ? String(t) : [sL(e, "firstName", "first_name"), sL(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
50363
+ function _L(e) {
50364
+ let t = hL(e, "candidateName", "candidate_name", "fullName", "name");
50365
+ return t ? String(t) : [hL(e, "firstName", "first_name"), hL(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
50124
50366
  }
50125
- function uL(e) {
50126
- return String(sL(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
50367
+ function vL(e) {
50368
+ return String(hL(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
50127
50369
  }
50128
- function dL(e) {
50129
- return String(sL(e, "workforceEngagementId", "engagementId", "_id", "id"));
50370
+ function yL(e) {
50371
+ return String(hL(e, "workforceEngagementId", "engagementId", "_id", "id"));
50130
50372
  }
50131
- function fL(e) {
50132
- return String(sL(e, "batchName", "name", "title", "batch_name"));
50373
+ function bL(e) {
50374
+ return String(hL(e, "batchName", "name", "title", "batch_name"));
50133
50375
  }
50134
- function pL({ open: e = !0, context: t = {}, onClose: n }) {
50376
+ function xL({ open: e = !0, context: t = {}, onClose: n }) {
50135
50377
  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 ?? "");
50136
50378
  F(() => {
50137
50379
  if (!e) return;
50138
50380
  let t = !1;
50139
50381
  return Promise.resolve().then(() => (t || u(!0), Promise.all([ii("onboarding", 200, 0), ii("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
50140
- t || (i(oL(e)), g(new Map(oL(n).filter(cL).map((e) => [String(sL(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
50382
+ t || (i(mL(e)), g(new Map(mL(n).filter(gL).map((e) => [String(hL(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
50141
50383
  }).catch((e) => {
50142
50384
  t || m(e.message || "Unable to load onboarding candidates");
50143
50385
  }).finally(() => {
@@ -50149,9 +50391,9 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50149
50391
  let v = I(() => {
50150
50392
  let e = s.trim().toLowerCase();
50151
50393
  return e ? r.filter((t) => [
50152
- lL(t),
50153
- sL(t, "email", "candidateEmail", "candidate_email"),
50154
- sL(t, "status", "onboardingStatus", "onboarding_status")
50394
+ _L(t),
50395
+ hL(t, "email", "candidateEmail", "candidate_email"),
50396
+ hL(t, "status", "onboardingStatus", "onboarding_status")
50155
50397
  ].some((t) => String(t).toLowerCase().includes(e))) : r;
50156
50398
  }, [r, s]);
50157
50399
  async function y() {
@@ -50159,26 +50401,26 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50159
50401
  m("Select a batch before adding candidates");
50160
50402
  return;
50161
50403
  }
50162
- let e = r.filter((e) => a.includes(dL(e)));
50404
+ let e = r.filter((e) => a.includes(yL(e)));
50163
50405
  if (!e.length) return;
50164
50406
  let i = e.map((e) => ({
50165
50407
  record: e,
50166
- assignment: h.get(uL(e))
50408
+ assignment: h.get(vL(e))
50167
50409
  })).filter((e) => e.assignment);
50168
50410
  if (i.length) {
50169
- let e = i.map(({ record: e }) => lL(e)).join(", ");
50411
+ let e = i.map(({ record: e }) => _L(e)).join(", ");
50170
50412
  m(`${e} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
50171
50413
  return;
50172
50414
  }
50173
50415
  f(!0), m("");
50174
50416
  try {
50175
- let { userId: r } = x(), i = fL(t.selectedRecords?.[0]) || fL(t);
50417
+ let { userId: r } = x(), i = bL(t.selectedRecords?.[0]) || bL(t);
50176
50418
  await Promise.all(e.map((e) => It("batchCandidates", {
50177
50419
  schemaVersion: 1,
50178
50420
  batchId: _,
50179
50421
  batchName: i,
50180
- candidateId: uL(e),
50181
- workforceEngagementId: dL(e),
50422
+ candidateId: vL(e),
50423
+ workforceEngagementId: yL(e),
50182
50424
  source: "ONBOARDING",
50183
50425
  assignmentStatus: "ASSIGNED",
50184
50426
  assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -50221,22 +50463,22 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50221
50463
  style: { marginBottom: 12 }
50222
50464
  }),
50223
50465
  /* @__PURE__ */ Y(ea, {
50224
- rowKey: (e) => dL(e),
50466
+ rowKey: (e) => yL(e),
50225
50467
  columns: [
50226
50468
  {
50227
50469
  title: "Candidate",
50228
50470
  key: "candidate",
50229
- render: (e, t) => lL(t)
50471
+ render: (e, t) => _L(t)
50230
50472
  },
50231
50473
  {
50232
50474
  title: "Email",
50233
50475
  key: "email",
50234
- render: (e, t) => sL(t, "email", "candidateEmail", "candidate_email") || "—"
50476
+ render: (e, t) => hL(t, "email", "candidateEmail", "candidate_email") || "—"
50235
50477
  },
50236
50478
  {
50237
50479
  title: "Onboarding status",
50238
50480
  key: "status",
50239
- render: (e, t) => sL(t, "status", "onboardingStatus", "onboarding_status") || "—"
50481
+ render: (e, t) => hL(t, "status", "onboardingStatus", "onboarding_status") || "—"
50240
50482
  }
50241
50483
  ],
50242
50484
  dataSource: v,
@@ -50250,9 +50492,9 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50250
50492
  selectedRowKeys: a,
50251
50493
  onChange: o,
50252
50494
  getCheckboxProps: (e) => {
50253
- let t = h.get(uL(e));
50495
+ let t = h.get(vL(e));
50254
50496
  return {
50255
- disabled: !uL(e) || !dL(e) || !!t,
50497
+ disabled: !vL(e) || !yL(e) || !!t,
50256
50498
  title: t ? "Candidate is already added to a batch" : void 0
50257
50499
  };
50258
50500
  }
@@ -50264,7 +50506,7 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50264
50506
  }
50265
50507
  //#endregion
50266
50508
  //#region src/components/popups/dynamic/DynamicPopupRoute.jsx
50267
- var mL = {
50509
+ var SL = {
50268
50510
  text: "input",
50269
50511
  string: "input",
50270
50512
  textarea: "textarea",
@@ -50273,30 +50515,30 @@ var mL = {
50273
50515
  multiselect: "multi-select",
50274
50516
  lookup: "search-select"
50275
50517
  };
50276
- function hL(e) {
50518
+ function CL(e) {
50277
50519
  if (!e) return null;
50278
50520
  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) => ({
50279
50521
  ...e,
50280
50522
  name: e.name ?? e.field,
50281
50523
  label: e.label ?? e.field,
50282
- type: mL[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
50524
+ type: SL[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
50283
50525
  required: e.required ?? e.req === 1,
50284
50526
  options: (e.options ?? []).map((e) => ({
50285
50527
  label: e.label ?? e.name ?? e.value,
50286
50528
  value: e.value ?? e.id ?? e.label
50287
50529
  }))
50288
- }))), n = gL(e.successNavigate);
50530
+ }))), n = wL(e.successNavigate);
50289
50531
  return {
50290
50532
  title: e.label,
50291
50533
  fields: t,
50292
50534
  ...n ? { successNavigate: n } : {}
50293
50535
  };
50294
50536
  }
50295
- function gL(e) {
50537
+ function wL(e) {
50296
50538
  let t = String(e ?? "").trim();
50297
50539
  return !t || !t.startsWith("/") || t.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(t) ? null : t;
50298
50540
  }
50299
- function _L(e, t = []) {
50541
+ function TL(e, t = []) {
50300
50542
  if (!e || !Array.isArray(t) || !t.length) return e;
50301
50543
  let n = new Map(t.filter((e) => e?.name).map((e) => [String(e.name), e]));
50302
50544
  return n.size ? {
@@ -50312,12 +50554,12 @@ function _L(e, t = []) {
50312
50554
  })
50313
50555
  } : e;
50314
50556
  }
50315
- function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50557
+ function EL({ apiMap: e = {}, extraConfigs: t = {} }) {
50316
50558
  let n = I(() => ({
50317
- ...aL,
50559
+ ...pL,
50318
50560
  ...e
50319
50561
  }), [e]), r = I(() => {
50320
- let e = { ...iL };
50562
+ let e = { ...fL };
50321
50563
  return Object.entries(t).forEach(([t, n]) => {
50322
50564
  e[t] = {
50323
50565
  ...e[t] ?? {},
@@ -50335,7 +50577,7 @@ function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50335
50577
  return ti(o.moduleName, "popup", i).then((n) => {
50336
50578
  e || c({
50337
50579
  key: t,
50338
- config: hL(n[0])
50580
+ config: CL(n[0])
50339
50581
  });
50340
50582
  }).catch(() => {
50341
50583
  e || c({
@@ -50348,7 +50590,7 @@ function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50348
50590
  }, [i, o.moduleName]);
50349
50591
  let l = I(() => {
50350
50592
  let e = r[i], t = `${o.moduleName}:${i}`, n = s.key === t ? s.config : null;
50351
- return _L(n ? {
50593
+ return TL(n ? {
50352
50594
  ...e,
50353
50595
  ...n
50354
50596
  } : e, o.popupAction?.popupFieldOverrides);
@@ -50407,11 +50649,11 @@ function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50407
50649
  }
50408
50650
  a(-1);
50409
50651
  };
50410
- return i === "add-batch-candidate" ? /* @__PURE__ */ Y(pL, {
50652
+ return i === "add-batch-candidate" ? /* @__PURE__ */ Y(xL, {
50411
50653
  open: !0,
50412
50654
  context: u,
50413
50655
  onClose: f
50414
- }) : /* @__PURE__ */ Y(tF, {
50656
+ }) : /* @__PURE__ */ Y(lF, {
50415
50657
  open: !0,
50416
50658
  config: l,
50417
50659
  context: u,
@@ -50424,7 +50666,7 @@ function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50424
50666
  }
50425
50667
  //#endregion
50426
50668
  //#region src/components/popups/definitions/vendor-share/config.js
50427
- var yL = {
50669
+ var DL = {
50428
50670
  title: "Vendor Share",
50429
50671
  maxVendorSelect: 1e3,
50430
50672
  defaultTab: "myVendor",
@@ -50458,7 +50700,7 @@ var yL = {
50458
50700
  key: "updatedOn"
50459
50701
  }
50460
50702
  ]
50461
- }, bL = {
50703
+ }, OL = {
50462
50704
  getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => cu({
50463
50705
  jobId: e,
50464
50706
  limit: t,
@@ -50475,11 +50717,11 @@ var yL = {
50475
50717
  subject: i,
50476
50718
  contents: a
50477
50719
  })
50478
- }, xL = yL.vendorColumns.map((e) => ({
50720
+ }, kL = DL.vendorColumns.map((e) => ({
50479
50721
  ...e,
50480
50722
  render: (e) => e || "-"
50481
50723
  }));
50482
- function SL() {
50724
+ function AL() {
50483
50725
  let e = ds(), t = us(), { selectedIds: n = [], selectedRecords: r = [], recipients: i = [], subject: a = "", onSend: o, moduleName: s = "", popupAction: c = {} } = t.state ?? {}, l = n[0] ?? r[0]?._id ?? r[0]?.id, [u, d] = L({
50484
50726
  to: i.join(", "),
50485
50727
  cc: "",
@@ -50488,13 +50730,13 @@ function SL() {
50488
50730
  contents: "",
50489
50731
  showCc: !1,
50490
50732
  showBcc: !1
50491
- }), [f, p] = L(!l), [m, h] = L(yL.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(yL.defaultPageSize), [ee, A] = L(!1), [j, te] = L([]);
50733
+ }), [f, p] = L(!l), [m, h] = L(DL.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(DL.defaultPageSize), [ee, A] = L(!1), [j, te] = L([]);
50492
50734
  F(() => {
50493
50735
  if (!l) return;
50494
50736
  let e = !1;
50495
50737
  A(!0);
50496
50738
  let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
50497
- return bL.getVendorList({
50739
+ return OL.getVendorList({
50498
50740
  jobId: l,
50499
50741
  limit: t,
50500
50742
  offset: n,
@@ -50517,7 +50759,7 @@ function SL() {
50517
50759
  O,
50518
50760
  g
50519
50761
  ]), F(() => {
50520
- l && bL.getMailDetails(l).then((e) => d((t) => ({
50762
+ l && OL.getMailDetails(l).then((e) => d((t) => ({
50521
50763
  ...t,
50522
50764
  subject: e.subject || t.subject,
50523
50765
  contents: e.contents || t.contents,
@@ -50542,7 +50784,7 @@ function SL() {
50542
50784
  e(-1);
50543
50785
  }
50544
50786
  function oe() {
50545
- ie && bL.submit({
50787
+ ie && OL.submit({
50546
50788
  jobId: l,
50547
50789
  toMail: GM(M.to),
50548
50790
  ccMail: GM(M.cc),
@@ -50623,7 +50865,7 @@ function SL() {
50623
50865
  ]
50624
50866
  }), /* @__PURE__ */ Y("div", {
50625
50867
  className: "vendor-share__vendor-tabs",
50626
- children: yL.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
50868
+ children: DL.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
50627
50869
  className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
50628
50870
  onClick: () => {
50629
50871
  h(e.key), D(1), te([]);
@@ -50641,7 +50883,7 @@ function SL() {
50641
50883
  className: "vendor-share__vendor-table-wrapper",
50642
50884
  children: /* @__PURE__ */ Y(ea, {
50643
50885
  rowKey: (e) => e.vendorId,
50644
- columns: xL,
50886
+ columns: kL,
50645
50887
  dataSource: se,
50646
50888
  loading: ee,
50647
50889
  pagination: !1,
@@ -50649,7 +50891,7 @@ function SL() {
50649
50891
  rowSelection: {
50650
50892
  selectedRowKeys: j,
50651
50893
  onChange: (e) => {
50652
- e.length > yL.maxVendorSelect || te(e);
50894
+ e.length > DL.maxVendorSelect || te(e);
50653
50895
  }
50654
50896
  },
50655
50897
  scroll: { y: "calc(100vh - 340px)" }
@@ -50683,7 +50925,7 @@ function SL() {
50683
50925
  children: [
50684
50926
  j.length,
50685
50927
  " / ",
50686
- yL.maxVendorSelect,
50928
+ DL.maxVendorSelect,
50687
50929
  " Vendors selected"
50688
50930
  ]
50689
50931
  }) : null
@@ -50694,7 +50936,7 @@ function SL() {
50694
50936
  }
50695
50937
  //#endregion
50696
50938
  //#region src/components/form/validation.js
50697
- var CL = {
50939
+ var jL = {
50698
50940
  EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
50699
50941
  PHONE: /^[0-9]{10}$/,
50700
50942
  PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
@@ -50711,7 +50953,7 @@ var CL = {
50711
50953
  FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
50712
50954
  NO_SPACES: /^\S+$/,
50713
50955
  STARTS_WITH_CAPITAL: /^[A-Z].*$/
50714
- }, wL = {
50956
+ }, ML = {
50715
50957
  SINGLE_FILE_COUNT: 1,
50716
50958
  MULTI_FILE_COUNT: 5,
50717
50959
  MAX_FILE_SIZE: 2,
@@ -50720,7 +50962,7 @@ var CL = {
50720
50962
  "image/png",
50721
50963
  "application/pdf"
50722
50964
  ]
50723
- }, TL = {
50965
+ }, NL = {
50724
50966
  REQUIRED: (e) => "Mandatory Field",
50725
50967
  INVALID_EMAIL: "Please enter a valid email address.",
50726
50968
  INVALID_PHONE: "Phone number must contain exactly 10 digits.",
@@ -50740,16 +50982,16 @@ var CL = {
50740
50982
  NO_SPACES_ALLOWED: "Spaces are not allowed.",
50741
50983
  MUST_START_WITH_CAPITAL: "First letter must be capital.",
50742
50984
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
50743
- INVALID_FILE_SIZE: `File upload must be ${wL.MAX_FILE_SIZE} MB below.`,
50985
+ INVALID_FILE_SIZE: `File upload must be ${ML.MAX_FILE_SIZE} MB below.`,
50744
50986
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
50745
50987
  SINGLE_FILE_ONLY: "Only one file can be uploaded."
50746
- }, EL = {
50988
+ }, PL = {
50747
50989
  FIRST_NAME_MIN: 3,
50748
50990
  FIRST_NAME_MAX: 30
50749
- }, DL = {
50991
+ }, FL = {
50750
50992
  REMARKS_MIN: 10,
50751
50993
  REMARKS_MAX: 250
50752
- }, OL = {
50994
+ }, IL = {
50753
50995
  removeSpaces: (e = "") => e.replace(/\s/g, ""),
50754
50996
  capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
50755
50997
  capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
@@ -50761,132 +51003,132 @@ var CL = {
50761
51003
  let t = e.replace(/\D/g, "");
50762
51004
  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)}`;
50763
51005
  }
50764
- }, kL = {
51006
+ }, LL = {
50765
51007
  required: (e = "Field") => ({
50766
51008
  required: !0,
50767
- message: TL.REQUIRED(e)
51009
+ message: NL.REQUIRED(e)
50768
51010
  }),
50769
51011
  email: () => ({
50770
- pattern: CL.EMAIL,
50771
- message: TL.INVALID_EMAIL
51012
+ pattern: jL.EMAIL,
51013
+ message: NL.INVALID_EMAIL
50772
51014
  }),
50773
51015
  phone: () => ({
50774
- pattern: CL.PHONE,
50775
- message: TL.INVALID_PHONE
51016
+ pattern: jL.PHONE,
51017
+ message: NL.INVALID_PHONE
50776
51018
  }),
50777
51019
  password: () => ({
50778
- pattern: CL.PASSWORD,
50779
- message: TL.INVALID_PASSWORD
51020
+ pattern: jL.PASSWORD,
51021
+ message: NL.INVALID_PASSWORD
50780
51022
  }),
50781
51023
  alphabets: () => ({
50782
- pattern: CL.ALPHABETS,
50783
- message: TL.INVALID_ALPHABETS
51024
+ pattern: jL.ALPHABETS,
51025
+ message: NL.INVALID_ALPHABETS
50784
51026
  }),
50785
51027
  alphanumeric: () => ({
50786
- pattern: CL.ALPHANUMERIC,
50787
- message: TL.INVALID_ALPHANUMERIC
51028
+ pattern: jL.ALPHANUMERIC,
51029
+ message: NL.INVALID_ALPHANUMERIC
50788
51030
  }),
50789
51031
  number: () => ({
50790
- pattern: CL.NUMBER,
50791
- message: TL.INVALID_NUMBER
51032
+ pattern: jL.NUMBER,
51033
+ message: NL.INVALID_NUMBER
50792
51034
  }),
50793
51035
  url: () => ({
50794
- pattern: CL.URL,
50795
- message: TL.INVALID_URL
51036
+ pattern: jL.URL,
51037
+ message: NL.INVALID_URL
50796
51038
  }),
50797
51039
  candidateId: (e = "ID") => ({
50798
- pattern: CL.CANDIDATE_ID,
50799
- message: TL.INVALID_CANDIDATE_ID(e)
51040
+ pattern: jL.CANDIDATE_ID,
51041
+ message: NL.INVALID_CANDIDATE_ID(e)
50800
51042
  }),
50801
51043
  remarks: () => ({
50802
- pattern: CL.REMARKS,
50803
- message: TL.INVALID_REMARKS,
50804
- REMARKS_MIN: `Remarks must be at least ${DL.REMARKS_MIN} characters.`,
50805
- REMARKS_MAX: `Remarks must not exceed ${DL.REMARKS_MAX} characters.`
51044
+ pattern: jL.REMARKS,
51045
+ message: NL.INVALID_REMARKS,
51046
+ REMARKS_MIN: `Remarks must be at least ${FL.REMARKS_MIN} characters.`,
51047
+ REMARKS_MAX: `Remarks must not exceed ${FL.REMARKS_MAX} characters.`
50806
51048
  }),
50807
51049
  designation: () => ({
50808
- pattern: CL.DESIGNATION,
50809
- message: TL.INVALID_DESIGNATION
51050
+ pattern: jL.DESIGNATION,
51051
+ message: NL.INVALID_DESIGNATION
50810
51052
  }),
50811
51053
  dob: (e = !0) => ({ validator: (t, n) => {
50812
51054
  if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
50813
- if (!CL.DOB.test(n)) return Promise.reject(Error(TL.INVALID_DOB));
51055
+ if (!jL.DOB.test(n)) return Promise.reject(Error(NL.INVALID_DOB));
50814
51056
  let r = rs(n, "MM/DD/YYYY", !0);
50815
- if (!r.isValid()) return Promise.reject(Error(TL.INVALID_DOB));
51057
+ if (!r.isValid()) return Promise.reject(Error(NL.INVALID_DOB));
50816
51058
  let i = rs().endOf("day");
50817
51059
  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();
50818
51060
  } }),
50819
51061
  linkedin: () => ({
50820
- pattern: CL.LINKEDIN,
50821
- message: TL.INVALID_LINKEDIN
51062
+ pattern: jL.LINKEDIN,
51063
+ message: NL.INVALID_LINKEDIN
50822
51064
  }),
50823
51065
  companyName: () => ({
50824
- pattern: CL.COMPANY_NAME,
50825
- message: TL.INVALID_COMPANY_NAME
51066
+ pattern: jL.COMPANY_NAME,
51067
+ message: NL.INVALID_COMPANY_NAME
50826
51068
  }),
50827
51069
  firstName: () => ({
50828
- pattern: CL.FIRST_NAME,
50829
- message: TL.INVALID_FIRST_NAME,
50830
- FIRST_NAME_MIN: `First Name must be at least ${EL.FIRST_NAME_MIN} characters.`,
50831
- FIRST_NAME_MAX: `First Name must not exceed ${EL.FIRST_NAME_MAX} characters.`
51070
+ pattern: jL.FIRST_NAME,
51071
+ message: NL.INVALID_FIRST_NAME,
51072
+ FIRST_NAME_MIN: `First Name must be at least ${PL.FIRST_NAME_MIN} characters.`,
51073
+ FIRST_NAME_MAX: `First Name must not exceed ${PL.FIRST_NAME_MAX} characters.`
50832
51074
  }),
50833
51075
  firstNameMinLength: () => ({
50834
- min: EL.FIRST_NAME_MIN,
50835
- message: TL.FIRST_NAME_MIN
51076
+ min: PL.FIRST_NAME_MIN,
51077
+ message: NL.FIRST_NAME_MIN
50836
51078
  }),
50837
51079
  firstNameMaxLength: () => ({
50838
- max: EL.FIRST_NAME_MAX,
50839
- message: TL.FIRST_NAME_MAX
51080
+ max: PL.FIRST_NAME_MAX,
51081
+ message: NL.FIRST_NAME_MAX
50840
51082
  }),
50841
51083
  remarksMinLength: () => ({
50842
- min: DL.REMARKS_MIN,
50843
- message: TL.REMARKS_MIN
51084
+ min: FL.REMARKS_MIN,
51085
+ message: NL.REMARKS_MIN
50844
51086
  }),
50845
51087
  remarksMaxLength: () => ({
50846
- max: DL.REMARKS_MAX,
50847
- message: TL.REMARKS_MAX
51088
+ max: FL.REMARKS_MAX,
51089
+ message: NL.REMARKS_MAX
50848
51090
  }),
50849
51091
  fullName: () => ({
50850
- pattern: CL.FULL_NAME,
50851
- message: TL.INVALID_FULL_NAME
51092
+ pattern: jL.FULL_NAME,
51093
+ message: NL.INVALID_FULL_NAME
50852
51094
  }),
50853
51095
  noSpaces: () => ({
50854
- pattern: CL.NO_SPACES,
50855
- message: TL.NO_SPACES_ALLOWED
51096
+ pattern: jL.NO_SPACES,
51097
+ message: NL.NO_SPACES_ALLOWED
50856
51098
  }),
50857
51099
  startsWithCapital: () => ({
50858
- pattern: CL.STARTS_WITH_CAPITAL,
50859
- message: TL.MUST_START_WITH_CAPITAL
51100
+ pattern: jL.STARTS_WITH_CAPITAL,
51101
+ message: NL.MUST_START_WITH_CAPITAL
50860
51102
  }),
50861
51103
  fileUpload: () => ({ validator: (e, t) => {
50862
51104
  if (!t || t.length === 0) return Promise.resolve();
50863
51105
  for (let e of t) {
50864
51106
  let t = e.originFileObj || e;
50865
- if (!(t.size / 1024 / 1024 <= wL.MAX_FILE_SIZE)) return q.error(TL.INVALID_FILE_SIZE), Promise.reject(Error(TL.INVALID_FILE_SIZE));
50866
- if (!wL.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(TL.INVALID_FILE_TYPE));
51107
+ if (!(t.size / 1024 / 1024 <= ML.MAX_FILE_SIZE)) return q.error(NL.INVALID_FILE_SIZE), Promise.reject(Error(NL.INVALID_FILE_SIZE));
51108
+ if (!ML.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(NL.INVALID_FILE_TYPE));
50867
51109
  }
50868
51110
  return Promise.resolve();
50869
51111
  } }),
50870
51112
  singleFileUpload: () => ({ validator: (e, t) => {
50871
51113
  if (!t || t.length === 0) return Promise.resolve();
50872
- if (t.length > wL.SINGLE_FILE_COUNT) return Promise.reject(Error(TL.SINGLE_FILE_ONLY));
51114
+ if (t.length > ML.SINGLE_FILE_COUNT) return Promise.reject(Error(NL.SINGLE_FILE_ONLY));
50873
51115
  let n = t[0];
50874
- return n.size / 1024 / 1024 < wL.MAX_FILE_SIZE ? wL.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(TL.INVALID_FILE_TYPE)) : Promise.reject(Error(TL.INVALID_FILE_SIZE));
51116
+ return n.size / 1024 / 1024 < ML.MAX_FILE_SIZE ? ML.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(NL.INVALID_FILE_TYPE)) : Promise.reject(Error(NL.INVALID_FILE_SIZE));
50875
51117
  } }),
50876
51118
  multiFileUpload: () => ({ validator: (e, t) => {
50877
51119
  if (!t || t.length === 0) return Promise.resolve();
50878
- if (t.length > wL.MULTI_FILE_COUNT) return Promise.reject(Error(TL.INVALID_FILE_COUNT));
51120
+ if (t.length > ML.MULTI_FILE_COUNT) return Promise.reject(Error(NL.INVALID_FILE_COUNT));
50879
51121
  for (let e of t) {
50880
- if (!(e.size / 1024 / 1024 < wL.MAX_FILE_SIZE)) return Promise.reject(Error(TL.INVALID_FILE_SIZE));
50881
- if (!wL.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(TL.INVALID_FILE_TYPE));
51122
+ if (!(e.size / 1024 / 1024 < ML.MAX_FILE_SIZE)) return Promise.reject(Error(NL.INVALID_FILE_SIZE));
51123
+ if (!ML.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(NL.INVALID_FILE_TYPE));
50882
51124
  }
50883
51125
  return Promise.resolve();
50884
51126
  } })
50885
- }, AL = { beforeUpload: (e) => [
51127
+ }, RL = { beforeUpload: (e) => [
50886
51128
  "image/jpeg",
50887
51129
  "image/png",
50888
51130
  "application/pdf"
50889
- ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), aa.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), aa.LIST_IGNORE) }, jL = () => {
51131
+ ].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), aa.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), aa.LIST_IGNORE) }, zL = () => {
50890
51132
  let [e] = B.useForm();
50891
51133
  return /* @__PURE__ */ Y("div", {
50892
51134
  style: { padding: 24 },
@@ -50906,7 +51148,7 @@ var CL = {
50906
51148
  children: /* @__PURE__ */ Y(B.Item, {
50907
51149
  label: "Email",
50908
51150
  name: "email",
50909
- rules: [kL.required("Email"), kL.email()],
51151
+ rules: [LL.required("Email"), LL.email()],
50910
51152
  children: /* @__PURE__ */ Y(V, {})
50911
51153
  })
50912
51154
  }),
@@ -50915,12 +51157,12 @@ var CL = {
50915
51157
  children: /* @__PURE__ */ Y(B.Item, {
50916
51158
  label: "Phone Number",
50917
51159
  name: "phone",
50918
- rules: [kL.required("Phone Number"), kL.phone()],
51160
+ rules: [LL.required("Phone Number"), LL.phone()],
50919
51161
  validateTrigger: ["onBlur", "onChange"],
50920
51162
  children: /* @__PURE__ */ Y(V, {
50921
51163
  maxLength: 10,
50922
51164
  onChange: (t) => {
50923
- e.setFieldsValue({ phone: OL.phoneFormatter(t.target.value) });
51165
+ e.setFieldsValue({ phone: IL.phoneFormatter(t.target.value) });
50924
51166
  }
50925
51167
  })
50926
51168
  })
@@ -50930,7 +51172,7 @@ var CL = {
50930
51172
  children: /* @__PURE__ */ Y(B.Item, {
50931
51173
  label: "Password",
50932
51174
  name: "password",
50933
- rules: [kL.required("Password"), kL.password()],
51175
+ rules: [LL.required("Password"), LL.password()],
50934
51176
  children: /* @__PURE__ */ Y(V.Password, {})
50935
51177
  })
50936
51178
  }),
@@ -50940,13 +51182,13 @@ var CL = {
50940
51182
  label: "Full Name",
50941
51183
  name: "fullName",
50942
51184
  rules: [
50943
- kL.required("Full Name"),
50944
- kL.alphabets(),
50945
- kL.firstNameMinLength(),
50946
- kL.firstNameMaxLength()
51185
+ LL.required("Full Name"),
51186
+ LL.alphabets(),
51187
+ LL.firstNameMinLength(),
51188
+ LL.firstNameMaxLength()
50947
51189
  ],
50948
51190
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50949
- e.setFieldsValue({ fullName: OL.firstNameFormatter(t.target.value) });
51191
+ e.setFieldsValue({ fullName: IL.firstNameFormatter(t.target.value) });
50950
51192
  } })
50951
51193
  })
50952
51194
  }),
@@ -50955,9 +51197,9 @@ var CL = {
50955
51197
  children: /* @__PURE__ */ Y(B.Item, {
50956
51198
  label: "Username",
50957
51199
  name: "username",
50958
- rules: [kL.required("Username"), kL.alphanumeric()],
51200
+ rules: [LL.required("Username"), LL.alphanumeric()],
50959
51201
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50960
- e.setFieldsValue({ username: OL.removeExtraSpaces(t.target.value) });
51202
+ e.setFieldsValue({ username: IL.removeExtraSpaces(t.target.value) });
50961
51203
  } })
50962
51204
  })
50963
51205
  }),
@@ -50966,9 +51208,9 @@ var CL = {
50966
51208
  children: /* @__PURE__ */ Y(B.Item, {
50967
51209
  label: "Website URL",
50968
51210
  name: "website",
50969
- rules: [kL.required("Website URL"), kL.url()],
51211
+ rules: [LL.required("Website URL"), LL.url()],
50970
51212
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50971
- e.setFieldsValue({ website: OL.removeExtraSpaces(t.target.value) });
51213
+ e.setFieldsValue({ website: IL.removeExtraSpaces(t.target.value) });
50972
51214
  } })
50973
51215
  })
50974
51216
  }),
@@ -50977,9 +51219,9 @@ var CL = {
50977
51219
  children: /* @__PURE__ */ Y(B.Item, {
50978
51220
  label: "MSP Req ID",
50979
51221
  name: "mspreqID",
50980
- rules: [kL.required("MSP Req ID"), kL.candidateId("MSP Req ID")],
51222
+ rules: [LL.required("MSP Req ID"), LL.candidateId("MSP Req ID")],
50981
51223
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50982
- e.setFieldsValue({ mspreqID: OL.removeExtraSpaces(t.target.value) });
51224
+ e.setFieldsValue({ mspreqID: IL.removeExtraSpaces(t.target.value) });
50983
51225
  } })
50984
51226
  })
50985
51227
  }),
@@ -50988,9 +51230,9 @@ var CL = {
50988
51230
  children: /* @__PURE__ */ Y(B.Item, {
50989
51231
  label: "Candidate ID",
50990
51232
  name: "candidateId",
50991
- rules: [kL.required("Candidate ID"), kL.candidateId("Candidate ID")],
51233
+ rules: [LL.required("Candidate ID"), LL.candidateId("Candidate ID")],
50992
51234
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50993
- e.setFieldsValue({ candidateId: OL.removeExtraSpaces(t.target.value) });
51235
+ e.setFieldsValue({ candidateId: IL.removeExtraSpaces(t.target.value) });
50994
51236
  } })
50995
51237
  })
50996
51238
  }),
@@ -51000,10 +51242,10 @@ var CL = {
51000
51242
  label: "Remarks",
51001
51243
  name: "remarks",
51002
51244
  rules: [
51003
- kL.required("Remarks"),
51004
- kL.remarks(),
51005
- kL.remarksMinLength(),
51006
- kL.remarksMaxLength()
51245
+ LL.required("Remarks"),
51246
+ LL.remarks(),
51247
+ LL.remarksMinLength(),
51248
+ LL.remarksMaxLength()
51007
51249
  ],
51008
51250
  children: /* @__PURE__ */ Y(V.TextArea, { rows: 4 })
51009
51251
  })
@@ -51013,7 +51255,7 @@ var CL = {
51013
51255
  children: /* @__PURE__ */ Y(B.Item, {
51014
51256
  label: "Designation",
51015
51257
  name: "designation",
51016
- rules: [kL.required("Designation"), kL.designation()],
51258
+ rules: [LL.required("Designation"), LL.designation()],
51017
51259
  children: /* @__PURE__ */ Y(V, {})
51018
51260
  })
51019
51261
  }),
@@ -51022,12 +51264,12 @@ var CL = {
51022
51264
  children: /* @__PURE__ */ Y(B.Item, {
51023
51265
  label: "Date of Birth",
51024
51266
  name: "dob",
51025
- rules: [kL.dob()],
51267
+ rules: [LL.dob()],
51026
51268
  children: /* @__PURE__ */ Y(V, {
51027
51269
  placeholder: "MM/DD/YYYY",
51028
51270
  maxLength: 10,
51029
51271
  onChange: (t) => {
51030
- e.setFieldsValue({ dob: OL.dobFormatter(t.target.value) });
51272
+ e.setFieldsValue({ dob: IL.dobFormatter(t.target.value) });
51031
51273
  }
51032
51274
  })
51033
51275
  })
@@ -51037,7 +51279,7 @@ var CL = {
51037
51279
  children: /* @__PURE__ */ Y(B.Item, {
51038
51280
  label: "Company Name",
51039
51281
  name: "companyName",
51040
- rules: [kL.required("Company Name"), kL.companyName()],
51282
+ rules: [LL.required("Company Name"), LL.companyName()],
51041
51283
  children: /* @__PURE__ */ Y(V, {})
51042
51284
  })
51043
51285
  }),
@@ -51126,7 +51368,7 @@ var CL = {
51126
51368
  label: "Resume new",
51127
51369
  name: "resume",
51128
51370
  children: /* @__PURE__ */ Y(aa, {
51129
- beforeUpload: AL.beforeUpload,
51371
+ beforeUpload: RL.beforeUpload,
51130
51372
  maxCount: 1,
51131
51373
  children: /* @__PURE__ */ Y(R, { children: "Upload Resume" })
51132
51374
  })
@@ -51139,10 +51381,10 @@ var CL = {
51139
51381
  name: "documents",
51140
51382
  valuePropName: "fileList",
51141
51383
  getValueFromEvent: (e) => e?.fileList,
51142
- rules: [kL.multiFileUpload()],
51384
+ rules: [LL.multiFileUpload()],
51143
51385
  children: /* @__PURE__ */ Y(aa, {
51144
51386
  multiple: !0,
51145
- beforeUpload: AL.beforeUpload,
51387
+ beforeUpload: RL.beforeUpload,
51146
51388
  children: /* @__PURE__ */ Y(R, { children: "Upload Documents" })
51147
51389
  })
51148
51390
  })
@@ -51154,9 +51396,9 @@ var CL = {
51154
51396
  name: "file",
51155
51397
  valuePropName: "fileList",
51156
51398
  getValueFromEvent: (e) => e?.fileList,
51157
- rules: [kL.fileUpload()],
51399
+ rules: [LL.fileUpload()],
51158
51400
  children: /* @__PURE__ */ Y(aa, {
51159
- beforeUpload: AL.beforeUpload,
51401
+ beforeUpload: RL.beforeUpload,
51160
51402
  maxCount: 1,
51161
51403
  children: /* @__PURE__ */ Y(R, { children: "Upload" })
51162
51404
  })
@@ -51216,12 +51458,12 @@ var CL = {
51216
51458
  };
51217
51459
  //#endregion
51218
51460
  //#region src/pages/admin/AdminPageWithShell.jsx
51219
- function ML(e) {
51461
+ function BL(e) {
51220
51462
  return /* @__PURE__ */ Y(OE, { children: /* @__PURE__ */ Y(BM, { ...e }) });
51221
51463
  }
51222
51464
  //#endregion
51223
51465
  //#region src/components/cards/StatsCards.jsx
51224
- var { Text: NL } = ia, PL = [
51466
+ var { Text: VL } = ia, HL = [
51225
51467
  {
51226
51468
  label: "Total Jobs",
51227
51469
  value: 1697,
@@ -51237,13 +51479,13 @@ var { Text: NL } = ia, PL = [
51237
51479
  value: 600,
51238
51480
  icon: "user"
51239
51481
  }
51240
- ], FL = {
51482
+ ], UL = {
51241
51483
  fileText: /* @__PURE__ */ Y($a, {}),
51242
51484
  checkCircle: /* @__PURE__ */ Y(Sa, {}),
51243
51485
  user: /* @__PURE__ */ Y(es, {}),
51244
51486
  filter: /* @__PURE__ */ Y(to, {})
51245
51487
  };
51246
- function IL({ stats: e = PL }) {
51488
+ function WL({ stats: e = HL }) {
51247
51489
  return /* @__PURE__ */ Y(Oi, { children: /* @__PURE__ */ Y(Ji, {
51248
51490
  gutter: [12, 12],
51249
51491
  children: e.map((e) => /* @__PURE__ */ Y(z, {
@@ -51256,7 +51498,7 @@ function IL({ stats: e = PL }) {
51256
51498
  className: "stats-inner-card",
51257
51499
  children: [/* @__PURE__ */ X(U, {
51258
51500
  align: "center",
51259
- children: [FL[e.icon] ?? FL.fileText, /* @__PURE__ */ Y(NL, { children: e.label })]
51501
+ children: [UL[e.icon] ?? UL.fileText, /* @__PURE__ */ Y(VL, { children: e.label })]
51260
51502
  }), /* @__PURE__ */ Y(Qi, { value: e.value })]
51261
51503
  })
51262
51504
  }, e.label))
@@ -51264,21 +51506,21 @@ function IL({ stats: e = PL }) {
51264
51506
  }
51265
51507
  //#endregion
51266
51508
  //#region src/pages/Modules/Admin/UsersSection.jsx
51267
- var { Text: LL } = ia;
51268
- function RL(e) {
51509
+ var { Text: GL } = ia;
51510
+ function KL(e) {
51269
51511
  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 ?? "?"}`;
51270
51512
  }
51271
- function zL(e) {
51513
+ function qL(e) {
51272
51514
  return {
51273
51515
  ...e,
51274
51516
  key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
51275
- _name: RL(e),
51517
+ _name: KL(e),
51276
51518
  _email: e.email ?? e.EMAIL ?? e.user_email ?? "",
51277
51519
  _role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
51278
51520
  _rawRef: e
51279
51521
  };
51280
51522
  }
51281
- function BL() {
51523
+ function JL() {
51282
51524
  let [e, t] = L([]), [n, r] = L(0), [i, a] = L(!1), [o, s] = L(1), [c, l] = L(10), [u, d] = L(""), f = yi(async ({ offset: e, limit: n, searchQuery: i } = {}) => {
51283
51525
  a(!0);
51284
51526
  try {
@@ -51286,7 +51528,7 @@ function BL() {
51286
51528
  offset: e,
51287
51529
  limit: n,
51288
51530
  searchQuery: i ?? ""
51289
- }), o = (a.users ?? []).map(zL);
51531
+ }), o = (a.users ?? []).map(qL);
51290
51532
  t(o), r(a.total ?? o.length);
51291
51533
  } catch {
51292
51534
  q.error("Failed to load users");
@@ -51319,7 +51561,7 @@ function BL() {
51319
51561
  label: "Name",
51320
51562
  value: "_name",
51321
51563
  width: 220,
51322
- render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(LL, {
51564
+ render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(GL, {
51323
51565
  strong: !0,
51324
51566
  style: { fontSize: 13 },
51325
51567
  children: e
@@ -51351,7 +51593,7 @@ function BL() {
51351
51593
  }
51352
51594
  //#endregion
51353
51595
  //#region src/pages/Modules/Admin/TeamsSection.jsx
51354
- var { Text: VL } = ia, HL = [
51596
+ var { Text: YL } = ia, XL = [
51355
51597
  {
51356
51598
  key: "job",
51357
51599
  label: "Jobs"
@@ -51364,7 +51606,7 @@ var { Text: VL } = ia, HL = [
51364
51606
  key: "submissions",
51365
51607
  label: "Submissions"
51366
51608
  }
51367
- ], UL = [
51609
+ ], ZL = [
51368
51610
  {
51369
51611
  key: "listView",
51370
51612
  label: "List View"
@@ -51378,7 +51620,7 @@ var { Text: VL } = ia, HL = [
51378
51620
  label: "Form"
51379
51621
  }
51380
51622
  ];
51381
- function WL({ field: e, index: t, onToggle: n, onReorder: r }) {
51623
+ function QL({ field: e, index: t, onToggle: n, onReorder: r }) {
51382
51624
  let i = Si(null), [a, o] = L(!1), [s, c] = L(!1);
51383
51625
  function l(e) {
51384
51626
  i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
@@ -51442,7 +51684,7 @@ function WL({ field: e, index: t, onToggle: n, onReorder: r }) {
51442
51684
  ]
51443
51685
  });
51444
51686
  }
51445
- function GL({ team: e, configType: t }) {
51687
+ function $L({ team: e, configType: t }) {
51446
51688
  let [n, r] = L({}), [i, a] = L(!1), [o, s] = L({}), [c, l] = L("job");
51447
51689
  F(() => {
51448
51690
  e && (a(!0), Nt(e, t).then(r).catch(() => q.error("Failed to load field config")).finally(() => a(!1)));
@@ -51493,7 +51735,7 @@ function GL({ team: e, configType: t }) {
51493
51735
  size: "small",
51494
51736
  activeKey: c,
51495
51737
  onChange: l,
51496
- items: HL.map((e) => ({
51738
+ items: XL.map((e) => ({
51497
51739
  key: e.key,
51498
51740
  label: e.label
51499
51741
  }))
@@ -51522,7 +51764,7 @@ function GL({ team: e, configType: t }) {
51522
51764
  children: [u.length === 0 && !i && /* @__PURE__ */ Y("div", {
51523
51765
  className: "uss-empty",
51524
51766
  children: "No fields found."
51525
- }), u.map((e, t) => /* @__PURE__ */ Y(WL, {
51767
+ }), u.map((e, t) => /* @__PURE__ */ Y(QL, {
51526
51768
  field: e,
51527
51769
  index: t,
51528
51770
  onToggle: f,
@@ -51536,13 +51778,13 @@ function GL({ team: e, configType: t }) {
51536
51778
  size: "small",
51537
51779
  loading: o[c],
51538
51780
  onClick: m,
51539
- children: ["Save ", HL.find((e) => e.key === c)?.label]
51781
+ children: ["Save ", XL.find((e) => e.key === c)?.label]
51540
51782
  })
51541
51783
  })
51542
51784
  ]
51543
51785
  });
51544
51786
  }
51545
- function KL() {
51787
+ function eR() {
51546
51788
  let [e, t] = L(null), [n, r] = L(!1), [i, a] = L(!1), [o, s] = L("listView"), [c, l] = L([]), [u, d] = L(0), [f, p] = L(!1), [m, h] = L(""), [g, _] = L(!1), v = yi(async () => {
51547
51789
  p(!0);
51548
51790
  try {
@@ -51689,13 +51931,13 @@ function KL() {
51689
51931
  style: { marginBottom: 12 },
51690
51932
  children: /* @__PURE__ */ Y("div", {
51691
51933
  className: "uss-config-toggle",
51692
- children: UL.map((e) => /* @__PURE__ */ Y("button", {
51934
+ children: ZL.map((e) => /* @__PURE__ */ Y("button", {
51693
51935
  className: `uss-config-btn${o === e.key ? " active" : ""}`,
51694
51936
  onClick: () => s(e.key),
51695
51937
  children: e.label
51696
51938
  }, e.key))
51697
51939
  })
51698
- }), e && /* @__PURE__ */ Y(GL, {
51940
+ }), e && /* @__PURE__ */ Y($L, {
51699
51941
  team: e,
51700
51942
  configType: o
51701
51943
  }, `${e?.teamId}-${o}`)]
@@ -51704,12 +51946,12 @@ function KL() {
51704
51946
  }
51705
51947
  //#endregion
51706
51948
  //#region src/pages/Modules/Admin/components/RolePermPanel.jsx
51707
- var qL = [
51949
+ var tR = [
51708
51950
  "view",
51709
51951
  "add",
51710
51952
  "edit",
51711
51953
  "delete"
51712
- ], JL = {
51954
+ ], nR = {
51713
51955
  view: "View",
51714
51956
  add: "Add",
51715
51957
  edit: "Edit",
@@ -51724,18 +51966,18 @@ var qL = [
51724
51966
  reApprove: "ReApprove",
51725
51967
  sendApprove: "Send Approve"
51726
51968
  };
51727
- function YL(e) {
51728
- return JL[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
51969
+ function rR(e) {
51970
+ return nR[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
51729
51971
  }
51730
- function XL(e) {
51731
- let t = qL.filter((t) => e.includes(t)), n = e.filter((e) => !qL.includes(e)).sort();
51972
+ function iR(e) {
51973
+ let t = tR.filter((t) => e.includes(t)), n = e.filter((e) => !tR.includes(e)).sort();
51732
51974
  return [...t, ...n];
51733
51975
  }
51734
- function ZL(e) {
51976
+ function aR(e) {
51735
51977
  let t = /* @__PURE__ */ new Set();
51736
- return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), XL([...t]);
51978
+ return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), iR([...t]);
51737
51979
  }
51738
- function QL(e) {
51980
+ function oR(e) {
51739
51981
  let t = 0, n = 0;
51740
51982
  return Object.entries(e).forEach(([e, { permissions: r }]) => {
51741
51983
  Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
@@ -51746,7 +51988,7 @@ function QL(e) {
51746
51988
  total: n
51747
51989
  };
51748
51990
  }
51749
- function $L(e = {}) {
51991
+ function sR(e = {}) {
51750
51992
  if (!e || typeof e != "object") return e;
51751
51993
  let t = Object.keys(e).find((e) => String(e).trim().toLowerCase() === "onboarding");
51752
51994
  if (!t) return e;
@@ -51763,7 +52005,7 @@ function $L(e = {}) {
51763
52005
  }
51764
52006
  };
51765
52007
  }
51766
- function eR({ value: e, onSave: t, className: n }) {
52008
+ function cR({ value: e, onSave: t, className: n }) {
51767
52009
  let [r, i] = L(!1), [a, o] = L(e);
51768
52010
  F(() => {
51769
52011
  o(e);
@@ -51792,7 +52034,7 @@ function eR({ value: e, onSave: t, className: n }) {
51792
52034
  children: [e, /* @__PURE__ */ Y(Ba, { className: "perm-name-edit-icon" })]
51793
52035
  });
51794
52036
  }
51795
- function tR({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
52037
+ function lR({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
51796
52038
  let [i, a] = L(!1), [o, s] = L(t), c = e?.value === "1", l = !!e;
51797
52039
  F(() => {
51798
52040
  s(t);
@@ -51834,13 +52076,13 @@ function tR({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
51834
52076
  })
51835
52077
  });
51836
52078
  }
51837
- function nR({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
52079
+ function uR({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
51838
52080
  let c = t?.permissions ?? {}, l = n.filter((t) => RD(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
51839
52081
  return /* @__PURE__ */ X("div", {
51840
52082
  className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
51841
52083
  children: [/* @__PURE__ */ X("div", {
51842
52084
  className: "perm-module-card-header",
51843
- children: [/* @__PURE__ */ Y(eR, {
52085
+ children: [/* @__PURE__ */ Y(cR, {
51844
52086
  value: i,
51845
52087
  onSave: (t) => o(e, t),
51846
52088
  className: "perm-module-card-name"
@@ -51854,20 +52096,20 @@ function nR({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
51854
52096
  })]
51855
52097
  }), /* @__PURE__ */ Y("div", {
51856
52098
  className: "perm-module-card-body",
51857
- children: l.map((t) => /* @__PURE__ */ Y(tR, {
52099
+ children: l.map((t) => /* @__PURE__ */ Y(lR, {
51858
52100
  entry: c[t],
51859
- label: a[t] ?? YL(t),
52101
+ label: a[t] ?? rR(t),
51860
52102
  onToggle: () => r(e, t),
51861
52103
  onLabelSave: (e) => s(t, e)
51862
52104
  }, t))
51863
52105
  })]
51864
52106
  });
51865
52107
  }
51866
- function rR({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
52108
+ function dR({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
51867
52109
  let [a, o] = L({}), [s, c] = L({}), [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(!1), h = li(e);
51868
52110
  F(() => {
51869
52111
  h && (u(!0), m(!1), De(h).then((e) => {
51870
- let t = $L(e);
52112
+ let t = sR(e);
51871
52113
  o(t), c(t);
51872
52114
  }).catch(() => q.error("Failed to load permissions")).finally(() => u(!1)));
51873
52115
  }, [h]);
@@ -51905,7 +52147,7 @@ function rR({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
51905
52147
  f(!1);
51906
52148
  }
51907
52149
  }
51908
- let v = I(() => Object.keys(s).sort(), [s]), y = I(() => ZL(s), [s]), { enabled: b, total: x } = I(() => QL(s), [s]);
52150
+ let v = I(() => Object.keys(s).sort(), [s]), y = I(() => aR(s), [s]), { enabled: b, total: x } = I(() => oR(s), [s]);
51909
52151
  return /* @__PURE__ */ X(Zi, {
51910
52152
  spinning: l,
51911
52153
  children: [
@@ -51956,7 +52198,7 @@ function rR({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
51956
52198
  children: "No permission entries found for this role."
51957
52199
  }) : /* @__PURE__ */ Y("div", {
51958
52200
  className: "perm-cards-grid",
51959
- children: v.map((e) => /* @__PURE__ */ Y(nR, {
52201
+ children: v.map((e) => /* @__PURE__ */ Y(uR, {
51960
52202
  menuName: e,
51961
52203
  menuData: s[e],
51962
52204
  permKeys: y,
@@ -51972,7 +52214,7 @@ function rR({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
51972
52214
  }
51973
52215
  //#endregion
51974
52216
  //#region src/pages/Modules/Admin/RolesSection.jsx
51975
- var { Text: iR } = ia, aR = [
52217
+ var { Text: fR } = ia, pR = [
51976
52218
  {
51977
52219
  key: "listView",
51978
52220
  label: "List View"
@@ -51990,38 +52232,38 @@ var { Text: iR } = ia, aR = [
51990
52232
  label: "Permissions"
51991
52233
  }
51992
52234
  ];
51993
- function oR(e) {
52235
+ function mR(e) {
51994
52236
  return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
51995
52237
  }
51996
- function sR(e) {
52238
+ function hR(e) {
51997
52239
  return String(e || "").trim().toLowerCase();
51998
52240
  }
51999
- function cR(e) {
52241
+ function gR(e) {
52000
52242
  return e?.key || e?.collectionName || e?.value || "";
52001
52243
  }
52002
- function lR(e = [], t = []) {
52244
+ function _R(e = [], t = []) {
52003
52245
  let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
52004
52246
  return e.forEach((e) => {
52005
- let t = cR(e);
52247
+ let t = gR(e);
52006
52248
  if (!t) return;
52007
- let o = sR(e.key || t), s = sR(e.collectionName);
52249
+ let o = hR(e.key || t), s = hR(e.collectionName);
52008
52250
  e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
52009
- label: e.label || oR(t),
52251
+ label: e.label || mR(t),
52010
52252
  value: t,
52011
52253
  disabled: !!e.seeded
52012
52254
  });
52013
52255
  }), t.forEach((e) => {
52014
52256
  let t = String(e || "").trim();
52015
52257
  if (!t || r.has(t)) return;
52016
- let o = sR(t);
52258
+ let o = hR(t);
52017
52259
  a.has(o) || i.has(o) || (r.add(t), n.push({
52018
- label: oR(t),
52260
+ label: mR(t),
52019
52261
  value: t,
52020
52262
  disabled: !1
52021
52263
  }));
52022
52264
  }), n;
52023
52265
  }
52024
- function uR() {
52266
+ function vR() {
52025
52267
  let [e, t] = L(null), [n, r] = L(!1), [i, a] = L("listView"), [o, s] = L([]), [c, l] = L(0), [u, d] = L(!1), [f, p] = L([]), [m, h] = L([]), [g, _] = L(!1), [v, y] = L(!1), b = I(() => f.filter((e) => !e.disabled), [f]), x = !g && b.length === 0, S = yi(async () => {
52026
52268
  d(!0);
52027
52269
  try {
@@ -52035,7 +52277,7 @@ function uR() {
52035
52277
  }, []), C = yi(async () => {
52036
52278
  _(!0);
52037
52279
  try {
52038
- let [e, t] = await Promise.all([Zr(), An()]), n = lR(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
52280
+ let [e, t] = await Promise.all([Zr(), An()]), n = _R(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
52039
52281
  p(n), h((e) => e.filter((e) => r.has(e)));
52040
52282
  } catch {
52041
52283
  q.error("Failed to load seed status");
@@ -52101,7 +52343,7 @@ function uR() {
52101
52343
  onClick: w,
52102
52344
  children: "Seed Field Config"
52103
52345
  })]
52104
- }), /* @__PURE__ */ Y(iR, {
52346
+ }), /* @__PURE__ */ Y(fR, {
52105
52347
  type: "secondary",
52106
52348
  style: {
52107
52349
  display: "block",
@@ -52181,13 +52423,13 @@ function uR() {
52181
52423
  style: { marginBottom: 12 },
52182
52424
  children: /* @__PURE__ */ Y("div", {
52183
52425
  className: "uss-config-toggle",
52184
- children: aR.map((e) => /* @__PURE__ */ Y("button", {
52426
+ children: pR.map((e) => /* @__PURE__ */ Y("button", {
52185
52427
  className: `uss-config-btn${i === e.key ? " active" : ""}`,
52186
52428
  onClick: () => a(e.key),
52187
52429
  children: e.label
52188
52430
  }, e.key))
52189
52431
  })
52190
- }), e && (i === "permissions" ? /* @__PURE__ */ Y(rR, { role: e }, e?.roleId) : /* @__PURE__ */ Y(nO, {
52432
+ }), e && (i === "permissions" ? /* @__PURE__ */ Y(dR, { role: e }, e?.roleId) : /* @__PURE__ */ Y(nO, {
52191
52433
  role: e,
52192
52434
  configType: i
52193
52435
  }, `${e?.roleId}-${i}`))]
@@ -52196,20 +52438,20 @@ function uR() {
52196
52438
  }
52197
52439
  //#endregion
52198
52440
  //#region src/pages/Modules/Admin/PermissionsPage.jsx
52199
- var dR = "perm-module-labels", fR = "perm-action-labels";
52200
- function pR(e) {
52441
+ var yR = "perm-module-labels", bR = "perm-action-labels";
52442
+ function xR(e) {
52201
52443
  try {
52202
52444
  return JSON.parse(localStorage.getItem(e) ?? "{}");
52203
52445
  } catch {
52204
52446
  return {};
52205
52447
  }
52206
52448
  }
52207
- function mR(e, t) {
52449
+ function SR(e, t) {
52208
52450
  try {
52209
52451
  localStorage.setItem(e, JSON.stringify(t));
52210
52452
  } catch {}
52211
52453
  }
52212
- function hR({ label: e, onSave: t, onDelete: n, loading: r }) {
52454
+ function CR({ label: e, onSave: t, onDelete: n, loading: r }) {
52213
52455
  let [i, a] = L(!1), [o, s] = L(e);
52214
52456
  function c() {
52215
52457
  a(!1);
@@ -52260,7 +52502,7 @@ function hR({ label: e, onSave: t, onDelete: n, loading: r }) {
52260
52502
  })]
52261
52503
  });
52262
52504
  }
52263
- function gR({ open: e, onClose: t }) {
52505
+ function wR({ open: e, onClose: t }) {
52264
52506
  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);
52265
52507
  F(() => {
52266
52508
  e && (S(), C());
@@ -52382,7 +52624,7 @@ function gR({ open: e, onClose: t }) {
52382
52624
  className: "perm-empty",
52383
52625
  style: { paddingTop: 24 },
52384
52626
  children: "No modules found"
52385
- }), i.map((e) => /* @__PURE__ */ Y(hR, {
52627
+ }), i.map((e) => /* @__PURE__ */ Y(CR, {
52386
52628
  label: e.MENUNAME,
52387
52629
  onSave: (t) => T(e.MENUID, t),
52388
52630
  onDelete: () => E(e.MENUID)
@@ -52427,7 +52669,7 @@ function gR({ open: e, onClose: t }) {
52427
52669
  className: "perm-empty",
52428
52670
  style: { paddingTop: 24 },
52429
52671
  children: "No actions found"
52430
- }), f.map((e) => /* @__PURE__ */ Y(hR, {
52672
+ }), f.map((e) => /* @__PURE__ */ Y(CR, {
52431
52673
  label: `${e.permissionName} (${e.permissionKey})`,
52432
52674
  onSave: (t) => O(e.permissionId, t),
52433
52675
  onDelete: () => k(e.permissionId)
@@ -52457,14 +52699,14 @@ function gR({ open: e, onClose: t }) {
52457
52699
  })
52458
52700
  });
52459
52701
  }
52460
- function _R() {
52461
- let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => pR(dR)), [f, p] = L(() => pR(fR)), m = yi((e, t) => {
52702
+ function TR() {
52703
+ let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => xR(yR)), [f, p] = L(() => xR(bR)), m = yi((e, t) => {
52462
52704
  d((n) => {
52463
52705
  let r = {
52464
52706
  ...n,
52465
52707
  [e]: t
52466
52708
  };
52467
- return mR(dR, r), r;
52709
+ return SR(yR, r), r;
52468
52710
  });
52469
52711
  }, []), h = yi((e, t) => {
52470
52712
  p((n) => {
@@ -52472,11 +52714,11 @@ function _R() {
52472
52714
  ...n,
52473
52715
  [e]: t
52474
52716
  };
52475
- return mR(fR, r), r;
52717
+ return SR(bR, r), r;
52476
52718
  });
52477
52719
  }, []);
52478
52720
  function g() {
52479
- d({}), p({}), mR(dR, {}), mR(fR, {}), q.success("Labels reset to defaults");
52721
+ d({}), p({}), SR(yR, {}), SR(bR, {}), q.success("Labels reset to defaults");
52480
52722
  }
52481
52723
  let _ = yi(async () => {
52482
52724
  r(!0);
@@ -52560,7 +52802,7 @@ function _R() {
52560
52802
  })]
52561
52803
  }),
52562
52804
  bodyStyle: { padding: "12px 16px" },
52563
- children: i ? /* @__PURE__ */ Y(rR, {
52805
+ children: i ? /* @__PURE__ */ Y(dR, {
52564
52806
  role: i,
52565
52807
  moduleLabels: u,
52566
52808
  actionLabels: f,
@@ -52571,7 +52813,7 @@ function _R() {
52571
52813
  children: "Select a role from the left to manage its permissions."
52572
52814
  })
52573
52815
  }),
52574
- /* @__PURE__ */ Y(gR, {
52816
+ /* @__PURE__ */ Y(wR, {
52575
52817
  open: c,
52576
52818
  onClose: () => l(!1)
52577
52819
  })
@@ -52580,7 +52822,7 @@ function _R() {
52580
52822
  }
52581
52823
  //#endregion
52582
52824
  //#region src/components/cards/OnboardingCard.jsx
52583
- var { Title: vR, Text: yR } = ia, bR = [
52825
+ var { Title: ER, Text: DR } = ia, OR = [
52584
52826
  {
52585
52827
  label: "In Progress",
52586
52828
  value: 107,
@@ -52606,10 +52848,10 @@ var { Title: vR, Text: yR } = ia, bR = [
52606
52848
  color: "peach"
52607
52849
  }
52608
52850
  ];
52609
- function xR({ items: e = bR }) {
52851
+ function kR({ items: e = OR }) {
52610
52852
  return /* @__PURE__ */ Y(Oi, {
52611
52853
  className: "onboarding-card",
52612
- title: /* @__PURE__ */ Y(vR, {
52854
+ title: /* @__PURE__ */ Y(ER, {
52613
52855
  level: 5,
52614
52856
  children: "Onboarding"
52615
52857
  }),
@@ -52628,7 +52870,7 @@ function xR({ items: e = bR }) {
52628
52870
  children: /* @__PURE__ */ X("div", {
52629
52871
  className: `onboarding-item ${e.color}`,
52630
52872
  children: [
52631
- /* @__PURE__ */ Y(yR, {
52873
+ /* @__PURE__ */ Y(DR, {
52632
52874
  className: "onboarding-item-label",
52633
52875
  children: e.label
52634
52876
  }),
@@ -52638,7 +52880,7 @@ function xR({ items: e = bR }) {
52638
52880
  }),
52639
52881
  /* @__PURE__ */ Y("div", {
52640
52882
  className: "onboarding-item-footer",
52641
- children: /* @__PURE__ */ Y(yR, {
52883
+ children: /* @__PURE__ */ Y(DR, {
52642
52884
  className: "onboarding-item-sub",
52643
52885
  children: e.sub
52644
52886
  })
@@ -52651,7 +52893,7 @@ function xR({ items: e = bR }) {
52651
52893
  }
52652
52894
  //#endregion
52653
52895
  //#region src/pages/Modules/LegacyAdminPage.jsx
52654
- var { Text: SR, Title: CR } = ia, wR = [
52896
+ var { Text: AR, Title: jR } = ia, MR = [
52655
52897
  {
52656
52898
  group: "Dashboard",
52657
52899
  items: [{
@@ -52866,7 +53108,7 @@ var { Text: SR, Title: CR } = ia, wR = [
52866
53108
  }
52867
53109
  ]
52868
53110
  }
52869
- ], TR = [
53111
+ ], NR = [
52870
53112
  {
52871
53113
  label: "Sourced",
52872
53114
  count: 312,
@@ -52897,7 +53139,7 @@ var { Text: SR, Title: CR } = ia, wR = [
52897
53139
  color: "#E24B4A",
52898
53140
  pct: 10
52899
53141
  }
52900
- ], ER = [
53142
+ ], PR = [
52901
53143
  {
52902
53144
  name: "Tcs",
52903
53145
  jobs: 14,
@@ -52918,7 +53160,7 @@ var { Text: SR, Title: CR } = ia, wR = [
52918
53160
  jobs: 5,
52919
53161
  candidates: 38
52920
53162
  }
52921
- ], DR = [
53163
+ ], FR = [
52922
53164
  {
52923
53165
  text: "New candidate Ravi Kumar added to Java Developer role",
52924
53166
  time: "2 min ago",
@@ -52945,7 +53187,7 @@ var { Text: SR, Title: CR } = ia, wR = [
52945
53187
  color: "#E24B4A"
52946
53188
  }
52947
53189
  ];
52948
- function OR() {
53190
+ function IR() {
52949
53191
  return /* @__PURE__ */ X("div", {
52950
53192
  style: {
52951
53193
  display: "flex",
@@ -52958,11 +53200,11 @@ function OR() {
52958
53200
  title: "Admin Dashboard",
52959
53201
  children: [
52960
53202
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
52961
- /* @__PURE__ */ Y(CR, {
53203
+ /* @__PURE__ */ Y(jR, {
52962
53204
  level: 5,
52963
53205
  children: "Admin Dashboard"
52964
53206
  }),
52965
- /* @__PURE__ */ Y(SR, {
53207
+ /* @__PURE__ */ Y(AR, {
52966
53208
  type: "secondary",
52967
53209
  children: "Overview of jobs, candidates, onboarding and recent activity"
52968
53210
  })
@@ -52970,7 +53212,7 @@ function OR() {
52970
53212
  }),
52971
53213
  /* @__PURE__ */ Y("div", {
52972
53214
  className: "admin-dashboard-stats",
52973
- children: /* @__PURE__ */ Y(IL, { stats: [
53215
+ children: /* @__PURE__ */ Y(WL, { stats: [
52974
53216
  {
52975
53217
  label: "Total Jobs",
52976
53218
  value: 1697,
@@ -53000,18 +53242,18 @@ function OR() {
53000
53242
  }),
53001
53243
  /* @__PURE__ */ X("div", {
53002
53244
  className: "admin-dashboard-mid-row",
53003
- children: [/* @__PURE__ */ Y(xR, {}), /* @__PURE__ */ X(zD, {
53245
+ children: [/* @__PURE__ */ Y(kR, {}), /* @__PURE__ */ X(zD, {
53004
53246
  icon: /* @__PURE__ */ Y(ua, {}),
53005
53247
  title: "Candidate Pipeline",
53006
53248
  children: [
53007
- /* @__PURE__ */ Y(SR, {
53249
+ /* @__PURE__ */ Y(AR, {
53008
53250
  type: "secondary",
53009
53251
  style: { fontSize: 12 },
53010
53252
  children: "By stage (892 total)"
53011
53253
  }),
53012
53254
  /* @__PURE__ */ Y("div", {
53013
53255
  className: "admin-pipeline-bar",
53014
- children: TR.map((e) => /* @__PURE__ */ Y("div", {
53256
+ children: NR.map((e) => /* @__PURE__ */ Y("div", {
53015
53257
  className: "admin-pipeline-seg",
53016
53258
  style: {
53017
53259
  width: `${e.pct}%`,
@@ -53021,7 +53263,7 @@ function OR() {
53021
53263
  }),
53022
53264
  /* @__PURE__ */ Y("div", {
53023
53265
  className: "admin-pipeline-legend",
53024
- children: TR.map((e) => /* @__PURE__ */ X("div", {
53266
+ children: NR.map((e) => /* @__PURE__ */ X("div", {
53025
53267
  className: "admin-pipeline-legend-item",
53026
53268
  children: [
53027
53269
  /* @__PURE__ */ Y("span", {
@@ -53035,7 +53277,7 @@ function OR() {
53035
53277
  }, e.label))
53036
53278
  }),
53037
53279
  /* @__PURE__ */ Y("div", { className: "admin-divider" }),
53038
- /* @__PURE__ */ Y(SR, {
53280
+ /* @__PURE__ */ Y(AR, {
53039
53281
  strong: !0,
53040
53282
  style: { fontSize: 12 },
53041
53283
  children: "Submission status"
@@ -53046,7 +53288,7 @@ function OR() {
53046
53288
  children: [
53047
53289
  /* @__PURE__ */ X("div", {
53048
53290
  className: "admin-sub-status-item",
53049
- children: [/* @__PURE__ */ Y(SR, {
53291
+ children: [/* @__PURE__ */ Y(AR, {
53050
53292
  style: { fontSize: 13 },
53051
53293
  children: "Pending client review"
53052
53294
  }), /* @__PURE__ */ Y("span", {
@@ -53056,7 +53298,7 @@ function OR() {
53056
53298
  }),
53057
53299
  /* @__PURE__ */ X("div", {
53058
53300
  className: "admin-sub-status-item",
53059
- children: [/* @__PURE__ */ Y(SR, {
53301
+ children: [/* @__PURE__ */ Y(AR, {
53060
53302
  style: { fontSize: 13 },
53061
53303
  children: "Client approved"
53062
53304
  }), /* @__PURE__ */ Y("span", {
@@ -53066,7 +53308,7 @@ function OR() {
53066
53308
  }),
53067
53309
  /* @__PURE__ */ X("div", {
53068
53310
  className: "admin-sub-status-item",
53069
- children: [/* @__PURE__ */ Y(SR, {
53311
+ children: [/* @__PURE__ */ Y(AR, {
53070
53312
  style: { fontSize: 13 },
53071
53313
  children: "Rejected"
53072
53314
  }), /* @__PURE__ */ Y("span", {
@@ -53089,7 +53331,7 @@ function OR() {
53089
53331
  size: "small",
53090
53332
  children: "View all"
53091
53333
  }),
53092
- children: ER.map((e) => /* @__PURE__ */ X("div", {
53334
+ children: PR.map((e) => /* @__PURE__ */ X("div", {
53093
53335
  className: "admin-client-row",
53094
53336
  children: [/* @__PURE__ */ X("div", {
53095
53337
  className: "admin-client-left",
@@ -53117,7 +53359,7 @@ function OR() {
53117
53359
  }), /* @__PURE__ */ Y(zD, {
53118
53360
  icon: /* @__PURE__ */ Y(ha, {}),
53119
53361
  title: "Recent Activity",
53120
- children: DR.map((e, t) => /* @__PURE__ */ X("div", {
53362
+ children: FR.map((e, t) => /* @__PURE__ */ X("div", {
53121
53363
  className: "admin-activity-row",
53122
53364
  children: [/* @__PURE__ */ Y("div", {
53123
53365
  className: "admin-activity-dot",
@@ -53145,7 +53387,7 @@ function OR() {
53145
53387
  children: [
53146
53388
  /* @__PURE__ */ X(z, {
53147
53389
  span: 8,
53148
- children: [/* @__PURE__ */ Y(SR, {
53390
+ children: [/* @__PURE__ */ Y(AR, {
53149
53391
  type: "secondary",
53150
53392
  style: {
53151
53393
  fontSize: 12,
@@ -53158,7 +53400,7 @@ function OR() {
53158
53400
  ["Templates", 2]
53159
53401
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
53160
53402
  className: "admin-cfg-overview-row",
53161
- children: [/* @__PURE__ */ Y(SR, {
53403
+ children: [/* @__PURE__ */ Y(AR, {
53162
53404
  style: { fontSize: 12 },
53163
53405
  children: e
53164
53406
  }), /* @__PURE__ */ X("span", {
@@ -53169,7 +53411,7 @@ function OR() {
53169
53411
  }),
53170
53412
  /* @__PURE__ */ X(z, {
53171
53413
  span: 8,
53172
- children: [/* @__PURE__ */ Y(SR, {
53414
+ children: [/* @__PURE__ */ Y(AR, {
53173
53415
  type: "secondary",
53174
53416
  style: {
53175
53417
  fontSize: 12,
@@ -53182,7 +53424,7 @@ function OR() {
53182
53424
  ["Submissions", 2]
53183
53425
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
53184
53426
  className: "admin-cfg-overview-row",
53185
- children: [/* @__PURE__ */ Y(SR, {
53427
+ children: [/* @__PURE__ */ Y(AR, {
53186
53428
  style: { fontSize: 12 },
53187
53429
  children: e
53188
53430
  }), /* @__PURE__ */ X("span", {
@@ -53193,7 +53435,7 @@ function OR() {
53193
53435
  }),
53194
53436
  /* @__PURE__ */ X(z, {
53195
53437
  span: 8,
53196
- children: [/* @__PURE__ */ Y(SR, {
53438
+ children: [/* @__PURE__ */ Y(AR, {
53197
53439
  type: "secondary",
53198
53440
  style: {
53199
53441
  fontSize: 12,
@@ -53206,10 +53448,10 @@ function OR() {
53206
53448
  ["Config Items", 19]
53207
53449
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
53208
53450
  className: "admin-cfg-overview-row",
53209
- children: [/* @__PURE__ */ Y(SR, {
53451
+ children: [/* @__PURE__ */ Y(AR, {
53210
53452
  style: { fontSize: 12 },
53211
53453
  children: e
53212
- }), /* @__PURE__ */ Y(SR, {
53454
+ }), /* @__PURE__ */ Y(AR, {
53213
53455
  strong: !0,
53214
53456
  style: { fontSize: 12 },
53215
53457
  children: t
@@ -53222,7 +53464,7 @@ function OR() {
53222
53464
  ]
53223
53465
  });
53224
53466
  }
53225
- function kR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
53467
+ function LR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
53226
53468
  return /* @__PURE__ */ X(Ji, {
53227
53469
  gutter: [16, 16],
53228
53470
  children: [
@@ -53241,11 +53483,11 @@ function kR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
53241
53483
  }),
53242
53484
  children: [
53243
53485
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
53244
- /* @__PURE__ */ Y(CR, {
53486
+ /* @__PURE__ */ Y(jR, {
53245
53487
  level: 5,
53246
53488
  children: e?.heading
53247
53489
  }),
53248
- /* @__PURE__ */ Y(SR, {
53490
+ /* @__PURE__ */ Y(AR, {
53249
53491
  type: "secondary",
53250
53492
  children: e?.desc
53251
53493
  })
@@ -53259,7 +53501,7 @@ function kR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
53259
53501
  children: /* @__PURE__ */ Y(zD, {
53260
53502
  icon: /* @__PURE__ */ Y(ua, {}),
53261
53503
  title: "Configuration Items",
53262
- extra: /* @__PURE__ */ X(SR, {
53504
+ extra: /* @__PURE__ */ X(AR, {
53263
53505
  type: "secondary",
53264
53506
  children: [
53265
53507
  n.length,
@@ -53326,7 +53568,7 @@ function kR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
53326
53568
  title: "Section Overview",
53327
53569
  children: [/* @__PURE__ */ Y("div", {
53328
53570
  className: "admin-overview-list",
53329
- children: wR.filter((e) => e.group !== "Dashboard").map((e) => {
53571
+ children: MR.filter((e) => e.group !== "Dashboard").map((e) => {
53330
53572
  let n = e.group === t?.group;
53331
53573
  return /* @__PURE__ */ X("div", {
53332
53574
  className: `admin-overview-item${n ? " active" : ""}`,
@@ -53374,12 +53616,12 @@ function kR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
53374
53616
  ]
53375
53617
  });
53376
53618
  }
53377
- function AR() {
53378
- let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => wR.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => wR.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
53619
+ function RR() {
53620
+ let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => MR.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => MR.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
53379
53621
  if (!a?.cards) return [];
53380
53622
  let e = n.trim().toLowerCase();
53381
53623
  return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
53382
- }, [a, n]), c = I(() => wR.map((e) => ({
53624
+ }, [a, n]), c = I(() => MR.map((e) => ({
53383
53625
  key: e.group,
53384
53626
  type: "group",
53385
53627
  label: e.group,
@@ -53428,7 +53670,7 @@ function AR() {
53428
53670
  children: "Groups"
53429
53671
  }), /* @__PURE__ */ Y("span", {
53430
53672
  className: "admin-sidebar-pill-value",
53431
- children: wR.length
53673
+ children: MR.length
53432
53674
  })]
53433
53675
  })
53434
53676
  }), /* @__PURE__ */ Y(z, {
@@ -53458,7 +53700,7 @@ function AR() {
53458
53700
  xs: 24,
53459
53701
  lg: 18,
53460
53702
  xl: 19,
53461
- children: e === "dashboard" ? /* @__PURE__ */ Y(OR, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(qk, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(bA, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(lj, {}) : a?.component === "users" ? /* @__PURE__ */ Y(BL, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(KL, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(uR, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(_R, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(xj, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(Tj, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(jj, {}) : /* @__PURE__ */ Y(kR, {
53703
+ children: e === "dashboard" ? /* @__PURE__ */ Y(IR, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(qk, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(bA, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(lj, {}) : a?.component === "users" ? /* @__PURE__ */ Y(JL, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(eR, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(vR, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(TR, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(xj, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(Tj, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(jj, {}) : /* @__PURE__ */ Y(LR, {
53462
53704
  activeSection: a,
53463
53705
  activeGroup: o,
53464
53706
  filteredCards: s,
@@ -53473,8 +53715,8 @@ function AR() {
53473
53715
  }
53474
53716
  //#endregion
53475
53717
  //#region src/pages/stickyNotesFullPage.jsx
53476
- var { Title: jR } = ia;
53477
- function MR() {
53718
+ var { Title: zR } = ia;
53719
+ function BR() {
53478
53720
  let e = ds(), { state: t } = us(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
53479
53721
  ...t?.request,
53480
53722
  params: {
@@ -53499,7 +53741,7 @@ function MR() {
53499
53741
  }
53500
53742
  //#endregion
53501
53743
  //#region src/pages/BulkUpload/index.jsx
53502
- var { Text: NR, Title: PR } = ia, FR = 10485760, IR = "/templates/test_cases_flow_template.base64.txt", LR = "test_cases_flow_template.xlsx", RR = "module | subModule | step_order | description | actions | key | value | expected | scenario", zR = {
53744
+ var { Text: VR, Title: HR } = ia, UR = 10485760, WR = "/templates/test_cases_flow_template.base64.txt", GR = "test_cases_flow_template.xlsx", KR = "module | subModule | step_order | description | actions | key | value | expected | scenario", qR = {
53503
53745
  idle: 0,
53504
53746
  module_set: 1,
53505
53747
  encoding: 1,
@@ -53508,7 +53750,7 @@ var { Text: NR, Title: PR } = ia, FR = 10485760, IR = "/templates/test_cases_flo
53508
53750
  inserting: 3,
53509
53751
  done: 4,
53510
53752
  error: 1
53511
- }, BR = [
53753
+ }, JR = [
53512
53754
  {
53513
53755
  label: "Home",
53514
53756
  href: "/"
@@ -53522,31 +53764,31 @@ var { Text: NR, Title: PR } = ia, FR = 10485760, IR = "/templates/test_cases_flo
53522
53764
  href: "/bulk-upload"
53523
53765
  }
53524
53766
  ];
53525
- function VR(e) {
53767
+ function YR(e) {
53526
53768
  return new Promise((t, n) => {
53527
53769
  let r = new FileReader();
53528
53770
  r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
53529
53771
  });
53530
53772
  }
53531
- function HR(e) {
53773
+ function XR(e) {
53532
53774
  return e.filter((e) => e.row_status === "valid").map((e) => {
53533
53775
  let t = { ...e };
53534
53776
  return delete t.row_status, delete t.errors, t;
53535
53777
  });
53536
53778
  }
53537
- function UR(e) {
53779
+ function ZR(e) {
53538
53780
  return e.flatMap((e) => (e.errors ?? []).map((t) => ({
53539
53781
  id: e.id,
53540
53782
  ...t
53541
53783
  })));
53542
53784
  }
53543
- function WR({ errors: e }) {
53785
+ function QR({ errors: e }) {
53544
53786
  return /* @__PURE__ */ Y("div", {
53545
53787
  className: "bulk-tooltip-errors",
53546
53788
  children: (e ?? []).map((e, t) => /* @__PURE__ */ Y("div", { children: e.message }, `${e.field}-${t}`))
53547
53789
  });
53548
53790
  }
53549
- function GR({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
53791
+ function $R({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
53550
53792
  return e.length === 0 ? null : /* @__PURE__ */ X("div", {
53551
53793
  className: "bulk-error-banner",
53552
53794
  children: [/* @__PURE__ */ X("div", {
@@ -53577,7 +53819,7 @@ function GR({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
53577
53819
  })]
53578
53820
  });
53579
53821
  }
53580
- function KR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
53822
+ function ez({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
53581
53823
  let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
53582
53824
  return /* @__PURE__ */ X(J, { children: [
53583
53825
  /* @__PURE__ */ X(Ji, {
@@ -53593,7 +53835,7 @@ function KR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
53593
53835
  type: t === "errors" ? "primary" : "default",
53594
53836
  onClick: () => n("errors"),
53595
53837
  children: "Errors only"
53596
- })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(NR, {
53838
+ })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(VR, {
53597
53839
  type: "secondary",
53598
53840
  children: [e.length, " row(s)"]
53599
53841
  }) })]
@@ -53665,7 +53907,7 @@ function KR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
53665
53907
  children: "Valid"
53666
53908
  }) }),
53667
53909
  /* @__PURE__ */ Y("td", { children: n ? /* @__PURE__ */ Y(K, {
53668
- title: /* @__PURE__ */ Y(WR, { errors: t }),
53910
+ title: /* @__PURE__ */ Y(QR, { errors: t }),
53669
53911
  placement: "left",
53670
53912
  children: /* @__PURE__ */ X("button", {
53671
53913
  type: "button",
@@ -53702,11 +53944,11 @@ function KR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
53702
53944
  })
53703
53945
  ] });
53704
53946
  }
53705
- function qR() {
53947
+ function tz() {
53706
53948
  let e = ds(), t = I(() => g(), []), n = Si(null), r = Si(null), [i, a] = L([]), [o, s] = L(""), [c, l] = L("idle"), [u, d] = L(!1), [f, p] = L(null), [m, h] = L([]), [_, v] = L("all"), [y, b] = L(null), [x, S] = L(null), [C, w] = L(!1), T = i.map((e) => ({
53707
53949
  value: e.modulename,
53708
53950
  label: e.modulename
53709
- })), E = UR(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = zR[c] ?? 0, ee = m.find((e) => e.row_status === "invalid")?.id, A = yi(() => {
53951
+ })), E = ZR(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = qR[c] ?? 0, ee = m.find((e) => e.row_status === "invalid")?.id, A = yi(() => {
53710
53952
  s(""), l("idle"), d(!1), p(null), h([]), v("all"), b(null), S(null), n.current && (n.current.value = "");
53711
53953
  }, []);
53712
53954
  F(() => {
@@ -53732,7 +53974,7 @@ function qR() {
53732
53974
  l("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
53733
53975
  return;
53734
53976
  }
53735
- if (e.size > FR) {
53977
+ if (e.size > UR) {
53736
53978
  l("module_set"), b({ message: "File must be 10 MB or smaller." });
53737
53979
  return;
53738
53980
  }
@@ -53741,7 +53983,7 @@ function qR() {
53741
53983
  size: e.size
53742
53984
  }), l("encoding");
53743
53985
  try {
53744
- let r = await VR(e);
53986
+ let r = await YR(e);
53745
53987
  l("validating");
53746
53988
  let i = await BE({
53747
53989
  filename: e.name,
@@ -53759,12 +54001,12 @@ function qR() {
53759
54001
  }
53760
54002
  }, ne = async () => {
53761
54003
  try {
53762
- let e = await fetch(IR);
54004
+ let e = await fetch(WR);
53763
54005
  if (!e.ok) throw Error(`Template file not found (${e.status})`);
53764
54006
  let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
53765
54007
  for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
53766
54008
  let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
53767
- o.href = a, o.download = LR, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
54009
+ o.href = a, o.download = GR, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
53768
54010
  } catch (e) {
53769
54011
  console.error(e), q.error("Unable to download sample template.");
53770
54012
  }
@@ -53775,7 +54017,7 @@ function qR() {
53775
54017
  project: t?.name ?? "",
53776
54018
  module: o,
53777
54019
  uploaded_by: localStorage.getItem("user_Email") ?? "",
53778
- rows: HR(m)
54020
+ rows: XR(m)
53779
54021
  });
53780
54022
  S(n), l("done"), q.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
53781
54023
  } catch (e) {
@@ -53802,7 +54044,7 @@ function qR() {
53802
54044
  align: "middle",
53803
54045
  justify: "space-between",
53804
54046
  className: "breadcrumb-action-wrapper",
53805
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: BR }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(NR, {
54047
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: JR }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(VR, {
53806
54048
  strong: !0,
53807
54049
  children: t.name
53808
54050
  }) })]
@@ -53811,16 +54053,16 @@ function qR() {
53811
54053
  children: [
53812
54054
  /* @__PURE__ */ X("div", {
53813
54055
  className: "bulk-header",
53814
- children: [/* @__PURE__ */ Y(PR, {
54056
+ children: [/* @__PURE__ */ Y(HR, {
53815
54057
  level: 3,
53816
54058
  children: "Bulk upload test cases"
53817
54059
  }), /* @__PURE__ */ X(U, {
53818
54060
  direction: "vertical",
53819
54061
  size: 4,
53820
- children: [/* @__PURE__ */ Y(NR, {
54062
+ children: [/* @__PURE__ */ Y(VR, {
53821
54063
  type: "secondary",
53822
- children: RR
53823
- }), /* @__PURE__ */ Y(NR, {
54064
+ children: KR
54065
+ }), /* @__PURE__ */ Y(VR, {
53824
54066
  type: "secondary",
53825
54067
  children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
53826
54068
  })]
@@ -53918,7 +54160,7 @@ function qR() {
53918
54160
  className: "v1-card zt-fall",
53919
54161
  title: "3. Validation result",
53920
54162
  children: [
53921
- /* @__PURE__ */ Y(GR, {
54163
+ /* @__PURE__ */ Y($R, {
53922
54164
  errors: E,
53923
54165
  expanded: C,
53924
54166
  onToggle: () => w((e) => !e),
@@ -53930,7 +54172,7 @@ function qR() {
53930
54172
  message: y.message,
53931
54173
  className: "bulk-inline-alert"
53932
54174
  }),
53933
- /* @__PURE__ */ Y(KR, {
54175
+ /* @__PURE__ */ Y(ez, {
53934
54176
  rows: m,
53935
54177
  view: _,
53936
54178
  onViewChange: v,
@@ -53953,17 +54195,17 @@ function qR() {
53953
54195
  /* @__PURE__ */ Y(z, {
53954
54196
  xs: 24,
53955
54197
  md: 8,
53956
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(NR, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
54198
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(VR, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: m.length })] })
53957
54199
  }),
53958
54200
  /* @__PURE__ */ Y(z, {
53959
54201
  xs: 24,
53960
54202
  md: 8,
53961
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(NR, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
54203
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(VR, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
53962
54204
  }),
53963
54205
  /* @__PURE__ */ Y(z, {
53964
54206
  xs: 24,
53965
54207
  md: 8,
53966
- children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(NR, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
54208
+ children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(VR, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
53967
54209
  })
53968
54210
  ]
53969
54211
  }),
@@ -53987,7 +54229,7 @@ function qR() {
53987
54229
  }
53988
54230
  //#endregion
53989
54231
  //#region src/services/dropdownValues/testPageValues.js
53990
- var JR = [
54232
+ var nz = [
53991
54233
  {
53992
54234
  value: "navigate",
53993
54235
  label: "Navigate"
@@ -54120,75 +54362,75 @@ var JR = [
54120
54362
  value: "wait_for_text",
54121
54363
  label: "Wait For Text"
54122
54364
  }
54123
- ], { Text: YR } = ia, XR = [{
54365
+ ], { Text: rz } = ia, iz = [{
54124
54366
  label: "Home",
54125
54367
  href: "/"
54126
54368
  }, {
54127
54369
  label: "Test Cases",
54128
54370
  href: "/test-cases"
54129
- }], ZR = {
54371
+ }], az = {
54130
54372
  tags: "regression",
54131
54373
  active: 1
54132
- }, QR = { module: {
54374
+ }, oz = { module: {
54133
54375
  dbName: "Modules",
54134
54376
  formField: "module",
54135
54377
  label: "Module"
54136
54378
  } };
54137
- function $R(e = []) {
54379
+ function sz(e = []) {
54138
54380
  return e.map((e) => ({
54139
54381
  value: e,
54140
54382
  label: e
54141
54383
  }));
54142
54384
  }
54143
- function ez(e = "") {
54385
+ function cz(e = "") {
54144
54386
  return String(e ?? "").trim();
54145
54387
  }
54146
- function tz(e = "") {
54147
- return ez(e).toLowerCase();
54388
+ function lz(e = "") {
54389
+ return cz(e).toLowerCase();
54148
54390
  }
54149
- function nz(e = []) {
54391
+ function uz(e = []) {
54150
54392
  let t = /* @__PURE__ */ new Map();
54151
54393
  return e.forEach((e) => {
54152
- let n = ez(e?.flow), r = n.toLowerCase();
54394
+ let n = cz(e?.flow), r = n.toLowerCase();
54153
54395
  n && !t.has(r) && t.set(r, n);
54154
54396
  }), Array.from(t.values()).map((e) => ({
54155
54397
  value: e,
54156
54398
  label: e
54157
54399
  }));
54158
54400
  }
54159
- function rz(e = [], t, n) {
54160
- let r = ez(t).toLowerCase(), i = ez(n).toLowerCase();
54401
+ function dz(e = [], t, n) {
54402
+ let r = cz(t).toLowerCase(), i = cz(n).toLowerCase();
54161
54403
  return e.reduce((e, t) => {
54162
- let n = ez(t?.module).toLowerCase(), a = ez(t?.flow).toLowerCase();
54404
+ let n = cz(t?.module).toLowerCase(), a = cz(t?.flow).toLowerCase();
54163
54405
  if (n !== r || a !== i) return e;
54164
54406
  let o = Number(t?.step_order) || 0;
54165
54407
  return Math.max(e, o);
54166
54408
  }, 0) + 1;
54167
54409
  }
54168
- function iz({ icon: e, title: t }) {
54410
+ function fz({ icon: e, title: t }) {
54169
54411
  return /* @__PURE__ */ X(U, {
54170
54412
  size: 10,
54171
54413
  align: "center",
54172
54414
  children: [/* @__PURE__ */ Y("div", {
54173
54415
  className: "v1-section-icon-box",
54174
54416
  children: e
54175
- }), /* @__PURE__ */ Y(YR, {
54417
+ }), /* @__PURE__ */ Y(rz, {
54176
54418
  strong: !0,
54177
54419
  className: "v1-section-label",
54178
54420
  children: t
54179
54421
  })]
54180
54422
  });
54181
54423
  }
54182
- function az() {
54424
+ function pz() {
54183
54425
  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({
54184
54426
  open: !1,
54185
54427
  typeKey: "module"
54186
- }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ds(), x = QR[f.typeKey], S = I(() => $R(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!ez(C), E = !!ez(w), D = !T, O = !T || !E, k = (e, t = []) => {
54428
+ }), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ds(), x = oz[f.typeKey], S = I(() => sz(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!cz(C), E = !!cz(w), D = !T, O = !T || !E, k = (e, t = []) => {
54187
54429
  e === "module" && r(t);
54188
54430
  }, ee = async () => {
54189
54431
  l(!0);
54190
54432
  try {
54191
- let e = await FE(QR.module.dbName);
54433
+ let e = await FE(oz.module.dbName);
54192
54434
  r(e?.items ?? []);
54193
54435
  } catch (e) {
54194
54436
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -54196,7 +54438,7 @@ function az() {
54196
54438
  l(!1);
54197
54439
  }
54198
54440
  }, A = yi(async (t) => {
54199
- let n = ez(t);
54441
+ let n = cz(t);
54200
54442
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
54201
54443
  d(!0);
54202
54444
  try {
@@ -54205,7 +54447,7 @@ function az() {
54205
54447
  offset: 0,
54206
54448
  module: n
54207
54449
  }), t = Array.isArray(e?.items) ? e.items : [];
54208
- a(t), s(nz(t));
54450
+ a(t), s(uz(t));
54209
54451
  } catch (e) {
54210
54452
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
54211
54453
  } finally {
@@ -54213,14 +54455,14 @@ function az() {
54213
54455
  }
54214
54456
  }
54215
54457
  }, [e]), j = yi(async (t, n, r) => {
54216
- let i = ez(t), a = ez(n);
54458
+ let i = cz(t), a = cz(n);
54217
54459
  if (!i || !a) {
54218
54460
  e.setFieldsValue({ step_order: void 0 });
54219
54461
  return;
54220
54462
  }
54221
54463
  _(!0);
54222
54464
  try {
54223
- e.setFieldsValue({ step_order: rz(r, i, a) });
54465
+ e.setFieldsValue({ step_order: dz(r, i, a) });
54224
54466
  } catch (e) {
54225
54467
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
54226
54468
  } finally {
@@ -54241,15 +54483,15 @@ function az() {
54241
54483
  ]);
54242
54484
  let te = async (t) => {
54243
54485
  let n = {
54244
- module: ez(t.module),
54245
- flow: ez(t.flow),
54486
+ module: cz(t.module),
54487
+ flow: cz(t.flow),
54246
54488
  step_order: Number(t.step_order),
54247
- description: ez(t.description),
54248
- keyword: tz(t.keyword),
54249
- target: ez(t.target),
54250
- value: ez(t.value),
54251
- expected: ez(t.expected),
54252
- tags: t.tags ? ez(t.tags) : ZR.tags,
54489
+ description: cz(t.description),
54490
+ keyword: lz(t.keyword),
54491
+ target: cz(t.target),
54492
+ value: cz(t.value),
54493
+ expected: cz(t.expected),
54494
+ tags: t.tags ? cz(t.tags) : az.tags,
54253
54495
  active: Number(t.active)
54254
54496
  };
54255
54497
  y(!0);
@@ -54261,26 +54503,26 @@ function az() {
54261
54503
  y(!1);
54262
54504
  }
54263
54505
  }, ne = (t, n) => {
54264
- e.setFieldsValue({ [t]: ez(n) });
54506
+ e.setFieldsValue({ [t]: cz(n) });
54265
54507
  }, M = (t) => {
54266
54508
  e.setFieldsValue({
54267
- module: ez(t),
54509
+ module: cz(t),
54268
54510
  flow: void 0,
54269
54511
  step_order: void 0,
54270
54512
  keyword: void 0,
54271
54513
  description: void 0,
54272
54514
  target: void 0,
54273
- tags: ZR.tags,
54515
+ tags: az.tags,
54274
54516
  value: void 0,
54275
54517
  expected: void 0
54276
54518
  });
54277
54519
  }, re = (t) => {
54278
54520
  e.setFieldsValue({
54279
- flow: ez(t),
54521
+ flow: cz(t),
54280
54522
  step_order: void 0
54281
54523
  });
54282
54524
  }, ie = (e) => {
54283
- let n = QR[e];
54525
+ let n = oz[e];
54284
54526
  p({
54285
54527
  open: !0,
54286
54528
  typeKey: e
@@ -54295,7 +54537,7 @@ function az() {
54295
54537
  })), t.resetFields();
54296
54538
  }, ae = async () => {
54297
54539
  try {
54298
- let n = ez((await t.validateFields()).name), r = await IE({
54540
+ let n = cz((await t.validateFields()).name), r = await IE({
54299
54541
  name: n,
54300
54542
  type: x.dbName
54301
54543
  });
@@ -54313,7 +54555,7 @@ function az() {
54313
54555
  align: "middle",
54314
54556
  justify: "space-between",
54315
54557
  className: "breadcrumb-action-wrapper",
54316
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: XR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
54558
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: iz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
54317
54559
  type: "link",
54318
54560
  onClick: () => b("/zinnext-home"),
54319
54561
  children: "View Table"
@@ -54328,7 +54570,7 @@ function az() {
54328
54570
  children: /* @__PURE__ */ X(U, {
54329
54571
  align: "center",
54330
54572
  size: 10,
54331
- children: [/* @__PURE__ */ Y(To, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(YR, {
54573
+ children: [/* @__PURE__ */ Y(To, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(rz, {
54332
54574
  strong: !0,
54333
54575
  style: { fontSize: 16 },
54334
54576
  children: "Add Test Case"
@@ -54344,16 +54586,16 @@ function az() {
54344
54586
  className: "v1-required-mark",
54345
54587
  children: " *"
54346
54588
  })] }),
54347
- initialValues: ZR,
54589
+ initialValues: az,
54348
54590
  onFinish: te,
54349
54591
  autoComplete: "off",
54350
54592
  children: [/* @__PURE__ */ Y(Oi, {
54351
54593
  className: "v1-card",
54352
- title: /* @__PURE__ */ Y(iz, {
54594
+ title: /* @__PURE__ */ Y(fz, {
54353
54595
  icon: /* @__PURE__ */ Y($a, {}),
54354
54596
  title: "Test Case Details"
54355
54597
  }),
54356
- extra: /* @__PURE__ */ Y(YR, {
54598
+ extra: /* @__PURE__ */ Y(rz, {
54357
54599
  type: "secondary",
54358
54600
  className: "v1-card-subtitle",
54359
54601
  children: "Module, flow, step order and execution data"
@@ -54430,8 +54672,8 @@ function az() {
54430
54672
  disabled: O,
54431
54673
  optionFilterProp: "label",
54432
54674
  placeholder: "Select action",
54433
- options: JR,
54434
- onChange: (t) => e.setFieldsValue({ keyword: tz(t) })
54675
+ options: nz,
54676
+ onChange: (t) => e.setFieldsValue({ keyword: lz(t) })
54435
54677
  })
54436
54678
  })
54437
54679
  }),
@@ -54551,7 +54793,7 @@ function az() {
54551
54793
  maxLength: 100,
54552
54794
  placeholder: `Enter ${x.label.toLowerCase()} name`,
54553
54795
  onBlur: (e) => {
54554
- t.setFieldsValue({ name: ez(e.target.value) });
54796
+ t.setFieldsValue({ name: cz(e.target.value) });
54555
54797
  }
54556
54798
  })
54557
54799
  }), /* @__PURE__ */ Y(B.Item, {
@@ -54568,23 +54810,23 @@ function az() {
54568
54810
  }
54569
54811
  //#endregion
54570
54812
  //#region src/pages/TestingPage/ZinnextTestForm.jsx
54571
- var { Text: oz } = ia, sz = [{
54813
+ var { Text: mz } = ia, hz = [{
54572
54814
  label: "Home",
54573
54815
  href: "/"
54574
54816
  }, {
54575
54817
  label: "Test Cases",
54576
54818
  href: "/addTestCase"
54577
54819
  }];
54578
- function cz(e = "") {
54820
+ function gz(e = "") {
54579
54821
  return String(e ?? "").trim();
54580
54822
  }
54581
- function lz(e = [], t) {
54823
+ function _z(e = [], t) {
54582
54824
  return e.map((e) => ({
54583
54825
  value: e.id,
54584
54826
  label: e[t]
54585
54827
  }));
54586
54828
  }
54587
- var uz = [
54829
+ var vz = [
54588
54830
  {
54589
54831
  label: "Step",
54590
54832
  value: "step_order",
@@ -54623,22 +54865,22 @@ var uz = [
54623
54865
  children: "Negative"
54624
54866
  })
54625
54867
  }
54626
- ], dz = {
54868
+ ], yz = {
54627
54869
  key: !1,
54628
54870
  value: !1,
54629
54871
  expected: !1
54630
54872
  };
54631
- function fz(e, t) {
54632
- return t ? e[t] ?? dz : dz;
54873
+ function bz(e, t) {
54874
+ return t ? e[t] ?? yz : yz;
54633
54875
  }
54634
- function pz(e, t) {
54876
+ function xz(e, t) {
54635
54877
  e.setFields(t.map((e) => ({
54636
54878
  name: e,
54637
54879
  errors: []
54638
54880
  })));
54639
54881
  }
54640
- function mz() {
54641
- let [e] = B.useForm(), t = ds(), [n] = ps(), r = n.get("edit"), i = !!r, a = I(() => g(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(JR), [m, h] = L({}), [_, v] = L(!1), [y, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), ee = !!D, A = !!O, j = I(() => fz(m, k), [m, k]), te = I(() => lz(o, "modulename"), [o]), ne = I(() => lz(c, "submodulename"), [c]), M = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), re = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), ie = yi(async () => {
54882
+ function Sz() {
54883
+ let [e] = B.useForm(), t = ds(), [n] = ps(), r = n.get("edit"), i = !!r, a = I(() => g(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(nz), [m, h] = L({}), [_, v] = L(!1), [y, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), ee = !!D, A = !!O, j = I(() => bz(m, k), [m, k]), te = I(() => _z(o, "modulename"), [o]), ne = I(() => _z(c, "submodulename"), [c]), M = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), re = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), ie = yi(async () => {
54642
54884
  try {
54643
54885
  let e = await LE();
54644
54886
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
@@ -54784,10 +55026,10 @@ function mz() {
54784
55026
  align: "middle",
54785
55027
  justify: "space-between",
54786
55028
  className: "breadcrumb-action-wrapper",
54787
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: sz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
55029
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: hz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
54788
55030
  size: 6,
54789
55031
  className: "zt-section-title",
54790
- children: [/* @__PURE__ */ Y(Eo, {}), /* @__PURE__ */ Y(oz, {
55032
+ children: [/* @__PURE__ */ Y(Eo, {}), /* @__PURE__ */ Y(mz, {
54791
55033
  strong: !0,
54792
55034
  children: a.name
54793
55035
  })]
@@ -54808,11 +55050,11 @@ function mz() {
54808
55050
  product_parent_ID: Number(a?.id),
54809
55051
  module_parent_ID: Number(n.module),
54810
55052
  submodule_parent_ID: Number(n.submodule),
54811
- description: cz(n.description),
54812
- actions: cz(n.actions),
54813
- key: cz(n.key),
54814
- value: cz(n.value),
54815
- expected: cz(n.expected),
55053
+ description: gz(n.description),
55054
+ actions: gz(n.actions),
55055
+ key: gz(n.key),
55056
+ value: gz(n.value),
55057
+ expected: gz(n.expected),
54816
55058
  scenario: +!!n.scenario,
54817
55059
  active: +!!n.active
54818
55060
  };
@@ -54878,7 +55120,7 @@ function mz() {
54878
55120
  key: void 0,
54879
55121
  value: void 0,
54880
55122
  expected: void 0
54881
- }), pz(e, [
55123
+ }), xz(e, [
54882
55124
  "actions",
54883
55125
  "key",
54884
55126
  "value",
@@ -54909,7 +55151,7 @@ function mz() {
54909
55151
  key: void 0,
54910
55152
  value: void 0,
54911
55153
  expected: void 0
54912
- }), pz(e, [
55154
+ }), xz(e, [
54913
55155
  "actions",
54914
55156
  "key",
54915
55157
  "value",
@@ -54963,7 +55205,7 @@ function mz() {
54963
55205
  /* @__PURE__ */ Y("span", { children: "Step Details" })
54964
55206
  ]
54965
55207
  }),
54966
- extra: /* @__PURE__ */ X(oz, {
55208
+ extra: /* @__PURE__ */ X(mz, {
54967
55209
  type: "secondary",
54968
55210
  children: [
54969
55211
  M,
@@ -55003,13 +55245,13 @@ function mz() {
55003
55245
  placeholder: "Select action",
55004
55246
  options: f,
55005
55247
  onChange: (t) => {
55006
- let n = fz(m, t);
55248
+ let n = bz(m, t);
55007
55249
  e.setFieldsValue({
55008
55250
  actions: t,
55009
55251
  key: n.key ? e.getFieldValue("key") : void 0,
55010
55252
  value: n.value ? e.getFieldValue("value") : void 0,
55011
55253
  expected: n.expected ? e.getFieldValue("expected") : void 0
55012
- }), pz(e, [
55254
+ }), xz(e, [
55013
55255
  "key",
55014
55256
  "value",
55015
55257
  "expected"
@@ -55118,7 +55360,7 @@ function mz() {
55118
55360
  children: /* @__PURE__ */ Y(sS, {
55119
55361
  listName: "Added Steps",
55120
55362
  loading: x,
55121
- fields: uz,
55363
+ fields: vz,
55122
55364
  dataSource: u,
55123
55365
  current: 1,
55124
55366
  pageSize: Math.max(u.length, 1),
@@ -55134,7 +55376,7 @@ function mz() {
55134
55376
  }
55135
55377
  //#endregion
55136
55378
  //#region src/pages/TestingPage/ManageModules.jsx
55137
- var { Text: hz } = ia, gz = [
55379
+ var { Text: Cz } = ia, wz = [
55138
55380
  {
55139
55381
  label: "Home",
55140
55382
  href: "/"
@@ -55148,7 +55390,7 @@ var { Text: hz } = ia, gz = [
55148
55390
  href: "/manageModules"
55149
55391
  }
55150
55392
  ];
55151
- function _z() {
55393
+ function Tz() {
55152
55394
  let e = ds(), t = I(() => g(), []), [n, r] = L([]), [i, a] = L({}), [o, s] = L(!1), [c, l] = L(!1), [u, d] = L(""), [f, p] = L(!1), [m, h] = L(1), [_, v] = L(10), y = yi(async (e) => {
55153
55395
  if (!e) {
55154
55396
  r([]);
@@ -55216,7 +55458,7 @@ function _z() {
55216
55458
  align: "middle",
55217
55459
  justify: "space-between",
55218
55460
  className: "breadcrumb-action-wrapper",
55219
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: gz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
55461
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: wz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
55220
55462
  type: "link",
55221
55463
  onClick: () => e("/addTestCase"),
55222
55464
  children: "Back to Form"
@@ -55236,7 +55478,7 @@ function _z() {
55236
55478
  children: [
55237
55479
  /* @__PURE__ */ Y(Eo, {}),
55238
55480
  /* @__PURE__ */ Y("span", { children: "Project:" }),
55239
- /* @__PURE__ */ Y(hz, {
55481
+ /* @__PURE__ */ Y(Cz, {
55240
55482
  strong: !0,
55241
55483
  children: t.name
55242
55484
  })
@@ -55312,7 +55554,7 @@ function _z() {
55312
55554
  children: /* @__PURE__ */ X(U, {
55313
55555
  direction: "vertical",
55314
55556
  className: "zt-modal-stack",
55315
- children: [/* @__PURE__ */ X(hz, {
55557
+ children: [/* @__PURE__ */ X(Cz, {
55316
55558
  type: "secondary",
55317
55559
  children: ["Project: ", /* @__PURE__ */ Y("b", { children: t.name })]
55318
55560
  }), /* @__PURE__ */ Y(V, {
@@ -55329,7 +55571,7 @@ function _z() {
55329
55571
  }
55330
55572
  //#endregion
55331
55573
  //#region src/pages/TestingPage/ManageSubmodules.jsx
55332
- var { Text: vz } = ia, yz = [
55574
+ var { Text: Ez } = ia, Dz = [
55333
55575
  {
55334
55576
  label: "Home",
55335
55577
  href: "/"
@@ -55347,7 +55589,7 @@ var { Text: vz } = ia, yz = [
55347
55589
  href: "/test-cases/zinnext/submodules"
55348
55590
  }
55349
55591
  ];
55350
- function bz() {
55592
+ function Oz() {
55351
55593
  let e = ds(), [t] = ps(), n = I(() => g(), []), r = t.get("module") ?? "", [i, a] = L([]), [o, s] = L(!1), [c, l] = L(!1), [u, d] = L(""), [f, p] = L(!1), [m, h] = L(1), [_, v] = L(10), y = yi(async (e, t) => {
55352
55594
  if (!e || !t) {
55353
55595
  a([]);
@@ -55417,7 +55659,7 @@ function bz() {
55417
55659
  align: "middle",
55418
55660
  justify: "space-between",
55419
55661
  className: "breadcrumb-action-wrapper",
55420
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: yz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
55662
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Dz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
55421
55663
  type: "link",
55422
55664
  onClick: () => e("/manageModules"),
55423
55665
  children: "Back to Modules"
@@ -55440,7 +55682,7 @@ function bz() {
55440
55682
  children: [
55441
55683
  /* @__PURE__ */ Y(Eo, {}),
55442
55684
  /* @__PURE__ */ Y("span", { children: "Project:" }),
55443
- /* @__PURE__ */ Y(vz, {
55685
+ /* @__PURE__ */ Y(Ez, {
55444
55686
  strong: !0,
55445
55687
  children: n.name
55446
55688
  })
@@ -55450,7 +55692,7 @@ function bz() {
55450
55692
  children: [
55451
55693
  /* @__PURE__ */ Y(ua, {}),
55452
55694
  /* @__PURE__ */ Y("span", { children: "Module:" }),
55453
- /* @__PURE__ */ Y(vz, {
55695
+ /* @__PURE__ */ Y(Ez, {
55454
55696
  strong: !0,
55455
55697
  children: r
55456
55698
  })
@@ -55513,7 +55755,7 @@ function bz() {
55513
55755
  children: /* @__PURE__ */ X(U, {
55514
55756
  direction: "vertical",
55515
55757
  className: "zt-modal-stack",
55516
- children: [/* @__PURE__ */ X(vz, {
55758
+ children: [/* @__PURE__ */ X(Ez, {
55517
55759
  type: "secondary",
55518
55760
  children: [
55519
55761
  "Project: ",
@@ -55535,7 +55777,7 @@ function bz() {
55535
55777
  }
55536
55778
  //#endregion
55537
55779
  //#region src/pages/TestingPage/ZinnextTableView.jsx
55538
- var { Text: xz } = ia, Sz = [
55780
+ var { Text: kz } = ia, Az = [
55539
55781
  {
55540
55782
  label: "Home",
55541
55783
  href: "/"
@@ -55549,7 +55791,7 @@ var { Text: xz } = ia, Sz = [
55549
55791
  href: "/viewTestCase"
55550
55792
  }
55551
55793
  ];
55552
- function Cz() {
55794
+ function jz() {
55553
55795
  let e = ds(), [t, n] = L([]), [r, i] = L(0), [a, o] = L(!1), s = I(() => g(), []), [c, l] = L(""), [u, d] = L(1), [f, p] = L(20), [m, h] = L(null), _ = yi(async (e = {}) => {
55554
55796
  o(!0);
55555
55797
  try {
@@ -55609,7 +55851,7 @@ function Cz() {
55609
55851
  align: "middle",
55610
55852
  justify: "space-between",
55611
55853
  className: "breadcrumb-action-wrapper",
55612
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Sz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
55854
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Az }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
55613
55855
  type: "link",
55614
55856
  onClick: () => e("/addTestCase"),
55615
55857
  children: "Back to Form"
@@ -55623,7 +55865,7 @@ function Cz() {
55623
55865
  className: "zt-section-title",
55624
55866
  children: [/* @__PURE__ */ Y(Uo, {}), /* @__PURE__ */ Y("span", { children: "Test Flows" })]
55625
55867
  }),
55626
- extra: /* @__PURE__ */ X(xz, {
55868
+ extra: /* @__PURE__ */ X(kz, {
55627
55869
  type: "secondary",
55628
55870
  children: [r, " row(s)"]
55629
55871
  }),
@@ -55777,17 +56019,17 @@ function Cz() {
55777
56019
  }
55778
56020
  //#endregion
55779
56021
  //#region src/pages/TestingPage/testHomePage.jsx
55780
- var wz = [{
56022
+ var Mz = [{
55781
56023
  label: "Home",
55782
56024
  href: "/"
55783
56025
  }, {
55784
56026
  label: "Test Cases",
55785
56027
  href: "/test-cases"
55786
56028
  }];
55787
- function Tz() {
56029
+ function Nz() {
55788
56030
  return /* @__PURE__ */ X("main", {
55789
56031
  className: "jobs-list-page",
55790
- children: [/* @__PURE__ */ Y(Fr, { items: wz }), /* @__PURE__ */ Y(km, {
56032
+ children: [/* @__PURE__ */ Y(Fr, { items: Mz }), /* @__PURE__ */ Y(km, {
55791
56033
  moduleName: "test-flows",
55792
56034
  rowKey: "id"
55793
56035
  })]
@@ -55795,85 +56037,85 @@ function Tz() {
55795
56037
  }
55796
56038
  //#endregion
55797
56039
  //#region src/pages/TestingPage/lms-test-form.jsx
55798
- var { Text: Ez } = ia, Dz = [{
56040
+ var { Text: Pz } = ia, Fz = [{
55799
56041
  label: "Home",
55800
56042
  href: "/"
55801
56043
  }, {
55802
56044
  label: "LMS Cases",
55803
56045
  href: "/lms-cases"
55804
- }], Oz = {
56046
+ }], Iz = {
55805
56047
  tags: "regression",
55806
56048
  active: 1
55807
- }, kz = { module: {
56049
+ }, Lz = { module: {
55808
56050
  dbName: "Modules",
55809
56051
  formField: "module",
55810
56052
  label: "Module"
55811
- } }, Az = {
56053
+ } }, Rz = {
55812
56054
  key: !1,
55813
56055
  value: !1,
55814
56056
  expected: !1
55815
56057
  };
55816
- function jz(e, t) {
55817
- return t ? e[t] ?? Az : Az;
56058
+ function zz(e, t) {
56059
+ return t ? e[t] ?? Rz : Rz;
55818
56060
  }
55819
- function Mz(e, t) {
56061
+ function Bz(e, t) {
55820
56062
  e.setFields(t.map((e) => ({
55821
56063
  name: e,
55822
56064
  errors: []
55823
56065
  })));
55824
56066
  }
55825
- function Nz(e = []) {
56067
+ function Vz(e = []) {
55826
56068
  return e.map((e) => ({
55827
56069
  value: e,
55828
56070
  label: e
55829
56071
  }));
55830
56072
  }
55831
- function Pz(e = "") {
56073
+ function Hz(e = "") {
55832
56074
  return String(e ?? "").trim();
55833
56075
  }
55834
- function Fz(e = []) {
56076
+ function Uz(e = []) {
55835
56077
  let t = /* @__PURE__ */ new Map();
55836
56078
  return e.forEach((e) => {
55837
- let n = Pz(e?.flow), r = n.toLowerCase();
56079
+ let n = Hz(e?.flow), r = n.toLowerCase();
55838
56080
  n && !t.has(r) && t.set(r, n);
55839
56081
  }), Array.from(t.values()).map((e) => ({
55840
56082
  value: e,
55841
56083
  label: e
55842
56084
  }));
55843
56085
  }
55844
- function Iz(e = [], t, n) {
55845
- let r = Pz(t).toLowerCase(), i = Pz(n).toLowerCase();
56086
+ function Wz(e = [], t, n) {
56087
+ let r = Hz(t).toLowerCase(), i = Hz(n).toLowerCase();
55846
56088
  return e.reduce((e, t) => {
55847
- let n = Pz(t?.module).toLowerCase(), a = Pz(t?.flow).toLowerCase();
56089
+ let n = Hz(t?.module).toLowerCase(), a = Hz(t?.flow).toLowerCase();
55848
56090
  if (n !== r || a !== i) return e;
55849
56091
  let o = Number(t?.step_order) || 0;
55850
56092
  return Math.max(e, o);
55851
56093
  }, 0) + 1;
55852
56094
  }
55853
- function Lz({ icon: e, title: t }) {
56095
+ function Gz({ icon: e, title: t }) {
55854
56096
  return /* @__PURE__ */ X(U, {
55855
56097
  size: 10,
55856
56098
  align: "center",
55857
56099
  children: [/* @__PURE__ */ Y("div", {
55858
56100
  className: "v1-section-icon-box",
55859
56101
  children: e
55860
- }), /* @__PURE__ */ Y(Ez, {
56102
+ }), /* @__PURE__ */ Y(Pz, {
55861
56103
  strong: !0,
55862
56104
  className: "v1-section-label",
55863
56105
  children: t
55864
56106
  })]
55865
56107
  });
55866
56108
  }
55867
- function Rz() {
55868
- let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(JR), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
56109
+ function Kz() {
56110
+ let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(nz), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
55869
56111
  open: !1,
55870
56112
  typeKey: "module"
55871
- }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ds(), T = kz[g.typeKey], E = I(() => Nz(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), ee = !!Pz(D), A = !!Pz(O), j = !ee, te = !ee || !A, ne = I(() => jz(u, k), [u, k]), M = (e, t = []) => {
56113
+ }), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ds(), T = Lz[g.typeKey], E = I(() => Vz(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), ee = !!Hz(D), A = !!Hz(O), j = !ee, te = !ee || !A, ne = I(() => zz(u, k), [u, k]), M = (e, t = []) => {
55872
56114
  e === "module" && r(t);
55873
56115
  }, re = async () => {
55874
56116
  p(!0);
55875
56117
  try {
55876
- let e = await FE(kz.module.dbName);
56118
+ let e = await FE(Lz.module.dbName);
55877
56119
  r(e?.items ?? []);
55878
56120
  } catch (e) {
55879
56121
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -55888,7 +56130,7 @@ function Rz() {
55888
56130
  console.error("Unable to load action field rules:", e), q.error("Unable to load action validation rules.");
55889
56131
  }
55890
56132
  }, N = yi(async (t) => {
55891
- let n = Pz(t);
56133
+ let n = Hz(t);
55892
56134
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
55893
56135
  h(!0);
55894
56136
  try {
@@ -55897,7 +56139,7 @@ function Rz() {
55897
56139
  offset: 0,
55898
56140
  module: n
55899
56141
  }), t = Array.isArray(e?.items) ? e.items : [];
55900
- a(t), s(Fz(t));
56142
+ a(t), s(Uz(t));
55901
56143
  } catch (e) {
55902
56144
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
55903
56145
  } finally {
@@ -55905,14 +56147,14 @@ function Rz() {
55905
56147
  }
55906
56148
  }
55907
56149
  }, [e]), ae = yi(async (t, n, r) => {
55908
- let i = Pz(t), a = Pz(n);
56150
+ let i = Hz(t), a = Hz(n);
55909
56151
  if (!i || !a) {
55910
56152
  e.setFieldsValue({ step_order: void 0 });
55911
56153
  return;
55912
56154
  }
55913
56155
  x(!0);
55914
56156
  try {
55915
- e.setFieldsValue({ step_order: Iz(r, i, a) });
56157
+ e.setFieldsValue({ step_order: Wz(r, i, a) });
55916
56158
  } catch (e) {
55917
56159
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
55918
56160
  } finally {
@@ -55935,15 +56177,15 @@ function Rz() {
55935
56177
  ]);
55936
56178
  let oe = async (t) => {
55937
56179
  let n = {
55938
- module: Pz(t.module),
55939
- flow: Pz(t.flow),
56180
+ module: Hz(t.module),
56181
+ flow: Hz(t.flow),
55940
56182
  step_order: Number(t.step_order),
55941
- description: Pz(t.description),
55942
- keyword: Pz(t.keyword),
55943
- target: Pz(t.target),
55944
- value: Pz(t.value),
55945
- expected: Pz(t.expected),
55946
- tags: t.tags ? Pz(t.tags) : Oz.tags,
56183
+ description: Hz(t.description),
56184
+ keyword: Hz(t.keyword),
56185
+ target: Hz(t.target),
56186
+ value: Hz(t.value),
56187
+ expected: Hz(t.expected),
56188
+ tags: t.tags ? Hz(t.tags) : Iz.tags,
55947
56189
  active: Number(t.active)
55948
56190
  };
55949
56191
  C(!0);
@@ -55955,19 +56197,19 @@ function Rz() {
55955
56197
  C(!1);
55956
56198
  }
55957
56199
  }, se = (t, n) => {
55958
- e.setFieldsValue({ [t]: Pz(n) });
56200
+ e.setFieldsValue({ [t]: Hz(n) });
55959
56201
  }, ce = (t) => {
55960
56202
  e.setFieldsValue({
55961
- module: Pz(t),
56203
+ module: Hz(t),
55962
56204
  flow: void 0,
55963
56205
  step_order: void 0,
55964
56206
  keyword: void 0,
55965
56207
  description: void 0,
55966
56208
  target: void 0,
55967
- tags: Oz.tags,
56209
+ tags: Iz.tags,
55968
56210
  value: void 0,
55969
56211
  expected: void 0
55970
- }), Mz(e, [
56212
+ }), Bz(e, [
55971
56213
  "keyword",
55972
56214
  "target",
55973
56215
  "value",
@@ -55975,32 +56217,32 @@ function Rz() {
55975
56217
  ]);
55976
56218
  }, le = (t) => {
55977
56219
  e.setFieldsValue({
55978
- flow: Pz(t),
56220
+ flow: Hz(t),
55979
56221
  step_order: void 0,
55980
56222
  keyword: void 0,
55981
56223
  target: void 0,
55982
56224
  value: void 0,
55983
56225
  expected: void 0
55984
- }), Mz(e, [
56226
+ }), Bz(e, [
55985
56227
  "keyword",
55986
56228
  "target",
55987
56229
  "value",
55988
56230
  "expected"
55989
56231
  ]);
55990
56232
  }, ue = (t) => {
55991
- let n = jz(u, t);
56233
+ let n = zz(u, t);
55992
56234
  e.setFieldsValue({
55993
- keyword: Pz(t),
56235
+ keyword: Hz(t),
55994
56236
  target: n.key ? e.getFieldValue("target") : void 0,
55995
56237
  value: n.value ? e.getFieldValue("value") : void 0,
55996
56238
  expected: n.expected ? e.getFieldValue("expected") : void 0
55997
- }), Mz(e, [
56239
+ }), Bz(e, [
55998
56240
  "target",
55999
56241
  "value",
56000
56242
  "expected"
56001
56243
  ]);
56002
56244
  }, de = (e) => {
56003
- let n = kz[e];
56245
+ let n = Lz[e];
56004
56246
  _({
56005
56247
  open: !0,
56006
56248
  typeKey: e
@@ -56015,7 +56257,7 @@ function Rz() {
56015
56257
  })), t.resetFields();
56016
56258
  }, pe = async () => {
56017
56259
  try {
56018
- let n = Pz((await t.validateFields()).name), r = await IE({
56260
+ let n = Hz((await t.validateFields()).name), r = await IE({
56019
56261
  name: n,
56020
56262
  type: T.dbName
56021
56263
  });
@@ -56033,7 +56275,7 @@ function Rz() {
56033
56275
  align: "middle",
56034
56276
  justify: "space-between",
56035
56277
  className: "breadcrumb-action-wrapper",
56036
- children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Dz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
56278
+ children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(Fr, { items: Fz }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
56037
56279
  type: "link",
56038
56280
  onClick: () => w("/lms-home"),
56039
56281
  children: "View Table"
@@ -56048,7 +56290,7 @@ function Rz() {
56048
56290
  children: /* @__PURE__ */ X(U, {
56049
56291
  align: "center",
56050
56292
  size: 10,
56051
- children: [/* @__PURE__ */ Y(To, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(Ez, {
56293
+ children: [/* @__PURE__ */ Y(To, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(Pz, {
56052
56294
  strong: !0,
56053
56295
  style: { fontSize: 16 },
56054
56296
  children: "Add LMS Case"
@@ -56064,16 +56306,16 @@ function Rz() {
56064
56306
  className: "v1-required-mark",
56065
56307
  children: " *"
56066
56308
  })] }),
56067
- initialValues: Oz,
56309
+ initialValues: Iz,
56068
56310
  onFinish: oe,
56069
56311
  autoComplete: "off",
56070
56312
  children: [/* @__PURE__ */ Y(Oi, {
56071
56313
  className: "v1-card",
56072
- title: /* @__PURE__ */ Y(Lz, {
56314
+ title: /* @__PURE__ */ Y(Gz, {
56073
56315
  icon: /* @__PURE__ */ Y($a, {}),
56074
56316
  title: "LMS Case Details"
56075
56317
  }),
56076
- extra: /* @__PURE__ */ Y(Ez, {
56318
+ extra: /* @__PURE__ */ Y(Pz, {
56077
56319
  type: "secondary",
56078
56320
  className: "v1-card-subtitle",
56079
56321
  children: "Module, flow, step order and execution data"
@@ -56283,7 +56525,7 @@ function Rz() {
56283
56525
  maxLength: 100,
56284
56526
  placeholder: `Enter ${T.label.toLowerCase()} name`,
56285
56527
  onBlur: (e) => {
56286
- t.setFieldsValue({ name: Pz(e.target.value) });
56528
+ t.setFieldsValue({ name: Hz(e.target.value) });
56287
56529
  }
56288
56530
  })
56289
56531
  }), /* @__PURE__ */ Y(B.Item, {
@@ -56300,17 +56542,17 @@ function Rz() {
56300
56542
  }
56301
56543
  //#endregion
56302
56544
  //#region src/pages/TestingPage/lmsHomePage.jsx
56303
- var zz = [{
56545
+ var qz = [{
56304
56546
  label: "Home",
56305
56547
  href: "/"
56306
56548
  }, {
56307
56549
  label: "LMS Cases",
56308
56550
  href: "/lms-cases"
56309
56551
  }];
56310
- function Bz() {
56552
+ function Jz() {
56311
56553
  return /* @__PURE__ */ X("main", {
56312
56554
  className: "jobs-list-page",
56313
- children: [/* @__PURE__ */ Y(Fr, { items: zz }), /* @__PURE__ */ Y(km, {
56555
+ children: [/* @__PURE__ */ Y(Fr, { items: qz }), /* @__PURE__ */ Y(km, {
56314
56556
  moduleName: "lms-flows",
56315
56557
  rowKey: "id"
56316
56558
  })]
@@ -56318,7 +56560,7 @@ function Bz() {
56318
56560
  }
56319
56561
  //#endregion
56320
56562
  //#region src/services/mergedListApi.js
56321
- var Vz = [
56563
+ var Yz = [
56322
56564
  "referenceId",
56323
56565
  "ReferenceId",
56324
56566
  "candidateId",
@@ -56329,7 +56571,7 @@ var Vz = [
56329
56571
  "Id",
56330
56572
  "_id"
56331
56573
  ];
56332
- function Hz(e = Vz) {
56574
+ function Xz(e = Yz) {
56333
56575
  return function(t) {
56334
56576
  if (!t || typeof t != "object") return "";
56335
56577
  for (let n of e) {
@@ -56339,7 +56581,7 @@ function Hz(e = Vz) {
56339
56581
  return "";
56340
56582
  };
56341
56583
  }
56342
- function Uz(e, t = Vz) {
56584
+ function Zz(e, t = Yz) {
56343
56585
  if (!e || typeof e != "object") return [];
56344
56586
  let n = [];
56345
56587
  for (let r of t) {
@@ -56348,18 +56590,18 @@ function Uz(e, t = Vz) {
56348
56590
  }
56349
56591
  return n;
56350
56592
  }
56351
- var Wz = Hz();
56352
- function Gz(e) {
56353
- return typeof e == "function" ? e : typeof e == "string" ? Hz([e]) : Array.isArray(e) ? Hz(e) : Wz;
56593
+ var Qz = Xz();
56594
+ function $z(e) {
56595
+ return typeof e == "function" ? e : typeof e == "string" ? Xz([e]) : Array.isArray(e) ? Xz(e) : Qz;
56354
56596
  }
56355
- function Kz(e, t, n) {
56597
+ function eB(e, t, n) {
56356
56598
  return !t || typeof t != "object" ? e : {
56357
56599
  ...t,
56358
56600
  ...e,
56359
56601
  id: e?.id ?? t?.id ?? n
56360
56602
  };
56361
56603
  }
56362
- function qz(e, t, n = {}) {
56604
+ function tB(e, t, n = {}) {
56363
56605
  return {
56364
56606
  status: "success",
56365
56607
  total: t,
@@ -56369,7 +56611,7 @@ function qz(e, t, n = {}) {
56369
56611
  }
56370
56612
  };
56371
56613
  }
56372
- var Jz = [
56614
+ var nB = [
56373
56615
  "fields",
56374
56616
  "fieldConfig",
56375
56617
  "tabs",
@@ -56378,17 +56620,17 @@ var Jz = [
56378
56620
  "actions",
56379
56621
  "columnActions"
56380
56622
  ];
56381
- function Yz(e) {
56623
+ function rB(e) {
56382
56624
  let t = e?.data ?? e, n = {};
56383
- for (let r of Jz) {
56625
+ for (let r of nB) {
56384
56626
  let i = e?.[r] ?? t?.[r];
56385
56627
  i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
56386
56628
  }
56387
56629
  return n;
56388
56630
  }
56389
- var Xz = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
56390
- function Zz(e, t, n) {
56391
- let r = (Array.isArray(n) ? n : [n]).map(Xz).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(Xz(e?.value)) || r.includes(Xz(e?.label))) : -1;
56631
+ var iB = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
56632
+ function aB(e, t, n) {
56633
+ let r = (Array.isArray(n) ? n : [n]).map(iB).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(iB(e?.value)) || r.includes(iB(e?.label))) : -1;
56392
56634
  if (i === -1) return [...e, ...t];
56393
56635
  let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
56394
56636
  ...e,
@@ -56400,31 +56642,31 @@ function Zz(e, t, n) {
56400
56642
  ...e.slice(i + 1)
56401
56643
  ];
56402
56644
  }
56403
- var Qz = (e, t) => $d(e, t).rows, $z = (e, t) => {
56645
+ var oB = (e, t) => $d(e, t).rows, sB = (e, t) => {
56404
56646
  let { rows: n, total: r } = $d(e, t);
56405
56647
  return {
56406
56648
  rows: n,
56407
56649
  total: r
56408
56650
  };
56409
56651
  };
56410
- function eB(e, t) {
56652
+ function cB(e, t) {
56411
56653
  return function(n, r, i, a = {}) {
56412
56654
  return e(t ?? n, r, i, a);
56413
56655
  };
56414
56656
  }
56415
- function tB(e) {
56657
+ function lB(e) {
56416
56658
  return !e || typeof e != "object" || typeof (e.fetchByKeys ?? e.fetch ?? e.function) != "function" ? null : {
56417
56659
  ...e,
56418
56660
  fetchByKeys: typeof e.fetchByKeys == "function" ? e.fetchByKeys : null,
56419
56661
  fetch: typeof e.fetch == "function" ? e.fetch : null,
56420
56662
  function: typeof e.function == "function" ? e.function : null,
56421
- extractRows: typeof e.extractRows == "function" ? e.extractRows : Qz,
56422
- mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : Kz,
56663
+ extractRows: typeof e.extractRows == "function" ? e.extractRows : oB,
56664
+ mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : eB,
56423
56665
  fetchById: typeof e.fetchById == "function" ? e.fetchById : null
56424
56666
  };
56425
56667
  }
56426
- function nB({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
56427
- return !e && !t && !r ? [] : [tB({
56668
+ function uB({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
56669
+ return !e && !t && !r ? [] : [lB({
56428
56670
  key: i,
56429
56671
  fetchByKeys: e ? (t, n, r) => e(t, n, r) : null,
56430
56672
  function: t ? ({ moduleName: e, options: n }) => t(e, o, 0, n) : null,
@@ -56433,21 +56675,21 @@ function nB({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows:
56433
56675
  mergeRow: a
56434
56676
  })].filter(Boolean);
56435
56677
  }
56436
- function rB(e) {
56678
+ function dB(e) {
56437
56679
  if (typeof e == "function") return (t) => {
56438
56680
  let n = e(t);
56439
56681
  return n == null || n === "" ? [] : [String(n)];
56440
56682
  };
56441
- let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : Vz;
56442
- return (e) => Uz(e, t);
56683
+ let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : Yz;
56684
+ return (e) => Zz(e, t);
56443
56685
  }
56444
- function iB(e, t) {
56686
+ function fB(e, t) {
56445
56687
  let n = /* @__PURE__ */ new Map();
56446
56688
  return e.forEach((e) => {
56447
56689
  for (let r of t(e)) n.has(r) || n.set(r, e);
56448
56690
  }), n;
56449
56691
  }
56450
- function aB({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
56692
+ function pB({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
56451
56693
  return {
56452
56694
  moduleName: e,
56453
56695
  limit: t,
@@ -56461,7 +56703,7 @@ function aB({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryRe
56461
56703
  source: l
56462
56704
  };
56463
56705
  }
56464
- async function oB(e, t) {
56706
+ async function mB(e, t) {
56465
56707
  if (typeof e.args == "function") {
56466
56708
  let n = e.args(t);
56467
56709
  return (e.fetch ?? e.function ?? e.fetchByKeys)(...Array.isArray(n) ? n : [n]);
@@ -56471,8 +56713,8 @@ async function oB(e, t) {
56471
56713
  let n = e.fetch ?? e.function;
56472
56714
  return typeof n == "function" ? n(t) : null;
56473
56715
  }
56474
- function sB({ fetchPrimaryPage: e, extractPrimaryPage: t = $z, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = Qz, fetchSecondary: o, extractSecondaryRows: s = Qz, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = Kz, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
56475
- let h = Array.isArray(r) && r.length ? r.map(tB).filter(Boolean) : nB({
56716
+ function hB({ fetchPrimaryPage: e, extractPrimaryPage: t = sB, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = oB, fetchSecondary: o, extractSecondaryRows: s = oB, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = eB, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
56717
+ let h = Array.isArray(r) && r.length ? r.map(lB).filter(Boolean) : uB({
56476
56718
  fetchSecondaryByKeys: n,
56477
56719
  fetchSecondary: o,
56478
56720
  extractSecondaryRows: s,
@@ -56492,7 +56734,7 @@ function sB({ fetchPrimaryPage: e, extractPrimaryPage: t = $z, fetchSecondaryByK
56492
56734
  }
56493
56735
  async function v(e, t, n, r, i) {
56494
56736
  if (!n) return e;
56495
- let a = t.extractRows(n, r) ?? [], o = Gz(t.primaryKey ?? l), s = rB(t.key), c = iB(a, s);
56737
+ let a = t.extractRows(n, r) ?? [], o = $z(t.primaryKey ?? l), s = dB(t.key), c = fB(a, s);
56496
56738
  return Promise.all(e.map(async (e) => {
56497
56739
  let n = o(e), a = c.get(n) ?? (i() ? null : await _(t, s, r, n));
56498
56740
  return t.mergeRow(e, a, n);
@@ -56507,21 +56749,21 @@ function sB({ fetchPrimaryPage: e, extractPrimaryPage: t = $z, fetchSecondaryByK
56507
56749
  let r = {};
56508
56750
  for (let e of n) {
56509
56751
  if (!e) continue;
56510
- let t = Yz(e);
56752
+ let t = rB(e);
56511
56753
  for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
56512
56754
  }
56513
- return p.length && (r.fields = Zz(r.fields ?? [], p, m)), qz(e, t, r);
56755
+ return p.length && (r.fields = aB(r.fields ?? [], p, m)), tB(e, t, r);
56514
56756
  }
56515
56757
  async function x({ moduleName: e, limit: t, offset: n, options: r, primaryResponse: i, primaryRows: a, pageRows: o, total: s }) {
56516
56758
  return Promise.all(h.map(async (c) => {
56517
56759
  try {
56518
- let u = Gz(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
56760
+ let u = $z(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
56519
56761
  return c.fetchByKeys && d.length === 0 ? {
56520
56762
  source: c,
56521
56763
  response: null
56522
56764
  } : {
56523
56765
  source: c,
56524
- response: await oB(c, aB({
56766
+ response: await mB(c, pB({
56525
56767
  moduleName: e,
56526
56768
  limit: t,
56527
56769
  offset: n,
@@ -56575,25 +56817,25 @@ function sB({ fetchPrimaryPage: e, extractPrimaryPage: t = $z, fetchSecondaryByK
56575
56817
  }
56576
56818
  //#endregion
56577
56819
  //#region src/services/workflowModuleListApi.js
56578
- function cB(e, t, n = {}) {
56579
- return sB({
56580
- fetchPrimary: () => UF(e, t),
56581
- extractPrimaryRows: VF,
56820
+ function gB(e, t, n = {}) {
56821
+ return hB({
56822
+ fetchPrimary: () => ZF(e, t),
56823
+ extractPrimaryRows: YF,
56582
56824
  fetchSecondary: Tu,
56583
- fetchSecondaryById: WF,
56825
+ fetchSecondaryById: QF,
56584
56826
  secondaryFetchLimit: n.moduleFetchLimit ?? 200
56585
56827
  });
56586
56828
  }
56587
- function lB(e) {
56829
+ function _B(e) {
56588
56830
  let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
56589
56831
  return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
56590
56832
  }
56591
- function uB(e) {
56833
+ function vB(e) {
56592
56834
  let t = Array.isArray(e?.stages) ? e.stages : [];
56593
56835
  if (!t.length) return e;
56594
56836
  let n = {};
56595
56837
  for (let e of t) {
56596
- let t = lB(e?.stageName);
56838
+ let t = _B(e?.stageName);
56597
56839
  t && (n[t] = Number(e?.count) || 0);
56598
56840
  }
56599
56841
  return {
@@ -56601,19 +56843,19 @@ function uB(e) {
56601
56843
  ...e
56602
56844
  };
56603
56845
  }
56604
- var dB = (e) => {
56846
+ var yB = (e) => {
56605
56847
  let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
56606
56848
  return Number.isFinite(t) && t > 0 ? t : null;
56607
56849
  };
56608
- function fB({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
56850
+ function bB({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
56609
56851
  return function(n, r, i) {
56610
- let a = Kz(n, r, i), o = dB(a);
56852
+ let a = eB(n, r, i), o = yB(a);
56611
56853
  return o != null && (a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
56612
56854
  };
56613
56855
  }
56614
- function pB(e = {}) {
56615
- let t = fB();
56616
- return sB({
56856
+ function xB(e = {}) {
56857
+ let t = bB();
56858
+ return hB({
56617
56859
  primaryKey: "_id",
56618
56860
  extraFields: e.extraFields,
56619
56861
  extraFieldsAfter: e.extraFieldsAfter,
@@ -56622,9 +56864,9 @@ function pB(e = {}) {
56622
56864
  key: "entityId",
56623
56865
  fetchByKeys: (e, t, n, r) => {
56624
56866
  let i = Math.max(1, Number(r?.limit) || 10);
56625
- return HF(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
56867
+ return XF(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
56626
56868
  },
56627
- extractRows: (e) => (e?.items ?? []).map(uB),
56869
+ extractRows: (e) => (e?.items ?? []).map(vB),
56628
56870
  mergeRow: (e, n, r) => {
56629
56871
  let i = t(e, n, r);
56630
56872
  return n?._id && (i.workflowId = n._id), i;
@@ -56632,16 +56874,16 @@ function pB(e = {}) {
56632
56874
  }]
56633
56875
  });
56634
56876
  }
56635
- async function mB(e, t = 10, n = 0, r = {}, i = {}) {
56636
- return $d(await pB(i)(e, t, n, r), e);
56877
+ async function SB(e, t = 10, n = 0, r = {}, i = {}) {
56878
+ return $d(await xB(i)(e, t, n, r), e);
56637
56879
  }
56638
- async function hB(e, t, n, r = 10, i = 0, a = {}) {
56639
- return $d(await cB(e, t)(n, r, i, a), n);
56880
+ async function CB(e, t, n, r = 10, i = 0, a = {}) {
56881
+ return $d(await gB(e, t)(n, r, i, a), n);
56640
56882
  }
56641
56883
  //#endregion
56642
56884
  //#region src/index.js
56643
- var gB = ML, _B = aD(AR), vB = aD(MR), yB = aD(qR), bB = aD(az), xB = aD(mz), SB = aD(_z), CB = aD(bz), wB = aD(Cz), TB = aD(Tz), EB = aD(Rz), DB = aD(Bz);
56885
+ var wB = BL, TB = aD(RR), EB = aD(BR), DB = aD(tz), OB = aD(pz), kB = aD(Sz), AB = aD(Tz), jB = aD(Oz), MB = aD(jz), NB = aD(Nz), PB = aD(Kz), FB = aD(Jz);
56644
56886
  //#endregion
56645
- export { w as ADMIN_API_URL, D as ADMIN_APP_ID, l as APP_ID, E as AUTH_URL, Sg as ActivityNotesCard, _g as ActivityTab, pL as AddBatchCandidatePopup, eg as AddFormV1, ML as AdminDashboard, BM as AdminDashboardContent, gB as AdminPage, tg as AppAlert, er as AppButton, OE as AppShell, GC as ApprovalActionBar, Cg as AssigneeAvatars, xE as AuthGuard, My as BILLING_STATUS_FLOW, BS as BOOLEAN_API_KEYS, FS as BOOLEAN_PARSEABLE_API_KEYS, wg as BULK_UPLOAD_DEFAULT_ACCEPT, Tg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Fr as Breadcrumb, yB as BulkUploadPage, Ng as BulkUploadPanel, a as CANDIDATES_URL, hw as CONTRACT_C2C, mw as CONTRACT_W2, V_ as CURRENCY_SYMBOLS, js as CalendarCard, WM as CoreThemeAdminApp, UM as CoreThemeAdminRoutes, Mc as CustomPagination, pC as DEFAULT_HOURS_POLICY, LC as DayLogModal, Kg as DescriptionBlock, Pb as DetailHeaderCard, Vb as DetailViewPage, jv as DetailViewV1, se as DocumentViewer, Ml as DynamicCards, tF as DynamicPopup, vL as DynamicPopupRoute, Fs as DynamicTabs, zx as EditFormV1, vS as FIELD_TYPE_REGISTRY, ow as FINANCE_APPROVAL_CONFIG, $C as FINANCE_TYPE_CFO, QC as FINANCE_TYPE_ONBOARDING_MANAGER, nw as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, ew as FINANCE_TYPE_ONLY_FINANCE, ZC as FINANCE_TYPE_SUBMISSION_MANAGER, tw as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, bT as FileListCard, $w as FinanceApprovalPanel, pb as FinanceAvatar, _b as FinanceBadge, qC as FinanceDayCell, ab as FinanceDivider, mb as FinanceEmployeeCell, nb as FinanceEmptyState, ob as FinanceEquation, ub as FinanceHistoryTimeline, tb as FinanceHoursGrid, eb as FinanceKpiRow, ib as FinanceLine, fC as FinanceListToolbar, vb as FinanceMarginBadge, gb as FinanceMoneyCell, xb as FinanceRecordsTable, yb as FinanceRowChevron, rb as FinanceSection, $y as FinanceStatusPill, hb as FinanceTextCell, YC as FinanceTimesheetAnalysis, sb as FinanceWorkflowSteps, mC as HOURS_MESSAGES, YT as Header, Ll as HierarchyUserFilter, t as JOBS_URL, _B as LegacyAdminPage, km as ListView, DB as LmsHomePage, EB as LmsTestForm, kE as Login, yN as MailPopup, SB as ManageModules, CB as ManageSubmodules, Jx as ModuleRowActions, WC as NotesPanel, xg as NotesTab, Ny as PAYROLL_STATUS_FLOW, iL as POPUP_CONFIGS, tS as ParamCardView, sS as ParamListView, EC as PeriodBadgeTag, XN as PreviewPopup, iD as ProjectSelect, UC as ProofUploadPreview, BC as QuickLogBar, RC as QuickLogSelectionBar, zC as RejectionReasonModal, o as SUBMISSIONS_URL, rC as SearchBuilderV1, _E as Sidebar, aC as StatusBadge, TC as StatusBadgeTag, vB as StickyNotesFullPage, sC as StylishDynamicTabs, lC as TemplateEditor, bB as TestForm, TB as TestingHomePage, lg as TimelineGroups, PC as TimesheetDayCell, Xr as TipTapEditor, jL as UserForm, SL as VendorShareDrawer, Ef as ViewSummaryWidget, nP as WizardPopup, wB as ZinnextTableView, xB as ZinnextTestForm, et as appNow, Mt as applyIntegrationStatus, pc as approveSubmission, Ag as buildAcceptAttr, GS as buildBooleanRequest, qy as buildCsv, Vy as buildDailyRows, MC as buildDayGradient, Bw as buildRateHistoryEntries, Wy as buildWeeklyRollup, h as clearSelectedProject, de as colors, Mw as computeFinance, bC as computeHoursPolicy, Gy as computeMarginBand, Ln as conditionMatches, r as configureCoreTheme, Qt as configuredFieldLabel, pB as createAllWorkflowsListFetcher, sB as createMergedListFetcher, eB as createModuleListFetchAdapter, cB as createWorkflowStageListFetcher, H_ as currencySymbol, Kz as defaultMergeRow, Rr as deleteIntegrationConfig, By as deriveDayStats, SC as describeCapacity, Zy as downloadCsv, dr as evaluateShowIfWith, Ew as findEmployerRow, ww as flattenGroups, J_ as formatAmount, qn as formatApp, te as formatAppDateTime, kg as formatFileSize, Vw as formatFinanceMoney, Cy as formatHours, Y_ as formatMoney, Ty as formatPercent, X_ as formatRate, Hr as getActivity, mB as getAllWorkflowsModuleList, Un as getAppTimeZone, ky as getApprovalDate, qr as getBgcIntegrationConfig, ai as getBgcIntegrationSummary, Py as getBillingActionStates, SS as getBooleanEligibleTypes, u as getCurrentRoleName, Yy as getFieldLabel, bS as getFieldType, Og as getFileExtension, dw as getFinanceApprovalConfig, lT as getFormGroupsRaw, xt as getIntegrationConfig, ge as getIntegrationConfigs, fe as getIntegrationSummary, kc as getModuleConfig, wn as getModuleDataDetail, Fy as getPayrollActionStates, jc as getPeriodBadgeConfig, g as getSelectedProject, C as getStoredToken, d as getStoredUser, f as getUserRoles, mc as getVMSApprove, Xy as getValueStyle, hB as getWorkflowStageModuleList, Iy as getWorkflowSteps, Oy as humanizeEvent, Qm as i, Jy as indexFieldConfig, Ey as initialsOf, zS as insertTokenAtCursor, xS as isBooleanEligible, LS as isBooleanParsable, y as isTester, m as logout, pw as marginIncludesReferral, jw as matchLocationTax, Yb as n, Ow as normalizeContract, Pg as r, W_ as rateUnitLabel, K_ as rateUnitShort, xC as reconcileHours, yS as registerFieldType, gc as rejectSubmission, mg as resolveActivityMeta, Nw as resolveAndCompute, vC as resolveDayKind, Aw as resolveFinanceInputs, Wz as resolveMergeKey, Wz as resolveMergedListKey, fw as resolveRejectionReason, uT as resolveSubmissionFinance, Vt as saveBgcIntegrationConfig, lt as saveIntegrationConfig, s as setSelectedProject, cn as showIfConditions, lB as stageCountKey, AE as t, Rn as testIntegrationConnection, Xe as toApp, q_ as toNumber, it as tzLabel, ye as tzShortLabel, Vu as useDropdownFields, Df as useDropdownValues, xT as useEditForm, Hu as useFieldConfig, Uu as useFilterFields, Qu as useMenuPermission, Vx as useModuleActions, Rb as useRecordRefresh, RS as validateBooleanQuery, jg as validateBulkFile, n as withAdminAppId, i as withAppId, aD as withAuthGuard };
56887
+ export { w as ADMIN_API_URL, D as ADMIN_APP_ID, l as APP_ID, E as AUTH_URL, Sg as ActivityNotesCard, _g as ActivityTab, xL as AddBatchCandidatePopup, eg as AddFormV1, BL as AdminDashboard, BM as AdminDashboardContent, wB as AdminPage, tg as AppAlert, er as AppButton, OE as AppShell, GC as ApprovalActionBar, Cg as AssigneeAvatars, xE as AuthGuard, My as BILLING_STATUS_FLOW, BS as BOOLEAN_API_KEYS, FS as BOOLEAN_PARSEABLE_API_KEYS, wg as BULK_UPLOAD_DEFAULT_ACCEPT, Tg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Fr as Breadcrumb, DB as BulkUploadPage, Ng as BulkUploadPanel, a as CANDIDATES_URL, hw as CONTRACT_C2C, mw as CONTRACT_W2, V_ as CURRENCY_SYMBOLS, js as CalendarCard, WM as CoreThemeAdminApp, UM as CoreThemeAdminRoutes, Mc as CustomPagination, pC as DEFAULT_HOURS_POLICY, LC as DayLogModal, Kg as DescriptionBlock, Pb as DetailHeaderCard, Vb as DetailViewPage, jv as DetailViewV1, se as DocumentViewer, Ml as DynamicCards, lF as DynamicPopup, EL as DynamicPopupRoute, Fs as DynamicTabs, zx as EditFormV1, vS as FIELD_TYPE_REGISTRY, ow as FINANCE_APPROVAL_CONFIG, $C as FINANCE_TYPE_CFO, QC as FINANCE_TYPE_ONBOARDING_MANAGER, nw as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, ew as FINANCE_TYPE_ONLY_FINANCE, ZC as FINANCE_TYPE_SUBMISSION_MANAGER, tw as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, bT as FileListCard, $w as FinanceApprovalPanel, pb as FinanceAvatar, _b as FinanceBadge, qC as FinanceDayCell, ab as FinanceDivider, mb as FinanceEmployeeCell, nb as FinanceEmptyState, ob as FinanceEquation, ub as FinanceHistoryTimeline, tb as FinanceHoursGrid, eb as FinanceKpiRow, ib as FinanceLine, fC as FinanceListToolbar, vb as FinanceMarginBadge, gb as FinanceMoneyCell, xb as FinanceRecordsTable, yb as FinanceRowChevron, rb as FinanceSection, $y as FinanceStatusPill, hb as FinanceTextCell, YC as FinanceTimesheetAnalysis, sb as FinanceWorkflowSteps, mC as HOURS_MESSAGES, YT as Header, Ll as HierarchyUserFilter, t as JOBS_URL, TB as LegacyAdminPage, km as ListView, FB as LmsHomePage, PB as LmsTestForm, kE as Login, yN as MailPopup, AB as ManageModules, jB as ManageSubmodules, Jx as ModuleRowActions, WC as NotesPanel, xg as NotesTab, Ny as PAYROLL_STATUS_FLOW, fL as POPUP_CONFIGS, tS as ParamCardView, sS as ParamListView, EC as PeriodBadgeTag, XN as PreviewPopup, iD as ProjectSelect, UC as ProofUploadPreview, BC as QuickLogBar, RC as QuickLogSelectionBar, zC as RejectionReasonModal, o as SUBMISSIONS_URL, rC as SearchBuilderV1, _E as Sidebar, aC as StatusBadge, TC as StatusBadgeTag, EB as StickyNotesFullPage, sC as StylishDynamicTabs, lC as TemplateEditor, OB as TestForm, NB as TestingHomePage, lg as TimelineGroups, PC as TimesheetDayCell, Xr as TipTapEditor, zL as UserForm, AL as VendorShareDrawer, Ef as ViewSummaryWidget, nP as WizardPopup, MB as ZinnextTableView, kB as ZinnextTestForm, et as appNow, Mt as applyIntegrationStatus, pc as approveSubmission, Ag as buildAcceptAttr, GS as buildBooleanRequest, qy as buildCsv, Vy as buildDailyRows, MC as buildDayGradient, Bw as buildRateHistoryEntries, Wy as buildWeeklyRollup, h as clearSelectedProject, de as colors, Mw as computeFinance, bC as computeHoursPolicy, Gy as computeMarginBand, Ln as conditionMatches, r as configureCoreTheme, Qt as configuredFieldLabel, xB as createAllWorkflowsListFetcher, hB as createMergedListFetcher, cB as createModuleListFetchAdapter, gB as createWorkflowStageListFetcher, H_ as currencySymbol, eB as defaultMergeRow, Rr as deleteIntegrationConfig, By as deriveDayStats, SC as describeCapacity, Zy as downloadCsv, dr as evaluateShowIfWith, Ew as findEmployerRow, ww as flattenGroups, J_ as formatAmount, qn as formatApp, te as formatAppDateTime, kg as formatFileSize, Vw as formatFinanceMoney, Cy as formatHours, Y_ as formatMoney, Ty as formatPercent, X_ as formatRate, Hr as getActivity, SB as getAllWorkflowsModuleList, Un as getAppTimeZone, ky as getApprovalDate, qr as getBgcIntegrationConfig, ai as getBgcIntegrationSummary, Py as getBillingActionStates, SS as getBooleanEligibleTypes, u as getCurrentRoleName, Yy as getFieldLabel, bS as getFieldType, Og as getFileExtension, dw as getFinanceApprovalConfig, lT as getFormGroupsRaw, xt as getIntegrationConfig, ge as getIntegrationConfigs, fe as getIntegrationSummary, kc as getModuleConfig, wn as getModuleDataDetail, Fy as getPayrollActionStates, jc as getPeriodBadgeConfig, g as getSelectedProject, C as getStoredToken, d as getStoredUser, f as getUserRoles, mc as getVMSApprove, Xy as getValueStyle, CB as getWorkflowStageModuleList, Iy as getWorkflowSteps, Oy as humanizeEvent, Qm as i, Jy as indexFieldConfig, Ey as initialsOf, zS as insertTokenAtCursor, xS as isBooleanEligible, LS as isBooleanParsable, y as isTester, m as logout, pw as marginIncludesReferral, jw as matchLocationTax, Yb as n, Ow as normalizeContract, Pg as r, W_ as rateUnitLabel, K_ as rateUnitShort, xC as reconcileHours, yS as registerFieldType, gc as rejectSubmission, mg as resolveActivityMeta, Nw as resolveAndCompute, vC as resolveDayKind, Aw as resolveFinanceInputs, Qz as resolveMergeKey, Qz as resolveMergedListKey, fw as resolveRejectionReason, uT as resolveSubmissionFinance, Vt as saveBgcIntegrationConfig, lt as saveIntegrationConfig, s as setSelectedProject, cn as showIfConditions, _B as stageCountKey, AE as t, Rn as testIntegrationConnection, Xe as toApp, q_ as toNumber, it as tzLabel, ye as tzShortLabel, Vu as useDropdownFields, Df as useDropdownValues, xT as useEditForm, Hu as useFieldConfig, Uu as useFilterFields, Qu as useMenuPermission, Vx as useModuleActions, Rb as useRecordRefresh, RS as validateBooleanQuery, jg as validateBulkFile, n as withAdminAppId, i as withAppId, aD as withAuthGuard };
56646
56888
 
56647
56889
  //# sourceMappingURL=index.js.map