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