@realtek/core-theme 0.0.221 → 0.0.223
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 +811 -683
- 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
|
@@ -7513,7 +7513,14 @@ function Pp({ moduleName: e, action: t, authToken: n, clientId: r, region: i, fo
|
|
|
7513
7513
|
watchPath: p(t.prefillWhen[0].field) ? [...f, t.prefillWhen[0].field] : Hf(t.prefillWhen[0].field),
|
|
7514
7514
|
targetPath: c,
|
|
7515
7515
|
resetOnNoMatch: t.prefillWhenReset !== !1
|
|
7516
|
-
}, `${t.field}-prefillWhen`) : null
|
|
7516
|
+
}, `${t.field}-prefillWhen`) : null;
|
|
7517
|
+
if (t.show === 0) return /* @__PURE__ */ Z(Gn, { children: [O, /* @__PURE__ */ X(V.Item, {
|
|
7518
|
+
name: s,
|
|
7519
|
+
hidden: !0,
|
|
7520
|
+
noStyle: !0,
|
|
7521
|
+
children: /* @__PURE__ */ X("input", { type: "hidden" })
|
|
7522
|
+
})] }, t.field);
|
|
7523
|
+
let k = !i.inline && rn(t).length > 0, A = (e) => k ? yn(t, g, (t) => e(gn(t, p(t.field)))) : g;
|
|
7517
7524
|
return Qt(t.showIf) || k ? /* @__PURE__ */ Z(Gn, { children: [O, /* @__PURE__ */ X(V.Item, {
|
|
7518
7525
|
shouldUpdate: !0,
|
|
7519
7526
|
noStyle: !0,
|
|
@@ -7685,7 +7692,7 @@ function Pp({ moduleName: e, action: t, authToken: n, clientId: r, region: i, fo
|
|
|
7685
7692
|
})
|
|
7686
7693
|
}, `${r}-${n}-${t.field}`);
|
|
7687
7694
|
}, cn = (e, t, n, r = !1, i) => {
|
|
7688
|
-
let a = /* @__PURE__ */ new Set(), o = [], s = new Set(e.map((e) => e.field).filter(Boolean)), c = e.filter((e) => e.show === void 0 || zf(e.show));
|
|
7695
|
+
let a = /* @__PURE__ */ new Set(), o = [], s = new Set(e.map((e) => e.field).filter(Boolean)), c = e.filter((e) => e.show === void 0 || zf(e.show) || e.show === 0 && !!e.prefillWhen?.length);
|
|
7689
7696
|
return c.forEach((e) => {
|
|
7690
7697
|
if (zf(e.addRow) && t === void 0) {
|
|
7691
7698
|
o.push(on(e));
|
|
@@ -38628,19 +38635,19 @@ function ID({ meta: e }) {
|
|
|
38628
38635
|
});
|
|
38629
38636
|
}
|
|
38630
38637
|
function LD({ option: e, layout: t }) {
|
|
38631
|
-
let n = e?._raw ?? e ?? {}, r = ND(t.id, n), i = ND(t.title, n) || String(e?.label ?? ""), a = ND(t.subtitle, n), o = (t.meta ?? []).map((e) => ({
|
|
38638
|
+
let n = e?._raw ?? e ?? {}, r = ND(t.id, n), i = ND(t.title, n) || String(e?.label ?? ""), a = ND(t.subtitle, n), o = ND(t.titleAccent?.key, n), s = ND(t.titleAccent?.toneKey, n), c = t.titleAccent?.prefix ?? "", l = (t.meta ?? []).map((e) => ({
|
|
38632
38639
|
label: e.label,
|
|
38633
38640
|
text: MD(n?.[e.key], e.type)
|
|
38634
|
-
})).filter((e) => e.text),
|
|
38641
|
+
})).filter((e) => e.text), u = FD(e, n), d = PD(e);
|
|
38635
38642
|
return /* @__PURE__ */ Z("div", {
|
|
38636
38643
|
className: "dynamic-popup__option",
|
|
38637
38644
|
children: [
|
|
38638
38645
|
/* @__PURE__ */ X("span", {
|
|
38639
|
-
className: `dynamic-popup__option-tick${
|
|
38640
|
-
children:
|
|
38641
|
-
title:
|
|
38646
|
+
className: `dynamic-popup__option-tick${d ? ` dynamic-popup__option-tick--${d.tone}` : ""}`,
|
|
38647
|
+
children: d && /* @__PURE__ */ X(q, {
|
|
38648
|
+
title: d.tooltip,
|
|
38642
38649
|
placement: "topLeft",
|
|
38643
|
-
children: /* @__PURE__ */ X(Kr, { "aria-label":
|
|
38650
|
+
children: /* @__PURE__ */ X(Kr, { "aria-label": d.tooltip })
|
|
38644
38651
|
})
|
|
38645
38652
|
}),
|
|
38646
38653
|
/* @__PURE__ */ Z("div", {
|
|
@@ -38652,13 +38659,19 @@ function LD({ option: e, layout: t }) {
|
|
|
38652
38659
|
className: "dynamic-popup__option-id",
|
|
38653
38660
|
children: r
|
|
38654
38661
|
}),
|
|
38655
|
-
/* @__PURE__ */
|
|
38662
|
+
/* @__PURE__ */ Z("span", {
|
|
38656
38663
|
className: "dynamic-popup__option-title",
|
|
38657
|
-
children:
|
|
38664
|
+
children: [/* @__PURE__ */ X("span", {
|
|
38665
|
+
className: "dynamic-popup__option-title-text",
|
|
38666
|
+
children: i
|
|
38667
|
+
}), o && /* @__PURE__ */ X("span", {
|
|
38668
|
+
className: `dynamic-popup__option-title-accent${s ? ` dynamic-popup__option-title-accent--${s}` : ""}`,
|
|
38669
|
+
children: `${c}${o}`
|
|
38670
|
+
})]
|
|
38658
38671
|
}),
|
|
38659
|
-
|
|
38672
|
+
u && /* @__PURE__ */ X("span", {
|
|
38660
38673
|
className: "dynamic-popup__option-flag",
|
|
38661
|
-
children:
|
|
38674
|
+
children: u
|
|
38662
38675
|
})
|
|
38663
38676
|
]
|
|
38664
38677
|
}), a && /* @__PURE__ */ X("div", {
|
|
@@ -38669,7 +38682,7 @@ function LD({ option: e, layout: t }) {
|
|
|
38669
38682
|
e?.alreadySubmitted ? /* @__PURE__ */ X("span", {
|
|
38670
38683
|
className: "dynamic-popup__option-onjob",
|
|
38671
38684
|
children: "On this job"
|
|
38672
|
-
}) :
|
|
38685
|
+
}) : l.length > 0 && /* @__PURE__ */ X(ID, { meta: l })
|
|
38673
38686
|
]
|
|
38674
38687
|
});
|
|
38675
38688
|
}
|
|
@@ -38770,24 +38783,34 @@ function KD({ field: e, options: t, value: n, onChange: r }) {
|
|
|
38770
38783
|
prefix: /* @__PURE__ */ X(ri, {})
|
|
38771
38784
|
});
|
|
38772
38785
|
}
|
|
38773
|
-
function qD({ field: e, options: t, onSearch: n, value: r, onChange: i }) {
|
|
38774
|
-
let
|
|
38786
|
+
function qD({ field: e, options: t, onSearch: n, value: r, onChange: i, popupContext: a }) {
|
|
38787
|
+
let o = HD(t), s = e.optionLayout, c = new Map(o.map((e) => [String(e?.value ?? ""), e]));
|
|
38788
|
+
async function l(t, n) {
|
|
38789
|
+
let r = n ?? c.get(String(t ?? ""));
|
|
38790
|
+
typeof e.onSelectGuard == "function" && await e.onSelectGuard({
|
|
38791
|
+
value: t,
|
|
38792
|
+
option: r,
|
|
38793
|
+
field: e,
|
|
38794
|
+
popupContext: a,
|
|
38795
|
+
confirm: mr.confirm
|
|
38796
|
+
}) === !1 || i?.(t);
|
|
38797
|
+
}
|
|
38775
38798
|
return /* @__PURE__ */ X(U, {
|
|
38776
38799
|
showSearch: !0,
|
|
38777
38800
|
filterOption: !1,
|
|
38778
38801
|
notFoundContent: e.notFoundContent ?? null,
|
|
38779
38802
|
value: r,
|
|
38780
|
-
onChange:
|
|
38781
|
-
options:
|
|
38803
|
+
onChange: l,
|
|
38804
|
+
options: o,
|
|
38782
38805
|
placeholder: e.placeholder,
|
|
38783
38806
|
onSearch: n,
|
|
38784
|
-
className: `dynamic-popup__field-select${
|
|
38785
|
-
popupClassName:
|
|
38786
|
-
listHeight:
|
|
38807
|
+
className: `dynamic-popup__field-select${s ? " dynamic-popup__field-select--rich" : ""}`,
|
|
38808
|
+
popupClassName: s ? "dynamic-popup__option-dropdown" : void 0,
|
|
38809
|
+
listHeight: s ? 340 : void 0,
|
|
38787
38810
|
optionLabelProp: "label",
|
|
38788
|
-
optionRender:
|
|
38811
|
+
optionRender: s ? (e) => /* @__PURE__ */ X(LD, {
|
|
38789
38812
|
option: e?.data ?? e,
|
|
38790
|
-
layout:
|
|
38813
|
+
layout: s
|
|
38791
38814
|
}) : void 0,
|
|
38792
38815
|
prefix: /* @__PURE__ */ X(ri, {})
|
|
38793
38816
|
});
|
|
@@ -39003,7 +39026,8 @@ function rO({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
|
|
|
39003
39026
|
options: t,
|
|
39004
39027
|
onSearch: n,
|
|
39005
39028
|
mentionOpts: o,
|
|
39006
|
-
onMentionSearch: a
|
|
39029
|
+
onMentionSearch: a,
|
|
39030
|
+
popupContext: i
|
|
39007
39031
|
}) : null
|
|
39008
39032
|
}, e.name);
|
|
39009
39033
|
}))
|
|
@@ -39382,75 +39406,119 @@ var fO = {
|
|
|
39382
39406
|
fields: []
|
|
39383
39407
|
}, pO = { deleteItems: async (e, t) => {
|
|
39384
39408
|
await po(t.moduleName, e);
|
|
39385
|
-
} }, mO =
|
|
39386
|
-
|
|
39387
|
-
|
|
39388
|
-
|
|
39389
|
-
|
|
39390
|
-
|
|
39391
|
-
|
|
39392
|
-
|
|
39393
|
-
|
|
39394
|
-
|
|
39395
|
-
|
|
39396
|
-
|
|
39397
|
-
|
|
39398
|
-
|
|
39399
|
-
|
|
39400
|
-
|
|
39401
|
-
|
|
39402
|
-
|
|
39403
|
-
|
|
39404
|
-
|
|
39405
|
-
|
|
39406
|
-
|
|
39407
|
-
|
|
39408
|
-
|
|
39409
|
-
|
|
39410
|
-
|
|
39411
|
-
|
|
39412
|
-
|
|
39413
|
-
|
|
39414
|
-
|
|
39415
|
-
|
|
39416
|
-
|
|
39417
|
-
|
|
39418
|
-
|
|
39419
|
-
|
|
39420
|
-
|
|
39421
|
-
|
|
39422
|
-
|
|
39423
|
-
|
|
39424
|
-
|
|
39425
|
-
|
|
39426
|
-
|
|
39427
|
-
|
|
39428
|
-
|
|
39429
|
-
|
|
39430
|
-
|
|
39431
|
-
|
|
39432
|
-
|
|
39433
|
-
|
|
39434
|
-
|
|
39435
|
-
|
|
39436
|
-
|
|
39437
|
-
|
|
39438
|
-
|
|
39439
|
-
|
|
39409
|
+
} }, 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 = [
|
|
39410
|
+
"createdAt",
|
|
39411
|
+
"createdDate",
|
|
39412
|
+
"dateCreated",
|
|
39413
|
+
"created_on",
|
|
39414
|
+
"createdOn"
|
|
39415
|
+
], yO = [
|
|
39416
|
+
"updatedAt",
|
|
39417
|
+
"updatedDate",
|
|
39418
|
+
"lastUpdatedAt",
|
|
39419
|
+
"lastUpdatedDate",
|
|
39420
|
+
"modifiedAt",
|
|
39421
|
+
"modifiedDate"
|
|
39422
|
+
];
|
|
39423
|
+
function bO(e, t) {
|
|
39424
|
+
for (let n of t) {
|
|
39425
|
+
let t = e?.[n];
|
|
39426
|
+
if (!t) continue;
|
|
39427
|
+
let r = new Date(t);
|
|
39428
|
+
if (!Number.isNaN(r.getTime())) return r;
|
|
39429
|
+
}
|
|
39430
|
+
return null;
|
|
39431
|
+
}
|
|
39432
|
+
function xO(e) {
|
|
39433
|
+
return bO(e, vO);
|
|
39434
|
+
}
|
|
39435
|
+
function SO(e) {
|
|
39436
|
+
return bO(e, yO);
|
|
39437
|
+
}
|
|
39438
|
+
function CO(e) {
|
|
39439
|
+
if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
|
|
39440
|
+
let t = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime();
|
|
39441
|
+
return Math.max(0, Math.floor((t(/* @__PURE__ */ new Date()) - t(e)) / hO));
|
|
39442
|
+
}
|
|
39443
|
+
function wO(e) {
|
|
39444
|
+
if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
|
|
39445
|
+
let t = /* @__PURE__ */ new Date(), n = (t.getFullYear() - e.getFullYear()) * 12 + (t.getMonth() - e.getMonth());
|
|
39446
|
+
return t.getDate() < e.getDate() && --n, Math.max(0, n);
|
|
39447
|
+
}
|
|
39448
|
+
function TO(e) {
|
|
39449
|
+
if (!(e instanceof Date) || Number.isNaN(e.getTime())) return null;
|
|
39450
|
+
let t = /* @__PURE__ */ new Date(), n = t.getFullYear() - e.getFullYear();
|
|
39451
|
+
return (t.getMonth() < e.getMonth() || t.getMonth() === e.getMonth() && t.getDate() < e.getDate()) && --n, Math.max(0, n);
|
|
39452
|
+
}
|
|
39453
|
+
function EO(e) {
|
|
39454
|
+
return e === null ? "" : e <= 14 ? "green" : e <= 89 ? "yellow" : "red";
|
|
39455
|
+
}
|
|
39456
|
+
function DO(e, t = gO) {
|
|
39457
|
+
if (!e) return !1;
|
|
39458
|
+
let n = Date.now() - t * hO, r = xO(e), i = SO(e), a = r && r.getTime() >= n, o = i && i.getTime() >= n;
|
|
39459
|
+
return !a && !o;
|
|
39460
|
+
}
|
|
39461
|
+
function OO(e) {
|
|
39462
|
+
let t = SO(e);
|
|
39463
|
+
if (!t) return {
|
|
39464
|
+
createdAgo: "",
|
|
39465
|
+
createdAgoTone: ""
|
|
39466
|
+
};
|
|
39467
|
+
let n = CO(t), r = wO(t), i = TO(t);
|
|
39468
|
+
return i >= 1 ? {
|
|
39469
|
+
createdAgo: `${i} year${i === 1 ? "" : "s"} ago`,
|
|
39470
|
+
createdAgoTone: EO(n)
|
|
39471
|
+
} : r >= 1 ? {
|
|
39472
|
+
createdAgo: `${r} month${r === 1 ? "" : "s"} ago`,
|
|
39473
|
+
createdAgoTone: EO(n)
|
|
39474
|
+
} : {
|
|
39475
|
+
createdAgo: wD(t),
|
|
39476
|
+
createdAgoTone: EO(n)
|
|
39477
|
+
};
|
|
39478
|
+
}
|
|
39479
|
+
function kO(e) {
|
|
39480
|
+
return {
|
|
39481
|
+
...e,
|
|
39482
|
+
...OO(e),
|
|
39483
|
+
isStaleCandidate: DO(e)
|
|
39484
|
+
};
|
|
39485
|
+
}
|
|
39486
|
+
function AO(e) {
|
|
39440
39487
|
return String(e?.applicantId ?? e?._id ?? e?.id ?? "");
|
|
39441
39488
|
}
|
|
39442
|
-
function
|
|
39489
|
+
function jO(e) {
|
|
39490
|
+
let t = AO(e);
|
|
39491
|
+
return `/candidates/edit/${encodeURIComponent(t)}`;
|
|
39492
|
+
}
|
|
39493
|
+
async function MO({ option: e, popupContext: t, confirm: n }) {
|
|
39494
|
+
let r = e?._raw ?? e ?? {};
|
|
39495
|
+
if (!DO(r)) return !0;
|
|
39496
|
+
let i = t?.navigate, a = AO(r);
|
|
39497
|
+
return !i || !a ? !1 : new Promise((e) => {
|
|
39498
|
+
n({
|
|
39499
|
+
title: "Candidate update required",
|
|
39500
|
+
content: _O,
|
|
39501
|
+
okText: "OK",
|
|
39502
|
+
cancelText: "Cancel",
|
|
39503
|
+
onOk: () => {
|
|
39504
|
+
i(jO(r)), e(!1);
|
|
39505
|
+
},
|
|
39506
|
+
onCancel: () => e(!1)
|
|
39507
|
+
});
|
|
39508
|
+
});
|
|
39509
|
+
}
|
|
39510
|
+
function NO(e, t, n) {
|
|
39443
39511
|
return {
|
|
39444
39512
|
...e,
|
|
39445
|
-
label: `${e.label}
|
|
39513
|
+
label: `${e.label} - ${mO}`,
|
|
39446
39514
|
disabled: !0,
|
|
39447
|
-
title: `${
|
|
39515
|
+
title: `${mO}${t ? ` (submission ${t})` : ""}`,
|
|
39448
39516
|
alreadySubmitted: !0,
|
|
39449
39517
|
existingSubmissionId: t || "",
|
|
39450
39518
|
...n ? { submittedAt: n } : {}
|
|
39451
39519
|
};
|
|
39452
39520
|
}
|
|
39453
|
-
var
|
|
39521
|
+
var PO = {
|
|
39454
39522
|
searchOptions: async (e, t, n) => {
|
|
39455
39523
|
if (e.searchFetchKey === "quickSubmitJobList") {
|
|
39456
39524
|
let e = n.selectedRecords?.[0] ?? {}, r = e.id ?? e._id ?? n.selectedIds?.[0], i, a = !0;
|
|
@@ -39473,13 +39541,13 @@ var vO = {
|
|
|
39473
39541
|
_raw: e
|
|
39474
39542
|
}));
|
|
39475
39543
|
if (a) return o.map((e) => {
|
|
39476
|
-
if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return
|
|
39544
|
+
if (e._raw?.isSubmitted || e._raw?.alreadySubmitted) return NO(e, e._raw?.jobSubmissionId || "", e._raw?.submittedAt || "");
|
|
39477
39545
|
if (e._raw?.disable) {
|
|
39478
39546
|
let t = String(e._raw?.message ?? "").trim();
|
|
39479
39547
|
return {
|
|
39480
39548
|
...e,
|
|
39481
39549
|
disabled: !0,
|
|
39482
|
-
label: t ? `${e.label}
|
|
39550
|
+
label: t ? `${e.label} - ${t}` : e.label,
|
|
39483
39551
|
title: t
|
|
39484
39552
|
};
|
|
39485
39553
|
}
|
|
@@ -39491,7 +39559,7 @@ var vO = {
|
|
|
39491
39559
|
}).catch(() => /* @__PURE__ */ new Map());
|
|
39492
39560
|
return o.map((e) => {
|
|
39493
39561
|
let t = s.get(String(e.value));
|
|
39494
|
-
return t ?
|
|
39562
|
+
return t ? NO(e, t.submissionId, t.submittedAt) : e;
|
|
39495
39563
|
});
|
|
39496
39564
|
}
|
|
39497
39565
|
if (e.searchFetchKey === "quickSubmitCandidates") {
|
|
@@ -39510,17 +39578,17 @@ var vO = {
|
|
|
39510
39578
|
});
|
|
39511
39579
|
i = Array.isArray(e) ? e : [], a = await Ro({
|
|
39512
39580
|
jobId: r,
|
|
39513
|
-
applicantIds: i.map(
|
|
39581
|
+
applicantIds: i.map(AO)
|
|
39514
39582
|
}).catch(() => /* @__PURE__ */ new Map());
|
|
39515
39583
|
}
|
|
39516
|
-
return i.map((e) => {
|
|
39517
|
-
let t = a.get(
|
|
39584
|
+
return i.map((e) => kO(e)).map((e) => {
|
|
39585
|
+
let t = a.get(AO(e));
|
|
39518
39586
|
if (!(t || e?.isSubmitted === !0 || e?.alreadySubmitted === !0)) return e;
|
|
39519
39587
|
let n = t?.submissionId || e?.jobSubmissionId || "", r = t?.submittedAt || e?.submittedAt || "";
|
|
39520
39588
|
return {
|
|
39521
39589
|
...e,
|
|
39522
39590
|
disabled: !0,
|
|
39523
|
-
optionNote:
|
|
39591
|
+
optionNote: mO,
|
|
39524
39592
|
isSubmitted: !0,
|
|
39525
39593
|
alreadySubmitted: !0,
|
|
39526
39594
|
existingSubmissionId: n,
|
|
@@ -39533,8 +39601,9 @@ var vO = {
|
|
|
39533
39601
|
submit: async (e, t, n) => {
|
|
39534
39602
|
let { navigate: r, selectedRecords: i = [], selectedIds: a = [], moduleName: o } = t, s = i[0] ?? {}, c, l;
|
|
39535
39603
|
t.jobId ? (c = t.jobId, l = s.id ?? s._id ?? a[0] ?? "") : o === "candidate" ? (c = e.jobId ?? "", l = s.id ?? s._id ?? a[0] ?? "") : (c = s.jobId ?? s.id ?? s._id ?? a[0] ?? "", l = e.candidate ?? "");
|
|
39536
|
-
let u = n?.dynamicOptions?.candidate?.find((e) =>
|
|
39604
|
+
let u = n?.dynamicOptions?.candidate?.find((e) => AO(e?._raw) === String(l)), d = n?.dynamicOptions?.jobId?.find((e) => String(e?.value) === String(c)), f = u?._raw?.isSubmitted || u?._raw?.alreadySubmitted || d?.alreadySubmitted || d?._raw?.isSubmitted || d?._raw?.alreadySubmitted;
|
|
39537
39605
|
if (!c || !l) throw Error("Select both a job and a candidate to quick submit.");
|
|
39606
|
+
if (DO(u?._raw)) throw Error(_O);
|
|
39538
39607
|
let p = f, m = u?._raw?.existingSubmissionId || u?._raw?.jobSubmissionId || d?.existingSubmissionId || d?._raw?.jobSubmissionId || "";
|
|
39539
39608
|
try {
|
|
39540
39609
|
let e = await Fo({
|
|
@@ -39551,7 +39620,66 @@ var vO = {
|
|
|
39551
39620
|
let g = u?.priorSubmissionId || u?._raw?.submissionId || d?.priorSubmissionId || d?._raw?.submissionId || "";
|
|
39552
39621
|
return g ? (h.set("submissionId", String(g)), h.set("isFromSubmission", "true")) : h.set("isFromSubmission", "false"), r(`/submission-create/${c}?${h.toString()}`), { navigated: !0 };
|
|
39553
39622
|
}
|
|
39554
|
-
},
|
|
39623
|
+
}, FO = {
|
|
39624
|
+
title: "Submit",
|
|
39625
|
+
okText: "Submit",
|
|
39626
|
+
width: 640,
|
|
39627
|
+
disabledUntilFilled: !0,
|
|
39628
|
+
autoSubmitWhenNoFields: !0,
|
|
39629
|
+
getNote: (e) => e.moduleName === "candidate" ? "Note: Select a job to submit this candidate." : "Note: Select a candidate to submit for this job",
|
|
39630
|
+
getFields: (e) => e.jobId ? [] : e.moduleName === "candidate" ? [{
|
|
39631
|
+
name: "jobId",
|
|
39632
|
+
label: "Job list",
|
|
39633
|
+
type: "search-select",
|
|
39634
|
+
required: !0,
|
|
39635
|
+
placeholder: "Search Job ID / job name - or pick a recent job",
|
|
39636
|
+
searchFetchKey: "quickSubmitJobList",
|
|
39637
|
+
optionLayout: {
|
|
39638
|
+
id: "{jobReferenceId}",
|
|
39639
|
+
title: "{jobTitle}",
|
|
39640
|
+
subtitle: "{clientJobReferenceId}",
|
|
39641
|
+
meta: [{
|
|
39642
|
+
label: "Created",
|
|
39643
|
+
key: "createdAt",
|
|
39644
|
+
type: "date"
|
|
39645
|
+
}, {
|
|
39646
|
+
label: "Updated",
|
|
39647
|
+
key: "updatedAt",
|
|
39648
|
+
type: "relative"
|
|
39649
|
+
}]
|
|
39650
|
+
}
|
|
39651
|
+
}] : [{
|
|
39652
|
+
name: "candidate",
|
|
39653
|
+
label: "Candidate",
|
|
39654
|
+
type: "search-select",
|
|
39655
|
+
required: !0,
|
|
39656
|
+
placeholder: "Search candidate name / email - or pick a recent candidate",
|
|
39657
|
+
optionsKey: "candidateOptions",
|
|
39658
|
+
searchFetchKey: "quickSubmitCandidates",
|
|
39659
|
+
labelTemplate: "{applicantRefrenceId} - {firstName} {lastName} - {createdAgo}",
|
|
39660
|
+
valueKey: "applicantId",
|
|
39661
|
+
optionLayout: {
|
|
39662
|
+
id: "{applicantRefrenceId}",
|
|
39663
|
+
title: "{firstName} {lastName}",
|
|
39664
|
+
titleAccent: {
|
|
39665
|
+
key: "createdAgo",
|
|
39666
|
+
toneKey: "createdAgoTone",
|
|
39667
|
+
prefix: " - "
|
|
39668
|
+
},
|
|
39669
|
+
subtitle: "{designation} - {email}",
|
|
39670
|
+
meta: [{
|
|
39671
|
+
label: "Created",
|
|
39672
|
+
key: "createdAt",
|
|
39673
|
+
type: "date"
|
|
39674
|
+
}, {
|
|
39675
|
+
label: "Updated",
|
|
39676
|
+
key: "updatedAt",
|
|
39677
|
+
type: "relative"
|
|
39678
|
+
}]
|
|
39679
|
+
},
|
|
39680
|
+
onSelectGuard: MO
|
|
39681
|
+
}]
|
|
39682
|
+
}, IO = {
|
|
39555
39683
|
title: "Add Notes & Share",
|
|
39556
39684
|
okText: "Save & Share",
|
|
39557
39685
|
width: 480,
|
|
@@ -39563,9 +39691,9 @@ var vO = {
|
|
|
39563
39691
|
placeholder: "Add your notes on the job. Use '@' to mention someone.",
|
|
39564
39692
|
mentionFetchKey: "mentionUsers"
|
|
39565
39693
|
}]
|
|
39566
|
-
},
|
|
39567
|
-
async function
|
|
39568
|
-
return
|
|
39694
|
+
}, LO = (e) => e?.data ?? e;
|
|
39695
|
+
async function RO({ relatedId: e, notes: t, title: n, notesFor: r }) {
|
|
39696
|
+
return LO(await vc(o, "/notes", {
|
|
39569
39697
|
method: "POST",
|
|
39570
39698
|
body: JSON.stringify({
|
|
39571
39699
|
relatedId: e,
|
|
@@ -39577,18 +39705,18 @@ async function xO({ relatedId: e, notes: t, title: n, notesFor: r }) {
|
|
|
39577
39705
|
}
|
|
39578
39706
|
//#endregion
|
|
39579
39707
|
//#region src/components/popups/definitions/add-notes/api.js
|
|
39580
|
-
var
|
|
39708
|
+
var zO = {
|
|
39581
39709
|
getMentionOptions: async (e, t) => ho(t),
|
|
39582
39710
|
submit: async (e, t) => {
|
|
39583
39711
|
let n = Array.isArray(t.selectedIds) ? t.selectedIds[0] : t.selectedIds;
|
|
39584
39712
|
if (!n) throw Error("Please select a record before adding a note.");
|
|
39585
|
-
await
|
|
39713
|
+
await RO({
|
|
39586
39714
|
relatedId: String(n),
|
|
39587
39715
|
notes: e.notes,
|
|
39588
39716
|
notesFor: t.moduleName
|
|
39589
39717
|
});
|
|
39590
39718
|
}
|
|
39591
|
-
},
|
|
39719
|
+
}, BO = {
|
|
39592
39720
|
name: "jobId",
|
|
39593
39721
|
label: "Job Title / ID",
|
|
39594
39722
|
type: "search-select",
|
|
@@ -39597,7 +39725,7 @@ var SO = {
|
|
|
39597
39725
|
searchFetchKey: "tagToJobJobList",
|
|
39598
39726
|
valueKey: "_id",
|
|
39599
39727
|
labelTemplate: "{jobReferenceId} - {jobTitle}"
|
|
39600
|
-
},
|
|
39728
|
+
}, VO = {
|
|
39601
39729
|
name: "hiringStage",
|
|
39602
39730
|
label: "Hiring stage",
|
|
39603
39731
|
type: "select",
|
|
@@ -39611,22 +39739,22 @@ var SO = {
|
|
|
39611
39739
|
value: "pipeline"
|
|
39612
39740
|
}],
|
|
39613
39741
|
initialValueKey: "hiringStage"
|
|
39614
|
-
},
|
|
39742
|
+
}, HO = {
|
|
39615
39743
|
title: "Tag to Job",
|
|
39616
39744
|
okText: "Tag",
|
|
39617
39745
|
width: 480,
|
|
39618
39746
|
disabledUntilFilled: !0,
|
|
39619
39747
|
autoSubmitWhenNoFields: !0,
|
|
39620
|
-
getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [
|
|
39621
|
-
},
|
|
39622
|
-
function
|
|
39748
|
+
getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [VO] : [BO, VO]
|
|
39749
|
+
}, UO = (e) => e?.data ?? e;
|
|
39750
|
+
function WO(e) {
|
|
39623
39751
|
return Array.isArray(e) && e.every((e) => e && typeof e == "object" && "Key" in e) ? e.reduce((e, { Key: t, Value: n }) => (e[t] = n, e), {}) : e;
|
|
39624
39752
|
}
|
|
39625
|
-
function
|
|
39626
|
-
return e ? Array.isArray(e.data) ? e.data.map(
|
|
39753
|
+
function GO(e) {
|
|
39754
|
+
return e ? Array.isArray(e.data) ? e.data.map(WO) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(WO) : Array.isArray(e) ? e.map(WO) : [] : [];
|
|
39627
39755
|
}
|
|
39628
|
-
async function
|
|
39629
|
-
let n = await a(o, `/workflow/list/all?page=${e}&limit=${t}`), r =
|
|
39756
|
+
async function KO(e = 1, t = 10) {
|
|
39757
|
+
let n = await a(o, `/workflow/list/all?page=${e}&limit=${t}`), r = UO(n), i = Array.isArray(r) ? r : r?.data ?? [];
|
|
39630
39758
|
return {
|
|
39631
39759
|
items: i,
|
|
39632
39760
|
total: Number(n?.total ?? r?.total) || i.length,
|
|
@@ -39634,10 +39762,10 @@ async function kO(e = 1, t = 10) {
|
|
|
39634
39762
|
limit: t
|
|
39635
39763
|
};
|
|
39636
39764
|
}
|
|
39637
|
-
async function
|
|
39638
|
-
let t = await
|
|
39765
|
+
async function qO(e = 100) {
|
|
39766
|
+
let t = await KO(1, e), n = [...t.items], r = t.total, i = 2;
|
|
39639
39767
|
for (; n.length < r;) {
|
|
39640
|
-
let t = await
|
|
39768
|
+
let t = await KO(i, e);
|
|
39641
39769
|
if (!t.items.length) break;
|
|
39642
39770
|
n.push(...t.items), i += 1;
|
|
39643
39771
|
}
|
|
@@ -39646,14 +39774,14 @@ async function AO(e = 100) {
|
|
|
39646
39774
|
total: Math.max(r, n.length)
|
|
39647
39775
|
};
|
|
39648
39776
|
}
|
|
39649
|
-
async function
|
|
39650
|
-
let n =
|
|
39777
|
+
async function JO(e, t) {
|
|
39778
|
+
let n = UO(await a(o, `/workflow/${e}/stage/${t}`));
|
|
39651
39779
|
return Array.isArray(n) ? { data: n } : n;
|
|
39652
39780
|
}
|
|
39653
|
-
async function
|
|
39781
|
+
async function YO(e, t) {
|
|
39654
39782
|
if (!e || !t) return null;
|
|
39655
39783
|
try {
|
|
39656
|
-
let n =
|
|
39784
|
+
let n = UO(await a(o, `/module-data-list?${new URLSearchParams({
|
|
39657
39785
|
module: e,
|
|
39658
39786
|
limit: "1",
|
|
39659
39787
|
offset: "0",
|
|
@@ -39673,15 +39801,15 @@ async function MO(e, t) {
|
|
|
39673
39801
|
return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
|
|
39674
39802
|
}
|
|
39675
39803
|
}
|
|
39676
|
-
async function
|
|
39677
|
-
return
|
|
39804
|
+
async function XO(e) {
|
|
39805
|
+
return UO(await a(n, "/source/workflow-instance", {
|
|
39678
39806
|
method: "POST",
|
|
39679
39807
|
body: JSON.stringify(e)
|
|
39680
39808
|
}));
|
|
39681
39809
|
}
|
|
39682
39810
|
//#endregion
|
|
39683
39811
|
//#region src/components/popups/definitions/tag-to-job/api.js
|
|
39684
|
-
var
|
|
39812
|
+
var ZO = {
|
|
39685
39813
|
pipeline: "pipeline",
|
|
39686
39814
|
goodfited: "goodfited",
|
|
39687
39815
|
contacted: "contacted",
|
|
@@ -39690,40 +39818,40 @@ var PO = {
|
|
|
39690
39818
|
interviewinprogress: "interviewInprogress",
|
|
39691
39819
|
selected: "selected"
|
|
39692
39820
|
};
|
|
39693
|
-
function
|
|
39821
|
+
function QO(e, ...t) {
|
|
39694
39822
|
for (let n of t) {
|
|
39695
39823
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
39696
39824
|
if (t != null && t !== "") return t;
|
|
39697
39825
|
}
|
|
39698
39826
|
}
|
|
39699
|
-
function
|
|
39827
|
+
function $O(e) {
|
|
39700
39828
|
let t = String(e ?? "").trim();
|
|
39701
|
-
return t ?
|
|
39829
|
+
return t ? ZO[t.toLowerCase()] ?? t : "";
|
|
39702
39830
|
}
|
|
39703
|
-
function
|
|
39704
|
-
let n =
|
|
39831
|
+
function ek(e, t) {
|
|
39832
|
+
let n = QO(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
|
|
39705
39833
|
if (!n) return null;
|
|
39706
|
-
let r = (
|
|
39834
|
+
let r = (QO(e, "candidateName", "candidate_name", "fullName", "name") ?? [QO(e, "firstName", "first_name"), QO(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
|
|
39707
39835
|
candidateId: String(n),
|
|
39708
39836
|
candidateName: r,
|
|
39709
|
-
phone:
|
|
39710
|
-
source:
|
|
39711
|
-
submittedAt:
|
|
39712
|
-
remarks:
|
|
39713
|
-
assignedRecruiter:
|
|
39714
|
-
screeningStatus:
|
|
39715
|
-
screeningScore:
|
|
39716
|
-
assignedDate:
|
|
39837
|
+
phone: QO(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
|
|
39838
|
+
source: QO(e, "source", "sourceType", "candidateSource", "profileSource"),
|
|
39839
|
+
submittedAt: QO(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
|
|
39840
|
+
remarks: QO(e, "remarks", "comment", "comments", "notes"),
|
|
39841
|
+
assignedRecruiter: QO(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
|
|
39842
|
+
screeningStatus: QO(e, "screeningStatus", "screening.status", "screeningResult"),
|
|
39843
|
+
screeningScore: QO(e, "screeningScore", "screening.score", "score"),
|
|
39844
|
+
assignedDate: QO(e, "assignedDate", "assignedAt", "createdAt")
|
|
39717
39845
|
};
|
|
39718
39846
|
return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
|
|
39719
39847
|
}
|
|
39720
|
-
var
|
|
39848
|
+
var tk = {
|
|
39721
39849
|
searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? mo(t) : [],
|
|
39722
39850
|
submit: async (e, t) => {
|
|
39723
|
-
let n = e.jobId ?? t.jobId, r =
|
|
39851
|
+
let n = e.jobId ?? t.jobId, r = $O(e.hiringStage ?? t.hiringStage), i = Array.isArray(t.selectedIds) ? t.selectedIds : [], a = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], o = Math.max(i.length, a.length, 1);
|
|
39724
39852
|
for (let e = 0; e < o; e += 1) {
|
|
39725
|
-
let t = i[e] ? String(i[e]) : "", o =
|
|
39726
|
-
await
|
|
39853
|
+
let t = i[e] ? String(i[e]) : "", o = ek(a[e] ?? {}, t);
|
|
39854
|
+
await XO({
|
|
39727
39855
|
jobId: n,
|
|
39728
39856
|
module: "jobs",
|
|
39729
39857
|
currentStage: r,
|
|
@@ -39736,7 +39864,7 @@ var RO = {
|
|
|
39736
39864
|
hiringStage: r
|
|
39737
39865
|
});
|
|
39738
39866
|
}
|
|
39739
|
-
},
|
|
39867
|
+
}, nk = {
|
|
39740
39868
|
title: "Change Status",
|
|
39741
39869
|
okText: "Apply",
|
|
39742
39870
|
width: 420,
|
|
@@ -39768,9 +39896,9 @@ var RO = {
|
|
|
39768
39896
|
}
|
|
39769
39897
|
]
|
|
39770
39898
|
}]
|
|
39771
|
-
},
|
|
39899
|
+
}, rk = { submit: async (e, t) => {
|
|
39772
39900
|
await fo(t.moduleName, t.selectedIds, e.status);
|
|
39773
|
-
} },
|
|
39901
|
+
} }, ik = {
|
|
39774
39902
|
getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
|
|
39775
39903
|
titleIcon: "delete",
|
|
39776
39904
|
okText: "Remove",
|
|
@@ -39779,12 +39907,12 @@ var RO = {
|
|
|
39779
39907
|
getBodyText: (e) => e > 1 ? `Are you sure you want to remove ${e} selected candidates from the shortlist?` : "Are you sure you want to remove this candidate from the shortlist?",
|
|
39780
39908
|
footerNote: "The candidate will be moved back to the pipeline.",
|
|
39781
39909
|
fields: []
|
|
39782
|
-
},
|
|
39910
|
+
}, ak = { onOk: async (e) => {
|
|
39783
39911
|
await zo({
|
|
39784
39912
|
jobId: e.jobId ?? e.selectedIds[0],
|
|
39785
39913
|
candidateIds: e.selectedIds
|
|
39786
39914
|
});
|
|
39787
|
-
} },
|
|
39915
|
+
} }, ok = {
|
|
39788
39916
|
title: "Add to Groups",
|
|
39789
39917
|
description: "Select a group to add the selected candidate(s) to",
|
|
39790
39918
|
okText: "Add to Group",
|
|
@@ -39798,7 +39926,7 @@ var RO = {
|
|
|
39798
39926
|
placeholder: "Select a group",
|
|
39799
39927
|
fetchOptionsKey: "candidateGroups"
|
|
39800
39928
|
}]
|
|
39801
|
-
},
|
|
39929
|
+
}, sk = {
|
|
39802
39930
|
getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? bo() : [],
|
|
39803
39931
|
submit: async (e, t, { dynamicOptions: n }) => {
|
|
39804
39932
|
let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
|
|
@@ -39808,7 +39936,7 @@ var RO = {
|
|
|
39808
39936
|
groupName: r?.label ?? ""
|
|
39809
39937
|
});
|
|
39810
39938
|
}
|
|
39811
|
-
},
|
|
39939
|
+
}, ck = [
|
|
39812
39940
|
{
|
|
39813
39941
|
title: "Name",
|
|
39814
39942
|
key: "name",
|
|
@@ -39827,7 +39955,7 @@ var RO = {
|
|
|
39827
39955
|
render: (e) => e || "-"
|
|
39828
39956
|
}
|
|
39829
39957
|
];
|
|
39830
|
-
function
|
|
39958
|
+
function lk({ selectedIds: e, onClose: t }) {
|
|
39831
39959
|
let n = e?.[0], [r, i] = R(!0), [a, o] = R(!1), [s, c] = R({
|
|
39832
39960
|
assignedUsers: [],
|
|
39833
39961
|
totalSubmissions: 0,
|
|
@@ -39882,7 +40010,7 @@ function KO({ selectedIds: e, onClose: t }) {
|
|
|
39882
40010
|
children: "Team Members Allocated"
|
|
39883
40011
|
}),
|
|
39884
40012
|
/* @__PURE__ */ X(Tr, {
|
|
39885
|
-
columns:
|
|
40013
|
+
columns: ck,
|
|
39886
40014
|
dataSource: f,
|
|
39887
40015
|
pagination: !1,
|
|
39888
40016
|
rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
|
|
@@ -39931,31 +40059,31 @@ function KO({ selectedIds: e, onClose: t }) {
|
|
|
39931
40059
|
})]
|
|
39932
40060
|
});
|
|
39933
40061
|
}
|
|
39934
|
-
|
|
40062
|
+
lk.propTypes = {
|
|
39935
40063
|
selectedIds: Q.array,
|
|
39936
40064
|
onClose: Q.func
|
|
39937
40065
|
};
|
|
39938
40066
|
//#endregion
|
|
39939
40067
|
//#region src/components/popups/definitions/self-assign/config.js
|
|
39940
|
-
var
|
|
40068
|
+
var uk = {
|
|
39941
40069
|
title: "Self Assign",
|
|
39942
40070
|
width: 480,
|
|
39943
40071
|
className: "self-assign-modal",
|
|
39944
|
-
component:
|
|
39945
|
-
},
|
|
40072
|
+
component: lk
|
|
40073
|
+
}, dk = { submit: async () => {} };
|
|
39946
40074
|
//#endregion
|
|
39947
40075
|
//#region src/components/popups/definitions/others-assign/config.js
|
|
39948
|
-
function
|
|
40076
|
+
function fk(e = {}) {
|
|
39949
40077
|
let t = Array.isArray(e.jobPayDetails) ? e.jobPayDetails[e.jobPayDetails.length - 1] : e.jobPayDetails ?? e.clientBudget ?? {}, n = Number(t.clientBudgetEnd), r = Number(t.clientBudgetStart);
|
|
39950
40078
|
return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
|
|
39951
40079
|
}
|
|
39952
|
-
function
|
|
40080
|
+
function pk(e, t) {
|
|
39953
40081
|
let n = e ?? {};
|
|
39954
40082
|
if (n.isRange && n.minAmount != null && n.maxAmount != null && Number(n.maxAmount) <= Number(n.minAmount)) return "To rate must be greater than From rate.";
|
|
39955
|
-
let r =
|
|
40083
|
+
let r = fk(t?.selectedRecords?.[0] ?? {}), i = n.isRange ? Number(n.maxAmount) : Number(n.amount);
|
|
39956
40084
|
return r != null && Number.isFinite(i) && i > r ? `Candidate rate must not exceed the client rate (${r}).` : "";
|
|
39957
40085
|
}
|
|
39958
|
-
var
|
|
40086
|
+
var mk = {
|
|
39959
40087
|
getTitleText: (e, t, n) => {
|
|
39960
40088
|
let r = n?.jobTitle || n?.title || "";
|
|
39961
40089
|
return r ? `Assign - ${r}` : "Assign";
|
|
@@ -39977,8 +40105,8 @@ var ZO = {
|
|
|
39977
40105
|
name: "candidateRate",
|
|
39978
40106
|
label: "Candidate Rate",
|
|
39979
40107
|
type: "candidate-rate",
|
|
39980
|
-
rateCeiling:
|
|
39981
|
-
validator:
|
|
40108
|
+
rateCeiling: fk(e?.selectedRecords?.[0] ?? {}),
|
|
40109
|
+
validator: pk
|
|
39982
40110
|
},
|
|
39983
40111
|
{
|
|
39984
40112
|
name: "priority",
|
|
@@ -39987,7 +40115,7 @@ var ZO = {
|
|
|
39987
40115
|
checkboxLabel: "Mark as High"
|
|
39988
40116
|
}
|
|
39989
40117
|
]
|
|
39990
|
-
},
|
|
40118
|
+
}, hk = {
|
|
39991
40119
|
getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? To() : [],
|
|
39992
40120
|
loadExtraData: async (e) => Eo(e.selectedIds[0]),
|
|
39993
40121
|
submit: async (e, t, { removedIds: n, extraData: r }) => {
|
|
@@ -40000,7 +40128,7 @@ var ZO = {
|
|
|
40000
40128
|
existingRecruiters: r?.recruitersData
|
|
40001
40129
|
});
|
|
40002
40130
|
}
|
|
40003
|
-
},
|
|
40131
|
+
}, gk = {
|
|
40004
40132
|
title: "Add Sticky Notes",
|
|
40005
40133
|
getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
|
|
40006
40134
|
okText: "Save",
|
|
@@ -40032,7 +40160,7 @@ var ZO = {
|
|
|
40032
40160
|
initialValueKey: "editingComments"
|
|
40033
40161
|
}
|
|
40034
40162
|
]
|
|
40035
|
-
},
|
|
40163
|
+
}, _k = {
|
|
40036
40164
|
getMentionOptions: async (e, t) => ho(t),
|
|
40037
40165
|
submit: async (e, t) => {
|
|
40038
40166
|
let n = e.targetDate ? e.targetDate.toISOString() : "";
|
|
@@ -40048,7 +40176,7 @@ var ZO = {
|
|
|
40048
40176
|
notes: e.comments
|
|
40049
40177
|
}), window.dispatchEvent(new Event("sticky-notes:refresh"));
|
|
40050
40178
|
}
|
|
40051
|
-
},
|
|
40179
|
+
}, vk = {
|
|
40052
40180
|
title: "Move to Onboarding",
|
|
40053
40181
|
bodyText: "Are you sure you want to move this candidate to onboarding?",
|
|
40054
40182
|
okText: "Yes",
|
|
@@ -40061,7 +40189,7 @@ var ZO = {
|
|
|
40061
40189
|
type: "priority-checkbox",
|
|
40062
40190
|
checkboxLabel: "Send Onboarding Email"
|
|
40063
40191
|
}]
|
|
40064
|
-
},
|
|
40192
|
+
}, yk = { submit: async (e, t) => {
|
|
40065
40193
|
await Ao({
|
|
40066
40194
|
submissionId: t.selectedRecords?.[0]?.submissionId,
|
|
40067
40195
|
isMail: e.sendOnboardingEmail
|
|
@@ -40069,39 +40197,39 @@ var ZO = {
|
|
|
40069
40197
|
} };
|
|
40070
40198
|
//#endregion
|
|
40071
40199
|
//#region src/components/popups/definitions/approve-rate/config.js
|
|
40072
|
-
function
|
|
40200
|
+
function bk(e) {
|
|
40073
40201
|
return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
|
|
40074
40202
|
}
|
|
40075
|
-
var
|
|
40203
|
+
var xk = {
|
|
40076
40204
|
USD: "$",
|
|
40077
40205
|
INR: "₹",
|
|
40078
40206
|
EUR: "€",
|
|
40079
40207
|
GBP: "£"
|
|
40080
40208
|
};
|
|
40081
|
-
function
|
|
40082
|
-
let r =
|
|
40209
|
+
function Sk(e, t, n) {
|
|
40210
|
+
let r = bk(e?.[t])[n];
|
|
40083
40211
|
if (r != null && r !== "") return r;
|
|
40084
40212
|
let i = e?.[`${t}.${n}`];
|
|
40085
40213
|
return i != null && i !== "" ? i : void 0;
|
|
40086
40214
|
}
|
|
40087
|
-
function
|
|
40088
|
-
let t = e.selectedRecords?.[0] ?? {}, n =
|
|
40215
|
+
function Ck(e) {
|
|
40216
|
+
let t = e.selectedRecords?.[0] ?? {}, n = Sk(t, "candidateRate", "candidateAcceptedRate") ?? Sk(t, "candidateBudget", "candidateBudgetStart");
|
|
40089
40217
|
if (n === void 0 || Number(n) === 0) return null;
|
|
40090
|
-
let r =
|
|
40218
|
+
let r = Sk(t, "candidateRate", "candidateAcceptedCurrency") ?? Sk(t, "candidateBudget", "candidateBudgetCurrency");
|
|
40091
40219
|
return {
|
|
40092
40220
|
amount: n,
|
|
40093
|
-
symbol:
|
|
40094
|
-
unit:
|
|
40221
|
+
symbol: Sk(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? Sk(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? xk[String(r ?? "").toUpperCase()] ?? (r || "$"),
|
|
40222
|
+
unit: Sk(t, "candidateRate", "candidateAcceptedPayUnit") ?? Sk(t, "candidateBudget", "candidateBudgetUnit") ?? ""
|
|
40095
40223
|
};
|
|
40096
40224
|
}
|
|
40097
|
-
var
|
|
40225
|
+
var wk = {
|
|
40098
40226
|
title: "Approve Rate",
|
|
40099
40227
|
okText: "Approve",
|
|
40100
40228
|
width: 520,
|
|
40101
40229
|
className: "medium-modal",
|
|
40102
40230
|
successMessage: "Rate approved",
|
|
40103
40231
|
getBodyText: (e, t, n, r, i) => {
|
|
40104
|
-
let a =
|
|
40232
|
+
let a = Ck(i);
|
|
40105
40233
|
return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
|
|
40106
40234
|
},
|
|
40107
40235
|
fields: [
|
|
@@ -40115,7 +40243,7 @@ var sk = {
|
|
|
40115
40243
|
inlineRow: "proposedRate",
|
|
40116
40244
|
validator: (e, t) => {
|
|
40117
40245
|
if (e == null || e === "") return;
|
|
40118
|
-
let n =
|
|
40246
|
+
let n = Ck(t);
|
|
40119
40247
|
if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
|
|
40120
40248
|
}
|
|
40121
40249
|
},
|
|
@@ -40183,7 +40311,7 @@ var sk = {
|
|
|
40183
40311
|
}]
|
|
40184
40312
|
}
|
|
40185
40313
|
]
|
|
40186
|
-
},
|
|
40314
|
+
}, Tk = { submit: async (e, t) => {
|
|
40187
40315
|
let n = t.selectedIds[0];
|
|
40188
40316
|
if (await jo(n, {
|
|
40189
40317
|
candidateProposedRate: e.candidateProposedRate,
|
|
@@ -40199,7 +40327,7 @@ var sk = {
|
|
|
40199
40327
|
} };
|
|
40200
40328
|
//#endregion
|
|
40201
40329
|
//#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
|
|
40202
|
-
function
|
|
40330
|
+
function Ek(e, t = {}) {
|
|
40203
40331
|
return {
|
|
40204
40332
|
client: t.clientName ?? e.clientName,
|
|
40205
40333
|
role: t.jobTitle ?? e.jobTitle ?? e.designation,
|
|
@@ -40214,7 +40342,7 @@ function lk(e, t = {}) {
|
|
|
40214
40342
|
employerName: t.employerName
|
|
40215
40343
|
};
|
|
40216
40344
|
}
|
|
40217
|
-
function
|
|
40345
|
+
function Dk({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
|
|
40218
40346
|
let a = n?.[0] ?? {}, o = t?.[0] ?? Jy(a), [s, c] = R(null), [l, u] = R(!0);
|
|
40219
40347
|
I(() => {
|
|
40220
40348
|
let e = !1;
|
|
@@ -40271,14 +40399,14 @@ function uk({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
40271
40399
|
type: Oy,
|
|
40272
40400
|
record: s.record,
|
|
40273
40401
|
lookups: s.lookups,
|
|
40274
|
-
identity:
|
|
40402
|
+
identity: Ek(a, s.display),
|
|
40275
40403
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
40276
40404
|
actions: d,
|
|
40277
40405
|
onClose: () => i?.(),
|
|
40278
40406
|
variant: "popup"
|
|
40279
40407
|
});
|
|
40280
40408
|
}
|
|
40281
|
-
|
|
40409
|
+
Dk.propTypes = {
|
|
40282
40410
|
context: Q.object,
|
|
40283
40411
|
selectedIds: Q.array,
|
|
40284
40412
|
selectedRecords: Q.array,
|
|
@@ -40287,15 +40415,15 @@ uk.propTypes = {
|
|
|
40287
40415
|
};
|
|
40288
40416
|
//#endregion
|
|
40289
40417
|
//#region src/components/popups/definitions/manager-approve/config.js
|
|
40290
|
-
var
|
|
40418
|
+
var Ok = {
|
|
40291
40419
|
title: "Manager Approve",
|
|
40292
40420
|
width: 780,
|
|
40293
40421
|
className: "fa-modal manager-approve-modal",
|
|
40294
|
-
component:
|
|
40295
|
-
},
|
|
40422
|
+
component: Dk
|
|
40423
|
+
}, kk = { submit: async () => {} };
|
|
40296
40424
|
//#endregion
|
|
40297
40425
|
//#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
|
|
40298
|
-
function
|
|
40426
|
+
function Ak(e, t = {}) {
|
|
40299
40427
|
return {
|
|
40300
40428
|
client: t.clientName ?? e.clientName,
|
|
40301
40429
|
role: t.jobTitle ?? e.jobTitle ?? e.designation,
|
|
@@ -40310,21 +40438,21 @@ function pk(e, t = {}) {
|
|
|
40310
40438
|
employerName: t.employerName
|
|
40311
40439
|
};
|
|
40312
40440
|
}
|
|
40313
|
-
function
|
|
40441
|
+
function jk(e) {
|
|
40314
40442
|
let t = Array.isArray(e) ? e : [];
|
|
40315
40443
|
for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
|
|
40316
40444
|
return null;
|
|
40317
40445
|
}
|
|
40318
|
-
function
|
|
40446
|
+
function Mk(e) {
|
|
40319
40447
|
return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
|
|
40320
40448
|
}
|
|
40321
|
-
function
|
|
40449
|
+
function Nk({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
40322
40450
|
let r = t?.[0] ?? {}, i = e?.[0] ?? Jy(r), [a, o] = R(null), [s, c] = R(""), [l, u] = R(!0);
|
|
40323
40451
|
I(() => {
|
|
40324
40452
|
let e = !1;
|
|
40325
40453
|
return u(!0), Promise.all([Cb(i, r), xt("submission", i).catch(() => [])]).then(([t, n]) => {
|
|
40326
40454
|
if (e) return;
|
|
40327
|
-
let i =
|
|
40455
|
+
let i = jk(n);
|
|
40328
40456
|
c(Jy(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
|
|
40329
40457
|
let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
|
|
40330
40458
|
o({
|
|
@@ -40333,7 +40461,7 @@ function gk({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
40333
40461
|
...t.record,
|
|
40334
40462
|
submission: {
|
|
40335
40463
|
...t.record.submission,
|
|
40336
|
-
cfoRejectionReason: a ?
|
|
40464
|
+
cfoRejectionReason: a ? Mk(a) : "",
|
|
40337
40465
|
cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
|
|
40338
40466
|
}
|
|
40339
40467
|
}
|
|
@@ -40380,26 +40508,26 @@ function gk({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
40380
40508
|
type: My,
|
|
40381
40509
|
record: a.record,
|
|
40382
40510
|
lookups: a.lookups,
|
|
40383
|
-
identity:
|
|
40511
|
+
identity: Ak(r, a.display),
|
|
40384
40512
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
40385
40513
|
actions: d,
|
|
40386
40514
|
onClose: () => n?.(),
|
|
40387
40515
|
variant: "popup"
|
|
40388
40516
|
});
|
|
40389
40517
|
}
|
|
40390
|
-
|
|
40518
|
+
Nk.propTypes = {
|
|
40391
40519
|
selectedIds: Q.array,
|
|
40392
40520
|
selectedRecords: Q.array,
|
|
40393
40521
|
onClose: Q.func
|
|
40394
40522
|
};
|
|
40395
40523
|
//#endregion
|
|
40396
40524
|
//#region src/components/popups/definitions/manager-reapprove/config.js
|
|
40397
|
-
var
|
|
40525
|
+
var Pk = {
|
|
40398
40526
|
title: "Re-Approve",
|
|
40399
40527
|
width: 780,
|
|
40400
40528
|
className: "fa-modal manager-approve-modal",
|
|
40401
|
-
component:
|
|
40402
|
-
},
|
|
40529
|
+
component: Nk
|
|
40530
|
+
}, Fk = { submit: async () => {} }, Ik = [
|
|
40403
40531
|
{
|
|
40404
40532
|
id: 1,
|
|
40405
40533
|
name: "Re-Submission"
|
|
@@ -40412,7 +40540,7 @@ var _k = {
|
|
|
40412
40540
|
id: 3,
|
|
40413
40541
|
name: "Incomplete candidate details - (Re-Submission)"
|
|
40414
40542
|
}
|
|
40415
|
-
],
|
|
40543
|
+
], Lk = {
|
|
40416
40544
|
title: "Reject",
|
|
40417
40545
|
okText: "Reject",
|
|
40418
40546
|
okButtonDanger: !0,
|
|
@@ -40424,7 +40552,7 @@ var _k = {
|
|
|
40424
40552
|
type: "select",
|
|
40425
40553
|
required: !0,
|
|
40426
40554
|
placeholder: "Select rejection reasons",
|
|
40427
|
-
defaultOptions:
|
|
40555
|
+
defaultOptions: Ik.map((e) => ({
|
|
40428
40556
|
label: e.name,
|
|
40429
40557
|
value: e.id
|
|
40430
40558
|
}))
|
|
@@ -40435,88 +40563,88 @@ var _k = {
|
|
|
40435
40563
|
required: !0,
|
|
40436
40564
|
rows: 4
|
|
40437
40565
|
}]
|
|
40438
|
-
},
|
|
40439
|
-
let n =
|
|
40566
|
+
}, Rk = { submit: async (e, t) => {
|
|
40567
|
+
let n = Ik.find((t) => String(t.id) === String(e.rejectReason));
|
|
40440
40568
|
await Po({
|
|
40441
40569
|
submissionId: t.selectedIds[0],
|
|
40442
40570
|
rejectReasonId: e.rejectReason,
|
|
40443
40571
|
rejectReason: n?.name ?? "",
|
|
40444
40572
|
rejectReasonComments: e.rejectReasonComments
|
|
40445
40573
|
});
|
|
40446
|
-
} },
|
|
40574
|
+
} }, zk = {
|
|
40447
40575
|
delete: fO,
|
|
40448
|
-
"quick-submit":
|
|
40449
|
-
"add-notes":
|
|
40450
|
-
"tag-to-job":
|
|
40451
|
-
"change-status":
|
|
40452
|
-
"remove-from-shortlist":
|
|
40453
|
-
"add-to-groups":
|
|
40454
|
-
"self-assign":
|
|
40455
|
-
"others-assign":
|
|
40456
|
-
"sticky-notes":
|
|
40457
|
-
"move-to-onboarding":
|
|
40458
|
-
"approve-rate":
|
|
40459
|
-
"manager-approve":
|
|
40460
|
-
"manager-reapprove":
|
|
40461
|
-
reject:
|
|
40462
|
-
},
|
|
40576
|
+
"quick-submit": FO,
|
|
40577
|
+
"add-notes": IO,
|
|
40578
|
+
"tag-to-job": HO,
|
|
40579
|
+
"change-status": nk,
|
|
40580
|
+
"remove-from-shortlist": ik,
|
|
40581
|
+
"add-to-groups": ok,
|
|
40582
|
+
"self-assign": uk,
|
|
40583
|
+
"others-assign": mk,
|
|
40584
|
+
"sticky-notes": gk,
|
|
40585
|
+
"move-to-onboarding": vk,
|
|
40586
|
+
"approve-rate": wk,
|
|
40587
|
+
"manager-approve": Ok,
|
|
40588
|
+
"manager-reapprove": Pk,
|
|
40589
|
+
reject: Lk
|
|
40590
|
+
}, Bk = {
|
|
40463
40591
|
delete: pO,
|
|
40464
|
-
"quick-submit":
|
|
40465
|
-
"add-notes":
|
|
40466
|
-
"tag-to-job":
|
|
40467
|
-
"change-status":
|
|
40468
|
-
"remove-from-shortlist":
|
|
40469
|
-
"add-to-groups":
|
|
40470
|
-
"self-assign":
|
|
40471
|
-
"others-assign":
|
|
40472
|
-
"sticky-notes":
|
|
40473
|
-
"move-to-onboarding":
|
|
40474
|
-
"approve-rate":
|
|
40475
|
-
"manager-approve":
|
|
40476
|
-
"manager-reapprove":
|
|
40477
|
-
reject:
|
|
40592
|
+
"quick-submit": PO,
|
|
40593
|
+
"add-notes": zO,
|
|
40594
|
+
"tag-to-job": tk,
|
|
40595
|
+
"change-status": rk,
|
|
40596
|
+
"remove-from-shortlist": ak,
|
|
40597
|
+
"add-to-groups": sk,
|
|
40598
|
+
"self-assign": dk,
|
|
40599
|
+
"others-assign": hk,
|
|
40600
|
+
"sticky-notes": _k,
|
|
40601
|
+
"move-to-onboarding": yk,
|
|
40602
|
+
"approve-rate": Tk,
|
|
40603
|
+
"manager-approve": kk,
|
|
40604
|
+
"manager-reapprove": Fk,
|
|
40605
|
+
reject: Rk
|
|
40478
40606
|
};
|
|
40479
40607
|
//#endregion
|
|
40480
40608
|
//#region src/components/popups/AddBatchCandidatePopup.jsx
|
|
40481
|
-
function
|
|
40609
|
+
function Vk(e) {
|
|
40482
40610
|
let t = e?.data ?? e;
|
|
40483
40611
|
return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
|
|
40484
40612
|
}
|
|
40485
|
-
function
|
|
40613
|
+
function Hk(e, ...t) {
|
|
40486
40614
|
for (let n of t) {
|
|
40487
40615
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
40488
40616
|
if (t != null && t !== "") return t;
|
|
40489
40617
|
}
|
|
40490
40618
|
return "";
|
|
40491
40619
|
}
|
|
40492
|
-
function
|
|
40493
|
-
let t = String(
|
|
40620
|
+
function Uk(e) {
|
|
40621
|
+
let t = String(Hk(e, "isDeleted", "deleted")).toLowerCase(), n = String(Hk(e, "assignmentStatus", "status")).toLowerCase();
|
|
40494
40622
|
return t !== "true" && t !== "1" && ![
|
|
40495
40623
|
"removed",
|
|
40496
40624
|
"inactive",
|
|
40497
40625
|
"deleted"
|
|
40498
40626
|
].includes(n);
|
|
40499
40627
|
}
|
|
40500
|
-
function
|
|
40501
|
-
let t =
|
|
40502
|
-
return t ? String(t) : [
|
|
40628
|
+
function Wk(e) {
|
|
40629
|
+
let t = Hk(e, "candidateName", "candidate_name", "fullName", "name");
|
|
40630
|
+
return t ? String(t) : [Hk(e, "firstName", "first_name"), Hk(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
|
|
40503
40631
|
}
|
|
40504
|
-
function
|
|
40505
|
-
return String(
|
|
40632
|
+
function Gk(e) {
|
|
40633
|
+
return String(Hk(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
|
|
40506
40634
|
}
|
|
40507
|
-
function
|
|
40508
|
-
return String(
|
|
40635
|
+
function Kk(e) {
|
|
40636
|
+
return String(Hk(e, "workforceEngagementId", "engagementId", "_id", "id"));
|
|
40509
40637
|
}
|
|
40510
|
-
function
|
|
40511
|
-
return String(
|
|
40638
|
+
function qk(e) {
|
|
40639
|
+
return String(Hk(e, "batchName", "name", "title", "batch_name"));
|
|
40512
40640
|
}
|
|
40513
|
-
function
|
|
40641
|
+
function Jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
40514
40642
|
let [r, i] = R([]), [a, o] = R([]), [s, c] = R(""), [l, u] = R(!0), [d, f] = R(!1), [p, m] = R(""), [h, _] = R(/* @__PURE__ */ new Map()), v = String(t.selectedIds?.[0] ?? t.selectedRecords?.[0]?._id ?? t.selectedRecords?.[0]?.id ?? t.batchId ?? "");
|
|
40515
40643
|
I(() => {
|
|
40516
40644
|
if (!e) return;
|
|
40517
40645
|
let t = !1;
|
|
40518
40646
|
return Promise.resolve().then(() => (t || u(!0), Promise.all([ot("onboarding", 200, 0), ot("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
|
|
40519
|
-
t || (i(
|
|
40647
|
+
t || (i(Vk(e)), _(new Map(Vk(n).filter(Uk).map((e) => [String(Hk(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
|
|
40520
40648
|
}).catch((e) => {
|
|
40521
40649
|
t || m(e.message || "Unable to load onboarding candidates");
|
|
40522
40650
|
}).finally(() => {
|
|
@@ -40528,9 +40656,9 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40528
40656
|
let y = L(() => {
|
|
40529
40657
|
let e = s.trim().toLowerCase();
|
|
40530
40658
|
return e ? r.filter((t) => [
|
|
40531
|
-
|
|
40532
|
-
|
|
40533
|
-
|
|
40659
|
+
Wk(t),
|
|
40660
|
+
Hk(t, "email", "candidateEmail", "candidate_email"),
|
|
40661
|
+
Hk(t, "status", "onboardingStatus", "onboarding_status")
|
|
40534
40662
|
].some((t) => String(t).toLowerCase().includes(e))) : r;
|
|
40535
40663
|
}, [r, s]);
|
|
40536
40664
|
async function b() {
|
|
@@ -40538,25 +40666,25 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40538
40666
|
m("Select a batch before adding candidates");
|
|
40539
40667
|
return;
|
|
40540
40668
|
}
|
|
40541
|
-
let e = r.filter((e) => a.includes(
|
|
40669
|
+
let e = r.filter((e) => a.includes(Kk(e)));
|
|
40542
40670
|
if (!e.length) return;
|
|
40543
40671
|
let i = e.map((e) => ({
|
|
40544
40672
|
record: e,
|
|
40545
|
-
assignment: h.get(
|
|
40673
|
+
assignment: h.get(Gk(e))
|
|
40546
40674
|
})).filter((e) => e.assignment);
|
|
40547
40675
|
if (i.length) {
|
|
40548
|
-
m(`${i.map(({ record: e }) =>
|
|
40676
|
+
m(`${i.map(({ record: e }) => Wk(e)).join(", ")} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
|
|
40549
40677
|
return;
|
|
40550
40678
|
}
|
|
40551
40679
|
f(!0), m("");
|
|
40552
40680
|
try {
|
|
40553
|
-
let { userId: r } = g(), i =
|
|
40681
|
+
let { userId: r } = g(), i = qk(t.selectedRecords?.[0]) || qk(t);
|
|
40554
40682
|
await Promise.all(e.map((e) => wt("batchCandidates", {
|
|
40555
40683
|
schemaVersion: 1,
|
|
40556
40684
|
batchId: v,
|
|
40557
40685
|
batchName: i,
|
|
40558
|
-
candidateId:
|
|
40559
|
-
workforceEngagementId:
|
|
40686
|
+
candidateId: Gk(e),
|
|
40687
|
+
workforceEngagementId: Kk(e),
|
|
40560
40688
|
source: "ONBOARDING",
|
|
40561
40689
|
assignmentStatus: "ASSIGNED",
|
|
40562
40690
|
assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -40599,22 +40727,22 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40599
40727
|
style: { marginBottom: 12 }
|
|
40600
40728
|
}),
|
|
40601
40729
|
/* @__PURE__ */ X(Tr, {
|
|
40602
|
-
rowKey: (e) =>
|
|
40730
|
+
rowKey: (e) => Kk(e),
|
|
40603
40731
|
columns: [
|
|
40604
40732
|
{
|
|
40605
40733
|
title: "Candidate",
|
|
40606
40734
|
key: "candidate",
|
|
40607
|
-
render: (e, t) =>
|
|
40735
|
+
render: (e, t) => Wk(t)
|
|
40608
40736
|
},
|
|
40609
40737
|
{
|
|
40610
40738
|
title: "Email",
|
|
40611
40739
|
key: "email",
|
|
40612
|
-
render: (e, t) =>
|
|
40740
|
+
render: (e, t) => Hk(t, "email", "candidateEmail", "candidate_email") || "—"
|
|
40613
40741
|
},
|
|
40614
40742
|
{
|
|
40615
40743
|
title: "Onboarding status",
|
|
40616
40744
|
key: "status",
|
|
40617
|
-
render: (e, t) =>
|
|
40745
|
+
render: (e, t) => Hk(t, "status", "onboardingStatus", "onboarding_status") || "—"
|
|
40618
40746
|
}
|
|
40619
40747
|
],
|
|
40620
40748
|
dataSource: y,
|
|
@@ -40628,9 +40756,9 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40628
40756
|
selectedRowKeys: a,
|
|
40629
40757
|
onChange: o,
|
|
40630
40758
|
getCheckboxProps: (e) => {
|
|
40631
|
-
let t = h.get(
|
|
40759
|
+
let t = h.get(Gk(e));
|
|
40632
40760
|
return {
|
|
40633
|
-
disabled: !
|
|
40761
|
+
disabled: !Gk(e) || !Kk(e) || !!t,
|
|
40634
40762
|
title: t ? "Candidate is already added to a batch" : void 0
|
|
40635
40763
|
};
|
|
40636
40764
|
}
|
|
@@ -40642,7 +40770,7 @@ function jk({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
40642
40770
|
}
|
|
40643
40771
|
//#endregion
|
|
40644
40772
|
//#region src/components/popups/dynamic/DynamicPopupRoute.jsx
|
|
40645
|
-
var
|
|
40773
|
+
var Yk = {
|
|
40646
40774
|
text: "input",
|
|
40647
40775
|
string: "input",
|
|
40648
40776
|
textarea: "textarea",
|
|
@@ -40651,13 +40779,13 @@ var Mk = {
|
|
|
40651
40779
|
multiselect: "multi-select",
|
|
40652
40780
|
lookup: "search-select"
|
|
40653
40781
|
};
|
|
40654
|
-
function
|
|
40782
|
+
function Xk(e) {
|
|
40655
40783
|
if (!e) return null;
|
|
40656
40784
|
let t = [...e.groups ?? []].sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)).flatMap((e) => [...e.fields ?? []].filter((e) => e.show !== 0 && e.show !== !1).sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)).map((e) => ({
|
|
40657
40785
|
...e,
|
|
40658
40786
|
name: e.name ?? e.field,
|
|
40659
40787
|
label: e.label ?? e.field,
|
|
40660
|
-
type:
|
|
40788
|
+
type: Yk[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
|
|
40661
40789
|
required: e.required ?? e.req === 1,
|
|
40662
40790
|
options: (e.options ?? []).map((e) => ({
|
|
40663
40791
|
label: e.label ?? e.name ?? e.value,
|
|
@@ -40669,12 +40797,12 @@ function Nk(e) {
|
|
|
40669
40797
|
fields: t
|
|
40670
40798
|
};
|
|
40671
40799
|
}
|
|
40672
|
-
function
|
|
40800
|
+
function Zk({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
40673
40801
|
let n = L(() => ({
|
|
40674
|
-
...
|
|
40802
|
+
...Bk,
|
|
40675
40803
|
...e
|
|
40676
40804
|
}), [e]), r = L(() => {
|
|
40677
|
-
let e = { ...
|
|
40805
|
+
let e = { ...zk };
|
|
40678
40806
|
return Object.entries(t).forEach(([t, n]) => {
|
|
40679
40807
|
e[t] = {
|
|
40680
40808
|
...e[t] ?? {},
|
|
@@ -40692,7 +40820,7 @@ function Pk({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
40692
40820
|
return pe(c.moduleName, "popup", i).then((n) => {
|
|
40693
40821
|
e || u({
|
|
40694
40822
|
key: t,
|
|
40695
|
-
config:
|
|
40823
|
+
config: Xk(n[0])
|
|
40696
40824
|
});
|
|
40697
40825
|
}).catch(() => {
|
|
40698
40826
|
e || u({
|
|
@@ -40763,7 +40891,7 @@ function Pk({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
40763
40891
|
}
|
|
40764
40892
|
s(-1);
|
|
40765
40893
|
};
|
|
40766
|
-
return i === "add-batch-candidate" ? /* @__PURE__ */ X(
|
|
40894
|
+
return i === "add-batch-candidate" ? /* @__PURE__ */ X(Jk, {
|
|
40767
40895
|
open: !0,
|
|
40768
40896
|
context: f,
|
|
40769
40897
|
onClose: m
|
|
@@ -40780,7 +40908,7 @@ function Pk({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
40780
40908
|
}
|
|
40781
40909
|
//#endregion
|
|
40782
40910
|
//#region src/components/popups/definitions/vendor-share/config.js
|
|
40783
|
-
var
|
|
40911
|
+
var Qk = {
|
|
40784
40912
|
title: "Vendor Share",
|
|
40785
40913
|
maxVendorSelect: 1e3,
|
|
40786
40914
|
defaultTab: "myVendor",
|
|
@@ -40814,7 +40942,7 @@ var Fk = {
|
|
|
40814
40942
|
key: "updatedOn"
|
|
40815
40943
|
}
|
|
40816
40944
|
]
|
|
40817
|
-
},
|
|
40945
|
+
}, $k = {
|
|
40818
40946
|
getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => uc({
|
|
40819
40947
|
jobId: e,
|
|
40820
40948
|
limit: t,
|
|
@@ -40831,11 +40959,11 @@ var Fk = {
|
|
|
40831
40959
|
subject: i,
|
|
40832
40960
|
contents: a
|
|
40833
40961
|
})
|
|
40834
|
-
},
|
|
40962
|
+
}, eA = Qk.vendorColumns.map((e) => ({
|
|
40835
40963
|
...e,
|
|
40836
40964
|
render: (e) => e || "-"
|
|
40837
40965
|
}));
|
|
40838
|
-
function
|
|
40966
|
+
function tA() {
|
|
40839
40967
|
let e = Pa(), t = Na(), { selectedIds: n = [], selectedRecords: r = [], recipients: i = [], subject: a = "", onSend: o, moduleName: s = "", popupAction: c = {} } = t.state ?? {}, l = n[0] ?? r[0]?._id ?? r[0]?.id, [u, d] = R({
|
|
40840
40968
|
to: i.join(", "),
|
|
40841
40969
|
cc: "",
|
|
@@ -40844,13 +40972,13 @@ function Rk() {
|
|
|
40844
40972
|
contents: "",
|
|
40845
40973
|
showCc: !1,
|
|
40846
40974
|
showBcc: !1
|
|
40847
|
-
}), [f, p] = R(!l), [m, h] = R(
|
|
40975
|
+
}), [f, p] = R(!l), [m, h] = R(Qk.defaultTab), [g, _] = R(""), [v, y] = R([]), [b, x] = R(0), [S, C] = R(0), [w, T] = R(0), [E, D] = R(1), [O, k] = R(Qk.defaultPageSize), [A, j] = R(!1), [M, ee] = R([]);
|
|
40848
40976
|
I(() => {
|
|
40849
40977
|
if (!l) return;
|
|
40850
40978
|
let e = !1;
|
|
40851
40979
|
j(!0);
|
|
40852
40980
|
let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
|
|
40853
|
-
return
|
|
40981
|
+
return $k.getVendorList({
|
|
40854
40982
|
jobId: l,
|
|
40855
40983
|
limit: t,
|
|
40856
40984
|
offset: n,
|
|
@@ -40873,7 +41001,7 @@ function Rk() {
|
|
|
40873
41001
|
O,
|
|
40874
41002
|
g
|
|
40875
41003
|
]), I(() => {
|
|
40876
|
-
l &&
|
|
41004
|
+
l && $k.getMailDetails(l).then((e) => d((t) => ({
|
|
40877
41005
|
...t,
|
|
40878
41006
|
subject: e.subject || t.subject,
|
|
40879
41007
|
contents: e.contents || t.contents,
|
|
@@ -40898,7 +41026,7 @@ function Rk() {
|
|
|
40898
41026
|
e(-1);
|
|
40899
41027
|
}
|
|
40900
41028
|
function oe() {
|
|
40901
|
-
re &&
|
|
41029
|
+
re && $k.submit({
|
|
40902
41030
|
jobId: l,
|
|
40903
41031
|
toMail: DE(te.to),
|
|
40904
41032
|
ccMail: DE(te.cc),
|
|
@@ -40979,7 +41107,7 @@ function Rk() {
|
|
|
40979
41107
|
]
|
|
40980
41108
|
}), /* @__PURE__ */ X("div", {
|
|
40981
41109
|
className: "vendor-share__vendor-tabs",
|
|
40982
|
-
children:
|
|
41110
|
+
children: Qk.vendorTabs.map((e) => /* @__PURE__ */ Z("span", {
|
|
40983
41111
|
className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
|
|
40984
41112
|
onClick: () => {
|
|
40985
41113
|
h(e.key), D(1), ee([]);
|
|
@@ -40997,7 +41125,7 @@ function Rk() {
|
|
|
40997
41125
|
className: "vendor-share__vendor-table-wrapper",
|
|
40998
41126
|
children: /* @__PURE__ */ X(Tr, {
|
|
40999
41127
|
rowKey: (e) => e.vendorId,
|
|
41000
|
-
columns:
|
|
41128
|
+
columns: eA,
|
|
41001
41129
|
dataSource: se,
|
|
41002
41130
|
loading: A,
|
|
41003
41131
|
pagination: !1,
|
|
@@ -41005,7 +41133,7 @@ function Rk() {
|
|
|
41005
41133
|
rowSelection: {
|
|
41006
41134
|
selectedRowKeys: M,
|
|
41007
41135
|
onChange: (e) => {
|
|
41008
|
-
e.length >
|
|
41136
|
+
e.length > Qk.maxVendorSelect || ee(e);
|
|
41009
41137
|
}
|
|
41010
41138
|
},
|
|
41011
41139
|
scroll: { y: "calc(100vh - 340px)" }
|
|
@@ -41039,7 +41167,7 @@ function Rk() {
|
|
|
41039
41167
|
children: [
|
|
41040
41168
|
M.length,
|
|
41041
41169
|
" / ",
|
|
41042
|
-
|
|
41170
|
+
Qk.maxVendorSelect,
|
|
41043
41171
|
" Vendors selected"
|
|
41044
41172
|
]
|
|
41045
41173
|
}) : null
|
|
@@ -41050,7 +41178,7 @@ function Rk() {
|
|
|
41050
41178
|
}
|
|
41051
41179
|
//#endregion
|
|
41052
41180
|
//#region src/components/form/validation.js
|
|
41053
|
-
var
|
|
41181
|
+
var nA = {
|
|
41054
41182
|
EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
|
|
41055
41183
|
PHONE: /^[0-9]{10}$/,
|
|
41056
41184
|
PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
|
|
@@ -41067,7 +41195,7 @@ var zk = {
|
|
|
41067
41195
|
FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
|
|
41068
41196
|
NO_SPACES: /^\S+$/,
|
|
41069
41197
|
STARTS_WITH_CAPITAL: /^[A-Z].*$/
|
|
41070
|
-
},
|
|
41198
|
+
}, rA = {
|
|
41071
41199
|
SINGLE_FILE_COUNT: 1,
|
|
41072
41200
|
MULTI_FILE_COUNT: 5,
|
|
41073
41201
|
MAX_FILE_SIZE: 2,
|
|
@@ -41076,7 +41204,7 @@ var zk = {
|
|
|
41076
41204
|
"image/png",
|
|
41077
41205
|
"application/pdf"
|
|
41078
41206
|
]
|
|
41079
|
-
},
|
|
41207
|
+
}, iA = {
|
|
41080
41208
|
REQUIRED: (e) => "Mandatory Field",
|
|
41081
41209
|
INVALID_EMAIL: "Please enter a valid email address.",
|
|
41082
41210
|
INVALID_PHONE: "Phone number must contain exactly 10 digits.",
|
|
@@ -41096,16 +41224,16 @@ var zk = {
|
|
|
41096
41224
|
NO_SPACES_ALLOWED: "Spaces are not allowed.",
|
|
41097
41225
|
MUST_START_WITH_CAPITAL: "First letter must be capital.",
|
|
41098
41226
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
41099
|
-
INVALID_FILE_SIZE: `File upload must be ${
|
|
41227
|
+
INVALID_FILE_SIZE: `File upload must be ${rA.MAX_FILE_SIZE} MB below.`,
|
|
41100
41228
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
41101
41229
|
SINGLE_FILE_ONLY: "Only one file can be uploaded."
|
|
41102
|
-
},
|
|
41230
|
+
}, aA = {
|
|
41103
41231
|
FIRST_NAME_MIN: 3,
|
|
41104
41232
|
FIRST_NAME_MAX: 30
|
|
41105
|
-
},
|
|
41233
|
+
}, oA = {
|
|
41106
41234
|
REMARKS_MIN: 10,
|
|
41107
41235
|
REMARKS_MAX: 250
|
|
41108
|
-
},
|
|
41236
|
+
}, sA = {
|
|
41109
41237
|
removeSpaces: (e = "") => e.replace(/\s/g, ""),
|
|
41110
41238
|
capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
|
|
41111
41239
|
capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
@@ -41117,132 +41245,132 @@ var zk = {
|
|
|
41117
41245
|
let t = e.replace(/\D/g, "");
|
|
41118
41246
|
return t.length <= 2 ? t : t.length <= 4 ? `${t.slice(0, 2)}/${t.slice(2)}` : `${t.slice(0, 2)}/${t.slice(2, 4)}/${t.slice(4, 8)}`;
|
|
41119
41247
|
}
|
|
41120
|
-
},
|
|
41248
|
+
}, cA = {
|
|
41121
41249
|
required: (e = "Field") => ({
|
|
41122
41250
|
required: !0,
|
|
41123
|
-
message:
|
|
41251
|
+
message: iA.REQUIRED(e)
|
|
41124
41252
|
}),
|
|
41125
41253
|
email: () => ({
|
|
41126
|
-
pattern:
|
|
41127
|
-
message:
|
|
41254
|
+
pattern: nA.EMAIL,
|
|
41255
|
+
message: iA.INVALID_EMAIL
|
|
41128
41256
|
}),
|
|
41129
41257
|
phone: () => ({
|
|
41130
|
-
pattern:
|
|
41131
|
-
message:
|
|
41258
|
+
pattern: nA.PHONE,
|
|
41259
|
+
message: iA.INVALID_PHONE
|
|
41132
41260
|
}),
|
|
41133
41261
|
password: () => ({
|
|
41134
|
-
pattern:
|
|
41135
|
-
message:
|
|
41262
|
+
pattern: nA.PASSWORD,
|
|
41263
|
+
message: iA.INVALID_PASSWORD
|
|
41136
41264
|
}),
|
|
41137
41265
|
alphabets: () => ({
|
|
41138
|
-
pattern:
|
|
41139
|
-
message:
|
|
41266
|
+
pattern: nA.ALPHABETS,
|
|
41267
|
+
message: iA.INVALID_ALPHABETS
|
|
41140
41268
|
}),
|
|
41141
41269
|
alphanumeric: () => ({
|
|
41142
|
-
pattern:
|
|
41143
|
-
message:
|
|
41270
|
+
pattern: nA.ALPHANUMERIC,
|
|
41271
|
+
message: iA.INVALID_ALPHANUMERIC
|
|
41144
41272
|
}),
|
|
41145
41273
|
number: () => ({
|
|
41146
|
-
pattern:
|
|
41147
|
-
message:
|
|
41274
|
+
pattern: nA.NUMBER,
|
|
41275
|
+
message: iA.INVALID_NUMBER
|
|
41148
41276
|
}),
|
|
41149
41277
|
url: () => ({
|
|
41150
|
-
pattern:
|
|
41151
|
-
message:
|
|
41278
|
+
pattern: nA.URL,
|
|
41279
|
+
message: iA.INVALID_URL
|
|
41152
41280
|
}),
|
|
41153
41281
|
candidateId: (e = "ID") => ({
|
|
41154
|
-
pattern:
|
|
41155
|
-
message:
|
|
41282
|
+
pattern: nA.CANDIDATE_ID,
|
|
41283
|
+
message: iA.INVALID_CANDIDATE_ID(e)
|
|
41156
41284
|
}),
|
|
41157
41285
|
remarks: () => ({
|
|
41158
|
-
pattern:
|
|
41159
|
-
message:
|
|
41160
|
-
REMARKS_MIN: `Remarks must be at least ${
|
|
41161
|
-
REMARKS_MAX: `Remarks must not exceed ${
|
|
41286
|
+
pattern: nA.REMARKS,
|
|
41287
|
+
message: iA.INVALID_REMARKS,
|
|
41288
|
+
REMARKS_MIN: `Remarks must be at least ${oA.REMARKS_MIN} characters.`,
|
|
41289
|
+
REMARKS_MAX: `Remarks must not exceed ${oA.REMARKS_MAX} characters.`
|
|
41162
41290
|
}),
|
|
41163
41291
|
designation: () => ({
|
|
41164
|
-
pattern:
|
|
41165
|
-
message:
|
|
41292
|
+
pattern: nA.DESIGNATION,
|
|
41293
|
+
message: iA.INVALID_DESIGNATION
|
|
41166
41294
|
}),
|
|
41167
41295
|
dob: (e = !0) => ({ validator: (t, n) => {
|
|
41168
41296
|
if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
|
|
41169
|
-
if (!
|
|
41297
|
+
if (!nA.DOB.test(n)) return Promise.reject(Error(iA.INVALID_DOB));
|
|
41170
41298
|
let r = La(n, "MM/DD/YYYY", !0);
|
|
41171
|
-
if (!r.isValid()) return Promise.reject(Error(
|
|
41299
|
+
if (!r.isValid()) return Promise.reject(Error(iA.INVALID_DOB));
|
|
41172
41300
|
let i = La().endOf("day");
|
|
41173
41301
|
return r.isAfter(i) ? Promise.reject(/* @__PURE__ */ Error("Date of Birth cannot be a future date.")) : i.diff(r, "year") < 21 ? Promise.reject(/* @__PURE__ */ Error("Age must be at least 21 years.")) : Promise.resolve();
|
|
41174
41302
|
} }),
|
|
41175
41303
|
linkedin: () => ({
|
|
41176
|
-
pattern:
|
|
41177
|
-
message:
|
|
41304
|
+
pattern: nA.LINKEDIN,
|
|
41305
|
+
message: iA.INVALID_LINKEDIN
|
|
41178
41306
|
}),
|
|
41179
41307
|
companyName: () => ({
|
|
41180
|
-
pattern:
|
|
41181
|
-
message:
|
|
41308
|
+
pattern: nA.COMPANY_NAME,
|
|
41309
|
+
message: iA.INVALID_COMPANY_NAME
|
|
41182
41310
|
}),
|
|
41183
41311
|
firstName: () => ({
|
|
41184
|
-
pattern:
|
|
41185
|
-
message:
|
|
41186
|
-
FIRST_NAME_MIN: `First Name must be at least ${
|
|
41187
|
-
FIRST_NAME_MAX: `First Name must not exceed ${
|
|
41312
|
+
pattern: nA.FIRST_NAME,
|
|
41313
|
+
message: iA.INVALID_FIRST_NAME,
|
|
41314
|
+
FIRST_NAME_MIN: `First Name must be at least ${aA.FIRST_NAME_MIN} characters.`,
|
|
41315
|
+
FIRST_NAME_MAX: `First Name must not exceed ${aA.FIRST_NAME_MAX} characters.`
|
|
41188
41316
|
}),
|
|
41189
41317
|
firstNameMinLength: () => ({
|
|
41190
|
-
min:
|
|
41191
|
-
message:
|
|
41318
|
+
min: aA.FIRST_NAME_MIN,
|
|
41319
|
+
message: iA.FIRST_NAME_MIN
|
|
41192
41320
|
}),
|
|
41193
41321
|
firstNameMaxLength: () => ({
|
|
41194
|
-
max:
|
|
41195
|
-
message:
|
|
41322
|
+
max: aA.FIRST_NAME_MAX,
|
|
41323
|
+
message: iA.FIRST_NAME_MAX
|
|
41196
41324
|
}),
|
|
41197
41325
|
remarksMinLength: () => ({
|
|
41198
|
-
min:
|
|
41199
|
-
message:
|
|
41326
|
+
min: oA.REMARKS_MIN,
|
|
41327
|
+
message: iA.REMARKS_MIN
|
|
41200
41328
|
}),
|
|
41201
41329
|
remarksMaxLength: () => ({
|
|
41202
|
-
max:
|
|
41203
|
-
message:
|
|
41330
|
+
max: oA.REMARKS_MAX,
|
|
41331
|
+
message: iA.REMARKS_MAX
|
|
41204
41332
|
}),
|
|
41205
41333
|
fullName: () => ({
|
|
41206
|
-
pattern:
|
|
41207
|
-
message:
|
|
41334
|
+
pattern: nA.FULL_NAME,
|
|
41335
|
+
message: iA.INVALID_FULL_NAME
|
|
41208
41336
|
}),
|
|
41209
41337
|
noSpaces: () => ({
|
|
41210
|
-
pattern:
|
|
41211
|
-
message:
|
|
41338
|
+
pattern: nA.NO_SPACES,
|
|
41339
|
+
message: iA.NO_SPACES_ALLOWED
|
|
41212
41340
|
}),
|
|
41213
41341
|
startsWithCapital: () => ({
|
|
41214
|
-
pattern:
|
|
41215
|
-
message:
|
|
41342
|
+
pattern: nA.STARTS_WITH_CAPITAL,
|
|
41343
|
+
message: iA.MUST_START_WITH_CAPITAL
|
|
41216
41344
|
}),
|
|
41217
41345
|
fileUpload: () => ({ validator: (e, t) => {
|
|
41218
41346
|
if (!t || t.length === 0) return Promise.resolve();
|
|
41219
41347
|
for (let e of t) {
|
|
41220
41348
|
let t = e.originFileObj || e;
|
|
41221
|
-
if (!(t.size / 1024 / 1024 <=
|
|
41222
|
-
if (!
|
|
41349
|
+
if (!(t.size / 1024 / 1024 <= rA.MAX_FILE_SIZE)) return J.error(iA.INVALID_FILE_SIZE), Promise.reject(Error(iA.INVALID_FILE_SIZE));
|
|
41350
|
+
if (!rA.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(iA.INVALID_FILE_TYPE));
|
|
41223
41351
|
}
|
|
41224
41352
|
return Promise.resolve();
|
|
41225
41353
|
} }),
|
|
41226
41354
|
singleFileUpload: () => ({ validator: (e, t) => {
|
|
41227
41355
|
if (!t || t.length === 0) return Promise.resolve();
|
|
41228
|
-
if (t.length >
|
|
41356
|
+
if (t.length > rA.SINGLE_FILE_COUNT) return Promise.reject(Error(iA.SINGLE_FILE_ONLY));
|
|
41229
41357
|
let n = t[0];
|
|
41230
|
-
return n.size / 1024 / 1024 <
|
|
41358
|
+
return n.size / 1024 / 1024 < rA.MAX_FILE_SIZE ? rA.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(iA.INVALID_FILE_TYPE)) : Promise.reject(Error(iA.INVALID_FILE_SIZE));
|
|
41231
41359
|
} }),
|
|
41232
41360
|
multiFileUpload: () => ({ validator: (e, t) => {
|
|
41233
41361
|
if (!t || t.length === 0) return Promise.resolve();
|
|
41234
|
-
if (t.length >
|
|
41362
|
+
if (t.length > rA.MULTI_FILE_COUNT) return Promise.reject(Error(iA.INVALID_FILE_COUNT));
|
|
41235
41363
|
for (let e of t) {
|
|
41236
|
-
if (!(e.size / 1024 / 1024 <
|
|
41237
|
-
if (!
|
|
41364
|
+
if (!(e.size / 1024 / 1024 < rA.MAX_FILE_SIZE)) return Promise.reject(Error(iA.INVALID_FILE_SIZE));
|
|
41365
|
+
if (!rA.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(iA.INVALID_FILE_TYPE));
|
|
41238
41366
|
}
|
|
41239
41367
|
return Promise.resolve();
|
|
41240
41368
|
} })
|
|
41241
|
-
},
|
|
41369
|
+
}, lA = { beforeUpload: (e) => [
|
|
41242
41370
|
"image/jpeg",
|
|
41243
41371
|
"image/png",
|
|
41244
41372
|
"application/pdf"
|
|
41245
|
-
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (J.error("File upload must be 2 MB below."), Ar.LIST_IGNORE) : (J.error("Only JPG, PNG and PDF files are allowed."), Ar.LIST_IGNORE) },
|
|
41373
|
+
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (J.error("File upload must be 2 MB below."), Ar.LIST_IGNORE) : (J.error("Only JPG, PNG and PDF files are allowed."), Ar.LIST_IGNORE) }, uA = () => {
|
|
41246
41374
|
let [e] = V.useForm();
|
|
41247
41375
|
return /* @__PURE__ */ X("div", {
|
|
41248
41376
|
style: { padding: 24 },
|
|
@@ -41262,7 +41390,7 @@ var zk = {
|
|
|
41262
41390
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41263
41391
|
label: "Email",
|
|
41264
41392
|
name: "email",
|
|
41265
|
-
rules: [
|
|
41393
|
+
rules: [cA.required("Email"), cA.email()],
|
|
41266
41394
|
children: /* @__PURE__ */ X(H, {})
|
|
41267
41395
|
})
|
|
41268
41396
|
}),
|
|
@@ -41271,12 +41399,12 @@ var zk = {
|
|
|
41271
41399
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41272
41400
|
label: "Phone Number",
|
|
41273
41401
|
name: "phone",
|
|
41274
|
-
rules: [
|
|
41402
|
+
rules: [cA.required("Phone Number"), cA.phone()],
|
|
41275
41403
|
validateTrigger: ["onBlur", "onChange"],
|
|
41276
41404
|
children: /* @__PURE__ */ X(H, {
|
|
41277
41405
|
maxLength: 10,
|
|
41278
41406
|
onChange: (t) => {
|
|
41279
|
-
e.setFieldsValue({ phone:
|
|
41407
|
+
e.setFieldsValue({ phone: sA.phoneFormatter(t.target.value) });
|
|
41280
41408
|
}
|
|
41281
41409
|
})
|
|
41282
41410
|
})
|
|
@@ -41286,7 +41414,7 @@ var zk = {
|
|
|
41286
41414
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41287
41415
|
label: "Password",
|
|
41288
41416
|
name: "password",
|
|
41289
|
-
rules: [
|
|
41417
|
+
rules: [cA.required("Password"), cA.password()],
|
|
41290
41418
|
children: /* @__PURE__ */ X(H.Password, {})
|
|
41291
41419
|
})
|
|
41292
41420
|
}),
|
|
@@ -41296,13 +41424,13 @@ var zk = {
|
|
|
41296
41424
|
label: "Full Name",
|
|
41297
41425
|
name: "fullName",
|
|
41298
41426
|
rules: [
|
|
41299
|
-
|
|
41300
|
-
|
|
41301
|
-
|
|
41302
|
-
|
|
41427
|
+
cA.required("Full Name"),
|
|
41428
|
+
cA.alphabets(),
|
|
41429
|
+
cA.firstNameMinLength(),
|
|
41430
|
+
cA.firstNameMaxLength()
|
|
41303
41431
|
],
|
|
41304
41432
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41305
|
-
e.setFieldsValue({ fullName:
|
|
41433
|
+
e.setFieldsValue({ fullName: sA.firstNameFormatter(t.target.value) });
|
|
41306
41434
|
} })
|
|
41307
41435
|
})
|
|
41308
41436
|
}),
|
|
@@ -41311,9 +41439,9 @@ var zk = {
|
|
|
41311
41439
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41312
41440
|
label: "Username",
|
|
41313
41441
|
name: "username",
|
|
41314
|
-
rules: [
|
|
41442
|
+
rules: [cA.required("Username"), cA.alphanumeric()],
|
|
41315
41443
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41316
|
-
e.setFieldsValue({ username:
|
|
41444
|
+
e.setFieldsValue({ username: sA.removeExtraSpaces(t.target.value) });
|
|
41317
41445
|
} })
|
|
41318
41446
|
})
|
|
41319
41447
|
}),
|
|
@@ -41322,9 +41450,9 @@ var zk = {
|
|
|
41322
41450
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41323
41451
|
label: "Website URL",
|
|
41324
41452
|
name: "website",
|
|
41325
|
-
rules: [
|
|
41453
|
+
rules: [cA.required("Website URL"), cA.url()],
|
|
41326
41454
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41327
|
-
e.setFieldsValue({ website:
|
|
41455
|
+
e.setFieldsValue({ website: sA.removeExtraSpaces(t.target.value) });
|
|
41328
41456
|
} })
|
|
41329
41457
|
})
|
|
41330
41458
|
}),
|
|
@@ -41333,9 +41461,9 @@ var zk = {
|
|
|
41333
41461
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41334
41462
|
label: "MSP Req ID",
|
|
41335
41463
|
name: "mspreqID",
|
|
41336
|
-
rules: [
|
|
41464
|
+
rules: [cA.required("MSP Req ID"), cA.candidateId("MSP Req ID")],
|
|
41337
41465
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41338
|
-
e.setFieldsValue({ mspreqID:
|
|
41466
|
+
e.setFieldsValue({ mspreqID: sA.removeExtraSpaces(t.target.value) });
|
|
41339
41467
|
} })
|
|
41340
41468
|
})
|
|
41341
41469
|
}),
|
|
@@ -41344,9 +41472,9 @@ var zk = {
|
|
|
41344
41472
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41345
41473
|
label: "Candidate ID",
|
|
41346
41474
|
name: "candidateId",
|
|
41347
|
-
rules: [
|
|
41475
|
+
rules: [cA.required("Candidate ID"), cA.candidateId("Candidate ID")],
|
|
41348
41476
|
children: /* @__PURE__ */ X(H, { onChange: (t) => {
|
|
41349
|
-
e.setFieldsValue({ candidateId:
|
|
41477
|
+
e.setFieldsValue({ candidateId: sA.removeExtraSpaces(t.target.value) });
|
|
41350
41478
|
} })
|
|
41351
41479
|
})
|
|
41352
41480
|
}),
|
|
@@ -41356,10 +41484,10 @@ var zk = {
|
|
|
41356
41484
|
label: "Remarks",
|
|
41357
41485
|
name: "remarks",
|
|
41358
41486
|
rules: [
|
|
41359
|
-
|
|
41360
|
-
|
|
41361
|
-
|
|
41362
|
-
|
|
41487
|
+
cA.required("Remarks"),
|
|
41488
|
+
cA.remarks(),
|
|
41489
|
+
cA.remarksMinLength(),
|
|
41490
|
+
cA.remarksMaxLength()
|
|
41363
41491
|
],
|
|
41364
41492
|
children: /* @__PURE__ */ X(H.TextArea, { rows: 4 })
|
|
41365
41493
|
})
|
|
@@ -41369,7 +41497,7 @@ var zk = {
|
|
|
41369
41497
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41370
41498
|
label: "Designation",
|
|
41371
41499
|
name: "designation",
|
|
41372
|
-
rules: [
|
|
41500
|
+
rules: [cA.required("Designation"), cA.designation()],
|
|
41373
41501
|
children: /* @__PURE__ */ X(H, {})
|
|
41374
41502
|
})
|
|
41375
41503
|
}),
|
|
@@ -41378,12 +41506,12 @@ var zk = {
|
|
|
41378
41506
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41379
41507
|
label: "Date of Birth",
|
|
41380
41508
|
name: "dob",
|
|
41381
|
-
rules: [
|
|
41509
|
+
rules: [cA.dob()],
|
|
41382
41510
|
children: /* @__PURE__ */ X(H, {
|
|
41383
41511
|
placeholder: "MM/DD/YYYY",
|
|
41384
41512
|
maxLength: 10,
|
|
41385
41513
|
onChange: (t) => {
|
|
41386
|
-
e.setFieldsValue({ dob:
|
|
41514
|
+
e.setFieldsValue({ dob: sA.dobFormatter(t.target.value) });
|
|
41387
41515
|
}
|
|
41388
41516
|
})
|
|
41389
41517
|
})
|
|
@@ -41393,7 +41521,7 @@ var zk = {
|
|
|
41393
41521
|
children: /* @__PURE__ */ X(V.Item, {
|
|
41394
41522
|
label: "Company Name",
|
|
41395
41523
|
name: "companyName",
|
|
41396
|
-
rules: [
|
|
41524
|
+
rules: [cA.required("Company Name"), cA.companyName()],
|
|
41397
41525
|
children: /* @__PURE__ */ X(H, {})
|
|
41398
41526
|
})
|
|
41399
41527
|
}),
|
|
@@ -41482,7 +41610,7 @@ var zk = {
|
|
|
41482
41610
|
label: "Resume new",
|
|
41483
41611
|
name: "resume",
|
|
41484
41612
|
children: /* @__PURE__ */ X(Ar, {
|
|
41485
|
-
beforeUpload:
|
|
41613
|
+
beforeUpload: lA.beforeUpload,
|
|
41486
41614
|
maxCount: 1,
|
|
41487
41615
|
children: /* @__PURE__ */ X(z, { children: "Upload Resume" })
|
|
41488
41616
|
})
|
|
@@ -41495,10 +41623,10 @@ var zk = {
|
|
|
41495
41623
|
name: "documents",
|
|
41496
41624
|
valuePropName: "fileList",
|
|
41497
41625
|
getValueFromEvent: (e) => e?.fileList,
|
|
41498
|
-
rules: [
|
|
41626
|
+
rules: [cA.multiFileUpload()],
|
|
41499
41627
|
children: /* @__PURE__ */ X(Ar, {
|
|
41500
41628
|
multiple: !0,
|
|
41501
|
-
beforeUpload:
|
|
41629
|
+
beforeUpload: lA.beforeUpload,
|
|
41502
41630
|
children: /* @__PURE__ */ X(z, { children: "Upload Documents" })
|
|
41503
41631
|
})
|
|
41504
41632
|
})
|
|
@@ -41510,9 +41638,9 @@ var zk = {
|
|
|
41510
41638
|
name: "file",
|
|
41511
41639
|
valuePropName: "fileList",
|
|
41512
41640
|
getValueFromEvent: (e) => e?.fileList,
|
|
41513
|
-
rules: [
|
|
41641
|
+
rules: [cA.fileUpload()],
|
|
41514
41642
|
children: /* @__PURE__ */ X(Ar, {
|
|
41515
|
-
beforeUpload:
|
|
41643
|
+
beforeUpload: lA.beforeUpload,
|
|
41516
41644
|
maxCount: 1,
|
|
41517
41645
|
children: /* @__PURE__ */ X(z, { children: "Upload" })
|
|
41518
41646
|
})
|
|
@@ -41572,12 +41700,12 @@ var zk = {
|
|
|
41572
41700
|
};
|
|
41573
41701
|
//#endregion
|
|
41574
41702
|
//#region src/pages/admin/AdminPageWithShell.jsx
|
|
41575
|
-
function
|
|
41703
|
+
function dA(e) {
|
|
41576
41704
|
return /* @__PURE__ */ X(Dx, { children: /* @__PURE__ */ X(SE, { ...e }) });
|
|
41577
41705
|
}
|
|
41578
41706
|
//#endregion
|
|
41579
41707
|
//#region src/components/cards/StatsCards.jsx
|
|
41580
|
-
var { Text:
|
|
41708
|
+
var { Text: fA } = kr, pA = [
|
|
41581
41709
|
{
|
|
41582
41710
|
label: "Total Jobs",
|
|
41583
41711
|
value: 1697,
|
|
@@ -41593,13 +41721,13 @@ var { Text: Yk } = kr, Xk = [
|
|
|
41593
41721
|
value: 600,
|
|
41594
41722
|
icon: "user"
|
|
41595
41723
|
}
|
|
41596
|
-
],
|
|
41724
|
+
], mA = {
|
|
41597
41725
|
fileText: /* @__PURE__ */ X(wi, {}),
|
|
41598
41726
|
checkCircle: /* @__PURE__ */ X(qr, {}),
|
|
41599
41727
|
user: /* @__PURE__ */ X(wa, {}),
|
|
41600
41728
|
filter: /* @__PURE__ */ X(Ei, {})
|
|
41601
41729
|
};
|
|
41602
|
-
function
|
|
41730
|
+
function hA({ stats: e = pA }) {
|
|
41603
41731
|
return /* @__PURE__ */ X(tr, { children: /* @__PURE__ */ X(xr, {
|
|
41604
41732
|
gutter: [12, 12],
|
|
41605
41733
|
children: e.map((e) => /* @__PURE__ */ X(B, {
|
|
@@ -41612,7 +41740,7 @@ function Qk({ stats: e = Xk }) {
|
|
|
41612
41740
|
className: "stats-inner-card",
|
|
41613
41741
|
children: [/* @__PURE__ */ Z(W, {
|
|
41614
41742
|
align: "center",
|
|
41615
|
-
children: [
|
|
41743
|
+
children: [mA[e.icon] ?? mA.fileText, /* @__PURE__ */ X(fA, { children: e.label })]
|
|
41616
41744
|
}), /* @__PURE__ */ X(Cr, { value: e.value })]
|
|
41617
41745
|
})
|
|
41618
41746
|
}, e.label))
|
|
@@ -41620,21 +41748,21 @@ function Qk({ stats: e = Xk }) {
|
|
|
41620
41748
|
}
|
|
41621
41749
|
//#endregion
|
|
41622
41750
|
//#region src/pages/Modules/Admin/UsersSection.jsx
|
|
41623
|
-
var { Text:
|
|
41624
|
-
function
|
|
41751
|
+
var { Text: gA } = kr;
|
|
41752
|
+
function _A(e) {
|
|
41625
41753
|
return e?.USER_NAME ?? e?.user_name ?? e?.username ?? e?.name ?? e?.full_name ?? e?.fullName ?? e?.email ?? `User ${e?.USER_ID ?? e?.user_id ?? "?"}`;
|
|
41626
41754
|
}
|
|
41627
|
-
function
|
|
41755
|
+
function vA(e) {
|
|
41628
41756
|
return {
|
|
41629
41757
|
...e,
|
|
41630
41758
|
key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
|
|
41631
|
-
_name:
|
|
41759
|
+
_name: _A(e),
|
|
41632
41760
|
_email: e.email ?? e.EMAIL ?? e.user_email ?? "",
|
|
41633
41761
|
_role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
|
|
41634
41762
|
_rawRef: e
|
|
41635
41763
|
};
|
|
41636
41764
|
}
|
|
41637
|
-
function
|
|
41765
|
+
function yA() {
|
|
41638
41766
|
let [e, t] = R([]), [n, r] = R(0), [i, a] = R(!1), [o, s] = R(1), [c, l] = R(10), [u, d] = R(""), f = qn(async ({ offset: e, limit: n, searchQuery: i } = {}) => {
|
|
41639
41767
|
a(!0);
|
|
41640
41768
|
try {
|
|
@@ -41642,7 +41770,7 @@ function nA() {
|
|
|
41642
41770
|
offset: e,
|
|
41643
41771
|
limit: n,
|
|
41644
41772
|
searchQuery: i ?? ""
|
|
41645
|
-
}), o = (a.users ?? []).map(
|
|
41773
|
+
}), o = (a.users ?? []).map(vA);
|
|
41646
41774
|
t(o), r(a.total ?? o.length);
|
|
41647
41775
|
} catch {
|
|
41648
41776
|
J.error("Failed to load users");
|
|
@@ -41675,7 +41803,7 @@ function nA() {
|
|
|
41675
41803
|
label: "Name",
|
|
41676
41804
|
value: "_name",
|
|
41677
41805
|
width: 220,
|
|
41678
|
-
render: (e, t) => /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
41806
|
+
render: (e, t) => /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(gA, {
|
|
41679
41807
|
strong: !0,
|
|
41680
41808
|
style: { fontSize: 13 },
|
|
41681
41809
|
children: e
|
|
@@ -41707,7 +41835,7 @@ function nA() {
|
|
|
41707
41835
|
}
|
|
41708
41836
|
//#endregion
|
|
41709
41837
|
//#region src/pages/Modules/Admin/TeamsSection.jsx
|
|
41710
|
-
var { Text:
|
|
41838
|
+
var { Text: bA } = kr, xA = [
|
|
41711
41839
|
{
|
|
41712
41840
|
key: "job",
|
|
41713
41841
|
label: "Jobs"
|
|
@@ -41720,7 +41848,7 @@ var { Text: rA } = kr, iA = [
|
|
|
41720
41848
|
key: "submissions",
|
|
41721
41849
|
label: "Submissions"
|
|
41722
41850
|
}
|
|
41723
|
-
],
|
|
41851
|
+
], SA = [
|
|
41724
41852
|
{
|
|
41725
41853
|
key: "listView",
|
|
41726
41854
|
label: "List View"
|
|
@@ -41734,7 +41862,7 @@ var { Text: rA } = kr, iA = [
|
|
|
41734
41862
|
label: "Form"
|
|
41735
41863
|
}
|
|
41736
41864
|
];
|
|
41737
|
-
function
|
|
41865
|
+
function CA({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
41738
41866
|
let i = Yn(null), [a, o] = R(!1), [s, c] = R(!1);
|
|
41739
41867
|
function l(e) {
|
|
41740
41868
|
i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
|
|
@@ -41798,7 +41926,7 @@ function oA({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
|
41798
41926
|
]
|
|
41799
41927
|
});
|
|
41800
41928
|
}
|
|
41801
|
-
function
|
|
41929
|
+
function wA({ team: e, configType: t }) {
|
|
41802
41930
|
let [n, r] = R({}), [i, a] = R(!1), [o, s] = R({}), [c, l] = R("job");
|
|
41803
41931
|
I(() => {
|
|
41804
41932
|
e && (a(!0), dn(e, t).then(r).catch(() => J.error("Failed to load field config")).finally(() => a(!1)));
|
|
@@ -41849,7 +41977,7 @@ function sA({ team: e, configType: t }) {
|
|
|
41849
41977
|
size: "small",
|
|
41850
41978
|
activeKey: c,
|
|
41851
41979
|
onChange: l,
|
|
41852
|
-
items:
|
|
41980
|
+
items: xA.map((e) => ({
|
|
41853
41981
|
key: e.key,
|
|
41854
41982
|
label: e.label
|
|
41855
41983
|
}))
|
|
@@ -41878,7 +42006,7 @@ function sA({ team: e, configType: t }) {
|
|
|
41878
42006
|
children: [u.length === 0 && !i && /* @__PURE__ */ X("div", {
|
|
41879
42007
|
className: "uss-empty",
|
|
41880
42008
|
children: "No fields found."
|
|
41881
|
-
}), u.map((e, t) => /* @__PURE__ */ X(
|
|
42009
|
+
}), u.map((e, t) => /* @__PURE__ */ X(CA, {
|
|
41882
42010
|
field: e,
|
|
41883
42011
|
index: t,
|
|
41884
42012
|
onToggle: f,
|
|
@@ -41892,13 +42020,13 @@ function sA({ team: e, configType: t }) {
|
|
|
41892
42020
|
size: "small",
|
|
41893
42021
|
loading: o[c],
|
|
41894
42022
|
onClick: m,
|
|
41895
|
-
children: ["Save ",
|
|
42023
|
+
children: ["Save ", xA.find((e) => e.key === c)?.label]
|
|
41896
42024
|
})
|
|
41897
42025
|
})
|
|
41898
42026
|
]
|
|
41899
42027
|
});
|
|
41900
42028
|
}
|
|
41901
|
-
function
|
|
42029
|
+
function TA() {
|
|
41902
42030
|
let [e, t] = R(null), [n, r] = R(!1), [i, a] = R(!1), [o, s] = R("listView"), [c, l] = R([]), [u, d] = R(0), [f, p] = R(!1), [m, h] = R(""), [g, _] = R(!1), v = qn(async () => {
|
|
41903
42031
|
p(!0);
|
|
41904
42032
|
try {
|
|
@@ -42045,13 +42173,13 @@ function cA() {
|
|
|
42045
42173
|
style: { marginBottom: 12 },
|
|
42046
42174
|
children: /* @__PURE__ */ X("div", {
|
|
42047
42175
|
className: "uss-config-toggle",
|
|
42048
|
-
children:
|
|
42176
|
+
children: SA.map((e) => /* @__PURE__ */ X("button", {
|
|
42049
42177
|
className: `uss-config-btn${o === e.key ? " active" : ""}`,
|
|
42050
42178
|
onClick: () => s(e.key),
|
|
42051
42179
|
children: e.label
|
|
42052
42180
|
}, e.key))
|
|
42053
42181
|
})
|
|
42054
|
-
}), e && /* @__PURE__ */ X(
|
|
42182
|
+
}), e && /* @__PURE__ */ X(wA, {
|
|
42055
42183
|
team: e,
|
|
42056
42184
|
configType: o
|
|
42057
42185
|
}, `${e?.teamId}-${o}`)]
|
|
@@ -42060,12 +42188,12 @@ function cA() {
|
|
|
42060
42188
|
}
|
|
42061
42189
|
//#endregion
|
|
42062
42190
|
//#region src/pages/Modules/Admin/components/RolePermPanel.jsx
|
|
42063
|
-
var
|
|
42191
|
+
var EA = [
|
|
42064
42192
|
"view",
|
|
42065
42193
|
"add",
|
|
42066
42194
|
"edit",
|
|
42067
42195
|
"delete"
|
|
42068
|
-
],
|
|
42196
|
+
], DA = {
|
|
42069
42197
|
view: "View",
|
|
42070
42198
|
add: "Add",
|
|
42071
42199
|
edit: "Edit",
|
|
@@ -42078,18 +42206,18 @@ var lA = [
|
|
|
42078
42206
|
all_jobs: "All Jobs",
|
|
42079
42207
|
po_msa: "PO MSA"
|
|
42080
42208
|
};
|
|
42081
|
-
function
|
|
42082
|
-
return
|
|
42209
|
+
function OA(e) {
|
|
42210
|
+
return DA[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
42083
42211
|
}
|
|
42084
|
-
function
|
|
42085
|
-
let t =
|
|
42212
|
+
function kA(e) {
|
|
42213
|
+
let t = EA.filter((t) => e.includes(t)), n = e.filter((e) => !EA.includes(e)).sort();
|
|
42086
42214
|
return [...t, ...n];
|
|
42087
42215
|
}
|
|
42088
|
-
function
|
|
42216
|
+
function AA(e) {
|
|
42089
42217
|
let t = /* @__PURE__ */ new Set();
|
|
42090
|
-
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))),
|
|
42218
|
+
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), kA([...t]);
|
|
42091
42219
|
}
|
|
42092
|
-
function
|
|
42220
|
+
function jA(e) {
|
|
42093
42221
|
let t = 0, n = 0;
|
|
42094
42222
|
return Object.entries(e).forEach(([e, { permissions: r }]) => {
|
|
42095
42223
|
Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
|
|
@@ -42100,7 +42228,7 @@ function mA(e) {
|
|
|
42100
42228
|
total: n
|
|
42101
42229
|
};
|
|
42102
42230
|
}
|
|
42103
|
-
function
|
|
42231
|
+
function MA({ value: e, onSave: t, className: n }) {
|
|
42104
42232
|
let [r, i] = R(!1), [a, o] = R(e);
|
|
42105
42233
|
I(() => {
|
|
42106
42234
|
o(e);
|
|
@@ -42129,7 +42257,7 @@ function hA({ value: e, onSave: t, className: n }) {
|
|
|
42129
42257
|
children: [e, /* @__PURE__ */ X(di, { className: "perm-name-edit-icon" })]
|
|
42130
42258
|
});
|
|
42131
42259
|
}
|
|
42132
|
-
function
|
|
42260
|
+
function NA({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
42133
42261
|
let [i, a] = R(!1), [o, s] = R(t), c = e?.value === "1", l = !!e;
|
|
42134
42262
|
I(() => {
|
|
42135
42263
|
s(t);
|
|
@@ -42171,13 +42299,13 @@ function gA({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
|
42171
42299
|
})
|
|
42172
42300
|
});
|
|
42173
42301
|
}
|
|
42174
|
-
function
|
|
42302
|
+
function PA({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
|
|
42175
42303
|
let c = t?.permissions ?? {}, l = n.filter((t) => LS(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
|
|
42176
42304
|
return /* @__PURE__ */ Z("div", {
|
|
42177
42305
|
className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
|
|
42178
42306
|
children: [/* @__PURE__ */ Z("div", {
|
|
42179
42307
|
className: "perm-module-card-header",
|
|
42180
|
-
children: [/* @__PURE__ */ X(
|
|
42308
|
+
children: [/* @__PURE__ */ X(MA, {
|
|
42181
42309
|
value: i,
|
|
42182
42310
|
onSave: (t) => o(e, t),
|
|
42183
42311
|
className: "perm-module-card-name"
|
|
@@ -42191,16 +42319,16 @@ function _A({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
|
|
|
42191
42319
|
})]
|
|
42192
42320
|
}), /* @__PURE__ */ X("div", {
|
|
42193
42321
|
className: "perm-module-card-body",
|
|
42194
|
-
children: l.map((t) => /* @__PURE__ */ X(
|
|
42322
|
+
children: l.map((t) => /* @__PURE__ */ X(NA, {
|
|
42195
42323
|
entry: c[t],
|
|
42196
|
-
label: a[t] ??
|
|
42324
|
+
label: a[t] ?? OA(t),
|
|
42197
42325
|
onToggle: () => r(e, t),
|
|
42198
42326
|
onLabelSave: (e) => s(t, e)
|
|
42199
42327
|
}, t))
|
|
42200
42328
|
})]
|
|
42201
42329
|
});
|
|
42202
42330
|
}
|
|
42203
|
-
function
|
|
42331
|
+
function FA({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
|
|
42204
42332
|
let [a, o] = R({}), [s, c] = R({}), [l, u] = R(!1), [d, f] = R(!1), [p, m] = R(!1), h = Qt(e);
|
|
42205
42333
|
I(() => {
|
|
42206
42334
|
h && (u(!0), m(!1), kt(h).then((e) => {
|
|
@@ -42241,7 +42369,7 @@ function vA({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
42241
42369
|
f(!1);
|
|
42242
42370
|
}
|
|
42243
42371
|
}
|
|
42244
|
-
let v = L(() => Object.keys(s).sort(), [s]), y = L(() =>
|
|
42372
|
+
let v = L(() => Object.keys(s).sort(), [s]), y = L(() => AA(s), [s]), { enabled: b, total: x } = L(() => jA(s), [s]);
|
|
42245
42373
|
return /* @__PURE__ */ Z(Sr, {
|
|
42246
42374
|
spinning: l,
|
|
42247
42375
|
children: [
|
|
@@ -42292,7 +42420,7 @@ function vA({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
42292
42420
|
children: "No permission entries found for this role."
|
|
42293
42421
|
}) : /* @__PURE__ */ X("div", {
|
|
42294
42422
|
className: "perm-cards-grid",
|
|
42295
|
-
children: v.map((e) => /* @__PURE__ */ X(
|
|
42423
|
+
children: v.map((e) => /* @__PURE__ */ X(PA, {
|
|
42296
42424
|
menuName: e,
|
|
42297
42425
|
menuData: s[e],
|
|
42298
42426
|
permKeys: y,
|
|
@@ -42308,7 +42436,7 @@ function vA({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
42308
42436
|
}
|
|
42309
42437
|
//#endregion
|
|
42310
42438
|
//#region src/pages/Modules/Admin/RolesSection.jsx
|
|
42311
|
-
var { Text:
|
|
42439
|
+
var { Text: IA } = kr, LA = [
|
|
42312
42440
|
{
|
|
42313
42441
|
key: "listView",
|
|
42314
42442
|
label: "List View"
|
|
@@ -42326,38 +42454,38 @@ var { Text: yA } = kr, bA = [
|
|
|
42326
42454
|
label: "Permissions"
|
|
42327
42455
|
}
|
|
42328
42456
|
];
|
|
42329
|
-
function
|
|
42457
|
+
function RA(e) {
|
|
42330
42458
|
return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
|
|
42331
42459
|
}
|
|
42332
|
-
function
|
|
42460
|
+
function zA(e) {
|
|
42333
42461
|
return String(e || "").trim().toLowerCase();
|
|
42334
42462
|
}
|
|
42335
|
-
function
|
|
42463
|
+
function BA(e) {
|
|
42336
42464
|
return e?.key || e?.collectionName || e?.value || "";
|
|
42337
42465
|
}
|
|
42338
|
-
function
|
|
42466
|
+
function VA(e = [], t = []) {
|
|
42339
42467
|
let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
42340
42468
|
return e.forEach((e) => {
|
|
42341
|
-
let t =
|
|
42469
|
+
let t = BA(e);
|
|
42342
42470
|
if (!t) return;
|
|
42343
|
-
let o =
|
|
42471
|
+
let o = zA(e.key || t), s = zA(e.collectionName);
|
|
42344
42472
|
e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
|
|
42345
|
-
label: e.label ||
|
|
42473
|
+
label: e.label || RA(t),
|
|
42346
42474
|
value: t,
|
|
42347
42475
|
disabled: !!e.seeded
|
|
42348
42476
|
});
|
|
42349
42477
|
}), t.forEach((e) => {
|
|
42350
42478
|
let t = String(e || "").trim();
|
|
42351
42479
|
if (!t || r.has(t)) return;
|
|
42352
|
-
let o =
|
|
42480
|
+
let o = zA(t);
|
|
42353
42481
|
a.has(o) || i.has(o) || (r.add(t), n.push({
|
|
42354
|
-
label:
|
|
42482
|
+
label: RA(t),
|
|
42355
42483
|
value: t,
|
|
42356
42484
|
disabled: !1
|
|
42357
42485
|
}));
|
|
42358
42486
|
}), n;
|
|
42359
42487
|
}
|
|
42360
|
-
function
|
|
42488
|
+
function HA() {
|
|
42361
42489
|
let [e, t] = R(null), [n, r] = R(!1), [i, a] = R("listView"), [o, s] = R([]), [c, l] = R(0), [u, d] = R(!1), [f, p] = R([]), [m, h] = R([]), [g, _] = R(!1), [v, y] = R(!1), b = L(() => f.filter((e) => !e.disabled), [f]), x = !g && b.length === 0, S = qn(async () => {
|
|
42362
42490
|
d(!0);
|
|
42363
42491
|
try {
|
|
@@ -42371,7 +42499,7 @@ function TA() {
|
|
|
42371
42499
|
}, []), C = qn(async () => {
|
|
42372
42500
|
_(!0);
|
|
42373
42501
|
try {
|
|
42374
|
-
let [e, t] = await Promise.all([Se(), ee()]), n =
|
|
42502
|
+
let [e, t] = await Promise.all([Se(), ee()]), n = VA(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
|
|
42375
42503
|
p(n), h((e) => e.filter((e) => r.has(e)));
|
|
42376
42504
|
} catch {
|
|
42377
42505
|
J.error("Failed to load seed status");
|
|
@@ -42437,7 +42565,7 @@ function TA() {
|
|
|
42437
42565
|
onClick: w,
|
|
42438
42566
|
children: "Seed Field Config"
|
|
42439
42567
|
})]
|
|
42440
|
-
}), /* @__PURE__ */ X(
|
|
42568
|
+
}), /* @__PURE__ */ X(IA, {
|
|
42441
42569
|
type: "secondary",
|
|
42442
42570
|
style: {
|
|
42443
42571
|
display: "block",
|
|
@@ -42517,13 +42645,13 @@ function TA() {
|
|
|
42517
42645
|
style: { marginBottom: 12 },
|
|
42518
42646
|
children: /* @__PURE__ */ X("div", {
|
|
42519
42647
|
className: "uss-config-toggle",
|
|
42520
|
-
children:
|
|
42648
|
+
children: LA.map((e) => /* @__PURE__ */ X("button", {
|
|
42521
42649
|
className: `uss-config-btn${i === e.key ? " active" : ""}`,
|
|
42522
42650
|
onClick: () => a(e.key),
|
|
42523
42651
|
children: e.label
|
|
42524
42652
|
}, e.key))
|
|
42525
42653
|
})
|
|
42526
|
-
}), e && (i === "permissions" ? /* @__PURE__ */ X(
|
|
42654
|
+
}), e && (i === "permissions" ? /* @__PURE__ */ X(FA, { role: e }, e?.roleId) : /* @__PURE__ */ X(tC, {
|
|
42527
42655
|
role: e,
|
|
42528
42656
|
configType: i
|
|
42529
42657
|
}, `${e?.roleId}-${i}`))]
|
|
@@ -42532,20 +42660,20 @@ function TA() {
|
|
|
42532
42660
|
}
|
|
42533
42661
|
//#endregion
|
|
42534
42662
|
//#region src/pages/Modules/Admin/PermissionsPage.jsx
|
|
42535
|
-
var
|
|
42536
|
-
function
|
|
42663
|
+
var UA = "perm-module-labels", WA = "perm-action-labels";
|
|
42664
|
+
function GA(e) {
|
|
42537
42665
|
try {
|
|
42538
42666
|
return JSON.parse(localStorage.getItem(e) ?? "{}");
|
|
42539
42667
|
} catch {
|
|
42540
42668
|
return {};
|
|
42541
42669
|
}
|
|
42542
42670
|
}
|
|
42543
|
-
function
|
|
42671
|
+
function KA(e, t) {
|
|
42544
42672
|
try {
|
|
42545
42673
|
localStorage.setItem(e, JSON.stringify(t));
|
|
42546
42674
|
} catch {}
|
|
42547
42675
|
}
|
|
42548
|
-
function
|
|
42676
|
+
function qA({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
42549
42677
|
let [i, a] = R(!1), [o, s] = R(e);
|
|
42550
42678
|
function c() {
|
|
42551
42679
|
a(!1);
|
|
@@ -42596,7 +42724,7 @@ function AA({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
|
42596
42724
|
})]
|
|
42597
42725
|
});
|
|
42598
42726
|
}
|
|
42599
|
-
function
|
|
42727
|
+
function JA({ open: e, onClose: t }) {
|
|
42600
42728
|
let [n, r] = R("modules"), [i, a] = R([]), [o, s] = R(!1), [c, l] = R(""), [u, d] = R(!1), [f, p] = R([]), [m, h] = R(!1), [g, _] = R(""), [v, y] = R(""), [b, x] = R(!1);
|
|
42601
42729
|
I(() => {
|
|
42602
42730
|
e && (S(), C());
|
|
@@ -42718,7 +42846,7 @@ function jA({ open: e, onClose: t }) {
|
|
|
42718
42846
|
className: "perm-empty",
|
|
42719
42847
|
style: { paddingTop: 24 },
|
|
42720
42848
|
children: "No modules found"
|
|
42721
|
-
}), i.map((e) => /* @__PURE__ */ X(
|
|
42849
|
+
}), i.map((e) => /* @__PURE__ */ X(qA, {
|
|
42722
42850
|
label: e.MENUNAME,
|
|
42723
42851
|
onSave: (t) => T(e.MENUID, t),
|
|
42724
42852
|
onDelete: () => E(e.MENUID)
|
|
@@ -42763,7 +42891,7 @@ function jA({ open: e, onClose: t }) {
|
|
|
42763
42891
|
className: "perm-empty",
|
|
42764
42892
|
style: { paddingTop: 24 },
|
|
42765
42893
|
children: "No actions found"
|
|
42766
|
-
}), f.map((e) => /* @__PURE__ */ X(
|
|
42894
|
+
}), f.map((e) => /* @__PURE__ */ X(qA, {
|
|
42767
42895
|
label: `${e.permissionName} (${e.permissionKey})`,
|
|
42768
42896
|
onSave: (t) => O(e.permissionId, t),
|
|
42769
42897
|
onDelete: () => A(e.permissionId)
|
|
@@ -42793,14 +42921,14 @@ function jA({ open: e, onClose: t }) {
|
|
|
42793
42921
|
})
|
|
42794
42922
|
});
|
|
42795
42923
|
}
|
|
42796
|
-
function
|
|
42797
|
-
let [e, t] = R([]), [n, r] = R(!1), [i, a] = R(null), [o, s] = R(""), [c, l] = R(!1), [u, d] = R(() =>
|
|
42924
|
+
function YA() {
|
|
42925
|
+
let [e, t] = R([]), [n, r] = R(!1), [i, a] = R(null), [o, s] = R(""), [c, l] = R(!1), [u, d] = R(() => GA(UA)), [f, p] = R(() => GA(WA)), m = qn((e, t) => {
|
|
42798
42926
|
d((n) => {
|
|
42799
42927
|
let r = {
|
|
42800
42928
|
...n,
|
|
42801
42929
|
[e]: t
|
|
42802
42930
|
};
|
|
42803
|
-
return
|
|
42931
|
+
return KA(UA, r), r;
|
|
42804
42932
|
});
|
|
42805
42933
|
}, []), h = qn((e, t) => {
|
|
42806
42934
|
p((n) => {
|
|
@@ -42808,11 +42936,11 @@ function MA() {
|
|
|
42808
42936
|
...n,
|
|
42809
42937
|
[e]: t
|
|
42810
42938
|
};
|
|
42811
|
-
return
|
|
42939
|
+
return KA(WA, r), r;
|
|
42812
42940
|
});
|
|
42813
42941
|
}, []);
|
|
42814
42942
|
function g() {
|
|
42815
|
-
d({}), p({}),
|
|
42943
|
+
d({}), p({}), KA(UA, {}), KA(WA, {}), J.success("Labels reset to defaults");
|
|
42816
42944
|
}
|
|
42817
42945
|
let _ = qn(async () => {
|
|
42818
42946
|
r(!0);
|
|
@@ -42896,7 +43024,7 @@ function MA() {
|
|
|
42896
43024
|
})]
|
|
42897
43025
|
}),
|
|
42898
43026
|
bodyStyle: { padding: "12px 16px" },
|
|
42899
|
-
children: i ? /* @__PURE__ */ X(
|
|
43027
|
+
children: i ? /* @__PURE__ */ X(FA, {
|
|
42900
43028
|
role: i,
|
|
42901
43029
|
moduleLabels: u,
|
|
42902
43030
|
actionLabels: f,
|
|
@@ -42907,7 +43035,7 @@ function MA() {
|
|
|
42907
43035
|
children: "Select a role from the left to manage its permissions."
|
|
42908
43036
|
})
|
|
42909
43037
|
}),
|
|
42910
|
-
/* @__PURE__ */ X(
|
|
43038
|
+
/* @__PURE__ */ X(JA, {
|
|
42911
43039
|
open: c,
|
|
42912
43040
|
onClose: () => l(!1)
|
|
42913
43041
|
})
|
|
@@ -42916,7 +43044,7 @@ function MA() {
|
|
|
42916
43044
|
}
|
|
42917
43045
|
//#endregion
|
|
42918
43046
|
//#region src/components/cards/OnboardingCard.jsx
|
|
42919
|
-
var { Title:
|
|
43047
|
+
var { Title: XA, Text: ZA } = kr, QA = [
|
|
42920
43048
|
{
|
|
42921
43049
|
label: "In Progress",
|
|
42922
43050
|
value: 107,
|
|
@@ -42942,10 +43070,10 @@ var { Title: NA, Text: PA } = kr, FA = [
|
|
|
42942
43070
|
color: "peach"
|
|
42943
43071
|
}
|
|
42944
43072
|
];
|
|
42945
|
-
function
|
|
43073
|
+
function $A({ items: e = QA }) {
|
|
42946
43074
|
return /* @__PURE__ */ X(tr, {
|
|
42947
43075
|
className: "onboarding-card",
|
|
42948
|
-
title: /* @__PURE__ */ X(
|
|
43076
|
+
title: /* @__PURE__ */ X(XA, {
|
|
42949
43077
|
level: 5,
|
|
42950
43078
|
children: "Onboarding"
|
|
42951
43079
|
}),
|
|
@@ -42964,7 +43092,7 @@ function IA({ items: e = FA }) {
|
|
|
42964
43092
|
children: /* @__PURE__ */ Z("div", {
|
|
42965
43093
|
className: `onboarding-item ${e.color}`,
|
|
42966
43094
|
children: [
|
|
42967
|
-
/* @__PURE__ */ X(
|
|
43095
|
+
/* @__PURE__ */ X(ZA, {
|
|
42968
43096
|
className: "onboarding-item-label",
|
|
42969
43097
|
children: e.label
|
|
42970
43098
|
}),
|
|
@@ -42974,7 +43102,7 @@ function IA({ items: e = FA }) {
|
|
|
42974
43102
|
}),
|
|
42975
43103
|
/* @__PURE__ */ X("div", {
|
|
42976
43104
|
className: "onboarding-item-footer",
|
|
42977
|
-
children: /* @__PURE__ */ X(
|
|
43105
|
+
children: /* @__PURE__ */ X(ZA, {
|
|
42978
43106
|
className: "onboarding-item-sub",
|
|
42979
43107
|
children: e.sub
|
|
42980
43108
|
})
|
|
@@ -42987,7 +43115,7 @@ function IA({ items: e = FA }) {
|
|
|
42987
43115
|
}
|
|
42988
43116
|
//#endregion
|
|
42989
43117
|
//#region src/pages/Modules/LegacyAdminPage.jsx
|
|
42990
|
-
var { Text:
|
|
43118
|
+
var { Text: ej, Title: tj } = kr, nj = [
|
|
42991
43119
|
{
|
|
42992
43120
|
group: "Dashboard",
|
|
42993
43121
|
items: [{
|
|
@@ -43202,7 +43330,7 @@ var { Text: LA, Title: RA } = kr, zA = [
|
|
|
43202
43330
|
}
|
|
43203
43331
|
]
|
|
43204
43332
|
}
|
|
43205
|
-
],
|
|
43333
|
+
], rj = [
|
|
43206
43334
|
{
|
|
43207
43335
|
label: "Sourced",
|
|
43208
43336
|
count: 312,
|
|
@@ -43233,7 +43361,7 @@ var { Text: LA, Title: RA } = kr, zA = [
|
|
|
43233
43361
|
color: "#E24B4A",
|
|
43234
43362
|
pct: 10
|
|
43235
43363
|
}
|
|
43236
|
-
],
|
|
43364
|
+
], ij = [
|
|
43237
43365
|
{
|
|
43238
43366
|
name: "Tcs",
|
|
43239
43367
|
jobs: 14,
|
|
@@ -43254,7 +43382,7 @@ var { Text: LA, Title: RA } = kr, zA = [
|
|
|
43254
43382
|
jobs: 5,
|
|
43255
43383
|
candidates: 38
|
|
43256
43384
|
}
|
|
43257
|
-
],
|
|
43385
|
+
], aj = [
|
|
43258
43386
|
{
|
|
43259
43387
|
text: "New candidate Ravi Kumar added to Java Developer role",
|
|
43260
43388
|
time: "2 min ago",
|
|
@@ -43281,7 +43409,7 @@ var { Text: LA, Title: RA } = kr, zA = [
|
|
|
43281
43409
|
color: "#E24B4A"
|
|
43282
43410
|
}
|
|
43283
43411
|
];
|
|
43284
|
-
function
|
|
43412
|
+
function oj() {
|
|
43285
43413
|
return /* @__PURE__ */ Z("div", {
|
|
43286
43414
|
style: {
|
|
43287
43415
|
display: "flex",
|
|
@@ -43294,11 +43422,11 @@ function UA() {
|
|
|
43294
43422
|
title: "Admin Dashboard",
|
|
43295
43423
|
children: [
|
|
43296
43424
|
/* @__PURE__ */ X("div", { className: "admin-accent-bar" }),
|
|
43297
|
-
/* @__PURE__ */ X(
|
|
43425
|
+
/* @__PURE__ */ X(tj, {
|
|
43298
43426
|
level: 5,
|
|
43299
43427
|
children: "Admin Dashboard"
|
|
43300
43428
|
}),
|
|
43301
|
-
/* @__PURE__ */ X(
|
|
43429
|
+
/* @__PURE__ */ X(ej, {
|
|
43302
43430
|
type: "secondary",
|
|
43303
43431
|
children: "Overview of jobs, candidates, onboarding and recent activity"
|
|
43304
43432
|
})
|
|
@@ -43306,7 +43434,7 @@ function UA() {
|
|
|
43306
43434
|
}),
|
|
43307
43435
|
/* @__PURE__ */ X("div", {
|
|
43308
43436
|
className: "admin-dashboard-stats",
|
|
43309
|
-
children: /* @__PURE__ */ X(
|
|
43437
|
+
children: /* @__PURE__ */ X(hA, { stats: [
|
|
43310
43438
|
{
|
|
43311
43439
|
label: "Total Jobs",
|
|
43312
43440
|
value: 1697,
|
|
@@ -43336,18 +43464,18 @@ function UA() {
|
|
|
43336
43464
|
}),
|
|
43337
43465
|
/* @__PURE__ */ Z("div", {
|
|
43338
43466
|
className: "admin-dashboard-mid-row",
|
|
43339
|
-
children: [/* @__PURE__ */ X(
|
|
43467
|
+
children: [/* @__PURE__ */ X($A, {}), /* @__PURE__ */ Z(RS, {
|
|
43340
43468
|
icon: /* @__PURE__ */ X(Fr, {}),
|
|
43341
43469
|
title: "Candidate Pipeline",
|
|
43342
43470
|
children: [
|
|
43343
|
-
/* @__PURE__ */ X(
|
|
43471
|
+
/* @__PURE__ */ X(ej, {
|
|
43344
43472
|
type: "secondary",
|
|
43345
43473
|
style: { fontSize: 12 },
|
|
43346
43474
|
children: "By stage (892 total)"
|
|
43347
43475
|
}),
|
|
43348
43476
|
/* @__PURE__ */ X("div", {
|
|
43349
43477
|
className: "admin-pipeline-bar",
|
|
43350
|
-
children:
|
|
43478
|
+
children: rj.map((e) => /* @__PURE__ */ X("div", {
|
|
43351
43479
|
className: "admin-pipeline-seg",
|
|
43352
43480
|
style: {
|
|
43353
43481
|
width: `${e.pct}%`,
|
|
@@ -43357,7 +43485,7 @@ function UA() {
|
|
|
43357
43485
|
}),
|
|
43358
43486
|
/* @__PURE__ */ X("div", {
|
|
43359
43487
|
className: "admin-pipeline-legend",
|
|
43360
|
-
children:
|
|
43488
|
+
children: rj.map((e) => /* @__PURE__ */ Z("div", {
|
|
43361
43489
|
className: "admin-pipeline-legend-item",
|
|
43362
43490
|
children: [
|
|
43363
43491
|
/* @__PURE__ */ X("span", {
|
|
@@ -43371,7 +43499,7 @@ function UA() {
|
|
|
43371
43499
|
}, e.label))
|
|
43372
43500
|
}),
|
|
43373
43501
|
/* @__PURE__ */ X("div", { className: "admin-divider" }),
|
|
43374
|
-
/* @__PURE__ */ X(
|
|
43502
|
+
/* @__PURE__ */ X(ej, {
|
|
43375
43503
|
strong: !0,
|
|
43376
43504
|
style: { fontSize: 12 },
|
|
43377
43505
|
children: "Submission status"
|
|
@@ -43382,7 +43510,7 @@ function UA() {
|
|
|
43382
43510
|
children: [
|
|
43383
43511
|
/* @__PURE__ */ Z("div", {
|
|
43384
43512
|
className: "admin-sub-status-item",
|
|
43385
|
-
children: [/* @__PURE__ */ X(
|
|
43513
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43386
43514
|
style: { fontSize: 13 },
|
|
43387
43515
|
children: "Pending client review"
|
|
43388
43516
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -43392,7 +43520,7 @@ function UA() {
|
|
|
43392
43520
|
}),
|
|
43393
43521
|
/* @__PURE__ */ Z("div", {
|
|
43394
43522
|
className: "admin-sub-status-item",
|
|
43395
|
-
children: [/* @__PURE__ */ X(
|
|
43523
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43396
43524
|
style: { fontSize: 13 },
|
|
43397
43525
|
children: "Client approved"
|
|
43398
43526
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -43402,7 +43530,7 @@ function UA() {
|
|
|
43402
43530
|
}),
|
|
43403
43531
|
/* @__PURE__ */ Z("div", {
|
|
43404
43532
|
className: "admin-sub-status-item",
|
|
43405
|
-
children: [/* @__PURE__ */ X(
|
|
43533
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43406
43534
|
style: { fontSize: 13 },
|
|
43407
43535
|
children: "Rejected"
|
|
43408
43536
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -43425,7 +43553,7 @@ function UA() {
|
|
|
43425
43553
|
size: "small",
|
|
43426
43554
|
children: "View all"
|
|
43427
43555
|
}),
|
|
43428
|
-
children:
|
|
43556
|
+
children: ij.map((e) => /* @__PURE__ */ Z("div", {
|
|
43429
43557
|
className: "admin-client-row",
|
|
43430
43558
|
children: [/* @__PURE__ */ Z("div", {
|
|
43431
43559
|
className: "admin-client-left",
|
|
@@ -43453,7 +43581,7 @@ function UA() {
|
|
|
43453
43581
|
}), /* @__PURE__ */ X(RS, {
|
|
43454
43582
|
icon: /* @__PURE__ */ X(Br, {}),
|
|
43455
43583
|
title: "Recent Activity",
|
|
43456
|
-
children:
|
|
43584
|
+
children: aj.map((e, t) => /* @__PURE__ */ Z("div", {
|
|
43457
43585
|
className: "admin-activity-row",
|
|
43458
43586
|
children: [/* @__PURE__ */ X("div", {
|
|
43459
43587
|
className: "admin-activity-dot",
|
|
@@ -43481,7 +43609,7 @@ function UA() {
|
|
|
43481
43609
|
children: [
|
|
43482
43610
|
/* @__PURE__ */ Z(B, {
|
|
43483
43611
|
span: 8,
|
|
43484
|
-
children: [/* @__PURE__ */ X(
|
|
43612
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43485
43613
|
type: "secondary",
|
|
43486
43614
|
style: {
|
|
43487
43615
|
fontSize: 12,
|
|
@@ -43494,7 +43622,7 @@ function UA() {
|
|
|
43494
43622
|
["Templates", 2]
|
|
43495
43623
|
].map(([e, t]) => /* @__PURE__ */ Z("div", {
|
|
43496
43624
|
className: "admin-cfg-overview-row",
|
|
43497
|
-
children: [/* @__PURE__ */ X(
|
|
43625
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43498
43626
|
style: { fontSize: 12 },
|
|
43499
43627
|
children: e
|
|
43500
43628
|
}), /* @__PURE__ */ Z("span", {
|
|
@@ -43505,7 +43633,7 @@ function UA() {
|
|
|
43505
43633
|
}),
|
|
43506
43634
|
/* @__PURE__ */ Z(B, {
|
|
43507
43635
|
span: 8,
|
|
43508
|
-
children: [/* @__PURE__ */ X(
|
|
43636
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43509
43637
|
type: "secondary",
|
|
43510
43638
|
style: {
|
|
43511
43639
|
fontSize: 12,
|
|
@@ -43518,7 +43646,7 @@ function UA() {
|
|
|
43518
43646
|
["Submissions", 2]
|
|
43519
43647
|
].map(([e, t]) => /* @__PURE__ */ Z("div", {
|
|
43520
43648
|
className: "admin-cfg-overview-row",
|
|
43521
|
-
children: [/* @__PURE__ */ X(
|
|
43649
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43522
43650
|
style: { fontSize: 12 },
|
|
43523
43651
|
children: e
|
|
43524
43652
|
}), /* @__PURE__ */ Z("span", {
|
|
@@ -43529,7 +43657,7 @@ function UA() {
|
|
|
43529
43657
|
}),
|
|
43530
43658
|
/* @__PURE__ */ Z(B, {
|
|
43531
43659
|
span: 8,
|
|
43532
|
-
children: [/* @__PURE__ */ X(
|
|
43660
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43533
43661
|
type: "secondary",
|
|
43534
43662
|
style: {
|
|
43535
43663
|
fontSize: 12,
|
|
@@ -43542,10 +43670,10 @@ function UA() {
|
|
|
43542
43670
|
["Config Items", 19]
|
|
43543
43671
|
].map(([e, t]) => /* @__PURE__ */ Z("div", {
|
|
43544
43672
|
className: "admin-cfg-overview-row",
|
|
43545
|
-
children: [/* @__PURE__ */ X(
|
|
43673
|
+
children: [/* @__PURE__ */ X(ej, {
|
|
43546
43674
|
style: { fontSize: 12 },
|
|
43547
43675
|
children: e
|
|
43548
|
-
}), /* @__PURE__ */ X(
|
|
43676
|
+
}), /* @__PURE__ */ X(ej, {
|
|
43549
43677
|
strong: !0,
|
|
43550
43678
|
style: { fontSize: 12 },
|
|
43551
43679
|
children: t
|
|
@@ -43558,7 +43686,7 @@ function UA() {
|
|
|
43558
43686
|
]
|
|
43559
43687
|
});
|
|
43560
43688
|
}
|
|
43561
|
-
function
|
|
43689
|
+
function sj({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
|
|
43562
43690
|
return /* @__PURE__ */ Z(xr, {
|
|
43563
43691
|
gutter: [16, 16],
|
|
43564
43692
|
children: [
|
|
@@ -43577,11 +43705,11 @@ function WA({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
43577
43705
|
}),
|
|
43578
43706
|
children: [
|
|
43579
43707
|
/* @__PURE__ */ X("div", { className: "admin-accent-bar" }),
|
|
43580
|
-
/* @__PURE__ */ X(
|
|
43708
|
+
/* @__PURE__ */ X(tj, {
|
|
43581
43709
|
level: 5,
|
|
43582
43710
|
children: e?.heading
|
|
43583
43711
|
}),
|
|
43584
|
-
/* @__PURE__ */ X(
|
|
43712
|
+
/* @__PURE__ */ X(ej, {
|
|
43585
43713
|
type: "secondary",
|
|
43586
43714
|
children: e?.desc
|
|
43587
43715
|
})
|
|
@@ -43595,7 +43723,7 @@ function WA({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
43595
43723
|
children: /* @__PURE__ */ X(RS, {
|
|
43596
43724
|
icon: /* @__PURE__ */ X(Fr, {}),
|
|
43597
43725
|
title: "Configuration Items",
|
|
43598
|
-
extra: /* @__PURE__ */ Z(
|
|
43726
|
+
extra: /* @__PURE__ */ Z(ej, {
|
|
43599
43727
|
type: "secondary",
|
|
43600
43728
|
children: [
|
|
43601
43729
|
n.length,
|
|
@@ -43662,7 +43790,7 @@ function WA({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
43662
43790
|
title: "Section Overview",
|
|
43663
43791
|
children: [/* @__PURE__ */ X("div", {
|
|
43664
43792
|
className: "admin-overview-list",
|
|
43665
|
-
children:
|
|
43793
|
+
children: nj.filter((e) => e.group !== "Dashboard").map((e) => {
|
|
43666
43794
|
let n = e.group === t?.group;
|
|
43667
43795
|
return /* @__PURE__ */ Z("div", {
|
|
43668
43796
|
className: `admin-overview-item${n ? " active" : ""}`,
|
|
@@ -43710,12 +43838,12 @@ function WA({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
43710
43838
|
]
|
|
43711
43839
|
});
|
|
43712
43840
|
}
|
|
43713
|
-
function
|
|
43714
|
-
let [e, t] = R("dashboard"), [n, r] = R(""), i = L(() =>
|
|
43841
|
+
function cj() {
|
|
43842
|
+
let [e, t] = R("dashboard"), [n, r] = R(""), i = L(() => nj.flatMap((e) => e.items), []), a = L(() => i.find((t) => t.id === e), [i, e]), o = L(() => nj.find((t) => t.items.some((t) => t.id === e)), [e]), s = L(() => {
|
|
43715
43843
|
if (!a?.cards) return [];
|
|
43716
43844
|
let e = n.trim().toLowerCase();
|
|
43717
43845
|
return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
|
|
43718
|
-
}, [a, n]), c = L(() =>
|
|
43846
|
+
}, [a, n]), c = L(() => nj.map((e) => ({
|
|
43719
43847
|
key: e.group,
|
|
43720
43848
|
type: "group",
|
|
43721
43849
|
label: e.group,
|
|
@@ -43764,7 +43892,7 @@ function GA() {
|
|
|
43764
43892
|
children: "Groups"
|
|
43765
43893
|
}), /* @__PURE__ */ X("span", {
|
|
43766
43894
|
className: "admin-sidebar-pill-value",
|
|
43767
|
-
children:
|
|
43895
|
+
children: nj.length
|
|
43768
43896
|
})]
|
|
43769
43897
|
})
|
|
43770
43898
|
}), /* @__PURE__ */ X(B, {
|
|
@@ -43794,7 +43922,7 @@ function GA() {
|
|
|
43794
43922
|
xs: 24,
|
|
43795
43923
|
lg: 18,
|
|
43796
43924
|
xl: 19,
|
|
43797
|
-
children: e === "dashboard" ? /* @__PURE__ */ X(
|
|
43925
|
+
children: e === "dashboard" ? /* @__PURE__ */ X(oj, {}) : a?.component === "form-groups" ? /* @__PURE__ */ X(JC, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ X(vw, {}) : a?.component === "row-actions" ? /* @__PURE__ */ X(oT, {}) : a?.component === "users" ? /* @__PURE__ */ X(yA, {}) : a?.component === "teams" ? /* @__PURE__ */ X(TA, {}) : a?.component === "roles" ? /* @__PURE__ */ X(HA, {}) : a?.component === "permissions" ? /* @__PURE__ */ X(YA, {}) : a?.component === "templates" ? /* @__PURE__ */ X(hT, {}) : a?.component === "ai-services" ? /* @__PURE__ */ X(yT, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ X(TT, {}) : /* @__PURE__ */ X(sj, {
|
|
43798
43926
|
activeSection: a,
|
|
43799
43927
|
activeGroup: o,
|
|
43800
43928
|
filteredCards: s,
|
|
@@ -43809,8 +43937,8 @@ function GA() {
|
|
|
43809
43937
|
}
|
|
43810
43938
|
//#endregion
|
|
43811
43939
|
//#region src/pages/stickyNotesFullPage.jsx
|
|
43812
|
-
var { Title:
|
|
43813
|
-
function
|
|
43940
|
+
var { Title: lj } = kr;
|
|
43941
|
+
function uj() {
|
|
43814
43942
|
let e = Pa(), { state: t } = Na(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
|
|
43815
43943
|
...t?.request,
|
|
43816
43944
|
params: {
|
|
@@ -43835,7 +43963,7 @@ function qA() {
|
|
|
43835
43963
|
}
|
|
43836
43964
|
//#endregion
|
|
43837
43965
|
//#region src/pages/BulkUpload/index.jsx
|
|
43838
|
-
var { Text:
|
|
43966
|
+
var { Text: dj, Title: fj } = kr, pj = 10 * 1024 * 1024, mj = "/templates/test_cases_flow_template.base64.txt", hj = "test_cases_flow_template.xlsx", gj = "module | subModule | step_order | description | actions | key | value | expected | scenario", _j = {
|
|
43839
43967
|
idle: 0,
|
|
43840
43968
|
module_set: 1,
|
|
43841
43969
|
encoding: 1,
|
|
@@ -43844,7 +43972,7 @@ var { Text: JA, Title: YA } = kr, XA = 10 * 1024 * 1024, ZA = "/templates/test_c
|
|
|
43844
43972
|
inserting: 3,
|
|
43845
43973
|
done: 4,
|
|
43846
43974
|
error: 1
|
|
43847
|
-
},
|
|
43975
|
+
}, vj = [
|
|
43848
43976
|
{
|
|
43849
43977
|
label: "Home",
|
|
43850
43978
|
href: "/"
|
|
@@ -43858,31 +43986,31 @@ var { Text: JA, Title: YA } = kr, XA = 10 * 1024 * 1024, ZA = "/templates/test_c
|
|
|
43858
43986
|
href: "/bulk-upload"
|
|
43859
43987
|
}
|
|
43860
43988
|
];
|
|
43861
|
-
function
|
|
43989
|
+
function yj(e) {
|
|
43862
43990
|
return new Promise((t, n) => {
|
|
43863
43991
|
let r = new FileReader();
|
|
43864
43992
|
r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
|
|
43865
43993
|
});
|
|
43866
43994
|
}
|
|
43867
|
-
function
|
|
43995
|
+
function bj(e) {
|
|
43868
43996
|
return e.filter((e) => e.row_status === "valid").map((e) => {
|
|
43869
43997
|
let t = { ...e };
|
|
43870
43998
|
return delete t.row_status, delete t.errors, t;
|
|
43871
43999
|
});
|
|
43872
44000
|
}
|
|
43873
|
-
function
|
|
44001
|
+
function xj(e) {
|
|
43874
44002
|
return e.flatMap((e) => (e.errors ?? []).map((t) => ({
|
|
43875
44003
|
id: e.id,
|
|
43876
44004
|
...t
|
|
43877
44005
|
})));
|
|
43878
44006
|
}
|
|
43879
|
-
function
|
|
44007
|
+
function Sj({ errors: e }) {
|
|
43880
44008
|
return /* @__PURE__ */ X("div", {
|
|
43881
44009
|
className: "bulk-tooltip-errors",
|
|
43882
44010
|
children: (e ?? []).map((e, t) => /* @__PURE__ */ X("div", { children: e.message }, `${e.field}-${t}`))
|
|
43883
44011
|
});
|
|
43884
44012
|
}
|
|
43885
|
-
function
|
|
44013
|
+
function Cj({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
43886
44014
|
return e.length === 0 ? null : /* @__PURE__ */ Z("div", {
|
|
43887
44015
|
className: "bulk-error-banner",
|
|
43888
44016
|
children: [/* @__PURE__ */ Z("div", {
|
|
@@ -43913,7 +44041,7 @@ function oj({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
|
43913
44041
|
})]
|
|
43914
44042
|
});
|
|
43915
44043
|
}
|
|
43916
|
-
function
|
|
44044
|
+
function wj({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
|
|
43917
44045
|
let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
|
|
43918
44046
|
return /* @__PURE__ */ Z(Y, { children: [
|
|
43919
44047
|
/* @__PURE__ */ Z(xr, {
|
|
@@ -43929,7 +44057,7 @@ function sj({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
43929
44057
|
type: t === "errors" ? "primary" : "default",
|
|
43930
44058
|
onClick: () => n("errors"),
|
|
43931
44059
|
children: "Errors only"
|
|
43932
|
-
})] }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ Z(
|
|
44060
|
+
})] }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ Z(dj, {
|
|
43933
44061
|
type: "secondary",
|
|
43934
44062
|
children: [e.length, " row(s)"]
|
|
43935
44063
|
}) })]
|
|
@@ -44001,7 +44129,7 @@ function sj({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
44001
44129
|
children: "Valid"
|
|
44002
44130
|
}) }),
|
|
44003
44131
|
/* @__PURE__ */ X("td", { children: n ? /* @__PURE__ */ X(q, {
|
|
44004
|
-
title: /* @__PURE__ */ X(
|
|
44132
|
+
title: /* @__PURE__ */ X(Sj, { errors: t }),
|
|
44005
44133
|
placement: "left",
|
|
44006
44134
|
children: /* @__PURE__ */ Z("button", {
|
|
44007
44135
|
type: "button",
|
|
@@ -44038,11 +44166,11 @@ function sj({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
44038
44166
|
})
|
|
44039
44167
|
] });
|
|
44040
44168
|
}
|
|
44041
|
-
function
|
|
44169
|
+
function Tj() {
|
|
44042
44170
|
let e = Pa(), t = L(() => s(), []), n = Yn(null), r = Yn(null), [i, a] = R([]), [o, c] = R(""), [l, u] = R("idle"), [d, f] = R(!1), [p, m] = R(null), [h, g] = R([]), [_, v] = R("all"), [y, b] = R(null), [x, S] = R(null), [C, w] = R(!1), T = i.map((e) => ({
|
|
44043
44171
|
value: e.modulename,
|
|
44044
44172
|
label: e.modulename
|
|
44045
|
-
})), E =
|
|
44173
|
+
})), E = xj(h), D = l === "encoding" || l === "validating", O = !!o && !D, k = _j[l] ?? 0, A = h.find((e) => e.row_status === "invalid")?.id, j = qn(() => {
|
|
44046
44174
|
c(""), u("idle"), f(!1), m(null), g([]), v("all"), b(null), S(null), n.current && (n.current.value = "");
|
|
44047
44175
|
}, []);
|
|
44048
44176
|
I(() => {
|
|
@@ -44067,7 +44195,7 @@ function cj() {
|
|
|
44067
44195
|
u("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
|
|
44068
44196
|
return;
|
|
44069
44197
|
}
|
|
44070
|
-
if (e.size >
|
|
44198
|
+
if (e.size > pj) {
|
|
44071
44199
|
u("module_set"), b({ message: "File must be 10 MB or smaller." });
|
|
44072
44200
|
return;
|
|
44073
44201
|
}
|
|
@@ -44076,7 +44204,7 @@ function cj() {
|
|
|
44076
44204
|
size: e.size
|
|
44077
44205
|
}), u("encoding");
|
|
44078
44206
|
try {
|
|
44079
|
-
let r = await
|
|
44207
|
+
let r = await yj(e);
|
|
44080
44208
|
u("validating"), g((await zx({
|
|
44081
44209
|
filename: e.name,
|
|
44082
44210
|
project: t?.name ?? "",
|
|
@@ -44092,12 +44220,12 @@ function cj() {
|
|
|
44092
44220
|
}
|
|
44093
44221
|
}, N = async () => {
|
|
44094
44222
|
try {
|
|
44095
|
-
let e = await fetch(
|
|
44223
|
+
let e = await fetch(mj);
|
|
44096
44224
|
if (!e.ok) throw Error(`Template file not found (${e.status})`);
|
|
44097
44225
|
let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
|
|
44098
44226
|
for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
|
|
44099
44227
|
let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
|
|
44100
|
-
o.href = a, o.download =
|
|
44228
|
+
o.href = a, o.download = hj, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), J.success("Sample template downloaded.");
|
|
44101
44229
|
} catch (e) {
|
|
44102
44230
|
console.error(e), J.error("Unable to download sample template.");
|
|
44103
44231
|
}
|
|
@@ -44108,7 +44236,7 @@ function cj() {
|
|
|
44108
44236
|
project: t?.name ?? "",
|
|
44109
44237
|
module: o,
|
|
44110
44238
|
uploaded_by: localStorage.getItem("user_Email") ?? "",
|
|
44111
|
-
rows:
|
|
44239
|
+
rows: bj(h)
|
|
44112
44240
|
})), u("done"), J.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
|
|
44113
44241
|
} catch (e) {
|
|
44114
44242
|
console.error(e), b(e.payload ?? {
|
|
@@ -44134,7 +44262,7 @@ function cj() {
|
|
|
44134
44262
|
align: "middle",
|
|
44135
44263
|
justify: "space-between",
|
|
44136
44264
|
className: "breadcrumb-action-wrapper",
|
|
44137
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
44265
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: vj }) }), t?.name && /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(dj, {
|
|
44138
44266
|
strong: !0,
|
|
44139
44267
|
children: t.name
|
|
44140
44268
|
}) })]
|
|
@@ -44143,16 +44271,16 @@ function cj() {
|
|
|
44143
44271
|
children: [
|
|
44144
44272
|
/* @__PURE__ */ Z("div", {
|
|
44145
44273
|
className: "bulk-header",
|
|
44146
|
-
children: [/* @__PURE__ */ X(
|
|
44274
|
+
children: [/* @__PURE__ */ X(fj, {
|
|
44147
44275
|
level: 3,
|
|
44148
44276
|
children: "Bulk upload test cases"
|
|
44149
44277
|
}), /* @__PURE__ */ Z(W, {
|
|
44150
44278
|
direction: "vertical",
|
|
44151
44279
|
size: 4,
|
|
44152
|
-
children: [/* @__PURE__ */ X(
|
|
44280
|
+
children: [/* @__PURE__ */ X(dj, {
|
|
44153
44281
|
type: "secondary",
|
|
44154
|
-
children:
|
|
44155
|
-
}), /* @__PURE__ */ X(
|
|
44282
|
+
children: gj
|
|
44283
|
+
}), /* @__PURE__ */ X(dj, {
|
|
44156
44284
|
type: "secondary",
|
|
44157
44285
|
children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
|
|
44158
44286
|
})]
|
|
@@ -44250,7 +44378,7 @@ function cj() {
|
|
|
44250
44378
|
className: "v1-card zt-fall",
|
|
44251
44379
|
title: "3. Validation result",
|
|
44252
44380
|
children: [
|
|
44253
|
-
/* @__PURE__ */ X(
|
|
44381
|
+
/* @__PURE__ */ X(Cj, {
|
|
44254
44382
|
errors: E,
|
|
44255
44383
|
expanded: C,
|
|
44256
44384
|
onToggle: () => w((e) => !e),
|
|
@@ -44262,7 +44390,7 @@ function cj() {
|
|
|
44262
44390
|
message: y.message,
|
|
44263
44391
|
className: "bulk-inline-alert"
|
|
44264
44392
|
}),
|
|
44265
|
-
/* @__PURE__ */ X(
|
|
44393
|
+
/* @__PURE__ */ X(wj, {
|
|
44266
44394
|
rows: h,
|
|
44267
44395
|
view: _,
|
|
44268
44396
|
onViewChange: v,
|
|
@@ -44285,17 +44413,17 @@ function cj() {
|
|
|
44285
44413
|
/* @__PURE__ */ X(B, {
|
|
44286
44414
|
xs: 24,
|
|
44287
44415
|
md: 8,
|
|
44288
|
-
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
44416
|
+
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(dj, { children: "Total" }), /* @__PURE__ */ X("strong", { children: h.length })] })
|
|
44289
44417
|
}),
|
|
44290
44418
|
/* @__PURE__ */ X(B, {
|
|
44291
44419
|
xs: 24,
|
|
44292
44420
|
md: 8,
|
|
44293
|
-
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
44421
|
+
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(dj, { children: "Inserted" }), /* @__PURE__ */ X("strong", { children: x.inserted ?? 0 })] })
|
|
44294
44422
|
}),
|
|
44295
44423
|
/* @__PURE__ */ X(B, {
|
|
44296
44424
|
xs: 24,
|
|
44297
44425
|
md: 8,
|
|
44298
|
-
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
44426
|
+
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(dj, { children: "Failed" }), /* @__PURE__ */ X("strong", { children: x.failed ?? 0 })] })
|
|
44299
44427
|
})
|
|
44300
44428
|
]
|
|
44301
44429
|
}),
|
|
@@ -44319,7 +44447,7 @@ function cj() {
|
|
|
44319
44447
|
}
|
|
44320
44448
|
//#endregion
|
|
44321
44449
|
//#region src/services/dropdownValues/testPageValues.js
|
|
44322
|
-
var
|
|
44450
|
+
var Ej = [
|
|
44323
44451
|
{
|
|
44324
44452
|
value: "navigate",
|
|
44325
44453
|
label: "Navigate"
|
|
@@ -44452,82 +44580,82 @@ var lj = [
|
|
|
44452
44580
|
value: "wait_for_text",
|
|
44453
44581
|
label: "Wait For Text"
|
|
44454
44582
|
}
|
|
44455
|
-
], { Text:
|
|
44583
|
+
], { Text: Dj } = kr, Oj = [{
|
|
44456
44584
|
label: "Home",
|
|
44457
44585
|
href: "/"
|
|
44458
44586
|
}, {
|
|
44459
44587
|
label: "Test Cases",
|
|
44460
44588
|
href: "/test-cases"
|
|
44461
|
-
}],
|
|
44589
|
+
}], kj = {
|
|
44462
44590
|
tags: "regression",
|
|
44463
44591
|
active: 1
|
|
44464
|
-
},
|
|
44592
|
+
}, Aj = { module: {
|
|
44465
44593
|
dbName: "Modules",
|
|
44466
44594
|
formField: "module",
|
|
44467
44595
|
label: "Module"
|
|
44468
44596
|
} };
|
|
44469
|
-
function
|
|
44597
|
+
function jj(e = []) {
|
|
44470
44598
|
return e.map((e) => ({
|
|
44471
44599
|
value: e,
|
|
44472
44600
|
label: e
|
|
44473
44601
|
}));
|
|
44474
44602
|
}
|
|
44475
|
-
function
|
|
44603
|
+
function Mj(e = "") {
|
|
44476
44604
|
return String(e ?? "").trim();
|
|
44477
44605
|
}
|
|
44478
|
-
function
|
|
44479
|
-
return
|
|
44606
|
+
function Nj(e = "") {
|
|
44607
|
+
return Mj(e).toLowerCase();
|
|
44480
44608
|
}
|
|
44481
|
-
function
|
|
44609
|
+
function Pj(e = []) {
|
|
44482
44610
|
let t = /* @__PURE__ */ new Map();
|
|
44483
44611
|
return e.forEach((e) => {
|
|
44484
|
-
let n =
|
|
44612
|
+
let n = Mj(e?.flow), r = n.toLowerCase();
|
|
44485
44613
|
n && !t.has(r) && t.set(r, n);
|
|
44486
44614
|
}), Array.from(t.values()).map((e) => ({
|
|
44487
44615
|
value: e,
|
|
44488
44616
|
label: e
|
|
44489
44617
|
}));
|
|
44490
44618
|
}
|
|
44491
|
-
function
|
|
44492
|
-
let r =
|
|
44619
|
+
function Fj(e = [], t, n) {
|
|
44620
|
+
let r = Mj(t).toLowerCase(), i = Mj(n).toLowerCase();
|
|
44493
44621
|
return e.reduce((e, t) => {
|
|
44494
|
-
let n =
|
|
44622
|
+
let n = Mj(t?.module).toLowerCase(), a = Mj(t?.flow).toLowerCase();
|
|
44495
44623
|
if (n !== r || a !== i) return e;
|
|
44496
44624
|
let o = Number(t?.step_order) || 0;
|
|
44497
44625
|
return Math.max(e, o);
|
|
44498
44626
|
}, 0) + 1;
|
|
44499
44627
|
}
|
|
44500
|
-
function
|
|
44628
|
+
function Ij({ icon: e, title: t }) {
|
|
44501
44629
|
return /* @__PURE__ */ Z(W, {
|
|
44502
44630
|
size: 10,
|
|
44503
44631
|
align: "center",
|
|
44504
44632
|
children: [/* @__PURE__ */ X("div", {
|
|
44505
44633
|
className: "v1-section-icon-box",
|
|
44506
44634
|
children: e
|
|
44507
|
-
}), /* @__PURE__ */ X(
|
|
44635
|
+
}), /* @__PURE__ */ X(Dj, {
|
|
44508
44636
|
strong: !0,
|
|
44509
44637
|
className: "v1-section-label",
|
|
44510
44638
|
children: t
|
|
44511
44639
|
})]
|
|
44512
44640
|
});
|
|
44513
44641
|
}
|
|
44514
|
-
function
|
|
44642
|
+
function Lj() {
|
|
44515
44643
|
let [e] = V.useForm(), [t] = V.useForm(), [n, r] = R([]), [i, a] = R([]), [o, s] = R([]), [c, l] = R(!1), [u, d] = R(!1), [f, p] = R({
|
|
44516
44644
|
open: !1,
|
|
44517
44645
|
typeKey: "module"
|
|
44518
|
-
}), [m, h] = R(!1), [g, _] = R(!1), [v, y] = R(!1), b = Pa(), x =
|
|
44646
|
+
}), [m, h] = R(!1), [g, _] = R(!1), [v, y] = R(!1), b = Pa(), x = Aj[f.typeKey], S = L(() => jj(n), [n]), C = V.useWatch("module", e), w = V.useWatch("flow", e), T = !!Mj(C), E = !!Mj(w), D = !T, O = !T || !E, k = (e, t = []) => {
|
|
44519
44647
|
e === "module" && r(t);
|
|
44520
44648
|
}, A = async () => {
|
|
44521
44649
|
l(!0);
|
|
44522
44650
|
try {
|
|
44523
|
-
r((await Px(
|
|
44651
|
+
r((await Px(Aj.module.dbName))?.items ?? []);
|
|
44524
44652
|
} catch (e) {
|
|
44525
44653
|
console.error("Unable to load testing options:", e), J.error("Unable to load testing options.");
|
|
44526
44654
|
} finally {
|
|
44527
44655
|
l(!1);
|
|
44528
44656
|
}
|
|
44529
44657
|
}, j = qn(async (t) => {
|
|
44530
|
-
let n =
|
|
44658
|
+
let n = Mj(t);
|
|
44531
44659
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
44532
44660
|
d(!0);
|
|
44533
44661
|
try {
|
|
@@ -44536,7 +44664,7 @@ function bj() {
|
|
|
44536
44664
|
offset: 0,
|
|
44537
44665
|
module: n
|
|
44538
44666
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
44539
|
-
a(t), s(
|
|
44667
|
+
a(t), s(Pj(t));
|
|
44540
44668
|
} catch (e) {
|
|
44541
44669
|
console.error("Unable to load flows:", e), J.error("Unable to load flows.");
|
|
44542
44670
|
} finally {
|
|
@@ -44544,14 +44672,14 @@ function bj() {
|
|
|
44544
44672
|
}
|
|
44545
44673
|
}
|
|
44546
44674
|
}, [e]), M = qn(async (t, n, r) => {
|
|
44547
|
-
let i =
|
|
44675
|
+
let i = Mj(t), a = Mj(n);
|
|
44548
44676
|
if (!i || !a) {
|
|
44549
44677
|
e.setFieldsValue({ step_order: void 0 });
|
|
44550
44678
|
return;
|
|
44551
44679
|
}
|
|
44552
44680
|
_(!0);
|
|
44553
44681
|
try {
|
|
44554
|
-
e.setFieldsValue({ step_order:
|
|
44682
|
+
e.setFieldsValue({ step_order: Fj(r, i, a) });
|
|
44555
44683
|
} catch (e) {
|
|
44556
44684
|
console.error("Unable to load step order:", e), J.error("Unable to load step order.");
|
|
44557
44685
|
} finally {
|
|
@@ -44572,15 +44700,15 @@ function bj() {
|
|
|
44572
44700
|
]);
|
|
44573
44701
|
let ee = async (t) => {
|
|
44574
44702
|
let n = {
|
|
44575
|
-
module:
|
|
44576
|
-
flow:
|
|
44703
|
+
module: Mj(t.module),
|
|
44704
|
+
flow: Mj(t.flow),
|
|
44577
44705
|
step_order: Number(t.step_order),
|
|
44578
|
-
description:
|
|
44579
|
-
keyword:
|
|
44580
|
-
target:
|
|
44581
|
-
value:
|
|
44582
|
-
expected:
|
|
44583
|
-
tags: t.tags ?
|
|
44706
|
+
description: Mj(t.description),
|
|
44707
|
+
keyword: Nj(t.keyword),
|
|
44708
|
+
target: Mj(t.target),
|
|
44709
|
+
value: Mj(t.value),
|
|
44710
|
+
expected: Mj(t.expected),
|
|
44711
|
+
tags: t.tags ? Mj(t.tags) : kj.tags,
|
|
44584
44712
|
active: Number(t.active)
|
|
44585
44713
|
};
|
|
44586
44714
|
y(!0);
|
|
@@ -44592,26 +44720,26 @@ function bj() {
|
|
|
44592
44720
|
y(!1);
|
|
44593
44721
|
}
|
|
44594
44722
|
}, N = (t, n) => {
|
|
44595
|
-
e.setFieldsValue({ [t]:
|
|
44723
|
+
e.setFieldsValue({ [t]: Mj(n) });
|
|
44596
44724
|
}, te = (t) => {
|
|
44597
44725
|
e.setFieldsValue({
|
|
44598
|
-
module:
|
|
44726
|
+
module: Mj(t),
|
|
44599
44727
|
flow: void 0,
|
|
44600
44728
|
step_order: void 0,
|
|
44601
44729
|
keyword: void 0,
|
|
44602
44730
|
description: void 0,
|
|
44603
44731
|
target: void 0,
|
|
44604
|
-
tags:
|
|
44732
|
+
tags: kj.tags,
|
|
44605
44733
|
value: void 0,
|
|
44606
44734
|
expected: void 0
|
|
44607
44735
|
});
|
|
44608
44736
|
}, ne = (t) => {
|
|
44609
44737
|
e.setFieldsValue({
|
|
44610
|
-
flow:
|
|
44738
|
+
flow: Mj(t),
|
|
44611
44739
|
step_order: void 0
|
|
44612
44740
|
});
|
|
44613
44741
|
}, re = (e) => {
|
|
44614
|
-
let n =
|
|
44742
|
+
let n = Aj[e];
|
|
44615
44743
|
p({
|
|
44616
44744
|
open: !0,
|
|
44617
44745
|
typeKey: e
|
|
@@ -44626,7 +44754,7 @@ function bj() {
|
|
|
44626
44754
|
})), t.resetFields();
|
|
44627
44755
|
}, ae = async () => {
|
|
44628
44756
|
try {
|
|
44629
|
-
let n =
|
|
44757
|
+
let n = Mj((await t.validateFields()).name), r = await Fx({
|
|
44630
44758
|
name: n,
|
|
44631
44759
|
type: x.dbName
|
|
44632
44760
|
});
|
|
@@ -44644,7 +44772,7 @@ function bj() {
|
|
|
44644
44772
|
align: "middle",
|
|
44645
44773
|
justify: "space-between",
|
|
44646
44774
|
className: "breadcrumb-action-wrapper",
|
|
44647
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
44775
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: Oj }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
44648
44776
|
type: "link",
|
|
44649
44777
|
onClick: () => b("/zinnext-home"),
|
|
44650
44778
|
children: "View Table"
|
|
@@ -44659,7 +44787,7 @@ function bj() {
|
|
|
44659
44787
|
children: /* @__PURE__ */ Z(W, {
|
|
44660
44788
|
align: "center",
|
|
44661
44789
|
size: 10,
|
|
44662
|
-
children: [/* @__PURE__ */ X(Yi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(
|
|
44790
|
+
children: [/* @__PURE__ */ X(Yi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(Dj, {
|
|
44663
44791
|
strong: !0,
|
|
44664
44792
|
style: { fontSize: 16 },
|
|
44665
44793
|
children: "Add Test Case"
|
|
@@ -44675,16 +44803,16 @@ function bj() {
|
|
|
44675
44803
|
className: "v1-required-mark",
|
|
44676
44804
|
children: " *"
|
|
44677
44805
|
})] }),
|
|
44678
|
-
initialValues:
|
|
44806
|
+
initialValues: kj,
|
|
44679
44807
|
onFinish: ee,
|
|
44680
44808
|
autoComplete: "off",
|
|
44681
44809
|
children: [/* @__PURE__ */ X(tr, {
|
|
44682
44810
|
className: "v1-card",
|
|
44683
|
-
title: /* @__PURE__ */ X(
|
|
44811
|
+
title: /* @__PURE__ */ X(Ij, {
|
|
44684
44812
|
icon: /* @__PURE__ */ X(wi, {}),
|
|
44685
44813
|
title: "Test Case Details"
|
|
44686
44814
|
}),
|
|
44687
|
-
extra: /* @__PURE__ */ X(
|
|
44815
|
+
extra: /* @__PURE__ */ X(Dj, {
|
|
44688
44816
|
type: "secondary",
|
|
44689
44817
|
className: "v1-card-subtitle",
|
|
44690
44818
|
children: "Module, flow, step order and execution data"
|
|
@@ -44761,8 +44889,8 @@ function bj() {
|
|
|
44761
44889
|
disabled: O,
|
|
44762
44890
|
optionFilterProp: "label",
|
|
44763
44891
|
placeholder: "Select action",
|
|
44764
|
-
options:
|
|
44765
|
-
onChange: (t) => e.setFieldsValue({ keyword:
|
|
44892
|
+
options: Ej,
|
|
44893
|
+
onChange: (t) => e.setFieldsValue({ keyword: Nj(t) })
|
|
44766
44894
|
})
|
|
44767
44895
|
})
|
|
44768
44896
|
}),
|
|
@@ -44882,7 +45010,7 @@ function bj() {
|
|
|
44882
45010
|
maxLength: 100,
|
|
44883
45011
|
placeholder: `Enter ${x.label.toLowerCase()} name`,
|
|
44884
45012
|
onBlur: (e) => {
|
|
44885
|
-
t.setFieldsValue({ name:
|
|
45013
|
+
t.setFieldsValue({ name: Mj(e.target.value) });
|
|
44886
45014
|
}
|
|
44887
45015
|
})
|
|
44888
45016
|
}), /* @__PURE__ */ X(V.Item, {
|
|
@@ -44899,23 +45027,23 @@ function bj() {
|
|
|
44899
45027
|
}
|
|
44900
45028
|
//#endregion
|
|
44901
45029
|
//#region src/pages/TestingPage/ZinnextTestForm.jsx
|
|
44902
|
-
var { Text:
|
|
45030
|
+
var { Text: Rj } = kr, zj = [{
|
|
44903
45031
|
label: "Home",
|
|
44904
45032
|
href: "/"
|
|
44905
45033
|
}, {
|
|
44906
45034
|
label: "Test Cases",
|
|
44907
45035
|
href: "/addTestCase"
|
|
44908
45036
|
}];
|
|
44909
|
-
function
|
|
45037
|
+
function Bj(e = "") {
|
|
44910
45038
|
return String(e ?? "").trim();
|
|
44911
45039
|
}
|
|
44912
|
-
function
|
|
45040
|
+
function Vj(e = [], t) {
|
|
44913
45041
|
return e.map((e) => ({
|
|
44914
45042
|
value: e.id,
|
|
44915
45043
|
label: e[t]
|
|
44916
45044
|
}));
|
|
44917
45045
|
}
|
|
44918
|
-
var
|
|
45046
|
+
var Hj = [
|
|
44919
45047
|
{
|
|
44920
45048
|
label: "Step",
|
|
44921
45049
|
value: "step_order",
|
|
@@ -44954,22 +45082,22 @@ var Tj = [
|
|
|
44954
45082
|
children: "Negative"
|
|
44955
45083
|
})
|
|
44956
45084
|
}
|
|
44957
|
-
],
|
|
45085
|
+
], Uj = {
|
|
44958
45086
|
key: !1,
|
|
44959
45087
|
value: !1,
|
|
44960
45088
|
expected: !1
|
|
44961
45089
|
};
|
|
44962
|
-
function
|
|
44963
|
-
return t ? e[t] ??
|
|
45090
|
+
function Wj(e, t) {
|
|
45091
|
+
return t ? e[t] ?? Uj : Uj;
|
|
44964
45092
|
}
|
|
44965
|
-
function
|
|
45093
|
+
function Gj(e, t) {
|
|
44966
45094
|
e.setFields(t.map((e) => ({
|
|
44967
45095
|
name: e,
|
|
44968
45096
|
errors: []
|
|
44969
45097
|
})));
|
|
44970
45098
|
}
|
|
44971
|
-
function
|
|
44972
|
-
let [e] = V.useForm(), t = Pa(), [n] = Ia(), r = n.get("edit"), i = !!r, a = L(() => s(), []), [o, c] = R([]), [l, u] = R([]), [d, f] = R([]), [p, m] = R(
|
|
45099
|
+
function Kj() {
|
|
45100
|
+
let [e] = V.useForm(), t = Pa(), [n] = Ia(), r = n.get("edit"), i = !!r, a = L(() => s(), []), [o, c] = R([]), [l, u] = R([]), [d, f] = R([]), [p, m] = R(Ej), [h, g] = R({}), [_, v] = R(!1), [y, b] = R(!1), [x, S] = R(!1), [C, w] = R(!1), [T, E] = R(!1), D = V.useWatch("module", e), O = V.useWatch("submodule", e), k = V.useWatch("actions", e), A = !!D, j = !!O, M = L(() => Wj(h, k), [h, k]), ee = L(() => Vj(o, "modulename"), [o]), N = L(() => Vj(l, "submodulename"), [l]), te = L(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), ne = L(() => l.find((e) => e.id === O)?.submodulename ?? "", [O, l]), re = qn(async () => {
|
|
44973
45101
|
try {
|
|
44974
45102
|
let e = await Ix();
|
|
44975
45103
|
Array.isArray(e?.options) && e.options.length > 0 && m(e.options), e?.rules && typeof e.rules == "object" && g(e.rules);
|
|
@@ -45110,10 +45238,10 @@ function kj() {
|
|
|
45110
45238
|
align: "middle",
|
|
45111
45239
|
justify: "space-between",
|
|
45112
45240
|
className: "breadcrumb-action-wrapper",
|
|
45113
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
45241
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: zj }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ Z(W, {
|
|
45114
45242
|
size: 6,
|
|
45115
45243
|
className: "zt-section-title",
|
|
45116
|
-
children: [/* @__PURE__ */ X(Xi, {}), /* @__PURE__ */ X(
|
|
45244
|
+
children: [/* @__PURE__ */ X(Xi, {}), /* @__PURE__ */ X(Rj, {
|
|
45117
45245
|
strong: !0,
|
|
45118
45246
|
children: a.name
|
|
45119
45247
|
})]
|
|
@@ -45134,11 +45262,11 @@ function kj() {
|
|
|
45134
45262
|
product_parent_ID: Number(a?.id),
|
|
45135
45263
|
module_parent_ID: Number(n.module),
|
|
45136
45264
|
submodule_parent_ID: Number(n.submodule),
|
|
45137
|
-
description:
|
|
45138
|
-
actions:
|
|
45139
|
-
key:
|
|
45140
|
-
value:
|
|
45141
|
-
expected:
|
|
45265
|
+
description: Bj(n.description),
|
|
45266
|
+
actions: Bj(n.actions),
|
|
45267
|
+
key: Bj(n.key),
|
|
45268
|
+
value: Bj(n.value),
|
|
45269
|
+
expected: Bj(n.expected),
|
|
45142
45270
|
scenario: +!!n.scenario,
|
|
45143
45271
|
active: +!!n.active
|
|
45144
45272
|
};
|
|
@@ -45204,7 +45332,7 @@ function kj() {
|
|
|
45204
45332
|
key: void 0,
|
|
45205
45333
|
value: void 0,
|
|
45206
45334
|
expected: void 0
|
|
45207
|
-
}),
|
|
45335
|
+
}), Gj(e, [
|
|
45208
45336
|
"actions",
|
|
45209
45337
|
"key",
|
|
45210
45338
|
"value",
|
|
@@ -45235,7 +45363,7 @@ function kj() {
|
|
|
45235
45363
|
key: void 0,
|
|
45236
45364
|
value: void 0,
|
|
45237
45365
|
expected: void 0
|
|
45238
|
-
}),
|
|
45366
|
+
}), Gj(e, [
|
|
45239
45367
|
"actions",
|
|
45240
45368
|
"key",
|
|
45241
45369
|
"value",
|
|
@@ -45289,7 +45417,7 @@ function kj() {
|
|
|
45289
45417
|
/* @__PURE__ */ X("span", { children: "Step Details" })
|
|
45290
45418
|
]
|
|
45291
45419
|
}),
|
|
45292
|
-
extra: /* @__PURE__ */ Z(
|
|
45420
|
+
extra: /* @__PURE__ */ Z(Rj, {
|
|
45293
45421
|
type: "secondary",
|
|
45294
45422
|
children: [
|
|
45295
45423
|
te,
|
|
@@ -45329,13 +45457,13 @@ function kj() {
|
|
|
45329
45457
|
placeholder: "Select action",
|
|
45330
45458
|
options: p,
|
|
45331
45459
|
onChange: (t) => {
|
|
45332
|
-
let n =
|
|
45460
|
+
let n = Wj(h, t);
|
|
45333
45461
|
e.setFieldsValue({
|
|
45334
45462
|
actions: t,
|
|
45335
45463
|
key: n.key ? e.getFieldValue("key") : void 0,
|
|
45336
45464
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
45337
45465
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
45338
|
-
}),
|
|
45466
|
+
}), Gj(e, [
|
|
45339
45467
|
"key",
|
|
45340
45468
|
"value",
|
|
45341
45469
|
"expected"
|
|
@@ -45444,7 +45572,7 @@ function kj() {
|
|
|
45444
45572
|
children: /* @__PURE__ */ X(Vv, {
|
|
45445
45573
|
listName: "Added Steps",
|
|
45446
45574
|
loading: x,
|
|
45447
|
-
fields:
|
|
45575
|
+
fields: Hj,
|
|
45448
45576
|
dataSource: d,
|
|
45449
45577
|
current: 1,
|
|
45450
45578
|
pageSize: Math.max(d.length, 1),
|
|
@@ -45460,7 +45588,7 @@ function kj() {
|
|
|
45460
45588
|
}
|
|
45461
45589
|
//#endregion
|
|
45462
45590
|
//#region src/pages/TestingPage/ManageModules.jsx
|
|
45463
|
-
var { Text:
|
|
45591
|
+
var { Text: qj } = kr, Jj = [
|
|
45464
45592
|
{
|
|
45465
45593
|
label: "Home",
|
|
45466
45594
|
href: "/"
|
|
@@ -45474,7 +45602,7 @@ var { Text: Aj } = kr, jj = [
|
|
|
45474
45602
|
href: "/manageModules"
|
|
45475
45603
|
}
|
|
45476
45604
|
];
|
|
45477
|
-
function
|
|
45605
|
+
function Yj() {
|
|
45478
45606
|
let e = Pa(), t = L(() => s(), []), [n, r] = R([]), [i, a] = R({}), [o, c] = R(!1), [l, u] = R(!1), [d, f] = R(""), [p, m] = R(!1), [h, g] = R(1), [_, v] = R(10), y = qn(async (e) => {
|
|
45479
45607
|
if (!e) {
|
|
45480
45608
|
r([]);
|
|
@@ -45542,7 +45670,7 @@ function Mj() {
|
|
|
45542
45670
|
align: "middle",
|
|
45543
45671
|
justify: "space-between",
|
|
45544
45672
|
className: "breadcrumb-action-wrapper",
|
|
45545
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
45673
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: Jj }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
45546
45674
|
type: "link",
|
|
45547
45675
|
onClick: () => e("/addTestCase"),
|
|
45548
45676
|
children: "Back to Form"
|
|
@@ -45562,7 +45690,7 @@ function Mj() {
|
|
|
45562
45690
|
children: [
|
|
45563
45691
|
/* @__PURE__ */ X(Xi, {}),
|
|
45564
45692
|
/* @__PURE__ */ X("span", { children: "Project:" }),
|
|
45565
|
-
/* @__PURE__ */ X(
|
|
45693
|
+
/* @__PURE__ */ X(qj, {
|
|
45566
45694
|
strong: !0,
|
|
45567
45695
|
children: t.name
|
|
45568
45696
|
})
|
|
@@ -45638,7 +45766,7 @@ function Mj() {
|
|
|
45638
45766
|
children: /* @__PURE__ */ Z(W, {
|
|
45639
45767
|
direction: "vertical",
|
|
45640
45768
|
className: "zt-modal-stack",
|
|
45641
|
-
children: [/* @__PURE__ */ Z(
|
|
45769
|
+
children: [/* @__PURE__ */ Z(qj, {
|
|
45642
45770
|
type: "secondary",
|
|
45643
45771
|
children: ["Project: ", /* @__PURE__ */ X("b", { children: t.name })]
|
|
45644
45772
|
}), /* @__PURE__ */ X(H, {
|
|
@@ -45655,7 +45783,7 @@ function Mj() {
|
|
|
45655
45783
|
}
|
|
45656
45784
|
//#endregion
|
|
45657
45785
|
//#region src/pages/TestingPage/ManageSubmodules.jsx
|
|
45658
|
-
var { Text:
|
|
45786
|
+
var { Text: Xj } = kr, Zj = [
|
|
45659
45787
|
{
|
|
45660
45788
|
label: "Home",
|
|
45661
45789
|
href: "/"
|
|
@@ -45673,7 +45801,7 @@ var { Text: Nj } = kr, Pj = [
|
|
|
45673
45801
|
href: "/test-cases/zinnext/submodules"
|
|
45674
45802
|
}
|
|
45675
45803
|
];
|
|
45676
|
-
function
|
|
45804
|
+
function Qj() {
|
|
45677
45805
|
let e = Pa(), [t] = Ia(), n = L(() => s(), []), r = t.get("module") ?? "", [i, a] = R([]), [o, c] = R(!1), [l, u] = R(!1), [d, f] = R(""), [p, m] = R(!1), [h, g] = R(1), [_, v] = R(10), y = qn(async (e, t) => {
|
|
45678
45806
|
if (!e || !t) {
|
|
45679
45807
|
a([]);
|
|
@@ -45742,7 +45870,7 @@ function Fj() {
|
|
|
45742
45870
|
align: "middle",
|
|
45743
45871
|
justify: "space-between",
|
|
45744
45872
|
className: "breadcrumb-action-wrapper",
|
|
45745
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
45873
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: Zj }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
45746
45874
|
type: "link",
|
|
45747
45875
|
onClick: () => e("/manageModules"),
|
|
45748
45876
|
children: "Back to Modules"
|
|
@@ -45765,7 +45893,7 @@ function Fj() {
|
|
|
45765
45893
|
children: [
|
|
45766
45894
|
/* @__PURE__ */ X(Xi, {}),
|
|
45767
45895
|
/* @__PURE__ */ X("span", { children: "Project:" }),
|
|
45768
|
-
/* @__PURE__ */ X(
|
|
45896
|
+
/* @__PURE__ */ X(Xj, {
|
|
45769
45897
|
strong: !0,
|
|
45770
45898
|
children: n.name
|
|
45771
45899
|
})
|
|
@@ -45775,7 +45903,7 @@ function Fj() {
|
|
|
45775
45903
|
children: [
|
|
45776
45904
|
/* @__PURE__ */ X(Fr, {}),
|
|
45777
45905
|
/* @__PURE__ */ X("span", { children: "Module:" }),
|
|
45778
|
-
/* @__PURE__ */ X(
|
|
45906
|
+
/* @__PURE__ */ X(Xj, {
|
|
45779
45907
|
strong: !0,
|
|
45780
45908
|
children: r
|
|
45781
45909
|
})
|
|
@@ -45838,7 +45966,7 @@ function Fj() {
|
|
|
45838
45966
|
children: /* @__PURE__ */ Z(W, {
|
|
45839
45967
|
direction: "vertical",
|
|
45840
45968
|
className: "zt-modal-stack",
|
|
45841
|
-
children: [/* @__PURE__ */ Z(
|
|
45969
|
+
children: [/* @__PURE__ */ Z(Xj, {
|
|
45842
45970
|
type: "secondary",
|
|
45843
45971
|
children: [
|
|
45844
45972
|
"Project: ",
|
|
@@ -45860,7 +45988,7 @@ function Fj() {
|
|
|
45860
45988
|
}
|
|
45861
45989
|
//#endregion
|
|
45862
45990
|
//#region src/pages/TestingPage/ZinnextTableView.jsx
|
|
45863
|
-
var { Text:
|
|
45991
|
+
var { Text: $j } = kr, eM = [
|
|
45864
45992
|
{
|
|
45865
45993
|
label: "Home",
|
|
45866
45994
|
href: "/"
|
|
@@ -45874,7 +46002,7 @@ var { Text: Ij } = kr, Lj = [
|
|
|
45874
46002
|
href: "/viewTestCase"
|
|
45875
46003
|
}
|
|
45876
46004
|
];
|
|
45877
|
-
function
|
|
46005
|
+
function tM() {
|
|
45878
46006
|
let e = Pa(), [t, n] = R([]), [r, i] = R(0), [a, o] = R(!1), c = L(() => s(), []), [l, u] = R(""), [d, f] = R(1), [p, m] = R(20), [h, g] = R(null), _ = qn(async (e = {}) => {
|
|
45879
46007
|
o(!0);
|
|
45880
46008
|
try {
|
|
@@ -45934,7 +46062,7 @@ function Rj() {
|
|
|
45934
46062
|
align: "middle",
|
|
45935
46063
|
justify: "space-between",
|
|
45936
46064
|
className: "breadcrumb-action-wrapper",
|
|
45937
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
46065
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: eM }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
45938
46066
|
type: "link",
|
|
45939
46067
|
onClick: () => e("/addTestCase"),
|
|
45940
46068
|
children: "Back to Form"
|
|
@@ -45948,7 +46076,7 @@ function Rj() {
|
|
|
45948
46076
|
className: "zt-section-title",
|
|
45949
46077
|
children: [/* @__PURE__ */ X(pa, {}), /* @__PURE__ */ X("span", { children: "Test Flows" })]
|
|
45950
46078
|
}),
|
|
45951
|
-
extra: /* @__PURE__ */ Z(
|
|
46079
|
+
extra: /* @__PURE__ */ Z($j, {
|
|
45952
46080
|
type: "secondary",
|
|
45953
46081
|
children: [r, " row(s)"]
|
|
45954
46082
|
}),
|
|
@@ -46102,17 +46230,17 @@ function Rj() {
|
|
|
46102
46230
|
}
|
|
46103
46231
|
//#endregion
|
|
46104
46232
|
//#region src/pages/TestingPage/testHomePage.jsx
|
|
46105
|
-
var
|
|
46233
|
+
var nM = [{
|
|
46106
46234
|
label: "Home",
|
|
46107
46235
|
href: "/"
|
|
46108
46236
|
}, {
|
|
46109
46237
|
label: "Test Cases",
|
|
46110
46238
|
href: "/test-cases"
|
|
46111
46239
|
}];
|
|
46112
|
-
function
|
|
46240
|
+
function rM() {
|
|
46113
46241
|
return /* @__PURE__ */ Z("main", {
|
|
46114
46242
|
className: "jobs-list-page",
|
|
46115
|
-
children: [/* @__PURE__ */ X(Sn, { items:
|
|
46243
|
+
children: [/* @__PURE__ */ X(Sn, { items: nM }), /* @__PURE__ */ X(hf, {
|
|
46116
46244
|
moduleName: "test-flows",
|
|
46117
46245
|
rowKey: "id"
|
|
46118
46246
|
})]
|
|
@@ -46120,85 +46248,85 @@ function Bj() {
|
|
|
46120
46248
|
}
|
|
46121
46249
|
//#endregion
|
|
46122
46250
|
//#region src/pages/TestingPage/lms-test-form.jsx
|
|
46123
|
-
var { Text:
|
|
46251
|
+
var { Text: iM } = kr, aM = [{
|
|
46124
46252
|
label: "Home",
|
|
46125
46253
|
href: "/"
|
|
46126
46254
|
}, {
|
|
46127
46255
|
label: "LMS Cases",
|
|
46128
46256
|
href: "/lms-cases"
|
|
46129
|
-
}],
|
|
46257
|
+
}], oM = {
|
|
46130
46258
|
tags: "regression",
|
|
46131
46259
|
active: 1
|
|
46132
|
-
},
|
|
46260
|
+
}, sM = { module: {
|
|
46133
46261
|
dbName: "Modules",
|
|
46134
46262
|
formField: "module",
|
|
46135
46263
|
label: "Module"
|
|
46136
|
-
} },
|
|
46264
|
+
} }, cM = {
|
|
46137
46265
|
key: !1,
|
|
46138
46266
|
value: !1,
|
|
46139
46267
|
expected: !1
|
|
46140
46268
|
};
|
|
46141
|
-
function
|
|
46142
|
-
return t ? e[t] ??
|
|
46269
|
+
function lM(e, t) {
|
|
46270
|
+
return t ? e[t] ?? cM : cM;
|
|
46143
46271
|
}
|
|
46144
|
-
function
|
|
46272
|
+
function uM(e, t) {
|
|
46145
46273
|
e.setFields(t.map((e) => ({
|
|
46146
46274
|
name: e,
|
|
46147
46275
|
errors: []
|
|
46148
46276
|
})));
|
|
46149
46277
|
}
|
|
46150
|
-
function
|
|
46278
|
+
function dM(e = []) {
|
|
46151
46279
|
return e.map((e) => ({
|
|
46152
46280
|
value: e,
|
|
46153
46281
|
label: e
|
|
46154
46282
|
}));
|
|
46155
46283
|
}
|
|
46156
|
-
function
|
|
46284
|
+
function fM(e = "") {
|
|
46157
46285
|
return String(e ?? "").trim();
|
|
46158
46286
|
}
|
|
46159
|
-
function
|
|
46287
|
+
function pM(e = []) {
|
|
46160
46288
|
let t = /* @__PURE__ */ new Map();
|
|
46161
46289
|
return e.forEach((e) => {
|
|
46162
|
-
let n =
|
|
46290
|
+
let n = fM(e?.flow), r = n.toLowerCase();
|
|
46163
46291
|
n && !t.has(r) && t.set(r, n);
|
|
46164
46292
|
}), Array.from(t.values()).map((e) => ({
|
|
46165
46293
|
value: e,
|
|
46166
46294
|
label: e
|
|
46167
46295
|
}));
|
|
46168
46296
|
}
|
|
46169
|
-
function
|
|
46170
|
-
let r =
|
|
46297
|
+
function mM(e = [], t, n) {
|
|
46298
|
+
let r = fM(t).toLowerCase(), i = fM(n).toLowerCase();
|
|
46171
46299
|
return e.reduce((e, t) => {
|
|
46172
|
-
let n =
|
|
46300
|
+
let n = fM(t?.module).toLowerCase(), a = fM(t?.flow).toLowerCase();
|
|
46173
46301
|
if (n !== r || a !== i) return e;
|
|
46174
46302
|
let o = Number(t?.step_order) || 0;
|
|
46175
46303
|
return Math.max(e, o);
|
|
46176
46304
|
}, 0) + 1;
|
|
46177
46305
|
}
|
|
46178
|
-
function
|
|
46306
|
+
function hM({ icon: e, title: t }) {
|
|
46179
46307
|
return /* @__PURE__ */ Z(W, {
|
|
46180
46308
|
size: 10,
|
|
46181
46309
|
align: "center",
|
|
46182
46310
|
children: [/* @__PURE__ */ X("div", {
|
|
46183
46311
|
className: "v1-section-icon-box",
|
|
46184
46312
|
children: e
|
|
46185
|
-
}), /* @__PURE__ */ X(
|
|
46313
|
+
}), /* @__PURE__ */ X(iM, {
|
|
46186
46314
|
strong: !0,
|
|
46187
46315
|
className: "v1-section-label",
|
|
46188
46316
|
children: t
|
|
46189
46317
|
})]
|
|
46190
46318
|
});
|
|
46191
46319
|
}
|
|
46192
|
-
function
|
|
46193
|
-
let [e] = V.useForm(), [t] = V.useForm(), [n, r] = R([]), [i, a] = R([]), [o, s] = R([]), [c, l] = R(
|
|
46320
|
+
function gM() {
|
|
46321
|
+
let [e] = V.useForm(), [t] = V.useForm(), [n, r] = R([]), [i, a] = R([]), [o, s] = R([]), [c, l] = R(Ej), [u, d] = R({}), [f, p] = R(!1), [m, h] = R(!1), [g, _] = R({
|
|
46194
46322
|
open: !1,
|
|
46195
46323
|
typeKey: "module"
|
|
46196
|
-
}), [v, y] = R(!1), [b, x] = R(!1), [S, C] = R(!1), w = Pa(), T =
|
|
46324
|
+
}), [v, y] = R(!1), [b, x] = R(!1), [S, C] = R(!1), w = Pa(), T = sM[g.typeKey], E = L(() => dM(n), [n]), D = V.useWatch("module", e), O = V.useWatch("flow", e), k = V.useWatch("keyword", e), A = !!fM(D), j = !!fM(O), M = !A, ee = !A || !j, N = L(() => lM(u, k), [u, k]), te = (e, t = []) => {
|
|
46197
46325
|
e === "module" && r(t);
|
|
46198
46326
|
}, ne = async () => {
|
|
46199
46327
|
p(!0);
|
|
46200
46328
|
try {
|
|
46201
|
-
r((await Px(
|
|
46329
|
+
r((await Px(sM.module.dbName))?.items ?? []);
|
|
46202
46330
|
} catch (e) {
|
|
46203
46331
|
console.error("Unable to load testing options:", e), J.error("Unable to load testing options.");
|
|
46204
46332
|
} finally {
|
|
@@ -46212,7 +46340,7 @@ function $j() {
|
|
|
46212
46340
|
console.error("Unable to load action field rules:", e), J.error("Unable to load action validation rules.");
|
|
46213
46341
|
}
|
|
46214
46342
|
}, ie = qn(async (t) => {
|
|
46215
|
-
let n =
|
|
46343
|
+
let n = fM(t);
|
|
46216
46344
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
46217
46345
|
h(!0);
|
|
46218
46346
|
try {
|
|
@@ -46221,7 +46349,7 @@ function $j() {
|
|
|
46221
46349
|
offset: 0,
|
|
46222
46350
|
module: n
|
|
46223
46351
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
46224
|
-
a(t), s(
|
|
46352
|
+
a(t), s(pM(t));
|
|
46225
46353
|
} catch (e) {
|
|
46226
46354
|
console.error("Unable to load flows:", e), J.error("Unable to load flows.");
|
|
46227
46355
|
} finally {
|
|
@@ -46229,14 +46357,14 @@ function $j() {
|
|
|
46229
46357
|
}
|
|
46230
46358
|
}
|
|
46231
46359
|
}, [e]), ae = qn(async (t, n, r) => {
|
|
46232
|
-
let i =
|
|
46360
|
+
let i = fM(t), a = fM(n);
|
|
46233
46361
|
if (!i || !a) {
|
|
46234
46362
|
e.setFieldsValue({ step_order: void 0 });
|
|
46235
46363
|
return;
|
|
46236
46364
|
}
|
|
46237
46365
|
x(!0);
|
|
46238
46366
|
try {
|
|
46239
|
-
e.setFieldsValue({ step_order:
|
|
46367
|
+
e.setFieldsValue({ step_order: mM(r, i, a) });
|
|
46240
46368
|
} catch (e) {
|
|
46241
46369
|
console.error("Unable to load step order:", e), J.error("Unable to load step order.");
|
|
46242
46370
|
} finally {
|
|
@@ -46259,15 +46387,15 @@ function $j() {
|
|
|
46259
46387
|
]);
|
|
46260
46388
|
let oe = async (t) => {
|
|
46261
46389
|
let n = {
|
|
46262
|
-
module:
|
|
46263
|
-
flow:
|
|
46390
|
+
module: fM(t.module),
|
|
46391
|
+
flow: fM(t.flow),
|
|
46264
46392
|
step_order: Number(t.step_order),
|
|
46265
|
-
description:
|
|
46266
|
-
keyword:
|
|
46267
|
-
target:
|
|
46268
|
-
value:
|
|
46269
|
-
expected:
|
|
46270
|
-
tags: t.tags ?
|
|
46393
|
+
description: fM(t.description),
|
|
46394
|
+
keyword: fM(t.keyword),
|
|
46395
|
+
target: fM(t.target),
|
|
46396
|
+
value: fM(t.value),
|
|
46397
|
+
expected: fM(t.expected),
|
|
46398
|
+
tags: t.tags ? fM(t.tags) : oM.tags,
|
|
46271
46399
|
active: Number(t.active)
|
|
46272
46400
|
};
|
|
46273
46401
|
C(!0);
|
|
@@ -46279,19 +46407,19 @@ function $j() {
|
|
|
46279
46407
|
C(!1);
|
|
46280
46408
|
}
|
|
46281
46409
|
}, se = (t, n) => {
|
|
46282
|
-
e.setFieldsValue({ [t]:
|
|
46410
|
+
e.setFieldsValue({ [t]: fM(n) });
|
|
46283
46411
|
}, P = (t) => {
|
|
46284
46412
|
e.setFieldsValue({
|
|
46285
|
-
module:
|
|
46413
|
+
module: fM(t),
|
|
46286
46414
|
flow: void 0,
|
|
46287
46415
|
step_order: void 0,
|
|
46288
46416
|
keyword: void 0,
|
|
46289
46417
|
description: void 0,
|
|
46290
46418
|
target: void 0,
|
|
46291
|
-
tags:
|
|
46419
|
+
tags: oM.tags,
|
|
46292
46420
|
value: void 0,
|
|
46293
46421
|
expected: void 0
|
|
46294
|
-
}),
|
|
46422
|
+
}), uM(e, [
|
|
46295
46423
|
"keyword",
|
|
46296
46424
|
"target",
|
|
46297
46425
|
"value",
|
|
@@ -46299,32 +46427,32 @@ function $j() {
|
|
|
46299
46427
|
]);
|
|
46300
46428
|
}, ce = (t) => {
|
|
46301
46429
|
e.setFieldsValue({
|
|
46302
|
-
flow:
|
|
46430
|
+
flow: fM(t),
|
|
46303
46431
|
step_order: void 0,
|
|
46304
46432
|
keyword: void 0,
|
|
46305
46433
|
target: void 0,
|
|
46306
46434
|
value: void 0,
|
|
46307
46435
|
expected: void 0
|
|
46308
|
-
}),
|
|
46436
|
+
}), uM(e, [
|
|
46309
46437
|
"keyword",
|
|
46310
46438
|
"target",
|
|
46311
46439
|
"value",
|
|
46312
46440
|
"expected"
|
|
46313
46441
|
]);
|
|
46314
46442
|
}, le = (t) => {
|
|
46315
|
-
let n =
|
|
46443
|
+
let n = lM(u, t);
|
|
46316
46444
|
e.setFieldsValue({
|
|
46317
|
-
keyword:
|
|
46445
|
+
keyword: fM(t),
|
|
46318
46446
|
target: n.key ? e.getFieldValue("target") : void 0,
|
|
46319
46447
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
46320
46448
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
46321
|
-
}),
|
|
46449
|
+
}), uM(e, [
|
|
46322
46450
|
"target",
|
|
46323
46451
|
"value",
|
|
46324
46452
|
"expected"
|
|
46325
46453
|
]);
|
|
46326
46454
|
}, ue = (e) => {
|
|
46327
|
-
let n =
|
|
46455
|
+
let n = sM[e];
|
|
46328
46456
|
_({
|
|
46329
46457
|
open: !0,
|
|
46330
46458
|
typeKey: e
|
|
@@ -46339,7 +46467,7 @@ function $j() {
|
|
|
46339
46467
|
})), t.resetFields();
|
|
46340
46468
|
}, fe = async () => {
|
|
46341
46469
|
try {
|
|
46342
|
-
let n =
|
|
46470
|
+
let n = fM((await t.validateFields()).name), r = await Fx({
|
|
46343
46471
|
name: n,
|
|
46344
46472
|
type: T.dbName
|
|
46345
46473
|
});
|
|
@@ -46357,7 +46485,7 @@ function $j() {
|
|
|
46357
46485
|
align: "middle",
|
|
46358
46486
|
justify: "space-between",
|
|
46359
46487
|
className: "breadcrumb-action-wrapper",
|
|
46360
|
-
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items:
|
|
46488
|
+
children: [/* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(Sn, { items: aM }) }), /* @__PURE__ */ X(B, { children: /* @__PURE__ */ X(z, {
|
|
46361
46489
|
type: "link",
|
|
46362
46490
|
onClick: () => w("/lms-home"),
|
|
46363
46491
|
children: "View Table"
|
|
@@ -46372,7 +46500,7 @@ function $j() {
|
|
|
46372
46500
|
children: /* @__PURE__ */ Z(W, {
|
|
46373
46501
|
align: "center",
|
|
46374
46502
|
size: 10,
|
|
46375
|
-
children: [/* @__PURE__ */ X(Yi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(
|
|
46503
|
+
children: [/* @__PURE__ */ X(Yi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(iM, {
|
|
46376
46504
|
strong: !0,
|
|
46377
46505
|
style: { fontSize: 16 },
|
|
46378
46506
|
children: "Add LMS Case"
|
|
@@ -46388,16 +46516,16 @@ function $j() {
|
|
|
46388
46516
|
className: "v1-required-mark",
|
|
46389
46517
|
children: " *"
|
|
46390
46518
|
})] }),
|
|
46391
|
-
initialValues:
|
|
46519
|
+
initialValues: oM,
|
|
46392
46520
|
onFinish: oe,
|
|
46393
46521
|
autoComplete: "off",
|
|
46394
46522
|
children: [/* @__PURE__ */ X(tr, {
|
|
46395
46523
|
className: "v1-card",
|
|
46396
|
-
title: /* @__PURE__ */ X(
|
|
46524
|
+
title: /* @__PURE__ */ X(hM, {
|
|
46397
46525
|
icon: /* @__PURE__ */ X(wi, {}),
|
|
46398
46526
|
title: "LMS Case Details"
|
|
46399
46527
|
}),
|
|
46400
|
-
extra: /* @__PURE__ */ X(
|
|
46528
|
+
extra: /* @__PURE__ */ X(iM, {
|
|
46401
46529
|
type: "secondary",
|
|
46402
46530
|
className: "v1-card-subtitle",
|
|
46403
46531
|
children: "Module, flow, step order and execution data"
|
|
@@ -46607,7 +46735,7 @@ function $j() {
|
|
|
46607
46735
|
maxLength: 100,
|
|
46608
46736
|
placeholder: `Enter ${T.label.toLowerCase()} name`,
|
|
46609
46737
|
onBlur: (e) => {
|
|
46610
|
-
t.setFieldsValue({ name:
|
|
46738
|
+
t.setFieldsValue({ name: fM(e.target.value) });
|
|
46611
46739
|
}
|
|
46612
46740
|
})
|
|
46613
46741
|
}), /* @__PURE__ */ X(V.Item, {
|
|
@@ -46624,17 +46752,17 @@ function $j() {
|
|
|
46624
46752
|
}
|
|
46625
46753
|
//#endregion
|
|
46626
46754
|
//#region src/pages/TestingPage/lmsHomePage.jsx
|
|
46627
|
-
var
|
|
46755
|
+
var _M = [{
|
|
46628
46756
|
label: "Home",
|
|
46629
46757
|
href: "/"
|
|
46630
46758
|
}, {
|
|
46631
46759
|
label: "LMS Cases",
|
|
46632
46760
|
href: "/lms-cases"
|
|
46633
46761
|
}];
|
|
46634
|
-
function
|
|
46762
|
+
function vM() {
|
|
46635
46763
|
return /* @__PURE__ */ Z("main", {
|
|
46636
46764
|
className: "jobs-list-page",
|
|
46637
|
-
children: [/* @__PURE__ */ X(Sn, { items:
|
|
46765
|
+
children: [/* @__PURE__ */ X(Sn, { items: _M }), /* @__PURE__ */ X(hf, {
|
|
46638
46766
|
moduleName: "lms-flows",
|
|
46639
46767
|
rowKey: "id"
|
|
46640
46768
|
})]
|
|
@@ -46642,7 +46770,7 @@ function tM() {
|
|
|
46642
46770
|
}
|
|
46643
46771
|
//#endregion
|
|
46644
46772
|
//#region src/services/mergedListApi.js
|
|
46645
|
-
var
|
|
46773
|
+
var yM = [
|
|
46646
46774
|
"referenceId",
|
|
46647
46775
|
"ReferenceId",
|
|
46648
46776
|
"candidateId",
|
|
@@ -46653,7 +46781,7 @@ var nM = [
|
|
|
46653
46781
|
"Id",
|
|
46654
46782
|
"_id"
|
|
46655
46783
|
];
|
|
46656
|
-
function
|
|
46784
|
+
function bM(e = yM) {
|
|
46657
46785
|
return function(t) {
|
|
46658
46786
|
if (!t || typeof t != "object") return "";
|
|
46659
46787
|
for (let n of e) {
|
|
@@ -46663,7 +46791,7 @@ function rM(e = nM) {
|
|
|
46663
46791
|
return "";
|
|
46664
46792
|
};
|
|
46665
46793
|
}
|
|
46666
|
-
function
|
|
46794
|
+
function xM(e, t = yM) {
|
|
46667
46795
|
if (!e || typeof e != "object") return [];
|
|
46668
46796
|
let n = [];
|
|
46669
46797
|
for (let r of t) {
|
|
@@ -46672,18 +46800,18 @@ function iM(e, t = nM) {
|
|
|
46672
46800
|
}
|
|
46673
46801
|
return n;
|
|
46674
46802
|
}
|
|
46675
|
-
var
|
|
46676
|
-
function
|
|
46677
|
-
return typeof e == "function" ? e : typeof e == "string" ?
|
|
46803
|
+
var SM = bM();
|
|
46804
|
+
function CM(e) {
|
|
46805
|
+
return typeof e == "function" ? e : typeof e == "string" ? bM([e]) : Array.isArray(e) ? bM(e) : SM;
|
|
46678
46806
|
}
|
|
46679
|
-
function
|
|
46807
|
+
function wM(e, t, n) {
|
|
46680
46808
|
return !t || typeof t != "object" ? e : {
|
|
46681
46809
|
...t,
|
|
46682
46810
|
...e,
|
|
46683
46811
|
id: t.id ?? e.id ?? n
|
|
46684
46812
|
};
|
|
46685
46813
|
}
|
|
46686
|
-
function
|
|
46814
|
+
function TM(e, t, n = {}) {
|
|
46687
46815
|
return {
|
|
46688
46816
|
status: "success",
|
|
46689
46817
|
total: t,
|
|
@@ -46693,7 +46821,7 @@ function cM(e, t, n = {}) {
|
|
|
46693
46821
|
}
|
|
46694
46822
|
};
|
|
46695
46823
|
}
|
|
46696
|
-
var
|
|
46824
|
+
var EM = [
|
|
46697
46825
|
"fields",
|
|
46698
46826
|
"fieldConfig",
|
|
46699
46827
|
"tabs",
|
|
@@ -46702,17 +46830,17 @@ var lM = [
|
|
|
46702
46830
|
"actions",
|
|
46703
46831
|
"columnActions"
|
|
46704
46832
|
];
|
|
46705
|
-
function
|
|
46833
|
+
function DM(e) {
|
|
46706
46834
|
let t = e?.data ?? e, n = {};
|
|
46707
|
-
for (let r of
|
|
46835
|
+
for (let r of EM) {
|
|
46708
46836
|
let i = e?.[r] ?? t?.[r];
|
|
46709
46837
|
i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
|
|
46710
46838
|
}
|
|
46711
46839
|
return n;
|
|
46712
46840
|
}
|
|
46713
|
-
var
|
|
46714
|
-
function
|
|
46715
|
-
let r = (Array.isArray(n) ? n : [n]).map(
|
|
46841
|
+
var OM = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
|
|
46842
|
+
function kM(e, t, n) {
|
|
46843
|
+
let r = (Array.isArray(n) ? n : [n]).map(OM).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(OM(e?.value)) || r.includes(OM(e?.label))) : -1;
|
|
46716
46844
|
if (i === -1) return [...e, ...t];
|
|
46717
46845
|
let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
|
|
46718
46846
|
...e,
|
|
@@ -46724,18 +46852,18 @@ function fM(e, t, n) {
|
|
|
46724
46852
|
...e.slice(i + 1)
|
|
46725
46853
|
];
|
|
46726
46854
|
}
|
|
46727
|
-
var
|
|
46855
|
+
var AM = (e, t) => ql(e, t).rows, jM = (e, t) => {
|
|
46728
46856
|
let { rows: n, total: r } = ql(e, t);
|
|
46729
46857
|
return {
|
|
46730
46858
|
rows: n,
|
|
46731
46859
|
total: r
|
|
46732
46860
|
};
|
|
46733
46861
|
};
|
|
46734
|
-
function
|
|
46735
|
-
let m =
|
|
46862
|
+
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 }) {
|
|
46863
|
+
let m = CM(c), h = typeof l == "function" ? (e) => {
|
|
46736
46864
|
let t = l(e);
|
|
46737
46865
|
return t ? [String(t)] : [];
|
|
46738
|
-
} : (e) =>
|
|
46866
|
+
} : (e) => xM(e, typeof l == "string" ? [l] : Array.isArray(l) ? l : yM), g = 0;
|
|
46739
46867
|
function _(e) {
|
|
46740
46868
|
let t = /* @__PURE__ */ new Map();
|
|
46741
46869
|
return e.forEach((e) => {
|
|
@@ -46761,10 +46889,10 @@ function hM({ fetchPrimaryPage: e, extractPrimaryPage: t = mM, fetchSecondaryByK
|
|
|
46761
46889
|
let r = {};
|
|
46762
46890
|
for (let e of n) {
|
|
46763
46891
|
if (!e) continue;
|
|
46764
|
-
let t =
|
|
46892
|
+
let t = DM(e);
|
|
46765
46893
|
for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
|
|
46766
46894
|
}
|
|
46767
|
-
return f.length && (r.fields =
|
|
46895
|
+
return f.length && (r.fields = kM(r.fields ?? [], f, p)), TM(e, t, r);
|
|
46768
46896
|
}
|
|
46769
46897
|
async function x(r, i, a, s, c) {
|
|
46770
46898
|
let l = await e(r, i, a, s), u = t(l, r) ?? {}, d = Array.isArray(u.rows) ? u.rows : [], f = Number.isFinite(Number(u.total)) ? Number(u.total) : d.length, p = [...new Set(d.map(m).filter(Boolean))], h = null, g = [];
|
|
@@ -46790,25 +46918,25 @@ function hM({ fetchPrimaryPage: e, extractPrimaryPage: t = mM, fetchSecondaryByK
|
|
|
46790
46918
|
}
|
|
46791
46919
|
//#endregion
|
|
46792
46920
|
//#region src/services/workflowModuleListApi.js
|
|
46793
|
-
function
|
|
46794
|
-
return
|
|
46795
|
-
fetchPrimary: () =>
|
|
46796
|
-
extractPrimaryRows:
|
|
46921
|
+
function NM(e, t, n = {}) {
|
|
46922
|
+
return MM({
|
|
46923
|
+
fetchPrimary: () => JO(e, t),
|
|
46924
|
+
extractPrimaryRows: GO,
|
|
46797
46925
|
fetchSecondary: Ec,
|
|
46798
|
-
fetchSecondaryById:
|
|
46926
|
+
fetchSecondaryById: YO,
|
|
46799
46927
|
secondaryFetchLimit: n.moduleFetchLimit ?? 200
|
|
46800
46928
|
});
|
|
46801
46929
|
}
|
|
46802
|
-
function
|
|
46930
|
+
function PM(e) {
|
|
46803
46931
|
let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
|
|
46804
46932
|
return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
|
|
46805
46933
|
}
|
|
46806
|
-
function
|
|
46934
|
+
function FM(e) {
|
|
46807
46935
|
let t = Array.isArray(e?.stages) ? e.stages : [];
|
|
46808
46936
|
if (!t.length) return e;
|
|
46809
46937
|
let n = {};
|
|
46810
46938
|
for (let e of t) {
|
|
46811
|
-
let t =
|
|
46939
|
+
let t = PM(e?.stageName);
|
|
46812
46940
|
t && (n[t] = Number(e?.count) || 0);
|
|
46813
46941
|
}
|
|
46814
46942
|
return {
|
|
@@ -46816,25 +46944,25 @@ function vM(e) {
|
|
|
46816
46944
|
...e
|
|
46817
46945
|
};
|
|
46818
46946
|
}
|
|
46819
|
-
var
|
|
46947
|
+
var IM = (e) => {
|
|
46820
46948
|
let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
|
|
46821
46949
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
46822
46950
|
};
|
|
46823
|
-
function
|
|
46951
|
+
function LM({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
|
|
46824
46952
|
return function(n, r, i) {
|
|
46825
|
-
let a =
|
|
46953
|
+
let a = wM(n, r, i), o = IM(a);
|
|
46826
46954
|
return o != null && (console.log("mergeJobWorkflowRow", i, a?.[e], o), a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
|
|
46827
46955
|
};
|
|
46828
46956
|
}
|
|
46829
|
-
function
|
|
46830
|
-
let t =
|
|
46957
|
+
function RM(e = {}) {
|
|
46958
|
+
let t = LM(), n = MM({
|
|
46831
46959
|
primaryKey: "_id",
|
|
46832
46960
|
secondaryKey: "entityId",
|
|
46833
46961
|
extraFields: e.extraFields,
|
|
46834
46962
|
extraFieldsAfter: e.extraFieldsAfter,
|
|
46835
46963
|
fetchPrimaryPage: Ec,
|
|
46836
|
-
fetchSecondaryByKeys: () =>
|
|
46837
|
-
extractSecondaryRows: (e) => (e?.items ?? []).map(
|
|
46964
|
+
fetchSecondaryByKeys: () => qO(),
|
|
46965
|
+
extractSecondaryRows: (e) => (e?.items ?? []).map(FM),
|
|
46838
46966
|
mergeRow: (e, n, r) => {
|
|
46839
46967
|
let i = t(e, n, r);
|
|
46840
46968
|
return n?._id && (i.workflowId = n._id), i;
|
|
@@ -46844,16 +46972,16 @@ function xM(e = {}) {
|
|
|
46844
46972
|
return await n(e, t, r, i);
|
|
46845
46973
|
};
|
|
46846
46974
|
}
|
|
46847
|
-
async function
|
|
46848
|
-
return ql(await
|
|
46975
|
+
async function zM(e, t = 10, n = 0, r = {}, i = {}) {
|
|
46976
|
+
return ql(await RM(i)(e, t, n, r), e);
|
|
46849
46977
|
}
|
|
46850
|
-
async function
|
|
46851
|
-
return ql(await
|
|
46978
|
+
async function BM(e, t, n, r = 10, i = 0, a = {}) {
|
|
46979
|
+
return ql(await NM(e, t)(n, r, i, a), n);
|
|
46852
46980
|
}
|
|
46853
46981
|
//#endregion
|
|
46854
46982
|
//#region src/index.js
|
|
46855
|
-
var
|
|
46983
|
+
var VM = dA, HM = iS(cj), UM = iS(uj), WM = iS(Tj), GM = iS(Lj), KM = iS(Kj), qM = iS(Yj), JM = iS(Qj), YM = iS(tM), XM = iS(rM), ZM = iS(gM), QM = iS(vM);
|
|
46856
46984
|
//#endregion
|
|
46857
|
-
export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, Xp as ActivityTab,
|
|
46985
|
+
export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, Xp as ActivityTab, Jk as AddBatchCandidatePopup, Pp as AddFormV1, dA as AdminDashboard, SE as AdminDashboardContent, VM as AdminPage, Fp as AppAlert, bu as AppButton, Dx as AppShell, Sy as ApprovalActionBar, Zp as AssigneeAvatars, Tx as AuthGuard, gg as BILLING_STATUS_FLOW, Qp as BULK_UPLOAD_DEFAULT_ACCEPT, $p as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Sn as Breadcrumb, WM as BulkUploadPage, sm as BulkUploadPanel, w as CANDIDATES_URL, Vy as CONTRACT_C2C, By as CONTRACT_W2, ro as CalendarCard, EE as CoreThemeAdminApp, TE as CoreThemeAdminRoutes, Jo as CustomPagination, gy as DayLogModal, bm as DescriptionBlock, v_ as DetailHeaderCard, T_ as DetailViewPage, bh as DetailViewV1, xe as DocumentViewer, Js as DynamicCards, dO as DynamicPopup, Zk as DynamicPopupRoute, so as DynamicTabs, yv as EditFormV1, Fy as FINANCE_APPROVAL_CONFIG, Ay as FINANCE_TYPE_CFO, ky as FINANCE_TYPE_ONBOARDING_MANAGER, Ny as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, jy as FINANCE_TYPE_ONLY_FINANCE, Oy as FINANCE_TYPE_SUBMISSION_MANAGER, My as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, wb as FileListCard, mb as FinanceApprovalPanel, Zg as FinanceAvatar, t_ as FinanceBadge, wy as FinanceDayCell, Ug as FinanceDivider, Qg as FinanceEmployeeCell, Bg as FinanceEmptyState, Wg as FinanceEquation, Jg as FinanceHistoryTimeline, zg as FinanceHoursGrid, Rg as FinanceKpiRow, Hg as FinanceLine, $v as FinanceListToolbar, n_ as FinanceMarginBadge, e_ as FinanceMoneyCell, a_ as FinanceRecordsTable, r_ as FinanceRowChevron, Vg as FinanceSection, Lg as FinanceStatusPill, $g as FinanceTextCell, Ey as FinanceTimesheetAnalysis, Gg as FinanceWorkflowSteps, $b as Header, $s as HierarchyUserFilter, n as JOBS_URL, HM as LegacyAdminPage, hf as ListView, QM as LmsHomePage, ZM as LmsTestForm, Ox as Login, PE as MailPopup, qM as ManageModules, JM as ManageSubmodules, Ov as ModuleRowActions, xy as NotesPanel, _g as PAYROLL_STATUS_FLOW, zk as POPUP_CONFIGS, Fv as ParamCardView, Vv as ParamListView, fD as PreviewPopup, rS as ProjectSelect, by as ProofUploadPreview, yy as QuickLogBar, _y as QuickLogSelectionBar, vy as RejectionReasonModal, e as SUBMISSIONS_URL, xx as Sidebar, Uv as StatusBadge, ny as StatusBadgeTag, UM as StickyNotesFullPage, Gv as StylishDynamicTabs, Xv as TemplateEditor, GM as TestForm, XM as TestingHomePage, Hp as TimelineGroups, dy as TimesheetDayCell, dt as TipTapEditor, uA as UserForm, tA as VendorShareDrawer, yu as ViewSummaryWidget, vD as WizardPopup, YM as ZinnextTableView, KM as ZinnextTestForm, nn as applyIntegrationStatus, jo as approveSubmission, im as buildAcceptAttr, jg as buildCsv, Tg as buildDailyRows, ly as buildDayGradient, ab as buildRateHistoryEntries, Og as buildWeeklyRollup, v as clearSelectedProject, He as colors, rb as computeFinance, kg as computeMarginBand, C as configureCoreTheme, RM as createAllWorkflowsListFetcher, NM as createWorkflowStageListFetcher, Qe as deleteIntegrationConfig, wg as deriveDayStats, Fg as downloadCsv, Zy as findEmployerRow, Yy as flattenGroups, rm as formatFileSize, ob as formatFinanceMoney, sg as formatHours, og as formatMoney, lg as formatPercent, cg as formatRate, xt as getActivity, zM as getAllWorkflowsModuleList, pg as getApprovalDate, ge as getBgcIntegrationConfig, tt as getBgcIntegrationSummary, vg as getBillingActionStates, y as getCurrentRoleName, Ng as getFieldLabel, nm as getFileExtension, Ly as getFinanceApprovalConfig, Sb as getFormGroupsRaw, ft as getIntegrationConfig, lt as getIntegrationConfigs, ht as getIntegrationSummary, qo as getModuleConfig, xn as getModuleDataDetail, yg as getPayrollActionStates, s as getSelectedProject, p as getStoredToken, x as getStoredUser, c as getUserRoles, Mo as getVMSApprove, Pg as getValueStyle, BM as getWorkflowStageModuleList, bg as getWorkflowSteps, fg as humanizeEvent, Nf as i, Mg as indexFieldConfig, ug as initialsOf, l as isTester, m as logout, zy as marginIncludesReferral, nb as matchLocationTax, O_ as n, $y as normalizeContract, cm as r, Po as rejectSubmission, qp as resolveActivityMeta, ib as resolveAndCompute, tb as resolveFinanceInputs, SM as resolveMergeKey, Ry as resolveRejectionReason, Cb as resolveSubmissionFinance, kn as saveBgcIntegrationConfig, Fn as saveIntegrationConfig, u as setSelectedProject, PM as stageCountKey, kx as t, ie as testIntegrationConnection, Hc as useDropdownFields, xu as useDropdownValues, Tb as useEditForm, Uc as useFieldConfig, Wc as useFilterFields, Xc as useMenuPermission, xv as useModuleActions, S_ as useRecordRefresh, am as validateBulkFile, r as withAdminAppId, t as withAppId, iS as withAuthGuard };
|
|
46858
46986
|
|
|
46859
46987
|
//# sourceMappingURL=index.js.map
|