@realtek/core-theme 0.0.221 → 0.0.222
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.cjs +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +802 -681
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/style.css +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -38628,19 +38628,19 @@ function ID({ meta: e }) {
|
|
|
38628
38628
|
});
|
|
38629
38629
|
}
|
|
38630
38630
|
function LD({ option: e, layout: t }) {
|
|
38631
|
-
let n = e?._raw ?? e ?? {}, r = ND(t.id, n), i = ND(t.title, n) || String(e?.label ?? ""), a = ND(t.subtitle, n), o = (t.meta ?? []).map((e) => ({
|
|
38631
|
+
let n = e?._raw ?? e ?? {}, r = ND(t.id, n), i = ND(t.title, n) || String(e?.label ?? ""), a = ND(t.subtitle, n), o = ND(t.titleAccent?.key, n), s = ND(t.titleAccent?.toneKey, n), c = t.titleAccent?.prefix ?? "", l = (t.meta ?? []).map((e) => ({
|
|
38632
38632
|
label: e.label,
|
|
38633
38633
|
text: MD(n?.[e.key], e.type)
|
|
38634
|
-
})).filter((e) => e.text),
|
|
38634
|
+
})).filter((e) => e.text), u = FD(e, n), d = PD(e);
|
|
38635
38635
|
return /* @__PURE__ */ Z("div", {
|
|
38636
38636
|
className: "dynamic-popup__option",
|
|
38637
38637
|
children: [
|
|
38638
38638
|
/* @__PURE__ */ X("span", {
|
|
38639
|
-
className: `dynamic-popup__option-tick${
|
|
38640
|
-
children:
|
|
38641
|
-
title:
|
|
38639
|
+
className: `dynamic-popup__option-tick${d ? ` dynamic-popup__option-tick--${d.tone}` : ""}`,
|
|
38640
|
+
children: d && /* @__PURE__ */ X(q, {
|
|
38641
|
+
title: d.tooltip,
|
|
38642
38642
|
placement: "topLeft",
|
|
38643
|
-
children: /* @__PURE__ */ X(Kr, { "aria-label":
|
|
38643
|
+
children: /* @__PURE__ */ X(Kr, { "aria-label": d.tooltip })
|
|
38644
38644
|
})
|
|
38645
38645
|
}),
|
|
38646
38646
|
/* @__PURE__ */ Z("div", {
|
|
@@ -38652,13 +38652,19 @@ function LD({ option: e, layout: t }) {
|
|
|
38652
38652
|
className: "dynamic-popup__option-id",
|
|
38653
38653
|
children: r
|
|
38654
38654
|
}),
|
|
38655
|
-
/* @__PURE__ */
|
|
38655
|
+
/* @__PURE__ */ Z("span", {
|
|
38656
38656
|
className: "dynamic-popup__option-title",
|
|
38657
|
-
children:
|
|
38657
|
+
children: [/* @__PURE__ */ X("span", {
|
|
38658
|
+
className: "dynamic-popup__option-title-text",
|
|
38659
|
+
children: i
|
|
38660
|
+
}), o && /* @__PURE__ */ X("span", {
|
|
38661
|
+
className: `dynamic-popup__option-title-accent${s ? ` dynamic-popup__option-title-accent--${s}` : ""}`,
|
|
38662
|
+
children: `${c}${o}`
|
|
38663
|
+
})]
|
|
38658
38664
|
}),
|
|
38659
|
-
|
|
38665
|
+
u && /* @__PURE__ */ X("span", {
|
|
38660
38666
|
className: "dynamic-popup__option-flag",
|
|
38661
|
-
children:
|
|
38667
|
+
children: u
|
|
38662
38668
|
})
|
|
38663
38669
|
]
|
|
38664
38670
|
}), a && /* @__PURE__ */ X("div", {
|
|
@@ -38669,7 +38675,7 @@ function LD({ option: e, layout: t }) {
|
|
|
38669
38675
|
e?.alreadySubmitted ? /* @__PURE__ */ X("span", {
|
|
38670
38676
|
className: "dynamic-popup__option-onjob",
|
|
38671
38677
|
children: "On this job"
|
|
38672
|
-
}) :
|
|
38678
|
+
}) : l.length > 0 && /* @__PURE__ */ X(ID, { meta: l })
|
|
38673
38679
|
]
|
|
38674
38680
|
});
|
|
38675
38681
|
}
|
|
@@ -38770,24 +38776,34 @@ function KD({ field: e, options: t, value: n, onChange: r }) {
|
|
|
38770
38776
|
prefix: /* @__PURE__ */ X(ri, {})
|
|
38771
38777
|
});
|
|
38772
38778
|
}
|
|
38773
|
-
function qD({ field: e, options: t, onSearch: n, value: r, onChange: i }) {
|
|
38774
|
-
let
|
|
38779
|
+
function qD({ field: e, options: t, onSearch: n, value: r, onChange: i, popupContext: a }) {
|
|
38780
|
+
let o = HD(t), s = e.optionLayout, c = new Map(o.map((e) => [String(e?.value ?? ""), e]));
|
|
38781
|
+
async function l(t, n) {
|
|
38782
|
+
let r = n ?? c.get(String(t ?? ""));
|
|
38783
|
+
typeof e.onSelectGuard == "function" && await e.onSelectGuard({
|
|
38784
|
+
value: t,
|
|
38785
|
+
option: r,
|
|
38786
|
+
field: e,
|
|
38787
|
+
popupContext: a,
|
|
38788
|
+
confirm: mr.confirm
|
|
38789
|
+
}) === !1 || i?.(t);
|
|
38790
|
+
}
|
|
38775
38791
|
return /* @__PURE__ */ X(U, {
|
|
38776
38792
|
showSearch: !0,
|
|
38777
38793
|
filterOption: !1,
|
|
38778
38794
|
notFoundContent: e.notFoundContent ?? null,
|
|
38779
38795
|
value: r,
|
|
38780
|
-
onChange:
|
|
38781
|
-
options:
|
|
38796
|
+
onChange: l,
|
|
38797
|
+
options: o,
|
|
38782
38798
|
placeholder: e.placeholder,
|
|
38783
38799
|
onSearch: n,
|
|
38784
|
-
className: `dynamic-popup__field-select${
|
|
38785
|
-
popupClassName:
|
|
38786
|
-
listHeight:
|
|
38800
|
+
className: `dynamic-popup__field-select${s ? " dynamic-popup__field-select--rich" : ""}`,
|
|
38801
|
+
popupClassName: s ? "dynamic-popup__option-dropdown" : void 0,
|
|
38802
|
+
listHeight: s ? 340 : void 0,
|
|
38787
38803
|
optionLabelProp: "label",
|
|
38788
|
-
optionRender:
|
|
38804
|
+
optionRender: s ? (e) => /* @__PURE__ */ X(LD, {
|
|
38789
38805
|
option: e?.data ?? e,
|
|
38790
|
-
layout:
|
|
38806
|
+
layout: s
|
|
38791
38807
|
}) : void 0,
|
|
38792
38808
|
prefix: /* @__PURE__ */ X(ri, {})
|
|
38793
38809
|
});
|
|
@@ -39003,7 +39019,8 @@ function rO({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
|
|
|
39003
39019
|
options: t,
|
|
39004
39020
|
onSearch: n,
|
|
39005
39021
|
mentionOpts: o,
|
|
39006
|
-
onMentionSearch: a
|
|
39022
|
+
onMentionSearch: a,
|
|
39023
|
+
popupContext: i
|
|
39007
39024
|
}) : null
|
|
39008
39025
|
}, e.name);
|
|
39009
39026
|
}))
|
|
@@ -39382,75 +39399,119 @@ var fO = {
|
|
|
39382
39399
|
fields: []
|
|
39383
39400
|
}, pO = { deleteItems: async (e, t) => {
|
|
39384
39401
|
await po(t.moduleName, e);
|
|
39385
|
-
} }, mO =
|
|
39386
|
-
|
|
39387
|
-
|
|
39388
|
-
|
|
39389
|
-
|
|
39390
|
-
|
|
39391
|
-
|
|
39392
|
-
|
|
39393
|
-
|
|
39394
|
-
|
|
39395
|
-
|
|
39396
|
-
|
|
39397
|
-
|
|
39398
|
-
|
|
39399
|
-
|
|
39400
|
-
|
|
39401
|
-
|
|
39402
|
-
|
|
39403
|
-
|
|
39404
|
-
|
|
39405
|
-
|
|
39406
|
-
|
|
39407
|
-
|
|
39408
|
-
|
|
39409
|
-
|
|
39410
|
-
|
|
39411
|
-
|
|
39412
|
-
|
|
39413
|
-
|
|
39414
|
-
|
|
39415
|
-
|
|
39416
|
-
|
|
39417
|
-
|
|
39418
|
-
|
|
39419
|
-
|
|
39420
|
-
|
|
39421
|
-
|
|
39422
|
-
|
|
39423
|
-
|
|
39424
|
-
|
|
39425
|
-
|
|
39426
|
-
|
|
39427
|
-
|
|
39428
|
-
|
|
39429
|
-
|
|
39430
|
-
|
|
39431
|
-
|
|
39432
|
-
|
|
39433
|
-
|
|
39434
|
-
|
|
39435
|
-
|
|
39436
|
-
|
|
39437
|
-
|
|
39438
|
-
|
|
39439
|
-
|
|
39402
|
+
} }, mO = "Already submitted", hO = 1440 * 60 * 1e3, gO = 90, _O = "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.", vO = [
|
|
39403
|
+
"createdAt",
|
|
39404
|
+
"createdDate",
|
|
39405
|
+
"dateCreated",
|
|
39406
|
+
"created_on",
|
|
39407
|
+
"createdOn"
|
|
39408
|
+
], yO = [
|
|
39409
|
+
"updatedAt",
|
|
39410
|
+
"updatedDate",
|
|
39411
|
+
"lastUpdatedAt",
|
|
39412
|
+
"lastUpdatedDate",
|
|
39413
|
+
"modifiedAt",
|
|
39414
|
+
"modifiedDate"
|
|
39415
|
+
];
|
|
39416
|
+
function bO(e, t) {
|
|
39417
|
+
for (let n of t) {
|
|
39418
|
+
let t = e?.[n];
|
|
39419
|
+
if (!t) continue;
|
|
39420
|
+
let r = new Date(t);
|
|
39421
|
+
if (!Number.isNaN(r.getTime())) return r;
|
|
39422
|
+
}
|
|
39423
|
+
return null;
|
|
39424
|
+
}
|
|
39425
|
+
function xO(e) {
|
|
39426
|
+
return bO(e, vO);
|
|
39427
|
+
}
|
|
39428
|
+
function SO(e) {
|
|
39429
|
+
return bO(e, yO);
|
|
39430
|
+
}
|
|
39431
|
+
function CO(e) {
|
|
39432
|
+
if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
|
|
39433
|
+
let t = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime();
|
|
39434
|
+
return Math.max(0, Math.floor((t(/* @__PURE__ */ new Date()) - t(e)) / hO));
|
|
39435
|
+
}
|
|
39436
|
+
function wO(e) {
|
|
39437
|
+
if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
|
|
39438
|
+
let t = /* @__PURE__ */ new Date(), n = (t.getFullYear() - e.getFullYear()) * 12 + (t.getMonth() - e.getMonth());
|
|
39439
|
+
return t.getDate() < e.getDate() && --n, Math.max(0, n);
|
|
39440
|
+
}
|
|
39441
|
+
function TO(e) {
|
|
39442
|
+
if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
|
|
39443
|
+
let t = /* @__PURE__ */ new Date(), n = t.getFullYear() - e.getFullYear();
|
|
39444
|
+
return (t.getMonth() < e.getMonth() || t.getMonth() === e.getMonth() && t.getDate() < e.getDate()) && --n, Math.max(0, n);
|
|
39445
|
+
}
|
|
39446
|
+
function EO(e) {
|
|
39447
|
+
return e === null ? "" : e <= 14 ? "green" : e <= 89 ? "yellow" : "red";
|
|
39448
|
+
}
|
|
39449
|
+
function DO(e, t = gO) {
|
|
39450
|
+
if (!e) return !1;
|
|
39451
|
+
let n = Date.now() - t * hO, r = xO(e), i = SO(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
|
|
39452
|
+
return !a && !o;
|
|
39453
|
+
}
|
|
39454
|
+
function OO(e) {
|
|
39455
|
+
let t = SO(e);
|
|
39456
|
+
if (!t) return {
|
|
39457
|
+
createdAgo: "",
|
|
39458
|
+
createdAgoTone: ""
|
|
39459
|
+
};
|
|
39460
|
+
let n = CO(t), r = wO(t), i = TO(t);
|
|
39461
|
+
return i >= 1 ? {
|
|
39462
|
+
createdAgo: `${i} year${i === 1 ? "" : "s"} ago`,
|
|
39463
|
+
createdAgoTone: EO(n)
|
|
39464
|
+
} : r >= 1 ? {
|
|
39465
|
+
createdAgo: `${r} month${r === 1 ? "" : "s"} ago`,
|
|
39466
|
+
createdAgoTone: EO(n)
|
|
39467
|
+
} : {
|
|
39468
|
+
createdAgo: wD(t),
|
|
39469
|
+
createdAgoTone: EO(n)
|
|
39470
|
+
};
|
|
39471
|
+
}
|
|
39472
|
+
function kO(e) {
|
|
39473
|
+
return {
|
|
39474
|
+
...e,
|
|
39475
|
+
...OO(e),
|
|
39476
|
+
isStaleCandidate: DO(e)
|
|
39477
|
+
};
|
|
39478
|
+
}
|
|
39479
|
+
function AO(e) {
|
|
39440
39480
|
return String(e?.applicantId ?? e?._id ?? e?.id ?? "");
|
|
39441
39481
|
}
|
|
39442
|
-
function
|
|
39482
|
+
function jO(e) {
|
|
39483
|
+
let t = AO(e);
|
|
39484
|
+
return `/candidates/edit/${encodeURIComponent(t)}`;
|
|
39485
|
+
}
|
|
39486
|
+
async function MO({ option: e, popupContext: t, confirm: n }) {
|
|
39487
|
+
let r = e?._raw ?? e ?? {};
|
|
39488
|
+
if (!DO(r)) return !0;
|
|
39489
|
+
let i = t?.navigate, a = AO(r);
|
|
39490
|
+
return !i || !a ? !1 : new Promise((e) => {
|
|
39491
|
+
n({
|
|
39492
|
+
title: "Candidate update required",
|
|
39493
|
+
content: _O,
|
|
39494
|
+
okText: "OK",
|
|
39495
|
+
cancelText: "Cancel",
|
|
39496
|
+
onOk: () => {
|
|
39497
|
+
i(jO(r)), e(!1);
|
|
39498
|
+
},
|
|
39499
|
+
onCancel: () => e(!1)
|
|
39500
|
+
});
|
|
39501
|
+
});
|
|
39502
|
+
}
|
|
39503
|
+
function NO(e, t, n) {
|
|
39443
39504
|
return {
|
|
39444
39505
|
...e,
|
|
39445
|
-
label: `${e.label}
|
|
39506
|
+
label: `${e.label} - ${mO}`,
|
|
39446
39507
|
disabled: !0,
|
|
39447
|
-
title: `${
|
|
39508
|
+
title: `${mO}${t ? ` (submission ${t})` : ""}`,
|
|
39448
39509
|
alreadySubmitted: !0,
|
|
39449
39510
|
existingSubmissionId: t || "",
|
|
39450
39511
|
...n ? { submittedAt: n } : {}
|
|
39451
39512
|
};
|
|
39452
39513
|
}
|
|
39453
|
-
var
|
|
39514
|
+
var PO = {
|
|
39454
39515
|
searchOptions: async (e, t, n) => {
|
|
39455
39516
|
if (e.searchFetchKey === "quickSubmitJobList") {
|
|
39456
39517
|
let e = n.selectedRecords?.[0] ?? {}, r = e.id ?? e._id ?? n.selectedIds?.[0], i, a = !0;
|
|
@@ -39473,13 +39534,13 @@ var vO = {
|
|
|
39473
39534
|
_raw: e
|
|
39474
39535
|
}));
|
|
39475
39536
|
if (a) return o.map((e) => {
|
|
39476
|
-
if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return
|
|
39537
|
+
if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return NO(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
|
|
39477
39538
|
if (e._raw?.disable) {
|
|
39478
39539
|
let t = String(e._raw?.message ?? "").trim();
|
|
39479
39540
|
return {
|
|
39480
39541
|
...e,
|
|
39481
39542
|
disabled: !0,
|
|
39482
|
-
label: t ? `${e.label}
|
|
39543
|
+
label: t ? `${e.label} - ${t}` : e.label,
|
|
39483
39544
|
title: t
|
|
39484
39545
|
};
|
|
39485
39546
|
}
|
|
@@ -39491,7 +39552,7 @@ var vO = {
|
|
|
39491
39552
|
}).catch(() => /* @__PURE__ */ new Map());
|
|
39492
39553
|
return o.map((e) => {
|
|
39493
39554
|
let t = s.get(String(e.value));
|
|
39494
|
-
return t ?
|
|
39555
|
+
return t ? NO(e, t.submissionId, t.submittedAt) : e;
|
|
39495
39556
|
});
|
|
39496
39557
|
}
|
|
39497
39558
|
if (e.searchFetchKey === "quickSubmitCandidates") {
|
|
@@ -39510,17 +39571,17 @@ var vO = {
|
|
|
39510
39571
|
});
|
|
39511
39572
|
i = Array.isArray(e) ? e : [], a = await Ro({
|
|
39512
39573
|
jobId: r,
|
|
39513
|
-
applicantIds: i.map(
|
|
39574
|
+
applicantIds: i.map(AO)
|
|
39514
39575
|
}).catch(() => /* @__PURE__ */ new Map());
|
|
39515
39576
|
}
|
|
39516
|
-
return i.map((e) => {
|
|
39517
|
-
let t = a.get(
|
|
39577
|
+
return i.map((e) => kO(e)).map((e) => {
|
|
39578
|
+
let t = a.get(AO(e));
|
|
39518
39579
|
if (!(t || e?.isSubmitted === !0 || e?.alreadySubmitted === !0)) return e;
|
|
39519
39580
|
let n = t?.submissionId || e?.jobSubmissionId || "", r = t?.submittedAt || e?.submittedAt || "";
|
|
39520
39581
|
return {
|
|
39521
39582
|
...e,
|
|
39522
39583
|
disabled: !0,
|
|
39523
|
-
optionNote:
|
|
39584
|
+
optionNote: mO,
|
|
39524
39585
|
isSubmitted: !0,
|
|
39525
39586
|
alreadySubmitted: !0,
|
|
39526
39587
|
existingSubmissionId: n,
|
|
@@ -39533,8 +39594,9 @@ var vO = {
|
|
|
39533
39594
|
submit: async (e, t, n) => {
|
|
39534
39595
|
let { navigate: r, selectedRecords: i = [], selectedIds: a = [], moduleName: o } = t, s = i[0] ?? {}, c, l;
|
|
39535
39596
|
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 ?? "");
|
|
39536
|
-
let u = n?.dynamicOptions?.candidate?.find((e) =>
|
|
39597
|
+
let u = n?.dynamicOptions?.candidate?.find((e) => AO(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;
|
|
39537
39598
|
if (!c || !l) throw Error("Select both a job and a candidate to quick submit.");
|
|
39599
|
+
if (DO(u?._raw)) throw Error(_O);
|
|
39538
39600
|
let p = f, m = u?._raw?.existingSubmissionId || u?._raw?.jobSubmissionId || d?.existingSubmissionId || d?._raw?.jobSubmissionId || "";
|
|
39539
39601
|
try {
|
|
39540
39602
|
let e = await Fo({
|
|
@@ -39551,7 +39613,66 @@ var vO = {
|
|
|
39551
39613
|
let g = u?.priorSubmissionId || u?._raw?.submissionId || d?.priorSubmissionId || d?._raw?.submissionId || "";
|
|
39552
39614
|
return g ? (h.set("submissionId", String(g)), h.set("isFromSubmission", "true")) : h.set("isFromSubmission", "false"), r(`/submission-create/${c}?${h.toString()}`), { navigated: !0 };
|
|
39553
39615
|
}
|
|
39554
|
-
},
|
|
39616
|
+
}, FO = {
|
|
39617
|
+
title: "Submit",
|
|
39618
|
+
okText: "Submit",
|
|
39619
|
+
width: 640,
|
|
39620
|
+
disabledUntilFilled: !0,
|
|
39621
|
+
autoSubmitWhenNoFields: !0,
|
|
39622
|
+
getNote: (e) => e.moduleName === "candidate" ? "Note: Select a job to submit this candidate." : "Note: Select a candidate to submit for this job",
|
|
39623
|
+
getFields: (e) => e.jobId ? [] : e.moduleName === "candidate" ? [{
|
|
39624
|
+
name: "jobId",
|
|
39625
|
+
label: "Job list",
|
|
39626
|
+
type: "search-select",
|
|
39627
|
+
required: !0,
|
|
39628
|
+
placeholder: "Search Job ID / job name - or pick a recent job",
|
|
39629
|
+
searchFetchKey: "quickSubmitJobList",
|
|
39630
|
+
optionLayout: {
|
|
39631
|
+
id: "{jobReferenceId}",
|
|
39632
|
+
title: "{jobTitle}",
|
|
39633
|
+
subtitle: "{clientJobReferenceId}",
|
|
39634
|
+
meta: [{
|
|
39635
|
+
label: "Created",
|
|
39636
|
+
key: "createdAt",
|
|
39637
|
+
type: "date"
|
|
39638
|
+
}, {
|
|
39639
|
+
label: "Updated",
|
|
39640
|
+
key: "updatedAt",
|
|
39641
|
+
type: "relative"
|
|
39642
|
+
}]
|
|
39643
|
+
}
|
|
39644
|
+
}] : [{
|
|
39645
|
+
name: "candidate",
|
|
39646
|
+
label: "Candidate",
|
|
39647
|
+
type: "search-select",
|
|
39648
|
+
required: !0,
|
|
39649
|
+
placeholder: "Search candidate name / email - or pick a recent candidate",
|
|
39650
|
+
optionsKey: "candidateOptions",
|
|
39651
|
+
searchFetchKey: "quickSubmitCandidates",
|
|
39652
|
+
labelTemplate: "{applicantRefrenceId} - {firstName} {lastName} - {createdAgo}",
|
|
39653
|
+
valueKey: "applicantId",
|
|
39654
|
+
optionLayout: {
|
|
39655
|
+
id: "{applicantRefrenceId}",
|
|
39656
|
+
title: "{firstName} {lastName}",
|
|
39657
|
+
titleAccent: {
|
|
39658
|
+
key: "createdAgo",
|
|
39659
|
+
toneKey: "createdAgoTone",
|
|
39660
|
+
prefix: " - "
|
|
39661
|
+
},
|
|
39662
|
+
subtitle: "{designation} - {email}",
|
|
39663
|
+
meta: [{
|
|
39664
|
+
label: "Created",
|
|
39665
|
+
key: "createdAt",
|
|
39666
|
+
type: "date"
|
|
39667
|
+
}, {
|
|
39668
|
+
label: "Updated",
|
|
39669
|
+
key: "updatedAt",
|
|
39670
|
+
type: "relative"
|
|
39671
|
+
}]
|
|
39672
|
+
},
|
|
39673
|
+
onSelectGuard: MO
|
|
39674
|
+
}]
|
|
39675
|
+
}, IO = {
|
|
39555
39676
|
title: "Add Notes & Share",
|
|
39556
39677
|
okText: "Save & Share",
|
|
39557
39678
|
width: 480,
|
|
@@ -39563,9 +39684,9 @@ var vO = {
|
|
|
39563
39684
|
placeholder: "Add your notes on the job. Use '@' to mention someone.",
|
|
39564
39685
|
mentionFetchKey: "mentionUsers"
|
|
39565
39686
|
}]
|
|
39566
|
-
},
|
|
39567
|
-
async function
|
|
39568
|
-
return
|
|
39687
|
+
}, LO = (e) => e?.data ?? e;
|
|
39688
|
+
async function RO({ relatedId: e, notes: t, title: n, notesFor: r }) {
|
|
39689
|
+
return LO(await vc(o, "/notes", {
|
|
39569
39690
|
method: "POST",
|
|
39570
39691
|
body: JSON.stringify({
|
|
39571
39692
|
relatedId: e,
|
|
@@ -39577,18 +39698,18 @@ async function xO({ relatedId: e, notes: t, title: n, notesFor: r }) {
|
|
|
39577
39698
|
}
|
|
39578
39699
|
//#endregion
|
|
39579
39700
|
//#region src/components/popups/definitions/add-notes/api.js
|
|
39580
|
-
var
|
|
39701
|
+
var zO = {
|
|
39581
39702
|
getMentionOptions: async (e, t) => ho(t),
|
|
39582
39703
|
submit: async (e, t) => {
|
|
39583
39704
|
let n = Array.isArray(t.selectedIds) ? t.selectedIds[0] : t.selectedIds;
|
|
39584
39705
|
if (!n) throw Error("Please select a record before adding a note.");
|
|
39585
|
-
await
|
|
39706
|
+
await RO({
|
|
39586
39707
|
relatedId: String(n),
|
|
39587
39708
|
notes: e.notes,
|
|
39588
39709
|
notesFor: t.moduleName
|
|
39589
39710
|
});
|
|
39590
39711
|
}
|
|
39591
|
-
},
|
|
39712
|
+
}, BO = {
|
|
39592
39713
|
name: "jobId",
|
|
39593
39714
|
label: "Job Title / ID",
|
|
39594
39715
|
type: "search-select",
|
|
@@ -39597,7 +39718,7 @@ var SO = {
|
|
|
39597
39718
|
searchFetchKey: "tagToJobJobList",
|
|
39598
39719
|
valueKey: "_id",
|
|
39599
39720
|
labelTemplate: "{jobReferenceId} - {jobTitle}"
|
|
39600
|
-
},
|
|
39721
|
+
}, VO = {
|
|
39601
39722
|
name: "hiringStage",
|
|
39602
39723
|
label: "Hiring stage",
|
|
39603
39724
|
type: "select",
|
|
@@ -39611,22 +39732,22 @@ var SO = {
|
|
|
39611
39732
|
value: "pipeline"
|
|
39612
39733
|
}],
|
|
39613
39734
|
initialValueKey: "hiringStage"
|
|
39614
|
-
},
|
|
39735
|
+
}, HO = {
|
|
39615
39736
|
title: "Tag to Job",
|
|
39616
39737
|
okText: "Tag",
|
|
39617
39738
|
width: 480,
|
|
39618
39739
|
disabledUntilFilled: !0,
|
|
39619
39740
|
autoSubmitWhenNoFields: !0,
|
|
39620
|
-
getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [
|
|
39621
|
-
},
|
|
39622
|
-
function
|
|
39741
|
+
getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [VO] : [BO, VO]
|
|
39742
|
+
}, UO = (e) => e?.data ?? e;
|
|
39743
|
+
function WO(e) {
|
|
39623
39744
|
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;
|
|
39624
39745
|
}
|
|
39625
|
-
function
|
|
39626
|
-
return e ? Array.isArray(e.data) ? e.data.map(
|
|
39746
|
+
function GO(e) {
|
|
39747
|
+
return e ? Array.isArray(e.data) ? e.data.map(WO) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(WO) : Array.isArray(e) ? e.map(WO) : [] : [];
|
|
39627
39748
|
}
|
|
39628
|
-
async function
|
|
39629
|
-
let n = await a(o, `/workflow/list/all?page=${e}&limit=${t}`), r =
|
|
39749
|
+
async function KO(e = 1, t = 10) {
|
|
39750
|
+
let n = await a(o, `/workflow/list/all?page=${e}&limit=${t}`), r = UO(n), i = Array.isArray(r) ? r : r?.data ?? [];
|
|
39630
39751
|
return {
|
|
39631
39752
|
items: i,
|
|
39632
39753
|
total: Number(n?.total ?? r?.total) || i.length,
|
|
@@ -39634,10 +39755,10 @@ async function kO(e = 1, t = 10) {
|
|
|
39634
39755
|
limit: t
|
|
39635
39756
|
};
|
|
39636
39757
|
}
|
|
39637
|
-
async function
|
|
39638
|
-
let t = await
|
|
39758
|
+
async function qO(e = 100) {
|
|
39759
|
+
let t = await KO(1, e), n = [...t.items], r = t.total, i = 2;
|
|
39639
39760
|
for (; n.length < r;) {
|
|
39640
|
-
let t = await
|
|
39761
|
+
let t = await KO(i, e);
|
|
39641
39762
|
if (!t.items.length) break;
|
|
39642
39763
|
n.push(...t.items), i += 1;
|
|
39643
39764
|
}
|
|
@@ -39646,14 +39767,14 @@ async function AO(e = 100) {
|
|
|
39646
39767
|
total: Math.max(r, n.length)
|
|
39647
39768
|
};
|
|
39648
39769
|
}
|
|
39649
|
-
async function
|
|
39650
|
-
let n =
|
|
39770
|
+
async function JO(e, t) {
|
|
39771
|
+
let n = UO(await a(o, `/workflow/${e}/stage/${t}`));
|
|
39651
39772
|
return Array.isArray(n) ? { data: n } : n;
|
|
39652
39773
|
}
|
|
39653
|
-
async function
|
|
39774
|
+
async function YO(e, t) {
|
|
39654
39775
|
if (!e || !t) return null;
|
|
39655
39776
|
try {
|
|
39656
|
-
let n =
|
|
39777
|
+
let n = UO(await a(o, `/module-data-list?${new URLSearchParams({
|
|
39657
39778
|
module: e,
|
|
39658
39779
|
limit: "1",
|
|
39659
39780
|
offset: "0",
|
|
@@ -39673,15 +39794,15 @@ async function MO(e, t) {
|
|
|
39673
39794
|
return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
|
|
39674
39795
|
}
|
|
39675
39796
|
}
|
|
39676
|
-
async function
|
|
39677
|
-
return
|
|
39797
|
+
async function XO(e) {
|
|
39798
|
+
return UO(await a(n, "/source/workflow-instance", {
|
|
39678
39799
|
method: "POST",
|
|
39679
39800
|
body: JSON.stringify(e)
|
|
39680
39801
|
}));
|
|
39681
39802
|
}
|
|
39682
39803
|
//#endregion
|
|
39683
39804
|
//#region src/components/popups/definitions/tag-to-job/api.js
|
|
39684
|
-
var
|
|
39805
|
+
var ZO = {
|
|
39685
39806
|
pipeline: "pipeline",
|
|
39686
39807
|
goodfited: "goodfited",
|
|
39687
39808
|
contacted: "contacted",
|
|
@@ -39690,40 +39811,40 @@ var PO = {
|
|
|
39690
39811
|
interviewinprogress: "interviewInprogress",
|
|
39691
39812
|
selected: "selected"
|
|
39692
39813
|
};
|
|
39693
|
-
function
|
|
39814
|
+
function QO(e, ...t) {
|
|
39694
39815
|
for (let n of t) {
|
|
39695
39816
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
39696
39817
|
if (t != null && t !== "") return t;
|
|
39697
39818
|
}
|
|
39698
39819
|
}
|
|
39699
|
-
function
|
|
39820
|
+
function $O(e) {
|
|
39700
39821
|
let t = String(e ?? "").trim();
|
|
39701
|
-
return t ?
|
|
39822
|
+
return t ? ZO[t.toLowerCase()] ?? t : "";
|
|
39702
39823
|
}
|
|
39703
|
-
function
|
|
39704
|
-
let n =
|
|
39824
|
+
function ek(e, t) {
|
|
39825
|
+
let n = QO(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
|
|
39705
39826
|
if (!n) return null;
|
|
39706
|
-
let r = (
|
|
39827
|
+
let r = (QO(e, "candidateName", "candidate_name", "fullName", "name") ?? [QO(e, "firstName", "first_name"), QO(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
|
|
39707
39828
|
candidateId: String(n),
|
|
39708
39829
|
candidateName: r,
|
|
39709
|
-
phone:
|
|
39710
|
-
source:
|
|
39711
|
-
submittedAt:
|
|
39712
|
-
remarks:
|
|
39713
|
-
assignedRecruiter:
|
|
39714
|
-
screeningStatus:
|
|
39715
|
-
screeningScore:
|
|
39716
|
-
assignedDate:
|
|
39830
|
+
phone: QO(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
|
|
39831
|
+
source: QO(e, "source", "sourceType", "candidateSource", "profileSource"),
|
|
39832
|
+
submittedAt: QO(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
|
|
39833
|
+
remarks: QO(e, "remarks", "comment", "comments", "notes"),
|
|
39834
|
+
assignedRecruiter: QO(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
|
|
39835
|
+
screeningStatus: QO(e, "screeningStatus", "screening.status", "screeningResult"),
|
|
39836
|
+
screeningScore: QO(e, "screeningScore", "screening.score", "score"),
|
|
39837
|
+
assignedDate: QO(e, "assignedDate", "assignedAt", "createdAt")
|
|
39717
39838
|
};
|
|
39718
39839
|
return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
|
|
39719
39840
|
}
|
|
39720
|
-
var
|
|
39841
|
+
var tk = {
|
|
39721
39842
|
searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? mo(t) : [],
|
|
39722
39843
|
submit: async (e, t) => {
|
|
39723
|
-
let n = e.jobId ?? t.jobId, r =
|
|
39844
|
+
let n = e.jobId ?? t.jobId, r = $O(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);
|
|
39724
39845
|
for (let e = 0; e < o; e += 1) {
|
|
39725
|
-
let t = i[e] ? String(i[e]) : "", o =
|
|
39726
|
-
await
|
|
39846
|
+
let t = i[e] ? String(i[e]) : "", o = ek(a[e] ?? {}, t);
|
|
39847
|
+
await XO({
|
|
39727
39848
|
jobId: n,
|
|
39728
39849
|
module: "jobs",
|
|
39729
39850
|
currentStage: r,
|
|
@@ -39736,7 +39857,7 @@ var RO = {
|
|
|
39736
39857
|
hiringStage: r
|
|
39737
39858
|
});
|
|
39738
39859
|
}
|
|
39739
|
-
},
|
|
39860
|
+
}, nk = {
|
|
39740
39861
|
title: "Change Status",
|
|
39741
39862
|
okText: "Apply",
|
|
39742
39863
|
width: 420,
|
|
@@ -39768,9 +39889,9 @@ var RO = {
|
|
|
39768
39889
|
}
|
|
39769
39890
|
]
|
|
39770
39891
|
}]
|
|
39771
|
-
},
|
|
39892
|
+
}, rk = { submit: async (e, t) => {
|
|
39772
39893
|
await fo(t.moduleName, t.selectedIds, e.status);
|
|
39773
|
-
} },
|
|
39894
|
+
} }, ik = {
|
|
39774
39895
|
getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
|
|
39775
39896
|
titleIcon: "delete",
|
|
39776
39897
|
okText: "Remove",
|
|
@@ -39779,12 +39900,12 @@ var RO = {
|
|
|
39779
39900
|
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?",
|
|
39780
39901
|
footerNote: "The candidate will be moved back to the pipeline.",
|
|
39781
39902
|
fields: []
|
|
39782
|
-
},
|
|
39903
|
+
}, ak = { onOk: async (e) => {
|
|
39783
39904
|
await zo({
|
|
39784
39905
|
jobId: e.jobId ?? e.selectedIds[0],
|
|
39785
39906
|
candidateIds: e.selectedIds
|
|
39786
39907
|
});
|
|
39787
|
-
} },
|
|
39908
|
+
} }, ok = {
|
|
39788
39909
|
title: "Add to Groups",
|
|
39789
39910
|
description: "Select a group to add the selected candidate(s) to",
|
|
39790
39911
|
okText: "Add to Group",
|
|
@@ -39798,7 +39919,7 @@ var RO = {
|
|
|
39798
39919
|
placeholder: "Select a group",
|
|
39799
39920
|
fetchOptionsKey: "candidateGroups"
|
|
39800
39921
|
}]
|
|
39801
|
-
},
|
|
39922
|
+
}, sk = {
|
|
39802
39923
|
getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? bo() : [],
|
|
39803
39924
|
submit: async (e, t, { dynamicOptions: n }) => {
|
|
39804
39925
|
let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
|
|
@@ -39808,7 +39929,7 @@ var RO = {
|
|
|
39808
39929
|
groupName: r?.label ?? ""
|
|
39809
39930
|
});
|
|
39810
39931
|
}
|
|
39811
|
-
},
|
|
39932
|
+
}, ck = [
|
|
39812
39933
|
{
|
|
39813
39934
|
title: "Name",
|
|
39814
39935
|
key: "name",
|
|
@@ -39827,7 +39948,7 @@ var RO = {
|
|
|
39827
39948
|
render: (e) => e || "-"
|
|
39828
39949
|
}
|
|
39829
39950
|
];
|
|
39830
|
-
function
|
|
39951
|
+
function lk({ selectedIds: e, onClose: t }) {
|
|
39831
39952
|
let n = e?.[0], [r, i] = R(!0), [a, o] = R(!1), [s, c] = R({
|
|
39832
39953
|
assignedUsers: [],
|
|
39833
39954
|
totalSubmissions: 0,
|
|
@@ -39882,7 +40003,7 @@ function KO({ selectedIds: e, onClose: t }) {
|
|
|
39882
40003
|
children: "Team Members Allocated"
|
|
39883
40004
|
}),
|
|
39884
40005
|
/* @__PURE__ */ X(Tr, {
|
|
39885
|
-
columns:
|
|
40006
|
+
columns: ck,
|
|
39886
40007
|
dataSource: f,
|
|
39887
40008
|
pagination: !1,
|
|
39888
40009
|
rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
|
|
@@ -39931,31 +40052,31 @@ function KO({ selectedIds: e, onClose: t }) {
|
|
|
39931
40052
|
})]
|
|
39932
40053
|
});
|
|
39933
40054
|
}
|
|
39934
|
-
|
|
40055
|
+
lk.propTypes = {
|
|
39935
40056
|
selectedIds: Q.array,
|
|
39936
40057
|
onClose: Q.func
|
|
39937
40058
|
};
|
|
39938
40059
|
//#endregion
|
|
39939
40060
|
//#region src/components/popups/definitions/self-assign/config.js
|
|
39940
|
-
var
|
|
40061
|
+
var uk = {
|
|
39941
40062
|
title: "Self Assign",
|
|
39942
40063
|
width: 480,
|
|
39943
40064
|
className: "self-assign-modal",
|
|
39944
|
-
component:
|
|
39945
|
-
},
|
|
40065
|
+
component: lk
|
|
40066
|
+
}, dk = { submit: async () => {} };
|
|
39946
40067
|
//#endregion
|
|
39947
40068
|
//#region src/components/popups/definitions/others-assign/config.js
|
|
39948
|
-
function
|
|
40069
|
+
function fk(e = {}) {
|
|
39949
40070
|
let t = Array.isArray(e.jobPayDetails) ? e.jobPayDetails[e.jobPayDetails.length - 1] : e.jobPayDetails ?? e.clientBudget ?? {}, n = Number(t.clientBudgetEnd), r = Number(t.clientBudgetStart);
|
|
39950
40071
|
return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
|
|
39951
40072
|
}
|
|
39952
|
-
function
|
|
40073
|
+
function pk(e, t) {
|
|
39953
40074
|
let n = e ?? {};
|
|
39954
40075
|
if (n.isRange && n.minAmount != null && n.maxAmount != null && Number(n.maxAmount) <= Number(n.minAmount)) return "To rate must be greater than From rate.";
|
|
39955
|
-
let r =
|
|
40076
|
+
let r = fk(t?.selectedRecords?.[0] ?? {}), i = n.isRange ? Number(n.maxAmount) : Number(n.amount);
|
|
39956
40077
|
return r != null && Number.isFinite(i) && i > r ? `Candidate rate must not exceed the client rate (${r}).` : "";
|
|
39957
40078
|
}
|
|
39958
|
-
var
|
|
40079
|
+
var mk = {
|
|
39959
40080
|
getTitleText: (e, t, n) => {
|
|
39960
40081
|
let r = n?.jobTitle || n?.title || "";
|
|
39961
40082
|
return r ? `Assign - ${r}` : "Assign";
|
|
@@ -39977,8 +40098,8 @@ var ZO = {
|
|
|
39977
40098
|
name: "candidateRate",
|
|
39978
40099
|
label: "Candidate Rate",
|
|
39979
40100
|
type: "candidate-rate",
|
|
39980
|
-
rateCeiling:
|
|
39981
|
-
validator:
|
|
40101
|
+
rateCeiling: fk(e?.selectedRecords?.[0] ?? {}),
|
|
40102
|
+
validator: pk
|
|
39982
40103
|
},
|
|
39983
40104
|
{
|
|
39984
40105
|
name: "priority",
|
|
@@ -39987,7 +40108,7 @@ var ZO = {
|
|
|
39987
40108
|
checkboxLabel: "Mark as High"
|
|
39988
40109
|
}
|
|
39989
40110
|
]
|
|
39990
|
-
},
|
|
40111
|
+
}, hk = {
|
|
39991
40112
|
getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? To() : [],
|
|
39992
40113
|
loadExtraData: async (e) => Eo(e.selectedIds[0]),
|
|
39993
40114
|
submit: async (e, t, { removedIds: n, extraData: r }) => {
|
|
@@ -40000,7 +40121,7 @@ var ZO = {
|
|
|
40000
40121
|
existingRecruiters: r?.recruitersData
|
|
40001
40122
|
});
|
|
40002
40123
|
}
|
|
40003
|
-
},
|
|
40124
|
+
}, gk = {
|
|
40004
40125
|
title: "Add Sticky Notes",
|
|
40005
40126
|
getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
|
|
40006
40127
|
okText: "Save",
|
|
@@ -40032,7 +40153,7 @@ var ZO = {
|
|
|
40032
40153
|
initialValueKey: "editingComments"
|
|
40033
40154
|
}
|
|
40034
40155
|
]
|
|
40035
|
-
},
|
|
40156
|
+
}, _k = {
|
|
40036
40157
|
getMentionOptions: async (e, t) => ho(t),
|
|
40037
40158
|
submit: async (e, t) => {
|
|
40038
40159
|
let n = e.targetDate ? e.targetDate.toISOString() : "";
|
|
@@ -40048,7 +40169,7 @@ var ZO = {
|
|
|
40048
40169
|
notes: e.comments
|
|
40049
40170
|
}), window.dispatchEvent(new Event("sticky-notes:refresh"));
|
|
40050
40171
|
}
|
|
40051
|
-
},
|
|
40172
|
+
}, vk = {
|
|
40052
40173
|
title: "Move to Onboarding",
|
|
40053
40174
|
bodyText: "Are you sure you want to move this candidate to onboarding?",
|
|
40054
40175
|
okText: "Yes",
|
|
@@ -40061,7 +40182,7 @@ var ZO = {
|
|
|
40061
40182
|
type: "priority-checkbox",
|
|
40062
40183
|
checkboxLabel: "Send Onboarding Email"
|
|
40063
40184
|
}]
|
|
40064
|
-
},
|
|
40185
|
+
}, yk = { submit: async (e, t) => {
|
|
40065
40186
|
await Ao({
|
|
40066
40187
|
submissionId: t.selectedRecords?.[0]?.submissionId,
|
|
40067
40188
|
isMail: e.sendOnboardingEmail
|
|
@@ -40069,39 +40190,39 @@ var ZO = {
|
|
|
40069
40190
|
} };
|
|
40070
40191
|
//#endregion
|
|
40071
40192
|
//#region src/components/popups/definitions/approve-rate/config.js
|
|
40072
|
-
function
|
|
40193
|
+
function bk(e) {
|
|
40073
40194
|
return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
|
|
40074
40195
|
}
|
|
40075
|
-
var
|
|
40196
|
+
var xk = {
|
|
40076
40197
|
USD: "$",
|
|
40077
40198
|
INR: "₹",
|
|
40078
40199
|
EUR: "€",
|
|
40079
40200
|
GBP: "£"
|
|
40080
40201
|
};
|
|
40081
|
-
function
|
|
40082
|
-
let r =
|
|
40202
|
+
function Sk(e, t, n) {
|
|
40203
|
+
let r = bk(e?.[t])[n];
|
|
40083
40204
|
if (r != null && r !== "") return r;
|
|
40084
40205
|
let i = e?.[`${t}.${n}`];
|
|
40085
40206
|
return i != null && i !== "" ? i : void 0;
|
|
40086
40207
|
}
|
|
40087
|
-
function
|
|
40088
|
-
let t = e.selectedRecords?.[0] ?? {}, n =
|
|
40208
|
+
function Ck(e) {
|
|
40209
|
+
let t = e.selectedRecords?.[0] ?? {}, n = Sk(t, "candidateRate", "candidateAcceptedRate") ?? Sk(t, "candidateBudget", "candidateBudgetStart");
|
|
40089
40210
|
if (n === void 0 || Number(n) === 0) return null;
|
|
40090
|
-
let r =
|
|
40211
|
+
let r = Sk(t, "candidateRate", "candidateAcceptedCurrency") ?? Sk(t, "candidateBudget", "candidateBudgetCurrency");
|
|
40091
40212
|
return {
|
|
40092
40213
|
amount: n,
|
|
40093
|
-
symbol:
|
|
40094
|
-
unit:
|
|
40214
|
+
symbol: Sk(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? Sk(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? xk[String(r ?? "").toUpperCase()] ?? (r || "$"),
|
|
40215
|
+
unit: Sk(t, "candidateRate", "candidateAcceptedPayUnit") ?? Sk(t, "candidateBudget", "candidateBudgetUnit") ?? ""
|
|
40095
40216
|
};
|
|
40096
40217
|
}
|
|
40097
|
-
var
|
|
40218
|
+
var wk = {
|
|
40098
40219
|
title: "Approve Rate",
|
|
40099
40220
|
okText: "Approve",
|
|
40100
40221
|
width: 520,
|
|
40101
40222
|
className: "medium-modal",
|
|
40102
40223
|
successMessage: "Rate approved",
|
|
40103
40224
|
getBodyText: (e, t, n, r, i) => {
|
|
40104
|
-
let a =
|
|
40225
|
+
let a = Ck(i);
|
|
40105
40226
|
return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
|
|
40106
40227
|
},
|
|
40107
40228
|
fields: [
|
|
@@ -40115,7 +40236,7 @@ var sk = {
|
|
|
40115
40236
|
inlineRow: "proposedRate",
|
|
40116
40237
|
validator: (e, t) => {
|
|
40117
40238
|
if (e == null || e === "") return;
|
|
40118
|
-
let n =
|
|
40239
|
+
let n = Ck(t);
|
|
40119
40240
|
if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
|
|
40120
40241
|
}
|
|
40121
40242
|
},
|
|
@@ -40183,7 +40304,7 @@ var sk = {
|
|
|
40183
40304
|
}]
|
|
40184
40305
|
}
|
|
40185
40306
|
]
|
|
40186
|
-
},
|
|
40307
|
+
}, Tk = { submit: async (e, t) => {
|
|
40187
40308
|
let n = t.selectedIds[0];
|
|
40188
40309
|
if (await jo(n, {
|
|
40189
40310
|
candidateProposedRate: e.candidateProposedRate,
|
|
@@ -40199,7 +40320,7 @@ var sk = {
|
|
|
40199
40320
|
} };
|
|
40200
40321
|
//#endregion
|
|
40201
40322
|
//#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
|
|
40202
|
-
function
|
|
40323
|
+
function Ek(e, t = {}) {
|
|
40203
40324
|
return {
|
|
40204
40325
|
client: t.clientName ?? e.clientName,
|
|
40205
40326
|
role: t.jobTitle ?? e.jobTitle ?? e.designation,
|
|
@@ -40214,7 +40335,7 @@ function lk(e, t = {}) {
|
|
|
40214
40335
|
employerName: t.employerName
|
|
40215
40336
|
};
|
|
40216
40337
|
}
|
|
40217
|
-
function
|
|
40338
|
+
function Dk({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
|
|
40218
40339
|
let a = n?.[0] ?? {}, o = t?.[0] ?? Jy(a), [s, c] = R(null), [l, u] = R(!0);
|
|
40219
40340
|
I(() => {
|
|
40220
40341
|
let e = !1;
|
|
@@ -40271,14 +40392,14 @@ function uk({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
40271
40392
|
type: Oy,
|
|
40272
40393
|
record: s.record,
|
|
40273
40394
|
lookups: s.lookups,
|
|
40274
|
-
identity:
|
|
40395
|
+
identity: Ek(a, s.display),
|
|
40275
40396
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
40276
40397
|
actions: d,
|
|
40277
40398
|
onClose: () => i?.(),
|
|
40278
40399
|
variant: "popup"
|
|
40279
40400
|
});
|
|
40280
40401
|
}
|
|
40281
|
-
|
|
40402
|
+
Dk.propTypes = {
|
|
40282
40403
|
context: Q.object,
|
|
40283
40404
|
selectedIds: Q.array,
|
|
40284
40405
|
selectedRecords: Q.array,
|
|
@@ -40287,15 +40408,15 @@ uk.propTypes = {
|
|
|
40287
40408
|
};
|
|
40288
40409
|
//#endregion
|
|
40289
40410
|
//#region src/components/popups/definitions/manager-approve/config.js
|
|
40290
|
-
var
|
|
40411
|
+
var Ok = {
|
|
40291
40412
|
title: "Manager Approve",
|
|
40292
40413
|
width: 780,
|
|
40293
40414
|
className: "fa-modal manager-approve-modal",
|
|
40294
|
-
component:
|
|
40295
|
-
},
|
|
40415
|
+
component: Dk
|
|
40416
|
+
}, kk = { submit: async () => {} };
|
|
40296
40417
|
//#endregion
|
|
40297
40418
|
//#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
|
|
40298
|
-
function
|
|
40419
|
+
function Ak(e, t = {}) {
|
|
40299
40420
|
return {
|
|
40300
40421
|
client: t.clientName ?? e.clientName,
|
|
40301
40422
|
role: t.jobTitle ?? e.jobTitle ?? e.designation,
|
|
@@ -40310,21 +40431,21 @@ function pk(e, t = {}) {
|
|
|
40310
40431
|
employerName: t.employerName
|
|
40311
40432
|
};
|
|
40312
40433
|
}
|
|
40313
|
-
function
|
|
40434
|
+
function jk(e) {
|
|
40314
40435
|
let t = Array.isArray(e) ? e : [];
|
|
40315
40436
|
for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
|
|
40316
40437
|
return null;
|
|
40317
40438
|
}
|
|
40318
|
-
function
|
|
40439
|
+
function Mk(e) {
|
|
40319
40440
|
return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
|
|
40320
40441
|
}
|
|
40321
|
-
function
|
|
40442
|
+
function Nk({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
40322
40443
|
let r = t?.[0] ?? {}, i = e?.[0] ?? Jy(r), [a, o] = R(null), [s, c] = R(""), [l, u] = R(!0);
|
|
40323
40444
|
I(() => {
|
|
40324
40445
|
let e = !1;
|
|
40325
40446
|
return u(!0), Promise.all([Cb(i, r), xt("submission", i).catch(() => [])]).then(([t, n]) => {
|
|
40326
40447
|
if (e) return;
|
|
40327
|
-
let i =
|
|
40448
|
+
let i = jk(n);
|
|
40328
40449
|
c(Jy(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
|
|
40329
40450
|
let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
|
|
40330
40451
|
o({
|
|
@@ -40333,7 +40454,7 @@ function gk({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
40333
40454
|
...t.record,
|
|
40334
40455
|
submission: {
|
|
40335
40456
|
...t.record.submission,
|
|
40336
|
-
cfoRejectionReason: a ?
|
|
40457
|
+
cfoRejectionReason: a ? Mk(a) : "",
|
|
40337
40458
|
cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
|
|
40338
40459
|
}
|
|
40339
40460
|
}
|
|
@@ -40380,26 +40501,26 @@ function gk({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
40380
40501
|
type: My,
|
|
40381
40502
|
record: a.record,
|
|
40382
40503
|
lookups: a.lookups,
|
|
40383
|
-
identity:
|
|
40504
|
+
identity: Ak(r, a.display),
|
|
40384
40505
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
40385
40506
|
actions: d,
|
|
40386
40507
|
onClose: () => n?.(),
|
|
40387
40508
|
variant: "popup"
|
|
40388
40509
|
});
|
|
40389
40510
|
}
|
|
40390
|
-
|
|
40511
|
+
Nk.propTypes = {
|
|
40391
40512
|
selectedIds: Q.array,
|
|
40392
40513
|
selectedRecords: Q.array,
|
|
40393
40514
|
onClose: Q.func
|
|
40394
40515
|
};
|
|
40395
40516
|
//#endregion
|
|
40396
40517
|
//#region src/components/popups/definitions/manager-reapprove/config.js
|
|
40397
|
-
var
|
|
40518
|
+
var Pk = {
|
|
40398
40519
|
title: "Re-Approve",
|
|
40399
40520
|
width: 780,
|
|
40400
40521
|
className: "fa-modal manager-approve-modal",
|
|
40401
|
-
component:
|
|
40402
|
-
},
|
|
40522
|
+
component: Nk
|
|
40523
|
+
}, Fk = { submit: async () => {} }, Ik = [
|
|
40403
40524
|
{
|
|
40404
40525
|
id: 1,
|
|
40405
40526
|
name: "Re-Submission"
|
|
@@ -40412,7 +40533,7 @@ var _k = {
|
|
|
40412
40533
|
id: 3,
|
|
40413
40534
|
name: "Incomplete candidate details - (Re-Submission)"
|
|
40414
40535
|
}
|
|
40415
|
-
],
|
|
40536
|
+
], Lk = {
|
|
40416
40537
|
title: "Reject",
|
|
40417
40538
|
okText: "Reject",
|
|
40418
40539
|
okButtonDanger: !0,
|
|
@@ -40424,7 +40545,7 @@ var _k = {
|
|
|
40424
40545
|
type: "select",
|
|
40425
40546
|
required: !0,
|
|
40426
40547
|
placeholder: "Select rejection reasons",
|
|
40427
|
-
defaultOptions:
|
|
40548
|
+
defaultOptions: Ik.map((e) => ({
|
|
40428
40549
|
label: e.name,
|
|
40429
40550
|
value: e.id
|
|
40430
40551
|
}))
|
|
@@ -40435,88 +40556,88 @@ var _k = {
|
|
|
40435
40556
|
required: !0,
|
|
40436
40557
|
rows: 4
|
|
40437
40558
|
}]
|
|
40438
|
-
},
|
|
40439
|
-
let n =
|
|
40559
|
+
}, Rk = { submit: async (e, t) => {
|
|
40560
|
+
let n = Ik.find((t) => String(t.id) === String(e.rejectReason));
|
|
40440
40561
|
await Po({
|
|
40441
40562
|
submissionId: t.selectedIds[0],
|
|
40442
40563
|
rejectReasonId: e.rejectReason,
|
|
40443
40564
|
rejectReason: n?.name ?? "",
|
|
40444
40565
|
rejectReasonComments: e.rejectReasonComments
|
|
40445
40566
|
});
|
|
40446
|
-
} },
|
|
40567
|
+
} }, zk = {
|
|
40447
40568
|
delete: fO,
|
|
40448
|
-
"quick-submit":
|
|
40449
|
-
"add-notes":
|
|
40450
|
-
"tag-to-job":
|
|
40451
|
-
"change-status":
|
|
40452
|
-
"remove-from-shortlist":
|
|
40453
|
-
"add-to-groups":
|
|
40454
|
-
"self-assign":
|
|
40455
|
-
"others-assign":
|
|
40456
|
-
"sticky-notes":
|
|
40457
|
-
"move-to-onboarding":
|
|
40458
|
-
"approve-rate":
|
|
40459
|
-
"manager-approve":
|
|
40460
|
-
"manager-reapprove":
|
|
40461
|
-
reject:
|
|
40462
|
-
},
|
|
40569
|
+
"quick-submit": FO,
|
|
40570
|
+
"add-notes": IO,
|
|
40571
|
+
"tag-to-job": HO,
|
|
40572
|
+
"change-status": nk,
|
|
40573
|
+
"remove-from-shortlist": ik,
|
|
40574
|
+
"add-to-groups": ok,
|
|
40575
|
+
"self-assign": uk,
|
|
40576
|
+
"others-assign": mk,
|
|
40577
|
+
"sticky-notes": gk,
|
|
40578
|
+
"move-to-onboarding": vk,
|
|
40579
|
+
"approve-rate": wk,
|
|
40580
|
+
"manager-approve": Ok,
|
|
40581
|
+
"manager-reapprove": Pk,
|
|
40582
|
+
reject: Lk
|
|
40583
|
+
}, Bk = {
|
|
40463
40584
|
delete: pO,
|
|
40464
|
-
"quick-submit":
|
|
40465
|
-
"add-notes":
|
|
40466
|
-
"tag-to-job":
|
|
40467
|
-
"change-status":
|
|
40468
|
-
"remove-from-shortlist":
|
|
40469
|
-
"add-to-groups":
|
|
40470
|
-
"self-assign":
|
|
40471
|
-
"others-assign":
|
|
40472
|
-
"sticky-notes":
|
|
40473
|
-
"move-to-onboarding":
|
|
40474
|
-
"approve-rate":
|
|
40475
|
-
"manager-approve":
|
|
40476
|
-
"manager-reapprove":
|
|
40477
|
-
reject:
|
|
40585
|
+
"quick-submit": PO,
|
|
40586
|
+
"add-notes": zO,
|
|
40587
|
+
"tag-to-job": tk,
|
|
40588
|
+
"change-status": rk,
|
|
40589
|
+
"remove-from-shortlist": ak,
|
|
40590
|
+
"add-to-groups": sk,
|
|
40591
|
+
"self-assign": dk,
|
|
40592
|
+
"others-assign": hk,
|
|
40593
|
+
"sticky-notes": _k,
|
|
40594
|
+
"move-to-onboarding": yk,
|
|
40595
|
+
"approve-rate": Tk,
|
|
40596
|
+
"manager-approve": kk,
|
|
40597
|
+
"manager-reapprove": Fk,
|
|
40598
|
+
reject: Rk
|
|
40478
40599
|
};
|
|
40479
40600
|
//#endregion
|
|
40480
40601
|
//#region src/components/popups/AddBatchCandidatePopup.jsx
|
|
40481
|
-
function
|
|
40602
|
+
function Vk(e) {
|
|
40482
40603
|
let t = e?.data ?? e;
|
|
40483
40604
|
return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
|
|
40484
40605
|
}
|
|
40485
|
-
function
|
|
40606
|
+
function Hk(e, ...t) {
|
|
40486
40607
|
for (let n of t) {
|
|
40487
40608
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
40488
40609
|
if (t != null && t !== "") return t;
|
|
40489
40610
|
}
|
|
40490
40611
|
return "";
|
|
40491
40612
|
}
|
|
40492
|
-
function
|
|
40493
|
-
let t = String(
|
|
40613
|
+
function Uk(e) {
|
|
40614
|
+
let t = String(Hk(e, "isDeleted", "deleted")).toLowerCase(), n = String(Hk(e, "assignmentStatus", "status")).toLowerCase();
|
|
40494
40615
|
return t !== "true" && t !== "1" && ![
|
|
40495
40616
|
"removed",
|
|
40496
40617
|
"inactive",
|
|
40497
40618
|
"deleted"
|
|
40498
40619
|
].includes(n);
|
|
40499
40620
|
}
|
|
40500
|
-
function
|
|
40501
|
-
let t =
|
|
40502
|
-
return t ? String(t) : [
|
|
40621
|
+
function Wk(e) {
|
|
40622
|
+
let t = Hk(e, "candidateName", "candidate_name", "fullName", "name");
|
|
40623
|
+
return t ? String(t) : [Hk(e, "firstName", "first_name"), Hk(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
|
|
40503
40624
|
}
|
|
40504
|
-
function
|
|
40505
|
-
return String(
|
|
40625
|
+
function Gk(e) {
|
|
40626
|
+
return String(Hk(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
|
|
40506
40627
|
}
|
|
40507
|
-
function
|
|
40508
|
-
return String(
|
|
40628
|
+
function Kk(e) {
|
|
40629
|
+
return String(Hk(e, "workforceEngagementId", "engagementId", "_id", "id"));
|
|
40509
40630
|
}
|
|
40510
|
-
function
|
|
40511
|
-
return String(
|
|
40631
|
+
function qk(e) {
|
|
40632
|
+
return String(Hk(e, "batchName", "name", "title", "batch_name"));
|
|
40512
40633
|
}
|
|
40513
|
-
function
|
|
40634
|
+
function Jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
40514
40635
|
let [r, i] = R([]), [a, o] = R([]), [s, c] = R(""), [l, u] = R(!0), [d, f] = R(!1), [p, m] = R(""), [h, _] = R(/* @__PURE__ */ new Map()), v = String(t.selectedIds?.[0] ?? t.selectedRecords?.[0]?._id ?? t.selectedRecords?.[0]?.id ?? t.batchId ?? "");
|
|
40515
40636
|
I(() => {
|
|
40516
40637
|
if (!e) return;
|
|
40517
40638
|
let t = !1;
|
|
40518
40639
|
return Promise.resolve().then(() => (t || u(!0), Promise.all([ot("onboarding", 200, 0), ot("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
|
|
40519
|
-
t || (i(
|
|
40640
|
+
t || (i(Vk(e)), _(new Map(Vk(n).filter(Uk).map((e) => [String(Hk(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
|
|
40520
40641
|
}).catch((e) => {
|
|
40521
40642
|
t || m(e.message || "Unable to load onboarding candidates");
|
|
40522
40643
|
}).finally(() => {
|
|
@@ -40528,9 +40649,9 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40528
40649
|
let y = L(() => {
|
|
40529
40650
|
let e = s.trim().toLowerCase();
|
|
40530
40651
|
return e ? r.filter((t) => [
|
|
40531
|
-
|
|
40532
|
-
|
|
40533
|
-
|
|
40652
|
+
Wk(t),
|
|
40653
|
+
Hk(t, "email", "candidateEmail", "candidate_email"),
|
|
40654
|
+
Hk(t, "status", "onboardingStatus", "onboarding_status")
|
|
40534
40655
|
].some((t) => String(t).toLowerCase().includes(e))) : r;
|
|
40535
40656
|
}, [r, s]);
|
|
40536
40657
|
async function b() {
|
|
@@ -40538,25 +40659,25 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40538
40659
|
m("Select a batch before adding candidates");
|
|
40539
40660
|
return;
|
|
40540
40661
|
}
|
|
40541
|
-
let e = r.filter((e) => a.includes(
|
|
40662
|
+
let e = r.filter((e) => a.includes(Kk(e)));
|
|
40542
40663
|
if (!e.length) return;
|
|
40543
40664
|
let i = e.map((e) => ({
|
|
40544
40665
|
record: e,
|
|
40545
|
-
assignment: h.get(
|
|
40666
|
+
assignment: h.get(Gk(e))
|
|
40546
40667
|
})).filter((e) => e.assignment);
|
|
40547
40668
|
if (i.length) {
|
|
40548
|
-
m(`${i.map(({ record: e }) =>
|
|
40669
|
+
m(`${i.map(({ record: e }) => Wk(e)).join(", ")} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
|
|
40549
40670
|
return;
|
|
40550
40671
|
}
|
|
40551
40672
|
f(!0), m("");
|
|
40552
40673
|
try {
|
|
40553
|
-
let { userId: r } = g(), i =
|
|
40674
|
+
let { userId: r } = g(), i = qk(t.selectedRecords?.[0]) || qk(t);
|
|
40554
40675
|
await Promise.all(e.map((e) => wt("batchCandidates", {
|
|
40555
40676
|
schemaVersion: 1,
|
|
40556
40677
|
batchId: v,
|
|
40557
40678
|
batchName: i,
|
|
40558
|
-
candidateId:
|
|
40559
|
-
workforceEngagementId:
|
|
40679
|
+
candidateId: Gk(e),
|
|
40680
|
+
workforceEngagementId: Kk(e),
|
|
40560
40681
|
source: "ONBOARDING",
|
|
40561
40682
|
assignmentStatus: "ASSIGNED",
|
|
40562
40683
|
assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -40599,22 +40720,22 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40599
40720
|
style: { marginBottom: 12 }
|
|
40600
40721
|
}),
|
|
40601
40722
|
/* @__PURE__ */ X(Tr, {
|
|
40602
|
-
rowKey: (e) =>
|
|
40723
|
+
rowKey: (e) => Kk(e),
|
|
40603
40724
|
columns: [
|
|
40604
40725
|
{
|
|
40605
40726
|
title: "Candidate",
|
|
40606
40727
|
key: "candidate",
|
|
40607
|
-
render: (e, t) =>
|
|
40728
|
+
render: (e, t) => Wk(t)
|
|
40608
40729
|
},
|
|
40609
40730
|
{
|
|
40610
40731
|
title: "Email",
|
|
40611
40732
|
key: "email",
|
|
40612
|
-
render: (e, t) =>
|
|
40733
|
+
render: (e, t) => Hk(t, "email", "candidateEmail", "candidate_email") || "—"
|
|
40613
40734
|
},
|
|
40614
40735
|
{
|
|
40615
40736
|
title: "Onboarding status",
|
|
40616
40737
|
key: "status",
|
|
40617
|
-
render: (e, t) =>
|
|
40738
|
+
render: (e, t) => Hk(t, "status", "onboardingStatus", "onboarding_status") || "—"
|
|
40618
40739
|
}
|
|
40619
40740
|
],
|
|
40620
40741
|
dataSource: y,
|
|
@@ -40628,9 +40749,9 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40628
40749
|
selectedRowKeys: a,
|
|
40629
40750
|
onChange: o,
|
|
40630
40751
|
getCheckboxProps: (e) => {
|
|
40631
|
-
let t = h.get(
|
|
40752
|
+
let t = h.get(Gk(e));
|
|
40632
40753
|
return {
|
|
40633
|
-
disabled: !
|
|
40754
|
+
disabled: !Gk(e) || !Kk(e) || !!t,
|
|
40634
40755
|
title: t ? "Candidate is already added to a batch" : void 0
|
|
40635
40756
|
};
|
|
40636
40757
|
}
|
|
@@ -40642,7 +40763,7 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40642
40763
|
}
|
|
40643
40764
|
//#endregion
|
|
40644
40765
|
//#region src/components/popups/dynamic/DynamicPopupRoute.jsx
|
|
40645
|
-
var
|
|
40766
|
+
var Yk = {
|
|
40646
40767
|
text: "input",
|
|
40647
40768
|
string: "input",
|
|
40648
40769
|
textarea: "textarea",
|
|
@@ -40651,13 +40772,13 @@ var Mk = {
|
|
|
40651
40772
|
multiselect: "multi-select",
|
|
40652
40773
|
lookup: "search-select"
|
|
40653
40774
|
};
|
|
40654
|
-
function
|
|
40775
|
+
function Xk(e) {
|
|
40655
40776
|
if (!e) return null;
|
|
40656
40777
|
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) => ({
|
|
40657
40778
|
...e,
|
|
40658
40779
|
name: e.name ?? e.field,
|
|
40659
40780
|
label: e.label ?? e.field,
|
|
40660
|
-
type:
|
|
40781
|
+
type: Yk[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
|
|
40661
40782
|
required: e.required ?? e.req === 1,
|
|
40662
40783
|
options: (e.options ?? []).map((e) => ({
|
|
40663
40784
|
label: e.label ?? e.name ?? e.value,
|
|
@@ -40669,12 +40790,12 @@ function Nk(e) {
|
|
|
40669
40790
|
fields: t
|
|
40670
40791
|
};
|
|
40671
40792
|
}
|
|
40672
|
-
function
|
|
40793
|
+
function Zk({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
40673
40794
|
let n = L(() => ({
|
|
40674
|
-
...
|
|
40795
|
+
...Bk,
|
|
40675
40796
|
...e
|
|
40676
40797
|
}), [e]), r = L(() => {
|
|
40677
|
-
let e = { ...
|
|
40798
|
+
let e = { ...zk };
|
|
40678
40799
|
return Object.entries(t).forEach(([t, n]) => {
|
|
40679
40800
|
e[t] = {
|
|
40680
40801
|
...e[t] ?? {},
|
|
@@ -40692,7 +40813,7 @@ function Pk({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
40692
40813
|
return pe(c.moduleName, "popup", i).then((n) => {
|
|
40693
40814
|
e || u({
|
|
40694
40815
|
key: t,
|
|
40695
|
-
config:
|
|
40816
|
+
config: Xk(n[0])
|
|
40696
40817
|
});
|
|
40697
40818
|
}).catch(() => {
|
|
40698
40819
|
e || u({
|
|
@@ -40763,7 +40884,7 @@ function Pk({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
40763
40884
|
}
|
|
40764
40885
|
s(-1);
|
|
40765
40886
|
};
|
|
40766
|
-
return i === "add-batch-candidate" ? /* @__PURE__ */ X(
|
|
40887
|
+
return i === "add-batch-candidate" ? /* @__PURE__ */ X(Jk, {
|
|
40767
40888
|
open: !0,
|
|
40768
40889
|
context: f,
|
|
40769
40890
|
onClose: m
|
|
@@ -40780,7 +40901,7 @@ function Pk({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
40780
40901
|
}
|
|
40781
40902
|
//#endregion
|
|
40782
40903
|
//#region src/components/popups/definitions/vendor-share/config.js
|
|
40783
|
-
var
|
|
40904
|
+
var Qk = {
|
|
40784
40905
|
title: "Vendor Share",
|
|
40785
40906
|
maxVendorSelect: 1e3,
|
|
40786
40907
|
defaultTab: "myVendor",
|
|
@@ -40814,7 +40935,7 @@ var Fk = {
|
|
|
40814
40935
|
key: "updatedOn"
|
|
40815
40936
|
}
|
|
40816
40937
|
]
|
|
40817
|
-
},
|
|
40938
|
+
}, $k = {
|
|
40818
40939
|
getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => uc({
|
|
40819
40940
|
jobId: e,
|
|
40820
40941
|
limit: t,
|
|
@@ -40831,11 +40952,11 @@ var Fk = {
|
|
|
40831
40952
|
subject: i,
|
|
40832
40953
|
contents: a
|
|
40833
40954
|
})
|
|
40834
|
-
},
|
|
40955
|
+
}, eA = Qk.vendorColumns.map((e) => ({
|
|
40835
40956
|
...e,
|
|
40836
40957
|
render: (e) => e || "-"
|
|
40837
40958
|
}));
|
|
40838
|
-
function
|
|
40959
|
+
function tA() {
|
|
40839
40960
|
let e = Pa(), t = Na(), { 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] = R({
|
|
40840
40961
|
to: i.join(", "),
|
|
40841
40962
|
cc: "",
|
|
@@ -40844,13 +40965,13 @@ function Rk() {
|
|
|
40844
40965
|
contents: "",
|
|
40845
40966
|
showCc: !1,
|
|
40846
40967
|
showBcc: !1
|
|
40847
|
-
}), [f, p] = R(!l), [m, h] = R(
|
|
40968
|
+
}), [f, p] = R(!l), [m, h] = R(Qk.defaultTab), [g, _] = R(""), [v, y] = R([]), [b, x] = R(0), [S, C] = R(0), [w, T] = R(0), [E, D] = R(1), [O, k] = R(Qk.defaultPageSize), [A, j] = R(!1), [M, ee] = R([]);
|
|
40848
40969
|
I(() => {
|
|
40849
40970
|
if (!l) return;
|
|
40850
40971
|
let e = !1;
|
|
40851
40972
|
j(!0);
|
|
40852
40973
|
let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
|
|
40853
|
-
return
|
|
40974
|
+
return $k.getVendorList({
|
|
40854
40975
|
jobId: l,
|
|
40855
40976
|
limit: t,
|
|
40856
40977
|
offset: n,
|
|
@@ -40873,7 +40994,7 @@ function Rk() {
|
|
|
40873
40994
|
O,
|
|
40874
40995
|
g
|
|
40875
40996
|
]), I(() => {
|
|
40876
|
-
l &&
|
|
40997
|
+
l && $k.getMailDetails(l).then((e) => d((t) => ({
|
|
40877
40998
|
...t,
|
|
40878
40999
|
subject: e.subject || t.subject,
|
|
40879
41000
|
contents: e.contents || t.contents,
|
|
@@ -40898,7 +41019,7 @@ function Rk() {
|
|
|
40898
41019
|
e(-1);
|
|
40899
41020
|
}
|
|
40900
41021
|
function oe() {
|
|
40901
|
-
re &&
|
|
41022
|
+
re && $k.submit({
|
|
40902
41023
|
jobId: l,
|
|
40903
41024
|
toMail: DE(te.to),
|
|
40904
41025
|
ccMail: DE(te.cc),
|
|
@@ -40979,7 +41100,7 @@ function Rk() {
|
|
|
40979
41100
|
]
|
|
40980
41101
|
}), /* @__PURE__ */ X("div", {
|
|
40981
41102
|
className: "vendor-share__vendor-tabs",
|
|
40982
|
-
children:
|
|
41103
|
+
children: Qk.vendorTabs.map((e) => /* @__PURE__ */ Z("span", {
|
|
40983
41104
|
className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
|
|
40984
41105
|
onClick: () => {
|
|
40985
41106
|
h(e.key), D(1), ee([]);
|
|
@@ -40997,7 +41118,7 @@ function Rk() {
|
|
|
40997
41118
|
className: "vendor-share__vendor-table-wrapper",
|
|
40998
41119
|
children: /* @__PURE__ */ X(Tr, {
|
|
40999
41120
|
rowKey: (e) => e.vendorId,
|
|
41000
|
-
columns:
|
|
41121
|
+
columns: eA,
|
|
41001
41122
|
dataSource: se,
|
|
41002
41123
|
loading: A,
|
|
41003
41124
|
pagination: !1,
|
|
@@ -41005,7 +41126,7 @@ function Rk() {
|
|
|
41005
41126
|
rowSelection: {
|
|
41006
41127
|
selectedRowKeys: M,
|
|
41007
41128
|
onChange: (e) => {
|
|
41008
|
-
e.length >
|
|
41129
|
+
e.length > Qk.maxVendorSelect || ee(e);
|
|
41009
41130
|
}
|
|
41010
41131
|
},
|
|
41011
41132
|
scroll: { y: "calc(100vh - 340px)" }
|
|
@@ -41039,7 +41160,7 @@ function Rk() {
|
|
|
41039
41160
|
children: [
|
|
41040
41161
|
M.length,
|
|
41041
41162
|
" / ",
|
|
41042
|
-
|
|
41163
|
+
Qk.maxVendorSelect,
|
|
41043
41164
|
" Vendors selected"
|
|
41044
41165
|
]
|
|
41045
41166
|
}) : null
|
|
@@ -41050,7 +41171,7 @@ function Rk() {
|
|
|
41050
41171
|
}
|
|
41051
41172
|
//#endregion
|
|
41052
41173
|
//#region src/components/form/validation.js
|
|
41053
|
-
var
|
|
41174
|
+
var nA = {
|
|
41054
41175
|
EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
|
|
41055
41176
|
PHONE: /^[0-9]{10}$/,
|
|
41056
41177
|
PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
|
|
@@ -41067,7 +41188,7 @@ var zk = {
|
|
|
41067
41188
|
FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
|
|
41068
41189
|
NO_SPACES: /^\S+$/,
|
|
41069
41190
|
STARTS_WITH_CAPITAL: /^[A-Z].*$/
|
|
41070
|
-
},
|
|
41191
|
+
}, rA = {
|
|
41071
41192
|
SINGLE_FILE_COUNT: 1,
|
|
41072
41193
|
MULTI_FILE_COUNT: 5,
|
|
41073
41194
|
MAX_FILE_SIZE: 2,
|
|
@@ -41076,7 +41197,7 @@ var zk = {
|
|
|
41076
41197
|
"image/png",
|
|
41077
41198
|
"application/pdf"
|
|
41078
41199
|
]
|
|
41079
|
-
},
|
|
41200
|
+
}, iA = {
|
|
41080
41201
|
REQUIRED: (e) => "Mandatory Field",
|
|
41081
41202
|
INVALID_EMAIL: "Please enter a valid email address.",
|
|
41082
41203
|
INVALID_PHONE: "Phone number must contain exactly 10 digits.",
|
|
@@ -41096,16 +41217,16 @@ var zk = {
|
|
|
41096
41217
|
NO_SPACES_ALLOWED: "Spaces are not allowed.",
|
|
41097
41218
|
MUST_START_WITH_CAPITAL: "First letter must be capital.",
|
|
41098
41219
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
41099
|
-
INVALID_FILE_SIZE: `File upload must be ${
|
|
41220
|
+
INVALID_FILE_SIZE: `File upload must be ${rA.MAX_FILE_SIZE} MB below.`,
|
|
41100
41221
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
41101
41222
|
SINGLE_FILE_ONLY: "Only one file can be uploaded."
|
|
41102
|
-
},
|
|
41223
|
+
}, aA = {
|
|
41103
41224
|
FIRST_NAME_MIN: 3,
|
|
41104
41225
|
FIRST_NAME_MAX: 30
|
|
41105
|
-
},
|
|
41226
|
+
}, oA = {
|
|
41106
41227
|
REMARKS_MIN: 10,
|
|
41107
41228
|
REMARKS_MAX: 250
|
|
41108
|
-
},
|
|
41229
|
+
}, sA = {
|
|
41109
41230
|
removeSpaces: (e = "") => e.replace(/\s/g, ""),
|
|
41110
41231
|
capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
|
|
41111
41232
|
capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
@@ -41117,132 +41238,132 @@ var zk = {
|
|
|
41117
41238
|
let t = e.replace(/\D/g, "");
|
|
41118
41239
|
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)}`;
|
|
41119
41240
|
}
|
|
41120
|
-
},
|
|
41241
|
+
}, cA = {
|
|
41121
41242
|
required: (e = "Field") => ({
|
|
41122
41243
|
required: !0,
|
|
41123
|
-
message:
|
|
41244
|
+
message: iA.REQUIRED(e)
|
|
41124
41245
|
}),
|
|
41125
41246
|
email: () => ({
|
|
41126
|
-
pattern:
|
|
41127
|
-
message:
|
|
41247
|
+
pattern: nA.EMAIL,
|
|
41248
|
+
message: iA.INVALID_EMAIL
|
|
41128
41249
|
}),
|
|
41129
41250
|
phone: () => ({
|
|
41130
|
-
pattern:
|
|
41131
|
-
message:
|
|
41251
|
+
pattern: nA.PHONE,
|
|
41252
|
+
message: iA.INVALID_PHONE
|
|
41132
41253
|
}),
|
|
41133
41254
|
password: () => ({
|
|
41134
|
-
pattern:
|
|
41135
|
-
message:
|
|
41255
|
+
pattern: nA.PASSWORD,
|
|
41256
|
+
message: iA.INVALID_PASSWORD
|
|
41136
41257
|
}),
|
|
41137
41258
|
alphabets: () => ({
|
|
41138
|
-
pattern:
|
|
41139
|
-
message:
|
|
41259
|
+
pattern: nA.ALPHABETS,
|
|
41260
|
+
message: iA.INVALID_ALPHABETS
|
|
41140
41261
|
}),
|
|
41141
41262
|
alphanumeric: () => ({
|
|
41142
|
-
pattern:
|
|
41143
|
-
message:
|
|
41263
|
+
pattern: nA.ALPHANUMERIC,
|
|
41264
|
+
message: iA.INVALID_ALPHANUMERIC
|
|
41144
41265
|
}),
|
|
41145
41266
|
number: () => ({
|
|
41146
|
-
pattern:
|
|
41147
|
-
message:
|
|
41267
|
+
pattern: nA.NUMBER,
|
|
41268
|
+
message: iA.INVALID_NUMBER
|
|
41148
41269
|
}),
|
|
41149
41270
|
url: () => ({
|
|
41150
|
-
pattern:
|
|
41151
|
-
message:
|
|
41271
|
+
pattern: nA.URL,
|
|
41272
|
+
message: iA.INVALID_URL
|
|
41152
41273
|
}),
|
|
41153
41274
|
candidateId: (e = "ID") => ({
|
|
41154
|
-
pattern:
|
|
41155
|
-
message:
|
|
41275
|
+
pattern: nA.CANDIDATE_ID,
|
|
41276
|
+
message: iA.INVALID_CANDIDATE_ID(e)
|
|
41156
41277
|
}),
|
|
41157
41278
|
remarks: () => ({
|
|
41158
|
-
pattern:
|
|
41159
|
-
message:
|
|
41160
|
-
REMARKS_MIN: `Remarks must be at least ${
|
|
41161
|
-
REMARKS_MAX: `Remarks must not exceed ${
|
|
41279
|
+
pattern: nA.REMARKS,
|
|
41280
|
+
message: iA.INVALID_REMARKS,
|
|
41281
|
+
REMARKS_MIN: `Remarks must be at least ${oA.REMARKS_MIN} characters.`,
|
|
41282
|
+
REMARKS_MAX: `Remarks must not exceed ${oA.REMARKS_MAX} characters.`
|
|
41162
41283
|
}),
|
|
41163
41284
|
designation: () => ({
|
|
41164
|
-
pattern:
|
|
41165
|
-
message:
|
|
41285
|
+
pattern: nA.DESIGNATION,
|
|
41286
|
+
message: iA.INVALID_DESIGNATION
|
|
41166
41287
|
}),
|
|
41167
41288
|
dob: (e = !0) => ({ validator: (t, n) => {
|
|
41168
41289
|
if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
|
|
41169
|
-
if (!
|
|
41290
|
+
if (!nA.DOB.test(n)) return Promise.reject(Error(iA.INVALID_DOB));
|
|
41170
41291
|
let r = La(n, "MM/DD/YYYY", !0);
|
|
41171
|
-
if (!r.isValid()) return Promise.reject(Error(
|
|
41292
|
+
if (!r.isValid()) return Promise.reject(Error(iA.INVALID_DOB));
|
|
41172
41293
|
let i = La().endOf("day");
|
|
41173
41294
|
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();
|
|
41174
41295
|
} }),
|
|
41175
41296
|
linkedin: () => ({
|
|
41176
|
-
pattern:
|
|
41177
|
-
message:
|
|
41297
|
+
pattern: nA.LINKEDIN,
|
|
41298
|
+
message: iA.INVALID_LINKEDIN
|
|
41178
41299
|
}),
|
|
41179
41300
|
companyName: () => ({
|
|
41180
|
-
pattern:
|
|
41181
|
-
message:
|
|
41301
|
+
pattern: nA.COMPANY_NAME,
|
|
41302
|
+
message: iA.INVALID_COMPANY_NAME
|
|
41182
41303
|
}),
|
|
41183
41304
|
firstName: () => ({
|
|
41184
|
-
pattern:
|
|
41185
|
-
message:
|
|
41186
|
-
FIRST_NAME_MIN: `First Name must be at least ${
|
|
41187
|
-
FIRST_NAME_MAX: `First Name must not exceed ${
|
|
41305
|
+
pattern: nA.FIRST_NAME,
|
|
41306
|
+
message: iA.INVALID_FIRST_NAME,
|
|
41307
|
+
FIRST_NAME_MIN: `First Name must be at least ${aA.FIRST_NAME_MIN} characters.`,
|
|
41308
|
+
FIRST_NAME_MAX: `First Name must not exceed ${aA.FIRST_NAME_MAX} characters.`
|
|
41188
41309
|
}),
|
|
41189
41310
|
firstNameMinLength: () => ({
|
|
41190
|
-
min:
|
|
41191
|
-
message:
|
|
41311
|
+
min: aA.FIRST_NAME_MIN,
|
|
41312
|
+
message: iA.FIRST_NAME_MIN
|
|
41192
41313
|
}),
|
|
41193
41314
|
firstNameMaxLength: () => ({
|
|
41194
|
-
max:
|
|
41195
|
-
message:
|
|
41315
|
+
max: aA.FIRST_NAME_MAX,
|
|
41316
|
+
message: iA.FIRST_NAME_MAX
|
|
41196
41317
|
}),
|
|
41197
41318
|
remarksMinLength: () => ({
|
|
41198
|
-
min:
|
|
41199
|
-
message:
|
|
41319
|
+
min: oA.REMARKS_MIN,
|
|
41320
|
+
message: iA.REMARKS_MIN
|
|
41200
41321
|
}),
|
|
41201
41322
|
remarksMaxLength: () => ({
|
|
41202
|
-
max:
|
|
41203
|
-
message:
|
|
41323
|
+
max: oA.REMARKS_MAX,
|
|
41324
|
+
message: iA.REMARKS_MAX
|
|
41204
41325
|
}),
|
|
41205
41326
|
fullName: () => ({
|
|
41206
|
-
pattern:
|
|
41207
|
-
message:
|
|
41327
|
+
pattern: nA.FULL_NAME,
|
|
41328
|
+
message: iA.INVALID_FULL_NAME
|
|
41208
41329
|
}),
|
|
41209
41330
|
noSpaces: () => ({
|
|
41210
|
-
pattern:
|
|
41211
|
-
message:
|
|
41331
|
+
pattern: nA.NO_SPACES,
|
|
41332
|
+
message: iA.NO_SPACES_ALLOWED
|
|
41212
41333
|
}),
|
|
41213
41334
|
startsWithCapital: () => ({
|
|
41214
|
-
pattern:
|
|
41215
|
-
message:
|
|
41335
|
+
pattern: nA.STARTS_WITH_CAPITAL,
|
|
41336
|
+
message: iA.MUST_START_WITH_CAPITAL
|
|
41216
41337
|
}),
|
|
41217
41338
|
fileUpload: () => ({ validator: (e, t) => {
|
|
41218
41339
|
if (!t || t.length === 0) return Promise.resolve();
|
|
41219
41340
|
for (let e of t) {
|
|
41220
41341
|
let t = e.originFileObj || e;
|
|
41221
|
-
if (!(t.size / 1024 / 1024 <=
|
|
41222
|
-
if (!
|
|
41342
|
+
if (!(t.size / 1024 / 1024 <= rA.MAX_FILE_SIZE)) return J.error(iA.INVALID_FILE_SIZE), Promise.reject(Error(iA.INVALID_FILE_SIZE));
|
|
41343
|
+
if (!rA.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(iA.INVALID_FILE_TYPE));
|
|
41223
41344
|
}
|
|
41224
41345
|
return Promise.resolve();
|
|
41225
41346
|
} }),
|
|
41226
41347
|
singleFileUpload: () => ({ validator: (e, t) => {
|
|
41227
41348
|
if (!t || t.length === 0) return Promise.resolve();
|
|
41228
|
-
if (t.length >
|
|
41349
|
+
if (t.length > rA.SINGLE_FILE_COUNT) return Promise.reject(Error(iA.SINGLE_FILE_ONLY));
|
|
41229
41350
|
let n = t[0];
|
|
41230
|
-
return n.size / 1024 / 1024 <
|
|
41351
|
+
return n.size / 1024 / 1024 < rA.MAX_FILE_SIZE ? rA.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(iA.INVALID_FILE_TYPE)) : Promise.reject(Error(iA.INVALID_FILE_SIZE));
|
|
41231
41352
|
} }),
|
|
41232
41353
|
multiFileUpload: () => ({ validator: (e, t) => {
|
|
41233
41354
|
if (!t || t.length === 0) return Promise.resolve();
|
|
41234
|
-
if (t.length >
|
|
41355
|
+
if (t.length > rA.MULTI_FILE_COUNT) return Promise.reject(Error(iA.INVALID_FILE_COUNT));
|
|
41235
41356
|
for (let e of t) {
|
|
41236
|
-
if (!(e.size / 1024 / 1024 <
|
|
41237
|
-
if (!
|
|
41357
|
+
if (!(e.size / 1024 / 1024 < rA.MAX_FILE_SIZE)) return Promise.reject(Error(iA.INVALID_FILE_SIZE));
|
|
41358
|
+
if (!rA.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(iA.INVALID_FILE_TYPE));
|
|
41238
41359
|
}
|
|
41239
41360
|
return Promise.resolve();
|
|
41240
41361
|
} })
|
|
41241
|
-
},
|
|
41362
|
+
}, lA = { beforeUpload: (e) => [
|
|
41242
41363
|
"image/jpeg",
|
|
41243
41364
|
"image/png",
|
|
41244
41365
|
"application/pdf"
|
|
41245
|
-
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (J.error("File upload must be 2 MB below."), Ar.LIST_IGNORE) : (J.error("Only JPG, PNG and PDF files are allowed."), Ar.LIST_IGNORE) },
|
|
41366
|
+
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (J.error("File upload must be 2 MB below."), Ar.LIST_IGNORE) : (J.error("Only JPG, PNG and PDF files are allowed."), Ar.LIST_IGNORE) }, uA = () => {
|
|
41246
41367
|
let [e] = V.useForm();
|
|
41247
41368
|
return /* @__PURE__ */ X("div", {
|
|
41248
41369
|
style: { padding: 24 },
|
|
@@ -41262,7 +41383,7 @@ var zk = {
|
|
|
41262
41383
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41263
41384
|
label: "Email",
|
|
41264
41385
|
name: "email",
|
|
41265
|
-
rules: [
|
|
41386
|
+
rules: [cA.required("Email"), cA.email()],
|
|
41266
41387
|
children: /* @__PURE__ */ X(H, {})
|
|
41267
41388
|
})
|
|
41268
41389
|
}),
|
|
@@ -41271,12 +41392,12 @@ var zk = {
|
|
|
41271
41392
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41272
41393
|
label: "Phone Number",
|
|
41273
41394
|
name: "phone",
|
|
41274
|
-
rules: [
|
|
41395
|
+
rules: [cA.required("Phone Number"), cA.phone()],
|
|
41275
41396
|
validateTrigger: ["onBlur", "onChange"],
|
|
41276
41397
|
children: /* @__PURE__ */ X(H, {
|
|
41277
41398
|
maxLength: 10,
|
|
41278
41399
|
onChange: (t) => {
|
|
41279
|
-
e.setFieldsValue({ phone:
|
|
41400
|
+
e.setFieldsValue({ phone: sA.phoneFormatter(t.target.value) });
|
|
41280
41401
|
}
|
|
41281
41402
|
})
|
|
41282
41403
|
})
|
|
@@ -41286,7 +41407,7 @@ var zk = {
|
|
|
41286
41407
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41287
41408
|
label: "Password",
|
|
41288
41409
|
name: "password",
|
|
41289
|
-
rules: [
|
|
41410
|
+
rules: [cA.required("Password"), cA.password()],
|
|
41290
41411
|
children: /* @__PURE__ */ X(H.Password, {})
|
|
41291
41412
|
})
|
|
41292
41413
|
}),
|
|
@@ -41296,13 +41417,13 @@ var zk = {
|
|
|
41296
41417
|
label: "Full Name",
|
|
41297
41418
|
name: "fullName",
|
|
41298
41419
|
rules: [
|
|
41299
|
-
|
|
41300
|
-
|
|
41301
|
-
|
|
41302
|
-
|
|
41420
|
+
cA.required("Full Name"),
|
|
41421
|
+
cA.alphabets(),
|
|
41422
|
+
cA.firstNameMinLength(),
|
|
41423
|
+
cA.firstNameMaxLength()
|
|
41303
41424
|
],
|
|
41304
41425
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41305
|
-
e.setFieldsValue({ fullName:
|
|
41426
|
+
e.setFieldsValue({ fullName: sA.firstNameFormatter(t.target.value) });
|
|
41306
41427
|
} })
|
|
41307
41428
|
})
|
|
41308
41429
|
}),
|
|
@@ -41311,9 +41432,9 @@ var zk = {
|
|
|
41311
41432
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41312
41433
|
label: "Username",
|
|
41313
41434
|
name: "username",
|
|
41314
|
-
rules: [
|
|
41435
|
+
rules: [cA.required("Username"), cA.alphanumeric()],
|
|
41315
41436
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41316
|
-
e.setFieldsValue({ username:
|
|
41437
|
+
e.setFieldsValue({ username: sA.removeExtraSpaces(t.target.value) });
|
|
41317
41438
|
} })
|
|
41318
41439
|
})
|
|
41319
41440
|
}),
|
|
@@ -41322,9 +41443,9 @@ var zk = {
|
|
|
41322
41443
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41323
41444
|
label: "Website URL",
|
|
41324
41445
|
name: "website",
|
|
41325
|
-
rules: [
|
|
41446
|
+
rules: [cA.required("Website URL"), cA.url()],
|
|
41326
41447
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41327
|
-
e.setFieldsValue({ website:
|
|
41448
|
+
e.setFieldsValue({ website: sA.removeExtraSpaces(t.target.value) });
|
|
41328
41449
|
} })
|
|
41329
41450
|
})
|
|
41330
41451
|
}),
|
|
@@ -41333,9 +41454,9 @@ var zk = {
|
|
|
41333
41454
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41334
41455
|
label: "MSP Req ID",
|
|
41335
41456
|
name: "mspreqID",
|
|
41336
|
-
rules: [
|
|
41457
|
+
rules: [cA.required("MSP Req ID"), cA.candidateId("MSP Req ID")],
|
|
41337
41458
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41338
|
-
e.setFieldsValue({ mspreqID:
|
|
41459
|
+
e.setFieldsValue({ mspreqID: sA.removeExtraSpaces(t.target.value) });
|
|
41339
41460
|
} })
|
|
41340
41461
|
})
|
|
41341
41462
|
}),
|
|
@@ -41344,9 +41465,9 @@ var zk = {
|
|
|
41344
41465
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41345
41466
|
label: "Candidate ID",
|
|
41346
41467
|
name: "candidateId",
|
|
41347
|
-
rules: [
|
|
41468
|
+
rules: [cA.required("Candidate ID"), cA.candidateId("Candidate ID")],
|
|
41348
41469
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41349
|
-
e.setFieldsValue({ candidateId:
|
|
41470
|
+
e.setFieldsValue({ candidateId: sA.removeExtraSpaces(t.target.value) });
|
|
41350
41471
|
} })
|
|
41351
41472
|
})
|
|
41352
41473
|
}),
|
|
@@ -41356,10 +41477,10 @@ var zk = {
|
|
|
41356
41477
|
label: "Remarks",
|
|
41357
41478
|
name: "remarks",
|
|
41358
41479
|
rules: [
|
|
41359
|
-
|
|
41360
|
-
|
|
41361
|
-
|
|
41362
|
-
|
|
41480
|
+
cA.required("Remarks"),
|
|
41481
|
+
cA.remarks(),
|
|
41482
|
+
cA.remarksMinLength(),
|
|
41483
|
+
cA.remarksMaxLength()
|
|
41363
41484
|
],
|
|
41364
41485
|
children: /* @__PURE__ */ X(H.TextArea, { rows: 4 })
|
|
41365
41486
|
})
|
|
@@ -41369,7 +41490,7 @@ var zk = {
|
|
|
41369
41490
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41370
41491
|
label: "Designation",
|
|
41371
41492
|
name: "designation",
|
|
41372
|
-
rules: [
|
|
41493
|
+
rules: [cA.required("Designation"), cA.designation()],
|
|
41373
41494
|
children: /* @__PURE__ */ X(H, {})
|
|
41374
41495
|
})
|
|
41375
41496
|
}),
|
|
@@ -41378,12 +41499,12 @@ var zk = {
|
|
|
41378
41499
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41379
41500
|
label: "Date of Birth",
|
|
41380
41501
|
name: "dob",
|
|
41381
|
-
rules: [
|
|
41502
|
+
rules: [cA.dob()],
|
|
41382
41503
|
children: /* @__PURE__ */ X(H, {
|
|
41383
41504
|
placeholder: "MM/DD/YYYY",
|
|
41384
41505
|
maxLength: 10,
|
|
41385
41506
|
onChange: (t) => {
|
|
41386
|
-
e.setFieldsValue({ dob:
|
|
41507
|
+
e.setFieldsValue({ dob: sA.dobFormatter(t.target.value) });
|
|
41387
41508
|
}
|
|
41388
41509
|
})
|
|
41389
41510
|
})
|
|
@@ -41393,7 +41514,7 @@ var zk = {
|
|
|
41393
41514
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41394
41515
|
label: "Company Name",
|
|
41395
41516
|
name: "companyName",
|
|
41396
|
-
rules: [
|
|
41517
|
+
rules: [cA.required("Company Name"), cA.companyName()],
|
|
41397
41518
|
children: /* @__PURE__ */ X(H, {})
|
|
41398
41519
|
})
|
|
41399
41520
|
}),
|
|
@@ -41482,7 +41603,7 @@ var zk = {
|
|
|
41482
41603
|
label: "Resume new",
|
|
41483
41604
|
name: "resume",
|
|
41484
41605
|
children: /* @__PURE__ */ X(Ar, {
|
|
41485
|
-
beforeUpload:
|
|
41606
|
+
beforeUpload: lA.beforeUpload,
|
|
41486
41607
|
maxCount: 1,
|
|
41487
41608
|
children: /* @__PURE__ */ X(z, { children: "Upload Resume" })
|
|
41488
41609
|
})
|
|
@@ -41495,10 +41616,10 @@ var zk = {
|
|
|
41495
41616
|
name: "documents",
|
|
41496
41617
|
valuePropName: "fileList",
|
|
41497
41618
|
getValueFromEvent: (e) => e?.fileList,
|
|
41498
|
-
rules: [
|
|
41619
|
+
rules: [cA.multiFileUpload()],
|
|
41499
41620
|
children: /* @__PURE__ */ X(Ar, {
|
|
41500
41621
|
multiple: !0,
|
|
41501
|
-
beforeUpload:
|
|
41622
|
+
beforeUpload: lA.beforeUpload,
|
|
41502
41623
|
children: /* @__PURE__ */ X(z, { children: "Upload Documents" })
|
|
41503
41624
|
})
|
|
41504
41625
|
})
|
|
@@ -41510,9 +41631,9 @@ var zk = {
|
|
|
41510
41631
|
name: "file",
|
|
41511
41632
|
valuePropName: "fileList",
|
|
41512
41633
|
getValueFromEvent: (e) => e?.fileList,
|
|
41513
|
-
rules: [
|
|
41634
|
+
rules: [cA.fileUpload()],
|
|
41514
41635
|
children: /* @__PURE__ */ X(Ar, {
|
|
41515
|
-
beforeUpload:
|
|
41636
|
+
beforeUpload: lA.beforeUpload,
|
|
41516
41637
|
maxCount: 1,
|
|
41517
41638
|
children: /* @__PURE__ */ X(z, { children: "Upload" })
|
|
41518
41639
|
})
|
|
@@ -41572,12 +41693,12 @@ var zk = {
|
|
|
41572
41693
|
};
|
|
41573
41694
|
//#endregion
|
|
41574
41695
|
//#region src/pages/admin/AdminPageWithShell.jsx
|
|
41575
|
-
function
|
|
41696
|
+
function dA(e) {
|
|
41576
41697
|
return /* @__PURE__ */ X(Dx, { children: /* @__PURE__ */ X(SE, { ...e }) });
|
|
41577
41698
|
}
|
|
41578
41699
|
//#endregion
|
|
41579
41700
|
//#region src/components/cards/StatsCards.jsx
|
|
41580
|
-
var { Text:
|
|
41701
|
+
var { Text: fA } = kr, pA = [
|
|
41581
41702
|
{
|
|
41582
41703
|
label: "Total Jobs",
|
|
41583
41704
|
value: 1697,
|
|
@@ -41593,13 +41714,13 @@ var { Text: Yk } = kr, Xk = [
|
|
|
41593
41714
|
value: 600,
|
|
41594
41715
|
icon: "user"
|
|
41595
41716
|
}
|
|
41596
|
-
],
|
|
41717
|
+
], mA = {
|
|
41597
41718
|
fileText: /* @__PURE__ */ X(wi, {}),
|
|
41598
41719
|
checkCircle: /* @__PURE__ */ X(qr, {}),
|
|
41599
41720
|
user: /* @__PURE__ */ X(wa, {}),
|
|
41600
41721
|
filter: /* @__PURE__ */ X(Ei, {})
|
|
41601
41722
|
};
|
|
41602
|
-
function
|
|
41723
|
+
function hA({ stats: e = pA }) {
|
|
41603
41724
|
return /* @__PURE__ */ X(tr, { children: /* @__PURE__ */ X(xr, {
|
|
41604
41725
|
gutter: [12, 12],
|
|
41605
41726
|
children: e.map((e) => /* @__PURE__ */ X(B, {
|
|
@@ -41612,7 +41733,7 @@ function Qk({ stats: e = Xk }) {
|
|
|
41612
41733
|
className: "stats-inner-card",
|
|
41613
41734
|
children: [/* @__PURE__ */ Z(W, {
|
|
41614
41735
|
align: "center",
|
|
41615
|
-
children: [
|
|
41736
|
+
children: [mA[e.icon] ?? mA.fileText, /* @__PURE__ */ X(fA, { children: e.label })]
|
|
41616
41737
|
}), /* @__PURE__ */ X(Cr, { value: e.value })]
|
|
41617
41738
|
})
|
|
41618
41739
|
}, e.label))
|
|
@@ -41620,21 +41741,21 @@ function Qk({ stats: e = Xk }) {
|
|
|
41620
41741
|
}
|
|
41621
41742
|
//#endregion
|
|
41622
41743
|
//#region src/pages/Modules/Admin/UsersSection.jsx
|
|
41623
|
-
var { Text:
|
|
41624
|
-
function
|
|
41744
|
+
var { Text: gA } = kr;
|
|
41745
|
+
function _A(e) {
|
|
41625
41746
|
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 ?? "?"}`;
|
|
41626
41747
|
}
|
|
41627
|
-
function
|
|
41748
|
+
function vA(e) {
|
|
41628
41749
|
return {
|
|
41629
41750
|
...e,
|
|
41630
41751
|
key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
|
|
41631
|
-
_name:
|
|
41752
|
+
_name: _A(e),
|
|
41632
41753
|
_email: e.email ?? e.EMAIL ?? e.user_email ?? "",
|
|
41633
41754
|
_role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
|
|
41634
41755
|
_rawRef: e
|
|
41635
41756
|
};
|
|
41636
41757
|
}
|
|
41637
|
-
function
|
|
41758
|
+
function yA() {
|
|
41638
41759
|
let [e, t] = R([]), [n, r] = R(0), [i, a] = R(!1), [o, s] = R(1), [c, l] = R(10), [u, d] = R(""), f = qn(async ({ offset: e, limit: n, searchQuery: i } = {}) => {
|
|
41639
41760
|
a(!0);
|
|
41640
41761
|
try {
|
|
@@ -41642,7 +41763,7 @@ function nA() {
|
|
|
41642
41763
|
offset: e,
|
|
41643
41764
|
limit: n,
|
|
41644
41765
|
searchQuery: i ?? ""
|
|
41645
|
-
}), o = (a.users ?? []).map(
|
|
41766
|
+
}), o = (a.users ?? []).map(vA);
|
|
41646
41767
|
t(o), r(a.total ?? o.length);
|
|
41647
41768
|
} catch {
|
|
41648
41769
|
J.error("Failed to load users");
|
|
@@ -41675,7 +41796,7 @@ function nA() {
|
|
|
41675
41796
|
label: "Name",
|
|
41676
41797
|
value: "_name",
|
|
41677
41798
|
width: 220,
|
|
41678
|
-
render: (e, t) => /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
41799
|
+
render: (e, t) => /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(gA, {
|
|
41679
41800
|
strong: !0,
|
|
41680
41801
|
style: { fontSize: 13 },
|
|
41681
41802
|
children: e
|
|
@@ -41707,7 +41828,7 @@ function nA() {
|
|
|
41707
41828
|
}
|
|
41708
41829
|
//#endregion
|
|
41709
41830
|
//#region src/pages/Modules/Admin/TeamsSection.jsx
|
|
41710
|
-
var { Text:
|
|
41831
|
+
var { Text: bA } = kr, xA = [
|
|
41711
41832
|
{
|
|
41712
41833
|
key: "job",
|
|
41713
41834
|
label: "Jobs"
|
|
@@ -41720,7 +41841,7 @@ var { Text: rA } = kr, iA = [
|
|
|
41720
41841
|
key: "submissions",
|
|
41721
41842
|
label: "Submissions"
|
|
41722
41843
|
}
|
|
41723
|
-
],
|
|
41844
|
+
], SA = [
|
|
41724
41845
|
{
|
|
41725
41846
|
key: "listView",
|
|
41726
41847
|
label: "List View"
|
|
@@ -41734,7 +41855,7 @@ var { Text: rA } = kr, iA = [
|
|
|
41734
41855
|
label: "Form"
|
|
41735
41856
|
}
|
|
41736
41857
|
];
|
|
41737
|
-
function
|
|
41858
|
+
function CA({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
41738
41859
|
let i = Yn(null), [a, o] = R(!1), [s, c] = R(!1);
|
|
41739
41860
|
function l(e) {
|
|
41740
41861
|
i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
|
|
@@ -41798,7 +41919,7 @@ function oA({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
|
41798
41919
|
]
|
|
41799
41920
|
});
|
|
41800
41921
|
}
|
|
41801
|
-
function
|
|
41922
|
+
function wA({ team: e, configType: t }) {
|
|
41802
41923
|
let [n, r] = R({}), [i, a] = R(!1), [o, s] = R({}), [c, l] = R("job");
|
|
41803
41924
|
I(() => {
|
|
41804
41925
|
e && (a(!0), dn(e, t).then(r).catch(() => J.error("Failed to load field config")).finally(() => a(!1)));
|
|
@@ -41849,7 +41970,7 @@ function sA({ team: e, configType: t }) {
|
|
|
41849
41970
|
size: "small",
|
|
41850
41971
|
activeKey: c,
|
|
41851
41972
|
onChange: l,
|
|
41852
|
-
items:
|
|
41973
|
+
items: xA.map((e) => ({
|
|
41853
41974
|
key: e.key,
|
|
41854
41975
|
label: e.label
|
|
41855
41976
|
}))
|
|
@@ -41878,7 +41999,7 @@ function sA({ team: e, configType: t }) {
|
|
|
41878
41999
|
children: [u.length === 0 && !i && /* @__PURE__ */ X("div", {
|
|
41879
42000
|
className: "uss-empty",
|
|
41880
42001
|
children: "No fields found."
|
|
41881
|
-
}), u.map((e, t) => /* @__PURE__ */ X(
|
|
42002
|
+
}), u.map((e, t) => /* @__PURE__ */ X(CA, {
|
|
41882
42003
|
field: e,
|
|
41883
42004
|
index: t,
|
|
41884
42005
|
onToggle: f,
|
|
@@ -41892,13 +42013,13 @@ function sA({ team: e, configType: t }) {
|
|
|
41892
42013
|
size: "small",
|
|
41893
42014
|
loading: o[c],
|
|
41894
42015
|
onClick: m,
|
|
41895
|
-
children: ["Save ",
|
|
42016
|
+
children: ["Save ", xA.find((e) => e.key === c)?.label]
|
|
41896
42017
|
})
|
|
41897
42018
|
})
|
|
41898
42019
|
]
|
|
41899
42020
|
});
|
|
41900
42021
|
}
|
|
41901
|
-
function
|
|
42022
|
+
function TA() {
|
|
41902
42023
|
let [e, t] = R(null), [n, r] = R(!1), [i, a] = R(!1), [o, s] = R("listView"), [c, l] = R([]), [u, d] = R(0), [f, p] = R(!1), [m, h] = R(""), [g, _] = R(!1), v = qn(async () => {
|
|
41903
42024
|
p(!0);
|
|
41904
42025
|
try {
|
|
@@ -42045,13 +42166,13 @@ function cA() {
|
|
|
42045
42166
|
style: { marginBottom: 12 },
|
|
42046
42167
|
children: /* @__PURE__ */ X("div", {
|
|
42047
42168
|
className: "uss-config-toggle",
|
|
42048
|
-
children:
|
|
42169
|
+
children: SA.map((e) => /* @__PURE__ */ X("button", {
|
|
42049
42170
|
className: `uss-config-btn${o === e.key ? " active" : ""}`,
|
|
42050
42171
|
onClick: () => s(e.key),
|
|
42051
42172
|
children: e.label
|
|
42052
42173
|
}, e.key))
|
|
42053
42174
|
})
|
|
42054
|
-
}), e && /* @__PURE__ */ X(
|
|
42175
|
+
}), e && /* @__PURE__ */ X(wA, {
|
|
42055
42176
|
team: e,
|
|
42056
42177
|
configType: o
|
|
42057
42178
|
}, `${e?.teamId}-${o}`)]
|
|
@@ -42060,12 +42181,12 @@ function cA() {
|
|
|
42060
42181
|
}
|
|
42061
42182
|
//#endregion
|
|
42062
42183
|
//#region src/pages/Modules/Admin/components/RolePermPanel.jsx
|
|
42063
|
-
var
|
|
42184
|
+
var EA = [
|
|
42064
42185
|
"view",
|
|
42065
42186
|
"add",
|
|
42066
42187
|
"edit",
|
|
42067
42188
|
"delete"
|
|
42068
|
-
],
|
|
42189
|
+
], DA = {
|
|
42069
42190
|
view: "View",
|
|
42070
42191
|
add: "Add",
|
|
42071
42192
|
edit: "Edit",
|
|
@@ -42078,18 +42199,18 @@ var lA = [
|
|
|
42078
42199
|
all_jobs: "All Jobs",
|
|
42079
42200
|
po_msa: "PO MSA"
|
|
42080
42201
|
};
|
|
42081
|
-
function
|
|
42082
|
-
return
|
|
42202
|
+
function OA(e) {
|
|
42203
|
+
return DA[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
42083
42204
|
}
|
|
42084
|
-
function
|
|
42085
|
-
let t =
|
|
42205
|
+
function kA(e) {
|
|
42206
|
+
let t = EA.filter((t) => e.includes(t)), n = e.filter((e) => !EA.includes(e)).sort();
|
|
42086
42207
|
return [...t, ...n];
|
|
42087
42208
|
}
|
|
42088
|
-
function
|
|
42209
|
+
function AA(e) {
|
|
42089
42210
|
let t = /* @__PURE__ */ new Set();
|
|
42090
|
-
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))),
|
|
42211
|
+
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), kA([...t]);
|
|
42091
42212
|
}
|
|
42092
|
-
function
|
|
42213
|
+
function jA(e) {
|
|
42093
42214
|
let t = 0, n = 0;
|
|
42094
42215
|
return Object.entries(e).forEach(([e, { permissions: r }]) => {
|
|
42095
42216
|
Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
|
|
@@ -42100,7 +42221,7 @@ function mA(e) {
|
|
|
42100
42221
|
total: n
|
|
42101
42222
|
};
|
|
42102
42223
|
}
|
|
42103
|
-
function
|
|
42224
|
+
function MA({ value: e, onSave: t, className: n }) {
|
|
42104
42225
|
let [r, i] = R(!1), [a, o] = R(e);
|
|
42105
42226
|
I(() => {
|
|
42106
42227
|
o(e);
|
|
@@ -42129,7 +42250,7 @@ function hA({ value: e, onSave: t, className: n }) {
|
|
|
42129
42250
|
children: [e, /* @__PURE__ */ X(di, { className: "perm-name-edit-icon" })]
|
|
42130
42251
|
});
|
|
42131
42252
|
}
|
|
42132
|
-
function
|
|
42253
|
+
function NA({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
42133
42254
|
let [i, a] = R(!1), [o, s] = R(t), c = e?.value === "1", l = !!e;
|
|
42134
42255
|
I(() => {
|
|
42135
42256
|
s(t);
|
|
@@ -42171,13 +42292,13 @@ function gA({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
|
42171
42292
|
})
|
|
42172
42293
|
});
|
|
42173
42294
|
}
|
|
42174
|
-
function
|
|
42295
|
+
function PA({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
|
|
42175
42296
|
let c = t?.permissions ?? {}, l = n.filter((t) => LS(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
|
|
42176
42297
|
return /* @__PURE__ */ Z("div", {
|
|
42177
42298
|
className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
|
|
42178
42299
|
children: [/* @__PURE__ */ Z("div", {
|
|
42179
42300
|
className: "perm-module-card-header",
|
|
42180
|
-
children: [/* @__PURE__ */ X(
|
|
42301
|
+
children: [/* @__PURE__ */ X(MA, {
|
|
42181
42302
|
value: i,
|
|
42182
42303
|
onSave: (t) => o(e, t),
|
|
42183
42304
|
className: "perm-module-card-name"
|
|
@@ -42191,16 +42312,16 @@ function _A({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
|
|
|
42191
42312
|
})]
|
|
42192
42313
|
}), /* @__PURE__ */ X("div", {
|
|
42193
42314
|
className: "perm-module-card-body",
|
|
42194
|
-
children: l.map((t) => /* @__PURE__ */ X(
|
|
42315
|
+
children: l.map((t) => /* @__PURE__ */ X(NA, {
|
|
42195
42316
|
entry: c[t],
|
|
42196
|
-
label: a[t] ??
|
|
42317
|
+
label: a[t] ?? OA(t),
|
|
42197
42318
|
onToggle: () => r(e, t),
|
|
42198
42319
|
onLabelSave: (e) => s(t, e)
|
|
42199
42320
|
}, t))
|
|
42200
42321
|
})]
|
|
42201
42322
|
});
|
|
42202
42323
|
}
|
|
42203
|
-
function
|
|
42324
|
+
function FA({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
|
|
42204
42325
|
let [a, o] = R({}), [s, c] = R({}), [l, u] = R(!1), [d, f] = R(!1), [p, m] = R(!1), h = Qt(e);
|
|
42205
42326
|
I(() => {
|
|
42206
42327
|
h && (u(!0), m(!1), kt(h).then((e) => {
|
|
@@ -42241,7 +42362,7 @@ function vA({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
42241
42362
|
f(!1);
|
|
42242
42363
|
}
|
|
42243
42364
|
}
|
|
42244
|
-
let v = L(() => Object.keys(s).sort(), [s]), y = L(() =>
|
|
42365
|
+
let v = L(() => Object.keys(s).sort(), [s]), y = L(() => AA(s), [s]), { enabled: b, total: x } = L(() => jA(s), [s]);
|
|
42245
42366
|
return /* @__PURE__ */ Z(Sr, {
|
|
42246
42367
|
spinning: l,
|
|
42247
42368
|
children: [
|
|
@@ -42292,7 +42413,7 @@ function vA({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
42292
42413
|
children: "No permission entries found for this role."
|
|
42293
42414
|
}) : /* @__PURE__ */ X("div", {
|
|
42294
42415
|
className: "perm-cards-grid",
|
|
42295
|
-
children: v.map((e) => /* @__PURE__ */ X(
|
|
42416
|
+
children: v.map((e) => /* @__PURE__ */ X(PA, {
|
|
42296
42417
|
menuName: e,
|
|
42297
42418
|
menuData: s[e],
|
|
42298
42419
|
permKeys: y,
|
|
@@ -42308,7 +42429,7 @@ function vA({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
42308
42429
|
}
|
|
42309
42430
|
//#endregion
|
|
42310
42431
|
//#region src/pages/Modules/Admin/RolesSection.jsx
|
|
42311
|
-
var { Text:
|
|
42432
|
+
var { Text: IA } = kr, LA = [
|
|
42312
42433
|
{
|
|
42313
42434
|
key: "listView",
|
|
42314
42435
|
label: "List View"
|
|
@@ -42326,38 +42447,38 @@ var { Text: yA } = kr, bA = [
|
|
|
42326
42447
|
label: "Permissions"
|
|
42327
42448
|
}
|
|
42328
42449
|
];
|
|
42329
|
-
function
|
|
42450
|
+
function RA(e) {
|
|
42330
42451
|
return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
|
|
42331
42452
|
}
|
|
42332
|
-
function
|
|
42453
|
+
function zA(e) {
|
|
42333
42454
|
return String(e || "").trim().toLowerCase();
|
|
42334
42455
|
}
|
|
42335
|
-
function
|
|
42456
|
+
function BA(e) {
|
|
42336
42457
|
return e?.key || e?.collectionName || e?.value || "";
|
|
42337
42458
|
}
|
|
42338
|
-
function
|
|
42459
|
+
function VA(e = [], t = []) {
|
|
42339
42460
|
let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
42340
42461
|
return e.forEach((e) => {
|
|
42341
|
-
let t =
|
|
42462
|
+
let t = BA(e);
|
|
42342
42463
|
if (!t) return;
|
|
42343
|
-
let o =
|
|
42464
|
+
let o = zA(e.key || t), s = zA(e.collectionName);
|
|
42344
42465
|
e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
|
|
42345
|
-
label: e.label ||
|
|
42466
|
+
label: e.label || RA(t),
|
|
42346
42467
|
value: t,
|
|
42347
42468
|
disabled: !!e.seeded
|
|
42348
42469
|
});
|
|
42349
42470
|
}), t.forEach((e) => {
|
|
42350
42471
|
let t = String(e || "").trim();
|
|
42351
42472
|
if (!t || r.has(t)) return;
|
|
42352
|
-
let o =
|
|
42473
|
+
let o = zA(t);
|
|
42353
42474
|
a.has(o) || i.has(o) || (r.add(t), n.push({
|
|
42354
|
-
label:
|
|
42475
|
+
label: RA(t),
|
|
42355
42476
|
value: t,
|
|
42356
42477
|
disabled: !1
|
|
42357
42478
|
}));
|
|
42358
42479
|
}), n;
|
|
42359
42480
|
}
|
|
42360
|
-
function
|
|
42481
|
+
function HA() {
|
|
42361
42482
|
let [e, t] = R(null), [n, r] = R(!1), [i, a] = R("listView"), [o, s] = R([]), [c, l] = R(0), [u, d] = R(!1), [f, p] = R([]), [m, h] = R([]), [g, _] = R(!1), [v, y] = R(!1), b = L(() => f.filter((e) => !e.disabled), [f]), x = !g && b.length === 0, S = qn(async () => {
|
|
42362
42483
|
d(!0);
|
|
42363
42484
|
try {
|
|
@@ -42371,7 +42492,7 @@ function TA() {
|
|
|
42371
42492
|
}, []), C = qn(async () => {
|
|
42372
42493
|
_(!0);
|
|
42373
42494
|
try {
|
|
42374
|
-
let [e, t] = await Promise.all([Se(), ee()]), n =
|
|
42495
|
+
let [e, t] = await Promise.all([Se(), ee()]), n = VA(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
|
|
42375
42496
|
p(n), h((e) => e.filter((e) => r.has(e)));
|
|
42376
42497
|
} catch {
|
|
42377
42498
|
J.error("Failed to load seed status");
|
|
@@ -42437,7 +42558,7 @@ function TA() {
|
|
|
42437
42558
|
onClick: w,
|
|
42438
42559
|
children: "Seed Field Config"
|
|
42439
42560
|
})]
|
|
42440
|
-
}), /* @__PURE__ */ X(
|
|
42561
|
+
}), /* @__PURE__ */ X(IA, {
|
|
42441
42562
|
type: "secondary",
|
|
42442
42563
|
style: {
|
|
42443
42564
|
display: "block",
|
|
@@ -42517,13 +42638,13 @@ function TA() {
|
|
|
42517
42638
|
style: { marginBottom: 12 },
|
|
42518
42639
|
children: /* @__PURE__ */ X("div", {
|
|
42519
42640
|
className: "uss-config-toggle",
|
|
42520
|
-
children:
|
|
42641
|
+
children: LA.map((e) => /* @__PURE__ */ X("button", {
|
|
42521
42642
|
className: `uss-config-btn${i === e.key ? " active" : ""}`,
|
|
42522
42643
|
onClick: () => a(e.key),
|
|
42523
42644
|
children: e.label
|
|
42524
42645
|
}, e.key))
|
|
42525
42646
|
})
|
|
42526
|
-
}), e && (i === "permissions" ? /* @__PURE__ */ X(
|
|
42647
|
+
}), e && (i === "permissions" ? /* @__PURE__ */ X(FA, { role: e }, e?.roleId) : /* @__PURE__ */ X(tC, {
|
|
42527
42648
|
role: e,
|
|
42528
42649
|
configType: i
|
|
42529
42650
|
}, `${e?.roleId}-${i}`))]
|
|
@@ -42532,20 +42653,20 @@ function TA() {
|
|
|
42532
42653
|
}
|
|
42533
42654
|
//#endregion
|
|
42534
42655
|
//#region src/pages/Modules/Admin/PermissionsPage.jsx
|
|
42535
|
-
var
|
|
42536
|
-
function
|
|
42656
|
+
var UA = "perm-module-labels", WA = "perm-action-labels";
|
|
42657
|
+
function GA(e) {
|
|
42537
42658
|
try {
|
|
42538
42659
|
return JSON.parse(localStorage.getItem(e) ?? "{}");
|
|
42539
42660
|
} catch {
|
|
42540
42661
|
return {};
|
|
42541
42662
|
}
|
|
42542
42663
|
}
|
|
42543
|
-
function
|
|
42664
|
+
function KA(e, t) {
|
|
42544
42665
|
try {
|
|
42545
42666
|
localStorage.setItem(e, JSON.stringify(t));
|
|
42546
42667
|
} catch {}
|
|
42547
42668
|
}
|
|
42548
|
-
function
|
|
42669
|
+
function qA({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
42549
42670
|
let [i, a] = R(!1), [o, s] = R(e);
|
|
42550
42671
|
function c() {
|
|
42551
42672
|
a(!1);
|
|
@@ -42596,7 +42717,7 @@ function AA({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
|
42596
42717
|
})]
|
|
42597
42718
|
});
|
|
42598
42719
|
}
|
|
42599
|
-
function
|
|
42720
|
+
function JA({ open: e, onClose: t }) {
|
|
42600
42721
|
let [n, r] = R("modules"), [i, a] = R([]), [o, s] = R(!1), [c, l] = R(""), [u, d] = R(!1), [f, p] = R([]), [m, h] = R(!1), [g, _] = R(""), [v, y] = R(""), [b, x] = R(!1);
|
|
42601
42722
|
I(() => {
|
|
42602
42723
|
e && (S(), C());
|
|
@@ -42718,7 +42839,7 @@ function jA({ open: e, onClose: t }) {
|
|
|
42718
42839
|
className: "perm-empty",
|
|
42719
42840
|
style: { paddingTop: 24 },
|
|
42720
42841
|
children: "No modules found"
|
|
42721
|
-
}), i.map((e) => /* @__PURE__ */ X(
|
|
42842
|
+
}), i.map((e) => /* @__PURE__ */ X(qA, {
|
|
42722
42843
|
label: e.MENUNAME,
|
|
42723
42844
|
onSave: (t) => T(e.MENUID, t),
|
|
42724
42845
|
onDelete: () => E(e.MENUID)
|
|
@@ -42763,7 +42884,7 @@ function jA({ open: e, onClose: t }) {
|
|
|
42763
42884
|
className: "perm-empty",
|
|
42764
42885
|
style: { paddingTop: 24 },
|
|
42765
42886
|
children: "No actions found"
|
|
42766
|
-
}), f.map((e) => /* @__PURE__ */ X(
|
|
42887
|
+
}), f.map((e) => /* @__PURE__ */ X(qA, {
|
|
42767
42888
|
label: `${e.permissionName} (${e.permissionKey})`,
|
|
42768
42889
|
onSave: (t) => O(e.permissionId, t),
|
|
42769
42890
|
onDelete: () => A(e.permissionId)
|
|
@@ -42793,14 +42914,14 @@ function jA({ open: e, onClose: t }) {
|
|
|
42793
42914
|
})
|
|
42794
42915
|
});
|
|
42795
42916
|
}
|
|
42796
|
-
function
|
|
42797
|
-
let [e, t] = R([]), [n, r] = R(!1), [i, a] = R(null), [o, s] = R(""), [c, l] = R(!1), [u, d] = R(() =>
|
|
42917
|
+
function YA() {
|
|
42918
|
+
let [e, t] = R([]), [n, r] = R(!1), [i, a] = R(null), [o, s] = R(""), [c, l] = R(!1), [u, d] = R(() => GA(UA)), [f, p] = R(() => GA(WA)), m = qn((e, t) => {
|
|
42798
42919
|
d((n) => {
|
|
42799
42920
|
let r = {
|
|
42800
42921
|
...n,
|
|
42801
42922
|
[e]: t
|
|
42802
42923
|
};
|
|
42803
|
-
return
|
|
42924
|
+
return KA(UA, r), r;
|
|
42804
42925
|
});
|
|
42805
42926
|
}, []), h = qn((e, t) => {
|
|
42806
42927
|
p((n) => {
|
|
@@ -42808,11 +42929,11 @@ function MA() {
|
|
|
42808
42929
|
...n,
|
|
42809
42930
|
[e]: t
|
|
42810
42931
|
};
|
|
42811
|
-
return
|
|
42932
|
+
return KA(WA, r), r;
|
|
42812
42933
|
});
|
|
42813
42934
|
}, []);
|
|
42814
42935
|
function g() {
|
|
42815
|
-
d({}), p({}),
|
|
42936
|
+
d({}), p({}), KA(UA, {}), KA(WA, {}), J.success("Labels reset to defaults");
|
|
42816
42937
|
}
|
|
42817
42938
|
let _ = qn(async () => {
|
|
42818
42939
|
r(!0);
|
|
@@ -42896,7 +43017,7 @@ function MA() {
|
|
|
42896
43017
|
})]
|
|
42897
43018
|
}),
|
|
42898
43019
|
bodyStyle: { padding: "12px 16px" },
|
|
42899
|
-
children: i ? /* @__PURE__ */ X(
|
|
43020
|
+
children: i ? /* @__PURE__ */ X(FA, {
|
|
42900
43021
|
role: i,
|
|
42901
43022
|
moduleLabels: u,
|
|
42902
43023
|
actionLabels: f,
|
|
@@ -42907,7 +43028,7 @@ function MA() {
|
|
|
42907
43028
|
children: "Select a role from the left to manage its permissions."
|
|
42908
43029
|
})
|
|
42909
43030
|
}),
|
|
42910
|
-
/* @__PURE__ */ X(
|
|
43031
|
+
/* @__PURE__ */ X(JA, {
|
|
42911
43032
|
open: c,
|
|
42912
43033
|
onClose: () => l(!1)
|
|
42913
43034
|
})
|
|
@@ -42916,7 +43037,7 @@ function MA() {
|
|
|
42916
43037
|
}
|
|
42917
43038
|
//#endregion
|
|
42918
43039
|
//#region src/components/cards/OnboardingCard.jsx
|
|
42919
|
-
var { Title:
|
|
43040
|
+
var { Title: XA, Text: ZA } = kr, QA = [
|
|
42920
43041
|
{
|
|
42921
43042
|
label: "In Progress",
|
|
42922
43043
|
value: 107,
|
|
@@ -42942,10 +43063,10 @@ var { Title: NA, Text: PA } = kr, FA = [
|
|
|
42942
43063
|
color: "peach"
|
|
42943
43064
|
}
|
|
42944
43065
|
];
|
|
42945
|
-
function
|
|
43066
|
+
function $A({ items: e = QA }) {
|
|
42946
43067
|
return /* @__PURE__ */ X(tr, {
|
|
42947
43068
|
className: "onboarding-card",
|
|
42948
|
-
title: /* @__PURE__ */ X(
|
|
43069
|
+
title: /* @__PURE__ */ X(XA, {
|
|
42949
43070
|
level: 5,
|
|
42950
43071
|
children: "Onboarding"
|
|
42951
43072
|
}),
|
|
@@ -42964,7 +43085,7 @@ function IA({ items: e = FA }) {
|
|
|
42964
43085
|
children: /* @__PURE__ */ Z("div", {
|
|
42965
43086
|
className: `onboarding-item ${e.color}`,
|
|
42966
43087
|
children: [
|
|
42967
|
-
/* @__PURE__ */ X(
|
|
43088
|
+
/* @__PURE__ */ X(ZA, {
|
|
42968
43089
|
className: "onboarding-item-label",
|
|
42969
43090
|
children: e.label
|
|
42970
43091
|
}),
|
|
@@ -42974,7 +43095,7 @@ function IA({ items: e = FA }) {
|
|
|
42974
43095
|
}),
|
|
42975
43096
|
/* @__PURE__ */ X("div", {
|
|
42976
43097
|
className: "onboarding-item-footer",
|
|
42977
|
-
children: /* @__PURE__ */ X(
|
|
43098
|
+
children: /* @__PURE__ */ X(ZA, {
|
|
42978
43099
|
className: "onboarding-item-sub",
|
|
42979
43100
|
children: e.sub
|
|
42980
43101
|
})
|
|
@@ -42987,7 +43108,7 @@ function IA({ items: e = FA }) {
|
|
|
42987
43108
|
}
|
|
42988
43109
|
//#endregion
|
|
42989
43110
|
//#region src/pages/Modules/LegacyAdminPage.jsx
|
|
42990
|
-
var { Text:
|
|
43111
|
+
var { Text: ej, Title: tj } = kr, nj = [
|
|
42991
43112
|
{
|
|
42992
43113
|
group: "Dashboard",
|
|
42993
43114
|
items: [{
|
|
@@ -43202,7 +43323,7 @@ var { Text: LA, Title: RA } = kr, zA = [
|
|
|
43202
43323
|
}
|
|
43203
43324
|
]
|
|
43204
43325
|
}
|
|
43205
|
-
],
|
|
43326
|
+
], rj = [
|
|
43206
43327
|
{
|
|
43207
43328
|
label: "Sourced",
|
|
43208
43329
|
count: 312,
|
|
@@ -43233,7 +43354,7 @@ var { Text: LA, Title: RA } = kr, zA = [
|
|
|
43233
43354
|
color: "#E24B4A",
|
|
43234
43355
|
pct: 10
|
|
43235
43356
|
}
|
|
43236
|
-
],
|
|
43357
|
+
], ij = [
|
|
43237
43358
|
{
|
|
43238
43359
|
name: "Tcs",
|
|
43239
43360
|
jobs: 14,
|
|
@@ -43254,7 +43375,7 @@ var { Text: LA, Title: RA } = kr, zA = [
|
|
|
43254
43375
|
jobs: 5,
|
|
43255
43376
|
candidates: 38
|
|
43256
43377
|
}
|
|
43257
|
-
],
|
|
43378
|
+
], aj = [
|
|
43258
43379
|
{
|
|
43259
43380
|
text: "New candidate Ravi Kumar added to Java Developer role",
|
|
43260
43381
|
time: "2 min ago",
|
|
@@ -43281,7 +43402,7 @@ var { Text: LA, Title: RA } = kr, zA = [
|
|
|
43281
43402
|
color: "#E24B4A"
|
|
43282
43403
|
}
|
|
43283
43404
|
];
|
|
43284
|
-
function
|
|
43405
|
+
function oj() {
|
|
43285
43406
|
return /* @__PURE__ */ Z("div", {
|
|
43286
43407
|
style: {
|
|
43287
43408
|
display: "flex",
|
|
@@ -43294,11 +43415,11 @@ function UA() {
|
|
|
43294
43415
|
title: "Admin Dashboard",
|
|
43295
43416
|
children: [
|
|
43296
43417
|
/* @__PURE__ */ X("div", { className: "admin-accent-bar" }),
|
|
43297
|
-
/* @__PURE__ */ X(
|
|
43418
|
+
/* @__PURE__ */ X(tj, {
|
|
43298
43419
|
level: 5,
|
|
43299
43420
|
children: "Admin Dashboard"
|
|
43300
43421
|
}),
|
|
43301
|
-
/* @__PURE__ */ X(
|
|
43422
|
+
/* @__PURE__ */ X(ej, {
|
|
43302
43423
|
type: "secondary",
|
|
43303
43424
|
children: "Overview of jobs, candidates, onboarding and recent activity"
|
|
43304
43425
|
})
|
|
@@ -43306,7 +43427,7 @@ function UA() {
|
|
|
43306
43427
|
}),
|
|
43307
43428
|
/* @__PURE__ */ X("div", {
|
|
43308
43429
|
className: "admin-dashboard-stats",
|
|
43309
|
-
children: /* @__PURE__ */ X(
|
|
43430
|
+
children: /* @__PURE__ */ X(hA, { stats: [
|
|
43310
43431
|
{
|
|
43311
43432
|
label: "Total Jobs",
|
|
43312
43433
|
value: 1697,
|
|
@@ -43336,18 +43457,18 @@ function UA() {
|
|
|
43336
43457
|
}),
|
|
43337
43458
|
/* @__PURE__ */ Z("div", {
|
|
43338
43459
|
className: "admin-dashboard-mid-row",
|
|
43339
|
-
children: [/* @__PURE__ */ X(
|
|
43460
|
+
children: [/* @__PURE__ */ X($A, {}), /* @__PURE__ */ Z(RS, {
|
|
43340
43461
|
icon: /* @__PURE__ */ X(Fr, {}),
|
|
43341
43462
|
title: "Candidate Pipeline",
|
|
43342
43463
|
children: [
|
|
43343
|
-
/* @__PURE__ */ X(
|
|
43464
|
+
/* @__PURE__ */ X(ej, {
|
|
43344
43465
|
type: "secondary",
|
|
43345
43466
|
style: { fontSize: 12 },
|
|
43346
43467
|
children: "By stage (892 total)"
|
|
43347
43468
|
}),
|
|
43348
43469
|
/* @__PURE__ */ X("div", {
|
|
43349
43470
|
className: "admin-pipeline-bar",
|
|
43350
|
-
children:
|
|
43471
|
+
children: rj.map((e) => /* @__PURE__ */ X("div", {
|
|
43351
43472
|
className: "admin-pipeline-seg",
|
|
43352
43473
|
style: {
|
|
43353
43474
|
width: `${e.pct}%`,
|
|
@@ -43357,7 +43478,7 @@ function UA() {
|
|
|
43357
43478
|
}),
|
|
43358
43479
|
/* @__PURE__ */ X("div", {
|
|
43359
43480
|
className: "admin-pipeline-legend",
|
|
43360
|
-
children:
|
|
43481
|
+
children: rj.map((e) => /* @__PURE__ */ Z("div", {
|
|
43361
43482
|
className: "admin-pipeline-legend-item",
|
|
43362
43483
|
children: [
|
|
43363
43484
|
/* @__PURE__ */ X("span", {
|
|
@@ -43371,7 +43492,7 @@ function UA() {
|
|
|
43371
43492
|
}, e.label))
|
|
43372
43493
|
}),
|
|
43373
43494
|
/* @__PURE__ */ X("div", { className: "admin-divider" }),
|
|
43374
|
-
/* @__PURE__ */ X(
|
|
43495
|
+
/* @__PURE__ */ X(ej, {
|
|
43375
43496
|
strong: !0,
|
|
43376
43497
|
style: { fontSize: 12 },
|
|
43377
43498
|
children: "Submission status"
|
|
@@ -43382,7 +43503,7 @@ function UA() {
|
|
|
43382
43503
|
children: [
|
|
43383
43504
|
/* @__PURE__ */ Z("div", {
|
|
43384
43505
|
className: "admin-sub-status-item",
|
|
43385
|
-
children: [/* @__PURE__ */ X(
|
|
43506
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43386
43507
|
style: { fontSize: 13 },
|
|
43387
43508
|
children: "Pending client review"
|
|
43388
43509
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -43392,7 +43513,7 @@ function UA() {
|
|
|
43392
43513
|
}),
|
|
43393
43514
|
/* @__PURE__ */ Z("div", {
|
|
43394
43515
|
className: "admin-sub-status-item",
|
|
43395
|
-
children: [/* @__PURE__ */ X(
|
|
43516
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43396
43517
|
style: { fontSize: 13 },
|
|
43397
43518
|
children: "Client approved"
|
|
43398
43519
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -43402,7 +43523,7 @@ function UA() {
|
|
|
43402
43523
|
}),
|
|
43403
43524
|
/* @__PURE__ */ Z("div", {
|
|
43404
43525
|
className: "admin-sub-status-item",
|
|
43405
|
-
children: [/* @__PURE__ */ X(
|
|
43526
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43406
43527
|
style: { fontSize: 13 },
|
|
43407
43528
|
children: "Rejected"
|
|
43408
43529
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -43425,7 +43546,7 @@ function UA() {
|
|
|
43425
43546
|
size: "small",
|
|
43426
43547
|
children: "View all"
|
|
43427
43548
|
}),
|
|
43428
|
-
children:
|
|
43549
|
+
children: ij.map((e) => /* @__PURE__ */ Z("div", {
|
|
43429
43550
|
className: "admin-client-row",
|
|
43430
43551
|
children: [/* @__PURE__ */ Z("div", {
|
|
43431
43552
|
className: "admin-client-left",
|
|
@@ -43453,7 +43574,7 @@ function UA() {
|
|
|
43453
43574
|
}), /* @__PURE__ */ X(RS, {
|
|
43454
43575
|
icon: /* @__PURE__ */ X(Br, {}),
|
|
43455
43576
|
title: "Recent Activity",
|
|
43456
|
-
children:
|
|
43577
|
+
children: aj.map((e, t) => /* @__PURE__ */ Z("div", {
|
|
43457
43578
|
className: "admin-activity-row",
|
|
43458
43579
|
children: [/* @__PURE__ */ X("div", {
|
|
43459
43580
|
className: "admin-activity-dot",
|
|
@@ -43481,7 +43602,7 @@ function UA() {
|
|
|
43481
43602
|
children: [
|
|
43482
43603
|
/* @__PURE__ */ Z(B, {
|
|
43483
43604
|
span: 8,
|
|
43484
|
-
children: [/* @__PURE__ */ X(
|
|
43605
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43485
43606
|
type: "secondary",
|
|
43486
43607
|
style: {
|
|
43487
43608
|
fontSize: 12,
|
|
@@ -43494,7 +43615,7 @@ function UA() {
|
|
|
43494
43615
|
["Templates", 2]
|
|
43495
43616
|
].map(([e, t]) => /* @__PURE__ */ Z("div", {
|
|
43496
43617
|
className: "admin-cfg-overview-row",
|
|
43497
|
-
children: [/* @__PURE__ */ X(
|
|
43618
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43498
43619
|
style: { fontSize: 12 },
|
|
43499
43620
|
children: e
|
|
43500
43621
|
}), /* @__PURE__ */ Z("span", {
|
|
@@ -43505,7 +43626,7 @@ function UA() {
|
|
|
43505
43626
|
}),
|
|
43506
43627
|
/* @__PURE__ */ Z(B, {
|
|
43507
43628
|
span: 8,
|
|
43508
|
-
children: [/* @__PURE__ */ X(
|
|
43629
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43509
43630
|
type: "secondary",
|
|
43510
43631
|
style: {
|
|
43511
43632
|
fontSize: 12,
|
|
@@ -43518,7 +43639,7 @@ function UA() {
|
|
|
43518
43639
|
["Submissions", 2]
|
|
43519
43640
|
].map(([e, t]) => /* @__PURE__ */ Z("div", {
|
|
43520
43641
|
className: "admin-cfg-overview-row",
|
|
43521
|
-
children: [/* @__PURE__ */ X(
|
|
43642
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43522
43643
|
style: { fontSize: 12 },
|
|
43523
43644
|
children: e
|
|
43524
43645
|
}), /* @__PURE__ */ Z("span", {
|
|
@@ -43529,7 +43650,7 @@ function UA() {
|
|
|
43529
43650
|
}),
|
|
43530
43651
|
/* @__PURE__ */ Z(B, {
|
|
43531
43652
|
span: 8,
|
|
43532
|
-
children: [/* @__PURE__ */ X(
|
|
43653
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43533
43654
|
type: "secondary",
|
|
43534
43655
|
style: {
|
|
43535
43656
|
fontSize: 12,
|
|
@@ -43542,10 +43663,10 @@ function UA() {
|
|
|
43542
43663
|
["Config Items", 19]
|
|
43543
43664
|
].map(([e, t]) => /* @__PURE__ */ Z("div", {
|
|
43544
43665
|
className: "admin-cfg-overview-row",
|
|
43545
|
-
children: [/* @__PURE__ */ X(
|
|
43666
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43546
43667
|
style: { fontSize: 12 },
|
|
43547
43668
|
children: e
|
|
43548
|
-
}), /* @__PURE__ */ X(
|
|
43669
|
+
}), /* @__PURE__ */ X(ej, {
|
|
43549
43670
|
strong: !0,
|
|
43550
43671
|
style: { fontSize: 12 },
|
|
43551
43672
|
children: t
|
|
@@ -43558,7 +43679,7 @@ function UA() {
|
|
|
43558
43679
|
]
|
|
43559
43680
|
});
|
|
43560
43681
|
}
|
|
43561
|
-
function
|
|
43682
|
+
function sj({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
|
|
43562
43683
|
return /* @__PURE__ */ Z(xr, {
|
|
43563
43684
|
gutter: [16, 16],
|
|
43564
43685
|
children: [
|
|
@@ -43577,11 +43698,11 @@ function WA({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
43577
43698
|
}),
|
|
43578
43699
|
children: [
|
|
43579
43700
|
/* @__PURE__ */ X("div", { className: "admin-accent-bar" }),
|
|
43580
|
-
/* @__PURE__ */ X(
|
|
43701
|
+
/* @__PURE__ */ X(tj, {
|
|
43581
43702
|
level: 5,
|
|
43582
43703
|
children: e?.heading
|
|
43583
43704
|
}),
|
|
43584
|
-
/* @__PURE__ */ X(
|
|
43705
|
+
/* @__PURE__ */ X(ej, {
|
|
43585
43706
|
type: "secondary",
|
|
43586
43707
|
children: e?.desc
|
|
43587
43708
|
})
|
|
@@ -43595,7 +43716,7 @@ function WA({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
43595
43716
|
children: /* @__PURE__ */ X(RS, {
|
|
43596
43717
|
icon: /* @__PURE__ */ X(Fr, {}),
|
|
43597
43718
|
title: "Configuration Items",
|
|
43598
|
-
extra: /* @__PURE__ */ Z(
|
|
43719
|
+
extra: /* @__PURE__ */ Z(ej, {
|
|
43599
43720
|
type: "secondary",
|
|
43600
43721
|
children: [
|
|
43601
43722
|
n.length,
|
|
@@ -43662,7 +43783,7 @@ function WA({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
43662
43783
|
title: "Section Overview",
|
|
43663
43784
|
children: [/* @__PURE__ */ X("div", {
|
|
43664
43785
|
className: "admin-overview-list",
|
|
43665
|
-
children:
|
|
43786
|
+
children: nj.filter((e) => e.group !== "Dashboard").map((e) => {
|
|
43666
43787
|
let n = e.group === t?.group;
|
|
43667
43788
|
return /* @__PURE__ */ Z("div", {
|
|
43668
43789
|
className: `admin-overview-item${n ? " active" : ""}`,
|
|
@@ -43710,12 +43831,12 @@ function WA({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
43710
43831
|
]
|
|
43711
43832
|
});
|
|
43712
43833
|
}
|
|
43713
|
-
function
|
|
43714
|
-
let [e, t] = R("dashboard"), [n, r] = R(""), i = L(() =>
|
|
43834
|
+
function cj() {
|
|
43835
|
+
let [e, t] = R("dashboard"), [n, r] = R(""), i = L(() => nj.flatMap((e) => e.items), []), a = L(() => i.find((t) => t.id === e), [i, e]), o = L(() => nj.find((t) => t.items.some((t) => t.id === e)), [e]), s = L(() => {
|
|
43715
43836
|
if (!a?.cards) return [];
|
|
43716
43837
|
let e = n.trim().toLowerCase();
|
|
43717
43838
|
return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
|
|
43718
|
-
}, [a, n]), c = L(() =>
|
|
43839
|
+
}, [a, n]), c = L(() => nj.map((e) => ({
|
|
43719
43840
|
key: e.group,
|
|
43720
43841
|
type: "group",
|
|
43721
43842
|
label: e.group,
|
|
@@ -43764,7 +43885,7 @@ function GA() {
|
|
|
43764
43885
|
children: "Groups"
|
|
43765
43886
|
}), /* @__PURE__ */ X("span", {
|
|
43766
43887
|
className: "admin-sidebar-pill-value",
|
|
43767
|
-
children:
|
|
43888
|
+
children: nj.length
|
|
43768
43889
|
})]
|
|
43769
43890
|
})
|
|
43770
43891
|
}), /* @__PURE__ */ X(B, {
|
|
@@ -43794,7 +43915,7 @@ function GA() {
|
|
|
43794
43915
|
xs: 24,
|
|
43795
43916
|
lg: 18,
|
|
43796
43917
|
xl: 19,
|
|
43797
|
-
children: e === "dashboard" ? /* @__PURE__ */ X(
|
|
43918
|
+
children: e === "dashboard" ? /* @__PURE__ */ X(oj, {}) : a?.component === "form-groups" ? /* @__PURE__ */ X(JC, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ X(vw, {}) : a?.component === "row-actions" ? /* @__PURE__ */ X(oT, {}) : a?.component === "users" ? /* @__PURE__ */ X(yA, {}) : a?.component === "teams" ? /* @__PURE__ */ X(TA, {}) : a?.component === "roles" ? /* @__PURE__ */ X(HA, {}) : a?.component === "permissions" ? /* @__PURE__ */ X(YA, {}) : a?.component === "templates" ? /* @__PURE__ */ X(hT, {}) : a?.component === "ai-services" ? /* @__PURE__ */ X(yT, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ X(TT, {}) : /* @__PURE__ */ X(sj, {
|
|
43798
43919
|
activeSection: a,
|
|
43799
43920
|
activeGroup: o,
|
|
43800
43921
|
filteredCards: s,
|
|
@@ -43809,8 +43930,8 @@ function GA() {
|
|
|
43809
43930
|
}
|
|
43810
43931
|
//#endregion
|
|
43811
43932
|
//#region src/pages/stickyNotesFullPage.jsx
|
|
43812
|
-
var { Title:
|
|
43813
|
-
function
|
|
43933
|
+
var { Title: lj } = kr;
|
|
43934
|
+
function uj() {
|
|
43814
43935
|
let e = Pa(), { state: t } = Na(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
|
|
43815
43936
|
...t?.request,
|
|
43816
43937
|
params: {
|
|
@@ -43835,7 +43956,7 @@ function qA() {
|
|
|
43835
43956
|
}
|
|
43836
43957
|
//#endregion
|
|
43837
43958
|
//#region src/pages/BulkUpload/index.jsx
|
|
43838
|
-
var { Text:
|
|
43959
|
+
var { Text: dj, Title: fj } = kr, pj = 10 * 1024 * 1024, mj = "/templates/test_cases_flow_template.base64.txt", hj = "test_cases_flow_template.xlsx", gj = "module | subModule | step_order | description | actions | key | value | expected | scenario", _j = {
|
|
43839
43960
|
idle: 0,
|
|
43840
43961
|
module_set: 1,
|
|
43841
43962
|
encoding: 1,
|
|
@@ -43844,7 +43965,7 @@ var { Text: JA, Title: YA } = kr, XA = 10 * 1024 * 1024, ZA = "/templates/test_c
|
|
|
43844
43965
|
inserting: 3,
|
|
43845
43966
|
done: 4,
|
|
43846
43967
|
error: 1
|
|
43847
|
-
},
|
|
43968
|
+
}, vj = [
|
|
43848
43969
|
{
|
|
43849
43970
|
label: "Home",
|
|
43850
43971
|
href: "/"
|
|
@@ -43858,31 +43979,31 @@ var { Text: JA, Title: YA } = kr, XA = 10 * 1024 * 1024, ZA = "/templates/test_c
|
|
|
43858
43979
|
href: "/bulk-upload"
|
|
43859
43980
|
}
|
|
43860
43981
|
];
|
|
43861
|
-
function
|
|
43982
|
+
function yj(e) {
|
|
43862
43983
|
return new Promise((t, n) => {
|
|
43863
43984
|
let r = new FileReader();
|
|
43864
43985
|
r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
|
|
43865
43986
|
});
|
|
43866
43987
|
}
|
|
43867
|
-
function
|
|
43988
|
+
function bj(e) {
|
|
43868
43989
|
return e.filter((e) => e.row_status === "valid").map((e) => {
|
|
43869
43990
|
let t = { ...e };
|
|
43870
43991
|
return delete t.row_status, delete t.errors, t;
|
|
43871
43992
|
});
|
|
43872
43993
|
}
|
|
43873
|
-
function
|
|
43994
|
+
function xj(e) {
|
|
43874
43995
|
return e.flatMap((e) => (e.errors ?? []).map((t) => ({
|
|
43875
43996
|
id: e.id,
|
|
43876
43997
|
...t
|
|
43877
43998
|
})));
|
|
43878
43999
|
}
|
|
43879
|
-
function
|
|
44000
|
+
function Sj({ errors: e }) {
|
|
43880
44001
|
return /* @__PURE__ */ X("div", {
|
|
43881
44002
|
className: "bulk-tooltip-errors",
|
|
43882
44003
|
children: (e ?? []).map((e, t) => /* @__PURE__ */ X("div", { children: e.message }, `${e.field}-${t}`))
|
|
43883
44004
|
});
|
|
43884
44005
|
}
|
|
43885
|
-
function
|
|
44006
|
+
function Cj({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
43886
44007
|
return e.length === 0 ? null : /* @__PURE__ */ Z("div", {
|
|
43887
44008
|
className: "bulk-error-banner",
|
|
43888
44009
|
children: [/* @__PURE__ */ Z("div", {
|
|
@@ -43913,7 +44034,7 @@ function oj({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
|
43913
44034
|
})]
|
|
43914
44035
|
});
|
|
43915
44036
|
}
|
|
43916
|
-
function
|
|
44037
|
+
function wj({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
|
|
43917
44038
|
let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
|
|
43918
44039
|
return /* @__PURE__ */ Z(Y, { children: [
|
|
43919
44040
|
/* @__PURE__ */ Z(xr, {
|
|
@@ -43929,7 +44050,7 @@ function sj({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
43929
44050
|
type: t === "errors" ? "primary" : "default",
|
|
43930
44051
|
onClick: () => n("errors"),
|
|
43931
44052
|
children: "Errors only"
|
|
43932
|
-
})] }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ Z(
|
|
44053
|
+
})] }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ Z(dj, {
|
|
43933
44054
|
type: "secondary",
|
|
43934
44055
|
children: [e.length, " row(s)"]
|
|
43935
44056
|
}) })]
|
|
@@ -44001,7 +44122,7 @@ function sj({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
44001
44122
|
children: "Valid"
|
|
44002
44123
|
}) }),
|
|
44003
44124
|
/* @__PURE__ */ X("td", { children: n ? /* @__PURE__ */ X(q, {
|
|
44004
|
-
title: /* @__PURE__ */ X(
|
|
44125
|
+
title: /* @__PURE__ */ X(Sj, { errors: t }),
|
|
44005
44126
|
placement: "left",
|
|
44006
44127
|
children: /* @__PURE__ */ Z("button", {
|
|
44007
44128
|
type: "button",
|
|
@@ -44038,11 +44159,11 @@ function sj({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
44038
44159
|
})
|
|
44039
44160
|
] });
|
|
44040
44161
|
}
|
|
44041
|
-
function
|
|
44162
|
+
function Tj() {
|
|
44042
44163
|
let e = Pa(), t = L(() => s(), []), n = Yn(null), r = Yn(null), [i, a] = R([]), [o, c] = R(""), [l, u] = R("idle"), [d, f] = R(!1), [p, m] = R(null), [h, g] = R([]), [_, v] = R("all"), [y, b] = R(null), [x, S] = R(null), [C, w] = R(!1), T = i.map((e) => ({
|
|
44043
44164
|
value: e.modulename,
|
|
44044
44165
|
label: e.modulename
|
|
44045
|
-
})), E =
|
|
44166
|
+
})), E = xj(h), D = l === "encoding" || l === "validating", O = !!o && !D, k = _j[l] ?? 0, A = h.find((e) => e.row_status === "invalid")?.id, j = qn(() => {
|
|
44046
44167
|
c(""), u("idle"), f(!1), m(null), g([]), v("all"), b(null), S(null), n.current && (n.current.value = "");
|
|
44047
44168
|
}, []);
|
|
44048
44169
|
I(() => {
|
|
@@ -44067,7 +44188,7 @@ function cj() {
|
|
|
44067
44188
|
u("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
|
|
44068
44189
|
return;
|
|
44069
44190
|
}
|
|
44070
|
-
if (e.size >
|
|
44191
|
+
if (e.size > pj) {
|
|
44071
44192
|
u("module_set"), b({ message: "File must be 10 MB or smaller." });
|
|
44072
44193
|
return;
|
|
44073
44194
|
}
|
|
@@ -44076,7 +44197,7 @@ function cj() {
|
|
|
44076
44197
|
size: e.size
|
|
44077
44198
|
}), u("encoding");
|
|
44078
44199
|
try {
|
|
44079
|
-
let r = await
|
|
44200
|
+
let r = await yj(e);
|
|
44080
44201
|
u("validating"), g((await zx({
|
|
44081
44202
|
filename: e.name,
|
|
44082
44203
|
project: t?.name ?? "",
|
|
@@ -44092,12 +44213,12 @@ function cj() {
|
|
|
44092
44213
|
}
|
|
44093
44214
|
}, N = async () => {
|
|
44094
44215
|
try {
|
|
44095
|
-
let e = await fetch(
|
|
44216
|
+
let e = await fetch(mj);
|
|
44096
44217
|
if (!e.ok) throw Error(`Template file not found (${e.status})`);
|
|
44097
44218
|
let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
|
|
44098
44219
|
for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
|
|
44099
44220
|
let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
|
|
44100
|
-
o.href = a, o.download =
|
|
44221
|
+
o.href = a, o.download = hj, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), J.success("Sample template downloaded.");
|
|
44101
44222
|
} catch (e) {
|
|
44102
44223
|
console.error(e), J.error("Unable to download sample template.");
|
|
44103
44224
|
}
|
|
@@ -44108,7 +44229,7 @@ function cj() {
|
|
|
44108
44229
|
project: t?.name ?? "",
|
|
44109
44230
|
module: o,
|
|
44110
44231
|
uploaded_by: localStorage.getItem("user_Email") ?? "",
|
|
44111
|
-
rows:
|
|
44232
|
+
rows: bj(h)
|
|
44112
44233
|
})), u("done"), J.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
|
|
44113
44234
|
} catch (e) {
|
|
44114
44235
|
console.error(e), b(e.payload ?? {
|
|
@@ -44134,7 +44255,7 @@ function cj() {
|
|
|
44134
44255
|
align: "middle",
|
|
44135
44256
|
justify: "space-between",
|
|
44136
44257
|
className: "breadcrumb-action-wrapper",
|
|
44137
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
44258
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: vj }) }), t?.name && /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(dj, {
|
|
44138
44259
|
strong: !0,
|
|
44139
44260
|
children: t.name
|
|
44140
44261
|
}) })]
|
|
@@ -44143,16 +44264,16 @@ function cj() {
|
|
|
44143
44264
|
children: [
|
|
44144
44265
|
/* @__PURE__ */ Z("div", {
|
|
44145
44266
|
className: "bulk-header",
|
|
44146
|
-
children: [/* @__PURE__ */ X(
|
|
44267
|
+
children: [/* @__PURE__ */ X(fj, {
|
|
44147
44268
|
level: 3,
|
|
44148
44269
|
children: "Bulk upload test cases"
|
|
44149
44270
|
}), /* @__PURE__ */ Z(W, {
|
|
44150
44271
|
direction: "vertical",
|
|
44151
44272
|
size: 4,
|
|
44152
|
-
children: [/* @__PURE__ */ X(
|
|
44273
|
+
children: [/* @__PURE__ */ X(dj, {
|
|
44153
44274
|
type: "secondary",
|
|
44154
|
-
children:
|
|
44155
|
-
}), /* @__PURE__ */ X(
|
|
44275
|
+
children: gj
|
|
44276
|
+
}), /* @__PURE__ */ X(dj, {
|
|
44156
44277
|
type: "secondary",
|
|
44157
44278
|
children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
|
|
44158
44279
|
})]
|
|
@@ -44250,7 +44371,7 @@ function cj() {
|
|
|
44250
44371
|
className: "v1-card zt-fall",
|
|
44251
44372
|
title: "3. Validation result",
|
|
44252
44373
|
children: [
|
|
44253
|
-
/* @__PURE__ */ X(
|
|
44374
|
+
/* @__PURE__ */ X(Cj, {
|
|
44254
44375
|
errors: E,
|
|
44255
44376
|
expanded: C,
|
|
44256
44377
|
onToggle: () => w((e) => !e),
|
|
@@ -44262,7 +44383,7 @@ function cj() {
|
|
|
44262
44383
|
message: y.message,
|
|
44263
44384
|
className: "bulk-inline-alert"
|
|
44264
44385
|
}),
|
|
44265
|
-
/* @__PURE__ */ X(
|
|
44386
|
+
/* @__PURE__ */ X(wj, {
|
|
44266
44387
|
rows: h,
|
|
44267
44388
|
view: _,
|
|
44268
44389
|
onViewChange: v,
|
|
@@ -44285,17 +44406,17 @@ function cj() {
|
|
|
44285
44406
|
/* @__PURE__ */ X(B, {
|
|
44286
44407
|
xs: 24,
|
|
44287
44408
|
md: 8,
|
|
44288
|
-
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
44409
|
+
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(dj, { children: "Total" }), /* @__PURE__ */ X("strong", { children: h.length })] })
|
|
44289
44410
|
}),
|
|
44290
44411
|
/* @__PURE__ */ X(B, {
|
|
44291
44412
|
xs: 24,
|
|
44292
44413
|
md: 8,
|
|
44293
|
-
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
44414
|
+
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(dj, { children: "Inserted" }), /* @__PURE__ */ X("strong", { children: x.inserted ?? 0 })] })
|
|
44294
44415
|
}),
|
|
44295
44416
|
/* @__PURE__ */ X(B, {
|
|
44296
44417
|
xs: 24,
|
|
44297
44418
|
md: 8,
|
|
44298
|
-
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
44419
|
+
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(dj, { children: "Failed" }), /* @__PURE__ */ X("strong", { children: x.failed ?? 0 })] })
|
|
44299
44420
|
})
|
|
44300
44421
|
]
|
|
44301
44422
|
}),
|
|
@@ -44319,7 +44440,7 @@ function cj() {
|
|
|
44319
44440
|
}
|
|
44320
44441
|
//#endregion
|
|
44321
44442
|
//#region src/services/dropdownValues/testPageValues.js
|
|
44322
|
-
var
|
|
44443
|
+
var Ej = [
|
|
44323
44444
|
{
|
|
44324
44445
|
value: "navigate",
|
|
44325
44446
|
label: "Navigate"
|
|
@@ -44452,82 +44573,82 @@ var lj = [
|
|
|
44452
44573
|
value: "wait_for_text",
|
|
44453
44574
|
label: "Wait For Text"
|
|
44454
44575
|
}
|
|
44455
|
-
], { Text:
|
|
44576
|
+
], { Text: Dj } = kr, Oj = [{
|
|
44456
44577
|
label: "Home",
|
|
44457
44578
|
href: "/"
|
|
44458
44579
|
}, {
|
|
44459
44580
|
label: "Test Cases",
|
|
44460
44581
|
href: "/test-cases"
|
|
44461
|
-
}],
|
|
44582
|
+
}], kj = {
|
|
44462
44583
|
tags: "regression",
|
|
44463
44584
|
active: 1
|
|
44464
|
-
},
|
|
44585
|
+
}, Aj = { module: {
|
|
44465
44586
|
dbName: "Modules",
|
|
44466
44587
|
formField: "module",
|
|
44467
44588
|
label: "Module"
|
|
44468
44589
|
} };
|
|
44469
|
-
function
|
|
44590
|
+
function jj(e = []) {
|
|
44470
44591
|
return e.map((e) => ({
|
|
44471
44592
|
value: e,
|
|
44472
44593
|
label: e
|
|
44473
44594
|
}));
|
|
44474
44595
|
}
|
|
44475
|
-
function
|
|
44596
|
+
function Mj(e = "") {
|
|
44476
44597
|
return String(e ?? "").trim();
|
|
44477
44598
|
}
|
|
44478
|
-
function
|
|
44479
|
-
return
|
|
44599
|
+
function Nj(e = "") {
|
|
44600
|
+
return Mj(e).toLowerCase();
|
|
44480
44601
|
}
|
|
44481
|
-
function
|
|
44602
|
+
function Pj(e = []) {
|
|
44482
44603
|
let t = /* @__PURE__ */ new Map();
|
|
44483
44604
|
return e.forEach((e) => {
|
|
44484
|
-
let n =
|
|
44605
|
+
let n = Mj(e?.flow), r = n.toLowerCase();
|
|
44485
44606
|
n && !t.has(r) && t.set(r, n);
|
|
44486
44607
|
}), Array.from(t.values()).map((e) => ({
|
|
44487
44608
|
value: e,
|
|
44488
44609
|
label: e
|
|
44489
44610
|
}));
|
|
44490
44611
|
}
|
|
44491
|
-
function
|
|
44492
|
-
let r =
|
|
44612
|
+
function Fj(e = [], t, n) {
|
|
44613
|
+
let r = Mj(t).toLowerCase(), i = Mj(n).toLowerCase();
|
|
44493
44614
|
return e.reduce((e, t) => {
|
|
44494
|
-
let n =
|
|
44615
|
+
let n = Mj(t?.module).toLowerCase(), a = Mj(t?.flow).toLowerCase();
|
|
44495
44616
|
if (n !== r || a !== i) return e;
|
|
44496
44617
|
let o = Number(t?.step_order) || 0;
|
|
44497
44618
|
return Math.max(e, o);
|
|
44498
44619
|
}, 0) + 1;
|
|
44499
44620
|
}
|
|
44500
|
-
function
|
|
44621
|
+
function Ij({ icon: e, title: t }) {
|
|
44501
44622
|
return /* @__PURE__ */ Z(W, {
|
|
44502
44623
|
size: 10,
|
|
44503
44624
|
align: "center",
|
|
44504
44625
|
children: [/* @__PURE__ */ X("div", {
|
|
44505
44626
|
className: "v1-section-icon-box",
|
|
44506
44627
|
children: e
|
|
44507
|
-
}), /* @__PURE__ */ X(
|
|
44628
|
+
}), /* @__PURE__ */ X(Dj, {
|
|
44508
44629
|
strong: !0,
|
|
44509
44630
|
className: "v1-section-label",
|
|
44510
44631
|
children: t
|
|
44511
44632
|
})]
|
|
44512
44633
|
});
|
|
44513
44634
|
}
|
|
44514
|
-
function
|
|
44635
|
+
function Lj() {
|
|
44515
44636
|
let [e] = V.useForm(), [t] = V.useForm(), [n, r] = R([]), [i, a] = R([]), [o, s] = R([]), [c, l] = R(!1), [u, d] = R(!1), [f, p] = R({
|
|
44516
44637
|
open: !1,
|
|
44517
44638
|
typeKey: "module"
|
|
44518
|
-
}), [m, h] = R(!1), [g, _] = R(!1), [v, y] = R(!1), b = Pa(), x =
|
|
44639
|
+
}), [m, h] = R(!1), [g, _] = R(!1), [v, y] = R(!1), b = Pa(), x = Aj[f.typeKey], S = L(() => jj(n), [n]), C = V.useWatch("module", e), w = V.useWatch("flow", e), T = !!Mj(C), E = !!Mj(w), D = !T, O = !T || !E, k = (e, t = []) => {
|
|
44519
44640
|
e === "module" && r(t);
|
|
44520
44641
|
}, A = async () => {
|
|
44521
44642
|
l(!0);
|
|
44522
44643
|
try {
|
|
44523
|
-
r((await Px(
|
|
44644
|
+
r((await Px(Aj.module.dbName))?.items ?? []);
|
|
44524
44645
|
} catch (e) {
|
|
44525
44646
|
console.error("Unable to load testing options:", e), J.error("Unable to load testing options.");
|
|
44526
44647
|
} finally {
|
|
44527
44648
|
l(!1);
|
|
44528
44649
|
}
|
|
44529
44650
|
}, j = qn(async (t) => {
|
|
44530
|
-
let n =
|
|
44651
|
+
let n = Mj(t);
|
|
44531
44652
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
44532
44653
|
d(!0);
|
|
44533
44654
|
try {
|
|
@@ -44536,7 +44657,7 @@ function bj() {
|
|
|
44536
44657
|
offset: 0,
|
|
44537
44658
|
module: n
|
|
44538
44659
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
44539
|
-
a(t), s(
|
|
44660
|
+
a(t), s(Pj(t));
|
|
44540
44661
|
} catch (e) {
|
|
44541
44662
|
console.error("Unable to load flows:", e), J.error("Unable to load flows.");
|
|
44542
44663
|
} finally {
|
|
@@ -44544,14 +44665,14 @@ function bj() {
|
|
|
44544
44665
|
}
|
|
44545
44666
|
}
|
|
44546
44667
|
}, [e]), M = qn(async (t, n, r) => {
|
|
44547
|
-
let i =
|
|
44668
|
+
let i = Mj(t), a = Mj(n);
|
|
44548
44669
|
if (!i || !a) {
|
|
44549
44670
|
e.setFieldsValue({ step_order: void 0 });
|
|
44550
44671
|
return;
|
|
44551
44672
|
}
|
|
44552
44673
|
_(!0);
|
|
44553
44674
|
try {
|
|
44554
|
-
e.setFieldsValue({ step_order:
|
|
44675
|
+
e.setFieldsValue({ step_order: Fj(r, i, a) });
|
|
44555
44676
|
} catch (e) {
|
|
44556
44677
|
console.error("Unable to load step order:", e), J.error("Unable to load step order.");
|
|
44557
44678
|
} finally {
|
|
@@ -44572,15 +44693,15 @@ function bj() {
|
|
|
44572
44693
|
]);
|
|
44573
44694
|
let ee = async (t) => {
|
|
44574
44695
|
let n = {
|
|
44575
|
-
module:
|
|
44576
|
-
flow:
|
|
44696
|
+
module: Mj(t.module),
|
|
44697
|
+
flow: Mj(t.flow),
|
|
44577
44698
|
step_order: Number(t.step_order),
|
|
44578
|
-
description:
|
|
44579
|
-
keyword:
|
|
44580
|
-
target:
|
|
44581
|
-
value:
|
|
44582
|
-
expected:
|
|
44583
|
-
tags: t.tags ?
|
|
44699
|
+
description: Mj(t.description),
|
|
44700
|
+
keyword: Nj(t.keyword),
|
|
44701
|
+
target: Mj(t.target),
|
|
44702
|
+
value: Mj(t.value),
|
|
44703
|
+
expected: Mj(t.expected),
|
|
44704
|
+
tags: t.tags ? Mj(t.tags) : kj.tags,
|
|
44584
44705
|
active: Number(t.active)
|
|
44585
44706
|
};
|
|
44586
44707
|
y(!0);
|
|
@@ -44592,26 +44713,26 @@ function bj() {
|
|
|
44592
44713
|
y(!1);
|
|
44593
44714
|
}
|
|
44594
44715
|
}, N = (t, n) => {
|
|
44595
|
-
e.setFieldsValue({ [t]:
|
|
44716
|
+
e.setFieldsValue({ [t]: Mj(n) });
|
|
44596
44717
|
}, te = (t) => {
|
|
44597
44718
|
e.setFieldsValue({
|
|
44598
|
-
module:
|
|
44719
|
+
module: Mj(t),
|
|
44599
44720
|
flow: void 0,
|
|
44600
44721
|
step_order: void 0,
|
|
44601
44722
|
keyword: void 0,
|
|
44602
44723
|
description: void 0,
|
|
44603
44724
|
target: void 0,
|
|
44604
|
-
tags:
|
|
44725
|
+
tags: kj.tags,
|
|
44605
44726
|
value: void 0,
|
|
44606
44727
|
expected: void 0
|
|
44607
44728
|
});
|
|
44608
44729
|
}, ne = (t) => {
|
|
44609
44730
|
e.setFieldsValue({
|
|
44610
|
-
flow:
|
|
44731
|
+
flow: Mj(t),
|
|
44611
44732
|
step_order: void 0
|
|
44612
44733
|
});
|
|
44613
44734
|
}, re = (e) => {
|
|
44614
|
-
let n =
|
|
44735
|
+
let n = Aj[e];
|
|
44615
44736
|
p({
|
|
44616
44737
|
open: !0,
|
|
44617
44738
|
typeKey: e
|
|
@@ -44626,7 +44747,7 @@ function bj() {
|
|
|
44626
44747
|
})), t.resetFields();
|
|
44627
44748
|
}, ae = async () => {
|
|
44628
44749
|
try {
|
|
44629
|
-
let n =
|
|
44750
|
+
let n = Mj((await t.validateFields()).name), r = await Fx({
|
|
44630
44751
|
name: n,
|
|
44631
44752
|
type: x.dbName
|
|
44632
44753
|
});
|
|
@@ -44644,7 +44765,7 @@ function bj() {
|
|
|
44644
44765
|
align: "middle",
|
|
44645
44766
|
justify: "space-between",
|
|
44646
44767
|
className: "breadcrumb-action-wrapper",
|
|
44647
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
44768
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: Oj }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
44648
44769
|
type: "link",
|
|
44649
44770
|
onClick: () => b("/zinnext-home"),
|
|
44650
44771
|
children: "View Table"
|
|
@@ -44659,7 +44780,7 @@ function bj() {
|
|
|
44659
44780
|
children: /* @__PURE__ */ Z(W, {
|
|
44660
44781
|
align: "center",
|
|
44661
44782
|
size: 10,
|
|
44662
|
-
children: [/* @__PURE__ */ X(Yi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(
|
|
44783
|
+
children: [/* @__PURE__ */ X(Yi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(Dj, {
|
|
44663
44784
|
strong: !0,
|
|
44664
44785
|
style: { fontSize: 16 },
|
|
44665
44786
|
children: "Add Test Case"
|
|
@@ -44675,16 +44796,16 @@ function bj() {
|
|
|
44675
44796
|
className: "v1-required-mark",
|
|
44676
44797
|
children: " *"
|
|
44677
44798
|
})] }),
|
|
44678
|
-
initialValues:
|
|
44799
|
+
initialValues: kj,
|
|
44679
44800
|
onFinish: ee,
|
|
44680
44801
|
autoComplete: "off",
|
|
44681
44802
|
children: [/* @__PURE__ */ X(tr, {
|
|
44682
44803
|
className: "v1-card",
|
|
44683
|
-
title: /* @__PURE__ */ X(
|
|
44804
|
+
title: /* @__PURE__ */ X(Ij, {
|
|
44684
44805
|
icon: /* @__PURE__ */ X(wi, {}),
|
|
44685
44806
|
title: "Test Case Details"
|
|
44686
44807
|
}),
|
|
44687
|
-
extra: /* @__PURE__ */ X(
|
|
44808
|
+
extra: /* @__PURE__ */ X(Dj, {
|
|
44688
44809
|
type: "secondary",
|
|
44689
44810
|
className: "v1-card-subtitle",
|
|
44690
44811
|
children: "Module, flow, step order and execution data"
|
|
@@ -44761,8 +44882,8 @@ function bj() {
|
|
|
44761
44882
|
disabled: O,
|
|
44762
44883
|
optionFilterProp: "label",
|
|
44763
44884
|
placeholder: "Select action",
|
|
44764
|
-
options:
|
|
44765
|
-
onChange: (t) => e.setFieldsValue({ keyword:
|
|
44885
|
+
options: Ej,
|
|
44886
|
+
onChange: (t) => e.setFieldsValue({ keyword: Nj(t) })
|
|
44766
44887
|
})
|
|
44767
44888
|
})
|
|
44768
44889
|
}),
|
|
@@ -44882,7 +45003,7 @@ function bj() {
|
|
|
44882
45003
|
maxLength: 100,
|
|
44883
45004
|
placeholder: `Enter ${x.label.toLowerCase()} name`,
|
|
44884
45005
|
onBlur: (e) => {
|
|
44885
|
-
t.setFieldsValue({ name:
|
|
45006
|
+
t.setFieldsValue({ name: Mj(e.target.value) });
|
|
44886
45007
|
}
|
|
44887
45008
|
})
|
|
44888
45009
|
}), /* @__PURE__ */ X(V.Item, {
|
|
@@ -44899,23 +45020,23 @@ function bj() {
|
|
|
44899
45020
|
}
|
|
44900
45021
|
//#endregion
|
|
44901
45022
|
//#region src/pages/TestingPage/ZinnextTestForm.jsx
|
|
44902
|
-
var { Text:
|
|
45023
|
+
var { Text: Rj } = kr, zj = [{
|
|
44903
45024
|
label: "Home",
|
|
44904
45025
|
href: "/"
|
|
44905
45026
|
}, {
|
|
44906
45027
|
label: "Test Cases",
|
|
44907
45028
|
href: "/addTestCase"
|
|
44908
45029
|
}];
|
|
44909
|
-
function
|
|
45030
|
+
function Bj(e = "") {
|
|
44910
45031
|
return String(e ?? "").trim();
|
|
44911
45032
|
}
|
|
44912
|
-
function
|
|
45033
|
+
function Vj(e = [], t) {
|
|
44913
45034
|
return e.map((e) => ({
|
|
44914
45035
|
value: e.id,
|
|
44915
45036
|
label: e[t]
|
|
44916
45037
|
}));
|
|
44917
45038
|
}
|
|
44918
|
-
var
|
|
45039
|
+
var Hj = [
|
|
44919
45040
|
{
|
|
44920
45041
|
label: "Step",
|
|
44921
45042
|
value: "step_order",
|
|
@@ -44954,22 +45075,22 @@ var Tj = [
|
|
|
44954
45075
|
children: "Negative"
|
|
44955
45076
|
})
|
|
44956
45077
|
}
|
|
44957
|
-
],
|
|
45078
|
+
], Uj = {
|
|
44958
45079
|
key: !1,
|
|
44959
45080
|
value: !1,
|
|
44960
45081
|
expected: !1
|
|
44961
45082
|
};
|
|
44962
|
-
function
|
|
44963
|
-
return t ? e[t] ??
|
|
45083
|
+
function Wj(e, t) {
|
|
45084
|
+
return t ? e[t] ?? Uj : Uj;
|
|
44964
45085
|
}
|
|
44965
|
-
function
|
|
45086
|
+
function Gj(e, t) {
|
|
44966
45087
|
e.setFields(t.map((e) => ({
|
|
44967
45088
|
name: e,
|
|
44968
45089
|
errors: []
|
|
44969
45090
|
})));
|
|
44970
45091
|
}
|
|
44971
|
-
function
|
|
44972
|
-
let [e] = V.useForm(), t = Pa(), [n] = Ia(), r = n.get("edit"), i = !!r, a = L(() => s(), []), [o, c] = R([]), [l, u] = R([]), [d, f] = R([]), [p, m] = R(
|
|
45092
|
+
function Kj() {
|
|
45093
|
+
let [e] = V.useForm(), t = Pa(), [n] = Ia(), r = n.get("edit"), i = !!r, a = L(() => s(), []), [o, c] = R([]), [l, u] = R([]), [d, f] = R([]), [p, m] = R(Ej), [h, g] = R({}), [_, v] = R(!1), [y, b] = R(!1), [x, S] = R(!1), [C, w] = R(!1), [T, E] = R(!1), D = V.useWatch("module", e), O = V.useWatch("submodule", e), k = V.useWatch("actions", e), A = !!D, j = !!O, M = L(() => Wj(h, k), [h, k]), ee = L(() => Vj(o, "modulename"), [o]), N = L(() => Vj(l, "submodulename"), [l]), te = L(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), ne = L(() => l.find((e) => e.id === O)?.submodulename ?? "", [O, l]), re = qn(async () => {
|
|
44973
45094
|
try {
|
|
44974
45095
|
let e = await Ix();
|
|
44975
45096
|
Array.isArray(e?.options) && e.options.length > 0 && m(e.options), e?.rules && typeof e.rules == "object" && g(e.rules);
|
|
@@ -45110,10 +45231,10 @@ function kj() {
|
|
|
45110
45231
|
align: "middle",
|
|
45111
45232
|
justify: "space-between",
|
|
45112
45233
|
className: "breadcrumb-action-wrapper",
|
|
45113
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
45234
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: zj }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ Z(W, {
|
|
45114
45235
|
size: 6,
|
|
45115
45236
|
className: "zt-section-title",
|
|
45116
|
-
children: [/* @__PURE__ */ X(Xi, {}), /* @__PURE__ */ X(
|
|
45237
|
+
children: [/* @__PURE__ */ X(Xi, {}), /* @__PURE__ */ X(Rj, {
|
|
45117
45238
|
strong: !0,
|
|
45118
45239
|
children: a.name
|
|
45119
45240
|
})]
|
|
@@ -45134,11 +45255,11 @@ function kj() {
|
|
|
45134
45255
|
product_parent_ID: Number(a?.id),
|
|
45135
45256
|
module_parent_ID: Number(n.module),
|
|
45136
45257
|
submodule_parent_ID: Number(n.submodule),
|
|
45137
|
-
description:
|
|
45138
|
-
actions:
|
|
45139
|
-
key:
|
|
45140
|
-
value:
|
|
45141
|
-
expected:
|
|
45258
|
+
description: Bj(n.description),
|
|
45259
|
+
actions: Bj(n.actions),
|
|
45260
|
+
key: Bj(n.key),
|
|
45261
|
+
value: Bj(n.value),
|
|
45262
|
+
expected: Bj(n.expected),
|
|
45142
45263
|
scenario: +!!n.scenario,
|
|
45143
45264
|
active: +!!n.active
|
|
45144
45265
|
};
|
|
@@ -45204,7 +45325,7 @@ function kj() {
|
|
|
45204
45325
|
key: void 0,
|
|
45205
45326
|
value: void 0,
|
|
45206
45327
|
expected: void 0
|
|
45207
|
-
}),
|
|
45328
|
+
}), Gj(e, [
|
|
45208
45329
|
"actions",
|
|
45209
45330
|
"key",
|
|
45210
45331
|
"value",
|
|
@@ -45235,7 +45356,7 @@ function kj() {
|
|
|
45235
45356
|
key: void 0,
|
|
45236
45357
|
value: void 0,
|
|
45237
45358
|
expected: void 0
|
|
45238
|
-
}),
|
|
45359
|
+
}), Gj(e, [
|
|
45239
45360
|
"actions",
|
|
45240
45361
|
"key",
|
|
45241
45362
|
"value",
|
|
@@ -45289,7 +45410,7 @@ function kj() {
|
|
|
45289
45410
|
/* @__PURE__ */ X("span", { children: "Step Details" })
|
|
45290
45411
|
]
|
|
45291
45412
|
}),
|
|
45292
|
-
extra: /* @__PURE__ */ Z(
|
|
45413
|
+
extra: /* @__PURE__ */ Z(Rj, {
|
|
45293
45414
|
type: "secondary",
|
|
45294
45415
|
children: [
|
|
45295
45416
|
te,
|
|
@@ -45329,13 +45450,13 @@ function kj() {
|
|
|
45329
45450
|
placeholder: "Select action",
|
|
45330
45451
|
options: p,
|
|
45331
45452
|
onChange: (t) => {
|
|
45332
|
-
let n =
|
|
45453
|
+
let n = Wj(h, t);
|
|
45333
45454
|
e.setFieldsValue({
|
|
45334
45455
|
actions: t,
|
|
45335
45456
|
key: n.key ? e.getFieldValue("key") : void 0,
|
|
45336
45457
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
45337
45458
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
45338
|
-
}),
|
|
45459
|
+
}), Gj(e, [
|
|
45339
45460
|
"key",
|
|
45340
45461
|
"value",
|
|
45341
45462
|
"expected"
|
|
@@ -45444,7 +45565,7 @@ function kj() {
|
|
|
45444
45565
|
children: /* @__PURE__ */ X(Vv, {
|
|
45445
45566
|
listName: "Added Steps",
|
|
45446
45567
|
loading: x,
|
|
45447
|
-
fields:
|
|
45568
|
+
fields: Hj,
|
|
45448
45569
|
dataSource: d,
|
|
45449
45570
|
current: 1,
|
|
45450
45571
|
pageSize: Math.max(d.length, 1),
|
|
@@ -45460,7 +45581,7 @@ function kj() {
|
|
|
45460
45581
|
}
|
|
45461
45582
|
//#endregion
|
|
45462
45583
|
//#region src/pages/TestingPage/ManageModules.jsx
|
|
45463
|
-
var { Text:
|
|
45584
|
+
var { Text: qj } = kr, Jj = [
|
|
45464
45585
|
{
|
|
45465
45586
|
label: "Home",
|
|
45466
45587
|
href: "/"
|
|
@@ -45474,7 +45595,7 @@ var { Text: Aj } = kr, jj = [
|
|
|
45474
45595
|
href: "/manageModules"
|
|
45475
45596
|
}
|
|
45476
45597
|
];
|
|
45477
|
-
function
|
|
45598
|
+
function Yj() {
|
|
45478
45599
|
let e = Pa(), t = L(() => s(), []), [n, r] = R([]), [i, a] = R({}), [o, c] = R(!1), [l, u] = R(!1), [d, f] = R(""), [p, m] = R(!1), [h, g] = R(1), [_, v] = R(10), y = qn(async (e) => {
|
|
45479
45600
|
if (!e) {
|
|
45480
45601
|
r([]);
|
|
@@ -45542,7 +45663,7 @@ function Mj() {
|
|
|
45542
45663
|
align: "middle",
|
|
45543
45664
|
justify: "space-between",
|
|
45544
45665
|
className: "breadcrumb-action-wrapper",
|
|
45545
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
45666
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: Jj }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
45546
45667
|
type: "link",
|
|
45547
45668
|
onClick: () => e("/addTestCase"),
|
|
45548
45669
|
children: "Back to Form"
|
|
@@ -45562,7 +45683,7 @@ function Mj() {
|
|
|
45562
45683
|
children: [
|
|
45563
45684
|
/* @__PURE__ */ X(Xi, {}),
|
|
45564
45685
|
/* @__PURE__ */ X("span", { children: "Project:" }),
|
|
45565
|
-
/* @__PURE__ */ X(
|
|
45686
|
+
/* @__PURE__ */ X(qj, {
|
|
45566
45687
|
strong: !0,
|
|
45567
45688
|
children: t.name
|
|
45568
45689
|
})
|
|
@@ -45638,7 +45759,7 @@ function Mj() {
|
|
|
45638
45759
|
children: /* @__PURE__ */ Z(W, {
|
|
45639
45760
|
direction: "vertical",
|
|
45640
45761
|
className: "zt-modal-stack",
|
|
45641
|
-
children: [/* @__PURE__ */ Z(
|
|
45762
|
+
children: [/* @__PURE__ */ Z(qj, {
|
|
45642
45763
|
type: "secondary",
|
|
45643
45764
|
children: ["Project: ", /* @__PURE__ */ X("b", { children: t.name })]
|
|
45644
45765
|
}), /* @__PURE__ */ X(H, {
|
|
@@ -45655,7 +45776,7 @@ function Mj() {
|
|
|
45655
45776
|
}
|
|
45656
45777
|
//#endregion
|
|
45657
45778
|
//#region src/pages/TestingPage/ManageSubmodules.jsx
|
|
45658
|
-
var { Text:
|
|
45779
|
+
var { Text: Xj } = kr, Zj = [
|
|
45659
45780
|
{
|
|
45660
45781
|
label: "Home",
|
|
45661
45782
|
href: "/"
|
|
@@ -45673,7 +45794,7 @@ var { Text: Nj } = kr, Pj = [
|
|
|
45673
45794
|
href: "/test-cases/zinnext/submodules"
|
|
45674
45795
|
}
|
|
45675
45796
|
];
|
|
45676
|
-
function
|
|
45797
|
+
function Qj() {
|
|
45677
45798
|
let e = Pa(), [t] = Ia(), n = L(() => s(), []), r = t.get("module") ?? "", [i, a] = R([]), [o, c] = R(!1), [l, u] = R(!1), [d, f] = R(""), [p, m] = R(!1), [h, g] = R(1), [_, v] = R(10), y = qn(async (e, t) => {
|
|
45678
45799
|
if (!e || !t) {
|
|
45679
45800
|
a([]);
|
|
@@ -45742,7 +45863,7 @@ function Fj() {
|
|
|
45742
45863
|
align: "middle",
|
|
45743
45864
|
justify: "space-between",
|
|
45744
45865
|
className: "breadcrumb-action-wrapper",
|
|
45745
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
45866
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: Zj }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
45746
45867
|
type: "link",
|
|
45747
45868
|
onClick: () => e("/manageModules"),
|
|
45748
45869
|
children: "Back to Modules"
|
|
@@ -45765,7 +45886,7 @@ function Fj() {
|
|
|
45765
45886
|
children: [
|
|
45766
45887
|
/* @__PURE__ */ X(Xi, {}),
|
|
45767
45888
|
/* @__PURE__ */ X("span", { children: "Project:" }),
|
|
45768
|
-
/* @__PURE__ */ X(
|
|
45889
|
+
/* @__PURE__ */ X(Xj, {
|
|
45769
45890
|
strong: !0,
|
|
45770
45891
|
children: n.name
|
|
45771
45892
|
})
|
|
@@ -45775,7 +45896,7 @@ function Fj() {
|
|
|
45775
45896
|
children: [
|
|
45776
45897
|
/* @__PURE__ */ X(Fr, {}),
|
|
45777
45898
|
/* @__PURE__ */ X("span", { children: "Module:" }),
|
|
45778
|
-
/* @__PURE__ */ X(
|
|
45899
|
+
/* @__PURE__ */ X(Xj, {
|
|
45779
45900
|
strong: !0,
|
|
45780
45901
|
children: r
|
|
45781
45902
|
})
|
|
@@ -45838,7 +45959,7 @@ function Fj() {
|
|
|
45838
45959
|
children: /* @__PURE__ */ Z(W, {
|
|
45839
45960
|
direction: "vertical",
|
|
45840
45961
|
className: "zt-modal-stack",
|
|
45841
|
-
children: [/* @__PURE__ */ Z(
|
|
45962
|
+
children: [/* @__PURE__ */ Z(Xj, {
|
|
45842
45963
|
type: "secondary",
|
|
45843
45964
|
children: [
|
|
45844
45965
|
"Project: ",
|
|
@@ -45860,7 +45981,7 @@ function Fj() {
|
|
|
45860
45981
|
}
|
|
45861
45982
|
//#endregion
|
|
45862
45983
|
//#region src/pages/TestingPage/ZinnextTableView.jsx
|
|
45863
|
-
var { Text:
|
|
45984
|
+
var { Text: $j } = kr, eM = [
|
|
45864
45985
|
{
|
|
45865
45986
|
label: "Home",
|
|
45866
45987
|
href: "/"
|
|
@@ -45874,7 +45995,7 @@ var { Text: Ij } = kr, Lj = [
|
|
|
45874
45995
|
href: "/viewTestCase"
|
|
45875
45996
|
}
|
|
45876
45997
|
];
|
|
45877
|
-
function
|
|
45998
|
+
function tM() {
|
|
45878
45999
|
let e = Pa(), [t, n] = R([]), [r, i] = R(0), [a, o] = R(!1), c = L(() => s(), []), [l, u] = R(""), [d, f] = R(1), [p, m] = R(20), [h, g] = R(null), _ = qn(async (e = {}) => {
|
|
45879
46000
|
o(!0);
|
|
45880
46001
|
try {
|
|
@@ -45934,7 +46055,7 @@ function Rj() {
|
|
|
45934
46055
|
align: "middle",
|
|
45935
46056
|
justify: "space-between",
|
|
45936
46057
|
className: "breadcrumb-action-wrapper",
|
|
45937
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
46058
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: eM }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
45938
46059
|
type: "link",
|
|
45939
46060
|
onClick: () => e("/addTestCase"),
|
|
45940
46061
|
children: "Back to Form"
|
|
@@ -45948,7 +46069,7 @@ function Rj() {
|
|
|
45948
46069
|
className: "zt-section-title",
|
|
45949
46070
|
children: [/* @__PURE__ */ X(pa, {}), /* @__PURE__ */ X("span", { children: "Test Flows" })]
|
|
45950
46071
|
}),
|
|
45951
|
-
extra: /* @__PURE__ */ Z(
|
|
46072
|
+
extra: /* @__PURE__ */ Z($j, {
|
|
45952
46073
|
type: "secondary",
|
|
45953
46074
|
children: [r, " row(s)"]
|
|
45954
46075
|
}),
|
|
@@ -46102,17 +46223,17 @@ function Rj() {
|
|
|
46102
46223
|
}
|
|
46103
46224
|
//#endregion
|
|
46104
46225
|
//#region src/pages/TestingPage/testHomePage.jsx
|
|
46105
|
-
var
|
|
46226
|
+
var nM = [{
|
|
46106
46227
|
label: "Home",
|
|
46107
46228
|
href: "/"
|
|
46108
46229
|
}, {
|
|
46109
46230
|
label: "Test Cases",
|
|
46110
46231
|
href: "/test-cases"
|
|
46111
46232
|
}];
|
|
46112
|
-
function
|
|
46233
|
+
function rM() {
|
|
46113
46234
|
return /* @__PURE__ */ Z("main", {
|
|
46114
46235
|
className: "jobs-list-page",
|
|
46115
|
-
children: [/* @__PURE__ */ X(Sn, { items:
|
|
46236
|
+
children: [/* @__PURE__ */ X(Sn, { items: nM }), /* @__PURE__ */ X(hf, {
|
|
46116
46237
|
moduleName: "test-flows",
|
|
46117
46238
|
rowKey: "id"
|
|
46118
46239
|
})]
|
|
@@ -46120,85 +46241,85 @@ function Bj() {
|
|
|
46120
46241
|
}
|
|
46121
46242
|
//#endregion
|
|
46122
46243
|
//#region src/pages/TestingPage/lms-test-form.jsx
|
|
46123
|
-
var { Text:
|
|
46244
|
+
var { Text: iM } = kr, aM = [{
|
|
46124
46245
|
label: "Home",
|
|
46125
46246
|
href: "/"
|
|
46126
46247
|
}, {
|
|
46127
46248
|
label: "LMS Cases",
|
|
46128
46249
|
href: "/lms-cases"
|
|
46129
|
-
}],
|
|
46250
|
+
}], oM = {
|
|
46130
46251
|
tags: "regression",
|
|
46131
46252
|
active: 1
|
|
46132
|
-
},
|
|
46253
|
+
}, sM = { module: {
|
|
46133
46254
|
dbName: "Modules",
|
|
46134
46255
|
formField: "module",
|
|
46135
46256
|
label: "Module"
|
|
46136
|
-
} },
|
|
46257
|
+
} }, cM = {
|
|
46137
46258
|
key: !1,
|
|
46138
46259
|
value: !1,
|
|
46139
46260
|
expected: !1
|
|
46140
46261
|
};
|
|
46141
|
-
function
|
|
46142
|
-
return t ? e[t] ??
|
|
46262
|
+
function lM(e, t) {
|
|
46263
|
+
return t ? e[t] ?? cM : cM;
|
|
46143
46264
|
}
|
|
46144
|
-
function
|
|
46265
|
+
function uM(e, t) {
|
|
46145
46266
|
e.setFields(t.map((e) => ({
|
|
46146
46267
|
name: e,
|
|
46147
46268
|
errors: []
|
|
46148
46269
|
})));
|
|
46149
46270
|
}
|
|
46150
|
-
function
|
|
46271
|
+
function dM(e = []) {
|
|
46151
46272
|
return e.map((e) => ({
|
|
46152
46273
|
value: e,
|
|
46153
46274
|
label: e
|
|
46154
46275
|
}));
|
|
46155
46276
|
}
|
|
46156
|
-
function
|
|
46277
|
+
function fM(e = "") {
|
|
46157
46278
|
return String(e ?? "").trim();
|
|
46158
46279
|
}
|
|
46159
|
-
function
|
|
46280
|
+
function pM(e = []) {
|
|
46160
46281
|
let t = /* @__PURE__ */ new Map();
|
|
46161
46282
|
return e.forEach((e) => {
|
|
46162
|
-
let n =
|
|
46283
|
+
let n = fM(e?.flow), r = n.toLowerCase();
|
|
46163
46284
|
n && !t.has(r) && t.set(r, n);
|
|
46164
46285
|
}), Array.from(t.values()).map((e) => ({
|
|
46165
46286
|
value: e,
|
|
46166
46287
|
label: e
|
|
46167
46288
|
}));
|
|
46168
46289
|
}
|
|
46169
|
-
function
|
|
46170
|
-
let r =
|
|
46290
|
+
function mM(e = [], t, n) {
|
|
46291
|
+
let r = fM(t).toLowerCase(), i = fM(n).toLowerCase();
|
|
46171
46292
|
return e.reduce((e, t) => {
|
|
46172
|
-
let n =
|
|
46293
|
+
let n = fM(t?.module).toLowerCase(), a = fM(t?.flow).toLowerCase();
|
|
46173
46294
|
if (n !== r || a !== i) return e;
|
|
46174
46295
|
let o = Number(t?.step_order) || 0;
|
|
46175
46296
|
return Math.max(e, o);
|
|
46176
46297
|
}, 0) + 1;
|
|
46177
46298
|
}
|
|
46178
|
-
function
|
|
46299
|
+
function hM({ icon: e, title: t }) {
|
|
46179
46300
|
return /* @__PURE__ */ Z(W, {
|
|
46180
46301
|
size: 10,
|
|
46181
46302
|
align: "center",
|
|
46182
46303
|
children: [/* @__PURE__ */ X("div", {
|
|
46183
46304
|
className: "v1-section-icon-box",
|
|
46184
46305
|
children: e
|
|
46185
|
-
}), /* @__PURE__ */ X(
|
|
46306
|
+
}), /* @__PURE__ */ X(iM, {
|
|
46186
46307
|
strong: !0,
|
|
46187
46308
|
className: "v1-section-label",
|
|
46188
46309
|
children: t
|
|
46189
46310
|
})]
|
|
46190
46311
|
});
|
|
46191
46312
|
}
|
|
46192
|
-
function
|
|
46193
|
-
let [e] = V.useForm(), [t] = V.useForm(), [n, r] = R([]), [i, a] = R([]), [o, s] = R([]), [c, l] = R(
|
|
46313
|
+
function gM() {
|
|
46314
|
+
let [e] = V.useForm(), [t] = V.useForm(), [n, r] = R([]), [i, a] = R([]), [o, s] = R([]), [c, l] = R(Ej), [u, d] = R({}), [f, p] = R(!1), [m, h] = R(!1), [g, _] = R({
|
|
46194
46315
|
open: !1,
|
|
46195
46316
|
typeKey: "module"
|
|
46196
|
-
}), [v, y] = R(!1), [b, x] = R(!1), [S, C] = R(!1), w = Pa(), T =
|
|
46317
|
+
}), [v, y] = R(!1), [b, x] = R(!1), [S, C] = R(!1), w = Pa(), T = sM[g.typeKey], E = L(() => dM(n), [n]), D = V.useWatch("module", e), O = V.useWatch("flow", e), k = V.useWatch("keyword", e), A = !!fM(D), j = !!fM(O), M = !A, ee = !A || !j, N = L(() => lM(u, k), [u, k]), te = (e, t = []) => {
|
|
46197
46318
|
e === "module" && r(t);
|
|
46198
46319
|
}, ne = async () => {
|
|
46199
46320
|
p(!0);
|
|
46200
46321
|
try {
|
|
46201
|
-
r((await Px(
|
|
46322
|
+
r((await Px(sM.module.dbName))?.items ?? []);
|
|
46202
46323
|
} catch (e) {
|
|
46203
46324
|
console.error("Unable to load testing options:", e), J.error("Unable to load testing options.");
|
|
46204
46325
|
} finally {
|
|
@@ -46212,7 +46333,7 @@ function $j() {
|
|
|
46212
46333
|
console.error("Unable to load action field rules:", e), J.error("Unable to load action validation rules.");
|
|
46213
46334
|
}
|
|
46214
46335
|
}, ie = qn(async (t) => {
|
|
46215
|
-
let n =
|
|
46336
|
+
let n = fM(t);
|
|
46216
46337
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
46217
46338
|
h(!0);
|
|
46218
46339
|
try {
|
|
@@ -46221,7 +46342,7 @@ function $j() {
|
|
|
46221
46342
|
offset: 0,
|
|
46222
46343
|
module: n
|
|
46223
46344
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
46224
|
-
a(t), s(
|
|
46345
|
+
a(t), s(pM(t));
|
|
46225
46346
|
} catch (e) {
|
|
46226
46347
|
console.error("Unable to load flows:", e), J.error("Unable to load flows.");
|
|
46227
46348
|
} finally {
|
|
@@ -46229,14 +46350,14 @@ function $j() {
|
|
|
46229
46350
|
}
|
|
46230
46351
|
}
|
|
46231
46352
|
}, [e]), ae = qn(async (t, n, r) => {
|
|
46232
|
-
let i =
|
|
46353
|
+
let i = fM(t), a = fM(n);
|
|
46233
46354
|
if (!i || !a) {
|
|
46234
46355
|
e.setFieldsValue({ step_order: void 0 });
|
|
46235
46356
|
return;
|
|
46236
46357
|
}
|
|
46237
46358
|
x(!0);
|
|
46238
46359
|
try {
|
|
46239
|
-
e.setFieldsValue({ step_order:
|
|
46360
|
+
e.setFieldsValue({ step_order: mM(r, i, a) });
|
|
46240
46361
|
} catch (e) {
|
|
46241
46362
|
console.error("Unable to load step order:", e), J.error("Unable to load step order.");
|
|
46242
46363
|
} finally {
|
|
@@ -46259,15 +46380,15 @@ function $j() {
|
|
|
46259
46380
|
]);
|
|
46260
46381
|
let oe = async (t) => {
|
|
46261
46382
|
let n = {
|
|
46262
|
-
module:
|
|
46263
|
-
flow:
|
|
46383
|
+
module: fM(t.module),
|
|
46384
|
+
flow: fM(t.flow),
|
|
46264
46385
|
step_order: Number(t.step_order),
|
|
46265
|
-
description:
|
|
46266
|
-
keyword:
|
|
46267
|
-
target:
|
|
46268
|
-
value:
|
|
46269
|
-
expected:
|
|
46270
|
-
tags: t.tags ?
|
|
46386
|
+
description: fM(t.description),
|
|
46387
|
+
keyword: fM(t.keyword),
|
|
46388
|
+
target: fM(t.target),
|
|
46389
|
+
value: fM(t.value),
|
|
46390
|
+
expected: fM(t.expected),
|
|
46391
|
+
tags: t.tags ? fM(t.tags) : oM.tags,
|
|
46271
46392
|
active: Number(t.active)
|
|
46272
46393
|
};
|
|
46273
46394
|
C(!0);
|
|
@@ -46279,19 +46400,19 @@ function $j() {
|
|
|
46279
46400
|
C(!1);
|
|
46280
46401
|
}
|
|
46281
46402
|
}, se = (t, n) => {
|
|
46282
|
-
e.setFieldsValue({ [t]:
|
|
46403
|
+
e.setFieldsValue({ [t]: fM(n) });
|
|
46283
46404
|
}, P = (t) => {
|
|
46284
46405
|
e.setFieldsValue({
|
|
46285
|
-
module:
|
|
46406
|
+
module: fM(t),
|
|
46286
46407
|
flow: void 0,
|
|
46287
46408
|
step_order: void 0,
|
|
46288
46409
|
keyword: void 0,
|
|
46289
46410
|
description: void 0,
|
|
46290
46411
|
target: void 0,
|
|
46291
|
-
tags:
|
|
46412
|
+
tags: oM.tags,
|
|
46292
46413
|
value: void 0,
|
|
46293
46414
|
expected: void 0
|
|
46294
|
-
}),
|
|
46415
|
+
}), uM(e, [
|
|
46295
46416
|
"keyword",
|
|
46296
46417
|
"target",
|
|
46297
46418
|
"value",
|
|
@@ -46299,32 +46420,32 @@ function $j() {
|
|
|
46299
46420
|
]);
|
|
46300
46421
|
}, ce = (t) => {
|
|
46301
46422
|
e.setFieldsValue({
|
|
46302
|
-
flow:
|
|
46423
|
+
flow: fM(t),
|
|
46303
46424
|
step_order: void 0,
|
|
46304
46425
|
keyword: void 0,
|
|
46305
46426
|
target: void 0,
|
|
46306
46427
|
value: void 0,
|
|
46307
46428
|
expected: void 0
|
|
46308
|
-
}),
|
|
46429
|
+
}), uM(e, [
|
|
46309
46430
|
"keyword",
|
|
46310
46431
|
"target",
|
|
46311
46432
|
"value",
|
|
46312
46433
|
"expected"
|
|
46313
46434
|
]);
|
|
46314
46435
|
}, le = (t) => {
|
|
46315
|
-
let n =
|
|
46436
|
+
let n = lM(u, t);
|
|
46316
46437
|
e.setFieldsValue({
|
|
46317
|
-
keyword:
|
|
46438
|
+
keyword: fM(t),
|
|
46318
46439
|
target: n.key ? e.getFieldValue("target") : void 0,
|
|
46319
46440
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
46320
46441
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
46321
|
-
}),
|
|
46442
|
+
}), uM(e, [
|
|
46322
46443
|
"target",
|
|
46323
46444
|
"value",
|
|
46324
46445
|
"expected"
|
|
46325
46446
|
]);
|
|
46326
46447
|
}, ue = (e) => {
|
|
46327
|
-
let n =
|
|
46448
|
+
let n = sM[e];
|
|
46328
46449
|
_({
|
|
46329
46450
|
open: !0,
|
|
46330
46451
|
typeKey: e
|
|
@@ -46339,7 +46460,7 @@ function $j() {
|
|
|
46339
46460
|
})), t.resetFields();
|
|
46340
46461
|
}, fe = async () => {
|
|
46341
46462
|
try {
|
|
46342
|
-
let n =
|
|
46463
|
+
let n = fM((await t.validateFields()).name), r = await Fx({
|
|
46343
46464
|
name: n,
|
|
46344
46465
|
type: T.dbName
|
|
46345
46466
|
});
|
|
@@ -46357,7 +46478,7 @@ function $j() {
|
|
|
46357
46478
|
align: "middle",
|
|
46358
46479
|
justify: "space-between",
|
|
46359
46480
|
className: "breadcrumb-action-wrapper",
|
|
46360
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
46481
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: aM }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
46361
46482
|
type: "link",
|
|
46362
46483
|
onClick: () => w("/lms-home"),
|
|
46363
46484
|
children: "View Table"
|
|
@@ -46372,7 +46493,7 @@ function $j() {
|
|
|
46372
46493
|
children: /* @__PURE__ */ Z(W, {
|
|
46373
46494
|
align: "center",
|
|
46374
46495
|
size: 10,
|
|
46375
|
-
children: [/* @__PURE__ */ X(Yi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(
|
|
46496
|
+
children: [/* @__PURE__ */ X(Yi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(iM, {
|
|
46376
46497
|
strong: !0,
|
|
46377
46498
|
style: { fontSize: 16 },
|
|
46378
46499
|
children: "Add LMS Case"
|
|
@@ -46388,16 +46509,16 @@ function $j() {
|
|
|
46388
46509
|
className: "v1-required-mark",
|
|
46389
46510
|
children: " *"
|
|
46390
46511
|
})] }),
|
|
46391
|
-
initialValues:
|
|
46512
|
+
initialValues: oM,
|
|
46392
46513
|
onFinish: oe,
|
|
46393
46514
|
autoComplete: "off",
|
|
46394
46515
|
children: [/* @__PURE__ */ X(tr, {
|
|
46395
46516
|
className: "v1-card",
|
|
46396
|
-
title: /* @__PURE__ */ X(
|
|
46517
|
+
title: /* @__PURE__ */ X(hM, {
|
|
46397
46518
|
icon: /* @__PURE__ */ X(wi, {}),
|
|
46398
46519
|
title: "LMS Case Details"
|
|
46399
46520
|
}),
|
|
46400
|
-
extra: /* @__PURE__ */ X(
|
|
46521
|
+
extra: /* @__PURE__ */ X(iM, {
|
|
46401
46522
|
type: "secondary",
|
|
46402
46523
|
className: "v1-card-subtitle",
|
|
46403
46524
|
children: "Module, flow, step order and execution data"
|
|
@@ -46607,7 +46728,7 @@ function $j() {
|
|
|
46607
46728
|
maxLength: 100,
|
|
46608
46729
|
placeholder: `Enter ${T.label.toLowerCase()} name`,
|
|
46609
46730
|
onBlur: (e) => {
|
|
46610
|
-
t.setFieldsValue({ name:
|
|
46731
|
+
t.setFieldsValue({ name: fM(e.target.value) });
|
|
46611
46732
|
}
|
|
46612
46733
|
})
|
|
46613
46734
|
}), /* @__PURE__ */ X(V.Item, {
|
|
@@ -46624,17 +46745,17 @@ function $j() {
|
|
|
46624
46745
|
}
|
|
46625
46746
|
//#endregion
|
|
46626
46747
|
//#region src/pages/TestingPage/lmsHomePage.jsx
|
|
46627
|
-
var
|
|
46748
|
+
var _M = [{
|
|
46628
46749
|
label: "Home",
|
|
46629
46750
|
href: "/"
|
|
46630
46751
|
}, {
|
|
46631
46752
|
label: "LMS Cases",
|
|
46632
46753
|
href: "/lms-cases"
|
|
46633
46754
|
}];
|
|
46634
|
-
function
|
|
46755
|
+
function vM() {
|
|
46635
46756
|
return /* @__PURE__ */ Z("main", {
|
|
46636
46757
|
className: "jobs-list-page",
|
|
46637
|
-
children: [/* @__PURE__ */ X(Sn, { items:
|
|
46758
|
+
children: [/* @__PURE__ */ X(Sn, { items: _M }), /* @__PURE__ */ X(hf, {
|
|
46638
46759
|
moduleName: "lms-flows",
|
|
46639
46760
|
rowKey: "id"
|
|
46640
46761
|
})]
|
|
@@ -46642,7 +46763,7 @@ function tM() {
|
|
|
46642
46763
|
}
|
|
46643
46764
|
//#endregion
|
|
46644
46765
|
//#region src/services/mergedListApi.js
|
|
46645
|
-
var
|
|
46766
|
+
var yM = [
|
|
46646
46767
|
"referenceId",
|
|
46647
46768
|
"ReferenceId",
|
|
46648
46769
|
"candidateId",
|
|
@@ -46653,7 +46774,7 @@ var nM = [
|
|
|
46653
46774
|
"Id",
|
|
46654
46775
|
"_id"
|
|
46655
46776
|
];
|
|
46656
|
-
function
|
|
46777
|
+
function bM(e = yM) {
|
|
46657
46778
|
return function(t) {
|
|
46658
46779
|
if (!t || typeof t != "object") return "";
|
|
46659
46780
|
for (let n of e) {
|
|
@@ -46663,7 +46784,7 @@ function rM(e = nM) {
|
|
|
46663
46784
|
return "";
|
|
46664
46785
|
};
|
|
46665
46786
|
}
|
|
46666
|
-
function
|
|
46787
|
+
function xM(e, t = yM) {
|
|
46667
46788
|
if (!e || typeof e != "object") return [];
|
|
46668
46789
|
let n = [];
|
|
46669
46790
|
for (let r of t) {
|
|
@@ -46672,18 +46793,18 @@ function iM(e, t = nM) {
|
|
|
46672
46793
|
}
|
|
46673
46794
|
return n;
|
|
46674
46795
|
}
|
|
46675
|
-
var
|
|
46676
|
-
function
|
|
46677
|
-
return typeof e == "function" ? e : typeof e == "string" ?
|
|
46796
|
+
var SM = bM();
|
|
46797
|
+
function CM(e) {
|
|
46798
|
+
return typeof e == "function" ? e : typeof e == "string" ? bM([e]) : Array.isArray(e) ? bM(e) : SM;
|
|
46678
46799
|
}
|
|
46679
|
-
function
|
|
46800
|
+
function wM(e, t, n) {
|
|
46680
46801
|
return !t || typeof t != "object" ? e : {
|
|
46681
46802
|
...t,
|
|
46682
46803
|
...e,
|
|
46683
46804
|
id: t.id ?? e.id ?? n
|
|
46684
46805
|
};
|
|
46685
46806
|
}
|
|
46686
|
-
function
|
|
46807
|
+
function TM(e, t, n = {}) {
|
|
46687
46808
|
return {
|
|
46688
46809
|
status: "success",
|
|
46689
46810
|
total: t,
|
|
@@ -46693,7 +46814,7 @@ function cM(e, t, n = {}) {
|
|
|
46693
46814
|
}
|
|
46694
46815
|
};
|
|
46695
46816
|
}
|
|
46696
|
-
var
|
|
46817
|
+
var EM = [
|
|
46697
46818
|
"fields",
|
|
46698
46819
|
"fieldConfig",
|
|
46699
46820
|
"tabs",
|
|
@@ -46702,17 +46823,17 @@ var lM = [
|
|
|
46702
46823
|
"actions",
|
|
46703
46824
|
"columnActions"
|
|
46704
46825
|
];
|
|
46705
|
-
function
|
|
46826
|
+
function DM(e) {
|
|
46706
46827
|
let t = e?.data ?? e, n = {};
|
|
46707
|
-
for (let r of
|
|
46828
|
+
for (let r of EM) {
|
|
46708
46829
|
let i = e?.[r] ?? t?.[r];
|
|
46709
46830
|
i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
|
|
46710
46831
|
}
|
|
46711
46832
|
return n;
|
|
46712
46833
|
}
|
|
46713
|
-
var
|
|
46714
|
-
function
|
|
46715
|
-
let r = (Array.isArray(n) ? n : [n]).map(
|
|
46834
|
+
var OM = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
|
|
46835
|
+
function kM(e, t, n) {
|
|
46836
|
+
let r = (Array.isArray(n) ? n : [n]).map(OM).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(OM(e?.value)) || r.includes(OM(e?.label))) : -1;
|
|
46716
46837
|
if (i === -1) return [...e, ...t];
|
|
46717
46838
|
let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
|
|
46718
46839
|
...e,
|
|
@@ -46724,18 +46845,18 @@ function fM(e, t, n) {
|
|
|
46724
46845
|
...e.slice(i + 1)
|
|
46725
46846
|
];
|
|
46726
46847
|
}
|
|
46727
|
-
var
|
|
46848
|
+
var AM = (e, t) => ql(e, t).rows, jM = (e, t) => {
|
|
46728
46849
|
let { rows: n, total: r } = ql(e, t);
|
|
46729
46850
|
return {
|
|
46730
46851
|
rows: n,
|
|
46731
46852
|
total: r
|
|
46732
46853
|
};
|
|
46733
46854
|
};
|
|
46734
|
-
function
|
|
46735
|
-
let m =
|
|
46855
|
+
function MM({ fetchPrimaryPage: e, extractPrimaryPage: t = jM, fetchSecondaryByKeys: n, fetchPrimary: r, extractPrimaryRows: i = AM, fetchSecondary: a, extractSecondaryRows: o = AM, fetchSecondaryById: s, primaryKey: c, secondaryKey: l, mergeRow: u = wM, secondaryFetchLimit: d = 200, extraFields: f = [], extraFieldsAfter: p }) {
|
|
46856
|
+
let m = CM(c), h = typeof l == "function" ? (e) => {
|
|
46736
46857
|
let t = l(e);
|
|
46737
46858
|
return t ? [String(t)] : [];
|
|
46738
|
-
} : (e) =>
|
|
46859
|
+
} : (e) => xM(e, typeof l == "string" ? [l] : Array.isArray(l) ? l : yM), g = 0;
|
|
46739
46860
|
function _(e) {
|
|
46740
46861
|
let t = /* @__PURE__ */ new Map();
|
|
46741
46862
|
return e.forEach((e) => {
|
|
@@ -46761,10 +46882,10 @@ function hM({ fetchPrimaryPage: e, extractPrimaryPage: t = mM, fetchSecondaryByK
|
|
|
46761
46882
|
let r = {};
|
|
46762
46883
|
for (let e of n) {
|
|
46763
46884
|
if (!e) continue;
|
|
46764
|
-
let t =
|
|
46885
|
+
let t = DM(e);
|
|
46765
46886
|
for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
|
|
46766
46887
|
}
|
|
46767
|
-
return f.length && (r.fields =
|
|
46888
|
+
return f.length && (r.fields = kM(r.fields ?? [], f, p)), TM(e, t, r);
|
|
46768
46889
|
}
|
|
46769
46890
|
async function x(r, i, a, s, c) {
|
|
46770
46891
|
let l = await e(r, i, a, s), u = t(l, r) ?? {}, d = Array.isArray(u.rows) ? u.rows : [], f = Number.isFinite(Number(u.total)) ? Number(u.total) : d.length, p = [...new Set(d.map(m).filter(Boolean))], h = null, g = [];
|
|
@@ -46790,25 +46911,25 @@ function hM({ fetchPrimaryPage: e, extractPrimaryPage: t = mM, fetchSecondaryByK
|
|
|
46790
46911
|
}
|
|
46791
46912
|
//#endregion
|
|
46792
46913
|
//#region src/services/workflowModuleListApi.js
|
|
46793
|
-
function
|
|
46794
|
-
return
|
|
46795
|
-
fetchPrimary: () =>
|
|
46796
|
-
extractPrimaryRows:
|
|
46914
|
+
function NM(e, t, n = {}) {
|
|
46915
|
+
return MM({
|
|
46916
|
+
fetchPrimary: () => JO(e, t),
|
|
46917
|
+
extractPrimaryRows: GO,
|
|
46797
46918
|
fetchSecondary: Ec,
|
|
46798
|
-
fetchSecondaryById:
|
|
46919
|
+
fetchSecondaryById: YO,
|
|
46799
46920
|
secondaryFetchLimit: n.moduleFetchLimit ?? 200
|
|
46800
46921
|
});
|
|
46801
46922
|
}
|
|
46802
|
-
function
|
|
46923
|
+
function PM(e) {
|
|
46803
46924
|
let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
|
|
46804
46925
|
return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
|
|
46805
46926
|
}
|
|
46806
|
-
function
|
|
46927
|
+
function FM(e) {
|
|
46807
46928
|
let t = Array.isArray(e?.stages) ? e.stages : [];
|
|
46808
46929
|
if (!t.length) return e;
|
|
46809
46930
|
let n = {};
|
|
46810
46931
|
for (let e of t) {
|
|
46811
|
-
let t =
|
|
46932
|
+
let t = PM(e?.stageName);
|
|
46812
46933
|
t && (n[t] = Number(e?.count) || 0);
|
|
46813
46934
|
}
|
|
46814
46935
|
return {
|
|
@@ -46816,25 +46937,25 @@ function vM(e) {
|
|
|
46816
46937
|
...e
|
|
46817
46938
|
};
|
|
46818
46939
|
}
|
|
46819
|
-
var
|
|
46940
|
+
var IM = (e) => {
|
|
46820
46941
|
let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
|
|
46821
46942
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
46822
46943
|
};
|
|
46823
|
-
function
|
|
46944
|
+
function LM({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
|
|
46824
46945
|
return function(n, r, i) {
|
|
46825
|
-
let a =
|
|
46946
|
+
let a = wM(n, r, i), o = IM(a);
|
|
46826
46947
|
return o != null && (console.log("mergeJobWorkflowRow", i, a?.[e], o), a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
|
|
46827
46948
|
};
|
|
46828
46949
|
}
|
|
46829
|
-
function
|
|
46830
|
-
let t =
|
|
46950
|
+
function RM(e = {}) {
|
|
46951
|
+
let t = LM(), n = MM({
|
|
46831
46952
|
primaryKey: "_id",
|
|
46832
46953
|
secondaryKey: "entityId",
|
|
46833
46954
|
extraFields: e.extraFields,
|
|
46834
46955
|
extraFieldsAfter: e.extraFieldsAfter,
|
|
46835
46956
|
fetchPrimaryPage: Ec,
|
|
46836
|
-
fetchSecondaryByKeys: () =>
|
|
46837
|
-
extractSecondaryRows: (e) => (e?.items ?? []).map(
|
|
46957
|
+
fetchSecondaryByKeys: () => qO(),
|
|
46958
|
+
extractSecondaryRows: (e) => (e?.items ?? []).map(FM),
|
|
46838
46959
|
mergeRow: (e, n, r) => {
|
|
46839
46960
|
let i = t(e, n, r);
|
|
46840
46961
|
return n?._id && (i.workflowId = n._id), i;
|
|
@@ -46844,16 +46965,16 @@ function xM(e = {}) {
|
|
|
46844
46965
|
return await n(e, t, r, i);
|
|
46845
46966
|
};
|
|
46846
46967
|
}
|
|
46847
|
-
async function
|
|
46848
|
-
return ql(await
|
|
46968
|
+
async function zM(e, t = 10, n = 0, r = {}, i = {}) {
|
|
46969
|
+
return ql(await RM(i)(e, t, n, r), e);
|
|
46849
46970
|
}
|
|
46850
|
-
async function
|
|
46851
|
-
return ql(await
|
|
46971
|
+
async function BM(e, t, n, r = 10, i = 0, a = {}) {
|
|
46972
|
+
return ql(await NM(e, t)(n, r, i, a), n);
|
|
46852
46973
|
}
|
|
46853
46974
|
//#endregion
|
|
46854
46975
|
//#region src/index.js
|
|
46855
|
-
var
|
|
46976
|
+
var VM = dA, HM = iS(cj), UM = iS(uj), WM = iS(Tj), GM = iS(Lj), KM = iS(Kj), qM = iS(Yj), JM = iS(Qj), YM = iS(tM), XM = iS(rM), ZM = iS(gM), QM = iS(vM);
|
|
46856
46977
|
//#endregion
|
|
46857
|
-
export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, Xp as ActivityTab,
|
|
46978
|
+
export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, Xp as ActivityTab, Jk as AddBatchCandidatePopup, Pp as AddFormV1, dA as AdminDashboard, SE as AdminDashboardContent, VM as AdminPage, Fp as AppAlert, bu as AppButton, Dx as AppShell, Sy as ApprovalActionBar, Zp as AssigneeAvatars, Tx as AuthGuard, gg as BILLING_STATUS_FLOW, Qp as BULK_UPLOAD_DEFAULT_ACCEPT, $p as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Sn as Breadcrumb, WM as BulkUploadPage, sm as BulkUploadPanel, w as CANDIDATES_URL, Vy as CONTRACT_C2C, By as CONTRACT_W2, ro as CalendarCard, EE as CoreThemeAdminApp, TE as CoreThemeAdminRoutes, Jo as CustomPagination, gy as DayLogModal, bm as DescriptionBlock, v_ as DetailHeaderCard, T_ as DetailViewPage, bh as DetailViewV1, xe as DocumentViewer, Js as DynamicCards, dO as DynamicPopup, Zk as DynamicPopupRoute, so as DynamicTabs, yv as EditFormV1, Fy as FINANCE_APPROVAL_CONFIG, Ay as FINANCE_TYPE_CFO, ky as FINANCE_TYPE_ONBOARDING_MANAGER, Ny as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, jy as FINANCE_TYPE_ONLY_FINANCE, Oy as FINANCE_TYPE_SUBMISSION_MANAGER, My as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, wb as FileListCard, mb as FinanceApprovalPanel, Zg as FinanceAvatar, t_ as FinanceBadge, wy as FinanceDayCell, Ug as FinanceDivider, Qg as FinanceEmployeeCell, Bg as FinanceEmptyState, Wg as FinanceEquation, Jg as FinanceHistoryTimeline, zg as FinanceHoursGrid, Rg as FinanceKpiRow, Hg as FinanceLine, $v as FinanceListToolbar, n_ as FinanceMarginBadge, e_ as FinanceMoneyCell, a_ as FinanceRecordsTable, r_ as FinanceRowChevron, Vg as FinanceSection, Lg as FinanceStatusPill, $g as FinanceTextCell, Ey as FinanceTimesheetAnalysis, Gg as FinanceWorkflowSteps, $b as Header, $s as HierarchyUserFilter, n as JOBS_URL, HM as LegacyAdminPage, hf as ListView, QM as LmsHomePage, ZM as LmsTestForm, Ox as Login, PE as MailPopup, qM as ManageModules, JM as ManageSubmodules, Ov as ModuleRowActions, xy as NotesPanel, _g as PAYROLL_STATUS_FLOW, zk as POPUP_CONFIGS, Fv as ParamCardView, Vv as ParamListView, fD as PreviewPopup, rS as ProjectSelect, by as ProofUploadPreview, yy as QuickLogBar, _y as QuickLogSelectionBar, vy as RejectionReasonModal, e as SUBMISSIONS_URL, xx as Sidebar, Uv as StatusBadge, ny as StatusBadgeTag, UM as StickyNotesFullPage, Gv as StylishDynamicTabs, Xv as TemplateEditor, GM as TestForm, XM as TestingHomePage, Hp as TimelineGroups, dy as TimesheetDayCell, dt as TipTapEditor, uA as UserForm, tA as VendorShareDrawer, yu as ViewSummaryWidget, vD as WizardPopup, YM as ZinnextTableView, KM as ZinnextTestForm, nn as applyIntegrationStatus, jo as approveSubmission, im as buildAcceptAttr, jg as buildCsv, Tg as buildDailyRows, ly as buildDayGradient, ab as buildRateHistoryEntries, Og as buildWeeklyRollup, v as clearSelectedProject, He as colors, rb as computeFinance, kg as computeMarginBand, C as configureCoreTheme, RM as createAllWorkflowsListFetcher, NM as createWorkflowStageListFetcher, Qe as deleteIntegrationConfig, wg as deriveDayStats, Fg as downloadCsv, Zy as findEmployerRow, Yy as flattenGroups, rm as formatFileSize, ob as formatFinanceMoney, sg as formatHours, og as formatMoney, lg as formatPercent, cg as formatRate, xt as getActivity, zM as getAllWorkflowsModuleList, pg as getApprovalDate, ge as getBgcIntegrationConfig, tt as getBgcIntegrationSummary, vg as getBillingActionStates, y as getCurrentRoleName, Ng as getFieldLabel, nm as getFileExtension, Ly as getFinanceApprovalConfig, Sb as getFormGroupsRaw, ft as getIntegrationConfig, lt as getIntegrationConfigs, ht as getIntegrationSummary, qo as getModuleConfig, xn as getModuleDataDetail, yg as getPayrollActionStates, s as getSelectedProject, p as getStoredToken, x as getStoredUser, c as getUserRoles, Mo as getVMSApprove, Pg as getValueStyle, BM as getWorkflowStageModuleList, bg as getWorkflowSteps, fg as humanizeEvent, Nf as i, Mg as indexFieldConfig, ug as initialsOf, l as isTester, m as logout, zy as marginIncludesReferral, nb as matchLocationTax, O_ as n, $y as normalizeContract, cm as r, Po as rejectSubmission, qp as resolveActivityMeta, ib as resolveAndCompute, tb as resolveFinanceInputs, SM as resolveMergeKey, Ry as resolveRejectionReason, Cb as resolveSubmissionFinance, kn as saveBgcIntegrationConfig, Fn as saveIntegrationConfig, u as setSelectedProject, PM as stageCountKey, kx as t, ie as testIntegrationConnection, Hc as useDropdownFields, xu as useDropdownValues, Tb as useEditForm, Uc as useFieldConfig, Wc as useFilterFields, Xc as useMenuPermission, xv as useModuleActions, S_ as useRecordRefresh, am as validateBulkFile, r as withAdminAppId, t as withAppId, iS as withAuthGuard };
|
|
46858
46979
|
|
|
46859
46980
|
//# sourceMappingURL=index.js.map
|