@realtek/core-theme 0.0.69 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +539 -520
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -28417,23 +28417,42 @@ function iC(e) {
|
|
|
28417
28417
|
function aC(e, t) {
|
|
28418
28418
|
return e.replace(/\{(\w+)\}/g, (e, n) => t?.[n] ?? "").trim();
|
|
28419
28419
|
}
|
|
28420
|
-
function oC(e
|
|
28420
|
+
function oC(e) {
|
|
28421
|
+
if (!e) return "";
|
|
28422
|
+
let t = new Date(e);
|
|
28423
|
+
if (Number.isNaN(t.getTime())) return "";
|
|
28424
|
+
let n = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), r = Math.round((n(/* @__PURE__ */ new Date()) - n(t)) / 864e5);
|
|
28425
|
+
return r <= 0 ? "Today" : r === 1 ? "Yesterday" : `${r} days ago`;
|
|
28426
|
+
}
|
|
28427
|
+
function sC(e) {
|
|
28428
|
+
let t = Array.isArray(e?.submissionHistory) ? e.submissionHistory : [], n = [
|
|
28429
|
+
e?.lastSubmittedAt,
|
|
28430
|
+
e?.submittedAt,
|
|
28431
|
+
e?.updatedAt,
|
|
28432
|
+
...t.map((e) => e?.submittedAt || e?.updatedAt)
|
|
28433
|
+
].filter(Boolean);
|
|
28434
|
+
return n.length ? n.reduce((e, t) => new Date(t) > new Date(e) ? t : e) : null;
|
|
28435
|
+
}
|
|
28436
|
+
function cC(e, t) {
|
|
28421
28437
|
if (typeof e == "string") return {
|
|
28422
28438
|
label: e,
|
|
28423
28439
|
value: e
|
|
28424
28440
|
};
|
|
28425
28441
|
if (e?.label !== void 0 && e?.value !== void 0 && !t?.labelTemplate && !t?.valueKey) return e;
|
|
28426
|
-
let { labelKey: n, valueKey: r, labelTemplate: i } = t ?? {}, a =
|
|
28442
|
+
let { labelKey: n, valueKey: r, labelTemplate: i } = t ?? {}, a = i?.includes("{lastdate}") ? {
|
|
28443
|
+
...e,
|
|
28444
|
+
lastdate: oC(sC(e))
|
|
28445
|
+
} : e, o = (i ? aC(i, a) : null) || (n ? e?.[n] : null) || e?.name || e?.fullName || e?.candidateName || e?.title || e?.displayName || e?.text || e?.applicantReferenceId || e?.applicantRefrenceId || String(Object.values(e || {})[0] ?? ""), s = (r ? e?.[r] : null) ?? e?.id ?? e?._id ?? e?.applicantReferenceId ?? e?.applicantRefrenceId ?? String(Object.values(e || {})[0] ?? "");
|
|
28427
28446
|
return {
|
|
28428
|
-
label: String(
|
|
28429
|
-
value: String(
|
|
28447
|
+
label: String(o),
|
|
28448
|
+
value: String(s),
|
|
28430
28449
|
_raw: e
|
|
28431
28450
|
};
|
|
28432
28451
|
}
|
|
28433
|
-
function
|
|
28434
|
-
return (t?.[e.optionsKey] ?? e.defaultOptions ?? []).map((t) =>
|
|
28452
|
+
function lC(e, t) {
|
|
28453
|
+
return (t?.[e.optionsKey] ?? e.defaultOptions ?? []).map((t) => cC(t, e));
|
|
28435
28454
|
}
|
|
28436
|
-
function
|
|
28455
|
+
function uC(e = {}) {
|
|
28437
28456
|
return {
|
|
28438
28457
|
selectedIds: [],
|
|
28439
28458
|
selectedRecords: [],
|
|
@@ -28444,7 +28463,7 @@ function cC(e = {}) {
|
|
|
28444
28463
|
}
|
|
28445
28464
|
//#endregion
|
|
28446
28465
|
//#region src/components/popups/dynamic/PopupFields.jsx
|
|
28447
|
-
function
|
|
28466
|
+
function dC({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupContext: i, extraData: a, removedIds: o, setRemovedIds: s, showAlreadyAssigned: c, onValuesChange: l, getSearchHandler: u, getMentionSearchHandler: d, mentionOptions: f }) {
|
|
28448
28467
|
let p = c && a;
|
|
28449
28468
|
return !t.length && !p ? null : /* @__PURE__ */ X(J, { children: [p && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X("div", {
|
|
28450
28469
|
className: "dynamic-popup__already-assigned",
|
|
@@ -28479,7 +28498,7 @@ function lC({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
|
|
|
28479
28498
|
initialValues: n,
|
|
28480
28499
|
onValuesChange: (e, t) => l(t),
|
|
28481
28500
|
children: t.map((e) => {
|
|
28482
|
-
let t = r[e.name] ??
|
|
28501
|
+
let t = r[e.name] ?? lC(e, i), n = u(e), a = d(e), o = f[e.name] ?? [], s = iC(e.type), c = rC[e.type], l = [];
|
|
28483
28502
|
return e.required && l.push({
|
|
28484
28503
|
required: !0,
|
|
28485
28504
|
message: `${e.label || "This field"} is required`
|
|
@@ -28504,7 +28523,7 @@ function lC({ form: e, fields: t, initialValues: n, dynamicOptions: r, popupCont
|
|
|
28504
28523
|
}
|
|
28505
28524
|
//#endregion
|
|
28506
28525
|
//#region src/components/popups/dynamic/hooks/usePopupOptions.js
|
|
28507
|
-
function
|
|
28526
|
+
function fC({ open: e, config: t, api: n, fields: i, popupContext: a, formValues: s }) {
|
|
28508
28527
|
let [c, l] = o({}), [u, d] = o(null);
|
|
28509
28528
|
return r(() => {
|
|
28510
28529
|
e || (l({}), d(null));
|
|
@@ -28571,14 +28590,14 @@ function uC({ open: e, config: t, api: n, fields: i, popupContext: a, formValues
|
|
|
28571
28590
|
}
|
|
28572
28591
|
//#endregion
|
|
28573
28592
|
//#region src/components/popups/dynamic/hooks/usePopupSearch.js
|
|
28574
|
-
var
|
|
28575
|
-
function
|
|
28593
|
+
var pC = 500, mC = 3;
|
|
28594
|
+
function hC({ api: e, popupContext: t, setDynamicOptions: n }) {
|
|
28576
28595
|
let [r, i] = o({}), s = a({}), c = a({}), l = a({});
|
|
28577
28596
|
function u(r) {
|
|
28578
28597
|
if (!r.searchFetchKey && !r.searchFetcher) return;
|
|
28579
28598
|
let i = e.searchOptions ?? e.searchFetcher;
|
|
28580
28599
|
if (typeof i == "function") return (e) => {
|
|
28581
|
-
if (clearTimeout(s.current[r.name]), e.length <
|
|
28600
|
+
if (clearTimeout(s.current[r.name]), e.length < mC) {
|
|
28582
28601
|
n((e) => ({
|
|
28583
28602
|
...e,
|
|
28584
28603
|
[r.name]: []
|
|
@@ -28593,12 +28612,12 @@ function pC({ api: e, popupContext: t, setDynamicOptions: n }) {
|
|
|
28593
28612
|
let t = Array.isArray(e) ? e : e?.items ?? e?.list ?? [];
|
|
28594
28613
|
n((e) => ({
|
|
28595
28614
|
...e,
|
|
28596
|
-
[r.name]: t.map((e) =>
|
|
28615
|
+
[r.name]: t.map((e) => cC(e, r))
|
|
28597
28616
|
}));
|
|
28598
28617
|
}).catch((e) => {
|
|
28599
28618
|
a.signal.aborted || console.error(`[DynamicPopup] Search failed for field "${r.name}":`, e);
|
|
28600
28619
|
});
|
|
28601
|
-
},
|
|
28620
|
+
}, pC);
|
|
28602
28621
|
};
|
|
28603
28622
|
}
|
|
28604
28623
|
function d(n) {
|
|
@@ -28629,7 +28648,7 @@ function pC({ api: e, popupContext: t, setDynamicOptions: n }) {
|
|
|
28629
28648
|
}
|
|
28630
28649
|
//#endregion
|
|
28631
28650
|
//#region src/components/popups/dynamic/hooks/usePopupSubmit.js
|
|
28632
|
-
function
|
|
28651
|
+
function gC({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynamicOptions: a, extraData: s, removedIds: c, fields: l, onClose: u, onSubmit: d }) {
|
|
28633
28652
|
let [f, p] = o(!1), [m, h] = o(null);
|
|
28634
28653
|
async function g(e) {
|
|
28635
28654
|
let t = {
|
|
@@ -28686,8 +28705,8 @@ function mC({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
|
|
|
28686
28705
|
}
|
|
28687
28706
|
//#endregion
|
|
28688
28707
|
//#region src/components/popups/dynamic/DynamicPopup.jsx
|
|
28689
|
-
function
|
|
28690
|
-
let [l] = C.useForm(), [u, d] = o({}), [f, p] = o([]), m = i(() =>
|
|
28708
|
+
function _C({ open: e = !0, config: t, context: n = {}, onClose: a, onSubmit: s, api: c = {} }) {
|
|
28709
|
+
let [l] = C.useForm(), [u, d] = o({}), [f, p] = o([]), m = i(() => uC(n), [n]), { selectedIds: h = [], selectedRecords: g = [], moduleName: _ = "" } = m, v = i(() => h.map((e, t) => {
|
|
28691
28710
|
let n = g[t];
|
|
28692
28711
|
return n?.id ?? n?._id ?? e;
|
|
28693
28712
|
}), [h, g]), y = i(() => t ? typeof t.getFields == "function" ? t.getFields(m) : t.fields ?? [] : [], [t, m]), b = i(() => {
|
|
@@ -28695,14 +28714,14 @@ function hC({ open: e = !0, config: t, context: n = {}, onClose: a, onSubmit: s,
|
|
|
28695
28714
|
return y.forEach((t) => {
|
|
28696
28715
|
t.initialValueKey && m[t.initialValueKey] !== void 0 && (e[t.name] = m[t.initialValueKey]);
|
|
28697
28716
|
}), e;
|
|
28698
|
-
}, [y, m]), { dynamicOptions: x, setDynamicOptions: S, extraData: w } =
|
|
28717
|
+
}, [y, m]), { dynamicOptions: x, setDynamicOptions: S, extraData: w } = fC({
|
|
28699
28718
|
open: e,
|
|
28700
28719
|
config: t,
|
|
28701
28720
|
api: c,
|
|
28702
28721
|
fields: y,
|
|
28703
28722
|
popupContext: m,
|
|
28704
28723
|
formValues: u
|
|
28705
|
-
}), { mentionOptions: T, getSearchHandler: E, getMentionSearchHandler: D } =
|
|
28724
|
+
}), { mentionOptions: T, getSearchHandler: E, getMentionSearchHandler: D } = hC({
|
|
28706
28725
|
api: c,
|
|
28707
28726
|
popupContext: m,
|
|
28708
28727
|
setDynamicOptions: S
|
|
@@ -28710,7 +28729,7 @@ function hC({ open: e = !0, config: t, context: n = {}, onClose: a, onSubmit: s,
|
|
|
28710
28729
|
function O() {
|
|
28711
28730
|
typeof a == "function" && a();
|
|
28712
28731
|
}
|
|
28713
|
-
let { handleOk: A, confirming: j, deleteError: M, resetSubmitState: N } =
|
|
28732
|
+
let { handleOk: A, confirming: j, deleteError: M, resetSubmitState: N } = gC({
|
|
28714
28733
|
form: l,
|
|
28715
28734
|
config: t,
|
|
28716
28735
|
api: c,
|
|
@@ -28762,7 +28781,7 @@ function hC({ open: e = !0, config: t, context: n = {}, onClose: a, onSubmit: s,
|
|
|
28762
28781
|
deleteError: M
|
|
28763
28782
|
}),
|
|
28764
28783
|
/* @__PURE__ */ Y(HS, { footerNote: t.footerNote }),
|
|
28765
|
-
/* @__PURE__ */ Y(
|
|
28784
|
+
/* @__PURE__ */ Y(dC, {
|
|
28766
28785
|
form: l,
|
|
28767
28786
|
fields: y,
|
|
28768
28787
|
initialValues: b,
|
|
@@ -28782,7 +28801,7 @@ function hC({ open: e = !0, config: t, context: n = {}, onClose: a, onSubmit: s,
|
|
|
28782
28801
|
}
|
|
28783
28802
|
//#endregion
|
|
28784
28803
|
//#region src/components/popups/definitions/delete/config.js
|
|
28785
|
-
var
|
|
28804
|
+
var vC = {
|
|
28786
28805
|
mode: "delete",
|
|
28787
28806
|
getTitleText: (e, t) => `Delete ${e > 0 ? `${e} ` : ""}${t}`,
|
|
28788
28807
|
titleIcon: "delete",
|
|
@@ -28795,19 +28814,19 @@ var gC = {
|
|
|
28795
28814
|
};
|
|
28796
28815
|
//#endregion
|
|
28797
28816
|
//#region src/services/popupApi.js
|
|
28798
|
-
function
|
|
28817
|
+
function yC() {
|
|
28799
28818
|
return {
|
|
28800
28819
|
tenantId: localStorage.getItem("tenantId") || "",
|
|
28801
28820
|
businessId: localStorage.getItem("businessId") || "",
|
|
28802
28821
|
businessUnitId: localStorage.getItem("businessUnitId") || ""
|
|
28803
28822
|
};
|
|
28804
28823
|
}
|
|
28805
|
-
function
|
|
28824
|
+
function bC() {
|
|
28806
28825
|
return Number(localStorage.getItem("userId")) || 0;
|
|
28807
28826
|
}
|
|
28808
|
-
var
|
|
28809
|
-
async function
|
|
28810
|
-
return
|
|
28827
|
+
var xC = (e) => e?.data ?? e;
|
|
28828
|
+
async function SC(e, t, n) {
|
|
28829
|
+
return xC(await $(Q, "/module-data-update", {
|
|
28811
28830
|
method: "PUT",
|
|
28812
28831
|
body: JSON.stringify({
|
|
28813
28832
|
module: e,
|
|
@@ -28816,21 +28835,21 @@ async function bC(e, t, n) {
|
|
|
28816
28835
|
})
|
|
28817
28836
|
}));
|
|
28818
28837
|
}
|
|
28819
|
-
async function
|
|
28838
|
+
async function CC(e) {
|
|
28820
28839
|
return $(pn, "/delete", {
|
|
28821
28840
|
method: "POST",
|
|
28822
28841
|
body: JSON.stringify({
|
|
28823
28842
|
schemaVersion: 1,
|
|
28824
|
-
...
|
|
28843
|
+
...yC(),
|
|
28825
28844
|
jobId: e
|
|
28826
28845
|
})
|
|
28827
28846
|
});
|
|
28828
28847
|
}
|
|
28829
|
-
async function
|
|
28848
|
+
async function wC(e) {
|
|
28830
28849
|
let t = await Promise.all(e.map((e) => $(mn, `/delete?_id=${encodeURIComponent(e)}`, { method: "PUT" })));
|
|
28831
28850
|
return t[t.length - 1] ?? {};
|
|
28832
28851
|
}
|
|
28833
|
-
async function
|
|
28852
|
+
async function TC(e, t) {
|
|
28834
28853
|
return $(Q, "/module-data-delete", {
|
|
28835
28854
|
method: "POST",
|
|
28836
28855
|
body: JSON.stringify({
|
|
@@ -28839,28 +28858,28 @@ async function CC(e, t) {
|
|
|
28839
28858
|
})
|
|
28840
28859
|
});
|
|
28841
28860
|
}
|
|
28842
|
-
function
|
|
28843
|
-
return e === "job" ?
|
|
28861
|
+
function EC(e, t) {
|
|
28862
|
+
return e === "job" ? CC(t) : e === "candidate" || e === "candidates" ? wC(t) : TC(e, t);
|
|
28844
28863
|
}
|
|
28845
|
-
async function
|
|
28846
|
-
return
|
|
28864
|
+
async function DC(e) {
|
|
28865
|
+
return xC(await $(pn, "/joblist", {
|
|
28847
28866
|
method: "POST",
|
|
28848
28867
|
body: JSON.stringify({
|
|
28849
|
-
...
|
|
28868
|
+
...yC(),
|
|
28850
28869
|
searchQuery: e,
|
|
28851
|
-
userId:
|
|
28870
|
+
userId: bC()
|
|
28852
28871
|
})
|
|
28853
28872
|
}));
|
|
28854
28873
|
}
|
|
28855
|
-
async function
|
|
28874
|
+
async function OC(e = "") {
|
|
28856
28875
|
return Un(pn, `/users/any${e ? `?search=${encodeURIComponent(e)}` : ""}`);
|
|
28857
28876
|
}
|
|
28858
|
-
async function
|
|
28877
|
+
async function kC({ relatedIds: e, module: t, title: n, targetDate: r, notes: i, mentionedUsers: a = [] }) {
|
|
28859
28878
|
return $(pn, "/notes", {
|
|
28860
28879
|
method: "POST",
|
|
28861
28880
|
body: JSON.stringify({
|
|
28862
28881
|
schemaVersion: 1,
|
|
28863
|
-
...
|
|
28882
|
+
...yC(),
|
|
28864
28883
|
title: n,
|
|
28865
28884
|
notes: i,
|
|
28866
28885
|
notesFor: t || "general",
|
|
@@ -28875,11 +28894,11 @@ async function DC({ relatedIds: e, module: t, title: n, targetDate: r, notes: i,
|
|
|
28875
28894
|
})
|
|
28876
28895
|
});
|
|
28877
28896
|
}
|
|
28878
|
-
async function
|
|
28897
|
+
async function AC({ jobId: e, candidateIds: t, hiringStage: n }) {
|
|
28879
28898
|
return $(pn, "/source/hiringStgUpdate", {
|
|
28880
28899
|
method: "PUT",
|
|
28881
28900
|
body: JSON.stringify({
|
|
28882
|
-
...
|
|
28901
|
+
...yC(),
|
|
28883
28902
|
multiJobId: Array.isArray(e) ? e : [e],
|
|
28884
28903
|
applicantId: Array.isArray(t) ? t : [t],
|
|
28885
28904
|
updateStatus: String(n ?? "").toLowerCase(),
|
|
@@ -28887,15 +28906,15 @@ async function OC({ jobId: e, candidateIds: t, hiringStage: n }) {
|
|
|
28887
28906
|
responseType: "responded",
|
|
28888
28907
|
hiriringStatusChangeType: "tagToJobs",
|
|
28889
28908
|
comments: "",
|
|
28890
|
-
userId:
|
|
28909
|
+
userId: bC()
|
|
28891
28910
|
})
|
|
28892
28911
|
});
|
|
28893
28912
|
}
|
|
28894
|
-
async function
|
|
28895
|
-
return
|
|
28913
|
+
async function jC() {
|
|
28914
|
+
return xC(await $(Q, "/masters/dropdown?masterName=candidateGroups&offset=0&limit=50"));
|
|
28896
28915
|
}
|
|
28897
|
-
async function
|
|
28898
|
-
return
|
|
28916
|
+
async function MC({ candidateIds: e, groupId: t, groupName: n }) {
|
|
28917
|
+
return xC(await $(mn, "/actions/update-group", {
|
|
28899
28918
|
method: "PUT",
|
|
28900
28919
|
body: JSON.stringify({
|
|
28901
28920
|
candidateIds: e,
|
|
@@ -28904,14 +28923,14 @@ async function AC({ candidateIds: e, groupId: t, groupName: n }) {
|
|
|
28904
28923
|
})
|
|
28905
28924
|
}));
|
|
28906
28925
|
}
|
|
28907
|
-
async function
|
|
28926
|
+
async function NC({ jobIds: e, rate: t, priority: n }) {
|
|
28908
28927
|
return $(pn, "/assign?type=self", {
|
|
28909
28928
|
method: "PUT",
|
|
28910
28929
|
body: JSON.stringify({
|
|
28911
28930
|
multiJobId: Array.isArray(e) ? e : [e],
|
|
28912
|
-
userId:
|
|
28931
|
+
userId: bC(),
|
|
28913
28932
|
schemaVersion: 1,
|
|
28914
|
-
...
|
|
28933
|
+
...yC(),
|
|
28915
28934
|
jobPayDetails: t ?? {},
|
|
28916
28935
|
priority: n ?? !1,
|
|
28917
28936
|
priorityFrom: null,
|
|
@@ -28919,7 +28938,7 @@ async function jC({ jobIds: e, rate: t, priority: n }) {
|
|
|
28919
28938
|
})
|
|
28920
28939
|
});
|
|
28921
28940
|
}
|
|
28922
|
-
async function
|
|
28941
|
+
async function PC() {
|
|
28923
28942
|
let e = await Un(pn, "/users/manager");
|
|
28924
28943
|
return (Array.isArray(e) ? e : e ? [e] : []).map((e) => ({
|
|
28925
28944
|
...e,
|
|
@@ -28927,10 +28946,10 @@ async function MC() {
|
|
|
28927
28946
|
value: String(e.userId ?? e.id ?? e._id ?? "")
|
|
28928
28947
|
}));
|
|
28929
28948
|
}
|
|
28930
|
-
async function
|
|
28949
|
+
async function FC(e) {
|
|
28931
28950
|
return e ? Un(pn, `/self-assign?jobId=${encodeURIComponent(e)}`) : null;
|
|
28932
28951
|
}
|
|
28933
|
-
async function
|
|
28952
|
+
async function IC({ jobIds: e, userId: t, rate: n, priority: r, removedIds: i, existingRecruiters: a }) {
|
|
28934
28953
|
let o = (a ?? []).filter((e) => {
|
|
28935
28954
|
let t = String(e?.user_id ?? e?.id ?? e?.userId ?? "");
|
|
28936
28955
|
return t && !(i ?? []).includes(t);
|
|
@@ -28941,7 +28960,7 @@ async function PC({ jobIds: e, userId: t, rate: n, priority: r, removedIds: i, e
|
|
|
28941
28960
|
multiJobId: Array.isArray(e) ? e : [e],
|
|
28942
28961
|
userId: t,
|
|
28943
28962
|
schemaVersion: 1,
|
|
28944
|
-
...
|
|
28963
|
+
...yC(),
|
|
28945
28964
|
jobPayDetails: n ?? {},
|
|
28946
28965
|
priority: r ?? !1,
|
|
28947
28966
|
priorityFrom: null,
|
|
@@ -28949,8 +28968,8 @@ async function PC({ jobIds: e, userId: t, rate: n, priority: r, removedIds: i, e
|
|
|
28949
28968
|
})
|
|
28950
28969
|
});
|
|
28951
28970
|
}
|
|
28952
|
-
async function
|
|
28953
|
-
return
|
|
28971
|
+
async function LC({ submissionId: e, isMail: t = !1 }) {
|
|
28972
|
+
return xC(await $(Q, "/submissions/move-to-onboarding", {
|
|
28954
28973
|
method: "POST",
|
|
28955
28974
|
body: JSON.stringify({
|
|
28956
28975
|
submissionId: e,
|
|
@@ -28958,8 +28977,8 @@ async function FC({ submissionId: e, isMail: t = !1 }) {
|
|
|
28958
28977
|
})
|
|
28959
28978
|
}));
|
|
28960
28979
|
}
|
|
28961
|
-
async function
|
|
28962
|
-
return
|
|
28980
|
+
async function RC(e, t) {
|
|
28981
|
+
return xC(await $(Q, "/submissions/approve", {
|
|
28963
28982
|
method: "POST",
|
|
28964
28983
|
body: JSON.stringify({
|
|
28965
28984
|
submissionId: e,
|
|
@@ -28967,11 +28986,11 @@ async function IC(e, t) {
|
|
|
28967
28986
|
})
|
|
28968
28987
|
}));
|
|
28969
28988
|
}
|
|
28970
|
-
async function
|
|
28971
|
-
return
|
|
28989
|
+
async function zC(e) {
|
|
28990
|
+
return xC(await $(Q, `/submissions/vms-approve?submissionId=${encodeURIComponent(e)}`));
|
|
28972
28991
|
}
|
|
28973
|
-
async function
|
|
28974
|
-
return
|
|
28992
|
+
async function BC({ submissionId: e, rejectReasonId: t, rejectReason: n, rejectReasonComments: r }) {
|
|
28993
|
+
return xC(await $(Q, "/submissions/reject", {
|
|
28975
28994
|
method: "POST",
|
|
28976
28995
|
body: JSON.stringify({
|
|
28977
28996
|
submissionId: e,
|
|
@@ -28981,11 +29000,11 @@ async function RC({ submissionId: e, rejectReasonId: t, rejectReason: n, rejectR
|
|
|
28981
29000
|
})
|
|
28982
29001
|
}));
|
|
28983
29002
|
}
|
|
28984
|
-
async function
|
|
29003
|
+
async function VC({ jobId: e, candidateIds: t }) {
|
|
28985
29004
|
return $(pn, "/source/hiringStgUpdate", {
|
|
28986
29005
|
method: "PUT",
|
|
28987
29006
|
body: JSON.stringify({
|
|
28988
|
-
...
|
|
29007
|
+
...yC(),
|
|
28989
29008
|
multiJobId: Array.isArray(e) ? e : [e],
|
|
28990
29009
|
applicantId: Array.isArray(t) ? t : [t],
|
|
28991
29010
|
updateStatus: "pipeline",
|
|
@@ -28993,15 +29012,15 @@ async function zC({ jobId: e, candidateIds: t }) {
|
|
|
28993
29012
|
responseType: "responded",
|
|
28994
29013
|
hiriringStatusChangeType: "tagToJobs",
|
|
28995
29014
|
comments: "",
|
|
28996
|
-
userId:
|
|
29015
|
+
userId: bC()
|
|
28997
29016
|
})
|
|
28998
29017
|
});
|
|
28999
29018
|
}
|
|
29000
29019
|
//#endregion
|
|
29001
29020
|
//#region src/components/popups/definitions/delete/api.js
|
|
29002
|
-
var
|
|
29003
|
-
await
|
|
29004
|
-
} },
|
|
29021
|
+
var HC = { deleteItems: async (e, t) => {
|
|
29022
|
+
await EC(t.moduleName, e);
|
|
29023
|
+
} }, UC = {
|
|
29005
29024
|
title: "Quick Submit",
|
|
29006
29025
|
okText: "Submit",
|
|
29007
29026
|
width: 480,
|
|
@@ -29022,10 +29041,10 @@ var BC = { deleteItems: async (e, t) => {
|
|
|
29022
29041
|
placeholder: "Search candidate name (minimum 3 character)",
|
|
29023
29042
|
optionsKey: "candidateOptions",
|
|
29024
29043
|
searchFetchKey: "quickSubmitCandidates",
|
|
29025
|
-
labelTemplate: "{applicantRefrenceId} - {firstName} {lastName}",
|
|
29044
|
+
labelTemplate: "{applicantRefrenceId} - {firstName} {lastName} - ({lastdate})",
|
|
29026
29045
|
valueKey: "_id"
|
|
29027
29046
|
}]
|
|
29028
|
-
},
|
|
29047
|
+
}, WC = {
|
|
29029
29048
|
searchOptions: async (e, t, n) => {
|
|
29030
29049
|
if (e.searchFetchKey === "quickSubmitJobList") {
|
|
29031
29050
|
let e = n.selectedRecords?.[0] ?? {}, r = await bl({
|
|
@@ -29052,7 +29071,7 @@ var BC = { deleteItems: async (e, t) => {
|
|
|
29052
29071
|
let { navigate: n, selectedRecords: r = [], selectedIds: i = [], moduleName: a, isFromSubmission: o = !1 } = t, s = r[0] ?? {};
|
|
29053
29072
|
return n(a === "candidate" ? `/submission-create/${e.jobId ?? ""}?candidateId=${s.id ?? s._id ?? i[0] ?? ""}&isFromSubmission=${o}` : `/submission-create/${t.jobId ?? s.jobId ?? s.id ?? s._id ?? i[0] ?? ""}?candidateId=${e.candidate ?? ""}&isFromSubmission=${o}`), { navigated: !0 };
|
|
29054
29073
|
}
|
|
29055
|
-
},
|
|
29074
|
+
}, GC = {
|
|
29056
29075
|
title: "Add Notes & Share",
|
|
29057
29076
|
okText: "Save & Share",
|
|
29058
29077
|
width: 480,
|
|
@@ -29064,9 +29083,9 @@ var BC = { deleteItems: async (e, t) => {
|
|
|
29064
29083
|
placeholder: "Add your notes on the job. Use '@' to mention someone.",
|
|
29065
29084
|
mentionFetchKey: "mentionUsers"
|
|
29066
29085
|
}]
|
|
29067
|
-
},
|
|
29068
|
-
async function
|
|
29069
|
-
return
|
|
29086
|
+
}, KC = (e) => e?.data ?? e;
|
|
29087
|
+
async function qC({ relatedId: e, notes: t, title: n, notesFor: r }) {
|
|
29088
|
+
return KC(await nl(Q, "/notes", {
|
|
29070
29089
|
method: "POST",
|
|
29071
29090
|
body: JSON.stringify({
|
|
29072
29091
|
relatedId: e,
|
|
@@ -29078,18 +29097,18 @@ async function GC({ relatedId: e, notes: t, title: n, notesFor: r }) {
|
|
|
29078
29097
|
}
|
|
29079
29098
|
//#endregion
|
|
29080
29099
|
//#region src/components/popups/definitions/add-notes/api.js
|
|
29081
|
-
var
|
|
29082
|
-
getMentionOptions: async (e, t) =>
|
|
29100
|
+
var JC = {
|
|
29101
|
+
getMentionOptions: async (e, t) => OC(t),
|
|
29083
29102
|
submit: async (e, t) => {
|
|
29084
29103
|
let n = Array.isArray(t.selectedIds) ? t.selectedIds[0] : t.selectedIds;
|
|
29085
29104
|
if (!n) throw Error("Please select a record before adding a note.");
|
|
29086
|
-
await
|
|
29105
|
+
await qC({
|
|
29087
29106
|
relatedId: String(n),
|
|
29088
29107
|
notes: e.notes,
|
|
29089
29108
|
notesFor: t.moduleName
|
|
29090
29109
|
});
|
|
29091
29110
|
}
|
|
29092
|
-
},
|
|
29111
|
+
}, YC = {
|
|
29093
29112
|
title: "Tag to Job",
|
|
29094
29113
|
okText: "Tag",
|
|
29095
29114
|
width: 480,
|
|
@@ -29116,16 +29135,16 @@ var KC = {
|
|
|
29116
29135
|
value: "Pipeline"
|
|
29117
29136
|
}]
|
|
29118
29137
|
}]
|
|
29119
|
-
},
|
|
29120
|
-
searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ?
|
|
29138
|
+
}, XC = {
|
|
29139
|
+
searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? DC(t) : [],
|
|
29121
29140
|
submit: async (e, t) => {
|
|
29122
|
-
await
|
|
29141
|
+
await AC({
|
|
29123
29142
|
jobId: e.jobId,
|
|
29124
29143
|
candidateIds: t.selectedIds,
|
|
29125
29144
|
hiringStage: e.hiringStage
|
|
29126
29145
|
});
|
|
29127
29146
|
}
|
|
29128
|
-
},
|
|
29147
|
+
}, ZC = {
|
|
29129
29148
|
title: "Change Status",
|
|
29130
29149
|
okText: "Apply",
|
|
29131
29150
|
width: 420,
|
|
@@ -29157,9 +29176,9 @@ var KC = {
|
|
|
29157
29176
|
}
|
|
29158
29177
|
]
|
|
29159
29178
|
}]
|
|
29160
|
-
},
|
|
29161
|
-
await
|
|
29162
|
-
} },
|
|
29179
|
+
}, QC = { submit: async (e, t) => {
|
|
29180
|
+
await SC(t.moduleName, t.selectedIds, e.status);
|
|
29181
|
+
} }, $C = {
|
|
29163
29182
|
getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
|
|
29164
29183
|
titleIcon: "delete",
|
|
29165
29184
|
okText: "Remove",
|
|
@@ -29168,12 +29187,12 @@ var KC = {
|
|
|
29168
29187
|
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?",
|
|
29169
29188
|
footerNote: "The candidate will be moved back to the pipeline.",
|
|
29170
29189
|
fields: []
|
|
29171
|
-
},
|
|
29172
|
-
await
|
|
29190
|
+
}, ew = { onOk: async (e) => {
|
|
29191
|
+
await VC({
|
|
29173
29192
|
jobId: e.jobId ?? e.selectedIds[0],
|
|
29174
29193
|
candidateIds: e.selectedIds
|
|
29175
29194
|
});
|
|
29176
|
-
} },
|
|
29195
|
+
} }, tw = {
|
|
29177
29196
|
title: "Add to Groups",
|
|
29178
29197
|
description: "Select a group to add the selected candidate(s) to",
|
|
29179
29198
|
okText: "Add to Group",
|
|
@@ -29187,26 +29206,26 @@ var KC = {
|
|
|
29187
29206
|
placeholder: "Select a group",
|
|
29188
29207
|
fetchOptionsKey: "candidateGroups"
|
|
29189
29208
|
}]
|
|
29190
|
-
},
|
|
29191
|
-
getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ?
|
|
29209
|
+
}, nw = {
|
|
29210
|
+
getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? jC() : [],
|
|
29192
29211
|
submit: async (e, t, { dynamicOptions: n }) => {
|
|
29193
29212
|
let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
|
|
29194
|
-
await
|
|
29213
|
+
await MC({
|
|
29195
29214
|
candidateIds: t.selectedIds,
|
|
29196
29215
|
groupId: e.groupId,
|
|
29197
29216
|
groupName: r?.label ?? ""
|
|
29198
29217
|
});
|
|
29199
29218
|
}
|
|
29200
|
-
},
|
|
29219
|
+
}, rw = {
|
|
29201
29220
|
title: "Self Assign",
|
|
29202
29221
|
okText: "Yes",
|
|
29203
29222
|
cancelText: "No",
|
|
29204
29223
|
width: 420,
|
|
29205
29224
|
bodyText: "Are you sure you want to assign this job?",
|
|
29206
29225
|
fields: []
|
|
29207
|
-
},
|
|
29208
|
-
await
|
|
29209
|
-
} },
|
|
29226
|
+
}, iw = { onOk: async (e) => {
|
|
29227
|
+
await NC({ jobIds: e.selectedIds });
|
|
29228
|
+
} }, aw = {
|
|
29210
29229
|
getTitleText: (e, t, n) => {
|
|
29211
29230
|
let r = n?.jobTitle || n?.title || "";
|
|
29212
29231
|
return r ? `Assign - ${r}` : "Assign";
|
|
@@ -29236,11 +29255,11 @@ var KC = {
|
|
|
29236
29255
|
checkboxLabel: "Mark as High"
|
|
29237
29256
|
}
|
|
29238
29257
|
]
|
|
29239
|
-
},
|
|
29240
|
-
getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ?
|
|
29241
|
-
loadExtraData: async (e) =>
|
|
29258
|
+
}, ow = {
|
|
29259
|
+
getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? PC() : [],
|
|
29260
|
+
loadExtraData: async (e) => FC(e.selectedIds[0]),
|
|
29242
29261
|
submit: async (e, t, { removedIds: n, extraData: r }) => {
|
|
29243
|
-
await
|
|
29262
|
+
await IC({
|
|
29244
29263
|
jobIds: t.selectedIds,
|
|
29245
29264
|
userId: e.assignToUserId,
|
|
29246
29265
|
rate: e.candidateRate,
|
|
@@ -29249,7 +29268,7 @@ var KC = {
|
|
|
29249
29268
|
existingRecruiters: r?.recruitersData
|
|
29250
29269
|
});
|
|
29251
29270
|
}
|
|
29252
|
-
},
|
|
29271
|
+
}, sw = {
|
|
29253
29272
|
title: "Add Sticky Notes",
|
|
29254
29273
|
okText: "Save",
|
|
29255
29274
|
width: 480,
|
|
@@ -29277,11 +29296,11 @@ var KC = {
|
|
|
29277
29296
|
mentionFetchKey: "mentionUsers"
|
|
29278
29297
|
}
|
|
29279
29298
|
]
|
|
29280
|
-
},
|
|
29281
|
-
getMentionOptions: async (e, t) =>
|
|
29299
|
+
}, cw = {
|
|
29300
|
+
getMentionOptions: async (e, t) => OC(t),
|
|
29282
29301
|
submit: async (e, t) => {
|
|
29283
29302
|
let n = (e.comments?.match(/@([\w.]+)/g) ?? []).map((e) => e.slice(1));
|
|
29284
|
-
await
|
|
29303
|
+
await kC({
|
|
29285
29304
|
relatedIds: t.selectedIds,
|
|
29286
29305
|
module: t.moduleName,
|
|
29287
29306
|
title: e.heading,
|
|
@@ -29290,7 +29309,7 @@ var KC = {
|
|
|
29290
29309
|
mentionedUsers: n
|
|
29291
29310
|
}), window.dispatchEvent(new Event("sticky-notes:refresh"));
|
|
29292
29311
|
}
|
|
29293
|
-
},
|
|
29312
|
+
}, lw = {
|
|
29294
29313
|
title: "Move to Onboarding",
|
|
29295
29314
|
bodyText: "Are you sure you want to move this candidate to onboarding?",
|
|
29296
29315
|
okText: "Yes",
|
|
@@ -29302,15 +29321,15 @@ var KC = {
|
|
|
29302
29321
|
type: "priority-checkbox",
|
|
29303
29322
|
checkboxLabel: "Send Onboarding Email"
|
|
29304
29323
|
}]
|
|
29305
|
-
},
|
|
29306
|
-
await
|
|
29324
|
+
}, uw = { submit: async (e, t) => {
|
|
29325
|
+
await LC({
|
|
29307
29326
|
submissionId: t.selectedIds[0],
|
|
29308
29327
|
isMail: e.sendOnboardingEmail
|
|
29309
29328
|
});
|
|
29310
29329
|
} };
|
|
29311
29330
|
//#endregion
|
|
29312
29331
|
//#region src/components/popups/definitions/approve-rate/config.js
|
|
29313
|
-
function
|
|
29332
|
+
function dw(e) {
|
|
29314
29333
|
let t = (e.selectedRecords?.[0] ?? {}).candidateRate ?? {};
|
|
29315
29334
|
return t.candidateAcceptedRate ? {
|
|
29316
29335
|
amount: t.candidateAcceptedRate,
|
|
@@ -29318,14 +29337,14 @@ function lw(e) {
|
|
|
29318
29337
|
unit: t.candidateAcceptedPayUnit
|
|
29319
29338
|
} : null;
|
|
29320
29339
|
}
|
|
29321
|
-
var
|
|
29340
|
+
var fw = {
|
|
29322
29341
|
title: "Approve Rate",
|
|
29323
29342
|
okText: "Approve",
|
|
29324
29343
|
width: 480,
|
|
29325
29344
|
className: "medium-modal",
|
|
29326
29345
|
successMessage: "Rate approved",
|
|
29327
29346
|
getBodyText: (e, t, n, r, i) => {
|
|
29328
|
-
let a =
|
|
29347
|
+
let a = dw(i);
|
|
29329
29348
|
return `Candidate Rate: ${a ? `${a.symbol}${a.amount}/${a.unit}` : "-"}`;
|
|
29330
29349
|
},
|
|
29331
29350
|
fields: [
|
|
@@ -29338,7 +29357,7 @@ var uw = {
|
|
|
29338
29357
|
min: 0,
|
|
29339
29358
|
validator: (e, t) => {
|
|
29340
29359
|
if (e == null || e === "") return;
|
|
29341
|
-
let n =
|
|
29360
|
+
let n = dw(t);
|
|
29342
29361
|
if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
|
|
29343
29362
|
}
|
|
29344
29363
|
},
|
|
@@ -29404,15 +29423,15 @@ var uw = {
|
|
|
29404
29423
|
}]
|
|
29405
29424
|
}
|
|
29406
29425
|
]
|
|
29407
|
-
},
|
|
29426
|
+
}, pw = { submit: async (e, t) => {
|
|
29408
29427
|
let n = t.selectedIds[0];
|
|
29409
|
-
await
|
|
29428
|
+
await RC(n, {
|
|
29410
29429
|
candidateProposedRate: e.candidateProposedRate,
|
|
29411
29430
|
candidateProposedRateCurrency: e.candidateProposedRateCurrency,
|
|
29412
29431
|
candidateProposedRateUnit: e.candidateProposedRateUnit,
|
|
29413
29432
|
submitVia: e.submitVia
|
|
29414
|
-
}), e.submitVia === "VMS" ? await
|
|
29415
|
-
} },
|
|
29433
|
+
}), e.submitVia === "VMS" ? await zC(n) : q.info("Approved — use Send Mail to notify the client.");
|
|
29434
|
+
} }, mw = [
|
|
29416
29435
|
{
|
|
29417
29436
|
id: 1,
|
|
29418
29437
|
name: "Re-Submission"
|
|
@@ -29425,7 +29444,7 @@ var uw = {
|
|
|
29425
29444
|
id: 3,
|
|
29426
29445
|
name: "Incomplete candidate details - (Re-Submission)"
|
|
29427
29446
|
}
|
|
29428
|
-
],
|
|
29447
|
+
], hw = {
|
|
29429
29448
|
title: "Reject",
|
|
29430
29449
|
okText: "Reject",
|
|
29431
29450
|
okButtonDanger: !0,
|
|
@@ -29437,7 +29456,7 @@ var uw = {
|
|
|
29437
29456
|
type: "select",
|
|
29438
29457
|
required: !0,
|
|
29439
29458
|
placeholder: "Select rejection reasons",
|
|
29440
|
-
defaultOptions:
|
|
29459
|
+
defaultOptions: mw.map((e) => ({
|
|
29441
29460
|
label: e.name,
|
|
29442
29461
|
value: e.id
|
|
29443
29462
|
}))
|
|
@@ -29448,43 +29467,43 @@ var uw = {
|
|
|
29448
29467
|
required: !0,
|
|
29449
29468
|
rows: 4
|
|
29450
29469
|
}]
|
|
29451
|
-
},
|
|
29452
|
-
let n =
|
|
29453
|
-
await
|
|
29470
|
+
}, gw = { submit: async (e, t) => {
|
|
29471
|
+
let n = mw.find((t) => t.id === e.rejectReason);
|
|
29472
|
+
await BC({
|
|
29454
29473
|
submissionId: t.selectedIds[0],
|
|
29455
29474
|
rejectReasonId: e.rejectReason,
|
|
29456
29475
|
rejectReason: n?.name ?? "",
|
|
29457
29476
|
rejectReasonComments: e.rejectReasonComments
|
|
29458
29477
|
});
|
|
29459
|
-
} },
|
|
29460
|
-
delete:
|
|
29461
|
-
"quick-submit":
|
|
29462
|
-
"add-notes":
|
|
29463
|
-
"tag-to-job":
|
|
29464
|
-
"change-status":
|
|
29465
|
-
"remove-from-shortlist":
|
|
29466
|
-
"add-to-groups":
|
|
29467
|
-
"self-assign":
|
|
29468
|
-
"others-assign":
|
|
29469
|
-
"sticky-notes":
|
|
29470
|
-
"move-to-onboarding":
|
|
29471
|
-
"approve-rate":
|
|
29472
|
-
reject:
|
|
29473
|
-
},
|
|
29474
|
-
delete:
|
|
29475
|
-
"quick-submit":
|
|
29476
|
-
"add-notes":
|
|
29477
|
-
"tag-to-job":
|
|
29478
|
-
"change-status":
|
|
29479
|
-
"remove-from-shortlist":
|
|
29480
|
-
"add-to-groups":
|
|
29481
|
-
"self-assign":
|
|
29482
|
-
"others-assign":
|
|
29483
|
-
"sticky-notes":
|
|
29484
|
-
"move-to-onboarding":
|
|
29485
|
-
"approve-rate":
|
|
29486
|
-
reject:
|
|
29487
|
-
},
|
|
29478
|
+
} }, _w = {
|
|
29479
|
+
delete: vC,
|
|
29480
|
+
"quick-submit": UC,
|
|
29481
|
+
"add-notes": GC,
|
|
29482
|
+
"tag-to-job": YC,
|
|
29483
|
+
"change-status": ZC,
|
|
29484
|
+
"remove-from-shortlist": $C,
|
|
29485
|
+
"add-to-groups": tw,
|
|
29486
|
+
"self-assign": rw,
|
|
29487
|
+
"others-assign": aw,
|
|
29488
|
+
"sticky-notes": sw,
|
|
29489
|
+
"move-to-onboarding": lw,
|
|
29490
|
+
"approve-rate": fw,
|
|
29491
|
+
reject: hw
|
|
29492
|
+
}, vw = {
|
|
29493
|
+
delete: HC,
|
|
29494
|
+
"quick-submit": WC,
|
|
29495
|
+
"add-notes": JC,
|
|
29496
|
+
"tag-to-job": XC,
|
|
29497
|
+
"change-status": QC,
|
|
29498
|
+
"remove-from-shortlist": ew,
|
|
29499
|
+
"add-to-groups": nw,
|
|
29500
|
+
"self-assign": iw,
|
|
29501
|
+
"others-assign": ow,
|
|
29502
|
+
"sticky-notes": cw,
|
|
29503
|
+
"move-to-onboarding": uw,
|
|
29504
|
+
"approve-rate": pw,
|
|
29505
|
+
reject: gw
|
|
29506
|
+
}, yw = {
|
|
29488
29507
|
text: "input",
|
|
29489
29508
|
string: "input",
|
|
29490
29509
|
textarea: "textarea",
|
|
@@ -29493,13 +29512,13 @@ var uw = {
|
|
|
29493
29512
|
multiselect: "multi-select",
|
|
29494
29513
|
lookup: "search-select"
|
|
29495
29514
|
};
|
|
29496
|
-
function
|
|
29515
|
+
function bw(e) {
|
|
29497
29516
|
if (!e) return null;
|
|
29498
29517
|
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) => ({
|
|
29499
29518
|
...e,
|
|
29500
29519
|
name: e.name ?? e.field,
|
|
29501
29520
|
label: e.label ?? e.field,
|
|
29502
|
-
type:
|
|
29521
|
+
type: yw[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
|
|
29503
29522
|
required: e.required ?? e.req === 1,
|
|
29504
29523
|
options: (e.options ?? []).map((e) => ({
|
|
29505
29524
|
label: e.label ?? e.name ?? e.value,
|
|
@@ -29511,12 +29530,12 @@ function vw(e) {
|
|
|
29511
29530
|
fields: t
|
|
29512
29531
|
};
|
|
29513
29532
|
}
|
|
29514
|
-
function
|
|
29533
|
+
function xw({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
29515
29534
|
let n = i(() => ({
|
|
29516
|
-
...
|
|
29535
|
+
...vw,
|
|
29517
29536
|
...e
|
|
29518
29537
|
}), [e]), a = i(() => ({
|
|
29519
|
-
...
|
|
29538
|
+
..._w,
|
|
29520
29539
|
...t
|
|
29521
29540
|
}), [t]), { popupKey: s } = Gt(), c = Wt(), { state: l = {} } = Ut(), [u, d] = o({
|
|
29522
29541
|
key: "",
|
|
@@ -29529,7 +29548,7 @@ function yw({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
29529
29548
|
return uo(l.moduleName, "popup", s).then((n) => {
|
|
29530
29549
|
e || d({
|
|
29531
29550
|
key: t,
|
|
29532
|
-
config:
|
|
29551
|
+
config: bw(n[0])
|
|
29533
29552
|
});
|
|
29534
29553
|
}).catch(() => {
|
|
29535
29554
|
e || d({
|
|
@@ -29578,7 +29597,7 @@ function yw({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
29578
29597
|
});
|
|
29579
29598
|
} } : {};
|
|
29580
29599
|
}, [l.popupAction]);
|
|
29581
|
-
return /* @__PURE__ */ Y(
|
|
29600
|
+
return /* @__PURE__ */ Y(_C, {
|
|
29582
29601
|
open: !0,
|
|
29583
29602
|
config: f,
|
|
29584
29603
|
context: p,
|
|
@@ -29591,7 +29610,7 @@ function yw({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
29591
29610
|
}
|
|
29592
29611
|
//#endregion
|
|
29593
29612
|
//#region src/components/popups/definitions/vendor-share/config.js
|
|
29594
|
-
var
|
|
29613
|
+
var Sw = {
|
|
29595
29614
|
title: "Vendor Share",
|
|
29596
29615
|
maxVendorSelect: 1e3,
|
|
29597
29616
|
defaultTab: "myVendor",
|
|
@@ -29625,7 +29644,7 @@ var bw = {
|
|
|
29625
29644
|
key: "updatedOn"
|
|
29626
29645
|
}
|
|
29627
29646
|
]
|
|
29628
|
-
},
|
|
29647
|
+
}, Cw = {
|
|
29629
29648
|
getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => Xc({
|
|
29630
29649
|
jobId: e,
|
|
29631
29650
|
limit: t,
|
|
@@ -29642,11 +29661,11 @@ var bw = {
|
|
|
29642
29661
|
subject: i,
|
|
29643
29662
|
contents: a
|
|
29644
29663
|
})
|
|
29645
|
-
},
|
|
29664
|
+
}, ww = Sw.vendorColumns.map((e) => ({
|
|
29646
29665
|
...e,
|
|
29647
29666
|
render: (e) => e || "-"
|
|
29648
29667
|
}));
|
|
29649
|
-
function
|
|
29668
|
+
function Tw() {
|
|
29650
29669
|
let e = Wt(), t = Ut(), { selectedIds: n = [], selectedRecords: a = [], recipients: s = [], subject: c = "", onSend: l, moduleName: u = "", popupAction: d = {} } = t.state ?? {}, p = n[0] ?? a[0]?._id ?? a[0]?.id, [m, h] = o({
|
|
29651
29670
|
to: s.join(", "),
|
|
29652
29671
|
cc: "",
|
|
@@ -29655,13 +29674,13 @@ function Cw() {
|
|
|
29655
29674
|
contents: "",
|
|
29656
29675
|
showCc: !1,
|
|
29657
29676
|
showBcc: !1
|
|
29658
|
-
}), [g, _] = o(!p), [v, b] = o(
|
|
29677
|
+
}), [g, _] = o(!p), [v, b] = o(Sw.defaultTab), [x, S] = o(""), [C, T] = o([]), [E, D] = o(0), [O, k] = o(0), [A, j] = o(0), [M, N] = o(1), [P, F] = o(Sw.defaultPageSize), [I, L] = o(!1), [R, ee] = o([]);
|
|
29659
29678
|
r(() => {
|
|
29660
29679
|
if (!p) return;
|
|
29661
29680
|
let e = !1;
|
|
29662
29681
|
L(!0);
|
|
29663
29682
|
let t = x ? 100 : P, n = x ? 0 : (M - 1) * P;
|
|
29664
|
-
return
|
|
29683
|
+
return Cw.getVendorList({
|
|
29665
29684
|
jobId: p,
|
|
29666
29685
|
limit: t,
|
|
29667
29686
|
offset: n,
|
|
@@ -29684,7 +29703,7 @@ function Cw() {
|
|
|
29684
29703
|
P,
|
|
29685
29704
|
x
|
|
29686
29705
|
]), r(() => {
|
|
29687
|
-
p &&
|
|
29706
|
+
p && Cw.getMailDetails(p).then((e) => h((t) => ({
|
|
29688
29707
|
...t,
|
|
29689
29708
|
subject: e.subject || t.subject,
|
|
29690
29709
|
contents: e.contents || t.contents,
|
|
@@ -29709,7 +29728,7 @@ function Cw() {
|
|
|
29709
29728
|
e(-1);
|
|
29710
29729
|
}
|
|
29711
29730
|
function U() {
|
|
29712
|
-
V &&
|
|
29731
|
+
V && Cw.submit({
|
|
29713
29732
|
jobId: p,
|
|
29714
29733
|
toMail: pS(B.to),
|
|
29715
29734
|
ccMail: pS(B.cc),
|
|
@@ -29790,7 +29809,7 @@ function Cw() {
|
|
|
29790
29809
|
]
|
|
29791
29810
|
}), /* @__PURE__ */ Y("div", {
|
|
29792
29811
|
className: "vendor-share__vendor-tabs",
|
|
29793
|
-
children:
|
|
29812
|
+
children: Sw.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
|
|
29794
29813
|
className: `vendor-share__vendor-tab${v === e.key ? " vendor-share__vendor-tab--active" : ""}`,
|
|
29795
29814
|
onClick: () => {
|
|
29796
29815
|
b(e.key), N(1), ee([]);
|
|
@@ -29808,7 +29827,7 @@ function Cw() {
|
|
|
29808
29827
|
className: "vendor-share__vendor-table-wrapper",
|
|
29809
29828
|
children: /* @__PURE__ */ Y(ne, {
|
|
29810
29829
|
rowKey: (e) => e.vendorId,
|
|
29811
|
-
columns:
|
|
29830
|
+
columns: ww,
|
|
29812
29831
|
dataSource: W,
|
|
29813
29832
|
loading: I,
|
|
29814
29833
|
pagination: !1,
|
|
@@ -29816,7 +29835,7 @@ function Cw() {
|
|
|
29816
29835
|
rowSelection: {
|
|
29817
29836
|
selectedRowKeys: R,
|
|
29818
29837
|
onChange: (e) => {
|
|
29819
|
-
e.length >
|
|
29838
|
+
e.length > Sw.maxVendorSelect || ee(e);
|
|
29820
29839
|
}
|
|
29821
29840
|
},
|
|
29822
29841
|
scroll: { y: "calc(100vh - 340px)" }
|
|
@@ -29850,7 +29869,7 @@ function Cw() {
|
|
|
29850
29869
|
children: [
|
|
29851
29870
|
R.length,
|
|
29852
29871
|
" / ",
|
|
29853
|
-
|
|
29872
|
+
Sw.maxVendorSelect,
|
|
29854
29873
|
" Vendors selected"
|
|
29855
29874
|
]
|
|
29856
29875
|
}) : null
|
|
@@ -29861,7 +29880,7 @@ function Cw() {
|
|
|
29861
29880
|
}
|
|
29862
29881
|
//#endregion
|
|
29863
29882
|
//#region src/components/form/validation.js
|
|
29864
|
-
var
|
|
29883
|
+
var Ew = {
|
|
29865
29884
|
EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
|
|
29866
29885
|
PHONE: /^[0-9]{10}$/,
|
|
29867
29886
|
PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
|
|
@@ -29878,7 +29897,7 @@ var ww = {
|
|
|
29878
29897
|
FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
|
|
29879
29898
|
NO_SPACES: /^\S+$/,
|
|
29880
29899
|
STARTS_WITH_CAPITAL: /^[A-Z].*$/
|
|
29881
|
-
},
|
|
29900
|
+
}, Dw = {
|
|
29882
29901
|
SINGLE_FILE_COUNT: 1,
|
|
29883
29902
|
MULTI_FILE_COUNT: 5,
|
|
29884
29903
|
MAX_FILE_SIZE: 2,
|
|
@@ -29887,7 +29906,7 @@ var ww = {
|
|
|
29887
29906
|
"image/png",
|
|
29888
29907
|
"application/pdf"
|
|
29889
29908
|
]
|
|
29890
|
-
},
|
|
29909
|
+
}, Ow = {
|
|
29891
29910
|
REQUIRED: (e) => "Mandatory Field",
|
|
29892
29911
|
INVALID_EMAIL: "Please enter a valid email address.",
|
|
29893
29912
|
INVALID_PHONE: "Phone number must contain exactly 10 digits.",
|
|
@@ -29907,16 +29926,16 @@ var ww = {
|
|
|
29907
29926
|
NO_SPACES_ALLOWED: "Spaces are not allowed.",
|
|
29908
29927
|
MUST_START_WITH_CAPITAL: "First letter must be capital.",
|
|
29909
29928
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
29910
|
-
INVALID_FILE_SIZE: `File upload must be ${
|
|
29929
|
+
INVALID_FILE_SIZE: `File upload must be ${Dw.MAX_FILE_SIZE} MB below.`,
|
|
29911
29930
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
29912
29931
|
SINGLE_FILE_ONLY: "Only one file can be uploaded."
|
|
29913
|
-
},
|
|
29932
|
+
}, kw = {
|
|
29914
29933
|
FIRST_NAME_MIN: 3,
|
|
29915
29934
|
FIRST_NAME_MAX: 30
|
|
29916
|
-
},
|
|
29935
|
+
}, Aw = {
|
|
29917
29936
|
REMARKS_MIN: 10,
|
|
29918
29937
|
REMARKS_MAX: 250
|
|
29919
|
-
},
|
|
29938
|
+
}, jw = {
|
|
29920
29939
|
removeSpaces: (e = "") => e.replace(/\s/g, ""),
|
|
29921
29940
|
capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
|
|
29922
29941
|
capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
@@ -29928,132 +29947,132 @@ var ww = {
|
|
|
29928
29947
|
let t = e.replace(/\D/g, "");
|
|
29929
29948
|
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)}`;
|
|
29930
29949
|
}
|
|
29931
|
-
},
|
|
29950
|
+
}, Mw = {
|
|
29932
29951
|
required: (e = "Field") => ({
|
|
29933
29952
|
required: !0,
|
|
29934
|
-
message:
|
|
29953
|
+
message: Ow.REQUIRED(e)
|
|
29935
29954
|
}),
|
|
29936
29955
|
email: () => ({
|
|
29937
|
-
pattern:
|
|
29938
|
-
message:
|
|
29956
|
+
pattern: Ew.EMAIL,
|
|
29957
|
+
message: Ow.INVALID_EMAIL
|
|
29939
29958
|
}),
|
|
29940
29959
|
phone: () => ({
|
|
29941
|
-
pattern:
|
|
29942
|
-
message:
|
|
29960
|
+
pattern: Ew.PHONE,
|
|
29961
|
+
message: Ow.INVALID_PHONE
|
|
29943
29962
|
}),
|
|
29944
29963
|
password: () => ({
|
|
29945
|
-
pattern:
|
|
29946
|
-
message:
|
|
29964
|
+
pattern: Ew.PASSWORD,
|
|
29965
|
+
message: Ow.INVALID_PASSWORD
|
|
29947
29966
|
}),
|
|
29948
29967
|
alphabets: () => ({
|
|
29949
|
-
pattern:
|
|
29950
|
-
message:
|
|
29968
|
+
pattern: Ew.ALPHABETS,
|
|
29969
|
+
message: Ow.INVALID_ALPHABETS
|
|
29951
29970
|
}),
|
|
29952
29971
|
alphanumeric: () => ({
|
|
29953
|
-
pattern:
|
|
29954
|
-
message:
|
|
29972
|
+
pattern: Ew.ALPHANUMERIC,
|
|
29973
|
+
message: Ow.INVALID_ALPHANUMERIC
|
|
29955
29974
|
}),
|
|
29956
29975
|
number: () => ({
|
|
29957
|
-
pattern:
|
|
29958
|
-
message:
|
|
29976
|
+
pattern: Ew.NUMBER,
|
|
29977
|
+
message: Ow.INVALID_NUMBER
|
|
29959
29978
|
}),
|
|
29960
29979
|
url: () => ({
|
|
29961
|
-
pattern:
|
|
29962
|
-
message:
|
|
29980
|
+
pattern: Ew.URL,
|
|
29981
|
+
message: Ow.INVALID_URL
|
|
29963
29982
|
}),
|
|
29964
29983
|
candidateId: (e = "ID") => ({
|
|
29965
|
-
pattern:
|
|
29966
|
-
message:
|
|
29984
|
+
pattern: Ew.CANDIDATE_ID,
|
|
29985
|
+
message: Ow.INVALID_CANDIDATE_ID(e)
|
|
29967
29986
|
}),
|
|
29968
29987
|
remarks: () => ({
|
|
29969
|
-
pattern:
|
|
29970
|
-
message:
|
|
29971
|
-
REMARKS_MIN: `Remarks must be at least ${
|
|
29972
|
-
REMARKS_MAX: `Remarks must not exceed ${
|
|
29988
|
+
pattern: Ew.REMARKS,
|
|
29989
|
+
message: Ow.INVALID_REMARKS,
|
|
29990
|
+
REMARKS_MIN: `Remarks must be at least ${Aw.REMARKS_MIN} characters.`,
|
|
29991
|
+
REMARKS_MAX: `Remarks must not exceed ${Aw.REMARKS_MAX} characters.`
|
|
29973
29992
|
}),
|
|
29974
29993
|
designation: () => ({
|
|
29975
|
-
pattern:
|
|
29976
|
-
message:
|
|
29994
|
+
pattern: Ew.DESIGNATION,
|
|
29995
|
+
message: Ow.INVALID_DESIGNATION
|
|
29977
29996
|
}),
|
|
29978
29997
|
dob: (e = !0) => ({ validator: (t, n) => {
|
|
29979
29998
|
if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
|
|
29980
|
-
if (!
|
|
29999
|
+
if (!Ew.DOB.test(n)) return Promise.reject(Error(Ow.INVALID_DOB));
|
|
29981
30000
|
let r = qt(n, "MM/DD/YYYY", !0);
|
|
29982
|
-
if (!r.isValid()) return Promise.reject(Error(
|
|
30001
|
+
if (!r.isValid()) return Promise.reject(Error(Ow.INVALID_DOB));
|
|
29983
30002
|
let i = qt().endOf("day");
|
|
29984
30003
|
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();
|
|
29985
30004
|
} }),
|
|
29986
30005
|
linkedin: () => ({
|
|
29987
|
-
pattern:
|
|
29988
|
-
message:
|
|
30006
|
+
pattern: Ew.LINKEDIN,
|
|
30007
|
+
message: Ow.INVALID_LINKEDIN
|
|
29989
30008
|
}),
|
|
29990
30009
|
companyName: () => ({
|
|
29991
|
-
pattern:
|
|
29992
|
-
message:
|
|
30010
|
+
pattern: Ew.COMPANY_NAME,
|
|
30011
|
+
message: Ow.INVALID_COMPANY_NAME
|
|
29993
30012
|
}),
|
|
29994
30013
|
firstName: () => ({
|
|
29995
|
-
pattern:
|
|
29996
|
-
message:
|
|
29997
|
-
FIRST_NAME_MIN: `First Name must be at least ${
|
|
29998
|
-
FIRST_NAME_MAX: `First Name must not exceed ${
|
|
30014
|
+
pattern: Ew.FIRST_NAME,
|
|
30015
|
+
message: Ow.INVALID_FIRST_NAME,
|
|
30016
|
+
FIRST_NAME_MIN: `First Name must be at least ${kw.FIRST_NAME_MIN} characters.`,
|
|
30017
|
+
FIRST_NAME_MAX: `First Name must not exceed ${kw.FIRST_NAME_MAX} characters.`
|
|
29999
30018
|
}),
|
|
30000
30019
|
firstNameMinLength: () => ({
|
|
30001
|
-
min:
|
|
30002
|
-
message:
|
|
30020
|
+
min: kw.FIRST_NAME_MIN,
|
|
30021
|
+
message: Ow.FIRST_NAME_MIN
|
|
30003
30022
|
}),
|
|
30004
30023
|
firstNameMaxLength: () => ({
|
|
30005
|
-
max:
|
|
30006
|
-
message:
|
|
30024
|
+
max: kw.FIRST_NAME_MAX,
|
|
30025
|
+
message: Ow.FIRST_NAME_MAX
|
|
30007
30026
|
}),
|
|
30008
30027
|
remarksMinLength: () => ({
|
|
30009
|
-
min:
|
|
30010
|
-
message:
|
|
30028
|
+
min: Aw.REMARKS_MIN,
|
|
30029
|
+
message: Ow.REMARKS_MIN
|
|
30011
30030
|
}),
|
|
30012
30031
|
remarksMaxLength: () => ({
|
|
30013
|
-
max:
|
|
30014
|
-
message:
|
|
30032
|
+
max: Aw.REMARKS_MAX,
|
|
30033
|
+
message: Ow.REMARKS_MAX
|
|
30015
30034
|
}),
|
|
30016
30035
|
fullName: () => ({
|
|
30017
|
-
pattern:
|
|
30018
|
-
message:
|
|
30036
|
+
pattern: Ew.FULL_NAME,
|
|
30037
|
+
message: Ow.INVALID_FULL_NAME
|
|
30019
30038
|
}),
|
|
30020
30039
|
noSpaces: () => ({
|
|
30021
|
-
pattern:
|
|
30022
|
-
message:
|
|
30040
|
+
pattern: Ew.NO_SPACES,
|
|
30041
|
+
message: Ow.NO_SPACES_ALLOWED
|
|
30023
30042
|
}),
|
|
30024
30043
|
startsWithCapital: () => ({
|
|
30025
|
-
pattern:
|
|
30026
|
-
message:
|
|
30044
|
+
pattern: Ew.STARTS_WITH_CAPITAL,
|
|
30045
|
+
message: Ow.MUST_START_WITH_CAPITAL
|
|
30027
30046
|
}),
|
|
30028
30047
|
fileUpload: () => ({ validator: (e, t) => {
|
|
30029
30048
|
if (!t || t.length === 0) return Promise.resolve();
|
|
30030
30049
|
for (let e of t) {
|
|
30031
30050
|
let t = e.originFileObj || e;
|
|
30032
|
-
if (!(t.size / 1024 / 1024 <=
|
|
30033
|
-
if (!
|
|
30051
|
+
if (!(t.size / 1024 / 1024 <= Dw.MAX_FILE_SIZE)) return q.error(Ow.INVALID_FILE_SIZE), Promise.reject(Error(Ow.INVALID_FILE_SIZE));
|
|
30052
|
+
if (!Dw.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(Ow.INVALID_FILE_TYPE));
|
|
30034
30053
|
}
|
|
30035
30054
|
return Promise.resolve();
|
|
30036
30055
|
} }),
|
|
30037
30056
|
singleFileUpload: () => ({ validator: (e, t) => {
|
|
30038
30057
|
if (!t || t.length === 0) return Promise.resolve();
|
|
30039
|
-
if (t.length >
|
|
30058
|
+
if (t.length > Dw.SINGLE_FILE_COUNT) return Promise.reject(Error(Ow.SINGLE_FILE_ONLY));
|
|
30040
30059
|
let n = t[0];
|
|
30041
|
-
return n.size / 1024 / 1024 <
|
|
30060
|
+
return n.size / 1024 / 1024 < Dw.MAX_FILE_SIZE ? Dw.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(Ow.INVALID_FILE_TYPE)) : Promise.reject(Error(Ow.INVALID_FILE_SIZE));
|
|
30042
30061
|
} }),
|
|
30043
30062
|
multiFileUpload: () => ({ validator: (e, t) => {
|
|
30044
30063
|
if (!t || t.length === 0) return Promise.resolve();
|
|
30045
|
-
if (t.length >
|
|
30064
|
+
if (t.length > Dw.MULTI_FILE_COUNT) return Promise.reject(Error(Ow.INVALID_FILE_COUNT));
|
|
30046
30065
|
for (let e of t) {
|
|
30047
|
-
if (!(e.size / 1024 / 1024 <
|
|
30048
|
-
if (!
|
|
30066
|
+
if (!(e.size / 1024 / 1024 < Dw.MAX_FILE_SIZE)) return Promise.reject(Error(Ow.INVALID_FILE_SIZE));
|
|
30067
|
+
if (!Dw.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(Ow.INVALID_FILE_TYPE));
|
|
30049
30068
|
}
|
|
30050
30069
|
return Promise.resolve();
|
|
30051
30070
|
} })
|
|
30052
|
-
},
|
|
30071
|
+
}, Nw = { beforeUpload: (e) => [
|
|
30053
30072
|
"image/jpeg",
|
|
30054
30073
|
"image/png",
|
|
30055
30074
|
"application/pdf"
|
|
30056
|
-
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), ie.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), ie.LIST_IGNORE) },
|
|
30075
|
+
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), ie.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), ie.LIST_IGNORE) }, Pw = () => {
|
|
30057
30076
|
let [e] = C.useForm();
|
|
30058
30077
|
return /* @__PURE__ */ Y("div", {
|
|
30059
30078
|
style: { padding: 24 },
|
|
@@ -30073,7 +30092,7 @@ var ww = {
|
|
|
30073
30092
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30074
30093
|
label: "Email",
|
|
30075
30094
|
name: "email",
|
|
30076
|
-
rules: [
|
|
30095
|
+
rules: [Mw.required("Email"), Mw.email()],
|
|
30077
30096
|
children: /* @__PURE__ */ Y(w, {})
|
|
30078
30097
|
})
|
|
30079
30098
|
}),
|
|
@@ -30082,12 +30101,12 @@ var ww = {
|
|
|
30082
30101
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30083
30102
|
label: "Phone Number",
|
|
30084
30103
|
name: "phone",
|
|
30085
|
-
rules: [
|
|
30104
|
+
rules: [Mw.required("Phone Number"), Mw.phone()],
|
|
30086
30105
|
validateTrigger: ["onBlur", "onChange"],
|
|
30087
30106
|
children: /* @__PURE__ */ Y(w, {
|
|
30088
30107
|
maxLength: 10,
|
|
30089
30108
|
onChange: (t) => {
|
|
30090
|
-
e.setFieldsValue({ phone:
|
|
30109
|
+
e.setFieldsValue({ phone: jw.phoneFormatter(t.target.value) });
|
|
30091
30110
|
}
|
|
30092
30111
|
})
|
|
30093
30112
|
})
|
|
@@ -30097,7 +30116,7 @@ var ww = {
|
|
|
30097
30116
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30098
30117
|
label: "Password",
|
|
30099
30118
|
name: "password",
|
|
30100
|
-
rules: [
|
|
30119
|
+
rules: [Mw.required("Password"), Mw.password()],
|
|
30101
30120
|
children: /* @__PURE__ */ Y(w.Password, {})
|
|
30102
30121
|
})
|
|
30103
30122
|
}),
|
|
@@ -30107,13 +30126,13 @@ var ww = {
|
|
|
30107
30126
|
label: "Full Name",
|
|
30108
30127
|
name: "fullName",
|
|
30109
30128
|
rules: [
|
|
30110
|
-
|
|
30111
|
-
|
|
30112
|
-
|
|
30113
|
-
|
|
30129
|
+
Mw.required("Full Name"),
|
|
30130
|
+
Mw.alphabets(),
|
|
30131
|
+
Mw.firstNameMinLength(),
|
|
30132
|
+
Mw.firstNameMaxLength()
|
|
30114
30133
|
],
|
|
30115
30134
|
children: /* @__PURE__ */ Y(w, { onChange: (t) => {
|
|
30116
|
-
e.setFieldsValue({ fullName:
|
|
30135
|
+
e.setFieldsValue({ fullName: jw.firstNameFormatter(t.target.value) });
|
|
30117
30136
|
} })
|
|
30118
30137
|
})
|
|
30119
30138
|
}),
|
|
@@ -30122,9 +30141,9 @@ var ww = {
|
|
|
30122
30141
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30123
30142
|
label: "Username",
|
|
30124
30143
|
name: "username",
|
|
30125
|
-
rules: [
|
|
30144
|
+
rules: [Mw.required("Username"), Mw.alphanumeric()],
|
|
30126
30145
|
children: /* @__PURE__ */ Y(w, { onChange: (t) => {
|
|
30127
|
-
e.setFieldsValue({ username:
|
|
30146
|
+
e.setFieldsValue({ username: jw.removeExtraSpaces(t.target.value) });
|
|
30128
30147
|
} })
|
|
30129
30148
|
})
|
|
30130
30149
|
}),
|
|
@@ -30133,9 +30152,9 @@ var ww = {
|
|
|
30133
30152
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30134
30153
|
label: "Website URL",
|
|
30135
30154
|
name: "website",
|
|
30136
|
-
rules: [
|
|
30155
|
+
rules: [Mw.required("Website URL"), Mw.url()],
|
|
30137
30156
|
children: /* @__PURE__ */ Y(w, { onChange: (t) => {
|
|
30138
|
-
e.setFieldsValue({ website:
|
|
30157
|
+
e.setFieldsValue({ website: jw.removeExtraSpaces(t.target.value) });
|
|
30139
30158
|
} })
|
|
30140
30159
|
})
|
|
30141
30160
|
}),
|
|
@@ -30144,9 +30163,9 @@ var ww = {
|
|
|
30144
30163
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30145
30164
|
label: "MSP Req ID",
|
|
30146
30165
|
name: "mspreqID",
|
|
30147
|
-
rules: [
|
|
30166
|
+
rules: [Mw.required("MSP Req ID"), Mw.candidateId("MSP Req ID")],
|
|
30148
30167
|
children: /* @__PURE__ */ Y(w, { onChange: (t) => {
|
|
30149
|
-
e.setFieldsValue({ mspreqID:
|
|
30168
|
+
e.setFieldsValue({ mspreqID: jw.removeExtraSpaces(t.target.value) });
|
|
30150
30169
|
} })
|
|
30151
30170
|
})
|
|
30152
30171
|
}),
|
|
@@ -30155,9 +30174,9 @@ var ww = {
|
|
|
30155
30174
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30156
30175
|
label: "Candidate ID",
|
|
30157
30176
|
name: "candidateId",
|
|
30158
|
-
rules: [
|
|
30177
|
+
rules: [Mw.required("Candidate ID"), Mw.candidateId("Candidate ID")],
|
|
30159
30178
|
children: /* @__PURE__ */ Y(w, { onChange: (t) => {
|
|
30160
|
-
e.setFieldsValue({ candidateId:
|
|
30179
|
+
e.setFieldsValue({ candidateId: jw.removeExtraSpaces(t.target.value) });
|
|
30161
30180
|
} })
|
|
30162
30181
|
})
|
|
30163
30182
|
}),
|
|
@@ -30167,10 +30186,10 @@ var ww = {
|
|
|
30167
30186
|
label: "Remarks",
|
|
30168
30187
|
name: "remarks",
|
|
30169
30188
|
rules: [
|
|
30170
|
-
|
|
30171
|
-
|
|
30172
|
-
|
|
30173
|
-
|
|
30189
|
+
Mw.required("Remarks"),
|
|
30190
|
+
Mw.remarks(),
|
|
30191
|
+
Mw.remarksMinLength(),
|
|
30192
|
+
Mw.remarksMaxLength()
|
|
30174
30193
|
],
|
|
30175
30194
|
children: /* @__PURE__ */ Y(w.TextArea, { rows: 4 })
|
|
30176
30195
|
})
|
|
@@ -30180,7 +30199,7 @@ var ww = {
|
|
|
30180
30199
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30181
30200
|
label: "Designation",
|
|
30182
30201
|
name: "designation",
|
|
30183
|
-
rules: [
|
|
30202
|
+
rules: [Mw.required("Designation"), Mw.designation()],
|
|
30184
30203
|
children: /* @__PURE__ */ Y(w, {})
|
|
30185
30204
|
})
|
|
30186
30205
|
}),
|
|
@@ -30189,12 +30208,12 @@ var ww = {
|
|
|
30189
30208
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30190
30209
|
label: "Date of Birth",
|
|
30191
30210
|
name: "dob",
|
|
30192
|
-
rules: [
|
|
30211
|
+
rules: [Mw.dob()],
|
|
30193
30212
|
children: /* @__PURE__ */ Y(w, {
|
|
30194
30213
|
placeholder: "MM/DD/YYYY",
|
|
30195
30214
|
maxLength: 10,
|
|
30196
30215
|
onChange: (t) => {
|
|
30197
|
-
e.setFieldsValue({ dob:
|
|
30216
|
+
e.setFieldsValue({ dob: jw.dobFormatter(t.target.value) });
|
|
30198
30217
|
}
|
|
30199
30218
|
})
|
|
30200
30219
|
})
|
|
@@ -30204,7 +30223,7 @@ var ww = {
|
|
|
30204
30223
|
children: /* @__PURE__ */ Y(C.Item, {
|
|
30205
30224
|
label: "Company Name",
|
|
30206
30225
|
name: "companyName",
|
|
30207
|
-
rules: [
|
|
30226
|
+
rules: [Mw.required("Company Name"), Mw.companyName()],
|
|
30208
30227
|
children: /* @__PURE__ */ Y(w, {})
|
|
30209
30228
|
})
|
|
30210
30229
|
}),
|
|
@@ -30293,7 +30312,7 @@ var ww = {
|
|
|
30293
30312
|
label: "Resume new",
|
|
30294
30313
|
name: "resume",
|
|
30295
30314
|
children: /* @__PURE__ */ Y(ie, {
|
|
30296
|
-
beforeUpload:
|
|
30315
|
+
beforeUpload: Nw.beforeUpload,
|
|
30297
30316
|
maxCount: 1,
|
|
30298
30317
|
children: /* @__PURE__ */ Y(f, { children: "Upload Resume" })
|
|
30299
30318
|
})
|
|
@@ -30306,10 +30325,10 @@ var ww = {
|
|
|
30306
30325
|
name: "documents",
|
|
30307
30326
|
valuePropName: "fileList",
|
|
30308
30327
|
getValueFromEvent: (e) => e?.fileList,
|
|
30309
|
-
rules: [
|
|
30328
|
+
rules: [Mw.multiFileUpload()],
|
|
30310
30329
|
children: /* @__PURE__ */ Y(ie, {
|
|
30311
30330
|
multiple: !0,
|
|
30312
|
-
beforeUpload:
|
|
30331
|
+
beforeUpload: Nw.beforeUpload,
|
|
30313
30332
|
children: /* @__PURE__ */ Y(f, { children: "Upload Documents" })
|
|
30314
30333
|
})
|
|
30315
30334
|
})
|
|
@@ -30321,9 +30340,9 @@ var ww = {
|
|
|
30321
30340
|
name: "file",
|
|
30322
30341
|
valuePropName: "fileList",
|
|
30323
30342
|
getValueFromEvent: (e) => e?.fileList,
|
|
30324
|
-
rules: [
|
|
30343
|
+
rules: [Mw.fileUpload()],
|
|
30325
30344
|
children: /* @__PURE__ */ Y(ie, {
|
|
30326
|
-
beforeUpload:
|
|
30345
|
+
beforeUpload: Nw.beforeUpload,
|
|
30327
30346
|
maxCount: 1,
|
|
30328
30347
|
children: /* @__PURE__ */ Y(f, { children: "Upload" })
|
|
30329
30348
|
})
|
|
@@ -30380,7 +30399,7 @@ var ww = {
|
|
|
30380
30399
|
]
|
|
30381
30400
|
})
|
|
30382
30401
|
});
|
|
30383
|
-
}, { Text:
|
|
30402
|
+
}, { Text: Fw } = K, Iw = [
|
|
30384
30403
|
{
|
|
30385
30404
|
label: "Total Jobs",
|
|
30386
30405
|
value: 1697,
|
|
@@ -30396,13 +30415,13 @@ var ww = {
|
|
|
30396
30415
|
value: 600,
|
|
30397
30416
|
icon: "user"
|
|
30398
30417
|
}
|
|
30399
|
-
],
|
|
30418
|
+
], Lw = {
|
|
30400
30419
|
fileText: /* @__PURE__ */ Y(ze, {}),
|
|
30401
30420
|
checkCircle: /* @__PURE__ */ Y(ge, {}),
|
|
30402
30421
|
user: /* @__PURE__ */ Y(Nt, {}),
|
|
30403
30422
|
filter: /* @__PURE__ */ Y(He, {})
|
|
30404
30423
|
};
|
|
30405
|
-
function
|
|
30424
|
+
function Rw({ stats: e = Iw }) {
|
|
30406
30425
|
return /* @__PURE__ */ Y(p, { children: /* @__PURE__ */ Y(I, {
|
|
30407
30426
|
gutter: [12, 12],
|
|
30408
30427
|
children: e.map((e) => /* @__PURE__ */ Y(h, {
|
|
@@ -30415,7 +30434,7 @@ function Iw({ stats: e = Pw }) {
|
|
|
30415
30434
|
className: "stats-inner-card",
|
|
30416
30435
|
children: [/* @__PURE__ */ X(z, {
|
|
30417
30436
|
align: "center",
|
|
30418
|
-
children: [
|
|
30437
|
+
children: [Lw[e.icon] ?? Lw.fileText, /* @__PURE__ */ Y(Fw, { children: e.label })]
|
|
30419
30438
|
}), /* @__PURE__ */ Y(te, { value: e.value })]
|
|
30420
30439
|
})
|
|
30421
30440
|
}, e.label))
|
|
@@ -30423,7 +30442,7 @@ function Iw({ stats: e = Pw }) {
|
|
|
30423
30442
|
}
|
|
30424
30443
|
//#endregion
|
|
30425
30444
|
//#region src/pages/Modules/Admin/TeamsSection.jsx
|
|
30426
|
-
var { Text:
|
|
30445
|
+
var { Text: zw } = K, Bw = [
|
|
30427
30446
|
{
|
|
30428
30447
|
key: "job",
|
|
30429
30448
|
label: "Jobs"
|
|
@@ -30436,7 +30455,7 @@ var { Text: Lw } = K, Rw = [
|
|
|
30436
30455
|
key: "submissions",
|
|
30437
30456
|
label: "Submissions"
|
|
30438
30457
|
}
|
|
30439
|
-
],
|
|
30458
|
+
], Vw = [
|
|
30440
30459
|
{
|
|
30441
30460
|
key: "listView",
|
|
30442
30461
|
label: "List View"
|
|
@@ -30450,7 +30469,7 @@ var { Text: Lw } = K, Rw = [
|
|
|
30450
30469
|
label: "Form"
|
|
30451
30470
|
}
|
|
30452
30471
|
];
|
|
30453
|
-
function
|
|
30472
|
+
function Hw({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
30454
30473
|
let i = a(null), [s, c] = o(!1), [l, u] = o(!1);
|
|
30455
30474
|
function d(e) {
|
|
30456
30475
|
i.current = t, e.dataTransfer.effectAllowed = "move", u(!0);
|
|
@@ -30514,7 +30533,7 @@ function Bw({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
|
30514
30533
|
]
|
|
30515
30534
|
});
|
|
30516
30535
|
}
|
|
30517
|
-
function
|
|
30536
|
+
function Uw({ team: e, configType: t }) {
|
|
30518
30537
|
let [n, i] = o({}), [a, s] = o(!1), [c, l] = o({}), [u, d] = o("job");
|
|
30519
30538
|
r(() => {
|
|
30520
30539
|
e && (s(!0), Ia(e, t).then(i).catch(() => q.error("Failed to load field config")).finally(() => s(!1)));
|
|
@@ -30565,7 +30584,7 @@ function Vw({ team: e, configType: t }) {
|
|
|
30565
30584
|
size: "small",
|
|
30566
30585
|
activeKey: u,
|
|
30567
30586
|
onChange: d,
|
|
30568
|
-
items:
|
|
30587
|
+
items: Bw.map((e) => ({
|
|
30569
30588
|
key: e.key,
|
|
30570
30589
|
label: e.label
|
|
30571
30590
|
}))
|
|
@@ -30594,7 +30613,7 @@ function Vw({ team: e, configType: t }) {
|
|
|
30594
30613
|
children: [p.length === 0 && !a && /* @__PURE__ */ Y("div", {
|
|
30595
30614
|
className: "uss-empty",
|
|
30596
30615
|
children: "No fields found."
|
|
30597
|
-
}), p.map((e, t) => /* @__PURE__ */ Y(
|
|
30616
|
+
}), p.map((e, t) => /* @__PURE__ */ Y(Hw, {
|
|
30598
30617
|
field: e,
|
|
30599
30618
|
index: t,
|
|
30600
30619
|
onToggle: h,
|
|
@@ -30608,13 +30627,13 @@ function Vw({ team: e, configType: t }) {
|
|
|
30608
30627
|
size: "small",
|
|
30609
30628
|
loading: c[u],
|
|
30610
30629
|
onClick: _,
|
|
30611
|
-
children: ["Save ",
|
|
30630
|
+
children: ["Save ", Bw.find((e) => e.key === u)?.label]
|
|
30612
30631
|
})
|
|
30613
30632
|
})
|
|
30614
30633
|
]
|
|
30615
30634
|
});
|
|
30616
30635
|
}
|
|
30617
|
-
function
|
|
30636
|
+
function Ww() {
|
|
30618
30637
|
let [e, t] = o(null), [i, a] = o(!1), [s, c] = o(!1), [l, u] = o("listView"), [d, p] = o([]), [m, h] = o(0), [g, _] = o(!1), [v, y] = o(""), [b, x] = o(!1), S = n(async () => {
|
|
30619
30638
|
_(!0);
|
|
30620
30639
|
try {
|
|
@@ -30761,13 +30780,13 @@ function Hw() {
|
|
|
30761
30780
|
style: { marginBottom: 12 },
|
|
30762
30781
|
children: /* @__PURE__ */ Y("div", {
|
|
30763
30782
|
className: "uss-config-toggle",
|
|
30764
|
-
children:
|
|
30783
|
+
children: Vw.map((e) => /* @__PURE__ */ Y("button", {
|
|
30765
30784
|
className: `uss-config-btn${l === e.key ? " active" : ""}`,
|
|
30766
30785
|
onClick: () => u(e.key),
|
|
30767
30786
|
children: e.label
|
|
30768
30787
|
}, e.key))
|
|
30769
30788
|
})
|
|
30770
|
-
}), e && /* @__PURE__ */ Y(
|
|
30789
|
+
}), e && /* @__PURE__ */ Y(Uw, {
|
|
30771
30790
|
team: e,
|
|
30772
30791
|
configType: l
|
|
30773
30792
|
}, `${e?.teamId}-${l}`)]
|
|
@@ -30776,12 +30795,12 @@ function Hw() {
|
|
|
30776
30795
|
}
|
|
30777
30796
|
//#endregion
|
|
30778
30797
|
//#region src/pages/Modules/Admin/PermissionsPage.jsx
|
|
30779
|
-
var
|
|
30798
|
+
var Gw = [
|
|
30780
30799
|
"view",
|
|
30781
30800
|
"add",
|
|
30782
30801
|
"edit",
|
|
30783
30802
|
"delete"
|
|
30784
|
-
],
|
|
30803
|
+
], Kw = {
|
|
30785
30804
|
view: "View",
|
|
30786
30805
|
add: "Add",
|
|
30787
30806
|
edit: "Edit",
|
|
@@ -30793,18 +30812,18 @@ var Uw = [
|
|
|
30793
30812
|
my_jobs: "My Jobs",
|
|
30794
30813
|
all_jobs: "All Jobs"
|
|
30795
30814
|
};
|
|
30796
|
-
function
|
|
30797
|
-
return
|
|
30815
|
+
function qw(e) {
|
|
30816
|
+
return Kw[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
30798
30817
|
}
|
|
30799
|
-
function
|
|
30800
|
-
let t =
|
|
30818
|
+
function Jw(e) {
|
|
30819
|
+
let t = Gw.filter((t) => e.includes(t)), n = e.filter((e) => !Gw.includes(e)).sort();
|
|
30801
30820
|
return [...t, ...n];
|
|
30802
30821
|
}
|
|
30803
|
-
function
|
|
30822
|
+
function Yw(e) {
|
|
30804
30823
|
let t = /* @__PURE__ */ new Set();
|
|
30805
|
-
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))),
|
|
30824
|
+
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), Jw([...t]);
|
|
30806
30825
|
}
|
|
30807
|
-
function
|
|
30826
|
+
function Xw(e) {
|
|
30808
30827
|
let t = 0, n = 0;
|
|
30809
30828
|
return Object.values(e).forEach(({ permissions: e }) => {
|
|
30810
30829
|
Object.values(e ?? {}).forEach(({ value: e }) => {
|
|
@@ -30815,20 +30834,20 @@ function Jw(e) {
|
|
|
30815
30834
|
total: n
|
|
30816
30835
|
};
|
|
30817
30836
|
}
|
|
30818
|
-
var
|
|
30819
|
-
function
|
|
30837
|
+
var Zw = "perm-module-labels", Qw = "perm-action-labels";
|
|
30838
|
+
function $w(e) {
|
|
30820
30839
|
try {
|
|
30821
30840
|
return JSON.parse(localStorage.getItem(e) ?? "{}");
|
|
30822
30841
|
} catch {
|
|
30823
30842
|
return {};
|
|
30824
30843
|
}
|
|
30825
30844
|
}
|
|
30826
|
-
function
|
|
30845
|
+
function eT(e, t) {
|
|
30827
30846
|
try {
|
|
30828
30847
|
localStorage.setItem(e, JSON.stringify(t));
|
|
30829
30848
|
} catch {}
|
|
30830
30849
|
}
|
|
30831
|
-
function
|
|
30850
|
+
function tT({ value: e, onSave: t, className: n }) {
|
|
30832
30851
|
let [i, a] = o(!1), [s, c] = o(e);
|
|
30833
30852
|
r(() => {
|
|
30834
30853
|
c(e);
|
|
@@ -30857,7 +30876,7 @@ function $w({ value: e, onSave: t, className: n }) {
|
|
|
30857
30876
|
children: [e, /* @__PURE__ */ Y(Ae, { className: "perm-name-edit-icon" })]
|
|
30858
30877
|
});
|
|
30859
30878
|
}
|
|
30860
|
-
function
|
|
30879
|
+
function nT({ permKey: e, entry: t, label: n, onToggle: i, onLabelSave: a }) {
|
|
30861
30880
|
let [s, c] = o(!1), [l, u] = o(n), d = t?.value === "1", f = !!t;
|
|
30862
30881
|
r(() => {
|
|
30863
30882
|
u(n);
|
|
@@ -30899,13 +30918,13 @@ function eT({ permKey: e, entry: t, label: n, onToggle: i, onLabelSave: a }) {
|
|
|
30899
30918
|
})
|
|
30900
30919
|
});
|
|
30901
30920
|
}
|
|
30902
|
-
function
|
|
30921
|
+
function rT({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
|
|
30903
30922
|
let c = t?.permissions ?? {}, l = Object.values(c).filter((e) => e?.value === "1").length, u = Object.keys(c).length, d = u > 0 && l === u;
|
|
30904
30923
|
return /* @__PURE__ */ X("div", {
|
|
30905
30924
|
className: `perm-module-card${d ? " all-on" : l > 0 && !d ? " some-on" : ""}`,
|
|
30906
30925
|
children: [/* @__PURE__ */ X("div", {
|
|
30907
30926
|
className: "perm-module-card-header",
|
|
30908
|
-
children: [/* @__PURE__ */ Y(
|
|
30927
|
+
children: [/* @__PURE__ */ Y(tT, {
|
|
30909
30928
|
value: i,
|
|
30910
30929
|
onSave: (t) => o(e, t),
|
|
30911
30930
|
className: "perm-module-card-name"
|
|
@@ -30919,17 +30938,17 @@ function tT({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
|
|
|
30919
30938
|
})]
|
|
30920
30939
|
}), /* @__PURE__ */ Y("div", {
|
|
30921
30940
|
className: "perm-module-card-body",
|
|
30922
|
-
children: n.map((t) => /* @__PURE__ */ Y(
|
|
30941
|
+
children: n.map((t) => /* @__PURE__ */ Y(nT, {
|
|
30923
30942
|
permKey: t,
|
|
30924
30943
|
entry: c[t],
|
|
30925
|
-
label: a[t] ??
|
|
30944
|
+
label: a[t] ?? qw(t),
|
|
30926
30945
|
onToggle: () => r(e, t),
|
|
30927
30946
|
onLabelSave: (e) => s(t, e)
|
|
30928
30947
|
}, t))
|
|
30929
30948
|
})]
|
|
30930
30949
|
});
|
|
30931
30950
|
}
|
|
30932
|
-
function
|
|
30951
|
+
function iT({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
30933
30952
|
let [i, a] = o(!1), [s, c] = o(e);
|
|
30934
30953
|
function l() {
|
|
30935
30954
|
a(!1);
|
|
@@ -30980,7 +30999,7 @@ function nT({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
|
30980
30999
|
})]
|
|
30981
31000
|
});
|
|
30982
31001
|
}
|
|
30983
|
-
function
|
|
31002
|
+
function aT({ open: e, onClose: t }) {
|
|
30984
31003
|
let [n, i] = o("modules"), [a, s] = o([]), [c, l] = o(!1), [u, d] = o(""), [p, m] = o(!1), [h, g] = o([]), [_, v] = o(!1), [y, b] = o(""), [x, S] = o(""), [C, T] = o(!1);
|
|
30985
31004
|
r(() => {
|
|
30986
31005
|
e && (E(), D());
|
|
@@ -31102,7 +31121,7 @@ function rT({ open: e, onClose: t }) {
|
|
|
31102
31121
|
className: "perm-empty",
|
|
31103
31122
|
style: { paddingTop: 24 },
|
|
31104
31123
|
children: "No modules found"
|
|
31105
|
-
}), a.map((e) => /* @__PURE__ */ Y(
|
|
31124
|
+
}), a.map((e) => /* @__PURE__ */ Y(iT, {
|
|
31106
31125
|
label: e.MENUNAME,
|
|
31107
31126
|
onSave: (t) => A(e.MENUID, t),
|
|
31108
31127
|
onDelete: () => j(e.MENUID)
|
|
@@ -31147,7 +31166,7 @@ function rT({ open: e, onClose: t }) {
|
|
|
31147
31166
|
className: "perm-empty",
|
|
31148
31167
|
style: { paddingTop: 24 },
|
|
31149
31168
|
children: "No actions found"
|
|
31150
|
-
}), h.map((e) => /* @__PURE__ */ Y(
|
|
31169
|
+
}), h.map((e) => /* @__PURE__ */ Y(iT, {
|
|
31151
31170
|
label: `${e.permissionName} (${e.permissionKey})`,
|
|
31152
31171
|
onSave: (t) => N(e.permissionId, t),
|
|
31153
31172
|
onDelete: () => P(e.permissionId)
|
|
@@ -31177,7 +31196,7 @@ function rT({ open: e, onClose: t }) {
|
|
|
31177
31196
|
})
|
|
31178
31197
|
});
|
|
31179
31198
|
}
|
|
31180
|
-
function
|
|
31199
|
+
function oT({ role: e, moduleLabels: t, actionLabels: n, onModuleLabelSave: a, onActionLabelSave: s }) {
|
|
31181
31200
|
let [c, l] = o({}), [u, d] = o({}), [p, m] = o(!1), [h, g] = o(!1), [_, v] = o(!1), y = Oa(e);
|
|
31182
31201
|
r(() => {
|
|
31183
31202
|
y && (m(!0), v(!1), ao(y).then((e) => {
|
|
@@ -31218,7 +31237,7 @@ function iT({ role: e, moduleLabels: t, actionLabels: n, onModuleLabelSave: a, o
|
|
|
31218
31237
|
g(!1);
|
|
31219
31238
|
}
|
|
31220
31239
|
}
|
|
31221
|
-
let S = i(() => Object.keys(u).sort(), [u]), C = i(() =>
|
|
31240
|
+
let S = i(() => Object.keys(u).sort(), [u]), C = i(() => Yw(u), [u]), { enabled: w, total: T } = i(() => Xw(u), [u]);
|
|
31222
31241
|
return /* @__PURE__ */ X(B, {
|
|
31223
31242
|
spinning: p,
|
|
31224
31243
|
children: [
|
|
@@ -31269,7 +31288,7 @@ function iT({ role: e, moduleLabels: t, actionLabels: n, onModuleLabelSave: a, o
|
|
|
31269
31288
|
children: "No permission entries found for this role."
|
|
31270
31289
|
}) : /* @__PURE__ */ Y("div", {
|
|
31271
31290
|
className: "perm-cards-grid",
|
|
31272
|
-
children: S.map((e) => /* @__PURE__ */ Y(
|
|
31291
|
+
children: S.map((e) => /* @__PURE__ */ Y(rT, {
|
|
31273
31292
|
menuName: e,
|
|
31274
31293
|
menuData: u[e],
|
|
31275
31294
|
permKeys: C,
|
|
@@ -31283,14 +31302,14 @@ function iT({ role: e, moduleLabels: t, actionLabels: n, onModuleLabelSave: a, o
|
|
|
31283
31302
|
]
|
|
31284
31303
|
});
|
|
31285
31304
|
}
|
|
31286
|
-
function
|
|
31287
|
-
let [e, t] = o([]), [a, s] = o(!1), [c, l] = o(null), [u, d] = o(""), [p, m] = o(!1), [h, g] = o(() => Zw
|
|
31305
|
+
function sT() {
|
|
31306
|
+
let [e, t] = o([]), [a, s] = o(!1), [c, l] = o(null), [u, d] = o(""), [p, m] = o(!1), [h, g] = o(() => $w(Zw)), [_, v] = o(() => $w(Qw)), y = n((e, t) => {
|
|
31288
31307
|
g((n) => {
|
|
31289
31308
|
let r = {
|
|
31290
31309
|
...n,
|
|
31291
31310
|
[e]: t
|
|
31292
31311
|
};
|
|
31293
|
-
return
|
|
31312
|
+
return eT(Zw, r), r;
|
|
31294
31313
|
});
|
|
31295
31314
|
}, []), b = n((e, t) => {
|
|
31296
31315
|
v((n) => {
|
|
@@ -31298,11 +31317,11 @@ function aT() {
|
|
|
31298
31317
|
...n,
|
|
31299
31318
|
[e]: t
|
|
31300
31319
|
};
|
|
31301
|
-
return Qw
|
|
31320
|
+
return eT(Qw, r), r;
|
|
31302
31321
|
});
|
|
31303
31322
|
}, []);
|
|
31304
31323
|
function x() {
|
|
31305
|
-
g({}), v({}),
|
|
31324
|
+
g({}), v({}), eT(Zw, {}), eT(Qw, {}), q.success("Labels reset to defaults");
|
|
31306
31325
|
}
|
|
31307
31326
|
let S = n(async () => {
|
|
31308
31327
|
s(!0);
|
|
@@ -31386,7 +31405,7 @@ function aT() {
|
|
|
31386
31405
|
})]
|
|
31387
31406
|
}),
|
|
31388
31407
|
bodyStyle: { padding: "12px 16px" },
|
|
31389
|
-
children: c ? /* @__PURE__ */ Y(
|
|
31408
|
+
children: c ? /* @__PURE__ */ Y(oT, {
|
|
31390
31409
|
role: c,
|
|
31391
31410
|
moduleLabels: h,
|
|
31392
31411
|
actionLabels: _,
|
|
@@ -31397,7 +31416,7 @@ function aT() {
|
|
|
31397
31416
|
children: "Select a role from the left to manage its permissions."
|
|
31398
31417
|
})
|
|
31399
31418
|
}),
|
|
31400
|
-
/* @__PURE__ */ Y(
|
|
31419
|
+
/* @__PURE__ */ Y(aT, {
|
|
31401
31420
|
open: p,
|
|
31402
31421
|
onClose: () => m(!1)
|
|
31403
31422
|
})
|
|
@@ -31406,7 +31425,7 @@ function aT() {
|
|
|
31406
31425
|
}
|
|
31407
31426
|
//#endregion
|
|
31408
31427
|
//#region src/components/cards/OnboardingCard.jsx
|
|
31409
|
-
var { Title:
|
|
31428
|
+
var { Title: cT, Text: lT } = K, uT = [
|
|
31410
31429
|
{
|
|
31411
31430
|
label: "In Progress",
|
|
31412
31431
|
value: 107,
|
|
@@ -31432,10 +31451,10 @@ var { Title: oT, Text: sT } = K, cT = [
|
|
|
31432
31451
|
color: "peach"
|
|
31433
31452
|
}
|
|
31434
31453
|
];
|
|
31435
|
-
function
|
|
31454
|
+
function dT({ items: e = uT }) {
|
|
31436
31455
|
return /* @__PURE__ */ Y(p, {
|
|
31437
31456
|
className: "onboarding-card",
|
|
31438
|
-
title: /* @__PURE__ */ Y(
|
|
31457
|
+
title: /* @__PURE__ */ Y(cT, {
|
|
31439
31458
|
level: 5,
|
|
31440
31459
|
children: "Onboarding"
|
|
31441
31460
|
}),
|
|
@@ -31454,7 +31473,7 @@ function lT({ items: e = cT }) {
|
|
|
31454
31473
|
children: /* @__PURE__ */ X("div", {
|
|
31455
31474
|
className: `onboarding-item ${e.color}`,
|
|
31456
31475
|
children: [
|
|
31457
|
-
/* @__PURE__ */ Y(
|
|
31476
|
+
/* @__PURE__ */ Y(lT, {
|
|
31458
31477
|
className: "onboarding-item-label",
|
|
31459
31478
|
children: e.label
|
|
31460
31479
|
}),
|
|
@@ -31464,7 +31483,7 @@ function lT({ items: e = cT }) {
|
|
|
31464
31483
|
}),
|
|
31465
31484
|
/* @__PURE__ */ Y("div", {
|
|
31466
31485
|
className: "onboarding-item-footer",
|
|
31467
|
-
children: /* @__PURE__ */ Y(
|
|
31486
|
+
children: /* @__PURE__ */ Y(lT, {
|
|
31468
31487
|
className: "onboarding-item-sub",
|
|
31469
31488
|
children: e.sub
|
|
31470
31489
|
})
|
|
@@ -31477,7 +31496,7 @@ function lT({ items: e = cT }) {
|
|
|
31477
31496
|
}
|
|
31478
31497
|
//#endregion
|
|
31479
31498
|
//#region src/pages/Modules/LegacyAdminPage.jsx
|
|
31480
|
-
var { Text:
|
|
31499
|
+
var { Text: fT, Title: pT } = K, mT = [
|
|
31481
31500
|
{
|
|
31482
31501
|
group: "Dashboard",
|
|
31483
31502
|
items: [{
|
|
@@ -31684,7 +31703,7 @@ var { Text: uT, Title: dT } = K, fT = [
|
|
|
31684
31703
|
}
|
|
31685
31704
|
]
|
|
31686
31705
|
}
|
|
31687
|
-
],
|
|
31706
|
+
], hT = [
|
|
31688
31707
|
{
|
|
31689
31708
|
label: "Sourced",
|
|
31690
31709
|
count: 312,
|
|
@@ -31715,7 +31734,7 @@ var { Text: uT, Title: dT } = K, fT = [
|
|
|
31715
31734
|
color: "#E24B4A",
|
|
31716
31735
|
pct: 10
|
|
31717
31736
|
}
|
|
31718
|
-
],
|
|
31737
|
+
], gT = [
|
|
31719
31738
|
{
|
|
31720
31739
|
name: "Tcs",
|
|
31721
31740
|
jobs: 14,
|
|
@@ -31736,7 +31755,7 @@ var { Text: uT, Title: dT } = K, fT = [
|
|
|
31736
31755
|
jobs: 5,
|
|
31737
31756
|
candidates: 38
|
|
31738
31757
|
}
|
|
31739
|
-
],
|
|
31758
|
+
], _T = [
|
|
31740
31759
|
{
|
|
31741
31760
|
text: "New candidate Ravi Kumar added to Java Developer role",
|
|
31742
31761
|
time: "2 min ago",
|
|
@@ -31763,7 +31782,7 @@ var { Text: uT, Title: dT } = K, fT = [
|
|
|
31763
31782
|
color: "#E24B4A"
|
|
31764
31783
|
}
|
|
31765
31784
|
];
|
|
31766
|
-
function
|
|
31785
|
+
function vT() {
|
|
31767
31786
|
return /* @__PURE__ */ X("div", {
|
|
31768
31787
|
style: {
|
|
31769
31788
|
display: "flex",
|
|
@@ -31776,11 +31795,11 @@ function gT() {
|
|
|
31776
31795
|
title: "Admin Dashboard",
|
|
31777
31796
|
children: [
|
|
31778
31797
|
/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
|
|
31779
|
-
/* @__PURE__ */ Y(
|
|
31798
|
+
/* @__PURE__ */ Y(pT, {
|
|
31780
31799
|
level: 5,
|
|
31781
31800
|
children: "Admin Dashboard"
|
|
31782
31801
|
}),
|
|
31783
|
-
/* @__PURE__ */ Y(
|
|
31802
|
+
/* @__PURE__ */ Y(fT, {
|
|
31784
31803
|
type: "secondary",
|
|
31785
31804
|
children: "Overview of jobs, candidates, onboarding and recent activity"
|
|
31786
31805
|
})
|
|
@@ -31788,7 +31807,7 @@ function gT() {
|
|
|
31788
31807
|
}),
|
|
31789
31808
|
/* @__PURE__ */ Y("div", {
|
|
31790
31809
|
className: "admin-dashboard-stats",
|
|
31791
|
-
children: /* @__PURE__ */ Y(
|
|
31810
|
+
children: /* @__PURE__ */ Y(Rw, { stats: [
|
|
31792
31811
|
{
|
|
31793
31812
|
label: "Total Jobs",
|
|
31794
31813
|
value: 1697,
|
|
@@ -31818,18 +31837,18 @@ function gT() {
|
|
|
31818
31837
|
}),
|
|
31819
31838
|
/* @__PURE__ */ X("div", {
|
|
31820
31839
|
className: "admin-dashboard-mid-row",
|
|
31821
|
-
children: [/* @__PURE__ */ Y(
|
|
31840
|
+
children: [/* @__PURE__ */ Y(dT, {}), /* @__PURE__ */ X(ym, {
|
|
31822
31841
|
icon: /* @__PURE__ */ Y(ce, {}),
|
|
31823
31842
|
title: "Candidate Pipeline",
|
|
31824
31843
|
children: [
|
|
31825
|
-
/* @__PURE__ */ Y(
|
|
31844
|
+
/* @__PURE__ */ Y(fT, {
|
|
31826
31845
|
type: "secondary",
|
|
31827
31846
|
style: { fontSize: 12 },
|
|
31828
31847
|
children: "By stage (892 total)"
|
|
31829
31848
|
}),
|
|
31830
31849
|
/* @__PURE__ */ Y("div", {
|
|
31831
31850
|
className: "admin-pipeline-bar",
|
|
31832
|
-
children:
|
|
31851
|
+
children: hT.map((e) => /* @__PURE__ */ Y("div", {
|
|
31833
31852
|
className: "admin-pipeline-seg",
|
|
31834
31853
|
style: {
|
|
31835
31854
|
width: `${e.pct}%`,
|
|
@@ -31839,7 +31858,7 @@ function gT() {
|
|
|
31839
31858
|
}),
|
|
31840
31859
|
/* @__PURE__ */ Y("div", {
|
|
31841
31860
|
className: "admin-pipeline-legend",
|
|
31842
|
-
children:
|
|
31861
|
+
children: hT.map((e) => /* @__PURE__ */ X("div", {
|
|
31843
31862
|
className: "admin-pipeline-legend-item",
|
|
31844
31863
|
children: [
|
|
31845
31864
|
/* @__PURE__ */ Y("span", {
|
|
@@ -31853,7 +31872,7 @@ function gT() {
|
|
|
31853
31872
|
}, e.label))
|
|
31854
31873
|
}),
|
|
31855
31874
|
/* @__PURE__ */ Y("div", { className: "admin-divider" }),
|
|
31856
|
-
/* @__PURE__ */ Y(
|
|
31875
|
+
/* @__PURE__ */ Y(fT, {
|
|
31857
31876
|
strong: !0,
|
|
31858
31877
|
style: { fontSize: 12 },
|
|
31859
31878
|
children: "Submission status"
|
|
@@ -31864,7 +31883,7 @@ function gT() {
|
|
|
31864
31883
|
children: [
|
|
31865
31884
|
/* @__PURE__ */ X("div", {
|
|
31866
31885
|
className: "admin-sub-status-item",
|
|
31867
|
-
children: [/* @__PURE__ */ Y(
|
|
31886
|
+
children: [/* @__PURE__ */ Y(fT, {
|
|
31868
31887
|
style: { fontSize: 13 },
|
|
31869
31888
|
children: "Pending client review"
|
|
31870
31889
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -31874,7 +31893,7 @@ function gT() {
|
|
|
31874
31893
|
}),
|
|
31875
31894
|
/* @__PURE__ */ X("div", {
|
|
31876
31895
|
className: "admin-sub-status-item",
|
|
31877
|
-
children: [/* @__PURE__ */ Y(
|
|
31896
|
+
children: [/* @__PURE__ */ Y(fT, {
|
|
31878
31897
|
style: { fontSize: 13 },
|
|
31879
31898
|
children: "Client approved"
|
|
31880
31899
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -31884,7 +31903,7 @@ function gT() {
|
|
|
31884
31903
|
}),
|
|
31885
31904
|
/* @__PURE__ */ X("div", {
|
|
31886
31905
|
className: "admin-sub-status-item",
|
|
31887
|
-
children: [/* @__PURE__ */ Y(
|
|
31906
|
+
children: [/* @__PURE__ */ Y(fT, {
|
|
31888
31907
|
style: { fontSize: 13 },
|
|
31889
31908
|
children: "Rejected"
|
|
31890
31909
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -31907,7 +31926,7 @@ function gT() {
|
|
|
31907
31926
|
size: "small",
|
|
31908
31927
|
children: "View all"
|
|
31909
31928
|
}),
|
|
31910
|
-
children:
|
|
31929
|
+
children: gT.map((e) => /* @__PURE__ */ X("div", {
|
|
31911
31930
|
className: "admin-client-row",
|
|
31912
31931
|
children: [/* @__PURE__ */ X("div", {
|
|
31913
31932
|
className: "admin-client-left",
|
|
@@ -31935,7 +31954,7 @@ function gT() {
|
|
|
31935
31954
|
}), /* @__PURE__ */ Y(ym, {
|
|
31936
31955
|
icon: /* @__PURE__ */ Y(fe, {}),
|
|
31937
31956
|
title: "Recent Activity",
|
|
31938
|
-
children:
|
|
31957
|
+
children: _T.map((e, t) => /* @__PURE__ */ X("div", {
|
|
31939
31958
|
className: "admin-activity-row",
|
|
31940
31959
|
children: [/* @__PURE__ */ Y("div", {
|
|
31941
31960
|
className: "admin-activity-dot",
|
|
@@ -31963,7 +31982,7 @@ function gT() {
|
|
|
31963
31982
|
children: [
|
|
31964
31983
|
/* @__PURE__ */ X(h, {
|
|
31965
31984
|
span: 8,
|
|
31966
|
-
children: [/* @__PURE__ */ Y(
|
|
31985
|
+
children: [/* @__PURE__ */ Y(fT, {
|
|
31967
31986
|
type: "secondary",
|
|
31968
31987
|
style: {
|
|
31969
31988
|
fontSize: 12,
|
|
@@ -31976,7 +31995,7 @@ function gT() {
|
|
|
31976
31995
|
["Templates", 2]
|
|
31977
31996
|
].map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
31978
31997
|
className: "admin-cfg-overview-row",
|
|
31979
|
-
children: [/* @__PURE__ */ Y(
|
|
31998
|
+
children: [/* @__PURE__ */ Y(fT, {
|
|
31980
31999
|
style: { fontSize: 12 },
|
|
31981
32000
|
children: e
|
|
31982
32001
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -31987,7 +32006,7 @@ function gT() {
|
|
|
31987
32006
|
}),
|
|
31988
32007
|
/* @__PURE__ */ X(h, {
|
|
31989
32008
|
span: 8,
|
|
31990
|
-
children: [/* @__PURE__ */ Y(
|
|
32009
|
+
children: [/* @__PURE__ */ Y(fT, {
|
|
31991
32010
|
type: "secondary",
|
|
31992
32011
|
style: {
|
|
31993
32012
|
fontSize: 12,
|
|
@@ -32000,7 +32019,7 @@ function gT() {
|
|
|
32000
32019
|
["Submissions", 2]
|
|
32001
32020
|
].map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
32002
32021
|
className: "admin-cfg-overview-row",
|
|
32003
|
-
children: [/* @__PURE__ */ Y(
|
|
32022
|
+
children: [/* @__PURE__ */ Y(fT, {
|
|
32004
32023
|
style: { fontSize: 12 },
|
|
32005
32024
|
children: e
|
|
32006
32025
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -32011,7 +32030,7 @@ function gT() {
|
|
|
32011
32030
|
}),
|
|
32012
32031
|
/* @__PURE__ */ X(h, {
|
|
32013
32032
|
span: 8,
|
|
32014
|
-
children: [/* @__PURE__ */ Y(
|
|
32033
|
+
children: [/* @__PURE__ */ Y(fT, {
|
|
32015
32034
|
type: "secondary",
|
|
32016
32035
|
style: {
|
|
32017
32036
|
fontSize: 12,
|
|
@@ -32024,10 +32043,10 @@ function gT() {
|
|
|
32024
32043
|
["Config Items", 19]
|
|
32025
32044
|
].map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
32026
32045
|
className: "admin-cfg-overview-row",
|
|
32027
|
-
children: [/* @__PURE__ */ Y(
|
|
32046
|
+
children: [/* @__PURE__ */ Y(fT, {
|
|
32028
32047
|
style: { fontSize: 12 },
|
|
32029
32048
|
children: e
|
|
32030
|
-
}), /* @__PURE__ */ Y(
|
|
32049
|
+
}), /* @__PURE__ */ Y(fT, {
|
|
32031
32050
|
strong: !0,
|
|
32032
32051
|
style: { fontSize: 12 },
|
|
32033
32052
|
children: t
|
|
@@ -32040,7 +32059,7 @@ function gT() {
|
|
|
32040
32059
|
]
|
|
32041
32060
|
});
|
|
32042
32061
|
}
|
|
32043
|
-
function
|
|
32062
|
+
function yT({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
|
|
32044
32063
|
return /* @__PURE__ */ X(I, {
|
|
32045
32064
|
gutter: [16, 16],
|
|
32046
32065
|
children: [
|
|
@@ -32059,11 +32078,11 @@ function _T({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
32059
32078
|
}),
|
|
32060
32079
|
children: [
|
|
32061
32080
|
/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
|
|
32062
|
-
/* @__PURE__ */ Y(
|
|
32081
|
+
/* @__PURE__ */ Y(pT, {
|
|
32063
32082
|
level: 5,
|
|
32064
32083
|
children: e?.heading
|
|
32065
32084
|
}),
|
|
32066
|
-
/* @__PURE__ */ Y(
|
|
32085
|
+
/* @__PURE__ */ Y(fT, {
|
|
32067
32086
|
type: "secondary",
|
|
32068
32087
|
children: e?.desc
|
|
32069
32088
|
})
|
|
@@ -32077,7 +32096,7 @@ function _T({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
32077
32096
|
children: /* @__PURE__ */ Y(ym, {
|
|
32078
32097
|
icon: /* @__PURE__ */ Y(ce, {}),
|
|
32079
32098
|
title: "Configuration Items",
|
|
32080
|
-
extra: /* @__PURE__ */ X(
|
|
32099
|
+
extra: /* @__PURE__ */ X(fT, {
|
|
32081
32100
|
type: "secondary",
|
|
32082
32101
|
children: [
|
|
32083
32102
|
n.length,
|
|
@@ -32144,7 +32163,7 @@ function _T({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
32144
32163
|
title: "Section Overview",
|
|
32145
32164
|
children: [/* @__PURE__ */ Y("div", {
|
|
32146
32165
|
className: "admin-overview-list",
|
|
32147
|
-
children:
|
|
32166
|
+
children: mT.filter((e) => e.group !== "Dashboard").map((e) => {
|
|
32148
32167
|
let n = e.group === t?.group;
|
|
32149
32168
|
return /* @__PURE__ */ X("div", {
|
|
32150
32169
|
className: `admin-overview-item${n ? " active" : ""}`,
|
|
@@ -32192,12 +32211,12 @@ function _T({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
32192
32211
|
]
|
|
32193
32212
|
});
|
|
32194
32213
|
}
|
|
32195
|
-
function
|
|
32196
|
-
let [e, t] = o("dashboard"), [n, r] = o(""), a = i(() =>
|
|
32214
|
+
function bT() {
|
|
32215
|
+
let [e, t] = o("dashboard"), [n, r] = o(""), a = i(() => mT.flatMap((e) => e.items), []), s = i(() => a.find((t) => t.id === e), [a, e]), c = i(() => mT.find((t) => t.items.some((t) => t.id === e)), [e]), l = i(() => {
|
|
32197
32216
|
if (!s?.cards) return [];
|
|
32198
32217
|
let e = n.trim().toLowerCase();
|
|
32199
32218
|
return e ? s.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : s.cards;
|
|
32200
|
-
}, [s, n]), u = i(() =>
|
|
32219
|
+
}, [s, n]), u = i(() => mT.map((e) => ({
|
|
32201
32220
|
key: e.group,
|
|
32202
32221
|
type: "group",
|
|
32203
32222
|
label: e.group,
|
|
@@ -32246,7 +32265,7 @@ function vT() {
|
|
|
32246
32265
|
children: "Groups"
|
|
32247
32266
|
}), /* @__PURE__ */ Y("span", {
|
|
32248
32267
|
className: "admin-sidebar-pill-value",
|
|
32249
|
-
children:
|
|
32268
|
+
children: mT.length
|
|
32250
32269
|
})]
|
|
32251
32270
|
})
|
|
32252
32271
|
}), /* @__PURE__ */ Y(h, {
|
|
@@ -32276,7 +32295,7 @@ function vT() {
|
|
|
32276
32295
|
xs: 24,
|
|
32277
32296
|
lg: 18,
|
|
32278
32297
|
xl: 19,
|
|
32279
|
-
children: e === "dashboard" ? /* @__PURE__ */ Y(
|
|
32298
|
+
children: e === "dashboard" ? /* @__PURE__ */ Y(vT, {}) : s?.component === "form-groups" ? /* @__PURE__ */ Y(Db, {}) : s?.component === "detail-groups" ? /* @__PURE__ */ Y(Xb, {}) : s?.component === "row-actions" ? /* @__PURE__ */ Y(zx, {}) : s?.component === "users" ? /* @__PURE__ */ Y(Wy, {}) : s?.component === "teams" ? /* @__PURE__ */ Y(Ww, {}) : s?.component === "roles" ? /* @__PURE__ */ Y(Yy, {}) : s?.component === "permissions" ? /* @__PURE__ */ Y(sT, {}) : s?.component === "templates" ? /* @__PURE__ */ Y(Jx, {}) : s?.component === "ai-services" ? /* @__PURE__ */ Y(Qx, {}) : /* @__PURE__ */ Y(yT, {
|
|
32280
32299
|
activeSection: s,
|
|
32281
32300
|
activeGroup: c,
|
|
32282
32301
|
filteredCards: l,
|
|
@@ -32291,19 +32310,19 @@ function vT() {
|
|
|
32291
32310
|
}
|
|
32292
32311
|
//#endregion
|
|
32293
32312
|
//#region src/pages/Modules/Jobs/JobsListPage.jsx
|
|
32294
|
-
var
|
|
32313
|
+
var xT = [{
|
|
32295
32314
|
label: "Home",
|
|
32296
32315
|
href: "/dashboard"
|
|
32297
32316
|
}, { label: "Jobs" }];
|
|
32298
|
-
function
|
|
32317
|
+
function ST() {
|
|
32299
32318
|
return /* @__PURE__ */ Y(Af, {
|
|
32300
32319
|
moduleName: "job",
|
|
32301
|
-
breadcrumbItems:
|
|
32320
|
+
breadcrumbItems: xT
|
|
32302
32321
|
});
|
|
32303
32322
|
}
|
|
32304
32323
|
//#endregion
|
|
32305
32324
|
//#region src/pages/Modules/Jobs/JobDetailPage.jsx
|
|
32306
|
-
function
|
|
32325
|
+
function CT() {
|
|
32307
32326
|
let [e, t] = o(null);
|
|
32308
32327
|
return /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(Bc, { items: [
|
|
32309
32328
|
{
|
|
@@ -32323,8 +32342,8 @@ function xT() {
|
|
|
32323
32342
|
}
|
|
32324
32343
|
//#endregion
|
|
32325
32344
|
//#region src/pages/stickyNotesFullPage.jsx
|
|
32326
|
-
var { Title:
|
|
32327
|
-
function
|
|
32345
|
+
var { Title: wT } = K;
|
|
32346
|
+
function TT() {
|
|
32328
32347
|
let e = Wt(), { state: t } = Ut(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
|
|
32329
32348
|
...t?.request,
|
|
32330
32349
|
params: {
|
|
@@ -32349,7 +32368,7 @@ function CT() {
|
|
|
32349
32368
|
}
|
|
32350
32369
|
//#endregion
|
|
32351
32370
|
//#region src/pages/BulkUpload/index.jsx
|
|
32352
|
-
var { Text:
|
|
32371
|
+
var { Text: ET, Title: DT } = K, OT = 10 * 1024 * 1024, kT = "/templates/test_cases_flow_template.base64.txt", AT = "test_cases_flow_template.xlsx", jT = "module | subModule | step_order | description | actions | key | value | expected | scenario", MT = {
|
|
32353
32372
|
idle: 0,
|
|
32354
32373
|
module_set: 1,
|
|
32355
32374
|
encoding: 1,
|
|
@@ -32358,7 +32377,7 @@ var { Text: wT, Title: TT } = K, ET = 10 * 1024 * 1024, DT = "/templates/test_ca
|
|
|
32358
32377
|
inserting: 3,
|
|
32359
32378
|
done: 4,
|
|
32360
32379
|
error: 1
|
|
32361
|
-
},
|
|
32380
|
+
}, NT = [
|
|
32362
32381
|
{
|
|
32363
32382
|
label: "Home",
|
|
32364
32383
|
href: "/"
|
|
@@ -32372,31 +32391,31 @@ var { Text: wT, Title: TT } = K, ET = 10 * 1024 * 1024, DT = "/templates/test_ca
|
|
|
32372
32391
|
href: "/bulk-upload"
|
|
32373
32392
|
}
|
|
32374
32393
|
];
|
|
32375
|
-
function
|
|
32394
|
+
function PT(e) {
|
|
32376
32395
|
return new Promise((t, n) => {
|
|
32377
32396
|
let r = new FileReader();
|
|
32378
32397
|
r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
|
|
32379
32398
|
});
|
|
32380
32399
|
}
|
|
32381
|
-
function
|
|
32400
|
+
function FT(e) {
|
|
32382
32401
|
return e.filter((e) => e.row_status === "valid").map((e) => {
|
|
32383
32402
|
let t = { ...e };
|
|
32384
32403
|
return delete t.row_status, delete t.errors, t;
|
|
32385
32404
|
});
|
|
32386
32405
|
}
|
|
32387
|
-
function
|
|
32406
|
+
function IT(e) {
|
|
32388
32407
|
return e.flatMap((e) => (e.errors ?? []).map((t) => ({
|
|
32389
32408
|
id: e.id,
|
|
32390
32409
|
...t
|
|
32391
32410
|
})));
|
|
32392
32411
|
}
|
|
32393
|
-
function
|
|
32412
|
+
function LT({ errors: e }) {
|
|
32394
32413
|
return /* @__PURE__ */ Y("div", {
|
|
32395
32414
|
className: "bulk-tooltip-errors",
|
|
32396
32415
|
children: (e ?? []).map((e, t) => /* @__PURE__ */ Y("div", { children: e.message }, `${e.field}-${t}`))
|
|
32397
32416
|
});
|
|
32398
32417
|
}
|
|
32399
|
-
function
|
|
32418
|
+
function RT({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
32400
32419
|
return e.length === 0 ? null : /* @__PURE__ */ X("div", {
|
|
32401
32420
|
className: "bulk-error-banner",
|
|
32402
32421
|
children: [/* @__PURE__ */ X("div", {
|
|
@@ -32427,7 +32446,7 @@ function IT({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
|
32427
32446
|
})]
|
|
32428
32447
|
});
|
|
32429
32448
|
}
|
|
32430
|
-
function
|
|
32449
|
+
function zT({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
|
|
32431
32450
|
let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, d = c.length > 0 || a;
|
|
32432
32451
|
return /* @__PURE__ */ X(J, { children: [
|
|
32433
32452
|
/* @__PURE__ */ X(I, {
|
|
@@ -32443,7 +32462,7 @@ function LT({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
32443
32462
|
type: t === "errors" ? "primary" : "default",
|
|
32444
32463
|
onClick: () => n("errors"),
|
|
32445
32464
|
children: "Errors only"
|
|
32446
|
-
})] }) }), /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ X(
|
|
32465
|
+
})] }) }), /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ X(ET, {
|
|
32447
32466
|
type: "secondary",
|
|
32448
32467
|
children: [e.length, " row(s)"]
|
|
32449
32468
|
}) })]
|
|
@@ -32515,7 +32534,7 @@ function LT({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
32515
32534
|
children: "Valid"
|
|
32516
32535
|
}) }),
|
|
32517
32536
|
/* @__PURE__ */ Y("td", { children: n ? /* @__PURE__ */ Y(G, {
|
|
32518
|
-
title: /* @__PURE__ */ Y(
|
|
32537
|
+
title: /* @__PURE__ */ Y(LT, { errors: t }),
|
|
32519
32538
|
placement: "left",
|
|
32520
32539
|
children: /* @__PURE__ */ X("button", {
|
|
32521
32540
|
type: "button",
|
|
@@ -32552,11 +32571,11 @@ function LT({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
32552
32571
|
})
|
|
32553
32572
|
] });
|
|
32554
32573
|
}
|
|
32555
|
-
function
|
|
32574
|
+
function BT() {
|
|
32556
32575
|
let e = Wt(), t = i(() => Rn(), []), c = a(null), l = a(null), [u, d] = o([]), [m, g] = o(""), [_, v] = o("idle"), [y, b] = o(!1), [x, S] = o(null), [C, w] = o([]), [T, E] = o("all"), [D, O] = o(null), [k, A] = o(null), [j, M] = o(!1), P = u.map((e) => ({
|
|
32557
32576
|
value: e.modulename,
|
|
32558
32577
|
label: e.modulename
|
|
32559
|
-
})), F =
|
|
32578
|
+
})), F = IT(C), L = _ === "encoding" || _ === "validating", ee = !!m && !L, B = MT[_] ?? 0, te = C.find((e) => e.row_status === "invalid")?.id, V = n(() => {
|
|
32560
32579
|
g(""), v("idle"), b(!1), S(null), w([]), E("all"), O(null), A(null), c.current && (c.current.value = "");
|
|
32561
32580
|
}, []);
|
|
32562
32581
|
r(() => {
|
|
@@ -32581,7 +32600,7 @@ function RT() {
|
|
|
32581
32600
|
v("module_set"), O({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
|
|
32582
32601
|
return;
|
|
32583
32602
|
}
|
|
32584
|
-
if (e.size >
|
|
32603
|
+
if (e.size > OT) {
|
|
32585
32604
|
v("module_set"), O({ message: "File must be 10 MB or smaller." });
|
|
32586
32605
|
return;
|
|
32587
32606
|
}
|
|
@@ -32590,7 +32609,7 @@ function RT() {
|
|
|
32590
32609
|
size: e.size
|
|
32591
32610
|
}), v("encoding");
|
|
32592
32611
|
try {
|
|
32593
|
-
let r = await
|
|
32612
|
+
let r = await PT(e);
|
|
32594
32613
|
v("validating"), w((await Ov({
|
|
32595
32614
|
filename: e.name,
|
|
32596
32615
|
project: t?.name ?? "",
|
|
@@ -32606,12 +32625,12 @@ function RT() {
|
|
|
32606
32625
|
}
|
|
32607
32626
|
}, re = async () => {
|
|
32608
32627
|
try {
|
|
32609
|
-
let e = await fetch(
|
|
32628
|
+
let e = await fetch(kT);
|
|
32610
32629
|
if (!e.ok) throw Error(`Template file not found (${e.status})`);
|
|
32611
32630
|
let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
|
|
32612
32631
|
for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
|
|
32613
32632
|
let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
|
|
32614
|
-
o.href = a, o.download =
|
|
32633
|
+
o.href = a, o.download = AT, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
|
|
32615
32634
|
} catch (e) {
|
|
32616
32635
|
console.error(e), q.error("Unable to download sample template.");
|
|
32617
32636
|
}
|
|
@@ -32622,7 +32641,7 @@ function RT() {
|
|
|
32622
32641
|
project: t?.name ?? "",
|
|
32623
32642
|
module: m,
|
|
32624
32643
|
uploaded_by: localStorage.getItem("user_Email") ?? "",
|
|
32625
|
-
rows:
|
|
32644
|
+
rows: FT(C)
|
|
32626
32645
|
})), v("done"), q.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
|
|
32627
32646
|
} catch (e) {
|
|
32628
32647
|
console.error(e), O(e.payload ?? {
|
|
@@ -32648,7 +32667,7 @@ function RT() {
|
|
|
32648
32667
|
align: "middle",
|
|
32649
32668
|
justify: "space-between",
|
|
32650
32669
|
className: "breadcrumb-action-wrapper",
|
|
32651
|
-
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items:
|
|
32670
|
+
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items: NT }) }), t?.name && /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(ET, {
|
|
32652
32671
|
strong: !0,
|
|
32653
32672
|
children: t.name
|
|
32654
32673
|
}) })]
|
|
@@ -32657,16 +32676,16 @@ function RT() {
|
|
|
32657
32676
|
children: [
|
|
32658
32677
|
/* @__PURE__ */ X("div", {
|
|
32659
32678
|
className: "bulk-header",
|
|
32660
|
-
children: [/* @__PURE__ */ Y(
|
|
32679
|
+
children: [/* @__PURE__ */ Y(DT, {
|
|
32661
32680
|
level: 3,
|
|
32662
32681
|
children: "Bulk upload test cases"
|
|
32663
32682
|
}), /* @__PURE__ */ X(z, {
|
|
32664
32683
|
direction: "vertical",
|
|
32665
32684
|
size: 4,
|
|
32666
|
-
children: [/* @__PURE__ */ Y(
|
|
32685
|
+
children: [/* @__PURE__ */ Y(ET, {
|
|
32667
32686
|
type: "secondary",
|
|
32668
|
-
children:
|
|
32669
|
-
}), /* @__PURE__ */ Y(
|
|
32687
|
+
children: jT
|
|
32688
|
+
}), /* @__PURE__ */ Y(ET, {
|
|
32670
32689
|
type: "secondary",
|
|
32671
32690
|
children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
|
|
32672
32691
|
})]
|
|
@@ -32764,7 +32783,7 @@ function RT() {
|
|
|
32764
32783
|
className: "v1-card zt-fall",
|
|
32765
32784
|
title: "3. Validation result",
|
|
32766
32785
|
children: [
|
|
32767
|
-
/* @__PURE__ */ Y(
|
|
32786
|
+
/* @__PURE__ */ Y(RT, {
|
|
32768
32787
|
errors: F,
|
|
32769
32788
|
expanded: j,
|
|
32770
32789
|
onToggle: () => M((e) => !e),
|
|
@@ -32776,7 +32795,7 @@ function RT() {
|
|
|
32776
32795
|
message: D.message,
|
|
32777
32796
|
className: "bulk-inline-alert"
|
|
32778
32797
|
}),
|
|
32779
|
-
/* @__PURE__ */ Y(
|
|
32798
|
+
/* @__PURE__ */ Y(zT, {
|
|
32780
32799
|
rows: C,
|
|
32781
32800
|
view: T,
|
|
32782
32801
|
onViewChange: E,
|
|
@@ -32799,17 +32818,17 @@ function RT() {
|
|
|
32799
32818
|
/* @__PURE__ */ Y(h, {
|
|
32800
32819
|
xs: 24,
|
|
32801
32820
|
md: 8,
|
|
32802
|
-
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
32821
|
+
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(ET, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: C.length })] })
|
|
32803
32822
|
}),
|
|
32804
32823
|
/* @__PURE__ */ Y(h, {
|
|
32805
32824
|
xs: 24,
|
|
32806
32825
|
md: 8,
|
|
32807
|
-
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
32826
|
+
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(ET, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: k.inserted ?? 0 })] })
|
|
32808
32827
|
}),
|
|
32809
32828
|
/* @__PURE__ */ Y(h, {
|
|
32810
32829
|
xs: 24,
|
|
32811
32830
|
md: 8,
|
|
32812
|
-
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
32831
|
+
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(ET, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: k.failed ?? 0 })] })
|
|
32813
32832
|
})
|
|
32814
32833
|
]
|
|
32815
32834
|
}),
|
|
@@ -32833,7 +32852,7 @@ function RT() {
|
|
|
32833
32852
|
}
|
|
32834
32853
|
//#endregion
|
|
32835
32854
|
//#region src/services/dropdownValues/testPageValues.js
|
|
32836
|
-
var
|
|
32855
|
+
var VT = [
|
|
32837
32856
|
{
|
|
32838
32857
|
value: "navigate",
|
|
32839
32858
|
label: "Navigate"
|
|
@@ -32966,82 +32985,82 @@ var zT = [
|
|
|
32966
32985
|
value: "wait_for_text",
|
|
32967
32986
|
label: "Wait For Text"
|
|
32968
32987
|
}
|
|
32969
|
-
], { Text:
|
|
32988
|
+
], { Text: HT } = K, UT = [{
|
|
32970
32989
|
label: "Home",
|
|
32971
32990
|
href: "/"
|
|
32972
32991
|
}, {
|
|
32973
32992
|
label: "Test Cases",
|
|
32974
32993
|
href: "/test-cases"
|
|
32975
|
-
}],
|
|
32994
|
+
}], WT = {
|
|
32976
32995
|
tags: "regression",
|
|
32977
32996
|
active: 1
|
|
32978
|
-
},
|
|
32997
|
+
}, GT = { module: {
|
|
32979
32998
|
dbName: "Modules",
|
|
32980
32999
|
formField: "module",
|
|
32981
33000
|
label: "Module"
|
|
32982
33001
|
} };
|
|
32983
|
-
function
|
|
33002
|
+
function KT(e = []) {
|
|
32984
33003
|
return e.map((e) => ({
|
|
32985
33004
|
value: e,
|
|
32986
33005
|
label: e
|
|
32987
33006
|
}));
|
|
32988
33007
|
}
|
|
32989
|
-
function
|
|
33008
|
+
function qT(e = "") {
|
|
32990
33009
|
return String(e ?? "").trim();
|
|
32991
33010
|
}
|
|
32992
|
-
function
|
|
32993
|
-
return
|
|
33011
|
+
function JT(e = "") {
|
|
33012
|
+
return qT(e).toLowerCase();
|
|
32994
33013
|
}
|
|
32995
|
-
function
|
|
33014
|
+
function YT(e = []) {
|
|
32996
33015
|
let t = /* @__PURE__ */ new Map();
|
|
32997
33016
|
return e.forEach((e) => {
|
|
32998
|
-
let n =
|
|
33017
|
+
let n = qT(e?.flow), r = n.toLowerCase();
|
|
32999
33018
|
n && !t.has(r) && t.set(r, n);
|
|
33000
33019
|
}), Array.from(t.values()).map((e) => ({
|
|
33001
33020
|
value: e,
|
|
33002
33021
|
label: e
|
|
33003
33022
|
}));
|
|
33004
33023
|
}
|
|
33005
|
-
function
|
|
33006
|
-
let r =
|
|
33024
|
+
function XT(e = [], t, n) {
|
|
33025
|
+
let r = qT(t).toLowerCase(), i = qT(n).toLowerCase();
|
|
33007
33026
|
return e.reduce((e, t) => {
|
|
33008
|
-
let n =
|
|
33027
|
+
let n = qT(t?.module).toLowerCase(), a = qT(t?.flow).toLowerCase();
|
|
33009
33028
|
if (n !== r || a !== i) return e;
|
|
33010
33029
|
let o = Number(t?.step_order) || 0;
|
|
33011
33030
|
return Math.max(e, o);
|
|
33012
33031
|
}, 0) + 1;
|
|
33013
33032
|
}
|
|
33014
|
-
function
|
|
33033
|
+
function ZT({ icon: e, title: t }) {
|
|
33015
33034
|
return /* @__PURE__ */ X(z, {
|
|
33016
33035
|
size: 10,
|
|
33017
33036
|
align: "center",
|
|
33018
33037
|
children: [/* @__PURE__ */ Y("div", {
|
|
33019
33038
|
className: "v1-section-icon-box",
|
|
33020
33039
|
children: e
|
|
33021
|
-
}), /* @__PURE__ */ Y(
|
|
33040
|
+
}), /* @__PURE__ */ Y(HT, {
|
|
33022
33041
|
strong: !0,
|
|
33023
33042
|
className: "v1-section-label",
|
|
33024
33043
|
children: t
|
|
33025
33044
|
})]
|
|
33026
33045
|
});
|
|
33027
33046
|
}
|
|
33028
|
-
function
|
|
33047
|
+
function QT() {
|
|
33029
33048
|
let [e] = C.useForm(), [t] = C.useForm(), [a, s] = o([]), [l, u] = o([]), [d, m] = o([]), [g, _] = o(!1), [v, y] = o(!1), [b, x] = o({
|
|
33030
33049
|
open: !1,
|
|
33031
33050
|
typeKey: "module"
|
|
33032
|
-
}), [S, T] = o(!1), [E, D] = o(!1), [O, A] = o(!1), j = Wt(), M =
|
|
33051
|
+
}), [S, T] = o(!1), [E, D] = o(!1), [O, A] = o(!1), j = Wt(), M = GT[b.typeKey], N = i(() => KT(a), [a]), P = C.useWatch("module", e), F = C.useWatch("flow", e), L = !!qT(P), ee = !!qT(F), B = !L, te = !L || !ee, V = (e, t = []) => {
|
|
33033
33052
|
e === "module" && s(t);
|
|
33034
33053
|
}, H = async () => {
|
|
33035
33054
|
_(!0);
|
|
33036
33055
|
try {
|
|
33037
|
-
s((await Cv(
|
|
33056
|
+
s((await Cv(GT.module.dbName))?.items ?? []);
|
|
33038
33057
|
} catch (e) {
|
|
33039
33058
|
console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
|
|
33040
33059
|
} finally {
|
|
33041
33060
|
_(!1);
|
|
33042
33061
|
}
|
|
33043
33062
|
}, ne = n(async (t) => {
|
|
33044
|
-
let n =
|
|
33063
|
+
let n = qT(t);
|
|
33045
33064
|
if (u([]), m([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
33046
33065
|
y(!0);
|
|
33047
33066
|
try {
|
|
@@ -33050,7 +33069,7 @@ function XT() {
|
|
|
33050
33069
|
offset: 0,
|
|
33051
33070
|
module: n
|
|
33052
33071
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
33053
|
-
u(t), m(
|
|
33072
|
+
u(t), m(YT(t));
|
|
33054
33073
|
} catch (e) {
|
|
33055
33074
|
console.error("Unable to load flows:", e), q.error("Unable to load flows.");
|
|
33056
33075
|
} finally {
|
|
@@ -33058,14 +33077,14 @@ function XT() {
|
|
|
33058
33077
|
}
|
|
33059
33078
|
}
|
|
33060
33079
|
}, [e]), re = n(async (t, n, r) => {
|
|
33061
|
-
let i =
|
|
33080
|
+
let i = qT(t), a = qT(n);
|
|
33062
33081
|
if (!i || !a) {
|
|
33063
33082
|
e.setFieldsValue({ step_order: void 0 });
|
|
33064
33083
|
return;
|
|
33065
33084
|
}
|
|
33066
33085
|
D(!0);
|
|
33067
33086
|
try {
|
|
33068
|
-
e.setFieldsValue({ step_order:
|
|
33087
|
+
e.setFieldsValue({ step_order: XT(r, i, a) });
|
|
33069
33088
|
} catch (e) {
|
|
33070
33089
|
console.error("Unable to load step order:", e), q.error("Unable to load step order.");
|
|
33071
33090
|
} finally {
|
|
@@ -33086,15 +33105,15 @@ function XT() {
|
|
|
33086
33105
|
]);
|
|
33087
33106
|
let U = async (t) => {
|
|
33088
33107
|
let n = {
|
|
33089
|
-
module:
|
|
33090
|
-
flow:
|
|
33108
|
+
module: qT(t.module),
|
|
33109
|
+
flow: qT(t.flow),
|
|
33091
33110
|
step_order: Number(t.step_order),
|
|
33092
|
-
description:
|
|
33093
|
-
keyword:
|
|
33094
|
-
target:
|
|
33095
|
-
value:
|
|
33096
|
-
expected:
|
|
33097
|
-
tags: t.tags ?
|
|
33111
|
+
description: qT(t.description),
|
|
33112
|
+
keyword: JT(t.keyword),
|
|
33113
|
+
target: qT(t.target),
|
|
33114
|
+
value: qT(t.value),
|
|
33115
|
+
expected: qT(t.expected),
|
|
33116
|
+
tags: t.tags ? qT(t.tags) : WT.tags,
|
|
33098
33117
|
active: Number(t.active)
|
|
33099
33118
|
};
|
|
33100
33119
|
A(!0);
|
|
@@ -33106,26 +33125,26 @@ function XT() {
|
|
|
33106
33125
|
A(!1);
|
|
33107
33126
|
}
|
|
33108
33127
|
}, W = (t, n) => {
|
|
33109
|
-
e.setFieldsValue({ [t]:
|
|
33128
|
+
e.setFieldsValue({ [t]: qT(n) });
|
|
33110
33129
|
}, G = (t) => {
|
|
33111
33130
|
e.setFieldsValue({
|
|
33112
|
-
module:
|
|
33131
|
+
module: qT(t),
|
|
33113
33132
|
flow: void 0,
|
|
33114
33133
|
step_order: void 0,
|
|
33115
33134
|
keyword: void 0,
|
|
33116
33135
|
description: void 0,
|
|
33117
33136
|
target: void 0,
|
|
33118
|
-
tags:
|
|
33137
|
+
tags: WT.tags,
|
|
33119
33138
|
value: void 0,
|
|
33120
33139
|
expected: void 0
|
|
33121
33140
|
});
|
|
33122
33141
|
}, K = (t) => {
|
|
33123
33142
|
e.setFieldsValue({
|
|
33124
|
-
flow:
|
|
33143
|
+
flow: qT(t),
|
|
33125
33144
|
step_order: void 0
|
|
33126
33145
|
});
|
|
33127
33146
|
}, ie = (e) => {
|
|
33128
|
-
let n =
|
|
33147
|
+
let n = GT[e];
|
|
33129
33148
|
x({
|
|
33130
33149
|
open: !0,
|
|
33131
33150
|
typeKey: e
|
|
@@ -33140,7 +33159,7 @@ function XT() {
|
|
|
33140
33159
|
})), t.resetFields();
|
|
33141
33160
|
}, oe = async () => {
|
|
33142
33161
|
try {
|
|
33143
|
-
let n =
|
|
33162
|
+
let n = qT((await t.validateFields()).name), r = await wv({
|
|
33144
33163
|
name: n,
|
|
33145
33164
|
type: M.dbName
|
|
33146
33165
|
});
|
|
@@ -33158,7 +33177,7 @@ function XT() {
|
|
|
33158
33177
|
align: "middle",
|
|
33159
33178
|
justify: "space-between",
|
|
33160
33179
|
className: "breadcrumb-action-wrapper",
|
|
33161
|
-
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items:
|
|
33180
|
+
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items: UT }) }), /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(f, {
|
|
33162
33181
|
type: "link",
|
|
33163
33182
|
onClick: () => j("/zinnext-home"),
|
|
33164
33183
|
children: "View Table"
|
|
@@ -33173,7 +33192,7 @@ function XT() {
|
|
|
33173
33192
|
children: /* @__PURE__ */ X(z, {
|
|
33174
33193
|
align: "center",
|
|
33175
33194
|
size: 10,
|
|
33176
|
-
children: [/* @__PURE__ */ Y(ct, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(
|
|
33195
|
+
children: [/* @__PURE__ */ Y(ct, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(HT, {
|
|
33177
33196
|
strong: !0,
|
|
33178
33197
|
style: { fontSize: 16 },
|
|
33179
33198
|
children: "Add Test Case"
|
|
@@ -33189,16 +33208,16 @@ function XT() {
|
|
|
33189
33208
|
className: "v1-required-mark",
|
|
33190
33209
|
children: " *"
|
|
33191
33210
|
})] }),
|
|
33192
|
-
initialValues:
|
|
33211
|
+
initialValues: WT,
|
|
33193
33212
|
onFinish: U,
|
|
33194
33213
|
autoComplete: "off",
|
|
33195
33214
|
children: [/* @__PURE__ */ Y(p, {
|
|
33196
33215
|
className: "v1-card",
|
|
33197
|
-
title: /* @__PURE__ */ Y(
|
|
33216
|
+
title: /* @__PURE__ */ Y(ZT, {
|
|
33198
33217
|
icon: /* @__PURE__ */ Y(ze, {}),
|
|
33199
33218
|
title: "Test Case Details"
|
|
33200
33219
|
}),
|
|
33201
|
-
extra: /* @__PURE__ */ Y(
|
|
33220
|
+
extra: /* @__PURE__ */ Y(HT, {
|
|
33202
33221
|
type: "secondary",
|
|
33203
33222
|
className: "v1-card-subtitle",
|
|
33204
33223
|
children: "Module, flow, step order and execution data"
|
|
@@ -33275,8 +33294,8 @@ function XT() {
|
|
|
33275
33294
|
disabled: te,
|
|
33276
33295
|
optionFilterProp: "label",
|
|
33277
33296
|
placeholder: "Select action",
|
|
33278
|
-
options:
|
|
33279
|
-
onChange: (t) => e.setFieldsValue({ keyword:
|
|
33297
|
+
options: VT,
|
|
33298
|
+
onChange: (t) => e.setFieldsValue({ keyword: JT(t) })
|
|
33280
33299
|
})
|
|
33281
33300
|
})
|
|
33282
33301
|
}),
|
|
@@ -33396,7 +33415,7 @@ function XT() {
|
|
|
33396
33415
|
maxLength: 100,
|
|
33397
33416
|
placeholder: `Enter ${M.label.toLowerCase()} name`,
|
|
33398
33417
|
onBlur: (e) => {
|
|
33399
|
-
t.setFieldsValue({ name:
|
|
33418
|
+
t.setFieldsValue({ name: qT(e.target.value) });
|
|
33400
33419
|
}
|
|
33401
33420
|
})
|
|
33402
33421
|
}), /* @__PURE__ */ Y(C.Item, {
|
|
@@ -33413,23 +33432,23 @@ function XT() {
|
|
|
33413
33432
|
}
|
|
33414
33433
|
//#endregion
|
|
33415
33434
|
//#region src/pages/TestingPage/ZinnextTestForm.jsx
|
|
33416
|
-
var { Text:
|
|
33435
|
+
var { Text: $T } = K, eE = [{
|
|
33417
33436
|
label: "Home",
|
|
33418
33437
|
href: "/"
|
|
33419
33438
|
}, {
|
|
33420
33439
|
label: "Test Cases",
|
|
33421
33440
|
href: "/addTestCase"
|
|
33422
33441
|
}];
|
|
33423
|
-
function
|
|
33442
|
+
function tE(e = "") {
|
|
33424
33443
|
return String(e ?? "").trim();
|
|
33425
33444
|
}
|
|
33426
|
-
function
|
|
33445
|
+
function nE(e = [], t) {
|
|
33427
33446
|
return e.map((e) => ({
|
|
33428
33447
|
value: e.id,
|
|
33429
33448
|
label: e[t]
|
|
33430
33449
|
}));
|
|
33431
33450
|
}
|
|
33432
|
-
var
|
|
33451
|
+
var rE = [
|
|
33433
33452
|
{
|
|
33434
33453
|
label: "Step",
|
|
33435
33454
|
value: "step_order",
|
|
@@ -33468,22 +33487,22 @@ var tE = [
|
|
|
33468
33487
|
children: "Negative"
|
|
33469
33488
|
})
|
|
33470
33489
|
}
|
|
33471
|
-
],
|
|
33490
|
+
], iE = {
|
|
33472
33491
|
key: !1,
|
|
33473
33492
|
value: !1,
|
|
33474
33493
|
expected: !1
|
|
33475
33494
|
};
|
|
33476
|
-
function
|
|
33477
|
-
return t ? e[t] ??
|
|
33495
|
+
function aE(e, t) {
|
|
33496
|
+
return t ? e[t] ?? iE : iE;
|
|
33478
33497
|
}
|
|
33479
|
-
function
|
|
33498
|
+
function oE(e, t) {
|
|
33480
33499
|
e.setFields(t.map((e) => ({
|
|
33481
33500
|
name: e,
|
|
33482
33501
|
errors: []
|
|
33483
33502
|
})));
|
|
33484
33503
|
}
|
|
33485
|
-
function
|
|
33486
|
-
let [e] = C.useForm(), t = Wt(), [a] = Kt(), s = a.get("edit"), c = !!s, l = i(() => Rn(), []), [u, d] = o([]), [m, g] = o([]), [_, v] = o([]), [y, b] = o(
|
|
33504
|
+
function sE() {
|
|
33505
|
+
let [e] = C.useForm(), t = Wt(), [a] = Kt(), s = a.get("edit"), c = !!s, l = i(() => Rn(), []), [u, d] = o([]), [m, g] = o([]), [_, v] = o([]), [y, b] = o(VT), [x, S] = o({}), [T, E] = o(!1), [D, O] = o(!1), [k, A] = o(!1), [j, M] = o(!1), [N, P] = o(!1), F = C.useWatch("module", e), L = C.useWatch("submodule", e), ee = C.useWatch("actions", e), B = !!F, te = !!L, V = i(() => aE(x, ee), [x, ee]), ne = i(() => nE(u, "modulename"), [u]), re = i(() => nE(m, "submodulename"), [m]), W = i(() => u.find((e) => e.id === F)?.modulename ?? "", [u, F]), G = i(() => m.find((e) => e.id === L)?.submodulename ?? "", [L, m]), K = n(async () => {
|
|
33487
33506
|
try {
|
|
33488
33507
|
let e = await Tv();
|
|
33489
33508
|
Array.isArray(e?.options) && e.options.length > 0 && b(e.options), e?.rules && typeof e.rules == "object" && S(e.rules);
|
|
@@ -33624,10 +33643,10 @@ function aE() {
|
|
|
33624
33643
|
align: "middle",
|
|
33625
33644
|
justify: "space-between",
|
|
33626
33645
|
className: "breadcrumb-action-wrapper",
|
|
33627
|
-
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items:
|
|
33646
|
+
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items: eE }) }), /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ X(z, {
|
|
33628
33647
|
size: 6,
|
|
33629
33648
|
className: "zt-section-title",
|
|
33630
|
-
children: [/* @__PURE__ */ Y(lt, {}), /* @__PURE__ */ Y(
|
|
33649
|
+
children: [/* @__PURE__ */ Y(lt, {}), /* @__PURE__ */ Y($T, {
|
|
33631
33650
|
strong: !0,
|
|
33632
33651
|
children: l.name
|
|
33633
33652
|
})]
|
|
@@ -33648,11 +33667,11 @@ function aE() {
|
|
|
33648
33667
|
product_parent_ID: Number(l?.id),
|
|
33649
33668
|
module_parent_ID: Number(n.module),
|
|
33650
33669
|
submodule_parent_ID: Number(n.submodule),
|
|
33651
|
-
description:
|
|
33652
|
-
actions:
|
|
33653
|
-
key:
|
|
33654
|
-
value:
|
|
33655
|
-
expected:
|
|
33670
|
+
description: tE(n.description),
|
|
33671
|
+
actions: tE(n.actions),
|
|
33672
|
+
key: tE(n.key),
|
|
33673
|
+
value: tE(n.value),
|
|
33674
|
+
expected: tE(n.expected),
|
|
33656
33675
|
scenario: +!!n.scenario,
|
|
33657
33676
|
active: +!!n.active
|
|
33658
33677
|
};
|
|
@@ -33718,7 +33737,7 @@ function aE() {
|
|
|
33718
33737
|
key: void 0,
|
|
33719
33738
|
value: void 0,
|
|
33720
33739
|
expected: void 0
|
|
33721
|
-
}),
|
|
33740
|
+
}), oE(e, [
|
|
33722
33741
|
"actions",
|
|
33723
33742
|
"key",
|
|
33724
33743
|
"value",
|
|
@@ -33749,7 +33768,7 @@ function aE() {
|
|
|
33749
33768
|
key: void 0,
|
|
33750
33769
|
value: void 0,
|
|
33751
33770
|
expected: void 0
|
|
33752
|
-
}),
|
|
33771
|
+
}), oE(e, [
|
|
33753
33772
|
"actions",
|
|
33754
33773
|
"key",
|
|
33755
33774
|
"value",
|
|
@@ -33803,7 +33822,7 @@ function aE() {
|
|
|
33803
33822
|
/* @__PURE__ */ Y("span", { children: "Step Details" })
|
|
33804
33823
|
]
|
|
33805
33824
|
}),
|
|
33806
|
-
extra: /* @__PURE__ */ X(
|
|
33825
|
+
extra: /* @__PURE__ */ X($T, {
|
|
33807
33826
|
type: "secondary",
|
|
33808
33827
|
children: [
|
|
33809
33828
|
W,
|
|
@@ -33843,13 +33862,13 @@ function aE() {
|
|
|
33843
33862
|
placeholder: "Select action",
|
|
33844
33863
|
options: y,
|
|
33845
33864
|
onChange: (t) => {
|
|
33846
|
-
let n =
|
|
33865
|
+
let n = aE(x, t);
|
|
33847
33866
|
e.setFieldsValue({
|
|
33848
33867
|
actions: t,
|
|
33849
33868
|
key: n.key ? e.getFieldValue("key") : void 0,
|
|
33850
33869
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
33851
33870
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
33852
|
-
}),
|
|
33871
|
+
}), oE(e, [
|
|
33853
33872
|
"key",
|
|
33854
33873
|
"value",
|
|
33855
33874
|
"expected"
|
|
@@ -33958,7 +33977,7 @@ function aE() {
|
|
|
33958
33977
|
children: /* @__PURE__ */ Y(Ym, {
|
|
33959
33978
|
listName: "Added Steps",
|
|
33960
33979
|
loading: k,
|
|
33961
|
-
fields:
|
|
33980
|
+
fields: rE,
|
|
33962
33981
|
dataSource: _,
|
|
33963
33982
|
current: 1,
|
|
33964
33983
|
pageSize: Math.max(_.length, 1),
|
|
@@ -33974,7 +33993,7 @@ function aE() {
|
|
|
33974
33993
|
}
|
|
33975
33994
|
//#endregion
|
|
33976
33995
|
//#region src/pages/TestingPage/ManageModules.jsx
|
|
33977
|
-
var { Text:
|
|
33996
|
+
var { Text: cE } = K, lE = [
|
|
33978
33997
|
{
|
|
33979
33998
|
label: "Home",
|
|
33980
33999
|
href: "/"
|
|
@@ -33988,7 +34007,7 @@ var { Text: oE } = K, sE = [
|
|
|
33988
34007
|
href: "/manageModules"
|
|
33989
34008
|
}
|
|
33990
34009
|
];
|
|
33991
|
-
function
|
|
34010
|
+
function uE() {
|
|
33992
34011
|
let e = Wt(), t = i(() => Rn(), []), [a, s] = o([]), [c, l] = o({}), [u, d] = o(!1), [m, g] = o(!1), [_, v] = o(""), [y, b] = o(!1), [x, S] = o(1), [C, T] = o(10), E = n(async (e) => {
|
|
33993
34012
|
if (!e) {
|
|
33994
34013
|
s([]);
|
|
@@ -34056,7 +34075,7 @@ function cE() {
|
|
|
34056
34075
|
align: "middle",
|
|
34057
34076
|
justify: "space-between",
|
|
34058
34077
|
className: "breadcrumb-action-wrapper",
|
|
34059
|
-
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items:
|
|
34078
|
+
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items: lE }) }), /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(f, {
|
|
34060
34079
|
type: "link",
|
|
34061
34080
|
onClick: () => e("/addTestCase"),
|
|
34062
34081
|
children: "Back to Form"
|
|
@@ -34076,7 +34095,7 @@ function cE() {
|
|
|
34076
34095
|
children: [
|
|
34077
34096
|
/* @__PURE__ */ Y(lt, {}),
|
|
34078
34097
|
/* @__PURE__ */ Y("span", { children: "Project:" }),
|
|
34079
|
-
/* @__PURE__ */ Y(
|
|
34098
|
+
/* @__PURE__ */ Y(cE, {
|
|
34080
34099
|
strong: !0,
|
|
34081
34100
|
children: t.name
|
|
34082
34101
|
})
|
|
@@ -34152,7 +34171,7 @@ function cE() {
|
|
|
34152
34171
|
children: /* @__PURE__ */ X(z, {
|
|
34153
34172
|
direction: "vertical",
|
|
34154
34173
|
className: "zt-modal-stack",
|
|
34155
|
-
children: [/* @__PURE__ */ X(
|
|
34174
|
+
children: [/* @__PURE__ */ X(cE, {
|
|
34156
34175
|
type: "secondary",
|
|
34157
34176
|
children: ["Project: ", /* @__PURE__ */ Y("b", { children: t.name })]
|
|
34158
34177
|
}), /* @__PURE__ */ Y(w, {
|
|
@@ -34169,7 +34188,7 @@ function cE() {
|
|
|
34169
34188
|
}
|
|
34170
34189
|
//#endregion
|
|
34171
34190
|
//#region src/pages/TestingPage/ManageSubmodules.jsx
|
|
34172
|
-
var { Text:
|
|
34191
|
+
var { Text: dE } = K, fE = [
|
|
34173
34192
|
{
|
|
34174
34193
|
label: "Home",
|
|
34175
34194
|
href: "/"
|
|
@@ -34187,7 +34206,7 @@ var { Text: lE } = K, uE = [
|
|
|
34187
34206
|
href: "/test-cases/zinnext/submodules"
|
|
34188
34207
|
}
|
|
34189
34208
|
];
|
|
34190
|
-
function
|
|
34209
|
+
function pE() {
|
|
34191
34210
|
let e = Wt(), [t] = Kt(), a = i(() => Rn(), []), s = t.get("module") ?? "", [c, l] = o([]), [u, d] = o(!1), [m, g] = o(!1), [_, v] = o(""), [y, b] = o(!1), [x, S] = o(1), [C, T] = o(10), E = n(async (e, t) => {
|
|
34192
34211
|
if (!e || !t) {
|
|
34193
34212
|
l([]);
|
|
@@ -34256,7 +34275,7 @@ function dE() {
|
|
|
34256
34275
|
align: "middle",
|
|
34257
34276
|
justify: "space-between",
|
|
34258
34277
|
className: "breadcrumb-action-wrapper",
|
|
34259
|
-
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items:
|
|
34278
|
+
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items: fE }) }), /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(f, {
|
|
34260
34279
|
type: "link",
|
|
34261
34280
|
onClick: () => e("/manageModules"),
|
|
34262
34281
|
children: "Back to Modules"
|
|
@@ -34279,7 +34298,7 @@ function dE() {
|
|
|
34279
34298
|
children: [
|
|
34280
34299
|
/* @__PURE__ */ Y(lt, {}),
|
|
34281
34300
|
/* @__PURE__ */ Y("span", { children: "Project:" }),
|
|
34282
|
-
/* @__PURE__ */ Y(
|
|
34301
|
+
/* @__PURE__ */ Y(dE, {
|
|
34283
34302
|
strong: !0,
|
|
34284
34303
|
children: a.name
|
|
34285
34304
|
})
|
|
@@ -34289,7 +34308,7 @@ function dE() {
|
|
|
34289
34308
|
children: [
|
|
34290
34309
|
/* @__PURE__ */ Y(ce, {}),
|
|
34291
34310
|
/* @__PURE__ */ Y("span", { children: "Module:" }),
|
|
34292
|
-
/* @__PURE__ */ Y(
|
|
34311
|
+
/* @__PURE__ */ Y(dE, {
|
|
34293
34312
|
strong: !0,
|
|
34294
34313
|
children: s
|
|
34295
34314
|
})
|
|
@@ -34352,7 +34371,7 @@ function dE() {
|
|
|
34352
34371
|
children: /* @__PURE__ */ X(z, {
|
|
34353
34372
|
direction: "vertical",
|
|
34354
34373
|
className: "zt-modal-stack",
|
|
34355
|
-
children: [/* @__PURE__ */ X(
|
|
34374
|
+
children: [/* @__PURE__ */ X(dE, {
|
|
34356
34375
|
type: "secondary",
|
|
34357
34376
|
children: [
|
|
34358
34377
|
"Project: ",
|
|
@@ -34374,7 +34393,7 @@ function dE() {
|
|
|
34374
34393
|
}
|
|
34375
34394
|
//#endregion
|
|
34376
34395
|
//#region src/pages/TestingPage/ZinnextTableView.jsx
|
|
34377
|
-
var { Text:
|
|
34396
|
+
var { Text: mE } = K, hE = [
|
|
34378
34397
|
{
|
|
34379
34398
|
label: "Home",
|
|
34380
34399
|
href: "/"
|
|
@@ -34388,7 +34407,7 @@ var { Text: fE } = K, pE = [
|
|
|
34388
34407
|
href: "/viewTestCase"
|
|
34389
34408
|
}
|
|
34390
34409
|
];
|
|
34391
|
-
function
|
|
34410
|
+
function gE() {
|
|
34392
34411
|
let e = Wt(), [t, a] = o([]), [s, c] = o(0), [l, u] = o(!1), d = i(() => Rn(), []), [m, g] = o(""), [_, v] = o(1), [y, b] = o(20), [x, S] = o(null), C = n(async (e = {}) => {
|
|
34393
34412
|
u(!0);
|
|
34394
34413
|
try {
|
|
@@ -34448,7 +34467,7 @@ function mE() {
|
|
|
34448
34467
|
align: "middle",
|
|
34449
34468
|
justify: "space-between",
|
|
34450
34469
|
className: "breadcrumb-action-wrapper",
|
|
34451
|
-
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items:
|
|
34470
|
+
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items: hE }) }), /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(f, {
|
|
34452
34471
|
type: "link",
|
|
34453
34472
|
onClick: () => e("/addTestCase"),
|
|
34454
34473
|
children: "Back to Form"
|
|
@@ -34462,7 +34481,7 @@ function mE() {
|
|
|
34462
34481
|
className: "zt-section-title",
|
|
34463
34482
|
children: [/* @__PURE__ */ Y(Ct, {}), /* @__PURE__ */ Y("span", { children: "Test Flows" })]
|
|
34464
34483
|
}),
|
|
34465
|
-
extra: /* @__PURE__ */ X(
|
|
34484
|
+
extra: /* @__PURE__ */ X(mE, {
|
|
34466
34485
|
type: "secondary",
|
|
34467
34486
|
children: [s, " row(s)"]
|
|
34468
34487
|
}),
|
|
@@ -34616,17 +34635,17 @@ function mE() {
|
|
|
34616
34635
|
}
|
|
34617
34636
|
//#endregion
|
|
34618
34637
|
//#region src/pages/TestingPage/testHomePage.jsx
|
|
34619
|
-
var
|
|
34638
|
+
var _E = [{
|
|
34620
34639
|
label: "Home",
|
|
34621
34640
|
href: "/"
|
|
34622
34641
|
}, {
|
|
34623
34642
|
label: "Test Cases",
|
|
34624
34643
|
href: "/test-cases"
|
|
34625
34644
|
}];
|
|
34626
|
-
function
|
|
34645
|
+
function vE() {
|
|
34627
34646
|
return /* @__PURE__ */ X("main", {
|
|
34628
34647
|
className: "jobs-list-page",
|
|
34629
|
-
children: [/* @__PURE__ */ Y(Bc, { items:
|
|
34648
|
+
children: [/* @__PURE__ */ Y(Bc, { items: _E }), /* @__PURE__ */ Y(Af, {
|
|
34630
34649
|
moduleName: "test-flows",
|
|
34631
34650
|
rowKey: "id"
|
|
34632
34651
|
})]
|
|
@@ -34634,85 +34653,85 @@ function gE() {
|
|
|
34634
34653
|
}
|
|
34635
34654
|
//#endregion
|
|
34636
34655
|
//#region src/pages/TestingPage/lms-test-form.jsx
|
|
34637
|
-
var { Text:
|
|
34656
|
+
var { Text: yE } = K, bE = [{
|
|
34638
34657
|
label: "Home",
|
|
34639
34658
|
href: "/"
|
|
34640
34659
|
}, {
|
|
34641
34660
|
label: "LMS Cases",
|
|
34642
34661
|
href: "/lms-cases"
|
|
34643
|
-
}],
|
|
34662
|
+
}], xE = {
|
|
34644
34663
|
tags: "regression",
|
|
34645
34664
|
active: 1
|
|
34646
|
-
},
|
|
34665
|
+
}, SE = { module: {
|
|
34647
34666
|
dbName: "Modules",
|
|
34648
34667
|
formField: "module",
|
|
34649
34668
|
label: "Module"
|
|
34650
|
-
} },
|
|
34669
|
+
} }, CE = {
|
|
34651
34670
|
key: !1,
|
|
34652
34671
|
value: !1,
|
|
34653
34672
|
expected: !1
|
|
34654
34673
|
};
|
|
34655
|
-
function
|
|
34656
|
-
return t ? e[t] ??
|
|
34674
|
+
function wE(e, t) {
|
|
34675
|
+
return t ? e[t] ?? CE : CE;
|
|
34657
34676
|
}
|
|
34658
|
-
function
|
|
34677
|
+
function TE(e, t) {
|
|
34659
34678
|
e.setFields(t.map((e) => ({
|
|
34660
34679
|
name: e,
|
|
34661
34680
|
errors: []
|
|
34662
34681
|
})));
|
|
34663
34682
|
}
|
|
34664
|
-
function
|
|
34683
|
+
function EE(e = []) {
|
|
34665
34684
|
return e.map((e) => ({
|
|
34666
34685
|
value: e,
|
|
34667
34686
|
label: e
|
|
34668
34687
|
}));
|
|
34669
34688
|
}
|
|
34670
|
-
function
|
|
34689
|
+
function DE(e = "") {
|
|
34671
34690
|
return String(e ?? "").trim();
|
|
34672
34691
|
}
|
|
34673
|
-
function
|
|
34692
|
+
function OE(e = []) {
|
|
34674
34693
|
let t = /* @__PURE__ */ new Map();
|
|
34675
34694
|
return e.forEach((e) => {
|
|
34676
|
-
let n =
|
|
34695
|
+
let n = DE(e?.flow), r = n.toLowerCase();
|
|
34677
34696
|
n && !t.has(r) && t.set(r, n);
|
|
34678
34697
|
}), Array.from(t.values()).map((e) => ({
|
|
34679
34698
|
value: e,
|
|
34680
34699
|
label: e
|
|
34681
34700
|
}));
|
|
34682
34701
|
}
|
|
34683
|
-
function
|
|
34684
|
-
let r =
|
|
34702
|
+
function kE(e = [], t, n) {
|
|
34703
|
+
let r = DE(t).toLowerCase(), i = DE(n).toLowerCase();
|
|
34685
34704
|
return e.reduce((e, t) => {
|
|
34686
|
-
let n =
|
|
34705
|
+
let n = DE(t?.module).toLowerCase(), a = DE(t?.flow).toLowerCase();
|
|
34687
34706
|
if (n !== r || a !== i) return e;
|
|
34688
34707
|
let o = Number(t?.step_order) || 0;
|
|
34689
34708
|
return Math.max(e, o);
|
|
34690
34709
|
}, 0) + 1;
|
|
34691
34710
|
}
|
|
34692
|
-
function
|
|
34711
|
+
function AE({ icon: e, title: t }) {
|
|
34693
34712
|
return /* @__PURE__ */ X(z, {
|
|
34694
34713
|
size: 10,
|
|
34695
34714
|
align: "center",
|
|
34696
34715
|
children: [/* @__PURE__ */ Y("div", {
|
|
34697
34716
|
className: "v1-section-icon-box",
|
|
34698
34717
|
children: e
|
|
34699
|
-
}), /* @__PURE__ */ Y(
|
|
34718
|
+
}), /* @__PURE__ */ Y(yE, {
|
|
34700
34719
|
strong: !0,
|
|
34701
34720
|
className: "v1-section-label",
|
|
34702
34721
|
children: t
|
|
34703
34722
|
})]
|
|
34704
34723
|
});
|
|
34705
34724
|
}
|
|
34706
|
-
function
|
|
34707
|
-
let [e] = C.useForm(), [t] = C.useForm(), [a, s] = o([]), [l, u] = o([]), [d, m] = o([]), [g, _] = o(
|
|
34725
|
+
function jE() {
|
|
34726
|
+
let [e] = C.useForm(), [t] = C.useForm(), [a, s] = o([]), [l, u] = o([]), [d, m] = o([]), [g, _] = o(VT), [v, y] = o({}), [b, x] = o(!1), [S, T] = o(!1), [E, D] = o({
|
|
34708
34727
|
open: !1,
|
|
34709
34728
|
typeKey: "module"
|
|
34710
|
-
}), [O, A] = o(!1), [j, M] = o(!1), [N, P] = o(!1), F = Wt(), L =
|
|
34729
|
+
}), [O, A] = o(!1), [j, M] = o(!1), [N, P] = o(!1), F = Wt(), L = SE[E.typeKey], ee = i(() => EE(a), [a]), B = C.useWatch("module", e), te = C.useWatch("flow", e), V = C.useWatch("keyword", e), H = !!DE(B), ne = !!DE(te), re = !H, U = !H || !ne, W = i(() => wE(v, V), [v, V]), G = (e, t = []) => {
|
|
34711
34730
|
e === "module" && s(t);
|
|
34712
34731
|
}, K = async () => {
|
|
34713
34732
|
x(!0);
|
|
34714
34733
|
try {
|
|
34715
|
-
s((await Cv(
|
|
34734
|
+
s((await Cv(SE.module.dbName))?.items ?? []);
|
|
34716
34735
|
} catch (e) {
|
|
34717
34736
|
console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
|
|
34718
34737
|
} finally {
|
|
@@ -34726,7 +34745,7 @@ function kE() {
|
|
|
34726
34745
|
console.error("Unable to load action field rules:", e), q.error("Unable to load action validation rules.");
|
|
34727
34746
|
}
|
|
34728
34747
|
}, ae = n(async (t) => {
|
|
34729
|
-
let n =
|
|
34748
|
+
let n = DE(t);
|
|
34730
34749
|
if (u([]), m([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
34731
34750
|
T(!0);
|
|
34732
34751
|
try {
|
|
@@ -34735,7 +34754,7 @@ function kE() {
|
|
|
34735
34754
|
offset: 0,
|
|
34736
34755
|
module: n
|
|
34737
34756
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
34738
|
-
u(t), m(
|
|
34757
|
+
u(t), m(OE(t));
|
|
34739
34758
|
} catch (e) {
|
|
34740
34759
|
console.error("Unable to load flows:", e), q.error("Unable to load flows.");
|
|
34741
34760
|
} finally {
|
|
@@ -34743,14 +34762,14 @@ function kE() {
|
|
|
34743
34762
|
}
|
|
34744
34763
|
}
|
|
34745
34764
|
}, [e]), oe = n(async (t, n, r) => {
|
|
34746
|
-
let i =
|
|
34765
|
+
let i = DE(t), a = DE(n);
|
|
34747
34766
|
if (!i || !a) {
|
|
34748
34767
|
e.setFieldsValue({ step_order: void 0 });
|
|
34749
34768
|
return;
|
|
34750
34769
|
}
|
|
34751
34770
|
M(!0);
|
|
34752
34771
|
try {
|
|
34753
|
-
e.setFieldsValue({ step_order:
|
|
34772
|
+
e.setFieldsValue({ step_order: kE(r, i, a) });
|
|
34754
34773
|
} catch (e) {
|
|
34755
34774
|
console.error("Unable to load step order:", e), q.error("Unable to load step order.");
|
|
34756
34775
|
} finally {
|
|
@@ -34773,15 +34792,15 @@ function kE() {
|
|
|
34773
34792
|
]);
|
|
34774
34793
|
let se = async (t) => {
|
|
34775
34794
|
let n = {
|
|
34776
|
-
module:
|
|
34777
|
-
flow:
|
|
34795
|
+
module: DE(t.module),
|
|
34796
|
+
flow: DE(t.flow),
|
|
34778
34797
|
step_order: Number(t.step_order),
|
|
34779
|
-
description:
|
|
34780
|
-
keyword:
|
|
34781
|
-
target:
|
|
34782
|
-
value:
|
|
34783
|
-
expected:
|
|
34784
|
-
tags: t.tags ?
|
|
34798
|
+
description: DE(t.description),
|
|
34799
|
+
keyword: DE(t.keyword),
|
|
34800
|
+
target: DE(t.target),
|
|
34801
|
+
value: DE(t.value),
|
|
34802
|
+
expected: DE(t.expected),
|
|
34803
|
+
tags: t.tags ? DE(t.tags) : xE.tags,
|
|
34785
34804
|
active: Number(t.active)
|
|
34786
34805
|
};
|
|
34787
34806
|
P(!0);
|
|
@@ -34793,19 +34812,19 @@ function kE() {
|
|
|
34793
34812
|
P(!1);
|
|
34794
34813
|
}
|
|
34795
34814
|
}, ce = (t, n) => {
|
|
34796
|
-
e.setFieldsValue({ [t]:
|
|
34815
|
+
e.setFieldsValue({ [t]: DE(n) });
|
|
34797
34816
|
}, le = (t) => {
|
|
34798
34817
|
e.setFieldsValue({
|
|
34799
|
-
module:
|
|
34818
|
+
module: DE(t),
|
|
34800
34819
|
flow: void 0,
|
|
34801
34820
|
step_order: void 0,
|
|
34802
34821
|
keyword: void 0,
|
|
34803
34822
|
description: void 0,
|
|
34804
34823
|
target: void 0,
|
|
34805
|
-
tags:
|
|
34824
|
+
tags: xE.tags,
|
|
34806
34825
|
value: void 0,
|
|
34807
34826
|
expected: void 0
|
|
34808
|
-
}),
|
|
34827
|
+
}), TE(e, [
|
|
34809
34828
|
"keyword",
|
|
34810
34829
|
"target",
|
|
34811
34830
|
"value",
|
|
@@ -34813,32 +34832,32 @@ function kE() {
|
|
|
34813
34832
|
]);
|
|
34814
34833
|
}, ue = (t) => {
|
|
34815
34834
|
e.setFieldsValue({
|
|
34816
|
-
flow:
|
|
34835
|
+
flow: DE(t),
|
|
34817
34836
|
step_order: void 0,
|
|
34818
34837
|
keyword: void 0,
|
|
34819
34838
|
target: void 0,
|
|
34820
34839
|
value: void 0,
|
|
34821
34840
|
expected: void 0
|
|
34822
|
-
}),
|
|
34841
|
+
}), TE(e, [
|
|
34823
34842
|
"keyword",
|
|
34824
34843
|
"target",
|
|
34825
34844
|
"value",
|
|
34826
34845
|
"expected"
|
|
34827
34846
|
]);
|
|
34828
34847
|
}, de = (t) => {
|
|
34829
|
-
let n =
|
|
34848
|
+
let n = wE(v, t);
|
|
34830
34849
|
e.setFieldsValue({
|
|
34831
|
-
keyword:
|
|
34850
|
+
keyword: DE(t),
|
|
34832
34851
|
target: n.key ? e.getFieldValue("target") : void 0,
|
|
34833
34852
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
34834
34853
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
34835
|
-
}),
|
|
34854
|
+
}), TE(e, [
|
|
34836
34855
|
"target",
|
|
34837
34856
|
"value",
|
|
34838
34857
|
"expected"
|
|
34839
34858
|
]);
|
|
34840
34859
|
}, fe = (e) => {
|
|
34841
|
-
let n =
|
|
34860
|
+
let n = SE[e];
|
|
34842
34861
|
D({
|
|
34843
34862
|
open: !0,
|
|
34844
34863
|
typeKey: e
|
|
@@ -34853,7 +34872,7 @@ function kE() {
|
|
|
34853
34872
|
})), t.resetFields();
|
|
34854
34873
|
}, me = async () => {
|
|
34855
34874
|
try {
|
|
34856
|
-
let n =
|
|
34875
|
+
let n = DE((await t.validateFields()).name), r = await wv({
|
|
34857
34876
|
name: n,
|
|
34858
34877
|
type: L.dbName
|
|
34859
34878
|
});
|
|
@@ -34871,7 +34890,7 @@ function kE() {
|
|
|
34871
34890
|
align: "middle",
|
|
34872
34891
|
justify: "space-between",
|
|
34873
34892
|
className: "breadcrumb-action-wrapper",
|
|
34874
|
-
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items:
|
|
34893
|
+
children: [/* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(Bc, { items: bE }) }), /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y(f, {
|
|
34875
34894
|
type: "link",
|
|
34876
34895
|
onClick: () => F("/lms-home"),
|
|
34877
34896
|
children: "View Table"
|
|
@@ -34886,7 +34905,7 @@ function kE() {
|
|
|
34886
34905
|
children: /* @__PURE__ */ X(z, {
|
|
34887
34906
|
align: "center",
|
|
34888
34907
|
size: 10,
|
|
34889
|
-
children: [/* @__PURE__ */ Y(ct, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(
|
|
34908
|
+
children: [/* @__PURE__ */ Y(ct, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(yE, {
|
|
34890
34909
|
strong: !0,
|
|
34891
34910
|
style: { fontSize: 16 },
|
|
34892
34911
|
children: "Add LMS Case"
|
|
@@ -34902,16 +34921,16 @@ function kE() {
|
|
|
34902
34921
|
className: "v1-required-mark",
|
|
34903
34922
|
children: " *"
|
|
34904
34923
|
})] }),
|
|
34905
|
-
initialValues:
|
|
34924
|
+
initialValues: xE,
|
|
34906
34925
|
onFinish: se,
|
|
34907
34926
|
autoComplete: "off",
|
|
34908
34927
|
children: [/* @__PURE__ */ Y(p, {
|
|
34909
34928
|
className: "v1-card",
|
|
34910
|
-
title: /* @__PURE__ */ Y(
|
|
34929
|
+
title: /* @__PURE__ */ Y(AE, {
|
|
34911
34930
|
icon: /* @__PURE__ */ Y(ze, {}),
|
|
34912
34931
|
title: "LMS Case Details"
|
|
34913
34932
|
}),
|
|
34914
|
-
extra: /* @__PURE__ */ Y(
|
|
34933
|
+
extra: /* @__PURE__ */ Y(yE, {
|
|
34915
34934
|
type: "secondary",
|
|
34916
34935
|
className: "v1-card-subtitle",
|
|
34917
34936
|
children: "Module, flow, step order and execution data"
|
|
@@ -35121,7 +35140,7 @@ function kE() {
|
|
|
35121
35140
|
maxLength: 100,
|
|
35122
35141
|
placeholder: `Enter ${L.label.toLowerCase()} name`,
|
|
35123
35142
|
onBlur: (e) => {
|
|
35124
|
-
t.setFieldsValue({ name:
|
|
35143
|
+
t.setFieldsValue({ name: DE(e.target.value) });
|
|
35125
35144
|
}
|
|
35126
35145
|
})
|
|
35127
35146
|
}), /* @__PURE__ */ Y(C.Item, {
|
|
@@ -35138,17 +35157,17 @@ function kE() {
|
|
|
35138
35157
|
}
|
|
35139
35158
|
//#endregion
|
|
35140
35159
|
//#region src/pages/TestingPage/lmsHomePage.jsx
|
|
35141
|
-
var
|
|
35160
|
+
var ME = [{
|
|
35142
35161
|
label: "Home",
|
|
35143
35162
|
href: "/"
|
|
35144
35163
|
}, {
|
|
35145
35164
|
label: "LMS Cases",
|
|
35146
35165
|
href: "/lms-cases"
|
|
35147
35166
|
}];
|
|
35148
|
-
function
|
|
35167
|
+
function NE() {
|
|
35149
35168
|
return /* @__PURE__ */ X("main", {
|
|
35150
35169
|
className: "jobs-list-page",
|
|
35151
|
-
children: [/* @__PURE__ */ Y(Bc, { items:
|
|
35170
|
+
children: [/* @__PURE__ */ Y(Bc, { items: ME }), /* @__PURE__ */ Y(Af, {
|
|
35152
35171
|
moduleName: "lms-flows",
|
|
35153
35172
|
rowKey: "id"
|
|
35154
35173
|
})]
|
|
@@ -35156,8 +35175,8 @@ function jE() {
|
|
|
35156
35175
|
}
|
|
35157
35176
|
//#endregion
|
|
35158
35177
|
//#region src/index.js
|
|
35159
|
-
var
|
|
35178
|
+
var PE = qv(lS), FE = qv(bT), IE = qv(ST), LE = qv(CT), RE = qv(TT), zE = qv(BT), BE = qv(QT), VE = qv(sE), HE = qv(uE), UE = qv(pE), WE = qv(gE), GE = qv(vE), KE = qv(jE), qE = qv(NE);
|
|
35160
35179
|
//#endregion
|
|
35161
|
-
export { un as ADMIN_API_URL, dn as ADMIN_APP_ID, Q as AUTH_URL, Gp as ActivityTab, Ip as AddFormV1, cS as AdminDashboard,
|
|
35180
|
+
export { un as ADMIN_API_URL, dn as ADMIN_APP_ID, Q as AUTH_URL, Gp as ActivityTab, Ip as AddFormV1, cS as AdminDashboard, PE as AdminPage, Lp as AppAlert, Ku as AppButton, _v as AppShell, Kp as AssigneeAvatars, hv as AuthGuard, Bc as Breadcrumb, zE as BulkUploadPage, mn as CANDIDATES_URL, ar as CalendarCard, fS as CoreThemeAdminApp, dS as CoreThemeAdminRoutes, gu as CustomPagination, rm as DescriptionBlock, zg as DetailHeaderCard, Gg as DetailViewPage, Kh as DetailViewV1, vi as DocumentViewer, $r as DynamicCards, _C as DynamicPopup, xw as DynamicPopupRoute, bu as DynamicTabs, O_ as EditFormV1, rv as Header, pn as JOBS_URL, LE as JobModuleDetailPage, IE as JobsListPage, FE as LegacyAdminPage, Af as ListView, qE as LmsHomePage, KE as LmsTestForm, vv as Login, bS as MailPopup, HE as ManageModules, UE as ManageSubmodules, _w as POPUP_CONFIGS, nh as ParamCardView, Ym as ParamListView, NS as PreviewPopup, Kv as ProjectSelect, fn as SUBMISSIONS_URL, dv as Sidebar, RE as StickyNotesFullPage, vm as StylishDynamicTabs, N_ as TemplateEditor, BE as TestForm, GE as TestingHomePage, ni as TipTapEditor, Pw as UserForm, Tw as VendorShareDrawer, Gu as ViewSummaryWidget, zS as WizardPopup, WE as ZinnextTableView, VE as ZinnextTestForm, zn as clearSelectedProject, wc as colors, gn as configureCoreTheme, Pn as getCurrentRoleName, pr as getModuleConfig, Rn as getSelectedProject, jn as getStoredToken, Mn as getStoredUser, Fn as getUserRoles, In as isTester, Nn as logout, Ln as setSelectedProject, Dl as useDropdownFields, qu as useDropdownValues, P_ as useEditForm, Ol as useFieldConfig, kl as useFilterFields, Nl as useMenuPermission, qv as withAuthGuard };
|
|
35162
35181
|
|
|
35163
35182
|
//# sourceMappingURL=index.js.map
|