@realtek/core-theme 0.0.325 → 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";
@@ -20961,7 +20961,7 @@ async function cT(e, t) {
20961
20961
  };
20962
20962
  }
20963
20963
  async function lT(e, t) {
20964
- 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({
20965
20965
  module: e,
20966
20966
  id: t
20967
20967
  });
@@ -21843,16 +21843,29 @@ function TE(e) {
21843
21843
  return !t || CE.has(t) ? "" : SE[t] ?? t;
21844
21844
  }
21845
21845
  function EE({ children: e }) {
21846
- let t = us(), n = TE(t.pathname), { canView: r } = Qu(n);
21847
- return n && !r ? /* @__PURE__ */ Y(os, {
21848
- to: "/dashboard",
21849
- replace: !0,
21850
- state: {
21851
- accessDenied: !0,
21852
- deniedPath: t.pathname,
21853
- deniedModule: n
21854
- }
21855
- }) : 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;
21856
21869
  }
21857
21870
  //#endregion
21858
21871
  //#region src/components/layouts/AppShell.jsx
@@ -44434,7 +44447,42 @@ function hM() {
44434
44447
  });
44435
44448
  }
44436
44449
  function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44437
- 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
+ }
44438
44486
  F(() => {
44439
44487
  e && queueMicrotask(() => {
44440
44488
  i.resetFields(), i.setFieldsValue({
@@ -44453,26 +44501,49 @@ function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44453
44501
  e,
44454
44502
  t,
44455
44503
  i
44504
+ ]), F(() => {
44505
+ !e || !u || (Number(i.getFieldValue("schemaVersion")) || 1) < 2 && i.setFieldValue("schemaVersion", 2);
44506
+ }, [
44507
+ e,
44508
+ u,
44509
+ i
44456
44510
  ]);
44457
- async function c() {
44458
- let e = await i.validateFields(), n = rM(), a = (e.masterFeeds ?? []).map((e, t) => ({
44459
- uniqueId: Number(e.uniqueId) || t + 1,
44460
- name: String(e.name ?? "").trim(),
44461
- type: String(e.type ?? "").trim(),
44462
- status: e.status !== !1,
44463
- isdeleted: e.isdeleted === !0
44464
- })).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 = {
44465
44536
  ...n,
44466
44537
  tid: n.tenantId,
44467
44538
  bid: n.businessId,
44468
44539
  buid: n.businessUnitId,
44469
- schemaVersion: Number(e.schemaVersion) || 1,
44540
+ schemaVersion: a ? Math.max(2, Number(e.schemaVersion) || 2) : Number(e.schemaVersion) || 1,
44470
44541
  masterName: e.masterName.trim(),
44471
- masterFeeds: a
44542
+ masterFeeds: c
44472
44543
  };
44473
44544
  o(!0);
44474
44545
  try {
44475
- 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();
44476
44547
  } catch (e) {
44477
44548
  q.error(e?.message || "Could not save master value");
44478
44549
  } finally {
@@ -44482,11 +44553,11 @@ function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44482
44553
  return /* @__PURE__ */ Y(Vi, {
44483
44554
  open: e,
44484
44555
  onCancel: n,
44485
- onOk: c,
44556
+ onOk: m,
44486
44557
  confirmLoading: a,
44487
44558
  destroyOnHidden: !0,
44488
44559
  title: s ? "Edit Master Feed" : "New Master Feed",
44489
- width: 760,
44560
+ width: 1040,
44490
44561
  children: /* @__PURE__ */ X(B, {
44491
44562
  form: i,
44492
44563
  layout: "vertical",
@@ -44599,6 +44670,70 @@ function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44599
44670
  }]
44600
44671
  })
44601
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
+ ] }),
44602
44737
  /* @__PURE__ */ Y(K, {
44603
44738
  title: "Remove row",
44604
44739
  children: /* @__PURE__ */ Y(R, {
@@ -44616,7 +44751,12 @@ function gM({ open: e, record: t, onClose: n, onSaved: r }) {
44616
44751
  name: "",
44617
44752
  type: "neutral",
44618
44753
  status: !0,
44619
- isdeleted: !1
44754
+ isdeleted: !1,
44755
+ ...u ? {
44756
+ isInitialStatus: !1,
44757
+ isTerminalStatus: !1,
44758
+ allowedNextStatusIds: []
44759
+ } : {}
44620
44760
  }),
44621
44761
  children: "Add feed value"
44622
44762
  })]
@@ -48103,23 +48243,118 @@ function qP(e) {
48103
48243
  return t === "clientsubmissions" || t === "clientsubmissionstatus";
48104
48244
  }
48105
48245
  function JP(e) {
48106
- return qP(e) ? {
48107
- ...e,
48108
- labelKey: e.labelKey || "clientSubmissionStatusText",
48109
- valueKey: e.valueKey || "clientSubmissionStatusText"
48110
- } : 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
+ };
48111
48274
  }
48112
48275
  function YP(e, t) {
48113
- let n = fP(e, JP(t));
48114
- return qP(t) ? {
48115
- ...n,
48116
- value: String(n.label ?? "")
48117
- } : 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) : [];
48118
48295
  }
48119
- function XP({ open: e, config: t, api: n, fields: r, popupContext: i, formValues: a }) {
48120
- 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);
48121
48356
  return F(() => {
48122
- e || (s({}), l(null));
48357
+ e || (s({}), u(null));
48123
48358
  }, [e]), F(() => {
48124
48359
  if (!e || !t || !n.getOptions) return;
48125
48360
  let a = new AbortController();
@@ -48143,28 +48378,31 @@ function XP({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
48143
48378
  if (!e || !t) return;
48144
48379
  let n = r.filter(GP);
48145
48380
  if (!n.length) return;
48146
- let i = new AbortController();
48381
+ let a = new AbortController();
48147
48382
  return n.forEach((e) => {
48148
48383
  let t = new URLSearchParams({
48149
48384
  masterName: e.masterName,
48150
48385
  offset: "0",
48151
48386
  limit: String(e.limit ?? 50)
48152
- });
48153
- v(E, `/masters/dropdown?${t.toString()}`).then((t) => {
48154
- if (i.signal.aborted) return;
48155
- 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;
48156
48393
  s((t) => ({
48157
48394
  ...t,
48158
- [e.name]: n
48395
+ [e.name]: c
48159
48396
  }));
48160
48397
  }).catch((t) => {
48161
- 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);
48162
48399
  });
48163
- }), () => i.abort();
48400
+ }), () => a.abort();
48164
48401
  }, [
48165
48402
  e,
48166
48403
  t,
48167
- r
48404
+ r,
48405
+ i
48168
48406
  ]), F(() => {
48169
48407
  if (!e || !t || !n.getOptions) return;
48170
48408
  let o = r.filter((e) => e.fetchOptionsKey && e.fetchOptionsParamKey);
@@ -48192,9 +48430,9 @@ function XP({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
48192
48430
  if (!e || !t || !n.loadExtraData) return;
48193
48431
  let r = new AbortController();
48194
48432
  return Promise.resolve(n.loadExtraData(i)).then((e) => {
48195
- r.signal.aborted || l(e);
48433
+ r.signal.aborted || u(e);
48196
48434
  }).catch((e) => {
48197
- 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));
48198
48436
  }), () => r.abort();
48199
48437
  }, [
48200
48438
  e,
@@ -48209,8 +48447,8 @@ function XP({ open: e, config: t, api: n, fields: r, popupContext: i, formValues
48209
48447
  }
48210
48448
  //#endregion
48211
48449
  //#region src/components/popups/dynamic/hooks/usePopupSearch.js
48212
- var ZP = 500, QP = 3;
48213
- 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 }) {
48214
48452
  let [a, o] = L({}), s = Si({}), c = Si({}), l = Si({}), u = yi((t, n) => {
48215
48453
  let a = e.searchOptions ?? e.searchFetcher;
48216
48454
  if (typeof a != "function") return;
@@ -48246,13 +48484,13 @@ function $P({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOption
48246
48484
  }, [t, f]);
48247
48485
  function m(t) {
48248
48486
  if (!t.searchFetchKey && !t.searchFetcher || typeof (e.searchOptions ?? e.searchFetcher) != "function") return;
48249
- let n = t.searchMinLength ?? QP;
48487
+ let n = t.searchMinLength ?? oF;
48250
48488
  return (e) => {
48251
48489
  clearTimeout(s.current[t.name]);
48252
48490
  let r = e.length < n ? "" : e;
48253
48491
  s.current[t.name] = setTimeout(() => {
48254
48492
  u(t, r);
48255
- }, ZP);
48493
+ }, aF);
48256
48494
  };
48257
48495
  }
48258
48496
  function h(t) {
@@ -48283,7 +48521,7 @@ function $P({ api: e, open: t, fields: n = [], popupContext: r, setDynamicOption
48283
48521
  }
48284
48522
  //#endregion
48285
48523
  //#region src/components/popups/dynamic/hooks/usePopupSubmit.js
48286
- 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 }) {
48287
48525
  let [f, p] = L(!1), [m, h] = L(null);
48288
48526
  async function g(e) {
48289
48527
  let t = {
@@ -48358,7 +48596,7 @@ function eF({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
48358
48596
  }
48359
48597
  //#endregion
48360
48598
  //#region src/components/popups/dynamic/DynamicPopup.jsx
48361
- 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 = {} }) {
48362
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) => {
48363
48601
  let n = m[t];
48364
48602
  return n?.id ?? n?._id ?? e;
@@ -48368,14 +48606,14 @@ function tF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48368
48606
  let n = f[t.initialValueKey];
48369
48607
  !t.initialValueKey || n === void 0 || (e[t.name] = t.type === "date-picker" ? rs(n) : n);
48370
48608
  }), e;
48371
- }, [_, f]), { dynamicOptions: y, setDynamicOptions: b, extraData: x } = XP({
48609
+ }, [_, f]), { dynamicOptions: y, setDynamicOptions: b, extraData: x } = iF({
48372
48610
  open: e,
48373
48611
  config: t,
48374
48612
  api: a,
48375
48613
  fields: _,
48376
48614
  popupContext: f,
48377
48615
  formValues: s
48378
- }), { mentionOptions: S, getSearchHandler: C, getMentionSearchHandler: w } = $P({
48616
+ }), { mentionOptions: S, getSearchHandler: C, getMentionSearchHandler: w } = sF({
48379
48617
  api: a,
48380
48618
  open: e,
48381
48619
  fields: _,
@@ -48391,7 +48629,7 @@ function tF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48391
48629
  }), O = (f.removedIds ?? []).length, k = l.length > O, ee = E.some((e) => {
48392
48630
  let t = d[e.name];
48393
48631
  return !(t == null || t === "" || Array.isArray(t) && t.length === 0);
48394
- }), { handleOk: A, confirming: j, deleteError: te, resetSubmitState: ne } = eF({
48632
+ }), { handleOk: A, confirming: j, deleteError: te, resetSubmitState: ne } = cF({
48395
48633
  form: o,
48396
48634
  config: t,
48397
48635
  api: a,
@@ -48486,7 +48724,7 @@ function tF({ open: e = !0, config: t, context: n = {}, onClose: r, onSubmit: i,
48486
48724
  }
48487
48725
  //#endregion
48488
48726
  //#region src/components/popups/definitions/delete/config.js
48489
- var nF = {
48727
+ var uF = {
48490
48728
  mode: "delete",
48491
48729
  getTitleText: (e, t) => `Delete ${e > 0 ? `${e} ` : ""}${t}`,
48492
48730
  titleIcon: "delete",
@@ -48496,19 +48734,19 @@ var nF = {
48496
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}?`,
48497
48735
  footerNote: "This action cannot be undone.",
48498
48736
  fields: []
48499
- }, rF = { deleteItems: async (e, t) => {
48737
+ }, dF = { deleteItems: async (e, t) => {
48500
48738
  await Js(t.moduleName, e);
48501
- } }, iF = /* @__PURE__ */ new Map();
48502
- async function aF(e) {
48503
- 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)) : [];
48504
48742
  }
48505
- function oF(e = [], t) {
48743
+ function mF(e = [], t) {
48506
48744
  return e.some((e) => {
48507
48745
  let n = oe(e, t);
48508
48746
  return n && n.severity !== "allow";
48509
48747
  });
48510
48748
  }
48511
- async function sF({ targetModule: e, sourceModule: t, recordId: n, region: r } = {}) {
48749
+ async function hF({ targetModule: e, sourceModule: t, recordId: n, region: r } = {}) {
48512
48750
  let i = {
48513
48751
  severity: "allow",
48514
48752
  message: "",
@@ -48517,8 +48755,8 @@ async function sF({ targetModule: e, sourceModule: t, recordId: n, region: r } =
48517
48755
  if (!e || !t || !n) return i;
48518
48756
  let a = r ?? ci().region;
48519
48757
  try {
48520
- let r = await aF(e);
48521
- if (!oF(r, a)) return i;
48758
+ let r = await pF(e);
48759
+ if (!mF(r, a)) return i;
48522
48760
  let o = await mi({
48523
48761
  module: t,
48524
48762
  id: n
@@ -48534,13 +48772,13 @@ async function sF({ targetModule: e, sourceModule: t, recordId: n, region: r } =
48534
48772
  }
48535
48773
  //#endregion
48536
48774
  //#region src/components/popups/definitions/quick-submit/api.js
48537
- 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 = [
48538
48776
  "createdAt",
48539
48777
  "createdDate",
48540
48778
  "dateCreated",
48541
48779
  "created_on",
48542
48780
  "createdOn"
48543
- ], hF = [
48781
+ ], CF = [
48544
48782
  "updatedAt",
48545
48783
  "updatedDate",
48546
48784
  "lastUpdatedAt",
@@ -48548,7 +48786,7 @@ var cF = "Already submitted", lF = "submissions", uF = "candidates", dF = 864e5,
48548
48786
  "modifiedAt",
48549
48787
  "modifiedDate"
48550
48788
  ];
48551
- function gF(e, t) {
48789
+ function wF(e, t) {
48552
48790
  for (let n of t) {
48553
48791
  let t = e?.[n];
48554
48792
  if (!t) continue;
@@ -48557,27 +48795,27 @@ function gF(e, t) {
48557
48795
  }
48558
48796
  return null;
48559
48797
  }
48560
- function _F(e) {
48561
- return gF(e, mF);
48798
+ function TF(e) {
48799
+ return wF(e, SF);
48562
48800
  }
48563
- function vF(e) {
48564
- return gF(e, hF);
48801
+ function EF(e) {
48802
+ return wF(e, CF);
48565
48803
  }
48566
- function yF(e) {
48804
+ function DF(e) {
48567
48805
  if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
48568
48806
  let t = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime();
48569
- 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));
48570
48808
  }
48571
- function bF(e) {
48809
+ function OF(e) {
48572
48810
  return e === null ? "" : e <= 14 ? "green" : e <= 89 ? "yellow" : "red";
48573
48811
  }
48574
- function xF(e, t = fF) {
48812
+ function kF(e, t = bF) {
48575
48813
  if (!e) return !1;
48576
- 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;
48577
48815
  return !a && !o;
48578
48816
  }
48579
- function SF(e) {
48580
- let t = _F(e);
48817
+ function AF(e) {
48818
+ let t = TF(e);
48581
48819
  if (!t) return {
48582
48820
  createdAgo: "",
48583
48821
  createdAgoTone: ""
@@ -48585,38 +48823,38 @@ function SF(e) {
48585
48823
  let n = lP(t);
48586
48824
  return n ? {
48587
48825
  createdAgo: n,
48588
- createdAgoTone: bF(yF(t))
48826
+ createdAgoTone: OF(DF(t))
48589
48827
  } : {
48590
48828
  createdAgo: "",
48591
48829
  createdAgoTone: ""
48592
48830
  };
48593
48831
  }
48594
- function CF(e) {
48832
+ function jF(e) {
48595
48833
  return {
48596
48834
  ...e,
48597
- ...SF(e),
48598
- isStaleCandidate: xF(e)
48835
+ ...AF(e),
48836
+ isStaleCandidate: kF(e)
48599
48837
  };
48600
48838
  }
48601
- function wF(e) {
48839
+ function MF(e) {
48602
48840
  return String(e?.applicantId ?? e?._id ?? e?.id ?? "");
48603
48841
  }
48604
- var TF = null;
48605
- async function EF() {
48606
- 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;
48607
48845
  }
48608
- async function DF(e) {
48609
- let t = wF(e);
48846
+ async function FF(e) {
48847
+ let t = MF(e);
48610
48848
  if (!t) return "";
48611
- let n = await EF();
48849
+ let n = await PF();
48612
48850
  return n ? n.replace(/:(_?id)\b/g, encodeURIComponent(t)) : "";
48613
48851
  }
48614
- async function OF({ option: e, popupContext: t, confirm: n }) {
48615
- 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);
48616
48854
  if (i) {
48617
- let e = await sF({
48618
- targetModule: lF,
48619
- sourceModule: uF,
48855
+ let e = await hF({
48856
+ targetModule: _F,
48857
+ sourceModule: vF,
48620
48858
  recordId: i
48621
48859
  });
48622
48860
  if (e.severity === "block") return new Promise((t) => {
@@ -48630,34 +48868,34 @@ async function OF({ option: e, popupContext: t, confirm: n }) {
48630
48868
  });
48631
48869
  });
48632
48870
  }
48633
- if (!xF(r)) return !0;
48871
+ if (!kF(r)) return !0;
48634
48872
  let a = t?.navigate;
48635
48873
  return !a || !i ? !1 : new Promise((e) => {
48636
48874
  n({
48637
48875
  title: "Candidate update required",
48638
- content: pF,
48876
+ content: xF,
48639
48877
  okText: "OK",
48640
48878
  cancelText: "Cancel",
48641
48879
  onOk: async () => {
48642
- let t = await DF(r);
48880
+ let t = await FF(r);
48643
48881
  t && a(t), e(!1);
48644
48882
  },
48645
48883
  onCancel: () => e(!1)
48646
48884
  });
48647
48885
  });
48648
48886
  }
48649
- function kF(e, t, n) {
48887
+ function LF(e, t, n) {
48650
48888
  return {
48651
48889
  ...e,
48652
- label: `${e.label} - ${cF}`,
48890
+ label: `${e.label} - ${gF}`,
48653
48891
  disabled: !0,
48654
- title: `${cF}${t ? ` (submission ${t})` : ""}`,
48892
+ title: `${gF}${t ? ` (submission ${t})` : ""}`,
48655
48893
  alreadySubmitted: !0,
48656
48894
  existingSubmissionId: t || "",
48657
48895
  ...n ? { submittedAt: n } : {}
48658
48896
  };
48659
48897
  }
48660
- var AF = {
48898
+ var RF = {
48661
48899
  searchOptions: async (e, t, n) => {
48662
48900
  if (e.searchFetchKey === "quickSubmitJobList") {
48663
48901
  let e = n.selectedRecords?.[0] ?? {}, r = e.id ?? e._id ?? n.selectedIds?.[0], i, a = !0;
@@ -48680,7 +48918,7 @@ var AF = {
48680
48918
  _raw: e
48681
48919
  }));
48682
48920
  if (a) return o.map((e) => {
48683
- 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 || "");
48684
48922
  if (e._raw?.disable) {
48685
48923
  let t = String(e._raw?.message ?? "").trim();
48686
48924
  return {
@@ -48698,7 +48936,7 @@ var AF = {
48698
48936
  }).catch(() => /* @__PURE__ */ new Map());
48699
48937
  return o.map((e) => {
48700
48938
  let t = s.get(String(e.value));
48701
- return t ? kF(e, t.submissionId, t.submittedAt) : e;
48939
+ return t ? LF(e, t.submissionId, t.submittedAt) : e;
48702
48940
  });
48703
48941
  }
48704
48942
  if (e.searchFetchKey === "quickSubmitCandidates") {
@@ -48717,17 +48955,17 @@ var AF = {
48717
48955
  });
48718
48956
  i = Array.isArray(e) ? e : [], a = await bc({
48719
48957
  jobId: r,
48720
- applicantIds: i.map(wF)
48958
+ applicantIds: i.map(MF)
48721
48959
  }).catch(() => /* @__PURE__ */ new Map());
48722
48960
  }
48723
- return i.map((e) => CF(e)).map((e) => {
48724
- let t = a.get(wF(e));
48961
+ return i.map((e) => jF(e)).map((e) => {
48962
+ let t = a.get(MF(e));
48725
48963
  if (!(t || e?.isSubmitted === !0 || e?.alreadySubmitted === !0)) return e;
48726
48964
  let n = t?.submissionId || e?.jobSubmissionId || "", r = t?.submittedAt || e?.submittedAt || "";
48727
48965
  return {
48728
48966
  ...e,
48729
48967
  disabled: !0,
48730
- optionNote: cF,
48968
+ optionNote: gF,
48731
48969
  isSubmitted: !0,
48732
48970
  alreadySubmitted: !0,
48733
48971
  existingSubmissionId: n,
@@ -48740,12 +48978,12 @@ var AF = {
48740
48978
  submit: async (e, t, n) => {
48741
48979
  let { navigate: r, selectedRecords: i = [], selectedIds: a = [], moduleName: o } = t, s = i[0] ?? {}, c, l;
48742
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 ?? "");
48743
- 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;
48744
48982
  if (!c || !l) throw Error("Select both a job and a candidate to quick submit.");
48745
- if (xF(u?._raw)) throw Error(pF);
48746
- let p = await sF({
48747
- targetModule: lF,
48748
- sourceModule: uF,
48983
+ if (kF(u?._raw)) throw Error(xF);
48984
+ let p = await hF({
48985
+ targetModule: _F,
48986
+ sourceModule: vF,
48749
48987
  recordId: l
48750
48988
  });
48751
48989
  if (p.severity === "block") throw Error(p.message);
@@ -48770,7 +49008,7 @@ var AF = {
48770
49008
  }).catch(() => []));
48771
49009
  return r(`/submission-create/${c}?${g.toString()}`, { state: { relevantSkillsToken: v } }), { navigated: !0 };
48772
49010
  }
48773
- }, jF = {
49011
+ }, zF = {
48774
49012
  title: "Submit",
48775
49013
  okText: "Submit",
48776
49014
  width: 640,
@@ -48827,9 +49065,9 @@ var AF = {
48827
49065
  type: "relative"
48828
49066
  }]
48829
49067
  },
48830
- onSelectGuard: OF
49068
+ onSelectGuard: IF
48831
49069
  }]
48832
- }, MF = {
49070
+ }, BF = {
48833
49071
  title: "Add Notes & Share",
48834
49072
  okText: "Save & Share",
48835
49073
  width: 480,
@@ -48843,9 +49081,9 @@ var AF = {
48843
49081
  placeholder: "Add your notes on the job. Use '@' to mention someone.",
48844
49082
  mentionFetchKey: "mentionUsers"
48845
49083
  }]
48846
- }, NF = (e) => e?.data ?? e;
48847
- async function PF({ relatedId: e, notes: t, title: n, notesFor: r }) {
48848
- 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", {
48849
49087
  method: "POST",
48850
49088
  body: JSON.stringify({
48851
49089
  relatedId: e,
@@ -48857,18 +49095,18 @@ async function PF({ relatedId: e, notes: t, title: n, notesFor: r }) {
48857
49095
  }
48858
49096
  //#endregion
48859
49097
  //#region src/components/popups/definitions/add-notes/api.js
48860
- var FF = {
49098
+ var UF = {
48861
49099
  getMentionOptions: async (e, t) => Xs(t),
48862
49100
  submit: async (e, t) => {
48863
49101
  let n = Array.isArray(t.selectedIds) ? t.selectedIds[0] : t.selectedIds;
48864
49102
  if (!n) throw Error("Please select a record before adding a note.");
48865
- await PF({
49103
+ await HF({
48866
49104
  relatedId: String(n),
48867
49105
  notes: e.notes,
48868
49106
  notesFor: t.moduleName
48869
49107
  });
48870
49108
  }
48871
- }, IF = {
49109
+ }, WF = {
48872
49110
  name: "jobId",
48873
49111
  label: "Job Title / ID",
48874
49112
  type: "search-select",
@@ -48877,7 +49115,7 @@ var FF = {
48877
49115
  searchFetchKey: "tagToJobJobList",
48878
49116
  valueKey: "_id",
48879
49117
  labelTemplate: "{jobReferenceId} - {jobTitle}"
48880
- }, LF = {
49118
+ }, GF = {
48881
49119
  name: "hiringStage",
48882
49120
  label: "Hiring stage",
48883
49121
  type: "select",
@@ -48891,22 +49129,22 @@ var FF = {
48891
49129
  value: "pipeline"
48892
49130
  }],
48893
49131
  initialValueKey: "hiringStage"
48894
- }, RF = {
49132
+ }, KF = {
48895
49133
  title: "Tag to Job",
48896
49134
  okText: "Tag",
48897
49135
  width: 480,
48898
49136
  disabledUntilFilled: !0,
48899
49137
  autoSubmitWhenNoFields: !0,
48900
- getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [LF] : [IF, LF]
48901
- }, zF = (e) => e?.data ?? e;
48902
- 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) {
48903
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;
48904
49142
  }
48905
- function VF(e) {
48906
- 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) : [] : [];
48907
49145
  }
48908
- async function HF(e = 1, t = 10) {
48909
- 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 ?? [];
48910
49148
  return {
48911
49149
  items: i,
48912
49150
  total: Number(n?.total ?? r?.total) || i.length,
@@ -48914,11 +49152,11 @@ async function HF(e = 1, t = 10) {
48914
49152
  limit: t
48915
49153
  };
48916
49154
  }
48917
- async function UF(e, t) {
48918
- 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}`));
48919
49157
  return Array.isArray(n) ? { data: n } : n;
48920
49158
  }
48921
- async function WF(e, t) {
49159
+ async function QF(e, t) {
48922
49160
  if (!e || !t) return null;
48923
49161
  try {
48924
49162
  let n = new URLSearchParams({
@@ -48932,7 +49170,7 @@ async function WF(e, t) {
48932
49170
  values: [String(t)],
48933
49171
  operator: "and"
48934
49172
  }])
48935
- }), r = zF(await v(E, `/module-data-list?${n}`));
49173
+ }), r = qF(await v(E, `/module-data-list?${n}`));
48936
49174
  if (Array.isArray(r)) return r[0] ?? null;
48937
49175
  if (r?.data && Array.isArray(r.data)) return r.data[0] ?? null;
48938
49176
  let i = r?.rows ?? r?.records ?? r?.items ?? r?.list;
@@ -48941,15 +49179,15 @@ async function WF(e, t) {
48941
49179
  return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
48942
49180
  }
48943
49181
  }
48944
- async function GF(e) {
48945
- return zF(await v(t, "/source/workflow-instance", {
49182
+ async function $F(e) {
49183
+ return qF(await v(t, "/source/workflow-instance", {
48946
49184
  method: "POST",
48947
49185
  body: JSON.stringify(e)
48948
49186
  }));
48949
49187
  }
48950
49188
  //#endregion
48951
49189
  //#region src/components/popups/definitions/tag-to-job/api.js
48952
- var KF = {
49190
+ var eI = {
48953
49191
  pipeline: "pipeline",
48954
49192
  goodfited: "goodfited",
48955
49193
  contacted: "contacted",
@@ -48958,40 +49196,40 @@ var KF = {
48958
49196
  interviewinprogress: "interviewInprogress",
48959
49197
  selected: "selected"
48960
49198
  };
48961
- function qF(e, ...t) {
49199
+ function tI(e, ...t) {
48962
49200
  for (let n of t) {
48963
49201
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
48964
49202
  if (t != null && t !== "") return t;
48965
49203
  }
48966
49204
  }
48967
- function JF(e) {
49205
+ function nI(e) {
48968
49206
  let t = String(e ?? "").trim();
48969
- return t ? KF[t.toLowerCase()] ?? t : "";
49207
+ return t ? eI[t.toLowerCase()] ?? t : "";
48970
49208
  }
48971
- function YF(e, t) {
48972
- 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;
48973
49211
  if (!n) return null;
48974
- 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 = {
48975
49213
  candidateId: String(n),
48976
49214
  candidateName: r,
48977
- phone: qF(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
48978
- source: qF(e, "source", "sourceType", "candidateSource", "profileSource"),
48979
- submittedAt: qF(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
48980
- remarks: qF(e, "remarks", "comment", "comments", "notes"),
48981
- assignedRecruiter: qF(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
48982
- screeningStatus: qF(e, "screeningStatus", "screening.status", "screeningResult"),
48983
- screeningScore: qF(e, "screeningScore", "screening.score", "score"),
48984
- 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")
48985
49223
  };
48986
49224
  return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
48987
49225
  }
48988
- var XF = {
49226
+ var iI = {
48989
49227
  searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? Ys(t) : [],
48990
49228
  submit: async (e, t) => {
48991
- 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);
48992
49230
  for (let e = 0; e < o; e += 1) {
48993
- let t = i[e] ? String(i[e]) : "", o = YF(a[e] ?? {}, t);
48994
- await GF({
49231
+ let t = i[e] ? String(i[e]) : "", o = rI(a[e] ?? {}, t);
49232
+ await $F({
48995
49233
  jobId: n,
48996
49234
  module: "jobs",
48997
49235
  currentStage: r,
@@ -49004,7 +49242,7 @@ var XF = {
49004
49242
  hiringStage: r
49005
49243
  });
49006
49244
  }
49007
- }, ZF = {
49245
+ }, aI = {
49008
49246
  title: "Change Status",
49009
49247
  okText: "Apply",
49010
49248
  width: 420,
@@ -49017,8 +49255,8 @@ var XF = {
49017
49255
  placeholder: "Select a status",
49018
49256
  dataSource: "master",
49019
49257
  masterName: "clientSubmissions",
49020
- labelKey: "clientSubmissionStatusText",
49021
- valueKey: "clientSubmissionStatusText",
49258
+ labelKey: "name",
49259
+ valueKey: "name",
49022
49260
  initialValueKey: "currentStatus",
49023
49261
  defaultOptions: [
49024
49262
  {
@@ -49042,17 +49280,18 @@ var XF = {
49042
49280
  };
49043
49281
  //#endregion
49044
49282
  //#region src/components/popups/definitions/change-status/api.js
49045
- function QF(e, t) {
49046
- return (t?.status ?? []).find((t) => String(t?.value ?? "") === String(e ?? "")) ?? null;
49047
- }
49048
- var $F = { submit: async (e, t, n) => {
49049
- let r = QF(e.status, n?.dynamicOptions)?._raw ?? {}, i = {
49050
- clientSubmissionStatusText: String(e.status ?? "").trim(),
49051
- clientSubmissionStatusId: Number(r.id ?? r.uniqueId ?? 0) || 0,
49052
- 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()
49053
49292
  };
49054
- await qs(t.moduleName, t.selectedIds, i);
49055
- } }, eI = {
49293
+ await qs(t.moduleName, t.selectedIds, a);
49294
+ } }, cI = {
49056
49295
  getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
49057
49296
  titleIcon: "delete",
49058
49297
  okText: "Remove",
@@ -49061,12 +49300,12 @@ var $F = { submit: async (e, t, n) => {
49061
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?",
49062
49301
  footerNote: "The candidate will be moved back to the pipeline.",
49063
49302
  fields: []
49064
- }, tI = { onOk: async (e) => {
49303
+ }, lI = { onOk: async (e) => {
49065
49304
  await xc({
49066
49305
  jobId: e.jobId ?? e.selectedIds[0],
49067
49306
  candidateIds: e.selectedIds
49068
49307
  });
49069
- } }, nI = {
49308
+ } }, uI = {
49070
49309
  title: "Add to Groups",
49071
49310
  description: "Select a group to add the selected candidate(s) to",
49072
49311
  okText: "Add to Group",
@@ -49080,7 +49319,7 @@ var $F = { submit: async (e, t, n) => {
49080
49319
  placeholder: "Select a group",
49081
49320
  fetchOptionsKey: "candidateGroups"
49082
49321
  }]
49083
- }, rI = {
49322
+ }, dI = {
49084
49323
  getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? tc() : [],
49085
49324
  submit: async (e, t, { dynamicOptions: n }) => {
49086
49325
  let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
@@ -49090,7 +49329,7 @@ var $F = { submit: async (e, t, n) => {
49090
49329
  groupName: r?.label ?? ""
49091
49330
  });
49092
49331
  }
49093
- }, iI = [
49332
+ }, fI = [
49094
49333
  {
49095
49334
  title: "Name",
49096
49335
  key: "name",
@@ -49109,7 +49348,7 @@ var $F = { submit: async (e, t, n) => {
49109
49348
  render: (e) => e || "-"
49110
49349
  }
49111
49350
  ];
49112
- function aI({ selectedIds: e, onClose: t }) {
49351
+ function pI({ selectedIds: e, onClose: t }) {
49113
49352
  let n = e?.[0], [r, i] = L(!0), [a, o] = L(!1), [s, c] = L({
49114
49353
  assignedUsers: [],
49115
49354
  totalSubmissions: 0,
@@ -49173,7 +49412,7 @@ function aI({ selectedIds: e, onClose: t }) {
49173
49412
  children: "Team Members Allocated"
49174
49413
  }),
49175
49414
  /* @__PURE__ */ Y(ea, {
49176
- columns: iI,
49415
+ columns: fI,
49177
49416
  dataSource: m,
49178
49417
  pagination: !1,
49179
49418
  rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
@@ -49222,25 +49461,25 @@ function aI({ selectedIds: e, onClose: t }) {
49222
49461
  })]
49223
49462
  });
49224
49463
  }
49225
- aI.propTypes = {
49464
+ pI.propTypes = {
49226
49465
  selectedIds: Z.array,
49227
49466
  onClose: Z.func
49228
49467
  };
49229
49468
  //#endregion
49230
49469
  //#region src/components/popups/definitions/self-assign/config.js
49231
- var oI = {
49470
+ var mI = {
49232
49471
  title: "Self Assign",
49233
49472
  width: 480,
49234
49473
  className: "self-assign-modal",
49235
- component: aI
49236
- }, sI = { submit: async () => {} };
49474
+ component: pI
49475
+ }, hI = { submit: async () => {} };
49237
49476
  //#endregion
49238
49477
  //#region src/components/popups/definitions/others-assign/config.js
49239
- function cI(e = {}) {
49478
+ function gI(e = {}) {
49240
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);
49241
49480
  return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
49242
49481
  }
49243
- var lI = {
49482
+ var _I = {
49244
49483
  getTitleText: (e, t, n) => {
49245
49484
  let r = n?.jobTitle || n?.title || "";
49246
49485
  return r ? `Assign - ${r}` : "Assign";
@@ -49250,7 +49489,7 @@ var lI = {
49250
49489
  disabledUntilFilled: !0,
49251
49490
  showAlreadyAssigned: !0,
49252
49491
  allowRemovalOnlySubmit: !0,
49253
- getFields: (e) => (cI(e?.selectedRecords?.[0] ?? {}), [{
49492
+ getFields: (e) => (gI(e?.selectedRecords?.[0] ?? {}), [{
49254
49493
  name: "assignToUserId",
49255
49494
  label: "Assign to",
49256
49495
  type: "multi-select",
@@ -49258,7 +49497,7 @@ var lI = {
49258
49497
  placeholder: "Select recruiter(s)",
49259
49498
  fetchOptionsKey: "assignToUsers"
49260
49499
  }])
49261
- }, uI = {
49500
+ }, vI = {
49262
49501
  getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? oc() : [],
49263
49502
  loadExtraData: async (e) => sc(e.selectedIds[0]),
49264
49503
  submit: async (e, t, { removedIds: n, extraData: r }) => {
@@ -49269,7 +49508,7 @@ var lI = {
49269
49508
  existingRecruiters: r?.recruitersData
49270
49509
  });
49271
49510
  }
49272
- }, dI = {
49511
+ }, yI = {
49273
49512
  title: "Add Sticky Notes",
49274
49513
  getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
49275
49514
  okText: "Save",
@@ -49301,7 +49540,7 @@ var lI = {
49301
49540
  initialValueKey: "editingComments"
49302
49541
  }
49303
49542
  ]
49304
- }, fI = {
49543
+ }, bI = {
49305
49544
  getMentionOptions: async (e, t) => Xs(t),
49306
49545
  submit: async (e, t) => {
49307
49546
  let n = e.targetDate ? e.targetDate.toISOString() : "";
@@ -49317,7 +49556,7 @@ var lI = {
49317
49556
  notes: e.comments
49318
49557
  }), window.dispatchEvent(new Event("sticky-notes:refresh"));
49319
49558
  }
49320
- }, pI = {
49559
+ }, xI = {
49321
49560
  title: "Move to Onboarding",
49322
49561
  bodyText: "Are you sure you want to move this candidate to onboarding?",
49323
49562
  okText: "Yes",
@@ -49330,7 +49569,7 @@ var lI = {
49330
49569
  type: "priority-checkbox",
49331
49570
  checkboxLabel: "Send Onboarding Email"
49332
49571
  }]
49333
- }, mI = { submit: async (e, t) => {
49572
+ }, SI = { submit: async (e, t) => {
49334
49573
  await fc({
49335
49574
  submissionId: t.selectedRecords?.[0]?.submissionId,
49336
49575
  isMail: e.sendOnboardingEmail
@@ -49338,39 +49577,39 @@ var lI = {
49338
49577
  } };
49339
49578
  //#endregion
49340
49579
  //#region src/components/popups/definitions/approve-rate/config.js
49341
- function hI(e) {
49580
+ function CI(e) {
49342
49581
  return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
49343
49582
  }
49344
- var gI = {
49583
+ var wI = {
49345
49584
  USD: "$",
49346
49585
  INR: "₹",
49347
49586
  EUR: "€",
49348
49587
  GBP: "£"
49349
49588
  };
49350
- function _I(e, t, n) {
49351
- let r = hI(e?.[t])[n];
49589
+ function TI(e, t, n) {
49590
+ let r = CI(e?.[t])[n];
49352
49591
  if (r != null && r !== "") return r;
49353
49592
  let i = e?.[`${t}.${n}`];
49354
49593
  return i != null && i !== "" ? i : void 0;
49355
49594
  }
49356
- function vI(e) {
49357
- 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");
49358
49597
  if (n === void 0 || Number(n) === 0) return null;
49359
- let r = _I(t, "candidateRate", "candidateAcceptedCurrency") ?? _I(t, "candidateBudget", "candidateBudgetCurrency");
49598
+ let r = TI(t, "candidateRate", "candidateAcceptedCurrency") ?? TI(t, "candidateBudget", "candidateBudgetCurrency");
49360
49599
  return {
49361
49600
  amount: n,
49362
- symbol: _I(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? _I(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? gI[String(r ?? "").toUpperCase()] ?? (r || "$"),
49363
- 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") ?? ""
49364
49603
  };
49365
49604
  }
49366
- var yI = {
49605
+ var DI = {
49367
49606
  title: "Approve Rate",
49368
49607
  okText: "Approve",
49369
49608
  width: 520,
49370
49609
  className: "medium-modal",
49371
49610
  successMessage: "Rate approved",
49372
49611
  getBodyText: (e, t, n, r, i) => {
49373
- let a = vI(i);
49612
+ let a = EI(i);
49374
49613
  return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
49375
49614
  },
49376
49615
  fields: [
@@ -49384,7 +49623,7 @@ var yI = {
49384
49623
  inlineRow: "proposedRate",
49385
49624
  validator: (e, t) => {
49386
49625
  if (e == null || e === "") return;
49387
- let n = vI(t);
49626
+ let n = EI(t);
49388
49627
  if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
49389
49628
  }
49390
49629
  },
@@ -49452,7 +49691,7 @@ var yI = {
49452
49691
  }]
49453
49692
  }
49454
49693
  ]
49455
- }, bI = { submit: async (e, t) => {
49694
+ }, OI = { submit: async (e, t) => {
49456
49695
  let n = t.selectedIds[0];
49457
49696
  if (await pc(n, {
49458
49697
  candidateProposedRate: e.candidateProposedRate,
@@ -49468,7 +49707,7 @@ var yI = {
49468
49707
  } };
49469
49708
  //#endregion
49470
49709
  //#region src/services/mailApproveApi.js
49471
- async function xI(e, t = {}) {
49710
+ async function kI(e, t = {}) {
49472
49711
  let n = C();
49473
49712
  if (!n) {
49474
49713
  let e = /* @__PURE__ */ Error("Authentication required");
@@ -49488,8 +49727,8 @@ async function xI(e, t = {}) {
49488
49727
  }
49489
49728
  return r.json();
49490
49729
  }
49491
- async function SI(e) {
49492
- let t = await xI(`/mail-form?${new URLSearchParams({
49730
+ async function AI(e) {
49731
+ let t = await kI(`/mail-form?${new URLSearchParams({
49493
49732
  submissionId: e,
49494
49733
  submissionType: "manager"
49495
49734
  }).toString()}`);
@@ -49497,29 +49736,29 @@ async function SI(e) {
49497
49736
  }
49498
49737
  //#endregion
49499
49738
  //#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
49500
- function CI(e) {
49739
+ function jI(e) {
49501
49740
  return Array.isArray(e) ? e[e.length - 1] : e;
49502
49741
  }
49503
- function wI(e = {}) {
49504
- 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);
49505
49744
  return Number.isFinite(n) ? n : 0;
49506
49745
  }
49507
- function TI(e, t = {}) {
49508
- 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);
49509
49748
  return Number.isFinite(o) ? o : 0;
49510
49749
  }
49511
- function EI(e = {}) {
49750
+ function PI(e = {}) {
49512
49751
  let t = String(e?.currencyRaw ?? "").trim().toUpperCase(), n = String(e?.currency ?? "").trim();
49513
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;
49514
49753
  }
49515
- function DI(e = {}) {
49754
+ function FI(e = {}) {
49516
49755
  return String(e?.rateUnit ?? "hr").trim().replace(/^\/+/, "") || "hr";
49517
49756
  }
49518
- function OI(e, t = {}) {
49757
+ function II(e, t = {}) {
49519
49758
  let n = Number(e);
49520
- return Number.isFinite(n) ? `${EI(t)}${n}/${DI(t)}` : "";
49759
+ return Number.isFinite(n) ? `${PI(t)}${n}/${FI(t)}` : "";
49521
49760
  }
49522
- function kI(e, t, n) {
49761
+ function LI(e, t, n) {
49523
49762
  if (n == null || n === "") return String(e ?? "");
49524
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");
49525
49764
  r = r.replace(o, (e, t, n, r) => (a = !0, `${t}${i}${r}`));
@@ -49530,25 +49769,25 @@ function kI(e, t, n) {
49530
49769
  }
49531
49770
  return r;
49532
49771
  }
49533
- function AI(e, t, n, r, i) {
49534
- 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 = {
49535
49774
  proposedRate: o,
49536
49775
  jobBillRate: c
49537
49776
  }, u = String(e ?? "").replace(/{{\.?((?:proposedRate)|(?:jobBillRate))}}/g, (e, t) => {
49538
49777
  let n = l[t];
49539
49778
  return n == null ? e : String(n);
49540
49779
  });
49541
- 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;
49542
49781
  }
49543
- function jI(...e) {
49782
+ function zI(...e) {
49544
49783
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
49545
49784
  }
49546
- var MI = (e, t) => !!e && e.toLowerCase() === jI(t).toLowerCase();
49547
- function NI(e, t, n) {
49548
- let r = jI(t.submittedBy);
49549
- 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);
49550
49789
  }
49551
- function PI(e, t = {}) {
49790
+ function HI(e, t = {}) {
49552
49791
  let n = t.employerName ?? e.supplierName ?? e.submitSource;
49553
49792
  return {
49554
49793
  client: t.clientName ?? e.clientName,
@@ -49557,20 +49796,20 @@ function PI(e, t = {}) {
49557
49796
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
49558
49797
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
49559
49798
  vendor: n,
49560
- submittedBy: NI(e, t, n),
49799
+ submittedBy: VI(e, t, n),
49561
49800
  submittedAt: t.createdAt ?? e.createdAt,
49562
49801
  email: t.email ?? e.email,
49563
49802
  employerLocation: t.employerLocation,
49564
49803
  employerName: t.employerName
49565
49804
  };
49566
49805
  }
49567
- function FI(e) {
49806
+ function UI(e) {
49568
49807
  let t = e?.$oid ?? e?._id?.$oid ?? e?._id ?? e?.id?.$oid ?? e?.id ?? e;
49569
49808
  if (t == null || typeof t == "object") return "";
49570
49809
  let n = String(t).trim();
49571
49810
  return /^[a-f\d]{24}$/i.test(n) ? n : "";
49572
49811
  }
49573
- function II(...e) {
49812
+ function WI(...e) {
49574
49813
  for (let t of e) {
49575
49814
  let e = [
49576
49815
  t?.jobId,
@@ -49593,12 +49832,12 @@ function II(...e) {
49593
49832
  t?.submission?.recordMeta?.jobId,
49594
49833
  t?.submission?.recordMeta?.JobId,
49595
49834
  t?.submission?.recordMeta?.job_id
49596
- ].map(FI).find(Boolean);
49835
+ ].map(UI).find(Boolean);
49597
49836
  if (e) return e;
49598
49837
  }
49599
49838
  return "";
49600
49839
  }
49601
- function LI(e) {
49840
+ function GI(e) {
49602
49841
  if (!e?.referralId) return {};
49603
49842
  let t = Number(e.referralRate ?? e.referalRate ?? 0) || 0, n = String(e.referralType ?? e.referalType ?? "RECURRING").trim() || "RECURRING", r = e.referralId ?? e.referalId;
49604
49843
  return {
@@ -49624,10 +49863,10 @@ function LI(e) {
49624
49863
  }
49625
49864
  };
49626
49865
  }
49627
- function RI(e = "") {
49866
+ function KI(e = "") {
49628
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();
49629
49868
  }
49630
- function zI(...e) {
49869
+ function qI(...e) {
49631
49870
  for (let t of e) {
49632
49871
  let e = [
49633
49872
  t?.candidateId,
@@ -49638,12 +49877,12 @@ function zI(...e) {
49638
49877
  t?.submission?.applicantId,
49639
49878
  t?.recordMeta?.candidateId,
49640
49879
  t?.recordMeta?.applicantId
49641
- ].map(FI).find(Boolean);
49880
+ ].map(UI).find(Boolean);
49642
49881
  if (e) return e;
49643
49882
  }
49644
49883
  return "";
49645
49884
  }
49646
- async function BI(e) {
49885
+ async function JI(e) {
49647
49886
  let t = e?.fileUrl ?? e?.downloadUrl ?? e?.url;
49648
49887
  if (!t) return null;
49649
49888
  let n = await fetch(t);
@@ -49651,34 +49890,34 @@ async function BI(e) {
49651
49890
  let r = await n.blob(), i = e?.fileName ?? e?.uploadedFileName ?? e?.originalName ?? e?.uniqueName ?? "resume";
49652
49891
  return new File([r], i, { type: e?.contentType || r.type || "application/octet-stream" });
49653
49892
  }
49654
- async function VI(e, t, n) {
49893
+ async function YI(e, t, n) {
49655
49894
  let r = [], i = await kn("submissions", e, "resume").catch(() => ({ data: [] }));
49656
49895
  r.push(...i?.data ?? []);
49657
- let a = zI(t?.record?.submission, n, t?.record);
49896
+ let a = qI(t?.record?.submission, n, t?.record);
49658
49897
  if (!a) {
49659
49898
  let t = await v(E, `/module/list?module=submissions&id=${encodeURIComponent(e)}`).catch(() => ({})), n = t?.data ?? t ?? {};
49660
- 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]);
49661
49900
  }
49662
49901
  if (a) {
49663
49902
  let e = await kn("candidates", a, "resume").catch(() => ({ data: [] }));
49664
49903
  r.push(...e?.data ?? []);
49665
49904
  }
49666
- 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();
49667
49906
  return o.filter((e) => {
49668
49907
  let t = `${e.name}:${e.size}:${e.type}`;
49669
49908
  return !s.has(t) && (s.add(t), !0);
49670
49909
  });
49671
49910
  }
49672
- function HI(e = {}) {
49911
+ function XI(e = {}) {
49673
49912
  return {
49674
49913
  to: (e.to ?? e.To ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
49675
49914
  cc: (e.cc ?? e.Cc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
49676
49915
  bcc: (e.bcc ?? e.Bcc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
49677
49916
  subject: e.subject ?? e.Subject ?? "",
49678
- 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 ?? "")
49679
49918
  };
49680
49919
  }
49681
- 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 }) {
49682
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({
49683
49922
  to: "",
49684
49923
  cc: "",
@@ -49717,13 +49956,13 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49717
49956
  if (h === "mail") {
49718
49957
  m(!1), w(!0), E(!0);
49719
49958
  try {
49720
- 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;
49721
49960
  ee({
49722
- to: AI(e.to, n, _, s, a),
49723
- cc: AI(e.cc, n, _, s, a),
49724
- bcc: AI(e.bcc, n, _, s, a),
49725
- subject: AI(e.subject, n, _, s, a),
49726
- 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),
49727
49966
  attachments: t,
49728
49967
  showCc: !!e.cc,
49729
49968
  showBcc: !!e.bcc
@@ -49742,7 +49981,7 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49742
49981
  candidateProposedRateCurrency: _.currencyRaw ?? _.currency,
49743
49982
  candidateProposedRateUnit: _.rateUnit,
49744
49983
  submitVia: "VMS",
49745
- ...LI(y)
49984
+ ...GI(y)
49746
49985
  }), q.success("Submission approved"), m(!1), v(null), b(null), i?.({ success: !0 });
49747
49986
  } catch (e) {
49748
49987
  q.error(e?.message ?? "Unable to approve submission");
@@ -49762,9 +50001,9 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49762
50001
  await pc(o, {
49763
50002
  ...e,
49764
50003
  submitVia: "VMS",
49765
- ...LI(y)
50004
+ ...GI(y)
49766
50005
  });
49767
- let t = II(s?.record, a);
50006
+ let t = WI(s?.record, a);
49768
50007
  if (!t) q.warning("Submission approved, but job details were not available to send mail");
49769
50008
  else try {
49770
50009
  await du({
@@ -49818,7 +50057,7 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49818
50057
  type: ZC,
49819
50058
  record: s.record,
49820
50059
  lookups: s.lookups,
49821
- identity: PI(a, s.display),
50060
+ identity: HI(a, s.display),
49822
50061
  referralOptions: d,
49823
50062
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
49824
50063
  actions: ne,
@@ -49892,7 +50131,7 @@ function UI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
49892
50131
  })
49893
50132
  ] });
49894
50133
  }
49895
- UI.propTypes = {
50134
+ ZI.propTypes = {
49896
50135
  context: Z.object,
49897
50136
  selectedIds: Z.array,
49898
50137
  selectedRecords: Z.array,
@@ -49901,23 +50140,23 @@ UI.propTypes = {
49901
50140
  };
49902
50141
  //#endregion
49903
50142
  //#region src/components/popups/definitions/manager-approve/config.js
49904
- var WI = {
50143
+ var QI = {
49905
50144
  title: "Manager Approve",
49906
50145
  width: 780,
49907
50146
  className: "fa-modal manager-approve-modal",
49908
- component: UI
49909
- }, GI = { submit: async () => {} };
50147
+ component: ZI
50148
+ }, $I = { submit: async () => {} };
49910
50149
  //#endregion
49911
50150
  //#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
49912
- function KI(...e) {
50151
+ function eL(...e) {
49913
50152
  return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
49914
50153
  }
49915
- var qI = (e, t) => !!e && e.toLowerCase() === KI(t).toLowerCase();
49916
- function JI(e, t, n) {
49917
- let r = KI(t.submittedBy);
49918
- 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);
49919
50158
  }
49920
- function YI(e, t = {}) {
50159
+ function rL(e, t = {}) {
49921
50160
  let n = t.employerName ?? e.supplierName ?? e.submitSource;
49922
50161
  return {
49923
50162
  client: t.clientName ?? e.clientName,
@@ -49926,28 +50165,28 @@ function YI(e, t = {}) {
49926
50165
  name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
49927
50166
  location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
49928
50167
  vendor: n,
49929
- submittedBy: JI(e, t, n),
50168
+ submittedBy: nL(e, t, n),
49930
50169
  submittedAt: t.createdAt ?? e.createdAt,
49931
50170
  email: t.email ?? e.email,
49932
50171
  employerLocation: t.employerLocation,
49933
50172
  employerName: t.employerName
49934
50173
  };
49935
50174
  }
49936
- function XI(e) {
50175
+ function iL(e) {
49937
50176
  let t = Array.isArray(e) ? e : [];
49938
50177
  for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
49939
50178
  return null;
49940
50179
  }
49941
- function ZI(e) {
50180
+ function aL(e) {
49942
50181
  return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
49943
50182
  }
49944
- function QI({ selectedIds: e, selectedRecords: t, onClose: n }) {
50183
+ function oL({ selectedIds: e, selectedRecords: t, onClose: n }) {
49945
50184
  let r = t?.[0] ?? {}, i = e?.[0] ?? Cw(r), [a, o] = L(null), [s, c] = L(""), [l, u] = L(!0);
49946
50185
  F(() => {
49947
50186
  let e = !1;
49948
50187
  return u(!0), Promise.all([uT(i, r), Hr("submission", i).catch(() => [])]).then(([t, n]) => {
49949
50188
  if (e) return;
49950
- let i = XI(n);
50189
+ let i = iL(n);
49951
50190
  c(Cw(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
49952
50191
  let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
49953
50192
  o({
@@ -49956,7 +50195,7 @@ function QI({ selectedIds: e, selectedRecords: t, onClose: n }) {
49956
50195
  ...t.record,
49957
50196
  submission: {
49958
50197
  ...t.record.submission,
49959
- cfoRejectionReason: a ? ZI(a) : "",
50198
+ cfoRejectionReason: a ? aL(a) : "",
49960
50199
  cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
49961
50200
  }
49962
50201
  }
@@ -50004,26 +50243,26 @@ function QI({ selectedIds: e, selectedRecords: t, onClose: n }) {
50004
50243
  type: tw,
50005
50244
  record: a.record,
50006
50245
  lookups: a.lookups,
50007
- identity: YI(r, a.display),
50246
+ identity: rL(r, a.display),
50008
50247
  currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
50009
50248
  actions: d,
50010
50249
  onClose: () => n?.(),
50011
50250
  variant: "popup"
50012
50251
  });
50013
50252
  }
50014
- QI.propTypes = {
50253
+ oL.propTypes = {
50015
50254
  selectedIds: Z.array,
50016
50255
  selectedRecords: Z.array,
50017
50256
  onClose: Z.func
50018
50257
  };
50019
50258
  //#endregion
50020
50259
  //#region src/components/popups/definitions/manager-reapprove/config.js
50021
- var $I = {
50260
+ var sL = {
50022
50261
  title: "Re-Approve",
50023
50262
  width: 780,
50024
50263
  className: "fa-modal manager-approve-modal",
50025
- component: QI
50026
- }, eL = { submit: async () => {} }, tL = [
50264
+ component: oL
50265
+ }, cL = { submit: async () => {} }, lL = [
50027
50266
  {
50028
50267
  id: 1,
50029
50268
  name: "Re-Submission"
@@ -50036,7 +50275,7 @@ var $I = {
50036
50275
  id: 3,
50037
50276
  name: "Incomplete candidate details - (Re-Submission)"
50038
50277
  }
50039
- ], nL = {
50278
+ ], uL = {
50040
50279
  title: "Reject",
50041
50280
  okText: "Reject",
50042
50281
  okButtonDanger: !0,
@@ -50048,7 +50287,7 @@ var $I = {
50048
50287
  type: "select",
50049
50288
  required: !0,
50050
50289
  placeholder: "Select rejection reasons",
50051
- defaultOptions: tL.map((e) => ({
50290
+ defaultOptions: lL.map((e) => ({
50052
50291
  label: e.name,
50053
50292
  value: e.id
50054
50293
  }))
@@ -50059,88 +50298,88 @@ var $I = {
50059
50298
  required: !0,
50060
50299
  rows: 4
50061
50300
  }]
50062
- }, rL = { submit: async (e, t) => {
50063
- 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));
50064
50303
  await gc({
50065
50304
  submissionId: t.selectedIds[0],
50066
50305
  rejectReasonId: e.rejectReason,
50067
50306
  rejectReason: n?.name ?? "",
50068
50307
  rejectReasonComments: e.rejectReasonComments
50069
50308
  });
50070
- } }, iL = {
50071
- delete: nF,
50072
- "quick-submit": jF,
50073
- "add-notes": MF,
50074
- "tag-to-job": RF,
50075
- "change-status": ZF,
50076
- "remove-from-shortlist": eI,
50077
- "add-to-groups": nI,
50078
- "self-assign": oI,
50079
- "others-assign": lI,
50080
- "sticky-notes": dI,
50081
- "move-to-onboarding": pI,
50082
- "approve-rate": yI,
50083
- "manager-approve": WI,
50084
- "manager-reapprove": $I,
50085
- reject: nL
50086
- }, aL = {
50087
- delete: rF,
50088
- "quick-submit": AF,
50089
- "add-notes": FF,
50090
- "tag-to-job": XF,
50091
- "change-status": $F,
50092
- "remove-from-shortlist": tI,
50093
- "add-to-groups": rI,
50094
- "self-assign": sI,
50095
- "others-assign": uI,
50096
- "sticky-notes": fI,
50097
- "move-to-onboarding": mI,
50098
- "approve-rate": bI,
50099
- "manager-approve": GI,
50100
- "manager-reapprove": eL,
50101
- 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
50102
50341
  };
50103
50342
  //#endregion
50104
50343
  //#region src/components/popups/AddBatchCandidatePopup.jsx
50105
- function oL(e) {
50344
+ function mL(e) {
50106
50345
  let t = e?.data ?? e;
50107
50346
  return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
50108
50347
  }
50109
- function sL(e, ...t) {
50348
+ function hL(e, ...t) {
50110
50349
  for (let n of t) {
50111
50350
  let t = String(n).split(".").reduce((e, t) => e?.[t], e);
50112
50351
  if (t != null && t !== "") return t;
50113
50352
  }
50114
50353
  return "";
50115
50354
  }
50116
- function cL(e) {
50117
- 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();
50118
50357
  return t !== "true" && t !== "1" && ![
50119
50358
  "removed",
50120
50359
  "inactive",
50121
50360
  "deleted"
50122
50361
  ].includes(n);
50123
50362
  }
50124
- function lL(e) {
50125
- let t = sL(e, "candidateName", "candidate_name", "fullName", "name");
50126
- 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";
50127
50366
  }
50128
- function uL(e) {
50129
- 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"));
50130
50369
  }
50131
- function dL(e) {
50132
- return String(sL(e, "workforceEngagementId", "engagementId", "_id", "id"));
50370
+ function yL(e) {
50371
+ return String(hL(e, "workforceEngagementId", "engagementId", "_id", "id"));
50133
50372
  }
50134
- function fL(e) {
50135
- return String(sL(e, "batchName", "name", "title", "batch_name"));
50373
+ function bL(e) {
50374
+ return String(hL(e, "batchName", "name", "title", "batch_name"));
50136
50375
  }
50137
- function pL({ open: e = !0, context: t = {}, onClose: n }) {
50376
+ function xL({ open: e = !0, context: t = {}, onClose: n }) {
50138
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 ?? "");
50139
50378
  F(() => {
50140
50379
  if (!e) return;
50141
50380
  let t = !1;
50142
50381
  return Promise.resolve().then(() => (t || u(!0), Promise.all([ii("onboarding", 200, 0), ii("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
50143
- 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))));
50144
50383
  }).catch((e) => {
50145
50384
  t || m(e.message || "Unable to load onboarding candidates");
50146
50385
  }).finally(() => {
@@ -50152,9 +50391,9 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50152
50391
  let v = I(() => {
50153
50392
  let e = s.trim().toLowerCase();
50154
50393
  return e ? r.filter((t) => [
50155
- lL(t),
50156
- sL(t, "email", "candidateEmail", "candidate_email"),
50157
- sL(t, "status", "onboardingStatus", "onboarding_status")
50394
+ _L(t),
50395
+ hL(t, "email", "candidateEmail", "candidate_email"),
50396
+ hL(t, "status", "onboardingStatus", "onboarding_status")
50158
50397
  ].some((t) => String(t).toLowerCase().includes(e))) : r;
50159
50398
  }, [r, s]);
50160
50399
  async function y() {
@@ -50162,26 +50401,26 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50162
50401
  m("Select a batch before adding candidates");
50163
50402
  return;
50164
50403
  }
50165
- let e = r.filter((e) => a.includes(dL(e)));
50404
+ let e = r.filter((e) => a.includes(yL(e)));
50166
50405
  if (!e.length) return;
50167
50406
  let i = e.map((e) => ({
50168
50407
  record: e,
50169
- assignment: h.get(uL(e))
50408
+ assignment: h.get(vL(e))
50170
50409
  })).filter((e) => e.assignment);
50171
50410
  if (i.length) {
50172
- let e = i.map(({ record: e }) => lL(e)).join(", ");
50411
+ let e = i.map(({ record: e }) => _L(e)).join(", ");
50173
50412
  m(`${e} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
50174
50413
  return;
50175
50414
  }
50176
50415
  f(!0), m("");
50177
50416
  try {
50178
- let { userId: r } = x(), i = fL(t.selectedRecords?.[0]) || fL(t);
50417
+ let { userId: r } = x(), i = bL(t.selectedRecords?.[0]) || bL(t);
50179
50418
  await Promise.all(e.map((e) => It("batchCandidates", {
50180
50419
  schemaVersion: 1,
50181
50420
  batchId: _,
50182
50421
  batchName: i,
50183
- candidateId: uL(e),
50184
- workforceEngagementId: dL(e),
50422
+ candidateId: vL(e),
50423
+ workforceEngagementId: yL(e),
50185
50424
  source: "ONBOARDING",
50186
50425
  assignmentStatus: "ASSIGNED",
50187
50426
  assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -50224,22 +50463,22 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50224
50463
  style: { marginBottom: 12 }
50225
50464
  }),
50226
50465
  /* @__PURE__ */ Y(ea, {
50227
- rowKey: (e) => dL(e),
50466
+ rowKey: (e) => yL(e),
50228
50467
  columns: [
50229
50468
  {
50230
50469
  title: "Candidate",
50231
50470
  key: "candidate",
50232
- render: (e, t) => lL(t)
50471
+ render: (e, t) => _L(t)
50233
50472
  },
50234
50473
  {
50235
50474
  title: "Email",
50236
50475
  key: "email",
50237
- render: (e, t) => sL(t, "email", "candidateEmail", "candidate_email") || "—"
50476
+ render: (e, t) => hL(t, "email", "candidateEmail", "candidate_email") || "—"
50238
50477
  },
50239
50478
  {
50240
50479
  title: "Onboarding status",
50241
50480
  key: "status",
50242
- render: (e, t) => sL(t, "status", "onboardingStatus", "onboarding_status") || "—"
50481
+ render: (e, t) => hL(t, "status", "onboardingStatus", "onboarding_status") || "—"
50243
50482
  }
50244
50483
  ],
50245
50484
  dataSource: v,
@@ -50253,9 +50492,9 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50253
50492
  selectedRowKeys: a,
50254
50493
  onChange: o,
50255
50494
  getCheckboxProps: (e) => {
50256
- let t = h.get(uL(e));
50495
+ let t = h.get(vL(e));
50257
50496
  return {
50258
- disabled: !uL(e) || !dL(e) || !!t,
50497
+ disabled: !vL(e) || !yL(e) || !!t,
50259
50498
  title: t ? "Candidate is already added to a batch" : void 0
50260
50499
  };
50261
50500
  }
@@ -50267,7 +50506,7 @@ function pL({ open: e = !0, context: t = {}, onClose: n }) {
50267
50506
  }
50268
50507
  //#endregion
50269
50508
  //#region src/components/popups/dynamic/DynamicPopupRoute.jsx
50270
- var mL = {
50509
+ var SL = {
50271
50510
  text: "input",
50272
50511
  string: "input",
50273
50512
  textarea: "textarea",
@@ -50276,30 +50515,30 @@ var mL = {
50276
50515
  multiselect: "multi-select",
50277
50516
  lookup: "search-select"
50278
50517
  };
50279
- function hL(e) {
50518
+ function CL(e) {
50280
50519
  if (!e) return null;
50281
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) => ({
50282
50521
  ...e,
50283
50522
  name: e.name ?? e.field,
50284
50523
  label: e.label ?? e.field,
50285
- type: mL[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
50524
+ type: SL[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
50286
50525
  required: e.required ?? e.req === 1,
50287
50526
  options: (e.options ?? []).map((e) => ({
50288
50527
  label: e.label ?? e.name ?? e.value,
50289
50528
  value: e.value ?? e.id ?? e.label
50290
50529
  }))
50291
- }))), n = gL(e.successNavigate);
50530
+ }))), n = wL(e.successNavigate);
50292
50531
  return {
50293
50532
  title: e.label,
50294
50533
  fields: t,
50295
50534
  ...n ? { successNavigate: n } : {}
50296
50535
  };
50297
50536
  }
50298
- function gL(e) {
50537
+ function wL(e) {
50299
50538
  let t = String(e ?? "").trim();
50300
50539
  return !t || !t.startsWith("/") || t.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(t) ? null : t;
50301
50540
  }
50302
- function _L(e, t = []) {
50541
+ function TL(e, t = []) {
50303
50542
  if (!e || !Array.isArray(t) || !t.length) return e;
50304
50543
  let n = new Map(t.filter((e) => e?.name).map((e) => [String(e.name), e]));
50305
50544
  return n.size ? {
@@ -50315,12 +50554,12 @@ function _L(e, t = []) {
50315
50554
  })
50316
50555
  } : e;
50317
50556
  }
50318
- function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50557
+ function EL({ apiMap: e = {}, extraConfigs: t = {} }) {
50319
50558
  let n = I(() => ({
50320
- ...aL,
50559
+ ...pL,
50321
50560
  ...e
50322
50561
  }), [e]), r = I(() => {
50323
- let e = { ...iL };
50562
+ let e = { ...fL };
50324
50563
  return Object.entries(t).forEach(([t, n]) => {
50325
50564
  e[t] = {
50326
50565
  ...e[t] ?? {},
@@ -50338,7 +50577,7 @@ function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50338
50577
  return ti(o.moduleName, "popup", i).then((n) => {
50339
50578
  e || c({
50340
50579
  key: t,
50341
- config: hL(n[0])
50580
+ config: CL(n[0])
50342
50581
  });
50343
50582
  }).catch(() => {
50344
50583
  e || c({
@@ -50351,7 +50590,7 @@ function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50351
50590
  }, [i, o.moduleName]);
50352
50591
  let l = I(() => {
50353
50592
  let e = r[i], t = `${o.moduleName}:${i}`, n = s.key === t ? s.config : null;
50354
- return _L(n ? {
50593
+ return TL(n ? {
50355
50594
  ...e,
50356
50595
  ...n
50357
50596
  } : e, o.popupAction?.popupFieldOverrides);
@@ -50410,11 +50649,11 @@ function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50410
50649
  }
50411
50650
  a(-1);
50412
50651
  };
50413
- return i === "add-batch-candidate" ? /* @__PURE__ */ Y(pL, {
50652
+ return i === "add-batch-candidate" ? /* @__PURE__ */ Y(xL, {
50414
50653
  open: !0,
50415
50654
  context: u,
50416
50655
  onClose: f
50417
- }) : /* @__PURE__ */ Y(tF, {
50656
+ }) : /* @__PURE__ */ Y(lF, {
50418
50657
  open: !0,
50419
50658
  config: l,
50420
50659
  context: u,
@@ -50427,7 +50666,7 @@ function vL({ apiMap: e = {}, extraConfigs: t = {} }) {
50427
50666
  }
50428
50667
  //#endregion
50429
50668
  //#region src/components/popups/definitions/vendor-share/config.js
50430
- var yL = {
50669
+ var DL = {
50431
50670
  title: "Vendor Share",
50432
50671
  maxVendorSelect: 1e3,
50433
50672
  defaultTab: "myVendor",
@@ -50461,7 +50700,7 @@ var yL = {
50461
50700
  key: "updatedOn"
50462
50701
  }
50463
50702
  ]
50464
- }, bL = {
50703
+ }, OL = {
50465
50704
  getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => cu({
50466
50705
  jobId: e,
50467
50706
  limit: t,
@@ -50478,11 +50717,11 @@ var yL = {
50478
50717
  subject: i,
50479
50718
  contents: a
50480
50719
  })
50481
- }, xL = yL.vendorColumns.map((e) => ({
50720
+ }, kL = DL.vendorColumns.map((e) => ({
50482
50721
  ...e,
50483
50722
  render: (e) => e || "-"
50484
50723
  }));
50485
- function SL() {
50724
+ function AL() {
50486
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({
50487
50726
  to: i.join(", "),
50488
50727
  cc: "",
@@ -50491,13 +50730,13 @@ function SL() {
50491
50730
  contents: "",
50492
50731
  showCc: !1,
50493
50732
  showBcc: !1
50494
- }), [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([]);
50495
50734
  F(() => {
50496
50735
  if (!l) return;
50497
50736
  let e = !1;
50498
50737
  A(!0);
50499
50738
  let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
50500
- return bL.getVendorList({
50739
+ return OL.getVendorList({
50501
50740
  jobId: l,
50502
50741
  limit: t,
50503
50742
  offset: n,
@@ -50520,7 +50759,7 @@ function SL() {
50520
50759
  O,
50521
50760
  g
50522
50761
  ]), F(() => {
50523
- l && bL.getMailDetails(l).then((e) => d((t) => ({
50762
+ l && OL.getMailDetails(l).then((e) => d((t) => ({
50524
50763
  ...t,
50525
50764
  subject: e.subject || t.subject,
50526
50765
  contents: e.contents || t.contents,
@@ -50545,7 +50784,7 @@ function SL() {
50545
50784
  e(-1);
50546
50785
  }
50547
50786
  function oe() {
50548
- ie && bL.submit({
50787
+ ie && OL.submit({
50549
50788
  jobId: l,
50550
50789
  toMail: GM(M.to),
50551
50790
  ccMail: GM(M.cc),
@@ -50626,7 +50865,7 @@ function SL() {
50626
50865
  ]
50627
50866
  }), /* @__PURE__ */ Y("div", {
50628
50867
  className: "vendor-share__vendor-tabs",
50629
- children: yL.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
50868
+ children: DL.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
50630
50869
  className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
50631
50870
  onClick: () => {
50632
50871
  h(e.key), D(1), te([]);
@@ -50644,7 +50883,7 @@ function SL() {
50644
50883
  className: "vendor-share__vendor-table-wrapper",
50645
50884
  children: /* @__PURE__ */ Y(ea, {
50646
50885
  rowKey: (e) => e.vendorId,
50647
- columns: xL,
50886
+ columns: kL,
50648
50887
  dataSource: se,
50649
50888
  loading: ee,
50650
50889
  pagination: !1,
@@ -50652,7 +50891,7 @@ function SL() {
50652
50891
  rowSelection: {
50653
50892
  selectedRowKeys: j,
50654
50893
  onChange: (e) => {
50655
- e.length > yL.maxVendorSelect || te(e);
50894
+ e.length > DL.maxVendorSelect || te(e);
50656
50895
  }
50657
50896
  },
50658
50897
  scroll: { y: "calc(100vh - 340px)" }
@@ -50686,7 +50925,7 @@ function SL() {
50686
50925
  children: [
50687
50926
  j.length,
50688
50927
  " / ",
50689
- yL.maxVendorSelect,
50928
+ DL.maxVendorSelect,
50690
50929
  " Vendors selected"
50691
50930
  ]
50692
50931
  }) : null
@@ -50697,7 +50936,7 @@ function SL() {
50697
50936
  }
50698
50937
  //#endregion
50699
50938
  //#region src/components/form/validation.js
50700
- var CL = {
50939
+ var jL = {
50701
50940
  EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
50702
50941
  PHONE: /^[0-9]{10}$/,
50703
50942
  PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
@@ -50714,7 +50953,7 @@ var CL = {
50714
50953
  FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
50715
50954
  NO_SPACES: /^\S+$/,
50716
50955
  STARTS_WITH_CAPITAL: /^[A-Z].*$/
50717
- }, wL = {
50956
+ }, ML = {
50718
50957
  SINGLE_FILE_COUNT: 1,
50719
50958
  MULTI_FILE_COUNT: 5,
50720
50959
  MAX_FILE_SIZE: 2,
@@ -50723,7 +50962,7 @@ var CL = {
50723
50962
  "image/png",
50724
50963
  "application/pdf"
50725
50964
  ]
50726
- }, TL = {
50965
+ }, NL = {
50727
50966
  REQUIRED: (e) => "Mandatory Field",
50728
50967
  INVALID_EMAIL: "Please enter a valid email address.",
50729
50968
  INVALID_PHONE: "Phone number must contain exactly 10 digits.",
@@ -50743,16 +50982,16 @@ var CL = {
50743
50982
  NO_SPACES_ALLOWED: "Spaces are not allowed.",
50744
50983
  MUST_START_WITH_CAPITAL: "First letter must be capital.",
50745
50984
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
50746
- 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.`,
50747
50986
  INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
50748
50987
  SINGLE_FILE_ONLY: "Only one file can be uploaded."
50749
- }, EL = {
50988
+ }, PL = {
50750
50989
  FIRST_NAME_MIN: 3,
50751
50990
  FIRST_NAME_MAX: 30
50752
- }, DL = {
50991
+ }, FL = {
50753
50992
  REMARKS_MIN: 10,
50754
50993
  REMARKS_MAX: 250
50755
- }, OL = {
50994
+ }, IL = {
50756
50995
  removeSpaces: (e = "") => e.replace(/\s/g, ""),
50757
50996
  capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
50758
50997
  capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
@@ -50764,132 +51003,132 @@ var CL = {
50764
51003
  let t = e.replace(/\D/g, "");
50765
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)}`;
50766
51005
  }
50767
- }, kL = {
51006
+ }, LL = {
50768
51007
  required: (e = "Field") => ({
50769
51008
  required: !0,
50770
- message: TL.REQUIRED(e)
51009
+ message: NL.REQUIRED(e)
50771
51010
  }),
50772
51011
  email: () => ({
50773
- pattern: CL.EMAIL,
50774
- message: TL.INVALID_EMAIL
51012
+ pattern: jL.EMAIL,
51013
+ message: NL.INVALID_EMAIL
50775
51014
  }),
50776
51015
  phone: () => ({
50777
- pattern: CL.PHONE,
50778
- message: TL.INVALID_PHONE
51016
+ pattern: jL.PHONE,
51017
+ message: NL.INVALID_PHONE
50779
51018
  }),
50780
51019
  password: () => ({
50781
- pattern: CL.PASSWORD,
50782
- message: TL.INVALID_PASSWORD
51020
+ pattern: jL.PASSWORD,
51021
+ message: NL.INVALID_PASSWORD
50783
51022
  }),
50784
51023
  alphabets: () => ({
50785
- pattern: CL.ALPHABETS,
50786
- message: TL.INVALID_ALPHABETS
51024
+ pattern: jL.ALPHABETS,
51025
+ message: NL.INVALID_ALPHABETS
50787
51026
  }),
50788
51027
  alphanumeric: () => ({
50789
- pattern: CL.ALPHANUMERIC,
50790
- message: TL.INVALID_ALPHANUMERIC
51028
+ pattern: jL.ALPHANUMERIC,
51029
+ message: NL.INVALID_ALPHANUMERIC
50791
51030
  }),
50792
51031
  number: () => ({
50793
- pattern: CL.NUMBER,
50794
- message: TL.INVALID_NUMBER
51032
+ pattern: jL.NUMBER,
51033
+ message: NL.INVALID_NUMBER
50795
51034
  }),
50796
51035
  url: () => ({
50797
- pattern: CL.URL,
50798
- message: TL.INVALID_URL
51036
+ pattern: jL.URL,
51037
+ message: NL.INVALID_URL
50799
51038
  }),
50800
51039
  candidateId: (e = "ID") => ({
50801
- pattern: CL.CANDIDATE_ID,
50802
- message: TL.INVALID_CANDIDATE_ID(e)
51040
+ pattern: jL.CANDIDATE_ID,
51041
+ message: NL.INVALID_CANDIDATE_ID(e)
50803
51042
  }),
50804
51043
  remarks: () => ({
50805
- pattern: CL.REMARKS,
50806
- message: TL.INVALID_REMARKS,
50807
- REMARKS_MIN: `Remarks must be at least ${DL.REMARKS_MIN} characters.`,
50808
- 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.`
50809
51048
  }),
50810
51049
  designation: () => ({
50811
- pattern: CL.DESIGNATION,
50812
- message: TL.INVALID_DESIGNATION
51050
+ pattern: jL.DESIGNATION,
51051
+ message: NL.INVALID_DESIGNATION
50813
51052
  }),
50814
51053
  dob: (e = !0) => ({ validator: (t, n) => {
50815
51054
  if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
50816
- 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));
50817
51056
  let r = rs(n, "MM/DD/YYYY", !0);
50818
- if (!r.isValid()) return Promise.reject(Error(TL.INVALID_DOB));
51057
+ if (!r.isValid()) return Promise.reject(Error(NL.INVALID_DOB));
50819
51058
  let i = rs().endOf("day");
50820
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();
50821
51060
  } }),
50822
51061
  linkedin: () => ({
50823
- pattern: CL.LINKEDIN,
50824
- message: TL.INVALID_LINKEDIN
51062
+ pattern: jL.LINKEDIN,
51063
+ message: NL.INVALID_LINKEDIN
50825
51064
  }),
50826
51065
  companyName: () => ({
50827
- pattern: CL.COMPANY_NAME,
50828
- message: TL.INVALID_COMPANY_NAME
51066
+ pattern: jL.COMPANY_NAME,
51067
+ message: NL.INVALID_COMPANY_NAME
50829
51068
  }),
50830
51069
  firstName: () => ({
50831
- pattern: CL.FIRST_NAME,
50832
- message: TL.INVALID_FIRST_NAME,
50833
- FIRST_NAME_MIN: `First Name must be at least ${EL.FIRST_NAME_MIN} characters.`,
50834
- 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.`
50835
51074
  }),
50836
51075
  firstNameMinLength: () => ({
50837
- min: EL.FIRST_NAME_MIN,
50838
- message: TL.FIRST_NAME_MIN
51076
+ min: PL.FIRST_NAME_MIN,
51077
+ message: NL.FIRST_NAME_MIN
50839
51078
  }),
50840
51079
  firstNameMaxLength: () => ({
50841
- max: EL.FIRST_NAME_MAX,
50842
- message: TL.FIRST_NAME_MAX
51080
+ max: PL.FIRST_NAME_MAX,
51081
+ message: NL.FIRST_NAME_MAX
50843
51082
  }),
50844
51083
  remarksMinLength: () => ({
50845
- min: DL.REMARKS_MIN,
50846
- message: TL.REMARKS_MIN
51084
+ min: FL.REMARKS_MIN,
51085
+ message: NL.REMARKS_MIN
50847
51086
  }),
50848
51087
  remarksMaxLength: () => ({
50849
- max: DL.REMARKS_MAX,
50850
- message: TL.REMARKS_MAX
51088
+ max: FL.REMARKS_MAX,
51089
+ message: NL.REMARKS_MAX
50851
51090
  }),
50852
51091
  fullName: () => ({
50853
- pattern: CL.FULL_NAME,
50854
- message: TL.INVALID_FULL_NAME
51092
+ pattern: jL.FULL_NAME,
51093
+ message: NL.INVALID_FULL_NAME
50855
51094
  }),
50856
51095
  noSpaces: () => ({
50857
- pattern: CL.NO_SPACES,
50858
- message: TL.NO_SPACES_ALLOWED
51096
+ pattern: jL.NO_SPACES,
51097
+ message: NL.NO_SPACES_ALLOWED
50859
51098
  }),
50860
51099
  startsWithCapital: () => ({
50861
- pattern: CL.STARTS_WITH_CAPITAL,
50862
- message: TL.MUST_START_WITH_CAPITAL
51100
+ pattern: jL.STARTS_WITH_CAPITAL,
51101
+ message: NL.MUST_START_WITH_CAPITAL
50863
51102
  }),
50864
51103
  fileUpload: () => ({ validator: (e, t) => {
50865
51104
  if (!t || t.length === 0) return Promise.resolve();
50866
51105
  for (let e of t) {
50867
51106
  let t = e.originFileObj || e;
50868
- if (!(t.size / 1024 / 1024 <= wL.MAX_FILE_SIZE)) return q.error(TL.INVALID_FILE_SIZE), Promise.reject(Error(TL.INVALID_FILE_SIZE));
50869
- 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));
50870
51109
  }
50871
51110
  return Promise.resolve();
50872
51111
  } }),
50873
51112
  singleFileUpload: () => ({ validator: (e, t) => {
50874
51113
  if (!t || t.length === 0) return Promise.resolve();
50875
- 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));
50876
51115
  let n = t[0];
50877
- 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));
50878
51117
  } }),
50879
51118
  multiFileUpload: () => ({ validator: (e, t) => {
50880
51119
  if (!t || t.length === 0) return Promise.resolve();
50881
- 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));
50882
51121
  for (let e of t) {
50883
- if (!(e.size / 1024 / 1024 < wL.MAX_FILE_SIZE)) return Promise.reject(Error(TL.INVALID_FILE_SIZE));
50884
- 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));
50885
51124
  }
50886
51125
  return Promise.resolve();
50887
51126
  } })
50888
- }, AL = { beforeUpload: (e) => [
51127
+ }, RL = { beforeUpload: (e) => [
50889
51128
  "image/jpeg",
50890
51129
  "image/png",
50891
51130
  "application/pdf"
50892
- ].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 = () => {
50893
51132
  let [e] = B.useForm();
50894
51133
  return /* @__PURE__ */ Y("div", {
50895
51134
  style: { padding: 24 },
@@ -50909,7 +51148,7 @@ var CL = {
50909
51148
  children: /* @__PURE__ */ Y(B.Item, {
50910
51149
  label: "Email",
50911
51150
  name: "email",
50912
- rules: [kL.required("Email"), kL.email()],
51151
+ rules: [LL.required("Email"), LL.email()],
50913
51152
  children: /* @__PURE__ */ Y(V, {})
50914
51153
  })
50915
51154
  }),
@@ -50918,12 +51157,12 @@ var CL = {
50918
51157
  children: /* @__PURE__ */ Y(B.Item, {
50919
51158
  label: "Phone Number",
50920
51159
  name: "phone",
50921
- rules: [kL.required("Phone Number"), kL.phone()],
51160
+ rules: [LL.required("Phone Number"), LL.phone()],
50922
51161
  validateTrigger: ["onBlur", "onChange"],
50923
51162
  children: /* @__PURE__ */ Y(V, {
50924
51163
  maxLength: 10,
50925
51164
  onChange: (t) => {
50926
- e.setFieldsValue({ phone: OL.phoneFormatter(t.target.value) });
51165
+ e.setFieldsValue({ phone: IL.phoneFormatter(t.target.value) });
50927
51166
  }
50928
51167
  })
50929
51168
  })
@@ -50933,7 +51172,7 @@ var CL = {
50933
51172
  children: /* @__PURE__ */ Y(B.Item, {
50934
51173
  label: "Password",
50935
51174
  name: "password",
50936
- rules: [kL.required("Password"), kL.password()],
51175
+ rules: [LL.required("Password"), LL.password()],
50937
51176
  children: /* @__PURE__ */ Y(V.Password, {})
50938
51177
  })
50939
51178
  }),
@@ -50943,13 +51182,13 @@ var CL = {
50943
51182
  label: "Full Name",
50944
51183
  name: "fullName",
50945
51184
  rules: [
50946
- kL.required("Full Name"),
50947
- kL.alphabets(),
50948
- kL.firstNameMinLength(),
50949
- kL.firstNameMaxLength()
51185
+ LL.required("Full Name"),
51186
+ LL.alphabets(),
51187
+ LL.firstNameMinLength(),
51188
+ LL.firstNameMaxLength()
50950
51189
  ],
50951
51190
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50952
- e.setFieldsValue({ fullName: OL.firstNameFormatter(t.target.value) });
51191
+ e.setFieldsValue({ fullName: IL.firstNameFormatter(t.target.value) });
50953
51192
  } })
50954
51193
  })
50955
51194
  }),
@@ -50958,9 +51197,9 @@ var CL = {
50958
51197
  children: /* @__PURE__ */ Y(B.Item, {
50959
51198
  label: "Username",
50960
51199
  name: "username",
50961
- rules: [kL.required("Username"), kL.alphanumeric()],
51200
+ rules: [LL.required("Username"), LL.alphanumeric()],
50962
51201
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50963
- e.setFieldsValue({ username: OL.removeExtraSpaces(t.target.value) });
51202
+ e.setFieldsValue({ username: IL.removeExtraSpaces(t.target.value) });
50964
51203
  } })
50965
51204
  })
50966
51205
  }),
@@ -50969,9 +51208,9 @@ var CL = {
50969
51208
  children: /* @__PURE__ */ Y(B.Item, {
50970
51209
  label: "Website URL",
50971
51210
  name: "website",
50972
- rules: [kL.required("Website URL"), kL.url()],
51211
+ rules: [LL.required("Website URL"), LL.url()],
50973
51212
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50974
- e.setFieldsValue({ website: OL.removeExtraSpaces(t.target.value) });
51213
+ e.setFieldsValue({ website: IL.removeExtraSpaces(t.target.value) });
50975
51214
  } })
50976
51215
  })
50977
51216
  }),
@@ -50980,9 +51219,9 @@ var CL = {
50980
51219
  children: /* @__PURE__ */ Y(B.Item, {
50981
51220
  label: "MSP Req ID",
50982
51221
  name: "mspreqID",
50983
- rules: [kL.required("MSP Req ID"), kL.candidateId("MSP Req ID")],
51222
+ rules: [LL.required("MSP Req ID"), LL.candidateId("MSP Req ID")],
50984
51223
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50985
- e.setFieldsValue({ mspreqID: OL.removeExtraSpaces(t.target.value) });
51224
+ e.setFieldsValue({ mspreqID: IL.removeExtraSpaces(t.target.value) });
50986
51225
  } })
50987
51226
  })
50988
51227
  }),
@@ -50991,9 +51230,9 @@ var CL = {
50991
51230
  children: /* @__PURE__ */ Y(B.Item, {
50992
51231
  label: "Candidate ID",
50993
51232
  name: "candidateId",
50994
- rules: [kL.required("Candidate ID"), kL.candidateId("Candidate ID")],
51233
+ rules: [LL.required("Candidate ID"), LL.candidateId("Candidate ID")],
50995
51234
  children: /* @__PURE__ */ Y(V, { onChange: (t) => {
50996
- e.setFieldsValue({ candidateId: OL.removeExtraSpaces(t.target.value) });
51235
+ e.setFieldsValue({ candidateId: IL.removeExtraSpaces(t.target.value) });
50997
51236
  } })
50998
51237
  })
50999
51238
  }),
@@ -51003,10 +51242,10 @@ var CL = {
51003
51242
  label: "Remarks",
51004
51243
  name: "remarks",
51005
51244
  rules: [
51006
- kL.required("Remarks"),
51007
- kL.remarks(),
51008
- kL.remarksMinLength(),
51009
- kL.remarksMaxLength()
51245
+ LL.required("Remarks"),
51246
+ LL.remarks(),
51247
+ LL.remarksMinLength(),
51248
+ LL.remarksMaxLength()
51010
51249
  ],
51011
51250
  children: /* @__PURE__ */ Y(V.TextArea, { rows: 4 })
51012
51251
  })
@@ -51016,7 +51255,7 @@ var CL = {
51016
51255
  children: /* @__PURE__ */ Y(B.Item, {
51017
51256
  label: "Designation",
51018
51257
  name: "designation",
51019
- rules: [kL.required("Designation"), kL.designation()],
51258
+ rules: [LL.required("Designation"), LL.designation()],
51020
51259
  children: /* @__PURE__ */ Y(V, {})
51021
51260
  })
51022
51261
  }),
@@ -51025,12 +51264,12 @@ var CL = {
51025
51264
  children: /* @__PURE__ */ Y(B.Item, {
51026
51265
  label: "Date of Birth",
51027
51266
  name: "dob",
51028
- rules: [kL.dob()],
51267
+ rules: [LL.dob()],
51029
51268
  children: /* @__PURE__ */ Y(V, {
51030
51269
  placeholder: "MM/DD/YYYY",
51031
51270
  maxLength: 10,
51032
51271
  onChange: (t) => {
51033
- e.setFieldsValue({ dob: OL.dobFormatter(t.target.value) });
51272
+ e.setFieldsValue({ dob: IL.dobFormatter(t.target.value) });
51034
51273
  }
51035
51274
  })
51036
51275
  })
@@ -51040,7 +51279,7 @@ var CL = {
51040
51279
  children: /* @__PURE__ */ Y(B.Item, {
51041
51280
  label: "Company Name",
51042
51281
  name: "companyName",
51043
- rules: [kL.required("Company Name"), kL.companyName()],
51282
+ rules: [LL.required("Company Name"), LL.companyName()],
51044
51283
  children: /* @__PURE__ */ Y(V, {})
51045
51284
  })
51046
51285
  }),
@@ -51129,7 +51368,7 @@ var CL = {
51129
51368
  label: "Resume new",
51130
51369
  name: "resume",
51131
51370
  children: /* @__PURE__ */ Y(aa, {
51132
- beforeUpload: AL.beforeUpload,
51371
+ beforeUpload: RL.beforeUpload,
51133
51372
  maxCount: 1,
51134
51373
  children: /* @__PURE__ */ Y(R, { children: "Upload Resume" })
51135
51374
  })
@@ -51142,10 +51381,10 @@ var CL = {
51142
51381
  name: "documents",
51143
51382
  valuePropName: "fileList",
51144
51383
  getValueFromEvent: (e) => e?.fileList,
51145
- rules: [kL.multiFileUpload()],
51384
+ rules: [LL.multiFileUpload()],
51146
51385
  children: /* @__PURE__ */ Y(aa, {
51147
51386
  multiple: !0,
51148
- beforeUpload: AL.beforeUpload,
51387
+ beforeUpload: RL.beforeUpload,
51149
51388
  children: /* @__PURE__ */ Y(R, { children: "Upload Documents" })
51150
51389
  })
51151
51390
  })
@@ -51157,9 +51396,9 @@ var CL = {
51157
51396
  name: "file",
51158
51397
  valuePropName: "fileList",
51159
51398
  getValueFromEvent: (e) => e?.fileList,
51160
- rules: [kL.fileUpload()],
51399
+ rules: [LL.fileUpload()],
51161
51400
  children: /* @__PURE__ */ Y(aa, {
51162
- beforeUpload: AL.beforeUpload,
51401
+ beforeUpload: RL.beforeUpload,
51163
51402
  maxCount: 1,
51164
51403
  children: /* @__PURE__ */ Y(R, { children: "Upload" })
51165
51404
  })
@@ -51219,12 +51458,12 @@ var CL = {
51219
51458
  };
51220
51459
  //#endregion
51221
51460
  //#region src/pages/admin/AdminPageWithShell.jsx
51222
- function ML(e) {
51461
+ function BL(e) {
51223
51462
  return /* @__PURE__ */ Y(OE, { children: /* @__PURE__ */ Y(BM, { ...e }) });
51224
51463
  }
51225
51464
  //#endregion
51226
51465
  //#region src/components/cards/StatsCards.jsx
51227
- var { Text: NL } = ia, PL = [
51466
+ var { Text: VL } = ia, HL = [
51228
51467
  {
51229
51468
  label: "Total Jobs",
51230
51469
  value: 1697,
@@ -51240,13 +51479,13 @@ var { Text: NL } = ia, PL = [
51240
51479
  value: 600,
51241
51480
  icon: "user"
51242
51481
  }
51243
- ], FL = {
51482
+ ], UL = {
51244
51483
  fileText: /* @__PURE__ */ Y($a, {}),
51245
51484
  checkCircle: /* @__PURE__ */ Y(Sa, {}),
51246
51485
  user: /* @__PURE__ */ Y(es, {}),
51247
51486
  filter: /* @__PURE__ */ Y(to, {})
51248
51487
  };
51249
- function IL({ stats: e = PL }) {
51488
+ function WL({ stats: e = HL }) {
51250
51489
  return /* @__PURE__ */ Y(Oi, { children: /* @__PURE__ */ Y(Ji, {
51251
51490
  gutter: [12, 12],
51252
51491
  children: e.map((e) => /* @__PURE__ */ Y(z, {
@@ -51259,7 +51498,7 @@ function IL({ stats: e = PL }) {
51259
51498
  className: "stats-inner-card",
51260
51499
  children: [/* @__PURE__ */ X(U, {
51261
51500
  align: "center",
51262
- 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 })]
51263
51502
  }), /* @__PURE__ */ Y(Qi, { value: e.value })]
51264
51503
  })
51265
51504
  }, e.label))
@@ -51267,21 +51506,21 @@ function IL({ stats: e = PL }) {
51267
51506
  }
51268
51507
  //#endregion
51269
51508
  //#region src/pages/Modules/Admin/UsersSection.jsx
51270
- var { Text: LL } = ia;
51271
- function RL(e) {
51509
+ var { Text: GL } = ia;
51510
+ function KL(e) {
51272
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 ?? "?"}`;
51273
51512
  }
51274
- function zL(e) {
51513
+ function qL(e) {
51275
51514
  return {
51276
51515
  ...e,
51277
51516
  key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
51278
- _name: RL(e),
51517
+ _name: KL(e),
51279
51518
  _email: e.email ?? e.EMAIL ?? e.user_email ?? "",
51280
51519
  _role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
51281
51520
  _rawRef: e
51282
51521
  };
51283
51522
  }
51284
- function BL() {
51523
+ function JL() {
51285
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 } = {}) => {
51286
51525
  a(!0);
51287
51526
  try {
@@ -51289,7 +51528,7 @@ function BL() {
51289
51528
  offset: e,
51290
51529
  limit: n,
51291
51530
  searchQuery: i ?? ""
51292
- }), o = (a.users ?? []).map(zL);
51531
+ }), o = (a.users ?? []).map(qL);
51293
51532
  t(o), r(a.total ?? o.length);
51294
51533
  } catch {
51295
51534
  q.error("Failed to load users");
@@ -51322,7 +51561,7 @@ function BL() {
51322
51561
  label: "Name",
51323
51562
  value: "_name",
51324
51563
  width: 220,
51325
- render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(LL, {
51564
+ render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(GL, {
51326
51565
  strong: !0,
51327
51566
  style: { fontSize: 13 },
51328
51567
  children: e
@@ -51354,7 +51593,7 @@ function BL() {
51354
51593
  }
51355
51594
  //#endregion
51356
51595
  //#region src/pages/Modules/Admin/TeamsSection.jsx
51357
- var { Text: VL } = ia, HL = [
51596
+ var { Text: YL } = ia, XL = [
51358
51597
  {
51359
51598
  key: "job",
51360
51599
  label: "Jobs"
@@ -51367,7 +51606,7 @@ var { Text: VL } = ia, HL = [
51367
51606
  key: "submissions",
51368
51607
  label: "Submissions"
51369
51608
  }
51370
- ], UL = [
51609
+ ], ZL = [
51371
51610
  {
51372
51611
  key: "listView",
51373
51612
  label: "List View"
@@ -51381,7 +51620,7 @@ var { Text: VL } = ia, HL = [
51381
51620
  label: "Form"
51382
51621
  }
51383
51622
  ];
51384
- function WL({ field: e, index: t, onToggle: n, onReorder: r }) {
51623
+ function QL({ field: e, index: t, onToggle: n, onReorder: r }) {
51385
51624
  let i = Si(null), [a, o] = L(!1), [s, c] = L(!1);
51386
51625
  function l(e) {
51387
51626
  i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
@@ -51445,7 +51684,7 @@ function WL({ field: e, index: t, onToggle: n, onReorder: r }) {
51445
51684
  ]
51446
51685
  });
51447
51686
  }
51448
- function GL({ team: e, configType: t }) {
51687
+ function $L({ team: e, configType: t }) {
51449
51688
  let [n, r] = L({}), [i, a] = L(!1), [o, s] = L({}), [c, l] = L("job");
51450
51689
  F(() => {
51451
51690
  e && (a(!0), Nt(e, t).then(r).catch(() => q.error("Failed to load field config")).finally(() => a(!1)));
@@ -51496,7 +51735,7 @@ function GL({ team: e, configType: t }) {
51496
51735
  size: "small",
51497
51736
  activeKey: c,
51498
51737
  onChange: l,
51499
- items: HL.map((e) => ({
51738
+ items: XL.map((e) => ({
51500
51739
  key: e.key,
51501
51740
  label: e.label
51502
51741
  }))
@@ -51525,7 +51764,7 @@ function GL({ team: e, configType: t }) {
51525
51764
  children: [u.length === 0 && !i && /* @__PURE__ */ Y("div", {
51526
51765
  className: "uss-empty",
51527
51766
  children: "No fields found."
51528
- }), u.map((e, t) => /* @__PURE__ */ Y(WL, {
51767
+ }), u.map((e, t) => /* @__PURE__ */ Y(QL, {
51529
51768
  field: e,
51530
51769
  index: t,
51531
51770
  onToggle: f,
@@ -51539,13 +51778,13 @@ function GL({ team: e, configType: t }) {
51539
51778
  size: "small",
51540
51779
  loading: o[c],
51541
51780
  onClick: m,
51542
- children: ["Save ", HL.find((e) => e.key === c)?.label]
51781
+ children: ["Save ", XL.find((e) => e.key === c)?.label]
51543
51782
  })
51544
51783
  })
51545
51784
  ]
51546
51785
  });
51547
51786
  }
51548
- function KL() {
51787
+ function eR() {
51549
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 () => {
51550
51789
  p(!0);
51551
51790
  try {
@@ -51692,13 +51931,13 @@ function KL() {
51692
51931
  style: { marginBottom: 12 },
51693
51932
  children: /* @__PURE__ */ Y("div", {
51694
51933
  className: "uss-config-toggle",
51695
- children: UL.map((e) => /* @__PURE__ */ Y("button", {
51934
+ children: ZL.map((e) => /* @__PURE__ */ Y("button", {
51696
51935
  className: `uss-config-btn${o === e.key ? " active" : ""}`,
51697
51936
  onClick: () => s(e.key),
51698
51937
  children: e.label
51699
51938
  }, e.key))
51700
51939
  })
51701
- }), e && /* @__PURE__ */ Y(GL, {
51940
+ }), e && /* @__PURE__ */ Y($L, {
51702
51941
  team: e,
51703
51942
  configType: o
51704
51943
  }, `${e?.teamId}-${o}`)]
@@ -51707,12 +51946,12 @@ function KL() {
51707
51946
  }
51708
51947
  //#endregion
51709
51948
  //#region src/pages/Modules/Admin/components/RolePermPanel.jsx
51710
- var qL = [
51949
+ var tR = [
51711
51950
  "view",
51712
51951
  "add",
51713
51952
  "edit",
51714
51953
  "delete"
51715
- ], JL = {
51954
+ ], nR = {
51716
51955
  view: "View",
51717
51956
  add: "Add",
51718
51957
  edit: "Edit",
@@ -51727,18 +51966,18 @@ var qL = [
51727
51966
  reApprove: "ReApprove",
51728
51967
  sendApprove: "Send Approve"
51729
51968
  };
51730
- function YL(e) {
51731
- 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());
51732
51971
  }
51733
- function XL(e) {
51734
- 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();
51735
51974
  return [...t, ...n];
51736
51975
  }
51737
- function ZL(e) {
51976
+ function aR(e) {
51738
51977
  let t = /* @__PURE__ */ new Set();
51739
- 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]);
51740
51979
  }
51741
- function QL(e) {
51980
+ function oR(e) {
51742
51981
  let t = 0, n = 0;
51743
51982
  return Object.entries(e).forEach(([e, { permissions: r }]) => {
51744
51983
  Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
@@ -51749,7 +51988,7 @@ function QL(e) {
51749
51988
  total: n
51750
51989
  };
51751
51990
  }
51752
- function $L(e = {}) {
51991
+ function sR(e = {}) {
51753
51992
  if (!e || typeof e != "object") return e;
51754
51993
  let t = Object.keys(e).find((e) => String(e).trim().toLowerCase() === "onboarding");
51755
51994
  if (!t) return e;
@@ -51766,7 +52005,7 @@ function $L(e = {}) {
51766
52005
  }
51767
52006
  };
51768
52007
  }
51769
- function eR({ value: e, onSave: t, className: n }) {
52008
+ function cR({ value: e, onSave: t, className: n }) {
51770
52009
  let [r, i] = L(!1), [a, o] = L(e);
51771
52010
  F(() => {
51772
52011
  o(e);
@@ -51795,7 +52034,7 @@ function eR({ value: e, onSave: t, className: n }) {
51795
52034
  children: [e, /* @__PURE__ */ Y(Ba, { className: "perm-name-edit-icon" })]
51796
52035
  });
51797
52036
  }
51798
- function tR({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
52037
+ function lR({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
51799
52038
  let [i, a] = L(!1), [o, s] = L(t), c = e?.value === "1", l = !!e;
51800
52039
  F(() => {
51801
52040
  s(t);
@@ -51837,13 +52076,13 @@ function tR({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
51837
52076
  })
51838
52077
  });
51839
52078
  }
51840
- 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 }) {
51841
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;
51842
52081
  return /* @__PURE__ */ X("div", {
51843
52082
  className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
51844
52083
  children: [/* @__PURE__ */ X("div", {
51845
52084
  className: "perm-module-card-header",
51846
- children: [/* @__PURE__ */ Y(eR, {
52085
+ children: [/* @__PURE__ */ Y(cR, {
51847
52086
  value: i,
51848
52087
  onSave: (t) => o(e, t),
51849
52088
  className: "perm-module-card-name"
@@ -51857,20 +52096,20 @@ function nR({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
51857
52096
  })]
51858
52097
  }), /* @__PURE__ */ Y("div", {
51859
52098
  className: "perm-module-card-body",
51860
- children: l.map((t) => /* @__PURE__ */ Y(tR, {
52099
+ children: l.map((t) => /* @__PURE__ */ Y(lR, {
51861
52100
  entry: c[t],
51862
- label: a[t] ?? YL(t),
52101
+ label: a[t] ?? rR(t),
51863
52102
  onToggle: () => r(e, t),
51864
52103
  onLabelSave: (e) => s(t, e)
51865
52104
  }, t))
51866
52105
  })]
51867
52106
  });
51868
52107
  }
51869
- 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 = () => {} }) {
51870
52109
  let [a, o] = L({}), [s, c] = L({}), [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(!1), h = li(e);
51871
52110
  F(() => {
51872
52111
  h && (u(!0), m(!1), De(h).then((e) => {
51873
- let t = $L(e);
52112
+ let t = sR(e);
51874
52113
  o(t), c(t);
51875
52114
  }).catch(() => q.error("Failed to load permissions")).finally(() => u(!1)));
51876
52115
  }, [h]);
@@ -51908,7 +52147,7 @@ function rR({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
51908
52147
  f(!1);
51909
52148
  }
51910
52149
  }
51911
- 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]);
51912
52151
  return /* @__PURE__ */ X(Zi, {
51913
52152
  spinning: l,
51914
52153
  children: [
@@ -51959,7 +52198,7 @@ function rR({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
51959
52198
  children: "No permission entries found for this role."
51960
52199
  }) : /* @__PURE__ */ Y("div", {
51961
52200
  className: "perm-cards-grid",
51962
- children: v.map((e) => /* @__PURE__ */ Y(nR, {
52201
+ children: v.map((e) => /* @__PURE__ */ Y(uR, {
51963
52202
  menuName: e,
51964
52203
  menuData: s[e],
51965
52204
  permKeys: y,
@@ -51975,7 +52214,7 @@ function rR({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
51975
52214
  }
51976
52215
  //#endregion
51977
52216
  //#region src/pages/Modules/Admin/RolesSection.jsx
51978
- var { Text: iR } = ia, aR = [
52217
+ var { Text: fR } = ia, pR = [
51979
52218
  {
51980
52219
  key: "listView",
51981
52220
  label: "List View"
@@ -51993,38 +52232,38 @@ var { Text: iR } = ia, aR = [
51993
52232
  label: "Permissions"
51994
52233
  }
51995
52234
  ];
51996
- function oR(e) {
52235
+ function mR(e) {
51997
52236
  return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
51998
52237
  }
51999
- function sR(e) {
52238
+ function hR(e) {
52000
52239
  return String(e || "").trim().toLowerCase();
52001
52240
  }
52002
- function cR(e) {
52241
+ function gR(e) {
52003
52242
  return e?.key || e?.collectionName || e?.value || "";
52004
52243
  }
52005
- function lR(e = [], t = []) {
52244
+ function _R(e = [], t = []) {
52006
52245
  let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
52007
52246
  return e.forEach((e) => {
52008
- let t = cR(e);
52247
+ let t = gR(e);
52009
52248
  if (!t) return;
52010
- let o = sR(e.key || t), s = sR(e.collectionName);
52249
+ let o = hR(e.key || t), s = hR(e.collectionName);
52011
52250
  e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
52012
- label: e.label || oR(t),
52251
+ label: e.label || mR(t),
52013
52252
  value: t,
52014
52253
  disabled: !!e.seeded
52015
52254
  });
52016
52255
  }), t.forEach((e) => {
52017
52256
  let t = String(e || "").trim();
52018
52257
  if (!t || r.has(t)) return;
52019
- let o = sR(t);
52258
+ let o = hR(t);
52020
52259
  a.has(o) || i.has(o) || (r.add(t), n.push({
52021
- label: oR(t),
52260
+ label: mR(t),
52022
52261
  value: t,
52023
52262
  disabled: !1
52024
52263
  }));
52025
52264
  }), n;
52026
52265
  }
52027
- function uR() {
52266
+ function vR() {
52028
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 () => {
52029
52268
  d(!0);
52030
52269
  try {
@@ -52038,7 +52277,7 @@ function uR() {
52038
52277
  }, []), C = yi(async () => {
52039
52278
  _(!0);
52040
52279
  try {
52041
- 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));
52042
52281
  p(n), h((e) => e.filter((e) => r.has(e)));
52043
52282
  } catch {
52044
52283
  q.error("Failed to load seed status");
@@ -52104,7 +52343,7 @@ function uR() {
52104
52343
  onClick: w,
52105
52344
  children: "Seed Field Config"
52106
52345
  })]
52107
- }), /* @__PURE__ */ Y(iR, {
52346
+ }), /* @__PURE__ */ Y(fR, {
52108
52347
  type: "secondary",
52109
52348
  style: {
52110
52349
  display: "block",
@@ -52184,13 +52423,13 @@ function uR() {
52184
52423
  style: { marginBottom: 12 },
52185
52424
  children: /* @__PURE__ */ Y("div", {
52186
52425
  className: "uss-config-toggle",
52187
- children: aR.map((e) => /* @__PURE__ */ Y("button", {
52426
+ children: pR.map((e) => /* @__PURE__ */ Y("button", {
52188
52427
  className: `uss-config-btn${i === e.key ? " active" : ""}`,
52189
52428
  onClick: () => a(e.key),
52190
52429
  children: e.label
52191
52430
  }, e.key))
52192
52431
  })
52193
- }), 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, {
52194
52433
  role: e,
52195
52434
  configType: i
52196
52435
  }, `${e?.roleId}-${i}`))]
@@ -52199,20 +52438,20 @@ function uR() {
52199
52438
  }
52200
52439
  //#endregion
52201
52440
  //#region src/pages/Modules/Admin/PermissionsPage.jsx
52202
- var dR = "perm-module-labels", fR = "perm-action-labels";
52203
- function pR(e) {
52441
+ var yR = "perm-module-labels", bR = "perm-action-labels";
52442
+ function xR(e) {
52204
52443
  try {
52205
52444
  return JSON.parse(localStorage.getItem(e) ?? "{}");
52206
52445
  } catch {
52207
52446
  return {};
52208
52447
  }
52209
52448
  }
52210
- function mR(e, t) {
52449
+ function SR(e, t) {
52211
52450
  try {
52212
52451
  localStorage.setItem(e, JSON.stringify(t));
52213
52452
  } catch {}
52214
52453
  }
52215
- function hR({ label: e, onSave: t, onDelete: n, loading: r }) {
52454
+ function CR({ label: e, onSave: t, onDelete: n, loading: r }) {
52216
52455
  let [i, a] = L(!1), [o, s] = L(e);
52217
52456
  function c() {
52218
52457
  a(!1);
@@ -52263,7 +52502,7 @@ function hR({ label: e, onSave: t, onDelete: n, loading: r }) {
52263
52502
  })]
52264
52503
  });
52265
52504
  }
52266
- function gR({ open: e, onClose: t }) {
52505
+ function wR({ open: e, onClose: t }) {
52267
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);
52268
52507
  F(() => {
52269
52508
  e && (S(), C());
@@ -52385,7 +52624,7 @@ function gR({ open: e, onClose: t }) {
52385
52624
  className: "perm-empty",
52386
52625
  style: { paddingTop: 24 },
52387
52626
  children: "No modules found"
52388
- }), i.map((e) => /* @__PURE__ */ Y(hR, {
52627
+ }), i.map((e) => /* @__PURE__ */ Y(CR, {
52389
52628
  label: e.MENUNAME,
52390
52629
  onSave: (t) => T(e.MENUID, t),
52391
52630
  onDelete: () => E(e.MENUID)
@@ -52430,7 +52669,7 @@ function gR({ open: e, onClose: t }) {
52430
52669
  className: "perm-empty",
52431
52670
  style: { paddingTop: 24 },
52432
52671
  children: "No actions found"
52433
- }), f.map((e) => /* @__PURE__ */ Y(hR, {
52672
+ }), f.map((e) => /* @__PURE__ */ Y(CR, {
52434
52673
  label: `${e.permissionName} (${e.permissionKey})`,
52435
52674
  onSave: (t) => O(e.permissionId, t),
52436
52675
  onDelete: () => k(e.permissionId)
@@ -52460,14 +52699,14 @@ function gR({ open: e, onClose: t }) {
52460
52699
  })
52461
52700
  });
52462
52701
  }
52463
- function _R() {
52464
- 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) => {
52465
52704
  d((n) => {
52466
52705
  let r = {
52467
52706
  ...n,
52468
52707
  [e]: t
52469
52708
  };
52470
- return mR(dR, r), r;
52709
+ return SR(yR, r), r;
52471
52710
  });
52472
52711
  }, []), h = yi((e, t) => {
52473
52712
  p((n) => {
@@ -52475,11 +52714,11 @@ function _R() {
52475
52714
  ...n,
52476
52715
  [e]: t
52477
52716
  };
52478
- return mR(fR, r), r;
52717
+ return SR(bR, r), r;
52479
52718
  });
52480
52719
  }, []);
52481
52720
  function g() {
52482
- 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");
52483
52722
  }
52484
52723
  let _ = yi(async () => {
52485
52724
  r(!0);
@@ -52563,7 +52802,7 @@ function _R() {
52563
52802
  })]
52564
52803
  }),
52565
52804
  bodyStyle: { padding: "12px 16px" },
52566
- children: i ? /* @__PURE__ */ Y(rR, {
52805
+ children: i ? /* @__PURE__ */ Y(dR, {
52567
52806
  role: i,
52568
52807
  moduleLabels: u,
52569
52808
  actionLabels: f,
@@ -52574,7 +52813,7 @@ function _R() {
52574
52813
  children: "Select a role from the left to manage its permissions."
52575
52814
  })
52576
52815
  }),
52577
- /* @__PURE__ */ Y(gR, {
52816
+ /* @__PURE__ */ Y(wR, {
52578
52817
  open: c,
52579
52818
  onClose: () => l(!1)
52580
52819
  })
@@ -52583,7 +52822,7 @@ function _R() {
52583
52822
  }
52584
52823
  //#endregion
52585
52824
  //#region src/components/cards/OnboardingCard.jsx
52586
- var { Title: vR, Text: yR } = ia, bR = [
52825
+ var { Title: ER, Text: DR } = ia, OR = [
52587
52826
  {
52588
52827
  label: "In Progress",
52589
52828
  value: 107,
@@ -52609,10 +52848,10 @@ var { Title: vR, Text: yR } = ia, bR = [
52609
52848
  color: "peach"
52610
52849
  }
52611
52850
  ];
52612
- function xR({ items: e = bR }) {
52851
+ function kR({ items: e = OR }) {
52613
52852
  return /* @__PURE__ */ Y(Oi, {
52614
52853
  className: "onboarding-card",
52615
- title: /* @__PURE__ */ Y(vR, {
52854
+ title: /* @__PURE__ */ Y(ER, {
52616
52855
  level: 5,
52617
52856
  children: "Onboarding"
52618
52857
  }),
@@ -52631,7 +52870,7 @@ function xR({ items: e = bR }) {
52631
52870
  children: /* @__PURE__ */ X("div", {
52632
52871
  className: `onboarding-item ${e.color}`,
52633
52872
  children: [
52634
- /* @__PURE__ */ Y(yR, {
52873
+ /* @__PURE__ */ Y(DR, {
52635
52874
  className: "onboarding-item-label",
52636
52875
  children: e.label
52637
52876
  }),
@@ -52641,7 +52880,7 @@ function xR({ items: e = bR }) {
52641
52880
  }),
52642
52881
  /* @__PURE__ */ Y("div", {
52643
52882
  className: "onboarding-item-footer",
52644
- children: /* @__PURE__ */ Y(yR, {
52883
+ children: /* @__PURE__ */ Y(DR, {
52645
52884
  className: "onboarding-item-sub",
52646
52885
  children: e.sub
52647
52886
  })
@@ -52654,7 +52893,7 @@ function xR({ items: e = bR }) {
52654
52893
  }
52655
52894
  //#endregion
52656
52895
  //#region src/pages/Modules/LegacyAdminPage.jsx
52657
- var { Text: SR, Title: CR } = ia, wR = [
52896
+ var { Text: AR, Title: jR } = ia, MR = [
52658
52897
  {
52659
52898
  group: "Dashboard",
52660
52899
  items: [{
@@ -52869,7 +53108,7 @@ var { Text: SR, Title: CR } = ia, wR = [
52869
53108
  }
52870
53109
  ]
52871
53110
  }
52872
- ], TR = [
53111
+ ], NR = [
52873
53112
  {
52874
53113
  label: "Sourced",
52875
53114
  count: 312,
@@ -52900,7 +53139,7 @@ var { Text: SR, Title: CR } = ia, wR = [
52900
53139
  color: "#E24B4A",
52901
53140
  pct: 10
52902
53141
  }
52903
- ], ER = [
53142
+ ], PR = [
52904
53143
  {
52905
53144
  name: "Tcs",
52906
53145
  jobs: 14,
@@ -52921,7 +53160,7 @@ var { Text: SR, Title: CR } = ia, wR = [
52921
53160
  jobs: 5,
52922
53161
  candidates: 38
52923
53162
  }
52924
- ], DR = [
53163
+ ], FR = [
52925
53164
  {
52926
53165
  text: "New candidate Ravi Kumar added to Java Developer role",
52927
53166
  time: "2 min ago",
@@ -52948,7 +53187,7 @@ var { Text: SR, Title: CR } = ia, wR = [
52948
53187
  color: "#E24B4A"
52949
53188
  }
52950
53189
  ];
52951
- function OR() {
53190
+ function IR() {
52952
53191
  return /* @__PURE__ */ X("div", {
52953
53192
  style: {
52954
53193
  display: "flex",
@@ -52961,11 +53200,11 @@ function OR() {
52961
53200
  title: "Admin Dashboard",
52962
53201
  children: [
52963
53202
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
52964
- /* @__PURE__ */ Y(CR, {
53203
+ /* @__PURE__ */ Y(jR, {
52965
53204
  level: 5,
52966
53205
  children: "Admin Dashboard"
52967
53206
  }),
52968
- /* @__PURE__ */ Y(SR, {
53207
+ /* @__PURE__ */ Y(AR, {
52969
53208
  type: "secondary",
52970
53209
  children: "Overview of jobs, candidates, onboarding and recent activity"
52971
53210
  })
@@ -52973,7 +53212,7 @@ function OR() {
52973
53212
  }),
52974
53213
  /* @__PURE__ */ Y("div", {
52975
53214
  className: "admin-dashboard-stats",
52976
- children: /* @__PURE__ */ Y(IL, { stats: [
53215
+ children: /* @__PURE__ */ Y(WL, { stats: [
52977
53216
  {
52978
53217
  label: "Total Jobs",
52979
53218
  value: 1697,
@@ -53003,18 +53242,18 @@ function OR() {
53003
53242
  }),
53004
53243
  /* @__PURE__ */ X("div", {
53005
53244
  className: "admin-dashboard-mid-row",
53006
- children: [/* @__PURE__ */ Y(xR, {}), /* @__PURE__ */ X(zD, {
53245
+ children: [/* @__PURE__ */ Y(kR, {}), /* @__PURE__ */ X(zD, {
53007
53246
  icon: /* @__PURE__ */ Y(ua, {}),
53008
53247
  title: "Candidate Pipeline",
53009
53248
  children: [
53010
- /* @__PURE__ */ Y(SR, {
53249
+ /* @__PURE__ */ Y(AR, {
53011
53250
  type: "secondary",
53012
53251
  style: { fontSize: 12 },
53013
53252
  children: "By stage (892 total)"
53014
53253
  }),
53015
53254
  /* @__PURE__ */ Y("div", {
53016
53255
  className: "admin-pipeline-bar",
53017
- children: TR.map((e) => /* @__PURE__ */ Y("div", {
53256
+ children: NR.map((e) => /* @__PURE__ */ Y("div", {
53018
53257
  className: "admin-pipeline-seg",
53019
53258
  style: {
53020
53259
  width: `${e.pct}%`,
@@ -53024,7 +53263,7 @@ function OR() {
53024
53263
  }),
53025
53264
  /* @__PURE__ */ Y("div", {
53026
53265
  className: "admin-pipeline-legend",
53027
- children: TR.map((e) => /* @__PURE__ */ X("div", {
53266
+ children: NR.map((e) => /* @__PURE__ */ X("div", {
53028
53267
  className: "admin-pipeline-legend-item",
53029
53268
  children: [
53030
53269
  /* @__PURE__ */ Y("span", {
@@ -53038,7 +53277,7 @@ function OR() {
53038
53277
  }, e.label))
53039
53278
  }),
53040
53279
  /* @__PURE__ */ Y("div", { className: "admin-divider" }),
53041
- /* @__PURE__ */ Y(SR, {
53280
+ /* @__PURE__ */ Y(AR, {
53042
53281
  strong: !0,
53043
53282
  style: { fontSize: 12 },
53044
53283
  children: "Submission status"
@@ -53049,7 +53288,7 @@ function OR() {
53049
53288
  children: [
53050
53289
  /* @__PURE__ */ X("div", {
53051
53290
  className: "admin-sub-status-item",
53052
- children: [/* @__PURE__ */ Y(SR, {
53291
+ children: [/* @__PURE__ */ Y(AR, {
53053
53292
  style: { fontSize: 13 },
53054
53293
  children: "Pending client review"
53055
53294
  }), /* @__PURE__ */ Y("span", {
@@ -53059,7 +53298,7 @@ function OR() {
53059
53298
  }),
53060
53299
  /* @__PURE__ */ X("div", {
53061
53300
  className: "admin-sub-status-item",
53062
- children: [/* @__PURE__ */ Y(SR, {
53301
+ children: [/* @__PURE__ */ Y(AR, {
53063
53302
  style: { fontSize: 13 },
53064
53303
  children: "Client approved"
53065
53304
  }), /* @__PURE__ */ Y("span", {
@@ -53069,7 +53308,7 @@ function OR() {
53069
53308
  }),
53070
53309
  /* @__PURE__ */ X("div", {
53071
53310
  className: "admin-sub-status-item",
53072
- children: [/* @__PURE__ */ Y(SR, {
53311
+ children: [/* @__PURE__ */ Y(AR, {
53073
53312
  style: { fontSize: 13 },
53074
53313
  children: "Rejected"
53075
53314
  }), /* @__PURE__ */ Y("span", {
@@ -53092,7 +53331,7 @@ function OR() {
53092
53331
  size: "small",
53093
53332
  children: "View all"
53094
53333
  }),
53095
- children: ER.map((e) => /* @__PURE__ */ X("div", {
53334
+ children: PR.map((e) => /* @__PURE__ */ X("div", {
53096
53335
  className: "admin-client-row",
53097
53336
  children: [/* @__PURE__ */ X("div", {
53098
53337
  className: "admin-client-left",
@@ -53120,7 +53359,7 @@ function OR() {
53120
53359
  }), /* @__PURE__ */ Y(zD, {
53121
53360
  icon: /* @__PURE__ */ Y(ha, {}),
53122
53361
  title: "Recent Activity",
53123
- children: DR.map((e, t) => /* @__PURE__ */ X("div", {
53362
+ children: FR.map((e, t) => /* @__PURE__ */ X("div", {
53124
53363
  className: "admin-activity-row",
53125
53364
  children: [/* @__PURE__ */ Y("div", {
53126
53365
  className: "admin-activity-dot",
@@ -53148,7 +53387,7 @@ function OR() {
53148
53387
  children: [
53149
53388
  /* @__PURE__ */ X(z, {
53150
53389
  span: 8,
53151
- children: [/* @__PURE__ */ Y(SR, {
53390
+ children: [/* @__PURE__ */ Y(AR, {
53152
53391
  type: "secondary",
53153
53392
  style: {
53154
53393
  fontSize: 12,
@@ -53161,7 +53400,7 @@ function OR() {
53161
53400
  ["Templates", 2]
53162
53401
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
53163
53402
  className: "admin-cfg-overview-row",
53164
- children: [/* @__PURE__ */ Y(SR, {
53403
+ children: [/* @__PURE__ */ Y(AR, {
53165
53404
  style: { fontSize: 12 },
53166
53405
  children: e
53167
53406
  }), /* @__PURE__ */ X("span", {
@@ -53172,7 +53411,7 @@ function OR() {
53172
53411
  }),
53173
53412
  /* @__PURE__ */ X(z, {
53174
53413
  span: 8,
53175
- children: [/* @__PURE__ */ Y(SR, {
53414
+ children: [/* @__PURE__ */ Y(AR, {
53176
53415
  type: "secondary",
53177
53416
  style: {
53178
53417
  fontSize: 12,
@@ -53185,7 +53424,7 @@ function OR() {
53185
53424
  ["Submissions", 2]
53186
53425
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
53187
53426
  className: "admin-cfg-overview-row",
53188
- children: [/* @__PURE__ */ Y(SR, {
53427
+ children: [/* @__PURE__ */ Y(AR, {
53189
53428
  style: { fontSize: 12 },
53190
53429
  children: e
53191
53430
  }), /* @__PURE__ */ X("span", {
@@ -53196,7 +53435,7 @@ function OR() {
53196
53435
  }),
53197
53436
  /* @__PURE__ */ X(z, {
53198
53437
  span: 8,
53199
- children: [/* @__PURE__ */ Y(SR, {
53438
+ children: [/* @__PURE__ */ Y(AR, {
53200
53439
  type: "secondary",
53201
53440
  style: {
53202
53441
  fontSize: 12,
@@ -53209,10 +53448,10 @@ function OR() {
53209
53448
  ["Config Items", 19]
53210
53449
  ].map(([e, t]) => /* @__PURE__ */ X("div", {
53211
53450
  className: "admin-cfg-overview-row",
53212
- children: [/* @__PURE__ */ Y(SR, {
53451
+ children: [/* @__PURE__ */ Y(AR, {
53213
53452
  style: { fontSize: 12 },
53214
53453
  children: e
53215
- }), /* @__PURE__ */ Y(SR, {
53454
+ }), /* @__PURE__ */ Y(AR, {
53216
53455
  strong: !0,
53217
53456
  style: { fontSize: 12 },
53218
53457
  children: t
@@ -53225,7 +53464,7 @@ function OR() {
53225
53464
  ]
53226
53465
  });
53227
53466
  }
53228
- 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 }) {
53229
53468
  return /* @__PURE__ */ X(Ji, {
53230
53469
  gutter: [16, 16],
53231
53470
  children: [
@@ -53244,11 +53483,11 @@ function kR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
53244
53483
  }),
53245
53484
  children: [
53246
53485
  /* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
53247
- /* @__PURE__ */ Y(CR, {
53486
+ /* @__PURE__ */ Y(jR, {
53248
53487
  level: 5,
53249
53488
  children: e?.heading
53250
53489
  }),
53251
- /* @__PURE__ */ Y(SR, {
53490
+ /* @__PURE__ */ Y(AR, {
53252
53491
  type: "secondary",
53253
53492
  children: e?.desc
53254
53493
  })
@@ -53262,7 +53501,7 @@ function kR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
53262
53501
  children: /* @__PURE__ */ Y(zD, {
53263
53502
  icon: /* @__PURE__ */ Y(ua, {}),
53264
53503
  title: "Configuration Items",
53265
- extra: /* @__PURE__ */ X(SR, {
53504
+ extra: /* @__PURE__ */ X(AR, {
53266
53505
  type: "secondary",
53267
53506
  children: [
53268
53507
  n.length,
@@ -53329,7 +53568,7 @@ function kR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
53329
53568
  title: "Section Overview",
53330
53569
  children: [/* @__PURE__ */ Y("div", {
53331
53570
  className: "admin-overview-list",
53332
- children: wR.filter((e) => e.group !== "Dashboard").map((e) => {
53571
+ children: MR.filter((e) => e.group !== "Dashboard").map((e) => {
53333
53572
  let n = e.group === t?.group;
53334
53573
  return /* @__PURE__ */ X("div", {
53335
53574
  className: `admin-overview-item${n ? " active" : ""}`,
@@ -53377,12 +53616,12 @@ function kR({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
53377
53616
  ]
53378
53617
  });
53379
53618
  }
53380
- function AR() {
53381
- 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(() => {
53382
53621
  if (!a?.cards) return [];
53383
53622
  let e = n.trim().toLowerCase();
53384
53623
  return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
53385
- }, [a, n]), c = I(() => wR.map((e) => ({
53624
+ }, [a, n]), c = I(() => MR.map((e) => ({
53386
53625
  key: e.group,
53387
53626
  type: "group",
53388
53627
  label: e.group,
@@ -53431,7 +53670,7 @@ function AR() {
53431
53670
  children: "Groups"
53432
53671
  }), /* @__PURE__ */ Y("span", {
53433
53672
  className: "admin-sidebar-pill-value",
53434
- children: wR.length
53673
+ children: MR.length
53435
53674
  })]
53436
53675
  })
53437
53676
  }), /* @__PURE__ */ Y(z, {
@@ -53461,7 +53700,7 @@ function AR() {
53461
53700
  xs: 24,
53462
53701
  lg: 18,
53463
53702
  xl: 19,
53464
- 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, {
53465
53704
  activeSection: a,
53466
53705
  activeGroup: o,
53467
53706
  filteredCards: s,
@@ -53476,8 +53715,8 @@ function AR() {
53476
53715
  }
53477
53716
  //#endregion
53478
53717
  //#region src/pages/stickyNotesFullPage.jsx
53479
- var { Title: jR } = ia;
53480
- function MR() {
53718
+ var { Title: zR } = ia;
53719
+ function BR() {
53481
53720
  let e = ds(), { state: t } = us(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
53482
53721
  ...t?.request,
53483
53722
  params: {
@@ -53502,7 +53741,7 @@ function MR() {
53502
53741
  }
53503
53742
  //#endregion
53504
53743
  //#region src/pages/BulkUpload/index.jsx
53505
- 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 = {
53506
53745
  idle: 0,
53507
53746
  module_set: 1,
53508
53747
  encoding: 1,
@@ -53511,7 +53750,7 @@ var { Text: NR, Title: PR } = ia, FR = 10485760, IR = "/templates/test_cases_flo
53511
53750
  inserting: 3,
53512
53751
  done: 4,
53513
53752
  error: 1
53514
- }, BR = [
53753
+ }, JR = [
53515
53754
  {
53516
53755
  label: "Home",
53517
53756
  href: "/"
@@ -53525,31 +53764,31 @@ var { Text: NR, Title: PR } = ia, FR = 10485760, IR = "/templates/test_cases_flo
53525
53764
  href: "/bulk-upload"
53526
53765
  }
53527
53766
  ];
53528
- function VR(e) {
53767
+ function YR(e) {
53529
53768
  return new Promise((t, n) => {
53530
53769
  let r = new FileReader();
53531
53770
  r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
53532
53771
  });
53533
53772
  }
53534
- function HR(e) {
53773
+ function XR(e) {
53535
53774
  return e.filter((e) => e.row_status === "valid").map((e) => {
53536
53775
  let t = { ...e };
53537
53776
  return delete t.row_status, delete t.errors, t;
53538
53777
  });
53539
53778
  }
53540
- function UR(e) {
53779
+ function ZR(e) {
53541
53780
  return e.flatMap((e) => (e.errors ?? []).map((t) => ({
53542
53781
  id: e.id,
53543
53782
  ...t
53544
53783
  })));
53545
53784
  }
53546
- function WR({ errors: e }) {
53785
+ function QR({ errors: e }) {
53547
53786
  return /* @__PURE__ */ Y("div", {
53548
53787
  className: "bulk-tooltip-errors",
53549
53788
  children: (e ?? []).map((e, t) => /* @__PURE__ */ Y("div", { children: e.message }, `${e.field}-${t}`))
53550
53789
  });
53551
53790
  }
53552
- function GR({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
53791
+ function $R({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
53553
53792
  return e.length === 0 ? null : /* @__PURE__ */ X("div", {
53554
53793
  className: "bulk-error-banner",
53555
53794
  children: [/* @__PURE__ */ X("div", {
@@ -53580,7 +53819,7 @@ function GR({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
53580
53819
  })]
53581
53820
  });
53582
53821
  }
53583
- 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 }) {
53584
53823
  let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
53585
53824
  return /* @__PURE__ */ X(J, { children: [
53586
53825
  /* @__PURE__ */ X(Ji, {
@@ -53596,7 +53835,7 @@ function KR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
53596
53835
  type: t === "errors" ? "primary" : "default",
53597
53836
  onClick: () => n("errors"),
53598
53837
  children: "Errors only"
53599
- })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(NR, {
53838
+ })] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(VR, {
53600
53839
  type: "secondary",
53601
53840
  children: [e.length, " row(s)"]
53602
53841
  }) })]
@@ -53668,7 +53907,7 @@ function KR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
53668
53907
  children: "Valid"
53669
53908
  }) }),
53670
53909
  /* @__PURE__ */ Y("td", { children: n ? /* @__PURE__ */ Y(K, {
53671
- title: /* @__PURE__ */ Y(WR, { errors: t }),
53910
+ title: /* @__PURE__ */ Y(QR, { errors: t }),
53672
53911
  placement: "left",
53673
53912
  children: /* @__PURE__ */ X("button", {
53674
53913
  type: "button",
@@ -53705,11 +53944,11 @@ function KR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
53705
53944
  })
53706
53945
  ] });
53707
53946
  }
53708
- function qR() {
53947
+ function tz() {
53709
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) => ({
53710
53949
  value: e.modulename,
53711
53950
  label: e.modulename
53712
- })), 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(() => {
53713
53952
  s(""), l("idle"), d(!1), p(null), h([]), v("all"), b(null), S(null), n.current && (n.current.value = "");
53714
53953
  }, []);
53715
53954
  F(() => {
@@ -53735,7 +53974,7 @@ function qR() {
53735
53974
  l("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
53736
53975
  return;
53737
53976
  }
53738
- if (e.size > FR) {
53977
+ if (e.size > UR) {
53739
53978
  l("module_set"), b({ message: "File must be 10 MB or smaller." });
53740
53979
  return;
53741
53980
  }
@@ -53744,7 +53983,7 @@ function qR() {
53744
53983
  size: e.size
53745
53984
  }), l("encoding");
53746
53985
  try {
53747
- let r = await VR(e);
53986
+ let r = await YR(e);
53748
53987
  l("validating");
53749
53988
  let i = await BE({
53750
53989
  filename: e.name,
@@ -53762,12 +54001,12 @@ function qR() {
53762
54001
  }
53763
54002
  }, ne = async () => {
53764
54003
  try {
53765
- let e = await fetch(IR);
54004
+ let e = await fetch(WR);
53766
54005
  if (!e.ok) throw Error(`Template file not found (${e.status})`);
53767
54006
  let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
53768
54007
  for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
53769
54008
  let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
53770
- 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.");
53771
54010
  } catch (e) {
53772
54011
  console.error(e), q.error("Unable to download sample template.");
53773
54012
  }
@@ -53778,7 +54017,7 @@ function qR() {
53778
54017
  project: t?.name ?? "",
53779
54018
  module: o,
53780
54019
  uploaded_by: localStorage.getItem("user_Email") ?? "",
53781
- rows: HR(m)
54020
+ rows: XR(m)
53782
54021
  });
53783
54022
  S(n), l("done"), q.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
53784
54023
  } catch (e) {
@@ -53805,7 +54044,7 @@ function qR() {
53805
54044
  align: "middle",
53806
54045
  justify: "space-between",
53807
54046
  className: "breadcrumb-action-wrapper",
53808
- 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, {
53809
54048
  strong: !0,
53810
54049
  children: t.name
53811
54050
  }) })]
@@ -53814,16 +54053,16 @@ function qR() {
53814
54053
  children: [
53815
54054
  /* @__PURE__ */ X("div", {
53816
54055
  className: "bulk-header",
53817
- children: [/* @__PURE__ */ Y(PR, {
54056
+ children: [/* @__PURE__ */ Y(HR, {
53818
54057
  level: 3,
53819
54058
  children: "Bulk upload test cases"
53820
54059
  }), /* @__PURE__ */ X(U, {
53821
54060
  direction: "vertical",
53822
54061
  size: 4,
53823
- children: [/* @__PURE__ */ Y(NR, {
54062
+ children: [/* @__PURE__ */ Y(VR, {
53824
54063
  type: "secondary",
53825
- children: RR
53826
- }), /* @__PURE__ */ Y(NR, {
54064
+ children: KR
54065
+ }), /* @__PURE__ */ Y(VR, {
53827
54066
  type: "secondary",
53828
54067
  children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
53829
54068
  })]
@@ -53921,7 +54160,7 @@ function qR() {
53921
54160
  className: "v1-card zt-fall",
53922
54161
  title: "3. Validation result",
53923
54162
  children: [
53924
- /* @__PURE__ */ Y(GR, {
54163
+ /* @__PURE__ */ Y($R, {
53925
54164
  errors: E,
53926
54165
  expanded: C,
53927
54166
  onToggle: () => w((e) => !e),
@@ -53933,7 +54172,7 @@ function qR() {
53933
54172
  message: y.message,
53934
54173
  className: "bulk-inline-alert"
53935
54174
  }),
53936
- /* @__PURE__ */ Y(KR, {
54175
+ /* @__PURE__ */ Y(ez, {
53937
54176
  rows: m,
53938
54177
  view: _,
53939
54178
  onViewChange: v,
@@ -53956,17 +54195,17 @@ function qR() {
53956
54195
  /* @__PURE__ */ Y(z, {
53957
54196
  xs: 24,
53958
54197
  md: 8,
53959
- 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 })] })
53960
54199
  }),
53961
54200
  /* @__PURE__ */ Y(z, {
53962
54201
  xs: 24,
53963
54202
  md: 8,
53964
- 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 })] })
53965
54204
  }),
53966
54205
  /* @__PURE__ */ Y(z, {
53967
54206
  xs: 24,
53968
54207
  md: 8,
53969
- 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 })] })
53970
54209
  })
53971
54210
  ]
53972
54211
  }),
@@ -53990,7 +54229,7 @@ function qR() {
53990
54229
  }
53991
54230
  //#endregion
53992
54231
  //#region src/services/dropdownValues/testPageValues.js
53993
- var JR = [
54232
+ var nz = [
53994
54233
  {
53995
54234
  value: "navigate",
53996
54235
  label: "Navigate"
@@ -54123,75 +54362,75 @@ var JR = [
54123
54362
  value: "wait_for_text",
54124
54363
  label: "Wait For Text"
54125
54364
  }
54126
- ], { Text: YR } = ia, XR = [{
54365
+ ], { Text: rz } = ia, iz = [{
54127
54366
  label: "Home",
54128
54367
  href: "/"
54129
54368
  }, {
54130
54369
  label: "Test Cases",
54131
54370
  href: "/test-cases"
54132
- }], ZR = {
54371
+ }], az = {
54133
54372
  tags: "regression",
54134
54373
  active: 1
54135
- }, QR = { module: {
54374
+ }, oz = { module: {
54136
54375
  dbName: "Modules",
54137
54376
  formField: "module",
54138
54377
  label: "Module"
54139
54378
  } };
54140
- function $R(e = []) {
54379
+ function sz(e = []) {
54141
54380
  return e.map((e) => ({
54142
54381
  value: e,
54143
54382
  label: e
54144
54383
  }));
54145
54384
  }
54146
- function ez(e = "") {
54385
+ function cz(e = "") {
54147
54386
  return String(e ?? "").trim();
54148
54387
  }
54149
- function tz(e = "") {
54150
- return ez(e).toLowerCase();
54388
+ function lz(e = "") {
54389
+ return cz(e).toLowerCase();
54151
54390
  }
54152
- function nz(e = []) {
54391
+ function uz(e = []) {
54153
54392
  let t = /* @__PURE__ */ new Map();
54154
54393
  return e.forEach((e) => {
54155
- let n = ez(e?.flow), r = n.toLowerCase();
54394
+ let n = cz(e?.flow), r = n.toLowerCase();
54156
54395
  n && !t.has(r) && t.set(r, n);
54157
54396
  }), Array.from(t.values()).map((e) => ({
54158
54397
  value: e,
54159
54398
  label: e
54160
54399
  }));
54161
54400
  }
54162
- function rz(e = [], t, n) {
54163
- 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();
54164
54403
  return e.reduce((e, t) => {
54165
- let n = ez(t?.module).toLowerCase(), a = ez(t?.flow).toLowerCase();
54404
+ let n = cz(t?.module).toLowerCase(), a = cz(t?.flow).toLowerCase();
54166
54405
  if (n !== r || a !== i) return e;
54167
54406
  let o = Number(t?.step_order) || 0;
54168
54407
  return Math.max(e, o);
54169
54408
  }, 0) + 1;
54170
54409
  }
54171
- function iz({ icon: e, title: t }) {
54410
+ function fz({ icon: e, title: t }) {
54172
54411
  return /* @__PURE__ */ X(U, {
54173
54412
  size: 10,
54174
54413
  align: "center",
54175
54414
  children: [/* @__PURE__ */ Y("div", {
54176
54415
  className: "v1-section-icon-box",
54177
54416
  children: e
54178
- }), /* @__PURE__ */ Y(YR, {
54417
+ }), /* @__PURE__ */ Y(rz, {
54179
54418
  strong: !0,
54180
54419
  className: "v1-section-label",
54181
54420
  children: t
54182
54421
  })]
54183
54422
  });
54184
54423
  }
54185
- function az() {
54424
+ function pz() {
54186
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({
54187
54426
  open: !1,
54188
54427
  typeKey: "module"
54189
- }), [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 = []) => {
54190
54429
  e === "module" && r(t);
54191
54430
  }, ee = async () => {
54192
54431
  l(!0);
54193
54432
  try {
54194
- let e = await FE(QR.module.dbName);
54433
+ let e = await FE(oz.module.dbName);
54195
54434
  r(e?.items ?? []);
54196
54435
  } catch (e) {
54197
54436
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -54199,7 +54438,7 @@ function az() {
54199
54438
  l(!1);
54200
54439
  }
54201
54440
  }, A = yi(async (t) => {
54202
- let n = ez(t);
54441
+ let n = cz(t);
54203
54442
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
54204
54443
  d(!0);
54205
54444
  try {
@@ -54208,7 +54447,7 @@ function az() {
54208
54447
  offset: 0,
54209
54448
  module: n
54210
54449
  }), t = Array.isArray(e?.items) ? e.items : [];
54211
- a(t), s(nz(t));
54450
+ a(t), s(uz(t));
54212
54451
  } catch (e) {
54213
54452
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
54214
54453
  } finally {
@@ -54216,14 +54455,14 @@ function az() {
54216
54455
  }
54217
54456
  }
54218
54457
  }, [e]), j = yi(async (t, n, r) => {
54219
- let i = ez(t), a = ez(n);
54458
+ let i = cz(t), a = cz(n);
54220
54459
  if (!i || !a) {
54221
54460
  e.setFieldsValue({ step_order: void 0 });
54222
54461
  return;
54223
54462
  }
54224
54463
  _(!0);
54225
54464
  try {
54226
- e.setFieldsValue({ step_order: rz(r, i, a) });
54465
+ e.setFieldsValue({ step_order: dz(r, i, a) });
54227
54466
  } catch (e) {
54228
54467
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
54229
54468
  } finally {
@@ -54244,15 +54483,15 @@ function az() {
54244
54483
  ]);
54245
54484
  let te = async (t) => {
54246
54485
  let n = {
54247
- module: ez(t.module),
54248
- flow: ez(t.flow),
54486
+ module: cz(t.module),
54487
+ flow: cz(t.flow),
54249
54488
  step_order: Number(t.step_order),
54250
- description: ez(t.description),
54251
- keyword: tz(t.keyword),
54252
- target: ez(t.target),
54253
- value: ez(t.value),
54254
- expected: ez(t.expected),
54255
- 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,
54256
54495
  active: Number(t.active)
54257
54496
  };
54258
54497
  y(!0);
@@ -54264,26 +54503,26 @@ function az() {
54264
54503
  y(!1);
54265
54504
  }
54266
54505
  }, ne = (t, n) => {
54267
- e.setFieldsValue({ [t]: ez(n) });
54506
+ e.setFieldsValue({ [t]: cz(n) });
54268
54507
  }, M = (t) => {
54269
54508
  e.setFieldsValue({
54270
- module: ez(t),
54509
+ module: cz(t),
54271
54510
  flow: void 0,
54272
54511
  step_order: void 0,
54273
54512
  keyword: void 0,
54274
54513
  description: void 0,
54275
54514
  target: void 0,
54276
- tags: ZR.tags,
54515
+ tags: az.tags,
54277
54516
  value: void 0,
54278
54517
  expected: void 0
54279
54518
  });
54280
54519
  }, re = (t) => {
54281
54520
  e.setFieldsValue({
54282
- flow: ez(t),
54521
+ flow: cz(t),
54283
54522
  step_order: void 0
54284
54523
  });
54285
54524
  }, ie = (e) => {
54286
- let n = QR[e];
54525
+ let n = oz[e];
54287
54526
  p({
54288
54527
  open: !0,
54289
54528
  typeKey: e
@@ -54298,7 +54537,7 @@ function az() {
54298
54537
  })), t.resetFields();
54299
54538
  }, ae = async () => {
54300
54539
  try {
54301
- let n = ez((await t.validateFields()).name), r = await IE({
54540
+ let n = cz((await t.validateFields()).name), r = await IE({
54302
54541
  name: n,
54303
54542
  type: x.dbName
54304
54543
  });
@@ -54316,7 +54555,7 @@ function az() {
54316
54555
  align: "middle",
54317
54556
  justify: "space-between",
54318
54557
  className: "breadcrumb-action-wrapper",
54319
- 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, {
54320
54559
  type: "link",
54321
54560
  onClick: () => b("/zinnext-home"),
54322
54561
  children: "View Table"
@@ -54331,7 +54570,7 @@ function az() {
54331
54570
  children: /* @__PURE__ */ X(U, {
54332
54571
  align: "center",
54333
54572
  size: 10,
54334
- 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, {
54335
54574
  strong: !0,
54336
54575
  style: { fontSize: 16 },
54337
54576
  children: "Add Test Case"
@@ -54347,16 +54586,16 @@ function az() {
54347
54586
  className: "v1-required-mark",
54348
54587
  children: " *"
54349
54588
  })] }),
54350
- initialValues: ZR,
54589
+ initialValues: az,
54351
54590
  onFinish: te,
54352
54591
  autoComplete: "off",
54353
54592
  children: [/* @__PURE__ */ Y(Oi, {
54354
54593
  className: "v1-card",
54355
- title: /* @__PURE__ */ Y(iz, {
54594
+ title: /* @__PURE__ */ Y(fz, {
54356
54595
  icon: /* @__PURE__ */ Y($a, {}),
54357
54596
  title: "Test Case Details"
54358
54597
  }),
54359
- extra: /* @__PURE__ */ Y(YR, {
54598
+ extra: /* @__PURE__ */ Y(rz, {
54360
54599
  type: "secondary",
54361
54600
  className: "v1-card-subtitle",
54362
54601
  children: "Module, flow, step order and execution data"
@@ -54433,8 +54672,8 @@ function az() {
54433
54672
  disabled: O,
54434
54673
  optionFilterProp: "label",
54435
54674
  placeholder: "Select action",
54436
- options: JR,
54437
- onChange: (t) => e.setFieldsValue({ keyword: tz(t) })
54675
+ options: nz,
54676
+ onChange: (t) => e.setFieldsValue({ keyword: lz(t) })
54438
54677
  })
54439
54678
  })
54440
54679
  }),
@@ -54554,7 +54793,7 @@ function az() {
54554
54793
  maxLength: 100,
54555
54794
  placeholder: `Enter ${x.label.toLowerCase()} name`,
54556
54795
  onBlur: (e) => {
54557
- t.setFieldsValue({ name: ez(e.target.value) });
54796
+ t.setFieldsValue({ name: cz(e.target.value) });
54558
54797
  }
54559
54798
  })
54560
54799
  }), /* @__PURE__ */ Y(B.Item, {
@@ -54571,23 +54810,23 @@ function az() {
54571
54810
  }
54572
54811
  //#endregion
54573
54812
  //#region src/pages/TestingPage/ZinnextTestForm.jsx
54574
- var { Text: oz } = ia, sz = [{
54813
+ var { Text: mz } = ia, hz = [{
54575
54814
  label: "Home",
54576
54815
  href: "/"
54577
54816
  }, {
54578
54817
  label: "Test Cases",
54579
54818
  href: "/addTestCase"
54580
54819
  }];
54581
- function cz(e = "") {
54820
+ function gz(e = "") {
54582
54821
  return String(e ?? "").trim();
54583
54822
  }
54584
- function lz(e = [], t) {
54823
+ function _z(e = [], t) {
54585
54824
  return e.map((e) => ({
54586
54825
  value: e.id,
54587
54826
  label: e[t]
54588
54827
  }));
54589
54828
  }
54590
- var uz = [
54829
+ var vz = [
54591
54830
  {
54592
54831
  label: "Step",
54593
54832
  value: "step_order",
@@ -54626,22 +54865,22 @@ var uz = [
54626
54865
  children: "Negative"
54627
54866
  })
54628
54867
  }
54629
- ], dz = {
54868
+ ], yz = {
54630
54869
  key: !1,
54631
54870
  value: !1,
54632
54871
  expected: !1
54633
54872
  };
54634
- function fz(e, t) {
54635
- return t ? e[t] ?? dz : dz;
54873
+ function bz(e, t) {
54874
+ return t ? e[t] ?? yz : yz;
54636
54875
  }
54637
- function pz(e, t) {
54876
+ function xz(e, t) {
54638
54877
  e.setFields(t.map((e) => ({
54639
54878
  name: e,
54640
54879
  errors: []
54641
54880
  })));
54642
54881
  }
54643
- function mz() {
54644
- 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 () => {
54645
54884
  try {
54646
54885
  let e = await LE();
54647
54886
  Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
@@ -54787,10 +55026,10 @@ function mz() {
54787
55026
  align: "middle",
54788
55027
  justify: "space-between",
54789
55028
  className: "breadcrumb-action-wrapper",
54790
- 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, {
54791
55030
  size: 6,
54792
55031
  className: "zt-section-title",
54793
- children: [/* @__PURE__ */ Y(Eo, {}), /* @__PURE__ */ Y(oz, {
55032
+ children: [/* @__PURE__ */ Y(Eo, {}), /* @__PURE__ */ Y(mz, {
54794
55033
  strong: !0,
54795
55034
  children: a.name
54796
55035
  })]
@@ -54811,11 +55050,11 @@ function mz() {
54811
55050
  product_parent_ID: Number(a?.id),
54812
55051
  module_parent_ID: Number(n.module),
54813
55052
  submodule_parent_ID: Number(n.submodule),
54814
- description: cz(n.description),
54815
- actions: cz(n.actions),
54816
- key: cz(n.key),
54817
- value: cz(n.value),
54818
- 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),
54819
55058
  scenario: +!!n.scenario,
54820
55059
  active: +!!n.active
54821
55060
  };
@@ -54881,7 +55120,7 @@ function mz() {
54881
55120
  key: void 0,
54882
55121
  value: void 0,
54883
55122
  expected: void 0
54884
- }), pz(e, [
55123
+ }), xz(e, [
54885
55124
  "actions",
54886
55125
  "key",
54887
55126
  "value",
@@ -54912,7 +55151,7 @@ function mz() {
54912
55151
  key: void 0,
54913
55152
  value: void 0,
54914
55153
  expected: void 0
54915
- }), pz(e, [
55154
+ }), xz(e, [
54916
55155
  "actions",
54917
55156
  "key",
54918
55157
  "value",
@@ -54966,7 +55205,7 @@ function mz() {
54966
55205
  /* @__PURE__ */ Y("span", { children: "Step Details" })
54967
55206
  ]
54968
55207
  }),
54969
- extra: /* @__PURE__ */ X(oz, {
55208
+ extra: /* @__PURE__ */ X(mz, {
54970
55209
  type: "secondary",
54971
55210
  children: [
54972
55211
  M,
@@ -55006,13 +55245,13 @@ function mz() {
55006
55245
  placeholder: "Select action",
55007
55246
  options: f,
55008
55247
  onChange: (t) => {
55009
- let n = fz(m, t);
55248
+ let n = bz(m, t);
55010
55249
  e.setFieldsValue({
55011
55250
  actions: t,
55012
55251
  key: n.key ? e.getFieldValue("key") : void 0,
55013
55252
  value: n.value ? e.getFieldValue("value") : void 0,
55014
55253
  expected: n.expected ? e.getFieldValue("expected") : void 0
55015
- }), pz(e, [
55254
+ }), xz(e, [
55016
55255
  "key",
55017
55256
  "value",
55018
55257
  "expected"
@@ -55121,7 +55360,7 @@ function mz() {
55121
55360
  children: /* @__PURE__ */ Y(sS, {
55122
55361
  listName: "Added Steps",
55123
55362
  loading: x,
55124
- fields: uz,
55363
+ fields: vz,
55125
55364
  dataSource: u,
55126
55365
  current: 1,
55127
55366
  pageSize: Math.max(u.length, 1),
@@ -55137,7 +55376,7 @@ function mz() {
55137
55376
  }
55138
55377
  //#endregion
55139
55378
  //#region src/pages/TestingPage/ManageModules.jsx
55140
- var { Text: hz } = ia, gz = [
55379
+ var { Text: Cz } = ia, wz = [
55141
55380
  {
55142
55381
  label: "Home",
55143
55382
  href: "/"
@@ -55151,7 +55390,7 @@ var { Text: hz } = ia, gz = [
55151
55390
  href: "/manageModules"
55152
55391
  }
55153
55392
  ];
55154
- function _z() {
55393
+ function Tz() {
55155
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) => {
55156
55395
  if (!e) {
55157
55396
  r([]);
@@ -55219,7 +55458,7 @@ function _z() {
55219
55458
  align: "middle",
55220
55459
  justify: "space-between",
55221
55460
  className: "breadcrumb-action-wrapper",
55222
- 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, {
55223
55462
  type: "link",
55224
55463
  onClick: () => e("/addTestCase"),
55225
55464
  children: "Back to Form"
@@ -55239,7 +55478,7 @@ function _z() {
55239
55478
  children: [
55240
55479
  /* @__PURE__ */ Y(Eo, {}),
55241
55480
  /* @__PURE__ */ Y("span", { children: "Project:" }),
55242
- /* @__PURE__ */ Y(hz, {
55481
+ /* @__PURE__ */ Y(Cz, {
55243
55482
  strong: !0,
55244
55483
  children: t.name
55245
55484
  })
@@ -55315,7 +55554,7 @@ function _z() {
55315
55554
  children: /* @__PURE__ */ X(U, {
55316
55555
  direction: "vertical",
55317
55556
  className: "zt-modal-stack",
55318
- children: [/* @__PURE__ */ X(hz, {
55557
+ children: [/* @__PURE__ */ X(Cz, {
55319
55558
  type: "secondary",
55320
55559
  children: ["Project: ", /* @__PURE__ */ Y("b", { children: t.name })]
55321
55560
  }), /* @__PURE__ */ Y(V, {
@@ -55332,7 +55571,7 @@ function _z() {
55332
55571
  }
55333
55572
  //#endregion
55334
55573
  //#region src/pages/TestingPage/ManageSubmodules.jsx
55335
- var { Text: vz } = ia, yz = [
55574
+ var { Text: Ez } = ia, Dz = [
55336
55575
  {
55337
55576
  label: "Home",
55338
55577
  href: "/"
@@ -55350,7 +55589,7 @@ var { Text: vz } = ia, yz = [
55350
55589
  href: "/test-cases/zinnext/submodules"
55351
55590
  }
55352
55591
  ];
55353
- function bz() {
55592
+ function Oz() {
55354
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) => {
55355
55594
  if (!e || !t) {
55356
55595
  a([]);
@@ -55420,7 +55659,7 @@ function bz() {
55420
55659
  align: "middle",
55421
55660
  justify: "space-between",
55422
55661
  className: "breadcrumb-action-wrapper",
55423
- 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, {
55424
55663
  type: "link",
55425
55664
  onClick: () => e("/manageModules"),
55426
55665
  children: "Back to Modules"
@@ -55443,7 +55682,7 @@ function bz() {
55443
55682
  children: [
55444
55683
  /* @__PURE__ */ Y(Eo, {}),
55445
55684
  /* @__PURE__ */ Y("span", { children: "Project:" }),
55446
- /* @__PURE__ */ Y(vz, {
55685
+ /* @__PURE__ */ Y(Ez, {
55447
55686
  strong: !0,
55448
55687
  children: n.name
55449
55688
  })
@@ -55453,7 +55692,7 @@ function bz() {
55453
55692
  children: [
55454
55693
  /* @__PURE__ */ Y(ua, {}),
55455
55694
  /* @__PURE__ */ Y("span", { children: "Module:" }),
55456
- /* @__PURE__ */ Y(vz, {
55695
+ /* @__PURE__ */ Y(Ez, {
55457
55696
  strong: !0,
55458
55697
  children: r
55459
55698
  })
@@ -55516,7 +55755,7 @@ function bz() {
55516
55755
  children: /* @__PURE__ */ X(U, {
55517
55756
  direction: "vertical",
55518
55757
  className: "zt-modal-stack",
55519
- children: [/* @__PURE__ */ X(vz, {
55758
+ children: [/* @__PURE__ */ X(Ez, {
55520
55759
  type: "secondary",
55521
55760
  children: [
55522
55761
  "Project: ",
@@ -55538,7 +55777,7 @@ function bz() {
55538
55777
  }
55539
55778
  //#endregion
55540
55779
  //#region src/pages/TestingPage/ZinnextTableView.jsx
55541
- var { Text: xz } = ia, Sz = [
55780
+ var { Text: kz } = ia, Az = [
55542
55781
  {
55543
55782
  label: "Home",
55544
55783
  href: "/"
@@ -55552,7 +55791,7 @@ var { Text: xz } = ia, Sz = [
55552
55791
  href: "/viewTestCase"
55553
55792
  }
55554
55793
  ];
55555
- function Cz() {
55794
+ function jz() {
55556
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 = {}) => {
55557
55796
  o(!0);
55558
55797
  try {
@@ -55612,7 +55851,7 @@ function Cz() {
55612
55851
  align: "middle",
55613
55852
  justify: "space-between",
55614
55853
  className: "breadcrumb-action-wrapper",
55615
- 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, {
55616
55855
  type: "link",
55617
55856
  onClick: () => e("/addTestCase"),
55618
55857
  children: "Back to Form"
@@ -55626,7 +55865,7 @@ function Cz() {
55626
55865
  className: "zt-section-title",
55627
55866
  children: [/* @__PURE__ */ Y(Uo, {}), /* @__PURE__ */ Y("span", { children: "Test Flows" })]
55628
55867
  }),
55629
- extra: /* @__PURE__ */ X(xz, {
55868
+ extra: /* @__PURE__ */ X(kz, {
55630
55869
  type: "secondary",
55631
55870
  children: [r, " row(s)"]
55632
55871
  }),
@@ -55780,17 +56019,17 @@ function Cz() {
55780
56019
  }
55781
56020
  //#endregion
55782
56021
  //#region src/pages/TestingPage/testHomePage.jsx
55783
- var wz = [{
56022
+ var Mz = [{
55784
56023
  label: "Home",
55785
56024
  href: "/"
55786
56025
  }, {
55787
56026
  label: "Test Cases",
55788
56027
  href: "/test-cases"
55789
56028
  }];
55790
- function Tz() {
56029
+ function Nz() {
55791
56030
  return /* @__PURE__ */ X("main", {
55792
56031
  className: "jobs-list-page",
55793
- children: [/* @__PURE__ */ Y(Fr, { items: wz }), /* @__PURE__ */ Y(km, {
56032
+ children: [/* @__PURE__ */ Y(Fr, { items: Mz }), /* @__PURE__ */ Y(km, {
55794
56033
  moduleName: "test-flows",
55795
56034
  rowKey: "id"
55796
56035
  })]
@@ -55798,85 +56037,85 @@ function Tz() {
55798
56037
  }
55799
56038
  //#endregion
55800
56039
  //#region src/pages/TestingPage/lms-test-form.jsx
55801
- var { Text: Ez } = ia, Dz = [{
56040
+ var { Text: Pz } = ia, Fz = [{
55802
56041
  label: "Home",
55803
56042
  href: "/"
55804
56043
  }, {
55805
56044
  label: "LMS Cases",
55806
56045
  href: "/lms-cases"
55807
- }], Oz = {
56046
+ }], Iz = {
55808
56047
  tags: "regression",
55809
56048
  active: 1
55810
- }, kz = { module: {
56049
+ }, Lz = { module: {
55811
56050
  dbName: "Modules",
55812
56051
  formField: "module",
55813
56052
  label: "Module"
55814
- } }, Az = {
56053
+ } }, Rz = {
55815
56054
  key: !1,
55816
56055
  value: !1,
55817
56056
  expected: !1
55818
56057
  };
55819
- function jz(e, t) {
55820
- return t ? e[t] ?? Az : Az;
56058
+ function zz(e, t) {
56059
+ return t ? e[t] ?? Rz : Rz;
55821
56060
  }
55822
- function Mz(e, t) {
56061
+ function Bz(e, t) {
55823
56062
  e.setFields(t.map((e) => ({
55824
56063
  name: e,
55825
56064
  errors: []
55826
56065
  })));
55827
56066
  }
55828
- function Nz(e = []) {
56067
+ function Vz(e = []) {
55829
56068
  return e.map((e) => ({
55830
56069
  value: e,
55831
56070
  label: e
55832
56071
  }));
55833
56072
  }
55834
- function Pz(e = "") {
56073
+ function Hz(e = "") {
55835
56074
  return String(e ?? "").trim();
55836
56075
  }
55837
- function Fz(e = []) {
56076
+ function Uz(e = []) {
55838
56077
  let t = /* @__PURE__ */ new Map();
55839
56078
  return e.forEach((e) => {
55840
- let n = Pz(e?.flow), r = n.toLowerCase();
56079
+ let n = Hz(e?.flow), r = n.toLowerCase();
55841
56080
  n && !t.has(r) && t.set(r, n);
55842
56081
  }), Array.from(t.values()).map((e) => ({
55843
56082
  value: e,
55844
56083
  label: e
55845
56084
  }));
55846
56085
  }
55847
- function Iz(e = [], t, n) {
55848
- 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();
55849
56088
  return e.reduce((e, t) => {
55850
- let n = Pz(t?.module).toLowerCase(), a = Pz(t?.flow).toLowerCase();
56089
+ let n = Hz(t?.module).toLowerCase(), a = Hz(t?.flow).toLowerCase();
55851
56090
  if (n !== r || a !== i) return e;
55852
56091
  let o = Number(t?.step_order) || 0;
55853
56092
  return Math.max(e, o);
55854
56093
  }, 0) + 1;
55855
56094
  }
55856
- function Lz({ icon: e, title: t }) {
56095
+ function Gz({ icon: e, title: t }) {
55857
56096
  return /* @__PURE__ */ X(U, {
55858
56097
  size: 10,
55859
56098
  align: "center",
55860
56099
  children: [/* @__PURE__ */ Y("div", {
55861
56100
  className: "v1-section-icon-box",
55862
56101
  children: e
55863
- }), /* @__PURE__ */ Y(Ez, {
56102
+ }), /* @__PURE__ */ Y(Pz, {
55864
56103
  strong: !0,
55865
56104
  className: "v1-section-label",
55866
56105
  children: t
55867
56106
  })]
55868
56107
  });
55869
56108
  }
55870
- function Rz() {
55871
- 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({
55872
56111
  open: !1,
55873
56112
  typeKey: "module"
55874
- }), [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 = []) => {
55875
56114
  e === "module" && r(t);
55876
56115
  }, re = async () => {
55877
56116
  p(!0);
55878
56117
  try {
55879
- let e = await FE(kz.module.dbName);
56118
+ let e = await FE(Lz.module.dbName);
55880
56119
  r(e?.items ?? []);
55881
56120
  } catch (e) {
55882
56121
  console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
@@ -55891,7 +56130,7 @@ function Rz() {
55891
56130
  console.error("Unable to load action field rules:", e), q.error("Unable to load action validation rules.");
55892
56131
  }
55893
56132
  }, N = yi(async (t) => {
55894
- let n = Pz(t);
56133
+ let n = Hz(t);
55895
56134
  if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
55896
56135
  h(!0);
55897
56136
  try {
@@ -55900,7 +56139,7 @@ function Rz() {
55900
56139
  offset: 0,
55901
56140
  module: n
55902
56141
  }), t = Array.isArray(e?.items) ? e.items : [];
55903
- a(t), s(Fz(t));
56142
+ a(t), s(Uz(t));
55904
56143
  } catch (e) {
55905
56144
  console.error("Unable to load flows:", e), q.error("Unable to load flows.");
55906
56145
  } finally {
@@ -55908,14 +56147,14 @@ function Rz() {
55908
56147
  }
55909
56148
  }
55910
56149
  }, [e]), ae = yi(async (t, n, r) => {
55911
- let i = Pz(t), a = Pz(n);
56150
+ let i = Hz(t), a = Hz(n);
55912
56151
  if (!i || !a) {
55913
56152
  e.setFieldsValue({ step_order: void 0 });
55914
56153
  return;
55915
56154
  }
55916
56155
  x(!0);
55917
56156
  try {
55918
- e.setFieldsValue({ step_order: Iz(r, i, a) });
56157
+ e.setFieldsValue({ step_order: Wz(r, i, a) });
55919
56158
  } catch (e) {
55920
56159
  console.error("Unable to load step order:", e), q.error("Unable to load step order.");
55921
56160
  } finally {
@@ -55938,15 +56177,15 @@ function Rz() {
55938
56177
  ]);
55939
56178
  let oe = async (t) => {
55940
56179
  let n = {
55941
- module: Pz(t.module),
55942
- flow: Pz(t.flow),
56180
+ module: Hz(t.module),
56181
+ flow: Hz(t.flow),
55943
56182
  step_order: Number(t.step_order),
55944
- description: Pz(t.description),
55945
- keyword: Pz(t.keyword),
55946
- target: Pz(t.target),
55947
- value: Pz(t.value),
55948
- expected: Pz(t.expected),
55949
- 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,
55950
56189
  active: Number(t.active)
55951
56190
  };
55952
56191
  C(!0);
@@ -55958,19 +56197,19 @@ function Rz() {
55958
56197
  C(!1);
55959
56198
  }
55960
56199
  }, se = (t, n) => {
55961
- e.setFieldsValue({ [t]: Pz(n) });
56200
+ e.setFieldsValue({ [t]: Hz(n) });
55962
56201
  }, ce = (t) => {
55963
56202
  e.setFieldsValue({
55964
- module: Pz(t),
56203
+ module: Hz(t),
55965
56204
  flow: void 0,
55966
56205
  step_order: void 0,
55967
56206
  keyword: void 0,
55968
56207
  description: void 0,
55969
56208
  target: void 0,
55970
- tags: Oz.tags,
56209
+ tags: Iz.tags,
55971
56210
  value: void 0,
55972
56211
  expected: void 0
55973
- }), Mz(e, [
56212
+ }), Bz(e, [
55974
56213
  "keyword",
55975
56214
  "target",
55976
56215
  "value",
@@ -55978,32 +56217,32 @@ function Rz() {
55978
56217
  ]);
55979
56218
  }, le = (t) => {
55980
56219
  e.setFieldsValue({
55981
- flow: Pz(t),
56220
+ flow: Hz(t),
55982
56221
  step_order: void 0,
55983
56222
  keyword: void 0,
55984
56223
  target: void 0,
55985
56224
  value: void 0,
55986
56225
  expected: void 0
55987
- }), Mz(e, [
56226
+ }), Bz(e, [
55988
56227
  "keyword",
55989
56228
  "target",
55990
56229
  "value",
55991
56230
  "expected"
55992
56231
  ]);
55993
56232
  }, ue = (t) => {
55994
- let n = jz(u, t);
56233
+ let n = zz(u, t);
55995
56234
  e.setFieldsValue({
55996
- keyword: Pz(t),
56235
+ keyword: Hz(t),
55997
56236
  target: n.key ? e.getFieldValue("target") : void 0,
55998
56237
  value: n.value ? e.getFieldValue("value") : void 0,
55999
56238
  expected: n.expected ? e.getFieldValue("expected") : void 0
56000
- }), Mz(e, [
56239
+ }), Bz(e, [
56001
56240
  "target",
56002
56241
  "value",
56003
56242
  "expected"
56004
56243
  ]);
56005
56244
  }, de = (e) => {
56006
- let n = kz[e];
56245
+ let n = Lz[e];
56007
56246
  _({
56008
56247
  open: !0,
56009
56248
  typeKey: e
@@ -56018,7 +56257,7 @@ function Rz() {
56018
56257
  })), t.resetFields();
56019
56258
  }, pe = async () => {
56020
56259
  try {
56021
- let n = Pz((await t.validateFields()).name), r = await IE({
56260
+ let n = Hz((await t.validateFields()).name), r = await IE({
56022
56261
  name: n,
56023
56262
  type: T.dbName
56024
56263
  });
@@ -56036,7 +56275,7 @@ function Rz() {
56036
56275
  align: "middle",
56037
56276
  justify: "space-between",
56038
56277
  className: "breadcrumb-action-wrapper",
56039
- 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, {
56040
56279
  type: "link",
56041
56280
  onClick: () => w("/lms-home"),
56042
56281
  children: "View Table"
@@ -56051,7 +56290,7 @@ function Rz() {
56051
56290
  children: /* @__PURE__ */ X(U, {
56052
56291
  align: "center",
56053
56292
  size: 10,
56054
- 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, {
56055
56294
  strong: !0,
56056
56295
  style: { fontSize: 16 },
56057
56296
  children: "Add LMS Case"
@@ -56067,16 +56306,16 @@ function Rz() {
56067
56306
  className: "v1-required-mark",
56068
56307
  children: " *"
56069
56308
  })] }),
56070
- initialValues: Oz,
56309
+ initialValues: Iz,
56071
56310
  onFinish: oe,
56072
56311
  autoComplete: "off",
56073
56312
  children: [/* @__PURE__ */ Y(Oi, {
56074
56313
  className: "v1-card",
56075
- title: /* @__PURE__ */ Y(Lz, {
56314
+ title: /* @__PURE__ */ Y(Gz, {
56076
56315
  icon: /* @__PURE__ */ Y($a, {}),
56077
56316
  title: "LMS Case Details"
56078
56317
  }),
56079
- extra: /* @__PURE__ */ Y(Ez, {
56318
+ extra: /* @__PURE__ */ Y(Pz, {
56080
56319
  type: "secondary",
56081
56320
  className: "v1-card-subtitle",
56082
56321
  children: "Module, flow, step order and execution data"
@@ -56286,7 +56525,7 @@ function Rz() {
56286
56525
  maxLength: 100,
56287
56526
  placeholder: `Enter ${T.label.toLowerCase()} name`,
56288
56527
  onBlur: (e) => {
56289
- t.setFieldsValue({ name: Pz(e.target.value) });
56528
+ t.setFieldsValue({ name: Hz(e.target.value) });
56290
56529
  }
56291
56530
  })
56292
56531
  }), /* @__PURE__ */ Y(B.Item, {
@@ -56303,17 +56542,17 @@ function Rz() {
56303
56542
  }
56304
56543
  //#endregion
56305
56544
  //#region src/pages/TestingPage/lmsHomePage.jsx
56306
- var zz = [{
56545
+ var qz = [{
56307
56546
  label: "Home",
56308
56547
  href: "/"
56309
56548
  }, {
56310
56549
  label: "LMS Cases",
56311
56550
  href: "/lms-cases"
56312
56551
  }];
56313
- function Bz() {
56552
+ function Jz() {
56314
56553
  return /* @__PURE__ */ X("main", {
56315
56554
  className: "jobs-list-page",
56316
- children: [/* @__PURE__ */ Y(Fr, { items: zz }), /* @__PURE__ */ Y(km, {
56555
+ children: [/* @__PURE__ */ Y(Fr, { items: qz }), /* @__PURE__ */ Y(km, {
56317
56556
  moduleName: "lms-flows",
56318
56557
  rowKey: "id"
56319
56558
  })]
@@ -56321,7 +56560,7 @@ function Bz() {
56321
56560
  }
56322
56561
  //#endregion
56323
56562
  //#region src/services/mergedListApi.js
56324
- var Vz = [
56563
+ var Yz = [
56325
56564
  "referenceId",
56326
56565
  "ReferenceId",
56327
56566
  "candidateId",
@@ -56332,7 +56571,7 @@ var Vz = [
56332
56571
  "Id",
56333
56572
  "_id"
56334
56573
  ];
56335
- function Hz(e = Vz) {
56574
+ function Xz(e = Yz) {
56336
56575
  return function(t) {
56337
56576
  if (!t || typeof t != "object") return "";
56338
56577
  for (let n of e) {
@@ -56342,7 +56581,7 @@ function Hz(e = Vz) {
56342
56581
  return "";
56343
56582
  };
56344
56583
  }
56345
- function Uz(e, t = Vz) {
56584
+ function Zz(e, t = Yz) {
56346
56585
  if (!e || typeof e != "object") return [];
56347
56586
  let n = [];
56348
56587
  for (let r of t) {
@@ -56351,18 +56590,18 @@ function Uz(e, t = Vz) {
56351
56590
  }
56352
56591
  return n;
56353
56592
  }
56354
- var Wz = Hz();
56355
- function Gz(e) {
56356
- 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;
56357
56596
  }
56358
- function Kz(e, t, n) {
56597
+ function eB(e, t, n) {
56359
56598
  return !t || typeof t != "object" ? e : {
56360
56599
  ...t,
56361
56600
  ...e,
56362
56601
  id: e?.id ?? t?.id ?? n
56363
56602
  };
56364
56603
  }
56365
- function qz(e, t, n = {}) {
56604
+ function tB(e, t, n = {}) {
56366
56605
  return {
56367
56606
  status: "success",
56368
56607
  total: t,
@@ -56372,7 +56611,7 @@ function qz(e, t, n = {}) {
56372
56611
  }
56373
56612
  };
56374
56613
  }
56375
- var Jz = [
56614
+ var nB = [
56376
56615
  "fields",
56377
56616
  "fieldConfig",
56378
56617
  "tabs",
@@ -56381,17 +56620,17 @@ var Jz = [
56381
56620
  "actions",
56382
56621
  "columnActions"
56383
56622
  ];
56384
- function Yz(e) {
56623
+ function rB(e) {
56385
56624
  let t = e?.data ?? e, n = {};
56386
- for (let r of Jz) {
56625
+ for (let r of nB) {
56387
56626
  let i = e?.[r] ?? t?.[r];
56388
56627
  i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
56389
56628
  }
56390
56629
  return n;
56391
56630
  }
56392
- var Xz = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
56393
- function Zz(e, t, n) {
56394
- 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;
56395
56634
  if (i === -1) return [...e, ...t];
56396
56635
  let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
56397
56636
  ...e,
@@ -56403,31 +56642,31 @@ function Zz(e, t, n) {
56403
56642
  ...e.slice(i + 1)
56404
56643
  ];
56405
56644
  }
56406
- var Qz = (e, t) => $d(e, t).rows, $z = (e, t) => {
56645
+ var oB = (e, t) => $d(e, t).rows, sB = (e, t) => {
56407
56646
  let { rows: n, total: r } = $d(e, t);
56408
56647
  return {
56409
56648
  rows: n,
56410
56649
  total: r
56411
56650
  };
56412
56651
  };
56413
- function eB(e, t) {
56652
+ function cB(e, t) {
56414
56653
  return function(n, r, i, a = {}) {
56415
56654
  return e(t ?? n, r, i, a);
56416
56655
  };
56417
56656
  }
56418
- function tB(e) {
56657
+ function lB(e) {
56419
56658
  return !e || typeof e != "object" || typeof (e.fetchByKeys ?? e.fetch ?? e.function) != "function" ? null : {
56420
56659
  ...e,
56421
56660
  fetchByKeys: typeof e.fetchByKeys == "function" ? e.fetchByKeys : null,
56422
56661
  fetch: typeof e.fetch == "function" ? e.fetch : null,
56423
56662
  function: typeof e.function == "function" ? e.function : null,
56424
- extractRows: typeof e.extractRows == "function" ? e.extractRows : Qz,
56425
- 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,
56426
56665
  fetchById: typeof e.fetchById == "function" ? e.fetchById : null
56427
56666
  };
56428
56667
  }
56429
- function nB({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
56430
- 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({
56431
56670
  key: i,
56432
56671
  fetchByKeys: e ? (t, n, r) => e(t, n, r) : null,
56433
56672
  function: t ? ({ moduleName: e, options: n }) => t(e, o, 0, n) : null,
@@ -56436,21 +56675,21 @@ function nB({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows:
56436
56675
  mergeRow: a
56437
56676
  })].filter(Boolean);
56438
56677
  }
56439
- function rB(e) {
56678
+ function dB(e) {
56440
56679
  if (typeof e == "function") return (t) => {
56441
56680
  let n = e(t);
56442
56681
  return n == null || n === "" ? [] : [String(n)];
56443
56682
  };
56444
- let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : Vz;
56445
- 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);
56446
56685
  }
56447
- function iB(e, t) {
56686
+ function fB(e, t) {
56448
56687
  let n = /* @__PURE__ */ new Map();
56449
56688
  return e.forEach((e) => {
56450
56689
  for (let r of t(e)) n.has(r) || n.set(r, e);
56451
56690
  }), n;
56452
56691
  }
56453
- 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 }) {
56454
56693
  return {
56455
56694
  moduleName: e,
56456
56695
  limit: t,
@@ -56464,7 +56703,7 @@ function aB({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryRe
56464
56703
  source: l
56465
56704
  };
56466
56705
  }
56467
- async function oB(e, t) {
56706
+ async function mB(e, t) {
56468
56707
  if (typeof e.args == "function") {
56469
56708
  let n = e.args(t);
56470
56709
  return (e.fetch ?? e.function ?? e.fetchByKeys)(...Array.isArray(n) ? n : [n]);
@@ -56474,8 +56713,8 @@ async function oB(e, t) {
56474
56713
  let n = e.fetch ?? e.function;
56475
56714
  return typeof n == "function" ? n(t) : null;
56476
56715
  }
56477
- 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 }) {
56478
- 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({
56479
56718
  fetchSecondaryByKeys: n,
56480
56719
  fetchSecondary: o,
56481
56720
  extractSecondaryRows: s,
@@ -56495,7 +56734,7 @@ function sB({ fetchPrimaryPage: e, extractPrimaryPage: t = $z, fetchSecondaryByK
56495
56734
  }
56496
56735
  async function v(e, t, n, r, i) {
56497
56736
  if (!n) return e;
56498
- 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);
56499
56738
  return Promise.all(e.map(async (e) => {
56500
56739
  let n = o(e), a = c.get(n) ?? (i() ? null : await _(t, s, r, n));
56501
56740
  return t.mergeRow(e, a, n);
@@ -56510,21 +56749,21 @@ function sB({ fetchPrimaryPage: e, extractPrimaryPage: t = $z, fetchSecondaryByK
56510
56749
  let r = {};
56511
56750
  for (let e of n) {
56512
56751
  if (!e) continue;
56513
- let t = Yz(e);
56752
+ let t = rB(e);
56514
56753
  for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
56515
56754
  }
56516
- 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);
56517
56756
  }
56518
56757
  async function x({ moduleName: e, limit: t, offset: n, options: r, primaryResponse: i, primaryRows: a, pageRows: o, total: s }) {
56519
56758
  return Promise.all(h.map(async (c) => {
56520
56759
  try {
56521
- 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))];
56522
56761
  return c.fetchByKeys && d.length === 0 ? {
56523
56762
  source: c,
56524
56763
  response: null
56525
56764
  } : {
56526
56765
  source: c,
56527
- response: await oB(c, aB({
56766
+ response: await mB(c, pB({
56528
56767
  moduleName: e,
56529
56768
  limit: t,
56530
56769
  offset: n,
@@ -56578,25 +56817,25 @@ function sB({ fetchPrimaryPage: e, extractPrimaryPage: t = $z, fetchSecondaryByK
56578
56817
  }
56579
56818
  //#endregion
56580
56819
  //#region src/services/workflowModuleListApi.js
56581
- function cB(e, t, n = {}) {
56582
- return sB({
56583
- fetchPrimary: () => UF(e, t),
56584
- extractPrimaryRows: VF,
56820
+ function gB(e, t, n = {}) {
56821
+ return hB({
56822
+ fetchPrimary: () => ZF(e, t),
56823
+ extractPrimaryRows: YF,
56585
56824
  fetchSecondary: Tu,
56586
- fetchSecondaryById: WF,
56825
+ fetchSecondaryById: QF,
56587
56826
  secondaryFetchLimit: n.moduleFetchLimit ?? 200
56588
56827
  });
56589
56828
  }
56590
- function lB(e) {
56829
+ function _B(e) {
56591
56830
  let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
56592
56831
  return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
56593
56832
  }
56594
- function uB(e) {
56833
+ function vB(e) {
56595
56834
  let t = Array.isArray(e?.stages) ? e.stages : [];
56596
56835
  if (!t.length) return e;
56597
56836
  let n = {};
56598
56837
  for (let e of t) {
56599
- let t = lB(e?.stageName);
56838
+ let t = _B(e?.stageName);
56600
56839
  t && (n[t] = Number(e?.count) || 0);
56601
56840
  }
56602
56841
  return {
@@ -56604,19 +56843,19 @@ function uB(e) {
56604
56843
  ...e
56605
56844
  };
56606
56845
  }
56607
- var dB = (e) => {
56846
+ var yB = (e) => {
56608
56847
  let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
56609
56848
  return Number.isFinite(t) && t > 0 ? t : null;
56610
56849
  };
56611
- function fB({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
56850
+ function bB({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
56612
56851
  return function(n, r, i) {
56613
- let a = Kz(n, r, i), o = dB(a);
56852
+ let a = eB(n, r, i), o = yB(a);
56614
56853
  return o != null && (a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
56615
56854
  };
56616
56855
  }
56617
- function pB(e = {}) {
56618
- let t = fB();
56619
- return sB({
56856
+ function xB(e = {}) {
56857
+ let t = bB();
56858
+ return hB({
56620
56859
  primaryKey: "_id",
56621
56860
  extraFields: e.extraFields,
56622
56861
  extraFieldsAfter: e.extraFieldsAfter,
@@ -56625,9 +56864,9 @@ function pB(e = {}) {
56625
56864
  key: "entityId",
56626
56865
  fetchByKeys: (e, t, n, r) => {
56627
56866
  let i = Math.max(1, Number(r?.limit) || 10);
56628
- return HF(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
56867
+ return XF(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
56629
56868
  },
56630
- extractRows: (e) => (e?.items ?? []).map(uB),
56869
+ extractRows: (e) => (e?.items ?? []).map(vB),
56631
56870
  mergeRow: (e, n, r) => {
56632
56871
  let i = t(e, n, r);
56633
56872
  return n?._id && (i.workflowId = n._id), i;
@@ -56635,16 +56874,16 @@ function pB(e = {}) {
56635
56874
  }]
56636
56875
  });
56637
56876
  }
56638
- async function mB(e, t = 10, n = 0, r = {}, i = {}) {
56639
- 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);
56640
56879
  }
56641
- async function hB(e, t, n, r = 10, i = 0, a = {}) {
56642
- 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);
56643
56882
  }
56644
56883
  //#endregion
56645
56884
  //#region src/index.js
56646
- 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);
56647
56886
  //#endregion
56648
- 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 };
56649
56888
 
56650
56889
  //# sourceMappingURL=index.js.map